From e41601f3e5037f28285ab5bb83129367832a47f8 Mon Sep 17 00:00:00 2001 From: Sam Goodwin Date: Mon, 23 Nov 2026 15:37:26 -0800 Subject: [PATCH] feat(lean): experimental Lean 4 SDK core and generator --- lean/.gitignore | 1 + lean/Check.lean | 176 + lean/Distilled.lean | 15 + lean/Distilled/AWS/Client.lean | 37 + lean/Distilled/AWS/Services/DynamoDB.lean | 7915 ++ lean/Distilled/AWS/Services/EC2.lean | 96162 ++++++++++++++++++++ lean/Distilled/AWS/Services/Lambda.lean | 12906 +++ lean/Distilled/AWS/Services/S3.lean | 14286 +++ lean/Distilled/AWS/Services/SNS.lean | 3585 + lean/Distilled/AWS/Services/SQS.lean | 2482 + lean/Distilled/Bytes.lean | 120 + lean/Distilled/Core.lean | 133 + lean/Distilled/Http.lean | 138 + lean/Distilled/Net.lean | 44 + lean/Distilled/Protocol.lean | 285 + lean/Distilled/Protocol/Codec.lean | 241 + lean/Distilled/Schema.lean | 226 + lean/Distilled/SigV4.lean | 75 + lean/Distilled/Xml.lean | 149 + lean/Generate.lean | 460 + lean/README.md | 48 + lean/c/net.c | 194 + lean/generate.sh | 17 + lean/lake-manifest.json | 6 + lean/lakefile.lean | 26 + lean/lean-toolchain | 1 + 26 files changed, 139728 insertions(+) create mode 100644 lean/.gitignore create mode 100644 lean/Check.lean create mode 100644 lean/Distilled.lean create mode 100644 lean/Distilled/AWS/Client.lean create mode 100644 lean/Distilled/AWS/Services/DynamoDB.lean create mode 100644 lean/Distilled/AWS/Services/EC2.lean create mode 100644 lean/Distilled/AWS/Services/Lambda.lean create mode 100644 lean/Distilled/AWS/Services/S3.lean create mode 100644 lean/Distilled/AWS/Services/SNS.lean create mode 100644 lean/Distilled/AWS/Services/SQS.lean create mode 100644 lean/Distilled/Bytes.lean create mode 100644 lean/Distilled/Core.lean create mode 100644 lean/Distilled/Http.lean create mode 100644 lean/Distilled/Net.lean create mode 100644 lean/Distilled/Protocol.lean create mode 100644 lean/Distilled/Protocol/Codec.lean create mode 100644 lean/Distilled/Schema.lean create mode 100644 lean/Distilled/SigV4.lean create mode 100644 lean/Distilled/Xml.lean create mode 100644 lean/Generate.lean create mode 100644 lean/README.md create mode 100644 lean/c/net.c create mode 100755 lean/generate.sh create mode 100644 lean/lake-manifest.json create mode 100644 lean/lakefile.lean create mode 100644 lean/lean-toolchain diff --git a/lean/.gitignore b/lean/.gitignore new file mode 100644 index 0000000000..bfb30ec8c7 --- /dev/null +++ b/lean/.gitignore @@ -0,0 +1 @@ +/.lake diff --git a/lean/Check.lean b/lean/Check.lean new file mode 100644 index 0000000000..76b747d6a0 --- /dev/null +++ b/lean/Check.lean @@ -0,0 +1,176 @@ +import Distilled +open Distilled + +def check (what : String) (ok : Bool) : IO Bool := do + IO.println s!"{if ok then "ok " else "FAIL"} {what}" + return ok + +def bodyText (r : HttpRequest) : String := (String.fromUTF8? r.body).getD "" + +def reply (status : Nat) (body : String) (headers : List (String × String) := []) : HttpResponse := + { status, headers, body := body.toUTF8 } + +/-- List a bucket's first keys, through the generated S3 SDK. -/ +def firstKeys (bucket : String) : Eff AWS.S3.api String (List String) := do + match ← AWS.S3.listObjectsV2 { bucket, maxKeys := some 3 } with + | .ok result => return (result.contents.getD []).filterMap (·.key) + | .error (.noSuchBucket _) => throw "no such bucket" + +/-- List the account's queues, through the generated SQS SDK. -/ +def listQueues : Eff AWS.SQS.api String (List String) := do + match ← AWS.SQS.listQueues {} with + | .ok result => return result.queueUrls.getD [] + | .error (.requestThrottled _) => throw "throttled" + | .error (.invalidAddress _) | .error (.invalidSecurity _) | .error (.unsupportedOperation _) => + throw "refused" + +def main : IO UInt32 := do + let mut all := true + IO.println "-- hashes, signing, HTTP" + all := (← check "sha256 of \"abc\"" + (hex (sha256 "abc".toUTF8) == "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad")) && all + all := (← check "hmac-sha256, RFC 4231 case 2" + (hex (hmacSha256 "Jefe".toUTF8 "what do ya want for nothing?".toUTF8) + == "5bdcc146bf60754e6a042426089575c75a003f089d2739839dec58b964ec3843")) && all + all := (← check "sigv4 signing key, AWS documentation example" + (hex (AWS.signingKey "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY" + { region := "us-east-1", service := "iam", time := "20120215T000000Z" }) + == "f4780e2d9f65fa895f9c67b32ce1baf0b0d8a43505a000a1a9e090d414db404d")) && all + let listUsers : HttpRequest := { + method := "GET", path := "/" + query := [("Action", "ListUsers"), ("Version", "2010-05-08")] + headers := [("Content-Type", "application/x-www-form-urlencoded; charset=utf-8"), + ("Host", "iam.amazonaws.com"), ("X-Amz-Date", "20150830T123600Z")] } + all := (← check "sigv4 signature, AWS documentation example" + (AWS.signature listUsers ⟨"AKIDEXAMPLE", "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY", none⟩ + { region := "us-east-1", service := "iam", time := "20150830T123600Z" } + == "5d672d79c15b13162d9279b0855cfba6789a8edb4c82c400e06b5924a6f2b5d7")) && all + all := (← check "chunked response decoding" + (match HttpResponse.decode + "HTTP/1.1 200 OK\r\nTransfer-Encoding: chunked\r\n\r\n4\r\nWiki\r\n5\r\npedia\r\n0\r\n\r\n".toUTF8 with + | .ok r => r.status == 200 && r.text == "Wikipedia" + | .error _ => false)) && all + all := (← check "base64 and the three time formats round-trip" + (base64Encode "any carnal pleas".toUTF8 == "YW55IGNhcm5hbCBwbGVhcw==" + && (base64Decode "YW55IGNhcm5hbCBwbGVhcw==").map (String.fromUTF8! ·) == some "any carnal pleas" + && isoTime 1398796238 == "2014-04-29T18:30:38Z" + && httpTime 1398796238 == "Tue, 29 Apr 2014 18:30:38 GMT" + && parseIsoTime "2014-04-29T18:30:38Z" == some 1398796238 + && parseHttpTime "Tue, 29 Apr 2014 18:30:38 GMT" == some 1398796238)) && all + + IO.println "-- awsJson1_0 (SQS)" + let r := AWS.SQS.wire.encode .createQueue + { queueName := "jobs", attributes := some ⟨[(.visibilityTimeout, "30")]⟩ } + all := (← check "request: target header and JSON body" + (r.header "X-Amz-Target" == some "AmazonSQS.CreateQueue" + && bodyText r == "{\"Attributes\":{\"VisibilityTimeout\":\"30\"},\"QueueName\":\"jobs\"}")) && all + all := (← check "response: output" + (match AWS.SQS.wire.decode .createQueue (reply 200 "{\"QueueUrl\":\"https://sqs/jobs\"}") with + | some (.ok out) => out.queueUrl == some "https://sqs/jobs" + | _ => false)) && all + all := (← check "response: a typed error" + (match AWS.SQS.wire.decode .getQueueUrl + (reply 400 "{\"__type\":\"com.amazonaws.sqs#QueueDoesNotExist\",\"message\":\"gone\"}") with + | some (.error (.queueDoesNotExist e)) => e.message == some "gone" + | _ => false)) && all + + IO.println "-- awsQuery (SNS)" + let r := AWS.SNS.wire.encode .createTopic + { name := "alerts", tags := some [{ key := "team", value := "ops" }], + attributes := some ⟨[("DisplayName", "Alerts")]⟩ } + all := (← check "request: form body with a list and a map" + (bodyText r == "Action=CreateTopic&Version=2010-03-31&Attributes.entry.1.key=DisplayName" + ++ "&Attributes.entry.1.value=Alerts&Name=alerts&Tags.member.1.Key=team&Tags.member.1.Value=ops")) && all + all := (← check "response: output inside the Result element" + (match AWS.SNS.wire.decode .createTopic (reply 200 + "arn:aws:sns:us-east-1:1:alertsr") with + | some (.ok out) => out.topicArn == some "arn:aws:sns:us-east-1:1:alerts" + | _ => false)) && all + all := (← check "response: a typed error, found by its wire code" + (match AWS.SNS.wire.decode .createTopic (reply 400 + "SenderInvalidParameterbad namer") with + | some (.error (.invalidParameterException _)) => true + | _ => false)) && all + + IO.println "-- restJson1 (Lambda)" + let r := AWS.Lambda.wire.encode .getFunction { functionName := "my fn", qualifier := some "live" } + all := (← check "request: label in the path, member in the query, no body" + (r.method == "GET" && r.path == "/2015-03-31/functions/my%20fn" + && r.query == [("Qualifier", "live")] && r.body.isEmpty)) && all + all := (← check "response: a typed error, named by a header" + (match AWS.Lambda.wire.decode .getFunction (reply 404 + "{\"Message\":\"Function not found\",\"Type\":\"User\"}" + [("x-amzn-ErrorType", "ResourceNotFoundException:http://internal.amazon.com/coral/")]) with + | some (.error (.resourceNotFoundException e)) => e.message == some "Function not found" + | _ => false)) && all + + IO.println "-- restXml (S3)" + let r := AWS.S3.wire.encode .putBucketVersioning + { bucket := "my-bucket", versioningConfiguration := { status := some .enabled }, + expectedBucketOwner := some "123456789012" } + all := (← check "request: path, fixed query, header and XML payload" + (r.method == "PUT" && r.path == "/my-bucket" && r.query == [("versioning", "")] + && r.header "x-amz-expected-bucket-owner" == some "123456789012" + && bodyText r == "Enabled")) && all + all := (← check "response: a flattened list and a timestamp" + (match AWS.S3.wire.decode .listObjectsV2 (reply 200 + "b2falsea.txt32014-04-29T18:30:38.000Zb & c.txt5") with + | some (.ok out) => + (out.contents.getD []).map (·.key) == [some "a.txt", some "b & c.txt"] + && ((out.contents.getD []).head?.bind (·.lastModified)) == some ⟨1398796238⟩ + && out.keyCount == some 2 && out.isTruncated == some false + | _ => false)) && all + all := (← check "response: a typed error" + (match AWS.S3.wire.decode .listObjectsV2 (reply 404 + "NoSuchBucketThe specified bucket does not exist") with + | some (.error (.noSuchBucket _)) => true + | _ => false)) && all + + IO.println "-- ec2Query (EC2)" + let r := AWS.EC2.wire.encode .describeVpcs { vpcIds := some ["vpc-1", "vpc-2"], maxResults := some 5 } + all := (← check "request: capitalized names and flat lists" + (bodyText r == "Action=DescribeVpcs&Version=2016-11-15&MaxResults=5&VpcId.1=vpc-1&VpcId.2=vpc-2")) && all + all := (← check "response: a list of items" + (match AWS.EC2.wire.decode .describeVpcs (reply 200 + "rvpc-110.0.0.0/16false") with + | some (.ok out) => (out.vpcs.getD []).map (·.cidrBlock) == [some "10.0.0.0/16"] + | _ => false)) && all + + IO.println "-- live" + -- a public bucket answers without credentials: a real typed call end to end + let keys ← ((firstKeys "noaa-goes16").io AWS.S3.wire + ({ host := "s3.amazonaws.com" } : Endpoint).send).toBaseIO + let ok ← match keys with + | .ok (.ok (.ok keys)) => do IO.println s!" {keys}"; pure (keys.length == 3) + | .ok (.ok (.error why)) => do IO.println s!" {why}"; pure false + | .ok (.error u) => do IO.println s!" undescribed {u.response.status}: {u.response.text.take 200}"; pure false + | .error e => do IO.println s!" {e}"; pure false + all := (← check "S3 ListObjectsV2 on a public bucket, over TLS, decoded to typed output" ok) && all + let missing ← ((firstKeys "distilled-lean-no-such-bucket-7c1f").io AWS.S3.wire + ({ host := "s3.amazonaws.com" } : Endpoint).send).toBaseIO + all := (← check "S3 ListObjectsV2 on a missing bucket gives the typed NoSuchBucket" + (match missing with + | .ok (.ok (.error "no such bucket")) => true + | _ => false)) && all + let refused ← (do + let _ ← ({ host := "wrong.host.badssl.com" } : Endpoint).send { method := "GET", path := "/" } + pure false).toBaseIO.map (fun (r : Except IO.Error Bool) => match r with | .ok b => b | .error _ => true) + all := (← check "a certificate for another name is refused" refused) && all + let unsigned ← (listQueues.io AWS.SQS.wire ({ host := "sqs.us-east-1.amazonaws.com" } : Endpoint).send).toBaseIO + all := (← check "SQS unsigned: a refusal its model does not list is reported as undescribed" + (match unsigned with + | .ok (.error u) => u.response.status == 403 + | _ => false)) && all + match ← AWS.Credentials.fromEnv with + | none => IO.println "skip signed calls: no AWS credentials in the environment" + | some credentials => + let region := (← IO.getEnv "AWS_REGION").getD "us-east-1" + let client := AWS.Client.make credentials region AWS.SQS.signingName + let signed ← (listQueues.io AWS.SQS.wire client.send).toBaseIO + let ok ← match signed with + | .ok (.ok (.ok urls)) => do IO.println s!" {urls.length} queues in {region}"; pure true + | .ok (.ok (.error why)) => do IO.println s!" {why}"; pure false + | .ok (.error u) => do IO.println s!" undescribed {u.response.status}: {u.response.text.take 160}"; pure false + | .error e => do IO.println s!" {e}"; pure false + all := (← check "SQS signed: ListQueues answers" ok) && all + return if all then 0 else 1 diff --git a/lean/Distilled.lean b/lean/Distilled.lean new file mode 100644 index 0000000000..a183cf9fd6 --- /dev/null +++ b/lean/Distilled.lean @@ -0,0 +1,15 @@ +import Distilled.Http +import Distilled.Bytes +import Distilled.Xml +import Distilled.Schema +import Distilled.Core +import Distilled.Protocol +import Distilled.Net +import Distilled.SigV4 +import Distilled.AWS.Client +import Distilled.AWS.Services.SQS +import Distilled.AWS.Services.SNS +import Distilled.AWS.Services.Lambda +import Distilled.AWS.Services.S3 +import Distilled.AWS.Services.DynamoDB +import Distilled.AWS.Services.EC2 diff --git a/lean/Distilled/AWS/Client.lean b/lean/Distilled/AWS/Client.lean new file mode 100644 index 0000000000..df4f4f866c --- /dev/null +++ b/lean/Distilled/AWS/Client.lean @@ -0,0 +1,37 @@ +import Distilled.Core +import Distilled.SigV4 +import Std.Time +import Distilled.Bytes + +/-! +# Calling AWS + +Sends signed requests to a service in a region. +-/ + +namespace Distilled.AWS + +structure Client where + credentials : Credentials + region : String + /-- The name requests are signed for, such as `sqs`. -/ + service : String + endpoint : Endpoint + +def Client.make (credentials : Credentials) (region service : String) : Client := + { credentials, region, service, endpoint := { host := s!"{service}.{region}.amazonaws.com" } } + +/-- Sign a request for now and send it. -/ +def Client.send (client : Client) (request : HttpRequest) : IO HttpResponse := do + let now ← Std.Time.Timestamp.now + let epoch := now.toSecondsSinceUnixEpoch.val.toNat + let scope : Scope := { region := client.region, service := client.service, time := amzTime epoch } + client.endpoint.send (sign request client.endpoint.host client.credentials scope) + +/-- Credentials from `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` and `AWS_SESSION_TOKEN`. -/ +def Credentials.fromEnv : IO (Option Credentials) := do + let some accessKeyId ← IO.getEnv "AWS_ACCESS_KEY_ID" | return none + let some secretAccessKey ← IO.getEnv "AWS_SECRET_ACCESS_KEY" | return none + return some { accessKeyId, secretAccessKey, sessionToken := ← IO.getEnv "AWS_SESSION_TOKEN" } + +end Distilled.AWS diff --git a/lean/Distilled/AWS/Services/DynamoDB.lean b/lean/Distilled/AWS/Services/DynamoDB.lean new file mode 100644 index 0000000000..1756cba26c --- /dev/null +++ b/lean/Distilled/AWS/Services/DynamoDB.lean @@ -0,0 +1,7915 @@ +-- Generated by distilled-gen from dynamodb-2012-08-10.json. Do not edit. +import Distilled.Protocol + +namespace Distilled.AWS.DynamoDB +open Lean Distilled + +set_option linter.unusedVariables false +set_option maxRecDepth 4096 +set_option maxHeartbeats 0 + +inductive ApproximateCreationDateTimePrecision where + | microsecond + | millisecond +deriving DecidableEq, Repr, Inhabited + +def ApproximateCreationDateTimePrecision.wire : ApproximateCreationDateTimePrecision → String + | .microsecond => "MICROSECOND" + | .millisecond => "MILLISECOND" + +def ApproximateCreationDateTimePrecision.wireValues : List (String × ApproximateCreationDateTimePrecision) := [ + ("MICROSECOND", .microsecond), + ("MILLISECOND", .millisecond)] + +def ApproximateCreationDateTimePrecision.ofWire (text : String) : Except String ApproximateCreationDateTimePrecision := + match List.find? (·.1 == text) ApproximateCreationDateTimePrecision.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ApproximateCreationDateTimePrecision has no value {text}" + +instance : Key ApproximateCreationDateTimePrecision := ⟨ApproximateCreationDateTimePrecision.wire, ApproximateCreationDateTimePrecision.ofWire⟩ + +instance : Shape ApproximateCreationDateTimePrecision where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ApproximateCreationDateTimePrecision.ofWire text + | _ => .error "expected a string" + +/-- Contains details of a table archival operation. -/ +structure ArchivalSummary where + /-- The Amazon Resource Name (ARN) of the backup the table was archived to, when applicable in the archival reason. -/ + archivalBackupArn : Option String := none + /-- The date and time when table archival was initiated by DynamoDB, in UNIX epoch time format. -/ + archivalDateTime : Option Timestamp := none + /-- The reason DynamoDB archived the table. -/ + archivalReason : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ArchivalSummary where + schema := .struct "ArchivalSummary" [({ name := "ArchivalBackupArn" }, .string), + ({ name := "ArchivalDateTime" }, (.time none)), + ({ name := "ArchivalReason" }, .string)] + toValue x := record [putOpt "ArchivalBackupArn" x.archivalBackupArn, putOpt "ArchivalDateTime" x.archivalDateTime, putOpt "ArchivalReason" x.archivalReason] + ofValue v := do + let archivalBackupArn ← v.opt "ArchivalBackupArn" + let archivalDateTime ← v.opt "ArchivalDateTime" + let archivalReason ← v.opt "ArchivalReason" + return { archivalBackupArn, archivalDateTime, archivalReason } + +inductive AttributeAction where + | add + | delete + | put +deriving DecidableEq, Repr, Inhabited + +def AttributeAction.wire : AttributeAction → String + | .add => "ADD" + | .delete => "DELETE" + | .put => "PUT" + +def AttributeAction.wireValues : List (String × AttributeAction) := [ + ("ADD", .add), + ("DELETE", .delete), + ("PUT", .put)] + +def AttributeAction.ofWire (text : String) : Except String AttributeAction := + match List.find? (·.1 == text) AttributeAction.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AttributeAction has no value {text}" + +instance : Key AttributeAction := ⟨AttributeAction.wire, AttributeAction.ofWire⟩ + +instance : Shape AttributeAction where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AttributeAction.ofWire text + | _ => .error "expected a string" + +/-- Represents the properties of a target tracking scaling policy. -/ +structure AutoScalingTargetTrackingScalingPolicyConfigurationDescription where + /-- Indicates whether scale in by the target tracking policy is disabled. -/ + disableScaleIn : Option Bool := none + /-- The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. -/ + scaleInCooldown : Option Int := none + /-- The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. -/ + scaleOutCooldown : Option Int := none + /-- The target value for the metric. -/ + targetValue : JsonNumber +deriving DecidableEq, Repr, Inhabited + +instance : Shape AutoScalingTargetTrackingScalingPolicyConfigurationDescription where + schema := .struct "AutoScalingTargetTrackingScalingPolicyConfigurationDescription" [({ name := "DisableScaleIn" }, .bool), + ({ name := "ScaleInCooldown" }, .int), + ({ name := "ScaleOutCooldown" }, .int), + ({ name := "TargetValue", required := true }, .number)] + toValue x := record [putOpt "DisableScaleIn" x.disableScaleIn, putOpt "ScaleInCooldown" x.scaleInCooldown, putOpt "ScaleOutCooldown" x.scaleOutCooldown, put "TargetValue" x.targetValue] + ofValue v := do + let disableScaleIn ← v.opt "DisableScaleIn" + let scaleInCooldown ← v.opt "ScaleInCooldown" + let scaleOutCooldown ← v.opt "ScaleOutCooldown" + let targetValue ← v.req "TargetValue" + return { disableScaleIn, scaleInCooldown, scaleOutCooldown, targetValue } + +/-- Represents the settings of a target tracking scaling policy that will be modified. -/ +structure AutoScalingTargetTrackingScalingPolicyConfigurationUpdate where + /-- Indicates whether scale in by the target tracking policy is disabled. -/ + disableScaleIn : Option Bool := none + /-- The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. -/ + scaleInCooldown : Option Int := none + /-- The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. -/ + scaleOutCooldown : Option Int := none + /-- The target value for the metric. -/ + targetValue : JsonNumber +deriving DecidableEq, Repr, Inhabited + +instance : Shape AutoScalingTargetTrackingScalingPolicyConfigurationUpdate where + schema := .struct "AutoScalingTargetTrackingScalingPolicyConfigurationUpdate" [({ name := "DisableScaleIn" }, .bool), + ({ name := "ScaleInCooldown" }, .int), + ({ name := "ScaleOutCooldown" }, .int), + ({ name := "TargetValue", required := true }, .number)] + toValue x := record [putOpt "DisableScaleIn" x.disableScaleIn, putOpt "ScaleInCooldown" x.scaleInCooldown, putOpt "ScaleOutCooldown" x.scaleOutCooldown, put "TargetValue" x.targetValue] + ofValue v := do + let disableScaleIn ← v.opt "DisableScaleIn" + let scaleInCooldown ← v.opt "ScaleInCooldown" + let scaleOutCooldown ← v.opt "ScaleOutCooldown" + let targetValue ← v.req "TargetValue" + return { disableScaleIn, scaleInCooldown, scaleOutCooldown, targetValue } + +/-- There is another ongoing conflicting backup control plane operation on the table. -/ +structure BackupInUseException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BackupInUseException where + schema := .struct "BackupInUseException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Backup not found for the given BackupARN. -/ +structure BackupNotFoundException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BackupNotFoundException where + schema := .struct "BackupNotFoundException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +inductive BackupStatus where + | available + | creating + | deleted +deriving DecidableEq, Repr, Inhabited + +def BackupStatus.wire : BackupStatus → String + | .available => "AVAILABLE" + | .creating => "CREATING" + | .deleted => "DELETED" + +def BackupStatus.wireValues : List (String × BackupStatus) := [ + ("AVAILABLE", .available), + ("CREATING", .creating), + ("DELETED", .deleted)] + +def BackupStatus.ofWire (text : String) : Except String BackupStatus := + match List.find? (·.1 == text) BackupStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BackupStatus has no value {text}" + +instance : Key BackupStatus := ⟨BackupStatus.wire, BackupStatus.ofWire⟩ + +instance : Shape BackupStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BackupStatus.ofWire text + | _ => .error "expected a string" + +inductive BackupType where + | awS_BACKUP + | system + | user +deriving DecidableEq, Repr, Inhabited + +def BackupType.wire : BackupType → String + | .awS_BACKUP => "AWS_BACKUP" + | .system => "SYSTEM" + | .user => "USER" + +def BackupType.wireValues : List (String × BackupType) := [ + ("AWS_BACKUP", .awS_BACKUP), + ("SYSTEM", .system), + ("USER", .user)] + +def BackupType.ofWire (text : String) : Except String BackupType := + match List.find? (·.1 == text) BackupType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BackupType has no value {text}" + +instance : Key BackupType := ⟨BackupType.wire, BackupType.ofWire⟩ + +instance : Shape BackupType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BackupType.ofWire text + | _ => .error "expected a string" + +inductive BackupTypeFilter where + | all + | awS_BACKUP + | system + | user +deriving DecidableEq, Repr, Inhabited + +def BackupTypeFilter.wire : BackupTypeFilter → String + | .all => "ALL" + | .awS_BACKUP => "AWS_BACKUP" + | .system => "SYSTEM" + | .user => "USER" + +def BackupTypeFilter.wireValues : List (String × BackupTypeFilter) := [ + ("ALL", .all), + ("AWS_BACKUP", .awS_BACKUP), + ("SYSTEM", .system), + ("USER", .user)] + +def BackupTypeFilter.ofWire (text : String) : Except String BackupTypeFilter := + match List.find? (·.1 == text) BackupTypeFilter.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BackupTypeFilter has no value {text}" + +instance : Key BackupTypeFilter := ⟨BackupTypeFilter.wire, BackupTypeFilter.ofWire⟩ + +instance : Shape BackupTypeFilter where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BackupTypeFilter.ofWire text + | _ => .error "expected a string" + +inductive BatchStatementErrorCodeEnum where + | accessDenied + | conditionalCheckFailed + | duplicateItem + | internalServerError + | itemCollectionSizeLimitExceeded + | provisionedThroughputExceeded + | requestLimitExceeded + | resourceNotFound + | throttlingError + | transactionConflict + | validationError +deriving DecidableEq, Repr, Inhabited + +def BatchStatementErrorCodeEnum.wire : BatchStatementErrorCodeEnum → String + | .accessDenied => "AccessDenied" + | .conditionalCheckFailed => "ConditionalCheckFailed" + | .duplicateItem => "DuplicateItem" + | .internalServerError => "InternalServerError" + | .itemCollectionSizeLimitExceeded => "ItemCollectionSizeLimitExceeded" + | .provisionedThroughputExceeded => "ProvisionedThroughputExceeded" + | .requestLimitExceeded => "RequestLimitExceeded" + | .resourceNotFound => "ResourceNotFound" + | .throttlingError => "ThrottlingError" + | .transactionConflict => "TransactionConflict" + | .validationError => "ValidationError" + +def BatchStatementErrorCodeEnum.wireValues : List (String × BatchStatementErrorCodeEnum) := [ + ("AccessDenied", .accessDenied), + ("ConditionalCheckFailed", .conditionalCheckFailed), + ("DuplicateItem", .duplicateItem), + ("InternalServerError", .internalServerError), + ("ItemCollectionSizeLimitExceeded", .itemCollectionSizeLimitExceeded), + ("ProvisionedThroughputExceeded", .provisionedThroughputExceeded), + ("RequestLimitExceeded", .requestLimitExceeded), + ("ResourceNotFound", .resourceNotFound), + ("ThrottlingError", .throttlingError), + ("TransactionConflict", .transactionConflict), + ("ValidationError", .validationError)] + +def BatchStatementErrorCodeEnum.ofWire (text : String) : Except String BatchStatementErrorCodeEnum := + match List.find? (·.1 == text) BatchStatementErrorCodeEnum.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BatchStatementErrorCodeEnum has no value {text}" + +instance : Key BatchStatementErrorCodeEnum := ⟨BatchStatementErrorCodeEnum.wire, BatchStatementErrorCodeEnum.ofWire⟩ + +instance : Shape BatchStatementErrorCodeEnum where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BatchStatementErrorCodeEnum.ofWire text + | _ => .error "expected a string" + +inductive BillingMode where + | paY_PER_REQUEST + | provisioned +deriving DecidableEq, Repr, Inhabited + +def BillingMode.wire : BillingMode → String + | .paY_PER_REQUEST => "PAY_PER_REQUEST" + | .provisioned => "PROVISIONED" + +def BillingMode.wireValues : List (String × BillingMode) := [ + ("PAY_PER_REQUEST", .paY_PER_REQUEST), + ("PROVISIONED", .provisioned)] + +def BillingMode.ofWire (text : String) : Except String BillingMode := + match List.find? (·.1 == text) BillingMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BillingMode has no value {text}" + +instance : Key BillingMode := ⟨BillingMode.wire, BillingMode.ofWire⟩ + +instance : Shape BillingMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BillingMode.ofWire text + | _ => .error "expected a string" + +/-- Contains the bulk put bytes used during a bulk operation. -/ +structure BulkOperationBytes where + /-- The number of bulk put bytes. -/ + bulkPutBytes : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BulkOperationBytes where + schema := .struct "BulkOperationBytes" [({ name := "BulkPutBytes" }, .int)] + toValue x := record [putOpt "BulkPutBytes" x.bulkPutBytes] + ofValue v := do + let bulkPutBytes ← v.opt "BulkPutBytes" + return { bulkPutBytes } + +inductive BulkOperationInputFormat where + | dynamodB_JSON + | ion +deriving DecidableEq, Repr, Inhabited + +def BulkOperationInputFormat.wire : BulkOperationInputFormat → String + | .dynamodB_JSON => "DYNAMODB_JSON" + | .ion => "ION" + +def BulkOperationInputFormat.wireValues : List (String × BulkOperationInputFormat) := [ + ("DYNAMODB_JSON", .dynamodB_JSON), + ("ION", .ion)] + +def BulkOperationInputFormat.ofWire (text : String) : Except String BulkOperationInputFormat := + match List.find? (·.1 == text) BulkOperationInputFormat.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BulkOperationInputFormat has no value {text}" + +instance : Key BulkOperationInputFormat := ⟨BulkOperationInputFormat.wire, BulkOperationInputFormat.ofWire⟩ + +instance : Shape BulkOperationInputFormat where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BulkOperationInputFormat.ofWire text + | _ => .error "expected a string" + +inductive BulkOperationPerformanceTier where + | accelerated + | standard +deriving DecidableEq, Repr, Inhabited + +def BulkOperationPerformanceTier.wire : BulkOperationPerformanceTier → String + | .accelerated => "ACCELERATED" + | .standard => "STANDARD" + +def BulkOperationPerformanceTier.wireValues : List (String × BulkOperationPerformanceTier) := [ + ("ACCELERATED", .accelerated), + ("STANDARD", .standard)] + +def BulkOperationPerformanceTier.ofWire (text : String) : Except String BulkOperationPerformanceTier := + match List.find? (·.1 == text) BulkOperationPerformanceTier.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BulkOperationPerformanceTier has no value {text}" + +instance : Key BulkOperationPerformanceTier := ⟨BulkOperationPerformanceTier.wire, BulkOperationPerformanceTier.ofWire⟩ + +instance : Shape BulkOperationPerformanceTier where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BulkOperationPerformanceTier.ofWire text + | _ => .error "expected a string" + +inductive BulkOperationStatus where + | cancelled + | cancelling + | completed + | completeD_WITH_ERRORS + | failed + | iN_PROGRESS +deriving DecidableEq, Repr, Inhabited + +def BulkOperationStatus.wire : BulkOperationStatus → String + | .cancelled => "CANCELLED" + | .cancelling => "CANCELLING" + | .completed => "COMPLETED" + | .completeD_WITH_ERRORS => "COMPLETED_WITH_ERRORS" + | .failed => "FAILED" + | .iN_PROGRESS => "IN_PROGRESS" + +def BulkOperationStatus.wireValues : List (String × BulkOperationStatus) := [ + ("CANCELLED", .cancelled), + ("CANCELLING", .cancelling), + ("COMPLETED", .completed), + ("COMPLETED_WITH_ERRORS", .completeD_WITH_ERRORS), + ("FAILED", .failed), + ("IN_PROGRESS", .iN_PROGRESS)] + +def BulkOperationStatus.ofWire (text : String) : Except String BulkOperationStatus := + match List.find? (·.1 == text) BulkOperationStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BulkOperationStatus has no value {text}" + +instance : Key BulkOperationStatus := ⟨BulkOperationStatus.wire, BulkOperationStatus.ofWire⟩ + +instance : Shape BulkOperationStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BulkOperationStatus.ofWire text + | _ => .error "expected a string" + +/-- Contains identifying information for a table associated with a bulk operation. -/ +structure BulkOperationTableDetail where + /-- The unique identifier of the table associated with the bulk operation. -/ + tableId : Option String := none + /-- The name or ARN of the table associated with the bulk operation. -/ + tableName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BulkOperationTableDetail where + schema := .struct "BulkOperationTableDetail" [({ name := "TableId" }, .string), + ({ name := "TableName" }, .string)] + toValue x := record [putOpt "TableId" x.tableId, putOpt "TableName" x.tableName] + ofValue v := do + let tableId ← v.opt "TableId" + let tableName ← v.opt "TableName" + return { tableId, tableName } + +/-- Contains the bulk put vector bytes used by a vector index during a bulk operation. -/ +structure BulkOperationVectorBytes where + /-- The number of bulk put vector bytes used on the vector index. -/ + bulkPutVectorBytes : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BulkOperationVectorBytes where + schema := .struct "BulkOperationVectorBytes" [({ name := "BulkPutVectorBytes" }, .int)] + toValue x := record [putOpt "BulkPutVectorBytes" x.bulkPutVectorBytes] + ofValue v := do + let bulkPutVectorBytes ← v.opt "BulkPutVectorBytes" + return { bulkPutVectorBytes } + +structure CancelBulkOperationInput where + /-- The Amazon Resource Name (ARN) of the bulk operation to cancel. -/ + bulkOperationArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelBulkOperationInput where + schema := .struct "CancelBulkOperationInput" [({ name := "BulkOperationArn", required := true }, .string)] + toValue x := record [put "BulkOperationArn" x.bulkOperationArn] + ofValue v := do + let bulkOperationArn ← v.req "BulkOperationArn" + return { bulkOperationArn } + +/-- Represents the amount of provisioned throughput capacity consumed on a table or an index. -/ +structure Capacity where + /-- The total number of capacity units consumed on a table or an index. -/ + capacityUnits : Option JsonNumber := none + /-- The total number of read capacity units consumed on a table or an index. -/ + readCapacityUnits : Option JsonNumber := none + /-- The total number of write capacity units consumed on a table or an index. -/ + writeCapacityUnits : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Capacity where + schema := .struct "Capacity" [({ name := "CapacityUnits" }, .number), + ({ name := "ReadCapacityUnits" }, .number), + ({ name := "WriteCapacityUnits" }, .number)] + toValue x := record [putOpt "CapacityUnits" x.capacityUnits, putOpt "ReadCapacityUnits" x.readCapacityUnits, putOpt "WriteCapacityUnits" x.writeCapacityUnits] + ofValue v := do + let capacityUnits ← v.opt "CapacityUnits" + let readCapacityUnits ← v.opt "ReadCapacityUnits" + let writeCapacityUnits ← v.opt "WriteCapacityUnits" + return { capacityUnits, readCapacityUnits, writeCapacityUnits } + +inductive ComparisonOperator where + | beginS_WITH + | between + | contains + | eq + | ge + | gt + | «in» + | le + | lt + | ne + | noT_CONTAINS + | noT_NULL + | null +deriving DecidableEq, Repr, Inhabited + +def ComparisonOperator.wire : ComparisonOperator → String + | .beginS_WITH => "BEGINS_WITH" + | .between => "BETWEEN" + | .contains => "CONTAINS" + | .eq => "EQ" + | .ge => "GE" + | .gt => "GT" + | .«in» => "IN" + | .le => "LE" + | .lt => "LT" + | .ne => "NE" + | .noT_CONTAINS => "NOT_CONTAINS" + | .noT_NULL => "NOT_NULL" + | .null => "NULL" + +def ComparisonOperator.wireValues : List (String × ComparisonOperator) := [ + ("BEGINS_WITH", .beginS_WITH), + ("BETWEEN", .between), + ("CONTAINS", .contains), + ("EQ", .eq), + ("GE", .ge), + ("GT", .gt), + ("IN", .«in»), + ("LE", .le), + ("LT", .lt), + ("NE", .ne), + ("NOT_CONTAINS", .noT_CONTAINS), + ("NOT_NULL", .noT_NULL), + ("NULL", .null)] + +def ComparisonOperator.ofWire (text : String) : Except String ComparisonOperator := + match List.find? (·.1 == text) ComparisonOperator.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ComparisonOperator has no value {text}" + +instance : Key ComparisonOperator := ⟨ComparisonOperator.wire, ComparisonOperator.ofWire⟩ + +instance : Shape ComparisonOperator where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ComparisonOperator.ofWire text + | _ => .error "expected a string" + +inductive ConditionalOperator where + | and + | or +deriving DecidableEq, Repr, Inhabited + +def ConditionalOperator.wire : ConditionalOperator → String + | .and => "AND" + | .or => "OR" + +def ConditionalOperator.wireValues : List (String × ConditionalOperator) := [ + ("AND", .and), + ("OR", .or)] + +def ConditionalOperator.ofWire (text : String) : Except String ConditionalOperator := + match List.find? (·.1 == text) ConditionalOperator.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ConditionalOperator has no value {text}" + +instance : Key ConditionalOperator := ⟨ConditionalOperator.wire, ConditionalOperator.ofWire⟩ + +instance : Shape ConditionalOperator where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ConditionalOperator.ofWire text + | _ => .error "expected a string" + +inductive ContinuousBackupsStatus where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def ContinuousBackupsStatus.wire : ContinuousBackupsStatus → String + | .disabled => "DISABLED" + | .enabled => "ENABLED" + +def ContinuousBackupsStatus.wireValues : List (String × ContinuousBackupsStatus) := [ + ("DISABLED", .disabled), + ("ENABLED", .enabled)] + +def ContinuousBackupsStatus.ofWire (text : String) : Except String ContinuousBackupsStatus := + match List.find? (·.1 == text) ContinuousBackupsStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ContinuousBackupsStatus has no value {text}" + +instance : Key ContinuousBackupsStatus := ⟨ContinuousBackupsStatus.wire, ContinuousBackupsStatus.ofWire⟩ + +instance : Shape ContinuousBackupsStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ContinuousBackupsStatus.ofWire text + | _ => .error "expected a string" + +/-- Backups have not yet been enabled for this table. -/ +structure ContinuousBackupsUnavailableException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ContinuousBackupsUnavailableException where + schema := .struct "ContinuousBackupsUnavailableException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +inductive ContributorInsightsAction where + | disable + | enable +deriving DecidableEq, Repr, Inhabited + +def ContributorInsightsAction.wire : ContributorInsightsAction → String + | .disable => "DISABLE" + | .enable => "ENABLE" + +def ContributorInsightsAction.wireValues : List (String × ContributorInsightsAction) := [ + ("DISABLE", .disable), + ("ENABLE", .enable)] + +def ContributorInsightsAction.ofWire (text : String) : Except String ContributorInsightsAction := + match List.find? (·.1 == text) ContributorInsightsAction.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ContributorInsightsAction has no value {text}" + +instance : Key ContributorInsightsAction := ⟨ContributorInsightsAction.wire, ContributorInsightsAction.ofWire⟩ + +instance : Shape ContributorInsightsAction where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ContributorInsightsAction.ofWire text + | _ => .error "expected a string" + +inductive ContributorInsightsMode where + | accesseD_AND_THROTTLED_KEYS + | throttleD_KEYS +deriving DecidableEq, Repr, Inhabited + +def ContributorInsightsMode.wire : ContributorInsightsMode → String + | .accesseD_AND_THROTTLED_KEYS => "ACCESSED_AND_THROTTLED_KEYS" + | .throttleD_KEYS => "THROTTLED_KEYS" + +def ContributorInsightsMode.wireValues : List (String × ContributorInsightsMode) := [ + ("ACCESSED_AND_THROTTLED_KEYS", .accesseD_AND_THROTTLED_KEYS), + ("THROTTLED_KEYS", .throttleD_KEYS)] + +def ContributorInsightsMode.ofWire (text : String) : Except String ContributorInsightsMode := + match List.find? (·.1 == text) ContributorInsightsMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ContributorInsightsMode has no value {text}" + +instance : Key ContributorInsightsMode := ⟨ContributorInsightsMode.wire, ContributorInsightsMode.ofWire⟩ + +instance : Shape ContributorInsightsMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ContributorInsightsMode.ofWire text + | _ => .error "expected a string" + +inductive ContributorInsightsStatus where + | disabled + | disabling + | enabled + | enabling + | failed +deriving DecidableEq, Repr, Inhabited + +def ContributorInsightsStatus.wire : ContributorInsightsStatus → String + | .disabled => "DISABLED" + | .disabling => "DISABLING" + | .enabled => "ENABLED" + | .enabling => "ENABLING" + | .failed => "FAILED" + +def ContributorInsightsStatus.wireValues : List (String × ContributorInsightsStatus) := [ + ("DISABLED", .disabled), + ("DISABLING", .disabling), + ("ENABLED", .enabled), + ("ENABLING", .enabling), + ("FAILED", .failed)] + +def ContributorInsightsStatus.ofWire (text : String) : Except String ContributorInsightsStatus := + match List.find? (·.1 == text) ContributorInsightsStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ContributorInsightsStatus has no value {text}" + +instance : Key ContributorInsightsStatus := ⟨ContributorInsightsStatus.wire, ContributorInsightsStatus.ofWire⟩ + +instance : Shape ContributorInsightsStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ContributorInsightsStatus.ofWire text + | _ => .error "expected a string" + +structure CreateBackupInput where + /-- Specified name for the backup. -/ + backupName : String + /-- The name of the table. -/ + tableName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateBackupInput where + schema := .struct "CreateBackupInput" [({ name := "BackupName", required := true }, .string), + ({ name := "TableName", required := true }, .string)] + toValue x := record [put "BackupName" x.backupName, put "TableName" x.tableName] + ofValue v := do + let backupName ← v.req "BackupName" + let tableName ← v.req "TableName" + return { backupName, tableName } + +/-- Specifies the action to add a new witness Region to a MRSC global table. -/ +structure CreateGlobalTableWitnessGroupMemberAction where + /-- The Amazon Web Services Region name to be added as a witness Region for the MRSC global table. -/ + regionName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateGlobalTableWitnessGroupMemberAction where + schema := .struct "CreateGlobalTableWitnessGroupMemberAction" [({ name := "RegionName", required := true }, .string)] + toValue x := record [put "RegionName" x.regionName] + ofValue v := do + let regionName ← v.req "RegionName" + return { regionName } + +/-- Represents a replica to be added. -/ +structure CreateReplicaAction where + /-- The Region of the replica to be added. -/ + regionName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateReplicaAction where + schema := .struct "CreateReplicaAction" [({ name := "RegionName", required := true }, .string)] + toValue x := record [put "RegionName" x.regionName] + ofValue v := do + let regionName ← v.req "RegionName" + return { regionName } + +/-- Processing options for the CSV file being imported. -/ +structure CsvOptions where + /-- The delimiter used for separating items in the CSV file being imported. -/ + delimiter : Option String := none + /-- List of the headers used to specify a common header for all source CSV files being imported. -/ + headerList : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CsvOptions where + schema := .struct "CsvOptions" [({ name := "Delimiter" }, .string), + ({ name := "HeaderList" }, (.list .string "member"))] + toValue x := record [putOpt "Delimiter" x.delimiter, putOpt "HeaderList" x.headerList] + ofValue v := do + let delimiter ← v.opt "Delimiter" + let headerList ← v.opt "HeaderList" + return { delimiter, headerList } + +structure DeleteBackupInput where + /-- The ARN associated with the backup. -/ + backupArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteBackupInput where + schema := .struct "DeleteBackupInput" [({ name := "BackupArn", required := true }, .string)] + toValue x := record [put "BackupArn" x.backupArn] + ofValue v := do + let backupArn ← v.req "BackupArn" + return { backupArn } + +/-- Represents a global secondary index to be deleted from an existing table. -/ +structure DeleteGlobalSecondaryIndexAction where + /-- The name of the global secondary index to be deleted. -/ + indexName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteGlobalSecondaryIndexAction where + schema := .struct "DeleteGlobalSecondaryIndexAction" [({ name := "IndexName", required := true }, .string)] + toValue x := record [put "IndexName" x.indexName] + ofValue v := do + let indexName ← v.req "IndexName" + return { indexName } + +/-- Specifies the action to remove a witness Region from a MRSC global table. -/ +structure DeleteGlobalTableWitnessGroupMemberAction where + /-- The witness Region name to be removed from the MRSC global table. -/ + regionName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteGlobalTableWitnessGroupMemberAction where + schema := .struct "DeleteGlobalTableWitnessGroupMemberAction" [({ name := "RegionName", required := true }, .string)] + toValue x := record [put "RegionName" x.regionName] + ofValue v := do + let regionName ← v.req "RegionName" + return { regionName } + +/-- Represents a replica to be removed. -/ +structure DeleteReplicaAction where + /-- The Region of the replica to be removed. -/ + regionName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteReplicaAction where + schema := .struct "DeleteReplicaAction" [({ name := "RegionName", required := true }, .string)] + toValue x := record [put "RegionName" x.regionName] + ofValue v := do + let regionName ← v.req "RegionName" + return { regionName } + +/-- Represents a replica to be deleted. -/ +structure DeleteReplicationGroupMemberAction where + /-- The Region where the replica exists. -/ + regionName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteReplicationGroupMemberAction where + schema := .struct "DeleteReplicationGroupMemberAction" [({ name := "RegionName", required := true }, .string)] + toValue x := record [put "RegionName" x.regionName] + ofValue v := do + let regionName ← v.req "RegionName" + return { regionName } + +structure DeleteResourcePolicyInput where + /-- A string value that you can use to conditionally delete your policy. -/ + expectedRevisionId : Option String := none + /-- The Amazon Resource Name (ARN) of the DynamoDB resource from which the policy will be removed. -/ + resourceArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteResourcePolicyInput where + schema := .struct "DeleteResourcePolicyInput" [({ name := "ExpectedRevisionId" }, .string), + ({ name := "ResourceArn", required := true }, .string)] + toValue x := record [putOpt "ExpectedRevisionId" x.expectedRevisionId, put "ResourceArn" x.resourceArn] + ofValue v := do + let expectedRevisionId ← v.opt "ExpectedRevisionId" + let resourceArn ← v.req "ResourceArn" + return { expectedRevisionId, resourceArn } + +structure DeleteResourcePolicyOutput where + /-- A unique string that represents the revision ID of the policy. -/ + revisionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteResourcePolicyOutput where + schema := .struct "DeleteResourcePolicyOutput" [({ name := "RevisionId" }, .string)] + toValue x := record [putOpt "RevisionId" x.revisionId] + ofValue v := do + let revisionId ← v.opt "RevisionId" + return { revisionId } + +/-- Represents the input of a DeleteTable operation. -/ +structure DeleteTableInput where + /-- The name of the table to delete. -/ + tableName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTableInput where + schema := .struct "DeleteTableInput" [({ name := "TableName", required := true }, .string)] + toValue x := record [put "TableName" x.tableName] + ofValue v := do + let tableName ← v.req "TableName" + return { tableName } + +/-- A vector index to be removed from a table. -/ +structure DeleteVectorIndexAction where + /-- The name of the vector index to delete. -/ + indexName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVectorIndexAction where + schema := .struct "DeleteVectorIndexAction" [({ name := "IndexName", required := true }, .string)] + toValue x := record [put "IndexName" x.indexName] + ofValue v := do + let indexName ← v.req "IndexName" + return { indexName } + +structure DescribeBackupInput where + /-- The Amazon Resource Name (ARN) associated with the backup. -/ + backupArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeBackupInput where + schema := .struct "DescribeBackupInput" [({ name := "BackupArn", required := true }, .string)] + toValue x := record [put "BackupArn" x.backupArn] + ofValue v := do + let backupArn ← v.req "BackupArn" + return { backupArn } + +structure DescribeBulkOperationInput where + /-- The Amazon Resource Name (ARN) of the bulk operation to describe. -/ + bulkOperationArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeBulkOperationInput where + schema := .struct "DescribeBulkOperationInput" [({ name := "BulkOperationArn", required := true }, .string)] + toValue x := record [put "BulkOperationArn" x.bulkOperationArn] + ofValue v := do + let bulkOperationArn ← v.req "BulkOperationArn" + return { bulkOperationArn } + +structure DescribeContinuousBackupsInput where + /-- Name of the table for which the customer wants to check the continuous backups and point in time recovery settings. -/ + tableName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeContinuousBackupsInput where + schema := .struct "DescribeContinuousBackupsInput" [({ name := "TableName", required := true }, .string)] + toValue x := record [put "TableName" x.tableName] + ofValue v := do + let tableName ← v.req "TableName" + return { tableName } + +structure DescribeContributorInsightsInput where + /-- The name of the global secondary index to describe, if applicable. -/ + indexName : Option String := none + /-- The name of the table to describe. -/ + tableName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeContributorInsightsInput where + schema := .struct "DescribeContributorInsightsInput" [({ name := "IndexName" }, .string), + ({ name := "TableName", required := true }, .string)] + toValue x := record [putOpt "IndexName" x.indexName, put "TableName" x.tableName] + ofValue v := do + let indexName ← v.opt "IndexName" + let tableName ← v.req "TableName" + return { indexName, tableName } + +structure DescribeEndpointsRequest where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeEndpointsRequest where + schema := .struct "DescribeEndpointsRequest" [] + toValue _ := record [] + ofValue _ := do + return { } + +structure DescribeExportInput where + /-- The Amazon Resource Name (ARN) associated with the export. -/ + exportArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeExportInput where + schema := .struct "DescribeExportInput" [({ name := "ExportArn", required := true }, .string)] + toValue x := record [put "ExportArn" x.exportArn] + ofValue v := do + let exportArn ← v.req "ExportArn" + return { exportArn } + +structure DescribeGlobalTableInput where + /-- The name of the global table. -/ + globalTableName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeGlobalTableInput where + schema := .struct "DescribeGlobalTableInput" [({ name := "GlobalTableName", required := true }, .string)] + toValue x := record [put "GlobalTableName" x.globalTableName] + ofValue v := do + let globalTableName ← v.req "GlobalTableName" + return { globalTableName } + +structure DescribeGlobalTableSettingsInput where + /-- The name of the global table to describe. -/ + globalTableName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeGlobalTableSettingsInput where + schema := .struct "DescribeGlobalTableSettingsInput" [({ name := "GlobalTableName", required := true }, .string)] + toValue x := record [put "GlobalTableName" x.globalTableName] + ofValue v := do + let globalTableName ← v.req "GlobalTableName" + return { globalTableName } + +structure DescribeImportInput where + /-- The Amazon Resource Name (ARN) associated with the table you're importing to. -/ + importArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeImportInput where + schema := .struct "DescribeImportInput" [({ name := "ImportArn", required := true }, .string)] + toValue x := record [put "ImportArn" x.importArn] + ofValue v := do + let importArn ← v.req "ImportArn" + return { importArn } + +structure DescribeKinesisStreamingDestinationInput where + /-- The name of the table being described. -/ + tableName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeKinesisStreamingDestinationInput where + schema := .struct "DescribeKinesisStreamingDestinationInput" [({ name := "TableName", required := true }, .string)] + toValue x := record [put "TableName" x.tableName] + ofValue v := do + let tableName ← v.req "TableName" + return { tableName } + +/-- Represents the input of a DescribeLimits operation. -/ +structure DescribeLimitsInput where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeLimitsInput where + schema := .struct "DescribeLimitsInput" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- Represents the output of a DescribeLimits operation. -/ +structure DescribeLimitsOutput where + /-- The maximum total read capacity units that your account allows you to provision across all of your tables in this Region. -/ + accountMaxReadCapacityUnits : Option Int := none + /-- The maximum total write capacity units that your account allows you to provision across all of your tables in this Region. -/ + accountMaxWriteCapacityUnits : Option Int := none + /-- The maximum read capacity units that your account allows you to provision for a new table that you are creating in this Region, including the read capacity units provisioned for its global secondary indexes (GSIs). -/ + tableMaxReadCapacityUnits : Option Int := none + /-- The maximum write capacity units that your account allows you to provision for a new table that you are creating in this Region, including the write capacity units provisioned for its global secondary indexes (GSIs). -/ + tableMaxWriteCapacityUnits : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeLimitsOutput where + schema := .struct "DescribeLimitsOutput" [({ name := "AccountMaxReadCapacityUnits" }, .int), + ({ name := "AccountMaxWriteCapacityUnits" }, .int), + ({ name := "TableMaxReadCapacityUnits" }, .int), + ({ name := "TableMaxWriteCapacityUnits" }, .int)] + toValue x := record [putOpt "AccountMaxReadCapacityUnits" x.accountMaxReadCapacityUnits, putOpt "AccountMaxWriteCapacityUnits" x.accountMaxWriteCapacityUnits, putOpt "TableMaxReadCapacityUnits" x.tableMaxReadCapacityUnits, putOpt "TableMaxWriteCapacityUnits" x.tableMaxWriteCapacityUnits] + ofValue v := do + let accountMaxReadCapacityUnits ← v.opt "AccountMaxReadCapacityUnits" + let accountMaxWriteCapacityUnits ← v.opt "AccountMaxWriteCapacityUnits" + let tableMaxReadCapacityUnits ← v.opt "TableMaxReadCapacityUnits" + let tableMaxWriteCapacityUnits ← v.opt "TableMaxWriteCapacityUnits" + return { accountMaxReadCapacityUnits, accountMaxWriteCapacityUnits, tableMaxReadCapacityUnits, tableMaxWriteCapacityUnits } + +/-- Represents the input of a DescribeTable operation. -/ +structure DescribeTableInput where + /-- The name of the table to describe. -/ + tableName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTableInput where + schema := .struct "DescribeTableInput" [({ name := "TableName", required := true }, .string)] + toValue x := record [put "TableName" x.tableName] + ofValue v := do + let tableName ← v.req "TableName" + return { tableName } + +structure DescribeTableReplicaAutoScalingInput where + /-- The name of the table. -/ + tableName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTableReplicaAutoScalingInput where + schema := .struct "DescribeTableReplicaAutoScalingInput" [({ name := "TableName", required := true }, .string)] + toValue x := record [put "TableName" x.tableName] + ofValue v := do + let tableName ← v.req "TableName" + return { tableName } + +structure DescribeTimeToLiveInput where + /-- The name of the table to be described. -/ + tableName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTimeToLiveInput where + schema := .struct "DescribeTimeToLiveInput" [({ name := "TableName", required := true }, .string)] + toValue x := record [put "TableName" x.tableName] + ofValue v := do + let tableName ← v.req "TableName" + return { tableName } + +inductive DestinationStatus where + | active + | disabled + | disabling + | enablE_FAILED + | enabling + | updating +deriving DecidableEq, Repr, Inhabited + +def DestinationStatus.wire : DestinationStatus → String + | .active => "ACTIVE" + | .disabled => "DISABLED" + | .disabling => "DISABLING" + | .enablE_FAILED => "ENABLE_FAILED" + | .enabling => "ENABLING" + | .updating => "UPDATING" + +def DestinationStatus.wireValues : List (String × DestinationStatus) := [ + ("ACTIVE", .active), + ("DISABLED", .disabled), + ("DISABLING", .disabling), + ("ENABLE_FAILED", .enablE_FAILED), + ("ENABLING", .enabling), + ("UPDATING", .updating)] + +def DestinationStatus.ofWire (text : String) : Except String DestinationStatus := + match List.find? (·.1 == text) DestinationStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DestinationStatus has no value {text}" + +instance : Key DestinationStatus := ⟨DestinationStatus.wire, DestinationStatus.ofWire⟩ + +instance : Shape DestinationStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DestinationStatus.ofWire text + | _ => .error "expected a string" + +/-- Specifies how pending replication is handled before a replica is disassociated. -/ +inductive DisassociationMode where + | waiT_FOR_REPLICATION +deriving DecidableEq, Repr, Inhabited + +def DisassociationMode.wire : DisassociationMode → String + | .waiT_FOR_REPLICATION => "WAIT_FOR_REPLICATION" + +def DisassociationMode.wireValues : List (String × DisassociationMode) := [ + ("WAIT_FOR_REPLICATION", .waiT_FOR_REPLICATION)] + +def DisassociationMode.ofWire (text : String) : Except String DisassociationMode := + match List.find? (·.1 == text) DisassociationMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DisassociationMode has no value {text}" + +instance : Key DisassociationMode := ⟨DisassociationMode.wire, DisassociationMode.ofWire⟩ + +instance : Shape DisassociationMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DisassociationMode.ofWire text + | _ => .error "expected a string" + +/-- There was an attempt to insert an item with the same primary key as an item that already exists in the DynamoDB table. -/ +structure DuplicateItemException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DuplicateItemException where + schema := .struct "DuplicateItemException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- An endpoint information details. -/ +structure Endpoint where + /-- IP address of the endpoint. -/ + address : String + /-- Endpoint cache time to live (TTL) value. -/ + cachePeriodInMinutes : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape Endpoint where + schema := .struct "Endpoint" [({ name := "Address", required := true }, .string), + ({ name := "CachePeriodInMinutes", required := true }, .int)] + toValue x := record [put "Address" x.address, put "CachePeriodInMinutes" x.cachePeriodInMinutes] + ofValue v := do + let address ← v.req "Address" + let cachePeriodInMinutes ← v.req "CachePeriodInMinutes" + return { address, cachePeriodInMinutes } + +/-- There was a conflict when writing to the specified S3 bucket. -/ +structure ExportConflictException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExportConflictException where + schema := .struct "ExportConflictException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +inductive ExportFormat where + | dynamodB_JSON + | ion +deriving DecidableEq, Repr, Inhabited + +def ExportFormat.wire : ExportFormat → String + | .dynamodB_JSON => "DYNAMODB_JSON" + | .ion => "ION" + +def ExportFormat.wireValues : List (String × ExportFormat) := [ + ("DYNAMODB_JSON", .dynamodB_JSON), + ("ION", .ion)] + +def ExportFormat.ofWire (text : String) : Except String ExportFormat := + match List.find? (·.1 == text) ExportFormat.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ExportFormat has no value {text}" + +instance : Key ExportFormat := ⟨ExportFormat.wire, ExportFormat.ofWire⟩ + +instance : Shape ExportFormat where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ExportFormat.ofWire text + | _ => .error "expected a string" + +/-- The specified export was not found. -/ +structure ExportNotFoundException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExportNotFoundException where + schema := .struct "ExportNotFoundException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +inductive ExportStatus where + | completed + | failed + | iN_PROGRESS +deriving DecidableEq, Repr, Inhabited + +def ExportStatus.wire : ExportStatus → String + | .completed => "COMPLETED" + | .failed => "FAILED" + | .iN_PROGRESS => "IN_PROGRESS" + +def ExportStatus.wireValues : List (String × ExportStatus) := [ + ("COMPLETED", .completed), + ("FAILED", .failed), + ("IN_PROGRESS", .iN_PROGRESS)] + +def ExportStatus.ofWire (text : String) : Except String ExportStatus := + match List.find? (·.1 == text) ExportStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ExportStatus has no value {text}" + +instance : Key ExportStatus := ⟨ExportStatus.wire, ExportStatus.ofWire⟩ + +instance : Shape ExportStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ExportStatus.ofWire text + | _ => .error "expected a string" + +inductive ExportType where + | fulL_EXPORT + | incrementaL_EXPORT +deriving DecidableEq, Repr, Inhabited + +def ExportType.wire : ExportType → String + | .fulL_EXPORT => "FULL_EXPORT" + | .incrementaL_EXPORT => "INCREMENTAL_EXPORT" + +def ExportType.wireValues : List (String × ExportType) := [ + ("FULL_EXPORT", .fulL_EXPORT), + ("INCREMENTAL_EXPORT", .incrementaL_EXPORT)] + +def ExportType.ofWire (text : String) : Except String ExportType := + match List.find? (·.1 == text) ExportType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ExportType has no value {text}" + +instance : Key ExportType := ⟨ExportType.wire, ExportType.ofWire⟩ + +instance : Shape ExportType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ExportType.ofWire text + | _ => .error "expected a string" + +inductive ExportViewType where + | neW_AND_OLD_IMAGES + | neW_IMAGE +deriving DecidableEq, Repr, Inhabited + +def ExportViewType.wire : ExportViewType → String + | .neW_AND_OLD_IMAGES => "NEW_AND_OLD_IMAGES" + | .neW_IMAGE => "NEW_IMAGE" + +def ExportViewType.wireValues : List (String × ExportViewType) := [ + ("NEW_AND_OLD_IMAGES", .neW_AND_OLD_IMAGES), + ("NEW_IMAGE", .neW_IMAGE)] + +def ExportViewType.ofWire (text : String) : Except String ExportViewType := + match List.find? (·.1 == text) ExportViewType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ExportViewType has no value {text}" + +instance : Key ExportViewType := ⟨ExportViewType.wire, ExportViewType.ofWire⟩ + +instance : Shape ExportViewType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ExportViewType.ofWire text + | _ => .error "expected a string" + +/-- Represents a failure a contributor insights operation. -/ +structure FailureException where + /-- Description of the failure. -/ + exceptionDescription : Option String := none + /-- Exception name. -/ + exceptionName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FailureException where + schema := .struct "FailureException" [({ name := "ExceptionDescription" }, .string), + ({ name := "ExceptionName" }, .string)] + toValue x := record [putOpt "ExceptionDescription" x.exceptionDescription, putOpt "ExceptionName" x.exceptionName] + ofValue v := do + let exceptionDescription ← v.opt "ExceptionDescription" + let exceptionName ← v.opt "ExceptionName" + return { exceptionDescription, exceptionName } + +structure GetResourcePolicyInput where + /-- The Amazon Resource Name (ARN) of the DynamoDB resource to which the policy is attached. -/ + resourceArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetResourcePolicyInput where + schema := .struct "GetResourcePolicyInput" [({ name := "ResourceArn", required := true }, .string)] + toValue x := record [put "ResourceArn" x.resourceArn] + ofValue v := do + let resourceArn ← v.req "ResourceArn" + return { resourceArn } + +structure GetResourcePolicyOutput where + /-- The resource-based policy document attached to the resource, which can be a table or stream, in JSON format. -/ + policy : Option String := none + /-- A unique string that represents the revision ID of the policy. -/ + revisionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetResourcePolicyOutput where + schema := .struct "GetResourcePolicyOutput" [({ name := "Policy" }, .string), + ({ name := "RevisionId" }, .string)] + toValue x := record [putOpt "Policy" x.policy, putOpt "RevisionId" x.revisionId] + ofValue v := do + let policy ← v.opt "Policy" + let revisionId ← v.opt "RevisionId" + return { policy, revisionId } + +/-- The specified global table already exists. -/ +structure GlobalTableAlreadyExistsException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GlobalTableAlreadyExistsException where + schema := .struct "GlobalTableAlreadyExistsException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The specified global table does not exist. -/ +structure GlobalTableNotFoundException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GlobalTableNotFoundException where + schema := .struct "GlobalTableNotFoundException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +inductive GlobalTableSettingsReplicationMode where + | disabled + | enabled + | enableD_WITH_OVERRIDES +deriving DecidableEq, Repr, Inhabited + +def GlobalTableSettingsReplicationMode.wire : GlobalTableSettingsReplicationMode → String + | .disabled => "DISABLED" + | .enabled => "ENABLED" + | .enableD_WITH_OVERRIDES => "ENABLED_WITH_OVERRIDES" + +def GlobalTableSettingsReplicationMode.wireValues : List (String × GlobalTableSettingsReplicationMode) := [ + ("DISABLED", .disabled), + ("ENABLED", .enabled), + ("ENABLED_WITH_OVERRIDES", .enableD_WITH_OVERRIDES)] + +def GlobalTableSettingsReplicationMode.ofWire (text : String) : Except String GlobalTableSettingsReplicationMode := + match List.find? (·.1 == text) GlobalTableSettingsReplicationMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"GlobalTableSettingsReplicationMode has no value {text}" + +instance : Key GlobalTableSettingsReplicationMode := ⟨GlobalTableSettingsReplicationMode.wire, GlobalTableSettingsReplicationMode.ofWire⟩ + +instance : Shape GlobalTableSettingsReplicationMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => GlobalTableSettingsReplicationMode.ofWire text + | _ => .error "expected a string" + +inductive GlobalTableStatus where + | active + | creating + | deleting + | updating +deriving DecidableEq, Repr, Inhabited + +def GlobalTableStatus.wire : GlobalTableStatus → String + | .active => "ACTIVE" + | .creating => "CREATING" + | .deleting => "DELETING" + | .updating => "UPDATING" + +def GlobalTableStatus.wireValues : List (String × GlobalTableStatus) := [ + ("ACTIVE", .active), + ("CREATING", .creating), + ("DELETING", .deleting), + ("UPDATING", .updating)] + +def GlobalTableStatus.ofWire (text : String) : Except String GlobalTableStatus := + match List.find? (·.1 == text) GlobalTableStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"GlobalTableStatus has no value {text}" + +instance : Key GlobalTableStatus := ⟨GlobalTableStatus.wire, GlobalTableStatus.ofWire⟩ + +instance : Shape GlobalTableStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => GlobalTableStatus.ofWire text + | _ => .error "expected a string" + +/-- DynamoDB rejected the request because you retried a request with a different payload but with an idempotent token that was already used. -/ +structure IdempotentParameterMismatchException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IdempotentParameterMismatchException where + schema := .struct "IdempotentParameterMismatchException" [({ name := "Message" }, .string)] + toValue x := record [putOpt "Message" x.message] + ofValue v := do + let message ← v.opt "Message" + return { message } + +/-- There was a conflict when importing from the specified S3 source. -/ +structure ImportConflictException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportConflictException where + schema := .struct "ImportConflictException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The specified import was not found. -/ +structure ImportNotFoundException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportNotFoundException where + schema := .struct "ImportNotFoundException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +inductive ImportStatus where + | cancelled + | cancelling + | completed + | failed + | iN_PROGRESS +deriving DecidableEq, Repr, Inhabited + +def ImportStatus.wire : ImportStatus → String + | .cancelled => "CANCELLED" + | .cancelling => "CANCELLING" + | .completed => "COMPLETED" + | .failed => "FAILED" + | .iN_PROGRESS => "IN_PROGRESS" + +def ImportStatus.wireValues : List (String × ImportStatus) := [ + ("CANCELLED", .cancelled), + ("CANCELLING", .cancelling), + ("COMPLETED", .completed), + ("FAILED", .failed), + ("IN_PROGRESS", .iN_PROGRESS)] + +def ImportStatus.ofWire (text : String) : Except String ImportStatus := + match List.find? (·.1 == text) ImportStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ImportStatus has no value {text}" + +instance : Key ImportStatus := ⟨ImportStatus.wire, ImportStatus.ofWire⟩ + +instance : Shape ImportStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ImportStatus.ofWire text + | _ => .error "expected a string" + +/-- The operation tried to access a nonexistent index. -/ +structure IndexNotFoundException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IndexNotFoundException where + schema := .struct "IndexNotFoundException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +inductive IndexStatus where + | active + | creating + | deleting + | updating +deriving DecidableEq, Repr, Inhabited + +def IndexStatus.wire : IndexStatus → String + | .active => "ACTIVE" + | .creating => "CREATING" + | .deleting => "DELETING" + | .updating => "UPDATING" + +def IndexStatus.wireValues : List (String × IndexStatus) := [ + ("ACTIVE", .active), + ("CREATING", .creating), + ("DELETING", .deleting), + ("UPDATING", .updating)] + +def IndexStatus.ofWire (text : String) : Except String IndexStatus := + match List.find? (·.1 == text) IndexStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IndexStatus has no value {text}" + +instance : Key IndexStatus := ⟨IndexStatus.wire, IndexStatus.ofWire⟩ + +instance : Shape IndexStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IndexStatus.ofWire text + | _ => .error "expected a string" + +inductive InputCompressionType where + | gzip + | none + | zstd +deriving DecidableEq, Repr, Inhabited + +def InputCompressionType.wire : InputCompressionType → String + | .gzip => "GZIP" + | .none => "NONE" + | .zstd => "ZSTD" + +def InputCompressionType.wireValues : List (String × InputCompressionType) := [ + ("GZIP", .gzip), + ("NONE", .none), + ("ZSTD", .zstd)] + +def InputCompressionType.ofWire (text : String) : Except String InputCompressionType := + match List.find? (·.1 == text) InputCompressionType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InputCompressionType has no value {text}" + +instance : Key InputCompressionType := ⟨InputCompressionType.wire, InputCompressionType.ofWire⟩ + +instance : Shape InputCompressionType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InputCompressionType.ofWire text + | _ => .error "expected a string" + +inductive InputFormat where + | csv + | dynamodB_JSON + | ion +deriving DecidableEq, Repr, Inhabited + +def InputFormat.wire : InputFormat → String + | .csv => "CSV" + | .dynamodB_JSON => "DYNAMODB_JSON" + | .ion => "ION" + +def InputFormat.wireValues : List (String × InputFormat) := [ + ("CSV", .csv), + ("DYNAMODB_JSON", .dynamodB_JSON), + ("ION", .ion)] + +def InputFormat.ofWire (text : String) : Except String InputFormat := + match List.find? (·.1 == text) InputFormat.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InputFormat has no value {text}" + +instance : Key InputFormat := ⟨InputFormat.wire, InputFormat.ofWire⟩ + +instance : Shape InputFormat where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InputFormat.ofWire text + | _ => .error "expected a string" + +/-- An error occurred on the server side. -/ +structure InternalServerError where + /-- The server encountered an internal error trying to fulfill the request. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InternalServerError where + schema := .struct "InternalServerError" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +structure InvalidEndpointException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidEndpointException where + schema := .struct "InvalidEndpointException" [({ name := "Message" }, .string)] + toValue x := record [putOpt "Message" x.message] + ofValue v := do + let message ← v.opt "Message" + return { message } + +/-- The specified ExportTime is outside of the point in time recovery window. -/ +structure InvalidExportTimeException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidExportTimeException where + schema := .struct "InvalidExportTimeException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- An invalid restore time was specified. -/ +structure InvalidRestoreTimeException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidRestoreTimeException where + schema := .struct "InvalidRestoreTimeException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- An item collection is too large. -/ +structure ItemCollectionSizeLimitExceededException where + /-- The total size of an item collection has exceeded the maximum limit of 10 gigabytes. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ItemCollectionSizeLimitExceededException where + schema := .struct "ItemCollectionSizeLimitExceededException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +inductive KeyType where + | hash + | range +deriving DecidableEq, Repr, Inhabited + +def KeyType.wire : KeyType → String + | .hash => "HASH" + | .range => "RANGE" + +def KeyType.wireValues : List (String × KeyType) := [ + ("HASH", .hash), + ("RANGE", .range)] + +def KeyType.ofWire (text : String) : Except String KeyType := + match List.find? (·.1 == text) KeyType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"KeyType has no value {text}" + +instance : Key KeyType := ⟨KeyType.wire, KeyType.ofWire⟩ + +instance : Shape KeyType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => KeyType.ofWire text + | _ => .error "expected a string" + +/-- There is no limit to the number of daily on-demand backups that can be taken. -/ +structure LimitExceededException where + /-- Too many operations for a given subscriber. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LimitExceededException where + schema := .struct "LimitExceededException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +structure ListBulkOperationsInput where + /-- The maximum number of bulk operation summaries to return in one page. -/ + maxResults : Option Int := none + /-- An optional string that, if supplied, must be copied from the output of a previous call to ListBulkOperations . -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListBulkOperationsInput where + schema := .struct "ListBulkOperationsInput" [({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { maxResults, nextToken } + +structure ListContributorInsightsInput where + /-- Maximum number of results to return per page. -/ + maxResults : Option Int := none + /-- A token to for the desired page, if there is one. -/ + nextToken : Option String := none + /-- The name of the table. -/ + tableName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListContributorInsightsInput where + schema := .struct "ListContributorInsightsInput" [({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TableName" }, .string)] + toValue x := record [putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "TableName" x.tableName] + ofValue v := do + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let tableName ← v.opt "TableName" + return { maxResults, nextToken, tableName } + +structure ListExportsInput where + /-- Maximum number of results to return per page. -/ + maxResults : Option Int := none + /-- An optional string that, if supplied, must be copied from the output of a previous call to ListExports . -/ + nextToken : Option String := none + /-- The Amazon Resource Name (ARN) associated with the exported table. -/ + tableArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListExportsInput where + schema := .struct "ListExportsInput" [({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TableArn" }, .string)] + toValue x := record [putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "TableArn" x.tableArn] + ofValue v := do + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let tableArn ← v.opt "TableArn" + return { maxResults, nextToken, tableArn } + +structure ListGlobalTablesInput where + /-- The first global table name that this operation will evaluate. -/ + exclusiveStartGlobalTableName : Option String := none + /-- The maximum number of table names to return, if the parameter is not specified DynamoDB defaults to 100. -/ + limit : Option Int := none + /-- Lists the global tables in a specific Region. -/ + regionName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListGlobalTablesInput where + schema := .struct "ListGlobalTablesInput" [({ name := "ExclusiveStartGlobalTableName" }, .string), + ({ name := "Limit" }, .int), + ({ name := "RegionName" }, .string)] + toValue x := record [putOpt "ExclusiveStartGlobalTableName" x.exclusiveStartGlobalTableName, putOpt "Limit" x.limit, putOpt "RegionName" x.regionName] + ofValue v := do + let exclusiveStartGlobalTableName ← v.opt "ExclusiveStartGlobalTableName" + let limit ← v.opt "Limit" + let regionName ← v.opt "RegionName" + return { exclusiveStartGlobalTableName, limit, regionName } + +structure ListImportsInput where + /-- An optional string that, if supplied, must be copied from the output of a previous call to ListImports . -/ + nextToken : Option String := none + /-- The number of ImportSummary objects returned in a single page. -/ + pageSize : Option Int := none + /-- The Amazon Resource Name (ARN) associated with the table that was imported to. -/ + tableArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListImportsInput where + schema := .struct "ListImportsInput" [({ name := "NextToken" }, .string), + ({ name := "PageSize" }, .int), + ({ name := "TableArn" }, .string)] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "PageSize" x.pageSize, putOpt "TableArn" x.tableArn] + ofValue v := do + let nextToken ← v.opt "NextToken" + let pageSize ← v.opt "PageSize" + let tableArn ← v.opt "TableArn" + return { nextToken, pageSize, tableArn } + +/-- Represents the input of a ListTables operation. -/ +structure ListTablesInput where + /-- The first table name that this operation will evaluate. -/ + exclusiveStartTableName : Option String := none + /-- A maximum number of table names to return. -/ + limit : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListTablesInput where + schema := .struct "ListTablesInput" [({ name := "ExclusiveStartTableName" }, .string), + ({ name := "Limit" }, .int)] + toValue x := record [putOpt "ExclusiveStartTableName" x.exclusiveStartTableName, putOpt "Limit" x.limit] + ofValue v := do + let exclusiveStartTableName ← v.opt "ExclusiveStartTableName" + let limit ← v.opt "Limit" + return { exclusiveStartTableName, limit } + +/-- Represents the output of a ListTables operation. -/ +structure ListTablesOutput where + /-- The name of the last table in the current page of results. -/ + lastEvaluatedTableName : Option String := none + /-- The names of the tables associated with the current account at the current endpoint. -/ + tableNames : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListTablesOutput where + schema := .struct "ListTablesOutput" [({ name := "LastEvaluatedTableName" }, .string), + ({ name := "TableNames" }, (.list .string "member"))] + toValue x := record [putOpt "LastEvaluatedTableName" x.lastEvaluatedTableName, putOpt "TableNames" x.tableNames] + ofValue v := do + let lastEvaluatedTableName ← v.opt "LastEvaluatedTableName" + let tableNames ← v.opt "TableNames" + return { lastEvaluatedTableName, tableNames } + +structure ListTagsOfResourceInput where + /-- An optional string that, if supplied, must be copied from the output of a previous call to ListTagOfResource. -/ + nextToken : Option String := none + /-- The Amazon DynamoDB resource with tags to be listed. -/ + resourceArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListTagsOfResourceInput where + schema := .struct "ListTagsOfResourceInput" [({ name := "NextToken" }, .string), + ({ name := "ResourceArn", required := true }, .string)] + toValue x := record [putOpt "NextToken" x.nextToken, put "ResourceArn" x.resourceArn] + ofValue v := do + let nextToken ← v.opt "NextToken" + let resourceArn ← v.req "ResourceArn" + return { nextToken, resourceArn } + +inductive MultiRegionConsistency where + | eventual + | strong +deriving DecidableEq, Repr, Inhabited + +def MultiRegionConsistency.wire : MultiRegionConsistency → String + | .eventual => "EVENTUAL" + | .strong => "STRONG" + +def MultiRegionConsistency.wireValues : List (String × MultiRegionConsistency) := [ + ("EVENTUAL", .eventual), + ("STRONG", .strong)] + +def MultiRegionConsistency.ofWire (text : String) : Except String MultiRegionConsistency := + match List.find? (·.1 == text) MultiRegionConsistency.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"MultiRegionConsistency has no value {text}" + +instance : Key MultiRegionConsistency := ⟨MultiRegionConsistency.wire, MultiRegionConsistency.ofWire⟩ + +instance : Shape MultiRegionConsistency where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => MultiRegionConsistency.ofWire text + | _ => .error "expected a string" + +/-- Sets the maximum number of read and write units for the specified on-demand table. -/ +structure OnDemandThroughput where + /-- Maximum number of read request units for the specified table. -/ + maxReadRequestUnits : Option Int := none + /-- Maximum number of write request units for the specified table. -/ + maxWriteRequestUnits : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape OnDemandThroughput where + schema := .struct "OnDemandThroughput" [({ name := "MaxReadRequestUnits" }, .int), + ({ name := "MaxWriteRequestUnits" }, .int)] + toValue x := record [putOpt "MaxReadRequestUnits" x.maxReadRequestUnits, putOpt "MaxWriteRequestUnits" x.maxWriteRequestUnits] + ofValue v := do + let maxReadRequestUnits ← v.opt "MaxReadRequestUnits" + let maxWriteRequestUnits ← v.opt "MaxWriteRequestUnits" + return { maxReadRequestUnits, maxWriteRequestUnits } + +/-- Overrides the on-demand throughput settings for this replica table. -/ +structure OnDemandThroughputOverride where + /-- Maximum number of read request units for the specified replica table. -/ + maxReadRequestUnits : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape OnDemandThroughputOverride where + schema := .struct "OnDemandThroughputOverride" [({ name := "MaxReadRequestUnits" }, .int)] + toValue x := record [putOpt "MaxReadRequestUnits" x.maxReadRequestUnits] + ofValue v := do + let maxReadRequestUnits ← v.opt "MaxReadRequestUnits" + return { maxReadRequestUnits } + +inductive OutputTypeEnum where + | conditioN_CHECK_FAILURE + | error +deriving DecidableEq, Repr, Inhabited + +def OutputTypeEnum.wire : OutputTypeEnum → String + | .conditioN_CHECK_FAILURE => "CONDITION_CHECK_FAILURE" + | .error => "ERROR" + +def OutputTypeEnum.wireValues : List (String × OutputTypeEnum) := [ + ("CONDITION_CHECK_FAILURE", .conditioN_CHECK_FAILURE), + ("ERROR", .error)] + +def OutputTypeEnum.ofWire (text : String) : Except String OutputTypeEnum := + match List.find? (·.1 == text) OutputTypeEnum.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"OutputTypeEnum has no value {text}" + +instance : Key OutputTypeEnum := ⟨OutputTypeEnum.wire, OutputTypeEnum.ofWire⟩ + +instance : Shape OutputTypeEnum where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => OutputTypeEnum.ofWire text + | _ => .error "expected a string" + +/-- Represents the settings used to enable point in time recovery. -/ +structure PointInTimeRecoverySpecification where + /-- Indicates whether point in time recovery is enabled (true) or disabled (false) on the table. -/ + pointInTimeRecoveryEnabled : Bool + /-- The number of preceding days for which continuous backups are taken and maintained. -/ + recoveryPeriodInDays : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PointInTimeRecoverySpecification where + schema := .struct "PointInTimeRecoverySpecification" [({ name := "PointInTimeRecoveryEnabled", required := true }, .bool), + ({ name := "RecoveryPeriodInDays" }, .int)] + toValue x := record [put "PointInTimeRecoveryEnabled" x.pointInTimeRecoveryEnabled, putOpt "RecoveryPeriodInDays" x.recoveryPeriodInDays] + ofValue v := do + let pointInTimeRecoveryEnabled ← v.req "PointInTimeRecoveryEnabled" + let recoveryPeriodInDays ← v.opt "RecoveryPeriodInDays" + return { pointInTimeRecoveryEnabled, recoveryPeriodInDays } + +inductive PointInTimeRecoveryStatus where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def PointInTimeRecoveryStatus.wire : PointInTimeRecoveryStatus → String + | .disabled => "DISABLED" + | .enabled => "ENABLED" + +def PointInTimeRecoveryStatus.wireValues : List (String × PointInTimeRecoveryStatus) := [ + ("DISABLED", .disabled), + ("ENABLED", .enabled)] + +def PointInTimeRecoveryStatus.ofWire (text : String) : Except String PointInTimeRecoveryStatus := + match List.find? (·.1 == text) PointInTimeRecoveryStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"PointInTimeRecoveryStatus has no value {text}" + +instance : Key PointInTimeRecoveryStatus := ⟨PointInTimeRecoveryStatus.wire, PointInTimeRecoveryStatus.ofWire⟩ + +instance : Shape PointInTimeRecoveryStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => PointInTimeRecoveryStatus.ofWire text + | _ => .error "expected a string" + +/-- Point in time recovery has not yet been enabled for this source table. -/ +structure PointInTimeRecoveryUnavailableException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PointInTimeRecoveryUnavailableException where + schema := .struct "PointInTimeRecoveryUnavailableException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The operation tried to access a nonexistent resource-based policy. -/ +structure PolicyNotFoundException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PolicyNotFoundException where + schema := .struct "PolicyNotFoundException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +inductive ProjectionType where + | all + | include + | keyS_ONLY +deriving DecidableEq, Repr, Inhabited + +def ProjectionType.wire : ProjectionType → String + | .all => "ALL" + | .include => "INCLUDE" + | .keyS_ONLY => "KEYS_ONLY" + +def ProjectionType.wireValues : List (String × ProjectionType) := [ + ("ALL", .all), + ("INCLUDE", .include), + ("KEYS_ONLY", .keyS_ONLY)] + +def ProjectionType.ofWire (text : String) : Except String ProjectionType := + match List.find? (·.1 == text) ProjectionType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ProjectionType has no value {text}" + +instance : Key ProjectionType := ⟨ProjectionType.wire, ProjectionType.ofWire⟩ + +instance : Shape ProjectionType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ProjectionType.ofWire text + | _ => .error "expected a string" + +/-- Represents the provisioned throughput settings for the specified global secondary index. -/ +structure ProvisionedThroughput where + /-- The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException . -/ + readCapacityUnits : Int + /-- The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException . -/ + writeCapacityUnits : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape ProvisionedThroughput where + schema := .struct "ProvisionedThroughput" [({ name := "ReadCapacityUnits", required := true }, .int), + ({ name := "WriteCapacityUnits", required := true }, .int)] + toValue x := record [put "ReadCapacityUnits" x.readCapacityUnits, put "WriteCapacityUnits" x.writeCapacityUnits] + ofValue v := do + let readCapacityUnits ← v.req "ReadCapacityUnits" + let writeCapacityUnits ← v.req "WriteCapacityUnits" + return { readCapacityUnits, writeCapacityUnits } + +/-- Represents the provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases. -/ +structure ProvisionedThroughputDescription where + /-- The date and time of the last provisioned throughput decrease for this table. -/ + lastDecreaseDateTime : Option Timestamp := none + /-- The date and time of the last provisioned throughput increase for this table. -/ + lastIncreaseDateTime : Option Timestamp := none + /-- The number of provisioned throughput decreases for this table during this UTC calendar day. -/ + numberOfDecreasesToday : Option Int := none + /-- The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException . -/ + readCapacityUnits : Option Int := none + /-- The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException . -/ + writeCapacityUnits : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ProvisionedThroughputDescription where + schema := .struct "ProvisionedThroughputDescription" [({ name := "LastDecreaseDateTime" }, (.time none)), + ({ name := "LastIncreaseDateTime" }, (.time none)), + ({ name := "NumberOfDecreasesToday" }, .int), + ({ name := "ReadCapacityUnits" }, .int), + ({ name := "WriteCapacityUnits" }, .int)] + toValue x := record [putOpt "LastDecreaseDateTime" x.lastDecreaseDateTime, putOpt "LastIncreaseDateTime" x.lastIncreaseDateTime, putOpt "NumberOfDecreasesToday" x.numberOfDecreasesToday, putOpt "ReadCapacityUnits" x.readCapacityUnits, putOpt "WriteCapacityUnits" x.writeCapacityUnits] + ofValue v := do + let lastDecreaseDateTime ← v.opt "LastDecreaseDateTime" + let lastIncreaseDateTime ← v.opt "LastIncreaseDateTime" + let numberOfDecreasesToday ← v.opt "NumberOfDecreasesToday" + let readCapacityUnits ← v.opt "ReadCapacityUnits" + let writeCapacityUnits ← v.opt "WriteCapacityUnits" + return { lastDecreaseDateTime, lastIncreaseDateTime, numberOfDecreasesToday, readCapacityUnits, writeCapacityUnits } + +/-- Replica-specific provisioned throughput settings. -/ +structure ProvisionedThroughputOverride where + /-- Replica-specific read capacity units. -/ + readCapacityUnits : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ProvisionedThroughputOverride where + schema := .struct "ProvisionedThroughputOverride" [({ name := "ReadCapacityUnits" }, .int)] + toValue x := record [putOpt "ReadCapacityUnits" x.readCapacityUnits] + ofValue v := do + let readCapacityUnits ← v.opt "ReadCapacityUnits" + return { readCapacityUnits } + +structure PutResourcePolicyInput where + /-- Set this parameter to true to confirm that you want to remove your permissions to change the policy of this resource in the future. -/ + confirmRemoveSelfResourceAccess : Option Bool := none + /-- A string value that you can use to conditionally update your policy. -/ + expectedRevisionId : Option String := none + /-- An Amazon Web Services resource-based policy document in JSON format. -/ + policy : String + /-- The Amazon Resource Name (ARN) of the DynamoDB resource to which the policy will be attached. -/ + resourceArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutResourcePolicyInput where + schema := .struct "PutResourcePolicyInput" [({ name := "ConfirmRemoveSelfResourceAccess", location := .header "x-amz-confirm-remove-self-resource-access" }, .bool), + ({ name := "ExpectedRevisionId" }, .string), + ({ name := "Policy", required := true }, .string), + ({ name := "ResourceArn", required := true }, .string)] + toValue x := record [putOpt "ConfirmRemoveSelfResourceAccess" x.confirmRemoveSelfResourceAccess, putOpt "ExpectedRevisionId" x.expectedRevisionId, put "Policy" x.policy, put "ResourceArn" x.resourceArn] + ofValue v := do + let confirmRemoveSelfResourceAccess ← v.opt "ConfirmRemoveSelfResourceAccess" + let expectedRevisionId ← v.opt "ExpectedRevisionId" + let policy ← v.req "Policy" + let resourceArn ← v.req "ResourceArn" + return { confirmRemoveSelfResourceAccess, expectedRevisionId, policy, resourceArn } + +structure PutResourcePolicyOutput where + /-- A unique string that represents the revision ID of the policy. -/ + revisionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutResourcePolicyOutput where + schema := .struct "PutResourcePolicyOutput" [({ name := "RevisionId" }, .string)] + toValue x := record [putOpt "RevisionId" x.revisionId] + ofValue v := do + let revisionId ← v.opt "RevisionId" + return { revisionId } + +/-- Represents the properties of a replica. -/ +structure Replica where + /-- The Region where the replica needs to be created. -/ + regionName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Replica where + schema := .struct "Replica" [({ name := "RegionName" }, .string)] + toValue x := record [putOpt "RegionName" x.regionName] + ofValue v := do + let regionName ← v.opt "RegionName" + return { regionName } + +/-- The specified replica is already part of the global table. -/ +structure ReplicaAlreadyExistsException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicaAlreadyExistsException where + schema := .struct "ReplicaAlreadyExistsException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The specified replica is no longer part of the global table. -/ +structure ReplicaNotFoundException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicaNotFoundException where + schema := .struct "ReplicaNotFoundException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +inductive ReplicaStatus where + | active + | archived + | archiving + | creating + | creatioN_FAILED + | deleting + | inaccessiblE_ENCRYPTION_CREDENTIALS + | regioN_DISABLED + | replicatioN_NOT_AUTHORIZED + | updating +deriving DecidableEq, Repr, Inhabited + +def ReplicaStatus.wire : ReplicaStatus → String + | .active => "ACTIVE" + | .archived => "ARCHIVED" + | .archiving => "ARCHIVING" + | .creating => "CREATING" + | .creatioN_FAILED => "CREATION_FAILED" + | .deleting => "DELETING" + | .inaccessiblE_ENCRYPTION_CREDENTIALS => "INACCESSIBLE_ENCRYPTION_CREDENTIALS" + | .regioN_DISABLED => "REGION_DISABLED" + | .replicatioN_NOT_AUTHORIZED => "REPLICATION_NOT_AUTHORIZED" + | .updating => "UPDATING" + +def ReplicaStatus.wireValues : List (String × ReplicaStatus) := [ + ("ACTIVE", .active), + ("ARCHIVED", .archived), + ("ARCHIVING", .archiving), + ("CREATING", .creating), + ("CREATION_FAILED", .creatioN_FAILED), + ("DELETING", .deleting), + ("INACCESSIBLE_ENCRYPTION_CREDENTIALS", .inaccessiblE_ENCRYPTION_CREDENTIALS), + ("REGION_DISABLED", .regioN_DISABLED), + ("REPLICATION_NOT_AUTHORIZED", .replicatioN_NOT_AUTHORIZED), + ("UPDATING", .updating)] + +def ReplicaStatus.ofWire (text : String) : Except String ReplicaStatus := + match List.find? (·.1 == text) ReplicaStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ReplicaStatus has no value {text}" + +instance : Key ReplicaStatus := ⟨ReplicaStatus.wire, ReplicaStatus.ofWire⟩ + +instance : Shape ReplicaStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ReplicaStatus.ofWire text + | _ => .error "expected a string" + +/-- The request was rejected because one or more items in the request are being modified by a request in another Region. -/ +structure ReplicatedWriteConflictException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicatedWriteConflictException where + schema := .struct "ReplicatedWriteConflictException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The operation conflicts with the resource's availability. -/ +structure ResourceInUseException where + /-- The resource which is being attempted to be changed is in use. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResourceInUseException where + schema := .struct "ResourceInUseException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The operation tried to access a nonexistent table or index. -/ +structure ResourceNotFoundException where + /-- The resource which is being requested does not exist. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResourceNotFoundException where + schema := .struct "ResourceNotFoundException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Contains details for the restore. -/ +structure RestoreSummary where + /-- Point in time or source backup time. -/ + restoreDateTime : Timestamp + /-- Indicates if a restore is in progress or not. -/ + restoreInProgress : Bool + /-- The Amazon Resource Name (ARN) of the backup from which the table was restored. -/ + sourceBackupArn : Option String := none + /-- The ARN of the source table of the backup that is being restored. -/ + sourceTableArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreSummary where + schema := .struct "RestoreSummary" [({ name := "RestoreDateTime", required := true }, (.time none)), + ({ name := "RestoreInProgress", required := true }, .bool), + ({ name := "SourceBackupArn" }, .string), + ({ name := "SourceTableArn" }, .string)] + toValue x := record [put "RestoreDateTime" x.restoreDateTime, put "RestoreInProgress" x.restoreInProgress, putOpt "SourceBackupArn" x.sourceBackupArn, putOpt "SourceTableArn" x.sourceTableArn] + ofValue v := do + let restoreDateTime ← v.req "RestoreDateTime" + let restoreInProgress ← v.req "RestoreInProgress" + let sourceBackupArn ← v.opt "SourceBackupArn" + let sourceTableArn ← v.opt "SourceTableArn" + return { restoreDateTime, restoreInProgress, sourceBackupArn, sourceTableArn } + +/-- Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response: INDEXES - The response includes the aggregate ConsumedCapacity for the operation, together with ConsumedCapacity f -/ +inductive ReturnConsumedCapacity where + | indexes + | none + | total +deriving DecidableEq, Repr, Inhabited + +def ReturnConsumedCapacity.wire : ReturnConsumedCapacity → String + | .indexes => "INDEXES" + | .none => "NONE" + | .total => "TOTAL" + +def ReturnConsumedCapacity.wireValues : List (String × ReturnConsumedCapacity) := [ + ("INDEXES", .indexes), + ("NONE", .none), + ("TOTAL", .total)] + +def ReturnConsumedCapacity.ofWire (text : String) : Except String ReturnConsumedCapacity := + match List.find? (·.1 == text) ReturnConsumedCapacity.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ReturnConsumedCapacity has no value {text}" + +instance : Key ReturnConsumedCapacity := ⟨ReturnConsumedCapacity.wire, ReturnConsumedCapacity.ofWire⟩ + +instance : Shape ReturnConsumedCapacity where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ReturnConsumedCapacity.ofWire text + | _ => .error "expected a string" + +inductive ReturnItemCollectionMetrics where + | none + | size +deriving DecidableEq, Repr, Inhabited + +def ReturnItemCollectionMetrics.wire : ReturnItemCollectionMetrics → String + | .none => "NONE" + | .size => "SIZE" + +def ReturnItemCollectionMetrics.wireValues : List (String × ReturnItemCollectionMetrics) := [ + ("NONE", .none), + ("SIZE", .size)] + +def ReturnItemCollectionMetrics.ofWire (text : String) : Except String ReturnItemCollectionMetrics := + match List.find? (·.1 == text) ReturnItemCollectionMetrics.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ReturnItemCollectionMetrics has no value {text}" + +instance : Key ReturnItemCollectionMetrics := ⟨ReturnItemCollectionMetrics.wire, ReturnItemCollectionMetrics.ofWire⟩ + +instance : Shape ReturnItemCollectionMetrics where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ReturnItemCollectionMetrics.ofWire text + | _ => .error "expected a string" + +inductive ReturnValue where + | alL_NEW + | alL_OLD + | none + | updateD_NEW + | updateD_OLD +deriving DecidableEq, Repr, Inhabited + +def ReturnValue.wire : ReturnValue → String + | .alL_NEW => "ALL_NEW" + | .alL_OLD => "ALL_OLD" + | .none => "NONE" + | .updateD_NEW => "UPDATED_NEW" + | .updateD_OLD => "UPDATED_OLD" + +def ReturnValue.wireValues : List (String × ReturnValue) := [ + ("ALL_NEW", .alL_NEW), + ("ALL_OLD", .alL_OLD), + ("NONE", .none), + ("UPDATED_NEW", .updateD_NEW), + ("UPDATED_OLD", .updateD_OLD)] + +def ReturnValue.ofWire (text : String) : Except String ReturnValue := + match List.find? (·.1 == text) ReturnValue.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ReturnValue has no value {text}" + +instance : Key ReturnValue := ⟨ReturnValue.wire, ReturnValue.ofWire⟩ + +instance : Shape ReturnValue where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ReturnValue.ofWire text + | _ => .error "expected a string" + +inductive ReturnValuesOnConditionCheckFailure where + | alL_OLD + | none +deriving DecidableEq, Repr, Inhabited + +def ReturnValuesOnConditionCheckFailure.wire : ReturnValuesOnConditionCheckFailure → String + | .alL_OLD => "ALL_OLD" + | .none => "NONE" + +def ReturnValuesOnConditionCheckFailure.wireValues : List (String × ReturnValuesOnConditionCheckFailure) := [ + ("ALL_OLD", .alL_OLD), + ("NONE", .none)] + +def ReturnValuesOnConditionCheckFailure.ofWire (text : String) : Except String ReturnValuesOnConditionCheckFailure := + match List.find? (·.1 == text) ReturnValuesOnConditionCheckFailure.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ReturnValuesOnConditionCheckFailure has no value {text}" + +instance : Key ReturnValuesOnConditionCheckFailure := ⟨ReturnValuesOnConditionCheckFailure.wire, ReturnValuesOnConditionCheckFailure.ofWire⟩ + +instance : Shape ReturnValuesOnConditionCheckFailure where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ReturnValuesOnConditionCheckFailure.ofWire text + | _ => .error "expected a string" + +/-- The S3 bucket that is being imported from. -/ +structure S3BucketSource where + /-- The S3 bucket that is being imported from. -/ + s3Bucket : String + /-- The account number of the S3 bucket that is being imported from. -/ + s3BucketOwner : Option String := none + /-- The key prefix shared by all S3 Objects that are being imported. -/ + s3KeyPrefix : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape S3BucketSource where + schema := .struct "S3BucketSource" [({ name := "S3Bucket", required := true }, .string), + ({ name := "S3BucketOwner" }, .string), + ({ name := "S3KeyPrefix" }, .string)] + toValue x := record [put "S3Bucket" x.s3Bucket, putOpt "S3BucketOwner" x.s3BucketOwner, putOpt "S3KeyPrefix" x.s3KeyPrefix] + ofValue v := do + let s3Bucket ← v.req "S3Bucket" + let s3BucketOwner ← v.opt "S3BucketOwner" + let s3KeyPrefix ← v.opt "S3KeyPrefix" + return { s3Bucket, s3BucketOwner, s3KeyPrefix } + +inductive S3SseAlgorithm where + | aes256 + | kms +deriving DecidableEq, Repr, Inhabited + +def S3SseAlgorithm.wire : S3SseAlgorithm → String + | .aes256 => "AES256" + | .kms => "KMS" + +def S3SseAlgorithm.wireValues : List (String × S3SseAlgorithm) := [ + ("AES256", .aes256), + ("KMS", .kms)] + +def S3SseAlgorithm.ofWire (text : String) : Except String S3SseAlgorithm := + match List.find? (·.1 == text) S3SseAlgorithm.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"S3SseAlgorithm has no value {text}" + +instance : Key S3SseAlgorithm := ⟨S3SseAlgorithm.wire, S3SseAlgorithm.ofWire⟩ + +instance : Shape S3SseAlgorithm where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => S3SseAlgorithm.ofWire text + | _ => .error "expected a string" + +inductive SSEStatus where + | disabled + | disabling + | enabled + | enabling + | updating +deriving DecidableEq, Repr, Inhabited + +def SSEStatus.wire : SSEStatus → String + | .disabled => "DISABLED" + | .disabling => "DISABLING" + | .enabled => "ENABLED" + | .enabling => "ENABLING" + | .updating => "UPDATING" + +def SSEStatus.wireValues : List (String × SSEStatus) := [ + ("DISABLED", .disabled), + ("DISABLING", .disabling), + ("ENABLED", .enabled), + ("ENABLING", .enabling), + ("UPDATING", .updating)] + +def SSEStatus.ofWire (text : String) : Except String SSEStatus := + match List.find? (·.1 == text) SSEStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SSEStatus has no value {text}" + +instance : Key SSEStatus := ⟨SSEStatus.wire, SSEStatus.ofWire⟩ + +instance : Shape SSEStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SSEStatus.ofWire text + | _ => .error "expected a string" + +inductive SSEType where + | aes256 + | kms +deriving DecidableEq, Repr, Inhabited + +def SSEType.wire : SSEType → String + | .aes256 => "AES256" + | .kms => "KMS" + +def SSEType.wireValues : List (String × SSEType) := [ + ("AES256", .aes256), + ("KMS", .kms)] + +def SSEType.ofWire (text : String) : Except String SSEType := + match List.find? (·.1 == text) SSEType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SSEType has no value {text}" + +instance : Key SSEType := ⟨SSEType.wire, SSEType.ofWire⟩ + +instance : Shape SSEType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SSEType.ofWire text + | _ => .error "expected a string" + +inductive ScalarAttributeType where + | b + | n + | s +deriving DecidableEq, Repr, Inhabited + +def ScalarAttributeType.wire : ScalarAttributeType → String + | .b => "B" + | .n => "N" + | .s => "S" + +def ScalarAttributeType.wireValues : List (String × ScalarAttributeType) := [ + ("B", .b), + ("N", .n), + ("S", .s)] + +def ScalarAttributeType.ofWire (text : String) : Except String ScalarAttributeType := + match List.find? (·.1 == text) ScalarAttributeType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ScalarAttributeType has no value {text}" + +instance : Key ScalarAttributeType := ⟨ScalarAttributeType.wire, ScalarAttributeType.ofWire⟩ + +instance : Shape ScalarAttributeType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ScalarAttributeType.ofWire text + | _ => .error "expected a string" + +inductive SearchSchemaElementType where + | hash + | inlinE_FILTER +deriving DecidableEq, Repr, Inhabited + +def SearchSchemaElementType.wire : SearchSchemaElementType → String + | .hash => "HASH" + | .inlinE_FILTER => "INLINE_FILTER" + +def SearchSchemaElementType.wireValues : List (String × SearchSchemaElementType) := [ + ("HASH", .hash), + ("INLINE_FILTER", .inlinE_FILTER)] + +def SearchSchemaElementType.ofWire (text : String) : Except String SearchSchemaElementType := + match List.find? (·.1 == text) SearchSchemaElementType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SearchSchemaElementType has no value {text}" + +instance : Key SearchSchemaElementType := ⟨SearchSchemaElementType.wire, SearchSchemaElementType.ofWire⟩ + +instance : Shape SearchSchemaElementType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SearchSchemaElementType.ofWire text + | _ => .error "expected a string" + +inductive Select where + | alL_ATTRIBUTES + | alL_PROJECTED_ATTRIBUTES + | count + | specifiC_ATTRIBUTES +deriving DecidableEq, Repr, Inhabited + +def Select.wire : Select → String + | .alL_ATTRIBUTES => "ALL_ATTRIBUTES" + | .alL_PROJECTED_ATTRIBUTES => "ALL_PROJECTED_ATTRIBUTES" + | .count => "COUNT" + | .specifiC_ATTRIBUTES => "SPECIFIC_ATTRIBUTES" + +def Select.wireValues : List (String × Select) := [ + ("ALL_ATTRIBUTES", .alL_ATTRIBUTES), + ("ALL_PROJECTED_ATTRIBUTES", .alL_PROJECTED_ATTRIBUTES), + ("COUNT", .count), + ("SPECIFIC_ATTRIBUTES", .specifiC_ATTRIBUTES)] + +def Select.ofWire (text : String) : Except String Select := + match List.find? (·.1 == text) Select.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Select has no value {text}" + +instance : Key Select := ⟨Select.wire, Select.ofWire⟩ + +instance : Shape Select where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Select.ofWire text + | _ => .error "expected a string" + +inductive StreamViewType where + | keyS_ONLY + | neW_AND_OLD_IMAGES + | neW_IMAGE + | olD_IMAGE +deriving DecidableEq, Repr, Inhabited + +def StreamViewType.wire : StreamViewType → String + | .keyS_ONLY => "KEYS_ONLY" + | .neW_AND_OLD_IMAGES => "NEW_AND_OLD_IMAGES" + | .neW_IMAGE => "NEW_IMAGE" + | .olD_IMAGE => "OLD_IMAGE" + +def StreamViewType.wireValues : List (String × StreamViewType) := [ + ("KEYS_ONLY", .keyS_ONLY), + ("NEW_AND_OLD_IMAGES", .neW_AND_OLD_IMAGES), + ("NEW_IMAGE", .neW_IMAGE), + ("OLD_IMAGE", .olD_IMAGE)] + +def StreamViewType.ofWire (text : String) : Except String StreamViewType := + match List.find? (·.1 == text) StreamViewType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"StreamViewType has no value {text}" + +instance : Key StreamViewType := ⟨StreamViewType.wire, StreamViewType.ofWire⟩ + +instance : Shape StreamViewType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => StreamViewType.ofWire text + | _ => .error "expected a string" + +/-- A target table with the specified name already exists. -/ +structure TableAlreadyExistsException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TableAlreadyExistsException where + schema := .struct "TableAlreadyExistsException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +inductive TableClass where + | standard + | standarD_INFREQUENT_ACCESS +deriving DecidableEq, Repr, Inhabited + +def TableClass.wire : TableClass → String + | .standard => "STANDARD" + | .standarD_INFREQUENT_ACCESS => "STANDARD_INFREQUENT_ACCESS" + +def TableClass.wireValues : List (String × TableClass) := [ + ("STANDARD", .standard), + ("STANDARD_INFREQUENT_ACCESS", .standarD_INFREQUENT_ACCESS)] + +def TableClass.ofWire (text : String) : Except String TableClass := + match List.find? (·.1 == text) TableClass.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TableClass has no value {text}" + +instance : Key TableClass := ⟨TableClass.wire, TableClass.ofWire⟩ + +instance : Shape TableClass where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TableClass.ofWire text + | _ => .error "expected a string" + +/-- A target table with the specified name is either being created or deleted. -/ +structure TableInUseException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TableInUseException where + schema := .struct "TableInUseException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- A source table with the name TableName does not currently exist within the subscriber's account or the subscriber is operating in the wrong Amazon Web Services Region. -/ +structure TableNotFoundException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TableNotFoundException where + schema := .struct "TableNotFoundException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +inductive TableStatus where + | active + | archived + | archiving + | creating + | deleting + | inaccessiblE_ENCRYPTION_CREDENTIALS + | replicatioN_NOT_AUTHORIZED + | updating +deriving DecidableEq, Repr, Inhabited + +def TableStatus.wire : TableStatus → String + | .active => "ACTIVE" + | .archived => "ARCHIVED" + | .archiving => "ARCHIVING" + | .creating => "CREATING" + | .deleting => "DELETING" + | .inaccessiblE_ENCRYPTION_CREDENTIALS => "INACCESSIBLE_ENCRYPTION_CREDENTIALS" + | .replicatioN_NOT_AUTHORIZED => "REPLICATION_NOT_AUTHORIZED" + | .updating => "UPDATING" + +def TableStatus.wireValues : List (String × TableStatus) := [ + ("ACTIVE", .active), + ("ARCHIVED", .archived), + ("ARCHIVING", .archiving), + ("CREATING", .creating), + ("DELETING", .deleting), + ("INACCESSIBLE_ENCRYPTION_CREDENTIALS", .inaccessiblE_ENCRYPTION_CREDENTIALS), + ("REPLICATION_NOT_AUTHORIZED", .replicatioN_NOT_AUTHORIZED), + ("UPDATING", .updating)] + +def TableStatus.ofWire (text : String) : Except String TableStatus := + match List.find? (·.1 == text) TableStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TableStatus has no value {text}" + +instance : Key TableStatus := ⟨TableStatus.wire, TableStatus.ofWire⟩ + +instance : Shape TableStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TableStatus.ofWire text + | _ => .error "expected a string" + +/-- Describes a tag. -/ +structure Tag where + /-- The key of the tag. -/ + key : String + /-- The value of the tag. -/ + value : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape Tag where + schema := .struct "Tag" [({ name := "Key", required := true }, .string), + ({ name := "Value", required := true }, .string)] + toValue x := record [put "Key" x.key, put "Value" x.value] + ofValue v := do + let key ← v.req "Key" + let value ← v.req "Value" + return { key, value } + +/-- Represents the specific reason why a DynamoDB request was throttled and the ARN of the impacted resource. -/ +structure ThrottlingReason where + /-- The reason for throttling. -/ + reason : Option String := none + /-- The Amazon Resource Name (ARN) of the DynamoDB table or index that experienced the throttling event. -/ + resource : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ThrottlingReason where + schema := .struct "ThrottlingReason" [({ name := "reason" }, .string), + ({ name := "resource" }, .string)] + toValue x := record [putOpt "reason" x.reason, putOpt "resource" x.resource] + ofValue v := do + let reason ← v.opt "reason" + let resource ← v.opt "resource" + return { reason, resource } + +/-- Represents the settings used to enable or disable Time to Live (TTL) for the specified table. -/ +structure TimeToLiveSpecification where + /-- The name of the TTL attribute used to store the expiration time for items in the table. -/ + attributeName : String + /-- Indicates whether TTL is to be enabled (true) or disabled (false) on the table. -/ + enabled : Bool +deriving DecidableEq, Repr, Inhabited + +instance : Shape TimeToLiveSpecification where + schema := .struct "TimeToLiveSpecification" [({ name := "AttributeName", required := true }, .string), + ({ name := "Enabled", required := true }, .bool)] + toValue x := record [put "AttributeName" x.attributeName, put "Enabled" x.enabled] + ofValue v := do + let attributeName ← v.req "AttributeName" + let enabled ← v.req "Enabled" + return { attributeName, enabled } + +inductive TimeToLiveStatus where + | disabled + | disabling + | enabled + | enabling +deriving DecidableEq, Repr, Inhabited + +def TimeToLiveStatus.wire : TimeToLiveStatus → String + | .disabled => "DISABLED" + | .disabling => "DISABLING" + | .enabled => "ENABLED" + | .enabling => "ENABLING" + +def TimeToLiveStatus.wireValues : List (String × TimeToLiveStatus) := [ + ("DISABLED", .disabled), + ("DISABLING", .disabling), + ("ENABLED", .enabled), + ("ENABLING", .enabling)] + +def TimeToLiveStatus.ofWire (text : String) : Except String TimeToLiveStatus := + match List.find? (·.1 == text) TimeToLiveStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TimeToLiveStatus has no value {text}" + +instance : Key TimeToLiveStatus := ⟨TimeToLiveStatus.wire, TimeToLiveStatus.ofWire⟩ + +instance : Shape TimeToLiveStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TimeToLiveStatus.ofWire text + | _ => .error "expected a string" + +/-- Operation was rejected because there is an ongoing transaction for the item. -/ +structure TransactionConflictException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransactionConflictException where + schema := .struct "TransactionConflictException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The transaction with the given request token is already in progress. -/ +structure TransactionInProgressException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransactionInProgressException where + schema := .struct "TransactionInProgressException" [({ name := "Message" }, .string)] + toValue x := record [putOpt "Message" x.message] + ofValue v := do + let message ← v.opt "Message" + return { message } + +structure UntagResourceInput where + /-- The DynamoDB resource that the tags will be removed from. -/ + resourceArn : String + /-- A list of tag keys. -/ + tagKeys : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape UntagResourceInput where + schema := .struct "UntagResourceInput" [({ name := "ResourceArn", required := true }, .string), + ({ name := "TagKeys", required := true }, (.list .string "member"))] + toValue x := record [put "ResourceArn" x.resourceArn, put "TagKeys" x.tagKeys] + ofValue v := do + let resourceArn ← v.req "ResourceArn" + let tagKeys ← v.req "TagKeys" + return { resourceArn, tagKeys } + +/-- The definition of a vector attribute for a vector index. -/ +structure VectorAttributeDefinition where + /-- The name of the vector attribute. -/ + attributeName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape VectorAttributeDefinition where + schema := .struct "VectorAttributeDefinition" [({ name := "AttributeName", required := true }, .string)] + toValue x := record [put "AttributeName" x.attributeName] + ofValue v := do + let attributeName ← v.req "AttributeName" + return { attributeName } + +/-- The consumed capacity for vector index operations, including vector search request bytes and vector write request bytes. -/ +structure VectorCapacity where + /-- The number of vector search request bytes consumed by a SearchVectors operation. -/ + vectorSearchRequestBytes : Option JsonNumber := none + /-- The number of vector write request bytes consumed when writing to a vector index. -/ + vectorWriteRequestBytes : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VectorCapacity where + schema := .struct "VectorCapacity" [({ name := "VectorSearchRequestBytes" }, .number), + ({ name := "VectorWriteRequestBytes" }, .number)] + toValue x := record [putOpt "VectorSearchRequestBytes" x.vectorSearchRequestBytes, putOpt "VectorWriteRequestBytes" x.vectorWriteRequestBytes] + ofValue v := do + let vectorSearchRequestBytes ← v.opt "VectorSearchRequestBytes" + let vectorWriteRequestBytes ← v.opt "VectorWriteRequestBytes" + return { vectorSearchRequestBytes, vectorWriteRequestBytes } + +inductive VectorDistanceFunction where + | cosine + | doT_PRODUCT + | euclidean +deriving DecidableEq, Repr, Inhabited + +def VectorDistanceFunction.wire : VectorDistanceFunction → String + | .cosine => "COSINE" + | .doT_PRODUCT => "DOT_PRODUCT" + | .euclidean => "EUCLIDEAN" + +def VectorDistanceFunction.wireValues : List (String × VectorDistanceFunction) := [ + ("COSINE", .cosine), + ("DOT_PRODUCT", .doT_PRODUCT), + ("EUCLIDEAN", .euclidean)] + +def VectorDistanceFunction.ofWire (text : String) : Except String VectorDistanceFunction := + match List.find? (·.1 == text) VectorDistanceFunction.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VectorDistanceFunction has no value {text}" + +instance : Key VectorDistanceFunction := ⟨VectorDistanceFunction.wire, VectorDistanceFunction.ofWire⟩ + +instance : Shape VectorDistanceFunction where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VectorDistanceFunction.ofWire text + | _ => .error "expected a string" + +/-- Provides visibility into the number of read and write operations your table or secondary index can instantaneously support. -/ +structure WarmThroughput where + /-- Represents the number of read operations your base table can instantaneously support. -/ + readUnitsPerSecond : Option Int := none + /-- Represents the number of write operations your base table can instantaneously support. -/ + writeUnitsPerSecond : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape WarmThroughput where + schema := .struct "WarmThroughput" [({ name := "ReadUnitsPerSecond" }, .int), + ({ name := "WriteUnitsPerSecond" }, .int)] + toValue x := record [putOpt "ReadUnitsPerSecond" x.readUnitsPerSecond, putOpt "WriteUnitsPerSecond" x.writeUnitsPerSecond] + ofValue v := do + let readUnitsPerSecond ← v.opt "ReadUnitsPerSecond" + let writeUnitsPerSecond ← v.opt "WriteUnitsPerSecond" + return { readUnitsPerSecond, writeUnitsPerSecond } + +inductive WitnessStatus where + | active + | creating + | deleting +deriving DecidableEq, Repr, Inhabited + +def WitnessStatus.wire : WitnessStatus → String + | .active => "ACTIVE" + | .creating => "CREATING" + | .deleting => "DELETING" + +def WitnessStatus.wireValues : List (String × WitnessStatus) := [ + ("ACTIVE", .active), + ("CREATING", .creating), + ("DELETING", .deleting)] + +def WitnessStatus.ofWire (text : String) : Except String WitnessStatus := + match List.find? (·.1 == text) WitnessStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"WitnessStatus has no value {text}" + +instance : Key WitnessStatus := ⟨WitnessStatus.wire, WitnessStatus.ofWire⟩ + +instance : Shape WitnessStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => WitnessStatus.ofWire text + | _ => .error "expected a string" + +/-- Represents an attribute for describing the schema for the table and indexes. -/ +structure AttributeDefinition where + /-- A name for the attribute. -/ + attributeName : String + /-- The data type for the attribute, where: S - the attribute is of type String N - the attribute is of type Number B - the attribute is of type Binary. -/ + attributeType : ScalarAttributeType +deriving DecidableEq, Repr, Inhabited + +instance : Shape AttributeDefinition where + schema := .struct "AttributeDefinition" [({ name := "AttributeName", required := true }, .string), + ({ name := "AttributeType", required := true }, (Shape.schema ScalarAttributeType))] + toValue x := record [put "AttributeName" x.attributeName, put "AttributeType" x.attributeType] + ofValue v := do + let attributeName ← v.req "AttributeName" + let attributeType ← v.req "AttributeType" + return { attributeName, attributeType } + +/-- Represents the properties of the scaling policy. -/ +structure AutoScalingPolicyDescription where + /-- The name of the scaling policy. -/ + policyName : Option String := none + /-- Represents a target tracking scaling policy configuration. -/ + targetTrackingScalingPolicyConfiguration : Option AutoScalingTargetTrackingScalingPolicyConfigurationDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AutoScalingPolicyDescription where + schema := .struct "AutoScalingPolicyDescription" [({ name := "PolicyName" }, .string), + ({ name := "TargetTrackingScalingPolicyConfiguration" }, (Shape.schema AutoScalingTargetTrackingScalingPolicyConfigurationDescription))] + toValue x := record [putOpt "PolicyName" x.policyName, putOpt "TargetTrackingScalingPolicyConfiguration" x.targetTrackingScalingPolicyConfiguration] + ofValue v := do + let policyName ← v.opt "PolicyName" + let targetTrackingScalingPolicyConfiguration ← v.opt "TargetTrackingScalingPolicyConfiguration" + return { policyName, targetTrackingScalingPolicyConfiguration } + +/-- Represents the auto scaling policy to be modified. -/ +structure AutoScalingPolicyUpdate where + /-- The name of the scaling policy. -/ + policyName : Option String := none + /-- Represents a target tracking scaling policy configuration. -/ + targetTrackingScalingPolicyConfiguration : AutoScalingTargetTrackingScalingPolicyConfigurationUpdate +deriving DecidableEq, Repr, Inhabited + +instance : Shape AutoScalingPolicyUpdate where + schema := .struct "AutoScalingPolicyUpdate" [({ name := "PolicyName" }, .string), + ({ name := "TargetTrackingScalingPolicyConfiguration", required := true }, (Shape.schema AutoScalingTargetTrackingScalingPolicyConfigurationUpdate))] + toValue x := record [putOpt "PolicyName" x.policyName, put "TargetTrackingScalingPolicyConfiguration" x.targetTrackingScalingPolicyConfiguration] + ofValue v := do + let policyName ← v.opt "PolicyName" + let targetTrackingScalingPolicyConfiguration ← v.req "TargetTrackingScalingPolicyConfiguration" + return { policyName, targetTrackingScalingPolicyConfiguration } + +/-- Contains the details of the backup created for the table. -/ +structure BackupDetails where + /-- ARN associated with the backup. -/ + backupArn : String + /-- Time at which the backup was created. -/ + backupCreationDateTime : Timestamp + /-- Time at which the automatic on-demand backup created by DynamoDB will expire. -/ + backupExpiryDateTime : Option Timestamp := none + /-- Name of the requested backup. -/ + backupName : String + /-- Size of the backup in bytes. -/ + backupSizeBytes : Option Int := none + /-- Backup can be in one of the following states: CREATING, ACTIVE, DELETED. -/ + backupStatus : BackupStatus + /-- BackupType: USER - You create and manage these using the on-demand backup feature. -/ + backupType : BackupType +deriving DecidableEq, Repr, Inhabited + +instance : Shape BackupDetails where + schema := .struct "BackupDetails" [({ name := "BackupArn", required := true }, .string), + ({ name := "BackupCreationDateTime", required := true }, (.time none)), + ({ name := "BackupExpiryDateTime" }, (.time none)), + ({ name := "BackupName", required := true }, .string), + ({ name := "BackupSizeBytes" }, .int), + ({ name := "BackupStatus", required := true }, (Shape.schema BackupStatus)), + ({ name := "BackupType", required := true }, (Shape.schema BackupType))] + toValue x := record [put "BackupArn" x.backupArn, put "BackupCreationDateTime" x.backupCreationDateTime, putOpt "BackupExpiryDateTime" x.backupExpiryDateTime, put "BackupName" x.backupName, putOpt "BackupSizeBytes" x.backupSizeBytes, put "BackupStatus" x.backupStatus, put "BackupType" x.backupType] + ofValue v := do + let backupArn ← v.req "BackupArn" + let backupCreationDateTime ← v.req "BackupCreationDateTime" + let backupExpiryDateTime ← v.opt "BackupExpiryDateTime" + let backupName ← v.req "BackupName" + let backupSizeBytes ← v.opt "BackupSizeBytes" + let backupStatus ← v.req "BackupStatus" + let backupType ← v.req "BackupType" + return { backupArn, backupCreationDateTime, backupExpiryDateTime, backupName, backupSizeBytes, backupStatus, backupType } + +/-- Contains details for the backup. -/ +structure BackupSummary where + /-- ARN associated with the backup. -/ + backupArn : Option String := none + /-- Time at which the backup was created. -/ + backupCreationDateTime : Option Timestamp := none + /-- Time at which the automatic on-demand backup created by DynamoDB will expire. -/ + backupExpiryDateTime : Option Timestamp := none + /-- Name of the specified backup. -/ + backupName : Option String := none + /-- Size of the backup in bytes. -/ + backupSizeBytes : Option Int := none + /-- Backup can be in one of the following states: CREATING, ACTIVE, DELETED. -/ + backupStatus : Option BackupStatus := none + /-- BackupType: USER - You create and manage these using the on-demand backup feature. -/ + backupType : Option BackupType := none + /-- ARN associated with the table. -/ + tableArn : Option String := none + /-- Unique identifier for the table. -/ + tableId : Option String := none + /-- Name of the table. -/ + tableName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BackupSummary where + schema := .struct "BackupSummary" [({ name := "BackupArn" }, .string), + ({ name := "BackupCreationDateTime" }, (.time none)), + ({ name := "BackupExpiryDateTime" }, (.time none)), + ({ name := "BackupName" }, .string), + ({ name := "BackupSizeBytes" }, .int), + ({ name := "BackupStatus" }, (Shape.schema BackupStatus)), + ({ name := "BackupType" }, (Shape.schema BackupType)), + ({ name := "TableArn" }, .string), + ({ name := "TableId" }, .string), + ({ name := "TableName" }, .string)] + toValue x := record [putOpt "BackupArn" x.backupArn, putOpt "BackupCreationDateTime" x.backupCreationDateTime, putOpt "BackupExpiryDateTime" x.backupExpiryDateTime, putOpt "BackupName" x.backupName, putOpt "BackupSizeBytes" x.backupSizeBytes, putOpt "BackupStatus" x.backupStatus, putOpt "BackupType" x.backupType, putOpt "TableArn" x.tableArn, putOpt "TableId" x.tableId, putOpt "TableName" x.tableName] + ofValue v := do + let backupArn ← v.opt "BackupArn" + let backupCreationDateTime ← v.opt "BackupCreationDateTime" + let backupExpiryDateTime ← v.opt "BackupExpiryDateTime" + let backupName ← v.opt "BackupName" + let backupSizeBytes ← v.opt "BackupSizeBytes" + let backupStatus ← v.opt "BackupStatus" + let backupType ← v.opt "BackupType" + let tableArn ← v.opt "TableArn" + let tableId ← v.opt "TableId" + let tableName ← v.opt "TableName" + return { backupArn, backupCreationDateTime, backupExpiryDateTime, backupName, backupSizeBytes, backupStatus, backupType, tableArn, tableId, tableName } + +/-- Contains the details for the read/write capacity mode. -/ +structure BillingModeSummary where + /-- Controls how you are charged for read and write throughput and how you manage capacity. -/ + billingMode : Option BillingMode := none + /-- Represents the time when PAY_PER_REQUEST was last set as the read/write capacity mode. -/ + lastUpdateToPayPerRequestDateTime : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BillingModeSummary where + schema := .struct "BillingModeSummary" [({ name := "BillingMode" }, (Shape.schema BillingMode)), + ({ name := "LastUpdateToPayPerRequestDateTime" }, (.time none))] + toValue x := record [putOpt "BillingMode" x.billingMode, putOpt "LastUpdateToPayPerRequestDateTime" x.lastUpdateToPayPerRequestDateTime] + ofValue v := do + let billingMode ← v.opt "BillingMode" + let lastUpdateToPayPerRequestDateTime ← v.opt "LastUpdateToPayPerRequestDateTime" + return { billingMode, lastUpdateToPayPerRequestDateTime } + +/-- Contains summary information about a bulk operation. -/ +structure BulkOperationSummary where + /-- The Amazon Resource Name (ARN) of the bulk operation. -/ + bulkOperationArn : String + /-- The current status of the bulk operation. -/ + bulkOperationStatus : BulkOperationStatus + /-- The time when the operation reached a terminal status. -/ + endTime : Option Timestamp := none + /-- The time when DynamoDB accepted the start request. -/ + startTime : Timestamp +deriving DecidableEq, Repr, Inhabited + +instance : Shape BulkOperationSummary where + schema := .struct "BulkOperationSummary" [({ name := "BulkOperationArn", required := true }, .string), + ({ name := "BulkOperationStatus", required := true }, (Shape.schema BulkOperationStatus)), + ({ name := "EndTime" }, (.time none)), + ({ name := "StartTime", required := true }, (.time none))] + toValue x := record [put "BulkOperationArn" x.bulkOperationArn, put "BulkOperationStatus" x.bulkOperationStatus, putOpt "EndTime" x.endTime, put "StartTime" x.startTime] + ofValue v := do + let bulkOperationArn ← v.req "BulkOperationArn" + let bulkOperationStatus ← v.req "BulkOperationStatus" + let endTime ← v.opt "EndTime" + let startTime ← v.req "StartTime" + return { bulkOperationArn, bulkOperationStatus, endTime, startTime } + +/-- Contains the bytes used during a bulk operation, including a breakdown for the table and its indexes. -/ +structure BulkOperationUsage where + /-- The total number of bulk put bytes used by the operation. -/ + bulkPutBytes : Option Int := none + /-- The bulk put bytes used on each global secondary index affected by the operation, keyed by index name. -/ + globalSecondaryIndexes : Option (Dict String BulkOperationBytes) := none + /-- The bulk put bytes used on each local secondary index affected by the operation, keyed by index name. -/ + localSecondaryIndexes : Option (Dict String BulkOperationBytes) := none + /-- The number of bulk put bytes for the table, excluding its indexes. -/ + table : Option BulkOperationBytes := none + /-- The name or ARN of the table associated with the reported usage. -/ + tableName : Option String := none + /-- The bulk put vector bytes used on each vector index affected by the operation, keyed by index name. -/ + vectorIndexes : Option (Dict String BulkOperationVectorBytes) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BulkOperationUsage where + schema := .struct "BulkOperationUsage" [({ name := "BulkPutBytes" }, .int), + ({ name := "GlobalSecondaryIndexes" }, (.map .string (Shape.schema BulkOperationBytes) "key" "value")), + ({ name := "LocalSecondaryIndexes" }, (.map .string (Shape.schema BulkOperationBytes) "key" "value")), + ({ name := "Table" }, (Shape.schema BulkOperationBytes)), + ({ name := "TableName" }, .string), + ({ name := "VectorIndexes" }, (.map .string (Shape.schema BulkOperationVectorBytes) "key" "value"))] + toValue x := record [putOpt "BulkPutBytes" x.bulkPutBytes, putOpt "GlobalSecondaryIndexes" x.globalSecondaryIndexes, putOpt "LocalSecondaryIndexes" x.localSecondaryIndexes, putOpt "Table" x.table, putOpt "TableName" x.tableName, putOpt "VectorIndexes" x.vectorIndexes] + ofValue v := do + let bulkPutBytes ← v.opt "BulkPutBytes" + let globalSecondaryIndexes ← v.opt "GlobalSecondaryIndexes" + let localSecondaryIndexes ← v.opt "LocalSecondaryIndexes" + let table ← v.opt "Table" + let tableName ← v.opt "TableName" + let vectorIndexes ← v.opt "VectorIndexes" + return { bulkPutBytes, globalSecondaryIndexes, localSecondaryIndexes, table, tableName, vectorIndexes } + +structure CancelBulkOperationOutput where + /-- The Amazon Resource Name (ARN) of the bulk operation for which DynamoDB accepted the cancellation request. -/ + bulkOperationArn : String + /-- The status returned after DynamoDB accepts the cancellation request. -/ + bulkOperationStatus : BulkOperationStatus +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelBulkOperationOutput where + schema := .struct "CancelBulkOperationOutput" [({ name := "BulkOperationArn", required := true }, .string), + ({ name := "BulkOperationStatus", required := true }, (Shape.schema BulkOperationStatus))] + toValue x := record [put "BulkOperationArn" x.bulkOperationArn, put "BulkOperationStatus" x.bulkOperationStatus] + ofValue v := do + let bulkOperationArn ← v.req "BulkOperationArn" + let bulkOperationStatus ← v.req "BulkOperationStatus" + return { bulkOperationArn, bulkOperationStatus } + +/-- The capacity units consumed by an operation. -/ +structure ConsumedCapacity where + /-- The total number of capacity units consumed by the operation. -/ + capacityUnits : Option JsonNumber := none + /-- The amount of throughput consumed on each global index affected by the operation. -/ + globalSecondaryIndexes : Option (Dict String Capacity) := none + /-- The amount of throughput consumed on each local index affected by the operation. -/ + localSecondaryIndexes : Option (Dict String Capacity) := none + /-- The total number of read capacity units consumed by the operation. -/ + readCapacityUnits : Option JsonNumber := none + /-- The amount of throughput consumed on the table affected by the operation. -/ + table : Option Capacity := none + /-- The name of the table that was affected by the operation. -/ + tableName : Option String := none + /-- The amount of throughput consumed on each vector index affected by the operation. -/ + vectorIndexes : Option (Dict String VectorCapacity) := none + /-- The total number of write capacity units consumed by the operation. -/ + writeCapacityUnits : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ConsumedCapacity where + schema := .struct "ConsumedCapacity" [({ name := "CapacityUnits" }, .number), + ({ name := "GlobalSecondaryIndexes" }, (.map .string (Shape.schema Capacity) "key" "value")), + ({ name := "LocalSecondaryIndexes" }, (.map .string (Shape.schema Capacity) "key" "value")), + ({ name := "ReadCapacityUnits" }, .number), + ({ name := "Table" }, (Shape.schema Capacity)), + ({ name := "TableName" }, .string), + ({ name := "VectorIndexes" }, (.map .string (Shape.schema VectorCapacity) "key" "value")), + ({ name := "WriteCapacityUnits" }, .number)] + toValue x := record [putOpt "CapacityUnits" x.capacityUnits, putOpt "GlobalSecondaryIndexes" x.globalSecondaryIndexes, putOpt "LocalSecondaryIndexes" x.localSecondaryIndexes, putOpt "ReadCapacityUnits" x.readCapacityUnits, putOpt "Table" x.table, putOpt "TableName" x.tableName, putOpt "VectorIndexes" x.vectorIndexes, putOpt "WriteCapacityUnits" x.writeCapacityUnits] + ofValue v := do + let capacityUnits ← v.opt "CapacityUnits" + let globalSecondaryIndexes ← v.opt "GlobalSecondaryIndexes" + let localSecondaryIndexes ← v.opt "LocalSecondaryIndexes" + let readCapacityUnits ← v.opt "ReadCapacityUnits" + let table ← v.opt "Table" + let tableName ← v.opt "TableName" + let vectorIndexes ← v.opt "VectorIndexes" + let writeCapacityUnits ← v.opt "WriteCapacityUnits" + return { capacityUnits, globalSecondaryIndexes, localSecondaryIndexes, readCapacityUnits, table, tableName, vectorIndexes, writeCapacityUnits } + +/-- Represents a Contributor Insights summary entry. -/ +structure ContributorInsightsSummary where + /-- Indicates the current mode of CloudWatch Contributor Insights, specifying whether it tracks all access and throttled events or throttled events only for the DynamoDB table or index. -/ + contributorInsightsMode : Option ContributorInsightsMode := none + /-- Describes the current status for contributor insights for the given table and index, if applicable. -/ + contributorInsightsStatus : Option ContributorInsightsStatus := none + /-- Name of the index associated with the summary, if any. -/ + indexName : Option String := none + /-- Name of the table associated with the summary. -/ + tableName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ContributorInsightsSummary where + schema := .struct "ContributorInsightsSummary" [({ name := "ContributorInsightsMode" }, (Shape.schema ContributorInsightsMode)), + ({ name := "ContributorInsightsStatus" }, (Shape.schema ContributorInsightsStatus)), + ({ name := "IndexName" }, .string), + ({ name := "TableName" }, .string)] + toValue x := record [putOpt "ContributorInsightsMode" x.contributorInsightsMode, putOpt "ContributorInsightsStatus" x.contributorInsightsStatus, putOpt "IndexName" x.indexName, putOpt "TableName" x.tableName] + ofValue v := do + let contributorInsightsMode ← v.opt "ContributorInsightsMode" + let contributorInsightsStatus ← v.opt "ContributorInsightsStatus" + let indexName ← v.opt "IndexName" + let tableName ← v.opt "TableName" + return { contributorInsightsMode, contributorInsightsStatus, indexName, tableName } + +structure CreateGlobalTableInput where + /-- The global table name. -/ + globalTableName : String + /-- The Regions where the global table needs to be created. -/ + replicationGroup : (List Replica) +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateGlobalTableInput where + schema := .struct "CreateGlobalTableInput" [({ name := "GlobalTableName", required := true }, .string), + ({ name := "ReplicationGroup", required := true }, (.list (Shape.schema Replica) "member"))] + toValue x := record [put "GlobalTableName" x.globalTableName, put "ReplicationGroup" x.replicationGroup] + ofValue v := do + let globalTableName ← v.req "GlobalTableName" + let replicationGroup ← v.req "ReplicationGroup" + return { globalTableName, replicationGroup } + +structure DescribeContributorInsightsOutput where + /-- The mode of CloudWatch Contributor Insights for DynamoDB that determines which events are emitted. -/ + contributorInsightsMode : Option ContributorInsightsMode := none + /-- List of names of the associated contributor insights rules. -/ + contributorInsightsRuleList : Option (List String) := none + /-- Current status of contributor insights. -/ + contributorInsightsStatus : Option ContributorInsightsStatus := none + /-- Returns information about the last failure that was encountered. -/ + failureException : Option FailureException := none + /-- The name of the global secondary index being described. -/ + indexName : Option String := none + /-- Timestamp of the last time the status was changed. -/ + lastUpdateDateTime : Option Timestamp := none + /-- The name of the table being described. -/ + tableName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeContributorInsightsOutput where + schema := .struct "DescribeContributorInsightsOutput" [({ name := "ContributorInsightsMode" }, (Shape.schema ContributorInsightsMode)), + ({ name := "ContributorInsightsRuleList" }, (.list .string "member")), + ({ name := "ContributorInsightsStatus" }, (Shape.schema ContributorInsightsStatus)), + ({ name := "FailureException" }, (Shape.schema FailureException)), + ({ name := "IndexName" }, .string), + ({ name := "LastUpdateDateTime" }, (.time none)), + ({ name := "TableName" }, .string)] + toValue x := record [putOpt "ContributorInsightsMode" x.contributorInsightsMode, putOpt "ContributorInsightsRuleList" x.contributorInsightsRuleList, putOpt "ContributorInsightsStatus" x.contributorInsightsStatus, putOpt "FailureException" x.failureException, putOpt "IndexName" x.indexName, putOpt "LastUpdateDateTime" x.lastUpdateDateTime, putOpt "TableName" x.tableName] + ofValue v := do + let contributorInsightsMode ← v.opt "ContributorInsightsMode" + let contributorInsightsRuleList ← v.opt "ContributorInsightsRuleList" + let contributorInsightsStatus ← v.opt "ContributorInsightsStatus" + let failureException ← v.opt "FailureException" + let indexName ← v.opt "IndexName" + let lastUpdateDateTime ← v.opt "LastUpdateDateTime" + let tableName ← v.opt "TableName" + return { contributorInsightsMode, contributorInsightsRuleList, contributorInsightsStatus, failureException, indexName, lastUpdateDateTime, tableName } + +structure DescribeEndpointsResponse where + /-- List of endpoints. -/ + endpoints : (List Endpoint) +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeEndpointsResponse where + schema := .struct "DescribeEndpointsResponse" [({ name := "Endpoints", required := true }, (.list (Shape.schema Endpoint) "member"))] + toValue x := record [put "Endpoints" x.endpoints] + ofValue v := do + let endpoints ← v.req "Endpoints" + return { endpoints } + +/-- The parameters for disassociating the local replica from a global table using Version 2019.11.21 with multi-Region eventual consistency (MREC). -/ +structure DisassociateReplicationGroupMemberAction where + /-- The mode for handling pending replication before disassociation completes. -/ + disassociationMode : DisassociationMode + /-- The Region of the replica to disassociate. -/ + regionName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateReplicationGroupMemberAction where + schema := .struct "DisassociateReplicationGroupMemberAction" [({ name := "DisassociationMode", required := true }, (Shape.schema DisassociationMode)), + ({ name := "RegionName", required := true }, .string)] + toValue x := record [put "DisassociationMode" x.disassociationMode, put "RegionName" x.regionName] + ofValue v := do + let disassociationMode ← v.req "DisassociationMode" + let regionName ← v.req "RegionName" + return { disassociationMode, regionName } + +/-- Enables setting the configuration for Kinesis Streaming. -/ +structure EnableKinesisStreamingConfiguration where + /-- Toggle for the precision of Kinesis data stream timestamp. -/ + approximateCreationDateTimePrecision : Option ApproximateCreationDateTimePrecision := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableKinesisStreamingConfiguration where + schema := .struct "EnableKinesisStreamingConfiguration" [({ name := "ApproximateCreationDateTimePrecision" }, (Shape.schema ApproximateCreationDateTimePrecision))] + toValue x := record [putOpt "ApproximateCreationDateTimePrecision" x.approximateCreationDateTimePrecision] + ofValue v := do + let approximateCreationDateTimePrecision ← v.opt "ApproximateCreationDateTimePrecision" + return { approximateCreationDateTimePrecision } + +/-- Summary information about an export task. -/ +structure ExportSummary where + /-- The Amazon Resource Name (ARN) of the export. -/ + exportArn : Option String := none + /-- Export can be in one of the following states: IN_PROGRESS, COMPLETED, or FAILED. -/ + exportStatus : Option ExportStatus := none + /-- The type of export that was performed. -/ + exportType : Option ExportType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExportSummary where + schema := .struct "ExportSummary" [({ name := "ExportArn" }, .string), + ({ name := "ExportStatus" }, (Shape.schema ExportStatus)), + ({ name := "ExportType" }, (Shape.schema ExportType))] + toValue x := record [putOpt "ExportArn" x.exportArn, putOpt "ExportStatus" x.exportStatus, putOpt "ExportType" x.exportType] + ofValue v := do + let exportArn ← v.opt "ExportArn" + let exportStatus ← v.opt "ExportStatus" + let exportType ← v.opt "ExportType" + return { exportArn, exportStatus, exportType } + +/-- The description of the warm throughput value on a global secondary index. -/ +structure GlobalSecondaryIndexWarmThroughputDescription where + /-- Represents warm throughput read units per second value for a global secondary index. -/ + readUnitsPerSecond : Option Int := none + /-- Represents the warm throughput status being created or updated on a global secondary index. -/ + status : Option IndexStatus := none + /-- Represents warm throughput write units per second value for a global secondary index. -/ + writeUnitsPerSecond : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GlobalSecondaryIndexWarmThroughputDescription where + schema := .struct "GlobalSecondaryIndexWarmThroughputDescription" [({ name := "ReadUnitsPerSecond" }, .int), + ({ name := "Status" }, (Shape.schema IndexStatus)), + ({ name := "WriteUnitsPerSecond" }, .int)] + toValue x := record [putOpt "ReadUnitsPerSecond" x.readUnitsPerSecond, putOpt "Status" x.status, putOpt "WriteUnitsPerSecond" x.writeUnitsPerSecond] + ofValue v := do + let readUnitsPerSecond ← v.opt "ReadUnitsPerSecond" + let status ← v.opt "Status" + let writeUnitsPerSecond ← v.opt "WriteUnitsPerSecond" + return { readUnitsPerSecond, status, writeUnitsPerSecond } + +/-- Represents the properties of a global table. -/ +structure GlobalTable where + /-- The global table name. -/ + globalTableName : Option String := none + /-- The Regions where the global table has replicas. -/ + replicationGroup : Option (List Replica) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GlobalTable where + schema := .struct "GlobalTable" [({ name := "GlobalTableName" }, .string), + ({ name := "ReplicationGroup" }, (.list (Shape.schema Replica) "member"))] + toValue x := record [putOpt "GlobalTableName" x.globalTableName, putOpt "ReplicationGroup" x.replicationGroup] + ofValue v := do + let globalTableName ← v.opt "GlobalTableName" + let replicationGroup ← v.opt "ReplicationGroup" + return { globalTableName, replicationGroup } + +/-- Represents the properties of a witness Region in a MRSC global table. -/ +structure GlobalTableWitnessDescription where + /-- The name of the Amazon Web Services Region that serves as a witness for the MRSC global table. -/ + regionName : Option String := none + /-- The current status of the witness Region in the MRSC global table. -/ + witnessStatus : Option WitnessStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GlobalTableWitnessDescription where + schema := .struct "GlobalTableWitnessDescription" [({ name := "RegionName" }, .string), + ({ name := "WitnessStatus" }, (Shape.schema WitnessStatus))] + toValue x := record [putOpt "RegionName" x.regionName, putOpt "WitnessStatus" x.witnessStatus] + ofValue v := do + let regionName ← v.opt "RegionName" + let witnessStatus ← v.opt "WitnessStatus" + return { regionName, witnessStatus } + +/-- Represents one of the following: A new witness to be added to a new global table. -/ +structure GlobalTableWitnessGroupUpdate where + /-- Specifies a witness Region to be added to a new MRSC global table. -/ + create : Option CreateGlobalTableWitnessGroupMemberAction := none + /-- Specifies a witness Region to be removed from an existing global table. -/ + delete : Option DeleteGlobalTableWitnessGroupMemberAction := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GlobalTableWitnessGroupUpdate where + schema := .struct "GlobalTableWitnessGroupUpdate" [({ name := "Create" }, (Shape.schema CreateGlobalTableWitnessGroupMemberAction)), + ({ name := "Delete" }, (Shape.schema DeleteGlobalTableWitnessGroupMemberAction))] + toValue x := record [putOpt "Create" x.create, putOpt "Delete" x.delete] + ofValue v := do + let create ← v.opt "Create" + let delete ← v.opt "Delete" + return { create, delete } + +/-- Summary information about the source file for the import. -/ +structure ImportSummary where + /-- The Amazon Resource Number (ARN) of the Cloudwatch Log Group associated with this import task. -/ + cloudWatchLogGroupArn : Option String := none + /-- The time at which this import task ended. -/ + endTime : Option Timestamp := none + /-- The Amazon Resource Number (ARN) corresponding to the import request. -/ + importArn : Option String := none + /-- The status of the import operation. -/ + importStatus : Option ImportStatus := none + /-- The format of the source data. -/ + inputFormat : Option InputFormat := none + /-- The path and S3 bucket of the source file that is being imported. -/ + s3BucketSource : Option S3BucketSource := none + /-- The time at which this import task began. -/ + startTime : Option Timestamp := none + /-- The Amazon Resource Number (ARN) of the table being imported into. -/ + tableArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportSummary where + schema := .struct "ImportSummary" [({ name := "CloudWatchLogGroupArn" }, .string), + ({ name := "EndTime" }, (.time none)), + ({ name := "ImportArn" }, .string), + ({ name := "ImportStatus" }, (Shape.schema ImportStatus)), + ({ name := "InputFormat" }, (Shape.schema InputFormat)), + ({ name := "S3BucketSource" }, (Shape.schema S3BucketSource)), + ({ name := "StartTime" }, (.time none)), + ({ name := "TableArn" }, .string)] + toValue x := record [putOpt "CloudWatchLogGroupArn" x.cloudWatchLogGroupArn, putOpt "EndTime" x.endTime, putOpt "ImportArn" x.importArn, putOpt "ImportStatus" x.importStatus, putOpt "InputFormat" x.inputFormat, putOpt "S3BucketSource" x.s3BucketSource, putOpt "StartTime" x.startTime, putOpt "TableArn" x.tableArn] + ofValue v := do + let cloudWatchLogGroupArn ← v.opt "CloudWatchLogGroupArn" + let endTime ← v.opt "EndTime" + let importArn ← v.opt "ImportArn" + let importStatus ← v.opt "ImportStatus" + let inputFormat ← v.opt "InputFormat" + let s3BucketSource ← v.opt "S3BucketSource" + let startTime ← v.opt "StartTime" + let tableArn ← v.opt "TableArn" + return { cloudWatchLogGroupArn, endTime, importArn, importStatus, inputFormat, s3BucketSource, startTime, tableArn } + +/-- Optional object containing the parameters specific to an incremental export. -/ +structure IncrementalExportSpecification where + /-- Time in the past which provides the inclusive start range for the export table's data, counted in seconds from the start of the Unix epoch. -/ + exportFromTime : Option Timestamp := none + /-- Time in the past which provides the exclusive end range for the export table's data, counted in seconds from the start of the Unix epoch. -/ + exportToTime : Option Timestamp := none + /-- The view type that was chosen for the export. -/ + exportViewType : Option ExportViewType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IncrementalExportSpecification where + schema := .struct "IncrementalExportSpecification" [({ name := "ExportFromTime" }, (.time none)), + ({ name := "ExportToTime" }, (.time none)), + ({ name := "ExportViewType" }, (Shape.schema ExportViewType))] + toValue x := record [putOpt "ExportFromTime" x.exportFromTime, putOpt "ExportToTime" x.exportToTime, putOpt "ExportViewType" x.exportViewType] + ofValue v := do + let exportFromTime ← v.opt "ExportFromTime" + let exportToTime ← v.opt "ExportToTime" + let exportViewType ← v.opt "ExportViewType" + return { exportFromTime, exportToTime, exportViewType } + +/-- The format options for the data that was imported into the target table. -/ +structure InputFormatOptions where + /-- The options for imported source files in CSV format. -/ + csv : Option CsvOptions := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InputFormatOptions where + schema := .struct "InputFormatOptions" [({ name := "Csv" }, (Shape.schema CsvOptions))] + toValue x := record [putOpt "Csv" x.csv] + ofValue v := do + let csv ← v.opt "Csv" + return { csv } + +/-- Contains the Amazon S3 location and format settings for bulk operation input. -/ +structure InputS3Configuration where + /-- The compression type of the input objects. -/ + inputCompressionType : Option InputCompressionType := none + /-- The format of the input objects. -/ + inputFormat : BulkOperationInputFormat + /-- The name of the Amazon S3 bucket that contains the input objects. -/ + s3Bucket : String + /-- The Amazon Web Services account ID of the input bucket owner. -/ + s3BucketOwner : Option String := none + /-- An optional key prefix that limits the input to matching objects in the Amazon S3 bucket. -/ + s3KeyPrefix : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InputS3Configuration where + schema := .struct "InputS3Configuration" [({ name := "InputCompressionType" }, (Shape.schema InputCompressionType)), + ({ name := "InputFormat", required := true }, (Shape.schema BulkOperationInputFormat)), + ({ name := "S3Bucket", required := true }, .string), + ({ name := "S3BucketOwner" }, .string), + ({ name := "S3KeyPrefix" }, .string)] + toValue x := record [putOpt "InputCompressionType" x.inputCompressionType, put "InputFormat" x.inputFormat, put "S3Bucket" x.s3Bucket, putOpt "S3BucketOwner" x.s3BucketOwner, putOpt "S3KeyPrefix" x.s3KeyPrefix] + ofValue v := do + let inputCompressionType ← v.opt "InputCompressionType" + let inputFormat ← v.req "InputFormat" + let s3Bucket ← v.req "S3Bucket" + let s3BucketOwner ← v.opt "S3BucketOwner" + let s3KeyPrefix ← v.opt "S3KeyPrefix" + return { inputCompressionType, inputFormat, s3Bucket, s3BucketOwner, s3KeyPrefix } + +/-- Represents a single element of a key schema. -/ +structure KeySchemaElement where + /-- The name of a key attribute. -/ + attributeName : String + /-- The role that this key attribute will assume: HASH - partition key RANGE - sort key The partition key of an item is also known as its hash attribute . -/ + keyType : KeyType +deriving DecidableEq, Repr, Inhabited + +instance : Shape KeySchemaElement where + schema := .struct "KeySchemaElement" [({ name := "AttributeName", required := true }, .string), + ({ name := "KeyType", required := true }, (Shape.schema KeyType))] + toValue x := record [put "AttributeName" x.attributeName, put "KeyType" x.keyType] + ofValue v := do + let attributeName ← v.req "AttributeName" + let keyType ← v.req "KeyType" + return { attributeName, keyType } + +/-- Describes a Kinesis data stream destination. -/ +structure KinesisDataStreamDestination where + /-- The precision of the Kinesis data stream timestamp. -/ + approximateCreationDateTimePrecision : Option ApproximateCreationDateTimePrecision := none + /-- The current status of replication. -/ + destinationStatus : Option DestinationStatus := none + /-- The human-readable string that corresponds to the replica status. -/ + destinationStatusDescription : Option String := none + /-- The ARN for a specific Kinesis data stream. -/ + streamArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KinesisDataStreamDestination where + schema := .struct "KinesisDataStreamDestination" [({ name := "ApproximateCreationDateTimePrecision" }, (Shape.schema ApproximateCreationDateTimePrecision)), + ({ name := "DestinationStatus" }, (Shape.schema DestinationStatus)), + ({ name := "DestinationStatusDescription" }, .string), + ({ name := "StreamArn" }, .string)] + toValue x := record [putOpt "ApproximateCreationDateTimePrecision" x.approximateCreationDateTimePrecision, putOpt "DestinationStatus" x.destinationStatus, putOpt "DestinationStatusDescription" x.destinationStatusDescription, putOpt "StreamArn" x.streamArn] + ofValue v := do + let approximateCreationDateTimePrecision ← v.opt "ApproximateCreationDateTimePrecision" + let destinationStatus ← v.opt "DestinationStatus" + let destinationStatusDescription ← v.opt "DestinationStatusDescription" + let streamArn ← v.opt "StreamArn" + return { approximateCreationDateTimePrecision, destinationStatus, destinationStatusDescription, streamArn } + +structure ListBackupsInput where + /-- The backups from the table specified by BackupType are listed. -/ + backupType : Option BackupTypeFilter := none + /-- LastEvaluatedBackupArn is the Amazon Resource Name (ARN) of the backup last evaluated when the current page of results was returned, inclusive of the current page of results. -/ + exclusiveStartBackupArn : Option String := none + /-- Maximum number of backups to return at once. -/ + limit : Option Int := none + /-- Lists the backups from the table specified in TableName . -/ + tableName : Option String := none + /-- Only backups created after this time are listed. -/ + timeRangeLowerBound : Option Timestamp := none + /-- Only backups created before this time are listed. -/ + timeRangeUpperBound : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListBackupsInput where + schema := .struct "ListBackupsInput" [({ name := "BackupType" }, (Shape.schema BackupTypeFilter)), + ({ name := "ExclusiveStartBackupArn" }, .string), + ({ name := "Limit" }, .int), + ({ name := "TableName" }, .string), + ({ name := "TimeRangeLowerBound" }, (.time none)), + ({ name := "TimeRangeUpperBound" }, (.time none))] + toValue x := record [putOpt "BackupType" x.backupType, putOpt "ExclusiveStartBackupArn" x.exclusiveStartBackupArn, putOpt "Limit" x.limit, putOpt "TableName" x.tableName, putOpt "TimeRangeLowerBound" x.timeRangeLowerBound, putOpt "TimeRangeUpperBound" x.timeRangeUpperBound] + ofValue v := do + let backupType ← v.opt "BackupType" + let exclusiveStartBackupArn ← v.opt "ExclusiveStartBackupArn" + let limit ← v.opt "Limit" + let tableName ← v.opt "TableName" + let timeRangeLowerBound ← v.opt "TimeRangeLowerBound" + let timeRangeUpperBound ← v.opt "TimeRangeUpperBound" + return { backupType, exclusiveStartBackupArn, limit, tableName, timeRangeLowerBound, timeRangeUpperBound } + +structure ListTagsOfResourceOutput where + /-- If this value is returned, there are additional results to be displayed. -/ + nextToken : Option String := none + /-- The tags currently associated with the Amazon DynamoDB resource. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListTagsOfResourceOutput where + schema := .struct "ListTagsOfResourceOutput" [({ name := "NextToken" }, .string), + ({ name := "Tags" }, (.list (Shape.schema Tag) "member"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "Tags" x.tags] + ofValue v := do + let nextToken ← v.opt "NextToken" + let tags ← v.opt "Tags" + return { nextToken, tags } + +/-- Contains the Amazon S3 location, encryption settings, and output types for a bulk operation. -/ +structure OutputS3Configuration where + /-- The following values describe the types of output that DynamoDB writes for individual input items. -/ + outputType : (List OutputTypeEnum) + /-- The name of the Amazon S3 bucket where DynamoDB writes output records. -/ + s3Bucket : Option String := none + /-- The Amazon Web Services account ID of the output bucket owner. -/ + s3BucketOwner : Option String := none + /-- An optional key prefix under which DynamoDB writes the output records. -/ + s3KeyPrefix : Option String := none + /-- The server-side encryption algorithm for the output objects. -/ + s3SseAlgorithm : Option S3SseAlgorithm := none + /-- The identifier of the KMS key that encrypts the output objects. -/ + s3SseKmsKeyId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape OutputS3Configuration where + schema := .struct "OutputS3Configuration" [({ name := "OutputType", required := true }, (.list (Shape.schema OutputTypeEnum) "member")), + ({ name := "S3Bucket" }, .string), + ({ name := "S3BucketOwner" }, .string), + ({ name := "S3KeyPrefix" }, .string), + ({ name := "S3SseAlgorithm" }, (Shape.schema S3SseAlgorithm)), + ({ name := "S3SseKmsKeyId" }, .string)] + toValue x := record [put "OutputType" x.outputType, putOpt "S3Bucket" x.s3Bucket, putOpt "S3BucketOwner" x.s3BucketOwner, putOpt "S3KeyPrefix" x.s3KeyPrefix, putOpt "S3SseAlgorithm" x.s3SseAlgorithm, putOpt "S3SseKmsKeyId" x.s3SseKmsKeyId] + ofValue v := do + let outputType ← v.req "OutputType" + let s3Bucket ← v.opt "S3Bucket" + let s3BucketOwner ← v.opt "S3BucketOwner" + let s3KeyPrefix ← v.opt "S3KeyPrefix" + let s3SseAlgorithm ← v.opt "S3SseAlgorithm" + let s3SseKmsKeyId ← v.opt "S3SseKmsKeyId" + return { outputType, s3Bucket, s3BucketOwner, s3KeyPrefix, s3SseAlgorithm, s3SseKmsKeyId } + +/-- The description of the point in time settings applied to the table. -/ +structure PointInTimeRecoveryDescription where + /-- Specifies the earliest point in time you can restore your table to. -/ + earliestRestorableDateTime : Option Timestamp := none + /-- LatestRestorableDateTime is typically 5 minutes before the current time. -/ + latestRestorableDateTime : Option Timestamp := none + /-- The current state of point in time recovery: ENABLED - Point in time recovery is enabled. -/ + pointInTimeRecoveryStatus : Option PointInTimeRecoveryStatus := none + /-- The number of preceding days for which continuous backups are taken and maintained. -/ + recoveryPeriodInDays : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PointInTimeRecoveryDescription where + schema := .struct "PointInTimeRecoveryDescription" [({ name := "EarliestRestorableDateTime" }, (.time none)), + ({ name := "LatestRestorableDateTime" }, (.time none)), + ({ name := "PointInTimeRecoveryStatus" }, (Shape.schema PointInTimeRecoveryStatus)), + ({ name := "RecoveryPeriodInDays" }, .int)] + toValue x := record [putOpt "EarliestRestorableDateTime" x.earliestRestorableDateTime, putOpt "LatestRestorableDateTime" x.latestRestorableDateTime, putOpt "PointInTimeRecoveryStatus" x.pointInTimeRecoveryStatus, putOpt "RecoveryPeriodInDays" x.recoveryPeriodInDays] + ofValue v := do + let earliestRestorableDateTime ← v.opt "EarliestRestorableDateTime" + let latestRestorableDateTime ← v.opt "LatestRestorableDateTime" + let pointInTimeRecoveryStatus ← v.opt "PointInTimeRecoveryStatus" + let recoveryPeriodInDays ← v.opt "RecoveryPeriodInDays" + return { earliestRestorableDateTime, latestRestorableDateTime, pointInTimeRecoveryStatus, recoveryPeriodInDays } + +/-- Represents attributes that are copied (projected) from the table into an index. -/ +structure Projection where + /-- Represents the non-key attribute names which will be projected into the index. -/ + nonKeyAttributes : Option (List String) := none + /-- The set of attributes that are projected into the index: KEYS_ONLY - Only the index and primary keys are projected into the index. -/ + projectionType : Option ProjectionType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Projection where + schema := .struct "Projection" [({ name := "NonKeyAttributes" }, (.list .string "member")), + ({ name := "ProjectionType" }, (Shape.schema ProjectionType))] + toValue x := record [putOpt "NonKeyAttributes" x.nonKeyAttributes, putOpt "ProjectionType" x.projectionType] + ofValue v := do + let nonKeyAttributes ← v.opt "NonKeyAttributes" + let projectionType ← v.opt "ProjectionType" + return { nonKeyAttributes, projectionType } + +/-- The request was denied due to request throttling. -/ +structure ProvisionedThroughputExceededException where + /-- A list of ThrottlingReason that provide detailed diagnostic information about why the request was throttled. -/ + throttlingReasons : Option (List ThrottlingReason) := none + /-- You exceeded your maximum allowed provisioned throughput. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ProvisionedThroughputExceededException where + schema := .struct "ProvisionedThroughputExceededException" [({ name := "ThrottlingReasons" }, (.list (Shape.schema ThrottlingReason) "member")), + ({ name := "message" }, .string)] + toValue x := record [putOpt "ThrottlingReasons" x.throttlingReasons, putOpt "message" x.message] + ofValue v := do + let throttlingReasons ← v.opt "ThrottlingReasons" + let message ← v.opt "message" + return { throttlingReasons, message } + +/-- Represents the properties of a replica global secondary index. -/ +structure ReplicaGlobalSecondaryIndex where + /-- The name of the global secondary index. -/ + indexName : String + /-- Overrides the maximum on-demand throughput settings for the specified global secondary index in the specified replica table. -/ + onDemandThroughputOverride : Option OnDemandThroughputOverride := none + /-- Replica table GSI-specific provisioned throughput. -/ + provisionedThroughputOverride : Option ProvisionedThroughputOverride := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicaGlobalSecondaryIndex where + schema := .struct "ReplicaGlobalSecondaryIndex" [({ name := "IndexName", required := true }, .string), + ({ name := "OnDemandThroughputOverride" }, (Shape.schema OnDemandThroughputOverride)), + ({ name := "ProvisionedThroughputOverride" }, (Shape.schema ProvisionedThroughputOverride))] + toValue x := record [put "IndexName" x.indexName, putOpt "OnDemandThroughputOverride" x.onDemandThroughputOverride, putOpt "ProvisionedThroughputOverride" x.provisionedThroughputOverride] + ofValue v := do + let indexName ← v.req "IndexName" + let onDemandThroughputOverride ← v.opt "OnDemandThroughputOverride" + let provisionedThroughputOverride ← v.opt "ProvisionedThroughputOverride" + return { indexName, onDemandThroughputOverride, provisionedThroughputOverride } + +/-- Represents one of the following: A new replica to be added to an existing global table. -/ +structure ReplicaUpdate where + /-- The parameters required for creating a replica on an existing global table. -/ + create : Option CreateReplicaAction := none + /-- The name of the existing replica to be removed. -/ + delete : Option DeleteReplicaAction := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicaUpdate where + schema := .struct "ReplicaUpdate" [({ name := "Create" }, (Shape.schema CreateReplicaAction)), + ({ name := "Delete" }, (Shape.schema DeleteReplicaAction))] + toValue x := record [putOpt "Create" x.create, putOpt "Delete" x.delete] + ofValue v := do + let create ← v.opt "Create" + let delete ← v.opt "Delete" + return { create, delete } + +/-- Throughput exceeds the current throughput quota for your account. -/ +structure RequestLimitExceeded where + /-- A list of ThrottlingReason that provide detailed diagnostic information about why the request was throttled. -/ + throttlingReasons : Option (List ThrottlingReason) := none + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RequestLimitExceeded where + schema := .struct "RequestLimitExceeded" [({ name := "ThrottlingReasons" }, (.list (Shape.schema ThrottlingReason) "member")), + ({ name := "message" }, .string)] + toValue x := record [putOpt "ThrottlingReasons" x.throttlingReasons, putOpt "message" x.message] + ofValue v := do + let throttlingReasons ← v.opt "ThrottlingReasons" + let message ← v.opt "message" + return { throttlingReasons, message } + +/-- The description of the server-side encryption status on the specified table. -/ +structure SSEDescription where + /-- Indicates the time, in UNIX epoch date format, when DynamoDB detected that the table's KMS key was inaccessible. -/ + inaccessibleEncryptionDateTime : Option Timestamp := none + /-- The KMS key ARN used for the KMS encryption. -/ + kmsMasterKeyArn : Option String := none + /-- Server-side encryption type. -/ + sseType : Option SSEType := none + /-- Represents the current state of server-side encryption. -/ + status : Option SSEStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SSEDescription where + schema := .struct "SSEDescription" [({ name := "InaccessibleEncryptionDateTime" }, (.time none)), + ({ name := "KMSMasterKeyArn" }, .string), + ({ name := "SSEType" }, (Shape.schema SSEType)), + ({ name := "Status" }, (Shape.schema SSEStatus))] + toValue x := record [putOpt "InaccessibleEncryptionDateTime" x.inaccessibleEncryptionDateTime, putOpt "KMSMasterKeyArn" x.kmsMasterKeyArn, putOpt "SSEType" x.sseType, putOpt "Status" x.status] + ofValue v := do + let inaccessibleEncryptionDateTime ← v.opt "InaccessibleEncryptionDateTime" + let kmsMasterKeyArn ← v.opt "KMSMasterKeyArn" + let sseType ← v.opt "SSEType" + let status ← v.opt "Status" + return { inaccessibleEncryptionDateTime, kmsMasterKeyArn, sseType, status } + +/-- Represents the settings used to enable server-side encryption. -/ +structure SSESpecification where + /-- Indicates whether server-side encryption is done using an Amazon Web Services managed key or an Amazon Web Services owned key. -/ + enabled : Option Bool := none + /-- The KMS key that should be used for the KMS encryption. -/ + kmsMasterKeyId : Option String := none + /-- Server-side encryption type. -/ + sseType : Option SSEType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SSESpecification where + schema := .struct "SSESpecification" [({ name := "Enabled" }, .bool), + ({ name := "KMSMasterKeyId" }, .string), + ({ name := "SSEType" }, (Shape.schema SSEType))] + toValue x := record [putOpt "Enabled" x.enabled, putOpt "KMSMasterKeyId" x.kmsMasterKeyId, putOpt "SSEType" x.sseType] + ofValue v := do + let enabled ← v.opt "Enabled" + let kmsMasterKeyId ← v.opt "KMSMasterKeyId" + let sseType ← v.opt "SSEType" + return { enabled, kmsMasterKeyId, sseType } + +/-- An element in the search schema of a vector index. -/ +structure SearchSchemaElement where + /-- The name of the attribute. -/ + attributeName : String + /-- The role of the attribute in the search schema. -/ + searchSchemaElementType : SearchSchemaElementType +deriving DecidableEq, Repr, Inhabited + +instance : Shape SearchSchemaElement where + schema := .struct "SearchSchemaElement" [({ name := "AttributeName", required := true }, .string), + ({ name := "SearchSchemaElementType", required := true }, (Shape.schema SearchSchemaElementType))] + toValue x := record [put "AttributeName" x.attributeName, put "SearchSchemaElementType" x.searchSchemaElementType] + ofValue v := do + let attributeName ← v.req "AttributeName" + let searchSchemaElementType ← v.req "SearchSchemaElementType" + return { attributeName, searchSchemaElementType } + +/-- Represents the DynamoDB Streams configuration for a table in DynamoDB. -/ +structure StreamSpecification where + /-- Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table. -/ + streamEnabled : Bool + /-- When an item in the table is modified, StreamViewType determines what information is written to the stream for this table. -/ + streamViewType : Option StreamViewType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StreamSpecification where + schema := .struct "StreamSpecification" [({ name := "StreamEnabled", required := true }, .bool), + ({ name := "StreamViewType" }, (Shape.schema StreamViewType))] + toValue x := record [put "StreamEnabled" x.streamEnabled, putOpt "StreamViewType" x.streamViewType] + ofValue v := do + let streamEnabled ← v.req "StreamEnabled" + let streamViewType ← v.opt "StreamViewType" + return { streamEnabled, streamViewType } + +/-- Contains details of the table class. -/ +structure TableClassSummary where + /-- The date and time at which the table class was last updated. -/ + lastUpdateDateTime : Option Timestamp := none + /-- The table class of the specified table. -/ + tableClass : Option TableClass := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TableClassSummary where + schema := .struct "TableClassSummary" [({ name := "LastUpdateDateTime" }, (.time none)), + ({ name := "TableClass" }, (Shape.schema TableClass))] + toValue x := record [putOpt "LastUpdateDateTime" x.lastUpdateDateTime, putOpt "TableClass" x.tableClass] + ofValue v := do + let lastUpdateDateTime ← v.opt "LastUpdateDateTime" + let tableClass ← v.opt "TableClass" + return { lastUpdateDateTime, tableClass } + +/-- Represents the warm throughput value (in read units per second and write units per second) of the table. -/ +structure TableWarmThroughputDescription where + /-- Represents the base table's warm throughput value in read units per second. -/ + readUnitsPerSecond : Option Int := none + /-- Represents warm throughput value of the base table. -/ + status : Option TableStatus := none + /-- Represents the base table's warm throughput value in write units per second. -/ + writeUnitsPerSecond : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TableWarmThroughputDescription where + schema := .struct "TableWarmThroughputDescription" [({ name := "ReadUnitsPerSecond" }, .int), + ({ name := "Status" }, (Shape.schema TableStatus)), + ({ name := "WriteUnitsPerSecond" }, .int)] + toValue x := record [putOpt "ReadUnitsPerSecond" x.readUnitsPerSecond, putOpt "Status" x.status, putOpt "WriteUnitsPerSecond" x.writeUnitsPerSecond] + ofValue v := do + let readUnitsPerSecond ← v.opt "ReadUnitsPerSecond" + let status ← v.opt "Status" + let writeUnitsPerSecond ← v.opt "WriteUnitsPerSecond" + return { readUnitsPerSecond, status, writeUnitsPerSecond } + +structure TagResourceInput where + /-- Identifies the Amazon DynamoDB resource to which tags should be added. -/ + resourceArn : String + /-- The tags to be assigned to the Amazon DynamoDB resource. -/ + tags : (List Tag) +deriving DecidableEq, Repr, Inhabited + +instance : Shape TagResourceInput where + schema := .struct "TagResourceInput" [({ name := "ResourceArn", required := true }, .string), + ({ name := "Tags", required := true }, (.list (Shape.schema Tag) "member"))] + toValue x := record [put "ResourceArn" x.resourceArn, put "Tags" x.tags] + ofValue v := do + let resourceArn ← v.req "ResourceArn" + let tags ← v.req "Tags" + return { resourceArn, tags } + +/-- The request was denied due to request throttling. -/ +structure ThrottlingException where + message : Option String := none + /-- A list of ThrottlingReason that provide detailed diagnostic information about why the request was throttled. -/ + throttlingReasons : Option (List ThrottlingReason) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ThrottlingException where + schema := .struct "ThrottlingException" [({ name := "message" }, .string), + ({ name := "throttlingReasons" }, (.list (Shape.schema ThrottlingReason) "member"))] + toValue x := record [putOpt "message" x.message, putOpt "throttlingReasons" x.throttlingReasons] + ofValue v := do + let message ← v.opt "message" + let throttlingReasons ← v.opt "throttlingReasons" + return { message, throttlingReasons } + +/-- The description of the Time to Live (TTL) status on the specified table. -/ +structure TimeToLiveDescription where + /-- The name of the TTL attribute for items in the table. -/ + attributeName : Option String := none + /-- The TTL status for the table. -/ + timeToLiveStatus : Option TimeToLiveStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TimeToLiveDescription where + schema := .struct "TimeToLiveDescription" [({ name := "AttributeName" }, .string), + ({ name := "TimeToLiveStatus" }, (Shape.schema TimeToLiveStatus))] + toValue x := record [putOpt "AttributeName" x.attributeName, putOpt "TimeToLiveStatus" x.timeToLiveStatus] + ofValue v := do + let attributeName ← v.opt "AttributeName" + let timeToLiveStatus ← v.opt "TimeToLiveStatus" + return { attributeName, timeToLiveStatus } + +structure UpdateContinuousBackupsInput where + /-- Represents the settings used to enable point in time recovery. -/ + pointInTimeRecoverySpecification : PointInTimeRecoverySpecification + /-- The name of the table. -/ + tableName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateContinuousBackupsInput where + schema := .struct "UpdateContinuousBackupsInput" [({ name := "PointInTimeRecoverySpecification", required := true }, (Shape.schema PointInTimeRecoverySpecification)), + ({ name := "TableName", required := true }, .string)] + toValue x := record [put "PointInTimeRecoverySpecification" x.pointInTimeRecoverySpecification, put "TableName" x.tableName] + ofValue v := do + let pointInTimeRecoverySpecification ← v.req "PointInTimeRecoverySpecification" + let tableName ← v.req "TableName" + return { pointInTimeRecoverySpecification, tableName } + +structure UpdateContributorInsightsInput where + /-- Represents the contributor insights action. -/ + contributorInsightsAction : ContributorInsightsAction + /-- Specifies whether to track all access and throttled events or throttled events only for the DynamoDB table or index. -/ + contributorInsightsMode : Option ContributorInsightsMode := none + /-- The global secondary index name, if applicable. -/ + indexName : Option String := none + /-- The name of the table. -/ + tableName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateContributorInsightsInput where + schema := .struct "UpdateContributorInsightsInput" [({ name := "ContributorInsightsAction", required := true }, (Shape.schema ContributorInsightsAction)), + ({ name := "ContributorInsightsMode" }, (Shape.schema ContributorInsightsMode)), + ({ name := "IndexName" }, .string), + ({ name := "TableName", required := true }, .string)] + toValue x := record [put "ContributorInsightsAction" x.contributorInsightsAction, putOpt "ContributorInsightsMode" x.contributorInsightsMode, putOpt "IndexName" x.indexName, put "TableName" x.tableName] + ofValue v := do + let contributorInsightsAction ← v.req "ContributorInsightsAction" + let contributorInsightsMode ← v.opt "ContributorInsightsMode" + let indexName ← v.opt "IndexName" + let tableName ← v.req "TableName" + return { contributorInsightsAction, contributorInsightsMode, indexName, tableName } + +structure UpdateContributorInsightsOutput where + /-- The updated mode of CloudWatch Contributor Insights that determines whether to monitor all access and throttled events or to track throttled events exclusively. -/ + contributorInsightsMode : Option ContributorInsightsMode := none + /-- The status of contributor insights. -/ + contributorInsightsStatus : Option ContributorInsightsStatus := none + /-- The name of the global secondary index, if applicable. -/ + indexName : Option String := none + /-- The name of the table. -/ + tableName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateContributorInsightsOutput where + schema := .struct "UpdateContributorInsightsOutput" [({ name := "ContributorInsightsMode" }, (Shape.schema ContributorInsightsMode)), + ({ name := "ContributorInsightsStatus" }, (Shape.schema ContributorInsightsStatus)), + ({ name := "IndexName" }, .string), + ({ name := "TableName" }, .string)] + toValue x := record [putOpt "ContributorInsightsMode" x.contributorInsightsMode, putOpt "ContributorInsightsStatus" x.contributorInsightsStatus, putOpt "IndexName" x.indexName, putOpt "TableName" x.tableName] + ofValue v := do + let contributorInsightsMode ← v.opt "ContributorInsightsMode" + let contributorInsightsStatus ← v.opt "ContributorInsightsStatus" + let indexName ← v.opt "IndexName" + let tableName ← v.opt "TableName" + return { contributorInsightsMode, contributorInsightsStatus, indexName, tableName } + +/-- Represents the new provisioned throughput settings to be applied to a global secondary index. -/ +structure UpdateGlobalSecondaryIndexAction where + /-- The name of the global secondary index to be updated. -/ + indexName : String + /-- Updates the maximum number of read and write units for the specified global secondary index. -/ + onDemandThroughput : Option OnDemandThroughput := none + /-- Represents the provisioned throughput settings for the specified global secondary index. -/ + provisionedThroughput : Option ProvisionedThroughput := none + /-- Represents the warm throughput value of the new provisioned throughput settings to be applied to a global secondary index. -/ + warmThroughput : Option WarmThroughput := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateGlobalSecondaryIndexAction where + schema := .struct "UpdateGlobalSecondaryIndexAction" [({ name := "IndexName", required := true }, .string), + ({ name := "OnDemandThroughput" }, (Shape.schema OnDemandThroughput)), + ({ name := "ProvisionedThroughput" }, (Shape.schema ProvisionedThroughput)), + ({ name := "WarmThroughput" }, (Shape.schema WarmThroughput))] + toValue x := record [put "IndexName" x.indexName, putOpt "OnDemandThroughput" x.onDemandThroughput, putOpt "ProvisionedThroughput" x.provisionedThroughput, putOpt "WarmThroughput" x.warmThroughput] + ofValue v := do + let indexName ← v.req "IndexName" + let onDemandThroughput ← v.opt "OnDemandThroughput" + let provisionedThroughput ← v.opt "ProvisionedThroughput" + let warmThroughput ← v.opt "WarmThroughput" + return { indexName, onDemandThroughput, provisionedThroughput, warmThroughput } + +/-- Enables updating the configuration for Kinesis Streaming. -/ +structure UpdateKinesisStreamingConfiguration where + /-- Enables updating the precision of Kinesis data stream timestamp. -/ + approximateCreationDateTimePrecision : Option ApproximateCreationDateTimePrecision := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateKinesisStreamingConfiguration where + schema := .struct "UpdateKinesisStreamingConfiguration" [({ name := "ApproximateCreationDateTimePrecision" }, (Shape.schema ApproximateCreationDateTimePrecision))] + toValue x := record [putOpt "ApproximateCreationDateTimePrecision" x.approximateCreationDateTimePrecision] + ofValue v := do + let approximateCreationDateTimePrecision ← v.opt "ApproximateCreationDateTimePrecision" + return { approximateCreationDateTimePrecision } + +/-- Represents the input of an UpdateTimeToLive operation. -/ +structure UpdateTimeToLiveInput where + /-- The name of the table to be configured. -/ + tableName : String + /-- Represents the settings used to enable or disable Time to Live for the specified table. -/ + timeToLiveSpecification : TimeToLiveSpecification +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateTimeToLiveInput where + schema := .struct "UpdateTimeToLiveInput" [({ name := "TableName", required := true }, .string), + ({ name := "TimeToLiveSpecification", required := true }, (Shape.schema TimeToLiveSpecification))] + toValue x := record [put "TableName" x.tableName, put "TimeToLiveSpecification" x.timeToLiveSpecification] + ofValue v := do + let tableName ← v.req "TableName" + let timeToLiveSpecification ← v.req "TimeToLiveSpecification" + return { tableName, timeToLiveSpecification } + +structure UpdateTimeToLiveOutput where + /-- Represents the output of an UpdateTimeToLive operation. -/ + timeToLiveSpecification : Option TimeToLiveSpecification := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateTimeToLiveOutput where + schema := .struct "UpdateTimeToLiveOutput" [({ name := "TimeToLiveSpecification" }, (Shape.schema TimeToLiveSpecification))] + toValue x := record [putOpt "TimeToLiveSpecification" x.timeToLiveSpecification] + ofValue v := do + let timeToLiveSpecification ← v.opt "TimeToLiveSpecification" + return { timeToLiveSpecification } + +/-- Represents the auto scaling settings for a global table or global secondary index. -/ +structure AutoScalingSettingsDescription where + /-- Disabled auto scaling for this global table or global secondary index. -/ + autoScalingDisabled : Option Bool := none + /-- Role ARN used for configuring the auto scaling policy. -/ + autoScalingRoleArn : Option String := none + /-- The maximum capacity units that a global table or global secondary index should be scaled up to. -/ + maximumUnits : Option Int := none + /-- The minimum capacity units that a global table or global secondary index should be scaled down to. -/ + minimumUnits : Option Int := none + /-- Information about the scaling policies. -/ + scalingPolicies : Option (List AutoScalingPolicyDescription) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AutoScalingSettingsDescription where + schema := .struct "AutoScalingSettingsDescription" [({ name := "AutoScalingDisabled" }, .bool), + ({ name := "AutoScalingRoleArn" }, .string), + ({ name := "MaximumUnits" }, .int), + ({ name := "MinimumUnits" }, .int), + ({ name := "ScalingPolicies" }, (.list (Shape.schema AutoScalingPolicyDescription) "member"))] + toValue x := record [putOpt "AutoScalingDisabled" x.autoScalingDisabled, putOpt "AutoScalingRoleArn" x.autoScalingRoleArn, putOpt "MaximumUnits" x.maximumUnits, putOpt "MinimumUnits" x.minimumUnits, putOpt "ScalingPolicies" x.scalingPolicies] + ofValue v := do + let autoScalingDisabled ← v.opt "AutoScalingDisabled" + let autoScalingRoleArn ← v.opt "AutoScalingRoleArn" + let maximumUnits ← v.opt "MaximumUnits" + let minimumUnits ← v.opt "MinimumUnits" + let scalingPolicies ← v.opt "ScalingPolicies" + return { autoScalingDisabled, autoScalingRoleArn, maximumUnits, minimumUnits, scalingPolicies } + +/-- Represents the auto scaling settings to be modified for a global table or global secondary index. -/ +structure AutoScalingSettingsUpdate where + /-- Disabled auto scaling for this global table or global secondary index. -/ + autoScalingDisabled : Option Bool := none + /-- Role ARN used for configuring auto scaling policy. -/ + autoScalingRoleArn : Option String := none + /-- The maximum capacity units that a global table or global secondary index should be scaled up to. -/ + maximumUnits : Option Int := none + /-- The minimum capacity units that a global table or global secondary index should be scaled down to. -/ + minimumUnits : Option Int := none + /-- The scaling policy to apply for scaling target global table or global secondary index capacity units. -/ + scalingPolicyUpdate : Option AutoScalingPolicyUpdate := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AutoScalingSettingsUpdate where + schema := .struct "AutoScalingSettingsUpdate" [({ name := "AutoScalingDisabled" }, .bool), + ({ name := "AutoScalingRoleArn" }, .string), + ({ name := "MaximumUnits" }, .int), + ({ name := "MinimumUnits" }, .int), + ({ name := "ScalingPolicyUpdate" }, (Shape.schema AutoScalingPolicyUpdate))] + toValue x := record [putOpt "AutoScalingDisabled" x.autoScalingDisabled, putOpt "AutoScalingRoleArn" x.autoScalingRoleArn, putOpt "MaximumUnits" x.maximumUnits, putOpt "MinimumUnits" x.minimumUnits, putOpt "ScalingPolicyUpdate" x.scalingPolicyUpdate] + ofValue v := do + let autoScalingDisabled ← v.opt "AutoScalingDisabled" + let autoScalingRoleArn ← v.opt "AutoScalingRoleArn" + let maximumUnits ← v.opt "MaximumUnits" + let minimumUnits ← v.opt "MinimumUnits" + let scalingPolicyUpdate ← v.opt "ScalingPolicyUpdate" + return { autoScalingDisabled, autoScalingRoleArn, maximumUnits, minimumUnits, scalingPolicyUpdate } + +/-- Contains detailed information about a bulk operation. -/ +structure BulkOperationDescription where + /-- The Amazon Resource Name (ARN) of the bulk operation. -/ + bulkOperationArn : Option String := none + /-- The current status of the bulk operation can be one of the following values: IN_PROGRESS DynamoDB is processing the input. -/ + bulkOperationStatus : Option BulkOperationStatus := none + /-- Usage information for the table and its indexes. -/ + bulkOperationUsage : Option (List BulkOperationUsage) := none + /-- The idempotency token associated with the start request. -/ + clientToken : Option String := none + /-- The time when the operation reached a terminal status. -/ + endTime : Option Timestamp := none + /-- The number of processed input items that failed because of parsing or validation errors. -/ + failedItemCount : Option Int := none + /-- A code that identifies why the bulk operation failed or was cancelled. -/ + failureCode : Option String := none + /-- A message that describes why the bulk operation failed or was cancelled. -/ + failureMessage : Option String := none + /-- The Amazon S3 input configuration associated with the bulk operation. -/ + inputS3Configuration : Option InputS3Configuration := none + /-- The maximum write request unit rate configured for the bulk operation. -/ + maxWriteRequestUnits : Option Int := none + /-- The Amazon S3 output configuration associated with the bulk operation. -/ + outputS3Configuration : Option OutputS3Configuration := none + /-- The performance tier selected for the bulk operation. -/ + performanceTier : Option BulkOperationPerformanceTier := none + /-- The number of bytes that DynamoDB has read from the Amazon S3 input objects. -/ + processedInputBytes : Option Int := none + /-- The number of input items that DynamoDB has processed. -/ + processedItemCount : Option Int := none + /-- The time when DynamoDB accepted the start request. -/ + startTime : Option Timestamp := none + /-- A list containing identifying information for the table targeted by the bulk operation. -/ + tableDetails : Option (List BulkOperationTableDetail) := none + /-- The total size, in bytes, of the Amazon S3 input objects. -/ + totalInputBytes : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BulkOperationDescription where + schema := .struct "BulkOperationDescription" [({ name := "BulkOperationArn" }, .string), + ({ name := "BulkOperationStatus" }, (Shape.schema BulkOperationStatus)), + ({ name := "BulkOperationUsage" }, (.list (Shape.schema BulkOperationUsage) "member")), + ({ name := "ClientToken" }, .string), + ({ name := "EndTime" }, (.time none)), + ({ name := "FailedItemCount" }, .int), + ({ name := "FailureCode" }, .string), + ({ name := "FailureMessage" }, .string), + ({ name := "InputS3Configuration" }, (Shape.schema InputS3Configuration)), + ({ name := "MaxWriteRequestUnits" }, .int), + ({ name := "OutputS3Configuration" }, (Shape.schema OutputS3Configuration)), + ({ name := "PerformanceTier" }, (Shape.schema BulkOperationPerformanceTier)), + ({ name := "ProcessedInputBytes" }, .int), + ({ name := "ProcessedItemCount" }, .int), + ({ name := "StartTime" }, (.time none)), + ({ name := "TableDetails" }, (.list (Shape.schema BulkOperationTableDetail) "member")), + ({ name := "TotalInputBytes" }, .int)] + toValue x := record [putOpt "BulkOperationArn" x.bulkOperationArn, putOpt "BulkOperationStatus" x.bulkOperationStatus, putOpt "BulkOperationUsage" x.bulkOperationUsage, putOpt "ClientToken" x.clientToken, putOpt "EndTime" x.endTime, putOpt "FailedItemCount" x.failedItemCount, putOpt "FailureCode" x.failureCode, putOpt "FailureMessage" x.failureMessage, putOpt "InputS3Configuration" x.inputS3Configuration, putOpt "MaxWriteRequestUnits" x.maxWriteRequestUnits, putOpt "OutputS3Configuration" x.outputS3Configuration, putOpt "PerformanceTier" x.performanceTier, putOpt "ProcessedInputBytes" x.processedInputBytes, putOpt "ProcessedItemCount" x.processedItemCount, putOpt "StartTime" x.startTime, putOpt "TableDetails" x.tableDetails, putOpt "TotalInputBytes" x.totalInputBytes] + ofValue v := do + let bulkOperationArn ← v.opt "BulkOperationArn" + let bulkOperationStatus ← v.opt "BulkOperationStatus" + let bulkOperationUsage ← v.opt "BulkOperationUsage" + let clientToken ← v.opt "ClientToken" + let endTime ← v.opt "EndTime" + let failedItemCount ← v.opt "FailedItemCount" + let failureCode ← v.opt "FailureCode" + let failureMessage ← v.opt "FailureMessage" + let inputS3Configuration ← v.opt "InputS3Configuration" + let maxWriteRequestUnits ← v.opt "MaxWriteRequestUnits" + let outputS3Configuration ← v.opt "OutputS3Configuration" + let performanceTier ← v.opt "PerformanceTier" + let processedInputBytes ← v.opt "ProcessedInputBytes" + let processedItemCount ← v.opt "ProcessedItemCount" + let startTime ← v.opt "StartTime" + let tableDetails ← v.opt "TableDetails" + let totalInputBytes ← v.opt "TotalInputBytes" + return { bulkOperationArn, bulkOperationStatus, bulkOperationUsage, clientToken, endTime, failedItemCount, failureCode, failureMessage, inputS3Configuration, maxWriteRequestUnits, outputS3Configuration, performanceTier, processedInputBytes, processedItemCount, startTime, tableDetails, totalInputBytes } + +/-- Represents the continuous backups and point in time recovery settings on the table. -/ +structure ContinuousBackupsDescription where + /-- ContinuousBackupsStatus can be one of the following states: ENABLED, DISABLED. -/ + continuousBackupsStatus : ContinuousBackupsStatus + /-- The description of the point in time recovery settings applied to the table. -/ + pointInTimeRecoveryDescription : Option PointInTimeRecoveryDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ContinuousBackupsDescription where + schema := .struct "ContinuousBackupsDescription" [({ name := "ContinuousBackupsStatus", required := true }, (Shape.schema ContinuousBackupsStatus)), + ({ name := "PointInTimeRecoveryDescription" }, (Shape.schema PointInTimeRecoveryDescription))] + toValue x := record [put "ContinuousBackupsStatus" x.continuousBackupsStatus, putOpt "PointInTimeRecoveryDescription" x.pointInTimeRecoveryDescription] + ofValue v := do + let continuousBackupsStatus ← v.req "ContinuousBackupsStatus" + let pointInTimeRecoveryDescription ← v.opt "PointInTimeRecoveryDescription" + return { continuousBackupsStatus, pointInTimeRecoveryDescription } + +structure CreateBackupOutput where + /-- Contains the details of the backup created for the table. -/ + backupDetails : Option BackupDetails := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateBackupOutput where + schema := .struct "CreateBackupOutput" [({ name := "BackupDetails" }, (Shape.schema BackupDetails))] + toValue x := record [putOpt "BackupDetails" x.backupDetails] + ofValue v := do + let backupDetails ← v.opt "BackupDetails" + return { backupDetails } + +/-- Represents a new global secondary index to be added to an existing table. -/ +structure CreateGlobalSecondaryIndexAction where + /-- The name of the global secondary index to be created. -/ + indexName : String + /-- The key schema for the global secondary index. -/ + keySchema : (List KeySchemaElement) + /-- The maximum number of read and write units for the global secondary index being created. -/ + onDemandThroughput : Option OnDemandThroughput := none + /-- Represents attributes that are copied (projected) from the table into an index. -/ + projection : Projection + /-- Represents the provisioned throughput settings for the specified global secondary index. -/ + provisionedThroughput : Option ProvisionedThroughput := none + /-- Represents the warm throughput value (in read units per second and write units per second) when creating a secondary index. -/ + warmThroughput : Option WarmThroughput := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateGlobalSecondaryIndexAction where + schema := .struct "CreateGlobalSecondaryIndexAction" [({ name := "IndexName", required := true }, .string), + ({ name := "KeySchema", required := true }, (.list (Shape.schema KeySchemaElement) "member")), + ({ name := "OnDemandThroughput" }, (Shape.schema OnDemandThroughput)), + ({ name := "Projection", required := true }, (Shape.schema Projection)), + ({ name := "ProvisionedThroughput" }, (Shape.schema ProvisionedThroughput)), + ({ name := "WarmThroughput" }, (Shape.schema WarmThroughput))] + toValue x := record [put "IndexName" x.indexName, put "KeySchema" x.keySchema, putOpt "OnDemandThroughput" x.onDemandThroughput, put "Projection" x.projection, putOpt "ProvisionedThroughput" x.provisionedThroughput, putOpt "WarmThroughput" x.warmThroughput] + ofValue v := do + let indexName ← v.req "IndexName" + let keySchema ← v.req "KeySchema" + let onDemandThroughput ← v.opt "OnDemandThroughput" + let projection ← v.req "Projection" + let provisionedThroughput ← v.opt "ProvisionedThroughput" + let warmThroughput ← v.opt "WarmThroughput" + return { indexName, keySchema, onDemandThroughput, projection, provisionedThroughput, warmThroughput } + +/-- Represents a replica to be created. -/ +structure CreateReplicationGroupMemberAction where + /-- Replica-specific global secondary index settings. -/ + globalSecondaryIndexes : Option (List ReplicaGlobalSecondaryIndex) := none + /-- The KMS key that should be used for KMS encryption in the new replica. -/ + kmsMasterKeyId : Option String := none + /-- The maximum on-demand throughput settings for the specified replica table being created. -/ + onDemandThroughputOverride : Option OnDemandThroughputOverride := none + /-- Replica-specific provisioned throughput. -/ + provisionedThroughputOverride : Option ProvisionedThroughputOverride := none + /-- The Region where the new replica will be created. -/ + regionName : String + /-- Replica-specific table class. -/ + tableClassOverride : Option TableClass := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateReplicationGroupMemberAction where + schema := .struct "CreateReplicationGroupMemberAction" [({ name := "GlobalSecondaryIndexes" }, (.list (Shape.schema ReplicaGlobalSecondaryIndex) "member")), + ({ name := "KMSMasterKeyId" }, .string), + ({ name := "OnDemandThroughputOverride" }, (Shape.schema OnDemandThroughputOverride)), + ({ name := "ProvisionedThroughputOverride" }, (Shape.schema ProvisionedThroughputOverride)), + ({ name := "RegionName", required := true }, .string), + ({ name := "TableClassOverride" }, (Shape.schema TableClass))] + toValue x := record [putOpt "GlobalSecondaryIndexes" x.globalSecondaryIndexes, putOpt "KMSMasterKeyId" x.kmsMasterKeyId, putOpt "OnDemandThroughputOverride" x.onDemandThroughputOverride, putOpt "ProvisionedThroughputOverride" x.provisionedThroughputOverride, put "RegionName" x.regionName, putOpt "TableClassOverride" x.tableClassOverride] + ofValue v := do + let globalSecondaryIndexes ← v.opt "GlobalSecondaryIndexes" + let kmsMasterKeyId ← v.opt "KMSMasterKeyId" + let onDemandThroughputOverride ← v.opt "OnDemandThroughputOverride" + let provisionedThroughputOverride ← v.opt "ProvisionedThroughputOverride" + let regionName ← v.req "RegionName" + let tableClassOverride ← v.opt "TableClassOverride" + return { globalSecondaryIndexes, kmsMasterKeyId, onDemandThroughputOverride, provisionedThroughputOverride, regionName, tableClassOverride } + +/-- A new vector index to be added to a table. -/ +structure CreateVectorIndexAction where + /-- The number of dimensions in each vector. -/ + dimensions : Int + /-- The distance function used to calculate similarity. -/ + distanceFunction : VectorDistanceFunction + /-- The name of the vector index. -/ + indexName : String + /-- Specifies attributes that are copied (projected) from the table into the vector index. -/ + projection : Projection + /-- The partition key and inline filter attribute definitions for the vector index. -/ + searchSchema : Option (List SearchSchemaElement) := none + /-- The attribute that contains vector embeddings. -/ + vectorAttribute : VectorAttributeDefinition +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVectorIndexAction where + schema := .struct "CreateVectorIndexAction" [({ name := "Dimensions", required := true }, .int), + ({ name := "DistanceFunction", required := true }, (Shape.schema VectorDistanceFunction)), + ({ name := "IndexName", required := true }, .string), + ({ name := "Projection", required := true }, (Shape.schema Projection)), + ({ name := "SearchSchema" }, (.list (Shape.schema SearchSchemaElement) "member")), + ({ name := "VectorAttribute", required := true }, (Shape.schema VectorAttributeDefinition))] + toValue x := record [put "Dimensions" x.dimensions, put "DistanceFunction" x.distanceFunction, put "IndexName" x.indexName, put "Projection" x.projection, putOpt "SearchSchema" x.searchSchema, put "VectorAttribute" x.vectorAttribute] + ofValue v := do + let dimensions ← v.req "Dimensions" + let distanceFunction ← v.req "DistanceFunction" + let indexName ← v.req "IndexName" + let projection ← v.req "Projection" + let searchSchema ← v.opt "SearchSchema" + let vectorAttribute ← v.req "VectorAttribute" + return { dimensions, distanceFunction, indexName, projection, searchSchema, vectorAttribute } + +structure DescribeKinesisStreamingDestinationOutput where + /-- The list of replica structures for the table being described. -/ + kinesisDataStreamDestinations : Option (List KinesisDataStreamDestination) := none + /-- The name of the table being described. -/ + tableName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeKinesisStreamingDestinationOutput where + schema := .struct "DescribeKinesisStreamingDestinationOutput" [({ name := "KinesisDataStreamDestinations" }, (.list (Shape.schema KinesisDataStreamDestination) "member")), + ({ name := "TableName" }, .string)] + toValue x := record [putOpt "KinesisDataStreamDestinations" x.kinesisDataStreamDestinations, putOpt "TableName" x.tableName] + ofValue v := do + let kinesisDataStreamDestinations ← v.opt "KinesisDataStreamDestinations" + let tableName ← v.opt "TableName" + return { kinesisDataStreamDestinations, tableName } + +structure DescribeTimeToLiveOutput where + timeToLiveDescription : Option TimeToLiveDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTimeToLiveOutput where + schema := .struct "DescribeTimeToLiveOutput" [({ name := "TimeToLiveDescription" }, (Shape.schema TimeToLiveDescription))] + toValue x := record [putOpt "TimeToLiveDescription" x.timeToLiveDescription] + ofValue v := do + let timeToLiveDescription ← v.opt "TimeToLiveDescription" + return { timeToLiveDescription } + +/-- Represents the properties of a global secondary index. -/ +structure GlobalSecondaryIndex where + /-- The name of the global secondary index. -/ + indexName : String + /-- The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types: HASH - partition key RANGE - sort key The partition key of an item is also known as its hash attribute . -/ + keySchema : (List KeySchemaElement) + /-- The maximum number of read and write units for the specified global secondary index. -/ + onDemandThroughput : Option OnDemandThroughput := none + /-- Represents attributes that are copied (projected) from the table into the global secondary index. -/ + projection : Projection + /-- Represents the provisioned throughput settings for the specified global secondary index. -/ + provisionedThroughput : Option ProvisionedThroughput := none + /-- Represents the warm throughput value (in read units per second and write units per second) for the specified secondary index. -/ + warmThroughput : Option WarmThroughput := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GlobalSecondaryIndex where + schema := .struct "GlobalSecondaryIndex" [({ name := "IndexName", required := true }, .string), + ({ name := "KeySchema", required := true }, (.list (Shape.schema KeySchemaElement) "member")), + ({ name := "OnDemandThroughput" }, (Shape.schema OnDemandThroughput)), + ({ name := "Projection", required := true }, (Shape.schema Projection)), + ({ name := "ProvisionedThroughput" }, (Shape.schema ProvisionedThroughput)), + ({ name := "WarmThroughput" }, (Shape.schema WarmThroughput))] + toValue x := record [put "IndexName" x.indexName, put "KeySchema" x.keySchema, putOpt "OnDemandThroughput" x.onDemandThroughput, put "Projection" x.projection, putOpt "ProvisionedThroughput" x.provisionedThroughput, putOpt "WarmThroughput" x.warmThroughput] + ofValue v := do + let indexName ← v.req "IndexName" + let keySchema ← v.req "KeySchema" + let onDemandThroughput ← v.opt "OnDemandThroughput" + let projection ← v.req "Projection" + let provisionedThroughput ← v.opt "ProvisionedThroughput" + let warmThroughput ← v.opt "WarmThroughput" + return { indexName, keySchema, onDemandThroughput, projection, provisionedThroughput, warmThroughput } + +/-- Represents the properties of a global secondary index. -/ +structure GlobalSecondaryIndexDescription where + /-- Indicates whether the index is currently backfilling. -/ + backfilling : Option Bool := none + /-- The Amazon Resource Name (ARN) that uniquely identifies the index. -/ + indexArn : Option String := none + /-- The name of the global secondary index. -/ + indexName : Option String := none + /-- The total size of the specified index, in bytes. -/ + indexSizeBytes : Option Int := none + /-- The current state of the global secondary index: CREATING - The index is being created. -/ + indexStatus : Option IndexStatus := none + /-- The number of items in the specified index. -/ + itemCount : Option Int := none + /-- The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types: HASH - partition key RANGE - sort key The partition key of an item is also known as its hash attribute . -/ + keySchema : Option (List KeySchemaElement) := none + /-- The maximum number of read and write units for the specified global secondary index. -/ + onDemandThroughput : Option OnDemandThroughput := none + /-- Represents attributes that are copied (projected) from the table into the global secondary index. -/ + projection : Option Projection := none + /-- Represents the provisioned throughput settings for the specified global secondary index. -/ + provisionedThroughput : Option ProvisionedThroughputDescription := none + /-- Represents the warm throughput value (in read units per second and write units per second) for the specified secondary index. -/ + warmThroughput : Option GlobalSecondaryIndexWarmThroughputDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GlobalSecondaryIndexDescription where + schema := .struct "GlobalSecondaryIndexDescription" [({ name := "Backfilling" }, .bool), + ({ name := "IndexArn" }, .string), + ({ name := "IndexName" }, .string), + ({ name := "IndexSizeBytes" }, .int), + ({ name := "IndexStatus" }, (Shape.schema IndexStatus)), + ({ name := "ItemCount" }, .int), + ({ name := "KeySchema" }, (.list (Shape.schema KeySchemaElement) "member")), + ({ name := "OnDemandThroughput" }, (Shape.schema OnDemandThroughput)), + ({ name := "Projection" }, (Shape.schema Projection)), + ({ name := "ProvisionedThroughput" }, (Shape.schema ProvisionedThroughputDescription)), + ({ name := "WarmThroughput" }, (Shape.schema GlobalSecondaryIndexWarmThroughputDescription))] + toValue x := record [putOpt "Backfilling" x.backfilling, putOpt "IndexArn" x.indexArn, putOpt "IndexName" x.indexName, putOpt "IndexSizeBytes" x.indexSizeBytes, putOpt "IndexStatus" x.indexStatus, putOpt "ItemCount" x.itemCount, putOpt "KeySchema" x.keySchema, putOpt "OnDemandThroughput" x.onDemandThroughput, putOpt "Projection" x.projection, putOpt "ProvisionedThroughput" x.provisionedThroughput, putOpt "WarmThroughput" x.warmThroughput] + ofValue v := do + let backfilling ← v.opt "Backfilling" + let indexArn ← v.opt "IndexArn" + let indexName ← v.opt "IndexName" + let indexSizeBytes ← v.opt "IndexSizeBytes" + let indexStatus ← v.opt "IndexStatus" + let itemCount ← v.opt "ItemCount" + let keySchema ← v.opt "KeySchema" + let onDemandThroughput ← v.opt "OnDemandThroughput" + let projection ← v.opt "Projection" + let provisionedThroughput ← v.opt "ProvisionedThroughput" + let warmThroughput ← v.opt "WarmThroughput" + return { backfilling, indexArn, indexName, indexSizeBytes, indexStatus, itemCount, keySchema, onDemandThroughput, projection, provisionedThroughput, warmThroughput } + +/-- Represents the properties of a global secondary index for the table when the backup was created. -/ +structure GlobalSecondaryIndexInfo where + /-- The name of the global secondary index. -/ + indexName : Option String := none + /-- The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types: HASH - partition key RANGE - sort key The partition key of an item is also known as its hash attribute . -/ + keySchema : Option (List KeySchemaElement) := none + onDemandThroughput : Option OnDemandThroughput := none + /-- Represents attributes that are copied (projected) from the table into the global secondary index. -/ + projection : Option Projection := none + /-- Represents the provisioned throughput settings for the specified global secondary index. -/ + provisionedThroughput : Option ProvisionedThroughput := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GlobalSecondaryIndexInfo where + schema := .struct "GlobalSecondaryIndexInfo" [({ name := "IndexName" }, .string), + ({ name := "KeySchema" }, (.list (Shape.schema KeySchemaElement) "member")), + ({ name := "OnDemandThroughput" }, (Shape.schema OnDemandThroughput)), + ({ name := "Projection" }, (Shape.schema Projection)), + ({ name := "ProvisionedThroughput" }, (Shape.schema ProvisionedThroughput))] + toValue x := record [putOpt "IndexName" x.indexName, putOpt "KeySchema" x.keySchema, putOpt "OnDemandThroughput" x.onDemandThroughput, putOpt "Projection" x.projection, putOpt "ProvisionedThroughput" x.provisionedThroughput] + ofValue v := do + let indexName ← v.opt "IndexName" + let keySchema ← v.opt "KeySchema" + let onDemandThroughput ← v.opt "OnDemandThroughput" + let projection ← v.opt "Projection" + let provisionedThroughput ← v.opt "ProvisionedThroughput" + return { indexName, keySchema, onDemandThroughput, projection, provisionedThroughput } + +structure KinesisStreamingDestinationInput where + /-- The source for the Kinesis streaming information that is being enabled. -/ + enableKinesisStreamingConfiguration : Option EnableKinesisStreamingConfiguration := none + /-- The ARN for a Kinesis data stream. -/ + streamArn : String + /-- The name of the DynamoDB table. -/ + tableName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape KinesisStreamingDestinationInput where + schema := .struct "KinesisStreamingDestinationInput" [({ name := "EnableKinesisStreamingConfiguration" }, (Shape.schema EnableKinesisStreamingConfiguration)), + ({ name := "StreamArn", required := true }, .string), + ({ name := "TableName", required := true }, .string)] + toValue x := record [putOpt "EnableKinesisStreamingConfiguration" x.enableKinesisStreamingConfiguration, put "StreamArn" x.streamArn, put "TableName" x.tableName] + ofValue v := do + let enableKinesisStreamingConfiguration ← v.opt "EnableKinesisStreamingConfiguration" + let streamArn ← v.req "StreamArn" + let tableName ← v.req "TableName" + return { enableKinesisStreamingConfiguration, streamArn, tableName } + +structure KinesisStreamingDestinationOutput where + /-- The current status of the replication. -/ + destinationStatus : Option DestinationStatus := none + /-- The destination for the Kinesis streaming information that is being enabled. -/ + enableKinesisStreamingConfiguration : Option EnableKinesisStreamingConfiguration := none + /-- The ARN for the specific Kinesis data stream. -/ + streamArn : Option String := none + /-- The name of the table being modified. -/ + tableName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KinesisStreamingDestinationOutput where + schema := .struct "KinesisStreamingDestinationOutput" [({ name := "DestinationStatus" }, (Shape.schema DestinationStatus)), + ({ name := "EnableKinesisStreamingConfiguration" }, (Shape.schema EnableKinesisStreamingConfiguration)), + ({ name := "StreamArn" }, .string), + ({ name := "TableName" }, .string)] + toValue x := record [putOpt "DestinationStatus" x.destinationStatus, putOpt "EnableKinesisStreamingConfiguration" x.enableKinesisStreamingConfiguration, putOpt "StreamArn" x.streamArn, putOpt "TableName" x.tableName] + ofValue v := do + let destinationStatus ← v.opt "DestinationStatus" + let enableKinesisStreamingConfiguration ← v.opt "EnableKinesisStreamingConfiguration" + let streamArn ← v.opt "StreamArn" + let tableName ← v.opt "TableName" + return { destinationStatus, enableKinesisStreamingConfiguration, streamArn, tableName } + +structure ListBackupsOutput where + /-- List of BackupSummary objects. -/ + backupSummaries : Option (List BackupSummary) := none + /-- The ARN of the backup last evaluated when the current page of results was returned, inclusive of the current page of results. -/ + lastEvaluatedBackupArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListBackupsOutput where + schema := .struct "ListBackupsOutput" [({ name := "BackupSummaries" }, (.list (Shape.schema BackupSummary) "member")), + ({ name := "LastEvaluatedBackupArn" }, .string)] + toValue x := record [putOpt "BackupSummaries" x.backupSummaries, putOpt "LastEvaluatedBackupArn" x.lastEvaluatedBackupArn] + ofValue v := do + let backupSummaries ← v.opt "BackupSummaries" + let lastEvaluatedBackupArn ← v.opt "LastEvaluatedBackupArn" + return { backupSummaries, lastEvaluatedBackupArn } + +structure ListBulkOperationsOutput where + /-- A list of bulk operation summaries for the current Amazon Web Services account and Amazon Web Services Region. -/ + bulkOperationsSummaryList : Option (List BulkOperationSummary) := none + /-- If this value is returned, there are additional results to be displayed. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListBulkOperationsOutput where + schema := .struct "ListBulkOperationsOutput" [({ name := "BulkOperationsSummaryList" }, (.list (Shape.schema BulkOperationSummary) "member")), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "BulkOperationsSummaryList" x.bulkOperationsSummaryList, putOpt "NextToken" x.nextToken] + ofValue v := do + let bulkOperationsSummaryList ← v.opt "BulkOperationsSummaryList" + let nextToken ← v.opt "NextToken" + return { bulkOperationsSummaryList, nextToken } + +structure ListContributorInsightsOutput where + /-- A list of ContributorInsightsSummary. -/ + contributorInsightsSummaries : Option (List ContributorInsightsSummary) := none + /-- A token to go to the next page if there is one. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListContributorInsightsOutput where + schema := .struct "ListContributorInsightsOutput" [({ name := "ContributorInsightsSummaries" }, (.list (Shape.schema ContributorInsightsSummary) "member")), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "ContributorInsightsSummaries" x.contributorInsightsSummaries, putOpt "NextToken" x.nextToken] + ofValue v := do + let contributorInsightsSummaries ← v.opt "ContributorInsightsSummaries" + let nextToken ← v.opt "NextToken" + return { contributorInsightsSummaries, nextToken } + +structure ListExportsOutput where + /-- A list of ExportSummary objects. -/ + exportSummaries : Option (List ExportSummary) := none + /-- If this value is returned, there are additional results to be displayed. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListExportsOutput where + schema := .struct "ListExportsOutput" [({ name := "ExportSummaries" }, (.list (Shape.schema ExportSummary) "member")), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "ExportSummaries" x.exportSummaries, putOpt "NextToken" x.nextToken] + ofValue v := do + let exportSummaries ← v.opt "ExportSummaries" + let nextToken ← v.opt "NextToken" + return { exportSummaries, nextToken } + +structure ListGlobalTablesOutput where + /-- List of global table names. -/ + globalTables : Option (List GlobalTable) := none + /-- Last evaluated global table name. -/ + lastEvaluatedGlobalTableName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListGlobalTablesOutput where + schema := .struct "ListGlobalTablesOutput" [({ name := "GlobalTables" }, (.list (Shape.schema GlobalTable) "member")), + ({ name := "LastEvaluatedGlobalTableName" }, .string)] + toValue x := record [putOpt "GlobalTables" x.globalTables, putOpt "LastEvaluatedGlobalTableName" x.lastEvaluatedGlobalTableName] + ofValue v := do + let globalTables ← v.opt "GlobalTables" + let lastEvaluatedGlobalTableName ← v.opt "LastEvaluatedGlobalTableName" + return { globalTables, lastEvaluatedGlobalTableName } + +structure ListImportsOutput where + /-- A list of ImportSummary objects. -/ + importSummaryList : Option (List ImportSummary) := none + /-- If this value is returned, there are additional results to be displayed. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListImportsOutput where + schema := .struct "ListImportsOutput" [({ name := "ImportSummaryList" }, (.list (Shape.schema ImportSummary) "member")), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "ImportSummaryList" x.importSummaryList, putOpt "NextToken" x.nextToken] + ofValue v := do + let importSummaryList ← v.opt "ImportSummaryList" + let nextToken ← v.opt "NextToken" + return { importSummaryList, nextToken } + +/-- Represents the properties of a local secondary index. -/ +structure LocalSecondaryIndex where + /-- The name of the local secondary index. -/ + indexName : String + /-- The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types: HASH - partition key RANGE - sort key The partition key of an item is also known as its hash attribute . -/ + keySchema : (List KeySchemaElement) + /-- Represents attributes that are copied (projected) from the table into the local secondary index. -/ + projection : Projection +deriving DecidableEq, Repr, Inhabited + +instance : Shape LocalSecondaryIndex where + schema := .struct "LocalSecondaryIndex" [({ name := "IndexName", required := true }, .string), + ({ name := "KeySchema", required := true }, (.list (Shape.schema KeySchemaElement) "member")), + ({ name := "Projection", required := true }, (Shape.schema Projection))] + toValue x := record [put "IndexName" x.indexName, put "KeySchema" x.keySchema, put "Projection" x.projection] + ofValue v := do + let indexName ← v.req "IndexName" + let keySchema ← v.req "KeySchema" + let projection ← v.req "Projection" + return { indexName, keySchema, projection } + +/-- Represents the properties of a local secondary index. -/ +structure LocalSecondaryIndexDescription where + /-- The Amazon Resource Name (ARN) that uniquely identifies the index. -/ + indexArn : Option String := none + /-- Represents the name of the local secondary index. -/ + indexName : Option String := none + /-- The total size of the specified index, in bytes. -/ + indexSizeBytes : Option Int := none + /-- The number of items in the specified index. -/ + itemCount : Option Int := none + /-- The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types: HASH - partition key RANGE - sort key The partition key of an item is also known as its hash attribute . -/ + keySchema : Option (List KeySchemaElement) := none + /-- Represents attributes that are copied (projected) from the table into the global secondary index. -/ + projection : Option Projection := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LocalSecondaryIndexDescription where + schema := .struct "LocalSecondaryIndexDescription" [({ name := "IndexArn" }, .string), + ({ name := "IndexName" }, .string), + ({ name := "IndexSizeBytes" }, .int), + ({ name := "ItemCount" }, .int), + ({ name := "KeySchema" }, (.list (Shape.schema KeySchemaElement) "member")), + ({ name := "Projection" }, (Shape.schema Projection))] + toValue x := record [putOpt "IndexArn" x.indexArn, putOpt "IndexName" x.indexName, putOpt "IndexSizeBytes" x.indexSizeBytes, putOpt "ItemCount" x.itemCount, putOpt "KeySchema" x.keySchema, putOpt "Projection" x.projection] + ofValue v := do + let indexArn ← v.opt "IndexArn" + let indexName ← v.opt "IndexName" + let indexSizeBytes ← v.opt "IndexSizeBytes" + let itemCount ← v.opt "ItemCount" + let keySchema ← v.opt "KeySchema" + let projection ← v.opt "Projection" + return { indexArn, indexName, indexSizeBytes, itemCount, keySchema, projection } + +/-- Represents the properties of a local secondary index for the table when the backup was created. -/ +structure LocalSecondaryIndexInfo where + /-- Represents the name of the local secondary index. -/ + indexName : Option String := none + /-- The complete key schema for a local secondary index, which consists of one or more pairs of attribute names and key types: HASH - partition key RANGE - sort key The partition key of an item is also known as its hash attribute . -/ + keySchema : Option (List KeySchemaElement) := none + /-- Represents attributes that are copied (projected) from the table into the global secondary index. -/ + projection : Option Projection := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LocalSecondaryIndexInfo where + schema := .struct "LocalSecondaryIndexInfo" [({ name := "IndexName" }, .string), + ({ name := "KeySchema" }, (.list (Shape.schema KeySchemaElement) "member")), + ({ name := "Projection" }, (Shape.schema Projection))] + toValue x := record [putOpt "IndexName" x.indexName, putOpt "KeySchema" x.keySchema, putOpt "Projection" x.projection] + ofValue v := do + let indexName ← v.opt "IndexName" + let keySchema ← v.opt "KeySchema" + let projection ← v.opt "Projection" + return { indexName, keySchema, projection } + +/-- Represents the properties of a replica global secondary index. -/ +structure ReplicaGlobalSecondaryIndexDescription where + /-- The name of the global secondary index. -/ + indexName : Option String := none + /-- Overrides the maximum on-demand throughput for the specified global secondary index in the specified replica table. -/ + onDemandThroughputOverride : Option OnDemandThroughputOverride := none + /-- If not described, uses the source table GSI's read capacity settings. -/ + provisionedThroughputOverride : Option ProvisionedThroughputOverride := none + /-- Represents the warm throughput of the global secondary index for this replica. -/ + warmThroughput : Option GlobalSecondaryIndexWarmThroughputDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicaGlobalSecondaryIndexDescription where + schema := .struct "ReplicaGlobalSecondaryIndexDescription" [({ name := "IndexName" }, .string), + ({ name := "OnDemandThroughputOverride" }, (Shape.schema OnDemandThroughputOverride)), + ({ name := "ProvisionedThroughputOverride" }, (Shape.schema ProvisionedThroughputOverride)), + ({ name := "WarmThroughput" }, (Shape.schema GlobalSecondaryIndexWarmThroughputDescription))] + toValue x := record [putOpt "IndexName" x.indexName, putOpt "OnDemandThroughputOverride" x.onDemandThroughputOverride, putOpt "ProvisionedThroughputOverride" x.provisionedThroughputOverride, putOpt "WarmThroughput" x.warmThroughput] + ofValue v := do + let indexName ← v.opt "IndexName" + let onDemandThroughputOverride ← v.opt "OnDemandThroughputOverride" + let provisionedThroughputOverride ← v.opt "ProvisionedThroughputOverride" + let warmThroughput ← v.opt "WarmThroughput" + return { indexName, onDemandThroughputOverride, provisionedThroughputOverride, warmThroughput } + +/-- Contains the details of the table when the backup was created. -/ +structure SourceTableDetails where + /-- Controls how you are charged for read and write throughput and how you manage capacity. -/ + billingMode : Option BillingMode := none + /-- Number of items in the table. -/ + itemCount : Option Int := none + /-- Schema of the table. -/ + keySchema : (List KeySchemaElement) + onDemandThroughput : Option OnDemandThroughput := none + /-- Read IOPs and Write IOPS on the table when the backup was created. -/ + provisionedThroughput : ProvisionedThroughput + /-- ARN of the table for which backup was created. -/ + tableArn : Option String := none + /-- Time when the source table was created. -/ + tableCreationDateTime : Timestamp + /-- Unique identifier for the table for which the backup was created. -/ + tableId : String + /-- The name of the table for which the backup was created. -/ + tableName : String + /-- Size of the table in bytes. -/ + tableSizeBytes : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SourceTableDetails where + schema := .struct "SourceTableDetails" [({ name := "BillingMode" }, (Shape.schema BillingMode)), + ({ name := "ItemCount" }, .int), + ({ name := "KeySchema", required := true }, (.list (Shape.schema KeySchemaElement) "member")), + ({ name := "OnDemandThroughput" }, (Shape.schema OnDemandThroughput)), + ({ name := "ProvisionedThroughput", required := true }, (Shape.schema ProvisionedThroughput)), + ({ name := "TableArn" }, .string), + ({ name := "TableCreationDateTime", required := true }, (.time none)), + ({ name := "TableId", required := true }, .string), + ({ name := "TableName", required := true }, .string), + ({ name := "TableSizeBytes" }, .int)] + toValue x := record [putOpt "BillingMode" x.billingMode, putOpt "ItemCount" x.itemCount, put "KeySchema" x.keySchema, putOpt "OnDemandThroughput" x.onDemandThroughput, put "ProvisionedThroughput" x.provisionedThroughput, putOpt "TableArn" x.tableArn, put "TableCreationDateTime" x.tableCreationDateTime, put "TableId" x.tableId, put "TableName" x.tableName, putOpt "TableSizeBytes" x.tableSizeBytes] + ofValue v := do + let billingMode ← v.opt "BillingMode" + let itemCount ← v.opt "ItemCount" + let keySchema ← v.req "KeySchema" + let onDemandThroughput ← v.opt "OnDemandThroughput" + let provisionedThroughput ← v.req "ProvisionedThroughput" + let tableArn ← v.opt "TableArn" + let tableCreationDateTime ← v.req "TableCreationDateTime" + let tableId ← v.req "TableId" + let tableName ← v.req "TableName" + let tableSizeBytes ← v.opt "TableSizeBytes" + return { billingMode, itemCount, keySchema, onDemandThroughput, provisionedThroughput, tableArn, tableCreationDateTime, tableId, tableName, tableSizeBytes } + +structure StartBulkPutItemsInput where + /-- A unique, case-sensitive identifier that ensures the bulk operation starts no more than one time. -/ + clientToken : Option String := none + /-- The Amazon S3 location, data format, and compression settings for the input objects. -/ + inputS3Configuration : InputS3Configuration + /-- The maximum rate, in write request units per second, at which the bulk operation attempts to write. -/ + maxWriteRequestUnits : Option Int := none + /-- The Amazon S3 location, encryption settings, and output types for the bulk operation. -/ + outputS3Configuration : OutputS3Configuration + /-- The performance tier for the bulk operation. -/ + performanceTier : Option BulkOperationPerformanceTier := none + /-- The name or ARN of the existing DynamoDB table that receives the items. -/ + tableName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape StartBulkPutItemsInput where + schema := .struct "StartBulkPutItemsInput" [({ name := "ClientToken" }, .string), + ({ name := "InputS3Configuration", required := true }, (Shape.schema InputS3Configuration)), + ({ name := "MaxWriteRequestUnits" }, .int), + ({ name := "OutputS3Configuration", required := true }, (Shape.schema OutputS3Configuration)), + ({ name := "PerformanceTier" }, (Shape.schema BulkOperationPerformanceTier)), + ({ name := "TableName", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, put "InputS3Configuration" x.inputS3Configuration, putOpt "MaxWriteRequestUnits" x.maxWriteRequestUnits, put "OutputS3Configuration" x.outputS3Configuration, putOpt "PerformanceTier" x.performanceTier, put "TableName" x.tableName] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let inputS3Configuration ← v.req "InputS3Configuration" + let maxWriteRequestUnits ← v.opt "MaxWriteRequestUnits" + let outputS3Configuration ← v.req "OutputS3Configuration" + let performanceTier ← v.opt "PerformanceTier" + let tableName ← v.req "TableName" + return { clientToken, inputS3Configuration, maxWriteRequestUnits, outputS3Configuration, performanceTier, tableName } + +structure UpdateGlobalTableInput where + /-- The global table name. -/ + globalTableName : String + /-- A list of Regions that should be added or removed from the global table. -/ + replicaUpdates : (List ReplicaUpdate) +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateGlobalTableInput where + schema := .struct "UpdateGlobalTableInput" [({ name := "GlobalTableName", required := true }, .string), + ({ name := "ReplicaUpdates", required := true }, (.list (Shape.schema ReplicaUpdate) "member"))] + toValue x := record [put "GlobalTableName" x.globalTableName, put "ReplicaUpdates" x.replicaUpdates] + ofValue v := do + let globalTableName ← v.req "GlobalTableName" + let replicaUpdates ← v.req "ReplicaUpdates" + return { globalTableName, replicaUpdates } + +structure UpdateKinesisStreamingDestinationInput where + /-- The Amazon Resource Name (ARN) for the Kinesis stream input. -/ + streamArn : String + /-- The table name for the Kinesis streaming destination input. -/ + tableName : String + /-- The command to update the Kinesis stream configuration. -/ + updateKinesisStreamingConfiguration : Option UpdateKinesisStreamingConfiguration := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateKinesisStreamingDestinationInput where + schema := .struct "UpdateKinesisStreamingDestinationInput" [({ name := "StreamArn", required := true }, .string), + ({ name := "TableName", required := true }, .string), + ({ name := "UpdateKinesisStreamingConfiguration" }, (Shape.schema UpdateKinesisStreamingConfiguration))] + toValue x := record [put "StreamArn" x.streamArn, put "TableName" x.tableName, putOpt "UpdateKinesisStreamingConfiguration" x.updateKinesisStreamingConfiguration] + ofValue v := do + let streamArn ← v.req "StreamArn" + let tableName ← v.req "TableName" + let updateKinesisStreamingConfiguration ← v.opt "UpdateKinesisStreamingConfiguration" + return { streamArn, tableName, updateKinesisStreamingConfiguration } + +structure UpdateKinesisStreamingDestinationOutput where + /-- The status of the attempt to update the Kinesis streaming destination output. -/ + destinationStatus : Option DestinationStatus := none + /-- The ARN for the Kinesis stream input. -/ + streamArn : Option String := none + /-- The table name for the Kinesis streaming destination output. -/ + tableName : Option String := none + /-- The command to update the Kinesis streaming destination configuration. -/ + updateKinesisStreamingConfiguration : Option UpdateKinesisStreamingConfiguration := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateKinesisStreamingDestinationOutput where + schema := .struct "UpdateKinesisStreamingDestinationOutput" [({ name := "DestinationStatus" }, (Shape.schema DestinationStatus)), + ({ name := "StreamArn" }, .string), + ({ name := "TableName" }, .string), + ({ name := "UpdateKinesisStreamingConfiguration" }, (Shape.schema UpdateKinesisStreamingConfiguration))] + toValue x := record [putOpt "DestinationStatus" x.destinationStatus, putOpt "StreamArn" x.streamArn, putOpt "TableName" x.tableName, putOpt "UpdateKinesisStreamingConfiguration" x.updateKinesisStreamingConfiguration] + ofValue v := do + let destinationStatus ← v.opt "DestinationStatus" + let streamArn ← v.opt "StreamArn" + let tableName ← v.opt "TableName" + let updateKinesisStreamingConfiguration ← v.opt "UpdateKinesisStreamingConfiguration" + return { destinationStatus, streamArn, tableName, updateKinesisStreamingConfiguration } + +/-- Represents a replica to be modified. -/ +structure UpdateReplicationGroupMemberAction where + /-- Replica-specific global secondary index settings. -/ + globalSecondaryIndexes : Option (List ReplicaGlobalSecondaryIndex) := none + /-- The KMS key of the replica that should be used for KMS encryption. -/ + kmsMasterKeyId : Option String := none + /-- Overrides the maximum on-demand throughput for the replica table. -/ + onDemandThroughputOverride : Option OnDemandThroughputOverride := none + /-- Replica-specific provisioned throughput. -/ + provisionedThroughputOverride : Option ProvisionedThroughputOverride := none + /-- The Region where the replica exists. -/ + regionName : String + /-- Replica-specific table class. -/ + tableClassOverride : Option TableClass := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateReplicationGroupMemberAction where + schema := .struct "UpdateReplicationGroupMemberAction" [({ name := "GlobalSecondaryIndexes" }, (.list (Shape.schema ReplicaGlobalSecondaryIndex) "member")), + ({ name := "KMSMasterKeyId" }, .string), + ({ name := "OnDemandThroughputOverride" }, (Shape.schema OnDemandThroughputOverride)), + ({ name := "ProvisionedThroughputOverride" }, (Shape.schema ProvisionedThroughputOverride)), + ({ name := "RegionName", required := true }, .string), + ({ name := "TableClassOverride" }, (Shape.schema TableClass))] + toValue x := record [putOpt "GlobalSecondaryIndexes" x.globalSecondaryIndexes, putOpt "KMSMasterKeyId" x.kmsMasterKeyId, putOpt "OnDemandThroughputOverride" x.onDemandThroughputOverride, putOpt "ProvisionedThroughputOverride" x.provisionedThroughputOverride, put "RegionName" x.regionName, putOpt "TableClassOverride" x.tableClassOverride] + ofValue v := do + let globalSecondaryIndexes ← v.opt "GlobalSecondaryIndexes" + let kmsMasterKeyId ← v.opt "KMSMasterKeyId" + let onDemandThroughputOverride ← v.opt "OnDemandThroughputOverride" + let provisionedThroughputOverride ← v.opt "ProvisionedThroughputOverride" + let regionName ← v.req "RegionName" + let tableClassOverride ← v.opt "TableClassOverride" + return { globalSecondaryIndexes, kmsMasterKeyId, onDemandThroughputOverride, provisionedThroughputOverride, regionName, tableClassOverride } + +/-- Contains the configuration settings for a vector index, including the index name, vector attribute, dimensions, distance function, search schema, and projection. -/ +structure VectorIndex where + /-- The number of dimensions in each vector. -/ + dimensions : Int + /-- The distance function used to calculate similarity between vectors. -/ + distanceFunction : VectorDistanceFunction + /-- The name of the vector index. -/ + indexName : String + /-- Specifies attributes that are copied (projected) from the table into the vector index. -/ + projection : Projection + /-- The search schema that defines partition key and inline filter attributes for the vector index. -/ + searchSchema : Option (List SearchSchemaElement) := none + /-- The vector attribute configuration for the index. -/ + vectorAttribute : VectorAttributeDefinition +deriving DecidableEq, Repr, Inhabited + +instance : Shape VectorIndex where + schema := .struct "VectorIndex" [({ name := "Dimensions", required := true }, .int), + ({ name := "DistanceFunction", required := true }, (Shape.schema VectorDistanceFunction)), + ({ name := "IndexName", required := true }, .string), + ({ name := "Projection", required := true }, (Shape.schema Projection)), + ({ name := "SearchSchema" }, (.list (Shape.schema SearchSchemaElement) "member")), + ({ name := "VectorAttribute", required := true }, (Shape.schema VectorAttributeDefinition))] + toValue x := record [put "Dimensions" x.dimensions, put "DistanceFunction" x.distanceFunction, put "IndexName" x.indexName, put "Projection" x.projection, putOpt "SearchSchema" x.searchSchema, put "VectorAttribute" x.vectorAttribute] + ofValue v := do + let dimensions ← v.req "Dimensions" + let distanceFunction ← v.req "DistanceFunction" + let indexName ← v.req "IndexName" + let projection ← v.req "Projection" + let searchSchema ← v.opt "SearchSchema" + let vectorAttribute ← v.req "VectorAttribute" + return { dimensions, distanceFunction, indexName, projection, searchSchema, vectorAttribute } + +/-- Contains the current state and configuration of a vector index, including its status, size, item count, and the settings specified when the index was created. -/ +structure VectorIndexDescription where + /-- Specifies whether the index is currently backfilling. -/ + backfilling : Option Bool := none + /-- The number of dimensions in each vector. -/ + dimensions : Option Int := none + /-- The distance function used to calculate similarity between vectors. -/ + distanceFunction : Option VectorDistanceFunction := none + /-- The Amazon Resource Name (ARN) that uniquely identifies the vector index. -/ + indexArn : Option String := none + /-- The name of the vector index. -/ + indexName : Option String := none + /-- The total size of the vector index, in bytes. -/ + indexSizeBytes : Option Int := none + /-- The current state of the vector index: CREATING - The index is being created. -/ + indexStatus : Option IndexStatus := none + /-- The number of items indexed in the vector index. -/ + itemCount : Option Int := none + /-- Specifies attributes that are copied (projected) from the table into the vector index. -/ + projection : Option Projection := none + /-- The search schema that defines partition key and inline filter attributes for the vector index. -/ + searchSchema : Option (List SearchSchemaElement) := none + /-- The vector attribute configuration for the index. -/ + vectorAttribute : Option VectorAttributeDefinition := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VectorIndexDescription where + schema := .struct "VectorIndexDescription" [({ name := "Backfilling" }, .bool), + ({ name := "Dimensions" }, .int), + ({ name := "DistanceFunction" }, (Shape.schema VectorDistanceFunction)), + ({ name := "IndexArn" }, .string), + ({ name := "IndexName" }, .string), + ({ name := "IndexSizeBytes" }, .int), + ({ name := "IndexStatus" }, (Shape.schema IndexStatus)), + ({ name := "ItemCount" }, .int), + ({ name := "Projection" }, (Shape.schema Projection)), + ({ name := "SearchSchema" }, (.list (Shape.schema SearchSchemaElement) "member")), + ({ name := "VectorAttribute" }, (Shape.schema VectorAttributeDefinition))] + toValue x := record [putOpt "Backfilling" x.backfilling, putOpt "Dimensions" x.dimensions, putOpt "DistanceFunction" x.distanceFunction, putOpt "IndexArn" x.indexArn, putOpt "IndexName" x.indexName, putOpt "IndexSizeBytes" x.indexSizeBytes, putOpt "IndexStatus" x.indexStatus, putOpt "ItemCount" x.itemCount, putOpt "Projection" x.projection, putOpt "SearchSchema" x.searchSchema, putOpt "VectorAttribute" x.vectorAttribute] + ofValue v := do + let backfilling ← v.opt "Backfilling" + let dimensions ← v.opt "Dimensions" + let distanceFunction ← v.opt "DistanceFunction" + let indexArn ← v.opt "IndexArn" + let indexName ← v.opt "IndexName" + let indexSizeBytes ← v.opt "IndexSizeBytes" + let indexStatus ← v.opt "IndexStatus" + let itemCount ← v.opt "ItemCount" + let projection ← v.opt "Projection" + let searchSchema ← v.opt "SearchSchema" + let vectorAttribute ← v.opt "VectorAttribute" + return { backfilling, dimensions, distanceFunction, indexArn, indexName, indexSizeBytes, indexStatus, itemCount, projection, searchSchema, vectorAttribute } + +/-- Contains the configuration of a vector index as it existed at the time a backup was created. -/ +structure VectorIndexInfo where + /-- The number of dimensions in each vector. -/ + dimensions : Option Int := none + /-- The distance function used to calculate similarity between vectors. -/ + distanceFunction : Option VectorDistanceFunction := none + /-- The name of the vector index. -/ + indexName : Option String := none + /-- Specifies attributes that are copied (projected) from the table into the vector index. -/ + projection : Option Projection := none + /-- The search schema that defines partition key and inline filter attributes for the vector index. -/ + searchSchema : Option (List SearchSchemaElement) := none + /-- The vector attribute configuration for the index. -/ + vectorAttribute : Option VectorAttributeDefinition := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VectorIndexInfo where + schema := .struct "VectorIndexInfo" [({ name := "Dimensions" }, .int), + ({ name := "DistanceFunction" }, (Shape.schema VectorDistanceFunction)), + ({ name := "IndexName" }, .string), + ({ name := "Projection" }, (Shape.schema Projection)), + ({ name := "SearchSchema" }, (.list (Shape.schema SearchSchemaElement) "member")), + ({ name := "VectorAttribute" }, (Shape.schema VectorAttributeDefinition))] + toValue x := record [putOpt "Dimensions" x.dimensions, putOpt "DistanceFunction" x.distanceFunction, putOpt "IndexName" x.indexName, putOpt "Projection" x.projection, putOpt "SearchSchema" x.searchSchema, putOpt "VectorAttribute" x.vectorAttribute] + ofValue v := do + let dimensions ← v.opt "Dimensions" + let distanceFunction ← v.opt "DistanceFunction" + let indexName ← v.opt "IndexName" + let projection ← v.opt "Projection" + let searchSchema ← v.opt "SearchSchema" + let vectorAttribute ← v.opt "VectorAttribute" + return { dimensions, distanceFunction, indexName, projection, searchSchema, vectorAttribute } + +/-- Represents the input of a CreateTable operation. -/ +structure CreateTableInput where + /-- An array of attributes that describe the key schema for the table and indexes. -/ + attributeDefinitions : Option (List AttributeDefinition) := none + /-- Controls how you are charged for read and write throughput and how you manage capacity. -/ + billingMode : Option BillingMode := none + /-- Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table. -/ + deletionProtectionEnabled : Option Bool := none + /-- One or more global secondary indexes (the maximum is 20) to be created on the table. -/ + globalSecondaryIndexes : Option (List GlobalSecondaryIndex) := none + /-- Controls the settings synchronization mode for the global table. -/ + globalTableSettingsReplicationMode : Option GlobalTableSettingsReplicationMode := none + /-- The Amazon Resource Name (ARN) of the source table used for the creation of a multi-account global table. -/ + globalTableSourceArn : Option String := none + /-- Specifies the attributes that make up the primary key for a table or an index. -/ + keySchema : Option (List KeySchemaElement) := none + /-- One or more local secondary indexes (the maximum is 5) to be created on the table. -/ + localSecondaryIndexes : Option (List LocalSecondaryIndex) := none + /-- Sets the maximum number of read and write units for the specified table in on-demand capacity mode. -/ + onDemandThroughput : Option OnDemandThroughput := none + /-- Represents the provisioned throughput settings for a specified table or index. -/ + provisionedThroughput : Option ProvisionedThroughput := none + /-- An Amazon Web Services resource-based policy document in JSON format that will be attached to the table. -/ + resourcePolicy : Option String := none + /-- Represents the settings used to enable server-side encryption. -/ + sseSpecification : Option SSESpecification := none + /-- The settings for DynamoDB Streams on the table. -/ + streamSpecification : Option StreamSpecification := none + /-- The table class of the new table. -/ + tableClass : Option TableClass := none + /-- The name of the table to create. -/ + tableName : String + /-- A list of key-value pairs to label the table. -/ + tags : Option (List Tag) := none + /-- One or more vector indexes to be created on the table. -/ + vectorIndexes : Option (List VectorIndex) := none + /-- Represents the warm throughput (in read units per second and write units per second) for creating a table. -/ + warmThroughput : Option WarmThroughput := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTableInput where + schema := .struct "CreateTableInput" [({ name := "AttributeDefinitions" }, (.list (Shape.schema AttributeDefinition) "member")), + ({ name := "BillingMode" }, (Shape.schema BillingMode)), + ({ name := "DeletionProtectionEnabled" }, .bool), + ({ name := "GlobalSecondaryIndexes" }, (.list (Shape.schema GlobalSecondaryIndex) "member")), + ({ name := "GlobalTableSettingsReplicationMode" }, (Shape.schema GlobalTableSettingsReplicationMode)), + ({ name := "GlobalTableSourceArn" }, .string), + ({ name := "KeySchema" }, (.list (Shape.schema KeySchemaElement) "member")), + ({ name := "LocalSecondaryIndexes" }, (.list (Shape.schema LocalSecondaryIndex) "member")), + ({ name := "OnDemandThroughput" }, (Shape.schema OnDemandThroughput)), + ({ name := "ProvisionedThroughput" }, (Shape.schema ProvisionedThroughput)), + ({ name := "ResourcePolicy" }, .string), + ({ name := "SSESpecification" }, (Shape.schema SSESpecification)), + ({ name := "StreamSpecification" }, (Shape.schema StreamSpecification)), + ({ name := "TableClass" }, (Shape.schema TableClass)), + ({ name := "TableName", required := true }, .string), + ({ name := "Tags" }, (.list (Shape.schema Tag) "member")), + ({ name := "VectorIndexes" }, (.list (Shape.schema VectorIndex) "member")), + ({ name := "WarmThroughput" }, (Shape.schema WarmThroughput))] + toValue x := record [putOpt "AttributeDefinitions" x.attributeDefinitions, putOpt "BillingMode" x.billingMode, putOpt "DeletionProtectionEnabled" x.deletionProtectionEnabled, putOpt "GlobalSecondaryIndexes" x.globalSecondaryIndexes, putOpt "GlobalTableSettingsReplicationMode" x.globalTableSettingsReplicationMode, putOpt "GlobalTableSourceArn" x.globalTableSourceArn, putOpt "KeySchema" x.keySchema, putOpt "LocalSecondaryIndexes" x.localSecondaryIndexes, putOpt "OnDemandThroughput" x.onDemandThroughput, putOpt "ProvisionedThroughput" x.provisionedThroughput, putOpt "ResourcePolicy" x.resourcePolicy, putOpt "SSESpecification" x.sseSpecification, putOpt "StreamSpecification" x.streamSpecification, putOpt "TableClass" x.tableClass, put "TableName" x.tableName, putOpt "Tags" x.tags, putOpt "VectorIndexes" x.vectorIndexes, putOpt "WarmThroughput" x.warmThroughput] + ofValue v := do + let attributeDefinitions ← v.opt "AttributeDefinitions" + let billingMode ← v.opt "BillingMode" + let deletionProtectionEnabled ← v.opt "DeletionProtectionEnabled" + let globalSecondaryIndexes ← v.opt "GlobalSecondaryIndexes" + let globalTableSettingsReplicationMode ← v.opt "GlobalTableSettingsReplicationMode" + let globalTableSourceArn ← v.opt "GlobalTableSourceArn" + let keySchema ← v.opt "KeySchema" + let localSecondaryIndexes ← v.opt "LocalSecondaryIndexes" + let onDemandThroughput ← v.opt "OnDemandThroughput" + let provisionedThroughput ← v.opt "ProvisionedThroughput" + let resourcePolicy ← v.opt "ResourcePolicy" + let sseSpecification ← v.opt "SSESpecification" + let streamSpecification ← v.opt "StreamSpecification" + let tableClass ← v.opt "TableClass" + let tableName ← v.req "TableName" + let tags ← v.opt "Tags" + let vectorIndexes ← v.opt "VectorIndexes" + let warmThroughput ← v.opt "WarmThroughput" + return { attributeDefinitions, billingMode, deletionProtectionEnabled, globalSecondaryIndexes, globalTableSettingsReplicationMode, globalTableSourceArn, keySchema, localSecondaryIndexes, onDemandThroughput, provisionedThroughput, resourcePolicy, sseSpecification, streamSpecification, tableClass, tableName, tags, vectorIndexes, warmThroughput } + +structure DescribeBulkOperationOutput where + /-- Contains detailed information about the bulk operation. -/ + bulkOperationDescription : BulkOperationDescription +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeBulkOperationOutput where + schema := .struct "DescribeBulkOperationOutput" [({ name := "BulkOperationDescription", required := true }, (Shape.schema BulkOperationDescription))] + toValue x := record [put "BulkOperationDescription" x.bulkOperationDescription] + ofValue v := do + let bulkOperationDescription ← v.req "BulkOperationDescription" + return { bulkOperationDescription } + +structure DescribeContinuousBackupsOutput where + /-- Represents the continuous backups and point in time recovery settings on the table. -/ + continuousBackupsDescription : Option ContinuousBackupsDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeContinuousBackupsOutput where + schema := .struct "DescribeContinuousBackupsOutput" [({ name := "ContinuousBackupsDescription" }, (Shape.schema ContinuousBackupsDescription))] + toValue x := record [putOpt "ContinuousBackupsDescription" x.continuousBackupsDescription] + ofValue v := do + let continuousBackupsDescription ← v.opt "ContinuousBackupsDescription" + return { continuousBackupsDescription } + +/-- Represents the auto scaling settings of a global secondary index for a global table that will be modified. -/ +structure GlobalSecondaryIndexAutoScalingUpdate where + /-- The name of the global secondary index. -/ + indexName : Option String := none + provisionedWriteCapacityAutoScalingUpdate : Option AutoScalingSettingsUpdate := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GlobalSecondaryIndexAutoScalingUpdate where + schema := .struct "GlobalSecondaryIndexAutoScalingUpdate" [({ name := "IndexName" }, .string), + ({ name := "ProvisionedWriteCapacityAutoScalingUpdate" }, (Shape.schema AutoScalingSettingsUpdate))] + toValue x := record [putOpt "IndexName" x.indexName, putOpt "ProvisionedWriteCapacityAutoScalingUpdate" x.provisionedWriteCapacityAutoScalingUpdate] + ofValue v := do + let indexName ← v.opt "IndexName" + let provisionedWriteCapacityAutoScalingUpdate ← v.opt "ProvisionedWriteCapacityAutoScalingUpdate" + return { indexName, provisionedWriteCapacityAutoScalingUpdate } + +/-- Represents one of the following: A new global secondary index to be added to an existing table. -/ +structure GlobalSecondaryIndexUpdate where + /-- The parameters required for creating a global secondary index on an existing table: IndexName KeySchema AttributeDefinitions Projection ProvisionedThroughput. -/ + create : Option CreateGlobalSecondaryIndexAction := none + /-- The name of an existing global secondary index to be removed. -/ + delete : Option DeleteGlobalSecondaryIndexAction := none + /-- The name of an existing global secondary index, along with new provisioned throughput settings to be applied to that index. -/ + update : Option UpdateGlobalSecondaryIndexAction := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GlobalSecondaryIndexUpdate where + schema := .struct "GlobalSecondaryIndexUpdate" [({ name := "Create" }, (Shape.schema CreateGlobalSecondaryIndexAction)), + ({ name := "Delete" }, (Shape.schema DeleteGlobalSecondaryIndexAction)), + ({ name := "Update" }, (Shape.schema UpdateGlobalSecondaryIndexAction))] + toValue x := record [putOpt "Create" x.create, putOpt "Delete" x.delete, putOpt "Update" x.update] + ofValue v := do + let create ← v.opt "Create" + let delete ← v.opt "Delete" + let update ← v.opt "Update" + return { create, delete, update } + +/-- Represents the settings of a global secondary index for a global table that will be modified. -/ +structure GlobalTableGlobalSecondaryIndexSettingsUpdate where + /-- The name of the global secondary index. -/ + indexName : String + /-- Auto scaling settings for managing a global secondary index's write capacity units. -/ + provisionedWriteCapacityAutoScalingSettingsUpdate : Option AutoScalingSettingsUpdate := none + /-- The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. -/ + provisionedWriteCapacityUnits : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GlobalTableGlobalSecondaryIndexSettingsUpdate where + schema := .struct "GlobalTableGlobalSecondaryIndexSettingsUpdate" [({ name := "IndexName", required := true }, .string), + ({ name := "ProvisionedWriteCapacityAutoScalingSettingsUpdate" }, (Shape.schema AutoScalingSettingsUpdate)), + ({ name := "ProvisionedWriteCapacityUnits" }, .int)] + toValue x := record [put "IndexName" x.indexName, putOpt "ProvisionedWriteCapacityAutoScalingSettingsUpdate" x.provisionedWriteCapacityAutoScalingSettingsUpdate, putOpt "ProvisionedWriteCapacityUnits" x.provisionedWriteCapacityUnits] + ofValue v := do + let indexName ← v.req "IndexName" + let provisionedWriteCapacityAutoScalingSettingsUpdate ← v.opt "ProvisionedWriteCapacityAutoScalingSettingsUpdate" + let provisionedWriteCapacityUnits ← v.opt "ProvisionedWriteCapacityUnits" + return { indexName, provisionedWriteCapacityAutoScalingSettingsUpdate, provisionedWriteCapacityUnits } + +/-- Contains the details of the replica. -/ +structure ReplicaDescription where + /-- Replica-specific global secondary index settings. -/ + globalSecondaryIndexes : Option (List ReplicaGlobalSecondaryIndexDescription) := none + /-- Indicates one of the settings synchronization modes for the global table replica: ENABLED : Indicates that the settings synchronization mode for the global table replica is enabled. -/ + globalTableSettingsReplicationMode : Option GlobalTableSettingsReplicationMode := none + /-- The KMS key of the replica that will be used for KMS encryption. -/ + kmsMasterKeyId : Option String := none + /-- Overrides the maximum on-demand throughput settings for the specified replica table. -/ + onDemandThroughputOverride : Option OnDemandThroughputOverride := none + /-- Replica-specific provisioned throughput. -/ + provisionedThroughputOverride : Option ProvisionedThroughputOverride := none + /-- The name of the Region. -/ + regionName : Option String := none + /-- The Amazon Resource Name (ARN) of the global table replica. -/ + replicaArn : Option String := none + /-- The time at which the replica was first detected as inaccessible. -/ + replicaInaccessibleDateTime : Option Timestamp := none + /-- The current state of the replica: CREATING - The replica is being created. -/ + replicaStatus : Option ReplicaStatus := none + /-- Detailed information about the replica status. -/ + replicaStatusDescription : Option String := none + /-- Specifies the progress of a Create, Update, or Delete action on the replica as a percentage. -/ + replicaStatusPercentProgress : Option String := none + replicaTableClassSummary : Option TableClassSummary := none + /-- Represents the warm throughput value for this replica. -/ + warmThroughput : Option TableWarmThroughputDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicaDescription where + schema := .struct "ReplicaDescription" [({ name := "GlobalSecondaryIndexes" }, (.list (Shape.schema ReplicaGlobalSecondaryIndexDescription) "member")), + ({ name := "GlobalTableSettingsReplicationMode" }, (Shape.schema GlobalTableSettingsReplicationMode)), + ({ name := "KMSMasterKeyId" }, .string), + ({ name := "OnDemandThroughputOverride" }, (Shape.schema OnDemandThroughputOverride)), + ({ name := "ProvisionedThroughputOverride" }, (Shape.schema ProvisionedThroughputOverride)), + ({ name := "RegionName" }, .string), + ({ name := "ReplicaArn" }, .string), + ({ name := "ReplicaInaccessibleDateTime" }, (.time none)), + ({ name := "ReplicaStatus" }, (Shape.schema ReplicaStatus)), + ({ name := "ReplicaStatusDescription" }, .string), + ({ name := "ReplicaStatusPercentProgress" }, .string), + ({ name := "ReplicaTableClassSummary" }, (Shape.schema TableClassSummary)), + ({ name := "WarmThroughput" }, (Shape.schema TableWarmThroughputDescription))] + toValue x := record [putOpt "GlobalSecondaryIndexes" x.globalSecondaryIndexes, putOpt "GlobalTableSettingsReplicationMode" x.globalTableSettingsReplicationMode, putOpt "KMSMasterKeyId" x.kmsMasterKeyId, putOpt "OnDemandThroughputOverride" x.onDemandThroughputOverride, putOpt "ProvisionedThroughputOverride" x.provisionedThroughputOverride, putOpt "RegionName" x.regionName, putOpt "ReplicaArn" x.replicaArn, putOpt "ReplicaInaccessibleDateTime" x.replicaInaccessibleDateTime, putOpt "ReplicaStatus" x.replicaStatus, putOpt "ReplicaStatusDescription" x.replicaStatusDescription, putOpt "ReplicaStatusPercentProgress" x.replicaStatusPercentProgress, putOpt "ReplicaTableClassSummary" x.replicaTableClassSummary, putOpt "WarmThroughput" x.warmThroughput] + ofValue v := do + let globalSecondaryIndexes ← v.opt "GlobalSecondaryIndexes" + let globalTableSettingsReplicationMode ← v.opt "GlobalTableSettingsReplicationMode" + let kmsMasterKeyId ← v.opt "KMSMasterKeyId" + let onDemandThroughputOverride ← v.opt "OnDemandThroughputOverride" + let provisionedThroughputOverride ← v.opt "ProvisionedThroughputOverride" + let regionName ← v.opt "RegionName" + let replicaArn ← v.opt "ReplicaArn" + let replicaInaccessibleDateTime ← v.opt "ReplicaInaccessibleDateTime" + let replicaStatus ← v.opt "ReplicaStatus" + let replicaStatusDescription ← v.opt "ReplicaStatusDescription" + let replicaStatusPercentProgress ← v.opt "ReplicaStatusPercentProgress" + let replicaTableClassSummary ← v.opt "ReplicaTableClassSummary" + let warmThroughput ← v.opt "WarmThroughput" + return { globalSecondaryIndexes, globalTableSettingsReplicationMode, kmsMasterKeyId, onDemandThroughputOverride, provisionedThroughputOverride, regionName, replicaArn, replicaInaccessibleDateTime, replicaStatus, replicaStatusDescription, replicaStatusPercentProgress, replicaTableClassSummary, warmThroughput } + +/-- Represents the auto scaling configuration for a replica global secondary index. -/ +structure ReplicaGlobalSecondaryIndexAutoScalingDescription where + /-- The name of the global secondary index. -/ + indexName : Option String := none + /-- The current state of the replica global secondary index: CREATING - The index is being created. -/ + indexStatus : Option IndexStatus := none + provisionedReadCapacityAutoScalingSettings : Option AutoScalingSettingsDescription := none + provisionedWriteCapacityAutoScalingSettings : Option AutoScalingSettingsDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicaGlobalSecondaryIndexAutoScalingDescription where + schema := .struct "ReplicaGlobalSecondaryIndexAutoScalingDescription" [({ name := "IndexName" }, .string), + ({ name := "IndexStatus" }, (Shape.schema IndexStatus)), + ({ name := "ProvisionedReadCapacityAutoScalingSettings" }, (Shape.schema AutoScalingSettingsDescription)), + ({ name := "ProvisionedWriteCapacityAutoScalingSettings" }, (Shape.schema AutoScalingSettingsDescription))] + toValue x := record [putOpt "IndexName" x.indexName, putOpt "IndexStatus" x.indexStatus, putOpt "ProvisionedReadCapacityAutoScalingSettings" x.provisionedReadCapacityAutoScalingSettings, putOpt "ProvisionedWriteCapacityAutoScalingSettings" x.provisionedWriteCapacityAutoScalingSettings] + ofValue v := do + let indexName ← v.opt "IndexName" + let indexStatus ← v.opt "IndexStatus" + let provisionedReadCapacityAutoScalingSettings ← v.opt "ProvisionedReadCapacityAutoScalingSettings" + let provisionedWriteCapacityAutoScalingSettings ← v.opt "ProvisionedWriteCapacityAutoScalingSettings" + return { indexName, indexStatus, provisionedReadCapacityAutoScalingSettings, provisionedWriteCapacityAutoScalingSettings } + +/-- Represents the auto scaling settings of a global secondary index for a replica that will be modified. -/ +structure ReplicaGlobalSecondaryIndexAutoScalingUpdate where + /-- The name of the global secondary index. -/ + indexName : Option String := none + provisionedReadCapacityAutoScalingUpdate : Option AutoScalingSettingsUpdate := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicaGlobalSecondaryIndexAutoScalingUpdate where + schema := .struct "ReplicaGlobalSecondaryIndexAutoScalingUpdate" [({ name := "IndexName" }, .string), + ({ name := "ProvisionedReadCapacityAutoScalingUpdate" }, (Shape.schema AutoScalingSettingsUpdate))] + toValue x := record [putOpt "IndexName" x.indexName, putOpt "ProvisionedReadCapacityAutoScalingUpdate" x.provisionedReadCapacityAutoScalingUpdate] + ofValue v := do + let indexName ← v.opt "IndexName" + let provisionedReadCapacityAutoScalingUpdate ← v.opt "ProvisionedReadCapacityAutoScalingUpdate" + return { indexName, provisionedReadCapacityAutoScalingUpdate } + +/-- Represents the properties of a global secondary index. -/ +structure ReplicaGlobalSecondaryIndexSettingsDescription where + /-- The name of the global secondary index. -/ + indexName : String + /-- The current status of the global secondary index: CREATING - The global secondary index is being created. -/ + indexStatus : Option IndexStatus := none + /-- Auto scaling settings for a global secondary index replica's read capacity units. -/ + provisionedReadCapacityAutoScalingSettings : Option AutoScalingSettingsDescription := none + /-- The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException . -/ + provisionedReadCapacityUnits : Option Int := none + /-- Auto scaling settings for a global secondary index replica's write capacity units. -/ + provisionedWriteCapacityAutoScalingSettings : Option AutoScalingSettingsDescription := none + /-- The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException . -/ + provisionedWriteCapacityUnits : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicaGlobalSecondaryIndexSettingsDescription where + schema := .struct "ReplicaGlobalSecondaryIndexSettingsDescription" [({ name := "IndexName", required := true }, .string), + ({ name := "IndexStatus" }, (Shape.schema IndexStatus)), + ({ name := "ProvisionedReadCapacityAutoScalingSettings" }, (Shape.schema AutoScalingSettingsDescription)), + ({ name := "ProvisionedReadCapacityUnits" }, .int), + ({ name := "ProvisionedWriteCapacityAutoScalingSettings" }, (Shape.schema AutoScalingSettingsDescription)), + ({ name := "ProvisionedWriteCapacityUnits" }, .int)] + toValue x := record [put "IndexName" x.indexName, putOpt "IndexStatus" x.indexStatus, putOpt "ProvisionedReadCapacityAutoScalingSettings" x.provisionedReadCapacityAutoScalingSettings, putOpt "ProvisionedReadCapacityUnits" x.provisionedReadCapacityUnits, putOpt "ProvisionedWriteCapacityAutoScalingSettings" x.provisionedWriteCapacityAutoScalingSettings, putOpt "ProvisionedWriteCapacityUnits" x.provisionedWriteCapacityUnits] + ofValue v := do + let indexName ← v.req "IndexName" + let indexStatus ← v.opt "IndexStatus" + let provisionedReadCapacityAutoScalingSettings ← v.opt "ProvisionedReadCapacityAutoScalingSettings" + let provisionedReadCapacityUnits ← v.opt "ProvisionedReadCapacityUnits" + let provisionedWriteCapacityAutoScalingSettings ← v.opt "ProvisionedWriteCapacityAutoScalingSettings" + let provisionedWriteCapacityUnits ← v.opt "ProvisionedWriteCapacityUnits" + return { indexName, indexStatus, provisionedReadCapacityAutoScalingSettings, provisionedReadCapacityUnits, provisionedWriteCapacityAutoScalingSettings, provisionedWriteCapacityUnits } + +/-- Represents the settings of a global secondary index for a global table that will be modified. -/ +structure ReplicaGlobalSecondaryIndexSettingsUpdate where + /-- The name of the global secondary index. -/ + indexName : String + /-- Auto scaling settings for managing a global secondary index replica's read capacity units. -/ + provisionedReadCapacityAutoScalingSettingsUpdate : Option AutoScalingSettingsUpdate := none + /-- The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException . -/ + provisionedReadCapacityUnits : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicaGlobalSecondaryIndexSettingsUpdate where + schema := .struct "ReplicaGlobalSecondaryIndexSettingsUpdate" [({ name := "IndexName", required := true }, .string), + ({ name := "ProvisionedReadCapacityAutoScalingSettingsUpdate" }, (Shape.schema AutoScalingSettingsUpdate)), + ({ name := "ProvisionedReadCapacityUnits" }, .int)] + toValue x := record [put "IndexName" x.indexName, putOpt "ProvisionedReadCapacityAutoScalingSettingsUpdate" x.provisionedReadCapacityAutoScalingSettingsUpdate, putOpt "ProvisionedReadCapacityUnits" x.provisionedReadCapacityUnits] + ofValue v := do + let indexName ← v.req "IndexName" + let provisionedReadCapacityAutoScalingSettingsUpdate ← v.opt "ProvisionedReadCapacityAutoScalingSettingsUpdate" + let provisionedReadCapacityUnits ← v.opt "ProvisionedReadCapacityUnits" + return { indexName, provisionedReadCapacityAutoScalingSettingsUpdate, provisionedReadCapacityUnits } + +/-- Represents one of the following: A new replica to be added to an existing regional table or global table. -/ +structure ReplicationGroupUpdate where + /-- The parameters required for creating a replica for the table. -/ + create : Option CreateReplicationGroupMemberAction := none + /-- The parameters required for deleting a replica for the table. -/ + delete : Option DeleteReplicationGroupMemberAction := none + /-- The parameters for disassociating the local replica from the global table and retaining it as a standalone regional table. -/ + disassociate : Option DisassociateReplicationGroupMemberAction := none + /-- The parameters required for updating a replica for the table. -/ + update : Option UpdateReplicationGroupMemberAction := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicationGroupUpdate where + schema := .struct "ReplicationGroupUpdate" [({ name := "Create" }, (Shape.schema CreateReplicationGroupMemberAction)), + ({ name := "Delete" }, (Shape.schema DeleteReplicationGroupMemberAction)), + ({ name := "Disassociate" }, (Shape.schema DisassociateReplicationGroupMemberAction)), + ({ name := "Update" }, (Shape.schema UpdateReplicationGroupMemberAction))] + toValue x := record [putOpt "Create" x.create, putOpt "Delete" x.delete, putOpt "Disassociate" x.disassociate, putOpt "Update" x.update] + ofValue v := do + let create ← v.opt "Create" + let delete ← v.opt "Delete" + let disassociate ← v.opt "Disassociate" + let update ← v.opt "Update" + return { create, delete, disassociate, update } + +structure RestoreTableFromBackupInput where + /-- The Amazon Resource Name (ARN) associated with the backup. -/ + backupArn : String + /-- The billing mode of the restored table. -/ + billingModeOverride : Option BillingMode := none + /-- List of global secondary indexes for the restored table. -/ + globalSecondaryIndexOverride : Option (List GlobalSecondaryIndex) := none + /-- List of local secondary indexes for the restored table. -/ + localSecondaryIndexOverride : Option (List LocalSecondaryIndex) := none + onDemandThroughputOverride : Option OnDemandThroughput := none + /-- Provisioned throughput settings for the restored table. -/ + provisionedThroughputOverride : Option ProvisionedThroughput := none + /-- The new server-side encryption settings for the restored table. -/ + sseSpecificationOverride : Option SSESpecification := none + /-- The name of the new table to which the backup must be restored. -/ + targetTableName : String + /-- The vector indexes for the restored table. -/ + vectorIndexOverride : Option (List VectorIndex) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreTableFromBackupInput where + schema := .struct "RestoreTableFromBackupInput" [({ name := "BackupArn", required := true }, .string), + ({ name := "BillingModeOverride" }, (Shape.schema BillingMode)), + ({ name := "GlobalSecondaryIndexOverride" }, (.list (Shape.schema GlobalSecondaryIndex) "member")), + ({ name := "LocalSecondaryIndexOverride" }, (.list (Shape.schema LocalSecondaryIndex) "member")), + ({ name := "OnDemandThroughputOverride" }, (Shape.schema OnDemandThroughput)), + ({ name := "ProvisionedThroughputOverride" }, (Shape.schema ProvisionedThroughput)), + ({ name := "SSESpecificationOverride" }, (Shape.schema SSESpecification)), + ({ name := "TargetTableName", required := true }, .string), + ({ name := "VectorIndexOverride" }, (.list (Shape.schema VectorIndex) "member"))] + toValue x := record [put "BackupArn" x.backupArn, putOpt "BillingModeOverride" x.billingModeOverride, putOpt "GlobalSecondaryIndexOverride" x.globalSecondaryIndexOverride, putOpt "LocalSecondaryIndexOverride" x.localSecondaryIndexOverride, putOpt "OnDemandThroughputOverride" x.onDemandThroughputOverride, putOpt "ProvisionedThroughputOverride" x.provisionedThroughputOverride, putOpt "SSESpecificationOverride" x.sseSpecificationOverride, put "TargetTableName" x.targetTableName, putOpt "VectorIndexOverride" x.vectorIndexOverride] + ofValue v := do + let backupArn ← v.req "BackupArn" + let billingModeOverride ← v.opt "BillingModeOverride" + let globalSecondaryIndexOverride ← v.opt "GlobalSecondaryIndexOverride" + let localSecondaryIndexOverride ← v.opt "LocalSecondaryIndexOverride" + let onDemandThroughputOverride ← v.opt "OnDemandThroughputOverride" + let provisionedThroughputOverride ← v.opt "ProvisionedThroughputOverride" + let sseSpecificationOverride ← v.opt "SSESpecificationOverride" + let targetTableName ← v.req "TargetTableName" + let vectorIndexOverride ← v.opt "VectorIndexOverride" + return { backupArn, billingModeOverride, globalSecondaryIndexOverride, localSecondaryIndexOverride, onDemandThroughputOverride, provisionedThroughputOverride, sseSpecificationOverride, targetTableName, vectorIndexOverride } + +structure RestoreTableToPointInTimeInput where + /-- The billing mode of the restored table. -/ + billingModeOverride : Option BillingMode := none + /-- List of global secondary indexes for the restored table. -/ + globalSecondaryIndexOverride : Option (List GlobalSecondaryIndex) := none + /-- List of local secondary indexes for the restored table. -/ + localSecondaryIndexOverride : Option (List LocalSecondaryIndex) := none + onDemandThroughputOverride : Option OnDemandThroughput := none + /-- Provisioned throughput settings for the restored table. -/ + provisionedThroughputOverride : Option ProvisionedThroughput := none + /-- Time in the past to restore the table to. -/ + restoreDateTime : Option Timestamp := none + /-- The new server-side encryption settings for the restored table. -/ + sseSpecificationOverride : Option SSESpecification := none + /-- The DynamoDB table that will be restored. -/ + sourceTableArn : Option String := none + /-- Name of the source table that is being restored. -/ + sourceTableName : Option String := none + /-- The name of the new table to which it must be restored to. -/ + targetTableName : String + /-- Restore the table to the latest possible time. -/ + useLatestRestorableTime : Option Bool := none + /-- The vector indexes for the restored table. -/ + vectorIndexOverride : Option (List VectorIndex) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreTableToPointInTimeInput where + schema := .struct "RestoreTableToPointInTimeInput" [({ name := "BillingModeOverride" }, (Shape.schema BillingMode)), + ({ name := "GlobalSecondaryIndexOverride" }, (.list (Shape.schema GlobalSecondaryIndex) "member")), + ({ name := "LocalSecondaryIndexOverride" }, (.list (Shape.schema LocalSecondaryIndex) "member")), + ({ name := "OnDemandThroughputOverride" }, (Shape.schema OnDemandThroughput)), + ({ name := "ProvisionedThroughputOverride" }, (Shape.schema ProvisionedThroughput)), + ({ name := "RestoreDateTime" }, (.time none)), + ({ name := "SSESpecificationOverride" }, (Shape.schema SSESpecification)), + ({ name := "SourceTableArn" }, .string), + ({ name := "SourceTableName" }, .string), + ({ name := "TargetTableName", required := true }, .string), + ({ name := "UseLatestRestorableTime" }, .bool), + ({ name := "VectorIndexOverride" }, (.list (Shape.schema VectorIndex) "member"))] + toValue x := record [putOpt "BillingModeOverride" x.billingModeOverride, putOpt "GlobalSecondaryIndexOverride" x.globalSecondaryIndexOverride, putOpt "LocalSecondaryIndexOverride" x.localSecondaryIndexOverride, putOpt "OnDemandThroughputOverride" x.onDemandThroughputOverride, putOpt "ProvisionedThroughputOverride" x.provisionedThroughputOverride, putOpt "RestoreDateTime" x.restoreDateTime, putOpt "SSESpecificationOverride" x.sseSpecificationOverride, putOpt "SourceTableArn" x.sourceTableArn, putOpt "SourceTableName" x.sourceTableName, put "TargetTableName" x.targetTableName, putOpt "UseLatestRestorableTime" x.useLatestRestorableTime, putOpt "VectorIndexOverride" x.vectorIndexOverride] + ofValue v := do + let billingModeOverride ← v.opt "BillingModeOverride" + let globalSecondaryIndexOverride ← v.opt "GlobalSecondaryIndexOverride" + let localSecondaryIndexOverride ← v.opt "LocalSecondaryIndexOverride" + let onDemandThroughputOverride ← v.opt "OnDemandThroughputOverride" + let provisionedThroughputOverride ← v.opt "ProvisionedThroughputOverride" + let restoreDateTime ← v.opt "RestoreDateTime" + let sseSpecificationOverride ← v.opt "SSESpecificationOverride" + let sourceTableArn ← v.opt "SourceTableArn" + let sourceTableName ← v.opt "SourceTableName" + let targetTableName ← v.req "TargetTableName" + let useLatestRestorableTime ← v.opt "UseLatestRestorableTime" + let vectorIndexOverride ← v.opt "VectorIndexOverride" + return { billingModeOverride, globalSecondaryIndexOverride, localSecondaryIndexOverride, onDemandThroughputOverride, provisionedThroughputOverride, restoreDateTime, sseSpecificationOverride, sourceTableArn, sourceTableName, targetTableName, useLatestRestorableTime, vectorIndexOverride } + +/-- Contains the details of the features enabled on the table when the backup was created. -/ +structure SourceTableFeatureDetails where + /-- Represents the GSI properties for the table when the backup was created. -/ + globalSecondaryIndexes : Option (List GlobalSecondaryIndexInfo) := none + /-- Represents the LSI properties for the table when the backup was created. -/ + localSecondaryIndexes : Option (List LocalSecondaryIndexInfo) := none + /-- The description of the server-side encryption status on the table when the backup was created. -/ + sseDescription : Option SSEDescription := none + /-- Stream settings on the table when the backup was created. -/ + streamDescription : Option StreamSpecification := none + /-- Time to Live settings on the table when the backup was created. -/ + timeToLiveDescription : Option TimeToLiveDescription := none + /-- The vector index properties for the table at the time the backup was created, including the index name, vector attribute, dimensions, distance function, search schema, and projection. -/ + vectorIndexes : Option (List VectorIndexInfo) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SourceTableFeatureDetails where + schema := .struct "SourceTableFeatureDetails" [({ name := "GlobalSecondaryIndexes" }, (.list (Shape.schema GlobalSecondaryIndexInfo) "member")), + ({ name := "LocalSecondaryIndexes" }, (.list (Shape.schema LocalSecondaryIndexInfo) "member")), + ({ name := "SSEDescription" }, (Shape.schema SSEDescription)), + ({ name := "StreamDescription" }, (Shape.schema StreamSpecification)), + ({ name := "TimeToLiveDescription" }, (Shape.schema TimeToLiveDescription)), + ({ name := "VectorIndexes" }, (.list (Shape.schema VectorIndexInfo) "member"))] + toValue x := record [putOpt "GlobalSecondaryIndexes" x.globalSecondaryIndexes, putOpt "LocalSecondaryIndexes" x.localSecondaryIndexes, putOpt "SSEDescription" x.sseDescription, putOpt "StreamDescription" x.streamDescription, putOpt "TimeToLiveDescription" x.timeToLiveDescription, putOpt "VectorIndexes" x.vectorIndexes] + ofValue v := do + let globalSecondaryIndexes ← v.opt "GlobalSecondaryIndexes" + let localSecondaryIndexes ← v.opt "LocalSecondaryIndexes" + let sseDescription ← v.opt "SSEDescription" + let streamDescription ← v.opt "StreamDescription" + let timeToLiveDescription ← v.opt "TimeToLiveDescription" + let vectorIndexes ← v.opt "VectorIndexes" + return { globalSecondaryIndexes, localSecondaryIndexes, sseDescription, streamDescription, timeToLiveDescription, vectorIndexes } + +structure StartBulkPutItemsOutput where + /-- Contains detailed information about a bulk operation. -/ + bulkOperationDescription : BulkOperationDescription +deriving DecidableEq, Repr, Inhabited + +instance : Shape StartBulkPutItemsOutput where + schema := .struct "StartBulkPutItemsOutput" [({ name := "BulkOperationDescription", required := true }, (Shape.schema BulkOperationDescription))] + toValue x := record [put "BulkOperationDescription" x.bulkOperationDescription] + ofValue v := do + let bulkOperationDescription ← v.req "BulkOperationDescription" + return { bulkOperationDescription } + +/-- The parameters for the table created as part of the import operation. -/ +structure TableCreationParameters where + /-- The attributes of the table created as part of the import operation. -/ + attributeDefinitions : (List AttributeDefinition) + /-- The billing mode for provisioning the table created as part of the import operation. -/ + billingMode : Option BillingMode := none + /-- The Global Secondary Indexes (GSI) of the table to be created as part of the import operation. -/ + globalSecondaryIndexes : Option (List GlobalSecondaryIndex) := none + /-- The primary key and option sort key of the table created as part of the import operation. -/ + keySchema : (List KeySchemaElement) + onDemandThroughput : Option OnDemandThroughput := none + provisionedThroughput : Option ProvisionedThroughput := none + sseSpecification : Option SSESpecification := none + /-- The name of the table created as part of the import operation. -/ + tableName : String + /-- The vector indexes of the table to be created as part of the import operation. -/ + vectorIndexes : Option (List VectorIndex) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TableCreationParameters where + schema := .struct "TableCreationParameters" [({ name := "AttributeDefinitions", required := true }, (.list (Shape.schema AttributeDefinition) "member")), + ({ name := "BillingMode" }, (Shape.schema BillingMode)), + ({ name := "GlobalSecondaryIndexes" }, (.list (Shape.schema GlobalSecondaryIndex) "member")), + ({ name := "KeySchema", required := true }, (.list (Shape.schema KeySchemaElement) "member")), + ({ name := "OnDemandThroughput" }, (Shape.schema OnDemandThroughput)), + ({ name := "ProvisionedThroughput" }, (Shape.schema ProvisionedThroughput)), + ({ name := "SSESpecification" }, (Shape.schema SSESpecification)), + ({ name := "TableName", required := true }, .string), + ({ name := "VectorIndexes" }, (.list (Shape.schema VectorIndex) "member"))] + toValue x := record [put "AttributeDefinitions" x.attributeDefinitions, putOpt "BillingMode" x.billingMode, putOpt "GlobalSecondaryIndexes" x.globalSecondaryIndexes, put "KeySchema" x.keySchema, putOpt "OnDemandThroughput" x.onDemandThroughput, putOpt "ProvisionedThroughput" x.provisionedThroughput, putOpt "SSESpecification" x.sseSpecification, put "TableName" x.tableName, putOpt "VectorIndexes" x.vectorIndexes] + ofValue v := do + let attributeDefinitions ← v.req "AttributeDefinitions" + let billingMode ← v.opt "BillingMode" + let globalSecondaryIndexes ← v.opt "GlobalSecondaryIndexes" + let keySchema ← v.req "KeySchema" + let onDemandThroughput ← v.opt "OnDemandThroughput" + let provisionedThroughput ← v.opt "ProvisionedThroughput" + let sseSpecification ← v.opt "SSESpecification" + let tableName ← v.req "TableName" + let vectorIndexes ← v.opt "VectorIndexes" + return { attributeDefinitions, billingMode, globalSecondaryIndexes, keySchema, onDemandThroughput, provisionedThroughput, sseSpecification, tableName, vectorIndexes } + +structure UpdateContinuousBackupsOutput where + /-- Represents the continuous backups and point in time recovery settings on the table. -/ + continuousBackupsDescription : Option ContinuousBackupsDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateContinuousBackupsOutput where + schema := .struct "UpdateContinuousBackupsOutput" [({ name := "ContinuousBackupsDescription" }, (Shape.schema ContinuousBackupsDescription))] + toValue x := record [putOpt "ContinuousBackupsDescription" x.continuousBackupsDescription] + ofValue v := do + let continuousBackupsDescription ← v.opt "ContinuousBackupsDescription" + return { continuousBackupsDescription } + +/-- A vector index to be added to or removed from a table. -/ +structure VectorIndexUpdate where + /-- The configuration for creating a new vector index on the table. -/ + create : Option CreateVectorIndexAction := none + /-- The configuration for deleting an existing vector index from the table. -/ + delete : Option DeleteVectorIndexAction := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VectorIndexUpdate where + schema := .struct "VectorIndexUpdate" [({ name := "Create" }, (Shape.schema CreateVectorIndexAction)), + ({ name := "Delete" }, (Shape.schema DeleteVectorIndexAction))] + toValue x := record [putOpt "Create" x.create, putOpt "Delete" x.delete] + ofValue v := do + let create ← v.opt "Create" + let delete ← v.opt "Delete" + return { create, delete } + +/-- Contains the description of the backup created for the table. -/ +structure BackupDescription where + /-- Contains the details of the backup created for the table. -/ + backupDetails : Option BackupDetails := none + /-- Contains the details of the table when the backup was created. -/ + sourceTableDetails : Option SourceTableDetails := none + /-- Contains the details of the features enabled on the table when the backup was created. -/ + sourceTableFeatureDetails : Option SourceTableFeatureDetails := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BackupDescription where + schema := .struct "BackupDescription" [({ name := "BackupDetails" }, (Shape.schema BackupDetails)), + ({ name := "SourceTableDetails" }, (Shape.schema SourceTableDetails)), + ({ name := "SourceTableFeatureDetails" }, (Shape.schema SourceTableFeatureDetails))] + toValue x := record [putOpt "BackupDetails" x.backupDetails, putOpt "SourceTableDetails" x.sourceTableDetails, putOpt "SourceTableFeatureDetails" x.sourceTableFeatureDetails] + ofValue v := do + let backupDetails ← v.opt "BackupDetails" + let sourceTableDetails ← v.opt "SourceTableDetails" + let sourceTableFeatureDetails ← v.opt "SourceTableFeatureDetails" + return { backupDetails, sourceTableDetails, sourceTableFeatureDetails } + +/-- Contains details about the global table. -/ +structure GlobalTableDescription where + /-- The creation time of the global table. -/ + creationDateTime : Option Timestamp := none + /-- The unique identifier of the global table. -/ + globalTableArn : Option String := none + /-- The global table name. -/ + globalTableName : Option String := none + /-- The current state of the global table: CREATING - The global table is being created. -/ + globalTableStatus : Option GlobalTableStatus := none + /-- The Regions where the global table has replicas. -/ + replicationGroup : Option (List ReplicaDescription) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GlobalTableDescription where + schema := .struct "GlobalTableDescription" [({ name := "CreationDateTime" }, (.time none)), + ({ name := "GlobalTableArn" }, .string), + ({ name := "GlobalTableName" }, .string), + ({ name := "GlobalTableStatus" }, (Shape.schema GlobalTableStatus)), + ({ name := "ReplicationGroup" }, (.list (Shape.schema ReplicaDescription) "member"))] + toValue x := record [putOpt "CreationDateTime" x.creationDateTime, putOpt "GlobalTableArn" x.globalTableArn, putOpt "GlobalTableName" x.globalTableName, putOpt "GlobalTableStatus" x.globalTableStatus, putOpt "ReplicationGroup" x.replicationGroup] + ofValue v := do + let creationDateTime ← v.opt "CreationDateTime" + let globalTableArn ← v.opt "GlobalTableArn" + let globalTableName ← v.opt "GlobalTableName" + let globalTableStatus ← v.opt "GlobalTableStatus" + let replicationGroup ← v.opt "ReplicationGroup" + return { creationDateTime, globalTableArn, globalTableName, globalTableStatus, replicationGroup } + +/-- Represents the properties of the table being imported into. -/ +structure ImportTableDescription where + /-- The client token that was provided for the import task. -/ + clientToken : Option String := none + /-- The Amazon Resource Number (ARN) of the Cloudwatch Log Group associated with the target table. -/ + cloudWatchLogGroupArn : Option String := none + /-- The time at which the creation of the table associated with this import task completed. -/ + endTime : Option Timestamp := none + /-- The number of errors occurred on importing the source file into the target table. -/ + errorCount : Option Int := none + /-- The error code corresponding to the failure that the import job ran into during execution. -/ + failureCode : Option String := none + /-- The error message corresponding to the failure that the import job ran into during execution. -/ + failureMessage : Option String := none + /-- The Amazon Resource Number (ARN) corresponding to the import request. -/ + importArn : Option String := none + /-- The status of the import. -/ + importStatus : Option ImportStatus := none + /-- The number of items successfully imported into the new table. -/ + importedItemCount : Option Int := none + /-- The compression options for the data that has been imported into the target table. -/ + inputCompressionType : Option InputCompressionType := none + /-- The format of the source data going into the target table. -/ + inputFormat : Option InputFormat := none + /-- The format options for the data that was imported into the target table. -/ + inputFormatOptions : Option InputFormatOptions := none + /-- The total number of items processed from the source file. -/ + processedItemCount : Option Int := none + /-- The total size of data processed from the source file, in Bytes. -/ + processedSizeBytes : Option Int := none + /-- Values for the S3 bucket the source file is imported from. -/ + s3BucketSource : Option S3BucketSource := none + /-- The time when this import task started. -/ + startTime : Option Timestamp := none + /-- The Amazon Resource Number (ARN) of the table being imported into. -/ + tableArn : Option String := none + /-- The parameters for the new table that is being imported into. -/ + tableCreationParameters : Option TableCreationParameters := none + /-- The table id corresponding to the table created by import table process. -/ + tableId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportTableDescription where + schema := .struct "ImportTableDescription" [({ name := "ClientToken" }, .string), + ({ name := "CloudWatchLogGroupArn" }, .string), + ({ name := "EndTime" }, (.time none)), + ({ name := "ErrorCount" }, .int), + ({ name := "FailureCode" }, .string), + ({ name := "FailureMessage" }, .string), + ({ name := "ImportArn" }, .string), + ({ name := "ImportStatus" }, (Shape.schema ImportStatus)), + ({ name := "ImportedItemCount" }, .int), + ({ name := "InputCompressionType" }, (Shape.schema InputCompressionType)), + ({ name := "InputFormat" }, (Shape.schema InputFormat)), + ({ name := "InputFormatOptions" }, (Shape.schema InputFormatOptions)), + ({ name := "ProcessedItemCount" }, .int), + ({ name := "ProcessedSizeBytes" }, .int), + ({ name := "S3BucketSource" }, (Shape.schema S3BucketSource)), + ({ name := "StartTime" }, (.time none)), + ({ name := "TableArn" }, .string), + ({ name := "TableCreationParameters" }, (Shape.schema TableCreationParameters)), + ({ name := "TableId" }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "CloudWatchLogGroupArn" x.cloudWatchLogGroupArn, putOpt "EndTime" x.endTime, putOpt "ErrorCount" x.errorCount, putOpt "FailureCode" x.failureCode, putOpt "FailureMessage" x.failureMessage, putOpt "ImportArn" x.importArn, putOpt "ImportStatus" x.importStatus, putOpt "ImportedItemCount" x.importedItemCount, putOpt "InputCompressionType" x.inputCompressionType, putOpt "InputFormat" x.inputFormat, putOpt "InputFormatOptions" x.inputFormatOptions, putOpt "ProcessedItemCount" x.processedItemCount, putOpt "ProcessedSizeBytes" x.processedSizeBytes, putOpt "S3BucketSource" x.s3BucketSource, putOpt "StartTime" x.startTime, putOpt "TableArn" x.tableArn, putOpt "TableCreationParameters" x.tableCreationParameters, putOpt "TableId" x.tableId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let cloudWatchLogGroupArn ← v.opt "CloudWatchLogGroupArn" + let endTime ← v.opt "EndTime" + let errorCount ← v.opt "ErrorCount" + let failureCode ← v.opt "FailureCode" + let failureMessage ← v.opt "FailureMessage" + let importArn ← v.opt "ImportArn" + let importStatus ← v.opt "ImportStatus" + let importedItemCount ← v.opt "ImportedItemCount" + let inputCompressionType ← v.opt "InputCompressionType" + let inputFormat ← v.opt "InputFormat" + let inputFormatOptions ← v.opt "InputFormatOptions" + let processedItemCount ← v.opt "ProcessedItemCount" + let processedSizeBytes ← v.opt "ProcessedSizeBytes" + let s3BucketSource ← v.opt "S3BucketSource" + let startTime ← v.opt "StartTime" + let tableArn ← v.opt "TableArn" + let tableCreationParameters ← v.opt "TableCreationParameters" + let tableId ← v.opt "TableId" + return { clientToken, cloudWatchLogGroupArn, endTime, errorCount, failureCode, failureMessage, importArn, importStatus, importedItemCount, inputCompressionType, inputFormat, inputFormatOptions, processedItemCount, processedSizeBytes, s3BucketSource, startTime, tableArn, tableCreationParameters, tableId } + +structure ImportTableInput where + /-- Providing a ClientToken makes the call to ImportTableInput idempotent, meaning that multiple identical calls have the same effect as one single call. -/ + clientToken : Option String := none + /-- Type of compression to be used on the input coming from the imported table. -/ + inputCompressionType : Option InputCompressionType := none + /-- The format of the source data. -/ + inputFormat : InputFormat + /-- Additional properties that specify how the input is formatted,. -/ + inputFormatOptions : Option InputFormatOptions := none + /-- The S3 bucket that provides the source for the import. -/ + s3BucketSource : S3BucketSource + /-- Parameters for the table to import the data into. -/ + tableCreationParameters : TableCreationParameters +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportTableInput where + schema := .struct "ImportTableInput" [({ name := "ClientToken" }, .string), + ({ name := "InputCompressionType" }, (Shape.schema InputCompressionType)), + ({ name := "InputFormat", required := true }, (Shape.schema InputFormat)), + ({ name := "InputFormatOptions" }, (Shape.schema InputFormatOptions)), + ({ name := "S3BucketSource", required := true }, (Shape.schema S3BucketSource)), + ({ name := "TableCreationParameters", required := true }, (Shape.schema TableCreationParameters))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "InputCompressionType" x.inputCompressionType, put "InputFormat" x.inputFormat, putOpt "InputFormatOptions" x.inputFormatOptions, put "S3BucketSource" x.s3BucketSource, put "TableCreationParameters" x.tableCreationParameters] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let inputCompressionType ← v.opt "InputCompressionType" + let inputFormat ← v.req "InputFormat" + let inputFormatOptions ← v.opt "InputFormatOptions" + let s3BucketSource ← v.req "S3BucketSource" + let tableCreationParameters ← v.req "TableCreationParameters" + return { clientToken, inputCompressionType, inputFormat, inputFormatOptions, s3BucketSource, tableCreationParameters } + +/-- Represents the auto scaling settings of the replica. -/ +structure ReplicaAutoScalingDescription where + /-- Replica-specific global secondary index auto scaling settings. -/ + globalSecondaryIndexes : Option (List ReplicaGlobalSecondaryIndexAutoScalingDescription) := none + /-- The Region where the replica exists. -/ + regionName : Option String := none + replicaProvisionedReadCapacityAutoScalingSettings : Option AutoScalingSettingsDescription := none + replicaProvisionedWriteCapacityAutoScalingSettings : Option AutoScalingSettingsDescription := none + /-- The current state of the replica: CREATING - The replica is being created. -/ + replicaStatus : Option ReplicaStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicaAutoScalingDescription where + schema := .struct "ReplicaAutoScalingDescription" [({ name := "GlobalSecondaryIndexes" }, (.list (Shape.schema ReplicaGlobalSecondaryIndexAutoScalingDescription) "member")), + ({ name := "RegionName" }, .string), + ({ name := "ReplicaProvisionedReadCapacityAutoScalingSettings" }, (Shape.schema AutoScalingSettingsDescription)), + ({ name := "ReplicaProvisionedWriteCapacityAutoScalingSettings" }, (Shape.schema AutoScalingSettingsDescription)), + ({ name := "ReplicaStatus" }, (Shape.schema ReplicaStatus))] + toValue x := record [putOpt "GlobalSecondaryIndexes" x.globalSecondaryIndexes, putOpt "RegionName" x.regionName, putOpt "ReplicaProvisionedReadCapacityAutoScalingSettings" x.replicaProvisionedReadCapacityAutoScalingSettings, putOpt "ReplicaProvisionedWriteCapacityAutoScalingSettings" x.replicaProvisionedWriteCapacityAutoScalingSettings, putOpt "ReplicaStatus" x.replicaStatus] + ofValue v := do + let globalSecondaryIndexes ← v.opt "GlobalSecondaryIndexes" + let regionName ← v.opt "RegionName" + let replicaProvisionedReadCapacityAutoScalingSettings ← v.opt "ReplicaProvisionedReadCapacityAutoScalingSettings" + let replicaProvisionedWriteCapacityAutoScalingSettings ← v.opt "ReplicaProvisionedWriteCapacityAutoScalingSettings" + let replicaStatus ← v.opt "ReplicaStatus" + return { globalSecondaryIndexes, regionName, replicaProvisionedReadCapacityAutoScalingSettings, replicaProvisionedWriteCapacityAutoScalingSettings, replicaStatus } + +/-- Represents the auto scaling settings of a replica that will be modified. -/ +structure ReplicaAutoScalingUpdate where + /-- The Region where the replica exists. -/ + regionName : String + /-- Represents the auto scaling settings of global secondary indexes that will be modified. -/ + replicaGlobalSecondaryIndexUpdates : Option (List ReplicaGlobalSecondaryIndexAutoScalingUpdate) := none + replicaProvisionedReadCapacityAutoScalingUpdate : Option AutoScalingSettingsUpdate := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicaAutoScalingUpdate where + schema := .struct "ReplicaAutoScalingUpdate" [({ name := "RegionName", required := true }, .string), + ({ name := "ReplicaGlobalSecondaryIndexUpdates" }, (.list (Shape.schema ReplicaGlobalSecondaryIndexAutoScalingUpdate) "member")), + ({ name := "ReplicaProvisionedReadCapacityAutoScalingUpdate" }, (Shape.schema AutoScalingSettingsUpdate))] + toValue x := record [put "RegionName" x.regionName, putOpt "ReplicaGlobalSecondaryIndexUpdates" x.replicaGlobalSecondaryIndexUpdates, putOpt "ReplicaProvisionedReadCapacityAutoScalingUpdate" x.replicaProvisionedReadCapacityAutoScalingUpdate] + ofValue v := do + let regionName ← v.req "RegionName" + let replicaGlobalSecondaryIndexUpdates ← v.opt "ReplicaGlobalSecondaryIndexUpdates" + let replicaProvisionedReadCapacityAutoScalingUpdate ← v.opt "ReplicaProvisionedReadCapacityAutoScalingUpdate" + return { regionName, replicaGlobalSecondaryIndexUpdates, replicaProvisionedReadCapacityAutoScalingUpdate } + +/-- Represents the properties of a replica. -/ +structure ReplicaSettingsDescription where + /-- The Region name of the replica. -/ + regionName : String + /-- The read/write capacity mode of the replica. -/ + replicaBillingModeSummary : Option BillingModeSummary := none + /-- Replica global secondary index settings for the global table. -/ + replicaGlobalSecondaryIndexSettings : Option (List ReplicaGlobalSecondaryIndexSettingsDescription) := none + /-- Auto scaling settings for a global table replica's read capacity units. -/ + replicaProvisionedReadCapacityAutoScalingSettings : Option AutoScalingSettingsDescription := none + /-- The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException . -/ + replicaProvisionedReadCapacityUnits : Option Int := none + /-- Auto scaling settings for a global table replica's write capacity units. -/ + replicaProvisionedWriteCapacityAutoScalingSettings : Option AutoScalingSettingsDescription := none + /-- The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException . -/ + replicaProvisionedWriteCapacityUnits : Option Int := none + /-- The current state of the Region: CREATING - The Region is being created. -/ + replicaStatus : Option ReplicaStatus := none + replicaTableClassSummary : Option TableClassSummary := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicaSettingsDescription where + schema := .struct "ReplicaSettingsDescription" [({ name := "RegionName", required := true }, .string), + ({ name := "ReplicaBillingModeSummary" }, (Shape.schema BillingModeSummary)), + ({ name := "ReplicaGlobalSecondaryIndexSettings" }, (.list (Shape.schema ReplicaGlobalSecondaryIndexSettingsDescription) "member")), + ({ name := "ReplicaProvisionedReadCapacityAutoScalingSettings" }, (Shape.schema AutoScalingSettingsDescription)), + ({ name := "ReplicaProvisionedReadCapacityUnits" }, .int), + ({ name := "ReplicaProvisionedWriteCapacityAutoScalingSettings" }, (Shape.schema AutoScalingSettingsDescription)), + ({ name := "ReplicaProvisionedWriteCapacityUnits" }, .int), + ({ name := "ReplicaStatus" }, (Shape.schema ReplicaStatus)), + ({ name := "ReplicaTableClassSummary" }, (Shape.schema TableClassSummary))] + toValue x := record [put "RegionName" x.regionName, putOpt "ReplicaBillingModeSummary" x.replicaBillingModeSummary, putOpt "ReplicaGlobalSecondaryIndexSettings" x.replicaGlobalSecondaryIndexSettings, putOpt "ReplicaProvisionedReadCapacityAutoScalingSettings" x.replicaProvisionedReadCapacityAutoScalingSettings, putOpt "ReplicaProvisionedReadCapacityUnits" x.replicaProvisionedReadCapacityUnits, putOpt "ReplicaProvisionedWriteCapacityAutoScalingSettings" x.replicaProvisionedWriteCapacityAutoScalingSettings, putOpt "ReplicaProvisionedWriteCapacityUnits" x.replicaProvisionedWriteCapacityUnits, putOpt "ReplicaStatus" x.replicaStatus, putOpt "ReplicaTableClassSummary" x.replicaTableClassSummary] + ofValue v := do + let regionName ← v.req "RegionName" + let replicaBillingModeSummary ← v.opt "ReplicaBillingModeSummary" + let replicaGlobalSecondaryIndexSettings ← v.opt "ReplicaGlobalSecondaryIndexSettings" + let replicaProvisionedReadCapacityAutoScalingSettings ← v.opt "ReplicaProvisionedReadCapacityAutoScalingSettings" + let replicaProvisionedReadCapacityUnits ← v.opt "ReplicaProvisionedReadCapacityUnits" + let replicaProvisionedWriteCapacityAutoScalingSettings ← v.opt "ReplicaProvisionedWriteCapacityAutoScalingSettings" + let replicaProvisionedWriteCapacityUnits ← v.opt "ReplicaProvisionedWriteCapacityUnits" + let replicaStatus ← v.opt "ReplicaStatus" + let replicaTableClassSummary ← v.opt "ReplicaTableClassSummary" + return { regionName, replicaBillingModeSummary, replicaGlobalSecondaryIndexSettings, replicaProvisionedReadCapacityAutoScalingSettings, replicaProvisionedReadCapacityUnits, replicaProvisionedWriteCapacityAutoScalingSettings, replicaProvisionedWriteCapacityUnits, replicaStatus, replicaTableClassSummary } + +/-- Represents the settings for a global table in a Region that will be modified. -/ +structure ReplicaSettingsUpdate where + /-- The Region of the replica to be added. -/ + regionName : String + /-- Represents the settings of a global secondary index for a global table that will be modified. -/ + replicaGlobalSecondaryIndexSettingsUpdate : Option (List ReplicaGlobalSecondaryIndexSettingsUpdate) := none + /-- Auto scaling settings for managing a global table replica's read capacity units. -/ + replicaProvisionedReadCapacityAutoScalingSettingsUpdate : Option AutoScalingSettingsUpdate := none + /-- The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException . -/ + replicaProvisionedReadCapacityUnits : Option Int := none + /-- Replica-specific table class. -/ + replicaTableClass : Option TableClass := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicaSettingsUpdate where + schema := .struct "ReplicaSettingsUpdate" [({ name := "RegionName", required := true }, .string), + ({ name := "ReplicaGlobalSecondaryIndexSettingsUpdate" }, (.list (Shape.schema ReplicaGlobalSecondaryIndexSettingsUpdate) "member")), + ({ name := "ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate" }, (Shape.schema AutoScalingSettingsUpdate)), + ({ name := "ReplicaProvisionedReadCapacityUnits" }, .int), + ({ name := "ReplicaTableClass" }, (Shape.schema TableClass))] + toValue x := record [put "RegionName" x.regionName, putOpt "ReplicaGlobalSecondaryIndexSettingsUpdate" x.replicaGlobalSecondaryIndexSettingsUpdate, putOpt "ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate" x.replicaProvisionedReadCapacityAutoScalingSettingsUpdate, putOpt "ReplicaProvisionedReadCapacityUnits" x.replicaProvisionedReadCapacityUnits, putOpt "ReplicaTableClass" x.replicaTableClass] + ofValue v := do + let regionName ← v.req "RegionName" + let replicaGlobalSecondaryIndexSettingsUpdate ← v.opt "ReplicaGlobalSecondaryIndexSettingsUpdate" + let replicaProvisionedReadCapacityAutoScalingSettingsUpdate ← v.opt "ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate" + let replicaProvisionedReadCapacityUnits ← v.opt "ReplicaProvisionedReadCapacityUnits" + let replicaTableClass ← v.opt "ReplicaTableClass" + return { regionName, replicaGlobalSecondaryIndexSettingsUpdate, replicaProvisionedReadCapacityAutoScalingSettingsUpdate, replicaProvisionedReadCapacityUnits, replicaTableClass } + +/-- Represents the properties of a table. -/ +structure TableDescription where + /-- Contains information about the table archive. -/ + archivalSummary : Option ArchivalSummary := none + /-- An array of AttributeDefinition objects. -/ + attributeDefinitions : Option (List AttributeDefinition) := none + /-- Contains the details for the read/write capacity mode. -/ + billingModeSummary : Option BillingModeSummary := none + /-- The date and time when the table was created, in UNIX epoch time format. -/ + creationDateTime : Option Timestamp := none + /-- Indicates whether deletion protection is enabled (true) or disabled (false) on the table. -/ + deletionProtectionEnabled : Option Bool := none + /-- Specifies whether disassociation protection is enabled ( true ) or disabled ( false ) for the local global table replica. -/ + disassociationProtectionEnabled : Option Bool := none + /-- The global secondary indexes, if any, on the table. -/ + globalSecondaryIndexes : Option (List GlobalSecondaryIndexDescription) := none + /-- Indicates one of the settings synchronization modes for the global table: ENABLED : Indicates that the settings synchronization mode for the global table is enabled. -/ + globalTableSettingsReplicationMode : Option GlobalTableSettingsReplicationMode := none + /-- Represents the version of global tables in use, if the table is replicated across Amazon Web Services Regions. -/ + globalTableVersion : Option String := none + /-- The witness Region and its current status in the MRSC global table. -/ + globalTableWitnesses : Option (List GlobalTableWitnessDescription) := none + /-- The number of items in the specified table. -/ + itemCount : Option Int := none + /-- The primary key structure for the table. -/ + keySchema : Option (List KeySchemaElement) := none + /-- The Amazon Resource Name (ARN) that uniquely identifies the latest stream for this table. -/ + latestStreamArn : Option String := none + /-- A timestamp, in ISO 8601 format, for this stream. -/ + latestStreamLabel : Option String := none + /-- Represents one or more local secondary indexes on the table. -/ + localSecondaryIndexes : Option (List LocalSecondaryIndexDescription) := none + /-- Indicates one of the following consistency modes for a global table: EVENTUAL : Indicates that the global table is configured for multi-Region eventual consistency (MREC). -/ + multiRegionConsistency : Option MultiRegionConsistency := none + /-- The maximum number of read and write units for the specified on-demand table. -/ + onDemandThroughput : Option OnDemandThroughput := none + /-- The provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases. -/ + provisionedThroughput : Option ProvisionedThroughputDescription := none + /-- Represents replicas of the table. -/ + replicas : Option (List ReplicaDescription) := none + /-- Contains details for the restore. -/ + restoreSummary : Option RestoreSummary := none + /-- The description of the server-side encryption status on the specified table. -/ + sseDescription : Option SSEDescription := none + /-- The current DynamoDB Streams configuration for the table. -/ + streamSpecification : Option StreamSpecification := none + /-- The Amazon Resource Name (ARN) that uniquely identifies the table. -/ + tableArn : Option String := none + /-- Contains details of the table class. -/ + tableClassSummary : Option TableClassSummary := none + /-- A unique identifier for the table, in UUID format, generated by DynamoDB when the table is created. -/ + tableId : Option String := none + /-- The name of the table. -/ + tableName : Option String := none + /-- The total size of the specified table, in bytes. -/ + tableSizeBytes : Option Int := none + /-- The current state of the table: CREATING - The table is being created. -/ + tableStatus : Option TableStatus := none + /-- The vector indexes, if any, on the table. -/ + vectorIndexes : Option (List VectorIndexDescription) := none + /-- Describes the warm throughput value of the base table. -/ + warmThroughput : Option TableWarmThroughputDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TableDescription where + schema := .struct "TableDescription" [({ name := "ArchivalSummary" }, (Shape.schema ArchivalSummary)), + ({ name := "AttributeDefinitions" }, (.list (Shape.schema AttributeDefinition) "member")), + ({ name := "BillingModeSummary" }, (Shape.schema BillingModeSummary)), + ({ name := "CreationDateTime" }, (.time none)), + ({ name := "DeletionProtectionEnabled" }, .bool), + ({ name := "DisassociationProtectionEnabled" }, .bool), + ({ name := "GlobalSecondaryIndexes" }, (.list (Shape.schema GlobalSecondaryIndexDescription) "member")), + ({ name := "GlobalTableSettingsReplicationMode" }, (Shape.schema GlobalTableSettingsReplicationMode)), + ({ name := "GlobalTableVersion" }, .string), + ({ name := "GlobalTableWitnesses" }, (.list (Shape.schema GlobalTableWitnessDescription) "member")), + ({ name := "ItemCount" }, .int), + ({ name := "KeySchema" }, (.list (Shape.schema KeySchemaElement) "member")), + ({ name := "LatestStreamArn" }, .string), + ({ name := "LatestStreamLabel" }, .string), + ({ name := "LocalSecondaryIndexes" }, (.list (Shape.schema LocalSecondaryIndexDescription) "member")), + ({ name := "MultiRegionConsistency" }, (Shape.schema MultiRegionConsistency)), + ({ name := "OnDemandThroughput" }, (Shape.schema OnDemandThroughput)), + ({ name := "ProvisionedThroughput" }, (Shape.schema ProvisionedThroughputDescription)), + ({ name := "Replicas" }, (.list (Shape.schema ReplicaDescription) "member")), + ({ name := "RestoreSummary" }, (Shape.schema RestoreSummary)), + ({ name := "SSEDescription" }, (Shape.schema SSEDescription)), + ({ name := "StreamSpecification" }, (Shape.schema StreamSpecification)), + ({ name := "TableArn" }, .string), + ({ name := "TableClassSummary" }, (Shape.schema TableClassSummary)), + ({ name := "TableId" }, .string), + ({ name := "TableName" }, .string), + ({ name := "TableSizeBytes" }, .int), + ({ name := "TableStatus" }, (Shape.schema TableStatus)), + ({ name := "VectorIndexes" }, (.list (Shape.schema VectorIndexDescription) "member")), + ({ name := "WarmThroughput" }, (Shape.schema TableWarmThroughputDescription))] + toValue x := record [putOpt "ArchivalSummary" x.archivalSummary, putOpt "AttributeDefinitions" x.attributeDefinitions, putOpt "BillingModeSummary" x.billingModeSummary, putOpt "CreationDateTime" x.creationDateTime, putOpt "DeletionProtectionEnabled" x.deletionProtectionEnabled, putOpt "DisassociationProtectionEnabled" x.disassociationProtectionEnabled, putOpt "GlobalSecondaryIndexes" x.globalSecondaryIndexes, putOpt "GlobalTableSettingsReplicationMode" x.globalTableSettingsReplicationMode, putOpt "GlobalTableVersion" x.globalTableVersion, putOpt "GlobalTableWitnesses" x.globalTableWitnesses, putOpt "ItemCount" x.itemCount, putOpt "KeySchema" x.keySchema, putOpt "LatestStreamArn" x.latestStreamArn, putOpt "LatestStreamLabel" x.latestStreamLabel, putOpt "LocalSecondaryIndexes" x.localSecondaryIndexes, putOpt "MultiRegionConsistency" x.multiRegionConsistency, putOpt "OnDemandThroughput" x.onDemandThroughput, putOpt "ProvisionedThroughput" x.provisionedThroughput, putOpt "Replicas" x.replicas, putOpt "RestoreSummary" x.restoreSummary, putOpt "SSEDescription" x.sseDescription, putOpt "StreamSpecification" x.streamSpecification, putOpt "TableArn" x.tableArn, putOpt "TableClassSummary" x.tableClassSummary, putOpt "TableId" x.tableId, putOpt "TableName" x.tableName, putOpt "TableSizeBytes" x.tableSizeBytes, putOpt "TableStatus" x.tableStatus, putOpt "VectorIndexes" x.vectorIndexes, putOpt "WarmThroughput" x.warmThroughput] + ofValue v := do + let archivalSummary ← v.opt "ArchivalSummary" + let attributeDefinitions ← v.opt "AttributeDefinitions" + let billingModeSummary ← v.opt "BillingModeSummary" + let creationDateTime ← v.opt "CreationDateTime" + let deletionProtectionEnabled ← v.opt "DeletionProtectionEnabled" + let disassociationProtectionEnabled ← v.opt "DisassociationProtectionEnabled" + let globalSecondaryIndexes ← v.opt "GlobalSecondaryIndexes" + let globalTableSettingsReplicationMode ← v.opt "GlobalTableSettingsReplicationMode" + let globalTableVersion ← v.opt "GlobalTableVersion" + let globalTableWitnesses ← v.opt "GlobalTableWitnesses" + let itemCount ← v.opt "ItemCount" + let keySchema ← v.opt "KeySchema" + let latestStreamArn ← v.opt "LatestStreamArn" + let latestStreamLabel ← v.opt "LatestStreamLabel" + let localSecondaryIndexes ← v.opt "LocalSecondaryIndexes" + let multiRegionConsistency ← v.opt "MultiRegionConsistency" + let onDemandThroughput ← v.opt "OnDemandThroughput" + let provisionedThroughput ← v.opt "ProvisionedThroughput" + let replicas ← v.opt "Replicas" + let restoreSummary ← v.opt "RestoreSummary" + let sseDescription ← v.opt "SSEDescription" + let streamSpecification ← v.opt "StreamSpecification" + let tableArn ← v.opt "TableArn" + let tableClassSummary ← v.opt "TableClassSummary" + let tableId ← v.opt "TableId" + let tableName ← v.opt "TableName" + let tableSizeBytes ← v.opt "TableSizeBytes" + let tableStatus ← v.opt "TableStatus" + let vectorIndexes ← v.opt "VectorIndexes" + let warmThroughput ← v.opt "WarmThroughput" + return { archivalSummary, attributeDefinitions, billingModeSummary, creationDateTime, deletionProtectionEnabled, disassociationProtectionEnabled, globalSecondaryIndexes, globalTableSettingsReplicationMode, globalTableVersion, globalTableWitnesses, itemCount, keySchema, latestStreamArn, latestStreamLabel, localSecondaryIndexes, multiRegionConsistency, onDemandThroughput, provisionedThroughput, replicas, restoreSummary, sseDescription, streamSpecification, tableArn, tableClassSummary, tableId, tableName, tableSizeBytes, tableStatus, vectorIndexes, warmThroughput } + +/-- Represents the input of an UpdateTable operation. -/ +structure UpdateTableInput where + /-- An array of attributes that describe the key schema for the table and indexes. -/ + attributeDefinitions : Option (List AttributeDefinition) := none + /-- Controls how you are charged for read and write throughput and how you manage capacity. -/ + billingMode : Option BillingMode := none + /-- Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table. -/ + deletionProtectionEnabled : Option Bool := none + /-- Specifies whether disassociation protection is enabled ( true ) or disabled ( false ) for the local replica of a multi-Region eventual consistency (MREC) global table using Version 2019.11.21. -/ + disassociationProtectionEnabled : Option Bool := none + /-- An array of one or more global secondary indexes for the table. -/ + globalSecondaryIndexUpdates : Option (List GlobalSecondaryIndexUpdate) := none + /-- Controls the settings replication mode for a global table replica. -/ + globalTableSettingsReplicationMode : Option GlobalTableSettingsReplicationMode := none + /-- A list of witness updates for a MRSC global table. -/ + globalTableWitnessUpdates : Option (List GlobalTableWitnessGroupUpdate) := none + /-- Specifies the consistency mode for a new global table. -/ + multiRegionConsistency : Option MultiRegionConsistency := none + /-- Updates the maximum number of read and write units for the specified table in on-demand capacity mode. -/ + onDemandThroughput : Option OnDemandThroughput := none + /-- The new provisioned throughput settings for the specified table or index. -/ + provisionedThroughput : Option ProvisionedThroughput := none + /-- A list of replica update actions (create, delete, update, or disassociate) for the table. -/ + replicaUpdates : Option (List ReplicationGroupUpdate) := none + /-- The new server-side encryption settings for the specified table. -/ + sseSpecification : Option SSESpecification := none + /-- Represents the DynamoDB Streams configuration for the table. -/ + streamSpecification : Option StreamSpecification := none + /-- The table class of the table to be updated. -/ + tableClass : Option TableClass := none + /-- The name of the table to be updated. -/ + tableName : String + /-- A list of vector indexes to be added to or removed from the table. -/ + vectorIndexUpdates : Option (List VectorIndexUpdate) := none + /-- Represents the warm throughput (in read units per second and write units per second) for updating a table. -/ + warmThroughput : Option WarmThroughput := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateTableInput where + schema := .struct "UpdateTableInput" [({ name := "AttributeDefinitions" }, (.list (Shape.schema AttributeDefinition) "member")), + ({ name := "BillingMode" }, (Shape.schema BillingMode)), + ({ name := "DeletionProtectionEnabled" }, .bool), + ({ name := "DisassociationProtectionEnabled" }, .bool), + ({ name := "GlobalSecondaryIndexUpdates" }, (.list (Shape.schema GlobalSecondaryIndexUpdate) "member")), + ({ name := "GlobalTableSettingsReplicationMode" }, (Shape.schema GlobalTableSettingsReplicationMode)), + ({ name := "GlobalTableWitnessUpdates" }, (.list (Shape.schema GlobalTableWitnessGroupUpdate) "member")), + ({ name := "MultiRegionConsistency" }, (Shape.schema MultiRegionConsistency)), + ({ name := "OnDemandThroughput" }, (Shape.schema OnDemandThroughput)), + ({ name := "ProvisionedThroughput" }, (Shape.schema ProvisionedThroughput)), + ({ name := "ReplicaUpdates" }, (.list (Shape.schema ReplicationGroupUpdate) "member")), + ({ name := "SSESpecification" }, (Shape.schema SSESpecification)), + ({ name := "StreamSpecification" }, (Shape.schema StreamSpecification)), + ({ name := "TableClass" }, (Shape.schema TableClass)), + ({ name := "TableName", required := true }, .string), + ({ name := "VectorIndexUpdates" }, (.list (Shape.schema VectorIndexUpdate) "member")), + ({ name := "WarmThroughput" }, (Shape.schema WarmThroughput))] + toValue x := record [putOpt "AttributeDefinitions" x.attributeDefinitions, putOpt "BillingMode" x.billingMode, putOpt "DeletionProtectionEnabled" x.deletionProtectionEnabled, putOpt "DisassociationProtectionEnabled" x.disassociationProtectionEnabled, putOpt "GlobalSecondaryIndexUpdates" x.globalSecondaryIndexUpdates, putOpt "GlobalTableSettingsReplicationMode" x.globalTableSettingsReplicationMode, putOpt "GlobalTableWitnessUpdates" x.globalTableWitnessUpdates, putOpt "MultiRegionConsistency" x.multiRegionConsistency, putOpt "OnDemandThroughput" x.onDemandThroughput, putOpt "ProvisionedThroughput" x.provisionedThroughput, putOpt "ReplicaUpdates" x.replicaUpdates, putOpt "SSESpecification" x.sseSpecification, putOpt "StreamSpecification" x.streamSpecification, putOpt "TableClass" x.tableClass, put "TableName" x.tableName, putOpt "VectorIndexUpdates" x.vectorIndexUpdates, putOpt "WarmThroughput" x.warmThroughput] + ofValue v := do + let attributeDefinitions ← v.opt "AttributeDefinitions" + let billingMode ← v.opt "BillingMode" + let deletionProtectionEnabled ← v.opt "DeletionProtectionEnabled" + let disassociationProtectionEnabled ← v.opt "DisassociationProtectionEnabled" + let globalSecondaryIndexUpdates ← v.opt "GlobalSecondaryIndexUpdates" + let globalTableSettingsReplicationMode ← v.opt "GlobalTableSettingsReplicationMode" + let globalTableWitnessUpdates ← v.opt "GlobalTableWitnessUpdates" + let multiRegionConsistency ← v.opt "MultiRegionConsistency" + let onDemandThroughput ← v.opt "OnDemandThroughput" + let provisionedThroughput ← v.opt "ProvisionedThroughput" + let replicaUpdates ← v.opt "ReplicaUpdates" + let sseSpecification ← v.opt "SSESpecification" + let streamSpecification ← v.opt "StreamSpecification" + let tableClass ← v.opt "TableClass" + let tableName ← v.req "TableName" + let vectorIndexUpdates ← v.opt "VectorIndexUpdates" + let warmThroughput ← v.opt "WarmThroughput" + return { attributeDefinitions, billingMode, deletionProtectionEnabled, disassociationProtectionEnabled, globalSecondaryIndexUpdates, globalTableSettingsReplicationMode, globalTableWitnessUpdates, multiRegionConsistency, onDemandThroughput, provisionedThroughput, replicaUpdates, sseSpecification, streamSpecification, tableClass, tableName, vectorIndexUpdates, warmThroughput } + +structure CreateGlobalTableOutput where + /-- Contains the details of the global table. -/ + globalTableDescription : Option GlobalTableDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateGlobalTableOutput where + schema := .struct "CreateGlobalTableOutput" [({ name := "GlobalTableDescription" }, (Shape.schema GlobalTableDescription))] + toValue x := record [putOpt "GlobalTableDescription" x.globalTableDescription] + ofValue v := do + let globalTableDescription ← v.opt "GlobalTableDescription" + return { globalTableDescription } + +/-- Represents the output of a CreateTable operation. -/ +structure CreateTableOutput where + /-- Represents the properties of the table. -/ + tableDescription : Option TableDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTableOutput where + schema := .struct "CreateTableOutput" [({ name := "TableDescription" }, (Shape.schema TableDescription))] + toValue x := record [putOpt "TableDescription" x.tableDescription] + ofValue v := do + let tableDescription ← v.opt "TableDescription" + return { tableDescription } + +structure DeleteBackupOutput where + /-- Contains the description of the backup created for the table. -/ + backupDescription : Option BackupDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteBackupOutput where + schema := .struct "DeleteBackupOutput" [({ name := "BackupDescription" }, (Shape.schema BackupDescription))] + toValue x := record [putOpt "BackupDescription" x.backupDescription] + ofValue v := do + let backupDescription ← v.opt "BackupDescription" + return { backupDescription } + +/-- Represents the output of a DeleteTable operation. -/ +structure DeleteTableOutput where + /-- Represents the properties of a table. -/ + tableDescription : Option TableDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTableOutput where + schema := .struct "DeleteTableOutput" [({ name := "TableDescription" }, (Shape.schema TableDescription))] + toValue x := record [putOpt "TableDescription" x.tableDescription] + ofValue v := do + let tableDescription ← v.opt "TableDescription" + return { tableDescription } + +structure DescribeBackupOutput where + /-- Contains the description of the backup created for the table. -/ + backupDescription : Option BackupDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeBackupOutput where + schema := .struct "DescribeBackupOutput" [({ name := "BackupDescription" }, (Shape.schema BackupDescription))] + toValue x := record [putOpt "BackupDescription" x.backupDescription] + ofValue v := do + let backupDescription ← v.opt "BackupDescription" + return { backupDescription } + +structure DescribeGlobalTableOutput where + /-- Contains the details of the global table. -/ + globalTableDescription : Option GlobalTableDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeGlobalTableOutput where + schema := .struct "DescribeGlobalTableOutput" [({ name := "GlobalTableDescription" }, (Shape.schema GlobalTableDescription))] + toValue x := record [putOpt "GlobalTableDescription" x.globalTableDescription] + ofValue v := do + let globalTableDescription ← v.opt "GlobalTableDescription" + return { globalTableDescription } + +structure DescribeGlobalTableSettingsOutput where + /-- The name of the global table. -/ + globalTableName : Option String := none + /-- The Region-specific settings for the global table. -/ + replicaSettings : Option (List ReplicaSettingsDescription) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeGlobalTableSettingsOutput where + schema := .struct "DescribeGlobalTableSettingsOutput" [({ name := "GlobalTableName" }, .string), + ({ name := "ReplicaSettings" }, (.list (Shape.schema ReplicaSettingsDescription) "member"))] + toValue x := record [putOpt "GlobalTableName" x.globalTableName, putOpt "ReplicaSettings" x.replicaSettings] + ofValue v := do + let globalTableName ← v.opt "GlobalTableName" + let replicaSettings ← v.opt "ReplicaSettings" + return { globalTableName, replicaSettings } + +structure DescribeImportOutput where + /-- Represents the properties of the table created for the import, and parameters of the import. -/ + importTableDescription : ImportTableDescription +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeImportOutput where + schema := .struct "DescribeImportOutput" [({ name := "ImportTableDescription", required := true }, (Shape.schema ImportTableDescription))] + toValue x := record [put "ImportTableDescription" x.importTableDescription] + ofValue v := do + let importTableDescription ← v.req "ImportTableDescription" + return { importTableDescription } + +/-- Represents the output of a DescribeTable operation. -/ +structure DescribeTableOutput where + /-- The properties of the table. -/ + table : Option TableDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTableOutput where + schema := .struct "DescribeTableOutput" [({ name := "Table" }, (Shape.schema TableDescription))] + toValue x := record [putOpt "Table" x.table] + ofValue v := do + let table ← v.opt "Table" + return { table } + +structure ImportTableOutput where + /-- Represents the properties of the table created for the import, and parameters of the import. -/ + importTableDescription : ImportTableDescription +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportTableOutput where + schema := .struct "ImportTableOutput" [({ name := "ImportTableDescription", required := true }, (Shape.schema ImportTableDescription))] + toValue x := record [put "ImportTableDescription" x.importTableDescription] + ofValue v := do + let importTableDescription ← v.req "ImportTableDescription" + return { importTableDescription } + +structure RestoreTableFromBackupOutput where + /-- The description of the table created from an existing backup. -/ + tableDescription : Option TableDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreTableFromBackupOutput where + schema := .struct "RestoreTableFromBackupOutput" [({ name := "TableDescription" }, (Shape.schema TableDescription))] + toValue x := record [putOpt "TableDescription" x.tableDescription] + ofValue v := do + let tableDescription ← v.opt "TableDescription" + return { tableDescription } + +structure RestoreTableToPointInTimeOutput where + /-- Represents the properties of a table. -/ + tableDescription : Option TableDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreTableToPointInTimeOutput where + schema := .struct "RestoreTableToPointInTimeOutput" [({ name := "TableDescription" }, (Shape.schema TableDescription))] + toValue x := record [putOpt "TableDescription" x.tableDescription] + ofValue v := do + let tableDescription ← v.opt "TableDescription" + return { tableDescription } + +/-- Represents the auto scaling configuration for a global table. -/ +structure TableAutoScalingDescription where + /-- Represents replicas of the global table. -/ + replicas : Option (List ReplicaAutoScalingDescription) := none + /-- The name of the table. -/ + tableName : Option String := none + /-- The current state of the table: CREATING - The table is being created. -/ + tableStatus : Option TableStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TableAutoScalingDescription where + schema := .struct "TableAutoScalingDescription" [({ name := "Replicas" }, (.list (Shape.schema ReplicaAutoScalingDescription) "member")), + ({ name := "TableName" }, .string), + ({ name := "TableStatus" }, (Shape.schema TableStatus))] + toValue x := record [putOpt "Replicas" x.replicas, putOpt "TableName" x.tableName, putOpt "TableStatus" x.tableStatus] + ofValue v := do + let replicas ← v.opt "Replicas" + let tableName ← v.opt "TableName" + let tableStatus ← v.opt "TableStatus" + return { replicas, tableName, tableStatus } + +structure UpdateGlobalTableOutput where + /-- Contains the details of the global table. -/ + globalTableDescription : Option GlobalTableDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateGlobalTableOutput where + schema := .struct "UpdateGlobalTableOutput" [({ name := "GlobalTableDescription" }, (Shape.schema GlobalTableDescription))] + toValue x := record [putOpt "GlobalTableDescription" x.globalTableDescription] + ofValue v := do + let globalTableDescription ← v.opt "GlobalTableDescription" + return { globalTableDescription } + +structure UpdateGlobalTableSettingsInput where + /-- The billing mode of the global table. -/ + globalTableBillingMode : Option BillingMode := none + /-- Represents the settings of a global secondary index for a global table that will be modified. -/ + globalTableGlobalSecondaryIndexSettingsUpdate : Option (List GlobalTableGlobalSecondaryIndexSettingsUpdate) := none + /-- The name of the global table. -/ + globalTableName : String + /-- Auto scaling settings for managing provisioned write capacity for the global table. -/ + globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate : Option AutoScalingSettingsUpdate := none + /-- The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. -/ + globalTableProvisionedWriteCapacityUnits : Option Int := none + /-- Represents the settings for a global table in a Region that will be modified. -/ + replicaSettingsUpdate : Option (List ReplicaSettingsUpdate) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateGlobalTableSettingsInput where + schema := .struct "UpdateGlobalTableSettingsInput" [({ name := "GlobalTableBillingMode" }, (Shape.schema BillingMode)), + ({ name := "GlobalTableGlobalSecondaryIndexSettingsUpdate" }, (.list (Shape.schema GlobalTableGlobalSecondaryIndexSettingsUpdate) "member")), + ({ name := "GlobalTableName", required := true }, .string), + ({ name := "GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate" }, (Shape.schema AutoScalingSettingsUpdate)), + ({ name := "GlobalTableProvisionedWriteCapacityUnits" }, .int), + ({ name := "ReplicaSettingsUpdate" }, (.list (Shape.schema ReplicaSettingsUpdate) "member"))] + toValue x := record [putOpt "GlobalTableBillingMode" x.globalTableBillingMode, putOpt "GlobalTableGlobalSecondaryIndexSettingsUpdate" x.globalTableGlobalSecondaryIndexSettingsUpdate, put "GlobalTableName" x.globalTableName, putOpt "GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate" x.globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate, putOpt "GlobalTableProvisionedWriteCapacityUnits" x.globalTableProvisionedWriteCapacityUnits, putOpt "ReplicaSettingsUpdate" x.replicaSettingsUpdate] + ofValue v := do + let globalTableBillingMode ← v.opt "GlobalTableBillingMode" + let globalTableGlobalSecondaryIndexSettingsUpdate ← v.opt "GlobalTableGlobalSecondaryIndexSettingsUpdate" + let globalTableName ← v.req "GlobalTableName" + let globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate ← v.opt "GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate" + let globalTableProvisionedWriteCapacityUnits ← v.opt "GlobalTableProvisionedWriteCapacityUnits" + let replicaSettingsUpdate ← v.opt "ReplicaSettingsUpdate" + return { globalTableBillingMode, globalTableGlobalSecondaryIndexSettingsUpdate, globalTableName, globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate, globalTableProvisionedWriteCapacityUnits, replicaSettingsUpdate } + +structure UpdateGlobalTableSettingsOutput where + /-- The name of the global table. -/ + globalTableName : Option String := none + /-- The Region-specific settings for the global table. -/ + replicaSettings : Option (List ReplicaSettingsDescription) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateGlobalTableSettingsOutput where + schema := .struct "UpdateGlobalTableSettingsOutput" [({ name := "GlobalTableName" }, .string), + ({ name := "ReplicaSettings" }, (.list (Shape.schema ReplicaSettingsDescription) "member"))] + toValue x := record [putOpt "GlobalTableName" x.globalTableName, putOpt "ReplicaSettings" x.replicaSettings] + ofValue v := do + let globalTableName ← v.opt "GlobalTableName" + let replicaSettings ← v.opt "ReplicaSettings" + return { globalTableName, replicaSettings } + +/-- Represents the output of an UpdateTable operation. -/ +structure UpdateTableOutput where + /-- Represents the properties of the table. -/ + tableDescription : Option TableDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateTableOutput where + schema := .struct "UpdateTableOutput" [({ name := "TableDescription" }, (Shape.schema TableDescription))] + toValue x := record [putOpt "TableDescription" x.tableDescription] + ofValue v := do + let tableDescription ← v.opt "TableDescription" + return { tableDescription } + +structure UpdateTableReplicaAutoScalingInput where + /-- Represents the auto scaling settings of the global secondary indexes of the replica to be updated. -/ + globalSecondaryIndexUpdates : Option (List GlobalSecondaryIndexAutoScalingUpdate) := none + provisionedWriteCapacityAutoScalingUpdate : Option AutoScalingSettingsUpdate := none + /-- Represents the auto scaling settings of replicas of the table that will be modified. -/ + replicaUpdates : Option (List ReplicaAutoScalingUpdate) := none + /-- The name of the global table to be updated. -/ + tableName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateTableReplicaAutoScalingInput where + schema := .struct "UpdateTableReplicaAutoScalingInput" [({ name := "GlobalSecondaryIndexUpdates" }, (.list (Shape.schema GlobalSecondaryIndexAutoScalingUpdate) "member")), + ({ name := "ProvisionedWriteCapacityAutoScalingUpdate" }, (Shape.schema AutoScalingSettingsUpdate)), + ({ name := "ReplicaUpdates" }, (.list (Shape.schema ReplicaAutoScalingUpdate) "member")), + ({ name := "TableName", required := true }, .string)] + toValue x := record [putOpt "GlobalSecondaryIndexUpdates" x.globalSecondaryIndexUpdates, putOpt "ProvisionedWriteCapacityAutoScalingUpdate" x.provisionedWriteCapacityAutoScalingUpdate, putOpt "ReplicaUpdates" x.replicaUpdates, put "TableName" x.tableName] + ofValue v := do + let globalSecondaryIndexUpdates ← v.opt "GlobalSecondaryIndexUpdates" + let provisionedWriteCapacityAutoScalingUpdate ← v.opt "ProvisionedWriteCapacityAutoScalingUpdate" + let replicaUpdates ← v.opt "ReplicaUpdates" + let tableName ← v.req "TableName" + return { globalSecondaryIndexUpdates, provisionedWriteCapacityAutoScalingUpdate, replicaUpdates, tableName } + +structure DescribeTableReplicaAutoScalingOutput where + /-- Represents the auto scaling properties of the table. -/ + tableAutoScalingDescription : Option TableAutoScalingDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTableReplicaAutoScalingOutput where + schema := .struct "DescribeTableReplicaAutoScalingOutput" [({ name := "TableAutoScalingDescription" }, (Shape.schema TableAutoScalingDescription))] + toValue x := record [putOpt "TableAutoScalingDescription" x.tableAutoScalingDescription] + ofValue v := do + let tableAutoScalingDescription ← v.opt "TableAutoScalingDescription" + return { tableAutoScalingDescription } + +structure UpdateTableReplicaAutoScalingOutput where + /-- Returns information about the auto scaling settings of a table with replicas. -/ + tableAutoScalingDescription : Option TableAutoScalingDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateTableReplicaAutoScalingOutput where + schema := .struct "UpdateTableReplicaAutoScalingOutput" [({ name := "TableAutoScalingDescription" }, (Shape.schema TableAutoScalingDescription))] + toValue x := record [putOpt "TableAutoScalingDescription" x.tableAutoScalingDescription] + ofValue v := do + let tableAutoScalingDescription ← v.opt "TableAutoScalingDescription" + return { tableAutoScalingDescription } + +/-- What `CancelBulkOperation` can fail with. -/ +inductive CancelBulkOperationError where + | invalidEndpointException (error : InvalidEndpointException) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def CancelBulkOperationError.ofWire (name : String) (value : Value) : Option CancelBulkOperationError := + match name with + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `CreateBackup` can fail with. -/ +inductive CreateBackupError where + /-- There is another ongoing conflicting backup control plane operation on the table. -/ + | backupInUseException (error : BackupInUseException) + /-- Backups have not yet been enabled for this table. -/ + | continuousBackupsUnavailableException (error : ContinuousBackupsUnavailableException) + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) + /-- A target table with the specified name is either being created or deleted. -/ + | tableInUseException (error : TableInUseException) + /-- A source table with the name TableName does not currently exist within the subscriber's account or the subscriber is operating in the wrong Amazon Web Services Region. -/ + | tableNotFoundException (error : TableNotFoundException) +deriving DecidableEq, Repr + +def CreateBackupError.ofWire (name : String) (value : Value) : Option CreateBackupError := + match name with + | "BackupInUseException" => (Shape.ofValue value).toOption.map .backupInUseException + | "ContinuousBackupsUnavailableException" => (Shape.ofValue value).toOption.map .continuousBackupsUnavailableException + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | "TableInUseException" => (Shape.ofValue value).toOption.map .tableInUseException + | "TableNotFoundException" => (Shape.ofValue value).toOption.map .tableNotFoundException + | _ => none + +/-- What `CreateGlobalTable` can fail with. -/ +inductive CreateGlobalTableError where + /-- The specified global table already exists. -/ + | globalTableAlreadyExistsException (error : GlobalTableAlreadyExistsException) + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) + /-- A source table with the name TableName does not currently exist within the subscriber's account or the subscriber is operating in the wrong Amazon Web Services Region. -/ + | tableNotFoundException (error : TableNotFoundException) +deriving DecidableEq, Repr + +def CreateGlobalTableError.ofWire (name : String) (value : Value) : Option CreateGlobalTableError := + match name with + | "GlobalTableAlreadyExistsException" => (Shape.ofValue value).toOption.map .globalTableAlreadyExistsException + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | "TableNotFoundException" => (Shape.ofValue value).toOption.map .tableNotFoundException + | _ => none + +/-- What `CreateTable` can fail with. -/ +inductive CreateTableError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) + /-- The operation conflicts with the resource's availability. -/ + | resourceInUseException (error : ResourceInUseException) +deriving DecidableEq, Repr + +def CreateTableError.ofWire (name : String) (value : Value) : Option CreateTableError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | "ResourceInUseException" => (Shape.ofValue value).toOption.map .resourceInUseException + | _ => none + +/-- What `DeleteBackup` can fail with. -/ +inductive DeleteBackupError where + /-- There is another ongoing conflicting backup control plane operation on the table. -/ + | backupInUseException (error : BackupInUseException) + /-- Backup not found for the given BackupARN. -/ + | backupNotFoundException (error : BackupNotFoundException) + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) +deriving DecidableEq, Repr + +def DeleteBackupError.ofWire (name : String) (value : Value) : Option DeleteBackupError := + match name with + | "BackupInUseException" => (Shape.ofValue value).toOption.map .backupInUseException + | "BackupNotFoundException" => (Shape.ofValue value).toOption.map .backupNotFoundException + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | _ => none + +/-- What `DeleteResourcePolicy` can fail with. -/ +inductive DeleteResourcePolicyError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) + /-- The operation tried to access a nonexistent resource-based policy. -/ + | policyNotFoundException (error : PolicyNotFoundException) + /-- The operation conflicts with the resource's availability. -/ + | resourceInUseException (error : ResourceInUseException) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def DeleteResourcePolicyError.ofWire (name : String) (value : Value) : Option DeleteResourcePolicyError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | "PolicyNotFoundException" => (Shape.ofValue value).toOption.map .policyNotFoundException + | "ResourceInUseException" => (Shape.ofValue value).toOption.map .resourceInUseException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `DeleteTable` can fail with. -/ +inductive DeleteTableError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) + /-- The operation conflicts with the resource's availability. -/ + | resourceInUseException (error : ResourceInUseException) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def DeleteTableError.ofWire (name : String) (value : Value) : Option DeleteTableError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | "ResourceInUseException" => (Shape.ofValue value).toOption.map .resourceInUseException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `DescribeBackup` can fail with. -/ +inductive DescribeBackupError where + /-- Backup not found for the given BackupARN. -/ + | backupNotFoundException (error : BackupNotFoundException) + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) +deriving DecidableEq, Repr + +def DescribeBackupError.ofWire (name : String) (value : Value) : Option DescribeBackupError := + match name with + | "BackupNotFoundException" => (Shape.ofValue value).toOption.map .backupNotFoundException + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | _ => none + +/-- What `DescribeBulkOperation` can fail with. -/ +inductive DescribeBulkOperationError where + | invalidEndpointException (error : InvalidEndpointException) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def DescribeBulkOperationError.ofWire (name : String) (value : Value) : Option DescribeBulkOperationError := + match name with + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `DescribeContinuousBackups` can fail with. -/ +inductive DescribeContinuousBackupsError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- A source table with the name TableName does not currently exist within the subscriber's account or the subscriber is operating in the wrong Amazon Web Services Region. -/ + | tableNotFoundException (error : TableNotFoundException) +deriving DecidableEq, Repr + +def DescribeContinuousBackupsError.ofWire (name : String) (value : Value) : Option DescribeContinuousBackupsError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "TableNotFoundException" => (Shape.ofValue value).toOption.map .tableNotFoundException + | _ => none + +/-- What `DescribeContributorInsights` can fail with. -/ +inductive DescribeContributorInsightsError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def DescribeContributorInsightsError.ofWire (name : String) (value : Value) : Option DescribeContributorInsightsError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `DescribeGlobalTable` can fail with. -/ +inductive DescribeGlobalTableError where + /-- The specified global table does not exist. -/ + | globalTableNotFoundException (error : GlobalTableNotFoundException) + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) +deriving DecidableEq, Repr + +def DescribeGlobalTableError.ofWire (name : String) (value : Value) : Option DescribeGlobalTableError := + match name with + | "GlobalTableNotFoundException" => (Shape.ofValue value).toOption.map .globalTableNotFoundException + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | _ => none + +/-- What `DescribeGlobalTableSettings` can fail with. -/ +inductive DescribeGlobalTableSettingsError where + /-- The specified global table does not exist. -/ + | globalTableNotFoundException (error : GlobalTableNotFoundException) + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) +deriving DecidableEq, Repr + +def DescribeGlobalTableSettingsError.ofWire (name : String) (value : Value) : Option DescribeGlobalTableSettingsError := + match name with + | "GlobalTableNotFoundException" => (Shape.ofValue value).toOption.map .globalTableNotFoundException + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | _ => none + +/-- What `DescribeImport` can fail with. -/ +inductive DescribeImportError where + /-- The specified import was not found. -/ + | importNotFoundException (error : ImportNotFoundException) +deriving DecidableEq, Repr + +def DescribeImportError.ofWire (name : String) (value : Value) : Option DescribeImportError := + match name with + | "ImportNotFoundException" => (Shape.ofValue value).toOption.map .importNotFoundException + | _ => none + +/-- What `DescribeKinesisStreamingDestination` can fail with. -/ +inductive DescribeKinesisStreamingDestinationError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def DescribeKinesisStreamingDestinationError.ofWire (name : String) (value : Value) : Option DescribeKinesisStreamingDestinationError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `DescribeLimits` can fail with. -/ +inductive DescribeLimitsError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) +deriving DecidableEq, Repr + +def DescribeLimitsError.ofWire (name : String) (value : Value) : Option DescribeLimitsError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | _ => none + +/-- What `DescribeTable` can fail with. -/ +inductive DescribeTableError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def DescribeTableError.ofWire (name : String) (value : Value) : Option DescribeTableError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `DescribeTableReplicaAutoScaling` can fail with. -/ +inductive DescribeTableReplicaAutoScalingError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def DescribeTableReplicaAutoScalingError.ofWire (name : String) (value : Value) : Option DescribeTableReplicaAutoScalingError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `DescribeTimeToLive` can fail with. -/ +inductive DescribeTimeToLiveError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def DescribeTimeToLiveError.ofWire (name : String) (value : Value) : Option DescribeTimeToLiveError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `DisableKinesisStreamingDestination` can fail with. -/ +inductive DisableKinesisStreamingDestinationError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) + /-- The operation conflicts with the resource's availability. -/ + | resourceInUseException (error : ResourceInUseException) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def DisableKinesisStreamingDestinationError.ofWire (name : String) (value : Value) : Option DisableKinesisStreamingDestinationError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | "ResourceInUseException" => (Shape.ofValue value).toOption.map .resourceInUseException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `EnableKinesisStreamingDestination` can fail with. -/ +inductive EnableKinesisStreamingDestinationError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) + /-- The operation conflicts with the resource's availability. -/ + | resourceInUseException (error : ResourceInUseException) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def EnableKinesisStreamingDestinationError.ofWire (name : String) (value : Value) : Option EnableKinesisStreamingDestinationError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | "ResourceInUseException" => (Shape.ofValue value).toOption.map .resourceInUseException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `GetResourcePolicy` can fail with. -/ +inductive GetResourcePolicyError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- The operation tried to access a nonexistent resource-based policy. -/ + | policyNotFoundException (error : PolicyNotFoundException) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def GetResourcePolicyError.ofWire (name : String) (value : Value) : Option GetResourcePolicyError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "PolicyNotFoundException" => (Shape.ofValue value).toOption.map .policyNotFoundException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `ImportTable` can fail with. -/ +inductive ImportTableError where + /-- There was a conflict when importing from the specified S3 source. -/ + | importConflictException (error : ImportConflictException) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) + /-- The operation conflicts with the resource's availability. -/ + | resourceInUseException (error : ResourceInUseException) +deriving DecidableEq, Repr + +def ImportTableError.ofWire (name : String) (value : Value) : Option ImportTableError := + match name with + | "ImportConflictException" => (Shape.ofValue value).toOption.map .importConflictException + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | "ResourceInUseException" => (Shape.ofValue value).toOption.map .resourceInUseException + | _ => none + +/-- What `ListBackups` can fail with. -/ +inductive ListBackupsError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) +deriving DecidableEq, Repr + +def ListBackupsError.ofWire (name : String) (value : Value) : Option ListBackupsError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | _ => none + +/-- What `ListBulkOperations` can fail with. -/ +inductive ListBulkOperationsError where + | invalidEndpointException (error : InvalidEndpointException) +deriving DecidableEq, Repr + +def ListBulkOperationsError.ofWire (name : String) (value : Value) : Option ListBulkOperationsError := + match name with + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | _ => none + +/-- What `ListContributorInsights` can fail with. -/ +inductive ListContributorInsightsError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def ListContributorInsightsError.ofWire (name : String) (value : Value) : Option ListContributorInsightsError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `ListExports` can fail with. -/ +inductive ListExportsError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) +deriving DecidableEq, Repr + +def ListExportsError.ofWire (name : String) (value : Value) : Option ListExportsError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | _ => none + +/-- What `ListGlobalTables` can fail with. -/ +inductive ListGlobalTablesError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) +deriving DecidableEq, Repr + +def ListGlobalTablesError.ofWire (name : String) (value : Value) : Option ListGlobalTablesError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | _ => none + +/-- What `ListImports` can fail with. -/ +inductive ListImportsError where + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) +deriving DecidableEq, Repr + +def ListImportsError.ofWire (name : String) (value : Value) : Option ListImportsError := + match name with + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | _ => none + +/-- What `ListTables` can fail with. -/ +inductive ListTablesError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) +deriving DecidableEq, Repr + +def ListTablesError.ofWire (name : String) (value : Value) : Option ListTablesError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | _ => none + +/-- What `ListTagsOfResource` can fail with. -/ +inductive ListTagsOfResourceError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def ListTagsOfResourceError.ofWire (name : String) (value : Value) : Option ListTagsOfResourceError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `PutResourcePolicy` can fail with. -/ +inductive PutResourcePolicyError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) + /-- The operation tried to access a nonexistent resource-based policy. -/ + | policyNotFoundException (error : PolicyNotFoundException) + /-- The operation conflicts with the resource's availability. -/ + | resourceInUseException (error : ResourceInUseException) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def PutResourcePolicyError.ofWire (name : String) (value : Value) : Option PutResourcePolicyError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | "PolicyNotFoundException" => (Shape.ofValue value).toOption.map .policyNotFoundException + | "ResourceInUseException" => (Shape.ofValue value).toOption.map .resourceInUseException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `RestoreTableFromBackup` can fail with. -/ +inductive RestoreTableFromBackupError where + /-- There is another ongoing conflicting backup control plane operation on the table. -/ + | backupInUseException (error : BackupInUseException) + /-- Backup not found for the given BackupARN. -/ + | backupNotFoundException (error : BackupNotFoundException) + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) + /-- A target table with the specified name already exists. -/ + | tableAlreadyExistsException (error : TableAlreadyExistsException) + /-- A target table with the specified name is either being created or deleted. -/ + | tableInUseException (error : TableInUseException) +deriving DecidableEq, Repr + +def RestoreTableFromBackupError.ofWire (name : String) (value : Value) : Option RestoreTableFromBackupError := + match name with + | "BackupInUseException" => (Shape.ofValue value).toOption.map .backupInUseException + | "BackupNotFoundException" => (Shape.ofValue value).toOption.map .backupNotFoundException + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | "TableAlreadyExistsException" => (Shape.ofValue value).toOption.map .tableAlreadyExistsException + | "TableInUseException" => (Shape.ofValue value).toOption.map .tableInUseException + | _ => none + +/-- What `RestoreTableToPointInTime` can fail with. -/ +inductive RestoreTableToPointInTimeError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- An invalid restore time was specified. -/ + | invalidRestoreTimeException (error : InvalidRestoreTimeException) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) + /-- Point in time recovery has not yet been enabled for this source table. -/ + | pointInTimeRecoveryUnavailableException (error : PointInTimeRecoveryUnavailableException) + /-- A target table with the specified name already exists. -/ + | tableAlreadyExistsException (error : TableAlreadyExistsException) + /-- A target table with the specified name is either being created or deleted. -/ + | tableInUseException (error : TableInUseException) + /-- A source table with the name TableName does not currently exist within the subscriber's account or the subscriber is operating in the wrong Amazon Web Services Region. -/ + | tableNotFoundException (error : TableNotFoundException) +deriving DecidableEq, Repr + +def RestoreTableToPointInTimeError.ofWire (name : String) (value : Value) : Option RestoreTableToPointInTimeError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "InvalidRestoreTimeException" => (Shape.ofValue value).toOption.map .invalidRestoreTimeException + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | "PointInTimeRecoveryUnavailableException" => (Shape.ofValue value).toOption.map .pointInTimeRecoveryUnavailableException + | "TableAlreadyExistsException" => (Shape.ofValue value).toOption.map .tableAlreadyExistsException + | "TableInUseException" => (Shape.ofValue value).toOption.map .tableInUseException + | "TableNotFoundException" => (Shape.ofValue value).toOption.map .tableNotFoundException + | _ => none + +/-- What `StartBulkPutItems` can fail with. -/ +inductive StartBulkPutItemsError where + /-- DynamoDB rejected the request because you retried a request with a different payload but with an idempotent token that was already used. -/ + | idempotentParameterMismatchException (error : IdempotentParameterMismatchException) + | invalidEndpointException (error : InvalidEndpointException) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) + /-- The operation conflicts with the resource's availability. -/ + | resourceInUseException (error : ResourceInUseException) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def StartBulkPutItemsError.ofWire (name : String) (value : Value) : Option StartBulkPutItemsError := + match name with + | "IdempotentParameterMismatchException" => (Shape.ofValue value).toOption.map .idempotentParameterMismatchException + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | "ResourceInUseException" => (Shape.ofValue value).toOption.map .resourceInUseException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `TagResource` can fail with. -/ +inductive TagResourceError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) + /-- The operation conflicts with the resource's availability. -/ + | resourceInUseException (error : ResourceInUseException) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def TagResourceError.ofWire (name : String) (value : Value) : Option TagResourceError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | "ResourceInUseException" => (Shape.ofValue value).toOption.map .resourceInUseException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `UntagResource` can fail with. -/ +inductive UntagResourceError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) + /-- The operation conflicts with the resource's availability. -/ + | resourceInUseException (error : ResourceInUseException) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def UntagResourceError.ofWire (name : String) (value : Value) : Option UntagResourceError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | "ResourceInUseException" => (Shape.ofValue value).toOption.map .resourceInUseException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `UpdateContinuousBackups` can fail with. -/ +inductive UpdateContinuousBackupsError where + /-- Backups have not yet been enabled for this table. -/ + | continuousBackupsUnavailableException (error : ContinuousBackupsUnavailableException) + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- A source table with the name TableName does not currently exist within the subscriber's account or the subscriber is operating in the wrong Amazon Web Services Region. -/ + | tableNotFoundException (error : TableNotFoundException) +deriving DecidableEq, Repr + +def UpdateContinuousBackupsError.ofWire (name : String) (value : Value) : Option UpdateContinuousBackupsError := + match name with + | "ContinuousBackupsUnavailableException" => (Shape.ofValue value).toOption.map .continuousBackupsUnavailableException + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "TableNotFoundException" => (Shape.ofValue value).toOption.map .tableNotFoundException + | _ => none + +/-- What `UpdateContributorInsights` can fail with. -/ +inductive UpdateContributorInsightsError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def UpdateContributorInsightsError.ofWire (name : String) (value : Value) : Option UpdateContributorInsightsError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `UpdateGlobalTable` can fail with. -/ +inductive UpdateGlobalTableError where + /-- The specified global table does not exist. -/ + | globalTableNotFoundException (error : GlobalTableNotFoundException) + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- The specified replica is already part of the global table. -/ + | replicaAlreadyExistsException (error : ReplicaAlreadyExistsException) + /-- The specified replica is no longer part of the global table. -/ + | replicaNotFoundException (error : ReplicaNotFoundException) + /-- A source table with the name TableName does not currently exist within the subscriber's account or the subscriber is operating in the wrong Amazon Web Services Region. -/ + | tableNotFoundException (error : TableNotFoundException) +deriving DecidableEq, Repr + +def UpdateGlobalTableError.ofWire (name : String) (value : Value) : Option UpdateGlobalTableError := + match name with + | "GlobalTableNotFoundException" => (Shape.ofValue value).toOption.map .globalTableNotFoundException + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "ReplicaAlreadyExistsException" => (Shape.ofValue value).toOption.map .replicaAlreadyExistsException + | "ReplicaNotFoundException" => (Shape.ofValue value).toOption.map .replicaNotFoundException + | "TableNotFoundException" => (Shape.ofValue value).toOption.map .tableNotFoundException + | _ => none + +/-- What `UpdateGlobalTableSettings` can fail with. -/ +inductive UpdateGlobalTableSettingsError where + /-- The specified global table does not exist. -/ + | globalTableNotFoundException (error : GlobalTableNotFoundException) + /-- The operation tried to access a nonexistent index. -/ + | indexNotFoundException (error : IndexNotFoundException) + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) + /-- The specified replica is no longer part of the global table. -/ + | replicaNotFoundException (error : ReplicaNotFoundException) + /-- The operation conflicts with the resource's availability. -/ + | resourceInUseException (error : ResourceInUseException) +deriving DecidableEq, Repr + +def UpdateGlobalTableSettingsError.ofWire (name : String) (value : Value) : Option UpdateGlobalTableSettingsError := + match name with + | "GlobalTableNotFoundException" => (Shape.ofValue value).toOption.map .globalTableNotFoundException + | "IndexNotFoundException" => (Shape.ofValue value).toOption.map .indexNotFoundException + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | "ReplicaNotFoundException" => (Shape.ofValue value).toOption.map .replicaNotFoundException + | "ResourceInUseException" => (Shape.ofValue value).toOption.map .resourceInUseException + | _ => none + +/-- What `UpdateKinesisStreamingDestination` can fail with. -/ +inductive UpdateKinesisStreamingDestinationError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) + /-- The operation conflicts with the resource's availability. -/ + | resourceInUseException (error : ResourceInUseException) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def UpdateKinesisStreamingDestinationError.ofWire (name : String) (value : Value) : Option UpdateKinesisStreamingDestinationError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | "ResourceInUseException" => (Shape.ofValue value).toOption.map .resourceInUseException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `UpdateTable` can fail with. -/ +inductive UpdateTableError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) + /-- The operation conflicts with the resource's availability. -/ + | resourceInUseException (error : ResourceInUseException) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def UpdateTableError.ofWire (name : String) (value : Value) : Option UpdateTableError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | "ResourceInUseException" => (Shape.ofValue value).toOption.map .resourceInUseException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `UpdateTableReplicaAutoScaling` can fail with. -/ +inductive UpdateTableReplicaAutoScalingError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) + /-- The operation conflicts with the resource's availability. -/ + | resourceInUseException (error : ResourceInUseException) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def UpdateTableReplicaAutoScalingError.ofWire (name : String) (value : Value) : Option UpdateTableReplicaAutoScalingError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | "ResourceInUseException" => (Shape.ofValue value).toOption.map .resourceInUseException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- What `UpdateTimeToLive` can fail with. -/ +inductive UpdateTimeToLiveError where + /-- An error occurred on the server side. -/ + | internalServerError (error : InternalServerError) + | invalidEndpointException (error : InvalidEndpointException) + /-- There is no limit to the number of daily on-demand backups that can be taken. -/ + | limitExceededException (error : LimitExceededException) + /-- The operation conflicts with the resource's availability. -/ + | resourceInUseException (error : ResourceInUseException) + /-- The operation tried to access a nonexistent table or index. -/ + | resourceNotFoundException (error : ResourceNotFoundException) +deriving DecidableEq, Repr + +def UpdateTimeToLiveError.ofWire (name : String) (value : Value) : Option UpdateTimeToLiveError := + match name with + | "InternalServerError" => (Shape.ofValue value).toOption.map .internalServerError + | "InvalidEndpointException" => (Shape.ofValue value).toOption.map .invalidEndpointException + | "LimitExceededException" => (Shape.ofValue value).toOption.map .limitExceededException + | "ResourceInUseException" => (Shape.ofValue value).toOption.map .resourceInUseException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | _ => none + +/-- The operations of the service. -/ +inductive Op where + /-- Cancels an in-progress bulk operation asynchronously. -/ + | cancelBulkOperation + /-- Creates a backup for an existing table. -/ + | createBackup + /-- Creates a global table from an existing table. -/ + | createGlobalTable + /-- The CreateTable operation adds a new table to your account. -/ + | createTable + /-- Deletes an existing backup of a table. -/ + | deleteBackup + /-- Deletes the resource-based policy attached to the resource, which can be a table or stream. -/ + | deleteResourcePolicy + /-- The DeleteTable operation deletes a table and all of its items. -/ + | deleteTable + /-- Describes an existing backup of a table. -/ + | describeBackup + /-- Describes the specified bulk operation. -/ + | describeBulkOperation + /-- Checks the status of continuous backups and point in time recovery on the specified table. -/ + | describeContinuousBackups + /-- Returns information about contributor insights for a given table or global secondary index. -/ + | describeContributorInsights + /-- Returns the regional endpoint information. -/ + | describeEndpoints + /-- Returns information about the specified global table. -/ + | describeGlobalTable + /-- Describes Region-specific settings for a global table. -/ + | describeGlobalTableSettings + /-- Represents the properties of the import. -/ + | describeImport + /-- Returns information about the status of Kinesis streaming. -/ + | describeKinesisStreamingDestination + /-- Returns the current provisioned-capacity quotas for your Amazon Web Services account in a Region, both for the Region as a whole and for any one DynamoDB table that you create there. -/ + | describeLimits + /-- Returns information about the table, including the current status of the table, when it was created, the primary key schema, and any indexes on the table. -/ + | describeTable + /-- Describes auto scaling settings across replicas of the global table at once. -/ + | describeTableReplicaAutoScaling + /-- Gives a description of the Time to Live (TTL) status on the specified table. -/ + | describeTimeToLive + /-- Stops replication from the DynamoDB table to the Kinesis data stream. -/ + | disableKinesisStreamingDestination + /-- Starts table data replication to the specified Kinesis data stream at a timestamp chosen during the enable workflow. -/ + | enableKinesisStreamingDestination + /-- Returns the resource-based policy document attached to the resource, which can be a table or stream, in JSON format. -/ + | getResourcePolicy + /-- Imports table data from an S3 bucket. -/ + | importTable + /-- List DynamoDB backups that are associated with an Amazon Web Services account and weren't made with Amazon Web Services Backup. -/ + | listBackups + /-- Lists bulk operations that started within the past 90 days for the current Amazon Web Services account and Amazon Web Services Region, with the most recent operations first. -/ + | listBulkOperations + /-- Returns a list of ContributorInsightsSummary for a table and all its global secondary indexes. -/ + | listContributorInsights + /-- Lists completed exports within the past 90 days, in reverse alphanumeric order of ExportArn . -/ + | listExports + /-- Lists all global tables that have a replica in the specified Region. -/ + | listGlobalTables + /-- Lists completed imports within the past 90 days. -/ + | listImports + /-- Returns an array of table names associated with the current account and endpoint. -/ + | listTables + /-- List all tags on an Amazon DynamoDB resource. -/ + | listTagsOfResource + /-- Attaches a resource-based policy document to the resource, which can be a table or stream. -/ + | putResourcePolicy + /-- Creates a new table from an existing backup. -/ + | restoreTableFromBackup + /-- Restores the specified table to the specified point in time within EarliestRestorableDateTime and LatestRestorableDateTime . -/ + | restoreTableToPointInTime + /-- Starts an asynchronous bulk operation that reads items from Amazon S3 and writes them to an existing DynamoDB table, so you can efficiently load or migrate large datasets. -/ + | startBulkPutItems + /-- Associate a set of tags with an Amazon DynamoDB resource. -/ + | tagResource + /-- Removes the association of tags from an Amazon DynamoDB resource. -/ + | untagResource + /-- UpdateContinuousBackups enables or disables point in time recovery for the specified table. -/ + | updateContinuousBackups + /-- Updates the status for contributor insights for a specific table or index. -/ + | updateContributorInsights + /-- Adds or removes replicas in the specified global table. -/ + | updateGlobalTable + /-- Updates settings for a global table. -/ + | updateGlobalTableSettings + /-- The command to update the Kinesis stream destination. -/ + | updateKinesisStreamingDestination + /-- Modifies the provisioned throughput settings, global secondary indexes, DynamoDB Streams settings, or global table replica settings for a given table. -/ + | updateTable + /-- Updates auto scaling settings on your global tables at once. -/ + | updateTableReplicaAutoScaling + /-- The UpdateTimeToLive method enables or disables Time to Live (TTL) for the specified table. -/ + | updateTimeToLive +deriving DecidableEq, Repr + +abbrev Input : Op → Type + | .cancelBulkOperation => CancelBulkOperationInput + | .createBackup => CreateBackupInput + | .createGlobalTable => CreateGlobalTableInput + | .createTable => CreateTableInput + | .deleteBackup => DeleteBackupInput + | .deleteResourcePolicy => DeleteResourcePolicyInput + | .deleteTable => DeleteTableInput + | .describeBackup => DescribeBackupInput + | .describeBulkOperation => DescribeBulkOperationInput + | .describeContinuousBackups => DescribeContinuousBackupsInput + | .describeContributorInsights => DescribeContributorInsightsInput + | .describeEndpoints => DescribeEndpointsRequest + | .describeGlobalTable => DescribeGlobalTableInput + | .describeGlobalTableSettings => DescribeGlobalTableSettingsInput + | .describeImport => DescribeImportInput + | .describeKinesisStreamingDestination => DescribeKinesisStreamingDestinationInput + | .describeLimits => DescribeLimitsInput + | .describeTable => DescribeTableInput + | .describeTableReplicaAutoScaling => DescribeTableReplicaAutoScalingInput + | .describeTimeToLive => DescribeTimeToLiveInput + | .disableKinesisStreamingDestination => KinesisStreamingDestinationInput + | .enableKinesisStreamingDestination => KinesisStreamingDestinationInput + | .getResourcePolicy => GetResourcePolicyInput + | .importTable => ImportTableInput + | .listBackups => ListBackupsInput + | .listBulkOperations => ListBulkOperationsInput + | .listContributorInsights => ListContributorInsightsInput + | .listExports => ListExportsInput + | .listGlobalTables => ListGlobalTablesInput + | .listImports => ListImportsInput + | .listTables => ListTablesInput + | .listTagsOfResource => ListTagsOfResourceInput + | .putResourcePolicy => PutResourcePolicyInput + | .restoreTableFromBackup => RestoreTableFromBackupInput + | .restoreTableToPointInTime => RestoreTableToPointInTimeInput + | .startBulkPutItems => StartBulkPutItemsInput + | .tagResource => TagResourceInput + | .untagResource => UntagResourceInput + | .updateContinuousBackups => UpdateContinuousBackupsInput + | .updateContributorInsights => UpdateContributorInsightsInput + | .updateGlobalTable => UpdateGlobalTableInput + | .updateGlobalTableSettings => UpdateGlobalTableSettingsInput + | .updateKinesisStreamingDestination => UpdateKinesisStreamingDestinationInput + | .updateTable => UpdateTableInput + | .updateTableReplicaAutoScaling => UpdateTableReplicaAutoScalingInput + | .updateTimeToLive => UpdateTimeToLiveInput + +abbrev Output : Op → Type + | .cancelBulkOperation => CancelBulkOperationOutput + | .createBackup => CreateBackupOutput + | .createGlobalTable => CreateGlobalTableOutput + | .createTable => CreateTableOutput + | .deleteBackup => DeleteBackupOutput + | .deleteResourcePolicy => DeleteResourcePolicyOutput + | .deleteTable => DeleteTableOutput + | .describeBackup => DescribeBackupOutput + | .describeBulkOperation => DescribeBulkOperationOutput + | .describeContinuousBackups => DescribeContinuousBackupsOutput + | .describeContributorInsights => DescribeContributorInsightsOutput + | .describeEndpoints => DescribeEndpointsResponse + | .describeGlobalTable => DescribeGlobalTableOutput + | .describeGlobalTableSettings => DescribeGlobalTableSettingsOutput + | .describeImport => DescribeImportOutput + | .describeKinesisStreamingDestination => DescribeKinesisStreamingDestinationOutput + | .describeLimits => DescribeLimitsOutput + | .describeTable => DescribeTableOutput + | .describeTableReplicaAutoScaling => DescribeTableReplicaAutoScalingOutput + | .describeTimeToLive => DescribeTimeToLiveOutput + | .disableKinesisStreamingDestination => KinesisStreamingDestinationOutput + | .enableKinesisStreamingDestination => KinesisStreamingDestinationOutput + | .getResourcePolicy => GetResourcePolicyOutput + | .importTable => ImportTableOutput + | .listBackups => ListBackupsOutput + | .listBulkOperations => ListBulkOperationsOutput + | .listContributorInsights => ListContributorInsightsOutput + | .listExports => ListExportsOutput + | .listGlobalTables => ListGlobalTablesOutput + | .listImports => ListImportsOutput + | .listTables => ListTablesOutput + | .listTagsOfResource => ListTagsOfResourceOutput + | .putResourcePolicy => PutResourcePolicyOutput + | .restoreTableFromBackup => RestoreTableFromBackupOutput + | .restoreTableToPointInTime => RestoreTableToPointInTimeOutput + | .startBulkPutItems => StartBulkPutItemsOutput + | .tagResource => Unit + | .untagResource => Unit + | .updateContinuousBackups => UpdateContinuousBackupsOutput + | .updateContributorInsights => UpdateContributorInsightsOutput + | .updateGlobalTable => UpdateGlobalTableOutput + | .updateGlobalTableSettings => UpdateGlobalTableSettingsOutput + | .updateKinesisStreamingDestination => UpdateKinesisStreamingDestinationOutput + | .updateTable => UpdateTableOutput + | .updateTableReplicaAutoScaling => UpdateTableReplicaAutoScalingOutput + | .updateTimeToLive => UpdateTimeToLiveOutput + +abbrev Error : Op → Type + | .cancelBulkOperation => CancelBulkOperationError + | .createBackup => CreateBackupError + | .createGlobalTable => CreateGlobalTableError + | .createTable => CreateTableError + | .deleteBackup => DeleteBackupError + | .deleteResourcePolicy => DeleteResourcePolicyError + | .deleteTable => DeleteTableError + | .describeBackup => DescribeBackupError + | .describeBulkOperation => DescribeBulkOperationError + | .describeContinuousBackups => DescribeContinuousBackupsError + | .describeContributorInsights => DescribeContributorInsightsError + | .describeEndpoints => Empty + | .describeGlobalTable => DescribeGlobalTableError + | .describeGlobalTableSettings => DescribeGlobalTableSettingsError + | .describeImport => DescribeImportError + | .describeKinesisStreamingDestination => DescribeKinesisStreamingDestinationError + | .describeLimits => DescribeLimitsError + | .describeTable => DescribeTableError + | .describeTableReplicaAutoScaling => DescribeTableReplicaAutoScalingError + | .describeTimeToLive => DescribeTimeToLiveError + | .disableKinesisStreamingDestination => DisableKinesisStreamingDestinationError + | .enableKinesisStreamingDestination => EnableKinesisStreamingDestinationError + | .getResourcePolicy => GetResourcePolicyError + | .importTable => ImportTableError + | .listBackups => ListBackupsError + | .listBulkOperations => ListBulkOperationsError + | .listContributorInsights => ListContributorInsightsError + | .listExports => ListExportsError + | .listGlobalTables => ListGlobalTablesError + | .listImports => ListImportsError + | .listTables => ListTablesError + | .listTagsOfResource => ListTagsOfResourceError + | .putResourcePolicy => PutResourcePolicyError + | .restoreTableFromBackup => RestoreTableFromBackupError + | .restoreTableToPointInTime => RestoreTableToPointInTimeError + | .startBulkPutItems => StartBulkPutItemsError + | .tagResource => TagResourceError + | .untagResource => UntagResourceError + | .updateContinuousBackups => UpdateContinuousBackupsError + | .updateContributorInsights => UpdateContributorInsightsError + | .updateGlobalTable => UpdateGlobalTableError + | .updateGlobalTableSettings => UpdateGlobalTableSettingsError + | .updateKinesisStreamingDestination => UpdateKinesisStreamingDestinationError + | .updateTable => UpdateTableError + | .updateTableReplicaAutoScaling => UpdateTableReplicaAutoScalingError + | .updateTimeToLive => UpdateTimeToLiveError + +/-- An empty output for each operation, for a model that leaves an operation out. -/ +def Output.empty : (op : Op) → Output op + | .cancelBulkOperation => default + | .createBackup => default + | .createGlobalTable => default + | .createTable => default + | .deleteBackup => default + | .deleteResourcePolicy => default + | .deleteTable => default + | .describeBackup => default + | .describeBulkOperation => default + | .describeContinuousBackups => default + | .describeContributorInsights => default + | .describeEndpoints => default + | .describeGlobalTable => default + | .describeGlobalTableSettings => default + | .describeImport => default + | .describeKinesisStreamingDestination => default + | .describeLimits => default + | .describeTable => default + | .describeTableReplicaAutoScaling => default + | .describeTimeToLive => default + | .disableKinesisStreamingDestination => default + | .enableKinesisStreamingDestination => default + | .getResourcePolicy => default + | .importTable => default + | .listBackups => default + | .listBulkOperations => default + | .listContributorInsights => default + | .listExports => default + | .listGlobalTables => default + | .listImports => default + | .listTables => default + | .listTagsOfResource => default + | .putResourcePolicy => default + | .restoreTableFromBackup => default + | .restoreTableToPointInTime => default + | .startBulkPutItems => default + | .tagResource => default + | .untagResource => default + | .updateContinuousBackups => default + | .updateContributorInsights => default + | .updateGlobalTable => default + | .updateGlobalTableSettings => default + | .updateKinesisStreamingDestination => default + | .updateTable => default + | .updateTableReplicaAutoScaling => default + | .updateTimeToLive => default + +/-- The service: every operation with its input, its output and its errors. -/ +abbrev api : Distilled.Api where + Op := Op + In := Input + Out := Output + Err := Error + +/-- The name requests to this service are signed for. -/ +def signingName : String := "dynamodb" + +def service : ServiceInfo where + name := "DynamoDB_20120810" + version := "2012-08-10" + protocol := .awsJson "1.0" + signingName := "dynamodb" + xmlNamespace := some "http://dynamodb.amazonaws.com/doc/2012-08-10/" + +/-- What the model says about each operation. -/ +def info : Op → OpInfo + | .cancelBulkOperation => { name := "CancelBulkOperation", method := "POST", uri := "/", input := (Shape.schema CancelBulkOperationInput), output := (Shape.schema CancelBulkOperationOutput), errors := [{ name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .createBackup => { name := "CreateBackup", method := "POST", uri := "/", input := (Shape.schema CreateBackupInput), output := (Shape.schema CreateBackupOutput), errors := [{ name := "BackupInUseException", schema := Shape.schema BackupInUseException }, { name := "ContinuousBackupsUnavailableException", schema := Shape.schema ContinuousBackupsUnavailableException }, { name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }, { name := "TableInUseException", schema := Shape.schema TableInUseException }, { name := "TableNotFoundException", schema := Shape.schema TableNotFoundException }] } + | .createGlobalTable => { name := "CreateGlobalTable", method := "POST", uri := "/", input := (Shape.schema CreateGlobalTableInput), output := (Shape.schema CreateGlobalTableOutput), errors := [{ name := "GlobalTableAlreadyExistsException", schema := Shape.schema GlobalTableAlreadyExistsException }, { name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }, { name := "TableNotFoundException", schema := Shape.schema TableNotFoundException }] } + | .createTable => { name := "CreateTable", method := "POST", uri := "/", input := (Shape.schema CreateTableInput), output := (Shape.schema CreateTableOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }, { name := "ResourceInUseException", schema := Shape.schema ResourceInUseException }] } + | .deleteBackup => { name := "DeleteBackup", method := "POST", uri := "/", input := (Shape.schema DeleteBackupInput), output := (Shape.schema DeleteBackupOutput), errors := [{ name := "BackupInUseException", schema := Shape.schema BackupInUseException }, { name := "BackupNotFoundException", schema := Shape.schema BackupNotFoundException }, { name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }] } + | .deleteResourcePolicy => { name := "DeleteResourcePolicy", method := "POST", uri := "/", input := (Shape.schema DeleteResourcePolicyInput), output := (Shape.schema DeleteResourcePolicyOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }, { name := "PolicyNotFoundException", schema := Shape.schema PolicyNotFoundException }, { name := "ResourceInUseException", schema := Shape.schema ResourceInUseException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .deleteTable => { name := "DeleteTable", method := "POST", uri := "/", input := (Shape.schema DeleteTableInput), output := (Shape.schema DeleteTableOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }, { name := "ResourceInUseException", schema := Shape.schema ResourceInUseException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .describeBackup => { name := "DescribeBackup", method := "POST", uri := "/", input := (Shape.schema DescribeBackupInput), output := (Shape.schema DescribeBackupOutput), errors := [{ name := "BackupNotFoundException", schema := Shape.schema BackupNotFoundException }, { name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }] } + | .describeBulkOperation => { name := "DescribeBulkOperation", method := "POST", uri := "/", input := (Shape.schema DescribeBulkOperationInput), output := (Shape.schema DescribeBulkOperationOutput), errors := [{ name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .describeContinuousBackups => { name := "DescribeContinuousBackups", method := "POST", uri := "/", input := (Shape.schema DescribeContinuousBackupsInput), output := (Shape.schema DescribeContinuousBackupsOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "TableNotFoundException", schema := Shape.schema TableNotFoundException }] } + | .describeContributorInsights => { name := "DescribeContributorInsights", method := "POST", uri := "/", input := (Shape.schema DescribeContributorInsightsInput), output := (Shape.schema DescribeContributorInsightsOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .describeEndpoints => { name := "DescribeEndpoints", method := "POST", uri := "/", input := (Shape.schema DescribeEndpointsRequest), output := (Shape.schema DescribeEndpointsResponse), errors := [] } + | .describeGlobalTable => { name := "DescribeGlobalTable", method := "POST", uri := "/", input := (Shape.schema DescribeGlobalTableInput), output := (Shape.schema DescribeGlobalTableOutput), errors := [{ name := "GlobalTableNotFoundException", schema := Shape.schema GlobalTableNotFoundException }, { name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }] } + | .describeGlobalTableSettings => { name := "DescribeGlobalTableSettings", method := "POST", uri := "/", input := (Shape.schema DescribeGlobalTableSettingsInput), output := (Shape.schema DescribeGlobalTableSettingsOutput), errors := [{ name := "GlobalTableNotFoundException", schema := Shape.schema GlobalTableNotFoundException }, { name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }] } + | .describeImport => { name := "DescribeImport", method := "POST", uri := "/", input := (Shape.schema DescribeImportInput), output := (Shape.schema DescribeImportOutput), errors := [{ name := "ImportNotFoundException", schema := Shape.schema ImportNotFoundException }] } + | .describeKinesisStreamingDestination => { name := "DescribeKinesisStreamingDestination", method := "POST", uri := "/", input := (Shape.schema DescribeKinesisStreamingDestinationInput), output := (Shape.schema DescribeKinesisStreamingDestinationOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .describeLimits => { name := "DescribeLimits", method := "POST", uri := "/", input := (Shape.schema DescribeLimitsInput), output := (Shape.schema DescribeLimitsOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }] } + | .describeTable => { name := "DescribeTable", method := "POST", uri := "/", input := (Shape.schema DescribeTableInput), output := (Shape.schema DescribeTableOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .describeTableReplicaAutoScaling => { name := "DescribeTableReplicaAutoScaling", method := "POST", uri := "/", input := (Shape.schema DescribeTableReplicaAutoScalingInput), output := (Shape.schema DescribeTableReplicaAutoScalingOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .describeTimeToLive => { name := "DescribeTimeToLive", method := "POST", uri := "/", input := (Shape.schema DescribeTimeToLiveInput), output := (Shape.schema DescribeTimeToLiveOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .disableKinesisStreamingDestination => { name := "DisableKinesisStreamingDestination", method := "POST", uri := "/", input := (Shape.schema KinesisStreamingDestinationInput), output := (Shape.schema KinesisStreamingDestinationOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }, { name := "ResourceInUseException", schema := Shape.schema ResourceInUseException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .enableKinesisStreamingDestination => { name := "EnableKinesisStreamingDestination", method := "POST", uri := "/", input := (Shape.schema KinesisStreamingDestinationInput), output := (Shape.schema KinesisStreamingDestinationOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }, { name := "ResourceInUseException", schema := Shape.schema ResourceInUseException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .getResourcePolicy => { name := "GetResourcePolicy", method := "POST", uri := "/", input := (Shape.schema GetResourcePolicyInput), output := (Shape.schema GetResourcePolicyOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "PolicyNotFoundException", schema := Shape.schema PolicyNotFoundException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .importTable => { name := "ImportTable", method := "POST", uri := "/", input := (Shape.schema ImportTableInput), output := (Shape.schema ImportTableOutput), errors := [{ name := "ImportConflictException", schema := Shape.schema ImportConflictException }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }, { name := "ResourceInUseException", schema := Shape.schema ResourceInUseException }] } + | .listBackups => { name := "ListBackups", method := "POST", uri := "/", input := (Shape.schema ListBackupsInput), output := (Shape.schema ListBackupsOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }] } + | .listBulkOperations => { name := "ListBulkOperations", method := "POST", uri := "/", input := (Shape.schema ListBulkOperationsInput), output := (Shape.schema ListBulkOperationsOutput), errors := [{ name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }] } + | .listContributorInsights => { name := "ListContributorInsights", method := "POST", uri := "/", input := (Shape.schema ListContributorInsightsInput), output := (Shape.schema ListContributorInsightsOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .listExports => { name := "ListExports", method := "POST", uri := "/", input := (Shape.schema ListExportsInput), output := (Shape.schema ListExportsOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }] } + | .listGlobalTables => { name := "ListGlobalTables", method := "POST", uri := "/", input := (Shape.schema ListGlobalTablesInput), output := (Shape.schema ListGlobalTablesOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }] } + | .listImports => { name := "ListImports", method := "POST", uri := "/", input := (Shape.schema ListImportsInput), output := (Shape.schema ListImportsOutput), errors := [{ name := "LimitExceededException", schema := Shape.schema LimitExceededException }] } + | .listTables => { name := "ListTables", method := "POST", uri := "/", input := (Shape.schema ListTablesInput), output := (Shape.schema ListTablesOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }] } + | .listTagsOfResource => { name := "ListTagsOfResource", method := "POST", uri := "/", input := (Shape.schema ListTagsOfResourceInput), output := (Shape.schema ListTagsOfResourceOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .putResourcePolicy => { name := "PutResourcePolicy", method := "POST", uri := "/", input := (Shape.schema PutResourcePolicyInput), output := (Shape.schema PutResourcePolicyOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }, { name := "PolicyNotFoundException", schema := Shape.schema PolicyNotFoundException }, { name := "ResourceInUseException", schema := Shape.schema ResourceInUseException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .restoreTableFromBackup => { name := "RestoreTableFromBackup", method := "POST", uri := "/", input := (Shape.schema RestoreTableFromBackupInput), output := (Shape.schema RestoreTableFromBackupOutput), errors := [{ name := "BackupInUseException", schema := Shape.schema BackupInUseException }, { name := "BackupNotFoundException", schema := Shape.schema BackupNotFoundException }, { name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }, { name := "TableAlreadyExistsException", schema := Shape.schema TableAlreadyExistsException }, { name := "TableInUseException", schema := Shape.schema TableInUseException }] } + | .restoreTableToPointInTime => { name := "RestoreTableToPointInTime", method := "POST", uri := "/", input := (Shape.schema RestoreTableToPointInTimeInput), output := (Shape.schema RestoreTableToPointInTimeOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "InvalidRestoreTimeException", schema := Shape.schema InvalidRestoreTimeException }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }, { name := "PointInTimeRecoveryUnavailableException", schema := Shape.schema PointInTimeRecoveryUnavailableException }, { name := "TableAlreadyExistsException", schema := Shape.schema TableAlreadyExistsException }, { name := "TableInUseException", schema := Shape.schema TableInUseException }, { name := "TableNotFoundException", schema := Shape.schema TableNotFoundException }] } + | .startBulkPutItems => { name := "StartBulkPutItems", method := "POST", uri := "/", input := (Shape.schema StartBulkPutItemsInput), output := (Shape.schema StartBulkPutItemsOutput), errors := [{ name := "IdempotentParameterMismatchException", schema := Shape.schema IdempotentParameterMismatchException }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }, { name := "ResourceInUseException", schema := Shape.schema ResourceInUseException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .tagResource => { name := "TagResource", method := "POST", uri := "/", input := (Shape.schema TagResourceInput), output := (Shape.schema Unit), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }, { name := "ResourceInUseException", schema := Shape.schema ResourceInUseException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .untagResource => { name := "UntagResource", method := "POST", uri := "/", input := (Shape.schema UntagResourceInput), output := (Shape.schema Unit), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }, { name := "ResourceInUseException", schema := Shape.schema ResourceInUseException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .updateContinuousBackups => { name := "UpdateContinuousBackups", method := "POST", uri := "/", input := (Shape.schema UpdateContinuousBackupsInput), output := (Shape.schema UpdateContinuousBackupsOutput), errors := [{ name := "ContinuousBackupsUnavailableException", schema := Shape.schema ContinuousBackupsUnavailableException }, { name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "TableNotFoundException", schema := Shape.schema TableNotFoundException }] } + | .updateContributorInsights => { name := "UpdateContributorInsights", method := "POST", uri := "/", input := (Shape.schema UpdateContributorInsightsInput), output := (Shape.schema UpdateContributorInsightsOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .updateGlobalTable => { name := "UpdateGlobalTable", method := "POST", uri := "/", input := (Shape.schema UpdateGlobalTableInput), output := (Shape.schema UpdateGlobalTableOutput), errors := [{ name := "GlobalTableNotFoundException", schema := Shape.schema GlobalTableNotFoundException }, { name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "ReplicaAlreadyExistsException", schema := Shape.schema ReplicaAlreadyExistsException }, { name := "ReplicaNotFoundException", schema := Shape.schema ReplicaNotFoundException }, { name := "TableNotFoundException", schema := Shape.schema TableNotFoundException }] } + | .updateGlobalTableSettings => { name := "UpdateGlobalTableSettings", method := "POST", uri := "/", input := (Shape.schema UpdateGlobalTableSettingsInput), output := (Shape.schema UpdateGlobalTableSettingsOutput), errors := [{ name := "GlobalTableNotFoundException", schema := Shape.schema GlobalTableNotFoundException }, { name := "IndexNotFoundException", schema := Shape.schema IndexNotFoundException }, { name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }, { name := "ReplicaNotFoundException", schema := Shape.schema ReplicaNotFoundException }, { name := "ResourceInUseException", schema := Shape.schema ResourceInUseException }] } + | .updateKinesisStreamingDestination => { name := "UpdateKinesisStreamingDestination", method := "POST", uri := "/", input := (Shape.schema UpdateKinesisStreamingDestinationInput), output := (Shape.schema UpdateKinesisStreamingDestinationOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }, { name := "ResourceInUseException", schema := Shape.schema ResourceInUseException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .updateTable => { name := "UpdateTable", method := "POST", uri := "/", input := (Shape.schema UpdateTableInput), output := (Shape.schema UpdateTableOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }, { name := "ResourceInUseException", schema := Shape.schema ResourceInUseException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .updateTableReplicaAutoScaling => { name := "UpdateTableReplicaAutoScaling", method := "POST", uri := "/", input := (Shape.schema UpdateTableReplicaAutoScalingInput), output := (Shape.schema UpdateTableReplicaAutoScalingOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }, { name := "ResourceInUseException", schema := Shape.schema ResourceInUseException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + | .updateTimeToLive => { name := "UpdateTimeToLive", method := "POST", uri := "/", input := (Shape.schema UpdateTimeToLiveInput), output := (Shape.schema UpdateTimeToLiveOutput), errors := [{ name := "InternalServerError", schema := Shape.schema InternalServerError }, { name := "InvalidEndpointException", schema := Shape.schema InvalidEndpointException }, { name := "LimitExceededException", schema := Shape.schema LimitExceededException }, { name := "ResourceInUseException", schema := Shape.schema ResourceInUseException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }] } + +/-- How the service goes over HTTP. -/ +def wire : Wire api := Wire.of service info + (fun op => match op with + | .cancelBulkOperation => fun (x : CancelBulkOperationInput) => Shape.toValue x + | .createBackup => fun (x : CreateBackupInput) => Shape.toValue x + | .createGlobalTable => fun (x : CreateGlobalTableInput) => Shape.toValue x + | .createTable => fun (x : CreateTableInput) => Shape.toValue x + | .deleteBackup => fun (x : DeleteBackupInput) => Shape.toValue x + | .deleteResourcePolicy => fun (x : DeleteResourcePolicyInput) => Shape.toValue x + | .deleteTable => fun (x : DeleteTableInput) => Shape.toValue x + | .describeBackup => fun (x : DescribeBackupInput) => Shape.toValue x + | .describeBulkOperation => fun (x : DescribeBulkOperationInput) => Shape.toValue x + | .describeContinuousBackups => fun (x : DescribeContinuousBackupsInput) => Shape.toValue x + | .describeContributorInsights => fun (x : DescribeContributorInsightsInput) => Shape.toValue x + | .describeEndpoints => fun (x : DescribeEndpointsRequest) => Shape.toValue x + | .describeGlobalTable => fun (x : DescribeGlobalTableInput) => Shape.toValue x + | .describeGlobalTableSettings => fun (x : DescribeGlobalTableSettingsInput) => Shape.toValue x + | .describeImport => fun (x : DescribeImportInput) => Shape.toValue x + | .describeKinesisStreamingDestination => fun (x : DescribeKinesisStreamingDestinationInput) => Shape.toValue x + | .describeLimits => fun (x : DescribeLimitsInput) => Shape.toValue x + | .describeTable => fun (x : DescribeTableInput) => Shape.toValue x + | .describeTableReplicaAutoScaling => fun (x : DescribeTableReplicaAutoScalingInput) => Shape.toValue x + | .describeTimeToLive => fun (x : DescribeTimeToLiveInput) => Shape.toValue x + | .disableKinesisStreamingDestination => fun (x : KinesisStreamingDestinationInput) => Shape.toValue x + | .enableKinesisStreamingDestination => fun (x : KinesisStreamingDestinationInput) => Shape.toValue x + | .getResourcePolicy => fun (x : GetResourcePolicyInput) => Shape.toValue x + | .importTable => fun (x : ImportTableInput) => Shape.toValue x + | .listBackups => fun (x : ListBackupsInput) => Shape.toValue x + | .listBulkOperations => fun (x : ListBulkOperationsInput) => Shape.toValue x + | .listContributorInsights => fun (x : ListContributorInsightsInput) => Shape.toValue x + | .listExports => fun (x : ListExportsInput) => Shape.toValue x + | .listGlobalTables => fun (x : ListGlobalTablesInput) => Shape.toValue x + | .listImports => fun (x : ListImportsInput) => Shape.toValue x + | .listTables => fun (x : ListTablesInput) => Shape.toValue x + | .listTagsOfResource => fun (x : ListTagsOfResourceInput) => Shape.toValue x + | .putResourcePolicy => fun (x : PutResourcePolicyInput) => Shape.toValue x + | .restoreTableFromBackup => fun (x : RestoreTableFromBackupInput) => Shape.toValue x + | .restoreTableToPointInTime => fun (x : RestoreTableToPointInTimeInput) => Shape.toValue x + | .startBulkPutItems => fun (x : StartBulkPutItemsInput) => Shape.toValue x + | .tagResource => fun (x : TagResourceInput) => Shape.toValue x + | .untagResource => fun (x : UntagResourceInput) => Shape.toValue x + | .updateContinuousBackups => fun (x : UpdateContinuousBackupsInput) => Shape.toValue x + | .updateContributorInsights => fun (x : UpdateContributorInsightsInput) => Shape.toValue x + | .updateGlobalTable => fun (x : UpdateGlobalTableInput) => Shape.toValue x + | .updateGlobalTableSettings => fun (x : UpdateGlobalTableSettingsInput) => Shape.toValue x + | .updateKinesisStreamingDestination => fun (x : UpdateKinesisStreamingDestinationInput) => Shape.toValue x + | .updateTable => fun (x : UpdateTableInput) => Shape.toValue x + | .updateTableReplicaAutoScaling => fun (x : UpdateTableReplicaAutoScalingInput) => Shape.toValue x + | .updateTimeToLive => fun (x : UpdateTimeToLiveInput) => Shape.toValue x +) + (fun op => match op with + | .cancelBulkOperation => fun v => (Shape.ofValue v : Except String CancelBulkOperationOutput) + | .createBackup => fun v => (Shape.ofValue v : Except String CreateBackupOutput) + | .createGlobalTable => fun v => (Shape.ofValue v : Except String CreateGlobalTableOutput) + | .createTable => fun v => (Shape.ofValue v : Except String CreateTableOutput) + | .deleteBackup => fun v => (Shape.ofValue v : Except String DeleteBackupOutput) + | .deleteResourcePolicy => fun v => (Shape.ofValue v : Except String DeleteResourcePolicyOutput) + | .deleteTable => fun v => (Shape.ofValue v : Except String DeleteTableOutput) + | .describeBackup => fun v => (Shape.ofValue v : Except String DescribeBackupOutput) + | .describeBulkOperation => fun v => (Shape.ofValue v : Except String DescribeBulkOperationOutput) + | .describeContinuousBackups => fun v => (Shape.ofValue v : Except String DescribeContinuousBackupsOutput) + | .describeContributorInsights => fun v => (Shape.ofValue v : Except String DescribeContributorInsightsOutput) + | .describeEndpoints => fun v => (Shape.ofValue v : Except String DescribeEndpointsResponse) + | .describeGlobalTable => fun v => (Shape.ofValue v : Except String DescribeGlobalTableOutput) + | .describeGlobalTableSettings => fun v => (Shape.ofValue v : Except String DescribeGlobalTableSettingsOutput) + | .describeImport => fun v => (Shape.ofValue v : Except String DescribeImportOutput) + | .describeKinesisStreamingDestination => fun v => (Shape.ofValue v : Except String DescribeKinesisStreamingDestinationOutput) + | .describeLimits => fun v => (Shape.ofValue v : Except String DescribeLimitsOutput) + | .describeTable => fun v => (Shape.ofValue v : Except String DescribeTableOutput) + | .describeTableReplicaAutoScaling => fun v => (Shape.ofValue v : Except String DescribeTableReplicaAutoScalingOutput) + | .describeTimeToLive => fun v => (Shape.ofValue v : Except String DescribeTimeToLiveOutput) + | .disableKinesisStreamingDestination => fun v => (Shape.ofValue v : Except String KinesisStreamingDestinationOutput) + | .enableKinesisStreamingDestination => fun v => (Shape.ofValue v : Except String KinesisStreamingDestinationOutput) + | .getResourcePolicy => fun v => (Shape.ofValue v : Except String GetResourcePolicyOutput) + | .importTable => fun v => (Shape.ofValue v : Except String ImportTableOutput) + | .listBackups => fun v => (Shape.ofValue v : Except String ListBackupsOutput) + | .listBulkOperations => fun v => (Shape.ofValue v : Except String ListBulkOperationsOutput) + | .listContributorInsights => fun v => (Shape.ofValue v : Except String ListContributorInsightsOutput) + | .listExports => fun v => (Shape.ofValue v : Except String ListExportsOutput) + | .listGlobalTables => fun v => (Shape.ofValue v : Except String ListGlobalTablesOutput) + | .listImports => fun v => (Shape.ofValue v : Except String ListImportsOutput) + | .listTables => fun v => (Shape.ofValue v : Except String ListTablesOutput) + | .listTagsOfResource => fun v => (Shape.ofValue v : Except String ListTagsOfResourceOutput) + | .putResourcePolicy => fun v => (Shape.ofValue v : Except String PutResourcePolicyOutput) + | .restoreTableFromBackup => fun v => (Shape.ofValue v : Except String RestoreTableFromBackupOutput) + | .restoreTableToPointInTime => fun v => (Shape.ofValue v : Except String RestoreTableToPointInTimeOutput) + | .startBulkPutItems => fun v => (Shape.ofValue v : Except String StartBulkPutItemsOutput) + | .tagResource => fun v => (Shape.ofValue v : Except String Unit) + | .untagResource => fun v => (Shape.ofValue v : Except String Unit) + | .updateContinuousBackups => fun v => (Shape.ofValue v : Except String UpdateContinuousBackupsOutput) + | .updateContributorInsights => fun v => (Shape.ofValue v : Except String UpdateContributorInsightsOutput) + | .updateGlobalTable => fun v => (Shape.ofValue v : Except String UpdateGlobalTableOutput) + | .updateGlobalTableSettings => fun v => (Shape.ofValue v : Except String UpdateGlobalTableSettingsOutput) + | .updateKinesisStreamingDestination => fun v => (Shape.ofValue v : Except String UpdateKinesisStreamingDestinationOutput) + | .updateTable => fun v => (Shape.ofValue v : Except String UpdateTableOutput) + | .updateTableReplicaAutoScaling => fun v => (Shape.ofValue v : Except String UpdateTableReplicaAutoScalingOutput) + | .updateTimeToLive => fun v => (Shape.ofValue v : Except String UpdateTimeToLiveOutput) +) + (fun op => match op with + | .cancelBulkOperation => CancelBulkOperationError.ofWire + | .createBackup => CreateBackupError.ofWire + | .createGlobalTable => CreateGlobalTableError.ofWire + | .createTable => CreateTableError.ofWire + | .deleteBackup => DeleteBackupError.ofWire + | .deleteResourcePolicy => DeleteResourcePolicyError.ofWire + | .deleteTable => DeleteTableError.ofWire + | .describeBackup => DescribeBackupError.ofWire + | .describeBulkOperation => DescribeBulkOperationError.ofWire + | .describeContinuousBackups => DescribeContinuousBackupsError.ofWire + | .describeContributorInsights => DescribeContributorInsightsError.ofWire + | .describeEndpoints => fun _ _ => none + | .describeGlobalTable => DescribeGlobalTableError.ofWire + | .describeGlobalTableSettings => DescribeGlobalTableSettingsError.ofWire + | .describeImport => DescribeImportError.ofWire + | .describeKinesisStreamingDestination => DescribeKinesisStreamingDestinationError.ofWire + | .describeLimits => DescribeLimitsError.ofWire + | .describeTable => DescribeTableError.ofWire + | .describeTableReplicaAutoScaling => DescribeTableReplicaAutoScalingError.ofWire + | .describeTimeToLive => DescribeTimeToLiveError.ofWire + | .disableKinesisStreamingDestination => DisableKinesisStreamingDestinationError.ofWire + | .enableKinesisStreamingDestination => EnableKinesisStreamingDestinationError.ofWire + | .getResourcePolicy => GetResourcePolicyError.ofWire + | .importTable => ImportTableError.ofWire + | .listBackups => ListBackupsError.ofWire + | .listBulkOperations => ListBulkOperationsError.ofWire + | .listContributorInsights => ListContributorInsightsError.ofWire + | .listExports => ListExportsError.ofWire + | .listGlobalTables => ListGlobalTablesError.ofWire + | .listImports => ListImportsError.ofWire + | .listTables => ListTablesError.ofWire + | .listTagsOfResource => ListTagsOfResourceError.ofWire + | .putResourcePolicy => PutResourcePolicyError.ofWire + | .restoreTableFromBackup => RestoreTableFromBackupError.ofWire + | .restoreTableToPointInTime => RestoreTableToPointInTimeError.ofWire + | .startBulkPutItems => StartBulkPutItemsError.ofWire + | .tagResource => TagResourceError.ofWire + | .untagResource => UntagResourceError.ofWire + | .updateContinuousBackups => UpdateContinuousBackupsError.ofWire + | .updateContributorInsights => UpdateContributorInsightsError.ofWire + | .updateGlobalTable => UpdateGlobalTableError.ofWire + | .updateGlobalTableSettings => UpdateGlobalTableSettingsError.ofWire + | .updateKinesisStreamingDestination => UpdateKinesisStreamingDestinationError.ofWire + | .updateTable => UpdateTableError.ofWire + | .updateTableReplicaAutoScaling => UpdateTableReplicaAutoScalingError.ofWire + | .updateTimeToLive => UpdateTimeToLiveError.ofWire +) + +/-- Cancels an in-progress bulk operation asynchronously. -/ +def cancelBulkOperation {ε : Type} (input : CancelBulkOperationInput) : Eff api ε (Except CancelBulkOperationError CancelBulkOperationOutput) := + Eff.ask (api := api) .cancelBulkOperation input + +/-- Creates a backup for an existing table. -/ +def createBackup {ε : Type} (input : CreateBackupInput) : Eff api ε (Except CreateBackupError CreateBackupOutput) := + Eff.ask (api := api) .createBackup input + +/-- Creates a global table from an existing table. -/ +def createGlobalTable {ε : Type} (input : CreateGlobalTableInput) : Eff api ε (Except CreateGlobalTableError CreateGlobalTableOutput) := + Eff.ask (api := api) .createGlobalTable input + +/-- The CreateTable operation adds a new table to your account. -/ +def createTable {ε : Type} (input : CreateTableInput) : Eff api ε (Except CreateTableError CreateTableOutput) := + Eff.ask (api := api) .createTable input + +/-- Deletes an existing backup of a table. -/ +def deleteBackup {ε : Type} (input : DeleteBackupInput) : Eff api ε (Except DeleteBackupError DeleteBackupOutput) := + Eff.ask (api := api) .deleteBackup input + +/-- Deletes the resource-based policy attached to the resource, which can be a table or stream. -/ +def deleteResourcePolicy {ε : Type} (input : DeleteResourcePolicyInput) : Eff api ε (Except DeleteResourcePolicyError DeleteResourcePolicyOutput) := + Eff.ask (api := api) .deleteResourcePolicy input + +/-- The DeleteTable operation deletes a table and all of its items. -/ +def deleteTable {ε : Type} (input : DeleteTableInput) : Eff api ε (Except DeleteTableError DeleteTableOutput) := + Eff.ask (api := api) .deleteTable input + +/-- Describes an existing backup of a table. -/ +def describeBackup {ε : Type} (input : DescribeBackupInput) : Eff api ε (Except DescribeBackupError DescribeBackupOutput) := + Eff.ask (api := api) .describeBackup input + +/-- Describes the specified bulk operation. -/ +def describeBulkOperation {ε : Type} (input : DescribeBulkOperationInput) : Eff api ε (Except DescribeBulkOperationError DescribeBulkOperationOutput) := + Eff.ask (api := api) .describeBulkOperation input + +/-- Checks the status of continuous backups and point in time recovery on the specified table. -/ +def describeContinuousBackups {ε : Type} (input : DescribeContinuousBackupsInput) : Eff api ε (Except DescribeContinuousBackupsError DescribeContinuousBackupsOutput) := + Eff.ask (api := api) .describeContinuousBackups input + +/-- Returns information about contributor insights for a given table or global secondary index. -/ +def describeContributorInsights {ε : Type} (input : DescribeContributorInsightsInput) : Eff api ε (Except DescribeContributorInsightsError DescribeContributorInsightsOutput) := + Eff.ask (api := api) .describeContributorInsights input + +/-- Returns the regional endpoint information. -/ +def describeEndpoints {ε : Type} (input : DescribeEndpointsRequest) : Eff api ε (Except Empty DescribeEndpointsResponse) := + Eff.ask (api := api) .describeEndpoints input + +/-- Returns information about the specified global table. -/ +def describeGlobalTable {ε : Type} (input : DescribeGlobalTableInput) : Eff api ε (Except DescribeGlobalTableError DescribeGlobalTableOutput) := + Eff.ask (api := api) .describeGlobalTable input + +/-- Describes Region-specific settings for a global table. -/ +def describeGlobalTableSettings {ε : Type} (input : DescribeGlobalTableSettingsInput) : Eff api ε (Except DescribeGlobalTableSettingsError DescribeGlobalTableSettingsOutput) := + Eff.ask (api := api) .describeGlobalTableSettings input + +/-- Represents the properties of the import. -/ +def describeImport {ε : Type} (input : DescribeImportInput) : Eff api ε (Except DescribeImportError DescribeImportOutput) := + Eff.ask (api := api) .describeImport input + +/-- Returns information about the status of Kinesis streaming. -/ +def describeKinesisStreamingDestination {ε : Type} (input : DescribeKinesisStreamingDestinationInput) : Eff api ε (Except DescribeKinesisStreamingDestinationError DescribeKinesisStreamingDestinationOutput) := + Eff.ask (api := api) .describeKinesisStreamingDestination input + +/-- Returns the current provisioned-capacity quotas for your Amazon Web Services account in a Region, both for the Region as a whole and for any one DynamoDB table that you create there. -/ +def describeLimits {ε : Type} (input : DescribeLimitsInput) : Eff api ε (Except DescribeLimitsError DescribeLimitsOutput) := + Eff.ask (api := api) .describeLimits input + +/-- Returns information about the table, including the current status of the table, when it was created, the primary key schema, and any indexes on the table. -/ +def describeTable {ε : Type} (input : DescribeTableInput) : Eff api ε (Except DescribeTableError DescribeTableOutput) := + Eff.ask (api := api) .describeTable input + +/-- Describes auto scaling settings across replicas of the global table at once. -/ +def describeTableReplicaAutoScaling {ε : Type} (input : DescribeTableReplicaAutoScalingInput) : Eff api ε (Except DescribeTableReplicaAutoScalingError DescribeTableReplicaAutoScalingOutput) := + Eff.ask (api := api) .describeTableReplicaAutoScaling input + +/-- Gives a description of the Time to Live (TTL) status on the specified table. -/ +def describeTimeToLive {ε : Type} (input : DescribeTimeToLiveInput) : Eff api ε (Except DescribeTimeToLiveError DescribeTimeToLiveOutput) := + Eff.ask (api := api) .describeTimeToLive input + +/-- Stops replication from the DynamoDB table to the Kinesis data stream. -/ +def disableKinesisStreamingDestination {ε : Type} (input : KinesisStreamingDestinationInput) : Eff api ε (Except DisableKinesisStreamingDestinationError KinesisStreamingDestinationOutput) := + Eff.ask (api := api) .disableKinesisStreamingDestination input + +/-- Starts table data replication to the specified Kinesis data stream at a timestamp chosen during the enable workflow. -/ +def enableKinesisStreamingDestination {ε : Type} (input : KinesisStreamingDestinationInput) : Eff api ε (Except EnableKinesisStreamingDestinationError KinesisStreamingDestinationOutput) := + Eff.ask (api := api) .enableKinesisStreamingDestination input + +/-- Returns the resource-based policy document attached to the resource, which can be a table or stream, in JSON format. -/ +def getResourcePolicy {ε : Type} (input : GetResourcePolicyInput) : Eff api ε (Except GetResourcePolicyError GetResourcePolicyOutput) := + Eff.ask (api := api) .getResourcePolicy input + +/-- Imports table data from an S3 bucket. -/ +def importTable {ε : Type} (input : ImportTableInput) : Eff api ε (Except ImportTableError ImportTableOutput) := + Eff.ask (api := api) .importTable input + +/-- List DynamoDB backups that are associated with an Amazon Web Services account and weren't made with Amazon Web Services Backup. -/ +def listBackups {ε : Type} (input : ListBackupsInput) : Eff api ε (Except ListBackupsError ListBackupsOutput) := + Eff.ask (api := api) .listBackups input + +/-- Lists bulk operations that started within the past 90 days for the current Amazon Web Services account and Amazon Web Services Region, with the most recent operations first. -/ +def listBulkOperations {ε : Type} (input : ListBulkOperationsInput) : Eff api ε (Except ListBulkOperationsError ListBulkOperationsOutput) := + Eff.ask (api := api) .listBulkOperations input + +/-- Returns a list of ContributorInsightsSummary for a table and all its global secondary indexes. -/ +def listContributorInsights {ε : Type} (input : ListContributorInsightsInput) : Eff api ε (Except ListContributorInsightsError ListContributorInsightsOutput) := + Eff.ask (api := api) .listContributorInsights input + +/-- Lists completed exports within the past 90 days, in reverse alphanumeric order of ExportArn . -/ +def listExports {ε : Type} (input : ListExportsInput) : Eff api ε (Except ListExportsError ListExportsOutput) := + Eff.ask (api := api) .listExports input + +/-- Lists all global tables that have a replica in the specified Region. -/ +def listGlobalTables {ε : Type} (input : ListGlobalTablesInput) : Eff api ε (Except ListGlobalTablesError ListGlobalTablesOutput) := + Eff.ask (api := api) .listGlobalTables input + +/-- Lists completed imports within the past 90 days. -/ +def listImports {ε : Type} (input : ListImportsInput) : Eff api ε (Except ListImportsError ListImportsOutput) := + Eff.ask (api := api) .listImports input + +/-- Returns an array of table names associated with the current account and endpoint. -/ +def listTables {ε : Type} (input : ListTablesInput) : Eff api ε (Except ListTablesError ListTablesOutput) := + Eff.ask (api := api) .listTables input + +/-- List all tags on an Amazon DynamoDB resource. -/ +def listTagsOfResource {ε : Type} (input : ListTagsOfResourceInput) : Eff api ε (Except ListTagsOfResourceError ListTagsOfResourceOutput) := + Eff.ask (api := api) .listTagsOfResource input + +/-- Attaches a resource-based policy document to the resource, which can be a table or stream. -/ +def putResourcePolicy {ε : Type} (input : PutResourcePolicyInput) : Eff api ε (Except PutResourcePolicyError PutResourcePolicyOutput) := + Eff.ask (api := api) .putResourcePolicy input + +/-- Creates a new table from an existing backup. -/ +def restoreTableFromBackup {ε : Type} (input : RestoreTableFromBackupInput) : Eff api ε (Except RestoreTableFromBackupError RestoreTableFromBackupOutput) := + Eff.ask (api := api) .restoreTableFromBackup input + +/-- Restores the specified table to the specified point in time within EarliestRestorableDateTime and LatestRestorableDateTime . -/ +def restoreTableToPointInTime {ε : Type} (input : RestoreTableToPointInTimeInput) : Eff api ε (Except RestoreTableToPointInTimeError RestoreTableToPointInTimeOutput) := + Eff.ask (api := api) .restoreTableToPointInTime input + +/-- Starts an asynchronous bulk operation that reads items from Amazon S3 and writes them to an existing DynamoDB table, so you can efficiently load or migrate large datasets. -/ +def startBulkPutItems {ε : Type} (input : StartBulkPutItemsInput) : Eff api ε (Except StartBulkPutItemsError StartBulkPutItemsOutput) := + Eff.ask (api := api) .startBulkPutItems input + +/-- Associate a set of tags with an Amazon DynamoDB resource. -/ +def tagResource {ε : Type} (input : TagResourceInput) : Eff api ε (Except TagResourceError Unit) := + Eff.ask (api := api) .tagResource input + +/-- Removes the association of tags from an Amazon DynamoDB resource. -/ +def untagResource {ε : Type} (input : UntagResourceInput) : Eff api ε (Except UntagResourceError Unit) := + Eff.ask (api := api) .untagResource input + +/-- UpdateContinuousBackups enables or disables point in time recovery for the specified table. -/ +def updateContinuousBackups {ε : Type} (input : UpdateContinuousBackupsInput) : Eff api ε (Except UpdateContinuousBackupsError UpdateContinuousBackupsOutput) := + Eff.ask (api := api) .updateContinuousBackups input + +/-- Updates the status for contributor insights for a specific table or index. -/ +def updateContributorInsights {ε : Type} (input : UpdateContributorInsightsInput) : Eff api ε (Except UpdateContributorInsightsError UpdateContributorInsightsOutput) := + Eff.ask (api := api) .updateContributorInsights input + +/-- Adds or removes replicas in the specified global table. -/ +def updateGlobalTable {ε : Type} (input : UpdateGlobalTableInput) : Eff api ε (Except UpdateGlobalTableError UpdateGlobalTableOutput) := + Eff.ask (api := api) .updateGlobalTable input + +/-- Updates settings for a global table. -/ +def updateGlobalTableSettings {ε : Type} (input : UpdateGlobalTableSettingsInput) : Eff api ε (Except UpdateGlobalTableSettingsError UpdateGlobalTableSettingsOutput) := + Eff.ask (api := api) .updateGlobalTableSettings input + +/-- The command to update the Kinesis stream destination. -/ +def updateKinesisStreamingDestination {ε : Type} (input : UpdateKinesisStreamingDestinationInput) : Eff api ε (Except UpdateKinesisStreamingDestinationError UpdateKinesisStreamingDestinationOutput) := + Eff.ask (api := api) .updateKinesisStreamingDestination input + +/-- Modifies the provisioned throughput settings, global secondary indexes, DynamoDB Streams settings, or global table replica settings for a given table. -/ +def updateTable {ε : Type} (input : UpdateTableInput) : Eff api ε (Except UpdateTableError UpdateTableOutput) := + Eff.ask (api := api) .updateTable input + +/-- Updates auto scaling settings on your global tables at once. -/ +def updateTableReplicaAutoScaling {ε : Type} (input : UpdateTableReplicaAutoScalingInput) : Eff api ε (Except UpdateTableReplicaAutoScalingError UpdateTableReplicaAutoScalingOutput) := + Eff.ask (api := api) .updateTableReplicaAutoScaling input + +/-- The UpdateTimeToLive method enables or disables Time to Live (TTL) for the specified table. -/ +def updateTimeToLive {ε : Type} (input : UpdateTimeToLiveInput) : Eff api ε (Except UpdateTimeToLiveError UpdateTimeToLiveOutput) := + Eff.ask (api := api) .updateTimeToLive input + +end Distilled.AWS.DynamoDB diff --git a/lean/Distilled/AWS/Services/EC2.lean b/lean/Distilled/AWS/Services/EC2.lean new file mode 100644 index 0000000000..92c695c156 --- /dev/null +++ b/lean/Distilled/AWS/Services/EC2.lean @@ -0,0 +1,96162 @@ +-- Generated by distilled-gen from ec2-2016-11-15.json. Do not edit. +import Distilled.Protocol + +namespace Distilled.AWS.EC2 +open Lean Distilled + +set_option linter.unusedVariables false +set_option maxRecDepth 4096 +set_option maxHeartbeats 0 + +/-- The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance. -/ +structure AcceleratorCount where + /-- The maximum number of accelerators. -/ + max : Option Int := none + /-- The minimum number of accelerators. -/ + min : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceleratorCount where + schema := .struct "AcceleratorCount" [({ name := "Max", xmlName := some "max", queryName := some "Max" }, .int), + ({ name := "Min", xmlName := some "min", queryName := some "Min" }, .int)] + toValue x := record [putOpt "Max" x.max, putOpt "Min" x.min] + ofValue v := do + let max ← v.opt "Max" + let min ← v.opt "Min" + return { max, min } + +/-- The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance. -/ +structure AcceleratorCountRequest where + /-- The maximum number of accelerators. -/ + max : Option Int := none + /-- The minimum number of accelerators. -/ + min : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceleratorCountRequest where + schema := .struct "AcceleratorCountRequest" [({ name := "Max" }, .int), + ({ name := "Min" }, .int)] + toValue x := record [putOpt "Max" x.max, putOpt "Min" x.min] + ofValue v := do + let max ← v.opt "Max" + let min ← v.opt "Min" + return { max, min } + +inductive AcceleratorManufacturer where + | amazoN_WEB_SERVICES + | amd + | habana + | nvidia + | xilinx +deriving DecidableEq, Repr, Inhabited + +def AcceleratorManufacturer.wire : AcceleratorManufacturer → String + | .amazoN_WEB_SERVICES => "amazon-web-services" + | .amd => "amd" + | .habana => "habana" + | .nvidia => "nvidia" + | .xilinx => "xilinx" + +def AcceleratorManufacturer.wireValues : List (String × AcceleratorManufacturer) := [ + ("amazon-web-services", .amazoN_WEB_SERVICES), + ("amd", .amd), + ("habana", .habana), + ("nvidia", .nvidia), + ("xilinx", .xilinx)] + +def AcceleratorManufacturer.ofWire (text : String) : Except String AcceleratorManufacturer := + match List.find? (·.1 == text) AcceleratorManufacturer.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AcceleratorManufacturer has no value {text}" + +instance : Key AcceleratorManufacturer := ⟨AcceleratorManufacturer.wire, AcceleratorManufacturer.ofWire⟩ + +instance : Shape AcceleratorManufacturer where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AcceleratorManufacturer.ofWire text + | _ => .error "expected a string" + +inductive AcceleratorName where + | a100 + | a10g + | gaudI_HL_205 + | h100 + | inferentia + | inferentia2 + | k520 + | k80 + | l4 + | l40s + | m60 + | radeoN_PRO_V520 + | t4 + | t4g + | trainium + | trainium2 + | u30 + | v100 + | vu9p +deriving DecidableEq, Repr, Inhabited + +def AcceleratorName.wire : AcceleratorName → String + | .a100 => "a100" + | .a10g => "a10g" + | .gaudI_HL_205 => "gaudi-hl-205" + | .h100 => "h100" + | .inferentia => "inferentia" + | .inferentia2 => "inferentia2" + | .k520 => "k520" + | .k80 => "k80" + | .l4 => "l4" + | .l40s => "l40s" + | .m60 => "m60" + | .radeoN_PRO_V520 => "radeon-pro-v520" + | .t4 => "t4" + | .t4g => "t4g" + | .trainium => "trainium" + | .trainium2 => "trainium2" + | .u30 => "u30" + | .v100 => "v100" + | .vu9p => "vu9p" + +def AcceleratorName.wireValues : List (String × AcceleratorName) := [ + ("a100", .a100), + ("a10g", .a10g), + ("gaudi-hl-205", .gaudI_HL_205), + ("h100", .h100), + ("inferentia", .inferentia), + ("inferentia2", .inferentia2), + ("k520", .k520), + ("k80", .k80), + ("l4", .l4), + ("l40s", .l40s), + ("m60", .m60), + ("radeon-pro-v520", .radeoN_PRO_V520), + ("t4", .t4), + ("t4g", .t4g), + ("trainium", .trainium), + ("trainium2", .trainium2), + ("u30", .u30), + ("v100", .v100), + ("vu9p", .vu9p)] + +def AcceleratorName.ofWire (text : String) : Except String AcceleratorName := + match List.find? (·.1 == text) AcceleratorName.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AcceleratorName has no value {text}" + +instance : Key AcceleratorName := ⟨AcceleratorName.wire, AcceleratorName.ofWire⟩ + +instance : Shape AcceleratorName where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AcceleratorName.ofWire text + | _ => .error "expected a string" + +/-- The minimum and maximum amount of total accelerator memory, in MiB. -/ +structure AcceleratorTotalMemoryMiB where + /-- The maximum amount of accelerator memory, in MiB. -/ + max : Option Int := none + /-- The minimum amount of accelerator memory, in MiB. -/ + min : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceleratorTotalMemoryMiB where + schema := .struct "AcceleratorTotalMemoryMiB" [({ name := "Max", xmlName := some "max", queryName := some "Max" }, .int), + ({ name := "Min", xmlName := some "min", queryName := some "Min" }, .int)] + toValue x := record [putOpt "Max" x.max, putOpt "Min" x.min] + ofValue v := do + let max ← v.opt "Max" + let min ← v.opt "Min" + return { max, min } + +/-- The minimum and maximum amount of total accelerator memory, in MiB. -/ +structure AcceleratorTotalMemoryMiBRequest where + /-- The maximum amount of accelerator memory, in MiB. -/ + max : Option Int := none + /-- The minimum amount of accelerator memory, in MiB. -/ + min : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceleratorTotalMemoryMiBRequest where + schema := .struct "AcceleratorTotalMemoryMiBRequest" [({ name := "Max" }, .int), + ({ name := "Min" }, .int)] + toValue x := record [putOpt "Max" x.max, putOpt "Min" x.min] + ofValue v := do + let max ← v.opt "Max" + let min ← v.opt "Min" + return { max, min } + +inductive AcceleratorType where + | fpga + | gpu + | inference + | media +deriving DecidableEq, Repr, Inhabited + +def AcceleratorType.wire : AcceleratorType → String + | .fpga => "fpga" + | .gpu => "gpu" + | .inference => "inference" + | .media => "media" + +def AcceleratorType.wireValues : List (String × AcceleratorType) := [ + ("fpga", .fpga), + ("gpu", .gpu), + ("inference", .inference), + ("media", .media)] + +def AcceleratorType.ofWire (text : String) : Except String AcceleratorType := + match List.find? (·.1 == text) AcceleratorType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AcceleratorType has no value {text}" + +instance : Key AcceleratorType := ⟨AcceleratorType.wire, AcceleratorType.ofWire⟩ + +instance : Shape AcceleratorType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AcceleratorType.ofWire text + | _ => .error "expected a string" + +structure AcceptCapacityReservationBillingOwnershipRequest where + /-- The ID of the Capacity Reservation for which to accept the request. -/ + capacityReservationId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceptCapacityReservationBillingOwnershipRequest where + schema := .struct "AcceptCapacityReservationBillingOwnershipRequest" [({ name := "CapacityReservationId", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "CapacityReservationId" x.capacityReservationId, putOpt "DryRun" x.dryRun] + ofValue v := do + let capacityReservationId ← v.req "CapacityReservationId" + let dryRun ← v.opt "DryRun" + return { capacityReservationId, dryRun } + +structure AcceptCapacityReservationBillingOwnershipResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceptCapacityReservationBillingOwnershipResult where + schema := .struct "AcceptCapacityReservationBillingOwnershipResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +/-- The result of the exchange and whether it was successful . -/ +structure AcceptReservedInstancesExchangeQuoteResult where + /-- The ID of the successful exchange. -/ + exchangeId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceptReservedInstancesExchangeQuoteResult where + schema := .struct "AcceptReservedInstancesExchangeQuoteResult" [({ name := "ExchangeId", xmlName := some "exchangeId", queryName := some "ExchangeId" }, .string)] + toValue x := record [putOpt "ExchangeId" x.exchangeId] + ofValue v := do + let exchangeId ← v.opt "ExchangeId" + return { exchangeId } + +structure AcceptTransitGatewayClientVpnAttachmentRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Transit Gateway attachment. -/ + transitGatewayAttachmentId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceptTransitGatewayClientVpnAttachmentRequest where + schema := .struct "AcceptTransitGatewayClientVpnAttachmentRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayAttachmentId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + return { dryRun, transitGatewayAttachmentId } + +structure AcceptTransitGatewayMulticastDomainAssociationsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the subnets to associate with the transit gateway multicast domain. -/ + subnetIds : Option (List String) := none + /-- The ID of the transit gateway attachment. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the transit gateway multicast domain. -/ + transitGatewayMulticastDomainId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceptTransitGatewayMulticastDomainAssociationsRequest where + schema := .struct "AcceptTransitGatewayMulticastDomainAssociationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "SubnetIds" }, (.list .string "item")), + ({ name := "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayMulticastDomainId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "SubnetIds" x.subnetIds, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, putOpt "TransitGatewayMulticastDomainId" x.transitGatewayMulticastDomainId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let subnetIds ← v.opt "SubnetIds" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayMulticastDomainId ← v.opt "TransitGatewayMulticastDomainId" + return { dryRun, subnetIds, transitGatewayAttachmentId, transitGatewayMulticastDomainId } + +structure AcceptTransitGatewayPeeringAttachmentRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the transit gateway attachment. -/ + transitGatewayAttachmentId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceptTransitGatewayPeeringAttachmentRequest where + schema := .struct "AcceptTransitGatewayPeeringAttachmentRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayAttachmentId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + return { dryRun, transitGatewayAttachmentId } + +structure AcceptTransitGatewayVpcAttachmentRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceptTransitGatewayVpcAttachmentRequest where + schema := .struct "AcceptTransitGatewayVpcAttachmentRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayAttachmentId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + return { dryRun, transitGatewayAttachmentId } + +structure AcceptVpcEndpointConnectionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the VPC endpoint service. -/ + serviceId : String + /-- The IDs of the transit gateway attachments to accept. -/ + transitGatewayAttachmentIds : Option (List String) := none + /-- The IDs of the interface VPC endpoints. -/ + vpcEndpointIds : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceptVpcEndpointConnectionsRequest where + schema := .struct "AcceptVpcEndpointConnectionsRequest" [({ name := "DryRun" }, .bool), + ({ name := "ServiceId", required := true }, .string), + ({ name := "TransitGatewayAttachmentIds", xmlName := some "TransitGatewayAttachmentId" }, (.list .string "item")), + ({ name := "VpcEndpointIds", required := true, xmlName := some "VpcEndpointId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "ServiceId" x.serviceId, putOpt "TransitGatewayAttachmentIds" x.transitGatewayAttachmentIds, put "VpcEndpointIds" x.vpcEndpointIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let serviceId ← v.req "ServiceId" + let transitGatewayAttachmentIds ← v.opt "TransitGatewayAttachmentIds" + let vpcEndpointIds ← v.req "VpcEndpointIds" + return { dryRun, serviceId, transitGatewayAttachmentIds, vpcEndpointIds } + +structure AcceptVpcPeeringConnectionRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the VPC peering connection. -/ + vpcPeeringConnectionId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceptVpcPeeringConnectionRequest where + schema := .struct "AcceptVpcPeeringConnectionRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "VpcPeeringConnectionId", required := true, xmlName := some "vpcPeeringConnectionId", queryName := some "VpcPeeringConnectionId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VpcPeeringConnectionId" x.vpcPeeringConnectionId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let vpcPeeringConnectionId ← v.req "VpcPeeringConnectionId" + return { dryRun, vpcPeeringConnectionId } + +inductive AccountAttributeName where + | default_vpc + | supported_platforms +deriving DecidableEq, Repr, Inhabited + +def AccountAttributeName.wire : AccountAttributeName → String + | .default_vpc => "default-vpc" + | .supported_platforms => "supported-platforms" + +def AccountAttributeName.wireValues : List (String × AccountAttributeName) := [ + ("default-vpc", .default_vpc), + ("supported-platforms", .supported_platforms)] + +def AccountAttributeName.ofWire (text : String) : Except String AccountAttributeName := + match List.find? (·.1 == text) AccountAttributeName.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AccountAttributeName has no value {text}" + +instance : Key AccountAttributeName := ⟨AccountAttributeName.wire, AccountAttributeName.ofWire⟩ + +instance : Shape AccountAttributeName where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AccountAttributeName.ofWire text + | _ => .error "expected a string" + +/-- Describes a value of an account attribute. -/ +structure AccountAttributeValue where + /-- The value of the attribute. -/ + attributeValue : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AccountAttributeValue where + schema := .struct "AccountAttributeValue" [({ name := "AttributeValue", xmlName := some "attributeValue", queryName := some "AttributeValue" }, .string)] + toValue x := record [putOpt "AttributeValue" x.attributeValue] + ofValue v := do + let attributeValue ← v.opt "AttributeValue" + return { attributeValue } + +inductive AccountVpcEncryptionControlMode where + | attempt_enforce + | attempt_monitor + | unmanaged +deriving DecidableEq, Repr, Inhabited + +def AccountVpcEncryptionControlMode.wire : AccountVpcEncryptionControlMode → String + | .attempt_enforce => "attempt-enforce" + | .attempt_monitor => "attempt-monitor" + | .unmanaged => "unmanaged" + +def AccountVpcEncryptionControlMode.wireValues : List (String × AccountVpcEncryptionControlMode) := [ + ("attempt-enforce", .attempt_enforce), + ("attempt-monitor", .attempt_monitor), + ("unmanaged", .unmanaged)] + +def AccountVpcEncryptionControlMode.ofWire (text : String) : Except String AccountVpcEncryptionControlMode := + match List.find? (·.1 == text) AccountVpcEncryptionControlMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AccountVpcEncryptionControlMode has no value {text}" + +instance : Key AccountVpcEncryptionControlMode := ⟨AccountVpcEncryptionControlMode.wire, AccountVpcEncryptionControlMode.ofWire⟩ + +instance : Shape AccountVpcEncryptionControlMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AccountVpcEncryptionControlMode.ofWire text + | _ => .error "expected a string" + +inductive AccountVpcEncryptionControlState where + | default_state + | transitions_failed + | transitions_in_progress + | transitions_partially_successful + | transitions_successful +deriving DecidableEq, Repr, Inhabited + +def AccountVpcEncryptionControlState.wire : AccountVpcEncryptionControlState → String + | .default_state => "default-state" + | .transitions_failed => "transitions-failed" + | .transitions_in_progress => "transitions-in-progress" + | .transitions_partially_successful => "transitions-partially-successful" + | .transitions_successful => "transitions-successful" + +def AccountVpcEncryptionControlState.wireValues : List (String × AccountVpcEncryptionControlState) := [ + ("default-state", .default_state), + ("transitions-failed", .transitions_failed), + ("transitions-in-progress", .transitions_in_progress), + ("transitions-partially-successful", .transitions_partially_successful), + ("transitions-successful", .transitions_successful)] + +def AccountVpcEncryptionControlState.ofWire (text : String) : Except String AccountVpcEncryptionControlState := + match List.find? (·.1 == text) AccountVpcEncryptionControlState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AccountVpcEncryptionControlState has no value {text}" + +instance : Key AccountVpcEncryptionControlState := ⟨AccountVpcEncryptionControlState.wire, AccountVpcEncryptionControlState.ofWire⟩ + +instance : Shape AccountVpcEncryptionControlState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AccountVpcEncryptionControlState.ofWire text + | _ => .error "expected a string" + +/-- Describes an additional key exchange round negotiated for an active VPN tunnel. -/ +structure ActiveVpnTunnelAdditionalKeyExchange where + /-- The additional key exchange round number. -/ + additionalKeyExchangeRound : Option Int := none + /-- The key exchange method number negotiated for this round. -/ + keyExchangeMethod : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ActiveVpnTunnelAdditionalKeyExchange where + schema := .struct "ActiveVpnTunnelAdditionalKeyExchange" [({ name := "AdditionalKeyExchangeRound", xmlName := some "additionalKeyExchangeRound", queryName := some "AdditionalKeyExchangeRound" }, .int), + ({ name := "KeyExchangeMethod", xmlName := some "keyExchangeMethod", queryName := some "KeyExchangeMethod" }, .int)] + toValue x := record [putOpt "AdditionalKeyExchangeRound" x.additionalKeyExchangeRound, putOpt "KeyExchangeMethod" x.keyExchangeMethod] + ofValue v := do + let additionalKeyExchangeRound ← v.opt "AdditionalKeyExchangeRound" + let keyExchangeMethod ← v.opt "KeyExchangeMethod" + return { additionalKeyExchangeRound, keyExchangeMethod } + +inductive ActivityStatus where + | error + | fulfilled + | pendinG_FULFILLMENT + | pendinG_TERMINATION +deriving DecidableEq, Repr, Inhabited + +def ActivityStatus.wire : ActivityStatus → String + | .error => "error" + | .fulfilled => "fulfilled" + | .pendinG_FULFILLMENT => "pending_fulfillment" + | .pendinG_TERMINATION => "pending_termination" + +def ActivityStatus.wireValues : List (String × ActivityStatus) := [ + ("error", .error), + ("fulfilled", .fulfilled), + ("pending_fulfillment", .pendinG_FULFILLMENT), + ("pending_termination", .pendinG_TERMINATION)] + +def ActivityStatus.ofWire (text : String) : Except String ActivityStatus := + match List.find? (·.1 == text) ActivityStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ActivityStatus has no value {text}" + +instance : Key ActivityStatus := ⟨ActivityStatus.wire, ActivityStatus.ofWire⟩ + +instance : Shape ActivityStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ActivityStatus.ofWire text + | _ => .error "expected a string" + +/-- Add an operating Region to an IPAM. -/ +structure AddIpamOperatingRegion where + /-- The name of the operating Region. -/ + regionName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AddIpamOperatingRegion where + schema := .struct "AddIpamOperatingRegion" [({ name := "RegionName" }, .string)] + toValue x := record [putOpt "RegionName" x.regionName] + ofValue v := do + let regionName ← v.opt "RegionName" + return { regionName } + +/-- Add an Organizational Unit (OU) exclusion to your IPAM. -/ +structure AddIpamOrganizationalUnitExclusion where + /-- An Amazon Web Services Organizations entity path. -/ + organizationsEntityPath : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AddIpamOrganizationalUnitExclusion where + schema := .struct "AddIpamOrganizationalUnitExclusion" [({ name := "OrganizationsEntityPath" }, .string)] + toValue x := record [putOpt "OrganizationsEntityPath" x.organizationsEntityPath] + ofValue v := do + let organizationsEntityPath ← v.opt "OrganizationsEntityPath" + return { organizationsEntityPath } + +/-- An entry for a prefix list. -/ +structure AddPrefixListEntry where + /-- The CIDR block. -/ + cidr : String + /-- A description for the entry. -/ + description : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AddPrefixListEntry where + schema := .struct "AddPrefixListEntry" [({ name := "Cidr", required := true }, .string), + ({ name := "Description" }, .string)] + toValue x := record [put "Cidr" x.cidr, putOpt "Description" x.description] + ofValue v := do + let cidr ← v.req "Cidr" + let description ← v.opt "Description" + return { cidr, description } + +/-- The key exchange method number that is permitted for an additional key exchange round. -/ +structure AdditionalKeyExchangeMethodsListValue where + /-- The key exchange method number. -/ + value : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AdditionalKeyExchangeMethodsListValue where + schema := .struct "AdditionalKeyExchangeMethodsListValue" [({ name := "Value", xmlName := some "value", queryName := some "Value" }, .int)] + toValue x := record [putOpt "Value" x.value] + ofValue v := do + let value ← v.opt "Value" + return { value } + +/-- Specifies a key exchange method number that is permitted for an additional key exchange round. -/ +structure AdditionalKeyExchangeMethodsRequestListValue where + /-- The key exchange method number. -/ + value : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AdditionalKeyExchangeMethodsRequestListValue where + schema := .struct "AdditionalKeyExchangeMethodsRequestListValue" [({ name := "Value" }, .int)] + toValue x := record [putOpt "Value" x.value] + ofValue v := do + let value ← v.opt "Value" + return { value } + +inductive AdditionalKeyExchangeRequirement where + | optional + | required +deriving DecidableEq, Repr, Inhabited + +def AdditionalKeyExchangeRequirement.wire : AdditionalKeyExchangeRequirement → String + | .optional => "optional" + | .required => "required" + +def AdditionalKeyExchangeRequirement.wireValues : List (String × AdditionalKeyExchangeRequirement) := [ + ("optional", .optional), + ("required", .required)] + +def AdditionalKeyExchangeRequirement.ofWire (text : String) : Except String AdditionalKeyExchangeRequirement := + match List.find? (·.1 == text) AdditionalKeyExchangeRequirement.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AdditionalKeyExchangeRequirement has no value {text}" + +instance : Key AdditionalKeyExchangeRequirement := ⟨AdditionalKeyExchangeRequirement.wire, AdditionalKeyExchangeRequirement.ofWire⟩ + +instance : Shape AdditionalKeyExchangeRequirement where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AdditionalKeyExchangeRequirement.ofWire text + | _ => .error "expected a string" + +inductive AddressAttributeName where + | domain_name +deriving DecidableEq, Repr, Inhabited + +def AddressAttributeName.wire : AddressAttributeName → String + | .domain_name => "domain-name" + +def AddressAttributeName.wireValues : List (String × AddressAttributeName) := [ + ("domain-name", .domain_name)] + +def AddressAttributeName.ofWire (text : String) : Except String AddressAttributeName := + match List.find? (·.1 == text) AddressAttributeName.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AddressAttributeName has no value {text}" + +instance : Key AddressAttributeName := ⟨AddressAttributeName.wire, AddressAttributeName.ofWire⟩ + +instance : Shape AddressAttributeName where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AddressAttributeName.ofWire text + | _ => .error "expected a string" + +inductive AddressFamily where + | ipv4 + | ipv6 +deriving DecidableEq, Repr, Inhabited + +def AddressFamily.wire : AddressFamily → String + | .ipv4 => "ipv4" + | .ipv6 => "ipv6" + +def AddressFamily.wireValues : List (String × AddressFamily) := [ + ("ipv4", .ipv4), + ("ipv6", .ipv6)] + +def AddressFamily.ofWire (text : String) : Except String AddressFamily := + match List.find? (·.1 == text) AddressFamily.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AddressFamily has no value {text}" + +instance : Key AddressFamily := ⟨AddressFamily.wire, AddressFamily.ofWire⟩ + +instance : Shape AddressFamily where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AddressFamily.ofWire text + | _ => .error "expected a string" + +inductive AddressTransferStatus where + | accepted + | disabled + | pending +deriving DecidableEq, Repr, Inhabited + +def AddressTransferStatus.wire : AddressTransferStatus → String + | .accepted => "accepted" + | .disabled => "disabled" + | .pending => "pending" + +def AddressTransferStatus.wireValues : List (String × AddressTransferStatus) := [ + ("accepted", .accepted), + ("disabled", .disabled), + ("pending", .pending)] + +def AddressTransferStatus.ofWire (text : String) : Except String AddressTransferStatus := + match List.find? (·.1 == text) AddressTransferStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AddressTransferStatus has no value {text}" + +instance : Key AddressTransferStatus := ⟨AddressTransferStatus.wire, AddressTransferStatus.ofWire⟩ + +instance : Shape AddressTransferStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AddressTransferStatus.ofWire text + | _ => .error "expected a string" + +structure AdvertiseByoipCidrRequest where + /-- The public 2-byte or 4-byte ASN that you want to advertise. -/ + asn : Option String := none + /-- The address range, in CIDR notation. -/ + cidr : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- If you have Local Zones enabled, you can choose a network border group for Local Zones when you provision and advertise a BYOIPv4 CIDR. -/ + networkBorderGroup : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AdvertiseByoipCidrRequest where + schema := .struct "AdvertiseByoipCidrRequest" [({ name := "Asn" }, .string), + ({ name := "Cidr", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "NetworkBorderGroup" }, .string)] + toValue x := record [putOpt "Asn" x.asn, put "Cidr" x.cidr, putOpt "DryRun" x.dryRun, putOpt "NetworkBorderGroup" x.networkBorderGroup] + ofValue v := do + let asn ← v.opt "Asn" + let cidr ← v.req "Cidr" + let dryRun ← v.opt "DryRun" + let networkBorderGroup ← v.opt "NetworkBorderGroup" + return { asn, cidr, dryRun, networkBorderGroup } + +inductive Affinity where + | default + | host +deriving DecidableEq, Repr, Inhabited + +def Affinity.wire : Affinity → String + | .default => "default" + | .host => "host" + +def Affinity.wireValues : List (String × Affinity) := [ + ("default", .default), + ("host", .host)] + +def Affinity.ofWire (text : String) : Except String Affinity := + match List.find? (·.1 == text) Affinity.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Affinity has no value {text}" + +instance : Key Affinity := ⟨Affinity.wire, Affinity.ofWire⟩ + +instance : Shape Affinity where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Affinity.ofWire text + | _ => .error "expected a string" + +inductive AggregationStatusEnum where + | excluded + | included +deriving DecidableEq, Repr, Inhabited + +def AggregationStatusEnum.wire : AggregationStatusEnum → String + | .excluded => "excluded" + | .included => "included" + +def AggregationStatusEnum.wireValues : List (String × AggregationStatusEnum) := [ + ("excluded", .excluded), + ("included", .included)] + +def AggregationStatusEnum.ofWire (text : String) : Except String AggregationStatusEnum := + match List.find? (·.1 == text) AggregationStatusEnum.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AggregationStatusEnum has no value {text}" + +instance : Key AggregationStatusEnum := ⟨AggregationStatusEnum.wire, AggregationStatusEnum.ofWire⟩ + +instance : Shape AggregationStatusEnum where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AggregationStatusEnum.ofWire text + | _ => .error "expected a string" + +/-- Contains the output of AllocateHosts. -/ +structure AllocateHostsResult where + /-- The ID of the allocated Dedicated Host. -/ + hostIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AllocateHostsResult where + schema := .struct "AllocateHostsResult" [({ name := "HostIds", xmlName := some "hostIdSet", queryName := some "HostIdSet" }, (.list .string "item"))] + toValue x := record [putOpt "HostIds" x.hostIds] + ofValue v := do + let hostIds ← v.opt "HostIds" + return { hostIds } + +inductive AllocationState where + | available + | configuring + | pending + | permanent_failure + | released + | released_permanent_failure + | under_assessment +deriving DecidableEq, Repr, Inhabited + +def AllocationState.wire : AllocationState → String + | .available => "available" + | .configuring => "configuring" + | .pending => "pending" + | .permanent_failure => "permanent-failure" + | .released => "released" + | .released_permanent_failure => "released-permanent-failure" + | .under_assessment => "under-assessment" + +def AllocationState.wireValues : List (String × AllocationState) := [ + ("available", .available), + ("configuring", .configuring), + ("pending", .pending), + ("permanent-failure", .permanent_failure), + ("released", .released), + ("released-permanent-failure", .released_permanent_failure), + ("under-assessment", .under_assessment)] + +def AllocationState.ofWire (text : String) : Except String AllocationState := + match List.find? (·.1 == text) AllocationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AllocationState has no value {text}" + +instance : Key AllocationState := ⟨AllocationState.wire, AllocationState.ofWire⟩ + +instance : Shape AllocationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AllocationState.ofWire text + | _ => .error "expected a string" + +inductive AllocationStrategy where + | capacitY_OPTIMIZED + | capacitY_OPTIMIZED_PRIORITIZED + | diversified + | lowesT_PRICE + | pricE_CAPACITY_OPTIMIZED +deriving DecidableEq, Repr, Inhabited + +def AllocationStrategy.wire : AllocationStrategy → String + | .capacitY_OPTIMIZED => "capacityOptimized" + | .capacitY_OPTIMIZED_PRIORITIZED => "capacityOptimizedPrioritized" + | .diversified => "diversified" + | .lowesT_PRICE => "lowestPrice" + | .pricE_CAPACITY_OPTIMIZED => "priceCapacityOptimized" + +def AllocationStrategy.wireValues : List (String × AllocationStrategy) := [ + ("capacityOptimized", .capacitY_OPTIMIZED), + ("capacityOptimizedPrioritized", .capacitY_OPTIMIZED_PRIORITIZED), + ("diversified", .diversified), + ("lowestPrice", .lowesT_PRICE), + ("priceCapacityOptimized", .pricE_CAPACITY_OPTIMIZED)] + +def AllocationStrategy.ofWire (text : String) : Except String AllocationStrategy := + match List.find? (·.1 == text) AllocationStrategy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AllocationStrategy has no value {text}" + +instance : Key AllocationStrategy := ⟨AllocationStrategy.wire, AllocationStrategy.ofWire⟩ + +instance : Shape AllocationStrategy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AllocationStrategy.ofWire text + | _ => .error "expected a string" + +inductive AllocationType where + | cancelling + | future + | used +deriving DecidableEq, Repr, Inhabited + +def AllocationType.wire : AllocationType → String + | .cancelling => "cancelling" + | .future => "future" + | .used => "used" + +def AllocationType.wireValues : List (String × AllocationType) := [ + ("cancelling", .cancelling), + ("future", .future), + ("used", .used)] + +def AllocationType.ofWire (text : String) : Except String AllocationType := + match List.find? (·.1 == text) AllocationType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AllocationType has no value {text}" + +instance : Key AllocationType := ⟨AllocationType.wire, AllocationType.ofWire⟩ + +instance : Shape AllocationType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AllocationType.ofWire text + | _ => .error "expected a string" + +inductive AllowedImagesSettingsDisabledState where + | disabled +deriving DecidableEq, Repr, Inhabited + +def AllowedImagesSettingsDisabledState.wire : AllowedImagesSettingsDisabledState → String + | .disabled => "disabled" + +def AllowedImagesSettingsDisabledState.wireValues : List (String × AllowedImagesSettingsDisabledState) := [ + ("disabled", .disabled)] + +def AllowedImagesSettingsDisabledState.ofWire (text : String) : Except String AllowedImagesSettingsDisabledState := + match List.find? (·.1 == text) AllowedImagesSettingsDisabledState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AllowedImagesSettingsDisabledState has no value {text}" + +instance : Key AllowedImagesSettingsDisabledState := ⟨AllowedImagesSettingsDisabledState.wire, AllowedImagesSettingsDisabledState.ofWire⟩ + +instance : Shape AllowedImagesSettingsDisabledState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AllowedImagesSettingsDisabledState.ofWire text + | _ => .error "expected a string" + +inductive AllowedImagesSettingsEnabledState where + | audit_mode + | enabled +deriving DecidableEq, Repr, Inhabited + +def AllowedImagesSettingsEnabledState.wire : AllowedImagesSettingsEnabledState → String + | .audit_mode => "audit-mode" + | .enabled => "enabled" + +def AllowedImagesSettingsEnabledState.wireValues : List (String × AllowedImagesSettingsEnabledState) := [ + ("audit-mode", .audit_mode), + ("enabled", .enabled)] + +def AllowedImagesSettingsEnabledState.ofWire (text : String) : Except String AllowedImagesSettingsEnabledState := + match List.find? (·.1 == text) AllowedImagesSettingsEnabledState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AllowedImagesSettingsEnabledState has no value {text}" + +instance : Key AllowedImagesSettingsEnabledState := ⟨AllowedImagesSettingsEnabledState.wire, AllowedImagesSettingsEnabledState.ofWire⟩ + +instance : Shape AllowedImagesSettingsEnabledState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AllowedImagesSettingsEnabledState.ofWire text + | _ => .error "expected a string" + +inductive AllowsMultipleInstanceTypes where + | off + | on +deriving DecidableEq, Repr, Inhabited + +def AllowsMultipleInstanceTypes.wire : AllowsMultipleInstanceTypes → String + | .off => "off" + | .on => "on" + +def AllowsMultipleInstanceTypes.wireValues : List (String × AllowsMultipleInstanceTypes) := [ + ("off", .off), + ("on", .on)] + +def AllowsMultipleInstanceTypes.ofWire (text : String) : Except String AllowsMultipleInstanceTypes := + match List.find? (·.1 == text) AllowsMultipleInstanceTypes.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AllowsMultipleInstanceTypes has no value {text}" + +instance : Key AllowsMultipleInstanceTypes := ⟨AllowsMultipleInstanceTypes.wire, AllowsMultipleInstanceTypes.ofWire⟩ + +instance : Shape AllowsMultipleInstanceTypes where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AllowsMultipleInstanceTypes.ofWire text + | _ => .error "expected a string" + +/-- Describes an potential intermediate component of a feasible path. -/ +structure AlternatePathHint where + /-- The Amazon Resource Name (ARN) of the component. -/ + componentArn : Option String := none + /-- The ID of the component. -/ + componentId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AlternatePathHint where + schema := .struct "AlternatePathHint" [({ name := "ComponentArn", xmlName := some "componentArn", queryName := some "ComponentArn" }, .string), + ({ name := "ComponentId", xmlName := some "componentId", queryName := some "ComponentId" }, .string)] + toValue x := record [putOpt "ComponentArn" x.componentArn, putOpt "ComponentId" x.componentId] + ofValue v := do + let componentArn ← v.opt "ComponentArn" + let componentId ← v.opt "ComponentId" + return { componentArn, componentId } + +inductive AmdSevSnp where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def AmdSevSnp.wire : AmdSevSnp → String + | .disabled => "disabled" + | .enabled => "enabled" + +def AmdSevSnp.wireValues : List (String × AmdSevSnp) := [ + ("disabled", .disabled), + ("enabled", .enabled)] + +def AmdSevSnp.ofWire (text : String) : Except String AmdSevSnp := + match List.find? (·.1 == text) AmdSevSnp.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AmdSevSnp has no value {text}" + +instance : Key AmdSevSnp := ⟨AmdSevSnp.wire, AmdSevSnp.ofWire⟩ + +instance : Shape AmdSevSnp where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AmdSevSnp.ofWire text + | _ => .error "expected a string" + +inductive AmdSevSnpSpecification where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def AmdSevSnpSpecification.wire : AmdSevSnpSpecification → String + | .disabled => "disabled" + | .enabled => "enabled" + +def AmdSevSnpSpecification.wireValues : List (String × AmdSevSnpSpecification) := [ + ("disabled", .disabled), + ("enabled", .enabled)] + +def AmdSevSnpSpecification.ofWire (text : String) : Except String AmdSevSnpSpecification := + match List.find? (·.1 == text) AmdSevSnpSpecification.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AmdSevSnpSpecification has no value {text}" + +instance : Key AmdSevSnpSpecification := ⟨AmdSevSnpSpecification.wire, AmdSevSnpSpecification.ofWire⟩ + +instance : Shape AmdSevSnpSpecification where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AmdSevSnpSpecification.ofWire text + | _ => .error "expected a string" + +/-- Describes a path component. -/ +structure AnalysisComponent where + /-- The Amazon Resource Name (ARN) of the component. -/ + arn : Option String := none + /-- The ID of the component. -/ + id : Option String := none + /-- The name of the analysis component. -/ + name : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AnalysisComponent where + schema := .struct "AnalysisComponent" [({ name := "Arn", xmlName := some "arn", queryName := some "Arn" }, .string), + ({ name := "Id", xmlName := some "id", queryName := some "Id" }, .string), + ({ name := "Name", xmlName := some "name", queryName := some "Name" }, .string)] + toValue x := record [putOpt "Arn" x.arn, putOpt "Id" x.id, putOpt "Name" x.name] + ofValue v := do + let arn ← v.opt "Arn" + let id ← v.opt "Id" + let name ← v.opt "Name" + return { arn, id, name } + +/-- Describes a load balancer listener. -/ +structure AnalysisLoadBalancerListener where + /-- [Classic Load Balancers] The back-end port for the listener. -/ + instancePort : Option Int := none + /-- The port on which the load balancer is listening. -/ + loadBalancerPort : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AnalysisLoadBalancerListener where + schema := .struct "AnalysisLoadBalancerListener" [({ name := "InstancePort", xmlName := some "instancePort", queryName := some "InstancePort" }, .int), + ({ name := "LoadBalancerPort", xmlName := some "loadBalancerPort", queryName := some "LoadBalancerPort" }, .int)] + toValue x := record [putOpt "InstancePort" x.instancePort, putOpt "LoadBalancerPort" x.loadBalancerPort] + ofValue v := do + let instancePort ← v.opt "InstancePort" + let loadBalancerPort ← v.opt "LoadBalancerPort" + return { instancePort, loadBalancerPort } + +/-- Describes a route table route. -/ +structure AnalysisRouteTableRoute where + /-- The ID of a carrier gateway. -/ + carrierGatewayId : Option String := none + /-- The Amazon Resource Name (ARN) of a core network. -/ + coreNetworkArn : Option String := none + /-- The destination IPv4 address, in CIDR notation. -/ + destinationCidr : Option String := none + /-- The prefix of the Amazon Web Services service. -/ + destinationPrefixListId : Option String := none + /-- The ID of an egress-only internet gateway. -/ + egressOnlyInternetGatewayId : Option String := none + /-- The ID of the gateway, such as an internet gateway or virtual private gateway. -/ + gatewayId : Option String := none + /-- The ID of the instance, such as a NAT instance. -/ + instanceId : Option String := none + /-- The ID of a local gateway. -/ + localGatewayId : Option String := none + /-- The ID of a NAT gateway. -/ + natGatewayId : Option String := none + /-- The ID of a network interface. -/ + networkInterfaceId : Option String := none + /-- Describes how the route was created. -/ + origin : Option String := none + /-- The state. -/ + state : Option String := none + /-- The ID of a transit gateway. -/ + transitGatewayId : Option String := none + /-- The ID of a VPC peering connection. -/ + vpcPeeringConnectionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AnalysisRouteTableRoute where + schema := .struct "AnalysisRouteTableRoute" [({ name := "CarrierGatewayId", xmlName := some "carrierGatewayId", queryName := some "CarrierGatewayId" }, .string), + ({ name := "CoreNetworkArn", xmlName := some "coreNetworkArn", queryName := some "CoreNetworkArn" }, .string), + ({ name := "DestinationCidr", xmlName := some "destinationCidr", queryName := some "DestinationCidr" }, .string), + ({ name := "DestinationPrefixListId", xmlName := some "destinationPrefixListId", queryName := some "DestinationPrefixListId" }, .string), + ({ name := "EgressOnlyInternetGatewayId", xmlName := some "egressOnlyInternetGatewayId", queryName := some "EgressOnlyInternetGatewayId" }, .string), + ({ name := "GatewayId", xmlName := some "gatewayId", queryName := some "GatewayId" }, .string), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "LocalGatewayId", xmlName := some "localGatewayId", queryName := some "LocalGatewayId" }, .string), + ({ name := "NatGatewayId", xmlName := some "natGatewayId", queryName := some "NatGatewayId" }, .string), + ({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "Origin", xmlName := some "origin", queryName := some "Origin" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, .string), + ({ name := "TransitGatewayId", xmlName := some "transitGatewayId", queryName := some "TransitGatewayId" }, .string), + ({ name := "VpcPeeringConnectionId", xmlName := some "vpcPeeringConnectionId", queryName := some "VpcPeeringConnectionId" }, .string)] + toValue x := record [putOpt "CarrierGatewayId" x.carrierGatewayId, putOpt "CoreNetworkArn" x.coreNetworkArn, putOpt "DestinationCidr" x.destinationCidr, putOpt "DestinationPrefixListId" x.destinationPrefixListId, putOpt "EgressOnlyInternetGatewayId" x.egressOnlyInternetGatewayId, putOpt "GatewayId" x.gatewayId, putOpt "InstanceId" x.instanceId, putOpt "LocalGatewayId" x.localGatewayId, putOpt "NatGatewayId" x.natGatewayId, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "Origin" x.origin, putOpt "State" x.state, putOpt "TransitGatewayId" x.transitGatewayId, putOpt "VpcPeeringConnectionId" x.vpcPeeringConnectionId] + ofValue v := do + let carrierGatewayId ← v.opt "CarrierGatewayId" + let coreNetworkArn ← v.opt "CoreNetworkArn" + let destinationCidr ← v.opt "DestinationCidr" + let destinationPrefixListId ← v.opt "DestinationPrefixListId" + let egressOnlyInternetGatewayId ← v.opt "EgressOnlyInternetGatewayId" + let gatewayId ← v.opt "GatewayId" + let instanceId ← v.opt "InstanceId" + let localGatewayId ← v.opt "LocalGatewayId" + let natGatewayId ← v.opt "NatGatewayId" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let origin ← v.opt "Origin" + let state ← v.opt "State" + let transitGatewayId ← v.opt "TransitGatewayId" + let vpcPeeringConnectionId ← v.opt "VpcPeeringConnectionId" + return { carrierGatewayId, coreNetworkArn, destinationCidr, destinationPrefixListId, egressOnlyInternetGatewayId, gatewayId, instanceId, localGatewayId, natGatewayId, networkInterfaceId, origin, state, transitGatewayId, vpcPeeringConnectionId } + +inductive AnalysisStatus where + | failed + | running + | succeeded +deriving DecidableEq, Repr, Inhabited + +def AnalysisStatus.wire : AnalysisStatus → String + | .failed => "failed" + | .running => "running" + | .succeeded => "succeeded" + +def AnalysisStatus.wireValues : List (String × AnalysisStatus) := [ + ("failed", .failed), + ("running", .running), + ("succeeded", .succeeded)] + +def AnalysisStatus.ofWire (text : String) : Except String AnalysisStatus := + match List.find? (·.1 == text) AnalysisStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AnalysisStatus has no value {text}" + +instance : Key AnalysisStatus := ⟨AnalysisStatus.wire, AnalysisStatus.ofWire⟩ + +instance : Shape AnalysisStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AnalysisStatus.ofWire text + | _ => .error "expected a string" + +inductive ApplianceModeSupportValue where + | disable + | enable +deriving DecidableEq, Repr, Inhabited + +def ApplianceModeSupportValue.wire : ApplianceModeSupportValue → String + | .disable => "disable" + | .enable => "enable" + +def ApplianceModeSupportValue.wireValues : List (String × ApplianceModeSupportValue) := [ + ("disable", .disable), + ("enable", .enable)] + +def ApplianceModeSupportValue.ofWire (text : String) : Except String ApplianceModeSupportValue := + match List.find? (·.1 == text) ApplianceModeSupportValue.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ApplianceModeSupportValue has no value {text}" + +instance : Key ApplianceModeSupportValue := ⟨ApplianceModeSupportValue.wire, ApplianceModeSupportValue.ofWire⟩ + +instance : Shape ApplianceModeSupportValue where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ApplianceModeSupportValue.ofWire text + | _ => .error "expected a string" + +inductive ApplicationStatusCheckEnum where + | failed + | initializing + | insufficienT_DATA + | noT_APPLICABLE + | passed +deriving DecidableEq, Repr, Inhabited + +def ApplicationStatusCheckEnum.wire : ApplicationStatusCheckEnum → String + | .failed => "failed" + | .initializing => "initializing" + | .insufficienT_DATA => "insufficient-data" + | .noT_APPLICABLE => "not-applicable" + | .passed => "passed" + +def ApplicationStatusCheckEnum.wireValues : List (String × ApplicationStatusCheckEnum) := [ + ("failed", .failed), + ("initializing", .initializing), + ("insufficient-data", .insufficienT_DATA), + ("not-applicable", .noT_APPLICABLE), + ("passed", .passed)] + +def ApplicationStatusCheckEnum.ofWire (text : String) : Except String ApplicationStatusCheckEnum := + match List.find? (·.1 == text) ApplicationStatusCheckEnum.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ApplicationStatusCheckEnum has no value {text}" + +instance : Key ApplicationStatusCheckEnum := ⟨ApplicationStatusCheckEnum.wire, ApplicationStatusCheckEnum.ofWire⟩ + +instance : Shape ApplicationStatusCheckEnum where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ApplicationStatusCheckEnum.ofWire text + | _ => .error "expected a string" + +inductive ApplicationStatusEnum where + | impaired + | initializing + | insufficienT_DATA + | noT_APPLICABLE + | ok + | suppressed +deriving DecidableEq, Repr, Inhabited + +def ApplicationStatusEnum.wire : ApplicationStatusEnum → String + | .impaired => "impaired" + | .initializing => "initializing" + | .insufficienT_DATA => "insufficient-data" + | .noT_APPLICABLE => "not-applicable" + | .ok => "ok" + | .suppressed => "suppressed" + +def ApplicationStatusEnum.wireValues : List (String × ApplicationStatusEnum) := [ + ("impaired", .impaired), + ("initializing", .initializing), + ("insufficient-data", .insufficienT_DATA), + ("not-applicable", .noT_APPLICABLE), + ("ok", .ok), + ("suppressed", .suppressed)] + +def ApplicationStatusEnum.ofWire (text : String) : Except String ApplicationStatusEnum := + match List.find? (·.1 == text) ApplicationStatusEnum.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ApplicationStatusEnum has no value {text}" + +instance : Key ApplicationStatusEnum := ⟨ApplicationStatusEnum.wire, ApplicationStatusEnum.ofWire⟩ + +instance : Shape ApplicationStatusEnum where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ApplicationStatusEnum.ofWire text + | _ => .error "expected a string" + +/-- Describes the reason for an application status check result. -/ +structure ApplicationStatusReason where + /-- The reason code for the application status check result. -/ + code : Option String := none + /-- The protocol used for the health check. -/ + protocol : Option String := none + /-- The HTTP status code returned by the health check. -/ + statusCode : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ApplicationStatusReason where + schema := .struct "ApplicationStatusReason" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, .string), + ({ name := "Protocol", xmlName := some "protocol", queryName := some "Protocol" }, .string), + ({ name := "StatusCode", xmlName := some "statusCode", queryName := some "StatusCode" }, .int)] + toValue x := record [putOpt "Code" x.code, putOpt "Protocol" x.protocol, putOpt "StatusCode" x.statusCode] + ofValue v := do + let code ← v.opt "Code" + let protocol ← v.opt "Protocol" + let statusCode ← v.opt "StatusCode" + return { code, protocol, statusCode } + +inductive ApplyCancellationCharges where + | commitmenT_WIND_DOWN +deriving DecidableEq, Repr, Inhabited + +def ApplyCancellationCharges.wire : ApplyCancellationCharges → String + | .commitmenT_WIND_DOWN => "commitment-wind-down" + +def ApplyCancellationCharges.wireValues : List (String × ApplyCancellationCharges) := [ + ("commitment-wind-down", .commitmenT_WIND_DOWN)] + +def ApplyCancellationCharges.ofWire (text : String) : Except String ApplyCancellationCharges := + match List.find? (·.1 == text) ApplyCancellationCharges.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ApplyCancellationCharges has no value {text}" + +instance : Key ApplyCancellationCharges := ⟨ApplyCancellationCharges.wire, ApplyCancellationCharges.ofWire⟩ + +instance : Shape ApplyCancellationCharges where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ApplyCancellationCharges.ofWire text + | _ => .error "expected a string" + +structure ApplySecurityGroupsToClientVpnTargetNetworkRequest where + /-- The ID of the Client VPN endpoint. -/ + clientVpnEndpointId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the security groups to apply to the associated target network. -/ + securityGroupIds : (List String) + /-- The ID of the VPC in which the associated target network is located. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ApplySecurityGroupsToClientVpnTargetNetworkRequest where + schema := .struct "ApplySecurityGroupsToClientVpnTargetNetworkRequest" [({ name := "ClientVpnEndpointId", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "SecurityGroupIds", required := true, xmlName := some "SecurityGroupId" }, (.list .string "item")), + ({ name := "VpcId", required := true }, .string)] + toValue x := record [put "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "DryRun" x.dryRun, put "SecurityGroupIds" x.securityGroupIds, put "VpcId" x.vpcId] + ofValue v := do + let clientVpnEndpointId ← v.req "ClientVpnEndpointId" + let dryRun ← v.opt "DryRun" + let securityGroupIds ← v.req "SecurityGroupIds" + let vpcId ← v.req "VpcId" + return { clientVpnEndpointId, dryRun, securityGroupIds, vpcId } + +structure ApplySecurityGroupsToClientVpnTargetNetworkResult where + /-- The IDs of the applied security groups. -/ + securityGroupIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ApplySecurityGroupsToClientVpnTargetNetworkResult where + schema := .struct "ApplySecurityGroupsToClientVpnTargetNetworkResult" [({ name := "SecurityGroupIds", xmlName := some "securityGroupIds", queryName := some "SecurityGroupIds" }, (.list .string "item"))] + toValue x := record [putOpt "SecurityGroupIds" x.securityGroupIds] + ofValue v := do + let securityGroupIds ← v.opt "SecurityGroupIds" + return { securityGroupIds } + +inductive ArchitectureType where + | arm64 + | arm64_mac + | i386 + | x86_64 + | x86_64_mac +deriving DecidableEq, Repr, Inhabited + +def ArchitectureType.wire : ArchitectureType → String + | .arm64 => "arm64" + | .arm64_mac => "arm64_mac" + | .i386 => "i386" + | .x86_64 => "x86_64" + | .x86_64_mac => "x86_64_mac" + +def ArchitectureType.wireValues : List (String × ArchitectureType) := [ + ("arm64", .arm64), + ("arm64_mac", .arm64_mac), + ("i386", .i386), + ("x86_64", .x86_64), + ("x86_64_mac", .x86_64_mac)] + +def ArchitectureType.ofWire (text : String) : Except String ArchitectureType := + match List.find? (·.1 == text) ArchitectureType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ArchitectureType has no value {text}" + +instance : Key ArchitectureType := ⟨ArchitectureType.wire, ArchitectureType.ofWire⟩ + +instance : Shape ArchitectureType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ArchitectureType.ofWire text + | _ => .error "expected a string" + +inductive ArchitectureValues where + | arm64 + | arm64_mac + | i386 + | x86_64 + | x86_64_mac +deriving DecidableEq, Repr, Inhabited + +def ArchitectureValues.wire : ArchitectureValues → String + | .arm64 => "arm64" + | .arm64_mac => "arm64_mac" + | .i386 => "i386" + | .x86_64 => "x86_64" + | .x86_64_mac => "x86_64_mac" + +def ArchitectureValues.wireValues : List (String × ArchitectureValues) := [ + ("arm64", .arm64), + ("arm64_mac", .arm64_mac), + ("i386", .i386), + ("x86_64", .x86_64), + ("x86_64_mac", .x86_64_mac)] + +def ArchitectureValues.ofWire (text : String) : Except String ArchitectureValues := + match List.find? (·.1 == text) ArchitectureValues.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ArchitectureValues has no value {text}" + +instance : Key ArchitectureValues := ⟨ArchitectureValues.wire, ArchitectureValues.ofWire⟩ + +instance : Shape ArchitectureValues where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ArchitectureValues.ofWire text + | _ => .error "expected a string" + +inductive AsnAssociationState where + | associated + | disassociated + | failed_association + | failed_disassociation + | pending_association + | pending_disassociation +deriving DecidableEq, Repr, Inhabited + +def AsnAssociationState.wire : AsnAssociationState → String + | .associated => "associated" + | .disassociated => "disassociated" + | .failed_association => "failed-association" + | .failed_disassociation => "failed-disassociation" + | .pending_association => "pending-association" + | .pending_disassociation => "pending-disassociation" + +def AsnAssociationState.wireValues : List (String × AsnAssociationState) := [ + ("associated", .associated), + ("disassociated", .disassociated), + ("failed-association", .failed_association), + ("failed-disassociation", .failed_disassociation), + ("pending-association", .pending_association), + ("pending-disassociation", .pending_disassociation)] + +def AsnAssociationState.ofWire (text : String) : Except String AsnAssociationState := + match List.find? (·.1 == text) AsnAssociationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AsnAssociationState has no value {text}" + +instance : Key AsnAssociationState := ⟨AsnAssociationState.wire, AsnAssociationState.ofWire⟩ + +instance : Shape AsnAssociationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AsnAssociationState.ofWire text + | _ => .error "expected a string" + +/-- Provides authorization for Amazon to bring an Autonomous System Number (ASN) to a specific Amazon Web Services account using bring your own ASN (BYOASN). -/ +structure AsnAuthorizationContext where + /-- The authorization context's message. -/ + message : String + /-- The authorization context's signature. -/ + signature : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AsnAuthorizationContext where + schema := .struct "AsnAuthorizationContext" [({ name := "Message", required := true }, .string), + ({ name := "Signature", required := true }, .string)] + toValue x := record [put "Message" x.message, put "Signature" x.signature] + ofValue v := do + let message ← v.req "Message" + let signature ← v.req "Signature" + return { message, signature } + +inductive AsnState where + | deprovisioned + | failed_deprovision + | failed_provision + | pending_deprovision + | pending_provision + | provisioned +deriving DecidableEq, Repr, Inhabited + +def AsnState.wire : AsnState → String + | .deprovisioned => "deprovisioned" + | .failed_deprovision => "failed-deprovision" + | .failed_provision => "failed-provision" + | .pending_deprovision => "pending-deprovision" + | .pending_provision => "pending-provision" + | .provisioned => "provisioned" + +def AsnState.wireValues : List (String × AsnState) := [ + ("deprovisioned", .deprovisioned), + ("failed-deprovision", .failed_deprovision), + ("failed-provision", .failed_provision), + ("pending-deprovision", .pending_deprovision), + ("pending-provision", .pending_provision), + ("provisioned", .provisioned)] + +def AsnState.ofWire (text : String) : Except String AsnState := + match List.find? (·.1 == text) AsnState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AsnState has no value {text}" + +instance : Key AsnState := ⟨AsnState.wire, AsnState.ofWire⟩ + +instance : Shape AsnState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AsnState.ofWire text + | _ => .error "expected a string" + +structure AssignIpv6AddressesRequest where + /-- The number of additional IPv6 addresses to assign to the network interface. -/ + ipv6AddressCount : Option Int := none + /-- The IPv6 addresses to be assigned to the network interface. -/ + ipv6Addresses : Option (List String) := none + /-- The number of IPv6 prefixes that Amazon Web Services automatically assigns to the network interface. -/ + ipv6PrefixCount : Option Int := none + /-- One or more IPv6 prefixes assigned to the network interface. -/ + ipv6Prefixes : Option (List String) := none + /-- The ID of the network interface. -/ + networkInterfaceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssignIpv6AddressesRequest where + schema := .struct "AssignIpv6AddressesRequest" [({ name := "Ipv6AddressCount", xmlName := some "ipv6AddressCount", queryName := some "Ipv6AddressCount" }, .int), + ({ name := "Ipv6Addresses", xmlName := some "ipv6Addresses", queryName := some "Ipv6Addresses" }, (.list .string "item")), + ({ name := "Ipv6PrefixCount" }, .int), + ({ name := "Ipv6Prefixes", xmlName := some "Ipv6Prefix" }, (.list .string "item")), + ({ name := "NetworkInterfaceId", required := true, xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string)] + toValue x := record [putOpt "Ipv6AddressCount" x.ipv6AddressCount, putOpt "Ipv6Addresses" x.ipv6Addresses, putOpt "Ipv6PrefixCount" x.ipv6PrefixCount, putOpt "Ipv6Prefixes" x.ipv6Prefixes, put "NetworkInterfaceId" x.networkInterfaceId] + ofValue v := do + let ipv6AddressCount ← v.opt "Ipv6AddressCount" + let ipv6Addresses ← v.opt "Ipv6Addresses" + let ipv6PrefixCount ← v.opt "Ipv6PrefixCount" + let ipv6Prefixes ← v.opt "Ipv6Prefixes" + let networkInterfaceId ← v.req "NetworkInterfaceId" + return { ipv6AddressCount, ipv6Addresses, ipv6PrefixCount, ipv6Prefixes, networkInterfaceId } + +structure AssignIpv6AddressesResult where + /-- The new IPv6 addresses assigned to the network interface. -/ + assignedIpv6Addresses : Option (List String) := none + /-- The IPv6 prefixes that are assigned to the network interface. -/ + assignedIpv6Prefixes : Option (List String) := none + /-- The ID of the network interface. -/ + networkInterfaceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssignIpv6AddressesResult where + schema := .struct "AssignIpv6AddressesResult" [({ name := "AssignedIpv6Addresses", xmlName := some "assignedIpv6Addresses", queryName := some "AssignedIpv6Addresses" }, (.list .string "item")), + ({ name := "AssignedIpv6Prefixes", xmlName := some "assignedIpv6PrefixSet", queryName := some "AssignedIpv6PrefixSet" }, (.list .string "item")), + ({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string)] + toValue x := record [putOpt "AssignedIpv6Addresses" x.assignedIpv6Addresses, putOpt "AssignedIpv6Prefixes" x.assignedIpv6Prefixes, putOpt "NetworkInterfaceId" x.networkInterfaceId] + ofValue v := do + let assignedIpv6Addresses ← v.opt "AssignedIpv6Addresses" + let assignedIpv6Prefixes ← v.opt "AssignedIpv6Prefixes" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + return { assignedIpv6Addresses, assignedIpv6Prefixes, networkInterfaceId } + +/-- Contains the parameters for AssignPrivateIpAddresses. -/ +structure AssignPrivateIpAddressesRequest where + /-- Indicates whether to allow an IP address that is already assigned to another network interface or instance to be reassigned to the specified network interface. -/ + allowReassignment : Option Bool := none + /-- The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface. -/ + ipv4PrefixCount : Option Int := none + /-- One or more IPv4 prefixes assigned to the network interface. -/ + ipv4Prefixes : Option (List String) := none + /-- The ID of the network interface. -/ + networkInterfaceId : String + /-- The IP addresses to be assigned as a secondary private IP address to the network interface. -/ + privateIpAddresses : Option (List String) := none + /-- The number of secondary IP addresses to assign to the network interface. -/ + secondaryPrivateIpAddressCount : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssignPrivateIpAddressesRequest where + schema := .struct "AssignPrivateIpAddressesRequest" [({ name := "AllowReassignment", xmlName := some "allowReassignment", queryName := some "AllowReassignment" }, .bool), + ({ name := "Ipv4PrefixCount" }, .int), + ({ name := "Ipv4Prefixes", xmlName := some "Ipv4Prefix" }, (.list .string "item")), + ({ name := "NetworkInterfaceId", required := true, xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "PrivateIpAddresses", xmlName := some "privateIpAddress", queryName := some "PrivateIpAddress" }, (.list .string "PrivateIpAddress")), + ({ name := "SecondaryPrivateIpAddressCount", xmlName := some "secondaryPrivateIpAddressCount", queryName := some "SecondaryPrivateIpAddressCount" }, .int)] + toValue x := record [putOpt "AllowReassignment" x.allowReassignment, putOpt "Ipv4PrefixCount" x.ipv4PrefixCount, putOpt "Ipv4Prefixes" x.ipv4Prefixes, put "NetworkInterfaceId" x.networkInterfaceId, putOpt "PrivateIpAddresses" x.privateIpAddresses, putOpt "SecondaryPrivateIpAddressCount" x.secondaryPrivateIpAddressCount] + ofValue v := do + let allowReassignment ← v.opt "AllowReassignment" + let ipv4PrefixCount ← v.opt "Ipv4PrefixCount" + let ipv4Prefixes ← v.opt "Ipv4Prefixes" + let networkInterfaceId ← v.req "NetworkInterfaceId" + let privateIpAddresses ← v.opt "PrivateIpAddresses" + let secondaryPrivateIpAddressCount ← v.opt "SecondaryPrivateIpAddressCount" + return { allowReassignment, ipv4PrefixCount, ipv4Prefixes, networkInterfaceId, privateIpAddresses, secondaryPrivateIpAddressCount } + +structure AssignPrivateNatGatewayAddressRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the NAT gateway. -/ + natGatewayId : String + /-- The number of private IP addresses to assign to the NAT gateway. -/ + privateIpAddressCount : Option Int := none + /-- The private IPv4 addresses you want to assign to the private NAT gateway. -/ + privateIpAddresses : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssignPrivateNatGatewayAddressRequest where + schema := .struct "AssignPrivateNatGatewayAddressRequest" [({ name := "DryRun" }, .bool), + ({ name := "NatGatewayId", required := true }, .string), + ({ name := "PrivateIpAddressCount" }, .int), + ({ name := "PrivateIpAddresses", xmlName := some "PrivateIpAddress" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "NatGatewayId" x.natGatewayId, putOpt "PrivateIpAddressCount" x.privateIpAddressCount, putOpt "PrivateIpAddresses" x.privateIpAddresses] + ofValue v := do + let dryRun ← v.opt "DryRun" + let natGatewayId ← v.req "NatGatewayId" + let privateIpAddressCount ← v.opt "PrivateIpAddressCount" + let privateIpAddresses ← v.opt "PrivateIpAddresses" + return { dryRun, natGatewayId, privateIpAddressCount, privateIpAddresses } + +/-- Describes the private IP addresses assigned to a network interface. -/ +structure AssignedPrivateIpAddress where + /-- The private IP address assigned to the network interface. -/ + privateIpAddress : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssignedPrivateIpAddress where + schema := .struct "AssignedPrivateIpAddress" [({ name := "PrivateIpAddress", xmlName := some "privateIpAddress", queryName := some "PrivateIpAddress" }, .string)] + toValue x := record [putOpt "PrivateIpAddress" x.privateIpAddress] + ofValue v := do + let privateIpAddress ← v.opt "PrivateIpAddress" + return { privateIpAddress } + +structure AssociateAddressRequest where + /-- The allocation ID. -/ + allocationId : Option String := none + /-- Reassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource. -/ + allowReassociation : Option Bool := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- The ID of the network interface. -/ + networkInterfaceId : Option String := none + /-- The primary or secondary private IP address to associate with the Elastic IP address. -/ + privateIpAddress : Option String := none + /-- Deprecated. -/ + publicIp : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateAddressRequest where + schema := .struct "AssociateAddressRequest" [({ name := "AllocationId" }, .string), + ({ name := "AllowReassociation", xmlName := some "allowReassociation", queryName := some "AllowReassociation" }, .bool), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "InstanceId" }, .string), + ({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "PrivateIpAddress", xmlName := some "privateIpAddress", queryName := some "PrivateIpAddress" }, .string), + ({ name := "PublicIp" }, .string)] + toValue x := record [putOpt "AllocationId" x.allocationId, putOpt "AllowReassociation" x.allowReassociation, putOpt "DryRun" x.dryRun, putOpt "InstanceId" x.instanceId, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "PrivateIpAddress" x.privateIpAddress, putOpt "PublicIp" x.publicIp] + ofValue v := do + let allocationId ← v.opt "AllocationId" + let allowReassociation ← v.opt "AllowReassociation" + let dryRun ← v.opt "DryRun" + let instanceId ← v.opt "InstanceId" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let privateIpAddress ← v.opt "PrivateIpAddress" + let publicIp ← v.opt "PublicIp" + return { allocationId, allowReassociation, dryRun, instanceId, networkInterfaceId, privateIpAddress, publicIp } + +structure AssociateAddressResult where + /-- The ID that represents the association of the Elastic IP address with an instance. -/ + associationId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateAddressResult where + schema := .struct "AssociateAddressResult" [({ name := "AssociationId", xmlName := some "associationId", queryName := some "AssociationId" }, .string)] + toValue x := record [putOpt "AssociationId" x.associationId] + ofValue v := do + let associationId ← v.opt "AssociationId" + return { associationId } + +structure AssociateCapacityReservationBillingOwnerRequest where + /-- The ID of the Capacity Reservation. -/ + capacityReservationId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the consumer account to which to assign billing. -/ + unusedReservationBillingOwnerId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateCapacityReservationBillingOwnerRequest where + schema := .struct "AssociateCapacityReservationBillingOwnerRequest" [({ name := "CapacityReservationId", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "UnusedReservationBillingOwnerId", required := true }, .string)] + toValue x := record [put "CapacityReservationId" x.capacityReservationId, putOpt "DryRun" x.dryRun, put "UnusedReservationBillingOwnerId" x.unusedReservationBillingOwnerId] + ofValue v := do + let capacityReservationId ← v.req "CapacityReservationId" + let dryRun ← v.opt "DryRun" + let unusedReservationBillingOwnerId ← v.req "UnusedReservationBillingOwnerId" + return { capacityReservationId, dryRun, unusedReservationBillingOwnerId } + +structure AssociateCapacityReservationBillingOwnerResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateCapacityReservationBillingOwnerResult where + schema := .struct "AssociateCapacityReservationBillingOwnerResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure AssociateClientVpnTargetNetworkRequest where + /-- The Availability Zone name for the Transit Gateway association. -/ + availabilityZone : Option String := none + /-- The Availability Zone ID for the Transit Gateway association. -/ + availabilityZoneId : Option String := none + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The ID of the Client VPN endpoint. -/ + clientVpnEndpointId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the subnet to associate with the Client VPN endpoint. -/ + subnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateClientVpnTargetNetworkRequest where + schema := .struct "AssociateClientVpnTargetNetworkRequest" [({ name := "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId" }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "ClientVpnEndpointId", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "SubnetId" }, .string)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "ClientToken" x.clientToken, put "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "DryRun" x.dryRun, putOpt "SubnetId" x.subnetId] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let clientToken ← v.opt "ClientToken" + let clientVpnEndpointId ← v.req "ClientVpnEndpointId" + let dryRun ← v.opt "DryRun" + let subnetId ← v.opt "SubnetId" + return { availabilityZone, availabilityZoneId, clientToken, clientVpnEndpointId, dryRun, subnetId } + +structure AssociateDhcpOptionsRequest where + /-- The ID of the DHCP options set, or default to associate no DHCP options with the VPC. -/ + dhcpOptionsId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the VPC. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateDhcpOptionsRequest where + schema := .struct "AssociateDhcpOptionsRequest" [({ name := "DhcpOptionsId", required := true }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "VpcId", required := true }, .string)] + toValue x := record [put "DhcpOptionsId" x.dhcpOptionsId, putOpt "DryRun" x.dryRun, put "VpcId" x.vpcId] + ofValue v := do + let dhcpOptionsId ← v.req "DhcpOptionsId" + let dryRun ← v.opt "DryRun" + let vpcId ← v.req "VpcId" + return { dhcpOptionsId, dryRun, vpcId } + +structure AssociateEnclaveCertificateIamRoleRequest where + /-- The ARN of the ACM certificate with which to associate the IAM role. -/ + certificateArn : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ARN of the IAM role to associate with the ACM certificate. -/ + roleArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateEnclaveCertificateIamRoleRequest where + schema := .struct "AssociateEnclaveCertificateIamRoleRequest" [({ name := "CertificateArn", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "RoleArn", required := true }, .string)] + toValue x := record [put "CertificateArn" x.certificateArn, putOpt "DryRun" x.dryRun, put "RoleArn" x.roleArn] + ofValue v := do + let certificateArn ← v.req "CertificateArn" + let dryRun ← v.opt "DryRun" + let roleArn ← v.req "RoleArn" + return { certificateArn, dryRun, roleArn } + +structure AssociateEnclaveCertificateIamRoleResult where + /-- The name of the Amazon S3 bucket to which the certificate was uploaded. -/ + certificateS3BucketName : Option String := none + /-- The Amazon S3 object key where the certificate, certificate chain, and encrypted private key bundle are stored. -/ + certificateS3ObjectKey : Option String := none + /-- The ID of the KMS key used to encrypt the private key of the certificate. -/ + encryptionKmsKeyId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateEnclaveCertificateIamRoleResult where + schema := .struct "AssociateEnclaveCertificateIamRoleResult" [({ name := "CertificateS3BucketName", xmlName := some "certificateS3BucketName", queryName := some "CertificateS3BucketName" }, .string), + ({ name := "CertificateS3ObjectKey", xmlName := some "certificateS3ObjectKey", queryName := some "CertificateS3ObjectKey" }, .string), + ({ name := "EncryptionKmsKeyId", xmlName := some "encryptionKmsKeyId", queryName := some "EncryptionKmsKeyId" }, .string)] + toValue x := record [putOpt "CertificateS3BucketName" x.certificateS3BucketName, putOpt "CertificateS3ObjectKey" x.certificateS3ObjectKey, putOpt "EncryptionKmsKeyId" x.encryptionKmsKeyId] + ofValue v := do + let certificateS3BucketName ← v.opt "CertificateS3BucketName" + let certificateS3ObjectKey ← v.opt "CertificateS3ObjectKey" + let encryptionKmsKeyId ← v.opt "EncryptionKmsKeyId" + return { certificateS3BucketName, certificateS3ObjectKey, encryptionKmsKeyId } + +structure AssociateIpamByoasnRequest where + /-- A public 2-byte or 4-byte ASN. -/ + asn : String + /-- The BYOIP CIDR you want to associate with an ASN. -/ + cidr : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateIpamByoasnRequest where + schema := .struct "AssociateIpamByoasnRequest" [({ name := "Asn", required := true }, .string), + ({ name := "Cidr", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "Asn" x.asn, put "Cidr" x.cidr, putOpt "DryRun" x.dryRun] + ofValue v := do + let asn ← v.req "Asn" + let cidr ← v.req "Cidr" + let dryRun ← v.opt "DryRun" + return { asn, cidr, dryRun } + +structure AssociateKmsKeyIdRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID, alias, or ARN of the KMS key to associate with the snapshot. -/ + kmsKeyId : String + /-- The ID of the Amazon EBS snapshot. -/ + snapshotId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateKmsKeyIdRequest where + schema := .struct "AssociateKmsKeyIdRequest" [({ name := "DryRun" }, .bool), + ({ name := "KmsKeyId", required := true }, .string), + ({ name := "SnapshotId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "KmsKeyId" x.kmsKeyId, putOpt "SnapshotId" x.snapshotId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let kmsKeyId ← v.req "KmsKeyId" + let snapshotId ← v.opt "SnapshotId" + return { dryRun, kmsKeyId, snapshotId } + +structure AssociateKmsKeyIdResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateKmsKeyIdResult where + schema := .struct "AssociateKmsKeyIdResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure AssociateNatGatewayAddressRequest where + /-- The allocation IDs of EIPs that you want to associate with your NAT gateway. -/ + allocationIds : (List String) + /-- For regional NAT gateways only: The Availability Zone where you want to associate an Elastic IP address (EIP). -/ + availabilityZone : Option String := none + /-- For regional NAT gateways only: The ID of the Availability Zone where you want to associate an Elastic IP address (EIP). -/ + availabilityZoneId : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the NAT gateway. -/ + natGatewayId : String + /-- The private IPv4 addresses that you want to assign to the NAT gateway. -/ + privateIpAddresses : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateNatGatewayAddressRequest where + schema := .struct "AssociateNatGatewayAddressRequest" [({ name := "AllocationIds", required := true, xmlName := some "AllocationId" }, (.list .string "AllocationId")), + ({ name := "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "NatGatewayId", required := true }, .string), + ({ name := "PrivateIpAddresses", xmlName := some "PrivateIpAddress" }, (.list .string "item"))] + toValue x := record [put "AllocationIds" x.allocationIds, putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "DryRun" x.dryRun, put "NatGatewayId" x.natGatewayId, putOpt "PrivateIpAddresses" x.privateIpAddresses] + ofValue v := do + let allocationIds ← v.req "AllocationIds" + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let dryRun ← v.opt "DryRun" + let natGatewayId ← v.req "NatGatewayId" + let privateIpAddresses ← v.opt "PrivateIpAddresses" + return { allocationIds, availabilityZone, availabilityZoneId, dryRun, natGatewayId, privateIpAddresses } + +structure AssociateRouteServerRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The unique identifier for the route server to be associated. -/ + routeServerId : String + /-- The ID of the VPC to associate with the route server. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateRouteServerRequest where + schema := .struct "AssociateRouteServerRequest" [({ name := "DryRun" }, .bool), + ({ name := "RouteServerId", required := true }, .string), + ({ name := "VpcId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "RouteServerId" x.routeServerId, put "VpcId" x.vpcId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let routeServerId ← v.req "RouteServerId" + let vpcId ← v.req "VpcId" + return { dryRun, routeServerId, vpcId } + +structure AssociateRouteTableRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the internet gateway or virtual private gateway. -/ + gatewayId : Option String := none + /-- The ID of a public IPv4 pool. -/ + publicIpv4Pool : Option String := none + /-- The ID of the route table. -/ + routeTableId : String + /-- The ID of the subnet. -/ + subnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateRouteTableRequest where + schema := .struct "AssociateRouteTableRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "GatewayId" }, .string), + ({ name := "PublicIpv4Pool" }, .string), + ({ name := "RouteTableId", required := true, xmlName := some "routeTableId", queryName := some "RouteTableId" }, .string), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "GatewayId" x.gatewayId, putOpt "PublicIpv4Pool" x.publicIpv4Pool, put "RouteTableId" x.routeTableId, putOpt "SubnetId" x.subnetId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let gatewayId ← v.opt "GatewayId" + let publicIpv4Pool ← v.opt "PublicIpv4Pool" + let routeTableId ← v.req "RouteTableId" + let subnetId ← v.opt "SubnetId" + return { dryRun, gatewayId, publicIpv4Pool, routeTableId, subnetId } + +structure AssociateSecurityGroupVpcRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- A security group ID. -/ + groupId : String + /-- A VPC ID. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateSecurityGroupVpcRequest where + schema := .struct "AssociateSecurityGroupVpcRequest" [({ name := "DryRun" }, .bool), + ({ name := "GroupId", required := true }, .string), + ({ name := "VpcId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "GroupId" x.groupId, put "VpcId" x.vpcId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let groupId ← v.req "GroupId" + let vpcId ← v.req "VpcId" + return { dryRun, groupId, vpcId } + +structure AssociateSubnetCidrBlockRequest where + /-- The IPv6 CIDR block for your subnet. -/ + ipv6CidrBlock : Option String := none + /-- An IPv6 IPAM pool ID. -/ + ipv6IpamPoolId : Option String := none + /-- An IPv6 netmask length. -/ + ipv6NetmaskLength : Option Int := none + /-- The ID of your subnet. -/ + subnetId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateSubnetCidrBlockRequest where + schema := .struct "AssociateSubnetCidrBlockRequest" [({ name := "Ipv6CidrBlock", xmlName := some "ipv6CidrBlock", queryName := some "Ipv6CidrBlock" }, .string), + ({ name := "Ipv6IpamPoolId" }, .string), + ({ name := "Ipv6NetmaskLength" }, .int), + ({ name := "SubnetId", required := true, xmlName := some "subnetId", queryName := some "SubnetId" }, .string)] + toValue x := record [putOpt "Ipv6CidrBlock" x.ipv6CidrBlock, putOpt "Ipv6IpamPoolId" x.ipv6IpamPoolId, putOpt "Ipv6NetmaskLength" x.ipv6NetmaskLength, put "SubnetId" x.subnetId] + ofValue v := do + let ipv6CidrBlock ← v.opt "Ipv6CidrBlock" + let ipv6IpamPoolId ← v.opt "Ipv6IpamPoolId" + let ipv6NetmaskLength ← v.opt "Ipv6NetmaskLength" + let subnetId ← v.req "SubnetId" + return { ipv6CidrBlock, ipv6IpamPoolId, ipv6NetmaskLength, subnetId } + +structure AssociateTransitGatewayMulticastDomainRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the subnets to associate with the transit gateway multicast domain. -/ + subnetIds : (List String) + /-- The ID of the transit gateway attachment to associate with the transit gateway multicast domain. -/ + transitGatewayAttachmentId : String + /-- The ID of the transit gateway multicast domain. -/ + transitGatewayMulticastDomainId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateTransitGatewayMulticastDomainRequest where + schema := .struct "AssociateTransitGatewayMulticastDomainRequest" [({ name := "DryRun" }, .bool), + ({ name := "SubnetIds", required := true }, (.list .string "item")), + ({ name := "TransitGatewayAttachmentId", required := true }, .string), + ({ name := "TransitGatewayMulticastDomainId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "SubnetIds" x.subnetIds, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, put "TransitGatewayMulticastDomainId" x.transitGatewayMulticastDomainId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let subnetIds ← v.req "SubnetIds" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + let transitGatewayMulticastDomainId ← v.req "TransitGatewayMulticastDomainId" + return { dryRun, subnetIds, transitGatewayAttachmentId, transitGatewayMulticastDomainId } + +structure AssociateTransitGatewayPolicyTableRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the transit gateway attachment to associate with the policy table. -/ + transitGatewayAttachmentId : String + /-- The ID of the transit gateway policy table to associate with the transit gateway attachment. -/ + transitGatewayPolicyTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateTransitGatewayPolicyTableRequest where + schema := .struct "AssociateTransitGatewayPolicyTableRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayAttachmentId", required := true }, .string), + ({ name := "TransitGatewayPolicyTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, put "TransitGatewayPolicyTableId" x.transitGatewayPolicyTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + let transitGatewayPolicyTableId ← v.req "TransitGatewayPolicyTableId" + return { dryRun, transitGatewayAttachmentId, transitGatewayPolicyTableId } + +structure AssociateTransitGatewayRouteTableRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : String + /-- The ID of the transit gateway route table. -/ + transitGatewayRouteTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateTransitGatewayRouteTableRequest where + schema := .struct "AssociateTransitGatewayRouteTableRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayAttachmentId", required := true }, .string), + ({ name := "TransitGatewayRouteTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, put "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + let transitGatewayRouteTableId ← v.req "TransitGatewayRouteTableId" + return { dryRun, transitGatewayAttachmentId, transitGatewayRouteTableId } + +structure AssociateTrunkInterfaceRequest where + /-- The ID of the branch network interface. -/ + branchInterfaceId : String + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The application key. -/ + greKey : Option Int := none + /-- The ID of the trunk network interface. -/ + trunkInterfaceId : String + /-- The ID of the VLAN. -/ + vlanId : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateTrunkInterfaceRequest where + schema := .struct "AssociateTrunkInterfaceRequest" [({ name := "BranchInterfaceId", required := true }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "GreKey" }, .int), + ({ name := "TrunkInterfaceId", required := true }, .string), + ({ name := "VlanId" }, .int)] + toValue x := record [put "BranchInterfaceId" x.branchInterfaceId, putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "GreKey" x.greKey, put "TrunkInterfaceId" x.trunkInterfaceId, putOpt "VlanId" x.vlanId] + ofValue v := do + let branchInterfaceId ← v.req "BranchInterfaceId" + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let greKey ← v.opt "GreKey" + let trunkInterfaceId ← v.req "TrunkInterfaceId" + let vlanId ← v.opt "VlanId" + return { branchInterfaceId, clientToken, dryRun, greKey, trunkInterfaceId, vlanId } + +structure AssociateVpcCidrBlockRequest where + /-- Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. -/ + amazonProvidedIpv6CidrBlock : Option Bool := none + /-- An IPv4 CIDR block to associate with the VPC. -/ + cidrBlock : Option String := none + /-- Associate a CIDR allocated from an IPv4 IPAM pool to a VPC. -/ + ipv4IpamPoolId : Option String := none + /-- The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool. -/ + ipv4NetmaskLength : Option Int := none + /-- An IPv6 CIDR block from the IPv6 address pool. -/ + ipv6CidrBlock : Option String := none + /-- The name of the location from which we advertise the IPV6 CIDR block. -/ + ipv6CidrBlockNetworkBorderGroup : Option String := none + /-- Associates a CIDR allocated from an IPv6 IPAM pool to a VPC. -/ + ipv6IpamPoolId : Option String := none + /-- The netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool. -/ + ipv6NetmaskLength : Option Int := none + /-- The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. -/ + ipv6Pool : Option String := none + /-- The ID of the VPC. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateVpcCidrBlockRequest where + schema := .struct "AssociateVpcCidrBlockRequest" [({ name := "AmazonProvidedIpv6CidrBlock", xmlName := some "amazonProvidedIpv6CidrBlock", queryName := some "AmazonProvidedIpv6CidrBlock" }, .bool), + ({ name := "CidrBlock" }, .string), + ({ name := "Ipv4IpamPoolId" }, .string), + ({ name := "Ipv4NetmaskLength" }, .int), + ({ name := "Ipv6CidrBlock" }, .string), + ({ name := "Ipv6CidrBlockNetworkBorderGroup" }, .string), + ({ name := "Ipv6IpamPoolId" }, .string), + ({ name := "Ipv6NetmaskLength" }, .int), + ({ name := "Ipv6Pool" }, .string), + ({ name := "VpcId", required := true, xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "AmazonProvidedIpv6CidrBlock" x.amazonProvidedIpv6CidrBlock, putOpt "CidrBlock" x.cidrBlock, putOpt "Ipv4IpamPoolId" x.ipv4IpamPoolId, putOpt "Ipv4NetmaskLength" x.ipv4NetmaskLength, putOpt "Ipv6CidrBlock" x.ipv6CidrBlock, putOpt "Ipv6CidrBlockNetworkBorderGroup" x.ipv6CidrBlockNetworkBorderGroup, putOpt "Ipv6IpamPoolId" x.ipv6IpamPoolId, putOpt "Ipv6NetmaskLength" x.ipv6NetmaskLength, putOpt "Ipv6Pool" x.ipv6Pool, put "VpcId" x.vpcId] + ofValue v := do + let amazonProvidedIpv6CidrBlock ← v.opt "AmazonProvidedIpv6CidrBlock" + let cidrBlock ← v.opt "CidrBlock" + let ipv4IpamPoolId ← v.opt "Ipv4IpamPoolId" + let ipv4NetmaskLength ← v.opt "Ipv4NetmaskLength" + let ipv6CidrBlock ← v.opt "Ipv6CidrBlock" + let ipv6CidrBlockNetworkBorderGroup ← v.opt "Ipv6CidrBlockNetworkBorderGroup" + let ipv6IpamPoolId ← v.opt "Ipv6IpamPoolId" + let ipv6NetmaskLength ← v.opt "Ipv6NetmaskLength" + let ipv6Pool ← v.opt "Ipv6Pool" + let vpcId ← v.req "VpcId" + return { amazonProvidedIpv6CidrBlock, cidrBlock, ipv4IpamPoolId, ipv4NetmaskLength, ipv6CidrBlock, ipv6CidrBlockNetworkBorderGroup, ipv6IpamPoolId, ipv6NetmaskLength, ipv6Pool, vpcId } + +/-- Describes an KMS key that is associated with an Amazon EBS snapshot, in addition to the key the snapshot is encrypted under. -/ +structure AssociatedKmsKey where + /-- The Amazon Resource Name (ARN) of the associated KMS key. -/ + kmsKeyId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociatedKmsKey where + schema := .struct "AssociatedKmsKey" [({ name := "KmsKeyId", xmlName := some "kmsKeyId", queryName := some "KmsKeyId" }, .string)] + toValue x := record [putOpt "KmsKeyId" x.kmsKeyId] + ofValue v := do + let kmsKeyId ← v.opt "KmsKeyId" + return { kmsKeyId } + +inductive AssociatedNetworkType where + | vpc +deriving DecidableEq, Repr, Inhabited + +def AssociatedNetworkType.wire : AssociatedNetworkType → String + | .vpc => "vpc" + +def AssociatedNetworkType.wireValues : List (String × AssociatedNetworkType) := [ + ("vpc", .vpc)] + +def AssociatedNetworkType.ofWire (text : String) : Except String AssociatedNetworkType := + match List.find? (·.1 == text) AssociatedNetworkType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AssociatedNetworkType has no value {text}" + +instance : Key AssociatedNetworkType := ⟨AssociatedNetworkType.wire, AssociatedNetworkType.ofWire⟩ + +instance : Shape AssociatedNetworkType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AssociatedNetworkType.ofWire text + | _ => .error "expected a string" + +/-- Information about the associated IAM roles. -/ +structure AssociatedRole where + /-- The ARN of the associated IAM role. -/ + associatedRoleArn : Option String := none + /-- The name of the Amazon S3 bucket in which the Amazon S3 object is stored. -/ + certificateS3BucketName : Option String := none + /-- The key of the Amazon S3 object where the certificate, certificate chain, and encrypted private key bundle are stored. -/ + certificateS3ObjectKey : Option String := none + /-- The ID of the KMS key used to encrypt the private key. -/ + encryptionKmsKeyId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociatedRole where + schema := .struct "AssociatedRole" [({ name := "AssociatedRoleArn", xmlName := some "associatedRoleArn", queryName := some "AssociatedRoleArn" }, .string), + ({ name := "CertificateS3BucketName", xmlName := some "certificateS3BucketName", queryName := some "CertificateS3BucketName" }, .string), + ({ name := "CertificateS3ObjectKey", xmlName := some "certificateS3ObjectKey", queryName := some "CertificateS3ObjectKey" }, .string), + ({ name := "EncryptionKmsKeyId", xmlName := some "encryptionKmsKeyId", queryName := some "EncryptionKmsKeyId" }, .string)] + toValue x := record [putOpt "AssociatedRoleArn" x.associatedRoleArn, putOpt "CertificateS3BucketName" x.certificateS3BucketName, putOpt "CertificateS3ObjectKey" x.certificateS3ObjectKey, putOpt "EncryptionKmsKeyId" x.encryptionKmsKeyId] + ofValue v := do + let associatedRoleArn ← v.opt "AssociatedRoleArn" + let certificateS3BucketName ← v.opt "CertificateS3BucketName" + let certificateS3ObjectKey ← v.opt "CertificateS3ObjectKey" + let encryptionKmsKeyId ← v.opt "EncryptionKmsKeyId" + return { associatedRoleArn, certificateS3BucketName, certificateS3ObjectKey, encryptionKmsKeyId } + +inductive AssociationStatusCode where + | associated + | associating + | association_failed + | disassociated + | disassociating +deriving DecidableEq, Repr, Inhabited + +def AssociationStatusCode.wire : AssociationStatusCode → String + | .associated => "associated" + | .associating => "associating" + | .association_failed => "association-failed" + | .disassociated => "disassociated" + | .disassociating => "disassociating" + +def AssociationStatusCode.wireValues : List (String × AssociationStatusCode) := [ + ("associated", .associated), + ("associating", .associating), + ("association-failed", .association_failed), + ("disassociated", .disassociated), + ("disassociating", .disassociating)] + +def AssociationStatusCode.ofWire (text : String) : Except String AssociationStatusCode := + match List.find? (·.1 == text) AssociationStatusCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AssociationStatusCode has no value {text}" + +instance : Key AssociationStatusCode := ⟨AssociationStatusCode.wire, AssociationStatusCode.ofWire⟩ + +instance : Shape AssociationStatusCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AssociationStatusCode.ofWire text + | _ => .error "expected a string" + +inductive AssociationTypeEnum where + | instancE_ID + | tag +deriving DecidableEq, Repr, Inhabited + +def AssociationTypeEnum.wire : AssociationTypeEnum → String + | .instancE_ID => "instance-id" + | .tag => "tag" + +def AssociationTypeEnum.wireValues : List (String × AssociationTypeEnum) := [ + ("instance-id", .instancE_ID), + ("tag", .tag)] + +def AssociationTypeEnum.ofWire (text : String) : Except String AssociationTypeEnum := + match List.find? (·.1 == text) AssociationTypeEnum.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AssociationTypeEnum has no value {text}" + +instance : Key AssociationTypeEnum := ⟨AssociationTypeEnum.wire, AssociationTypeEnum.ofWire⟩ + +instance : Shape AssociationTypeEnum where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AssociationTypeEnum.ofWire text + | _ => .error "expected a string" + +structure AttachClassicLinkVpcRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the security groups. -/ + groups : (List String) + /-- The ID of the EC2-Classic instance. -/ + instanceId : String + /-- The ID of the ClassicLink-enabled VPC. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AttachClassicLinkVpcRequest where + schema := .struct "AttachClassicLinkVpcRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Groups", required := true, xmlName := some "SecurityGroupId" }, (.list .string "groupId")), + ({ name := "InstanceId", required := true, xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "VpcId", required := true, xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "Groups" x.groups, put "InstanceId" x.instanceId, put "VpcId" x.vpcId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let groups ← v.req "Groups" + let instanceId ← v.req "InstanceId" + let vpcId ← v.req "VpcId" + return { dryRun, groups, instanceId, vpcId } + +structure AttachClassicLinkVpcResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AttachClassicLinkVpcResult where + schema := .struct "AttachClassicLinkVpcResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure AttachImageWatermarkRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AMI. -/ + imageId : String + /-- The name for the watermark. -/ + watermarkName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AttachImageWatermarkRequest where + schema := .struct "AttachImageWatermarkRequest" [({ name := "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string), + ({ name := "WatermarkName", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "ImageId" x.imageId, put "WatermarkName" x.watermarkName] + ofValue v := do + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + let watermarkName ← v.req "WatermarkName" + return { dryRun, imageId, watermarkName } + +structure AttachImageWatermarkResult where + /-- The watermark identifier, in accountId:watermarkName format (for example, 123456789012:approvedAmi ). -/ + watermarkKey : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AttachImageWatermarkResult where + schema := .struct "AttachImageWatermarkResult" [({ name := "WatermarkKey", xmlName := some "watermarkKey", queryName := some "WatermarkKey" }, .string)] + toValue x := record [putOpt "WatermarkKey" x.watermarkKey] + ofValue v := do + let watermarkKey ← v.opt "WatermarkKey" + return { watermarkKey } + +structure AttachInternetGatewayRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the internet gateway. -/ + internetGatewayId : String + /-- The ID of the VPC. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AttachInternetGatewayRequest where + schema := .struct "AttachInternetGatewayRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "InternetGatewayId", required := true, xmlName := some "internetGatewayId", queryName := some "InternetGatewayId" }, .string), + ({ name := "VpcId", required := true, xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "InternetGatewayId" x.internetGatewayId, put "VpcId" x.vpcId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let internetGatewayId ← v.req "InternetGatewayId" + let vpcId ← v.req "VpcId" + return { dryRun, internetGatewayId, vpcId } + +/-- Contains the output of AttachNetworkInterface. -/ +structure AttachNetworkInterfaceResult where + /-- The ID of the network interface attachment. -/ + attachmentId : Option String := none + /-- The index of the network card. -/ + networkCardIndex : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AttachNetworkInterfaceResult where + schema := .struct "AttachNetworkInterfaceResult" [({ name := "AttachmentId", xmlName := some "attachmentId", queryName := some "AttachmentId" }, .string), + ({ name := "NetworkCardIndex", xmlName := some "networkCardIndex", queryName := some "NetworkCardIndex" }, .int)] + toValue x := record [putOpt "AttachmentId" x.attachmentId, putOpt "NetworkCardIndex" x.networkCardIndex] + ofValue v := do + let attachmentId ← v.opt "AttachmentId" + let networkCardIndex ← v.opt "NetworkCardIndex" + return { attachmentId, networkCardIndex } + +structure AttachVerifiedAccessTrustProviderRequest where + /-- A unique, case-sensitive token that you provide to ensure idempotency of your modification request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Verified Access instance. -/ + verifiedAccessInstanceId : String + /-- The ID of the Verified Access trust provider. -/ + verifiedAccessTrustProviderId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AttachVerifiedAccessTrustProviderRequest where + schema := .struct "AttachVerifiedAccessTrustProviderRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "VerifiedAccessInstanceId", required := true }, .string), + ({ name := "VerifiedAccessTrustProviderId", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "VerifiedAccessInstanceId" x.verifiedAccessInstanceId, put "VerifiedAccessTrustProviderId" x.verifiedAccessTrustProviderId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let verifiedAccessInstanceId ← v.req "VerifiedAccessInstanceId" + let verifiedAccessTrustProviderId ← v.req "VerifiedAccessTrustProviderId" + return { clientToken, dryRun, verifiedAccessInstanceId, verifiedAccessTrustProviderId } + +structure AttachVolumeRequest where + /-- The device name (for example, /dev/sdh or xvdh ). -/ + device : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The index of the EBS card. -/ + ebsCardIndex : Option Int := none + /-- The ID of the instance. -/ + instanceId : String + /-- The ID of the EBS volume. -/ + volumeId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AttachVolumeRequest where + schema := .struct "AttachVolumeRequest" [({ name := "Device", required := true }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "EbsCardIndex" }, .int), + ({ name := "InstanceId", required := true }, .string), + ({ name := "VolumeId", required := true }, .string)] + toValue x := record [put "Device" x.device, putOpt "DryRun" x.dryRun, putOpt "EbsCardIndex" x.ebsCardIndex, put "InstanceId" x.instanceId, put "VolumeId" x.volumeId] + ofValue v := do + let device ← v.req "Device" + let dryRun ← v.opt "DryRun" + let ebsCardIndex ← v.opt "EbsCardIndex" + let instanceId ← v.req "InstanceId" + let volumeId ← v.req "VolumeId" + return { device, dryRun, ebsCardIndex, instanceId, volumeId } + +/-- Contains the parameters for AttachVpnGateway. -/ +structure AttachVpnGatewayRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the VPC. -/ + vpcId : String + /-- The ID of the virtual private gateway. -/ + vpnGatewayId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AttachVpnGatewayRequest where + schema := .struct "AttachVpnGatewayRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "VpcId", required := true }, .string), + ({ name := "VpnGatewayId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VpcId" x.vpcId, put "VpnGatewayId" x.vpnGatewayId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let vpcId ← v.req "VpcId" + let vpnGatewayId ← v.req "VpnGatewayId" + return { dryRun, vpcId, vpnGatewayId } + +/-- ENA Express is compatible with both TCP and UDP transport protocols. -/ +structure AttachmentEnaSrdUdpSpecification where + /-- Indicates whether UDP traffic to and from the instance uses ENA Express. -/ + enaSrdUdpEnabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AttachmentEnaSrdUdpSpecification where + schema := .struct "AttachmentEnaSrdUdpSpecification" [({ name := "EnaSrdUdpEnabled", xmlName := some "enaSrdUdpEnabled", queryName := some "EnaSrdUdpEnabled" }, .bool)] + toValue x := record [putOpt "EnaSrdUdpEnabled" x.enaSrdUdpEnabled] + ofValue v := do + let enaSrdUdpEnabled ← v.opt "EnaSrdUdpEnabled" + return { enaSrdUdpEnabled } + +inductive AttachmentLimitType where + | dedicated + | shared +deriving DecidableEq, Repr, Inhabited + +def AttachmentLimitType.wire : AttachmentLimitType → String + | .dedicated => "dedicated" + | .shared => "shared" + +def AttachmentLimitType.wireValues : List (String × AttachmentLimitType) := [ + ("dedicated", .dedicated), + ("shared", .shared)] + +def AttachmentLimitType.ofWire (text : String) : Except String AttachmentLimitType := + match List.find? (·.1 == text) AttachmentLimitType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AttachmentLimitType has no value {text}" + +instance : Key AttachmentLimitType := ⟨AttachmentLimitType.wire, AttachmentLimitType.ofWire⟩ + +instance : Shape AttachmentLimitType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AttachmentLimitType.ofWire text + | _ => .error "expected a string" + +inductive AttachmentStatus where + | attached + | attaching + | detached + | detaching +deriving DecidableEq, Repr, Inhabited + +def AttachmentStatus.wire : AttachmentStatus → String + | .attached => "attached" + | .attaching => "attaching" + | .detached => "detached" + | .detaching => "detaching" + +def AttachmentStatus.wireValues : List (String × AttachmentStatus) := [ + ("attached", .attached), + ("attaching", .attaching), + ("detached", .detached), + ("detaching", .detaching)] + +def AttachmentStatus.ofWire (text : String) : Except String AttachmentStatus := + match List.find? (·.1 == text) AttachmentStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AttachmentStatus has no value {text}" + +instance : Key AttachmentStatus := ⟨AttachmentStatus.wire, AttachmentStatus.ofWire⟩ + +instance : Shape AttachmentStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AttachmentStatus.ofWire text + | _ => .error "expected a string" + +/-- Describes a value for a resource attribute that is a Boolean value. -/ +structure AttributeBooleanValue where + /-- The attribute value. -/ + value : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AttributeBooleanValue where + schema := .struct "AttributeBooleanValue" [({ name := "Value", xmlName := some "value", queryName := some "Value" }, .bool)] + toValue x := record [putOpt "Value" x.value] + ofValue v := do + let value ← v.opt "Value" + return { value } + +/-- Describes a value for a resource attribute that is a String. -/ +structure AttributeValue where + /-- The attribute value. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AttributeValue where + schema := .struct "AttributeValue" [({ name := "Value", xmlName := some "value", queryName := some "Value" }, .string)] + toValue x := record [putOpt "Value" x.value] + ofValue v := do + let value ← v.opt "Value" + return { value } + +structure AuthorizeClientVpnIngressRequest where + /-- The ID of the group to grant access to, for example, the Active Directory group or identity provider (IdP) group. -/ + accessGroupId : Option String := none + /-- Indicates whether to grant access to all clients. -/ + authorizeAllGroups : Option Bool := none + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The ID of the Client VPN endpoint. -/ + clientVpnEndpointId : String + /-- A brief description of the authorization rule. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IPv4 address range, in CIDR notation, of the network for which access is being authorized. -/ + targetNetworkCidr : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AuthorizeClientVpnIngressRequest where + schema := .struct "AuthorizeClientVpnIngressRequest" [({ name := "AccessGroupId" }, .string), + ({ name := "AuthorizeAllGroups" }, .bool), + ({ name := "ClientToken" }, .string), + ({ name := "ClientVpnEndpointId", required := true }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "TargetNetworkCidr", required := true }, .string)] + toValue x := record [putOpt "AccessGroupId" x.accessGroupId, putOpt "AuthorizeAllGroups" x.authorizeAllGroups, putOpt "ClientToken" x.clientToken, put "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, put "TargetNetworkCidr" x.targetNetworkCidr] + ofValue v := do + let accessGroupId ← v.opt "AccessGroupId" + let authorizeAllGroups ← v.opt "AuthorizeAllGroups" + let clientToken ← v.opt "ClientToken" + let clientVpnEndpointId ← v.req "ClientVpnEndpointId" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let targetNetworkCidr ← v.req "TargetNetworkCidr" + return { accessGroupId, authorizeAllGroups, clientToken, clientVpnEndpointId, description, dryRun, targetNetworkCidr } + +inductive AutoAcceptSharedAssociationsValue where + | disable + | enable +deriving DecidableEq, Repr, Inhabited + +def AutoAcceptSharedAssociationsValue.wire : AutoAcceptSharedAssociationsValue → String + | .disable => "disable" + | .enable => "enable" + +def AutoAcceptSharedAssociationsValue.wireValues : List (String × AutoAcceptSharedAssociationsValue) := [ + ("disable", .disable), + ("enable", .enable)] + +def AutoAcceptSharedAssociationsValue.ofWire (text : String) : Except String AutoAcceptSharedAssociationsValue := + match List.find? (·.1 == text) AutoAcceptSharedAssociationsValue.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AutoAcceptSharedAssociationsValue has no value {text}" + +instance : Key AutoAcceptSharedAssociationsValue := ⟨AutoAcceptSharedAssociationsValue.wire, AutoAcceptSharedAssociationsValue.ofWire⟩ + +instance : Shape AutoAcceptSharedAssociationsValue where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AutoAcceptSharedAssociationsValue.ofWire text + | _ => .error "expected a string" + +inductive AutoAcceptSharedAttachmentsValue where + | disable + | enable +deriving DecidableEq, Repr, Inhabited + +def AutoAcceptSharedAttachmentsValue.wire : AutoAcceptSharedAttachmentsValue → String + | .disable => "disable" + | .enable => "enable" + +def AutoAcceptSharedAttachmentsValue.wireValues : List (String × AutoAcceptSharedAttachmentsValue) := [ + ("disable", .disable), + ("enable", .enable)] + +def AutoAcceptSharedAttachmentsValue.ofWire (text : String) : Except String AutoAcceptSharedAttachmentsValue := + match List.find? (·.1 == text) AutoAcceptSharedAttachmentsValue.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AutoAcceptSharedAttachmentsValue has no value {text}" + +instance : Key AutoAcceptSharedAttachmentsValue := ⟨AutoAcceptSharedAttachmentsValue.wire, AutoAcceptSharedAttachmentsValue.ofWire⟩ + +instance : Shape AutoAcceptSharedAttachmentsValue where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AutoAcceptSharedAttachmentsValue.ofWire text + | _ => .error "expected a string" + +inductive AutoPlacement where + | off + | on +deriving DecidableEq, Repr, Inhabited + +def AutoPlacement.wire : AutoPlacement → String + | .off => "off" + | .on => "on" + +def AutoPlacement.wireValues : List (String × AutoPlacement) := [ + ("off", .off), + ("on", .on)] + +def AutoPlacement.ofWire (text : String) : Except String AutoPlacement := + match List.find? (·.1 == text) AutoPlacement.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AutoPlacement has no value {text}" + +instance : Key AutoPlacement := ⟨AutoPlacement.wire, AutoPlacement.ofWire⟩ + +instance : Shape AutoPlacement where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AutoPlacement.ofWire text + | _ => .error "expected a string" + +inductive AutoProvisionZonesState where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def AutoProvisionZonesState.wire : AutoProvisionZonesState → String + | .disabled => "disabled" + | .enabled => "enabled" + +def AutoProvisionZonesState.wireValues : List (String × AutoProvisionZonesState) := [ + ("disabled", .disabled), + ("enabled", .enabled)] + +def AutoProvisionZonesState.ofWire (text : String) : Except String AutoProvisionZonesState := + match List.find? (·.1 == text) AutoProvisionZonesState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AutoProvisionZonesState has no value {text}" + +instance : Key AutoProvisionZonesState := ⟨AutoProvisionZonesState.wire, AutoProvisionZonesState.ofWire⟩ + +instance : Shape AutoProvisionZonesState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AutoProvisionZonesState.ofWire text + | _ => .error "expected a string" + +inductive AutoScalingIpsState where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def AutoScalingIpsState.wire : AutoScalingIpsState → String + | .disabled => "disabled" + | .enabled => "enabled" + +def AutoScalingIpsState.wireValues : List (String × AutoScalingIpsState) := [ + ("disabled", .disabled), + ("enabled", .enabled)] + +def AutoScalingIpsState.ofWire (text : String) : Except String AutoScalingIpsState := + match List.find? (·.1 == text) AutoScalingIpsState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AutoScalingIpsState has no value {text}" + +instance : Key AutoScalingIpsState := ⟨AutoScalingIpsState.wire, AutoScalingIpsState.ofWire⟩ + +instance : Shape AutoScalingIpsState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AutoScalingIpsState.ofWire text + | _ => .error "expected a string" + +inductive AvailabilityMode where + | regional + | zonal +deriving DecidableEq, Repr, Inhabited + +def AvailabilityMode.wire : AvailabilityMode → String + | .regional => "regional" + | .zonal => "zonal" + +def AvailabilityMode.wireValues : List (String × AvailabilityMode) := [ + ("regional", .regional), + ("zonal", .zonal)] + +def AvailabilityMode.ofWire (text : String) : Except String AvailabilityMode := + match List.find? (·.1 == text) AvailabilityMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AvailabilityMode has no value {text}" + +instance : Key AvailabilityMode := ⟨AvailabilityMode.wire, AvailabilityMode.ofWire⟩ + +instance : Shape AvailabilityMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AvailabilityMode.ofWire text + | _ => .error "expected a string" + +/-- For regional NAT gateways only: The configuration specifying which Elastic IP address (EIP) to use for handling outbound NAT traffic from a specific Availability Zone. -/ +structure AvailabilityZoneAddress where + /-- The allocation IDs of the Elastic IP addresses (EIPs) to be used for handling outbound NAT traffic in this specific Availability Zone. -/ + allocationIds : Option (List String) := none + /-- For regional NAT gateways only: The Availability Zone where this specific NAT gateway configuration will be active. -/ + availabilityZone : Option String := none + /-- For regional NAT gateways only: The ID of the Availability Zone where this specific NAT gateway configuration will be active. -/ + availabilityZoneId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AvailabilityZoneAddress where + schema := .struct "AvailabilityZoneAddress" [({ name := "AllocationIds", xmlName := some "AllocationId" }, (.list .string "AllocationId")), + ({ name := "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId" }, .string)] + toValue x := record [putOpt "AllocationIds" x.allocationIds, putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId] + ofValue v := do + let allocationIds ← v.opt "AllocationIds" + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + return { allocationIds, availabilityZone, availabilityZoneId } + +/-- Describes the geography information for an Availability Zone or Local Zone. -/ +structure AvailabilityZoneGeography where + /-- The name of the geography, for example, United States of America . -/ + name : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AvailabilityZoneGeography where + schema := .struct "AvailabilityZoneGeography" [({ name := "Name", xmlName := some "name", queryName := some "Name" }, .string)] + toValue x := record [putOpt "Name" x.name] + ofValue v := do + let name ← v.opt "Name" + return { name } + +/-- Describes a message about an Availability Zone, Local Zone, or Wavelength Zone. -/ +structure AvailabilityZoneMessage where + /-- The message about the Availability Zone, Local Zone, or Wavelength Zone. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AvailabilityZoneMessage where + schema := .struct "AvailabilityZoneMessage" [({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Message" x.message] + ofValue v := do + let message ← v.opt "Message" + return { message } + +inductive AvailabilityZoneOptInStatus where + | not_opted_in + | opt_in_not_required + | opted_in +deriving DecidableEq, Repr, Inhabited + +def AvailabilityZoneOptInStatus.wire : AvailabilityZoneOptInStatus → String + | .not_opted_in => "not-opted-in" + | .opt_in_not_required => "opt-in-not-required" + | .opted_in => "opted-in" + +def AvailabilityZoneOptInStatus.wireValues : List (String × AvailabilityZoneOptInStatus) := [ + ("not-opted-in", .not_opted_in), + ("opt-in-not-required", .opt_in_not_required), + ("opted-in", .opted_in)] + +def AvailabilityZoneOptInStatus.ofWire (text : String) : Except String AvailabilityZoneOptInStatus := + match List.find? (·.1 == text) AvailabilityZoneOptInStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AvailabilityZoneOptInStatus has no value {text}" + +instance : Key AvailabilityZoneOptInStatus := ⟨AvailabilityZoneOptInStatus.wire, AvailabilityZoneOptInStatus.ofWire⟩ + +instance : Shape AvailabilityZoneOptInStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AvailabilityZoneOptInStatus.ofWire text + | _ => .error "expected a string" + +inductive AvailabilityZoneState where + | available + | constrained + | impaired + | information + | unavailable +deriving DecidableEq, Repr, Inhabited + +def AvailabilityZoneState.wire : AvailabilityZoneState → String + | .available => "available" + | .constrained => "constrained" + | .impaired => "impaired" + | .information => "information" + | .unavailable => "unavailable" + +def AvailabilityZoneState.wireValues : List (String × AvailabilityZoneState) := [ + ("available", .available), + ("constrained", .constrained), + ("impaired", .impaired), + ("information", .information), + ("unavailable", .unavailable)] + +def AvailabilityZoneState.ofWire (text : String) : Except String AvailabilityZoneState := + match List.find? (·.1 == text) AvailabilityZoneState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AvailabilityZoneState has no value {text}" + +instance : Key AvailabilityZoneState := ⟨AvailabilityZoneState.wire, AvailabilityZoneState.ofWire⟩ + +instance : Shape AvailabilityZoneState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AvailabilityZoneState.ofWire text + | _ => .error "expected a string" + +/-- Describes the sub-geography information for an Availability Zone or Local Zone. -/ +structure AvailabilityZoneSubGeography where + /-- The name of the sub-geography, for example, Oregon. -/ + name : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AvailabilityZoneSubGeography where + schema := .struct "AvailabilityZoneSubGeography" [({ name := "Name", xmlName := some "name", queryName := some "Name" }, .string)] + toValue x := record [putOpt "Name" x.name] + ofValue v := do + let name ← v.opt "Name" + return { name } + +inductive BandwidthWeightingType where + | default + | ebS_1 + | vpC_1 +deriving DecidableEq, Repr, Inhabited + +def BandwidthWeightingType.wire : BandwidthWeightingType → String + | .default => "default" + | .ebS_1 => "ebs-1" + | .vpC_1 => "vpc-1" + +def BandwidthWeightingType.wireValues : List (String × BandwidthWeightingType) := [ + ("default", .default), + ("ebs-1", .ebS_1), + ("vpc-1", .vpC_1)] + +def BandwidthWeightingType.ofWire (text : String) : Except String BandwidthWeightingType := + match List.find? (·.1 == text) BandwidthWeightingType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BandwidthWeightingType has no value {text}" + +instance : Key BandwidthWeightingType := ⟨BandwidthWeightingType.wire, BandwidthWeightingType.ofWire⟩ + +instance : Shape BandwidthWeightingType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BandwidthWeightingType.ofWire text + | _ => .error "expected a string" + +inductive BareMetal where + | excluded + | included + | required +deriving DecidableEq, Repr, Inhabited + +def BareMetal.wire : BareMetal → String + | .excluded => "excluded" + | .included => "included" + | .required => "required" + +def BareMetal.wireValues : List (String × BareMetal) := [ + ("excluded", .excluded), + ("included", .included), + ("required", .required)] + +def BareMetal.ofWire (text : String) : Except String BareMetal := + match List.find? (·.1 == text) BareMetal.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BareMetal has no value {text}" + +instance : Key BareMetal := ⟨BareMetal.wire, BareMetal.ofWire⟩ + +instance : Shape BareMetal where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BareMetal.ofWire text + | _ => .error "expected a string" + +/-- The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. -/ +structure BaselineEbsBandwidthMbps where + /-- The maximum baseline bandwidth, in Mbps. -/ + max : Option Int := none + /-- The minimum baseline bandwidth, in Mbps. -/ + min : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BaselineEbsBandwidthMbps where + schema := .struct "BaselineEbsBandwidthMbps" [({ name := "Max", xmlName := some "max", queryName := some "Max" }, .int), + ({ name := "Min", xmlName := some "min", queryName := some "Min" }, .int)] + toValue x := record [putOpt "Max" x.max, putOpt "Min" x.min] + ofValue v := do + let max ← v.opt "Max" + let min ← v.opt "Min" + return { max, min } + +/-- The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. -/ +structure BaselineEbsBandwidthMbpsRequest where + /-- The maximum baseline bandwidth, in Mbps. -/ + max : Option Int := none + /-- The minimum baseline bandwidth, in Mbps. -/ + min : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BaselineEbsBandwidthMbpsRequest where + schema := .struct "BaselineEbsBandwidthMbpsRequest" [({ name := "Max" }, .int), + ({ name := "Min" }, .int)] + toValue x := record [putOpt "Max" x.max, putOpt "Min" x.min] + ofValue v := do + let max ← v.opt "Max" + let min ← v.opt "Min" + return { max, min } + +structure BatchModifyIpamRoutingPolicyRegistrationsRequest where + /-- A unique, case-sensitive identifier to ensure that the operation completes no more than one time. -/ + clientToken : Option String := none + /-- The batch modifications to apply, in JSON format. -/ + deltaJson : String + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Forces the batch modification even if individual changes conflict with announced routes. -/ + force : Option Bool := none + /-- The ID of the IPAM internet registry association. -/ + ipamInternetRegistryAssociationId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape BatchModifyIpamRoutingPolicyRegistrationsRequest where + schema := .struct "BatchModifyIpamRoutingPolicyRegistrationsRequest" [({ name := "ClientToken" }, .string), + ({ name := "DeltaJson", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Force" }, .bool), + ({ name := "IpamInternetRegistryAssociationId", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, put "DeltaJson" x.deltaJson, putOpt "DryRun" x.dryRun, putOpt "Force" x.force, put "IpamInternetRegistryAssociationId" x.ipamInternetRegistryAssociationId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let deltaJson ← v.req "DeltaJson" + let dryRun ← v.opt "DryRun" + let force ← v.opt "Force" + let ipamInternetRegistryAssociationId ← v.req "IpamInternetRegistryAssociationId" + return { clientToken, deltaJson, dryRun, force, ipamInternetRegistryAssociationId } + +inductive BatchState where + | active + | cancelled + | cancelleD_RUNNING + | cancelleD_TERMINATING_INSTANCES + | failed + | modifying + | submitted +deriving DecidableEq, Repr, Inhabited + +def BatchState.wire : BatchState → String + | .active => "active" + | .cancelled => "cancelled" + | .cancelleD_RUNNING => "cancelled_running" + | .cancelleD_TERMINATING_INSTANCES => "cancelled_terminating" + | .failed => "failed" + | .modifying => "modifying" + | .submitted => "submitted" + +def BatchState.wireValues : List (String × BatchState) := [ + ("active", .active), + ("cancelled", .cancelled), + ("cancelled_running", .cancelleD_RUNNING), + ("cancelled_terminating", .cancelleD_TERMINATING_INSTANCES), + ("failed", .failed), + ("modifying", .modifying), + ("submitted", .submitted)] + +def BatchState.ofWire (text : String) : Except String BatchState := + match List.find? (·.1 == text) BatchState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BatchState has no value {text}" + +instance : Key BatchState := ⟨BatchState.wire, BatchState.ofWire⟩ + +instance : Shape BatchState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BatchState.ofWire text + | _ => .error "expected a string" + +inductive BgpStatus where + | down + | up +deriving DecidableEq, Repr, Inhabited + +def BgpStatus.wire : BgpStatus → String + | .down => "down" + | .up => "up" + +def BgpStatus.wireValues : List (String × BgpStatus) := [ + ("down", .down), + ("up", .up)] + +def BgpStatus.ofWire (text : String) : Except String BgpStatus := + match List.find? (·.1 == text) BgpStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BgpStatus has no value {text}" + +instance : Key BgpStatus := ⟨BgpStatus.wire, BgpStatus.ofWire⟩ + +instance : Shape BgpStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BgpStatus.ofWire text + | _ => .error "expected a string" + +inductive BlockPublicAccessMode where + | block_bidirectional + | block_ingress + | off +deriving DecidableEq, Repr, Inhabited + +def BlockPublicAccessMode.wire : BlockPublicAccessMode → String + | .block_bidirectional => "block-bidirectional" + | .block_ingress => "block-ingress" + | .off => "off" + +def BlockPublicAccessMode.wireValues : List (String × BlockPublicAccessMode) := [ + ("block-bidirectional", .block_bidirectional), + ("block-ingress", .block_ingress), + ("off", .off)] + +def BlockPublicAccessMode.ofWire (text : String) : Except String BlockPublicAccessMode := + match List.find? (·.1 == text) BlockPublicAccessMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BlockPublicAccessMode has no value {text}" + +instance : Key BlockPublicAccessMode := ⟨BlockPublicAccessMode.wire, BlockPublicAccessMode.ofWire⟩ + +instance : Shape BlockPublicAccessMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BlockPublicAccessMode.ofWire text + | _ => .error "expected a string" + +inductive BootModeOverrideValues where + | uefi +deriving DecidableEq, Repr, Inhabited + +def BootModeOverrideValues.wire : BootModeOverrideValues → String + | .uefi => "uefi" + +def BootModeOverrideValues.wireValues : List (String × BootModeOverrideValues) := [ + ("uefi", .uefi)] + +def BootModeOverrideValues.ofWire (text : String) : Except String BootModeOverrideValues := + match List.find? (·.1 == text) BootModeOverrideValues.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BootModeOverrideValues has no value {text}" + +instance : Key BootModeOverrideValues := ⟨BootModeOverrideValues.wire, BootModeOverrideValues.ofWire⟩ + +instance : Shape BootModeOverrideValues where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BootModeOverrideValues.ofWire text + | _ => .error "expected a string" + +inductive BootModeType where + | legacy_bios + | uefi +deriving DecidableEq, Repr, Inhabited + +def BootModeType.wire : BootModeType → String + | .legacy_bios => "legacy-bios" + | .uefi => "uefi" + +def BootModeType.wireValues : List (String × BootModeType) := [ + ("legacy-bios", .legacy_bios), + ("uefi", .uefi)] + +def BootModeType.ofWire (text : String) : Except String BootModeType := + match List.find? (·.1 == text) BootModeType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BootModeType has no value {text}" + +instance : Key BootModeType := ⟨BootModeType.wire, BootModeType.ofWire⟩ + +instance : Shape BootModeType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BootModeType.ofWire text + | _ => .error "expected a string" + +inductive BootModeValues where + | legacy_bios + | uefi + | uefi_preferred +deriving DecidableEq, Repr, Inhabited + +def BootModeValues.wire : BootModeValues → String + | .legacy_bios => "legacy-bios" + | .uefi => "uefi" + | .uefi_preferred => "uefi-preferred" + +def BootModeValues.wireValues : List (String × BootModeValues) := [ + ("legacy-bios", .legacy_bios), + ("uefi", .uefi), + ("uefi-preferred", .uefi_preferred)] + +def BootModeValues.ofWire (text : String) : Except String BootModeValues := + match List.find? (·.1 == text) BootModeValues.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BootModeValues has no value {text}" + +instance : Key BootModeValues := ⟨BootModeValues.wire, BootModeValues.ofWire⟩ + +instance : Shape BootModeValues where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BootModeValues.ofWire text + | _ => .error "expected a string" + +/-- Describes an error for BundleInstance . -/ +structure BundleTaskError where + /-- The error code. -/ + code : Option String := none + /-- The error message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BundleTaskError where + schema := .struct "BundleTaskError" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, .string), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +inductive BundleTaskState where + | bundling + | cancelling + | complete + | failed + | pending + | storing + | waiting_for_shutdown +deriving DecidableEq, Repr, Inhabited + +def BundleTaskState.wire : BundleTaskState → String + | .bundling => "bundling" + | .cancelling => "cancelling" + | .complete => "complete" + | .failed => "failed" + | .pending => "pending" + | .storing => "storing" + | .waiting_for_shutdown => "waiting-for-shutdown" + +def BundleTaskState.wireValues : List (String × BundleTaskState) := [ + ("bundling", .bundling), + ("cancelling", .cancelling), + ("complete", .complete), + ("failed", .failed), + ("pending", .pending), + ("storing", .storing), + ("waiting-for-shutdown", .waiting_for_shutdown)] + +def BundleTaskState.ofWire (text : String) : Except String BundleTaskState := + match List.find? (·.1 == text) BundleTaskState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BundleTaskState has no value {text}" + +instance : Key BundleTaskState := ⟨BundleTaskState.wire, BundleTaskState.ofWire⟩ + +instance : Shape BundleTaskState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BundleTaskState.ofWire text + | _ => .error "expected a string" + +inductive BurstablePerformance where + | excluded + | included + | required +deriving DecidableEq, Repr, Inhabited + +def BurstablePerformance.wire : BurstablePerformance → String + | .excluded => "excluded" + | .included => "included" + | .required => "required" + +def BurstablePerformance.wireValues : List (String × BurstablePerformance) := [ + ("excluded", .excluded), + ("included", .included), + ("required", .required)] + +def BurstablePerformance.ofWire (text : String) : Except String BurstablePerformance := + match List.find? (·.1 == text) BurstablePerformance.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BurstablePerformance has no value {text}" + +instance : Key BurstablePerformance := ⟨BurstablePerformance.wire, BurstablePerformance.ofWire⟩ + +instance : Shape BurstablePerformance where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BurstablePerformance.ofWire text + | _ => .error "expected a string" + +inductive ByoipCidrState where + | advertised + | deprovisioned + | failed_deprovision + | failed_provision + | pending_advertising + | pending_deprovision + | pending_provision + | pending_withdrawal + | provisioned + | provisioned_not_publicly_advertisable +deriving DecidableEq, Repr, Inhabited + +def ByoipCidrState.wire : ByoipCidrState → String + | .advertised => "advertised" + | .deprovisioned => "deprovisioned" + | .failed_deprovision => "failed-deprovision" + | .failed_provision => "failed-provision" + | .pending_advertising => "pending-advertising" + | .pending_deprovision => "pending-deprovision" + | .pending_provision => "pending-provision" + | .pending_withdrawal => "pending-withdrawal" + | .provisioned => "provisioned" + | .provisioned_not_publicly_advertisable => "provisioned-not-publicly-advertisable" + +def ByoipCidrState.wireValues : List (String × ByoipCidrState) := [ + ("advertised", .advertised), + ("deprovisioned", .deprovisioned), + ("failed-deprovision", .failed_deprovision), + ("failed-provision", .failed_provision), + ("pending-advertising", .pending_advertising), + ("pending-deprovision", .pending_deprovision), + ("pending-provision", .pending_provision), + ("pending-withdrawal", .pending_withdrawal), + ("provisioned", .provisioned), + ("provisioned-not-publicly-advertisable", .provisioned_not_publicly_advertisable)] + +def ByoipCidrState.ofWire (text : String) : Except String ByoipCidrState := + match List.find? (·.1 == text) ByoipCidrState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ByoipCidrState has no value {text}" + +instance : Key ByoipCidrState := ⟨ByoipCidrState.wire, ByoipCidrState.ofWire⟩ + +instance : Shape ByoipCidrState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ByoipCidrState.ofWire text + | _ => .error "expected a string" + +inductive CallerRole where + | odcr_owner + | unused_reservation_billing_owner +deriving DecidableEq, Repr, Inhabited + +def CallerRole.wire : CallerRole → String + | .odcr_owner => "odcr-owner" + | .unused_reservation_billing_owner => "unused-reservation-billing-owner" + +def CallerRole.wireValues : List (String × CallerRole) := [ + ("odcr-owner", .odcr_owner), + ("unused-reservation-billing-owner", .unused_reservation_billing_owner)] + +def CallerRole.ofWire (text : String) : Except String CallerRole := + match List.find? (·.1 == text) CallerRole.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CallerRole has no value {text}" + +instance : Key CallerRole := ⟨CallerRole.wire, CallerRole.ofWire⟩ + +instance : Shape CallerRole where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CallerRole.ofWire text + | _ => .error "expected a string" + +inductive CancelBatchErrorCode where + | fleeT_REQUEST_ID_DOES_NOT_EXIST + | fleeT_REQUEST_ID_MALFORMED + | fleeT_REQUEST_NOT_IN_CANCELLABLE_STATE + | unexpecteD_ERROR +deriving DecidableEq, Repr, Inhabited + +def CancelBatchErrorCode.wire : CancelBatchErrorCode → String + | .fleeT_REQUEST_ID_DOES_NOT_EXIST => "fleetRequestIdDoesNotExist" + | .fleeT_REQUEST_ID_MALFORMED => "fleetRequestIdMalformed" + | .fleeT_REQUEST_NOT_IN_CANCELLABLE_STATE => "fleetRequestNotInCancellableState" + | .unexpecteD_ERROR => "unexpectedError" + +def CancelBatchErrorCode.wireValues : List (String × CancelBatchErrorCode) := [ + ("fleetRequestIdDoesNotExist", .fleeT_REQUEST_ID_DOES_NOT_EXIST), + ("fleetRequestIdMalformed", .fleeT_REQUEST_ID_MALFORMED), + ("fleetRequestNotInCancellableState", .fleeT_REQUEST_NOT_IN_CANCELLABLE_STATE), + ("unexpectedError", .unexpecteD_ERROR)] + +def CancelBatchErrorCode.ofWire (text : String) : Except String CancelBatchErrorCode := + match List.find? (·.1 == text) CancelBatchErrorCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CancelBatchErrorCode has no value {text}" + +instance : Key CancelBatchErrorCode := ⟨CancelBatchErrorCode.wire, CancelBatchErrorCode.ofWire⟩ + +instance : Shape CancelBatchErrorCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CancelBatchErrorCode.ofWire text + | _ => .error "expected a string" + +/-- Contains the parameters for CancelBundleTask. -/ +structure CancelBundleTaskRequest where + /-- The ID of the bundle task. -/ + bundleId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelBundleTaskRequest where + schema := .struct "CancelBundleTaskRequest" [({ name := "BundleId", required := true }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool)] + toValue x := record [put "BundleId" x.bundleId, putOpt "DryRun" x.dryRun] + ofValue v := do + let bundleId ← v.req "BundleId" + let dryRun ← v.opt "DryRun" + return { bundleId, dryRun } + +/-- Describes a Capacity Reservation Fleet cancellation error. -/ +structure CancelCapacityReservationFleetError where + /-- The error code. -/ + code : Option String := none + /-- The error message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelCapacityReservationFleetError where + schema := .struct "CancelCapacityReservationFleetError" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, .string), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +structure CancelCapacityReservationFleetsRequest where + /-- The IDs of the Capacity Reservation Fleets to cancel. -/ + capacityReservationFleetIds : (List String) + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelCapacityReservationFleetsRequest where + schema := .struct "CancelCapacityReservationFleetsRequest" [({ name := "CapacityReservationFleetIds", required := true, xmlName := some "CapacityReservationFleetId" }, (.list .string "item")), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "CapacityReservationFleetIds" x.capacityReservationFleetIds, putOpt "DryRun" x.dryRun] + ofValue v := do + let capacityReservationFleetIds ← v.req "CapacityReservationFleetIds" + let dryRun ← v.opt "DryRun" + return { capacityReservationFleetIds, dryRun } + +structure CancelCapacityReservationResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelCapacityReservationResult where + schema := .struct "CancelCapacityReservationResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure CancelConversionRequest where + /-- The ID of the conversion task. -/ + conversionTaskId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The reason for canceling the conversion task. -/ + reasonMessage : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelConversionRequest where + schema := .struct "CancelConversionRequest" [({ name := "ConversionTaskId", required := true, xmlName := some "conversionTaskId", queryName := some "ConversionTaskId" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "ReasonMessage", xmlName := some "reasonMessage", queryName := some "ReasonMessage" }, .string)] + toValue x := record [put "ConversionTaskId" x.conversionTaskId, putOpt "DryRun" x.dryRun, putOpt "ReasonMessage" x.reasonMessage] + ofValue v := do + let conversionTaskId ← v.req "ConversionTaskId" + let dryRun ← v.opt "DryRun" + let reasonMessage ← v.opt "ReasonMessage" + return { conversionTaskId, dryRun, reasonMessage } + +structure CancelDeclarativePoliciesReportRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the report. -/ + reportId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelDeclarativePoliciesReportRequest where + schema := .struct "CancelDeclarativePoliciesReportRequest" [({ name := "DryRun" }, .bool), + ({ name := "ReportId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "ReportId" x.reportId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let reportId ← v.req "ReportId" + return { dryRun, reportId } + +structure CancelDeclarativePoliciesReportResult where + /-- Is true if the request succeeds, and an error otherwise. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelDeclarativePoliciesReportResult where + schema := .struct "CancelDeclarativePoliciesReportResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure CancelExportTaskRequest where + /-- The ID of the export task. -/ + exportTaskId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelExportTaskRequest where + schema := .struct "CancelExportTaskRequest" [({ name := "ExportTaskId", required := true, xmlName := some "exportTaskId", queryName := some "ExportTaskId" }, .string)] + toValue x := record [put "ExportTaskId" x.exportTaskId] + ofValue v := do + let exportTaskId ← v.req "ExportTaskId" + return { exportTaskId } + +structure CancelImageLaunchPermissionRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AMI that was shared with your Amazon Web Services account. -/ + imageId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelImageLaunchPermissionRequest where + schema := .struct "CancelImageLaunchPermissionRequest" [({ name := "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "ImageId" x.imageId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + return { dryRun, imageId } + +structure CancelImageLaunchPermissionResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelImageLaunchPermissionResult where + schema := .struct "CancelImageLaunchPermissionResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure CancelImportTaskRequest where + /-- The reason for canceling the task. -/ + cancelReason : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the import image or import snapshot task to be canceled. -/ + importTaskId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelImportTaskRequest where + schema := .struct "CancelImportTaskRequest" [({ name := "CancelReason" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "ImportTaskId" }, .string)] + toValue x := record [putOpt "CancelReason" x.cancelReason, putOpt "DryRun" x.dryRun, putOpt "ImportTaskId" x.importTaskId] + ofValue v := do + let cancelReason ← v.opt "CancelReason" + let dryRun ← v.opt "DryRun" + let importTaskId ← v.opt "ImportTaskId" + return { cancelReason, dryRun, importTaskId } + +structure CancelImportTaskResult where + /-- The ID of the task being canceled. -/ + importTaskId : Option String := none + /-- The current state of the task being canceled. -/ + previousState : Option String := none + /-- The current state of the task being canceled. -/ + state : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelImportTaskResult where + schema := .struct "CancelImportTaskResult" [({ name := "ImportTaskId", xmlName := some "importTaskId", queryName := some "ImportTaskId" }, .string), + ({ name := "PreviousState", xmlName := some "previousState", queryName := some "PreviousState" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, .string)] + toValue x := record [putOpt "ImportTaskId" x.importTaskId, putOpt "PreviousState" x.previousState, putOpt "State" x.state] + ofValue v := do + let importTaskId ← v.opt "ImportTaskId" + let previousState ← v.opt "PreviousState" + let state ← v.opt "State" + return { importTaskId, previousState, state } + +/-- Contains the parameters for CancelReservedInstancesListing. -/ +structure CancelReservedInstancesListingRequest where + /-- The ID of the Reserved Instance listing. -/ + reservedInstancesListingId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelReservedInstancesListingRequest where + schema := .struct "CancelReservedInstancesListingRequest" [({ name := "ReservedInstancesListingId", required := true, xmlName := some "reservedInstancesListingId", queryName := some "ReservedInstancesListingId" }, .string)] + toValue x := record [put "ReservedInstancesListingId" x.reservedInstancesListingId] + ofValue v := do + let reservedInstancesListingId ← v.req "ReservedInstancesListingId" + return { reservedInstancesListingId } + +/-- Contains the parameters for CancelSpotFleetRequests. -/ +structure CancelSpotFleetRequestsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the Spot Fleet requests. -/ + spotFleetRequestIds : (List String) + /-- Indicates whether to terminate the associated instances when the Spot Fleet request is canceled. -/ + terminateInstances : Bool +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelSpotFleetRequestsRequest where + schema := .struct "CancelSpotFleetRequestsRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "SpotFleetRequestIds", required := true, xmlName := some "spotFleetRequestId", queryName := some "SpotFleetRequestId" }, (.list .string "item")), + ({ name := "TerminateInstances", required := true, xmlName := some "terminateInstances", queryName := some "TerminateInstances" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun, put "SpotFleetRequestIds" x.spotFleetRequestIds, put "TerminateInstances" x.terminateInstances] + ofValue v := do + let dryRun ← v.opt "DryRun" + let spotFleetRequestIds ← v.req "SpotFleetRequestIds" + let terminateInstances ← v.req "TerminateInstances" + return { dryRun, spotFleetRequestIds, terminateInstances } + +inductive CancelSpotInstanceRequestState where + | active + | cancelled + | closed + | completed + | «open» +deriving DecidableEq, Repr, Inhabited + +def CancelSpotInstanceRequestState.wire : CancelSpotInstanceRequestState → String + | .active => "active" + | .cancelled => "cancelled" + | .closed => "closed" + | .completed => "completed" + | .«open» => "open" + +def CancelSpotInstanceRequestState.wireValues : List (String × CancelSpotInstanceRequestState) := [ + ("active", .active), + ("cancelled", .cancelled), + ("closed", .closed), + ("completed", .completed), + ("open", .«open»)] + +def CancelSpotInstanceRequestState.ofWire (text : String) : Except String CancelSpotInstanceRequestState := + match List.find? (·.1 == text) CancelSpotInstanceRequestState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CancelSpotInstanceRequestState has no value {text}" + +instance : Key CancelSpotInstanceRequestState := ⟨CancelSpotInstanceRequestState.wire, CancelSpotInstanceRequestState.ofWire⟩ + +instance : Shape CancelSpotInstanceRequestState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CancelSpotInstanceRequestState.ofWire text + | _ => .error "expected a string" + +/-- Contains the parameters for CancelSpotInstanceRequests. -/ +structure CancelSpotInstanceRequestsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the Spot Instance requests. -/ + spotInstanceRequestIds : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelSpotInstanceRequestsRequest where + schema := .struct "CancelSpotInstanceRequestsRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "SpotInstanceRequestIds", required := true, xmlName := some "SpotInstanceRequestId" }, (.list .string "SpotInstanceRequestId"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "SpotInstanceRequestIds" x.spotInstanceRequestIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let spotInstanceRequestIds ← v.req "SpotInstanceRequestIds" + return { dryRun, spotInstanceRequestIds } + +/-- A key-value pair that provides additional metadata about a capacity allocation. -/ +structure CapacityAllocationMetadataEntry where + /-- The key of the metadata entry. -/ + key : Option String := none + /-- The value of the metadata entry. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityAllocationMetadataEntry where + schema := .struct "CapacityAllocationMetadataEntry" [({ name := "Key", xmlName := some "key", queryName := some "Key" }, .string), + ({ name := "Value", xmlName := some "value", queryName := some "Value" }, .string)] + toValue x := record [putOpt "Key" x.key, putOpt "Value" x.value] + ofValue v := do + let key ← v.opt "Key" + let value ← v.opt "Value" + return { key, value } + +inductive CapacityBlockExtensionStatus where + | paymenT_FAILED + | paymenT_PENDING + | paymenT_SUCCEEDED +deriving DecidableEq, Repr, Inhabited + +def CapacityBlockExtensionStatus.wire : CapacityBlockExtensionStatus → String + | .paymenT_FAILED => "payment-failed" + | .paymenT_PENDING => "payment-pending" + | .paymenT_SUCCEEDED => "payment-succeeded" + +def CapacityBlockExtensionStatus.wireValues : List (String × CapacityBlockExtensionStatus) := [ + ("payment-failed", .paymenT_FAILED), + ("payment-pending", .paymenT_PENDING), + ("payment-succeeded", .paymenT_SUCCEEDED)] + +def CapacityBlockExtensionStatus.ofWire (text : String) : Except String CapacityBlockExtensionStatus := + match List.find? (·.1 == text) CapacityBlockExtensionStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityBlockExtensionStatus has no value {text}" + +instance : Key CapacityBlockExtensionStatus := ⟨CapacityBlockExtensionStatus.wire, CapacityBlockExtensionStatus.ofWire⟩ + +instance : Shape CapacityBlockExtensionStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityBlockExtensionStatus.ofWire text + | _ => .error "expected a string" + +/-- Instance type preference for a Capacity Block search. -/ +structure CapacityBlockInstanceTypePreference where + /-- The instance type to consider in the Capacity Block search. -/ + instanceType : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityBlockInstanceTypePreference where + schema := .struct "CapacityBlockInstanceTypePreference" [({ name := "InstanceType" }, .string)] + toValue x := record [putOpt "InstanceType" x.instanceType] + ofValue v := do + let instanceType ← v.opt "InstanceType" + return { instanceType } + +inductive CapacityBlockInterconnectStatus where + | impaired + | insufficient_data + | ok +deriving DecidableEq, Repr, Inhabited + +def CapacityBlockInterconnectStatus.wire : CapacityBlockInterconnectStatus → String + | .impaired => "impaired" + | .insufficient_data => "insufficient-data" + | .ok => "ok" + +def CapacityBlockInterconnectStatus.wireValues : List (String × CapacityBlockInterconnectStatus) := [ + ("impaired", .impaired), + ("insufficient-data", .insufficient_data), + ("ok", .ok)] + +def CapacityBlockInterconnectStatus.ofWire (text : String) : Except String CapacityBlockInterconnectStatus := + match List.find? (·.1 == text) CapacityBlockInterconnectStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityBlockInterconnectStatus has no value {text}" + +instance : Key CapacityBlockInterconnectStatus := ⟨CapacityBlockInterconnectStatus.wire, CapacityBlockInterconnectStatus.ofWire⟩ + +instance : Shape CapacityBlockInterconnectStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityBlockInterconnectStatus.ofWire text + | _ => .error "expected a string" + +/-- Describes an individual segment within a Capacity Block offering. -/ +structure CapacityBlockOfferingSegment where + /-- The Availability Zone of the Capacity Block offering segment. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone for the Capacity Block offering segment. -/ + availabilityZoneId : Option String := none + /-- The number of hours for the duration of the Capacity Block offering segment. -/ + capacityBlockDurationHours : Option Int := none + /-- The number of minutes for the duration of the Capacity Block offering segment. -/ + capacityBlockDurationMinutes : Option Int := none + /-- The currency of the payment for the Capacity Block offering segment. -/ + currencyCode : Option String := none + /-- The end date of the Capacity Block offering segment. -/ + endDate : Option Timestamp := none + /-- The number of instances in the Capacity Block offering segment. -/ + instanceCount : Option Int := none + /-- The instance type of the Capacity Block offering segment. -/ + instanceType : Option String := none + /-- The start date of the Capacity Block offering segment. -/ + startDate : Option Timestamp := none + /-- The total price to be paid up front for the Capacity Block offering segment. -/ + upfrontFee : Option String := none + /-- The type of zone where the Capacity Block offering segment is available. -/ + zoneType : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityBlockOfferingSegment where + schema := .struct "CapacityBlockOfferingSegment" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "CapacityBlockDurationHours", xmlName := some "capacityBlockDurationHours", queryName := some "CapacityBlockDurationHours" }, .int), + ({ name := "CapacityBlockDurationMinutes", xmlName := some "capacityBlockDurationMinutes", queryName := some "CapacityBlockDurationMinutes" }, .int), + ({ name := "CurrencyCode", xmlName := some "currencyCode", queryName := some "CurrencyCode" }, .string), + ({ name := "EndDate", xmlName := some "endDate", queryName := some "EndDate" }, (.time none)), + ({ name := "InstanceCount", xmlName := some "instanceCount", queryName := some "InstanceCount" }, .int), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, .string), + ({ name := "StartDate", xmlName := some "startDate", queryName := some "StartDate" }, (.time none)), + ({ name := "UpfrontFee", xmlName := some "upfrontFee", queryName := some "UpfrontFee" }, .string), + ({ name := "ZoneType", xmlName := some "zoneType", queryName := some "ZoneType" }, .string)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "CapacityBlockDurationHours" x.capacityBlockDurationHours, putOpt "CapacityBlockDurationMinutes" x.capacityBlockDurationMinutes, putOpt "CurrencyCode" x.currencyCode, putOpt "EndDate" x.endDate, putOpt "InstanceCount" x.instanceCount, putOpt "InstanceType" x.instanceType, putOpt "StartDate" x.startDate, putOpt "UpfrontFee" x.upfrontFee, putOpt "ZoneType" x.zoneType] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let capacityBlockDurationHours ← v.opt "CapacityBlockDurationHours" + let capacityBlockDurationMinutes ← v.opt "CapacityBlockDurationMinutes" + let currencyCode ← v.opt "CurrencyCode" + let endDate ← v.opt "EndDate" + let instanceCount ← v.opt "InstanceCount" + let instanceType ← v.opt "InstanceType" + let startDate ← v.opt "StartDate" + let upfrontFee ← v.opt "UpfrontFee" + let zoneType ← v.opt "ZoneType" + return { availabilityZone, availabilityZoneId, capacityBlockDurationHours, capacityBlockDurationMinutes, currencyCode, endDate, instanceCount, instanceType, startDate, upfrontFee, zoneType } + +inductive CapacityBlockResourceState where + | active + | cancelled + | expired + | failed + | payment_failed + | payment_pending + | scheduled + | unavailable +deriving DecidableEq, Repr, Inhabited + +def CapacityBlockResourceState.wire : CapacityBlockResourceState → String + | .active => "active" + | .cancelled => "cancelled" + | .expired => "expired" + | .failed => "failed" + | .payment_failed => "payment-failed" + | .payment_pending => "payment-pending" + | .scheduled => "scheduled" + | .unavailable => "unavailable" + +def CapacityBlockResourceState.wireValues : List (String × CapacityBlockResourceState) := [ + ("active", .active), + ("cancelled", .cancelled), + ("expired", .expired), + ("failed", .failed), + ("payment-failed", .payment_failed), + ("payment-pending", .payment_pending), + ("scheduled", .scheduled), + ("unavailable", .unavailable)] + +def CapacityBlockResourceState.ofWire (text : String) : Except String CapacityBlockResourceState := + match List.find? (·.1 == text) CapacityBlockResourceState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityBlockResourceState has no value {text}" + +instance : Key CapacityBlockResourceState := ⟨CapacityBlockResourceState.wire, CapacityBlockResourceState.ofWire⟩ + +instance : Shape CapacityBlockResourceState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityBlockResourceState.ofWire text + | _ => .error "expected a string" + +inductive CapacityManagerDataExportStatus where + | delivered + | failed + | iN_PROGRESS + | pending +deriving DecidableEq, Repr, Inhabited + +def CapacityManagerDataExportStatus.wire : CapacityManagerDataExportStatus → String + | .delivered => "delivered" + | .failed => "failed" + | .iN_PROGRESS => "in-progress" + | .pending => "pending" + +def CapacityManagerDataExportStatus.wireValues : List (String × CapacityManagerDataExportStatus) := [ + ("delivered", .delivered), + ("failed", .failed), + ("in-progress", .iN_PROGRESS), + ("pending", .pending)] + +def CapacityManagerDataExportStatus.ofWire (text : String) : Except String CapacityManagerDataExportStatus := + match List.find? (·.1 == text) CapacityManagerDataExportStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityManagerDataExportStatus has no value {text}" + +instance : Key CapacityManagerDataExportStatus := ⟨CapacityManagerDataExportStatus.wire, CapacityManagerDataExportStatus.ofWire⟩ + +instance : Shape CapacityManagerDataExportStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityManagerDataExportStatus.ofWire text + | _ => .error "expected a string" + +inductive CapacityManagerMonitoredTagKeyStatus where + | activated + | activating + | deactivating + | suspended +deriving DecidableEq, Repr, Inhabited + +def CapacityManagerMonitoredTagKeyStatus.wire : CapacityManagerMonitoredTagKeyStatus → String + | .activated => "activated" + | .activating => "activating" + | .deactivating => "deactivating" + | .suspended => "suspended" + +def CapacityManagerMonitoredTagKeyStatus.wireValues : List (String × CapacityManagerMonitoredTagKeyStatus) := [ + ("activated", .activated), + ("activating", .activating), + ("deactivating", .deactivating), + ("suspended", .suspended)] + +def CapacityManagerMonitoredTagKeyStatus.ofWire (text : String) : Except String CapacityManagerMonitoredTagKeyStatus := + match List.find? (·.1 == text) CapacityManagerMonitoredTagKeyStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityManagerMonitoredTagKeyStatus has no value {text}" + +instance : Key CapacityManagerMonitoredTagKeyStatus := ⟨CapacityManagerMonitoredTagKeyStatus.wire, CapacityManagerMonitoredTagKeyStatus.ofWire⟩ + +instance : Shape CapacityManagerMonitoredTagKeyStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityManagerMonitoredTagKeyStatus.ofWire text + | _ => .error "expected a string" + +inductive CapacityManagerStatus where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def CapacityManagerStatus.wire : CapacityManagerStatus → String + | .disabled => "disabled" + | .enabled => "enabled" + +def CapacityManagerStatus.wireValues : List (String × CapacityManagerStatus) := [ + ("disabled", .disabled), + ("enabled", .enabled)] + +def CapacityManagerStatus.ofWire (text : String) : Except String CapacityManagerStatus := + match List.find? (·.1 == text) CapacityManagerStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityManagerStatus has no value {text}" + +instance : Key CapacityManagerStatus := ⟨CapacityManagerStatus.wire, CapacityManagerStatus.ofWire⟩ + +instance : Shape CapacityManagerStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityManagerStatus.ofWire text + | _ => .error "expected a string" + +/-- A key-value pair representing a tag associated with a capacity resource in Capacity Manager. -/ +structure CapacityManagerTagDimension where + /-- The tag key. -/ + key : Option String := none + /-- The tag value. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityManagerTagDimension where + schema := .struct "CapacityManagerTagDimension" [({ name := "Key", xmlName := some "key", queryName := some "Key" }, .string), + ({ name := "Value", xmlName := some "value", queryName := some "Value" }, .string)] + toValue x := record [putOpt "Key" x.key, putOpt "Value" x.value] + ofValue v := do + let key ← v.opt "Key" + let value ← v.opt "Value" + return { key, value } + +/-- Describes the configuration that a Capacity Reservation will have after a pending adjustment is applied. -/ +structure CapacityReservationAdjustmentDetails where + /-- The commitment duration, in seconds, that the Capacity Reservation will have after the adjustment. -/ + commitmentDuration : Option Int := none + /-- The date and time at which the commitment duration will expire after the adjustment. -/ + commitmentEndDate : Option Timestamp := none + /-- The end date that the Capacity Reservation will have after the adjustment. -/ + endDate : Option Timestamp := none + /-- Indicates the way in which the Capacity Reservation will end after the adjustment. -/ + endDateType : Option String := none + /-- The start date that the Capacity Reservation will have after the adjustment. -/ + startDate : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityReservationAdjustmentDetails where + schema := .struct "CapacityReservationAdjustmentDetails" [({ name := "CommitmentDuration", xmlName := some "commitmentDuration", queryName := some "CommitmentDuration" }, .int), + ({ name := "CommitmentEndDate", xmlName := some "commitmentEndDate", queryName := some "CommitmentEndDate" }, (.time none)), + ({ name := "EndDate", xmlName := some "endDate", queryName := some "EndDate" }, (.time none)), + ({ name := "EndDateType", xmlName := some "endDateType", queryName := some "EndDateType" }, .string), + ({ name := "StartDate", xmlName := some "startDate", queryName := some "StartDate" }, (.time none))] + toValue x := record [putOpt "CommitmentDuration" x.commitmentDuration, putOpt "CommitmentEndDate" x.commitmentEndDate, putOpt "EndDate" x.endDate, putOpt "EndDateType" x.endDateType, putOpt "StartDate" x.startDate] + ofValue v := do + let commitmentDuration ← v.opt "CommitmentDuration" + let commitmentEndDate ← v.opt "CommitmentEndDate" + let endDate ← v.opt "EndDate" + let endDateType ← v.opt "EndDateType" + let startDate ← v.opt "StartDate" + return { commitmentDuration, commitmentEndDate, endDate, endDateType, startDate } + +inductive CapacityReservationAdjustmentStatus where + | applied + | rejected + | requested +deriving DecidableEq, Repr, Inhabited + +def CapacityReservationAdjustmentStatus.wire : CapacityReservationAdjustmentStatus → String + | .applied => "applied" + | .rejected => "rejected" + | .requested => "requested" + +def CapacityReservationAdjustmentStatus.wireValues : List (String × CapacityReservationAdjustmentStatus) := [ + ("applied", .applied), + ("rejected", .rejected), + ("requested", .requested)] + +def CapacityReservationAdjustmentStatus.ofWire (text : String) : Except String CapacityReservationAdjustmentStatus := + match List.find? (·.1 == text) CapacityReservationAdjustmentStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityReservationAdjustmentStatus has no value {text}" + +instance : Key CapacityReservationAdjustmentStatus := ⟨CapacityReservationAdjustmentStatus.wire, CapacityReservationAdjustmentStatus.ofWire⟩ + +instance : Shape CapacityReservationAdjustmentStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityReservationAdjustmentStatus.ofWire text + | _ => .error "expected a string" + +inductive CapacityReservationBillingRequestStatus where + | accepted + | cancelled + | expired + | pending + | rejected + | revoked +deriving DecidableEq, Repr, Inhabited + +def CapacityReservationBillingRequestStatus.wire : CapacityReservationBillingRequestStatus → String + | .accepted => "accepted" + | .cancelled => "cancelled" + | .expired => "expired" + | .pending => "pending" + | .rejected => "rejected" + | .revoked => "revoked" + +def CapacityReservationBillingRequestStatus.wireValues : List (String × CapacityReservationBillingRequestStatus) := [ + ("accepted", .accepted), + ("cancelled", .cancelled), + ("expired", .expired), + ("pending", .pending), + ("rejected", .rejected), + ("revoked", .revoked)] + +def CapacityReservationBillingRequestStatus.ofWire (text : String) : Except String CapacityReservationBillingRequestStatus := + match List.find? (·.1 == text) CapacityReservationBillingRequestStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityReservationBillingRequestStatus has no value {text}" + +instance : Key CapacityReservationBillingRequestStatus := ⟨CapacityReservationBillingRequestStatus.wire, CapacityReservationBillingRequestStatus.ofWire⟩ + +instance : Shape CapacityReservationBillingRequestStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityReservationBillingRequestStatus.ofWire text + | _ => .error "expected a string" + +inductive CapacityReservationCancellationQuoteState where + | active + | expired + | pending +deriving DecidableEq, Repr, Inhabited + +def CapacityReservationCancellationQuoteState.wire : CapacityReservationCancellationQuoteState → String + | .active => "active" + | .expired => "expired" + | .pending => "pending" + +def CapacityReservationCancellationQuoteState.wireValues : List (String × CapacityReservationCancellationQuoteState) := [ + ("active", .active), + ("expired", .expired), + ("pending", .pending)] + +def CapacityReservationCancellationQuoteState.ofWire (text : String) : Except String CapacityReservationCancellationQuoteState := + match List.find? (·.1 == text) CapacityReservationCancellationQuoteState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityReservationCancellationQuoteState has no value {text}" + +instance : Key CapacityReservationCancellationQuoteState := ⟨CapacityReservationCancellationQuoteState.wire, CapacityReservationCancellationQuoteState.ofWire⟩ + +instance : Shape CapacityReservationCancellationQuoteState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityReservationCancellationQuoteState.ofWire text + | _ => .error "expected a string" + +/-- Information about your commitment for a future-dated Capacity Reservation. -/ +structure CapacityReservationCommitmentInfo where + /-- The commitment duration, in seconds, for the future-dated Capacity Reservation. -/ + commitmentDuration : Option Int := none + /-- The date and time at which the commitment duration expires, in the ISO8601 format in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ ). -/ + commitmentEndDate : Option Timestamp := none + /-- The instance capacity that you committed to when you requested the future-dated Capacity Reservation. -/ + committedInstanceCount : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityReservationCommitmentInfo where + schema := .struct "CapacityReservationCommitmentInfo" [({ name := "CommitmentDuration", xmlName := some "commitmentDuration", queryName := some "CommitmentDuration" }, .int), + ({ name := "CommitmentEndDate", xmlName := some "commitmentEndDate", queryName := some "CommitmentEndDate" }, (.time none)), + ({ name := "CommittedInstanceCount", xmlName := some "committedInstanceCount", queryName := some "CommittedInstanceCount" }, .int)] + toValue x := record [putOpt "CommitmentDuration" x.commitmentDuration, putOpt "CommitmentEndDate" x.commitmentEndDate, putOpt "CommittedInstanceCount" x.committedInstanceCount] + ofValue v := do + let commitmentDuration ← v.opt "CommitmentDuration" + let commitmentEndDate ← v.opt "CommitmentEndDate" + let committedInstanceCount ← v.opt "CommittedInstanceCount" + return { commitmentDuration, commitmentEndDate, committedInstanceCount } + +/-- Describes the configuration of a Capacity Reservation. -/ +structure CapacityReservationConfiguration where + /-- The number of instances in the Capacity Reservation. -/ + instanceCount : Option Int := none + /-- The current state of the Capacity Reservation. -/ + reservationState : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityReservationConfiguration where + schema := .struct "CapacityReservationConfiguration" [({ name := "InstanceCount", xmlName := some "instanceCount", queryName := some "InstanceCount" }, .int), + ({ name := "ReservationState", xmlName := some "reservationState", queryName := some "ReservationState" }, .string)] + toValue x := record [putOpt "InstanceCount" x.instanceCount, putOpt "ReservationState" x.reservationState] + ofValue v := do + let instanceCount ← v.opt "InstanceCount" + let reservationState ← v.opt "ReservationState" + return { instanceCount, reservationState } + +inductive CapacityReservationDeliveryPreference where + | fixed + | incremental +deriving DecidableEq, Repr, Inhabited + +def CapacityReservationDeliveryPreference.wire : CapacityReservationDeliveryPreference → String + | .fixed => "fixed" + | .incremental => "incremental" + +def CapacityReservationDeliveryPreference.wireValues : List (String × CapacityReservationDeliveryPreference) := [ + ("fixed", .fixed), + ("incremental", .incremental)] + +def CapacityReservationDeliveryPreference.ofWire (text : String) : Except String CapacityReservationDeliveryPreference := + match List.find? (·.1 == text) CapacityReservationDeliveryPreference.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityReservationDeliveryPreference has no value {text}" + +instance : Key CapacityReservationDeliveryPreference := ⟨CapacityReservationDeliveryPreference.wire, CapacityReservationDeliveryPreference.ofWire⟩ + +instance : Shape CapacityReservationDeliveryPreference where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityReservationDeliveryPreference.ofWire text + | _ => .error "expected a string" + +inductive CapacityReservationFleetState where + | active + | cancelled + | cancelling + | expired + | expiring + | failed + | modifying + | partiallY_FULFILLED + | submitted +deriving DecidableEq, Repr, Inhabited + +def CapacityReservationFleetState.wire : CapacityReservationFleetState → String + | .active => "active" + | .cancelled => "cancelled" + | .cancelling => "cancelling" + | .expired => "expired" + | .expiring => "expiring" + | .failed => "failed" + | .modifying => "modifying" + | .partiallY_FULFILLED => "partially_fulfilled" + | .submitted => "submitted" + +def CapacityReservationFleetState.wireValues : List (String × CapacityReservationFleetState) := [ + ("active", .active), + ("cancelled", .cancelled), + ("cancelling", .cancelling), + ("expired", .expired), + ("expiring", .expiring), + ("failed", .failed), + ("modifying", .modifying), + ("partially_fulfilled", .partiallY_FULFILLED), + ("submitted", .submitted)] + +def CapacityReservationFleetState.ofWire (text : String) : Except String CapacityReservationFleetState := + match List.find? (·.1 == text) CapacityReservationFleetState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityReservationFleetState has no value {text}" + +instance : Key CapacityReservationFleetState := ⟨CapacityReservationFleetState.wire, CapacityReservationFleetState.ofWire⟩ + +instance : Shape CapacityReservationFleetState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityReservationFleetState.ofWire text + | _ => .error "expected a string" + +/-- Describes a resource group to which a Capacity Reservation has been added. -/ +structure CapacityReservationGroup where + /-- The ARN of the resource group. -/ + groupArn : Option String := none + /-- The ID of the Amazon Web Services account that owns the resource group. -/ + ownerId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityReservationGroup where + schema := .struct "CapacityReservationGroup" [({ name := "GroupArn", xmlName := some "groupArn", queryName := some "GroupArn" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string)] + toValue x := record [putOpt "GroupArn" x.groupArn, putOpt "OwnerId" x.ownerId] + ofValue v := do + let groupArn ← v.opt "GroupArn" + let ownerId ← v.opt "OwnerId" + return { groupArn, ownerId } + +inductive CapacityReservationInstancePlatform where + | linuX_UNIX + | linuX_WITH_SQL_SERVER_ENTERPRISE + | linuX_WITH_SQL_SERVER_STANDARD + | linuX_WITH_SQL_SERVER_WEB + | reD_HAT_ENTERPRISE_LINUX + | rheL_WITH_HA + | rheL_WITH_HA_AND_SQL_SERVER_ENTERPRISE + | rheL_WITH_HA_AND_SQL_SERVER_STANDARD + | rheL_WITH_SQL_SERVER_ENTERPRISE + | rheL_WITH_SQL_SERVER_STANDARD + | rheL_WITH_SQL_SERVER_WEB + | susE_LINUX + | ubuntU_PRO_LINUX + | windows + | windowS_WITH_SQL_SERVER + | windowS_WITH_SQL_SERVER_ENTERPRISE + | windowS_WITH_SQL_SERVER_STANDARD + | windowS_WITH_SQL_SERVER_WEB +deriving DecidableEq, Repr, Inhabited + +def CapacityReservationInstancePlatform.wire : CapacityReservationInstancePlatform → String + | .linuX_UNIX => "Linux/UNIX" + | .linuX_WITH_SQL_SERVER_ENTERPRISE => "Linux with SQL Server Enterprise" + | .linuX_WITH_SQL_SERVER_STANDARD => "Linux with SQL Server Standard" + | .linuX_WITH_SQL_SERVER_WEB => "Linux with SQL Server Web" + | .reD_HAT_ENTERPRISE_LINUX => "Red Hat Enterprise Linux" + | .rheL_WITH_HA => "RHEL with HA" + | .rheL_WITH_HA_AND_SQL_SERVER_ENTERPRISE => "RHEL with HA and SQL Server Enterprise" + | .rheL_WITH_HA_AND_SQL_SERVER_STANDARD => "RHEL with HA and SQL Server Standard" + | .rheL_WITH_SQL_SERVER_ENTERPRISE => "RHEL with SQL Server Enterprise" + | .rheL_WITH_SQL_SERVER_STANDARD => "RHEL with SQL Server Standard" + | .rheL_WITH_SQL_SERVER_WEB => "RHEL with SQL Server Web" + | .susE_LINUX => "SUSE Linux" + | .ubuntU_PRO_LINUX => "Ubuntu Pro" + | .windows => "Windows" + | .windowS_WITH_SQL_SERVER => "Windows with SQL Server" + | .windowS_WITH_SQL_SERVER_ENTERPRISE => "Windows with SQL Server Enterprise" + | .windowS_WITH_SQL_SERVER_STANDARD => "Windows with SQL Server Standard" + | .windowS_WITH_SQL_SERVER_WEB => "Windows with SQL Server Web" + +def CapacityReservationInstancePlatform.wireValues : List (String × CapacityReservationInstancePlatform) := [ + ("Linux/UNIX", .linuX_UNIX), + ("Linux with SQL Server Enterprise", .linuX_WITH_SQL_SERVER_ENTERPRISE), + ("Linux with SQL Server Standard", .linuX_WITH_SQL_SERVER_STANDARD), + ("Linux with SQL Server Web", .linuX_WITH_SQL_SERVER_WEB), + ("Red Hat Enterprise Linux", .reD_HAT_ENTERPRISE_LINUX), + ("RHEL with HA", .rheL_WITH_HA), + ("RHEL with HA and SQL Server Enterprise", .rheL_WITH_HA_AND_SQL_SERVER_ENTERPRISE), + ("RHEL with HA and SQL Server Standard", .rheL_WITH_HA_AND_SQL_SERVER_STANDARD), + ("RHEL with SQL Server Enterprise", .rheL_WITH_SQL_SERVER_ENTERPRISE), + ("RHEL with SQL Server Standard", .rheL_WITH_SQL_SERVER_STANDARD), + ("RHEL with SQL Server Web", .rheL_WITH_SQL_SERVER_WEB), + ("SUSE Linux", .susE_LINUX), + ("Ubuntu Pro", .ubuntU_PRO_LINUX), + ("Windows", .windows), + ("Windows with SQL Server", .windowS_WITH_SQL_SERVER), + ("Windows with SQL Server Enterprise", .windowS_WITH_SQL_SERVER_ENTERPRISE), + ("Windows with SQL Server Standard", .windowS_WITH_SQL_SERVER_STANDARD), + ("Windows with SQL Server Web", .windowS_WITH_SQL_SERVER_WEB)] + +def CapacityReservationInstancePlatform.ofWire (text : String) : Except String CapacityReservationInstancePlatform := + match List.find? (·.1 == text) CapacityReservationInstancePlatform.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityReservationInstancePlatform has no value {text}" + +instance : Key CapacityReservationInstancePlatform := ⟨CapacityReservationInstancePlatform.wire, CapacityReservationInstancePlatform.ofWire⟩ + +instance : Shape CapacityReservationInstancePlatform where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityReservationInstancePlatform.ofWire text + | _ => .error "expected a string" + +inductive CapacityReservationLaunchStatus where + | launchable + | unlaunchable +deriving DecidableEq, Repr, Inhabited + +def CapacityReservationLaunchStatus.wire : CapacityReservationLaunchStatus → String + | .launchable => "launchable" + | .unlaunchable => "unlaunchable" + +def CapacityReservationLaunchStatus.wireValues : List (String × CapacityReservationLaunchStatus) := [ + ("launchable", .launchable), + ("unlaunchable", .unlaunchable)] + +def CapacityReservationLaunchStatus.ofWire (text : String) : Except String CapacityReservationLaunchStatus := + match List.find? (·.1 == text) CapacityReservationLaunchStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityReservationLaunchStatus has no value {text}" + +instance : Key CapacityReservationLaunchStatus := ⟨CapacityReservationLaunchStatus.wire, CapacityReservationLaunchStatus.ofWire⟩ + +instance : Shape CapacityReservationLaunchStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityReservationLaunchStatus.ofWire text + | _ => .error "expected a string" + +inductive CapacityReservationModificationQuoteState where + | active + | expired +deriving DecidableEq, Repr, Inhabited + +def CapacityReservationModificationQuoteState.wire : CapacityReservationModificationQuoteState → String + | .active => "active" + | .expired => "expired" + +def CapacityReservationModificationQuoteState.wireValues : List (String × CapacityReservationModificationQuoteState) := [ + ("active", .active), + ("expired", .expired)] + +def CapacityReservationModificationQuoteState.ofWire (text : String) : Except String CapacityReservationModificationQuoteState := + match List.find? (·.1 == text) CapacityReservationModificationQuoteState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityReservationModificationQuoteState has no value {text}" + +instance : Key CapacityReservationModificationQuoteState := ⟨CapacityReservationModificationQuoteState.wire, CapacityReservationModificationQuoteState.ofWire⟩ + +instance : Shape CapacityReservationModificationQuoteState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityReservationModificationQuoteState.ofWire text + | _ => .error "expected a string" + +inductive CapacityReservationPreference where + | capacity_reservations_only + | none + | «open» +deriving DecidableEq, Repr, Inhabited + +def CapacityReservationPreference.wire : CapacityReservationPreference → String + | .capacity_reservations_only => "capacity-reservations-only" + | .none => "none" + | .«open» => "open" + +def CapacityReservationPreference.wireValues : List (String × CapacityReservationPreference) := [ + ("capacity-reservations-only", .capacity_reservations_only), + ("none", .none), + ("open", .«open»)] + +def CapacityReservationPreference.ofWire (text : String) : Except String CapacityReservationPreference := + match List.find? (·.1 == text) CapacityReservationPreference.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityReservationPreference has no value {text}" + +instance : Key CapacityReservationPreference := ⟨CapacityReservationPreference.wire, CapacityReservationPreference.ofWire⟩ + +instance : Shape CapacityReservationPreference where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityReservationPreference.ofWire text + | _ => .error "expected a string" + +inductive CapacityReservationState where + | active + | assessing + | cancelled + | cancelling + | delayed + | expired + | failed + | payment_failed + | payment_pending + | pending + | scheduled + | unavailable + | unsupported +deriving DecidableEq, Repr, Inhabited + +def CapacityReservationState.wire : CapacityReservationState → String + | .active => "active" + | .assessing => "assessing" + | .cancelled => "cancelled" + | .cancelling => "cancelling" + | .delayed => "delayed" + | .expired => "expired" + | .failed => "failed" + | .payment_failed => "payment-failed" + | .payment_pending => "payment-pending" + | .pending => "pending" + | .scheduled => "scheduled" + | .unavailable => "unavailable" + | .unsupported => "unsupported" + +def CapacityReservationState.wireValues : List (String × CapacityReservationState) := [ + ("active", .active), + ("assessing", .assessing), + ("cancelled", .cancelled), + ("cancelling", .cancelling), + ("delayed", .delayed), + ("expired", .expired), + ("failed", .failed), + ("payment-failed", .payment_failed), + ("payment-pending", .payment_pending), + ("pending", .pending), + ("scheduled", .scheduled), + ("unavailable", .unavailable), + ("unsupported", .unsupported)] + +def CapacityReservationState.ofWire (text : String) : Except String CapacityReservationState := + match List.find? (·.1 == text) CapacityReservationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityReservationState has no value {text}" + +instance : Key CapacityReservationState := ⟨CapacityReservationState.wire, CapacityReservationState.ofWire⟩ + +instance : Shape CapacityReservationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityReservationState.ofWire text + | _ => .error "expected a string" + +/-- Describes the availability of capacity for a Capacity Reservation. -/ +structure CapacityReservationStatus where + /-- The ID of the Capacity Reservation. -/ + capacityReservationId : Option String := none + /-- The remaining capacity. -/ + totalAvailableCapacity : Option Int := none + /-- The combined amount of Available and Unavailable capacity in the Capacity Reservation. -/ + totalCapacity : Option Int := none + /-- The used capacity. -/ + totalUnavailableCapacity : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityReservationStatus where + schema := .struct "CapacityReservationStatus" [({ name := "CapacityReservationId", xmlName := some "capacityReservationId", queryName := some "CapacityReservationId" }, .string), + ({ name := "TotalAvailableCapacity", xmlName := some "totalAvailableCapacity", queryName := some "TotalAvailableCapacity" }, .int), + ({ name := "TotalCapacity", xmlName := some "totalCapacity", queryName := some "TotalCapacity" }, .int), + ({ name := "TotalUnavailableCapacity", xmlName := some "totalUnavailableCapacity", queryName := some "TotalUnavailableCapacity" }, .int)] + toValue x := record [putOpt "CapacityReservationId" x.capacityReservationId, putOpt "TotalAvailableCapacity" x.totalAvailableCapacity, putOpt "TotalCapacity" x.totalCapacity, putOpt "TotalUnavailableCapacity" x.totalUnavailableCapacity] + ofValue v := do + let capacityReservationId ← v.opt "CapacityReservationId" + let totalAvailableCapacity ← v.opt "TotalAvailableCapacity" + let totalCapacity ← v.opt "TotalCapacity" + let totalUnavailableCapacity ← v.opt "TotalUnavailableCapacity" + return { capacityReservationId, totalAvailableCapacity, totalCapacity, totalUnavailableCapacity } + +/-- Describes a target Capacity Reservation or Capacity Reservation group. -/ +structure CapacityReservationTarget where + /-- The ID of the Capacity Reservation in which to run the instance. -/ + capacityReservationId : Option String := none + /-- The ARN of the Capacity Reservation resource group in which to run the instance. -/ + capacityReservationResourceGroupArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityReservationTarget where + schema := .struct "CapacityReservationTarget" [({ name := "CapacityReservationId" }, .string), + ({ name := "CapacityReservationResourceGroupArn" }, .string)] + toValue x := record [putOpt "CapacityReservationId" x.capacityReservationId, putOpt "CapacityReservationResourceGroupArn" x.capacityReservationResourceGroupArn] + ofValue v := do + let capacityReservationId ← v.opt "CapacityReservationId" + let capacityReservationResourceGroupArn ← v.opt "CapacityReservationResourceGroupArn" + return { capacityReservationId, capacityReservationResourceGroupArn } + +/-- Describes a target Capacity Reservation or Capacity Reservation group. -/ +structure CapacityReservationTargetResponse where + /-- The ID of the targeted Capacity Reservation. -/ + capacityReservationId : Option String := none + /-- The ARN of the targeted Capacity Reservation group. -/ + capacityReservationResourceGroupArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityReservationTargetResponse where + schema := .struct "CapacityReservationTargetResponse" [({ name := "CapacityReservationId", xmlName := some "capacityReservationId", queryName := some "CapacityReservationId" }, .string), + ({ name := "CapacityReservationResourceGroupArn", xmlName := some "capacityReservationResourceGroupArn", queryName := some "CapacityReservationResourceGroupArn" }, .string)] + toValue x := record [putOpt "CapacityReservationId" x.capacityReservationId, putOpt "CapacityReservationResourceGroupArn" x.capacityReservationResourceGroupArn] + ofValue v := do + let capacityReservationId ← v.opt "CapacityReservationId" + let capacityReservationResourceGroupArn ← v.opt "CapacityReservationResourceGroupArn" + return { capacityReservationId, capacityReservationResourceGroupArn } + +inductive CapacityReservationTenancy where + | dedicated + | default +deriving DecidableEq, Repr, Inhabited + +def CapacityReservationTenancy.wire : CapacityReservationTenancy → String + | .dedicated => "dedicated" + | .default => "default" + +def CapacityReservationTenancy.wireValues : List (String × CapacityReservationTenancy) := [ + ("dedicated", .dedicated), + ("default", .default)] + +def CapacityReservationTenancy.ofWire (text : String) : Except String CapacityReservationTenancy := + match List.find? (·.1 == text) CapacityReservationTenancy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityReservationTenancy has no value {text}" + +instance : Key CapacityReservationTenancy := ⟨CapacityReservationTenancy.wire, CapacityReservationTenancy.ofWire⟩ + +instance : Shape CapacityReservationTenancy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityReservationTenancy.ofWire text + | _ => .error "expected a string" + +/-- Information about the Capacity Reservation topology. -/ +structure CapacityReservationTopology where + /-- The name of the Availability Zone or Local Zone that the Capacity Reservation is in. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone or Local Zone that the Capacity Reservation is in. -/ + availabilityZoneId : Option String := none + /-- The ID of the Capacity Block. -/ + capacityBlockId : Option String := none + /-- The ID of the Capacity Reservation. -/ + capacityReservationId : Option String := none + /-- The name of the placement group that the Capacity Reservation is in. -/ + groupName : Option String := none + /-- The instance type. -/ + instanceType : Option String := none + /-- The network nodes. -/ + networkNodes : Option (List String) := none + /-- The current state of the Capacity Reservation. -/ + state : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityReservationTopology where + schema := .struct "CapacityReservationTopology" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "CapacityBlockId", xmlName := some "capacityBlockId", queryName := some "CapacityBlockId" }, .string), + ({ name := "CapacityReservationId", xmlName := some "capacityReservationId", queryName := some "CapacityReservationId" }, .string), + ({ name := "GroupName", xmlName := some "groupName", queryName := some "GroupName" }, .string), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, .string), + ({ name := "NetworkNodes", xmlName := some "networkNodeSet", queryName := some "NetworkNodeSet" }, (.list .string "item")), + ({ name := "State", xmlName := some "state", queryName := some "State" }, .string)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "CapacityBlockId" x.capacityBlockId, putOpt "CapacityReservationId" x.capacityReservationId, putOpt "GroupName" x.groupName, putOpt "InstanceType" x.instanceType, putOpt "NetworkNodes" x.networkNodes, putOpt "State" x.state] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let capacityBlockId ← v.opt "CapacityBlockId" + let capacityReservationId ← v.opt "CapacityReservationId" + let groupName ← v.opt "GroupName" + let instanceType ← v.opt "InstanceType" + let networkNodes ← v.opt "NetworkNodes" + let state ← v.opt "State" + return { availabilityZone, availabilityZoneId, capacityBlockId, capacityReservationId, groupName, instanceType, networkNodes, state } + +inductive CapacityReservationType where + | capacitY_BLOCK + | default +deriving DecidableEq, Repr, Inhabited + +def CapacityReservationType.wire : CapacityReservationType → String + | .capacitY_BLOCK => "capacity-block" + | .default => "default" + +def CapacityReservationType.wireValues : List (String × CapacityReservationType) := [ + ("capacity-block", .capacitY_BLOCK), + ("default", .default)] + +def CapacityReservationType.ofWire (text : String) : Except String CapacityReservationType := + match List.find? (·.1 == text) CapacityReservationType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityReservationType has no value {text}" + +instance : Key CapacityReservationType := ⟨CapacityReservationType.wire, CapacityReservationType.ofWire⟩ + +instance : Shape CapacityReservationType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityReservationType.ofWire text + | _ => .error "expected a string" + +inductive CapacityTenancy where + | dedicated + | default +deriving DecidableEq, Repr, Inhabited + +def CapacityTenancy.wire : CapacityTenancy → String + | .dedicated => "dedicated" + | .default => "default" + +def CapacityTenancy.wireValues : List (String × CapacityTenancy) := [ + ("dedicated", .dedicated), + ("default", .default)] + +def CapacityTenancy.ofWire (text : String) : Except String CapacityTenancy := + match List.find? (·.1 == text) CapacityTenancy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityTenancy has no value {text}" + +instance : Key CapacityTenancy := ⟨CapacityTenancy.wire, CapacityTenancy.ofWire⟩ + +instance : Shape CapacityTenancy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityTenancy.ofWire text + | _ => .error "expected a string" + +inductive CapacityUnit where + | instances + | vcpus +deriving DecidableEq, Repr, Inhabited + +def CapacityUnit.wire : CapacityUnit → String + | .instances => "instances" + | .vcpus => "vcpus" + +def CapacityUnit.wireValues : List (String × CapacityUnit) := [ + ("instances", .instances), + ("vcpus", .vcpus)] + +def CapacityUnit.ofWire (text : String) : Except String CapacityUnit := + match List.find? (·.1 == text) CapacityUnit.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityUnit has no value {text}" + +instance : Key CapacityUnit := ⟨CapacityUnit.wire, CapacityUnit.ofWire⟩ + +instance : Shape CapacityUnit where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityUnit.ofWire text + | _ => .error "expected a string" + +inductive CarrierGatewayState where + | available + | deleted + | deleting + | pending +deriving DecidableEq, Repr, Inhabited + +def CarrierGatewayState.wire : CarrierGatewayState → String + | .available => "available" + | .deleted => "deleted" + | .deleting => "deleting" + | .pending => "pending" + +def CarrierGatewayState.wireValues : List (String × CarrierGatewayState) := [ + ("available", .available), + ("deleted", .deleted), + ("deleting", .deleting), + ("pending", .pending)] + +def CarrierGatewayState.ofWire (text : String) : Except String CarrierGatewayState := + match List.find? (·.1 == text) CarrierGatewayState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CarrierGatewayState has no value {text}" + +instance : Key CarrierGatewayState := ⟨CarrierGatewayState.wire, CarrierGatewayState.ofWire⟩ + +instance : Shape CarrierGatewayState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CarrierGatewayState.ofWire text + | _ => .error "expected a string" + +/-- Information about the client certificate used for authentication. -/ +structure CertificateAuthentication where + /-- The ARN of the client certificate. -/ + clientRootCertificateChain : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CertificateAuthentication where + schema := .struct "CertificateAuthentication" [({ name := "ClientRootCertificateChain", xmlName := some "clientRootCertificateChain", queryName := some "ClientRootCertificateChain" }, .string)] + toValue x := record [putOpt "ClientRootCertificateChain" x.clientRootCertificateChain] + ofValue v := do + let clientRootCertificateChain ← v.opt "ClientRootCertificateChain" + return { clientRootCertificateChain } + +/-- Information about the client certificate to be used for authentication. -/ +structure CertificateAuthenticationRequest where + /-- The ARN of the client certificate. -/ + clientRootCertificateChainArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CertificateAuthenticationRequest where + schema := .struct "CertificateAuthenticationRequest" [({ name := "ClientRootCertificateChainArn" }, .string)] + toValue x := record [putOpt "ClientRootCertificateChainArn" x.clientRootCertificateChainArn] + ofValue v := do + let clientRootCertificateChainArn ← v.opt "ClientRootCertificateChainArn" + return { clientRootCertificateChainArn } + +/-- The chronological order for returning results. -/ +inductive ChronologicalOrder where + | forward + | reverse +deriving DecidableEq, Repr, Inhabited + +def ChronologicalOrder.wire : ChronologicalOrder → String + | .forward => "forward" + | .reverse => "reverse" + +def ChronologicalOrder.wireValues : List (String × ChronologicalOrder) := [ + ("forward", .forward), + ("reverse", .reverse)] + +def ChronologicalOrder.ofWire (text : String) : Except String ChronologicalOrder := + match List.find? (·.1 == text) ChronologicalOrder.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ChronologicalOrder has no value {text}" + +instance : Key ChronologicalOrder := ⟨ChronologicalOrder.wire, ChronologicalOrder.ofWire⟩ + +instance : Shape ChronologicalOrder where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ChronologicalOrder.ofWire text + | _ => .error "expected a string" + +/-- Provides authorization for Amazon to bring a specific IP address range to a specific Amazon Web Services account using bring your own IP addresses (BYOIP). -/ +structure CidrAuthorizationContext where + /-- The plain-text authorization message for the prefix and account. -/ + message : String + /-- The signed authorization message for the prefix and account. -/ + signature : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CidrAuthorizationContext where + schema := .struct "CidrAuthorizationContext" [({ name := "Message", required := true }, .string), + ({ name := "Signature", required := true }, .string)] + toValue x := record [put "Message" x.message, put "Signature" x.signature] + ofValue v := do + let message ← v.req "Message" + let signature ← v.req "Signature" + return { message, signature } + +/-- Describes an IPv4 CIDR block. -/ +structure CidrBlock where + /-- The IPv4 CIDR block. -/ + cidrBlock : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CidrBlock where + schema := .struct "CidrBlock" [({ name := "CidrBlock", xmlName := some "cidrBlock", queryName := some "CidrBlock" }, .string)] + toValue x := record [putOpt "CidrBlock" x.cidrBlock] + ofValue v := do + let cidrBlock ← v.opt "CidrBlock" + return { cidrBlock } + +/-- Deprecated. -/ +structure ClassicLinkDnsSupport where + /-- Indicates whether ClassicLink DNS support is enabled for the VPC. -/ + classicLinkDnsSupported : Option Bool := none + /-- The ID of the VPC. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClassicLinkDnsSupport where + schema := .struct "ClassicLinkDnsSupport" [({ name := "ClassicLinkDnsSupported", xmlName := some "classicLinkDnsSupported", queryName := some "ClassicLinkDnsSupported" }, .bool), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "ClassicLinkDnsSupported" x.classicLinkDnsSupported, putOpt "VpcId" x.vpcId] + ofValue v := do + let classicLinkDnsSupported ← v.opt "ClassicLinkDnsSupported" + let vpcId ← v.opt "VpcId" + return { classicLinkDnsSupported, vpcId } + +/-- Describes a Classic Load Balancer. -/ +structure ClassicLoadBalancer where + /-- The name of the load balancer. -/ + name : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClassicLoadBalancer where + schema := .struct "ClassicLoadBalancer" [({ name := "Name", xmlName := some "name", queryName := some "Name" }, .string)] + toValue x := record [putOpt "Name" x.name] + ofValue v := do + let name ← v.opt "Name" + return { name } + +inductive ClientCertificateRevocationListStatusCode where + | active + | pending +deriving DecidableEq, Repr, Inhabited + +def ClientCertificateRevocationListStatusCode.wire : ClientCertificateRevocationListStatusCode → String + | .active => "active" + | .pending => "pending" + +def ClientCertificateRevocationListStatusCode.wireValues : List (String × ClientCertificateRevocationListStatusCode) := [ + ("active", .active), + ("pending", .pending)] + +def ClientCertificateRevocationListStatusCode.ofWire (text : String) : Except String ClientCertificateRevocationListStatusCode := + match List.find? (·.1 == text) ClientCertificateRevocationListStatusCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ClientCertificateRevocationListStatusCode has no value {text}" + +instance : Key ClientCertificateRevocationListStatusCode := ⟨ClientCertificateRevocationListStatusCode.wire, ClientCertificateRevocationListStatusCode.ofWire⟩ + +instance : Shape ClientCertificateRevocationListStatusCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ClientCertificateRevocationListStatusCode.ofWire text + | _ => .error "expected a string" + +/-- The options for managing connection authorization for new client connections. -/ +structure ClientConnectOptions where + /-- Indicates whether client connect options are enabled. -/ + enabled : Option Bool := none + /-- The Amazon Resource Name (ARN) of the Lambda function used for connection authorization. -/ + lambdaFunctionArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClientConnectOptions where + schema := .struct "ClientConnectOptions" [({ name := "Enabled" }, .bool), + ({ name := "LambdaFunctionArn" }, .string)] + toValue x := record [putOpt "Enabled" x.enabled, putOpt "LambdaFunctionArn" x.lambdaFunctionArn] + ofValue v := do + let enabled ← v.opt "Enabled" + let lambdaFunctionArn ← v.opt "LambdaFunctionArn" + return { enabled, lambdaFunctionArn } + +/-- Describes the client-specific data. -/ +structure ClientData where + /-- A user-defined comment about the disk upload. -/ + comment : Option String := none + /-- The time that the disk upload ends. -/ + uploadEnd : Option Timestamp := none + /-- The size of the uploaded disk image, in GiB. -/ + uploadSize : Option JsonNumber := none + /-- The time that the disk upload starts. -/ + uploadStart : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClientData where + schema := .struct "ClientData" [({ name := "Comment" }, .string), + ({ name := "UploadEnd" }, (.time none)), + ({ name := "UploadSize" }, .number), + ({ name := "UploadStart" }, (.time none))] + toValue x := record [putOpt "Comment" x.comment, putOpt "UploadEnd" x.uploadEnd, putOpt "UploadSize" x.uploadSize, putOpt "UploadStart" x.uploadStart] + ofValue v := do + let comment ← v.opt "Comment" + let uploadEnd ← v.opt "UploadEnd" + let uploadSize ← v.opt "UploadSize" + let uploadStart ← v.opt "UploadStart" + return { comment, uploadEnd, uploadSize, uploadStart } + +/-- Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established. -/ +structure ClientLoginBannerOptions where + /-- Customizable text that will be displayed in a banner on Amazon Web Services provided clients when a VPN session is established. -/ + bannerText : Option String := none + /-- Enable or disable a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established. -/ + enabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClientLoginBannerOptions where + schema := .struct "ClientLoginBannerOptions" [({ name := "BannerText" }, .string), + ({ name := "Enabled" }, .bool)] + toValue x := record [putOpt "BannerText" x.bannerText, putOpt "Enabled" x.enabled] + ofValue v := do + let bannerText ← v.opt "BannerText" + let enabled ← v.opt "Enabled" + return { bannerText, enabled } + +/-- Current state of options for customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established. -/ +structure ClientLoginBannerResponseOptions where + /-- Customizable text that will be displayed in a banner on Amazon Web Services provided clients when a VPN session is established. -/ + bannerText : Option String := none + /-- Current state of text banner feature. -/ + enabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClientLoginBannerResponseOptions where + schema := .struct "ClientLoginBannerResponseOptions" [({ name := "BannerText", xmlName := some "bannerText", queryName := some "BannerText" }, .string), + ({ name := "Enabled", xmlName := some "enabled", queryName := some "Enabled" }, .bool)] + toValue x := record [putOpt "BannerText" x.bannerText, putOpt "Enabled" x.enabled] + ofValue v := do + let bannerText ← v.opt "BannerText" + let enabled ← v.opt "Enabled" + return { bannerText, enabled } + +/-- Client Route Enforcement is a feature of Client VPN that helps enforce administrator defined routes on devices connected through the VPN. -/ +structure ClientRouteEnforcementOptions where + /-- Enable or disable Client Route Enforcement. -/ + enforced : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClientRouteEnforcementOptions where + schema := .struct "ClientRouteEnforcementOptions" [({ name := "Enforced" }, .bool)] + toValue x := record [putOpt "Enforced" x.enforced] + ofValue v := do + let enforced ← v.opt "Enforced" + return { enforced } + +/-- The current status of Client Route Enforcement. -/ +structure ClientRouteEnforcementResponseOptions where + /-- Status of the client route enforcement feature, indicating whether Client Route Enforcement is true (enabled) or false (disabled). -/ + enforced : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClientRouteEnforcementResponseOptions where + schema := .struct "ClientRouteEnforcementResponseOptions" [({ name := "Enforced", xmlName := some "enforced", queryName := some "Enforced" }, .bool)] + toValue x := record [putOpt "Enforced" x.enforced] + ofValue v := do + let enforced ← v.opt "Enforced" + return { enforced } + +inductive ClientVpnAuthenticationType where + | certificate_authentication + | directory_service_authentication + | federated_authentication +deriving DecidableEq, Repr, Inhabited + +def ClientVpnAuthenticationType.wire : ClientVpnAuthenticationType → String + | .certificate_authentication => "certificate-authentication" + | .directory_service_authentication => "directory-service-authentication" + | .federated_authentication => "federated-authentication" + +def ClientVpnAuthenticationType.wireValues : List (String × ClientVpnAuthenticationType) := [ + ("certificate-authentication", .certificate_authentication), + ("directory-service-authentication", .directory_service_authentication), + ("federated-authentication", .federated_authentication)] + +def ClientVpnAuthenticationType.ofWire (text : String) : Except String ClientVpnAuthenticationType := + match List.find? (·.1 == text) ClientVpnAuthenticationType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ClientVpnAuthenticationType has no value {text}" + +instance : Key ClientVpnAuthenticationType := ⟨ClientVpnAuthenticationType.wire, ClientVpnAuthenticationType.ofWire⟩ + +instance : Shape ClientVpnAuthenticationType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ClientVpnAuthenticationType.ofWire text + | _ => .error "expected a string" + +/-- Indicates whether the authorization policy for a Client VPN endpoint is evaluated in shadow mode. -/ +inductive ClientVpnAuthorizationPolicyShadowMode where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def ClientVpnAuthorizationPolicyShadowMode.wire : ClientVpnAuthorizationPolicyShadowMode → String + | .disabled => "disabled" + | .enabled => "enabled" + +def ClientVpnAuthorizationPolicyShadowMode.wireValues : List (String × ClientVpnAuthorizationPolicyShadowMode) := [ + ("disabled", .disabled), + ("enabled", .enabled)] + +def ClientVpnAuthorizationPolicyShadowMode.ofWire (text : String) : Except String ClientVpnAuthorizationPolicyShadowMode := + match List.find? (·.1 == text) ClientVpnAuthorizationPolicyShadowMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ClientVpnAuthorizationPolicyShadowMode has no value {text}" + +instance : Key ClientVpnAuthorizationPolicyShadowMode := ⟨ClientVpnAuthorizationPolicyShadowMode.wire, ClientVpnAuthorizationPolicyShadowMode.ofWire⟩ + +instance : Shape ClientVpnAuthorizationPolicyShadowMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ClientVpnAuthorizationPolicyShadowMode.ofWire text + | _ => .error "expected a string" + +/-- Describes the state of an authorization policy for a Client VPN endpoint. -/ +inductive ClientVpnAuthorizationPolicyStatus where + | active + | creating + | deleting + | failed + | updating +deriving DecidableEq, Repr, Inhabited + +def ClientVpnAuthorizationPolicyStatus.wire : ClientVpnAuthorizationPolicyStatus → String + | .active => "active" + | .creating => "creating" + | .deleting => "deleting" + | .failed => "failed" + | .updating => "updating" + +def ClientVpnAuthorizationPolicyStatus.wireValues : List (String × ClientVpnAuthorizationPolicyStatus) := [ + ("active", .active), + ("creating", .creating), + ("deleting", .deleting), + ("failed", .failed), + ("updating", .updating)] + +def ClientVpnAuthorizationPolicyStatus.ofWire (text : String) : Except String ClientVpnAuthorizationPolicyStatus := + match List.find? (·.1 == text) ClientVpnAuthorizationPolicyStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ClientVpnAuthorizationPolicyStatus has no value {text}" + +instance : Key ClientVpnAuthorizationPolicyStatus := ⟨ClientVpnAuthorizationPolicyStatus.wire, ClientVpnAuthorizationPolicyStatus.ofWire⟩ + +instance : Shape ClientVpnAuthorizationPolicyStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ClientVpnAuthorizationPolicyStatus.ofWire text + | _ => .error "expected a string" + +inductive ClientVpnAuthorizationRuleStatusCode where + | active + | authorizing + | failed + | revoking +deriving DecidableEq, Repr, Inhabited + +def ClientVpnAuthorizationRuleStatusCode.wire : ClientVpnAuthorizationRuleStatusCode → String + | .active => "active" + | .authorizing => "authorizing" + | .failed => "failed" + | .revoking => "revoking" + +def ClientVpnAuthorizationRuleStatusCode.wireValues : List (String × ClientVpnAuthorizationRuleStatusCode) := [ + ("active", .active), + ("authorizing", .authorizing), + ("failed", .failed), + ("revoking", .revoking)] + +def ClientVpnAuthorizationRuleStatusCode.ofWire (text : String) : Except String ClientVpnAuthorizationRuleStatusCode := + match List.find? (·.1 == text) ClientVpnAuthorizationRuleStatusCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ClientVpnAuthorizationRuleStatusCode has no value {text}" + +instance : Key ClientVpnAuthorizationRuleStatusCode := ⟨ClientVpnAuthorizationRuleStatusCode.wire, ClientVpnAuthorizationRuleStatusCode.ofWire⟩ + +instance : Shape ClientVpnAuthorizationRuleStatusCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ClientVpnAuthorizationRuleStatusCode.ofWire text + | _ => .error "expected a string" + +inductive ClientVpnConnectionStatusCode where + | active + | failed_to_terminate + | terminated + | terminating +deriving DecidableEq, Repr, Inhabited + +def ClientVpnConnectionStatusCode.wire : ClientVpnConnectionStatusCode → String + | .active => "active" + | .failed_to_terminate => "failed-to-terminate" + | .terminated => "terminated" + | .terminating => "terminating" + +def ClientVpnConnectionStatusCode.wireValues : List (String × ClientVpnConnectionStatusCode) := [ + ("active", .active), + ("failed-to-terminate", .failed_to_terminate), + ("terminated", .terminated), + ("terminating", .terminating)] + +def ClientVpnConnectionStatusCode.ofWire (text : String) : Except String ClientVpnConnectionStatusCode := + match List.find? (·.1 == text) ClientVpnConnectionStatusCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ClientVpnConnectionStatusCode has no value {text}" + +instance : Key ClientVpnConnectionStatusCode := ⟨ClientVpnConnectionStatusCode.wire, ClientVpnConnectionStatusCode.ofWire⟩ + +instance : Shape ClientVpnConnectionStatusCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ClientVpnConnectionStatusCode.ofWire text + | _ => .error "expected a string" + +inductive ClientVpnDeviceTrustProviderType where + | crowdstrike + | jamf + | jumpcloud +deriving DecidableEq, Repr, Inhabited + +def ClientVpnDeviceTrustProviderType.wire : ClientVpnDeviceTrustProviderType → String + | .crowdstrike => "crowdstrike" + | .jamf => "jamf" + | .jumpcloud => "jumpcloud" + +def ClientVpnDeviceTrustProviderType.wireValues : List (String × ClientVpnDeviceTrustProviderType) := [ + ("crowdstrike", .crowdstrike), + ("jamf", .jamf), + ("jumpcloud", .jumpcloud)] + +def ClientVpnDeviceTrustProviderType.ofWire (text : String) : Except String ClientVpnDeviceTrustProviderType := + match List.find? (·.1 == text) ClientVpnDeviceTrustProviderType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ClientVpnDeviceTrustProviderType has no value {text}" + +instance : Key ClientVpnDeviceTrustProviderType := ⟨ClientVpnDeviceTrustProviderType.wire, ClientVpnDeviceTrustProviderType.ofWire⟩ + +instance : Shape ClientVpnDeviceTrustProviderType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ClientVpnDeviceTrustProviderType.ofWire text + | _ => .error "expected a string" + +inductive ClientVpnEndpointAttributeStatusCode where + | applied + | applying +deriving DecidableEq, Repr, Inhabited + +def ClientVpnEndpointAttributeStatusCode.wire : ClientVpnEndpointAttributeStatusCode → String + | .applied => "applied" + | .applying => "applying" + +def ClientVpnEndpointAttributeStatusCode.wireValues : List (String × ClientVpnEndpointAttributeStatusCode) := [ + ("applied", .applied), + ("applying", .applying)] + +def ClientVpnEndpointAttributeStatusCode.ofWire (text : String) : Except String ClientVpnEndpointAttributeStatusCode := + match List.find? (·.1 == text) ClientVpnEndpointAttributeStatusCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ClientVpnEndpointAttributeStatusCode has no value {text}" + +instance : Key ClientVpnEndpointAttributeStatusCode := ⟨ClientVpnEndpointAttributeStatusCode.wire, ClientVpnEndpointAttributeStatusCode.ofWire⟩ + +instance : Shape ClientVpnEndpointAttributeStatusCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ClientVpnEndpointAttributeStatusCode.ofWire text + | _ => .error "expected a string" + +inductive ClientVpnEndpointStatusCode where + | available + | deleted + | deleting + | pending + | pending_associate +deriving DecidableEq, Repr, Inhabited + +def ClientVpnEndpointStatusCode.wire : ClientVpnEndpointStatusCode → String + | .available => "available" + | .deleted => "deleted" + | .deleting => "deleting" + | .pending => "pending" + | .pending_associate => "pending-associate" + +def ClientVpnEndpointStatusCode.wireValues : List (String × ClientVpnEndpointStatusCode) := [ + ("available", .available), + ("deleted", .deleted), + ("deleting", .deleting), + ("pending", .pending), + ("pending-associate", .pending_associate)] + +def ClientVpnEndpointStatusCode.ofWire (text : String) : Except String ClientVpnEndpointStatusCode := + match List.find? (·.1 == text) ClientVpnEndpointStatusCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ClientVpnEndpointStatusCode has no value {text}" + +instance : Key ClientVpnEndpointStatusCode := ⟨ClientVpnEndpointStatusCode.wire, ClientVpnEndpointStatusCode.ofWire⟩ + +instance : Shape ClientVpnEndpointStatusCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ClientVpnEndpointStatusCode.ofWire text + | _ => .error "expected a string" + +inductive ClientVpnRouteStatusCode where + | active + | creating + | deleting + | failed +deriving DecidableEq, Repr, Inhabited + +def ClientVpnRouteStatusCode.wire : ClientVpnRouteStatusCode → String + | .active => "active" + | .creating => "creating" + | .deleting => "deleting" + | .failed => "failed" + +def ClientVpnRouteStatusCode.wireValues : List (String × ClientVpnRouteStatusCode) := [ + ("active", .active), + ("creating", .creating), + ("deleting", .deleting), + ("failed", .failed)] + +def ClientVpnRouteStatusCode.ofWire (text : String) : Except String ClientVpnRouteStatusCode := + match List.find? (·.1 == text) ClientVpnRouteStatusCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ClientVpnRouteStatusCode has no value {text}" + +instance : Key ClientVpnRouteStatusCode := ⟨ClientVpnRouteStatusCode.wire, ClientVpnRouteStatusCode.ofWire⟩ + +instance : Shape ClientVpnRouteStatusCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ClientVpnRouteStatusCode.ofWire text + | _ => .error "expected a string" + +/-- Options for sending VPN tunnel logs to CloudWatch. -/ +structure CloudWatchLogOptions where + /-- Indicates whether Border Gateway Protocol (BGP) logging is enabled for the VPN connection. -/ + bgpLogEnabled : Option Bool := none + /-- The Amazon Resource Name (ARN) of the CloudWatch log group for BGP logs. -/ + bgpLogGroupArn : Option String := none + /-- The output format for BGP logs sent to CloudWatch. -/ + bgpLogOutputFormat : Option String := none + /-- Status of VPN tunnel logging feature. -/ + logEnabled : Option Bool := none + /-- The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to. -/ + logGroupArn : Option String := none + /-- Configured log format. -/ + logOutputFormat : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CloudWatchLogOptions where + schema := .struct "CloudWatchLogOptions" [({ name := "BgpLogEnabled", xmlName := some "bgpLogEnabled", queryName := some "BgpLogEnabled" }, .bool), + ({ name := "BgpLogGroupArn", xmlName := some "bgpLogGroupArn", queryName := some "BgpLogGroupArn" }, .string), + ({ name := "BgpLogOutputFormat", xmlName := some "bgpLogOutputFormat", queryName := some "BgpLogOutputFormat" }, .string), + ({ name := "LogEnabled", xmlName := some "logEnabled", queryName := some "LogEnabled" }, .bool), + ({ name := "LogGroupArn", xmlName := some "logGroupArn", queryName := some "LogGroupArn" }, .string), + ({ name := "LogOutputFormat", xmlName := some "logOutputFormat", queryName := some "LogOutputFormat" }, .string)] + toValue x := record [putOpt "BgpLogEnabled" x.bgpLogEnabled, putOpt "BgpLogGroupArn" x.bgpLogGroupArn, putOpt "BgpLogOutputFormat" x.bgpLogOutputFormat, putOpt "LogEnabled" x.logEnabled, putOpt "LogGroupArn" x.logGroupArn, putOpt "LogOutputFormat" x.logOutputFormat] + ofValue v := do + let bgpLogEnabled ← v.opt "BgpLogEnabled" + let bgpLogGroupArn ← v.opt "BgpLogGroupArn" + let bgpLogOutputFormat ← v.opt "BgpLogOutputFormat" + let logEnabled ← v.opt "LogEnabled" + let logGroupArn ← v.opt "LogGroupArn" + let logOutputFormat ← v.opt "LogOutputFormat" + return { bgpLogEnabled, bgpLogGroupArn, bgpLogOutputFormat, logEnabled, logGroupArn, logOutputFormat } + +/-- Options for sending VPN tunnel logs to CloudWatch. -/ +structure CloudWatchLogOptionsSpecification where + /-- Specifies whether to enable BGP logging for the VPN connection. -/ + bgpLogEnabled : Option Bool := none + /-- The Amazon Resource Name (ARN) of the CloudWatch log group where BGP logs will be sent. -/ + bgpLogGroupArn : Option String := none + /-- The desired output format for BGP logs to be sent to CloudWatch. -/ + bgpLogOutputFormat : Option String := none + /-- Enable or disable VPN tunnel logging feature. -/ + logEnabled : Option Bool := none + /-- The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to. -/ + logGroupArn : Option String := none + /-- Set log format. -/ + logOutputFormat : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CloudWatchLogOptionsSpecification where + schema := .struct "CloudWatchLogOptionsSpecification" [({ name := "BgpLogEnabled" }, .bool), + ({ name := "BgpLogGroupArn" }, .string), + ({ name := "BgpLogOutputFormat" }, .string), + ({ name := "LogEnabled" }, .bool), + ({ name := "LogGroupArn" }, .string), + ({ name := "LogOutputFormat" }, .string)] + toValue x := record [putOpt "BgpLogEnabled" x.bgpLogEnabled, putOpt "BgpLogGroupArn" x.bgpLogGroupArn, putOpt "BgpLogOutputFormat" x.bgpLogOutputFormat, putOpt "LogEnabled" x.logEnabled, putOpt "LogGroupArn" x.logGroupArn, putOpt "LogOutputFormat" x.logOutputFormat] + ofValue v := do + let bgpLogEnabled ← v.opt "BgpLogEnabled" + let bgpLogGroupArn ← v.opt "BgpLogGroupArn" + let bgpLogOutputFormat ← v.opt "BgpLogOutputFormat" + let logEnabled ← v.opt "LogEnabled" + let logGroupArn ← v.opt "LogGroupArn" + let logOutputFormat ← v.opt "LogOutputFormat" + return { bgpLogEnabled, bgpLogGroupArn, bgpLogOutputFormat, logEnabled, logGroupArn, logOutputFormat } + +/-- Describes address usage for a customer-owned address pool. -/ +structure CoipAddressUsage where + /-- The allocation ID of the address. -/ + allocationId : Option String := none + /-- The Amazon Web Services account ID. -/ + awsAccountId : Option String := none + /-- The Amazon Web Services service. -/ + awsService : Option String := none + /-- The customer-owned IP address. -/ + coIp : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CoipAddressUsage where + schema := .struct "CoipAddressUsage" [({ name := "AllocationId", xmlName := some "allocationId", queryName := some "AllocationId" }, .string), + ({ name := "AwsAccountId", xmlName := some "awsAccountId", queryName := some "AwsAccountId" }, .string), + ({ name := "AwsService", xmlName := some "awsService", queryName := some "AwsService" }, .string), + ({ name := "CoIp", xmlName := some "coIp", queryName := some "CoIp" }, .string)] + toValue x := record [putOpt "AllocationId" x.allocationId, putOpt "AwsAccountId" x.awsAccountId, putOpt "AwsService" x.awsService, putOpt "CoIp" x.coIp] + ofValue v := do + let allocationId ← v.opt "AllocationId" + let awsAccountId ← v.opt "AwsAccountId" + let awsService ← v.opt "AwsService" + let coIp ← v.opt "CoIp" + return { allocationId, awsAccountId, awsService, coIp } + +/-- Information about a customer-owned IP address range. -/ +structure CoipCidr where + /-- An address range in a customer-owned IP address space. -/ + cidr : Option String := none + /-- The ID of the address pool. -/ + coipPoolId : Option String := none + /-- The ID of the local gateway route table. -/ + localGatewayRouteTableId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CoipCidr where + schema := .struct "CoipCidr" [({ name := "Cidr", xmlName := some "cidr", queryName := some "Cidr" }, .string), + ({ name := "CoipPoolId", xmlName := some "coipPoolId", queryName := some "CoipPoolId" }, .string), + ({ name := "LocalGatewayRouteTableId", xmlName := some "localGatewayRouteTableId", queryName := some "LocalGatewayRouteTableId" }, .string)] + toValue x := record [putOpt "Cidr" x.cidr, putOpt "CoipPoolId" x.coipPoolId, putOpt "LocalGatewayRouteTableId" x.localGatewayRouteTableId] + ofValue v := do + let cidr ← v.opt "Cidr" + let coipPoolId ← v.opt "CoipPoolId" + let localGatewayRouteTableId ← v.opt "LocalGatewayRouteTableId" + return { cidr, coipPoolId, localGatewayRouteTableId } + +inductive Comparison where + | equals + | «in» +deriving DecidableEq, Repr, Inhabited + +def Comparison.wire : Comparison → String + | .equals => "equals" + | .«in» => "in" + +def Comparison.wireValues : List (String × Comparison) := [ + ("equals", .equals), + ("in", .«in»)] + +def Comparison.ofWire (text : String) : Except String Comparison := + match List.find? (·.1 == text) Comparison.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Comparison has no value {text}" + +instance : Key Comparison := ⟨Comparison.wire, Comparison.ofWire⟩ + +instance : Shape Comparison where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Comparison.ofWire text + | _ => .error "expected a string" + +structure ConfirmProductInstanceRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the instance. -/ + instanceId : String + /-- The product code. -/ + productCode : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ConfirmProductInstanceRequest where + schema := .struct "ConfirmProductInstanceRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "InstanceId", required := true }, .string), + ({ name := "ProductCode", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceId" x.instanceId, put "ProductCode" x.productCode] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceId ← v.req "InstanceId" + let productCode ← v.req "ProductCode" + return { dryRun, instanceId, productCode } + +structure ConfirmProductInstanceResult where + /-- The Amazon Web Services account ID of the instance owner. -/ + ownerId : Option String := none + /-- The return value of the request. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ConfirmProductInstanceResult where + schema := .struct "ConfirmProductInstanceResult" [({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "OwnerId" x.ownerId, putOpt "Return" x.«return»] + ofValue v := do + let ownerId ← v.opt "OwnerId" + let «return» ← v.opt "Return" + return { ownerId, «return» } + +/-- Describes the client connection logging options for the Client VPN endpoint. -/ +structure ConnectionLogOptions where + /-- The name of the CloudWatch Logs log group. -/ + cloudwatchLogGroup : Option String := none + /-- The name of the CloudWatch Logs log stream to which the connection data is published. -/ + cloudwatchLogStream : Option String := none + /-- Indicates whether connection logging is enabled. -/ + enabled : Option Bool := none + /-- Specifies whether to include the authorization policy evaluation context in the connection logs for the Client VPN endpoint. -/ + includeAuthorizationPolicyContext : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ConnectionLogOptions where + schema := .struct "ConnectionLogOptions" [({ name := "CloudwatchLogGroup" }, .string), + ({ name := "CloudwatchLogStream" }, .string), + ({ name := "Enabled" }, .bool), + ({ name := "IncludeAuthorizationPolicyContext" }, .bool)] + toValue x := record [putOpt "CloudwatchLogGroup" x.cloudwatchLogGroup, putOpt "CloudwatchLogStream" x.cloudwatchLogStream, putOpt "Enabled" x.enabled, putOpt "IncludeAuthorizationPolicyContext" x.includeAuthorizationPolicyContext] + ofValue v := do + let cloudwatchLogGroup ← v.opt "CloudwatchLogGroup" + let cloudwatchLogStream ← v.opt "CloudwatchLogStream" + let enabled ← v.opt "Enabled" + let includeAuthorizationPolicyContext ← v.opt "IncludeAuthorizationPolicyContext" + return { cloudwatchLogGroup, cloudwatchLogStream, enabled, includeAuthorizationPolicyContext } + +/-- Information about the client connection logging options for a Client VPN endpoint. -/ +structure ConnectionLogResponseOptions where + /-- The name of the Amazon CloudWatch Logs log group to which connection logging data is published. -/ + cloudwatchLogGroup : Option String := none + /-- The name of the Amazon CloudWatch Logs log stream to which connection logging data is published. -/ + cloudwatchLogStream : Option String := none + /-- Indicates whether client connection logging is enabled for the Client VPN endpoint. -/ + enabled : Option Bool := none + /-- Specifies whether the authorization policy evaluation context is included in the connection logs for the Client VPN endpoint. -/ + includeAuthorizationPolicyContext : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ConnectionLogResponseOptions where + schema := .struct "ConnectionLogResponseOptions" [({ name := "CloudwatchLogGroup" }, .string), + ({ name := "CloudwatchLogStream" }, .string), + ({ name := "Enabled" }, .bool), + ({ name := "IncludeAuthorizationPolicyContext" }, .bool)] + toValue x := record [putOpt "CloudwatchLogGroup" x.cloudwatchLogGroup, putOpt "CloudwatchLogStream" x.cloudwatchLogStream, putOpt "Enabled" x.enabled, putOpt "IncludeAuthorizationPolicyContext" x.includeAuthorizationPolicyContext] + ofValue v := do + let cloudwatchLogGroup ← v.opt "CloudwatchLogGroup" + let cloudwatchLogStream ← v.opt "CloudwatchLogStream" + let enabled ← v.opt "Enabled" + let includeAuthorizationPolicyContext ← v.opt "IncludeAuthorizationPolicyContext" + return { cloudwatchLogGroup, cloudwatchLogStream, enabled, includeAuthorizationPolicyContext } + +inductive ConnectionNotificationState where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def ConnectionNotificationState.wire : ConnectionNotificationState → String + | .disabled => "Disabled" + | .enabled => "Enabled" + +def ConnectionNotificationState.wireValues : List (String × ConnectionNotificationState) := [ + ("Disabled", .disabled), + ("Enabled", .enabled)] + +def ConnectionNotificationState.ofWire (text : String) : Except String ConnectionNotificationState := + match List.find? (·.1 == text) ConnectionNotificationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ConnectionNotificationState has no value {text}" + +instance : Key ConnectionNotificationState := ⟨ConnectionNotificationState.wire, ConnectionNotificationState.ofWire⟩ + +instance : Shape ConnectionNotificationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ConnectionNotificationState.ofWire text + | _ => .error "expected a string" + +inductive ConnectionNotificationType where + | topic +deriving DecidableEq, Repr, Inhabited + +def ConnectionNotificationType.wire : ConnectionNotificationType → String + | .topic => "Topic" + +def ConnectionNotificationType.wireValues : List (String × ConnectionNotificationType) := [ + ("Topic", .topic)] + +def ConnectionNotificationType.ofWire (text : String) : Except String ConnectionNotificationType := + match List.find? (·.1 == text) ConnectionNotificationType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ConnectionNotificationType has no value {text}" + +instance : Key ConnectionNotificationType := ⟨ConnectionNotificationType.wire, ConnectionNotificationType.ofWire⟩ + +instance : Shape ConnectionNotificationType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ConnectionNotificationType.ofWire text + | _ => .error "expected a string" + +/-- A security group connection tracking configuration that enables you to set the idle timeout for connection tracking on an Elastic network interface. -/ +structure ConnectionTrackingConfiguration where + /-- Timeout (in seconds) for idle TCP connections in an established state. -/ + tcpEstablishedTimeout : Option Int := none + /-- Timeout (in seconds) for idle UDP flows classified as streams which have seen more than one request-response transaction. -/ + udpStreamTimeout : Option Int := none + /-- Timeout (in seconds) for idle UDP flows that have seen traffic only in a single direction or a single request-response transaction. -/ + udpTimeout : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ConnectionTrackingConfiguration where + schema := .struct "ConnectionTrackingConfiguration" [({ name := "TcpEstablishedTimeout", xmlName := some "tcpEstablishedTimeout", queryName := some "TcpEstablishedTimeout" }, .int), + ({ name := "UdpStreamTimeout", xmlName := some "udpStreamTimeout", queryName := some "UdpStreamTimeout" }, .int), + ({ name := "UdpTimeout", xmlName := some "udpTimeout", queryName := some "UdpTimeout" }, .int)] + toValue x := record [putOpt "TcpEstablishedTimeout" x.tcpEstablishedTimeout, putOpt "UdpStreamTimeout" x.udpStreamTimeout, putOpt "UdpTimeout" x.udpTimeout] + ofValue v := do + let tcpEstablishedTimeout ← v.opt "TcpEstablishedTimeout" + let udpStreamTimeout ← v.opt "UdpStreamTimeout" + let udpTimeout ← v.opt "UdpTimeout" + return { tcpEstablishedTimeout, udpStreamTimeout, udpTimeout } + +/-- A security group connection tracking specification that enables you to set the idle timeout for connection tracking on an Elastic network interface. -/ +structure ConnectionTrackingSpecification where + /-- Timeout (in seconds) for idle TCP connections in an established state. -/ + tcpEstablishedTimeout : Option Int := none + /-- Timeout (in seconds) for idle UDP flows classified as streams which have seen more than one request-response transaction. -/ + udpStreamTimeout : Option Int := none + /-- Timeout (in seconds) for idle UDP flows that have seen traffic only in a single direction or a single request-response transaction. -/ + udpTimeout : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ConnectionTrackingSpecification where + schema := .struct "ConnectionTrackingSpecification" [({ name := "TcpEstablishedTimeout", xmlName := some "tcpEstablishedTimeout", queryName := some "TcpEstablishedTimeout" }, .int), + ({ name := "UdpStreamTimeout", xmlName := some "udpStreamTimeout", queryName := some "UdpStreamTimeout" }, .int), + ({ name := "UdpTimeout", xmlName := some "udpTimeout", queryName := some "UdpTimeout" }, .int)] + toValue x := record [putOpt "TcpEstablishedTimeout" x.tcpEstablishedTimeout, putOpt "UdpStreamTimeout" x.udpStreamTimeout, putOpt "UdpTimeout" x.udpTimeout] + ofValue v := do + let tcpEstablishedTimeout ← v.opt "TcpEstablishedTimeout" + let udpStreamTimeout ← v.opt "UdpStreamTimeout" + let udpTimeout ← v.opt "UdpTimeout" + return { tcpEstablishedTimeout, udpStreamTimeout, udpTimeout } + +/-- A security group connection tracking specification request that enables you to set the idle timeout for connection tracking on an Elastic network interface. -/ +structure ConnectionTrackingSpecificationRequest where + /-- Timeout (in seconds) for idle TCP connections in an established state. -/ + tcpEstablishedTimeout : Option Int := none + /-- Timeout (in seconds) for idle UDP flows classified as streams which have seen more than one request-response transaction. -/ + udpStreamTimeout : Option Int := none + /-- Timeout (in seconds) for idle UDP flows that have seen traffic only in a single direction or a single request-response transaction. -/ + udpTimeout : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ConnectionTrackingSpecificationRequest where + schema := .struct "ConnectionTrackingSpecificationRequest" [({ name := "TcpEstablishedTimeout" }, .int), + ({ name := "UdpStreamTimeout" }, .int), + ({ name := "UdpTimeout" }, .int)] + toValue x := record [putOpt "TcpEstablishedTimeout" x.tcpEstablishedTimeout, putOpt "UdpStreamTimeout" x.udpStreamTimeout, putOpt "UdpTimeout" x.udpTimeout] + ofValue v := do + let tcpEstablishedTimeout ← v.opt "TcpEstablishedTimeout" + let udpStreamTimeout ← v.opt "UdpStreamTimeout" + let udpTimeout ← v.opt "UdpTimeout" + return { tcpEstablishedTimeout, udpStreamTimeout, udpTimeout } + +/-- A security group connection tracking specification response that enables you to set the idle timeout for connection tracking on an Elastic network interface. -/ +structure ConnectionTrackingSpecificationResponse where + /-- Timeout (in seconds) for idle TCP connections in an established state. -/ + tcpEstablishedTimeout : Option Int := none + /-- Timeout (in seconds) for idle UDP flows classified as streams which have seen more than one request-response transaction. -/ + udpStreamTimeout : Option Int := none + /-- Timeout (in seconds) for idle UDP flows that have seen traffic only in a single direction or a single request-response transaction. -/ + udpTimeout : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ConnectionTrackingSpecificationResponse where + schema := .struct "ConnectionTrackingSpecificationResponse" [({ name := "TcpEstablishedTimeout", xmlName := some "tcpEstablishedTimeout", queryName := some "TcpEstablishedTimeout" }, .int), + ({ name := "UdpStreamTimeout", xmlName := some "udpStreamTimeout", queryName := some "UdpStreamTimeout" }, .int), + ({ name := "UdpTimeout", xmlName := some "udpTimeout", queryName := some "UdpTimeout" }, .int)] + toValue x := record [putOpt "TcpEstablishedTimeout" x.tcpEstablishedTimeout, putOpt "UdpStreamTimeout" x.udpStreamTimeout, putOpt "UdpTimeout" x.udpTimeout] + ofValue v := do + let tcpEstablishedTimeout ← v.opt "TcpEstablishedTimeout" + let udpStreamTimeout ← v.opt "UdpStreamTimeout" + let udpTimeout ← v.opt "UdpTimeout" + return { tcpEstablishedTimeout, udpStreamTimeout, udpTimeout } + +inductive ConnectivityType where + | «private» + | «public» +deriving DecidableEq, Repr, Inhabited + +def ConnectivityType.wire : ConnectivityType → String + | .«private» => "private" + | .«public» => "public" + +def ConnectivityType.wireValues : List (String × ConnectivityType) := [ + ("private", .«private»), + ("public", .«public»)] + +def ConnectivityType.ofWire (text : String) : Except String ConnectivityType := + match List.find? (·.1 == text) ConnectivityType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ConnectivityType has no value {text}" + +instance : Key ConnectivityType := ⟨ConnectivityType.wire, ConnectivityType.ofWire⟩ + +instance : Shape ConnectivityType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ConnectivityType.ofWire text + | _ => .error "expected a string" + +inductive ContainerFormat where + | ova +deriving DecidableEq, Repr, Inhabited + +def ContainerFormat.wire : ContainerFormat → String + | .ova => "ova" + +def ContainerFormat.wireValues : List (String × ContainerFormat) := [ + ("ova", .ova)] + +def ContainerFormat.ofWire (text : String) : Except String ContainerFormat := + match List.find? (·.1 == text) ContainerFormat.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ContainerFormat has no value {text}" + +instance : Key ContainerFormat := ⟨ContainerFormat.wire, ContainerFormat.ofWire⟩ + +instance : Shape ContainerFormat where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ContainerFormat.ofWire text + | _ => .error "expected a string" + +inductive ConversionTaskState where + | active + | cancelled + | cancelling + | completed +deriving DecidableEq, Repr, Inhabited + +def ConversionTaskState.wire : ConversionTaskState → String + | .active => "active" + | .cancelled => "cancelled" + | .cancelling => "cancelling" + | .completed => "completed" + +def ConversionTaskState.wireValues : List (String × ConversionTaskState) := [ + ("active", .active), + ("cancelled", .cancelled), + ("cancelling", .cancelling), + ("completed", .completed)] + +def ConversionTaskState.ofWire (text : String) : Except String ConversionTaskState := + match List.find? (·.1 == text) ConversionTaskState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ConversionTaskState has no value {text}" + +instance : Key ConversionTaskState := ⟨ConversionTaskState.wire, ConversionTaskState.ofWire⟩ + +instance : Shape ConversionTaskState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ConversionTaskState.ofWire text + | _ => .error "expected a string" + +structure CopyFpgaImageRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The description for the new AFI. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The name for the new AFI. -/ + name : Option String := none + /-- The ID of the source AFI. -/ + sourceFpgaImageId : String + /-- The Region that contains the source AFI. -/ + sourceRegion : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CopyFpgaImageRequest where + schema := .struct "CopyFpgaImageRequest" [({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Name" }, .string), + ({ name := "SourceFpgaImageId", required := true }, .string), + ({ name := "SourceRegion", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "Name" x.name, put "SourceFpgaImageId" x.sourceFpgaImageId, put "SourceRegion" x.sourceRegion] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let name ← v.opt "Name" + let sourceFpgaImageId ← v.req "SourceFpgaImageId" + let sourceRegion ← v.req "SourceRegion" + return { clientToken, description, dryRun, name, sourceFpgaImageId, sourceRegion } + +structure CopyFpgaImageResult where + /-- The ID of the new AFI. -/ + fpgaImageId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CopyFpgaImageResult where + schema := .struct "CopyFpgaImageResult" [({ name := "FpgaImageId", xmlName := some "fpgaImageId", queryName := some "FpgaImageId" }, .string)] + toValue x := record [putOpt "FpgaImageId" x.fpgaImageId] + ofValue v := do + let fpgaImageId ← v.opt "FpgaImageId" + return { fpgaImageId } + +/-- Contains the output of CopyImage. -/ +structure CopyImageResult where + /-- The ID of the new AMI. -/ + imageId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CopyImageResult where + schema := .struct "CopyImageResult" [({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string)] + toValue x := record [putOpt "ImageId" x.imageId] + ofValue v := do + let imageId ← v.opt "ImageId" + return { imageId } + +inductive CopyTagsFromSource where + | volume +deriving DecidableEq, Repr, Inhabited + +def CopyTagsFromSource.wire : CopyTagsFromSource → String + | .volume => "volume" + +def CopyTagsFromSource.wireValues : List (String × CopyTagsFromSource) := [ + ("volume", .volume)] + +def CopyTagsFromSource.ofWire (text : String) : Except String CopyTagsFromSource := + match List.find? (·.1 == text) CopyTagsFromSource.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CopyTagsFromSource has no value {text}" + +instance : Key CopyTagsFromSource := ⟨CopyTagsFromSource.wire, CopyTagsFromSource.ofWire⟩ + +instance : Shape CopyTagsFromSource where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CopyTagsFromSource.ofWire text + | _ => .error "expected a string" + +inductive CpuManufacturer where + | amazoN_WEB_SERVICES + | amd + | apple + | intel +deriving DecidableEq, Repr, Inhabited + +def CpuManufacturer.wire : CpuManufacturer → String + | .amazoN_WEB_SERVICES => "amazon-web-services" + | .amd => "amd" + | .apple => "apple" + | .intel => "intel" + +def CpuManufacturer.wireValues : List (String × CpuManufacturer) := [ + ("amazon-web-services", .amazoN_WEB_SERVICES), + ("amd", .amd), + ("apple", .apple), + ("intel", .intel)] + +def CpuManufacturer.ofWire (text : String) : Except String CpuManufacturer := + match List.find? (·.1 == text) CpuManufacturer.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CpuManufacturer has no value {text}" + +instance : Key CpuManufacturer := ⟨CpuManufacturer.wire, CpuManufacturer.ofWire⟩ + +instance : Shape CpuManufacturer where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CpuManufacturer.ofWire text + | _ => .error "expected a string" + +structure CreateCapacityManagerDataExportResult where + /-- The unique identifier for the created data export configuration. -/ + capacityManagerDataExportId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCapacityManagerDataExportResult where + schema := .struct "CreateCapacityManagerDataExportResult" [({ name := "CapacityManagerDataExportId", xmlName := some "capacityManagerDataExportId", queryName := some "CapacityManagerDataExportId" }, .string)] + toValue x := record [putOpt "CapacityManagerDataExportId" x.capacityManagerDataExportId] + ofValue v := do + let capacityManagerDataExportId ← v.opt "CapacityManagerDataExportId" + return { capacityManagerDataExportId } + +structure CreateClientVpnRouteRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The ID of the Client VPN endpoint to which to add the route. -/ + clientVpnEndpointId : String + /-- A brief description of the route. -/ + description : Option String := none + /-- The IPv4 address range, in CIDR notation, of the route destination. -/ + destinationCidrBlock : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the subnet through which you want to route traffic. -/ + targetVpcSubnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateClientVpnRouteRequest where + schema := .struct "CreateClientVpnRouteRequest" [({ name := "ClientToken" }, .string), + ({ name := "ClientVpnEndpointId", required := true }, .string), + ({ name := "Description" }, .string), + ({ name := "DestinationCidrBlock", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "TargetVpcSubnetId" }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, put "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "Description" x.description, put "DestinationCidrBlock" x.destinationCidrBlock, putOpt "DryRun" x.dryRun, putOpt "TargetVpcSubnetId" x.targetVpcSubnetId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let clientVpnEndpointId ← v.req "ClientVpnEndpointId" + let description ← v.opt "Description" + let destinationCidrBlock ← v.req "DestinationCidrBlock" + let dryRun ← v.opt "DryRun" + let targetVpcSubnetId ← v.opt "TargetVpcSubnetId" + return { clientToken, clientVpnEndpointId, description, destinationCidrBlock, dryRun, targetVpcSubnetId } + +structure CreateCoipCidrRequest where + /-- A customer-owned IP address range to create. -/ + cidr : String + /-- The ID of the address pool. -/ + coipPoolId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCoipCidrRequest where + schema := .struct "CreateCoipCidrRequest" [({ name := "Cidr", required := true }, .string), + ({ name := "CoipPoolId", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "Cidr" x.cidr, put "CoipPoolId" x.coipPoolId, putOpt "DryRun" x.dryRun] + ofValue v := do + let cidr ← v.req "Cidr" + let coipPoolId ← v.req "CoipPoolId" + let dryRun ← v.opt "DryRun" + return { cidr, coipPoolId, dryRun } + +structure CreateDefaultSubnetRequest where + /-- The Availability Zone in which to create the default subnet. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone. -/ + availabilityZoneId : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Indicates whether to create an IPv6 only subnet. -/ + ipv6Native : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateDefaultSubnetRequest where + schema := .struct "CreateDefaultSubnetRequest" [({ name := "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Ipv6Native" }, .bool)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "DryRun" x.dryRun, putOpt "Ipv6Native" x.ipv6Native] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let dryRun ← v.opt "DryRun" + let ipv6Native ← v.opt "Ipv6Native" + return { availabilityZone, availabilityZoneId, dryRun, ipv6Native } + +structure CreateDefaultVpcRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateDefaultVpcRequest where + schema := .struct "CreateDefaultVpcRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure CreateFpgaImageResult where + /-- The global FPGA image identifier (AGFI ID). -/ + fpgaImageGlobalId : Option String := none + /-- The FPGA image identifier (AFI ID). -/ + fpgaImageId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateFpgaImageResult where + schema := .struct "CreateFpgaImageResult" [({ name := "FpgaImageGlobalId", xmlName := some "fpgaImageGlobalId", queryName := some "FpgaImageGlobalId" }, .string), + ({ name := "FpgaImageId", xmlName := some "fpgaImageId", queryName := some "FpgaImageId" }, .string)] + toValue x := record [putOpt "FpgaImageGlobalId" x.fpgaImageGlobalId, putOpt "FpgaImageId" x.fpgaImageId] + ofValue v := do + let fpgaImageGlobalId ← v.opt "FpgaImageGlobalId" + let fpgaImageId ← v.opt "FpgaImageId" + return { fpgaImageGlobalId, fpgaImageId } + +structure CreateImageResult where + /-- The ID of the new AMI. -/ + imageId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateImageResult where + schema := .struct "CreateImageResult" [({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string)] + toValue x := record [putOpt "ImageId" x.imageId] + ofValue v := do + let imageId ← v.opt "ImageId" + return { imageId } + +structure CreateImageUsageReportResult where + /-- The ID of the report. -/ + reportId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateImageUsageReportResult where + schema := .struct "CreateImageUsageReportResult" [({ name := "ReportId", xmlName := some "reportId", queryName := some "ReportId" }, .string)] + toValue x := record [putOpt "ReportId" x.reportId] + ofValue v := do + let reportId ← v.opt "ReportId" + return { reportId } + +structure CreateIpamRoutingPolicyRegistrationRequest where + /-- The Autonomous System Numbers (ASNs) authorized to originate the prefix. -/ + asns : (List String) + /-- The IP address prefix in CIDR notation to authorize in the ROA. -/ + cidr : String + /-- A unique, case-sensitive identifier to ensure that the operation completes no more than one time. -/ + clientToken : Option String := none + /-- A description for the routing policy registration. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Forces the creation of the routing policy registration even if it conflicts with an announced route. -/ + force : Option Bool := none + /-- The ID of the IPAM internet registry association. -/ + ipamInternetRegistryAssociationId : String + /-- The maximum prefix length that the ASNs are authorized to announce. -/ + maxLength : Option Int := none + /-- Specifies whether to permit more specific route announcements than the CIDR prefix. -/ + permitMoreSpecificAnnouncements : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateIpamRoutingPolicyRegistrationRequest where + schema := .struct "CreateIpamRoutingPolicyRegistrationRequest" [({ name := "Asns", required := true, xmlName := some "Asn" }, (.list .string "item")), + ({ name := "Cidr", required := true }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Force" }, .bool), + ({ name := "IpamInternetRegistryAssociationId", required := true }, .string), + ({ name := "MaxLength" }, .int), + ({ name := "PermitMoreSpecificAnnouncements" }, .bool)] + toValue x := record [put "Asns" x.asns, put "Cidr" x.cidr, putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "Force" x.force, put "IpamInternetRegistryAssociationId" x.ipamInternetRegistryAssociationId, putOpt "MaxLength" x.maxLength, putOpt "PermitMoreSpecificAnnouncements" x.permitMoreSpecificAnnouncements] + ofValue v := do + let asns ← v.req "Asns" + let cidr ← v.req "Cidr" + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let force ← v.opt "Force" + let ipamInternetRegistryAssociationId ← v.req "IpamInternetRegistryAssociationId" + let maxLength ← v.opt "MaxLength" + let permitMoreSpecificAnnouncements ← v.opt "PermitMoreSpecificAnnouncements" + return { asns, cidr, clientToken, description, dryRun, force, ipamInternetRegistryAssociationId, maxLength, permitMoreSpecificAnnouncements } + +structure CreateLocalGatewayRouteRequest where + /-- The CIDR range used for destination matches. -/ + destinationCidrBlock : Option String := none + /-- The ID of the prefix list. -/ + destinationPrefixListId : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the local gateway route table. -/ + localGatewayRouteTableId : String + /-- The ID of the virtual interface group. -/ + localGatewayVirtualInterfaceGroupId : Option String := none + /-- The ID of the network interface. -/ + networkInterfaceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateLocalGatewayRouteRequest where + schema := .struct "CreateLocalGatewayRouteRequest" [({ name := "DestinationCidrBlock" }, .string), + ({ name := "DestinationPrefixListId" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "LocalGatewayRouteTableId", required := true }, .string), + ({ name := "LocalGatewayVirtualInterfaceGroupId" }, .string), + ({ name := "NetworkInterfaceId" }, .string)] + toValue x := record [putOpt "DestinationCidrBlock" x.destinationCidrBlock, putOpt "DestinationPrefixListId" x.destinationPrefixListId, putOpt "DryRun" x.dryRun, put "LocalGatewayRouteTableId" x.localGatewayRouteTableId, putOpt "LocalGatewayVirtualInterfaceGroupId" x.localGatewayVirtualInterfaceGroupId, putOpt "NetworkInterfaceId" x.networkInterfaceId] + ofValue v := do + let destinationCidrBlock ← v.opt "DestinationCidrBlock" + let destinationPrefixListId ← v.opt "DestinationPrefixListId" + let dryRun ← v.opt "DryRun" + let localGatewayRouteTableId ← v.req "LocalGatewayRouteTableId" + let localGatewayVirtualInterfaceGroupId ← v.opt "LocalGatewayVirtualInterfaceGroupId" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + return { destinationCidrBlock, destinationPrefixListId, dryRun, localGatewayRouteTableId, localGatewayVirtualInterfaceGroupId, networkInterfaceId } + +structure CreateNetworkingFlexCostAllocationPolicyResult where + /-- The date and time when the policy was created. -/ + createdAt : Option Timestamp := none + /-- The date and time when the policy is expected to apply to network traffic. -/ + expectedEffectiveAt : Option Timestamp := none + /-- The Amazon Resource Name (ARN) of the flex cost allocation policy. -/ + fcaPolicyArn : Option String := none + /-- The ID of the flex cost allocation policy. -/ + fcaPolicyId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateNetworkingFlexCostAllocationPolicyResult where + schema := .struct "CreateNetworkingFlexCostAllocationPolicyResult" [({ name := "CreatedAt", xmlName := some "createdAt", queryName := some "CreatedAt" }, (.time none)), + ({ name := "ExpectedEffectiveAt", xmlName := some "expectedEffectiveAt", queryName := some "ExpectedEffectiveAt" }, (.time none)), + ({ name := "FcaPolicyArn", xmlName := some "fcaPolicyArn", queryName := some "FcaPolicyArn" }, .string), + ({ name := "FcaPolicyId", xmlName := some "fcaPolicyId", queryName := some "FcaPolicyId" }, .string)] + toValue x := record [putOpt "CreatedAt" x.createdAt, putOpt "ExpectedEffectiveAt" x.expectedEffectiveAt, putOpt "FcaPolicyArn" x.fcaPolicyArn, putOpt "FcaPolicyId" x.fcaPolicyId] + ofValue v := do + let createdAt ← v.opt "CreatedAt" + let expectedEffectiveAt ← v.opt "ExpectedEffectiveAt" + let fcaPolicyArn ← v.opt "FcaPolicyArn" + let fcaPolicyId ← v.opt "FcaPolicyId" + return { createdAt, expectedEffectiveAt, fcaPolicyArn, fcaPolicyId } + +structure CreatePublicIpv4PoolResult where + /-- The ID of the public IPv4 pool. -/ + poolId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreatePublicIpv4PoolResult where + schema := .struct "CreatePublicIpv4PoolResult" [({ name := "PoolId", xmlName := some "poolId", queryName := some "PoolId" }, .string)] + toValue x := record [putOpt "PoolId" x.poolId] + ofValue v := do + let poolId ← v.opt "PoolId" + return { poolId } + +structure CreateRestoreImageTaskResult where + /-- The AMI ID. -/ + imageId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateRestoreImageTaskResult where + schema := .struct "CreateRestoreImageTaskResult" [({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string)] + toValue x := record [putOpt "ImageId" x.imageId] + ofValue v := do + let imageId ← v.opt "ImageId" + return { imageId } + +structure CreateRouteRequest where + /-- The ID of the carrier gateway. -/ + carrierGatewayId : Option String := none + /-- The Amazon Resource Name (ARN) of the core network. -/ + coreNetworkArn : Option String := none + /-- The IPv4 CIDR address block used for the destination match. -/ + destinationCidrBlock : Option String := none + /-- The IPv6 CIDR block used for the destination match. -/ + destinationIpv6CidrBlock : Option String := none + /-- The ID of a prefix list used for the destination match. -/ + destinationPrefixListId : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- [IPv6 traffic only] The ID of an egress-only internet gateway. -/ + egressOnlyInternetGatewayId : Option String := none + /-- The ID of an internet gateway or virtual private gateway attached to your VPC. -/ + gatewayId : Option String := none + /-- The ID of a NAT instance in your VPC. -/ + instanceId : Option String := none + /-- The ID of the local gateway. -/ + localGatewayId : Option String := none + /-- [IPv4 traffic only] The ID of a NAT gateway. -/ + natGatewayId : Option String := none + /-- The ID of a network interface. -/ + networkInterfaceId : Option String := none + /-- The Amazon Resource Name (ARN) of the ODB network. -/ + odbNetworkArn : Option String := none + /-- The ID of the route table for the route. -/ + routeTableId : String + /-- The ID of a transit gateway. -/ + transitGatewayId : Option String := none + /-- The ID of a VPC endpoint. -/ + vpcEndpointId : Option String := none + /-- The ID of a VPC peering connection. -/ + vpcPeeringConnectionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateRouteRequest where + schema := .struct "CreateRouteRequest" [({ name := "CarrierGatewayId" }, .string), + ({ name := "CoreNetworkArn" }, .string), + ({ name := "DestinationCidrBlock", xmlName := some "destinationCidrBlock", queryName := some "DestinationCidrBlock" }, .string), + ({ name := "DestinationIpv6CidrBlock", xmlName := some "destinationIpv6CidrBlock", queryName := some "DestinationIpv6CidrBlock" }, .string), + ({ name := "DestinationPrefixListId" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "EgressOnlyInternetGatewayId", xmlName := some "egressOnlyInternetGatewayId", queryName := some "EgressOnlyInternetGatewayId" }, .string), + ({ name := "GatewayId", xmlName := some "gatewayId", queryName := some "GatewayId" }, .string), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "LocalGatewayId" }, .string), + ({ name := "NatGatewayId", xmlName := some "natGatewayId", queryName := some "NatGatewayId" }, .string), + ({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "OdbNetworkArn" }, .string), + ({ name := "RouteTableId", required := true, xmlName := some "routeTableId", queryName := some "RouteTableId" }, .string), + ({ name := "TransitGatewayId" }, .string), + ({ name := "VpcEndpointId" }, .string), + ({ name := "VpcPeeringConnectionId", xmlName := some "vpcPeeringConnectionId", queryName := some "VpcPeeringConnectionId" }, .string)] + toValue x := record [putOpt "CarrierGatewayId" x.carrierGatewayId, putOpt "CoreNetworkArn" x.coreNetworkArn, putOpt "DestinationCidrBlock" x.destinationCidrBlock, putOpt "DestinationIpv6CidrBlock" x.destinationIpv6CidrBlock, putOpt "DestinationPrefixListId" x.destinationPrefixListId, putOpt "DryRun" x.dryRun, putOpt "EgressOnlyInternetGatewayId" x.egressOnlyInternetGatewayId, putOpt "GatewayId" x.gatewayId, putOpt "InstanceId" x.instanceId, putOpt "LocalGatewayId" x.localGatewayId, putOpt "NatGatewayId" x.natGatewayId, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "OdbNetworkArn" x.odbNetworkArn, put "RouteTableId" x.routeTableId, putOpt "TransitGatewayId" x.transitGatewayId, putOpt "VpcEndpointId" x.vpcEndpointId, putOpt "VpcPeeringConnectionId" x.vpcPeeringConnectionId] + ofValue v := do + let carrierGatewayId ← v.opt "CarrierGatewayId" + let coreNetworkArn ← v.opt "CoreNetworkArn" + let destinationCidrBlock ← v.opt "DestinationCidrBlock" + let destinationIpv6CidrBlock ← v.opt "DestinationIpv6CidrBlock" + let destinationPrefixListId ← v.opt "DestinationPrefixListId" + let dryRun ← v.opt "DryRun" + let egressOnlyInternetGatewayId ← v.opt "EgressOnlyInternetGatewayId" + let gatewayId ← v.opt "GatewayId" + let instanceId ← v.opt "InstanceId" + let localGatewayId ← v.opt "LocalGatewayId" + let natGatewayId ← v.opt "NatGatewayId" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let odbNetworkArn ← v.opt "OdbNetworkArn" + let routeTableId ← v.req "RouteTableId" + let transitGatewayId ← v.opt "TransitGatewayId" + let vpcEndpointId ← v.opt "VpcEndpointId" + let vpcPeeringConnectionId ← v.opt "VpcPeeringConnectionId" + return { carrierGatewayId, coreNetworkArn, destinationCidrBlock, destinationIpv6CidrBlock, destinationPrefixListId, dryRun, egressOnlyInternetGatewayId, gatewayId, instanceId, localGatewayId, natGatewayId, networkInterfaceId, odbNetworkArn, routeTableId, transitGatewayId, vpcEndpointId, vpcPeeringConnectionId } + +structure CreateRouteResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateRouteResult where + schema := .struct "CreateRouteResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +/-- Contains the parameters for CreateSpotDatafeedSubscription. -/ +structure CreateSpotDatafeedSubscriptionRequest where + /-- The name of the Amazon S3 bucket in which to store the Spot Instance data feed. -/ + bucket : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The prefix for the data feed file names. -/ + «prefix» : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateSpotDatafeedSubscriptionRequest where + schema := .struct "CreateSpotDatafeedSubscriptionRequest" [({ name := "Bucket", required := true, xmlName := some "bucket", queryName := some "Bucket" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Prefix", xmlName := some "prefix", queryName := some "Prefix" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "DryRun" x.dryRun, putOpt "Prefix" x.«prefix»] + ofValue v := do + let bucket ← v.req "Bucket" + let dryRun ← v.opt "DryRun" + let «prefix» ← v.opt "Prefix" + return { bucket, dryRun, «prefix» } + +structure CreateStoreImageTaskResult where + /-- The name of the stored AMI object in the S3 bucket. -/ + objectKey : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateStoreImageTaskResult where + schema := .struct "CreateStoreImageTaskResult" [({ name := "ObjectKey", xmlName := some "objectKey", queryName := some "ObjectKey" }, .string)] + toValue x := record [putOpt "ObjectKey" x.objectKey] + ofValue v := do + let objectKey ← v.opt "ObjectKey" + return { objectKey } + +structure CreateTransitGatewayPrefixListReferenceRequest where + /-- Indicates whether to drop traffic that matches this route. -/ + blackhole : Option Bool := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the prefix list that is used for destination matches. -/ + prefixListId : String + /-- The ID of the attachment to which traffic is routed. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the transit gateway route table. -/ + transitGatewayRouteTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayPrefixListReferenceRequest where + schema := .struct "CreateTransitGatewayPrefixListReferenceRequest" [({ name := "Blackhole" }, .bool), + ({ name := "DryRun" }, .bool), + ({ name := "PrefixListId", required := true }, .string), + ({ name := "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayRouteTableId", required := true }, .string)] + toValue x := record [putOpt "Blackhole" x.blackhole, putOpt "DryRun" x.dryRun, put "PrefixListId" x.prefixListId, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, put "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let blackhole ← v.opt "Blackhole" + let dryRun ← v.opt "DryRun" + let prefixListId ← v.req "PrefixListId" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayRouteTableId ← v.req "TransitGatewayRouteTableId" + return { blackhole, dryRun, prefixListId, transitGatewayAttachmentId, transitGatewayRouteTableId } + +structure CreateTransitGatewayRouteRequest where + /-- Indicates whether to drop traffic that matches this route. -/ + blackhole : Option Bool := none + /-- The CIDR range used for destination matches. -/ + destinationCidrBlock : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the transit gateway route table. -/ + transitGatewayRouteTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayRouteRequest where + schema := .struct "CreateTransitGatewayRouteRequest" [({ name := "Blackhole" }, .bool), + ({ name := "DestinationCidrBlock", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayRouteTableId", required := true }, .string)] + toValue x := record [putOpt "Blackhole" x.blackhole, put "DestinationCidrBlock" x.destinationCidrBlock, putOpt "DryRun" x.dryRun, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, put "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let blackhole ← v.opt "Blackhole" + let destinationCidrBlock ← v.req "DestinationCidrBlock" + let dryRun ← v.opt "DryRun" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayRouteTableId ← v.req "TransitGatewayRouteTableId" + return { blackhole, destinationCidrBlock, dryRun, transitGatewayAttachmentId, transitGatewayRouteTableId } + +/-- Describes the port range for a Verified Access endpoint. -/ +structure CreateVerifiedAccessEndpointPortRange where + /-- The start of the port range. -/ + fromPort : Option Int := none + /-- The end of the port range. -/ + toPort : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVerifiedAccessEndpointPortRange where + schema := .struct "CreateVerifiedAccessEndpointPortRange" [({ name := "FromPort" }, .int), + ({ name := "ToPort" }, .int)] + toValue x := record [putOpt "FromPort" x.fromPort, putOpt "ToPort" x.toPort] + ofValue v := do + let fromPort ← v.opt "FromPort" + let toPort ← v.opt "ToPort" + return { fromPort, toPort } + +/-- Describes the OpenID Connect (OIDC) options. -/ +structure CreateVerifiedAccessNativeApplicationOidcOptions where + /-- The authorization endpoint of the IdP. -/ + authorizationEndpoint : Option String := none + /-- The OAuth 2.0 client identifier. -/ + clientId : Option String := none + /-- The OAuth 2.0 client secret. -/ + clientSecret : Option String := none + /-- The OIDC issuer identifier of the IdP. -/ + issuer : Option String := none + /-- The public signing key endpoint. -/ + publicSigningKeyEndpoint : Option String := none + /-- The set of user claims to be requested from the IdP. -/ + scope : Option String := none + /-- The token endpoint of the IdP. -/ + tokenEndpoint : Option String := none + /-- The user info endpoint of the IdP. -/ + userInfoEndpoint : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVerifiedAccessNativeApplicationOidcOptions where + schema := .struct "CreateVerifiedAccessNativeApplicationOidcOptions" [({ name := "AuthorizationEndpoint" }, .string), + ({ name := "ClientId" }, .string), + ({ name := "ClientSecret" }, .string), + ({ name := "Issuer" }, .string), + ({ name := "PublicSigningKeyEndpoint" }, .string), + ({ name := "Scope" }, .string), + ({ name := "TokenEndpoint" }, .string), + ({ name := "UserInfoEndpoint" }, .string)] + toValue x := record [putOpt "AuthorizationEndpoint" x.authorizationEndpoint, putOpt "ClientId" x.clientId, putOpt "ClientSecret" x.clientSecret, putOpt "Issuer" x.issuer, putOpt "PublicSigningKeyEndpoint" x.publicSigningKeyEndpoint, putOpt "Scope" x.scope, putOpt "TokenEndpoint" x.tokenEndpoint, putOpt "UserInfoEndpoint" x.userInfoEndpoint] + ofValue v := do + let authorizationEndpoint ← v.opt "AuthorizationEndpoint" + let clientId ← v.opt "ClientId" + let clientSecret ← v.opt "ClientSecret" + let issuer ← v.opt "Issuer" + let publicSigningKeyEndpoint ← v.opt "PublicSigningKeyEndpoint" + let scope ← v.opt "Scope" + let tokenEndpoint ← v.opt "TokenEndpoint" + let userInfoEndpoint ← v.opt "UserInfoEndpoint" + return { authorizationEndpoint, clientId, clientSecret, issuer, publicSigningKeyEndpoint, scope, tokenEndpoint, userInfoEndpoint } + +/-- Describes the options when creating an Amazon Web Services Verified Access trust provider using the device type. -/ +structure CreateVerifiedAccessTrustProviderDeviceOptions where + /-- The URL Amazon Web Services Verified Access will use to verify the authenticity of the device tokens. -/ + publicSigningKeyUrl : Option String := none + /-- The ID of the tenant application with the device-identity provider. -/ + tenantId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVerifiedAccessTrustProviderDeviceOptions where + schema := .struct "CreateVerifiedAccessTrustProviderDeviceOptions" [({ name := "PublicSigningKeyUrl" }, .string), + ({ name := "TenantId" }, .string)] + toValue x := record [putOpt "PublicSigningKeyUrl" x.publicSigningKeyUrl, putOpt "TenantId" x.tenantId] + ofValue v := do + let publicSigningKeyUrl ← v.opt "PublicSigningKeyUrl" + let tenantId ← v.opt "TenantId" + return { publicSigningKeyUrl, tenantId } + +/-- Describes the options when creating an Amazon Web Services Verified Access trust provider using the user type. -/ +structure CreateVerifiedAccessTrustProviderOidcOptions where + /-- The OIDC authorization endpoint. -/ + authorizationEndpoint : Option String := none + /-- The client identifier. -/ + clientId : Option String := none + /-- The client secret. -/ + clientSecret : Option String := none + /-- The OIDC issuer. -/ + issuer : Option String := none + /-- OpenID Connect (OIDC) scopes are used by an application during authentication to authorize access to a user's details. -/ + scope : Option String := none + /-- The OIDC token endpoint. -/ + tokenEndpoint : Option String := none + /-- The OIDC user info endpoint. -/ + userInfoEndpoint : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVerifiedAccessTrustProviderOidcOptions where + schema := .struct "CreateVerifiedAccessTrustProviderOidcOptions" [({ name := "AuthorizationEndpoint" }, .string), + ({ name := "ClientId" }, .string), + ({ name := "ClientSecret" }, .string), + ({ name := "Issuer" }, .string), + ({ name := "Scope" }, .string), + ({ name := "TokenEndpoint" }, .string), + ({ name := "UserInfoEndpoint" }, .string)] + toValue x := record [putOpt "AuthorizationEndpoint" x.authorizationEndpoint, putOpt "ClientId" x.clientId, putOpt "ClientSecret" x.clientSecret, putOpt "Issuer" x.issuer, putOpt "Scope" x.scope, putOpt "TokenEndpoint" x.tokenEndpoint, putOpt "UserInfoEndpoint" x.userInfoEndpoint] + ofValue v := do + let authorizationEndpoint ← v.opt "AuthorizationEndpoint" + let clientId ← v.opt "ClientId" + let clientSecret ← v.opt "ClientSecret" + let issuer ← v.opt "Issuer" + let scope ← v.opt "Scope" + let tokenEndpoint ← v.opt "TokenEndpoint" + let userInfoEndpoint ← v.opt "UserInfoEndpoint" + return { authorizationEndpoint, clientId, clientSecret, issuer, scope, tokenEndpoint, userInfoEndpoint } + +structure CreateVpcEndpointConnectionNotificationRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The endpoint events for which to receive notifications. -/ + connectionEvents : (List String) + /-- The ARN of the SNS topic for the notifications. -/ + connectionNotificationArn : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the endpoint service. -/ + serviceId : Option String := none + /-- The ID of the endpoint. -/ + vpcEndpointId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpcEndpointConnectionNotificationRequest where + schema := .struct "CreateVpcEndpointConnectionNotificationRequest" [({ name := "ClientToken" }, .string), + ({ name := "ConnectionEvents", required := true }, (.list .string "item")), + ({ name := "ConnectionNotificationArn", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "ServiceId" }, .string), + ({ name := "VpcEndpointId" }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, put "ConnectionEvents" x.connectionEvents, put "ConnectionNotificationArn" x.connectionNotificationArn, putOpt "DryRun" x.dryRun, putOpt "ServiceId" x.serviceId, putOpt "VpcEndpointId" x.vpcEndpointId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let connectionEvents ← v.req "ConnectionEvents" + let connectionNotificationArn ← v.req "ConnectionNotificationArn" + let dryRun ← v.opt "DryRun" + let serviceId ← v.opt "ServiceId" + let vpcEndpointId ← v.opt "VpcEndpointId" + return { clientToken, connectionEvents, connectionNotificationArn, dryRun, serviceId, vpcEndpointId } + +/-- Contains the parameters for CreateVpnConnectionRoute. -/ +structure CreateVpnConnectionRouteRequest where + /-- The CIDR block associated with the local subnet of the customer network. -/ + destinationCidrBlock : String + /-- The ID of the VPN connection. -/ + vpnConnectionId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpnConnectionRouteRequest where + schema := .struct "CreateVpnConnectionRouteRequest" [({ name := "DestinationCidrBlock", required := true }, .string), + ({ name := "VpnConnectionId", required := true }, .string)] + toValue x := record [put "DestinationCidrBlock" x.destinationCidrBlock, put "VpnConnectionId" x.vpnConnectionId] + ofValue v := do + let destinationCidrBlock ← v.req "DestinationCidrBlock" + let vpnConnectionId ← v.req "VpnConnectionId" + return { destinationCidrBlock, vpnConnectionId } + +/-- The maximum age for allowed images. -/ +structure CreationDateCondition where + /-- The maximum number of days that have elapsed since the image was created. -/ + maximumDaysSinceCreated : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreationDateCondition where + schema := .struct "CreationDateCondition" [({ name := "MaximumDaysSinceCreated", xmlName := some "maximumDaysSinceCreated", queryName := some "MaximumDaysSinceCreated" }, .int)] + toValue x := record [putOpt "MaximumDaysSinceCreated" x.maximumDaysSinceCreated] + ofValue v := do + let maximumDaysSinceCreated ← v.opt "MaximumDaysSinceCreated" + return { maximumDaysSinceCreated } + +/-- The maximum age for allowed images. -/ +structure CreationDateConditionRequest where + /-- The maximum number of days that have elapsed since the image was created. -/ + maximumDaysSinceCreated : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreationDateConditionRequest where + schema := .struct "CreationDateConditionRequest" [({ name := "MaximumDaysSinceCreated" }, .int)] + toValue x := record [putOpt "MaximumDaysSinceCreated" x.maximumDaysSinceCreated] + ofValue v := do + let maximumDaysSinceCreated ← v.opt "MaximumDaysSinceCreated" + return { maximumDaysSinceCreated } + +/-- Describes the credit option for CPU usage of a T instance. -/ +structure CreditSpecification where + /-- The credit option for CPU usage of a T instance. -/ + cpuCredits : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreditSpecification where + schema := .struct "CreditSpecification" [({ name := "CpuCredits", xmlName := some "cpuCredits", queryName := some "CpuCredits" }, .string)] + toValue x := record [putOpt "CpuCredits" x.cpuCredits] + ofValue v := do + let cpuCredits ← v.opt "CpuCredits" + return { cpuCredits } + +/-- The credit option for CPU usage of a T instance. -/ +structure CreditSpecificationRequest where + /-- The credit option for CPU usage of a T instance. -/ + cpuCredits : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreditSpecificationRequest where + schema := .struct "CreditSpecificationRequest" [({ name := "CpuCredits", required := true }, .string)] + toValue x := record [put "CpuCredits" x.cpuCredits] + ofValue v := do + let cpuCredits ← v.req "CpuCredits" + return { cpuCredits } + +inductive CurrencyCodeValues where + | usd +deriving DecidableEq, Repr, Inhabited + +def CurrencyCodeValues.wire : CurrencyCodeValues → String + | .usd => "USD" + +def CurrencyCodeValues.wireValues : List (String × CurrencyCodeValues) := [ + ("USD", .usd)] + +def CurrencyCodeValues.ofWire (text : String) : Except String CurrencyCodeValues := + match List.find? (·.1 == text) CurrencyCodeValues.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CurrencyCodeValues has no value {text}" + +instance : Key CurrencyCodeValues := ⟨CurrencyCodeValues.wire, CurrencyCodeValues.ofWire⟩ + +instance : Shape CurrencyCodeValues where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CurrencyCodeValues.ofWire text + | _ => .error "expected a string" + +/-- Describes a tag key-value pair for an application status check association request. -/ +structure CustomTagKeyValueRequestPair where + /-- The key of the tag. -/ + key : Option String := none + /-- The value of the tag. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CustomTagKeyValueRequestPair where + schema := .struct "CustomTagKeyValueRequestPair" [({ name := "Key" }, .string), + ({ name := "Value" }, .string)] + toValue x := record [putOpt "Key" x.key, putOpt "Value" x.value] + ofValue v := do + let key ← v.opt "Key" + let value ← v.opt "Value" + return { key, value } + +/-- Describes a tag key-value pair for an application status check association. -/ +structure CustomTagKeyValueResponsePair where + /-- The key of the tag. -/ + key : Option String := none + /-- The value of the tag. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CustomTagKeyValueResponsePair where + schema := .struct "CustomTagKeyValueResponsePair" [({ name := "Key", xmlName := some "key", queryName := some "Key" }, .string), + ({ name := "Value", xmlName := some "value", queryName := some "Value" }, .string)] + toValue x := record [putOpt "Key" x.key, putOpt "Value" x.value] + ofValue v := do + let key ← v.opt "Key" + let value ← v.opt "Value" + return { key, value } + +inductive DatafeedSubscriptionState where + | active + | inactive +deriving DecidableEq, Repr, Inhabited + +def DatafeedSubscriptionState.wire : DatafeedSubscriptionState → String + | .active => "Active" + | .inactive => "Inactive" + +def DatafeedSubscriptionState.wireValues : List (String × DatafeedSubscriptionState) := [ + ("Active", .active), + ("Inactive", .inactive)] + +def DatafeedSubscriptionState.ofWire (text : String) : Except String DatafeedSubscriptionState := + match List.find? (·.1 == text) DatafeedSubscriptionState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DatafeedSubscriptionState has no value {text}" + +instance : Key DatafeedSubscriptionState := ⟨DatafeedSubscriptionState.wire, DatafeedSubscriptionState.ofWire⟩ + +instance : Shape DatafeedSubscriptionState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DatafeedSubscriptionState.ofWire text + | _ => .error "expected a string" + +/-- Indicates default conntrack information for the instance type. -/ +structure DefaultConnectionTrackingConfiguration where + /-- Default timeout (in seconds) for idle TCP connections in an established state. -/ + defaultTcpEstablishedTimeout : Option Int := none + /-- Default timeout (in seconds) for idle UDP flows classified as streams which have seen more than one request-response transaction. -/ + defaultUdpStreamTimeout : Option Int := none + /-- Default timeout (in seconds) for idle UDP flows that have seen traffic only in a single direction or a single request-response transaction. -/ + defaultUdpTimeout : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DefaultConnectionTrackingConfiguration where + schema := .struct "DefaultConnectionTrackingConfiguration" [({ name := "DefaultTcpEstablishedTimeout", xmlName := some "defaultTcpEstablishedTimeout", queryName := some "DefaultTcpEstablishedTimeout" }, .int), + ({ name := "DefaultUdpStreamTimeout", xmlName := some "defaultUdpStreamTimeout", queryName := some "DefaultUdpStreamTimeout" }, .int), + ({ name := "DefaultUdpTimeout", xmlName := some "defaultUdpTimeout", queryName := some "DefaultUdpTimeout" }, .int)] + toValue x := record [putOpt "DefaultTcpEstablishedTimeout" x.defaultTcpEstablishedTimeout, putOpt "DefaultUdpStreamTimeout" x.defaultUdpStreamTimeout, putOpt "DefaultUdpTimeout" x.defaultUdpTimeout] + ofValue v := do + let defaultTcpEstablishedTimeout ← v.opt "DefaultTcpEstablishedTimeout" + let defaultUdpStreamTimeout ← v.opt "DefaultUdpStreamTimeout" + let defaultUdpTimeout ← v.opt "DefaultUdpTimeout" + return { defaultTcpEstablishedTimeout, defaultUdpStreamTimeout, defaultUdpTimeout } + +inductive DefaultHttpTokensEnforcedState where + | disabled + | enabled + | no_preference +deriving DecidableEq, Repr, Inhabited + +def DefaultHttpTokensEnforcedState.wire : DefaultHttpTokensEnforcedState → String + | .disabled => "disabled" + | .enabled => "enabled" + | .no_preference => "no-preference" + +def DefaultHttpTokensEnforcedState.wireValues : List (String × DefaultHttpTokensEnforcedState) := [ + ("disabled", .disabled), + ("enabled", .enabled), + ("no-preference", .no_preference)] + +def DefaultHttpTokensEnforcedState.ofWire (text : String) : Except String DefaultHttpTokensEnforcedState := + match List.find? (·.1 == text) DefaultHttpTokensEnforcedState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DefaultHttpTokensEnforcedState has no value {text}" + +instance : Key DefaultHttpTokensEnforcedState := ⟨DefaultHttpTokensEnforcedState.wire, DefaultHttpTokensEnforcedState.ofWire⟩ + +instance : Shape DefaultHttpTokensEnforcedState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DefaultHttpTokensEnforcedState.ofWire text + | _ => .error "expected a string" + +inductive DefaultInstanceMetadataEndpointState where + | disabled + | enabled + | no_preference +deriving DecidableEq, Repr, Inhabited + +def DefaultInstanceMetadataEndpointState.wire : DefaultInstanceMetadataEndpointState → String + | .disabled => "disabled" + | .enabled => "enabled" + | .no_preference => "no-preference" + +def DefaultInstanceMetadataEndpointState.wireValues : List (String × DefaultInstanceMetadataEndpointState) := [ + ("disabled", .disabled), + ("enabled", .enabled), + ("no-preference", .no_preference)] + +def DefaultInstanceMetadataEndpointState.ofWire (text : String) : Except String DefaultInstanceMetadataEndpointState := + match List.find? (·.1 == text) DefaultInstanceMetadataEndpointState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DefaultInstanceMetadataEndpointState has no value {text}" + +instance : Key DefaultInstanceMetadataEndpointState := ⟨DefaultInstanceMetadataEndpointState.wire, DefaultInstanceMetadataEndpointState.ofWire⟩ + +instance : Shape DefaultInstanceMetadataEndpointState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DefaultInstanceMetadataEndpointState.ofWire text + | _ => .error "expected a string" + +inductive DefaultInstanceMetadataTagsState where + | disabled + | enabled + | no_preference +deriving DecidableEq, Repr, Inhabited + +def DefaultInstanceMetadataTagsState.wire : DefaultInstanceMetadataTagsState → String + | .disabled => "disabled" + | .enabled => "enabled" + | .no_preference => "no-preference" + +def DefaultInstanceMetadataTagsState.wireValues : List (String × DefaultInstanceMetadataTagsState) := [ + ("disabled", .disabled), + ("enabled", .enabled), + ("no-preference", .no_preference)] + +def DefaultInstanceMetadataTagsState.ofWire (text : String) : Except String DefaultInstanceMetadataTagsState := + match List.find? (·.1 == text) DefaultInstanceMetadataTagsState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DefaultInstanceMetadataTagsState has no value {text}" + +instance : Key DefaultInstanceMetadataTagsState := ⟨DefaultInstanceMetadataTagsState.wire, DefaultInstanceMetadataTagsState.ofWire⟩ + +instance : Shape DefaultInstanceMetadataTagsState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DefaultInstanceMetadataTagsState.ofWire text + | _ => .error "expected a string" + +inductive DefaultRouteTableAssociationValue where + | disable + | enable +deriving DecidableEq, Repr, Inhabited + +def DefaultRouteTableAssociationValue.wire : DefaultRouteTableAssociationValue → String + | .disable => "disable" + | .enable => "enable" + +def DefaultRouteTableAssociationValue.wireValues : List (String × DefaultRouteTableAssociationValue) := [ + ("disable", .disable), + ("enable", .enable)] + +def DefaultRouteTableAssociationValue.ofWire (text : String) : Except String DefaultRouteTableAssociationValue := + match List.find? (·.1 == text) DefaultRouteTableAssociationValue.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DefaultRouteTableAssociationValue has no value {text}" + +instance : Key DefaultRouteTableAssociationValue := ⟨DefaultRouteTableAssociationValue.wire, DefaultRouteTableAssociationValue.ofWire⟩ + +instance : Shape DefaultRouteTableAssociationValue where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DefaultRouteTableAssociationValue.ofWire text + | _ => .error "expected a string" + +inductive DefaultRouteTablePropagationValue where + | disable + | enable +deriving DecidableEq, Repr, Inhabited + +def DefaultRouteTablePropagationValue.wire : DefaultRouteTablePropagationValue → String + | .disable => "disable" + | .enable => "enable" + +def DefaultRouteTablePropagationValue.wireValues : List (String × DefaultRouteTablePropagationValue) := [ + ("disable", .disable), + ("enable", .enable)] + +def DefaultRouteTablePropagationValue.ofWire (text : String) : Except String DefaultRouteTablePropagationValue := + match List.find? (·.1 == text) DefaultRouteTablePropagationValue.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DefaultRouteTablePropagationValue has no value {text}" + +instance : Key DefaultRouteTablePropagationValue := ⟨DefaultRouteTablePropagationValue.wire, DefaultRouteTablePropagationValue.ofWire⟩ + +instance : Shape DefaultRouteTablePropagationValue where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DefaultRouteTablePropagationValue.ofWire text + | _ => .error "expected a string" + +inductive DefaultTargetCapacityType where + | capacitY_BLOCK + | oN_DEMAND + | reserveD_CAPACITY + | spot +deriving DecidableEq, Repr, Inhabited + +def DefaultTargetCapacityType.wire : DefaultTargetCapacityType → String + | .capacitY_BLOCK => "capacity-block" + | .oN_DEMAND => "on-demand" + | .reserveD_CAPACITY => "reserved-capacity" + | .spot => "spot" + +def DefaultTargetCapacityType.wireValues : List (String × DefaultTargetCapacityType) := [ + ("capacity-block", .capacitY_BLOCK), + ("on-demand", .oN_DEMAND), + ("reserved-capacity", .reserveD_CAPACITY), + ("spot", .spot)] + +def DefaultTargetCapacityType.ofWire (text : String) : Except String DefaultTargetCapacityType := + match List.find? (·.1 == text) DefaultTargetCapacityType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DefaultTargetCapacityType has no value {text}" + +instance : Key DefaultTargetCapacityType := ⟨DefaultTargetCapacityType.wire, DefaultTargetCapacityType.ofWire⟩ + +instance : Shape DefaultTargetCapacityType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DefaultTargetCapacityType.ofWire text + | _ => .error "expected a string" + +structure DeleteApplicationStatusCheckRequest where + /-- The ID of the application status check to delete. -/ + applicationStatusCheckId : String + /-- A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteApplicationStatusCheckRequest where + schema := .struct "DeleteApplicationStatusCheckRequest" [({ name := "ApplicationStatusCheckId", required := true }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "ApplicationStatusCheckId" x.applicationStatusCheckId, putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun] + ofValue v := do + let applicationStatusCheckId ← v.req "ApplicationStatusCheckId" + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + return { applicationStatusCheckId, clientToken, dryRun } + +structure DeleteCapacityManagerDataExportRequest where + /-- The unique identifier of the data export configuration to delete. -/ + capacityManagerDataExportId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteCapacityManagerDataExportRequest where + schema := .struct "DeleteCapacityManagerDataExportRequest" [({ name := "CapacityManagerDataExportId", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "CapacityManagerDataExportId" x.capacityManagerDataExportId, putOpt "DryRun" x.dryRun] + ofValue v := do + let capacityManagerDataExportId ← v.req "CapacityManagerDataExportId" + let dryRun ← v.opt "DryRun" + return { capacityManagerDataExportId, dryRun } + +structure DeleteCapacityManagerDataExportResult where + /-- The unique identifier of the deleted data export configuration. -/ + capacityManagerDataExportId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteCapacityManagerDataExportResult where + schema := .struct "DeleteCapacityManagerDataExportResult" [({ name := "CapacityManagerDataExportId", xmlName := some "capacityManagerDataExportId", queryName := some "CapacityManagerDataExportId" }, .string)] + toValue x := record [putOpt "CapacityManagerDataExportId" x.capacityManagerDataExportId] + ofValue v := do + let capacityManagerDataExportId ← v.opt "CapacityManagerDataExportId" + return { capacityManagerDataExportId } + +structure DeleteCarrierGatewayRequest where + /-- The ID of the carrier gateway. -/ + carrierGatewayId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteCarrierGatewayRequest where + schema := .struct "DeleteCarrierGatewayRequest" [({ name := "CarrierGatewayId", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "CarrierGatewayId" x.carrierGatewayId, putOpt "DryRun" x.dryRun] + ofValue v := do + let carrierGatewayId ← v.req "CarrierGatewayId" + let dryRun ← v.opt "DryRun" + return { carrierGatewayId, dryRun } + +structure DeleteClientVpnEndpointAuthorizationPolicyRequest where + /-- The ID of the Client VPN endpoint. -/ + clientVpnEndpointId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteClientVpnEndpointAuthorizationPolicyRequest where + schema := .struct "DeleteClientVpnEndpointAuthorizationPolicyRequest" [({ name := "ClientVpnEndpointId", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "DryRun" x.dryRun] + ofValue v := do + let clientVpnEndpointId ← v.req "ClientVpnEndpointId" + let dryRun ← v.opt "DryRun" + return { clientVpnEndpointId, dryRun } + +structure DeleteClientVpnEndpointRequest where + /-- The ID of the Client VPN to be deleted. -/ + clientVpnEndpointId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteClientVpnEndpointRequest where + schema := .struct "DeleteClientVpnEndpointRequest" [({ name := "ClientVpnEndpointId", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "DryRun" x.dryRun] + ofValue v := do + let clientVpnEndpointId ← v.req "ClientVpnEndpointId" + let dryRun ← v.opt "DryRun" + return { clientVpnEndpointId, dryRun } + +structure DeleteClientVpnRouteRequest where + /-- The ID of the Client VPN endpoint from which the route is to be deleted. -/ + clientVpnEndpointId : String + /-- The IPv4 address range, in CIDR notation, of the route to be deleted. -/ + destinationCidrBlock : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the target subnet used by the route. -/ + targetVpcSubnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteClientVpnRouteRequest where + schema := .struct "DeleteClientVpnRouteRequest" [({ name := "ClientVpnEndpointId", required := true }, .string), + ({ name := "DestinationCidrBlock", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "TargetVpcSubnetId" }, .string)] + toValue x := record [put "ClientVpnEndpointId" x.clientVpnEndpointId, put "DestinationCidrBlock" x.destinationCidrBlock, putOpt "DryRun" x.dryRun, putOpt "TargetVpcSubnetId" x.targetVpcSubnetId] + ofValue v := do + let clientVpnEndpointId ← v.req "ClientVpnEndpointId" + let destinationCidrBlock ← v.req "DestinationCidrBlock" + let dryRun ← v.opt "DryRun" + let targetVpcSubnetId ← v.opt "TargetVpcSubnetId" + return { clientVpnEndpointId, destinationCidrBlock, dryRun, targetVpcSubnetId } + +structure DeleteCoipCidrRequest where + /-- A customer-owned IP address range that you want to delete. -/ + cidr : String + /-- The ID of the customer-owned address pool. -/ + coipPoolId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteCoipCidrRequest where + schema := .struct "DeleteCoipCidrRequest" [({ name := "Cidr", required := true }, .string), + ({ name := "CoipPoolId", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "Cidr" x.cidr, put "CoipPoolId" x.coipPoolId, putOpt "DryRun" x.dryRun] + ofValue v := do + let cidr ← v.req "Cidr" + let coipPoolId ← v.req "CoipPoolId" + let dryRun ← v.opt "DryRun" + return { cidr, coipPoolId, dryRun } + +structure DeleteCoipPoolRequest where + /-- The ID of the CoIP pool that you want to delete. -/ + coipPoolId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteCoipPoolRequest where + schema := .struct "DeleteCoipPoolRequest" [({ name := "CoipPoolId", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "CoipPoolId" x.coipPoolId, putOpt "DryRun" x.dryRun] + ofValue v := do + let coipPoolId ← v.req "CoipPoolId" + let dryRun ← v.opt "DryRun" + return { coipPoolId, dryRun } + +/-- Contains the parameters for DeleteCustomerGateway. -/ +structure DeleteCustomerGatewayRequest where + /-- The ID of the customer gateway. -/ + customerGatewayId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteCustomerGatewayRequest where + schema := .struct "DeleteCustomerGatewayRequest" [({ name := "CustomerGatewayId", required := true }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool)] + toValue x := record [put "CustomerGatewayId" x.customerGatewayId, putOpt "DryRun" x.dryRun] + ofValue v := do + let customerGatewayId ← v.req "CustomerGatewayId" + let dryRun ← v.opt "DryRun" + return { customerGatewayId, dryRun } + +structure DeleteDhcpOptionsRequest where + /-- The ID of the DHCP options set. -/ + dhcpOptionsId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteDhcpOptionsRequest where + schema := .struct "DeleteDhcpOptionsRequest" [({ name := "DhcpOptionsId", required := true }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool)] + toValue x := record [put "DhcpOptionsId" x.dhcpOptionsId, putOpt "DryRun" x.dryRun] + ofValue v := do + let dhcpOptionsId ← v.req "DhcpOptionsId" + let dryRun ← v.opt "DryRun" + return { dhcpOptionsId, dryRun } + +structure DeleteEgressOnlyInternetGatewayRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the egress-only internet gateway. -/ + egressOnlyInternetGatewayId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteEgressOnlyInternetGatewayRequest where + schema := .struct "DeleteEgressOnlyInternetGatewayRequest" [({ name := "DryRun" }, .bool), + ({ name := "EgressOnlyInternetGatewayId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "EgressOnlyInternetGatewayId" x.egressOnlyInternetGatewayId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let egressOnlyInternetGatewayId ← v.req "EgressOnlyInternetGatewayId" + return { dryRun, egressOnlyInternetGatewayId } + +structure DeleteEgressOnlyInternetGatewayResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + returnCode : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteEgressOnlyInternetGatewayResult where + schema := .struct "DeleteEgressOnlyInternetGatewayResult" [({ name := "ReturnCode", xmlName := some "returnCode", queryName := some "ReturnCode" }, .bool)] + toValue x := record [putOpt "ReturnCode" x.returnCode] + ofValue v := do + let returnCode ← v.opt "ReturnCode" + return { returnCode } + +inductive DeleteFleetErrorCode where + | fleeT_ID_DOES_NOT_EXIST + | fleeT_ID_MALFORMED + | fleeT_NOT_IN_DELETABLE_STATE + | unexpecteD_ERROR +deriving DecidableEq, Repr, Inhabited + +def DeleteFleetErrorCode.wire : DeleteFleetErrorCode → String + | .fleeT_ID_DOES_NOT_EXIST => "fleetIdDoesNotExist" + | .fleeT_ID_MALFORMED => "fleetIdMalformed" + | .fleeT_NOT_IN_DELETABLE_STATE => "fleetNotInDeletableState" + | .unexpecteD_ERROR => "unexpectedError" + +def DeleteFleetErrorCode.wireValues : List (String × DeleteFleetErrorCode) := [ + ("fleetIdDoesNotExist", .fleeT_ID_DOES_NOT_EXIST), + ("fleetIdMalformed", .fleeT_ID_MALFORMED), + ("fleetNotInDeletableState", .fleeT_NOT_IN_DELETABLE_STATE), + ("unexpectedError", .unexpecteD_ERROR)] + +def DeleteFleetErrorCode.ofWire (text : String) : Except String DeleteFleetErrorCode := + match List.find? (·.1 == text) DeleteFleetErrorCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DeleteFleetErrorCode has no value {text}" + +instance : Key DeleteFleetErrorCode := ⟨DeleteFleetErrorCode.wire, DeleteFleetErrorCode.ofWire⟩ + +instance : Shape DeleteFleetErrorCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DeleteFleetErrorCode.ofWire text + | _ => .error "expected a string" + +structure DeleteFleetsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the EC2 Fleets. -/ + fleetIds : (List String) + /-- Indicates whether to terminate the associated instances when the EC2 Fleet is deleted. -/ + terminateInstances : Bool +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteFleetsRequest where + schema := .struct "DeleteFleetsRequest" [({ name := "DryRun" }, .bool), + ({ name := "FleetIds", required := true, xmlName := some "FleetId" }, (.list .string "member")), + ({ name := "TerminateInstances", required := true }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun, put "FleetIds" x.fleetIds, put "TerminateInstances" x.terminateInstances] + ofValue v := do + let dryRun ← v.opt "DryRun" + let fleetIds ← v.req "FleetIds" + let terminateInstances ← v.req "TerminateInstances" + return { dryRun, fleetIds, terminateInstances } + +structure DeleteFlowLogsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more flow log IDs. -/ + flowLogIds : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteFlowLogsRequest where + schema := .struct "DeleteFlowLogsRequest" [({ name := "DryRun" }, .bool), + ({ name := "FlowLogIds", required := true, xmlName := some "FlowLogId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "FlowLogIds" x.flowLogIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let flowLogIds ← v.req "FlowLogIds" + return { dryRun, flowLogIds } + +structure DeleteFpgaImageRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AFI. -/ + fpgaImageId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteFpgaImageRequest where + schema := .struct "DeleteFpgaImageRequest" [({ name := "DryRun" }, .bool), + ({ name := "FpgaImageId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "FpgaImageId" x.fpgaImageId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let fpgaImageId ← v.req "FpgaImageId" + return { dryRun, fpgaImageId } + +structure DeleteFpgaImageResult where + /-- Is true if the request succeeds, and an error otherwise. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteFpgaImageResult where + schema := .struct "DeleteFpgaImageResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure DeleteImageUsageReportRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the report to delete. -/ + reportId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteImageUsageReportRequest where + schema := .struct "DeleteImageUsageReportRequest" [({ name := "DryRun" }, .bool), + ({ name := "ReportId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "ReportId" x.reportId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let reportId ← v.req "ReportId" + return { dryRun, reportId } + +structure DeleteImageUsageReportResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteImageUsageReportResult where + schema := .struct "DeleteImageUsageReportResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure DeleteInstanceConnectEndpointRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the EC2 Instance Connect Endpoint to delete. -/ + instanceConnectEndpointId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteInstanceConnectEndpointRequest where + schema := .struct "DeleteInstanceConnectEndpointRequest" [({ name := "DryRun" }, .bool), + ({ name := "InstanceConnectEndpointId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceConnectEndpointId" x.instanceConnectEndpointId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceConnectEndpointId ← v.req "InstanceConnectEndpointId" + return { dryRun, instanceConnectEndpointId } + +structure DeleteInstanceEventWindowRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Specify true to force delete the event window. -/ + forceDelete : Option Bool := none + /-- The ID of the event window. -/ + instanceEventWindowId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteInstanceEventWindowRequest where + schema := .struct "DeleteInstanceEventWindowRequest" [({ name := "DryRun" }, .bool), + ({ name := "ForceDelete" }, .bool), + ({ name := "InstanceEventWindowId", required := true, xmlName := some "InstanceEventWindowId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "ForceDelete" x.forceDelete, put "InstanceEventWindowId" x.instanceEventWindowId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let forceDelete ← v.opt "ForceDelete" + let instanceEventWindowId ← v.req "InstanceEventWindowId" + return { dryRun, forceDelete, instanceEventWindowId } + +structure DeleteInternetGatewayRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the internet gateway. -/ + internetGatewayId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteInternetGatewayRequest where + schema := .struct "DeleteInternetGatewayRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "InternetGatewayId", required := true, xmlName := some "internetGatewayId", queryName := some "InternetGatewayId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "InternetGatewayId" x.internetGatewayId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let internetGatewayId ← v.req "InternetGatewayId" + return { dryRun, internetGatewayId } + +structure DeleteIpamExternalResourceVerificationTokenRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The token ID. -/ + ipamExternalResourceVerificationTokenId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteIpamExternalResourceVerificationTokenRequest where + schema := .struct "DeleteIpamExternalResourceVerificationTokenRequest" [({ name := "DryRun" }, .bool), + ({ name := "IpamExternalResourceVerificationTokenId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "IpamExternalResourceVerificationTokenId" x.ipamExternalResourceVerificationTokenId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let ipamExternalResourceVerificationTokenId ← v.req "IpamExternalResourceVerificationTokenId" + return { dryRun, ipamExternalResourceVerificationTokenId } + +structure DeleteIpamInternetRegistryAssociationRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM internet registry association to delete. -/ + ipamInternetRegistryAssociationId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteIpamInternetRegistryAssociationRequest where + schema := .struct "DeleteIpamInternetRegistryAssociationRequest" [({ name := "DryRun" }, .bool), + ({ name := "IpamInternetRegistryAssociationId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "IpamInternetRegistryAssociationId" x.ipamInternetRegistryAssociationId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let ipamInternetRegistryAssociationId ← v.req "IpamInternetRegistryAssociationId" + return { dryRun, ipamInternetRegistryAssociationId } + +structure DeleteIpamPolicyRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM policy to delete. -/ + ipamPolicyId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteIpamPolicyRequest where + schema := .struct "DeleteIpamPolicyRequest" [({ name := "DryRun" }, .bool), + ({ name := "IpamPolicyId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "IpamPolicyId" x.ipamPolicyId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let ipamPolicyId ← v.req "IpamPolicyId" + return { dryRun, ipamPolicyId } + +structure DeleteIpamPoolRequest where + /-- Enables you to quickly delete an IPAM pool and all resources within that pool, including provisioned CIDRs, allocations, and other pools. -/ + cascade : Option Bool := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the pool to delete. -/ + ipamPoolId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteIpamPoolRequest where + schema := .struct "DeleteIpamPoolRequest" [({ name := "Cascade" }, .bool), + ({ name := "DryRun" }, .bool), + ({ name := "IpamPoolId", required := true }, .string)] + toValue x := record [putOpt "Cascade" x.cascade, putOpt "DryRun" x.dryRun, put "IpamPoolId" x.ipamPoolId] + ofValue v := do + let cascade ← v.opt "Cascade" + let dryRun ← v.opt "DryRun" + let ipamPoolId ← v.req "IpamPoolId" + return { cascade, dryRun, ipamPoolId } + +structure DeleteIpamPrefixListResolverRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM prefix list resolver to delete. -/ + ipamPrefixListResolverId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteIpamPrefixListResolverRequest where + schema := .struct "DeleteIpamPrefixListResolverRequest" [({ name := "DryRun" }, .bool), + ({ name := "IpamPrefixListResolverId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "IpamPrefixListResolverId" x.ipamPrefixListResolverId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let ipamPrefixListResolverId ← v.req "IpamPrefixListResolverId" + return { dryRun, ipamPrefixListResolverId } + +structure DeleteIpamPrefixListResolverTargetRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM prefix list resolver target to delete. -/ + ipamPrefixListResolverTargetId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteIpamPrefixListResolverTargetRequest where + schema := .struct "DeleteIpamPrefixListResolverTargetRequest" [({ name := "DryRun" }, .bool), + ({ name := "IpamPrefixListResolverTargetId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "IpamPrefixListResolverTargetId" x.ipamPrefixListResolverTargetId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let ipamPrefixListResolverTargetId ← v.req "IpamPrefixListResolverTargetId" + return { dryRun, ipamPrefixListResolverTargetId } + +structure DeleteIpamRequest where + /-- Enables you to quickly delete an IPAM, private scopes, pools in private scopes, and any allocations in the pools in private scopes. -/ + cascade : Option Bool := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM to delete. -/ + ipamId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteIpamRequest where + schema := .struct "DeleteIpamRequest" [({ name := "Cascade" }, .bool), + ({ name := "DryRun" }, .bool), + ({ name := "IpamId", required := true }, .string)] + toValue x := record [putOpt "Cascade" x.cascade, putOpt "DryRun" x.dryRun, put "IpamId" x.ipamId] + ofValue v := do + let cascade ← v.opt "Cascade" + let dryRun ← v.opt "DryRun" + let ipamId ← v.req "IpamId" + return { cascade, dryRun, ipamId } + +structure DeleteIpamResourceDiscoveryRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The IPAM resource discovery ID. -/ + ipamResourceDiscoveryId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteIpamResourceDiscoveryRequest where + schema := .struct "DeleteIpamResourceDiscoveryRequest" [({ name := "DryRun" }, .bool), + ({ name := "IpamResourceDiscoveryId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "IpamResourceDiscoveryId" x.ipamResourceDiscoveryId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let ipamResourceDiscoveryId ← v.req "IpamResourceDiscoveryId" + return { dryRun, ipamResourceDiscoveryId } + +structure DeleteIpamRoutingPolicyRegistrationRequest where + /-- The IP address prefix in CIDR notation identifying the routing policy registration to delete. -/ + cidr : String + /-- A unique, case-sensitive identifier to ensure that the operation completes no more than one time. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Forces the deletion even if it conflicts with an announced route. -/ + force : Option Bool := none + /-- The ID of the IPAM internet registry association. -/ + ipamInternetRegistryAssociationId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteIpamRoutingPolicyRegistrationRequest where + schema := .struct "DeleteIpamRoutingPolicyRegistrationRequest" [({ name := "Cidr", required := true }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Force" }, .bool), + ({ name := "IpamInternetRegistryAssociationId", required := true }, .string)] + toValue x := record [put "Cidr" x.cidr, putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "Force" x.force, put "IpamInternetRegistryAssociationId" x.ipamInternetRegistryAssociationId] + ofValue v := do + let cidr ← v.req "Cidr" + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let force ← v.opt "Force" + let ipamInternetRegistryAssociationId ← v.req "IpamInternetRegistryAssociationId" + return { cidr, clientToken, dryRun, force, ipamInternetRegistryAssociationId } + +structure DeleteIpamScopeRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the scope to delete. -/ + ipamScopeId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteIpamScopeRequest where + schema := .struct "DeleteIpamScopeRequest" [({ name := "DryRun" }, .bool), + ({ name := "IpamScopeId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "IpamScopeId" x.ipamScopeId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let ipamScopeId ← v.req "IpamScopeId" + return { dryRun, ipamScopeId } + +structure DeleteKeyPairRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The name of the key pair. -/ + keyName : Option String := none + /-- The ID of the key pair. -/ + keyPairId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteKeyPairRequest where + schema := .struct "DeleteKeyPairRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "KeyName" }, .string), + ({ name := "KeyPairId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "KeyName" x.keyName, putOpt "KeyPairId" x.keyPairId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let keyName ← v.opt "KeyName" + let keyPairId ← v.opt "KeyPairId" + return { dryRun, keyName, keyPairId } + +structure DeleteKeyPairResult where + /-- The ID of the key pair. -/ + keyPairId : Option String := none + /-- Is true if the request succeeds, and an error otherwise. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteKeyPairResult where + schema := .struct "DeleteKeyPairResult" [({ name := "KeyPairId", xmlName := some "keyPairId", queryName := some "KeyPairId" }, .string), + ({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "KeyPairId" x.keyPairId, putOpt "Return" x.«return»] + ofValue v := do + let keyPairId ← v.opt "KeyPairId" + let «return» ← v.opt "Return" + return { keyPairId, «return» } + +structure DeleteLaunchTemplateRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the launch template. -/ + launchTemplateId : Option String := none + /-- The name of the launch template. -/ + launchTemplateName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteLaunchTemplateRequest where + schema := .struct "DeleteLaunchTemplateRequest" [({ name := "DryRun" }, .bool), + ({ name := "LaunchTemplateId" }, .string), + ({ name := "LaunchTemplateName" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "LaunchTemplateId" x.launchTemplateId, putOpt "LaunchTemplateName" x.launchTemplateName] + ofValue v := do + let dryRun ← v.opt "DryRun" + let launchTemplateId ← v.opt "LaunchTemplateId" + let launchTemplateName ← v.opt "LaunchTemplateName" + return { dryRun, launchTemplateId, launchTemplateName } + +structure DeleteLaunchTemplateVersionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the launch template. -/ + launchTemplateId : Option String := none + /-- The name of the launch template. -/ + launchTemplateName : Option String := none + /-- The version numbers of one or more launch template versions to delete. -/ + versions : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteLaunchTemplateVersionsRequest where + schema := .struct "DeleteLaunchTemplateVersionsRequest" [({ name := "DryRun" }, .bool), + ({ name := "LaunchTemplateId" }, .string), + ({ name := "LaunchTemplateName" }, .string), + ({ name := "Versions", required := true, xmlName := some "LaunchTemplateVersion" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "LaunchTemplateId" x.launchTemplateId, putOpt "LaunchTemplateName" x.launchTemplateName, put "Versions" x.versions] + ofValue v := do + let dryRun ← v.opt "DryRun" + let launchTemplateId ← v.opt "LaunchTemplateId" + let launchTemplateName ← v.opt "LaunchTemplateName" + let versions ← v.req "Versions" + return { dryRun, launchTemplateId, launchTemplateName, versions } + +/-- Describes a launch template version that was successfully deleted. -/ +structure DeleteLaunchTemplateVersionsResponseSuccessItem where + /-- The ID of the launch template. -/ + launchTemplateId : Option String := none + /-- The name of the launch template. -/ + launchTemplateName : Option String := none + /-- The version number of the launch template. -/ + versionNumber : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteLaunchTemplateVersionsResponseSuccessItem where + schema := .struct "DeleteLaunchTemplateVersionsResponseSuccessItem" [({ name := "LaunchTemplateId", xmlName := some "launchTemplateId", queryName := some "LaunchTemplateId" }, .string), + ({ name := "LaunchTemplateName", xmlName := some "launchTemplateName", queryName := some "LaunchTemplateName" }, .string), + ({ name := "VersionNumber", xmlName := some "versionNumber", queryName := some "VersionNumber" }, .int)] + toValue x := record [putOpt "LaunchTemplateId" x.launchTemplateId, putOpt "LaunchTemplateName" x.launchTemplateName, putOpt "VersionNumber" x.versionNumber] + ofValue v := do + let launchTemplateId ← v.opt "LaunchTemplateId" + let launchTemplateName ← v.opt "LaunchTemplateName" + let versionNumber ← v.opt "VersionNumber" + return { launchTemplateId, launchTemplateName, versionNumber } + +structure DeleteLocalGatewayRouteRequest where + /-- The CIDR range for the route. -/ + destinationCidrBlock : Option String := none + /-- Use a prefix list in place of DestinationCidrBlock . -/ + destinationPrefixListId : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the local gateway route table. -/ + localGatewayRouteTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteLocalGatewayRouteRequest where + schema := .struct "DeleteLocalGatewayRouteRequest" [({ name := "DestinationCidrBlock" }, .string), + ({ name := "DestinationPrefixListId" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "LocalGatewayRouteTableId", required := true }, .string)] + toValue x := record [putOpt "DestinationCidrBlock" x.destinationCidrBlock, putOpt "DestinationPrefixListId" x.destinationPrefixListId, putOpt "DryRun" x.dryRun, put "LocalGatewayRouteTableId" x.localGatewayRouteTableId] + ofValue v := do + let destinationCidrBlock ← v.opt "DestinationCidrBlock" + let destinationPrefixListId ← v.opt "DestinationPrefixListId" + let dryRun ← v.opt "DryRun" + let localGatewayRouteTableId ← v.req "LocalGatewayRouteTableId" + return { destinationCidrBlock, destinationPrefixListId, dryRun, localGatewayRouteTableId } + +structure DeleteLocalGatewayRouteTableRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the local gateway route table. -/ + localGatewayRouteTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteLocalGatewayRouteTableRequest where + schema := .struct "DeleteLocalGatewayRouteTableRequest" [({ name := "DryRun" }, .bool), + ({ name := "LocalGatewayRouteTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "LocalGatewayRouteTableId" x.localGatewayRouteTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let localGatewayRouteTableId ← v.req "LocalGatewayRouteTableId" + return { dryRun, localGatewayRouteTableId } + +structure DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the local gateway route table virtual interface group association. -/ + localGatewayRouteTableVirtualInterfaceGroupAssociationId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest where + schema := .struct "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest" [({ name := "DryRun" }, .bool), + ({ name := "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId" x.localGatewayRouteTableVirtualInterfaceGroupAssociationId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let localGatewayRouteTableVirtualInterfaceGroupAssociationId ← v.req "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId" + return { dryRun, localGatewayRouteTableVirtualInterfaceGroupAssociationId } + +structure DeleteLocalGatewayRouteTableVpcAssociationRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the association. -/ + localGatewayRouteTableVpcAssociationId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteLocalGatewayRouteTableVpcAssociationRequest where + schema := .struct "DeleteLocalGatewayRouteTableVpcAssociationRequest" [({ name := "DryRun" }, .bool), + ({ name := "LocalGatewayRouteTableVpcAssociationId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "LocalGatewayRouteTableVpcAssociationId" x.localGatewayRouteTableVpcAssociationId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let localGatewayRouteTableVpcAssociationId ← v.req "LocalGatewayRouteTableVpcAssociationId" + return { dryRun, localGatewayRouteTableVpcAssociationId } + +structure DeleteLocalGatewayVirtualInterfaceGroupRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the local gateway virtual interface group to delete. -/ + localGatewayVirtualInterfaceGroupId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteLocalGatewayVirtualInterfaceGroupRequest where + schema := .struct "DeleteLocalGatewayVirtualInterfaceGroupRequest" [({ name := "DryRun" }, .bool), + ({ name := "LocalGatewayVirtualInterfaceGroupId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "LocalGatewayVirtualInterfaceGroupId" x.localGatewayVirtualInterfaceGroupId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let localGatewayVirtualInterfaceGroupId ← v.req "LocalGatewayVirtualInterfaceGroupId" + return { dryRun, localGatewayVirtualInterfaceGroupId } + +structure DeleteLocalGatewayVirtualInterfaceRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the local virtual interface to delete. -/ + localGatewayVirtualInterfaceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteLocalGatewayVirtualInterfaceRequest where + schema := .struct "DeleteLocalGatewayVirtualInterfaceRequest" [({ name := "DryRun" }, .bool), + ({ name := "LocalGatewayVirtualInterfaceId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "LocalGatewayVirtualInterfaceId" x.localGatewayVirtualInterfaceId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let localGatewayVirtualInterfaceId ← v.req "LocalGatewayVirtualInterfaceId" + return { dryRun, localGatewayVirtualInterfaceId } + +structure DeleteManagedPrefixListRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the prefix list. -/ + prefixListId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteManagedPrefixListRequest where + schema := .struct "DeleteManagedPrefixListRequest" [({ name := "DryRun" }, .bool), + ({ name := "PrefixListId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "PrefixListId" x.prefixListId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let prefixListId ← v.req "PrefixListId" + return { dryRun, prefixListId } + +structure DeleteMetricCategoryRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the metric category. -/ + metricCategoryId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteMetricCategoryRequest where + schema := .struct "DeleteMetricCategoryRequest" [({ name := "DryRun" }, .bool), + ({ name := "MetricCategoryId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "MetricCategoryId" x.metricCategoryId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let metricCategoryId ← v.req "MetricCategoryId" + return { dryRun, metricCategoryId } + +structure DeleteMetricCategoryResult where + /-- The ID of the metric category that was deleted. -/ + metricCategoryId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteMetricCategoryResult where + schema := .struct "DeleteMetricCategoryResult" [({ name := "MetricCategoryId", xmlName := some "metricCategoryId", queryName := some "MetricCategoryId" }, .string)] + toValue x := record [putOpt "MetricCategoryId" x.metricCategoryId] + ofValue v := do + let metricCategoryId ← v.opt "MetricCategoryId" + return { metricCategoryId } + +structure DeleteNatGatewayRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the NAT gateway. -/ + natGatewayId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteNatGatewayRequest where + schema := .struct "DeleteNatGatewayRequest" [({ name := "DryRun" }, .bool), + ({ name := "NatGatewayId", required := true, xmlName := some "NatGatewayId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "NatGatewayId" x.natGatewayId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let natGatewayId ← v.req "NatGatewayId" + return { dryRun, natGatewayId } + +structure DeleteNatGatewayResult where + /-- The ID of the NAT gateway. -/ + natGatewayId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteNatGatewayResult where + schema := .struct "DeleteNatGatewayResult" [({ name := "NatGatewayId", xmlName := some "natGatewayId", queryName := some "NatGatewayId" }, .string)] + toValue x := record [putOpt "NatGatewayId" x.natGatewayId] + ofValue v := do + let natGatewayId ← v.opt "NatGatewayId" + return { natGatewayId } + +structure DeleteNetworkAclEntryRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Indicates whether the rule is an egress rule. -/ + egress : Bool + /-- The ID of the network ACL. -/ + networkAclId : String + /-- The rule number of the entry to delete. -/ + ruleNumber : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteNetworkAclEntryRequest where + schema := .struct "DeleteNetworkAclEntryRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Egress", required := true, xmlName := some "egress", queryName := some "Egress" }, .bool), + ({ name := "NetworkAclId", required := true, xmlName := some "networkAclId", queryName := some "NetworkAclId" }, .string), + ({ name := "RuleNumber", required := true, xmlName := some "ruleNumber", queryName := some "RuleNumber" }, .int)] + toValue x := record [putOpt "DryRun" x.dryRun, put "Egress" x.egress, put "NetworkAclId" x.networkAclId, put "RuleNumber" x.ruleNumber] + ofValue v := do + let dryRun ← v.opt "DryRun" + let egress ← v.req "Egress" + let networkAclId ← v.req "NetworkAclId" + let ruleNumber ← v.req "RuleNumber" + return { dryRun, egress, networkAclId, ruleNumber } + +structure DeleteNetworkAclRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the network ACL. -/ + networkAclId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteNetworkAclRequest where + schema := .struct "DeleteNetworkAclRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "NetworkAclId", required := true, xmlName := some "networkAclId", queryName := some "NetworkAclId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "NetworkAclId" x.networkAclId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let networkAclId ← v.req "NetworkAclId" + return { dryRun, networkAclId } + +structure DeleteNetworkInsightsAccessScopeAnalysisRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Network Access Scope analysis. -/ + networkInsightsAccessScopeAnalysisId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteNetworkInsightsAccessScopeAnalysisRequest where + schema := .struct "DeleteNetworkInsightsAccessScopeAnalysisRequest" [({ name := "DryRun" }, .bool), + ({ name := "NetworkInsightsAccessScopeAnalysisId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "NetworkInsightsAccessScopeAnalysisId" x.networkInsightsAccessScopeAnalysisId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let networkInsightsAccessScopeAnalysisId ← v.req "NetworkInsightsAccessScopeAnalysisId" + return { dryRun, networkInsightsAccessScopeAnalysisId } + +structure DeleteNetworkInsightsAccessScopeAnalysisResult where + /-- The ID of the Network Access Scope analysis. -/ + networkInsightsAccessScopeAnalysisId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteNetworkInsightsAccessScopeAnalysisResult where + schema := .struct "DeleteNetworkInsightsAccessScopeAnalysisResult" [({ name := "NetworkInsightsAccessScopeAnalysisId", xmlName := some "networkInsightsAccessScopeAnalysisId", queryName := some "NetworkInsightsAccessScopeAnalysisId" }, .string)] + toValue x := record [putOpt "NetworkInsightsAccessScopeAnalysisId" x.networkInsightsAccessScopeAnalysisId] + ofValue v := do + let networkInsightsAccessScopeAnalysisId ← v.opt "NetworkInsightsAccessScopeAnalysisId" + return { networkInsightsAccessScopeAnalysisId } + +structure DeleteNetworkInsightsAccessScopeRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Network Access Scope. -/ + networkInsightsAccessScopeId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteNetworkInsightsAccessScopeRequest where + schema := .struct "DeleteNetworkInsightsAccessScopeRequest" [({ name := "DryRun" }, .bool), + ({ name := "NetworkInsightsAccessScopeId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "NetworkInsightsAccessScopeId" x.networkInsightsAccessScopeId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let networkInsightsAccessScopeId ← v.req "NetworkInsightsAccessScopeId" + return { dryRun, networkInsightsAccessScopeId } + +structure DeleteNetworkInsightsAccessScopeResult where + /-- The ID of the Network Access Scope. -/ + networkInsightsAccessScopeId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteNetworkInsightsAccessScopeResult where + schema := .struct "DeleteNetworkInsightsAccessScopeResult" [({ name := "NetworkInsightsAccessScopeId", xmlName := some "networkInsightsAccessScopeId", queryName := some "NetworkInsightsAccessScopeId" }, .string)] + toValue x := record [putOpt "NetworkInsightsAccessScopeId" x.networkInsightsAccessScopeId] + ofValue v := do + let networkInsightsAccessScopeId ← v.opt "NetworkInsightsAccessScopeId" + return { networkInsightsAccessScopeId } + +structure DeleteNetworkInsightsAnalysisRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the network insights analysis. -/ + networkInsightsAnalysisId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteNetworkInsightsAnalysisRequest where + schema := .struct "DeleteNetworkInsightsAnalysisRequest" [({ name := "DryRun" }, .bool), + ({ name := "NetworkInsightsAnalysisId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "NetworkInsightsAnalysisId" x.networkInsightsAnalysisId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let networkInsightsAnalysisId ← v.req "NetworkInsightsAnalysisId" + return { dryRun, networkInsightsAnalysisId } + +structure DeleteNetworkInsightsAnalysisResult where + /-- The ID of the network insights analysis. -/ + networkInsightsAnalysisId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteNetworkInsightsAnalysisResult where + schema := .struct "DeleteNetworkInsightsAnalysisResult" [({ name := "NetworkInsightsAnalysisId", xmlName := some "networkInsightsAnalysisId", queryName := some "NetworkInsightsAnalysisId" }, .string)] + toValue x := record [putOpt "NetworkInsightsAnalysisId" x.networkInsightsAnalysisId] + ofValue v := do + let networkInsightsAnalysisId ← v.opt "NetworkInsightsAnalysisId" + return { networkInsightsAnalysisId } + +structure DeleteNetworkInsightsPathRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the path. -/ + networkInsightsPathId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteNetworkInsightsPathRequest where + schema := .struct "DeleteNetworkInsightsPathRequest" [({ name := "DryRun" }, .bool), + ({ name := "NetworkInsightsPathId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "NetworkInsightsPathId" x.networkInsightsPathId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let networkInsightsPathId ← v.req "NetworkInsightsPathId" + return { dryRun, networkInsightsPathId } + +structure DeleteNetworkInsightsPathResult where + /-- The ID of the path. -/ + networkInsightsPathId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteNetworkInsightsPathResult where + schema := .struct "DeleteNetworkInsightsPathResult" [({ name := "NetworkInsightsPathId", xmlName := some "networkInsightsPathId", queryName := some "NetworkInsightsPathId" }, .string)] + toValue x := record [putOpt "NetworkInsightsPathId" x.networkInsightsPathId] + ofValue v := do + let networkInsightsPathId ← v.opt "NetworkInsightsPathId" + return { networkInsightsPathId } + +/-- Contains the parameters for DeleteNetworkInterfacePermission. -/ +structure DeleteNetworkInterfacePermissionRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Specify true to remove the permission even if the network interface is attached to an instance. -/ + force : Option Bool := none + /-- The ID of the network interface permission. -/ + networkInterfacePermissionId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteNetworkInterfacePermissionRequest where + schema := .struct "DeleteNetworkInterfacePermissionRequest" [({ name := "DryRun" }, .bool), + ({ name := "Force" }, .bool), + ({ name := "NetworkInterfacePermissionId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Force" x.force, put "NetworkInterfacePermissionId" x.networkInterfacePermissionId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let force ← v.opt "Force" + let networkInterfacePermissionId ← v.req "NetworkInterfacePermissionId" + return { dryRun, force, networkInterfacePermissionId } + +/-- Contains the output for DeleteNetworkInterfacePermission. -/ +structure DeleteNetworkInterfacePermissionResult where + /-- Is true if the request succeeds and an error otherwise. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteNetworkInterfacePermissionResult where + schema := .struct "DeleteNetworkInterfacePermissionResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +/-- Contains the parameters for DeleteNetworkInterface. -/ +structure DeleteNetworkInterfaceRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the network interface. -/ + networkInterfaceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteNetworkInterfaceRequest where + schema := .struct "DeleteNetworkInterfaceRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "NetworkInterfaceId", required := true, xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "NetworkInterfaceId" x.networkInterfaceId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let networkInterfaceId ← v.req "NetworkInterfaceId" + return { dryRun, networkInterfaceId } + +structure DeleteNetworkingFlexCostAllocationPoliciesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the flex cost allocation policies to delete. -/ + fcaPolicyIds : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteNetworkingFlexCostAllocationPoliciesRequest where + schema := .struct "DeleteNetworkingFlexCostAllocationPoliciesRequest" [({ name := "DryRun" }, .bool), + ({ name := "FcaPolicyIds", required := true }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "FcaPolicyIds" x.fcaPolicyIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let fcaPolicyIds ← v.req "FcaPolicyIds" + return { dryRun, fcaPolicyIds } + +structure DeletePlacementGroupRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The name of the placement group. -/ + groupName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeletePlacementGroupRequest where + schema := .struct "DeletePlacementGroupRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "GroupName", required := true, xmlName := some "groupName", queryName := some "GroupName" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "GroupName" x.groupName] + ofValue v := do + let dryRun ← v.opt "DryRun" + let groupName ← v.req "GroupName" + return { dryRun, groupName } + +structure DeletePublicIpv4PoolRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The Availability Zone (AZ) or Local Zone (LZ) network border group that the resource that the IP address is assigned to is in. -/ + networkBorderGroup : Option String := none + /-- The ID of the public IPv4 pool you want to delete. -/ + poolId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeletePublicIpv4PoolRequest where + schema := .struct "DeletePublicIpv4PoolRequest" [({ name := "DryRun" }, .bool), + ({ name := "NetworkBorderGroup" }, .string), + ({ name := "PoolId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "NetworkBorderGroup" x.networkBorderGroup, put "PoolId" x.poolId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let networkBorderGroup ← v.opt "NetworkBorderGroup" + let poolId ← v.req "PoolId" + return { dryRun, networkBorderGroup, poolId } + +structure DeletePublicIpv4PoolResult where + /-- Information about the result of deleting the public IPv4 pool. -/ + returnValue : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeletePublicIpv4PoolResult where + schema := .struct "DeletePublicIpv4PoolResult" [({ name := "ReturnValue", xmlName := some "returnValue", queryName := some "ReturnValue" }, .bool)] + toValue x := record [putOpt "ReturnValue" x.returnValue] + ofValue v := do + let returnValue ← v.opt "ReturnValue" + return { returnValue } + +inductive DeleteQueuedReservedInstancesErrorCode where + | reserveD_INSTANCES_ID_INVALID + | reserveD_INSTANCES_NOT_IN_QUEUED_STATE + | unexpecteD_ERROR +deriving DecidableEq, Repr, Inhabited + +def DeleteQueuedReservedInstancesErrorCode.wire : DeleteQueuedReservedInstancesErrorCode → String + | .reserveD_INSTANCES_ID_INVALID => "reserved-instances-id-invalid" + | .reserveD_INSTANCES_NOT_IN_QUEUED_STATE => "reserved-instances-not-in-queued-state" + | .unexpecteD_ERROR => "unexpected-error" + +def DeleteQueuedReservedInstancesErrorCode.wireValues : List (String × DeleteQueuedReservedInstancesErrorCode) := [ + ("reserved-instances-id-invalid", .reserveD_INSTANCES_ID_INVALID), + ("reserved-instances-not-in-queued-state", .reserveD_INSTANCES_NOT_IN_QUEUED_STATE), + ("unexpected-error", .unexpecteD_ERROR)] + +def DeleteQueuedReservedInstancesErrorCode.ofWire (text : String) : Except String DeleteQueuedReservedInstancesErrorCode := + match List.find? (·.1 == text) DeleteQueuedReservedInstancesErrorCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DeleteQueuedReservedInstancesErrorCode has no value {text}" + +instance : Key DeleteQueuedReservedInstancesErrorCode := ⟨DeleteQueuedReservedInstancesErrorCode.wire, DeleteQueuedReservedInstancesErrorCode.ofWire⟩ + +instance : Shape DeleteQueuedReservedInstancesErrorCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DeleteQueuedReservedInstancesErrorCode.ofWire text + | _ => .error "expected a string" + +structure DeleteQueuedReservedInstancesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the Reserved Instances. -/ + reservedInstancesIds : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteQueuedReservedInstancesRequest where + schema := .struct "DeleteQueuedReservedInstancesRequest" [({ name := "DryRun" }, .bool), + ({ name := "ReservedInstancesIds", required := true, xmlName := some "ReservedInstancesId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "ReservedInstancesIds" x.reservedInstancesIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let reservedInstancesIds ← v.req "ReservedInstancesIds" + return { dryRun, reservedInstancesIds } + +structure DeleteRouteRequest where + /-- The IPv4 CIDR range for the route. -/ + destinationCidrBlock : Option String := none + /-- The IPv6 CIDR range for the route. -/ + destinationIpv6CidrBlock : Option String := none + /-- The ID of the prefix list for the route. -/ + destinationPrefixListId : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the route table. -/ + routeTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteRouteRequest where + schema := .struct "DeleteRouteRequest" [({ name := "DestinationCidrBlock", xmlName := some "destinationCidrBlock", queryName := some "DestinationCidrBlock" }, .string), + ({ name := "DestinationIpv6CidrBlock", xmlName := some "destinationIpv6CidrBlock", queryName := some "DestinationIpv6CidrBlock" }, .string), + ({ name := "DestinationPrefixListId" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "RouteTableId", required := true, xmlName := some "routeTableId", queryName := some "RouteTableId" }, .string)] + toValue x := record [putOpt "DestinationCidrBlock" x.destinationCidrBlock, putOpt "DestinationIpv6CidrBlock" x.destinationIpv6CidrBlock, putOpt "DestinationPrefixListId" x.destinationPrefixListId, putOpt "DryRun" x.dryRun, put "RouteTableId" x.routeTableId] + ofValue v := do + let destinationCidrBlock ← v.opt "DestinationCidrBlock" + let destinationIpv6CidrBlock ← v.opt "DestinationIpv6CidrBlock" + let destinationPrefixListId ← v.opt "DestinationPrefixListId" + let dryRun ← v.opt "DryRun" + let routeTableId ← v.req "RouteTableId" + return { destinationCidrBlock, destinationIpv6CidrBlock, destinationPrefixListId, dryRun, routeTableId } + +structure DeleteRouteServerEndpointRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the route server endpoint to delete. -/ + routeServerEndpointId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteRouteServerEndpointRequest where + schema := .struct "DeleteRouteServerEndpointRequest" [({ name := "DryRun" }, .bool), + ({ name := "RouteServerEndpointId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "RouteServerEndpointId" x.routeServerEndpointId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let routeServerEndpointId ← v.req "RouteServerEndpointId" + return { dryRun, routeServerEndpointId } + +structure DeleteRouteServerPeerRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the route server peer to delete. -/ + routeServerPeerId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteRouteServerPeerRequest where + schema := .struct "DeleteRouteServerPeerRequest" [({ name := "DryRun" }, .bool), + ({ name := "RouteServerPeerId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "RouteServerPeerId" x.routeServerPeerId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let routeServerPeerId ← v.req "RouteServerPeerId" + return { dryRun, routeServerPeerId } + +structure DeleteRouteServerRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the route server to delete. -/ + routeServerId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteRouteServerRequest where + schema := .struct "DeleteRouteServerRequest" [({ name := "DryRun" }, .bool), + ({ name := "RouteServerId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "RouteServerId" x.routeServerId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let routeServerId ← v.req "RouteServerId" + return { dryRun, routeServerId } + +structure DeleteRouteTableRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the route table. -/ + routeTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteRouteTableRequest where + schema := .struct "DeleteRouteTableRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "RouteTableId", required := true, xmlName := some "routeTableId", queryName := some "RouteTableId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "RouteTableId" x.routeTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let routeTableId ← v.req "RouteTableId" + return { dryRun, routeTableId } + +structure DeleteSecondaryNetworkRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the secondary network. -/ + secondaryNetworkId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteSecondaryNetworkRequest where + schema := .struct "DeleteSecondaryNetworkRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "SecondaryNetworkId", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "SecondaryNetworkId" x.secondaryNetworkId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let secondaryNetworkId ← v.req "SecondaryNetworkId" + return { clientToken, dryRun, secondaryNetworkId } + +structure DeleteSecondarySubnetRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the secondary subnet to delete. -/ + secondarySubnetId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteSecondarySubnetRequest where + schema := .struct "DeleteSecondarySubnetRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "SecondarySubnetId", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "SecondarySubnetId" x.secondarySubnetId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let secondarySubnetId ← v.req "SecondarySubnetId" + return { clientToken, dryRun, secondarySubnetId } + +structure DeleteSecurityGroupRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the security group. -/ + groupId : Option String := none + /-- [Default VPC] The name of the security group. -/ + groupName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteSecurityGroupRequest where + schema := .struct "DeleteSecurityGroupRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "GroupId" }, .string), + ({ name := "GroupName" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "GroupId" x.groupId, putOpt "GroupName" x.groupName] + ofValue v := do + let dryRun ← v.opt "DryRun" + let groupId ← v.opt "GroupId" + let groupName ← v.opt "GroupName" + return { dryRun, groupId, groupName } + +structure DeleteSecurityGroupResult where + /-- The ID of the deleted security group. -/ + groupId : Option String := none + /-- Returns true if the request succeeds; otherwise, returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteSecurityGroupResult where + schema := .struct "DeleteSecurityGroupResult" [({ name := "GroupId", xmlName := some "groupId", queryName := some "GroupId" }, .string), + ({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "GroupId" x.groupId, putOpt "Return" x.«return»] + ofValue v := do + let groupId ← v.opt "GroupId" + let «return» ← v.opt "Return" + return { groupId, «return» } + +structure DeleteSnapshotRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the EBS snapshot. -/ + snapshotId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteSnapshotRequest where + schema := .struct "DeleteSnapshotRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "SnapshotId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "SnapshotId" x.snapshotId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let snapshotId ← v.req "SnapshotId" + return { dryRun, snapshotId } + +/-- Contains the parameters for DeleteSpotDatafeedSubscription. -/ +structure DeleteSpotDatafeedSubscriptionRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteSpotDatafeedSubscriptionRequest where + schema := .struct "DeleteSpotDatafeedSubscriptionRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure DeleteSubnetCidrReservationRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the subnet CIDR reservation. -/ + subnetCidrReservationId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteSubnetCidrReservationRequest where + schema := .struct "DeleteSubnetCidrReservationRequest" [({ name := "DryRun" }, .bool), + ({ name := "SubnetCidrReservationId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "SubnetCidrReservationId" x.subnetCidrReservationId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let subnetCidrReservationId ← v.req "SubnetCidrReservationId" + return { dryRun, subnetCidrReservationId } + +structure DeleteSubnetRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the subnet. -/ + subnetId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteSubnetRequest where + schema := .struct "DeleteSubnetRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "SubnetId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "SubnetId" x.subnetId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let subnetId ← v.req "SubnetId" + return { dryRun, subnetId } + +structure DeleteTrafficMirrorFilterRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Traffic Mirror filter. -/ + trafficMirrorFilterId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTrafficMirrorFilterRequest where + schema := .struct "DeleteTrafficMirrorFilterRequest" [({ name := "DryRun" }, .bool), + ({ name := "TrafficMirrorFilterId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TrafficMirrorFilterId" x.trafficMirrorFilterId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let trafficMirrorFilterId ← v.req "TrafficMirrorFilterId" + return { dryRun, trafficMirrorFilterId } + +structure DeleteTrafficMirrorFilterResult where + /-- The ID of the Traffic Mirror filter. -/ + trafficMirrorFilterId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTrafficMirrorFilterResult where + schema := .struct "DeleteTrafficMirrorFilterResult" [({ name := "TrafficMirrorFilterId", xmlName := some "trafficMirrorFilterId", queryName := some "TrafficMirrorFilterId" }, .string)] + toValue x := record [putOpt "TrafficMirrorFilterId" x.trafficMirrorFilterId] + ofValue v := do + let trafficMirrorFilterId ← v.opt "TrafficMirrorFilterId" + return { trafficMirrorFilterId } + +structure DeleteTrafficMirrorFilterRuleRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Traffic Mirror rule. -/ + trafficMirrorFilterRuleId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTrafficMirrorFilterRuleRequest where + schema := .struct "DeleteTrafficMirrorFilterRuleRequest" [({ name := "DryRun" }, .bool), + ({ name := "TrafficMirrorFilterRuleId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TrafficMirrorFilterRuleId" x.trafficMirrorFilterRuleId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let trafficMirrorFilterRuleId ← v.req "TrafficMirrorFilterRuleId" + return { dryRun, trafficMirrorFilterRuleId } + +structure DeleteTrafficMirrorFilterRuleResult where + /-- The ID of the deleted Traffic Mirror rule. -/ + trafficMirrorFilterRuleId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTrafficMirrorFilterRuleResult where + schema := .struct "DeleteTrafficMirrorFilterRuleResult" [({ name := "TrafficMirrorFilterRuleId", xmlName := some "trafficMirrorFilterRuleId", queryName := some "TrafficMirrorFilterRuleId" }, .string)] + toValue x := record [putOpt "TrafficMirrorFilterRuleId" x.trafficMirrorFilterRuleId] + ofValue v := do + let trafficMirrorFilterRuleId ← v.opt "TrafficMirrorFilterRuleId" + return { trafficMirrorFilterRuleId } + +structure DeleteTrafficMirrorSessionRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Traffic Mirror session. -/ + trafficMirrorSessionId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTrafficMirrorSessionRequest where + schema := .struct "DeleteTrafficMirrorSessionRequest" [({ name := "DryRun" }, .bool), + ({ name := "TrafficMirrorSessionId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TrafficMirrorSessionId" x.trafficMirrorSessionId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let trafficMirrorSessionId ← v.req "TrafficMirrorSessionId" + return { dryRun, trafficMirrorSessionId } + +structure DeleteTrafficMirrorSessionResult where + /-- The ID of the deleted Traffic Mirror session. -/ + trafficMirrorSessionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTrafficMirrorSessionResult where + schema := .struct "DeleteTrafficMirrorSessionResult" [({ name := "TrafficMirrorSessionId", xmlName := some "trafficMirrorSessionId", queryName := some "TrafficMirrorSessionId" }, .string)] + toValue x := record [putOpt "TrafficMirrorSessionId" x.trafficMirrorSessionId] + ofValue v := do + let trafficMirrorSessionId ← v.opt "TrafficMirrorSessionId" + return { trafficMirrorSessionId } + +structure DeleteTrafficMirrorTargetRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Traffic Mirror target. -/ + trafficMirrorTargetId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTrafficMirrorTargetRequest where + schema := .struct "DeleteTrafficMirrorTargetRequest" [({ name := "DryRun" }, .bool), + ({ name := "TrafficMirrorTargetId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TrafficMirrorTargetId" x.trafficMirrorTargetId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let trafficMirrorTargetId ← v.req "TrafficMirrorTargetId" + return { dryRun, trafficMirrorTargetId } + +structure DeleteTrafficMirrorTargetResult where + /-- The ID of the deleted Traffic Mirror target. -/ + trafficMirrorTargetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTrafficMirrorTargetResult where + schema := .struct "DeleteTrafficMirrorTargetResult" [({ name := "TrafficMirrorTargetId", xmlName := some "trafficMirrorTargetId", queryName := some "TrafficMirrorTargetId" }, .string)] + toValue x := record [putOpt "TrafficMirrorTargetId" x.trafficMirrorTargetId] + ofValue v := do + let trafficMirrorTargetId ← v.opt "TrafficMirrorTargetId" + return { trafficMirrorTargetId } + +structure DeleteTransitGatewayClientVpnAttachmentRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Transit Gateway attachment. -/ + transitGatewayAttachmentId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayClientVpnAttachmentRequest where + schema := .struct "DeleteTransitGatewayClientVpnAttachmentRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayAttachmentId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + return { dryRun, transitGatewayAttachmentId } + +structure DeleteTransitGatewayConnectPeerRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Connect peer. -/ + transitGatewayConnectPeerId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayConnectPeerRequest where + schema := .struct "DeleteTransitGatewayConnectPeerRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayConnectPeerId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayConnectPeerId" x.transitGatewayConnectPeerId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayConnectPeerId ← v.req "TransitGatewayConnectPeerId" + return { dryRun, transitGatewayConnectPeerId } + +structure DeleteTransitGatewayConnectRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Connect attachment. -/ + transitGatewayAttachmentId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayConnectRequest where + schema := .struct "DeleteTransitGatewayConnectRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayAttachmentId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + return { dryRun, transitGatewayAttachmentId } + +structure DeleteTransitGatewayMeteringPolicyEntryRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The rule number of the metering policy entry to delete. -/ + policyRuleNumber : Int + /-- The ID of the transit gateway metering policy containing the entry to delete. -/ + transitGatewayMeteringPolicyId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayMeteringPolicyEntryRequest where + schema := .struct "DeleteTransitGatewayMeteringPolicyEntryRequest" [({ name := "DryRun" }, .bool), + ({ name := "PolicyRuleNumber", required := true }, .int), + ({ name := "TransitGatewayMeteringPolicyId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "PolicyRuleNumber" x.policyRuleNumber, put "TransitGatewayMeteringPolicyId" x.transitGatewayMeteringPolicyId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let policyRuleNumber ← v.req "PolicyRuleNumber" + let transitGatewayMeteringPolicyId ← v.req "TransitGatewayMeteringPolicyId" + return { dryRun, policyRuleNumber, transitGatewayMeteringPolicyId } + +structure DeleteTransitGatewayMeteringPolicyRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the transit gateway metering policy to delete. -/ + transitGatewayMeteringPolicyId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayMeteringPolicyRequest where + schema := .struct "DeleteTransitGatewayMeteringPolicyRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayMeteringPolicyId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayMeteringPolicyId" x.transitGatewayMeteringPolicyId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayMeteringPolicyId ← v.req "TransitGatewayMeteringPolicyId" + return { dryRun, transitGatewayMeteringPolicyId } + +structure DeleteTransitGatewayMulticastDomainRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the transit gateway multicast domain. -/ + transitGatewayMulticastDomainId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayMulticastDomainRequest where + schema := .struct "DeleteTransitGatewayMulticastDomainRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayMulticastDomainId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayMulticastDomainId" x.transitGatewayMulticastDomainId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayMulticastDomainId ← v.req "TransitGatewayMulticastDomainId" + return { dryRun, transitGatewayMulticastDomainId } + +structure DeleteTransitGatewayNetworkFunctionAttachmentRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the network function attachment. -/ + transitGatewayAttachmentId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayNetworkFunctionAttachmentRequest where + schema := .struct "DeleteTransitGatewayNetworkFunctionAttachmentRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayAttachmentId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + return { dryRun, transitGatewayAttachmentId } + +structure DeleteTransitGatewayPeeringAttachmentRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the transit gateway peering attachment. -/ + transitGatewayAttachmentId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayPeeringAttachmentRequest where + schema := .struct "DeleteTransitGatewayPeeringAttachmentRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayAttachmentId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + return { dryRun, transitGatewayAttachmentId } + +structure DeleteTransitGatewayPolicyTableEntryRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The rule number of the policy table entry to delete. -/ + policyRuleNumber : String + /-- The ID of the transit gateway policy table. -/ + transitGatewayPolicyTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayPolicyTableEntryRequest where + schema := .struct "DeleteTransitGatewayPolicyTableEntryRequest" [({ name := "DryRun" }, .bool), + ({ name := "PolicyRuleNumber", required := true }, .string), + ({ name := "TransitGatewayPolicyTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "PolicyRuleNumber" x.policyRuleNumber, put "TransitGatewayPolicyTableId" x.transitGatewayPolicyTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let policyRuleNumber ← v.req "PolicyRuleNumber" + let transitGatewayPolicyTableId ← v.req "TransitGatewayPolicyTableId" + return { dryRun, policyRuleNumber, transitGatewayPolicyTableId } + +structure DeleteTransitGatewayPolicyTableRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The transit gateway policy table to delete. -/ + transitGatewayPolicyTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayPolicyTableRequest where + schema := .struct "DeleteTransitGatewayPolicyTableRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayPolicyTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayPolicyTableId" x.transitGatewayPolicyTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayPolicyTableId ← v.req "TransitGatewayPolicyTableId" + return { dryRun, transitGatewayPolicyTableId } + +structure DeleteTransitGatewayPrefixListReferenceRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the prefix list. -/ + prefixListId : String + /-- The ID of the route table. -/ + transitGatewayRouteTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayPrefixListReferenceRequest where + schema := .struct "DeleteTransitGatewayPrefixListReferenceRequest" [({ name := "DryRun" }, .bool), + ({ name := "PrefixListId", required := true }, .string), + ({ name := "TransitGatewayRouteTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "PrefixListId" x.prefixListId, put "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let prefixListId ← v.req "PrefixListId" + let transitGatewayRouteTableId ← v.req "TransitGatewayRouteTableId" + return { dryRun, prefixListId, transitGatewayRouteTableId } + +structure DeleteTransitGatewayRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the transit gateway. -/ + transitGatewayId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayRequest where + schema := .struct "DeleteTransitGatewayRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayId" x.transitGatewayId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayId ← v.req "TransitGatewayId" + return { dryRun, transitGatewayId } + +structure DeleteTransitGatewayRouteRequest where + /-- The CIDR range for the route. -/ + destinationCidrBlock : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the transit gateway route table. -/ + transitGatewayRouteTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayRouteRequest where + schema := .struct "DeleteTransitGatewayRouteRequest" [({ name := "DestinationCidrBlock", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayRouteTableId", required := true }, .string)] + toValue x := record [put "DestinationCidrBlock" x.destinationCidrBlock, putOpt "DryRun" x.dryRun, put "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let destinationCidrBlock ← v.req "DestinationCidrBlock" + let dryRun ← v.opt "DryRun" + let transitGatewayRouteTableId ← v.req "TransitGatewayRouteTableId" + return { destinationCidrBlock, dryRun, transitGatewayRouteTableId } + +structure DeleteTransitGatewayRouteTableAnnouncementRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The transit gateway route table ID that's being deleted. -/ + transitGatewayRouteTableAnnouncementId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayRouteTableAnnouncementRequest where + schema := .struct "DeleteTransitGatewayRouteTableAnnouncementRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayRouteTableAnnouncementId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayRouteTableAnnouncementId" x.transitGatewayRouteTableAnnouncementId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayRouteTableAnnouncementId ← v.req "TransitGatewayRouteTableAnnouncementId" + return { dryRun, transitGatewayRouteTableAnnouncementId } + +structure DeleteTransitGatewayRouteTableRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the transit gateway route table. -/ + transitGatewayRouteTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayRouteTableRequest where + schema := .struct "DeleteTransitGatewayRouteTableRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayRouteTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayRouteTableId ← v.req "TransitGatewayRouteTableId" + return { dryRun, transitGatewayRouteTableId } + +structure DeleteTransitGatewayVpcAttachmentRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayVpcAttachmentRequest where + schema := .struct "DeleteTransitGatewayVpcAttachmentRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayAttachmentId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + return { dryRun, transitGatewayAttachmentId } + +structure DeleteVerifiedAccessEndpointRequest where + /-- A unique, case-sensitive token that you provide to ensure idempotency of your modification request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Verified Access endpoint. -/ + verifiedAccessEndpointId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVerifiedAccessEndpointRequest where + schema := .struct "DeleteVerifiedAccessEndpointRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "VerifiedAccessEndpointId", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "VerifiedAccessEndpointId" x.verifiedAccessEndpointId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let verifiedAccessEndpointId ← v.req "VerifiedAccessEndpointId" + return { clientToken, dryRun, verifiedAccessEndpointId } + +structure DeleteVerifiedAccessGroupRequest where + /-- A unique, case-sensitive token that you provide to ensure idempotency of your modification request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Verified Access group. -/ + verifiedAccessGroupId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVerifiedAccessGroupRequest where + schema := .struct "DeleteVerifiedAccessGroupRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "VerifiedAccessGroupId", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "VerifiedAccessGroupId" x.verifiedAccessGroupId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let verifiedAccessGroupId ← v.req "VerifiedAccessGroupId" + return { clientToken, dryRun, verifiedAccessGroupId } + +structure DeleteVerifiedAccessInstanceRequest where + /-- A unique, case-sensitive token that you provide to ensure idempotency of your modification request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Verified Access instance. -/ + verifiedAccessInstanceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVerifiedAccessInstanceRequest where + schema := .struct "DeleteVerifiedAccessInstanceRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "VerifiedAccessInstanceId", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "VerifiedAccessInstanceId" x.verifiedAccessInstanceId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let verifiedAccessInstanceId ← v.req "VerifiedAccessInstanceId" + return { clientToken, dryRun, verifiedAccessInstanceId } + +structure DeleteVerifiedAccessTrustProviderRequest where + /-- A unique, case-sensitive token that you provide to ensure idempotency of your modification request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Verified Access trust provider. -/ + verifiedAccessTrustProviderId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVerifiedAccessTrustProviderRequest where + schema := .struct "DeleteVerifiedAccessTrustProviderRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "VerifiedAccessTrustProviderId", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "VerifiedAccessTrustProviderId" x.verifiedAccessTrustProviderId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let verifiedAccessTrustProviderId ← v.req "VerifiedAccessTrustProviderId" + return { clientToken, dryRun, verifiedAccessTrustProviderId } + +structure DeleteVolumeRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the volume. -/ + volumeId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVolumeRequest where + schema := .struct "DeleteVolumeRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "VolumeId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VolumeId" x.volumeId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let volumeId ← v.req "VolumeId" + return { dryRun, volumeId } + +structure DeleteVpcBlockPublicAccessExclusionRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the exclusion. -/ + exclusionId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVpcBlockPublicAccessExclusionRequest where + schema := .struct "DeleteVpcBlockPublicAccessExclusionRequest" [({ name := "DryRun" }, .bool), + ({ name := "ExclusionId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "ExclusionId" x.exclusionId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let exclusionId ← v.req "ExclusionId" + return { dryRun, exclusionId } + +structure DeleteVpcEncryptionControlRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the VPC Encryption Control resource to delete. -/ + vpcEncryptionControlId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVpcEncryptionControlRequest where + schema := .struct "DeleteVpcEncryptionControlRequest" [({ name := "DryRun" }, .bool), + ({ name := "VpcEncryptionControlId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VpcEncryptionControlId" x.vpcEncryptionControlId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let vpcEncryptionControlId ← v.req "VpcEncryptionControlId" + return { dryRun, vpcEncryptionControlId } + +structure DeleteVpcEndpointConnectionNotificationsRequest where + /-- The IDs of the notifications. -/ + connectionNotificationIds : (List String) + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVpcEndpointConnectionNotificationsRequest where + schema := .struct "DeleteVpcEndpointConnectionNotificationsRequest" [({ name := "ConnectionNotificationIds", required := true, xmlName := some "ConnectionNotificationId" }, (.list .string "item")), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "ConnectionNotificationIds" x.connectionNotificationIds, putOpt "DryRun" x.dryRun] + ofValue v := do + let connectionNotificationIds ← v.req "ConnectionNotificationIds" + let dryRun ← v.opt "DryRun" + return { connectionNotificationIds, dryRun } + +structure DeleteVpcEndpointServiceConfigurationsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the services. -/ + serviceIds : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVpcEndpointServiceConfigurationsRequest where + schema := .struct "DeleteVpcEndpointServiceConfigurationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "ServiceIds", required := true, xmlName := some "ServiceId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "ServiceIds" x.serviceIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let serviceIds ← v.req "ServiceIds" + return { dryRun, serviceIds } + +structure DeleteVpcEndpointsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the VPC endpoints. -/ + vpcEndpointIds : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVpcEndpointsRequest where + schema := .struct "DeleteVpcEndpointsRequest" [({ name := "DryRun" }, .bool), + ({ name := "VpcEndpointIds", required := true, xmlName := some "VpcEndpointId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "VpcEndpointIds" x.vpcEndpointIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let vpcEndpointIds ← v.req "VpcEndpointIds" + return { dryRun, vpcEndpointIds } + +structure DeleteVpcPeeringConnectionRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the VPC peering connection. -/ + vpcPeeringConnectionId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVpcPeeringConnectionRequest where + schema := .struct "DeleteVpcPeeringConnectionRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "VpcPeeringConnectionId", required := true, xmlName := some "vpcPeeringConnectionId", queryName := some "VpcPeeringConnectionId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VpcPeeringConnectionId" x.vpcPeeringConnectionId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let vpcPeeringConnectionId ← v.req "VpcPeeringConnectionId" + return { dryRun, vpcPeeringConnectionId } + +structure DeleteVpcPeeringConnectionResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVpcPeeringConnectionResult where + schema := .struct "DeleteVpcPeeringConnectionResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure DeleteVpcRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the VPC. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVpcRequest where + schema := .struct "DeleteVpcRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "VpcId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VpcId" x.vpcId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let vpcId ← v.req "VpcId" + return { dryRun, vpcId } + +structure DeleteVpnConcentratorRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the VPN concentrator to delete. -/ + vpnConcentratorId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVpnConcentratorRequest where + schema := .struct "DeleteVpnConcentratorRequest" [({ name := "DryRun" }, .bool), + ({ name := "VpnConcentratorId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VpnConcentratorId" x.vpnConcentratorId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let vpnConcentratorId ← v.req "VpnConcentratorId" + return { dryRun, vpnConcentratorId } + +structure DeleteVpnConcentratorResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVpnConcentratorResult where + schema := .struct "DeleteVpnConcentratorResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +/-- Contains the parameters for DeleteVpnConnection. -/ +structure DeleteVpnConnectionRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the VPN connection. -/ + vpnConnectionId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVpnConnectionRequest where + schema := .struct "DeleteVpnConnectionRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "VpnConnectionId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VpnConnectionId" x.vpnConnectionId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let vpnConnectionId ← v.req "VpnConnectionId" + return { dryRun, vpnConnectionId } + +/-- Contains the parameters for DeleteVpnConnectionRoute. -/ +structure DeleteVpnConnectionRouteRequest where + /-- The CIDR block associated with the local subnet of the customer network. -/ + destinationCidrBlock : String + /-- The ID of the VPN connection. -/ + vpnConnectionId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVpnConnectionRouteRequest where + schema := .struct "DeleteVpnConnectionRouteRequest" [({ name := "DestinationCidrBlock", required := true }, .string), + ({ name := "VpnConnectionId", required := true }, .string)] + toValue x := record [put "DestinationCidrBlock" x.destinationCidrBlock, put "VpnConnectionId" x.vpnConnectionId] + ofValue v := do + let destinationCidrBlock ← v.req "DestinationCidrBlock" + let vpnConnectionId ← v.req "VpnConnectionId" + return { destinationCidrBlock, vpnConnectionId } + +/-- Contains the parameters for DeleteVpnGateway. -/ +structure DeleteVpnGatewayRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the virtual private gateway. -/ + vpnGatewayId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVpnGatewayRequest where + schema := .struct "DeleteVpnGatewayRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "VpnGatewayId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VpnGatewayId" x.vpnGatewayId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let vpnGatewayId ← v.req "VpnGatewayId" + return { dryRun, vpnGatewayId } + +/-- The maximum period since deprecation for allowed images. -/ +structure DeprecationTimeCondition where + /-- The maximum number of days that have elapsed since the image was deprecated. -/ + maximumDaysSinceDeprecated : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeprecationTimeCondition where + schema := .struct "DeprecationTimeCondition" [({ name := "MaximumDaysSinceDeprecated", xmlName := some "maximumDaysSinceDeprecated", queryName := some "MaximumDaysSinceDeprecated" }, .int)] + toValue x := record [putOpt "MaximumDaysSinceDeprecated" x.maximumDaysSinceDeprecated] + ofValue v := do + let maximumDaysSinceDeprecated ← v.opt "MaximumDaysSinceDeprecated" + return { maximumDaysSinceDeprecated } + +/-- The maximum period since deprecation for allowed images. -/ +structure DeprecationTimeConditionRequest where + /-- The maximum number of days that have elapsed since the image was deprecated. -/ + maximumDaysSinceDeprecated : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeprecationTimeConditionRequest where + schema := .struct "DeprecationTimeConditionRequest" [({ name := "MaximumDaysSinceDeprecated" }, .int)] + toValue x := record [putOpt "MaximumDaysSinceDeprecated" x.maximumDaysSinceDeprecated] + ofValue v := do + let maximumDaysSinceDeprecated ← v.opt "MaximumDaysSinceDeprecated" + return { maximumDaysSinceDeprecated } + +structure DeprovisionByoipCidrRequest where + /-- The address range, in CIDR notation. -/ + cidr : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeprovisionByoipCidrRequest where + schema := .struct "DeprovisionByoipCidrRequest" [({ name := "Cidr", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "Cidr" x.cidr, putOpt "DryRun" x.dryRun] + ofValue v := do + let cidr ← v.req "Cidr" + let dryRun ← v.opt "DryRun" + return { cidr, dryRun } + +structure DeprovisionIpamByoasnRequest where + /-- An ASN. -/ + asn : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IPAM ID. -/ + ipamId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeprovisionIpamByoasnRequest where + schema := .struct "DeprovisionIpamByoasnRequest" [({ name := "Asn", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "IpamId", required := true }, .string)] + toValue x := record [put "Asn" x.asn, putOpt "DryRun" x.dryRun, put "IpamId" x.ipamId] + ofValue v := do + let asn ← v.req "Asn" + let dryRun ← v.opt "DryRun" + let ipamId ← v.req "IpamId" + return { asn, dryRun, ipamId } + +structure DeprovisionIpamPoolCidrRequest where + /-- The CIDR which you want to deprovision from the pool. -/ + cidr : Option String := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the pool that has the CIDR you want to deprovision. -/ + ipamPoolId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeprovisionIpamPoolCidrRequest where + schema := .struct "DeprovisionIpamPoolCidrRequest" [({ name := "Cidr" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "IpamPoolId", required := true }, .string)] + toValue x := record [putOpt "Cidr" x.cidr, putOpt "DryRun" x.dryRun, put "IpamPoolId" x.ipamPoolId] + ofValue v := do + let cidr ← v.opt "Cidr" + let dryRun ← v.opt "DryRun" + let ipamPoolId ← v.req "IpamPoolId" + return { cidr, dryRun, ipamPoolId } + +structure DeprovisionPublicIpv4PoolCidrRequest where + /-- The CIDR you want to deprovision from the pool. -/ + cidr : String + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the pool that you want to deprovision the CIDR from. -/ + poolId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeprovisionPublicIpv4PoolCidrRequest where + schema := .struct "DeprovisionPublicIpv4PoolCidrRequest" [({ name := "Cidr", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "PoolId", required := true }, .string)] + toValue x := record [put "Cidr" x.cidr, putOpt "DryRun" x.dryRun, put "PoolId" x.poolId] + ofValue v := do + let cidr ← v.req "Cidr" + let dryRun ← v.opt "DryRun" + let poolId ← v.req "PoolId" + return { cidr, dryRun, poolId } + +structure DeprovisionPublicIpv4PoolCidrResult where + /-- The deprovisioned CIDRs. -/ + deprovisionedAddresses : Option (List String) := none + /-- The ID of the pool that you deprovisioned the CIDR from. -/ + poolId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeprovisionPublicIpv4PoolCidrResult where + schema := .struct "DeprovisionPublicIpv4PoolCidrResult" [({ name := "DeprovisionedAddresses", xmlName := some "deprovisionedAddressSet", queryName := some "DeprovisionedAddressSet" }, (.list .string "item")), + ({ name := "PoolId", xmlName := some "poolId", queryName := some "PoolId" }, .string)] + toValue x := record [putOpt "DeprovisionedAddresses" x.deprovisionedAddresses, putOpt "PoolId" x.poolId] + ofValue v := do + let deprovisionedAddresses ← v.opt "DeprovisionedAddresses" + let poolId ← v.opt "PoolId" + return { deprovisionedAddresses, poolId } + +/-- Contains the parameters for DeregisterImage. -/ +structure DeregisterImageRequest where + /-- Specifies whether to delete the snapshots associated with the AMI during deregistration. -/ + deleteAssociatedSnapshots : Option Bool := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AMI. -/ + imageId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeregisterImageRequest where + schema := .struct "DeregisterImageRequest" [({ name := "DeleteAssociatedSnapshots" }, .bool), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string)] + toValue x := record [putOpt "DeleteAssociatedSnapshots" x.deleteAssociatedSnapshots, putOpt "DryRun" x.dryRun, put "ImageId" x.imageId] + ofValue v := do + let deleteAssociatedSnapshots ← v.opt "DeleteAssociatedSnapshots" + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + return { deleteAssociatedSnapshots, dryRun, imageId } + +/-- Information about the tag keys to deregister for the current Region. -/ +structure DeregisterInstanceTagAttributeRequest where + /-- Indicates whether to deregister all tag keys in the current Region. -/ + includeAllTagsOfInstance : Option Bool := none + /-- Information about the tag keys to deregister. -/ + instanceTagKeys : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeregisterInstanceTagAttributeRequest where + schema := .struct "DeregisterInstanceTagAttributeRequest" [({ name := "IncludeAllTagsOfInstance" }, .bool), + ({ name := "InstanceTagKeys", xmlName := some "InstanceTagKey" }, (.list .string "item"))] + toValue x := record [putOpt "IncludeAllTagsOfInstance" x.includeAllTagsOfInstance, putOpt "InstanceTagKeys" x.instanceTagKeys] + ofValue v := do + let includeAllTagsOfInstance ← v.opt "IncludeAllTagsOfInstance" + let instanceTagKeys ← v.opt "InstanceTagKeys" + return { includeAllTagsOfInstance, instanceTagKeys } + +structure DeregisterTransitGatewayMulticastGroupMembersRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IP address assigned to the transit gateway multicast group. -/ + groupIpAddress : Option String := none + /-- The IDs of the group members' network interfaces. -/ + networkInterfaceIds : Option (List String) := none + /-- The ID of the transit gateway multicast domain. -/ + transitGatewayMulticastDomainId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeregisterTransitGatewayMulticastGroupMembersRequest where + schema := .struct "DeregisterTransitGatewayMulticastGroupMembersRequest" [({ name := "DryRun" }, .bool), + ({ name := "GroupIpAddress" }, .string), + ({ name := "NetworkInterfaceIds" }, (.list .string "item")), + ({ name := "TransitGatewayMulticastDomainId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "GroupIpAddress" x.groupIpAddress, putOpt "NetworkInterfaceIds" x.networkInterfaceIds, putOpt "TransitGatewayMulticastDomainId" x.transitGatewayMulticastDomainId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let groupIpAddress ← v.opt "GroupIpAddress" + let networkInterfaceIds ← v.opt "NetworkInterfaceIds" + let transitGatewayMulticastDomainId ← v.opt "TransitGatewayMulticastDomainId" + return { dryRun, groupIpAddress, networkInterfaceIds, transitGatewayMulticastDomainId } + +structure DeregisterTransitGatewayMulticastGroupSourcesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IP address assigned to the transit gateway multicast group. -/ + groupIpAddress : Option String := none + /-- The IDs of the group sources' network interfaces. -/ + networkInterfaceIds : Option (List String) := none + /-- The ID of the transit gateway multicast domain. -/ + transitGatewayMulticastDomainId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeregisterTransitGatewayMulticastGroupSourcesRequest where + schema := .struct "DeregisterTransitGatewayMulticastGroupSourcesRequest" [({ name := "DryRun" }, .bool), + ({ name := "GroupIpAddress" }, .string), + ({ name := "NetworkInterfaceIds" }, (.list .string "item")), + ({ name := "TransitGatewayMulticastDomainId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "GroupIpAddress" x.groupIpAddress, putOpt "NetworkInterfaceIds" x.networkInterfaceIds, putOpt "TransitGatewayMulticastDomainId" x.transitGatewayMulticastDomainId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let groupIpAddress ← v.opt "GroupIpAddress" + let networkInterfaceIds ← v.opt "NetworkInterfaceIds" + let transitGatewayMulticastDomainId ← v.opt "TransitGatewayMulticastDomainId" + return { dryRun, groupIpAddress, networkInterfaceIds, transitGatewayMulticastDomainId } + +structure DescribeAccountVpcEncryptionControlRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeAccountVpcEncryptionControlRequest where + schema := .struct "DescribeAccountVpcEncryptionControlRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure DescribeAddressTransfersRequest where + /-- The allocation IDs of Elastic IP addresses. -/ + allocationIds : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of address transfers to return in one page of results. -/ + maxResults : Option Int := none + /-- Specify the pagination token from a previous request to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeAddressTransfersRequest where + schema := .struct "DescribeAddressTransfersRequest" [({ name := "AllocationIds", xmlName := some "AllocationId" }, (.list .string "AllocationId")), + ({ name := "DryRun" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "AllocationIds" x.allocationIds, putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let allocationIds ← v.opt "AllocationIds" + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { allocationIds, dryRun, maxResults, nextToken } + +structure DescribeAggregateIdFormatRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeAggregateIdFormatRequest where + schema := .struct "DescribeAggregateIdFormatRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure DescribeByoipCidrsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Int + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeByoipCidrsRequest where + schema := .struct "DescribeByoipCidrsRequest" [({ name := "DryRun" }, .bool), + ({ name := "MaxResults", required := true }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let maxResults ← v.req "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, maxResults, nextToken } + +structure DescribeCapacityBlockExtensionOfferingsRequest where + /-- The duration of the Capacity Block extension offering in hours. -/ + capacityBlockExtensionDurationHours : Int + /-- The ID of the Capacity reservation to be extended. -/ + capacityReservationId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityBlockExtensionOfferingsRequest where + schema := .struct "DescribeCapacityBlockExtensionOfferingsRequest" [({ name := "CapacityBlockExtensionDurationHours", required := true }, .int), + ({ name := "CapacityReservationId", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [put "CapacityBlockExtensionDurationHours" x.capacityBlockExtensionDurationHours, put "CapacityReservationId" x.capacityReservationId, putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityBlockExtensionDurationHours ← v.req "CapacityBlockExtensionDurationHours" + let capacityReservationId ← v.req "CapacityReservationId" + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { capacityBlockExtensionDurationHours, capacityReservationId, dryRun, maxResults, nextToken } + +structure DescribeConversionTasksRequest where + /-- The conversion task IDs. -/ + conversionTaskIds : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeConversionTasksRequest where + schema := .struct "DescribeConversionTasksRequest" [({ name := "ConversionTaskIds", xmlName := some "conversionTaskId", queryName := some "ConversionTaskId" }, (.list .string "item")), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool)] + toValue x := record [putOpt "ConversionTaskIds" x.conversionTaskIds, putOpt "DryRun" x.dryRun] + ofValue v := do + let conversionTaskIds ← v.opt "ConversionTaskIds" + let dryRun ← v.opt "DryRun" + return { conversionTaskIds, dryRun } + +structure DescribeDeclarativePoliciesReportsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- One or more report IDs. -/ + reportIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeDeclarativePoliciesReportsRequest where + schema := .struct "DescribeDeclarativePoliciesReportsRequest" [({ name := "DryRun" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "ReportIds", xmlName := some "ReportId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "ReportIds" x.reportIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let reportIds ← v.opt "ReportIds" + return { dryRun, maxResults, nextToken, reportIds } + +structure DescribeIdFormatRequest where + /-- The type of resource: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-assoc -/ + resource : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIdFormatRequest where + schema := .struct "DescribeIdFormatRequest" [({ name := "Resource" }, .string)] + toValue x := record [putOpt "Resource" x.resource] + ofValue v := do + let resource ← v.opt "Resource" + return { resource } + +structure DescribeIdentityIdFormatRequest where + /-- The ARN of the principal, which can be an IAM role, IAM user, or the root user. -/ + principalArn : String + /-- The type of resource: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-assoc -/ + resource : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIdentityIdFormatRequest where + schema := .struct "DescribeIdentityIdFormatRequest" [({ name := "PrincipalArn", required := true, xmlName := some "principalArn", queryName := some "PrincipalArn" }, .string), + ({ name := "Resource", xmlName := some "resource", queryName := some "Resource" }, .string)] + toValue x := record [put "PrincipalArn" x.principalArn, putOpt "Resource" x.resource] + ofValue v := do + let principalArn ← v.req "PrincipalArn" + let resource ← v.opt "Resource" + return { principalArn, resource } + +structure DescribeInstanceEventNotificationAttributesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceEventNotificationAttributesRequest where + schema := .struct "DescribeInstanceEventNotificationAttributesRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure DescribeIpamByoasnRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamByoasnRequest where + schema := .struct "DescribeIpamByoasnRequest" [({ name := "DryRun" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, maxResults, nextToken } + +structure DescribePrincipalIdFormatRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token to request the next page of results. -/ + nextToken : Option String := none + /-- The type of resource: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-assoc -/ + resources : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribePrincipalIdFormatRequest where + schema := .struct "DescribePrincipalIdFormatRequest" [({ name := "DryRun" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "Resources", xmlName := some "Resource" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "Resources" x.resources] + ofValue v := do + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let resources ← v.opt "Resources" + return { dryRun, maxResults, nextToken, resources } + +structure DescribeSecurityGroupReferencesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the security groups in your account. -/ + groupId : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSecurityGroupReferencesRequest where + schema := .struct "DescribeSecurityGroupReferencesRequest" [({ name := "DryRun" }, .bool), + ({ name := "GroupId", required := true }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "GroupId" x.groupId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let groupId ← v.req "GroupId" + return { dryRun, groupId } + +/-- Contains the parameters for DescribeSpotDatafeedSubscription. -/ +structure DescribeSpotDatafeedSubscriptionRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSpotDatafeedSubscriptionRequest where + schema := .struct "DescribeSpotDatafeedSubscriptionRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +/-- Contains the parameters for DescribeSpotFleetInstances. -/ +structure DescribeSpotFleetInstancesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- The ID of the Spot Fleet request. -/ + spotFleetRequestId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSpotFleetInstancesRequest where + schema := .struct "DescribeSpotFleetInstancesRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "MaxResults", xmlName := some "maxResults", queryName := some "MaxResults" }, .int), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "SpotFleetRequestId", required := true, xmlName := some "spotFleetRequestId", queryName := some "SpotFleetRequestId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "SpotFleetRequestId" x.spotFleetRequestId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let spotFleetRequestId ← v.req "SpotFleetRequestId" + return { dryRun, maxResults, nextToken, spotFleetRequestId } + +/-- Contains the parameters for DescribeSpotFleetRequests. -/ +structure DescribeSpotFleetRequestsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- The IDs of the Spot Fleet requests. -/ + spotFleetRequestIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSpotFleetRequestsRequest where + schema := .struct "DescribeSpotFleetRequestsRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "MaxResults", xmlName := some "maxResults", queryName := some "MaxResults" }, .int), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "SpotFleetRequestIds", xmlName := some "spotFleetRequestId", queryName := some "SpotFleetRequestId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "SpotFleetRequestIds" x.spotFleetRequestIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let spotFleetRequestIds ← v.opt "SpotFleetRequestIds" + return { dryRun, maxResults, nextToken, spotFleetRequestIds } + +structure DescribeStaleSecurityGroupsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The ID of the VPC. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeStaleSecurityGroupsRequest where + schema := .struct "DescribeStaleSecurityGroupsRequest" [({ name := "DryRun" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "VpcId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "VpcId" x.vpcId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let vpcId ← v.req "VpcId" + return { dryRun, maxResults, nextToken, vpcId } + +structure DescribeVpcBlockPublicAccessOptionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcBlockPublicAccessOptionsRequest where + schema := .struct "DescribeVpcBlockPublicAccessOptionsRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure DescribeVpcClassicLinkDnsSupportRequest where + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The IDs of the VPCs. -/ + vpcIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcClassicLinkDnsSupportRequest where + schema := .struct "DescribeVpcClassicLinkDnsSupportRequest" [({ name := "MaxResults", xmlName := some "maxResults", queryName := some "MaxResults" }, .int), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "VpcIds", xmlName := some "VpcIds" }, (.list .string "VpcId"))] + toValue x := record [putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "VpcIds" x.vpcIds] + ofValue v := do + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let vpcIds ← v.opt "VpcIds" + return { maxResults, nextToken, vpcIds } + +inductive DestinationFileFormat where + | parquet + | plain_text +deriving DecidableEq, Repr, Inhabited + +def DestinationFileFormat.wire : DestinationFileFormat → String + | .parquet => "parquet" + | .plain_text => "plain-text" + +def DestinationFileFormat.wireValues : List (String × DestinationFileFormat) := [ + ("parquet", .parquet), + ("plain-text", .plain_text)] + +def DestinationFileFormat.ofWire (text : String) : Except String DestinationFileFormat := + match List.find? (·.1 == text) DestinationFileFormat.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DestinationFileFormat has no value {text}" + +instance : Key DestinationFileFormat := ⟨DestinationFileFormat.wire, DestinationFileFormat.ofWire⟩ + +instance : Shape DestinationFileFormat where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DestinationFileFormat.ofWire text + | _ => .error "expected a string" + +structure DetachClassicLinkVpcRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the instance to unlink from the VPC. -/ + instanceId : String + /-- The ID of the VPC to which the instance is linked. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DetachClassicLinkVpcRequest where + schema := .struct "DetachClassicLinkVpcRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "InstanceId", required := true, xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "VpcId", required := true, xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceId" x.instanceId, put "VpcId" x.vpcId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceId ← v.req "InstanceId" + let vpcId ← v.req "VpcId" + return { dryRun, instanceId, vpcId } + +structure DetachClassicLinkVpcResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DetachClassicLinkVpcResult where + schema := .struct "DetachClassicLinkVpcResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure DetachImageWatermarkRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AMI. -/ + imageId : String + /-- The watermark key to remove, in accountId:watermarkName format (for example, 123456789012:approvedAmi ). -/ + watermarkKey : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DetachImageWatermarkRequest where + schema := .struct "DetachImageWatermarkRequest" [({ name := "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string), + ({ name := "WatermarkKey", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "ImageId" x.imageId, put "WatermarkKey" x.watermarkKey] + ofValue v := do + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + let watermarkKey ← v.req "WatermarkKey" + return { dryRun, imageId, watermarkKey } + +structure DetachImageWatermarkResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DetachImageWatermarkResult where + schema := .struct "DetachImageWatermarkResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure DetachInternetGatewayRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the internet gateway. -/ + internetGatewayId : String + /-- The ID of the VPC. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DetachInternetGatewayRequest where + schema := .struct "DetachInternetGatewayRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "InternetGatewayId", required := true, xmlName := some "internetGatewayId", queryName := some "InternetGatewayId" }, .string), + ({ name := "VpcId", required := true, xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "InternetGatewayId" x.internetGatewayId, put "VpcId" x.vpcId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let internetGatewayId ← v.req "InternetGatewayId" + let vpcId ← v.req "VpcId" + return { dryRun, internetGatewayId, vpcId } + +/-- Contains the parameters for DetachNetworkInterface. -/ +structure DetachNetworkInterfaceRequest where + /-- The ID of the attachment. -/ + attachmentId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Specifies whether to force a detachment. -/ + force : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DetachNetworkInterfaceRequest where + schema := .struct "DetachNetworkInterfaceRequest" [({ name := "AttachmentId", required := true, xmlName := some "attachmentId", queryName := some "AttachmentId" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Force", xmlName := some "force", queryName := some "Force" }, .bool)] + toValue x := record [put "AttachmentId" x.attachmentId, putOpt "DryRun" x.dryRun, putOpt "Force" x.force] + ofValue v := do + let attachmentId ← v.req "AttachmentId" + let dryRun ← v.opt "DryRun" + let force ← v.opt "Force" + return { attachmentId, dryRun, force } + +structure DetachVerifiedAccessTrustProviderRequest where + /-- A unique, case-sensitive token that you provide to ensure idempotency of your modification request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Verified Access instance. -/ + verifiedAccessInstanceId : String + /-- The ID of the Verified Access trust provider. -/ + verifiedAccessTrustProviderId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DetachVerifiedAccessTrustProviderRequest where + schema := .struct "DetachVerifiedAccessTrustProviderRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "VerifiedAccessInstanceId", required := true }, .string), + ({ name := "VerifiedAccessTrustProviderId", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "VerifiedAccessInstanceId" x.verifiedAccessInstanceId, put "VerifiedAccessTrustProviderId" x.verifiedAccessTrustProviderId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let verifiedAccessInstanceId ← v.req "VerifiedAccessInstanceId" + let verifiedAccessTrustProviderId ← v.req "VerifiedAccessTrustProviderId" + return { clientToken, dryRun, verifiedAccessInstanceId, verifiedAccessTrustProviderId } + +structure DetachVolumeRequest where + /-- The device name. -/ + device : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging into an instance, unmounting the volume, and detaching normally). -/ + force : Option Bool := none + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- The ID of the volume. -/ + volumeId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DetachVolumeRequest where + schema := .struct "DetachVolumeRequest" [({ name := "Device" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Force" }, .bool), + ({ name := "InstanceId" }, .string), + ({ name := "VolumeId", required := true }, .string)] + toValue x := record [putOpt "Device" x.device, putOpt "DryRun" x.dryRun, putOpt "Force" x.force, putOpt "InstanceId" x.instanceId, put "VolumeId" x.volumeId] + ofValue v := do + let device ← v.opt "Device" + let dryRun ← v.opt "DryRun" + let force ← v.opt "Force" + let instanceId ← v.opt "InstanceId" + let volumeId ← v.req "VolumeId" + return { device, dryRun, force, instanceId, volumeId } + +/-- Contains the parameters for DetachVpnGateway. -/ +structure DetachVpnGatewayRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the VPC. -/ + vpcId : String + /-- The ID of the virtual private gateway. -/ + vpnGatewayId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DetachVpnGatewayRequest where + schema := .struct "DetachVpnGatewayRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "VpcId", required := true }, .string), + ({ name := "VpnGatewayId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VpcId" x.vpcId, put "VpnGatewayId" x.vpnGatewayId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let vpcId ← v.req "VpcId" + let vpnGatewayId ← v.req "VpnGatewayId" + return { dryRun, vpcId, vpnGatewayId } + +/-- Describes the options for an Amazon Web Services Verified Access device-identity based trust provider. -/ +structure DeviceOptions where + /-- The URL Amazon Web Services Verified Access will use to verify the authenticity of the device tokens. -/ + publicSigningKeyUrl : Option String := none + /-- The ID of the tenant application with the device-identity provider. -/ + tenantId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeviceOptions where + schema := .struct "DeviceOptions" [({ name := "PublicSigningKeyUrl", xmlName := some "publicSigningKeyUrl", queryName := some "PublicSigningKeyUrl" }, .string), + ({ name := "TenantId", xmlName := some "tenantId", queryName := some "TenantId" }, .string)] + toValue x := record [putOpt "PublicSigningKeyUrl" x.publicSigningKeyUrl, putOpt "TenantId" x.tenantId] + ofValue v := do + let publicSigningKeyUrl ← v.opt "PublicSigningKeyUrl" + let tenantId ← v.opt "TenantId" + return { publicSigningKeyUrl, tenantId } + +inductive DeviceTrustProviderType where + | crowdstrike + | jamf + | jumpcloud +deriving DecidableEq, Repr, Inhabited + +def DeviceTrustProviderType.wire : DeviceTrustProviderType → String + | .crowdstrike => "crowdstrike" + | .jamf => "jamf" + | .jumpcloud => "jumpcloud" + +def DeviceTrustProviderType.wireValues : List (String × DeviceTrustProviderType) := [ + ("crowdstrike", .crowdstrike), + ("jamf", .jamf), + ("jumpcloud", .jumpcloud)] + +def DeviceTrustProviderType.ofWire (text : String) : Except String DeviceTrustProviderType := + match List.find? (·.1 == text) DeviceTrustProviderType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DeviceTrustProviderType has no value {text}" + +instance : Key DeviceTrustProviderType := ⟨DeviceTrustProviderType.wire, DeviceTrustProviderType.ofWire⟩ + +instance : Shape DeviceTrustProviderType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DeviceTrustProviderType.ofWire text + | _ => .error "expected a string" + +inductive DeviceType where + | ebs + | instance_store +deriving DecidableEq, Repr, Inhabited + +def DeviceType.wire : DeviceType → String + | .ebs => "ebs" + | .instance_store => "instance-store" + +def DeviceType.wireValues : List (String × DeviceType) := [ + ("ebs", .ebs), + ("instance-store", .instance_store)] + +def DeviceType.ofWire (text : String) : Except String DeviceType := + match List.find? (·.1 == text) DeviceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DeviceType has no value {text}" + +instance : Key DeviceType := ⟨DeviceType.wire, DeviceType.ofWire⟩ + +instance : Shape DeviceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DeviceType.ofWire text + | _ => .error "expected a string" + +/-- Describes an Active Directory. -/ +structure DirectoryServiceAuthentication where + /-- The ID of the Active Directory used for authentication. -/ + directoryId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DirectoryServiceAuthentication where + schema := .struct "DirectoryServiceAuthentication" [({ name := "DirectoryId", xmlName := some "directoryId", queryName := some "DirectoryId" }, .string)] + toValue x := record [putOpt "DirectoryId" x.directoryId] + ofValue v := do + let directoryId ← v.opt "DirectoryId" + return { directoryId } + +/-- Describes the Active Directory to be used for client authentication. -/ +structure DirectoryServiceAuthenticationRequest where + /-- The ID of the Active Directory to be used for authentication. -/ + directoryId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DirectoryServiceAuthenticationRequest where + schema := .struct "DirectoryServiceAuthenticationRequest" [({ name := "DirectoryId" }, .string)] + toValue x := record [putOpt "DirectoryId" x.directoryId] + ofValue v := do + let directoryId ← v.opt "DirectoryId" + return { directoryId } + +structure DisableAddressTransferRequest where + /-- The allocation ID of an Elastic IP address. -/ + allocationId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableAddressTransferRequest where + schema := .struct "DisableAddressTransferRequest" [({ name := "AllocationId", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "AllocationId" x.allocationId, putOpt "DryRun" x.dryRun] + ofValue v := do + let allocationId ← v.req "AllocationId" + let dryRun ← v.opt "DryRun" + return { allocationId, dryRun } + +structure DisableAllowedImagesSettingsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableAllowedImagesSettingsRequest where + schema := .struct "DisableAllowedImagesSettingsRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure DisableApplicationStatusCheckSuppressionRequest where + /-- A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the instances for which to disable application status check suppression. -/ + instanceIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableApplicationStatusCheckSuppressionRequest where + schema := .struct "DisableApplicationStatusCheckSuppressionRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceIds", xmlName := some "InstanceId" }, (.list .string "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "InstanceIds" x.instanceIds] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let instanceIds ← v.opt "InstanceIds" + return { clientToken, dryRun, instanceIds } + +structure DisableAwsNetworkPerformanceMetricSubscriptionResult where + /-- Indicates whether the unsubscribe action was successful. -/ + output : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableAwsNetworkPerformanceMetricSubscriptionResult where + schema := .struct "DisableAwsNetworkPerformanceMetricSubscriptionResult" [({ name := "Output", xmlName := some "output", queryName := some "Output" }, .bool)] + toValue x := record [putOpt "Output" x.output] + ofValue v := do + let output ← v.opt "Output" + return { output } + +structure DisableCapacityManagerRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableCapacityManagerRequest where + schema := .struct "DisableCapacityManagerRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + return { clientToken, dryRun } + +structure DisableEbsEncryptionByDefaultRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableEbsEncryptionByDefaultRequest where + schema := .struct "DisableEbsEncryptionByDefaultRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure DisableEbsEncryptionByDefaultResult where + /-- The updated status of encryption by default. -/ + ebsEncryptionByDefault : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableEbsEncryptionByDefaultResult where + schema := .struct "DisableEbsEncryptionByDefaultResult" [({ name := "EbsEncryptionByDefault", xmlName := some "ebsEncryptionByDefault", queryName := some "EbsEncryptionByDefault" }, .bool)] + toValue x := record [putOpt "EbsEncryptionByDefault" x.ebsEncryptionByDefault] + ofValue v := do + let ebsEncryptionByDefault ← v.opt "EbsEncryptionByDefault" + return { ebsEncryptionByDefault } + +structure DisableFastLaunchRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Forces the image settings to turn off Windows fast launch for your Windows AMI. -/ + force : Option Bool := none + /-- Specify the ID of the image for which to disable Windows fast launch. -/ + imageId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableFastLaunchRequest where + schema := .struct "DisableFastLaunchRequest" [({ name := "DryRun" }, .bool), + ({ name := "Force" }, .bool), + ({ name := "ImageId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Force" x.force, put "ImageId" x.imageId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let force ← v.opt "Force" + let imageId ← v.req "ImageId" + return { dryRun, force, imageId } + +/-- Describes an error that occurred when disabling fast snapshot restores. -/ +structure DisableFastSnapshotRestoreStateError where + /-- The error code. -/ + code : Option String := none + /-- The error message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableFastSnapshotRestoreStateError where + schema := .struct "DisableFastSnapshotRestoreStateError" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, .string), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +structure DisableFastSnapshotRestoresRequest where + /-- One or more Availability Zone IDs. -/ + availabilityZoneIds : Option (List String) := none + /-- One or more Availability Zones. -/ + availabilityZones : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of one or more snapshots. -/ + sourceSnapshotIds : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableFastSnapshotRestoresRequest where + schema := .struct "DisableFastSnapshotRestoresRequest" [({ name := "AvailabilityZoneIds", xmlName := some "AvailabilityZoneId" }, (.list .string "AvailabilityZoneId")), + ({ name := "AvailabilityZones", xmlName := some "AvailabilityZone" }, (.list .string "AvailabilityZone")), + ({ name := "DryRun" }, .bool), + ({ name := "SourceSnapshotIds", required := true, xmlName := some "SourceSnapshotId" }, (.list .string "SnapshotId"))] + toValue x := record [putOpt "AvailabilityZoneIds" x.availabilityZoneIds, putOpt "AvailabilityZones" x.availabilityZones, putOpt "DryRun" x.dryRun, put "SourceSnapshotIds" x.sourceSnapshotIds] + ofValue v := do + let availabilityZoneIds ← v.opt "AvailabilityZoneIds" + let availabilityZones ← v.opt "AvailabilityZones" + let dryRun ← v.opt "DryRun" + let sourceSnapshotIds ← v.req "SourceSnapshotIds" + return { availabilityZoneIds, availabilityZones, dryRun, sourceSnapshotIds } + +structure DisableImageBlockPublicAccessRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableImageBlockPublicAccessRequest where + schema := .struct "DisableImageBlockPublicAccessRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure DisableImageDeprecationRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AMI. -/ + imageId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableImageDeprecationRequest where + schema := .struct "DisableImageDeprecationRequest" [({ name := "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "ImageId" x.imageId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + return { dryRun, imageId } + +structure DisableImageDeprecationResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableImageDeprecationResult where + schema := .struct "DisableImageDeprecationResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure DisableImageDeregistrationProtectionRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AMI. -/ + imageId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableImageDeregistrationProtectionRequest where + schema := .struct "DisableImageDeregistrationProtectionRequest" [({ name := "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "ImageId" x.imageId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + return { dryRun, imageId } + +structure DisableImageDeregistrationProtectionResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableImageDeregistrationProtectionResult where + schema := .struct "DisableImageDeregistrationProtectionResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .string)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure DisableImageRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AMI. -/ + imageId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableImageRequest where + schema := .struct "DisableImageRequest" [({ name := "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "ImageId" x.imageId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + return { dryRun, imageId } + +structure DisableImageResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableImageResult where + schema := .struct "DisableImageResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure DisableInstanceSqlHaStandbyDetectionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the instances to disable from SQL Server High Availability standby detection monitoring. -/ + instanceIds : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableInstanceSqlHaStandbyDetectionsRequest where + schema := .struct "DisableInstanceSqlHaStandbyDetectionsRequest" [({ name := "DryRun" }, .bool), + ({ name := "InstanceIds", required := true, xmlName := some "InstanceId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceIds" x.instanceIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceIds ← v.req "InstanceIds" + return { dryRun, instanceIds } + +structure DisableIpamOrganizationAdminAccountRequest where + /-- The Organizations member account ID that you want to disable as IPAM account. -/ + delegatedAdminAccountId : String + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableIpamOrganizationAdminAccountRequest where + schema := .struct "DisableIpamOrganizationAdminAccountRequest" [({ name := "DelegatedAdminAccountId", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "DelegatedAdminAccountId" x.delegatedAdminAccountId, putOpt "DryRun" x.dryRun] + ofValue v := do + let delegatedAdminAccountId ← v.req "DelegatedAdminAccountId" + let dryRun ← v.opt "DryRun" + return { delegatedAdminAccountId, dryRun } + +structure DisableIpamOrganizationAdminAccountResult where + /-- The result of disabling the IPAM account. -/ + success : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableIpamOrganizationAdminAccountResult where + schema := .struct "DisableIpamOrganizationAdminAccountResult" [({ name := "Success", xmlName := some "success", queryName := some "Success" }, .bool)] + toValue x := record [putOpt "Success" x.success] + ofValue v := do + let success ← v.opt "Success" + return { success } + +structure DisableIpamPolicyRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM policy to disable. -/ + ipamPolicyId : String + /-- The ID of the Amazon Web Services Organizations target for which to disable the IPAM policy. -/ + organizationTargetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableIpamPolicyRequest where + schema := .struct "DisableIpamPolicyRequest" [({ name := "DryRun" }, .bool), + ({ name := "IpamPolicyId", required := true }, .string), + ({ name := "OrganizationTargetId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "IpamPolicyId" x.ipamPolicyId, putOpt "OrganizationTargetId" x.organizationTargetId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let ipamPolicyId ← v.req "IpamPolicyId" + let organizationTargetId ← v.opt "OrganizationTargetId" + return { dryRun, ipamPolicyId, organizationTargetId } + +structure DisableIpamPolicyResult where + /-- Returns true if the IPAM policy was successfully disabled. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableIpamPolicyResult where + schema := .struct "DisableIpamPolicyResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure DisableRouteServerPropagationRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the route server for which to disable propagation. -/ + routeServerId : String + /-- The ID of the route table for which to disable route server propagation. -/ + routeTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableRouteServerPropagationRequest where + schema := .struct "DisableRouteServerPropagationRequest" [({ name := "DryRun" }, .bool), + ({ name := "RouteServerId", required := true }, .string), + ({ name := "RouteTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "RouteServerId" x.routeServerId, put "RouteTableId" x.routeTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let routeServerId ← v.req "RouteServerId" + let routeTableId ← v.req "RouteTableId" + return { dryRun, routeServerId, routeTableId } + +structure DisableSerialConsoleAccessRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableSerialConsoleAccessRequest where + schema := .struct "DisableSerialConsoleAccessRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure DisableSerialConsoleAccessResult where + /-- If true , access to the EC2 serial console of all instances is enabled for your account. -/ + serialConsoleAccessEnabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableSerialConsoleAccessResult where + schema := .struct "DisableSerialConsoleAccessResult" [({ name := "SerialConsoleAccessEnabled", xmlName := some "serialConsoleAccessEnabled", queryName := some "SerialConsoleAccessEnabled" }, .bool)] + toValue x := record [putOpt "SerialConsoleAccessEnabled" x.serialConsoleAccessEnabled] + ofValue v := do + let serialConsoleAccessEnabled ← v.opt "SerialConsoleAccessEnabled" + return { serialConsoleAccessEnabled } + +structure DisableSnapshotBlockPublicAccessRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableSnapshotBlockPublicAccessRequest where + schema := .struct "DisableSnapshotBlockPublicAccessRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure DisableTransitGatewayRouteTablePropagationRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the route table announcement. -/ + transitGatewayRouteTableAnnouncementId : Option String := none + /-- The ID of the propagation route table. -/ + transitGatewayRouteTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableTransitGatewayRouteTablePropagationRequest where + schema := .struct "DisableTransitGatewayRouteTablePropagationRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayRouteTableAnnouncementId" }, .string), + ({ name := "TransitGatewayRouteTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, putOpt "TransitGatewayRouteTableAnnouncementId" x.transitGatewayRouteTableAnnouncementId, put "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayRouteTableAnnouncementId ← v.opt "TransitGatewayRouteTableAnnouncementId" + let transitGatewayRouteTableId ← v.req "TransitGatewayRouteTableId" + return { dryRun, transitGatewayAttachmentId, transitGatewayRouteTableAnnouncementId, transitGatewayRouteTableId } + +/-- Contains the parameters for DisableVgwRoutePropagation. -/ +structure DisableVgwRoutePropagationRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the virtual private gateway. -/ + gatewayId : String + /-- The ID of the route table. -/ + routeTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableVgwRoutePropagationRequest where + schema := .struct "DisableVgwRoutePropagationRequest" [({ name := "DryRun" }, .bool), + ({ name := "GatewayId", required := true }, .string), + ({ name := "RouteTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "GatewayId" x.gatewayId, put "RouteTableId" x.routeTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let gatewayId ← v.req "GatewayId" + let routeTableId ← v.req "RouteTableId" + return { dryRun, gatewayId, routeTableId } + +structure DisableVpcClassicLinkDnsSupportRequest where + /-- The ID of the VPC. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableVpcClassicLinkDnsSupportRequest where + schema := .struct "DisableVpcClassicLinkDnsSupportRequest" [({ name := "VpcId", xmlName := some "VpcId" }, .string)] + toValue x := record [putOpt "VpcId" x.vpcId] + ofValue v := do + let vpcId ← v.opt "VpcId" + return { vpcId } + +structure DisableVpcClassicLinkDnsSupportResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableVpcClassicLinkDnsSupportResult where + schema := .struct "DisableVpcClassicLinkDnsSupportResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure DisableVpcClassicLinkRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the VPC. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableVpcClassicLinkRequest where + schema := .struct "DisableVpcClassicLinkRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "VpcId", required := true, xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VpcId" x.vpcId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let vpcId ← v.req "VpcId" + return { dryRun, vpcId } + +structure DisableVpcClassicLinkResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableVpcClassicLinkResult where + schema := .struct "DisableVpcClassicLinkResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure DisassociateAddressRequest where + /-- The association ID. -/ + associationId : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Deprecated. -/ + publicIp : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateAddressRequest where + schema := .struct "DisassociateAddressRequest" [({ name := "AssociationId" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "PublicIp" }, .string)] + toValue x := record [putOpt "AssociationId" x.associationId, putOpt "DryRun" x.dryRun, putOpt "PublicIp" x.publicIp] + ofValue v := do + let associationId ← v.opt "AssociationId" + let dryRun ← v.opt "DryRun" + let publicIp ← v.opt "PublicIp" + return { associationId, dryRun, publicIp } + +structure DisassociateCapacityReservationBillingOwnerRequest where + /-- The ID of the Capacity Reservation. -/ + capacityReservationId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the consumer account to which the request was sent. -/ + unusedReservationBillingOwnerId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateCapacityReservationBillingOwnerRequest where + schema := .struct "DisassociateCapacityReservationBillingOwnerRequest" [({ name := "CapacityReservationId", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "UnusedReservationBillingOwnerId", required := true }, .string)] + toValue x := record [put "CapacityReservationId" x.capacityReservationId, putOpt "DryRun" x.dryRun, put "UnusedReservationBillingOwnerId" x.unusedReservationBillingOwnerId] + ofValue v := do + let capacityReservationId ← v.req "CapacityReservationId" + let dryRun ← v.opt "DryRun" + let unusedReservationBillingOwnerId ← v.req "UnusedReservationBillingOwnerId" + return { capacityReservationId, dryRun, unusedReservationBillingOwnerId } + +structure DisassociateCapacityReservationBillingOwnerResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateCapacityReservationBillingOwnerResult where + schema := .struct "DisassociateCapacityReservationBillingOwnerResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure DisassociateClientVpnTargetNetworkRequest where + /-- The ID of the target network association. -/ + associationId : String + /-- The ID of the Client VPN endpoint from which to disassociate the target network. -/ + clientVpnEndpointId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateClientVpnTargetNetworkRequest where + schema := .struct "DisassociateClientVpnTargetNetworkRequest" [({ name := "AssociationId", required := true }, .string), + ({ name := "ClientVpnEndpointId", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "AssociationId" x.associationId, put "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "DryRun" x.dryRun] + ofValue v := do + let associationId ← v.req "AssociationId" + let clientVpnEndpointId ← v.req "ClientVpnEndpointId" + let dryRun ← v.opt "DryRun" + return { associationId, clientVpnEndpointId, dryRun } + +structure DisassociateEnclaveCertificateIamRoleRequest where + /-- The ARN of the ACM certificate from which to disassociate the IAM role. -/ + certificateArn : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ARN of the IAM role to disassociate. -/ + roleArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateEnclaveCertificateIamRoleRequest where + schema := .struct "DisassociateEnclaveCertificateIamRoleRequest" [({ name := "CertificateArn", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "RoleArn", required := true }, .string)] + toValue x := record [put "CertificateArn" x.certificateArn, putOpt "DryRun" x.dryRun, put "RoleArn" x.roleArn] + ofValue v := do + let certificateArn ← v.req "CertificateArn" + let dryRun ← v.opt "DryRun" + let roleArn ← v.req "RoleArn" + return { certificateArn, dryRun, roleArn } + +structure DisassociateEnclaveCertificateIamRoleResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateEnclaveCertificateIamRoleResult where + schema := .struct "DisassociateEnclaveCertificateIamRoleResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure DisassociateIamInstanceProfileRequest where + /-- The ID of the IAM instance profile association. -/ + associationId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateIamInstanceProfileRequest where + schema := .struct "DisassociateIamInstanceProfileRequest" [({ name := "AssociationId", required := true }, .string)] + toValue x := record [put "AssociationId" x.associationId] + ofValue v := do + let associationId ← v.req "AssociationId" + return { associationId } + +structure DisassociateIpamByoasnRequest where + /-- A public 2-byte or 4-byte ASN. -/ + asn : String + /-- A BYOIP CIDR. -/ + cidr : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateIpamByoasnRequest where + schema := .struct "DisassociateIpamByoasnRequest" [({ name := "Asn", required := true }, .string), + ({ name := "Cidr", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "Asn" x.asn, put "Cidr" x.cidr, putOpt "DryRun" x.dryRun] + ofValue v := do + let asn ← v.req "Asn" + let cidr ← v.req "Cidr" + let dryRun ← v.opt "DryRun" + return { asn, cidr, dryRun } + +structure DisassociateIpamResourceDiscoveryRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- A resource discovery association ID. -/ + ipamResourceDiscoveryAssociationId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateIpamResourceDiscoveryRequest where + schema := .struct "DisassociateIpamResourceDiscoveryRequest" [({ name := "DryRun" }, .bool), + ({ name := "IpamResourceDiscoveryAssociationId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "IpamResourceDiscoveryAssociationId" x.ipamResourceDiscoveryAssociationId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let ipamResourceDiscoveryAssociationId ← v.req "IpamResourceDiscoveryAssociationId" + return { dryRun, ipamResourceDiscoveryAssociationId } + +structure DisassociateKmsKeyIdRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID, alias, or ARN of the associated KMS key to remove from the snapshot. -/ + kmsKeyId : String + /-- The ID of the Amazon EBS snapshot. -/ + snapshotId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateKmsKeyIdRequest where + schema := .struct "DisassociateKmsKeyIdRequest" [({ name := "DryRun" }, .bool), + ({ name := "KmsKeyId", required := true }, .string), + ({ name := "SnapshotId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "KmsKeyId" x.kmsKeyId, putOpt "SnapshotId" x.snapshotId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let kmsKeyId ← v.req "KmsKeyId" + let snapshotId ← v.opt "SnapshotId" + return { dryRun, kmsKeyId, snapshotId } + +structure DisassociateKmsKeyIdResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateKmsKeyIdResult where + schema := .struct "DisassociateKmsKeyIdResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure DisassociateNatGatewayAddressRequest where + /-- The association IDs of EIPs that have been associated with the NAT gateway. -/ + associationIds : (List String) + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum amount of time to wait (in seconds) before forcibly releasing the IP addresses if connections are still in progress. -/ + maxDrainDurationSeconds : Option Int := none + /-- The ID of the NAT gateway. -/ + natGatewayId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateNatGatewayAddressRequest where + schema := .struct "DisassociateNatGatewayAddressRequest" [({ name := "AssociationIds", required := true, xmlName := some "AssociationId" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "MaxDrainDurationSeconds" }, .int), + ({ name := "NatGatewayId", required := true }, .string)] + toValue x := record [put "AssociationIds" x.associationIds, putOpt "DryRun" x.dryRun, putOpt "MaxDrainDurationSeconds" x.maxDrainDurationSeconds, put "NatGatewayId" x.natGatewayId] + ofValue v := do + let associationIds ← v.req "AssociationIds" + let dryRun ← v.opt "DryRun" + let maxDrainDurationSeconds ← v.opt "MaxDrainDurationSeconds" + let natGatewayId ← v.req "NatGatewayId" + return { associationIds, dryRun, maxDrainDurationSeconds, natGatewayId } + +structure DisassociateNetworkingFlexCostAllocationPolicyRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the policy associations to remove. -/ + fcaPolicyAssociationIds : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateNetworkingFlexCostAllocationPolicyRequest where + schema := .struct "DisassociateNetworkingFlexCostAllocationPolicyRequest" [({ name := "DryRun" }, .bool), + ({ name := "FcaPolicyAssociationIds", required := true }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "FcaPolicyAssociationIds" x.fcaPolicyAssociationIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let fcaPolicyAssociationIds ← v.req "FcaPolicyAssociationIds" + return { dryRun, fcaPolicyAssociationIds } + +structure DisassociateRouteServerRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the route server to disassociate. -/ + routeServerId : String + /-- The ID of the VPC to disassociate from the route server. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateRouteServerRequest where + schema := .struct "DisassociateRouteServerRequest" [({ name := "DryRun" }, .bool), + ({ name := "RouteServerId", required := true }, .string), + ({ name := "VpcId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "RouteServerId" x.routeServerId, put "VpcId" x.vpcId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let routeServerId ← v.req "RouteServerId" + let vpcId ← v.req "VpcId" + return { dryRun, routeServerId, vpcId } + +structure DisassociateRouteTableRequest where + /-- The association ID representing the current association between the route table and subnet or gateway. -/ + associationId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateRouteTableRequest where + schema := .struct "DisassociateRouteTableRequest" [({ name := "AssociationId", required := true, xmlName := some "associationId", queryName := some "AssociationId" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool)] + toValue x := record [put "AssociationId" x.associationId, putOpt "DryRun" x.dryRun] + ofValue v := do + let associationId ← v.req "AssociationId" + let dryRun ← v.opt "DryRun" + return { associationId, dryRun } + +structure DisassociateSecurityGroupVpcRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- A security group ID. -/ + groupId : String + /-- A VPC ID. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateSecurityGroupVpcRequest where + schema := .struct "DisassociateSecurityGroupVpcRequest" [({ name := "DryRun" }, .bool), + ({ name := "GroupId", required := true }, .string), + ({ name := "VpcId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "GroupId" x.groupId, put "VpcId" x.vpcId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let groupId ← v.req "GroupId" + let vpcId ← v.req "VpcId" + return { dryRun, groupId, vpcId } + +structure DisassociateSubnetCidrBlockRequest where + /-- The association ID for the CIDR block. -/ + associationId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateSubnetCidrBlockRequest where + schema := .struct "DisassociateSubnetCidrBlockRequest" [({ name := "AssociationId", required := true, xmlName := some "associationId", queryName := some "AssociationId" }, .string)] + toValue x := record [put "AssociationId" x.associationId] + ofValue v := do + let associationId ← v.req "AssociationId" + return { associationId } + +structure DisassociateTransitGatewayMulticastDomainRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the subnets;. -/ + subnetIds : (List String) + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : String + /-- The ID of the transit gateway multicast domain. -/ + transitGatewayMulticastDomainId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateTransitGatewayMulticastDomainRequest where + schema := .struct "DisassociateTransitGatewayMulticastDomainRequest" [({ name := "DryRun" }, .bool), + ({ name := "SubnetIds", required := true }, (.list .string "item")), + ({ name := "TransitGatewayAttachmentId", required := true }, .string), + ({ name := "TransitGatewayMulticastDomainId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "SubnetIds" x.subnetIds, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, put "TransitGatewayMulticastDomainId" x.transitGatewayMulticastDomainId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let subnetIds ← v.req "SubnetIds" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + let transitGatewayMulticastDomainId ← v.req "TransitGatewayMulticastDomainId" + return { dryRun, subnetIds, transitGatewayAttachmentId, transitGatewayMulticastDomainId } + +structure DisassociateTransitGatewayPolicyTableRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the transit gateway attachment to disassociate from the policy table. -/ + transitGatewayAttachmentId : String + /-- The ID of the disassociated policy table. -/ + transitGatewayPolicyTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateTransitGatewayPolicyTableRequest where + schema := .struct "DisassociateTransitGatewayPolicyTableRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayAttachmentId", required := true }, .string), + ({ name := "TransitGatewayPolicyTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, put "TransitGatewayPolicyTableId" x.transitGatewayPolicyTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + let transitGatewayPolicyTableId ← v.req "TransitGatewayPolicyTableId" + return { dryRun, transitGatewayAttachmentId, transitGatewayPolicyTableId } + +structure DisassociateTransitGatewayRouteTableRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : String + /-- The ID of the transit gateway route table. -/ + transitGatewayRouteTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateTransitGatewayRouteTableRequest where + schema := .struct "DisassociateTransitGatewayRouteTableRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayAttachmentId", required := true }, .string), + ({ name := "TransitGatewayRouteTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, put "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + let transitGatewayRouteTableId ← v.req "TransitGatewayRouteTableId" + return { dryRun, transitGatewayAttachmentId, transitGatewayRouteTableId } + +structure DisassociateTrunkInterfaceRequest where + /-- The ID of the association. -/ + associationId : String + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateTrunkInterfaceRequest where + schema := .struct "DisassociateTrunkInterfaceRequest" [({ name := "AssociationId", required := true }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "AssociationId" x.associationId, putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun] + ofValue v := do + let associationId ← v.req "AssociationId" + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + return { associationId, clientToken, dryRun } + +structure DisassociateTrunkInterfaceResult where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Is true if the request succeeds and an error otherwise. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateTrunkInterfaceResult where + schema := .struct "DisassociateTrunkInterfaceResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "Return" x.«return»] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let «return» ← v.opt "Return" + return { clientToken, «return» } + +structure DisassociateVpcCidrBlockRequest where + /-- The association ID for the CIDR block. -/ + associationId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateVpcCidrBlockRequest where + schema := .struct "DisassociateVpcCidrBlockRequest" [({ name := "AssociationId", required := true, xmlName := some "associationId", queryName := some "AssociationId" }, .string)] + toValue x := record [put "AssociationId" x.associationId] + ofValue v := do + let associationId ← v.req "AssociationId" + return { associationId } + +inductive DiskImageFormat where + | raw + | vhd + | vmdk +deriving DecidableEq, Repr, Inhabited + +def DiskImageFormat.wire : DiskImageFormat → String + | .raw => "RAW" + | .vhd => "VHD" + | .vmdk => "VMDK" + +def DiskImageFormat.wireValues : List (String × DiskImageFormat) := [ + ("RAW", .raw), + ("VHD", .vhd), + ("VMDK", .vmdk)] + +def DiskImageFormat.ofWire (text : String) : Except String DiskImageFormat := + match List.find? (·.1 == text) DiskImageFormat.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DiskImageFormat has no value {text}" + +instance : Key DiskImageFormat := ⟨DiskImageFormat.wire, DiskImageFormat.ofWire⟩ + +instance : Shape DiskImageFormat where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DiskImageFormat.ofWire text + | _ => .error "expected a string" + +/-- Describes a disk image volume. -/ +structure DiskImageVolumeDescription where + /-- The volume identifier. -/ + id : Option String := none + /-- The size of the volume, in GiB. -/ + size : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DiskImageVolumeDescription where + schema := .struct "DiskImageVolumeDescription" [({ name := "Id", xmlName := some "id", queryName := some "Id" }, .string), + ({ name := "Size", xmlName := some "size", queryName := some "Size" }, .int)] + toValue x := record [putOpt "Id" x.id, putOpt "Size" x.size] + ofValue v := do + let id ← v.opt "Id" + let size ← v.opt "Size" + return { id, size } + +inductive DiskType where + | hdd + | ssd +deriving DecidableEq, Repr, Inhabited + +def DiskType.wire : DiskType → String + | .hdd => "hdd" + | .ssd => "ssd" + +def DiskType.wireValues : List (String × DiskType) := [ + ("hdd", .hdd), + ("ssd", .ssd)] + +def DiskType.ofWire (text : String) : Except String DiskType := + match List.find? (·.1 == text) DiskType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DiskType has no value {text}" + +instance : Key DiskType := ⟨DiskType.wire, DiskType.ofWire⟩ + +instance : Shape DiskType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DiskType.ofWire text + | _ => .error "expected a string" + +/-- Describes a DNS entry. -/ +structure DnsEntry where + /-- The DNS name. -/ + dnsName : Option String := none + /-- The ID of the private hosted zone. -/ + hostedZoneId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DnsEntry where + schema := .struct "DnsEntry" [({ name := "DnsName", xmlName := some "dnsName", queryName := some "DnsName" }, .string), + ({ name := "HostedZoneId", xmlName := some "hostedZoneId", queryName := some "HostedZoneId" }, .string)] + toValue x := record [putOpt "DnsName" x.dnsName, putOpt "HostedZoneId" x.hostedZoneId] + ofValue v := do + let dnsName ← v.opt "DnsName" + let hostedZoneId ← v.opt "HostedZoneId" + return { dnsName, hostedZoneId } + +inductive DnsNameState where + | failed + | pendingVerification + | verified +deriving DecidableEq, Repr, Inhabited + +def DnsNameState.wire : DnsNameState → String + | .failed => "failed" + | .pendingVerification => "pendingVerification" + | .verified => "verified" + +def DnsNameState.wireValues : List (String × DnsNameState) := [ + ("failed", .failed), + ("pendingVerification", .pendingVerification), + ("verified", .verified)] + +def DnsNameState.ofWire (text : String) : Except String DnsNameState := + match List.find? (·.1 == text) DnsNameState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DnsNameState has no value {text}" + +instance : Key DnsNameState := ⟨DnsNameState.wire, DnsNameState.ofWire⟩ + +instance : Shape DnsNameState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DnsNameState.ofWire text + | _ => .error "expected a string" + +inductive DnsRecordIpType where + | dualstack + | ipv4 + | ipv6 + | service_defined +deriving DecidableEq, Repr, Inhabited + +def DnsRecordIpType.wire : DnsRecordIpType → String + | .dualstack => "dualstack" + | .ipv4 => "ipv4" + | .ipv6 => "ipv6" + | .service_defined => "service-defined" + +def DnsRecordIpType.wireValues : List (String × DnsRecordIpType) := [ + ("dualstack", .dualstack), + ("ipv4", .ipv4), + ("ipv6", .ipv6), + ("service-defined", .service_defined)] + +def DnsRecordIpType.ofWire (text : String) : Except String DnsRecordIpType := + match List.find? (·.1 == text) DnsRecordIpType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DnsRecordIpType has no value {text}" + +instance : Key DnsRecordIpType := ⟨DnsRecordIpType.wire, DnsRecordIpType.ofWire⟩ + +instance : Shape DnsRecordIpType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DnsRecordIpType.ofWire text + | _ => .error "expected a string" + +/-- Information about the DNS server to be used. -/ +structure DnsServersOptionsModifyStructure where + /-- The IPv4 address range, in CIDR notation, of the DNS servers to be used. -/ + customDnsServers : Option (List String) := none + /-- Indicates whether DNS servers should be used. -/ + enabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DnsServersOptionsModifyStructure where + schema := .struct "DnsServersOptionsModifyStructure" [({ name := "CustomDnsServers" }, (.list .string "item")), + ({ name := "Enabled" }, .bool)] + toValue x := record [putOpt "CustomDnsServers" x.customDnsServers, putOpt "Enabled" x.enabled] + ofValue v := do + let customDnsServers ← v.opt "CustomDnsServers" + let enabled ← v.opt "Enabled" + return { customDnsServers, enabled } + +inductive DnsSupportValue where + | disable + | enable +deriving DecidableEq, Repr, Inhabited + +def DnsSupportValue.wire : DnsSupportValue → String + | .disable => "disable" + | .enable => "enable" + +def DnsSupportValue.wireValues : List (String × DnsSupportValue) := [ + ("disable", .disable), + ("enable", .enable)] + +def DnsSupportValue.ofWire (text : String) : Except String DnsSupportValue := + match List.find? (·.1 == text) DnsSupportValue.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DnsSupportValue has no value {text}" + +instance : Key DnsSupportValue := ⟨DnsSupportValue.wire, DnsSupportValue.ofWire⟩ + +instance : Shape DnsSupportValue where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DnsSupportValue.ofWire text + | _ => .error "expected a string" + +inductive DomainType where + | standard + | vpc +deriving DecidableEq, Repr, Inhabited + +def DomainType.wire : DomainType → String + | .standard => "standard" + | .vpc => "vpc" + +def DomainType.wireValues : List (String × DomainType) := [ + ("standard", .standard), + ("vpc", .vpc)] + +def DomainType.ofWire (text : String) : Except String DomainType := + match List.find? (·.1 == text) DomainType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DomainType has no value {text}" + +instance : Key DomainType := ⟨DomainType.wire, DomainType.ofWire⟩ + +instance : Shape DomainType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DomainType.ofWire text + | _ => .error "expected a string" + +inductive DynamicRoutingValue where + | disable + | enable +deriving DecidableEq, Repr, Inhabited + +def DynamicRoutingValue.wire : DynamicRoutingValue → String + | .disable => "disable" + | .enable => "enable" + +def DynamicRoutingValue.wireValues : List (String × DynamicRoutingValue) := [ + ("disable", .disable), + ("enable", .enable)] + +def DynamicRoutingValue.ofWire (text : String) : Except String DynamicRoutingValue := + match List.find? (·.1 == text) DynamicRoutingValue.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DynamicRoutingValue has no value {text}" + +instance : Key DynamicRoutingValue := ⟨DynamicRoutingValue.wire, DynamicRoutingValue.ofWire⟩ + +instance : Shape DynamicRoutingValue where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DynamicRoutingValue.ofWire text + | _ => .error "expected a string" + +/-- Describes the performance characteristics of an EBS card on the instance type. -/ +structure EbsCardInfo where + /-- The baseline bandwidth performance for the EBS card, in Mbps. -/ + baselineBandwidthInMbps : Option Int := none + /-- The baseline IOPS performance for the EBS card. -/ + baselineIops : Option Int := none + /-- The baseline throughput performance for the EBS card, in MBps. -/ + baselineThroughputInMBps : Option JsonNumber := none + /-- The index of the EBS card. -/ + ebsCardIndex : Option Int := none + /-- The maximum bandwidth performance for the EBS card, in Mbps. -/ + maximumBandwidthInMbps : Option Int := none + /-- The maximum IOPS performance for the EBS card. -/ + maximumIops : Option Int := none + /-- The maximum throughput performance for the EBS card, in MBps. -/ + maximumThroughputInMBps : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EbsCardInfo where + schema := .struct "EbsCardInfo" [({ name := "BaselineBandwidthInMbps", xmlName := some "baselineBandwidthInMbps", queryName := some "BaselineBandwidthInMbps" }, .int), + ({ name := "BaselineIops", xmlName := some "baselineIops", queryName := some "BaselineIops" }, .int), + ({ name := "BaselineThroughputInMBps", xmlName := some "baselineThroughputInMBps", queryName := some "BaselineThroughputInMBps" }, .number), + ({ name := "EbsCardIndex", xmlName := some "ebsCardIndex", queryName := some "EbsCardIndex" }, .int), + ({ name := "MaximumBandwidthInMbps", xmlName := some "maximumBandwidthInMbps", queryName := some "MaximumBandwidthInMbps" }, .int), + ({ name := "MaximumIops", xmlName := some "maximumIops", queryName := some "MaximumIops" }, .int), + ({ name := "MaximumThroughputInMBps", xmlName := some "maximumThroughputInMBps", queryName := some "MaximumThroughputInMBps" }, .number)] + toValue x := record [putOpt "BaselineBandwidthInMbps" x.baselineBandwidthInMbps, putOpt "BaselineIops" x.baselineIops, putOpt "BaselineThroughputInMBps" x.baselineThroughputInMBps, putOpt "EbsCardIndex" x.ebsCardIndex, putOpt "MaximumBandwidthInMbps" x.maximumBandwidthInMbps, putOpt "MaximumIops" x.maximumIops, putOpt "MaximumThroughputInMBps" x.maximumThroughputInMBps] + ofValue v := do + let baselineBandwidthInMbps ← v.opt "BaselineBandwidthInMbps" + let baselineIops ← v.opt "BaselineIops" + let baselineThroughputInMBps ← v.opt "BaselineThroughputInMBps" + let ebsCardIndex ← v.opt "EbsCardIndex" + let maximumBandwidthInMbps ← v.opt "MaximumBandwidthInMbps" + let maximumIops ← v.opt "MaximumIops" + let maximumThroughputInMBps ← v.opt "MaximumThroughputInMBps" + return { baselineBandwidthInMbps, baselineIops, baselineThroughputInMBps, ebsCardIndex, maximumBandwidthInMbps, maximumIops, maximumThroughputInMBps } + +inductive EbsEncryptionSupport where + | supported + | unsupported +deriving DecidableEq, Repr, Inhabited + +def EbsEncryptionSupport.wire : EbsEncryptionSupport → String + | .supported => "supported" + | .unsupported => "unsupported" + +def EbsEncryptionSupport.wireValues : List (String × EbsEncryptionSupport) := [ + ("supported", .supported), + ("unsupported", .unsupported)] + +def EbsEncryptionSupport.ofWire (text : String) : Except String EbsEncryptionSupport := + match List.find? (·.1 == text) EbsEncryptionSupport.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"EbsEncryptionSupport has no value {text}" + +instance : Key EbsEncryptionSupport := ⟨EbsEncryptionSupport.wire, EbsEncryptionSupport.ofWire⟩ + +instance : Shape EbsEncryptionSupport where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => EbsEncryptionSupport.ofWire text + | _ => .error "expected a string" + +/-- Describes information used to set up an EBS volume specified in a block device mapping. -/ +structure EbsInstanceBlockDeviceSpecification where + /-- Indicates whether the volume is deleted on instance termination. -/ + deleteOnTermination : Option Bool := none + /-- The ID of the EBS volume. -/ + volumeId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EbsInstanceBlockDeviceSpecification where + schema := .struct "EbsInstanceBlockDeviceSpecification" [({ name := "DeleteOnTermination", xmlName := some "deleteOnTermination", queryName := some "DeleteOnTermination" }, .bool), + ({ name := "VolumeId", xmlName := some "volumeId", queryName := some "VolumeId" }, .string)] + toValue x := record [putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "VolumeId" x.volumeId] + ofValue v := do + let deleteOnTermination ← v.opt "DeleteOnTermination" + let volumeId ← v.opt "VolumeId" + return { deleteOnTermination, volumeId } + +inductive EbsNvmeSupport where + | required + | supported + | unsupported +deriving DecidableEq, Repr, Inhabited + +def EbsNvmeSupport.wire : EbsNvmeSupport → String + | .required => "required" + | .supported => "supported" + | .unsupported => "unsupported" + +def EbsNvmeSupport.wireValues : List (String × EbsNvmeSupport) := [ + ("required", .required), + ("supported", .supported), + ("unsupported", .unsupported)] + +def EbsNvmeSupport.ofWire (text : String) : Except String EbsNvmeSupport := + match List.find? (·.1 == text) EbsNvmeSupport.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"EbsNvmeSupport has no value {text}" + +instance : Key EbsNvmeSupport := ⟨EbsNvmeSupport.wire, EbsNvmeSupport.ofWire⟩ + +instance : Shape EbsNvmeSupport where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => EbsNvmeSupport.ofWire text + | _ => .error "expected a string" + +/-- Describes the optimized EBS performance for supported instance types. -/ +structure EbsOptimizedInfo where + /-- The baseline bandwidth performance for an EBS-optimized instance type, in Mbps. -/ + baselineBandwidthInMbps : Option Int := none + /-- The baseline input/output storage operations per seconds for an EBS-optimized instance type. -/ + baselineIops : Option Int := none + /-- The baseline throughput performance for an EBS-optimized instance type, in MB/s. -/ + baselineThroughputInMBps : Option JsonNumber := none + /-- The maximum bandwidth performance for an EBS-optimized instance type, in Mbps. -/ + maximumBandwidthInMbps : Option Int := none + /-- The maximum input/output storage operations per second for an EBS-optimized instance type. -/ + maximumIops : Option Int := none + /-- The maximum throughput performance for an EBS-optimized instance type, in MB/s. -/ + maximumThroughputInMBps : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EbsOptimizedInfo where + schema := .struct "EbsOptimizedInfo" [({ name := "BaselineBandwidthInMbps", xmlName := some "baselineBandwidthInMbps", queryName := some "BaselineBandwidthInMbps" }, .int), + ({ name := "BaselineIops", xmlName := some "baselineIops", queryName := some "BaselineIops" }, .int), + ({ name := "BaselineThroughputInMBps", xmlName := some "baselineThroughputInMBps", queryName := some "BaselineThroughputInMBps" }, .number), + ({ name := "MaximumBandwidthInMbps", xmlName := some "maximumBandwidthInMbps", queryName := some "MaximumBandwidthInMbps" }, .int), + ({ name := "MaximumIops", xmlName := some "maximumIops", queryName := some "MaximumIops" }, .int), + ({ name := "MaximumThroughputInMBps", xmlName := some "maximumThroughputInMBps", queryName := some "MaximumThroughputInMBps" }, .number)] + toValue x := record [putOpt "BaselineBandwidthInMbps" x.baselineBandwidthInMbps, putOpt "BaselineIops" x.baselineIops, putOpt "BaselineThroughputInMBps" x.baselineThroughputInMBps, putOpt "MaximumBandwidthInMbps" x.maximumBandwidthInMbps, putOpt "MaximumIops" x.maximumIops, putOpt "MaximumThroughputInMBps" x.maximumThroughputInMBps] + ofValue v := do + let baselineBandwidthInMbps ← v.opt "BaselineBandwidthInMbps" + let baselineIops ← v.opt "BaselineIops" + let baselineThroughputInMBps ← v.opt "BaselineThroughputInMBps" + let maximumBandwidthInMbps ← v.opt "MaximumBandwidthInMbps" + let maximumIops ← v.opt "MaximumIops" + let maximumThroughputInMBps ← v.opt "MaximumThroughputInMBps" + return { baselineBandwidthInMbps, baselineIops, baselineThroughputInMBps, maximumBandwidthInMbps, maximumIops, maximumThroughputInMBps } + +inductive EbsOptimizedSupport where + | default + | supported + | unsupported +deriving DecidableEq, Repr, Inhabited + +def EbsOptimizedSupport.wire : EbsOptimizedSupport → String + | .default => "default" + | .supported => "supported" + | .unsupported => "unsupported" + +def EbsOptimizedSupport.wireValues : List (String × EbsOptimizedSupport) := [ + ("default", .default), + ("supported", .supported), + ("unsupported", .unsupported)] + +def EbsOptimizedSupport.ofWire (text : String) : Except String EbsOptimizedSupport := + match List.find? (·.1 == text) EbsOptimizedSupport.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"EbsOptimizedSupport has no value {text}" + +instance : Key EbsOptimizedSupport := ⟨EbsOptimizedSupport.wire, EbsOptimizedSupport.ofWire⟩ + +instance : Shape EbsOptimizedSupport where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => EbsOptimizedSupport.ofWire text + | _ => .error "expected a string" + +inductive Ec2InstanceConnectEndpointState where + | create_complete + | create_failed + | create_in_progress + | delete_complete + | delete_failed + | delete_in_progress + | update_complete + | update_failed + | update_in_progress +deriving DecidableEq, Repr, Inhabited + +def Ec2InstanceConnectEndpointState.wire : Ec2InstanceConnectEndpointState → String + | .create_complete => "create-complete" + | .create_failed => "create-failed" + | .create_in_progress => "create-in-progress" + | .delete_complete => "delete-complete" + | .delete_failed => "delete-failed" + | .delete_in_progress => "delete-in-progress" + | .update_complete => "update-complete" + | .update_failed => "update-failed" + | .update_in_progress => "update-in-progress" + +def Ec2InstanceConnectEndpointState.wireValues : List (String × Ec2InstanceConnectEndpointState) := [ + ("create-complete", .create_complete), + ("create-failed", .create_failed), + ("create-in-progress", .create_in_progress), + ("delete-complete", .delete_complete), + ("delete-failed", .delete_failed), + ("delete-in-progress", .delete_in_progress), + ("update-complete", .update_complete), + ("update-failed", .update_failed), + ("update-in-progress", .update_in_progress)] + +def Ec2InstanceConnectEndpointState.ofWire (text : String) : Except String Ec2InstanceConnectEndpointState := + match List.find? (·.1 == text) Ec2InstanceConnectEndpointState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Ec2InstanceConnectEndpointState has no value {text}" + +instance : Key Ec2InstanceConnectEndpointState := ⟨Ec2InstanceConnectEndpointState.wire, Ec2InstanceConnectEndpointState.ofWire⟩ + +instance : Shape Ec2InstanceConnectEndpointState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Ec2InstanceConnectEndpointState.ofWire text + | _ => .error "expected a string" + +/-- Describes the Elastic Fabric Adapters for the instance type. -/ +structure EfaInfo where + /-- The maximum number of Elastic Fabric Adapters for the instance type. -/ + maximumEfaInterfaces : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EfaInfo where + schema := .struct "EfaInfo" [({ name := "MaximumEfaInterfaces", xmlName := some "maximumEfaInterfaces", queryName := some "MaximumEfaInterfaces" }, .int)] + toValue x := record [putOpt "MaximumEfaInterfaces" x.maximumEfaInterfaces] + ofValue v := do + let maximumEfaInterfaces ← v.opt "MaximumEfaInterfaces" + return { maximumEfaInterfaces } + +inductive EkPubKeyFormat where + | der + | tpmt +deriving DecidableEq, Repr, Inhabited + +def EkPubKeyFormat.wire : EkPubKeyFormat → String + | .der => "der" + | .tpmt => "tpmt" + +def EkPubKeyFormat.wireValues : List (String × EkPubKeyFormat) := [ + ("der", .der), + ("tpmt", .tpmt)] + +def EkPubKeyFormat.ofWire (text : String) : Except String EkPubKeyFormat := + match List.find? (·.1 == text) EkPubKeyFormat.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"EkPubKeyFormat has no value {text}" + +instance : Key EkPubKeyFormat := ⟨EkPubKeyFormat.wire, EkPubKeyFormat.ofWire⟩ + +instance : Shape EkPubKeyFormat where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => EkPubKeyFormat.ofWire text + | _ => .error "expected a string" + +inductive EkPubKeyType where + | ecC_SEC_P384 + | rsA_2048 +deriving DecidableEq, Repr, Inhabited + +def EkPubKeyType.wire : EkPubKeyType → String + | .ecC_SEC_P384 => "ecc-sec-p384" + | .rsA_2048 => "rsa-2048" + +def EkPubKeyType.wireValues : List (String × EkPubKeyType) := [ + ("ecc-sec-p384", .ecC_SEC_P384), + ("rsa-2048", .rsA_2048)] + +def EkPubKeyType.ofWire (text : String) : Except String EkPubKeyType := + match List.find? (·.1 == text) EkPubKeyType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"EkPubKeyType has no value {text}" + +instance : Key EkPubKeyType := ⟨EkPubKeyType.wire, EkPubKeyType.ofWire⟩ + +instance : Shape EkPubKeyType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => EkPubKeyType.ofWire text + | _ => .error "expected a string" + +/-- Amazon Elastic Graphics reached end of life on January 8, 2024. -/ +structure ElasticGpuAssociation where + /-- The ID of the association. -/ + elasticGpuAssociationId : Option String := none + /-- The state of the association between the instance and the Elastic Graphics accelerator. -/ + elasticGpuAssociationState : Option String := none + /-- The time the Elastic Graphics accelerator was associated with the instance. -/ + elasticGpuAssociationTime : Option String := none + /-- The ID of the Elastic Graphics accelerator. -/ + elasticGpuId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ElasticGpuAssociation where + schema := .struct "ElasticGpuAssociation" [({ name := "ElasticGpuAssociationId", xmlName := some "elasticGpuAssociationId", queryName := some "ElasticGpuAssociationId" }, .string), + ({ name := "ElasticGpuAssociationState", xmlName := some "elasticGpuAssociationState", queryName := some "ElasticGpuAssociationState" }, .string), + ({ name := "ElasticGpuAssociationTime", xmlName := some "elasticGpuAssociationTime", queryName := some "ElasticGpuAssociationTime" }, .string), + ({ name := "ElasticGpuId", xmlName := some "elasticGpuId", queryName := some "ElasticGpuId" }, .string)] + toValue x := record [putOpt "ElasticGpuAssociationId" x.elasticGpuAssociationId, putOpt "ElasticGpuAssociationState" x.elasticGpuAssociationState, putOpt "ElasticGpuAssociationTime" x.elasticGpuAssociationTime, putOpt "ElasticGpuId" x.elasticGpuId] + ofValue v := do + let elasticGpuAssociationId ← v.opt "ElasticGpuAssociationId" + let elasticGpuAssociationState ← v.opt "ElasticGpuAssociationState" + let elasticGpuAssociationTime ← v.opt "ElasticGpuAssociationTime" + let elasticGpuId ← v.opt "ElasticGpuId" + return { elasticGpuAssociationId, elasticGpuAssociationState, elasticGpuAssociationTime, elasticGpuId } + +/-- Amazon Elastic Graphics reached end of life on January 8, 2024. -/ +structure ElasticGpuSpecification where + /-- The type of Elastic Graphics accelerator. -/ + type : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ElasticGpuSpecification where + schema := .struct "ElasticGpuSpecification" [({ name := "Type", required := true }, .string)] + toValue x := record [put "Type" x.type] + ofValue v := do + let type ← v.req "Type" + return { type } + +/-- Deprecated. -/ +structure ElasticGpuSpecificationResponse where + /-- Deprecated. -/ + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ElasticGpuSpecificationResponse where + schema := .struct "ElasticGpuSpecificationResponse" [({ name := "Type", xmlName := some "type", queryName := some "Type" }, .string)] + toValue x := record [putOpt "Type" x.type] + ofValue v := do + let type ← v.opt "Type" + return { type } + +inductive ElasticGpuState where + | attached +deriving DecidableEq, Repr, Inhabited + +def ElasticGpuState.wire : ElasticGpuState → String + | .attached => "ATTACHED" + +def ElasticGpuState.wireValues : List (String × ElasticGpuState) := [ + ("ATTACHED", .attached)] + +def ElasticGpuState.ofWire (text : String) : Except String ElasticGpuState := + match List.find? (·.1 == text) ElasticGpuState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ElasticGpuState has no value {text}" + +instance : Key ElasticGpuState := ⟨ElasticGpuState.wire, ElasticGpuState.ofWire⟩ + +instance : Shape ElasticGpuState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ElasticGpuState.ofWire text + | _ => .error "expected a string" + +inductive ElasticGpuStatus where + | impaired + | ok +deriving DecidableEq, Repr, Inhabited + +def ElasticGpuStatus.wire : ElasticGpuStatus → String + | .impaired => "IMPAIRED" + | .ok => "OK" + +def ElasticGpuStatus.wireValues : List (String × ElasticGpuStatus) := [ + ("IMPAIRED", .impaired), + ("OK", .ok)] + +def ElasticGpuStatus.ofWire (text : String) : Except String ElasticGpuStatus := + match List.find? (·.1 == text) ElasticGpuStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ElasticGpuStatus has no value {text}" + +instance : Key ElasticGpuStatus := ⟨ElasticGpuStatus.wire, ElasticGpuStatus.ofWire⟩ + +instance : Shape ElasticGpuStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ElasticGpuStatus.ofWire text + | _ => .error "expected a string" + +/-- Amazon Elastic Inference is no longer available. -/ +structure ElasticInferenceAccelerator where + /-- The number of elastic inference accelerators to attach to the instance. -/ + count : Option Int := none + /-- The type of elastic inference accelerator. -/ + type : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ElasticInferenceAccelerator where + schema := .struct "ElasticInferenceAccelerator" [({ name := "Count" }, .int), + ({ name := "Type", required := true }, .string)] + toValue x := record [putOpt "Count" x.count, put "Type" x.type] + ofValue v := do + let count ← v.opt "Count" + let type ← v.req "Type" + return { count, type } + +/-- Amazon Elastic Inference is no longer available. -/ +structure ElasticInferenceAcceleratorAssociation where + /-- The Amazon Resource Name (ARN) of the elastic inference accelerator. -/ + elasticInferenceAcceleratorArn : Option String := none + /-- The ID of the association. -/ + elasticInferenceAcceleratorAssociationId : Option String := none + /-- The state of the elastic inference accelerator. -/ + elasticInferenceAcceleratorAssociationState : Option String := none + /-- The time at which the elastic inference accelerator is associated with an instance. -/ + elasticInferenceAcceleratorAssociationTime : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ElasticInferenceAcceleratorAssociation where + schema := .struct "ElasticInferenceAcceleratorAssociation" [({ name := "ElasticInferenceAcceleratorArn", xmlName := some "elasticInferenceAcceleratorArn", queryName := some "ElasticInferenceAcceleratorArn" }, .string), + ({ name := "ElasticInferenceAcceleratorAssociationId", xmlName := some "elasticInferenceAcceleratorAssociationId", queryName := some "ElasticInferenceAcceleratorAssociationId" }, .string), + ({ name := "ElasticInferenceAcceleratorAssociationState", xmlName := some "elasticInferenceAcceleratorAssociationState", queryName := some "ElasticInferenceAcceleratorAssociationState" }, .string), + ({ name := "ElasticInferenceAcceleratorAssociationTime", xmlName := some "elasticInferenceAcceleratorAssociationTime", queryName := some "ElasticInferenceAcceleratorAssociationTime" }, (.time none))] + toValue x := record [putOpt "ElasticInferenceAcceleratorArn" x.elasticInferenceAcceleratorArn, putOpt "ElasticInferenceAcceleratorAssociationId" x.elasticInferenceAcceleratorAssociationId, putOpt "ElasticInferenceAcceleratorAssociationState" x.elasticInferenceAcceleratorAssociationState, putOpt "ElasticInferenceAcceleratorAssociationTime" x.elasticInferenceAcceleratorAssociationTime] + ofValue v := do + let elasticInferenceAcceleratorArn ← v.opt "ElasticInferenceAcceleratorArn" + let elasticInferenceAcceleratorAssociationId ← v.opt "ElasticInferenceAcceleratorAssociationId" + let elasticInferenceAcceleratorAssociationState ← v.opt "ElasticInferenceAcceleratorAssociationState" + let elasticInferenceAcceleratorAssociationTime ← v.opt "ElasticInferenceAcceleratorAssociationTime" + return { elasticInferenceAcceleratorArn, elasticInferenceAcceleratorAssociationId, elasticInferenceAcceleratorAssociationState, elasticInferenceAcceleratorAssociationTime } + +/-- ENA Express is compatible with both TCP and UDP transport protocols. -/ +structure EnaSrdUdpSpecification where + /-- Indicates whether UDP traffic to and from the instance uses ENA Express. -/ + enaSrdUdpEnabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnaSrdUdpSpecification where + schema := .struct "EnaSrdUdpSpecification" [({ name := "EnaSrdUdpEnabled" }, .bool)] + toValue x := record [putOpt "EnaSrdUdpEnabled" x.enaSrdUdpEnabled] + ofValue v := do + let enaSrdUdpEnabled ← v.opt "EnaSrdUdpEnabled" + return { enaSrdUdpEnabled } + +/-- Configures ENA Express for UDP network traffic from your launch template. -/ +structure EnaSrdUdpSpecificationRequest where + /-- Indicates whether UDP traffic uses ENA Express for your instance. -/ + enaSrdUdpEnabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnaSrdUdpSpecificationRequest where + schema := .struct "EnaSrdUdpSpecificationRequest" [({ name := "EnaSrdUdpEnabled" }, .bool)] + toValue x := record [putOpt "EnaSrdUdpEnabled" x.enaSrdUdpEnabled] + ofValue v := do + let enaSrdUdpEnabled ← v.opt "EnaSrdUdpEnabled" + return { enaSrdUdpEnabled } + +inductive EnaSupport where + | required + | supported + | unsupported +deriving DecidableEq, Repr, Inhabited + +def EnaSupport.wire : EnaSupport → String + | .required => "required" + | .supported => "supported" + | .unsupported => "unsupported" + +def EnaSupport.wireValues : List (String × EnaSupport) := [ + ("required", .required), + ("supported", .supported), + ("unsupported", .unsupported)] + +def EnaSupport.ofWire (text : String) : Except String EnaSupport := + match List.find? (·.1 == text) EnaSupport.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"EnaSupport has no value {text}" + +instance : Key EnaSupport := ⟨EnaSupport.wire, EnaSupport.ofWire⟩ + +instance : Shape EnaSupport where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => EnaSupport.ofWire text + | _ => .error "expected a string" + +structure EnableAddressTransferRequest where + /-- The allocation ID of an Elastic IP address. -/ + allocationId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the account that you want to transfer the Elastic IP address to. -/ + transferAccountId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableAddressTransferRequest where + schema := .struct "EnableAddressTransferRequest" [({ name := "AllocationId", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "TransferAccountId", required := true }, .string)] + toValue x := record [put "AllocationId" x.allocationId, putOpt "DryRun" x.dryRun, put "TransferAccountId" x.transferAccountId] + ofValue v := do + let allocationId ← v.req "AllocationId" + let dryRun ← v.opt "DryRun" + let transferAccountId ← v.req "TransferAccountId" + return { allocationId, dryRun, transferAccountId } + +structure EnableApplicationStatusCheckSuppressionRequest where + /-- A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The duration, in seconds, for which to suppress application status checks. -/ + durationSeconds : Option Int := none + /-- The IDs of the instances for which to suppress application status checks. -/ + instanceIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableApplicationStatusCheckSuppressionRequest where + schema := .struct "EnableApplicationStatusCheckSuppressionRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "DurationSeconds" }, .int), + ({ name := "InstanceIds", xmlName := some "InstanceId" }, (.list .string "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "DurationSeconds" x.durationSeconds, putOpt "InstanceIds" x.instanceIds] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let durationSeconds ← v.opt "DurationSeconds" + let instanceIds ← v.opt "InstanceIds" + return { clientToken, dryRun, durationSeconds, instanceIds } + +structure EnableAwsNetworkPerformanceMetricSubscriptionResult where + /-- Indicates whether the subscribe action was successful. -/ + output : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableAwsNetworkPerformanceMetricSubscriptionResult where + schema := .struct "EnableAwsNetworkPerformanceMetricSubscriptionResult" [({ name := "Output", xmlName := some "output", queryName := some "Output" }, .bool)] + toValue x := record [putOpt "Output" x.output] + ofValue v := do + let output ← v.opt "Output" + return { output } + +structure EnableCapacityManagerRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Specifies whether to enable cross-account access for Amazon Web Services Organizations. -/ + organizationsAccess : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableCapacityManagerRequest where + schema := .struct "EnableCapacityManagerRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "OrganizationsAccess" }, .bool)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "OrganizationsAccess" x.organizationsAccess] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let organizationsAccess ← v.opt "OrganizationsAccess" + return { clientToken, dryRun, organizationsAccess } + +structure EnableEbsEncryptionByDefaultRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableEbsEncryptionByDefaultRequest where + schema := .struct "EnableEbsEncryptionByDefaultRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure EnableEbsEncryptionByDefaultResult where + /-- The updated status of encryption by default. -/ + ebsEncryptionByDefault : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableEbsEncryptionByDefaultResult where + schema := .struct "EnableEbsEncryptionByDefaultResult" [({ name := "EbsEncryptionByDefault", xmlName := some "ebsEncryptionByDefault", queryName := some "EbsEncryptionByDefault" }, .bool)] + toValue x := record [putOpt "EbsEncryptionByDefault" x.ebsEncryptionByDefault] + ofValue v := do + let ebsEncryptionByDefault ← v.opt "EbsEncryptionByDefault" + return { ebsEncryptionByDefault } + +/-- Describes an error that occurred when enabling fast snapshot restores. -/ +structure EnableFastSnapshotRestoreStateError where + /-- The error code. -/ + code : Option String := none + /-- The error message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableFastSnapshotRestoreStateError where + schema := .struct "EnableFastSnapshotRestoreStateError" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, .string), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +structure EnableFastSnapshotRestoresRequest where + /-- One or more Availability Zone IDs. -/ + availabilityZoneIds : Option (List String) := none + /-- One or more Availability Zones. -/ + availabilityZones : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of one or more snapshots. -/ + sourceSnapshotIds : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableFastSnapshotRestoresRequest where + schema := .struct "EnableFastSnapshotRestoresRequest" [({ name := "AvailabilityZoneIds", xmlName := some "AvailabilityZoneId" }, (.list .string "AvailabilityZoneId")), + ({ name := "AvailabilityZones", xmlName := some "AvailabilityZone" }, (.list .string "AvailabilityZone")), + ({ name := "DryRun" }, .bool), + ({ name := "SourceSnapshotIds", required := true, xmlName := some "SourceSnapshotId" }, (.list .string "SnapshotId"))] + toValue x := record [putOpt "AvailabilityZoneIds" x.availabilityZoneIds, putOpt "AvailabilityZones" x.availabilityZones, putOpt "DryRun" x.dryRun, put "SourceSnapshotIds" x.sourceSnapshotIds] + ofValue v := do + let availabilityZoneIds ← v.opt "AvailabilityZoneIds" + let availabilityZones ← v.opt "AvailabilityZones" + let dryRun ← v.opt "DryRun" + let sourceSnapshotIds ← v.req "SourceSnapshotIds" + return { availabilityZoneIds, availabilityZones, dryRun, sourceSnapshotIds } + +structure EnableImageDeprecationRequest where + /-- The date and time to deprecate the AMI, in UTC, in the following format: YYYY - MM - DD T HH : MM : SS Z. -/ + deprecateAt : Timestamp + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AMI. -/ + imageId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableImageDeprecationRequest where + schema := .struct "EnableImageDeprecationRequest" [({ name := "DeprecateAt", required := true }, (.time none)), + ({ name := "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string)] + toValue x := record [put "DeprecateAt" x.deprecateAt, putOpt "DryRun" x.dryRun, put "ImageId" x.imageId] + ofValue v := do + let deprecateAt ← v.req "DeprecateAt" + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + return { deprecateAt, dryRun, imageId } + +structure EnableImageDeprecationResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableImageDeprecationResult where + schema := .struct "EnableImageDeprecationResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure EnableImageDeregistrationProtectionRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AMI. -/ + imageId : String + /-- If true , enforces deregistration protection for 24 hours after deregistration protection is disabled. -/ + withCooldown : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableImageDeregistrationProtectionRequest where + schema := .struct "EnableImageDeregistrationProtectionRequest" [({ name := "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string), + ({ name := "WithCooldown" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun, put "ImageId" x.imageId, putOpt "WithCooldown" x.withCooldown] + ofValue v := do + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + let withCooldown ← v.opt "WithCooldown" + return { dryRun, imageId, withCooldown } + +structure EnableImageDeregistrationProtectionResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableImageDeregistrationProtectionResult where + schema := .struct "EnableImageDeregistrationProtectionResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .string)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure EnableImageRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AMI. -/ + imageId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableImageRequest where + schema := .struct "EnableImageRequest" [({ name := "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "ImageId" x.imageId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + return { dryRun, imageId } + +structure EnableImageResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableImageResult where + schema := .struct "EnableImageResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure EnableInstanceSqlHaStandbyDetectionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the instances to enable for SQL Server High Availability standby detection monitoring. -/ + instanceIds : (List String) + /-- The ARN of the Secrets Manager secret containing the SQL Server access credentials. -/ + sqlServerCredentials : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableInstanceSqlHaStandbyDetectionsRequest where + schema := .struct "EnableInstanceSqlHaStandbyDetectionsRequest" [({ name := "DryRun" }, .bool), + ({ name := "InstanceIds", required := true, xmlName := some "InstanceId" }, (.list .string "item")), + ({ name := "SqlServerCredentials" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceIds" x.instanceIds, putOpt "SqlServerCredentials" x.sqlServerCredentials] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceIds ← v.req "InstanceIds" + let sqlServerCredentials ← v.opt "SqlServerCredentials" + return { dryRun, instanceIds, sqlServerCredentials } + +structure EnableIpamInternetRegistryAssociationRequest where + /-- The child handle for the BPKI certificate hierarchy from the Parent Response XML. -/ + childHandle : String + /-- A unique, case-sensitive identifier to ensure that the operation completes no more than one time. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM internet registry association to enable. -/ + ipamInternetRegistryAssociationId : String + /-- The parent BPKI Trust Anchor certificate in PEM format from the Parent Response XML. -/ + parentBpkiTa : String + /-- The parent handle for the BPKI certificate hierarchy from the Parent Response XML. -/ + parentHandle : String + /-- The RPKI version to use from the Parent Response XML. -/ + rpkiVersion : String + /-- The RPKI service URI for the publication point from the Parent Response XML. -/ + serviceUri : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableIpamInternetRegistryAssociationRequest where + schema := .struct "EnableIpamInternetRegistryAssociationRequest" [({ name := "ChildHandle", required := true }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "IpamInternetRegistryAssociationId", required := true }, .string), + ({ name := "ParentBpkiTa", required := true }, .string), + ({ name := "ParentHandle", required := true }, .string), + ({ name := "RpkiVersion", required := true }, .string), + ({ name := "ServiceUri", required := true }, .string)] + toValue x := record [put "ChildHandle" x.childHandle, putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "IpamInternetRegistryAssociationId" x.ipamInternetRegistryAssociationId, put "ParentBpkiTa" x.parentBpkiTa, put "ParentHandle" x.parentHandle, put "RpkiVersion" x.rpkiVersion, put "ServiceUri" x.serviceUri] + ofValue v := do + let childHandle ← v.req "ChildHandle" + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let ipamInternetRegistryAssociationId ← v.req "IpamInternetRegistryAssociationId" + let parentBpkiTa ← v.req "ParentBpkiTa" + let parentHandle ← v.req "ParentHandle" + let rpkiVersion ← v.req "RpkiVersion" + let serviceUri ← v.req "ServiceUri" + return { childHandle, clientToken, dryRun, ipamInternetRegistryAssociationId, parentBpkiTa, parentHandle, rpkiVersion, serviceUri } + +structure EnableIpamOrganizationAdminAccountRequest where + /-- The Organizations member account ID that you want to enable as the IPAM account. -/ + delegatedAdminAccountId : String + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableIpamOrganizationAdminAccountRequest where + schema := .struct "EnableIpamOrganizationAdminAccountRequest" [({ name := "DelegatedAdminAccountId", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "DelegatedAdminAccountId" x.delegatedAdminAccountId, putOpt "DryRun" x.dryRun] + ofValue v := do + let delegatedAdminAccountId ← v.req "DelegatedAdminAccountId" + let dryRun ← v.opt "DryRun" + return { delegatedAdminAccountId, dryRun } + +structure EnableIpamOrganizationAdminAccountResult where + /-- The result of enabling the IPAM account. -/ + success : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableIpamOrganizationAdminAccountResult where + schema := .struct "EnableIpamOrganizationAdminAccountResult" [({ name := "Success", xmlName := some "success", queryName := some "Success" }, .bool)] + toValue x := record [putOpt "Success" x.success] + ofValue v := do + let success ← v.opt "Success" + return { success } + +structure EnableIpamPolicyRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM policy to enable. -/ + ipamPolicyId : String + /-- A target can be an individual Amazon Web Services account or an entity within an Amazon Web Services Organization to which an IPAM policy can be applied. -/ + organizationTargetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableIpamPolicyRequest where + schema := .struct "EnableIpamPolicyRequest" [({ name := "DryRun" }, .bool), + ({ name := "IpamPolicyId", required := true }, .string), + ({ name := "OrganizationTargetId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "IpamPolicyId" x.ipamPolicyId, putOpt "OrganizationTargetId" x.organizationTargetId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let ipamPolicyId ← v.req "IpamPolicyId" + let organizationTargetId ← v.opt "OrganizationTargetId" + return { dryRun, ipamPolicyId, organizationTargetId } + +structure EnableIpamPolicyResult where + /-- The ID of the IPAM policy that was enabled. -/ + ipamPolicyId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableIpamPolicyResult where + schema := .struct "EnableIpamPolicyResult" [({ name := "IpamPolicyId", xmlName := some "ipamPolicyId", queryName := some "IpamPolicyId" }, .string)] + toValue x := record [putOpt "IpamPolicyId" x.ipamPolicyId] + ofValue v := do + let ipamPolicyId ← v.opt "IpamPolicyId" + return { ipamPolicyId } + +structure EnableReachabilityAnalyzerOrganizationSharingRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableReachabilityAnalyzerOrganizationSharingRequest where + schema := .struct "EnableReachabilityAnalyzerOrganizationSharingRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure EnableReachabilityAnalyzerOrganizationSharingResult where + /-- Returns true if the request succeeds; otherwise, returns an error. -/ + returnValue : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableReachabilityAnalyzerOrganizationSharingResult where + schema := .struct "EnableReachabilityAnalyzerOrganizationSharingResult" [({ name := "ReturnValue", xmlName := some "returnValue", queryName := some "ReturnValue" }, .bool)] + toValue x := record [putOpt "ReturnValue" x.returnValue] + ofValue v := do + let returnValue ← v.opt "ReturnValue" + return { returnValue } + +structure EnableRouteServerPropagationRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the route server for which to enable propagation. -/ + routeServerId : String + /-- The ID of the route table to which route server will propagate routes. -/ + routeTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableRouteServerPropagationRequest where + schema := .struct "EnableRouteServerPropagationRequest" [({ name := "DryRun" }, .bool), + ({ name := "RouteServerId", required := true }, .string), + ({ name := "RouteTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "RouteServerId" x.routeServerId, put "RouteTableId" x.routeTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let routeServerId ← v.req "RouteServerId" + let routeTableId ← v.req "RouteTableId" + return { dryRun, routeServerId, routeTableId } + +structure EnableSerialConsoleAccessRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableSerialConsoleAccessRequest where + schema := .struct "EnableSerialConsoleAccessRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure EnableSerialConsoleAccessResult where + /-- If true , access to the EC2 serial console of all instances is enabled for your account. -/ + serialConsoleAccessEnabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableSerialConsoleAccessResult where + schema := .struct "EnableSerialConsoleAccessResult" [({ name := "SerialConsoleAccessEnabled", xmlName := some "serialConsoleAccessEnabled", queryName := some "SerialConsoleAccessEnabled" }, .bool)] + toValue x := record [putOpt "SerialConsoleAccessEnabled" x.serialConsoleAccessEnabled] + ofValue v := do + let serialConsoleAccessEnabled ← v.opt "SerialConsoleAccessEnabled" + return { serialConsoleAccessEnabled } + +structure EnableTransitGatewayRouteTablePropagationRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the transit gateway route table announcement. -/ + transitGatewayRouteTableAnnouncementId : Option String := none + /-- The ID of the propagation route table. -/ + transitGatewayRouteTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableTransitGatewayRouteTablePropagationRequest where + schema := .struct "EnableTransitGatewayRouteTablePropagationRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayRouteTableAnnouncementId" }, .string), + ({ name := "TransitGatewayRouteTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, putOpt "TransitGatewayRouteTableAnnouncementId" x.transitGatewayRouteTableAnnouncementId, put "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayRouteTableAnnouncementId ← v.opt "TransitGatewayRouteTableAnnouncementId" + let transitGatewayRouteTableId ← v.req "TransitGatewayRouteTableId" + return { dryRun, transitGatewayAttachmentId, transitGatewayRouteTableAnnouncementId, transitGatewayRouteTableId } + +/-- Contains the parameters for EnableVgwRoutePropagation. -/ +structure EnableVgwRoutePropagationRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the virtual private gateway that is attached to a VPC. -/ + gatewayId : String + /-- The ID of the route table. -/ + routeTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableVgwRoutePropagationRequest where + schema := .struct "EnableVgwRoutePropagationRequest" [({ name := "DryRun" }, .bool), + ({ name := "GatewayId", required := true }, .string), + ({ name := "RouteTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "GatewayId" x.gatewayId, put "RouteTableId" x.routeTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let gatewayId ← v.req "GatewayId" + let routeTableId ← v.req "RouteTableId" + return { dryRun, gatewayId, routeTableId } + +structure EnableVolumeIORequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the volume. -/ + volumeId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableVolumeIORequest where + schema := .struct "EnableVolumeIORequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "VolumeId", required := true, xmlName := some "volumeId", queryName := some "VolumeId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VolumeId" x.volumeId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let volumeId ← v.req "VolumeId" + return { dryRun, volumeId } + +structure EnableVpcClassicLinkDnsSupportRequest where + /-- The ID of the VPC. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableVpcClassicLinkDnsSupportRequest where + schema := .struct "EnableVpcClassicLinkDnsSupportRequest" [({ name := "VpcId", xmlName := some "VpcId" }, .string)] + toValue x := record [putOpt "VpcId" x.vpcId] + ofValue v := do + let vpcId ← v.opt "VpcId" + return { vpcId } + +structure EnableVpcClassicLinkDnsSupportResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableVpcClassicLinkDnsSupportResult where + schema := .struct "EnableVpcClassicLinkDnsSupportResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure EnableVpcClassicLinkRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the VPC. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableVpcClassicLinkRequest where + schema := .struct "EnableVpcClassicLinkRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "VpcId", required := true, xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VpcId" x.vpcId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let vpcId ← v.req "VpcId" + return { dryRun, vpcId } + +structure EnableVpcClassicLinkResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableVpcClassicLinkResult where + schema := .struct "EnableVpcClassicLinkResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +/-- Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. -/ +structure EnclaveOptions where + /-- If this parameter is set to true , the instance is enabled for Amazon Web Services Nitro Enclaves; otherwise, it is not enabled for Amazon Web Services Nitro Enclaves. -/ + enabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnclaveOptions where + schema := .struct "EnclaveOptions" [({ name := "Enabled", xmlName := some "enabled", queryName := some "Enabled" }, .bool)] + toValue x := record [putOpt "Enabled" x.enabled] + ofValue v := do + let enabled ← v.opt "Enabled" + return { enabled } + +/-- Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. -/ +structure EnclaveOptionsRequest where + /-- To enable the instance for Amazon Web Services Nitro Enclaves, set this parameter to true . -/ + enabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnclaveOptionsRequest where + schema := .struct "EnclaveOptionsRequest" [({ name := "Enabled" }, .bool)] + toValue x := record [putOpt "Enabled" x.enabled] + ofValue v := do + let enabled ← v.opt "Enabled" + return { enabled } + +inductive EncryptionStateValue where + | disabled + | disabling + | enabled + | enabling +deriving DecidableEq, Repr, Inhabited + +def EncryptionStateValue.wire : EncryptionStateValue → String + | .disabled => "disabled" + | .disabling => "disabling" + | .enabled => "enabled" + | .enabling => "enabling" + +def EncryptionStateValue.wireValues : List (String × EncryptionStateValue) := [ + ("disabled", .disabled), + ("disabling", .disabling), + ("enabled", .enabled), + ("enabling", .enabling)] + +def EncryptionStateValue.ofWire (text : String) : Except String EncryptionStateValue := + match List.find? (·.1 == text) EncryptionStateValue.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"EncryptionStateValue has no value {text}" + +instance : Key EncryptionStateValue := ⟨EncryptionStateValue.wire, EncryptionStateValue.ofWire⟩ + +instance : Shape EncryptionStateValue where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => EncryptionStateValue.ofWire text + | _ => .error "expected a string" + +inductive EncryptionSupportOptionValue where + | disable + | enable +deriving DecidableEq, Repr, Inhabited + +def EncryptionSupportOptionValue.wire : EncryptionSupportOptionValue → String + | .disable => "disable" + | .enable => "enable" + +def EncryptionSupportOptionValue.wireValues : List (String × EncryptionSupportOptionValue) := [ + ("disable", .disable), + ("enable", .enable)] + +def EncryptionSupportOptionValue.ofWire (text : String) : Except String EncryptionSupportOptionValue := + match List.find? (·.1 == text) EncryptionSupportOptionValue.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"EncryptionSupportOptionValue has no value {text}" + +instance : Key EncryptionSupportOptionValue := ⟨EncryptionSupportOptionValue.wire, EncryptionSupportOptionValue.ofWire⟩ + +instance : Shape EncryptionSupportOptionValue where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => EncryptionSupportOptionValue.ofWire text + | _ => .error "expected a string" + +inductive EndDateType where + | limited + | unlimited +deriving DecidableEq, Repr, Inhabited + +def EndDateType.wire : EndDateType → String + | .limited => "limited" + | .unlimited => "unlimited" + +def EndDateType.wireValues : List (String × EndDateType) := [ + ("limited", .limited), + ("unlimited", .unlimited)] + +def EndDateType.ofWire (text : String) : Except String EndDateType := + match List.find? (·.1 == text) EndDateType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"EndDateType has no value {text}" + +instance : Key EndDateType := ⟨EndDateType.wire, EndDateType.ofWire⟩ + +instance : Shape EndDateType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => EndDateType.ofWire text + | _ => .error "expected a string" + +inductive EndpointIpAddressType where + | dual_stack + | ipv4 + | ipv6 +deriving DecidableEq, Repr, Inhabited + +def EndpointIpAddressType.wire : EndpointIpAddressType → String + | .dual_stack => "dual-stack" + | .ipv4 => "ipv4" + | .ipv6 => "ipv6" + +def EndpointIpAddressType.wireValues : List (String × EndpointIpAddressType) := [ + ("dual-stack", .dual_stack), + ("ipv4", .ipv4), + ("ipv6", .ipv6)] + +def EndpointIpAddressType.ofWire (text : String) : Except String EndpointIpAddressType := + match List.find? (·.1 == text) EndpointIpAddressType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"EndpointIpAddressType has no value {text}" + +instance : Key EndpointIpAddressType := ⟨EndpointIpAddressType.wire, EndpointIpAddressType.ofWire⟩ + +instance : Shape EndpointIpAddressType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => EndpointIpAddressType.ofWire text + | _ => .error "expected a string" + +inductive EphemeralNvmeSupport where + | required + | supported + | unsupported +deriving DecidableEq, Repr, Inhabited + +def EphemeralNvmeSupport.wire : EphemeralNvmeSupport → String + | .required => "required" + | .supported => "supported" + | .unsupported => "unsupported" + +def EphemeralNvmeSupport.wireValues : List (String × EphemeralNvmeSupport) := [ + ("required", .required), + ("supported", .supported), + ("unsupported", .unsupported)] + +def EphemeralNvmeSupport.ofWire (text : String) : Except String EphemeralNvmeSupport := + match List.find? (·.1 == text) EphemeralNvmeSupport.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"EphemeralNvmeSupport has no value {text}" + +instance : Key EphemeralNvmeSupport := ⟨EphemeralNvmeSupport.wire, EphemeralNvmeSupport.ofWire⟩ + +instance : Shape EphemeralNvmeSupport where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => EphemeralNvmeSupport.ofWire text + | _ => .error "expected a string" + +inductive EventCode where + | instance_reboot + | instance_retirement + | instance_stop + | system_maintenance + | system_reboot +deriving DecidableEq, Repr, Inhabited + +def EventCode.wire : EventCode → String + | .instance_reboot => "instance-reboot" + | .instance_retirement => "instance-retirement" + | .instance_stop => "instance-stop" + | .system_maintenance => "system-maintenance" + | .system_reboot => "system-reboot" + +def EventCode.wireValues : List (String × EventCode) := [ + ("instance-reboot", .instance_reboot), + ("instance-retirement", .instance_retirement), + ("instance-stop", .instance_stop), + ("system-maintenance", .system_maintenance), + ("system-reboot", .system_reboot)] + +def EventCode.ofWire (text : String) : Except String EventCode := + match List.find? (·.1 == text) EventCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"EventCode has no value {text}" + +instance : Key EventCode := ⟨EventCode.wire, EventCode.ofWire⟩ + +instance : Shape EventCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => EventCode.ofWire text + | _ => .error "expected a string" + +/-- Describes an EC2 Fleet or Spot Fleet event. -/ +structure EventInformation where + /-- The description of the event. -/ + eventDescription : Option String := none + /-- The event. -/ + eventSubType : Option String := none + /-- The ID of the instance. -/ + instanceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EventInformation where + schema := .struct "EventInformation" [({ name := "EventDescription", xmlName := some "eventDescription", queryName := some "EventDescription" }, .string), + ({ name := "EventSubType", xmlName := some "eventSubType", queryName := some "EventSubType" }, .string), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string)] + toValue x := record [putOpt "EventDescription" x.eventDescription, putOpt "EventSubType" x.eventSubType, putOpt "InstanceId" x.instanceId] + ofValue v := do + let eventDescription ← v.opt "EventDescription" + let eventSubType ← v.opt "EventSubType" + let instanceId ← v.opt "InstanceId" + return { eventDescription, eventSubType, instanceId } + +inductive EventType where + | batcH_CHANGE + | error + | information + | instancE_CHANGE +deriving DecidableEq, Repr, Inhabited + +def EventType.wire : EventType → String + | .batcH_CHANGE => "fleetRequestChange" + | .error => "error" + | .information => "information" + | .instancE_CHANGE => "instanceChange" + +def EventType.wireValues : List (String × EventType) := [ + ("fleetRequestChange", .batcH_CHANGE), + ("error", .error), + ("information", .information), + ("instanceChange", .instancE_CHANGE)] + +def EventType.ofWire (text : String) : Except String EventType := + match List.find? (·.1 == text) EventType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"EventType has no value {text}" + +instance : Key EventType := ⟨EventType.wire, EventType.ofWire⟩ + +instance : Shape EventType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => EventType.ofWire text + | _ => .error "expected a string" + +inductive ExcessCapacityTerminationPolicy where + | default + | nO_TERMINATION +deriving DecidableEq, Repr, Inhabited + +def ExcessCapacityTerminationPolicy.wire : ExcessCapacityTerminationPolicy → String + | .default => "default" + | .nO_TERMINATION => "noTermination" + +def ExcessCapacityTerminationPolicy.wireValues : List (String × ExcessCapacityTerminationPolicy) := [ + ("default", .default), + ("noTermination", .nO_TERMINATION)] + +def ExcessCapacityTerminationPolicy.ofWire (text : String) : Except String ExcessCapacityTerminationPolicy := + match List.find? (·.1 == text) ExcessCapacityTerminationPolicy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ExcessCapacityTerminationPolicy has no value {text}" + +instance : Key ExcessCapacityTerminationPolicy := ⟨ExcessCapacityTerminationPolicy.wire, ExcessCapacityTerminationPolicy.ofWire⟩ + +instance : Shape ExcessCapacityTerminationPolicy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ExcessCapacityTerminationPolicy.ofWire text + | _ => .error "expected a string" + +structure ExportClientVpnClientCertificateRevocationListRequest where + /-- The ID of the Client VPN endpoint. -/ + clientVpnEndpointId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExportClientVpnClientCertificateRevocationListRequest where + schema := .struct "ExportClientVpnClientCertificateRevocationListRequest" [({ name := "ClientVpnEndpointId", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "DryRun" x.dryRun] + ofValue v := do + let clientVpnEndpointId ← v.req "ClientVpnEndpointId" + let dryRun ← v.opt "DryRun" + return { clientVpnEndpointId, dryRun } + +structure ExportClientVpnClientConfigurationRequest where + /-- The ID of the Client VPN endpoint. -/ + clientVpnEndpointId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExportClientVpnClientConfigurationRequest where + schema := .struct "ExportClientVpnClientConfigurationRequest" [({ name := "ClientVpnEndpointId", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "DryRun" x.dryRun] + ofValue v := do + let clientVpnEndpointId ← v.req "ClientVpnEndpointId" + let dryRun ← v.opt "DryRun" + return { clientVpnEndpointId, dryRun } + +structure ExportClientVpnClientConfigurationResult where + /-- The contents of the Client VPN endpoint configuration file. -/ + clientConfiguration : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExportClientVpnClientConfigurationResult where + schema := .struct "ExportClientVpnClientConfigurationResult" [({ name := "ClientConfiguration", xmlName := some "clientConfiguration", queryName := some "ClientConfiguration" }, .string)] + toValue x := record [putOpt "ClientConfiguration" x.clientConfiguration] + ofValue v := do + let clientConfiguration ← v.opt "ClientConfiguration" + return { clientConfiguration } + +inductive ExportEnvironment where + | citrix + | microsoft + | vmware +deriving DecidableEq, Repr, Inhabited + +def ExportEnvironment.wire : ExportEnvironment → String + | .citrix => "citrix" + | .microsoft => "microsoft" + | .vmware => "vmware" + +def ExportEnvironment.wireValues : List (String × ExportEnvironment) := [ + ("citrix", .citrix), + ("microsoft", .microsoft), + ("vmware", .vmware)] + +def ExportEnvironment.ofWire (text : String) : Except String ExportEnvironment := + match List.find? (·.1 == text) ExportEnvironment.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ExportEnvironment has no value {text}" + +instance : Key ExportEnvironment := ⟨ExportEnvironment.wire, ExportEnvironment.ofWire⟩ + +instance : Shape ExportEnvironment where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ExportEnvironment.ofWire text + | _ => .error "expected a string" + +/-- Describes the destination for an export image task. -/ +structure ExportTaskS3Location where + /-- The destination Amazon S3 bucket. -/ + s3Bucket : Option String := none + /-- The prefix (logical hierarchy) in the bucket. -/ + s3Prefix : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExportTaskS3Location where + schema := .struct "ExportTaskS3Location" [({ name := "S3Bucket", xmlName := some "s3Bucket", queryName := some "S3Bucket" }, .string), + ({ name := "S3Prefix", xmlName := some "s3Prefix", queryName := some "S3Prefix" }, .string)] + toValue x := record [putOpt "S3Bucket" x.s3Bucket, putOpt "S3Prefix" x.s3Prefix] + ofValue v := do + let s3Bucket ← v.opt "S3Bucket" + let s3Prefix ← v.opt "S3Prefix" + return { s3Bucket, s3Prefix } + +/-- Describes the destination for an export image task. -/ +structure ExportTaskS3LocationRequest where + /-- The destination Amazon S3 bucket. -/ + s3Bucket : String + /-- The prefix (logical hierarchy) in the bucket. -/ + s3Prefix : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExportTaskS3LocationRequest where + schema := .struct "ExportTaskS3LocationRequest" [({ name := "S3Bucket", required := true }, .string), + ({ name := "S3Prefix" }, .string)] + toValue x := record [put "S3Bucket" x.s3Bucket, putOpt "S3Prefix" x.s3Prefix] + ofValue v := do + let s3Bucket ← v.req "S3Bucket" + let s3Prefix ← v.opt "S3Prefix" + return { s3Bucket, s3Prefix } + +inductive ExportTaskState where + | active + | cancelled + | cancelling + | completed +deriving DecidableEq, Repr, Inhabited + +def ExportTaskState.wire : ExportTaskState → String + | .active => "active" + | .cancelled => "cancelled" + | .cancelling => "cancelling" + | .completed => "completed" + +def ExportTaskState.wireValues : List (String × ExportTaskState) := [ + ("active", .active), + ("cancelled", .cancelled), + ("cancelling", .cancelling), + ("completed", .completed)] + +def ExportTaskState.ofWire (text : String) : Except String ExportTaskState := + match List.find? (·.1 == text) ExportTaskState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ExportTaskState has no value {text}" + +instance : Key ExportTaskState := ⟨ExportTaskState.wire, ExportTaskState.ofWire⟩ + +instance : Shape ExportTaskState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ExportTaskState.ofWire text + | _ => .error "expected a string" + +structure ExportTransitGatewayRoutesResult where + /-- The URL of the exported file in Amazon S3. -/ + s3Location : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExportTransitGatewayRoutesResult where + schema := .struct "ExportTransitGatewayRoutesResult" [({ name := "S3Location", xmlName := some "s3Location", queryName := some "S3Location" }, .string)] + toValue x := record [putOpt "S3Location" x.s3Location] + ofValue v := do + let s3Location ← v.opt "S3Location" + return { s3Location } + +structure ExportVerifiedAccessInstanceClientConfigurationRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Verified Access instance. -/ + verifiedAccessInstanceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExportVerifiedAccessInstanceClientConfigurationRequest where + schema := .struct "ExportVerifiedAccessInstanceClientConfigurationRequest" [({ name := "DryRun" }, .bool), + ({ name := "VerifiedAccessInstanceId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VerifiedAccessInstanceId" x.verifiedAccessInstanceId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let verifiedAccessInstanceId ← v.req "VerifiedAccessInstanceId" + return { dryRun, verifiedAccessInstanceId } + +/-- Request to create a launch template for a Windows fast launch enabled AMI. -/ +structure FastLaunchLaunchTemplateSpecificationRequest where + /-- Specify the ID of the launch template that the AMI should use for Windows fast launch. -/ + launchTemplateId : Option String := none + /-- Specify the name of the launch template that the AMI should use for Windows fast launch. -/ + launchTemplateName : Option String := none + /-- Specify the version of the launch template that the AMI should use for Windows fast launch. -/ + version : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape FastLaunchLaunchTemplateSpecificationRequest where + schema := .struct "FastLaunchLaunchTemplateSpecificationRequest" [({ name := "LaunchTemplateId" }, .string), + ({ name := "LaunchTemplateName" }, .string), + ({ name := "Version", required := true }, .string)] + toValue x := record [putOpt "LaunchTemplateId" x.launchTemplateId, putOpt "LaunchTemplateName" x.launchTemplateName, put "Version" x.version] + ofValue v := do + let launchTemplateId ← v.opt "LaunchTemplateId" + let launchTemplateName ← v.opt "LaunchTemplateName" + let version ← v.req "Version" + return { launchTemplateId, launchTemplateName, version } + +/-- Identifies the launch template that the AMI uses for Windows fast launch. -/ +structure FastLaunchLaunchTemplateSpecificationResponse where + /-- The ID of the launch template that the AMI uses for Windows fast launch. -/ + launchTemplateId : Option String := none + /-- The name of the launch template that the AMI uses for Windows fast launch. -/ + launchTemplateName : Option String := none + /-- The version of the launch template that the AMI uses for Windows fast launch. -/ + version : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FastLaunchLaunchTemplateSpecificationResponse where + schema := .struct "FastLaunchLaunchTemplateSpecificationResponse" [({ name := "LaunchTemplateId", xmlName := some "launchTemplateId", queryName := some "LaunchTemplateId" }, .string), + ({ name := "LaunchTemplateName", xmlName := some "launchTemplateName", queryName := some "LaunchTemplateName" }, .string), + ({ name := "Version", xmlName := some "version", queryName := some "Version" }, .string)] + toValue x := record [putOpt "LaunchTemplateId" x.launchTemplateId, putOpt "LaunchTemplateName" x.launchTemplateName, putOpt "Version" x.version] + ofValue v := do + let launchTemplateId ← v.opt "LaunchTemplateId" + let launchTemplateName ← v.opt "LaunchTemplateName" + let version ← v.opt "Version" + return { launchTemplateId, launchTemplateName, version } + +inductive FastLaunchResourceType where + | snapshot +deriving DecidableEq, Repr, Inhabited + +def FastLaunchResourceType.wire : FastLaunchResourceType → String + | .snapshot => "snapshot" + +def FastLaunchResourceType.wireValues : List (String × FastLaunchResourceType) := [ + ("snapshot", .snapshot)] + +def FastLaunchResourceType.ofWire (text : String) : Except String FastLaunchResourceType := + match List.find? (·.1 == text) FastLaunchResourceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FastLaunchResourceType has no value {text}" + +instance : Key FastLaunchResourceType := ⟨FastLaunchResourceType.wire, FastLaunchResourceType.ofWire⟩ + +instance : Shape FastLaunchResourceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FastLaunchResourceType.ofWire text + | _ => .error "expected a string" + +/-- Configuration settings for creating and managing pre-provisioned snapshots for a Windows fast launch enabled AMI. -/ +structure FastLaunchSnapshotConfigurationRequest where + /-- The number of pre-provisioned snapshots to keep on hand for a Windows fast launch enabled AMI. -/ + targetResourceCount : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FastLaunchSnapshotConfigurationRequest where + schema := .struct "FastLaunchSnapshotConfigurationRequest" [({ name := "TargetResourceCount" }, .int)] + toValue x := record [putOpt "TargetResourceCount" x.targetResourceCount] + ofValue v := do + let targetResourceCount ← v.opt "TargetResourceCount" + return { targetResourceCount } + +/-- Configuration settings for creating and managing pre-provisioned snapshots for a Windows fast launch enabled Windows AMI. -/ +structure FastLaunchSnapshotConfigurationResponse where + /-- The number of pre-provisioned snapshots requested to keep on hand for a Windows fast launch enabled AMI. -/ + targetResourceCount : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FastLaunchSnapshotConfigurationResponse where + schema := .struct "FastLaunchSnapshotConfigurationResponse" [({ name := "TargetResourceCount", xmlName := some "targetResourceCount", queryName := some "TargetResourceCount" }, .int)] + toValue x := record [putOpt "TargetResourceCount" x.targetResourceCount] + ofValue v := do + let targetResourceCount ← v.opt "TargetResourceCount" + return { targetResourceCount } + +inductive FastLaunchStateCode where + | disabling + | disabling_failed + | enabled + | enabled_failed + | enabling + | enabling_failed +deriving DecidableEq, Repr, Inhabited + +def FastLaunchStateCode.wire : FastLaunchStateCode → String + | .disabling => "disabling" + | .disabling_failed => "disabling-failed" + | .enabled => "enabled" + | .enabled_failed => "enabled-failed" + | .enabling => "enabling" + | .enabling_failed => "enabling-failed" + +def FastLaunchStateCode.wireValues : List (String × FastLaunchStateCode) := [ + ("disabling", .disabling), + ("disabling-failed", .disabling_failed), + ("enabled", .enabled), + ("enabled-failed", .enabled_failed), + ("enabling", .enabling), + ("enabling-failed", .enabling_failed)] + +def FastLaunchStateCode.ofWire (text : String) : Except String FastLaunchStateCode := + match List.find? (·.1 == text) FastLaunchStateCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FastLaunchStateCode has no value {text}" + +instance : Key FastLaunchStateCode := ⟨FastLaunchStateCode.wire, FastLaunchStateCode.ofWire⟩ + +instance : Shape FastLaunchStateCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FastLaunchStateCode.ofWire text + | _ => .error "expected a string" + +inductive FastSnapshotRestoreStateCode where + | disabled + | disabling + | enabled + | enabling + | optimizing +deriving DecidableEq, Repr, Inhabited + +def FastSnapshotRestoreStateCode.wire : FastSnapshotRestoreStateCode → String + | .disabled => "disabled" + | .disabling => "disabling" + | .enabled => "enabled" + | .enabling => "enabling" + | .optimizing => "optimizing" + +def FastSnapshotRestoreStateCode.wireValues : List (String × FastSnapshotRestoreStateCode) := [ + ("disabled", .disabled), + ("disabling", .disabling), + ("enabled", .enabled), + ("enabling", .enabling), + ("optimizing", .optimizing)] + +def FastSnapshotRestoreStateCode.ofWire (text : String) : Except String FastSnapshotRestoreStateCode := + match List.find? (·.1 == text) FastSnapshotRestoreStateCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FastSnapshotRestoreStateCode has no value {text}" + +instance : Key FastSnapshotRestoreStateCode := ⟨FastSnapshotRestoreStateCode.wire, FastSnapshotRestoreStateCode.ofWire⟩ + +instance : Shape FastSnapshotRestoreStateCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FastSnapshotRestoreStateCode.ofWire text + | _ => .error "expected a string" + +/-- Describes the IAM SAML identity providers used for federated authentication. -/ +structure FederatedAuthentication where + /-- The Amazon Resource Name (ARN) of the IAM SAML identity provider. -/ + samlProviderArn : Option String := none + /-- The Amazon Resource Name (ARN) of the IAM SAML identity provider for the self-service portal. -/ + selfServiceSamlProviderArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FederatedAuthentication where + schema := .struct "FederatedAuthentication" [({ name := "SamlProviderArn", xmlName := some "samlProviderArn", queryName := some "SamlProviderArn" }, .string), + ({ name := "SelfServiceSamlProviderArn", xmlName := some "selfServiceSamlProviderArn", queryName := some "SelfServiceSamlProviderArn" }, .string)] + toValue x := record [putOpt "SamlProviderArn" x.samlProviderArn, putOpt "SelfServiceSamlProviderArn" x.selfServiceSamlProviderArn] + ofValue v := do + let samlProviderArn ← v.opt "SamlProviderArn" + let selfServiceSamlProviderArn ← v.opt "SelfServiceSamlProviderArn" + return { samlProviderArn, selfServiceSamlProviderArn } + +/-- The IAM SAML identity provider used for federated authentication. -/ +structure FederatedAuthenticationRequest where + /-- The Amazon Resource Name (ARN) of the IAM SAML identity provider. -/ + samlProviderArn : Option String := none + /-- The Amazon Resource Name (ARN) of the IAM SAML identity provider for the self-service portal. -/ + selfServiceSAMLProviderArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FederatedAuthenticationRequest where + schema := .struct "FederatedAuthenticationRequest" [({ name := "SAMLProviderArn" }, .string), + ({ name := "SelfServiceSAMLProviderArn" }, .string)] + toValue x := record [putOpt "SAMLProviderArn" x.samlProviderArn, putOpt "SelfServiceSAMLProviderArn" x.selfServiceSAMLProviderArn] + ofValue v := do + let samlProviderArn ← v.opt "SAMLProviderArn" + let selfServiceSAMLProviderArn ← v.opt "SelfServiceSAMLProviderArn" + return { samlProviderArn, selfServiceSAMLProviderArn } + +/-- A filter name and value pair that is used to return a more specific list of results from a describe operation. -/ +structure Filter where + /-- The name of the filter. -/ + name : Option String := none + /-- The filter values. -/ + values : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Filter where + schema := .struct "Filter" [({ name := "Name" }, .string), + ({ name := "Values", xmlName := some "Value" }, (.list .string "item"))] + toValue x := record [putOpt "Name" x.name, putOpt "Values" x.values] + ofValue v := do + let name ← v.opt "Name" + let values ← v.opt "Values" + return { name, values } + +inductive FilterByDimension where + | accounT_ID + | accounT_NAME + | availabilitY_ZONE_ID + | instancE_FAMILY + | instancE_PLATFORM + | instancE_TYPE + | reservatioN_ARN + | reservatioN_CREATE_TIMESTAMP + | reservatioN_END_DATE_TYPE + | reservatioN_END_TIMESTAMP + | reservatioN_ID + | reservatioN_INSTANCE_MATCH_CRITERIA + | reservatioN_START_TIMESTAMP + | reservatioN_STATE + | reservatioN_TYPE + | reservatioN_UNUSED_FINANCIAL_OWNER + | resourcE_REGION + | tenancy +deriving DecidableEq, Repr, Inhabited + +def FilterByDimension.wire : FilterByDimension → String + | .accounT_ID => "account-id" + | .accounT_NAME => "account-name" + | .availabilitY_ZONE_ID => "availability-zone-id" + | .instancE_FAMILY => "instance-family" + | .instancE_PLATFORM => "instance-platform" + | .instancE_TYPE => "instance-type" + | .reservatioN_ARN => "reservation-arn" + | .reservatioN_CREATE_TIMESTAMP => "reservation-create-timestamp" + | .reservatioN_END_DATE_TYPE => "reservation-end-date-type" + | .reservatioN_END_TIMESTAMP => "reservation-end-timestamp" + | .reservatioN_ID => "reservation-id" + | .reservatioN_INSTANCE_MATCH_CRITERIA => "reservation-instance-match-criteria" + | .reservatioN_START_TIMESTAMP => "reservation-start-timestamp" + | .reservatioN_STATE => "reservation-state" + | .reservatioN_TYPE => "reservation-type" + | .reservatioN_UNUSED_FINANCIAL_OWNER => "reservation-unused-financial-owner" + | .resourcE_REGION => "resource-region" + | .tenancy => "tenancy" + +def FilterByDimension.wireValues : List (String × FilterByDimension) := [ + ("account-id", .accounT_ID), + ("account-name", .accounT_NAME), + ("availability-zone-id", .availabilitY_ZONE_ID), + ("instance-family", .instancE_FAMILY), + ("instance-platform", .instancE_PLATFORM), + ("instance-type", .instancE_TYPE), + ("reservation-arn", .reservatioN_ARN), + ("reservation-create-timestamp", .reservatioN_CREATE_TIMESTAMP), + ("reservation-end-date-type", .reservatioN_END_DATE_TYPE), + ("reservation-end-timestamp", .reservatioN_END_TIMESTAMP), + ("reservation-id", .reservatioN_ID), + ("reservation-instance-match-criteria", .reservatioN_INSTANCE_MATCH_CRITERIA), + ("reservation-start-timestamp", .reservatioN_START_TIMESTAMP), + ("reservation-state", .reservatioN_STATE), + ("reservation-type", .reservatioN_TYPE), + ("reservation-unused-financial-owner", .reservatioN_UNUSED_FINANCIAL_OWNER), + ("resource-region", .resourcE_REGION), + ("tenancy", .tenancy)] + +def FilterByDimension.ofWire (text : String) : Except String FilterByDimension := + match List.find? (·.1 == text) FilterByDimension.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FilterByDimension has no value {text}" + +instance : Key FilterByDimension := ⟨FilterByDimension.wire, FilterByDimension.ofWire⟩ + +instance : Shape FilterByDimension where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FilterByDimension.ofWire text + | _ => .error "expected a string" + +/-- Describes a port range. -/ +structure FilterPortRange where + /-- The first port in the range. -/ + fromPort : Option Int := none + /-- The last port in the range. -/ + toPort : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FilterPortRange where + schema := .struct "FilterPortRange" [({ name := "FromPort", xmlName := some "fromPort", queryName := some "FromPort" }, .int), + ({ name := "ToPort", xmlName := some "toPort", queryName := some "ToPort" }, .int)] + toValue x := record [putOpt "FromPort" x.fromPort, putOpt "ToPort" x.toPort] + ofValue v := do + let fromPort ← v.opt "FromPort" + let toPort ← v.opt "ToPort" + return { fromPort, toPort } + +inductive FindingsFound where + | false + | true + | unknown +deriving DecidableEq, Repr, Inhabited + +def FindingsFound.wire : FindingsFound → String + | .false => "false" + | .true => "true" + | .unknown => "unknown" + +def FindingsFound.wireValues : List (String × FindingsFound) := [ + ("false", .false), + ("true", .true), + ("unknown", .unknown)] + +def FindingsFound.ofWire (text : String) : Except String FindingsFound := + match List.find? (·.1 == text) FindingsFound.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FindingsFound has no value {text}" + +instance : Key FindingsFound := ⟨FindingsFound.wire, FindingsFound.ofWire⟩ + +instance : Shape FindingsFound where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FindingsFound.ofWire text + | _ => .error "expected a string" + +inductive FleetActivityStatus where + | error + | fulfilled + | pendinG_FULFILLMENT + | pendinG_TERMINATION +deriving DecidableEq, Repr, Inhabited + +def FleetActivityStatus.wire : FleetActivityStatus → String + | .error => "error" + | .fulfilled => "fulfilled" + | .pendinG_FULFILLMENT => "pending_fulfillment" + | .pendinG_TERMINATION => "pending_termination" + +def FleetActivityStatus.wireValues : List (String × FleetActivityStatus) := [ + ("error", .error), + ("fulfilled", .fulfilled), + ("pending_fulfillment", .pendinG_FULFILLMENT), + ("pending_termination", .pendinG_TERMINATION)] + +def FleetActivityStatus.ofWire (text : String) : Except String FleetActivityStatus := + match List.find? (·.1 == text) FleetActivityStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FleetActivityStatus has no value {text}" + +instance : Key FleetActivityStatus := ⟨FleetActivityStatus.wire, FleetActivityStatus.ofWire⟩ + +instance : Shape FleetActivityStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FleetActivityStatus.ofWire text + | _ => .error "expected a string" + +/-- Describes the target Capacity Reservations or Capacity Reservation Resource Groups for an EC2 Fleet that launches into reserved capacity. -/ +structure FleetCapacityReservationTargetRequest where + /-- The IDs of the Capacity Reservations in which to launch the instances. -/ + capacityReservationIds : Option (List String) := none + /-- The ARNs of the Capacity Reservation Resource Groups in which to launch the instances. -/ + capacityReservationResourceGroupArns : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FleetCapacityReservationTargetRequest where + schema := .struct "FleetCapacityReservationTargetRequest" [({ name := "CapacityReservationIds", xmlName := some "CapacityReservationId" }, (.list .string "item")), + ({ name := "CapacityReservationResourceGroupArns", xmlName := some "CapacityReservationResourceGroupArn" }, (.list .string "item"))] + toValue x := record [putOpt "CapacityReservationIds" x.capacityReservationIds, putOpt "CapacityReservationResourceGroupArns" x.capacityReservationResourceGroupArns] + ofValue v := do + let capacityReservationIds ← v.opt "CapacityReservationIds" + let capacityReservationResourceGroupArns ← v.opt "CapacityReservationResourceGroupArns" + return { capacityReservationIds, capacityReservationResourceGroupArns } + +inductive FleetCapacityReservationTenancy where + | default +deriving DecidableEq, Repr, Inhabited + +def FleetCapacityReservationTenancy.wire : FleetCapacityReservationTenancy → String + | .default => "default" + +def FleetCapacityReservationTenancy.wireValues : List (String × FleetCapacityReservationTenancy) := [ + ("default", .default)] + +def FleetCapacityReservationTenancy.ofWire (text : String) : Except String FleetCapacityReservationTenancy := + match List.find? (·.1 == text) FleetCapacityReservationTenancy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FleetCapacityReservationTenancy has no value {text}" + +instance : Key FleetCapacityReservationTenancy := ⟨FleetCapacityReservationTenancy.wire, FleetCapacityReservationTenancy.ofWire⟩ + +instance : Shape FleetCapacityReservationTenancy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FleetCapacityReservationTenancy.ofWire text + | _ => .error "expected a string" + +inductive FleetCapacityReservationUsageStrategy where + | usE_CAPACITY_RESERVATIONS_FIRST +deriving DecidableEq, Repr, Inhabited + +def FleetCapacityReservationUsageStrategy.wire : FleetCapacityReservationUsageStrategy → String + | .usE_CAPACITY_RESERVATIONS_FIRST => "use-capacity-reservations-first" + +def FleetCapacityReservationUsageStrategy.wireValues : List (String × FleetCapacityReservationUsageStrategy) := [ + ("use-capacity-reservations-first", .usE_CAPACITY_RESERVATIONS_FIRST)] + +def FleetCapacityReservationUsageStrategy.ofWire (text : String) : Except String FleetCapacityReservationUsageStrategy := + match List.find? (·.1 == text) FleetCapacityReservationUsageStrategy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FleetCapacityReservationUsageStrategy has no value {text}" + +instance : Key FleetCapacityReservationUsageStrategy := ⟨FleetCapacityReservationUsageStrategy.wire, FleetCapacityReservationUsageStrategy.ofWire⟩ + +instance : Shape FleetCapacityReservationUsageStrategy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FleetCapacityReservationUsageStrategy.ofWire text + | _ => .error "expected a string" + +inductive FleetEventType where + | fleeT_CHANGE + | instancE_CHANGE + | servicE_ERROR +deriving DecidableEq, Repr, Inhabited + +def FleetEventType.wire : FleetEventType → String + | .fleeT_CHANGE => "fleet-change" + | .instancE_CHANGE => "instance-change" + | .servicE_ERROR => "service-error" + +def FleetEventType.wireValues : List (String × FleetEventType) := [ + ("fleet-change", .fleeT_CHANGE), + ("instance-change", .instancE_CHANGE), + ("service-error", .servicE_ERROR)] + +def FleetEventType.ofWire (text : String) : Except String FleetEventType := + match List.find? (·.1 == text) FleetEventType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FleetEventType has no value {text}" + +instance : Key FleetEventType := ⟨FleetEventType.wire, FleetEventType.ofWire⟩ + +instance : Shape FleetEventType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FleetEventType.ofWire text + | _ => .error "expected a string" + +inductive FleetExcessCapacityTerminationPolicy where + | nO_TERMINATION + | termination +deriving DecidableEq, Repr, Inhabited + +def FleetExcessCapacityTerminationPolicy.wire : FleetExcessCapacityTerminationPolicy → String + | .nO_TERMINATION => "no-termination" + | .termination => "termination" + +def FleetExcessCapacityTerminationPolicy.wireValues : List (String × FleetExcessCapacityTerminationPolicy) := [ + ("no-termination", .nO_TERMINATION), + ("termination", .termination)] + +def FleetExcessCapacityTerminationPolicy.ofWire (text : String) : Except String FleetExcessCapacityTerminationPolicy := + match List.find? (·.1 == text) FleetExcessCapacityTerminationPolicy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FleetExcessCapacityTerminationPolicy has no value {text}" + +instance : Key FleetExcessCapacityTerminationPolicy := ⟨FleetExcessCapacityTerminationPolicy.wire, FleetExcessCapacityTerminationPolicy.ofWire⟩ + +instance : Shape FleetExcessCapacityTerminationPolicy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FleetExcessCapacityTerminationPolicy.ofWire text + | _ => .error "expected a string" + +inductive FleetHttpTokensState where + | optional + | required +deriving DecidableEq, Repr, Inhabited + +def FleetHttpTokensState.wire : FleetHttpTokensState → String + | .optional => "optional" + | .required => "required" + +def FleetHttpTokensState.wireValues : List (String × FleetHttpTokensState) := [ + ("optional", .optional), + ("required", .required)] + +def FleetHttpTokensState.ofWire (text : String) : Except String FleetHttpTokensState := + match List.find? (·.1 == text) FleetHttpTokensState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FleetHttpTokensState has no value {text}" + +instance : Key FleetHttpTokensState := ⟨FleetHttpTokensState.wire, FleetHttpTokensState.ofWire⟩ + +instance : Shape FleetHttpTokensState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FleetHttpTokensState.ofWire text + | _ => .error "expected a string" + +/-- Describes an IAM instance profile. -/ +structure FleetIamInstanceProfileSpecificationRequest where + /-- The Amazon Resource Name (ARN) of the instance profile. -/ + arn : Option String := none + /-- The name of the instance profile. -/ + name : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FleetIamInstanceProfileSpecificationRequest where + schema := .struct "FleetIamInstanceProfileSpecificationRequest" [({ name := "Arn" }, .string), + ({ name := "Name" }, .string)] + toValue x := record [putOpt "Arn" x.arn, putOpt "Name" x.name] + ofValue v := do + let arn ← v.opt "Arn" + let name ← v.opt "Name" + return { arn, name } + +inductive FleetInstanceMatchCriteria where + | «open» +deriving DecidableEq, Repr, Inhabited + +def FleetInstanceMatchCriteria.wire : FleetInstanceMatchCriteria → String + | .«open» => "open" + +def FleetInstanceMatchCriteria.wireValues : List (String × FleetInstanceMatchCriteria) := [ + ("open", .«open»)] + +def FleetInstanceMatchCriteria.ofWire (text : String) : Except String FleetInstanceMatchCriteria := + match List.find? (·.1 == text) FleetInstanceMatchCriteria.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FleetInstanceMatchCriteria has no value {text}" + +instance : Key FleetInstanceMatchCriteria := ⟨FleetInstanceMatchCriteria.wire, FleetInstanceMatchCriteria.ofWire⟩ + +instance : Shape FleetInstanceMatchCriteria where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FleetInstanceMatchCriteria.ofWire text + | _ => .error "expected a string" + +inductive FleetInstanceMetadataEndpointState where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def FleetInstanceMetadataEndpointState.wire : FleetInstanceMetadataEndpointState → String + | .disabled => "disabled" + | .enabled => "enabled" + +def FleetInstanceMetadataEndpointState.wireValues : List (String × FleetInstanceMetadataEndpointState) := [ + ("disabled", .disabled), + ("enabled", .enabled)] + +def FleetInstanceMetadataEndpointState.ofWire (text : String) : Except String FleetInstanceMetadataEndpointState := + match List.find? (·.1 == text) FleetInstanceMetadataEndpointState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FleetInstanceMetadataEndpointState has no value {text}" + +instance : Key FleetInstanceMetadataEndpointState := ⟨FleetInstanceMetadataEndpointState.wire, FleetInstanceMetadataEndpointState.ofWire⟩ + +instance : Shape FleetInstanceMetadataEndpointState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FleetInstanceMetadataEndpointState.ofWire text + | _ => .error "expected a string" + +/-- The Amazon EC2 launch template that can be used by a Spot Fleet to configure Amazon EC2 instances. -/ +structure FleetLaunchTemplateSpecification where + /-- The ID of the launch template. -/ + launchTemplateId : Option String := none + /-- The name of the launch template. -/ + launchTemplateName : Option String := none + /-- The launch template version number, $Latest , or $Default . -/ + version : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FleetLaunchTemplateSpecification where + schema := .struct "FleetLaunchTemplateSpecification" [({ name := "LaunchTemplateId", xmlName := some "launchTemplateId", queryName := some "LaunchTemplateId" }, .string), + ({ name := "LaunchTemplateName", xmlName := some "launchTemplateName", queryName := some "LaunchTemplateName" }, .string), + ({ name := "Version", xmlName := some "version", queryName := some "Version" }, .string)] + toValue x := record [putOpt "LaunchTemplateId" x.launchTemplateId, putOpt "LaunchTemplateName" x.launchTemplateName, putOpt "Version" x.version] + ofValue v := do + let launchTemplateId ← v.opt "LaunchTemplateId" + let launchTemplateName ← v.opt "LaunchTemplateName" + let version ← v.opt "Version" + return { launchTemplateId, launchTemplateName, version } + +/-- The Amazon EC2 launch template that can be used by an EC2 Fleet to configure Amazon EC2 instances. -/ +structure FleetLaunchTemplateSpecificationRequest where + /-- The ID of the launch template. -/ + launchTemplateId : Option String := none + /-- The name of the launch template. -/ + launchTemplateName : Option String := none + /-- The base64-encoded user data for instances launched by the fleet. -/ + launchTemplateSpecificationUserData : Option String := none + /-- The launch template version number, $Latest , or $Default . -/ + version : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FleetLaunchTemplateSpecificationRequest where + schema := .struct "FleetLaunchTemplateSpecificationRequest" [({ name := "LaunchTemplateId" }, .string), + ({ name := "LaunchTemplateName" }, .string), + ({ name := "LaunchTemplateSpecificationUserData" }, .string), + ({ name := "Version" }, .string)] + toValue x := record [putOpt "LaunchTemplateId" x.launchTemplateId, putOpt "LaunchTemplateName" x.launchTemplateName, putOpt "LaunchTemplateSpecificationUserData" x.launchTemplateSpecificationUserData, putOpt "Version" x.version] + ofValue v := do + let launchTemplateId ← v.opt "LaunchTemplateId" + let launchTemplateName ← v.opt "LaunchTemplateName" + let launchTemplateSpecificationUserData ← v.opt "LaunchTemplateSpecificationUserData" + let version ← v.opt "Version" + return { launchTemplateId, launchTemplateName, launchTemplateSpecificationUserData, version } + +inductive FleetOnDemandAllocationStrategy where + | lowesT_PRICE + | prioritized +deriving DecidableEq, Repr, Inhabited + +def FleetOnDemandAllocationStrategy.wire : FleetOnDemandAllocationStrategy → String + | .lowesT_PRICE => "lowest-price" + | .prioritized => "prioritized" + +def FleetOnDemandAllocationStrategy.wireValues : List (String × FleetOnDemandAllocationStrategy) := [ + ("lowest-price", .lowesT_PRICE), + ("prioritized", .prioritized)] + +def FleetOnDemandAllocationStrategy.ofWire (text : String) : Except String FleetOnDemandAllocationStrategy := + match List.find? (·.1 == text) FleetOnDemandAllocationStrategy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FleetOnDemandAllocationStrategy has no value {text}" + +instance : Key FleetOnDemandAllocationStrategy := ⟨FleetOnDemandAllocationStrategy.wire, FleetOnDemandAllocationStrategy.ofWire⟩ + +instance : Shape FleetOnDemandAllocationStrategy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FleetOnDemandAllocationStrategy.ofWire text + | _ => .error "expected a string" + +inductive FleetReplacementStrategy where + | launch + | launcH_BEFORE_TERMINATE +deriving DecidableEq, Repr, Inhabited + +def FleetReplacementStrategy.wire : FleetReplacementStrategy → String + | .launch => "launch" + | .launcH_BEFORE_TERMINATE => "launch-before-terminate" + +def FleetReplacementStrategy.wireValues : List (String × FleetReplacementStrategy) := [ + ("launch", .launch), + ("launch-before-terminate", .launcH_BEFORE_TERMINATE)] + +def FleetReplacementStrategy.ofWire (text : String) : Except String FleetReplacementStrategy := + match List.find? (·.1 == text) FleetReplacementStrategy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FleetReplacementStrategy has no value {text}" + +instance : Key FleetReplacementStrategy := ⟨FleetReplacementStrategy.wire, FleetReplacementStrategy.ofWire⟩ + +instance : Shape FleetReplacementStrategy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FleetReplacementStrategy.ofWire text + | _ => .error "expected a string" + +inductive FleetReservationType where + | capacitY_BLOCK + | interruptiblE_CAPACITY_RESERVATION + | oN_DEMAND_CAPACITY_RESERVATION +deriving DecidableEq, Repr, Inhabited + +def FleetReservationType.wire : FleetReservationType → String + | .capacitY_BLOCK => "capacity-block" + | .interruptiblE_CAPACITY_RESERVATION => "interruptible-capacity-reservation" + | .oN_DEMAND_CAPACITY_RESERVATION => "on-demand-capacity-reservation" + +def FleetReservationType.wireValues : List (String × FleetReservationType) := [ + ("capacity-block", .capacitY_BLOCK), + ("interruptible-capacity-reservation", .interruptiblE_CAPACITY_RESERVATION), + ("on-demand-capacity-reservation", .oN_DEMAND_CAPACITY_RESERVATION)] + +def FleetReservationType.ofWire (text : String) : Except String FleetReservationType := + match List.find? (·.1 == text) FleetReservationType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FleetReservationType has no value {text}" + +instance : Key FleetReservationType := ⟨FleetReservationType.wire, FleetReservationType.ofWire⟩ + +instance : Shape FleetReservationType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FleetReservationType.ofWire text + | _ => .error "expected a string" + +inductive FleetStateCode where + | active + | deleted + | deleteD_RUNNING + | deleteD_TERMINATING_INSTANCES + | failed + | modifying + | submitted +deriving DecidableEq, Repr, Inhabited + +def FleetStateCode.wire : FleetStateCode → String + | .active => "active" + | .deleted => "deleted" + | .deleteD_RUNNING => "deleted_running" + | .deleteD_TERMINATING_INSTANCES => "deleted_terminating" + | .failed => "failed" + | .modifying => "modifying" + | .submitted => "submitted" + +def FleetStateCode.wireValues : List (String × FleetStateCode) := [ + ("active", .active), + ("deleted", .deleted), + ("deleted_running", .deleteD_RUNNING), + ("deleted_terminating", .deleteD_TERMINATING_INSTANCES), + ("failed", .failed), + ("modifying", .modifying), + ("submitted", .submitted)] + +def FleetStateCode.ofWire (text : String) : Except String FleetStateCode := + match List.find? (·.1 == text) FleetStateCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FleetStateCode has no value {text}" + +instance : Key FleetStateCode := ⟨FleetStateCode.wire, FleetStateCode.ofWire⟩ + +instance : Shape FleetStateCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FleetStateCode.ofWire text + | _ => .error "expected a string" + +inductive FleetType where + | instant + | maintain + | request +deriving DecidableEq, Repr, Inhabited + +def FleetType.wire : FleetType → String + | .instant => "instant" + | .maintain => "maintain" + | .request => "request" + +def FleetType.wireValues : List (String × FleetType) := [ + ("instant", .instant), + ("maintain", .maintain), + ("request", .request)] + +def FleetType.ofWire (text : String) : Except String FleetType := + match List.find? (·.1 == text) FleetType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FleetType has no value {text}" + +instance : Key FleetType := ⟨FleetType.wire, FleetType.ofWire⟩ + +instance : Shape FleetType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FleetType.ofWire text + | _ => .error "expected a string" + +/-- The mode of a policy association. -/ +inductive FlexCostAllocationAssociationMode where + | direct + | scope +deriving DecidableEq, Repr, Inhabited + +def FlexCostAllocationAssociationMode.wire : FlexCostAllocationAssociationMode → String + | .direct => "direct" + | .scope => "scope" + +def FlexCostAllocationAssociationMode.wireValues : List (String × FlexCostAllocationAssociationMode) := [ + ("direct", .direct), + ("scope", .scope)] + +def FlexCostAllocationAssociationMode.ofWire (text : String) : Except String FlexCostAllocationAssociationMode := + match List.find? (·.1 == text) FlexCostAllocationAssociationMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FlexCostAllocationAssociationMode has no value {text}" + +instance : Key FlexCostAllocationAssociationMode := ⟨FlexCostAllocationAssociationMode.wire, FlexCostAllocationAssociationMode.ofWire⟩ + +instance : Shape FlexCostAllocationAssociationMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FlexCostAllocationAssociationMode.ofWire text + | _ => .error "expected a string" + +/-- Maps a CIDR range to a label for cost allocation reporting. -/ +structure FlexCostAllocationCidrMapping where + /-- The label to assign to the CIDR range. -/ + cidrLabel : String + /-- The CIDR range. -/ + cidrRange : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape FlexCostAllocationCidrMapping where + schema := .struct "FlexCostAllocationCidrMapping" [({ name := "CidrLabel", required := true }, .string), + ({ name := "CidrRange", required := true }, .string)] + toValue x := record [put "CidrLabel" x.cidrLabel, put "CidrRange" x.cidrRange] + ofValue v := do + let cidrLabel ← v.req "CidrLabel" + let cidrRange ← v.req "CidrRange" + return { cidrLabel, cidrRange } + +/-- A cost dimension used for allocation. -/ +inductive FlexCostAllocationCostDimension where + | datA_PROCESSING + | datA_TRANSFER +deriving DecidableEq, Repr, Inhabited + +def FlexCostAllocationCostDimension.wire : FlexCostAllocationCostDimension → String + | .datA_PROCESSING => "data-processing" + | .datA_TRANSFER => "data-transfer" + +def FlexCostAllocationCostDimension.wireValues : List (String × FlexCostAllocationCostDimension) := [ + ("data-processing", .datA_PROCESSING), + ("data-transfer", .datA_TRANSFER)] + +def FlexCostAllocationCostDimension.ofWire (text : String) : Except String FlexCostAllocationCostDimension := + match List.find? (·.1 == text) FlexCostAllocationCostDimension.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FlexCostAllocationCostDimension has no value {text}" + +instance : Key FlexCostAllocationCostDimension := ⟨FlexCostAllocationCostDimension.wire, FlexCostAllocationCostDimension.ofWire⟩ + +instance : Shape FlexCostAllocationCostDimension where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FlexCostAllocationCostDimension.ofWire text + | _ => .error "expected a string" + +/-- The type of scope used for a scope-based policy association. -/ +inductive FlexCostAllocationNetworkResourceScopeType where + | account + | subnet + | vpc +deriving DecidableEq, Repr, Inhabited + +def FlexCostAllocationNetworkResourceScopeType.wire : FlexCostAllocationNetworkResourceScopeType → String + | .account => "account" + | .subnet => "subnet" + | .vpc => "vpc" + +def FlexCostAllocationNetworkResourceScopeType.wireValues : List (String × FlexCostAllocationNetworkResourceScopeType) := [ + ("account", .account), + ("subnet", .subnet), + ("vpc", .vpc)] + +def FlexCostAllocationNetworkResourceScopeType.ofWire (text : String) : Except String FlexCostAllocationNetworkResourceScopeType := + match List.find? (·.1 == text) FlexCostAllocationNetworkResourceScopeType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FlexCostAllocationNetworkResourceScopeType has no value {text}" + +instance : Key FlexCostAllocationNetworkResourceScopeType := ⟨FlexCostAllocationNetworkResourceScopeType.wire, FlexCostAllocationNetworkResourceScopeType.ofWire⟩ + +instance : Shape FlexCostAllocationNetworkResourceScopeType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FlexCostAllocationNetworkResourceScopeType.ofWire text + | _ => .error "expected a string" + +/-- The type of network resource that a flex cost allocation policy applies to. -/ +inductive FlexCostAllocationNetworkResourceType where + | ec2 + | natgw + | pcx +deriving DecidableEq, Repr, Inhabited + +def FlexCostAllocationNetworkResourceType.wire : FlexCostAllocationNetworkResourceType → String + | .ec2 => "ec2" + | .natgw => "natgw" + | .pcx => "pcx" + +def FlexCostAllocationNetworkResourceType.wireValues : List (String × FlexCostAllocationNetworkResourceType) := [ + ("ec2", .ec2), + ("natgw", .natgw), + ("pcx", .pcx)] + +def FlexCostAllocationNetworkResourceType.ofWire (text : String) : Except String FlexCostAllocationNetworkResourceType := + match List.find? (·.1 == text) FlexCostAllocationNetworkResourceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FlexCostAllocationNetworkResourceType has no value {text}" + +instance : Key FlexCostAllocationNetworkResourceType := ⟨FlexCostAllocationNetworkResourceType.wire, FlexCostAllocationNetworkResourceType.ofWire⟩ + +instance : Shape FlexCostAllocationNetworkResourceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FlexCostAllocationNetworkResourceType.ofWire text + | _ => .error "expected a string" + +/-- Describes a policy, association, or network resource that a Networking Flexible Cost Allocation operation failed to process. -/ +structure FlexCostAllocationOperationFailure where + /-- The code that identifies the type of failure. -/ + failureCode : Option String := none + /-- The reason for the failure. -/ + failureReason : Option String := none + /-- The ID of the resource that could not be processed. -/ + resourceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FlexCostAllocationOperationFailure where + schema := .struct "FlexCostAllocationOperationFailure" [({ name := "FailureCode", xmlName := some "failureCode", queryName := some "FailureCode" }, .string), + ({ name := "FailureReason", xmlName := some "failureReason", queryName := some "FailureReason" }, .string), + ({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string)] + toValue x := record [putOpt "FailureCode" x.failureCode, putOpt "FailureReason" x.failureReason, putOpt "ResourceId" x.resourceId] + ofValue v := do + let failureCode ← v.opt "FailureCode" + let failureReason ← v.opt "FailureReason" + let resourceId ← v.opt "ResourceId" + return { failureCode, failureReason, resourceId } + +/-- The resource granularity level at which networking costs are allocated. -/ +inductive FlexCostAllocationReportingGranularity where + | account + | cidr + | ec2 + | eni + | peerinG_ID + | subnet + | vpc +deriving DecidableEq, Repr, Inhabited + +def FlexCostAllocationReportingGranularity.wire : FlexCostAllocationReportingGranularity → String + | .account => "account" + | .cidr => "cidr" + | .ec2 => "ec2" + | .eni => "eni" + | .peerinG_ID => "peering-id" + | .subnet => "subnet" + | .vpc => "vpc" + +def FlexCostAllocationReportingGranularity.wireValues : List (String × FlexCostAllocationReportingGranularity) := [ + ("account", .account), + ("cidr", .cidr), + ("ec2", .ec2), + ("eni", .eni), + ("peering-id", .peerinG_ID), + ("subnet", .subnet), + ("vpc", .vpc)] + +def FlexCostAllocationReportingGranularity.ofWire (text : String) : Except String FlexCostAllocationReportingGranularity := + match List.find? (·.1 == text) FlexCostAllocationReportingGranularity.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FlexCostAllocationReportingGranularity has no value {text}" + +instance : Key FlexCostAllocationReportingGranularity := ⟨FlexCostAllocationReportingGranularity.wire, FlexCostAllocationReportingGranularity.ofWire⟩ + +instance : Shape FlexCostAllocationReportingGranularity where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FlexCostAllocationReportingGranularity.ofWire text + | _ => .error "expected a string" + +inductive FlexibleEnaQueuesSupport where + | supported + | unsupported +deriving DecidableEq, Repr, Inhabited + +def FlexibleEnaQueuesSupport.wire : FlexibleEnaQueuesSupport → String + | .supported => "supported" + | .unsupported => "unsupported" + +def FlexibleEnaQueuesSupport.wireValues : List (String × FlexibleEnaQueuesSupport) := [ + ("supported", .supported), + ("unsupported", .unsupported)] + +def FlexibleEnaQueuesSupport.ofWire (text : String) : Except String FlexibleEnaQueuesSupport := + match List.find? (·.1 == text) FlexibleEnaQueuesSupport.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FlexibleEnaQueuesSupport has no value {text}" + +instance : Key FlexibleEnaQueuesSupport := ⟨FlexibleEnaQueuesSupport.wire, FlexibleEnaQueuesSupport.ofWire⟩ + +instance : Shape FlexibleEnaQueuesSupport where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FlexibleEnaQueuesSupport.ofWire text + | _ => .error "expected a string" + +inductive FlowLogsResourceType where + | coreNetwork + | coreNetworkAttachment + | coreNetworkEdge + | networkInterface + | regionalNatGateway + | subnet + | transitGateway + | transitGatewayAttachment + | vpc +deriving DecidableEq, Repr, Inhabited + +def FlowLogsResourceType.wire : FlowLogsResourceType → String + | .coreNetwork => "CoreNetwork" + | .coreNetworkAttachment => "CoreNetworkAttachment" + | .coreNetworkEdge => "CoreNetworkEdge" + | .networkInterface => "NetworkInterface" + | .regionalNatGateway => "RegionalNatGateway" + | .subnet => "Subnet" + | .transitGateway => "TransitGateway" + | .transitGatewayAttachment => "TransitGatewayAttachment" + | .vpc => "VPC" + +def FlowLogsResourceType.wireValues : List (String × FlowLogsResourceType) := [ + ("CoreNetwork", .coreNetwork), + ("CoreNetworkAttachment", .coreNetworkAttachment), + ("CoreNetworkEdge", .coreNetworkEdge), + ("NetworkInterface", .networkInterface), + ("RegionalNatGateway", .regionalNatGateway), + ("Subnet", .subnet), + ("TransitGateway", .transitGateway), + ("TransitGatewayAttachment", .transitGatewayAttachment), + ("VPC", .vpc)] + +def FlowLogsResourceType.ofWire (text : String) : Except String FlowLogsResourceType := + match List.find? (·.1 == text) FlowLogsResourceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FlowLogsResourceType has no value {text}" + +instance : Key FlowLogsResourceType := ⟨FlowLogsResourceType.wire, FlowLogsResourceType.ofWire⟩ + +instance : Shape FlowLogsResourceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FlowLogsResourceType.ofWire text + | _ => .error "expected a string" + +/-- Describes the memory for the FPGA accelerator for the instance type. -/ +structure FpgaDeviceMemoryInfo where + /-- The size of the memory available to the FPGA accelerator, in MiB. -/ + sizeInMiB : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FpgaDeviceMemoryInfo where + schema := .struct "FpgaDeviceMemoryInfo" [({ name := "SizeInMiB", xmlName := some "sizeInMiB", queryName := some "SizeInMiB" }, .int)] + toValue x := record [putOpt "SizeInMiB" x.sizeInMiB] + ofValue v := do + let sizeInMiB ← v.opt "SizeInMiB" + return { sizeInMiB } + +inductive FpgaImageAttributeName where + | description + | loadPermission + | name + | productCodes +deriving DecidableEq, Repr, Inhabited + +def FpgaImageAttributeName.wire : FpgaImageAttributeName → String + | .description => "description" + | .loadPermission => "loadPermission" + | .name => "name" + | .productCodes => "productCodes" + +def FpgaImageAttributeName.wireValues : List (String × FpgaImageAttributeName) := [ + ("description", .description), + ("loadPermission", .loadPermission), + ("name", .name), + ("productCodes", .productCodes)] + +def FpgaImageAttributeName.ofWire (text : String) : Except String FpgaImageAttributeName := + match List.find? (·.1 == text) FpgaImageAttributeName.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FpgaImageAttributeName has no value {text}" + +instance : Key FpgaImageAttributeName := ⟨FpgaImageAttributeName.wire, FpgaImageAttributeName.ofWire⟩ + +instance : Shape FpgaImageAttributeName where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FpgaImageAttributeName.ofWire text + | _ => .error "expected a string" + +inductive FpgaImageStateCode where + | available + | failed + | pending + | unavailable +deriving DecidableEq, Repr, Inhabited + +def FpgaImageStateCode.wire : FpgaImageStateCode → String + | .available => "available" + | .failed => "failed" + | .pending => "pending" + | .unavailable => "unavailable" + +def FpgaImageStateCode.wireValues : List (String × FpgaImageStateCode) := [ + ("available", .available), + ("failed", .failed), + ("pending", .pending), + ("unavailable", .unavailable)] + +def FpgaImageStateCode.ofWire (text : String) : Except String FpgaImageStateCode := + match List.find? (·.1 == text) FpgaImageStateCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FpgaImageStateCode has no value {text}" + +instance : Key FpgaImageStateCode := ⟨FpgaImageStateCode.wire, FpgaImageStateCode.ofWire⟩ + +instance : Shape FpgaImageStateCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FpgaImageStateCode.ofWire text + | _ => .error "expected a string" + +inductive GatewayAssociationState where + | associated + | associating + | disassociating + | not_associated +deriving DecidableEq, Repr, Inhabited + +def GatewayAssociationState.wire : GatewayAssociationState → String + | .associated => "associated" + | .associating => "associating" + | .disassociating => "disassociating" + | .not_associated => "not-associated" + +def GatewayAssociationState.wireValues : List (String × GatewayAssociationState) := [ + ("associated", .associated), + ("associating", .associating), + ("disassociating", .disassociating), + ("not-associated", .not_associated)] + +def GatewayAssociationState.ofWire (text : String) : Except String GatewayAssociationState := + match List.find? (·.1 == text) GatewayAssociationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"GatewayAssociationState has no value {text}" + +instance : Key GatewayAssociationState := ⟨GatewayAssociationState.wire, GatewayAssociationState.ofWire⟩ + +instance : Shape GatewayAssociationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => GatewayAssociationState.ofWire text + | _ => .error "expected a string" + +inductive GatewayType where + | ipsec_1 +deriving DecidableEq, Repr, Inhabited + +def GatewayType.wire : GatewayType → String + | .ipsec_1 => "ipsec.1" + +def GatewayType.wireValues : List (String × GatewayType) := [ + ("ipsec.1", .ipsec_1)] + +def GatewayType.ofWire (text : String) : Except String GatewayType := + match List.find? (·.1 == text) GatewayType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"GatewayType has no value {text}" + +instance : Key GatewayType := ⟨GatewayType.wire, GatewayType.ofWire⟩ + +instance : Shape GatewayType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => GatewayType.ofWire text + | _ => .error "expected a string" + +structure GetActiveVpnTunnelStatusRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request. -/ + dryRun : Option Bool := none + /-- The ID of the VPN connection for which to retrieve the active tunnel status. -/ + vpnConnectionId : String + /-- The external IP address of the VPN tunnel for which to retrieve the active status. -/ + vpnTunnelOutsideIpAddress : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetActiveVpnTunnelStatusRequest where + schema := .struct "GetActiveVpnTunnelStatusRequest" [({ name := "DryRun" }, .bool), + ({ name := "VpnConnectionId", required := true }, .string), + ({ name := "VpnTunnelOutsideIpAddress", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VpnConnectionId" x.vpnConnectionId, put "VpnTunnelOutsideIpAddress" x.vpnTunnelOutsideIpAddress] + ofValue v := do + let dryRun ← v.opt "DryRun" + let vpnConnectionId ← v.req "VpnConnectionId" + let vpnTunnelOutsideIpAddress ← v.req "VpnTunnelOutsideIpAddress" + return { dryRun, vpnConnectionId, vpnTunnelOutsideIpAddress } + +structure GetAllowedImagesSettingsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetAllowedImagesSettingsRequest where + schema := .struct "GetAllowedImagesSettingsRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure GetAssociatedEnclaveCertificateIamRolesRequest where + /-- The ARN of the ACM certificate for which to view the associated IAM roles, encryption keys, and Amazon S3 object information. -/ + certificateArn : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetAssociatedEnclaveCertificateIamRolesRequest where + schema := .struct "GetAssociatedEnclaveCertificateIamRolesRequest" [({ name := "CertificateArn", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "CertificateArn" x.certificateArn, putOpt "DryRun" x.dryRun] + ofValue v := do + let certificateArn ← v.req "CertificateArn" + let dryRun ← v.opt "DryRun" + return { certificateArn, dryRun } + +structure GetAssociatedIpv6PoolCidrsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the IPv6 address pool. -/ + poolId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetAssociatedIpv6PoolCidrsRequest where + schema := .struct "GetAssociatedIpv6PoolCidrsRequest" [({ name := "DryRun" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "PoolId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "PoolId" x.poolId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let poolId ← v.req "PoolId" + return { dryRun, maxResults, nextToken, poolId } + +structure GetCapacityManagerAttributesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetCapacityManagerAttributesRequest where + schema := .struct "GetCapacityManagerAttributesRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure GetCapacityManagerMonitoredTagKeysRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetCapacityManagerMonitoredTagKeysRequest where + schema := .struct "GetCapacityManagerMonitoredTagKeysRequest" [({ name := "DryRun" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, maxResults, nextToken } + +structure GetCapacityReservationUsageRequest where + /-- The ID of the Capacity Reservation. -/ + capacityReservationId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetCapacityReservationUsageRequest where + schema := .struct "GetCapacityReservationUsageRequest" [({ name := "CapacityReservationId", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [put "CapacityReservationId" x.capacityReservationId, putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityReservationId ← v.req "CapacityReservationId" + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { capacityReservationId, dryRun, maxResults, nextToken } + +structure GetClientVpnEndpointAuthorizationPolicyRequest where + /-- The ID of the Client VPN endpoint. -/ + clientVpnEndpointId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetClientVpnEndpointAuthorizationPolicyRequest where + schema := .struct "GetClientVpnEndpointAuthorizationPolicyRequest" [({ name := "ClientVpnEndpointId", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "DryRun" x.dryRun] + ofValue v := do + let clientVpnEndpointId ← v.req "ClientVpnEndpointId" + let dryRun ← v.opt "DryRun" + return { clientVpnEndpointId, dryRun } + +structure GetConsoleOutputRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the instance. -/ + instanceId : String + /-- When enabled, retrieves the latest console output for the instance. -/ + latest : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetConsoleOutputRequest where + schema := .struct "GetConsoleOutputRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "InstanceId", required := true }, .string), + ({ name := "Latest" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceId" x.instanceId, putOpt "Latest" x.latest] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceId ← v.req "InstanceId" + let latest ← v.opt "Latest" + return { dryRun, instanceId, latest } + +structure GetConsoleOutputResult where + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- The console output, base64-encoded. -/ + output : Option String := none + /-- The time at which the output was last updated. -/ + timestamp : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetConsoleOutputResult where + schema := .struct "GetConsoleOutputResult" [({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "Output", xmlName := some "output", queryName := some "Output" }, .string), + ({ name := "Timestamp", xmlName := some "timestamp", queryName := some "Timestamp" }, (.time none))] + toValue x := record [putOpt "InstanceId" x.instanceId, putOpt "Output" x.output, putOpt "Timestamp" x.timestamp] + ofValue v := do + let instanceId ← v.opt "InstanceId" + let output ← v.opt "Output" + let timestamp ← v.opt "Timestamp" + return { instanceId, output, timestamp } + +structure GetConsoleScreenshotRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the instance. -/ + instanceId : String + /-- When set to true , acts as keystroke input and wakes up an instance that's in standby or "sleep" mode. -/ + wakeUp : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetConsoleScreenshotRequest where + schema := .struct "GetConsoleScreenshotRequest" [({ name := "DryRun" }, .bool), + ({ name := "InstanceId", required := true }, .string), + ({ name := "WakeUp" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceId" x.instanceId, putOpt "WakeUp" x.wakeUp] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceId ← v.req "InstanceId" + let wakeUp ← v.opt "WakeUp" + return { dryRun, instanceId, wakeUp } + +structure GetConsoleScreenshotResult where + /-- The data that comprises the image. -/ + imageData : Option String := none + /-- The ID of the instance. -/ + instanceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetConsoleScreenshotResult where + schema := .struct "GetConsoleScreenshotResult" [({ name := "ImageData", xmlName := some "imageData", queryName := some "ImageData" }, .string), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string)] + toValue x := record [putOpt "ImageData" x.imageData, putOpt "InstanceId" x.instanceId] + ofValue v := do + let imageData ← v.opt "ImageData" + let instanceId ← v.opt "InstanceId" + return { imageData, instanceId } + +structure GetDeclarativePoliciesReportSummaryRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the report. -/ + reportId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetDeclarativePoliciesReportSummaryRequest where + schema := .struct "GetDeclarativePoliciesReportSummaryRequest" [({ name := "DryRun" }, .bool), + ({ name := "ReportId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "ReportId" x.reportId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let reportId ← v.req "ReportId" + return { dryRun, reportId } + +structure GetEbsDefaultKmsKeyIdRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetEbsDefaultKmsKeyIdRequest where + schema := .struct "GetEbsDefaultKmsKeyIdRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure GetEbsDefaultKmsKeyIdResult where + /-- The Amazon Resource Name (ARN) of the default KMS key for encryption by default. -/ + kmsKeyId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetEbsDefaultKmsKeyIdResult where + schema := .struct "GetEbsDefaultKmsKeyIdResult" [({ name := "KmsKeyId", xmlName := some "kmsKeyId", queryName := some "KmsKeyId" }, .string)] + toValue x := record [putOpt "KmsKeyId" x.kmsKeyId] + ofValue v := do + let kmsKeyId ← v.opt "KmsKeyId" + return { kmsKeyId } + +structure GetEbsEncryptionByDefaultRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetEbsEncryptionByDefaultRequest where + schema := .struct "GetEbsEncryptionByDefaultRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure GetEnabledIpamPolicyRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetEnabledIpamPolicyRequest where + schema := .struct "GetEnabledIpamPolicyRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure GetFlowLogsIntegrationTemplateResult where + /-- The generated CloudFormation template. -/ + result : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetFlowLogsIntegrationTemplateResult where + schema := .struct "GetFlowLogsIntegrationTemplateResult" [({ name := "Result", xmlName := some "result", queryName := some "Result" }, .string)] + toValue x := record [putOpt "Result" x.result] + ofValue v := do + let result ← v.opt "Result" + return { result } + +structure GetGroupsForCapacityReservationRequest where + /-- The ID of the Capacity Reservation. -/ + capacityReservationId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetGroupsForCapacityReservationRequest where + schema := .struct "GetGroupsForCapacityReservationRequest" [({ name := "CapacityReservationId", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [put "CapacityReservationId" x.capacityReservationId, putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityReservationId ← v.req "CapacityReservationId" + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { capacityReservationId, dryRun, maxResults, nextToken } + +structure GetHostReservationPurchasePreviewRequest where + /-- The IDs of the Dedicated Hosts with which the reservation is associated. -/ + hostIdSet : (List String) + /-- The offering ID of the reservation. -/ + offeringId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetHostReservationPurchasePreviewRequest where + schema := .struct "GetHostReservationPurchasePreviewRequest" [({ name := "HostIdSet", required := true }, (.list .string "item")), + ({ name := "OfferingId", required := true }, .string)] + toValue x := record [put "HostIdSet" x.hostIdSet, put "OfferingId" x.offeringId] + ofValue v := do + let hostIdSet ← v.req "HostIdSet" + let offeringId ← v.req "OfferingId" + return { hostIdSet, offeringId } + +structure GetImageAncestryRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AMI whose ancestry you want to trace. -/ + imageId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetImageAncestryRequest where + schema := .struct "GetImageAncestryRequest" [({ name := "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "ImageId" x.imageId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + return { dryRun, imageId } + +structure GetImageBlockPublicAccessStateRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetImageBlockPublicAccessStateRequest where + schema := .struct "GetImageBlockPublicAccessStateRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure GetImageFindingsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AMI. -/ + imageId : String + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetImageFindingsRequest where + schema := .struct "GetImageFindingsRequest" [({ name := "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "ImageId" x.imageId, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, imageId, maxResults, nextToken } + +structure GetInstanceMetadataDefaultsRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetInstanceMetadataDefaultsRequest where + schema := .struct "GetInstanceMetadataDefaultsRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure GetInstanceUefiDataRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the instance from which to retrieve the UEFI data. -/ + instanceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetInstanceUefiDataRequest where + schema := .struct "GetInstanceUefiDataRequest" [({ name := "DryRun" }, .bool), + ({ name := "InstanceId", required := true, xmlName := some "InstanceId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceId" x.instanceId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceId ← v.req "InstanceId" + return { dryRun, instanceId } + +structure GetInstanceUefiDataResult where + /-- The ID of the instance from which to retrieve the UEFI data. -/ + instanceId : Option String := none + /-- Base64 representation of the non-volatile UEFI variable store. -/ + uefiData : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetInstanceUefiDataResult where + schema := .struct "GetInstanceUefiDataResult" [({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "UefiData", xmlName := some "uefiData", queryName := some "UefiData" }, .string)] + toValue x := record [putOpt "InstanceId" x.instanceId, putOpt "UefiData" x.uefiData] + ofValue v := do + let instanceId ← v.opt "InstanceId" + let uefiData ← v.opt "UefiData" + return { instanceId, uefiData } + +structure GetIpamAddressHistoryRequest where + /-- The CIDR you want the history of. -/ + cidr : String + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The end of the time period for which you are looking for history. -/ + endTime : Option Timestamp := none + /-- The ID of the IPAM scope that the CIDR is in. -/ + ipamScopeId : String + /-- The maximum number of historical results you would like returned per page. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The start of the time period for which you are looking for history. -/ + startTime : Option Timestamp := none + /-- The ID of the VPC you want your history records filtered by. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamAddressHistoryRequest where + schema := .struct "GetIpamAddressHistoryRequest" [({ name := "Cidr", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "EndTime" }, (.time none)), + ({ name := "IpamScopeId", required := true }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "StartTime" }, (.time none)), + ({ name := "VpcId" }, .string)] + toValue x := record [put "Cidr" x.cidr, putOpt "DryRun" x.dryRun, putOpt "EndTime" x.endTime, put "IpamScopeId" x.ipamScopeId, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "StartTime" x.startTime, putOpt "VpcId" x.vpcId] + ofValue v := do + let cidr ← v.req "Cidr" + let dryRun ← v.opt "DryRun" + let endTime ← v.opt "EndTime" + let ipamScopeId ← v.req "IpamScopeId" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let startTime ← v.opt "StartTime" + let vpcId ← v.opt "VpcId" + return { cidr, dryRun, endTime, ipamScopeId, maxResults, nextToken, startTime, vpcId } + +structure GetIpamPrefixListResolverVersionEntriesRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM prefix list resolver whose version entries you want to retrieve. -/ + ipamPrefixListResolverId : String + /-- The version number of the resolver for which to retrieve CIDR entries. -/ + ipamPrefixListResolverVersion : Int + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamPrefixListResolverVersionEntriesRequest where + schema := .struct "GetIpamPrefixListResolverVersionEntriesRequest" [({ name := "DryRun" }, .bool), + ({ name := "IpamPrefixListResolverId", required := true }, .string), + ({ name := "IpamPrefixListResolverVersion", required := true }, .int), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "IpamPrefixListResolverId" x.ipamPrefixListResolverId, put "IpamPrefixListResolverVersion" x.ipamPrefixListResolverVersion, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let ipamPrefixListResolverId ← v.req "IpamPrefixListResolverId" + let ipamPrefixListResolverVersion ← v.req "IpamPrefixListResolverVersion" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, ipamPrefixListResolverId, ipamPrefixListResolverVersion, maxResults, nextToken } + +structure GetIpamRouteOriginAuthorizationsRequest where + /-- Filter results to a specific CIDR prefix. -/ + cidr : Option String := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM internet registry association. -/ + ipamInternetRegistryAssociationId : String + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamRouteOriginAuthorizationsRequest where + schema := .struct "GetIpamRouteOriginAuthorizationsRequest" [({ name := "Cidr" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "IpamInternetRegistryAssociationId", required := true }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "Cidr" x.cidr, putOpt "DryRun" x.dryRun, put "IpamInternetRegistryAssociationId" x.ipamInternetRegistryAssociationId, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let cidr ← v.opt "Cidr" + let dryRun ← v.opt "DryRun" + let ipamInternetRegistryAssociationId ← v.req "IpamInternetRegistryAssociationId" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { cidr, dryRun, ipamInternetRegistryAssociationId, maxResults, nextToken } + +structure GetIpamRoutingPolicyRegistrationsRequest where + /-- Filter results to a specific CIDR prefix. -/ + cidr : Option String := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM internet registry association. -/ + ipamInternetRegistryAssociationId : String + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamRoutingPolicyRegistrationsRequest where + schema := .struct "GetIpamRoutingPolicyRegistrationsRequest" [({ name := "Cidr" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "IpamInternetRegistryAssociationId", required := true }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "Cidr" x.cidr, putOpt "DryRun" x.dryRun, put "IpamInternetRegistryAssociationId" x.ipamInternetRegistryAssociationId, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let cidr ← v.opt "Cidr" + let dryRun ← v.opt "DryRun" + let ipamInternetRegistryAssociationId ← v.req "IpamInternetRegistryAssociationId" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { cidr, dryRun, ipamInternetRegistryAssociationId, maxResults, nextToken } + +structure GetLaunchTemplateDataRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the instance. -/ + instanceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetLaunchTemplateDataRequest where + schema := .struct "GetLaunchTemplateDataRequest" [({ name := "DryRun" }, .bool), + ({ name := "InstanceId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceId" x.instanceId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceId ← v.req "InstanceId" + return { dryRun, instanceId } + +structure GetManagedPrefixListAssociationsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the prefix list. -/ + prefixListId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetManagedPrefixListAssociationsRequest where + schema := .struct "GetManagedPrefixListAssociationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "PrefixListId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "PrefixListId" x.prefixListId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let prefixListId ← v.req "PrefixListId" + return { dryRun, maxResults, nextToken, prefixListId } + +structure GetManagedPrefixListEntriesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the prefix list. -/ + prefixListId : String + /-- The version of the prefix list for which to return the entries. -/ + targetVersion : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetManagedPrefixListEntriesRequest where + schema := .struct "GetManagedPrefixListEntriesRequest" [({ name := "DryRun" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "PrefixListId", required := true }, .string), + ({ name := "TargetVersion" }, .int)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "PrefixListId" x.prefixListId, putOpt "TargetVersion" x.targetVersion] + ofValue v := do + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let prefixListId ← v.req "PrefixListId" + let targetVersion ← v.opt "TargetVersion" + return { dryRun, maxResults, nextToken, prefixListId, targetVersion } + +structure GetManagedResourceVisibilityRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetManagedResourceVisibilityRequest where + schema := .struct "GetManagedResourceVisibilityRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure GetNetworkInsightsAccessScopeAnalysisFindingsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The ID of the Network Access Scope analysis. -/ + networkInsightsAccessScopeAnalysisId : String + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetNetworkInsightsAccessScopeAnalysisFindingsRequest where + schema := .struct "GetNetworkInsightsAccessScopeAnalysisFindingsRequest" [({ name := "DryRun" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NetworkInsightsAccessScopeAnalysisId", required := true }, .string), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, put "NetworkInsightsAccessScopeAnalysisId" x.networkInsightsAccessScopeAnalysisId, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let networkInsightsAccessScopeAnalysisId ← v.req "NetworkInsightsAccessScopeAnalysisId" + let nextToken ← v.opt "NextToken" + return { dryRun, maxResults, networkInsightsAccessScopeAnalysisId, nextToken } + +structure GetNetworkInsightsAccessScopeContentRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Network Access Scope. -/ + networkInsightsAccessScopeId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetNetworkInsightsAccessScopeContentRequest where + schema := .struct "GetNetworkInsightsAccessScopeContentRequest" [({ name := "DryRun" }, .bool), + ({ name := "NetworkInsightsAccessScopeId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "NetworkInsightsAccessScopeId" x.networkInsightsAccessScopeId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let networkInsightsAccessScopeId ← v.req "NetworkInsightsAccessScopeId" + return { dryRun, networkInsightsAccessScopeId } + +structure GetNetworkingFlexCostAllocationPolicyVersionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the flex cost allocation policy. -/ + fcaPolicyId : String + /-- The policy versions to include in the results. -/ + versionsToInclude : Option (List Int) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetNetworkingFlexCostAllocationPolicyVersionsRequest where + schema := .struct "GetNetworkingFlexCostAllocationPolicyVersionsRequest" [({ name := "DryRun" }, .bool), + ({ name := "FcaPolicyId", required := true }, .string), + ({ name := "VersionsToInclude" }, (.list .int "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "FcaPolicyId" x.fcaPolicyId, putOpt "VersionsToInclude" x.versionsToInclude] + ofValue v := do + let dryRun ← v.opt "DryRun" + let fcaPolicyId ← v.req "FcaPolicyId" + let versionsToInclude ← v.opt "VersionsToInclude" + return { dryRun, fcaPolicyId, versionsToInclude } + +structure GetPasswordDataRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Windows instance. -/ + instanceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetPasswordDataRequest where + schema := .struct "GetPasswordDataRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "InstanceId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceId" x.instanceId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceId ← v.req "InstanceId" + return { dryRun, instanceId } + +structure GetPasswordDataResult where + /-- The ID of the Windows instance. -/ + instanceId : Option String := none + /-- The password of the instance. -/ + passwordData : Option String := none + /-- The time the data was last updated. -/ + timestamp : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetPasswordDataResult where + schema := .struct "GetPasswordDataResult" [({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "PasswordData", xmlName := some "passwordData", queryName := some "PasswordData" }, .string), + ({ name := "Timestamp", xmlName := some "timestamp", queryName := some "Timestamp" }, (.time none))] + toValue x := record [putOpt "InstanceId" x.instanceId, putOpt "PasswordData" x.passwordData, putOpt "Timestamp" x.timestamp] + ofValue v := do + let instanceId ← v.opt "InstanceId" + let passwordData ← v.opt "PasswordData" + let timestamp ← v.opt "Timestamp" + return { instanceId, passwordData, timestamp } + +structure GetRouteServerAssociationsRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the route server for which to get association information. -/ + routeServerId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetRouteServerAssociationsRequest where + schema := .struct "GetRouteServerAssociationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "RouteServerId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "RouteServerId" x.routeServerId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let routeServerId ← v.req "RouteServerId" + return { dryRun, routeServerId } + +structure GetRouteServerPropagationsRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the route server for which to get propagation information. -/ + routeServerId : String + /-- The ID of the route table for which to get propagation information. -/ + routeTableId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetRouteServerPropagationsRequest where + schema := .struct "GetRouteServerPropagationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "RouteServerId", required := true }, .string), + ({ name := "RouteTableId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "RouteServerId" x.routeServerId, putOpt "RouteTableId" x.routeTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let routeServerId ← v.req "RouteServerId" + let routeTableId ← v.opt "RouteTableId" + return { dryRun, routeServerId, routeTableId } + +structure GetSerialConsoleAccessStatusRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetSerialConsoleAccessStatusRequest where + schema := .struct "GetSerialConsoleAccessStatusRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure GetSnapshotBlockPublicAccessStateRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetSnapshotBlockPublicAccessStateRequest where + schema := .struct "GetSnapshotBlockPublicAccessStateRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure GetTransitGatewayAttachmentNatConfigurationRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the transit gateway attachment. -/ + transitGatewayAttachmentId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetTransitGatewayAttachmentNatConfigurationRequest where + schema := .struct "GetTransitGatewayAttachmentNatConfigurationRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayAttachmentId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + return { dryRun, transitGatewayAttachmentId } + +structure GetVerifiedAccessEndpointPolicyRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Verified Access endpoint. -/ + verifiedAccessEndpointId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetVerifiedAccessEndpointPolicyRequest where + schema := .struct "GetVerifiedAccessEndpointPolicyRequest" [({ name := "DryRun" }, .bool), + ({ name := "VerifiedAccessEndpointId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VerifiedAccessEndpointId" x.verifiedAccessEndpointId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let verifiedAccessEndpointId ← v.req "VerifiedAccessEndpointId" + return { dryRun, verifiedAccessEndpointId } + +structure GetVerifiedAccessEndpointPolicyResult where + /-- The Verified Access policy document. -/ + policyDocument : Option String := none + /-- The status of the Verified Access policy. -/ + policyEnabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetVerifiedAccessEndpointPolicyResult where + schema := .struct "GetVerifiedAccessEndpointPolicyResult" [({ name := "PolicyDocument", xmlName := some "policyDocument", queryName := some "PolicyDocument" }, .string), + ({ name := "PolicyEnabled", xmlName := some "policyEnabled", queryName := some "PolicyEnabled" }, .bool)] + toValue x := record [putOpt "PolicyDocument" x.policyDocument, putOpt "PolicyEnabled" x.policyEnabled] + ofValue v := do + let policyDocument ← v.opt "PolicyDocument" + let policyEnabled ← v.opt "PolicyEnabled" + return { policyDocument, policyEnabled } + +structure GetVerifiedAccessEndpointTargetsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the network CIDR endpoint. -/ + verifiedAccessEndpointId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetVerifiedAccessEndpointTargetsRequest where + schema := .struct "GetVerifiedAccessEndpointTargetsRequest" [({ name := "DryRun" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "VerifiedAccessEndpointId", required := true, xmlName := some "VerifiedAccessEndpointId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "VerifiedAccessEndpointId" x.verifiedAccessEndpointId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let verifiedAccessEndpointId ← v.req "VerifiedAccessEndpointId" + return { dryRun, maxResults, nextToken, verifiedAccessEndpointId } + +structure GetVerifiedAccessGroupPolicyRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Verified Access group. -/ + verifiedAccessGroupId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetVerifiedAccessGroupPolicyRequest where + schema := .struct "GetVerifiedAccessGroupPolicyRequest" [({ name := "DryRun" }, .bool), + ({ name := "VerifiedAccessGroupId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VerifiedAccessGroupId" x.verifiedAccessGroupId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let verifiedAccessGroupId ← v.req "VerifiedAccessGroupId" + return { dryRun, verifiedAccessGroupId } + +structure GetVerifiedAccessGroupPolicyResult where + /-- The Verified Access policy document. -/ + policyDocument : Option String := none + /-- The status of the Verified Access policy. -/ + policyEnabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetVerifiedAccessGroupPolicyResult where + schema := .struct "GetVerifiedAccessGroupPolicyResult" [({ name := "PolicyDocument", xmlName := some "policyDocument", queryName := some "PolicyDocument" }, .string), + ({ name := "PolicyEnabled", xmlName := some "policyEnabled", queryName := some "PolicyEnabled" }, .bool)] + toValue x := record [putOpt "PolicyDocument" x.policyDocument, putOpt "PolicyEnabled" x.policyEnabled] + ofValue v := do + let policyDocument ← v.opt "PolicyDocument" + let policyEnabled ← v.opt "PolicyEnabled" + return { policyDocument, policyEnabled } + +structure GetVpcResourcesBlockingEncryptionEnforcementRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The ID of the VPC to check for resources blocking encryption enforcement. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetVpcResourcesBlockingEncryptionEnforcementRequest where + schema := .struct "GetVpcResourcesBlockingEncryptionEnforcementRequest" [({ name := "DryRun" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "VpcId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "VpcId" x.vpcId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let vpcId ← v.req "VpcId" + return { dryRun, maxResults, nextToken, vpcId } + +structure GetVpnConnectionDeviceSampleConfigurationRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IKE version to be used in the sample configuration file for your customer gateway device. -/ + internetKeyExchangeVersion : Option String := none + /-- The type of sample configuration to generate. -/ + sampleType : Option String := none + /-- Device identifier provided by the GetVpnConnectionDeviceTypes API. -/ + vpnConnectionDeviceTypeId : String + /-- The VpnConnectionId specifies the Site-to-Site VPN connection used for the sample configuration. -/ + vpnConnectionId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetVpnConnectionDeviceSampleConfigurationRequest where + schema := .struct "GetVpnConnectionDeviceSampleConfigurationRequest" [({ name := "DryRun" }, .bool), + ({ name := "InternetKeyExchangeVersion" }, .string), + ({ name := "SampleType" }, .string), + ({ name := "VpnConnectionDeviceTypeId", required := true }, .string), + ({ name := "VpnConnectionId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "InternetKeyExchangeVersion" x.internetKeyExchangeVersion, putOpt "SampleType" x.sampleType, put "VpnConnectionDeviceTypeId" x.vpnConnectionDeviceTypeId, put "VpnConnectionId" x.vpnConnectionId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let internetKeyExchangeVersion ← v.opt "InternetKeyExchangeVersion" + let sampleType ← v.opt "SampleType" + let vpnConnectionDeviceTypeId ← v.req "VpnConnectionDeviceTypeId" + let vpnConnectionId ← v.req "VpnConnectionId" + return { dryRun, internetKeyExchangeVersion, sampleType, vpnConnectionDeviceTypeId, vpnConnectionId } + +structure GetVpnConnectionDeviceSampleConfigurationResult where + /-- Sample configuration file for the specified customer gateway device. -/ + vpnConnectionDeviceSampleConfiguration : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetVpnConnectionDeviceSampleConfigurationResult where + schema := .struct "GetVpnConnectionDeviceSampleConfigurationResult" [({ name := "VpnConnectionDeviceSampleConfiguration", xmlName := some "vpnConnectionDeviceSampleConfiguration", queryName := some "VpnConnectionDeviceSampleConfiguration" }, .string)] + toValue x := record [putOpt "VpnConnectionDeviceSampleConfiguration" x.vpnConnectionDeviceSampleConfiguration] + ofValue v := do + let vpnConnectionDeviceSampleConfiguration ← v.opt "VpnConnectionDeviceSampleConfiguration" + return { vpnConnectionDeviceSampleConfiguration } + +structure GetVpnConnectionDeviceTypesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of results returned by GetVpnConnectionDeviceTypes in paginated output. -/ + maxResults : Option Int := none + /-- The NextToken value returned from a previous paginated GetVpnConnectionDeviceTypes request where MaxResults was used and the results exceeded the value of that parameter. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetVpnConnectionDeviceTypesRequest where + schema := .struct "GetVpnConnectionDeviceTypesRequest" [({ name := "DryRun" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, maxResults, nextToken } + +structure GetVpnTunnelReplacementStatusRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Site-to-Site VPN connection. -/ + vpnConnectionId : String + /-- The external IP address of the VPN tunnel. -/ + vpnTunnelOutsideIpAddress : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetVpnTunnelReplacementStatusRequest where + schema := .struct "GetVpnTunnelReplacementStatusRequest" [({ name := "DryRun" }, .bool), + ({ name := "VpnConnectionId", required := true }, .string), + ({ name := "VpnTunnelOutsideIpAddress", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VpnConnectionId" x.vpnConnectionId, put "VpnTunnelOutsideIpAddress" x.vpnTunnelOutsideIpAddress] + ofValue v := do + let dryRun ← v.opt "DryRun" + let vpnConnectionId ← v.req "VpnConnectionId" + let vpnTunnelOutsideIpAddress ← v.req "VpnTunnelOutsideIpAddress" + return { dryRun, vpnConnectionId, vpnTunnelOutsideIpAddress } + +/-- Describes the memory available to the GPU accelerator. -/ +structure GpuDeviceMemoryInfo where + /-- The size of the memory available to the GPU accelerator, in MiB. -/ + sizeInMiB : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GpuDeviceMemoryInfo where + schema := .struct "GpuDeviceMemoryInfo" [({ name := "SizeInMiB", xmlName := some "sizeInMiB", queryName := some "SizeInMiB" }, .int)] + toValue x := record [putOpt "SizeInMiB" x.sizeInMiB] + ofValue v := do + let sizeInMiB ← v.opt "SizeInMiB" + return { sizeInMiB } + +inductive GroupBy where + | accounT_ID + | accounT_NAME + | availabilitY_ZONE_ID + | instancE_FAMILY + | instancE_PLATFORM + | instancE_TYPE + | reservatioN_ARN + | reservatioN_CREATE_TIMESTAMP + | reservatioN_END_DATE_TYPE + | reservatioN_END_TIMESTAMP + | reservatioN_ID + | reservatioN_INSTANCE_MATCH_CRITERIA + | reservatioN_START_TIMESTAMP + | reservatioN_STATE + | reservatioN_TYPE + | reservatioN_UNUSED_FINANCIAL_OWNER + | resourcE_REGION + | tenancy +deriving DecidableEq, Repr, Inhabited + +def GroupBy.wire : GroupBy → String + | .accounT_ID => "account-id" + | .accounT_NAME => "account-name" + | .availabilitY_ZONE_ID => "availability-zone-id" + | .instancE_FAMILY => "instance-family" + | .instancE_PLATFORM => "instance-platform" + | .instancE_TYPE => "instance-type" + | .reservatioN_ARN => "reservation-arn" + | .reservatioN_CREATE_TIMESTAMP => "reservation-create-timestamp" + | .reservatioN_END_DATE_TYPE => "reservation-end-date-type" + | .reservatioN_END_TIMESTAMP => "reservation-end-timestamp" + | .reservatioN_ID => "reservation-id" + | .reservatioN_INSTANCE_MATCH_CRITERIA => "reservation-instance-match-criteria" + | .reservatioN_START_TIMESTAMP => "reservation-start-timestamp" + | .reservatioN_STATE => "reservation-state" + | .reservatioN_TYPE => "reservation-type" + | .reservatioN_UNUSED_FINANCIAL_OWNER => "reservation-unused-financial-owner" + | .resourcE_REGION => "resource-region" + | .tenancy => "tenancy" + +def GroupBy.wireValues : List (String × GroupBy) := [ + ("account-id", .accounT_ID), + ("account-name", .accounT_NAME), + ("availability-zone-id", .availabilitY_ZONE_ID), + ("instance-family", .instancE_FAMILY), + ("instance-platform", .instancE_PLATFORM), + ("instance-type", .instancE_TYPE), + ("reservation-arn", .reservatioN_ARN), + ("reservation-create-timestamp", .reservatioN_CREATE_TIMESTAMP), + ("reservation-end-date-type", .reservatioN_END_DATE_TYPE), + ("reservation-end-timestamp", .reservatioN_END_TIMESTAMP), + ("reservation-id", .reservatioN_ID), + ("reservation-instance-match-criteria", .reservatioN_INSTANCE_MATCH_CRITERIA), + ("reservation-start-timestamp", .reservatioN_START_TIMESTAMP), + ("reservation-state", .reservatioN_STATE), + ("reservation-type", .reservatioN_TYPE), + ("reservation-unused-financial-owner", .reservatioN_UNUSED_FINANCIAL_OWNER), + ("resource-region", .resourcE_REGION), + ("tenancy", .tenancy)] + +def GroupBy.ofWire (text : String) : Except String GroupBy := + match List.find? (·.1 == text) GroupBy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"GroupBy has no value {text}" + +instance : Key GroupBy := ⟨GroupBy.wire, GroupBy.ofWire⟩ + +instance : Shape GroupBy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => GroupBy.ofWire text + | _ => .error "expected a string" + +/-- Describes a security group. -/ +structure GroupIdentifier where + /-- The ID of the security group. -/ + groupId : Option String := none + /-- The name of the security group. -/ + groupName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GroupIdentifier where + schema := .struct "GroupIdentifier" [({ name := "GroupId", xmlName := some "groupId", queryName := some "GroupId" }, .string), + ({ name := "GroupName", xmlName := some "groupName", queryName := some "GroupName" }, .string)] + toValue x := record [putOpt "GroupId" x.groupId, putOpt "GroupName" x.groupName] + ofValue v := do + let groupId ← v.opt "GroupId" + let groupName ← v.opt "GroupName" + return { groupId, groupName } + +inductive HaStatus where + | active + | invalid + | processing + | standby +deriving DecidableEq, Repr, Inhabited + +def HaStatus.wire : HaStatus → String + | .active => "active" + | .invalid => "invalid" + | .processing => "processing" + | .standby => "standby" + +def HaStatus.wireValues : List (String × HaStatus) := [ + ("active", .active), + ("invalid", .invalid), + ("processing", .processing), + ("standby", .standby)] + +def HaStatus.ofWire (text : String) : Except String HaStatus := + match List.find? (·.1 == text) HaStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"HaStatus has no value {text}" + +instance : Key HaStatus := ⟨HaStatus.wire, HaStatus.ofWire⟩ + +instance : Shape HaStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => HaStatus.ofWire text + | _ => .error "expected a string" + +/-- Describes a destination for a health check path in a request. -/ +structure HealthCheckPathDestinationRequestObject where + /-- The ID of the security group for the destination. -/ + securityGroupId : Option String := none + /-- The ID of the subnet for the destination. -/ + subnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape HealthCheckPathDestinationRequestObject where + schema := .struct "HealthCheckPathDestinationRequestObject" [({ name := "SecurityGroupId" }, .string), + ({ name := "SubnetId" }, .string)] + toValue x := record [putOpt "SecurityGroupId" x.securityGroupId, putOpt "SubnetId" x.subnetId] + ofValue v := do + let securityGroupId ← v.opt "SecurityGroupId" + let subnetId ← v.opt "SubnetId" + return { securityGroupId, subnetId } + +/-- Describes a destination for a health check path. -/ +structure HealthCheckPathDestinationResponseObject where + /-- The ID of the security group for the destination. -/ + securityGroupId : Option String := none + /-- The ID of the subnet for the destination. -/ + subnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape HealthCheckPathDestinationResponseObject where + schema := .struct "HealthCheckPathDestinationResponseObject" [({ name := "SecurityGroupId", xmlName := some "securityGroupId", queryName := some "SecurityGroupId" }, .string), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string)] + toValue x := record [putOpt "SecurityGroupId" x.securityGroupId, putOpt "SubnetId" x.subnetId] + ofValue v := do + let securityGroupId ← v.opt "SecurityGroupId" + let subnetId ← v.opt "SubnetId" + return { securityGroupId, subnetId } + +/-- Describes the source for a health check path in a request. -/ +structure HealthCheckPathSourceRequestObject where + /-- The ID of the security group for the source. -/ + securityGroupId : Option String := none + /-- The ID of the subnet for the source. -/ + subnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape HealthCheckPathSourceRequestObject where + schema := .struct "HealthCheckPathSourceRequestObject" [({ name := "SecurityGroupId" }, .string), + ({ name := "SubnetId" }, .string)] + toValue x := record [putOpt "SecurityGroupId" x.securityGroupId, putOpt "SubnetId" x.subnetId] + ofValue v := do + let securityGroupId ← v.opt "SecurityGroupId" + let subnetId ← v.opt "SubnetId" + return { securityGroupId, subnetId } + +/-- Describes the source for a health check path. -/ +structure HealthCheckPathSourceResponseObject where + /-- The ID of the security group for the source. -/ + securityGroupId : Option String := none + /-- The ID of the subnet for the source. -/ + subnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape HealthCheckPathSourceResponseObject where + schema := .struct "HealthCheckPathSourceResponseObject" [({ name := "SecurityGroupId", xmlName := some "securityGroupId", queryName := some "SecurityGroupId" }, .string), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string)] + toValue x := record [putOpt "SecurityGroupId" x.securityGroupId, putOpt "SubnetId" x.subnetId] + ofValue v := do + let securityGroupId ← v.opt "SecurityGroupId" + let subnetId ← v.opt "SubnetId" + return { securityGroupId, subnetId } + +/-- Indicates whether your instance is configured for hibernation. -/ +structure HibernationOptions where + /-- If true , your instance is enabled for hibernation; otherwise, it is not enabled for hibernation. -/ + configured : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape HibernationOptions where + schema := .struct "HibernationOptions" [({ name := "Configured", xmlName := some "configured", queryName := some "Configured" }, .bool)] + toValue x := record [putOpt "Configured" x.configured] + ofValue v := do + let configured ← v.opt "Configured" + return { configured } + +/-- Indicates whether your instance is configured for hibernation. -/ +structure HibernationOptionsRequest where + /-- Set to true to enable your instance for hibernation. -/ + configured : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape HibernationOptionsRequest where + schema := .struct "HibernationOptionsRequest" [({ name := "Configured" }, .bool)] + toValue x := record [putOpt "Configured" x.configured] + ofValue v := do + let configured ← v.opt "Configured" + return { configured } + +/-- Describes an instance running on a Dedicated Host. -/ +structure HostInstance where + /-- The ID of instance that is running on the Dedicated Host. -/ + instanceId : Option String := none + /-- The instance type (for example, m3.medium ) of the running instance. -/ + instanceType : Option String := none + /-- The ID of the Amazon Web Services account that owns the instance. -/ + ownerId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape HostInstance where + schema := .struct "HostInstance" [({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string)] + toValue x := record [putOpt "InstanceId" x.instanceId, putOpt "InstanceType" x.instanceType, putOpt "OwnerId" x.ownerId] + ofValue v := do + let instanceId ← v.opt "InstanceId" + let instanceType ← v.opt "InstanceType" + let ownerId ← v.opt "OwnerId" + return { instanceId, instanceType, ownerId } + +inductive HostMaintenance where + | off + | on +deriving DecidableEq, Repr, Inhabited + +def HostMaintenance.wire : HostMaintenance → String + | .off => "off" + | .on => "on" + +def HostMaintenance.wireValues : List (String × HostMaintenance) := [ + ("off", .off), + ("on", .on)] + +def HostMaintenance.ofWire (text : String) : Except String HostMaintenance := + match List.find? (·.1 == text) HostMaintenance.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"HostMaintenance has no value {text}" + +instance : Key HostMaintenance := ⟨HostMaintenance.wire, HostMaintenance.ofWire⟩ + +instance : Shape HostMaintenance where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => HostMaintenance.ofWire text + | _ => .error "expected a string" + +/-- Describes the properties of a Dedicated Host. -/ +structure HostProperties where + /-- The number of cores on the Dedicated Host. -/ + cores : Option Int := none + /-- The instance family supported by the Dedicated Host. -/ + instanceFamily : Option String := none + /-- The instance type supported by the Dedicated Host. -/ + instanceType : Option String := none + /-- The number of sockets on the Dedicated Host. -/ + sockets : Option Int := none + /-- The total number of vCPUs on the Dedicated Host. -/ + totalVCpus : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape HostProperties where + schema := .struct "HostProperties" [({ name := "Cores", xmlName := some "cores", queryName := some "Cores" }, .int), + ({ name := "InstanceFamily", xmlName := some "instanceFamily", queryName := some "InstanceFamily" }, .string), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, .string), + ({ name := "Sockets", xmlName := some "sockets", queryName := some "Sockets" }, .int), + ({ name := "TotalVCpus", xmlName := some "totalVCpus", queryName := some "TotalVCpus" }, .int)] + toValue x := record [putOpt "Cores" x.cores, putOpt "InstanceFamily" x.instanceFamily, putOpt "InstanceType" x.instanceType, putOpt "Sockets" x.sockets, putOpt "TotalVCpus" x.totalVCpus] + ofValue v := do + let cores ← v.opt "Cores" + let instanceFamily ← v.opt "InstanceFamily" + let instanceType ← v.opt "InstanceType" + let sockets ← v.opt "Sockets" + let totalVCpus ← v.opt "TotalVCpus" + return { cores, instanceFamily, instanceType, sockets, totalVCpus } + +inductive HostRecovery where + | off + | on +deriving DecidableEq, Repr, Inhabited + +def HostRecovery.wire : HostRecovery → String + | .off => "off" + | .on => "on" + +def HostRecovery.wireValues : List (String × HostRecovery) := [ + ("off", .off), + ("on", .on)] + +def HostRecovery.ofWire (text : String) : Except String HostRecovery := + match List.find? (·.1 == text) HostRecovery.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"HostRecovery has no value {text}" + +instance : Key HostRecovery := ⟨HostRecovery.wire, HostRecovery.ofWire⟩ + +instance : Shape HostRecovery where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => HostRecovery.ofWire text + | _ => .error "expected a string" + +inductive HostTenancy where + | dedicated + | default + | host +deriving DecidableEq, Repr, Inhabited + +def HostTenancy.wire : HostTenancy → String + | .dedicated => "dedicated" + | .default => "default" + | .host => "host" + +def HostTenancy.wireValues : List (String × HostTenancy) := [ + ("dedicated", .dedicated), + ("default", .default), + ("host", .host)] + +def HostTenancy.ofWire (text : String) : Except String HostTenancy := + match List.find? (·.1 == text) HostTenancy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"HostTenancy has no value {text}" + +instance : Key HostTenancy := ⟨HostTenancy.wire, HostTenancy.ofWire⟩ + +instance : Shape HostTenancy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => HostTenancy.ofWire text + | _ => .error "expected a string" + +inductive HostnameType where + | ip_name + | resource_name +deriving DecidableEq, Repr, Inhabited + +def HostnameType.wire : HostnameType → String + | .ip_name => "ip-name" + | .resource_name => "resource-name" + +def HostnameType.wireValues : List (String × HostnameType) := [ + ("ip-name", .ip_name), + ("resource-name", .resource_name)] + +def HostnameType.ofWire (text : String) : Except String HostnameType := + match List.find? (·.1 == text) HostnameType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"HostnameType has no value {text}" + +instance : Key HostnameType := ⟨HostnameType.wire, HostnameType.ofWire⟩ + +instance : Shape HostnameType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => HostnameType.ofWire text + | _ => .error "expected a string" + +inductive HttpTokensEnforcedState where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def HttpTokensEnforcedState.wire : HttpTokensEnforcedState → String + | .disabled => "disabled" + | .enabled => "enabled" + +def HttpTokensEnforcedState.wireValues : List (String × HttpTokensEnforcedState) := [ + ("disabled", .disabled), + ("enabled", .enabled)] + +def HttpTokensEnforcedState.ofWire (text : String) : Except String HttpTokensEnforcedState := + match List.find? (·.1 == text) HttpTokensEnforcedState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"HttpTokensEnforcedState has no value {text}" + +instance : Key HttpTokensEnforcedState := ⟨HttpTokensEnforcedState.wire, HttpTokensEnforcedState.ofWire⟩ + +instance : Shape HttpTokensEnforcedState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => HttpTokensEnforcedState.ofWire text + | _ => .error "expected a string" + +inductive HttpTokensState where + | optional + | required +deriving DecidableEq, Repr, Inhabited + +def HttpTokensState.wire : HttpTokensState → String + | .optional => "optional" + | .required => "required" + +def HttpTokensState.wireValues : List (String × HttpTokensState) := [ + ("optional", .optional), + ("required", .required)] + +def HttpTokensState.ofWire (text : String) : Except String HttpTokensState := + match List.find? (·.1 == text) HttpTokensState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"HttpTokensState has no value {text}" + +instance : Key HttpTokensState := ⟨HttpTokensState.wire, HttpTokensState.ofWire⟩ + +instance : Shape HttpTokensState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => HttpTokensState.ofWire text + | _ => .error "expected a string" + +inductive HypervisorType where + | ovm + | xen +deriving DecidableEq, Repr, Inhabited + +def HypervisorType.wire : HypervisorType → String + | .ovm => "ovm" + | .xen => "xen" + +def HypervisorType.wireValues : List (String × HypervisorType) := [ + ("ovm", .ovm), + ("xen", .xen)] + +def HypervisorType.ofWire (text : String) : Except String HypervisorType := + match List.find? (·.1 == text) HypervisorType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"HypervisorType has no value {text}" + +instance : Key HypervisorType := ⟨HypervisorType.wire, HypervisorType.ofWire⟩ + +instance : Shape HypervisorType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => HypervisorType.ofWire text + | _ => .error "expected a string" + +/-- The internet key exchange (IKE) version permitted for the VPN tunnel. -/ +structure IKEVersionsListValue where + /-- The IKE version. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IKEVersionsListValue where + schema := .struct "IKEVersionsListValue" [({ name := "Value", xmlName := some "value", queryName := some "Value" }, .string)] + toValue x := record [putOpt "Value" x.value] + ofValue v := do + let value ← v.opt "Value" + return { value } + +/-- The IKE version that is permitted for the VPN tunnel. -/ +structure IKEVersionsRequestListValue where + /-- The IKE version. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IKEVersionsRequestListValue where + schema := .struct "IKEVersionsRequestListValue" [({ name := "Value" }, .string)] + toValue x := record [putOpt "Value" x.value] + ofValue v := do + let value ← v.opt "Value" + return { value } + +/-- Describes an IAM instance profile. -/ +structure IamInstanceProfile where + /-- The Amazon Resource Name (ARN) of the instance profile. -/ + arn : Option String := none + /-- The ID of the instance profile. -/ + id : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IamInstanceProfile where + schema := .struct "IamInstanceProfile" [({ name := "Arn", xmlName := some "arn", queryName := some "Arn" }, .string), + ({ name := "Id", xmlName := some "id", queryName := some "Id" }, .string)] + toValue x := record [putOpt "Arn" x.arn, putOpt "Id" x.id] + ofValue v := do + let arn ← v.opt "Arn" + let id ← v.opt "Id" + return { arn, id } + +inductive IamInstanceProfileAssociationState where + | associated + | associating + | disassociated + | disassociating +deriving DecidableEq, Repr, Inhabited + +def IamInstanceProfileAssociationState.wire : IamInstanceProfileAssociationState → String + | .associated => "associated" + | .associating => "associating" + | .disassociated => "disassociated" + | .disassociating => "disassociating" + +def IamInstanceProfileAssociationState.wireValues : List (String × IamInstanceProfileAssociationState) := [ + ("associated", .associated), + ("associating", .associating), + ("disassociated", .disassociated), + ("disassociating", .disassociating)] + +def IamInstanceProfileAssociationState.ofWire (text : String) : Except String IamInstanceProfileAssociationState := + match List.find? (·.1 == text) IamInstanceProfileAssociationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IamInstanceProfileAssociationState has no value {text}" + +instance : Key IamInstanceProfileAssociationState := ⟨IamInstanceProfileAssociationState.wire, IamInstanceProfileAssociationState.ofWire⟩ + +instance : Shape IamInstanceProfileAssociationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IamInstanceProfileAssociationState.ofWire text + | _ => .error "expected a string" + +/-- Describes an IAM instance profile. -/ +structure IamInstanceProfileSpecification where + /-- The Amazon Resource Name (ARN) of the instance profile. -/ + arn : Option String := none + /-- The name of the instance profile. -/ + name : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IamInstanceProfileSpecification where + schema := .struct "IamInstanceProfileSpecification" [({ name := "Arn", xmlName := some "arn", queryName := some "Arn" }, .string), + ({ name := "Name", xmlName := some "name", queryName := some "Name" }, .string)] + toValue x := record [putOpt "Arn" x.arn, putOpt "Name" x.name] + ofValue v := do + let arn ← v.opt "Arn" + let name ← v.opt "Name" + return { arn, name } + +/-- Describes the ICMP type and code. -/ +structure IcmpTypeCode where + /-- The ICMP code. -/ + code : Option Int := none + /-- The ICMP type. -/ + type : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IcmpTypeCode where + schema := .struct "IcmpTypeCode" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, .int), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, .int)] + toValue x := record [putOpt "Code" x.code, putOpt "Type" x.type] + ofValue v := do + let code ← v.opt "Code" + let type ← v.opt "Type" + return { code, type } + +/-- Describes the ID format for a resource. -/ +structure IdFormat where + /-- The date in UTC at which you are permanently switched over to using longer IDs. -/ + deadline : Option Timestamp := none + /-- The type of resource. -/ + resource : Option String := none + /-- Indicates whether longer IDs (17-character IDs) are enabled for the resource. -/ + useLongIds : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IdFormat where + schema := .struct "IdFormat" [({ name := "Deadline", xmlName := some "deadline", queryName := some "Deadline" }, (.time none)), + ({ name := "Resource", xmlName := some "resource", queryName := some "Resource" }, .string), + ({ name := "UseLongIds", xmlName := some "useLongIds", queryName := some "UseLongIds" }, .bool)] + toValue x := record [putOpt "Deadline" x.deadline, putOpt "Resource" x.resource, putOpt "UseLongIds" x.useLongIds] + ofValue v := do + let deadline ← v.opt "Deadline" + let resource ← v.opt "Resource" + let useLongIds ← v.opt "UseLongIds" + return { deadline, resource, useLongIds } + +inductive Igmpv2SupportValue where + | disable + | enable +deriving DecidableEq, Repr, Inhabited + +def Igmpv2SupportValue.wire : Igmpv2SupportValue → String + | .disable => "disable" + | .enable => "enable" + +def Igmpv2SupportValue.wireValues : List (String × Igmpv2SupportValue) := [ + ("disable", .disable), + ("enable", .enable)] + +def Igmpv2SupportValue.ofWire (text : String) : Except String Igmpv2SupportValue := + match List.find? (·.1 == text) Igmpv2SupportValue.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Igmpv2SupportValue has no value {text}" + +instance : Key Igmpv2SupportValue := ⟨Igmpv2SupportValue.wire, Igmpv2SupportValue.ofWire⟩ + +instance : Shape Igmpv2SupportValue where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Igmpv2SupportValue.ofWire text + | _ => .error "expected a string" + +/-- Information about a single AMI in the ancestry chain and its source (parent) AMI. -/ +structure ImageAncestryEntry where + /-- The date and time when this AMI was created. -/ + creationDate : Option Timestamp := none + /-- The ID of this AMI. -/ + imageId : Option String := none + /-- The owner alias ( amazon | aws-backup-vault | aws-marketplace ) of this AMI, if one is assigned. -/ + imageOwnerAlias : Option String := none + /-- The ID of the parent AMI. -/ + sourceImageId : Option String := none + /-- The Amazon Web Services Region of the parent AMI. -/ + sourceImageRegion : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageAncestryEntry where + schema := .struct "ImageAncestryEntry" [({ name := "CreationDate", xmlName := some "creationDate", queryName := some "CreationDate" }, (.time none)), + ({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "ImageOwnerAlias", xmlName := some "imageOwnerAlias", queryName := some "ImageOwnerAlias" }, .string), + ({ name := "SourceImageId", xmlName := some "sourceImageId", queryName := some "SourceImageId" }, .string), + ({ name := "SourceImageRegion", xmlName := some "sourceImageRegion", queryName := some "SourceImageRegion" }, .string)] + toValue x := record [putOpt "CreationDate" x.creationDate, putOpt "ImageId" x.imageId, putOpt "ImageOwnerAlias" x.imageOwnerAlias, putOpt "SourceImageId" x.sourceImageId, putOpt "SourceImageRegion" x.sourceImageRegion] + ofValue v := do + let creationDate ← v.opt "CreationDate" + let imageId ← v.opt "ImageId" + let imageOwnerAlias ← v.opt "ImageOwnerAlias" + let sourceImageId ← v.opt "SourceImageId" + let sourceImageRegion ← v.opt "SourceImageRegion" + return { creationDate, imageId, imageOwnerAlias, sourceImageId, sourceImageRegion } + +inductive ImageAttributeName where + | blockDeviceMapping + | bootMode + | deregistrationProtection + | description + | imdsSupport + | kernel + | lastLaunchedTime + | launchPermission + | productCodes + | ramdisk + | sriovNetSupport + | tpmSupport + | uefiData +deriving DecidableEq, Repr, Inhabited + +def ImageAttributeName.wire : ImageAttributeName → String + | .blockDeviceMapping => "blockDeviceMapping" + | .bootMode => "bootMode" + | .deregistrationProtection => "deregistrationProtection" + | .description => "description" + | .imdsSupport => "imdsSupport" + | .kernel => "kernel" + | .lastLaunchedTime => "lastLaunchedTime" + | .launchPermission => "launchPermission" + | .productCodes => "productCodes" + | .ramdisk => "ramdisk" + | .sriovNetSupport => "sriovNetSupport" + | .tpmSupport => "tpmSupport" + | .uefiData => "uefiData" + +def ImageAttributeName.wireValues : List (String × ImageAttributeName) := [ + ("blockDeviceMapping", .blockDeviceMapping), + ("bootMode", .bootMode), + ("deregistrationProtection", .deregistrationProtection), + ("description", .description), + ("imdsSupport", .imdsSupport), + ("kernel", .kernel), + ("lastLaunchedTime", .lastLaunchedTime), + ("launchPermission", .launchPermission), + ("productCodes", .productCodes), + ("ramdisk", .ramdisk), + ("sriovNetSupport", .sriovNetSupport), + ("tpmSupport", .tpmSupport), + ("uefiData", .uefiData)] + +def ImageAttributeName.ofWire (text : String) : Except String ImageAttributeName := + match List.find? (·.1 == text) ImageAttributeName.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ImageAttributeName has no value {text}" + +instance : Key ImageAttributeName := ⟨ImageAttributeName.wire, ImageAttributeName.ofWire⟩ + +instance : Shape ImageAttributeName where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ImageAttributeName.ofWire text + | _ => .error "expected a string" + +inductive ImageBlockPublicAccessDisabledState where + | unblocked +deriving DecidableEq, Repr, Inhabited + +def ImageBlockPublicAccessDisabledState.wire : ImageBlockPublicAccessDisabledState → String + | .unblocked => "unblocked" + +def ImageBlockPublicAccessDisabledState.wireValues : List (String × ImageBlockPublicAccessDisabledState) := [ + ("unblocked", .unblocked)] + +def ImageBlockPublicAccessDisabledState.ofWire (text : String) : Except String ImageBlockPublicAccessDisabledState := + match List.find? (·.1 == text) ImageBlockPublicAccessDisabledState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ImageBlockPublicAccessDisabledState has no value {text}" + +instance : Key ImageBlockPublicAccessDisabledState := ⟨ImageBlockPublicAccessDisabledState.wire, ImageBlockPublicAccessDisabledState.ofWire⟩ + +instance : Shape ImageBlockPublicAccessDisabledState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ImageBlockPublicAccessDisabledState.ofWire text + | _ => .error "expected a string" + +inductive ImageBlockPublicAccessEnabledState where + | block_new_sharing +deriving DecidableEq, Repr, Inhabited + +def ImageBlockPublicAccessEnabledState.wire : ImageBlockPublicAccessEnabledState → String + | .block_new_sharing => "block-new-sharing" + +def ImageBlockPublicAccessEnabledState.wireValues : List (String × ImageBlockPublicAccessEnabledState) := [ + ("block-new-sharing", .block_new_sharing)] + +def ImageBlockPublicAccessEnabledState.ofWire (text : String) : Except String ImageBlockPublicAccessEnabledState := + match List.find? (·.1 == text) ImageBlockPublicAccessEnabledState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ImageBlockPublicAccessEnabledState has no value {text}" + +instance : Key ImageBlockPublicAccessEnabledState := ⟨ImageBlockPublicAccessEnabledState.wire, ImageBlockPublicAccessEnabledState.ofWire⟩ + +instance : Shape ImageBlockPublicAccessEnabledState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ImageBlockPublicAccessEnabledState.ofWire text + | _ => .error "expected a string" + +/-- Information about an AMI that is currently in the Recycle Bin. -/ +structure ImageRecycleBinInfo where + /-- The description of the AMI. -/ + description : Option String := none + /-- The ID of the AMI. -/ + imageId : Option String := none + /-- The name of the AMI. -/ + name : Option String := none + /-- The date and time when the AMI entered the Recycle Bin. -/ + recycleBinEnterTime : Option Timestamp := none + /-- The date and time when the AMI is to be permanently deleted from the Recycle Bin. -/ + recycleBinExitTime : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageRecycleBinInfo where + schema := .struct "ImageRecycleBinInfo" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "Name", xmlName := some "name", queryName := some "Name" }, .string), + ({ name := "RecycleBinEnterTime", xmlName := some "recycleBinEnterTime", queryName := some "RecycleBinEnterTime" }, (.time none)), + ({ name := "RecycleBinExitTime", xmlName := some "recycleBinExitTime", queryName := some "RecycleBinExitTime" }, (.time none))] + toValue x := record [putOpt "Description" x.description, putOpt "ImageId" x.imageId, putOpt "Name" x.name, putOpt "RecycleBinEnterTime" x.recycleBinEnterTime, putOpt "RecycleBinExitTime" x.recycleBinExitTime] + ofValue v := do + let description ← v.opt "Description" + let imageId ← v.opt "ImageId" + let name ← v.opt "Name" + let recycleBinEnterTime ← v.opt "RecycleBinEnterTime" + let recycleBinExitTime ← v.opt "RecycleBinExitTime" + return { description, imageId, name, recycleBinEnterTime, recycleBinExitTime } + +inductive ImageReferenceOptionName where + | statE_NAME + | versioN_DEPTH +deriving DecidableEq, Repr, Inhabited + +def ImageReferenceOptionName.wire : ImageReferenceOptionName → String + | .statE_NAME => "state-name" + | .versioN_DEPTH => "version-depth" + +def ImageReferenceOptionName.wireValues : List (String × ImageReferenceOptionName) := [ + ("state-name", .statE_NAME), + ("version-depth", .versioN_DEPTH)] + +def ImageReferenceOptionName.ofWire (text : String) : Except String ImageReferenceOptionName := + match List.find? (·.1 == text) ImageReferenceOptionName.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ImageReferenceOptionName has no value {text}" + +instance : Key ImageReferenceOptionName := ⟨ImageReferenceOptionName.wire, ImageReferenceOptionName.ofWire⟩ + +instance : Shape ImageReferenceOptionName where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ImageReferenceOptionName.ofWire text + | _ => .error "expected a string" + +inductive ImageReferenceResourceType where + | ec2_INSTANCE + | ec2_LAUNCH_TEMPLATE + | imagE_BUILDER_CONTAINER_RECIPE + | imagE_BUILDER_IMAGE_RECIPE + | ssM_PARAMETER +deriving DecidableEq, Repr, Inhabited + +def ImageReferenceResourceType.wire : ImageReferenceResourceType → String + | .ec2_INSTANCE => "ec2:Instance" + | .ec2_LAUNCH_TEMPLATE => "ec2:LaunchTemplate" + | .imagE_BUILDER_CONTAINER_RECIPE => "imagebuilder:ContainerRecipe" + | .imagE_BUILDER_IMAGE_RECIPE => "imagebuilder:ImageRecipe" + | .ssM_PARAMETER => "ssm:Parameter" + +def ImageReferenceResourceType.wireValues : List (String × ImageReferenceResourceType) := [ + ("ec2:Instance", .ec2_INSTANCE), + ("ec2:LaunchTemplate", .ec2_LAUNCH_TEMPLATE), + ("imagebuilder:ContainerRecipe", .imagE_BUILDER_CONTAINER_RECIPE), + ("imagebuilder:ImageRecipe", .imagE_BUILDER_IMAGE_RECIPE), + ("ssm:Parameter", .ssM_PARAMETER)] + +def ImageReferenceResourceType.ofWire (text : String) : Except String ImageReferenceResourceType := + match List.find? (·.1 == text) ImageReferenceResourceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ImageReferenceResourceType has no value {text}" + +instance : Key ImageReferenceResourceType := ⟨ImageReferenceResourceType.wire, ImageReferenceResourceType.ofWire⟩ + +instance : Shape ImageReferenceResourceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ImageReferenceResourceType.ofWire text + | _ => .error "expected a string" + +inductive ImageState where + | available + | deregistered + | disabled + | error + | failed + | invalid + | pending + | transient +deriving DecidableEq, Repr, Inhabited + +def ImageState.wire : ImageState → String + | .available => "available" + | .deregistered => "deregistered" + | .disabled => "disabled" + | .error => "error" + | .failed => "failed" + | .invalid => "invalid" + | .pending => "pending" + | .transient => "transient" + +def ImageState.wireValues : List (String × ImageState) := [ + ("available", .available), + ("deregistered", .deregistered), + ("disabled", .disabled), + ("error", .error), + ("failed", .failed), + ("invalid", .invalid), + ("pending", .pending), + ("transient", .transient)] + +def ImageState.ofWire (text : String) : Except String ImageState := + match List.find? (·.1 == text) ImageState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ImageState has no value {text}" + +instance : Key ImageState := ⟨ImageState.wire, ImageState.ofWire⟩ + +instance : Shape ImageState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ImageState.ofWire text + | _ => .error "expected a string" + +inductive ImageTypeValues where + | kernel + | machine + | ramdisk +deriving DecidableEq, Repr, Inhabited + +def ImageTypeValues.wire : ImageTypeValues → String + | .kernel => "kernel" + | .machine => "machine" + | .ramdisk => "ramdisk" + +def ImageTypeValues.wireValues : List (String × ImageTypeValues) := [ + ("kernel", .kernel), + ("machine", .machine), + ("ramdisk", .ramdisk)] + +def ImageTypeValues.ofWire (text : String) : Except String ImageTypeValues := + match List.find? (·.1 == text) ImageTypeValues.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ImageTypeValues has no value {text}" + +instance : Key ImageTypeValues := ⟨ImageTypeValues.wire, ImageTypeValues.ofWire⟩ + +instance : Shape ImageTypeValues where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ImageTypeValues.ofWire text + | _ => .error "expected a string" + +/-- A single entry in an image usage report, detailing how an image is being used by a specific Amazon Web Services account and resource type. -/ +structure ImageUsageReportEntry where + /-- The ID of the account that uses the image. -/ + accountId : Option String := none + /-- The ID of the image. -/ + imageId : Option String := none + /-- The date and time the report creation was initiated. -/ + reportCreationTime : Option Timestamp := none + /-- The ID of the report. -/ + reportId : Option String := none + /-- The type of resource ( ec2:Instance | ec2:LaunchTemplate | imagebuilder:ImageRecipe | imagebuilder:ContainerRecipe ). -/ + resourceType : Option String := none + /-- The number of times resources of this type reference this image in the account. -/ + usageCount : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageUsageReportEntry where + schema := .struct "ImageUsageReportEntry" [({ name := "AccountId", xmlName := some "accountId", queryName := some "AccountId" }, .string), + ({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "ReportCreationTime", xmlName := some "reportCreationTime", queryName := some "ReportCreationTime" }, (.time none)), + ({ name := "ReportId", xmlName := some "reportId", queryName := some "ReportId" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, .string), + ({ name := "UsageCount", xmlName := some "usageCount", queryName := some "UsageCount" }, .int)] + toValue x := record [putOpt "AccountId" x.accountId, putOpt "ImageId" x.imageId, putOpt "ReportCreationTime" x.reportCreationTime, putOpt "ReportId" x.reportId, putOpt "ResourceType" x.resourceType, putOpt "UsageCount" x.usageCount] + ofValue v := do + let accountId ← v.opt "AccountId" + let imageId ← v.opt "ImageId" + let reportCreationTime ← v.opt "ReportCreationTime" + let reportId ← v.opt "ReportId" + let resourceType ← v.opt "ResourceType" + let usageCount ← v.opt "UsageCount" + return { accountId, imageId, reportCreationTime, reportId, resourceType, usageCount } + +/-- The options that affect the scope of the report. -/ +structure ImageUsageResourceTypeOption where + /-- The name of the option. -/ + optionName : Option String := none + /-- The number of launch template versions to check. -/ + optionValues : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageUsageResourceTypeOption where + schema := .struct "ImageUsageResourceTypeOption" [({ name := "OptionName", xmlName := some "optionName", queryName := some "OptionName" }, .string), + ({ name := "OptionValues", xmlName := some "optionValueSet", queryName := some "OptionValueSet" }, (.list .string "item"))] + toValue x := record [putOpt "OptionName" x.optionName, putOpt "OptionValues" x.optionValues] + ofValue v := do + let optionName ← v.opt "OptionName" + let optionValues ← v.opt "OptionValues" + return { optionName, optionValues } + +/-- The options that affect the scope of the report. -/ +structure ImageUsageResourceTypeOptionRequest where + /-- The name of the option. -/ + optionName : Option String := none + /-- A value for the specified option. -/ + optionValues : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageUsageResourceTypeOptionRequest where + schema := .struct "ImageUsageResourceTypeOptionRequest" [({ name := "OptionName" }, .string), + ({ name := "OptionValues", xmlName := some "OptionValue" }, (.list .string "item"))] + toValue x := record [putOpt "OptionName" x.optionName, putOpt "OptionValues" x.optionValues] + ofValue v := do + let optionName ← v.opt "OptionName" + let optionValues ← v.opt "OptionValues" + return { optionName, optionValues } + +/-- Describes a watermark attached to an AMI. -/ +structure ImageWatermark where + /-- The creation date of the source AMI, in the following format: YYYY - MM - DD T HH : MM : SS . -/ + sourceImageCreationTime : Option Timestamp := none + /-- The ID of the AMI to which the watermark was originally attached. -/ + sourceImageId : Option String := none + /-- The Region where the watermark was originally attached. -/ + sourceImageRegion : Option String := none + /-- The date and time the watermark was attached to the AMI, in the following format: YYYY - MM - DD T HH : MM : SS . -/ + watermarkCreationTime : Option Timestamp := none + /-- The watermark identifier, in accountId:watermarkName format (for example, 123456789012:approvedAmi ). -/ + watermarkKey : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageWatermark where + schema := .struct "ImageWatermark" [({ name := "SourceImageCreationTime", xmlName := some "sourceImageCreationTime", queryName := some "SourceImageCreationTime" }, (.time none)), + ({ name := "SourceImageId", xmlName := some "sourceImageId", queryName := some "SourceImageId" }, .string), + ({ name := "SourceImageRegion", xmlName := some "sourceImageRegion", queryName := some "SourceImageRegion" }, .string), + ({ name := "WatermarkCreationTime", xmlName := some "watermarkCreationTime", queryName := some "WatermarkCreationTime" }, (.time none)), + ({ name := "WatermarkKey", xmlName := some "watermarkKey", queryName := some "WatermarkKey" }, .string)] + toValue x := record [putOpt "SourceImageCreationTime" x.sourceImageCreationTime, putOpt "SourceImageId" x.sourceImageId, putOpt "SourceImageRegion" x.sourceImageRegion, putOpt "WatermarkCreationTime" x.watermarkCreationTime, putOpt "WatermarkKey" x.watermarkKey] + ofValue v := do + let sourceImageCreationTime ← v.opt "SourceImageCreationTime" + let sourceImageId ← v.opt "SourceImageId" + let sourceImageRegion ← v.opt "SourceImageRegion" + let watermarkCreationTime ← v.opt "WatermarkCreationTime" + let watermarkKey ← v.opt "WatermarkKey" + return { sourceImageCreationTime, sourceImageId, sourceImageRegion, watermarkCreationTime, watermarkKey } + +/-- The watermark filter criteria for an allowed image. -/ +structure ImageWatermarkFilterRequest where + /-- The maximum number of days that have elapsed since the source image was created. -/ + maximumDaysSinceSourceImageCreated : Option Int := none + /-- The maximum number of days that have elapsed since the watermark was attached to the image. -/ + maximumDaysSinceWatermarkCreated : Option Int := none + /-- The Region where the watermark was originally created. -/ + sourceImageRegion : Option String := none + /-- The accountId:name of the watermark. -/ + watermarkKey : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageWatermarkFilterRequest where + schema := .struct "ImageWatermarkFilterRequest" [({ name := "MaximumDaysSinceSourceImageCreated" }, .int), + ({ name := "MaximumDaysSinceWatermarkCreated" }, .int), + ({ name := "SourceImageRegion" }, .string), + ({ name := "WatermarkKey" }, .string)] + toValue x := record [putOpt "MaximumDaysSinceSourceImageCreated" x.maximumDaysSinceSourceImageCreated, putOpt "MaximumDaysSinceWatermarkCreated" x.maximumDaysSinceWatermarkCreated, putOpt "SourceImageRegion" x.sourceImageRegion, putOpt "WatermarkKey" x.watermarkKey] + ofValue v := do + let maximumDaysSinceSourceImageCreated ← v.opt "MaximumDaysSinceSourceImageCreated" + let maximumDaysSinceWatermarkCreated ← v.opt "MaximumDaysSinceWatermarkCreated" + let sourceImageRegion ← v.opt "SourceImageRegion" + let watermarkKey ← v.opt "WatermarkKey" + return { maximumDaysSinceSourceImageCreated, maximumDaysSinceWatermarkCreated, sourceImageRegion, watermarkKey } + +/-- The watermark filter criteria for an allowed image. -/ +structure ImageWatermarkFilterResponse where + /-- The maximum number of days that have elapsed since the source image was created. -/ + maximumDaysSinceSourceImageCreated : Option Int := none + /-- The maximum number of days that have elapsed since the watermark was attached to the image. -/ + maximumDaysSinceWatermarkCreated : Option Int := none + /-- The Region where the watermark was originally created. -/ + sourceImageRegion : Option String := none + /-- The accountId:name of the watermark. -/ + watermarkKey : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageWatermarkFilterResponse where + schema := .struct "ImageWatermarkFilterResponse" [({ name := "MaximumDaysSinceSourceImageCreated", xmlName := some "maximumDaysSinceSourceImageCreated", queryName := some "MaximumDaysSinceSourceImageCreated" }, .int), + ({ name := "MaximumDaysSinceWatermarkCreated", xmlName := some "maximumDaysSinceWatermarkCreated", queryName := some "MaximumDaysSinceWatermarkCreated" }, .int), + ({ name := "SourceImageRegion", xmlName := some "sourceImageRegion", queryName := some "SourceImageRegion" }, .string), + ({ name := "WatermarkKey", xmlName := some "watermarkKey", queryName := some "WatermarkKey" }, .string)] + toValue x := record [putOpt "MaximumDaysSinceSourceImageCreated" x.maximumDaysSinceSourceImageCreated, putOpt "MaximumDaysSinceWatermarkCreated" x.maximumDaysSinceWatermarkCreated, putOpt "SourceImageRegion" x.sourceImageRegion, putOpt "WatermarkKey" x.watermarkKey] + ofValue v := do + let maximumDaysSinceSourceImageCreated ← v.opt "MaximumDaysSinceSourceImageCreated" + let maximumDaysSinceWatermarkCreated ← v.opt "MaximumDaysSinceWatermarkCreated" + let sourceImageRegion ← v.opt "SourceImageRegion" + let watermarkKey ← v.opt "WatermarkKey" + return { maximumDaysSinceSourceImageCreated, maximumDaysSinceWatermarkCreated, sourceImageRegion, watermarkKey } + +inductive ImdsSupportValues where + | v2_0 +deriving DecidableEq, Repr, Inhabited + +def ImdsSupportValues.wire : ImdsSupportValues → String + | .v2_0 => "v2.0" + +def ImdsSupportValues.wireValues : List (String × ImdsSupportValues) := [ + ("v2.0", .v2_0)] + +def ImdsSupportValues.ofWire (text : String) : Except String ImdsSupportValues := + match List.find? (·.1 == text) ImdsSupportValues.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ImdsSupportValues has no value {text}" + +instance : Key ImdsSupportValues := ⟨ImdsSupportValues.wire, ImdsSupportValues.ofWire⟩ + +instance : Shape ImdsSupportValues where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ImdsSupportValues.ofWire text + | _ => .error "expected a string" + +structure ImportClientVpnClientCertificateRevocationListRequest where + /-- The client certificate revocation list file. -/ + certificateRevocationList : String + /-- The ID of the Client VPN endpoint to which the client certificate revocation list applies. -/ + clientVpnEndpointId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportClientVpnClientCertificateRevocationListRequest where + schema := .struct "ImportClientVpnClientCertificateRevocationListRequest" [({ name := "CertificateRevocationList", required := true }, .string), + ({ name := "ClientVpnEndpointId", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "CertificateRevocationList" x.certificateRevocationList, put "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "DryRun" x.dryRun] + ofValue v := do + let certificateRevocationList ← v.req "CertificateRevocationList" + let clientVpnEndpointId ← v.req "ClientVpnEndpointId" + let dryRun ← v.opt "DryRun" + return { certificateRevocationList, clientVpnEndpointId, dryRun } + +structure ImportClientVpnClientCertificateRevocationListResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportClientVpnClientCertificateRevocationListResult where + schema := .struct "ImportClientVpnClientCertificateRevocationListResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +/-- The request information of license configurations. -/ +structure ImportImageLicenseConfigurationRequest where + /-- The ARN of a license configuration. -/ + licenseConfigurationArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportImageLicenseConfigurationRequest where + schema := .struct "ImportImageLicenseConfigurationRequest" [({ name := "LicenseConfigurationArn" }, .string)] + toValue x := record [putOpt "LicenseConfigurationArn" x.licenseConfigurationArn] + ofValue v := do + let licenseConfigurationArn ← v.opt "LicenseConfigurationArn" + return { licenseConfigurationArn } + +/-- The response information for license configurations. -/ +structure ImportImageLicenseConfigurationResponse where + /-- The ARN of a license configuration. -/ + licenseConfigurationArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportImageLicenseConfigurationResponse where + schema := .struct "ImportImageLicenseConfigurationResponse" [({ name := "LicenseConfigurationArn", xmlName := some "licenseConfigurationArn", queryName := some "LicenseConfigurationArn" }, .string)] + toValue x := record [putOpt "LicenseConfigurationArn" x.licenseConfigurationArn] + ofValue v := do + let licenseConfigurationArn ← v.opt "LicenseConfigurationArn" + return { licenseConfigurationArn } + +/-- Amazon Elastic Inference is no longer available. -/ +structure InferenceDeviceMemoryInfo where + /-- The size of the memory available to the inference accelerator, in MiB. -/ + sizeInMiB : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InferenceDeviceMemoryInfo where + schema := .struct "InferenceDeviceMemoryInfo" [({ name := "SizeInMiB", xmlName := some "sizeInMiB", queryName := some "SizeInMiB" }, .int)] + toValue x := record [putOpt "SizeInMiB" x.sizeInMiB] + ofValue v := do + let sizeInMiB ← v.opt "SizeInMiB" + return { sizeInMiB } + +inductive IngestionStatus where + | ingestioN_COMPLETE + | ingestioN_FAILED + | initiaL_INGESTION_IN_PROGRESS +deriving DecidableEq, Repr, Inhabited + +def IngestionStatus.wire : IngestionStatus → String + | .ingestioN_COMPLETE => "ingestion-complete" + | .ingestioN_FAILED => "ingestion-failed" + | .initiaL_INGESTION_IN_PROGRESS => "initial-ingestion-in-progress" + +def IngestionStatus.wireValues : List (String × IngestionStatus) := [ + ("ingestion-complete", .ingestioN_COMPLETE), + ("ingestion-failed", .ingestioN_FAILED), + ("initial-ingestion-in-progress", .initiaL_INGESTION_IN_PROGRESS)] + +def IngestionStatus.ofWire (text : String) : Except String IngestionStatus := + match List.find? (·.1 == text) IngestionStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IngestionStatus has no value {text}" + +instance : Key IngestionStatus := ⟨IngestionStatus.wire, IngestionStatus.ofWire⟩ + +instance : Shape IngestionStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IngestionStatus.ofWire text + | _ => .error "expected a string" + +inductive InitializationType where + | default + | provisioned_rate + | volume_copy +deriving DecidableEq, Repr, Inhabited + +def InitializationType.wire : InitializationType → String + | .default => "default" + | .provisioned_rate => "provisioned-rate" + | .volume_copy => "volume-copy" + +def InitializationType.wireValues : List (String × InitializationType) := [ + ("default", .default), + ("provisioned-rate", .provisioned_rate), + ("volume-copy", .volume_copy)] + +def InitializationType.ofWire (text : String) : Except String InitializationType := + match List.find? (·.1 == text) InitializationType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InitializationType has no value {text}" + +instance : Key InitializationType := ⟨InitializationType.wire, InitializationType.ofWire⟩ + +instance : Shape InitializationType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InitializationType.ofWire text + | _ => .error "expected a string" + +/-- ENA Express is compatible with both TCP and UDP transport protocols. -/ +structure InstanceAttachmentEnaSrdUdpSpecification where + /-- Indicates whether UDP traffic to and from the instance uses ENA Express. -/ + enaSrdUdpEnabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceAttachmentEnaSrdUdpSpecification where + schema := .struct "InstanceAttachmentEnaSrdUdpSpecification" [({ name := "EnaSrdUdpEnabled", xmlName := some "enaSrdUdpEnabled", queryName := some "EnaSrdUdpEnabled" }, .bool)] + toValue x := record [putOpt "EnaSrdUdpEnabled" x.enaSrdUdpEnabled] + ofValue v := do + let enaSrdUdpEnabled ← v.opt "EnaSrdUdpEnabled" + return { enaSrdUdpEnabled } + +inductive InstanceAttributeName where + | blockDeviceMapping + | disableApiStop + | disableApiTermination + | ebsOptimized + | enaSupport + | enclaveOptions + | groupSet + | instanceInitiatedShutdownBehavior + | instanceType + | kernel + | productCodes + | ramdisk + | rootDeviceName + | sourceDestCheck + | sriovNetSupport + | userData +deriving DecidableEq, Repr, Inhabited + +def InstanceAttributeName.wire : InstanceAttributeName → String + | .blockDeviceMapping => "blockDeviceMapping" + | .disableApiStop => "disableApiStop" + | .disableApiTermination => "disableApiTermination" + | .ebsOptimized => "ebsOptimized" + | .enaSupport => "enaSupport" + | .enclaveOptions => "enclaveOptions" + | .groupSet => "groupSet" + | .instanceInitiatedShutdownBehavior => "instanceInitiatedShutdownBehavior" + | .instanceType => "instanceType" + | .kernel => "kernel" + | .productCodes => "productCodes" + | .ramdisk => "ramdisk" + | .rootDeviceName => "rootDeviceName" + | .sourceDestCheck => "sourceDestCheck" + | .sriovNetSupport => "sriovNetSupport" + | .userData => "userData" + +def InstanceAttributeName.wireValues : List (String × InstanceAttributeName) := [ + ("blockDeviceMapping", .blockDeviceMapping), + ("disableApiStop", .disableApiStop), + ("disableApiTermination", .disableApiTermination), + ("ebsOptimized", .ebsOptimized), + ("enaSupport", .enaSupport), + ("enclaveOptions", .enclaveOptions), + ("groupSet", .groupSet), + ("instanceInitiatedShutdownBehavior", .instanceInitiatedShutdownBehavior), + ("instanceType", .instanceType), + ("kernel", .kernel), + ("productCodes", .productCodes), + ("ramdisk", .ramdisk), + ("rootDeviceName", .rootDeviceName), + ("sourceDestCheck", .sourceDestCheck), + ("sriovNetSupport", .sriovNetSupport), + ("userData", .userData)] + +def InstanceAttributeName.ofWire (text : String) : Except String InstanceAttributeName := + match List.find? (·.1 == text) InstanceAttributeName.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InstanceAttributeName has no value {text}" + +instance : Key InstanceAttributeName := ⟨InstanceAttributeName.wire, InstanceAttributeName.ofWire⟩ + +instance : Shape InstanceAttributeName where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InstanceAttributeName.ofWire text + | _ => .error "expected a string" + +inductive InstanceAutoRecoveryState where + | default + | disabled +deriving DecidableEq, Repr, Inhabited + +def InstanceAutoRecoveryState.wire : InstanceAutoRecoveryState → String + | .default => "default" + | .disabled => "disabled" + +def InstanceAutoRecoveryState.wireValues : List (String × InstanceAutoRecoveryState) := [ + ("default", .default), + ("disabled", .disabled)] + +def InstanceAutoRecoveryState.ofWire (text : String) : Except String InstanceAutoRecoveryState := + match List.find? (·.1 == text) InstanceAutoRecoveryState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InstanceAutoRecoveryState has no value {text}" + +instance : Key InstanceAutoRecoveryState := ⟨InstanceAutoRecoveryState.wire, InstanceAutoRecoveryState.ofWire⟩ + +instance : Shape InstanceAutoRecoveryState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InstanceAutoRecoveryState.ofWire text + | _ => .error "expected a string" + +inductive InstanceBandwidthWeighting where + | default + | ebS_1 + | vpC_1 +deriving DecidableEq, Repr, Inhabited + +def InstanceBandwidthWeighting.wire : InstanceBandwidthWeighting → String + | .default => "default" + | .ebS_1 => "ebs-1" + | .vpC_1 => "vpc-1" + +def InstanceBandwidthWeighting.wireValues : List (String × InstanceBandwidthWeighting) := [ + ("default", .default), + ("ebs-1", .ebS_1), + ("vpc-1", .vpC_1)] + +def InstanceBandwidthWeighting.ofWire (text : String) : Except String InstanceBandwidthWeighting := + match List.find? (·.1 == text) InstanceBandwidthWeighting.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InstanceBandwidthWeighting has no value {text}" + +instance : Key InstanceBandwidthWeighting := ⟨InstanceBandwidthWeighting.wire, InstanceBandwidthWeighting.ofWire⟩ + +instance : Shape InstanceBandwidthWeighting where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InstanceBandwidthWeighting.ofWire text + | _ => .error "expected a string" + +inductive InstanceBootModeValues where + | legacy_bios + | uefi +deriving DecidableEq, Repr, Inhabited + +def InstanceBootModeValues.wire : InstanceBootModeValues → String + | .legacy_bios => "legacy-bios" + | .uefi => "uefi" + +def InstanceBootModeValues.wireValues : List (String × InstanceBootModeValues) := [ + ("legacy-bios", .legacy_bios), + ("uefi", .uefi)] + +def InstanceBootModeValues.ofWire (text : String) : Except String InstanceBootModeValues := + match List.find? (·.1 == text) InstanceBootModeValues.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InstanceBootModeValues has no value {text}" + +instance : Key InstanceBootModeValues := ⟨InstanceBootModeValues.wire, InstanceBootModeValues.ofWire⟩ + +instance : Shape InstanceBootModeValues where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InstanceBootModeValues.ofWire text + | _ => .error "expected a string" + +/-- Information about the number of instances that can be launched onto the Dedicated Host. -/ +structure InstanceCapacity where + /-- The number of instances that can be launched onto the Dedicated Host based on the host's available capacity. -/ + availableCapacity : Option Int := none + /-- The instance type supported by the Dedicated Host. -/ + instanceType : Option String := none + /-- The total number of instances that can be launched onto the Dedicated Host if there are no instances running on it. -/ + totalCapacity : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceCapacity where + schema := .struct "InstanceCapacity" [({ name := "AvailableCapacity", xmlName := some "availableCapacity", queryName := some "AvailableCapacity" }, .int), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, .string), + ({ name := "TotalCapacity", xmlName := some "totalCapacity", queryName := some "TotalCapacity" }, .int)] + toValue x := record [putOpt "AvailableCapacity" x.availableCapacity, putOpt "InstanceType" x.instanceType, putOpt "TotalCapacity" x.totalCapacity] + ofValue v := do + let availableCapacity ← v.opt "AvailableCapacity" + let instanceType ← v.opt "InstanceType" + let totalCapacity ← v.opt "TotalCapacity" + return { availableCapacity, instanceType, totalCapacity } + +/-- The DNS names of the endpoint. -/ +structure InstanceConnectEndpointDnsNames where + /-- The DNS name of the EC2 Instance Connect Endpoint. -/ + dnsName : Option String := none + /-- The Federal Information Processing Standards (FIPS) compliant DNS name of the EC2 Instance Connect Endpoint. -/ + fipsDnsName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceConnectEndpointDnsNames where + schema := .struct "InstanceConnectEndpointDnsNames" [({ name := "DnsName", xmlName := some "dnsName", queryName := some "DnsName" }, .string), + ({ name := "FipsDnsName", xmlName := some "fipsDnsName", queryName := some "FipsDnsName" }, .string)] + toValue x := record [putOpt "DnsName" x.dnsName, putOpt "FipsDnsName" x.fipsDnsName] + ofValue v := do + let dnsName ← v.opt "DnsName" + let fipsDnsName ← v.opt "FipsDnsName" + return { dnsName, fipsDnsName } + +/-- Describes the credit option for CPU usage of a burstable performance instance. -/ +structure InstanceCreditSpecification where + /-- The credit option for CPU usage of the instance. -/ + cpuCredits : Option String := none + /-- The ID of the instance. -/ + instanceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceCreditSpecification where + schema := .struct "InstanceCreditSpecification" [({ name := "CpuCredits", xmlName := some "cpuCredits", queryName := some "CpuCredits" }, .string), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string)] + toValue x := record [putOpt "CpuCredits" x.cpuCredits, putOpt "InstanceId" x.instanceId] + ofValue v := do + let cpuCredits ← v.opt "CpuCredits" + let instanceId ← v.opt "InstanceId" + return { cpuCredits, instanceId } + +/-- Describes the credit option for CPU usage of a burstable performance instance. -/ +structure InstanceCreditSpecificationRequest where + /-- The credit option for CPU usage of the instance. -/ + cpuCredits : Option String := none + /-- The ID of the instance. -/ + instanceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceCreditSpecificationRequest where + schema := .struct "InstanceCreditSpecificationRequest" [({ name := "CpuCredits" }, .string), + ({ name := "InstanceId", required := true }, .string)] + toValue x := record [putOpt "CpuCredits" x.cpuCredits, put "InstanceId" x.instanceId] + ofValue v := do + let cpuCredits ← v.opt "CpuCredits" + let instanceId ← v.req "InstanceId" + return { cpuCredits, instanceId } + +inductive InstanceEventWindowState where + | active + | creating + | deleted + | deleting +deriving DecidableEq, Repr, Inhabited + +def InstanceEventWindowState.wire : InstanceEventWindowState → String + | .active => "active" + | .creating => "creating" + | .deleted => "deleted" + | .deleting => "deleting" + +def InstanceEventWindowState.wireValues : List (String × InstanceEventWindowState) := [ + ("active", .active), + ("creating", .creating), + ("deleted", .deleted), + ("deleting", .deleting)] + +def InstanceEventWindowState.ofWire (text : String) : Except String InstanceEventWindowState := + match List.find? (·.1 == text) InstanceEventWindowState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InstanceEventWindowState has no value {text}" + +instance : Key InstanceEventWindowState := ⟨InstanceEventWindowState.wire, InstanceEventWindowState.ofWire⟩ + +instance : Shape InstanceEventWindowState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InstanceEventWindowState.ofWire text + | _ => .error "expected a string" + +inductive InstanceGeneration where + | current + | previous +deriving DecidableEq, Repr, Inhabited + +def InstanceGeneration.wire : InstanceGeneration → String + | .current => "current" + | .previous => "previous" + +def InstanceGeneration.wireValues : List (String × InstanceGeneration) := [ + ("current", .current), + ("previous", .previous)] + +def InstanceGeneration.ofWire (text : String) : Except String InstanceGeneration := + match List.find? (·.1 == text) InstanceGeneration.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InstanceGeneration has no value {text}" + +instance : Key InstanceGeneration := ⟨InstanceGeneration.wire, InstanceGeneration.ofWire⟩ + +instance : Shape InstanceGeneration where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InstanceGeneration.ofWire text + | _ => .error "expected a string" + +inductive InstanceHealthStatus where + | healthY_STATUS + | unhealthY_STATUS +deriving DecidableEq, Repr, Inhabited + +def InstanceHealthStatus.wire : InstanceHealthStatus → String + | .healthY_STATUS => "healthy" + | .unhealthY_STATUS => "unhealthy" + +def InstanceHealthStatus.wireValues : List (String × InstanceHealthStatus) := [ + ("healthy", .healthY_STATUS), + ("unhealthy", .unhealthY_STATUS)] + +def InstanceHealthStatus.ofWire (text : String) : Except String InstanceHealthStatus := + match List.find? (·.1 == text) InstanceHealthStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InstanceHealthStatus has no value {text}" + +instance : Key InstanceHealthStatus := ⟨InstanceHealthStatus.wire, InstanceHealthStatus.ofWire⟩ + +instance : Shape InstanceHealthStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InstanceHealthStatus.ofWire text + | _ => .error "expected a string" + +inductive InstanceInterruptionBehavior where + | hibernate + | stop + | terminate +deriving DecidableEq, Repr, Inhabited + +def InstanceInterruptionBehavior.wire : InstanceInterruptionBehavior → String + | .hibernate => "hibernate" + | .stop => "stop" + | .terminate => "terminate" + +def InstanceInterruptionBehavior.wireValues : List (String × InstanceInterruptionBehavior) := [ + ("hibernate", .hibernate), + ("stop", .stop), + ("terminate", .terminate)] + +def InstanceInterruptionBehavior.ofWire (text : String) : Except String InstanceInterruptionBehavior := + match List.find? (·.1 == text) InstanceInterruptionBehavior.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InstanceInterruptionBehavior has no value {text}" + +instance : Key InstanceInterruptionBehavior := ⟨InstanceInterruptionBehavior.wire, InstanceInterruptionBehavior.ofWire⟩ + +instance : Shape InstanceInterruptionBehavior where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InstanceInterruptionBehavior.ofWire text + | _ => .error "expected a string" + +/-- Information about an IPv4 prefix. -/ +structure InstanceIpv4Prefix where + /-- One or more IPv4 prefixes assigned to the network interface. -/ + ipv4Prefix : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceIpv4Prefix where + schema := .struct "InstanceIpv4Prefix" [({ name := "Ipv4Prefix", xmlName := some "ipv4Prefix", queryName := some "Ipv4Prefix" }, .string)] + toValue x := record [putOpt "Ipv4Prefix" x.ipv4Prefix] + ofValue v := do + let ipv4Prefix ← v.opt "Ipv4Prefix" + return { ipv4Prefix } + +/-- Describes an IPv6 address. -/ +structure InstanceIpv6Address where + /-- The IPv6 address. -/ + ipv6Address : Option String := none + /-- Determines if an IPv6 address associated with a network interface is the primary IPv6 address. -/ + isPrimaryIpv6 : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceIpv6Address where + schema := .struct "InstanceIpv6Address" [({ name := "Ipv6Address", xmlName := some "ipv6Address", queryName := some "Ipv6Address" }, .string), + ({ name := "IsPrimaryIpv6", xmlName := some "isPrimaryIpv6", queryName := some "IsPrimaryIpv6" }, .bool)] + toValue x := record [putOpt "Ipv6Address" x.ipv6Address, putOpt "IsPrimaryIpv6" x.isPrimaryIpv6] + ofValue v := do + let ipv6Address ← v.opt "Ipv6Address" + let isPrimaryIpv6 ← v.opt "IsPrimaryIpv6" + return { ipv6Address, isPrimaryIpv6 } + +/-- Describes an IPv6 address. -/ +structure InstanceIpv6AddressRequest where + /-- The IPv6 address. -/ + ipv6Address : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceIpv6AddressRequest where + schema := .struct "InstanceIpv6AddressRequest" [({ name := "Ipv6Address" }, .string)] + toValue x := record [putOpt "Ipv6Address" x.ipv6Address] + ofValue v := do + let ipv6Address ← v.opt "Ipv6Address" + return { ipv6Address } + +/-- Information about an IPv6 prefix. -/ +structure InstanceIpv6Prefix where + /-- One or more IPv6 prefixes assigned to the network interface. -/ + ipv6Prefix : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceIpv6Prefix where + schema := .struct "InstanceIpv6Prefix" [({ name := "Ipv6Prefix", xmlName := some "ipv6Prefix", queryName := some "Ipv6Prefix" }, .string)] + toValue x := record [putOpt "Ipv6Prefix" x.ipv6Prefix] + ofValue v := do + let ipv6Prefix ← v.opt "Ipv6Prefix" + return { ipv6Prefix } + +inductive InstanceLifecycle where + | capacitY_BLOCK + | interruptiblE_CAPACITY_RESERVATION + | oN_DEMAND + | spot +deriving DecidableEq, Repr, Inhabited + +def InstanceLifecycle.wire : InstanceLifecycle → String + | .capacitY_BLOCK => "capacity-block" + | .interruptiblE_CAPACITY_RESERVATION => "interruptible-capacity-reservation" + | .oN_DEMAND => "on-demand" + | .spot => "spot" + +def InstanceLifecycle.wireValues : List (String × InstanceLifecycle) := [ + ("capacity-block", .capacitY_BLOCK), + ("interruptible-capacity-reservation", .interruptiblE_CAPACITY_RESERVATION), + ("on-demand", .oN_DEMAND), + ("spot", .spot)] + +def InstanceLifecycle.ofWire (text : String) : Except String InstanceLifecycle := + match List.find? (·.1 == text) InstanceLifecycle.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InstanceLifecycle has no value {text}" + +instance : Key InstanceLifecycle := ⟨InstanceLifecycle.wire, InstanceLifecycle.ofWire⟩ + +instance : Shape InstanceLifecycle where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InstanceLifecycle.ofWire text + | _ => .error "expected a string" + +inductive InstanceLifecycleType where + | capacity_block + | interruptible_capacity_reservation + | scheduled + | spot +deriving DecidableEq, Repr, Inhabited + +def InstanceLifecycleType.wire : InstanceLifecycleType → String + | .capacity_block => "capacity-block" + | .interruptible_capacity_reservation => "interruptible-capacity-reservation" + | .scheduled => "scheduled" + | .spot => "spot" + +def InstanceLifecycleType.wireValues : List (String × InstanceLifecycleType) := [ + ("capacity-block", .capacity_block), + ("interruptible-capacity-reservation", .interruptible_capacity_reservation), + ("scheduled", .scheduled), + ("spot", .spot)] + +def InstanceLifecycleType.ofWire (text : String) : Except String InstanceLifecycleType := + match List.find? (·.1 == text) InstanceLifecycleType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InstanceLifecycleType has no value {text}" + +instance : Key InstanceLifecycleType := ⟨InstanceLifecycleType.wire, InstanceLifecycleType.ofWire⟩ + +instance : Shape InstanceLifecycleType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InstanceLifecycleType.ofWire text + | _ => .error "expected a string" + +inductive InstanceMatchCriteria where + | «open» + | targeted +deriving DecidableEq, Repr, Inhabited + +def InstanceMatchCriteria.wire : InstanceMatchCriteria → String + | .«open» => "open" + | .targeted => "targeted" + +def InstanceMatchCriteria.wireValues : List (String × InstanceMatchCriteria) := [ + ("open", .«open»), + ("targeted", .targeted)] + +def InstanceMatchCriteria.ofWire (text : String) : Except String InstanceMatchCriteria := + match List.find? (·.1 == text) InstanceMatchCriteria.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InstanceMatchCriteria has no value {text}" + +instance : Key InstanceMatchCriteria := ⟨InstanceMatchCriteria.wire, InstanceMatchCriteria.ofWire⟩ + +instance : Shape InstanceMatchCriteria where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InstanceMatchCriteria.ofWire text + | _ => .error "expected a string" + +inductive InstanceMetadataEndpointState where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def InstanceMetadataEndpointState.wire : InstanceMetadataEndpointState → String + | .disabled => "disabled" + | .enabled => "enabled" + +def InstanceMetadataEndpointState.wireValues : List (String × InstanceMetadataEndpointState) := [ + ("disabled", .disabled), + ("enabled", .enabled)] + +def InstanceMetadataEndpointState.ofWire (text : String) : Except String InstanceMetadataEndpointState := + match List.find? (·.1 == text) InstanceMetadataEndpointState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InstanceMetadataEndpointState has no value {text}" + +instance : Key InstanceMetadataEndpointState := ⟨InstanceMetadataEndpointState.wire, InstanceMetadataEndpointState.ofWire⟩ + +instance : Shape InstanceMetadataEndpointState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InstanceMetadataEndpointState.ofWire text + | _ => .error "expected a string" + +inductive InstanceMetadataOptionsState where + | applied + | pending +deriving DecidableEq, Repr, Inhabited + +def InstanceMetadataOptionsState.wire : InstanceMetadataOptionsState → String + | .applied => "applied" + | .pending => "pending" + +def InstanceMetadataOptionsState.wireValues : List (String × InstanceMetadataOptionsState) := [ + ("applied", .applied), + ("pending", .pending)] + +def InstanceMetadataOptionsState.ofWire (text : String) : Except String InstanceMetadataOptionsState := + match List.find? (·.1 == text) InstanceMetadataOptionsState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InstanceMetadataOptionsState has no value {text}" + +instance : Key InstanceMetadataOptionsState := ⟨InstanceMetadataOptionsState.wire, InstanceMetadataOptionsState.ofWire⟩ + +instance : Shape InstanceMetadataOptionsState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InstanceMetadataOptionsState.ofWire text + | _ => .error "expected a string" + +inductive InstanceMetadataProtocolState where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def InstanceMetadataProtocolState.wire : InstanceMetadataProtocolState → String + | .disabled => "disabled" + | .enabled => "enabled" + +def InstanceMetadataProtocolState.wireValues : List (String × InstanceMetadataProtocolState) := [ + ("disabled", .disabled), + ("enabled", .enabled)] + +def InstanceMetadataProtocolState.ofWire (text : String) : Except String InstanceMetadataProtocolState := + match List.find? (·.1 == text) InstanceMetadataProtocolState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InstanceMetadataProtocolState has no value {text}" + +instance : Key InstanceMetadataProtocolState := ⟨InstanceMetadataProtocolState.wire, InstanceMetadataProtocolState.ofWire⟩ + +instance : Shape InstanceMetadataProtocolState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InstanceMetadataProtocolState.ofWire text + | _ => .error "expected a string" + +inductive InstanceMetadataTagsState where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def InstanceMetadataTagsState.wire : InstanceMetadataTagsState → String + | .disabled => "disabled" + | .enabled => "enabled" + +def InstanceMetadataTagsState.wireValues : List (String × InstanceMetadataTagsState) := [ + ("disabled", .disabled), + ("enabled", .enabled)] + +def InstanceMetadataTagsState.ofWire (text : String) : Except String InstanceMetadataTagsState := + match List.find? (·.1 == text) InstanceMetadataTagsState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InstanceMetadataTagsState has no value {text}" + +instance : Key InstanceMetadataTagsState := ⟨InstanceMetadataTagsState.wire, InstanceMetadataTagsState.ofWire⟩ + +instance : Shape InstanceMetadataTagsState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InstanceMetadataTagsState.ofWire text + | _ => .error "expected a string" + +/-- Describes association information for an Elastic IP address (IPv4). -/ +structure InstanceNetworkInterfaceAssociation where + /-- The carrier IP address associated with the network interface. -/ + carrierIp : Option String := none + /-- The customer-owned IP address associated with the network interface. -/ + customerOwnedIp : Option String := none + /-- The ID of the owner of the Elastic IP address. -/ + ipOwnerId : Option String := none + /-- The public DNS name. -/ + publicDnsName : Option String := none + /-- The public IP address or Elastic IP address bound to the network interface. -/ + publicIp : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceNetworkInterfaceAssociation where + schema := .struct "InstanceNetworkInterfaceAssociation" [({ name := "CarrierIp", xmlName := some "carrierIp", queryName := some "CarrierIp" }, .string), + ({ name := "CustomerOwnedIp", xmlName := some "customerOwnedIp", queryName := some "CustomerOwnedIp" }, .string), + ({ name := "IpOwnerId", xmlName := some "ipOwnerId", queryName := some "IpOwnerId" }, .string), + ({ name := "PublicDnsName", xmlName := some "publicDnsName", queryName := some "PublicDnsName" }, .string), + ({ name := "PublicIp", xmlName := some "publicIp", queryName := some "PublicIp" }, .string)] + toValue x := record [putOpt "CarrierIp" x.carrierIp, putOpt "CustomerOwnedIp" x.customerOwnedIp, putOpt "IpOwnerId" x.ipOwnerId, putOpt "PublicDnsName" x.publicDnsName, putOpt "PublicIp" x.publicIp] + ofValue v := do + let carrierIp ← v.opt "CarrierIp" + let customerOwnedIp ← v.opt "CustomerOwnedIp" + let ipOwnerId ← v.opt "IpOwnerId" + let publicDnsName ← v.opt "PublicDnsName" + let publicIp ← v.opt "PublicIp" + return { carrierIp, customerOwnedIp, ipOwnerId, publicDnsName, publicIp } + +inductive InstanceRebootMigrationState where + | default + | disabled +deriving DecidableEq, Repr, Inhabited + +def InstanceRebootMigrationState.wire : InstanceRebootMigrationState → String + | .default => "default" + | .disabled => "disabled" + +def InstanceRebootMigrationState.wireValues : List (String × InstanceRebootMigrationState) := [ + ("default", .default), + ("disabled", .disabled)] + +def InstanceRebootMigrationState.ofWire (text : String) : Except String InstanceRebootMigrationState := + match List.find? (·.1 == text) InstanceRebootMigrationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InstanceRebootMigrationState has no value {text}" + +instance : Key InstanceRebootMigrationState := ⟨InstanceRebootMigrationState.wire, InstanceRebootMigrationState.ofWire⟩ + +instance : Shape InstanceRebootMigrationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InstanceRebootMigrationState.ofWire text + | _ => .error "expected a string" + +/-- Describes a private IPv4 address for a secondary interface. -/ +structure InstanceSecondaryInterfacePrivateIpAddress where + /-- The private IPv4 address. -/ + privateIpAddress : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceSecondaryInterfacePrivateIpAddress where + schema := .struct "InstanceSecondaryInterfacePrivateIpAddress" [({ name := "PrivateIpAddress", xmlName := some "privateIpAddress", queryName := some "PrivateIpAddress" }, .string)] + toValue x := record [putOpt "PrivateIpAddress" x.privateIpAddress] + ofValue v := do + let privateIpAddress ← v.opt "PrivateIpAddress" + return { privateIpAddress } + +/-- Describes a private IPv4 address for a secondary interface request. -/ +structure InstanceSecondaryInterfacePrivateIpAddressRequest where + /-- The private IPv4 address. -/ + privateIpAddress : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceSecondaryInterfacePrivateIpAddressRequest where + schema := .struct "InstanceSecondaryInterfacePrivateIpAddressRequest" [({ name := "PrivateIpAddress", required := true }, .string)] + toValue x := record [put "PrivateIpAddress" x.privateIpAddress] + ofValue v := do + let privateIpAddress ← v.req "PrivateIpAddress" + return { privateIpAddress } + +/-- The instance details to specify which volumes should be snapshotted. -/ +structure InstanceSpecification where + /-- Excludes the root volume from being snapshotted. -/ + excludeBootVolume : Option Bool := none + /-- The IDs of the data (non-root) volumes to exclude from the multi-volume snapshot set. -/ + excludeDataVolumeIds : Option (List String) := none + /-- The instance to specify which volumes should be snapshotted. -/ + instanceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceSpecification where + schema := .struct "InstanceSpecification" [({ name := "ExcludeBootVolume" }, .bool), + ({ name := "ExcludeDataVolumeIds", xmlName := some "ExcludeDataVolumeId" }, (.list .string "VolumeId")), + ({ name := "InstanceId", required := true }, .string)] + toValue x := record [putOpt "ExcludeBootVolume" x.excludeBootVolume, putOpt "ExcludeDataVolumeIds" x.excludeDataVolumeIds, put "InstanceId" x.instanceId] + ofValue v := do + let excludeBootVolume ← v.opt "ExcludeBootVolume" + let excludeDataVolumeIds ← v.opt "ExcludeDataVolumeIds" + let instanceId ← v.req "InstanceId" + return { excludeBootVolume, excludeDataVolumeIds, instanceId } + +inductive InstanceStateName where + | pending + | running + | shutting_down + | stopped + | stopping + | terminated +deriving DecidableEq, Repr, Inhabited + +def InstanceStateName.wire : InstanceStateName → String + | .pending => "pending" + | .running => "running" + | .shutting_down => "shutting-down" + | .stopped => "stopped" + | .stopping => "stopping" + | .terminated => "terminated" + +def InstanceStateName.wireValues : List (String × InstanceStateName) := [ + ("pending", .pending), + ("running", .running), + ("shutting-down", .shutting_down), + ("stopped", .stopped), + ("stopping", .stopping), + ("terminated", .terminated)] + +def InstanceStateName.ofWire (text : String) : Except String InstanceStateName := + match List.find? (·.1 == text) InstanceStateName.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InstanceStateName has no value {text}" + +instance : Key InstanceStateName := ⟨InstanceStateName.wire, InstanceStateName.ofWire⟩ + +instance : Shape InstanceStateName where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InstanceStateName.ofWire text + | _ => .error "expected a string" + +inductive InstanceStorageEncryptionSupport where + | required + | unsupported +deriving DecidableEq, Repr, Inhabited + +def InstanceStorageEncryptionSupport.wire : InstanceStorageEncryptionSupport → String + | .required => "required" + | .unsupported => "unsupported" + +def InstanceStorageEncryptionSupport.wireValues : List (String × InstanceStorageEncryptionSupport) := [ + ("required", .required), + ("unsupported", .unsupported)] + +def InstanceStorageEncryptionSupport.ofWire (text : String) : Except String InstanceStorageEncryptionSupport := + match List.find? (·.1 == text) InstanceStorageEncryptionSupport.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InstanceStorageEncryptionSupport has no value {text}" + +instance : Key InstanceStorageEncryptionSupport := ⟨InstanceStorageEncryptionSupport.wire, InstanceStorageEncryptionSupport.ofWire⟩ + +instance : Shape InstanceStorageEncryptionSupport where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InstanceStorageEncryptionSupport.ofWire text + | _ => .error "expected a string" + +/-- Describes the registered tag keys for the current Region. -/ +structure InstanceTagNotificationAttribute where + /-- Indicates wheter all tag keys in the current Region are registered to appear in scheduled event notifications. -/ + includeAllTagsOfInstance : Option Bool := none + /-- The registered tag keys. -/ + instanceTagKeys : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceTagNotificationAttribute where + schema := .struct "InstanceTagNotificationAttribute" [({ name := "IncludeAllTagsOfInstance", xmlName := some "includeAllTagsOfInstance", queryName := some "IncludeAllTagsOfInstance" }, .bool), + ({ name := "InstanceTagKeys", xmlName := some "instanceTagKeySet", queryName := some "InstanceTagKeySet" }, (.list .string "item"))] + toValue x := record [putOpt "IncludeAllTagsOfInstance" x.includeAllTagsOfInstance, putOpt "InstanceTagKeys" x.instanceTagKeys] + ofValue v := do + let includeAllTagsOfInstance ← v.opt "IncludeAllTagsOfInstance" + let instanceTagKeys ← v.opt "InstanceTagKeys" + return { includeAllTagsOfInstance, instanceTagKeys } + +/-- Information about the instance topology. -/ +structure InstanceTopology where + /-- The name of the Availability Zone or Local Zone that the instance is in. -/ + availabilityZone : Option String := none + /-- The ID of the Capacity Block. -/ + capacityBlockId : Option String := none + /-- The name of the placement group that the instance is in. -/ + groupName : Option String := none + /-- The instance ID. -/ + instanceId : Option String := none + /-- The instance type. -/ + instanceType : Option String := none + /-- The network nodes. -/ + networkNodes : Option (List String) := none + /-- The ID of the Availability Zone or Local Zone that the instance is in. -/ + zoneId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceTopology where + schema := .struct "InstanceTopology" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "CapacityBlockId", xmlName := some "capacityBlockId", queryName := some "CapacityBlockId" }, .string), + ({ name := "GroupName", xmlName := some "groupName", queryName := some "GroupName" }, .string), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, .string), + ({ name := "NetworkNodes", xmlName := some "networkNodeSet", queryName := some "NetworkNodeSet" }, (.list .string "item")), + ({ name := "ZoneId", xmlName := some "zoneId", queryName := some "ZoneId" }, .string)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "CapacityBlockId" x.capacityBlockId, putOpt "GroupName" x.groupName, putOpt "InstanceId" x.instanceId, putOpt "InstanceType" x.instanceType, putOpt "NetworkNodes" x.networkNodes, putOpt "ZoneId" x.zoneId] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let capacityBlockId ← v.opt "CapacityBlockId" + let groupName ← v.opt "GroupName" + let instanceId ← v.opt "InstanceId" + let instanceType ← v.opt "InstanceType" + let networkNodes ← v.opt "NetworkNodes" + let zoneId ← v.opt "ZoneId" + return { availabilityZone, capacityBlockId, groupName, instanceId, instanceType, networkNodes, zoneId } + +inductive InstanceType where + | a1_2xlarge + | a1_4xlarge + | a1_large + | a1_medium + | a1_metal + | a1_xlarge + | c1_medium + | c1_xlarge + | c3_2xlarge + | c3_4xlarge + | c3_8xlarge + | c3_large + | c3_xlarge + | c4_2xlarge + | c4_4xlarge + | c4_8xlarge + | c4_large + | c4_xlarge + | c5_12xlarge + | c5_18xlarge + | c5_24xlarge + | c5_2xlarge + | c5_4xlarge + | c5_9xlarge + | c5_large + | c5_metal + | c5_xlarge + | c5a_12xlarge + | c5a_16xlarge + | c5a_24xlarge + | c5a_2xlarge + | c5a_4xlarge + | c5a_8xlarge + | c5a_large + | c5a_xlarge + | c5ad_12xlarge + | c5ad_16xlarge + | c5ad_24xlarge + | c5ad_2xlarge + | c5ad_4xlarge + | c5ad_8xlarge + | c5ad_large + | c5ad_xlarge + | c5d_12xlarge + | c5d_18xlarge + | c5d_24xlarge + | c5d_2xlarge + | c5d_4xlarge + | c5d_9xlarge + | c5d_large + | c5d_metal + | c5d_xlarge + | c5n_18xlarge + | c5n_2xlarge + | c5n_4xlarge + | c5n_9xlarge + | c5n_large + | c5n_metal + | c5n_xlarge + | c6a_12xlarge + | c6a_16xlarge + | c6a_24xlarge + | c6a_2xlarge + | c6a_32xlarge + | c6a_48xlarge + | c6a_4xlarge + | c6a_8xlarge + | c6a_large + | c6a_metal + | c6a_xlarge + | c6g_12xlarge + | c6g_16xlarge + | c6g_2xlarge + | c6g_4xlarge + | c6g_8xlarge + | c6g_large + | c6g_medium + | c6g_metal + | c6g_xlarge + | c6gd_12xlarge + | c6gd_16xlarge + | c6gd_2xlarge + | c6gd_4xlarge + | c6gd_8xlarge + | c6gd_large + | c6gd_medium + | c6gd_metal + | c6gd_xlarge + | c6gn_12xlarge + | c6gn_16xlarge + | c6gn_2xlarge + | c6gn_4xlarge + | c6gn_8xlarge + | c6gn_large + | c6gn_medium + | c6gn_xlarge + | c6i_12xlarge + | c6i_16xlarge + | c6i_24xlarge + | c6i_2xlarge + | c6i_32xlarge + | c6i_4xlarge + | c6i_8xlarge + | c6i_large + | c6i_metal + | c6i_xlarge + | c6id_12xlarge + | c6id_16xlarge + | c6id_24xlarge + | c6id_2xlarge + | c6id_32xlarge + | c6id_4xlarge + | c6id_8xlarge + | c6id_large + | c6id_metal + | c6id_xlarge + | c6in_12xlarge + | c6in_16xlarge + | c6in_24xlarge + | c6in_2xlarge + | c6in_32xlarge + | c6in_4xlarge + | c6in_8xlarge + | c6in_large + | c6in_metal + | c6in_xlarge + | c7a_12xlarge + | c7a_16xlarge + | c7a_24xlarge + | c7a_2xlarge + | c7a_32xlarge + | c7a_48xlarge + | c7a_4xlarge + | c7a_8xlarge + | c7a_large + | c7a_medium + | c7a_metal_48xl + | c7a_xlarge + | c7g_12xlarge + | c7g_16xlarge + | c7g_2xlarge + | c7g_4xlarge + | c7g_8xlarge + | c7g_large + | c7g_medium + | c7g_metal + | c7g_xlarge + | c7gd_12xlarge + | c7gd_16xlarge + | c7gd_2xlarge + | c7gd_4xlarge + | c7gd_8xlarge + | c7gd_large + | c7gd_medium + | c7gd_metal + | c7gd_xlarge + | c7gn_12xlarge + | c7gn_16xlarge + | c7gn_2xlarge + | c7gn_4xlarge + | c7gn_8xlarge + | c7gn_large + | c7gn_medium + | c7gn_metal + | c7gn_xlarge + | c7i_12xlarge + | c7i_16xlarge + | c7i_24xlarge + | c7i_2xlarge + | c7i_48xlarge + | c7i_4xlarge + | c7i_8xlarge + | c7i_flex_12xlarge + | c7i_flex_16xlarge + | c7i_flex_2xlarge + | c7i_flex_4xlarge + | c7i_flex_8xlarge + | c7i_flex_large + | c7i_flex_xlarge + | c7i_large + | c7i_metal_24xl + | c7i_metal_48xl + | c7i_xlarge + | c8a_12xlarge + | c8a_16xlarge + | c8a_24xlarge + | c8a_2xlarge + | c8a_48xlarge + | c8a_4xlarge + | c8a_8xlarge + | c8a_large + | c8a_medium + | c8a_metal_24xl + | c8a_metal_48xl + | c8a_xlarge + | c8g_12xlarge + | c8g_16xlarge + | c8g_24xlarge + | c8g_2xlarge + | c8g_48xlarge + | c8g_4xlarge + | c8g_8xlarge + | c8g_large + | c8g_medium + | c8g_metal_24xl + | c8g_metal_48xl + | c8g_xlarge + | c8gb_12xlarge + | c8gb_16xlarge + | c8gb_24xlarge + | c8gb_2xlarge + | c8gb_48xlarge + | c8gb_4xlarge + | c8gb_8xlarge + | c8gb_large + | c8gb_medium + | c8gb_metal_24xl + | c8gb_metal_48xl + | c8gb_xlarge + | c8gd_12xlarge + | c8gd_16xlarge + | c8gd_24xlarge + | c8gd_2xlarge + | c8gd_48xlarge + | c8gd_4xlarge + | c8gd_8xlarge + | c8gd_large + | c8gd_medium + | c8gd_metal_24xl + | c8gd_metal_48xl + | c8gd_xlarge + | c8gn_12xlarge + | c8gn_16xlarge + | c8gn_24xlarge + | c8gn_2xlarge + | c8gn_48xlarge + | c8gn_4xlarge + | c8gn_8xlarge + | c8gn_large + | c8gn_medium + | c8gn_metal_24xl + | c8gn_metal_48xl + | c8gn_xlarge + | c8i_12xlarge + | c8i_16xlarge + | c8i_24xlarge + | c8i_2xlarge + | c8i_32xlarge + | c8i_48xlarge + | c8i_4xlarge + | c8i_8xlarge + | c8i_96xlarge + | c8i_flex_12xlarge + | c8i_flex_16xlarge + | c8i_flex_2xlarge + | c8i_flex_4xlarge + | c8i_flex_8xlarge + | c8i_flex_large + | c8i_flex_xlarge + | c8i_large + | c8i_metal_48xl + | c8i_metal_96xl + | c8i_xlarge + | c8ib_12xlarge + | c8ib_16xlarge + | c8ib_24xlarge + | c8ib_2xlarge + | c8ib_32xlarge + | c8ib_48xlarge + | c8ib_4xlarge + | c8ib_8xlarge + | c8ib_96xlarge + | c8ib_large + | c8ib_metal_48xl + | c8ib_metal_96xl + | c8ib_xlarge + | c8id_12xlarge + | c8id_16xlarge + | c8id_24xlarge + | c8id_2xlarge + | c8id_32xlarge + | c8id_48xlarge + | c8id_4xlarge + | c8id_8xlarge + | c8id_96xlarge + | c8id_large + | c8id_metal_48xl + | c8id_metal_96xl + | c8id_xlarge + | c8in_12xlarge + | c8in_16xlarge + | c8in_24xlarge + | c8in_2xlarge + | c8in_32xlarge + | c8in_48xlarge + | c8in_4xlarge + | c8in_8xlarge + | c8in_96xlarge + | c8in_large + | c8in_metal_48xl + | c8in_metal_96xl + | c8in_xlarge + | c8ine_12xlarge + | c8ine_2xlarge + | c8ine_4xlarge + | c8ine_8xlarge + | c8ine_large + | c8ine_xlarge + | c9g_12xlarge + | c9g_16xlarge + | c9g_24xlarge + | c9g_2xlarge + | c9g_48xlarge + | c9g_4xlarge + | c9g_8xlarge + | c9g_large + | c9g_medium + | c9g_metal_48xl + | c9g_xlarge + | c9gd_12xlarge + | c9gd_16xlarge + | c9gd_24xlarge + | c9gd_2xlarge + | c9gd_48xlarge + | c9gd_4xlarge + | c9gd_8xlarge + | c9gd_large + | c9gd_medium + | c9gd_metal_48xl + | c9gd_xlarge + | cc1_4xlarge + | cc2_8xlarge + | cg1_4xlarge + | cr1_8xlarge + | d2_2xlarge + | d2_4xlarge + | d2_8xlarge + | d2_xlarge + | d3_2xlarge + | d3_4xlarge + | d3_8xlarge + | d3_xlarge + | d3en_12xlarge + | d3en_2xlarge + | d3en_4xlarge + | d3en_6xlarge + | d3en_8xlarge + | d3en_xlarge + | dl1_24xlarge + | dl2q_24xlarge + | f1_16xlarge + | f1_2xlarge + | f1_4xlarge + | f2_12xlarge + | f2_48xlarge + | f2_6xlarge + | g2_2xlarge + | g2_8xlarge + | g3_16xlarge + | g3_4xlarge + | g3_8xlarge + | g3s_xlarge + | g4ad_16xlarge + | g4ad_2xlarge + | g4ad_4xlarge + | g4ad_8xlarge + | g4ad_xlarge + | g4dn_12xlarge + | g4dn_16xlarge + | g4dn_2xlarge + | g4dn_4xlarge + | g4dn_8xlarge + | g4dn_metal + | g4dn_xlarge + | g5_12xlarge + | g5_16xlarge + | g5_24xlarge + | g5_2xlarge + | g5_48xlarge + | g5_4xlarge + | g5_8xlarge + | g5_xlarge + | g5g_16xlarge + | g5g_2xlarge + | g5g_4xlarge + | g5g_8xlarge + | g5g_metal + | g5g_xlarge + | g6_12xlarge + | g6_16xlarge + | g6_24xlarge + | g6_2xlarge + | g6_48xlarge + | g6_4xlarge + | g6_8xlarge + | g6_xlarge + | g6e_12xlarge + | g6e_16xlarge + | g6e_24xlarge + | g6e_2xlarge + | g6e_48xlarge + | g6e_4xlarge + | g6e_8xlarge + | g6e_xlarge + | g6f_2xlarge + | g6f_4xlarge + | g6f_large + | g6f_xlarge + | g7_12xlarge + | g7_24xlarge + | g7_2xlarge + | g7_48xlarge + | g7_4xlarge + | g7_8xlarge + | g7e_12xlarge + | g7e_24xlarge + | g7e_2xlarge + | g7e_48xlarge + | g7e_4xlarge + | g7e_8xlarge + | gr6_4xlarge + | gr6_8xlarge + | gr6f_4xlarge + | h1_16xlarge + | h1_2xlarge + | h1_4xlarge + | h1_8xlarge + | hi1_4xlarge + | hpc6a_48xlarge + | hpc6id_32xlarge + | hpc7a_12xlarge + | hpc7a_24xlarge + | hpc7a_48xlarge + | hpc7a_96xlarge + | hpc7g_16xlarge + | hpc7g_4xlarge + | hpc7g_8xlarge + | hpc8a_96xlarge + | hs1_8xlarge + | i2_2xlarge + | i2_4xlarge + | i2_8xlarge + | i2_xlarge + | i3_16xlarge + | i3_2xlarge + | i3_4xlarge + | i3_8xlarge + | i3_large + | i3_metal + | i3_xlarge + | i3en_12xlarge + | i3en_24xlarge + | i3en_2xlarge + | i3en_3xlarge + | i3en_6xlarge + | i3en_large + | i3en_metal + | i3en_xlarge + | i4g_16xlarge + | i4g_2xlarge + | i4g_4xlarge + | i4g_8xlarge + | i4g_large + | i4g_xlarge + | i4i_12xlarge + | i4i_16xlarge + | i4i_24xlarge + | i4i_2xlarge + | i4i_32xlarge + | i4i_4xlarge + | i4i_8xlarge + | i4i_large + | i4i_metal + | i4i_xlarge + | i7i_12xlarge + | i7i_16xlarge + | i7i_24xlarge + | i7i_2xlarge + | i7i_48xlarge + | i7i_4xlarge + | i7i_8xlarge + | i7i_large + | i7i_metal_24xl + | i7i_metal_48xl + | i7i_xlarge + | i7ie_12xlarge + | i7ie_18xlarge + | i7ie_24xlarge + | i7ie_2xlarge + | i7ie_3xlarge + | i7ie_48xlarge + | i7ie_6xlarge + | i7ie_large + | i7ie_metal_24xl + | i7ie_metal_48xl + | i7ie_xlarge + | i8g_12xlarge + | i8g_16xlarge + | i8g_24xlarge + | i8g_2xlarge + | i8g_48xlarge + | i8g_4xlarge + | i8g_8xlarge + | i8g_large + | i8g_metal_24xl + | i8g_metal_48xl + | i8g_xlarge + | i8ge_12xlarge + | i8ge_18xlarge + | i8ge_24xlarge + | i8ge_2xlarge + | i8ge_3xlarge + | i8ge_48xlarge + | i8ge_6xlarge + | i8ge_large + | i8ge_metal_24xl + | i8ge_metal_48xl + | i8ge_xlarge + | im4gn_16xlarge + | im4gn_2xlarge + | im4gn_4xlarge + | im4gn_8xlarge + | im4gn_large + | im4gn_xlarge + | inf1_24xlarge + | inf1_2xlarge + | inf1_6xlarge + | inf1_xlarge + | inf2_24xlarge + | inf2_48xlarge + | inf2_8xlarge + | inf2_xlarge + | is4gen_2xlarge + | is4gen_4xlarge + | is4gen_8xlarge + | is4gen_large + | is4gen_medium + | is4gen_xlarge + | m1_large + | m1_medium + | m1_small + | m1_xlarge + | m2_2xlarge + | m2_4xlarge + | m2_xlarge + | m3_2xlarge + | m3_large + | m3_medium + | m3_xlarge + | m4_10xlarge + | m4_16xlarge + | m4_2xlarge + | m4_4xlarge + | m4_large + | m4_xlarge + | m5_12xlarge + | m5_16xlarge + | m5_24xlarge + | m5_2xlarge + | m5_4xlarge + | m5_8xlarge + | m5_large + | m5_metal + | m5_xlarge + | m5a_12xlarge + | m5a_16xlarge + | m5a_24xlarge + | m5a_2xlarge + | m5a_4xlarge + | m5a_8xlarge + | m5a_large + | m5a_xlarge + | m5ad_12xlarge + | m5ad_16xlarge + | m5ad_24xlarge + | m5ad_2xlarge + | m5ad_4xlarge + | m5ad_8xlarge + | m5ad_large + | m5ad_xlarge + | m5d_12xlarge + | m5d_16xlarge + | m5d_24xlarge + | m5d_2xlarge + | m5d_4xlarge + | m5d_8xlarge + | m5d_large + | m5d_metal + | m5d_xlarge + | m5dn_12xlarge + | m5dn_16xlarge + | m5dn_24xlarge + | m5dn_2xlarge + | m5dn_4xlarge + | m5dn_8xlarge + | m5dn_large + | m5dn_metal + | m5dn_xlarge + | m5n_12xlarge + | m5n_16xlarge + | m5n_24xlarge + | m5n_2xlarge + | m5n_4xlarge + | m5n_8xlarge + | m5n_large + | m5n_metal + | m5n_xlarge + | m5zn_12xlarge + | m5zn_2xlarge + | m5zn_3xlarge + | m5zn_6xlarge + | m5zn_large + | m5zn_metal + | m5zn_xlarge + | m6a_12xlarge + | m6a_16xlarge + | m6a_24xlarge + | m6a_2xlarge + | m6a_32xlarge + | m6a_48xlarge + | m6a_4xlarge + | m6a_8xlarge + | m6a_large + | m6a_metal + | m6a_xlarge + | m6g_12xlarge + | m6g_16xlarge + | m6g_2xlarge + | m6g_4xlarge + | m6g_8xlarge + | m6g_large + | m6g_medium + | m6g_metal + | m6g_xlarge + | m6gd_12xlarge + | m6gd_16xlarge + | m6gd_2xlarge + | m6gd_4xlarge + | m6gd_8xlarge + | m6gd_large + | m6gd_medium + | m6gd_metal + | m6gd_xlarge + | m6i_12xlarge + | m6i_16xlarge + | m6i_24xlarge + | m6i_2xlarge + | m6i_32xlarge + | m6i_4xlarge + | m6i_8xlarge + | m6i_large + | m6i_metal + | m6i_xlarge + | m6id_12xlarge + | m6id_16xlarge + | m6id_24xlarge + | m6id_2xlarge + | m6id_32xlarge + | m6id_4xlarge + | m6id_8xlarge + | m6id_large + | m6id_metal + | m6id_xlarge + | m6idn_12xlarge + | m6idn_16xlarge + | m6idn_24xlarge + | m6idn_2xlarge + | m6idn_32xlarge + | m6idn_4xlarge + | m6idn_8xlarge + | m6idn_large + | m6idn_metal + | m6idn_xlarge + | m6in_12xlarge + | m6in_16xlarge + | m6in_24xlarge + | m6in_2xlarge + | m6in_32xlarge + | m6in_4xlarge + | m6in_8xlarge + | m6in_large + | m6in_metal + | m6in_xlarge + | m7a_12xlarge + | m7a_16xlarge + | m7a_24xlarge + | m7a_2xlarge + | m7a_32xlarge + | m7a_48xlarge + | m7a_4xlarge + | m7a_8xlarge + | m7a_large + | m7a_medium + | m7a_metal_48xl + | m7a_xlarge + | m7g_12xlarge + | m7g_16xlarge + | m7g_2xlarge + | m7g_4xlarge + | m7g_8xlarge + | m7g_large + | m7g_medium + | m7g_metal + | m7g_xlarge + | m7gd_12xlarge + | m7gd_16xlarge + | m7gd_2xlarge + | m7gd_4xlarge + | m7gd_8xlarge + | m7gd_large + | m7gd_medium + | m7gd_metal + | m7gd_xlarge + | m7i_12xlarge + | m7i_16xlarge + | m7i_24xlarge + | m7i_2xlarge + | m7i_48xlarge + | m7i_4xlarge + | m7i_8xlarge + | m7i_flex_12xlarge + | m7i_flex_16xlarge + | m7i_flex_2xlarge + | m7i_flex_4xlarge + | m7i_flex_8xlarge + | m7i_flex_large + | m7i_flex_xlarge + | m7i_large + | m7i_metal_24xl + | m7i_metal_48xl + | m7i_xlarge + | m8a_12xlarge + | m8a_16xlarge + | m8a_24xlarge + | m8a_2xlarge + | m8a_48xlarge + | m8a_4xlarge + | m8a_8xlarge + | m8a_large + | m8a_medium + | m8a_metal_24xl + | m8a_metal_48xl + | m8a_xlarge + | m8azn_12xlarge + | m8azn_24xlarge + | m8azn_3xlarge + | m8azn_6xlarge + | m8azn_large + | m8azn_medium + | m8azn_metal_12xl + | m8azn_metal_24xl + | m8azn_xlarge + | m8g_12xlarge + | m8g_16xlarge + | m8g_24xlarge + | m8g_2xlarge + | m8g_48xlarge + | m8g_4xlarge + | m8g_8xlarge + | m8g_large + | m8g_medium + | m8g_metal_24xl + | m8g_metal_48xl + | m8g_xlarge + | m8gb_12xlarge + | m8gb_16xlarge + | m8gb_24xlarge + | m8gb_2xlarge + | m8gb_48xlarge + | m8gb_4xlarge + | m8gb_8xlarge + | m8gb_large + | m8gb_medium + | m8gb_metal_24xl + | m8gb_metal_48xl + | m8gb_xlarge + | m8gd_12xlarge + | m8gd_16xlarge + | m8gd_24xlarge + | m8gd_2xlarge + | m8gd_48xlarge + | m8gd_4xlarge + | m8gd_8xlarge + | m8gd_large + | m8gd_medium + | m8gd_metal_24xl + | m8gd_metal_48xl + | m8gd_xlarge + | m8gn_12xlarge + | m8gn_16xlarge + | m8gn_24xlarge + | m8gn_2xlarge + | m8gn_48xlarge + | m8gn_4xlarge + | m8gn_8xlarge + | m8gn_large + | m8gn_medium + | m8gn_metal_24xl + | m8gn_metal_48xl + | m8gn_xlarge + | m8i_12xlarge + | m8i_16xlarge + | m8i_24xlarge + | m8i_2xlarge + | m8i_32xlarge + | m8i_48xlarge + | m8i_4xlarge + | m8i_8xlarge + | m8i_96xlarge + | m8i_flex_12xlarge + | m8i_flex_16xlarge + | m8i_flex_2xlarge + | m8i_flex_4xlarge + | m8i_flex_8xlarge + | m8i_flex_large + | m8i_flex_xlarge + | m8i_large + | m8i_metal_48xl + | m8i_metal_96xl + | m8i_xlarge + | m8ib_12xlarge + | m8ib_16xlarge + | m8ib_24xlarge + | m8ib_2xlarge + | m8ib_32xlarge + | m8ib_48xlarge + | m8ib_4xlarge + | m8ib_8xlarge + | m8ib_96xlarge + | m8ib_large + | m8ib_metal_48xl + | m8ib_metal_96xl + | m8ib_xlarge + | m8id_12xlarge + | m8id_16xlarge + | m8id_24xlarge + | m8id_2xlarge + | m8id_32xlarge + | m8id_48xlarge + | m8id_4xlarge + | m8id_8xlarge + | m8id_96xlarge + | m8id_large + | m8id_metal_48xl + | m8id_metal_96xl + | m8id_xlarge + | m8idb_12xlarge + | m8idb_16xlarge + | m8idb_24xlarge + | m8idb_2xlarge + | m8idb_32xlarge + | m8idb_48xlarge + | m8idb_4xlarge + | m8idb_8xlarge + | m8idb_96xlarge + | m8idb_large + | m8idb_metal_48xl + | m8idb_metal_96xl + | m8idb_xlarge + | m8idn_12xlarge + | m8idn_16xlarge + | m8idn_24xlarge + | m8idn_2xlarge + | m8idn_32xlarge + | m8idn_48xlarge + | m8idn_4xlarge + | m8idn_8xlarge + | m8idn_96xlarge + | m8idn_large + | m8idn_metal_48xl + | m8idn_metal_96xl + | m8idn_xlarge + | m8in_12xlarge + | m8in_16xlarge + | m8in_24xlarge + | m8in_2xlarge + | m8in_32xlarge + | m8in_48xlarge + | m8in_4xlarge + | m8in_8xlarge + | m8in_96xlarge + | m8in_large + | m8in_metal_48xl + | m8in_metal_96xl + | m8in_xlarge + | m8ine_12xlarge + | m8ine_2xlarge + | m8ine_4xlarge + | m8ine_8xlarge + | m8ine_large + | m8ine_xlarge + | m9g_12xlarge + | m9g_16xlarge + | m9g_24xlarge + | m9g_2xlarge + | m9g_48xlarge + | m9g_4xlarge + | m9g_8xlarge + | m9g_large + | m9g_medium + | m9g_metal_24xl + | m9g_metal_48xl + | m9g_xlarge + | m9gd_12xlarge + | m9gd_16xlarge + | m9gd_24xlarge + | m9gd_2xlarge + | m9gd_48xlarge + | m9gd_4xlarge + | m9gd_8xlarge + | m9gd_large + | m9gd_medium + | m9gd_metal_24xl + | m9gd_metal_48xl + | m9gd_xlarge + | mac1_metal + | mac2_m1ultra_metal + | mac2_m2_metal + | mac2_m2pro_metal + | mac2_metal + | mac_m3ultra_metal + | mac_m4_metal + | mac_m4max_metal + | mac_m4pro_metal + | p2_16xlarge + | p2_8xlarge + | p2_xlarge + | p3_16xlarge + | p3_2xlarge + | p3_8xlarge + | p3dn_24xlarge + | p4d_24xlarge + | p4de_24xlarge + | p5_48xlarge + | p5_4xlarge + | p5e_48xlarge + | p5en_48xlarge + | p6_b200_48xlarge + | p6_b300_48xlarge + | p6e_gb200_36xlarge + | r3_2xlarge + | r3_4xlarge + | r3_8xlarge + | r3_large + | r3_xlarge + | r4_16xlarge + | r4_2xlarge + | r4_4xlarge + | r4_8xlarge + | r4_large + | r4_xlarge + | r5_12xlarge + | r5_16xlarge + | r5_24xlarge + | r5_2xlarge + | r5_4xlarge + | r5_8xlarge + | r5_large + | r5_metal + | r5_xlarge + | r5a_12xlarge + | r5a_16xlarge + | r5a_24xlarge + | r5a_2xlarge + | r5a_4xlarge + | r5a_8xlarge + | r5a_large + | r5a_xlarge + | r5ad_12xlarge + | r5ad_16xlarge + | r5ad_24xlarge + | r5ad_2xlarge + | r5ad_4xlarge + | r5ad_8xlarge + | r5ad_large + | r5ad_xlarge + | r5b_12xlarge + | r5b_16xlarge + | r5b_24xlarge + | r5b_2xlarge + | r5b_4xlarge + | r5b_8xlarge + | r5b_large + | r5b_metal + | r5b_xlarge + | r5d_12xlarge + | r5d_16xlarge + | r5d_24xlarge + | r5d_2xlarge + | r5d_4xlarge + | r5d_8xlarge + | r5d_large + | r5d_metal + | r5d_xlarge + | r5dn_12xlarge + | r5dn_16xlarge + | r5dn_24xlarge + | r5dn_2xlarge + | r5dn_4xlarge + | r5dn_8xlarge + | r5dn_large + | r5dn_metal + | r5dn_xlarge + | r5n_12xlarge + | r5n_16xlarge + | r5n_24xlarge + | r5n_2xlarge + | r5n_4xlarge + | r5n_8xlarge + | r5n_large + | r5n_metal + | r5n_xlarge + | r6a_12xlarge + | r6a_16xlarge + | r6a_24xlarge + | r6a_2xlarge + | r6a_32xlarge + | r6a_48xlarge + | r6a_4xlarge + | r6a_8xlarge + | r6a_large + | r6a_metal + | r6a_xlarge + | r6g_12xlarge + | r6g_16xlarge + | r6g_2xlarge + | r6g_4xlarge + | r6g_8xlarge + | r6g_large + | r6g_medium + | r6g_metal + | r6g_xlarge + | r6gd_12xlarge + | r6gd_16xlarge + | r6gd_2xlarge + | r6gd_4xlarge + | r6gd_8xlarge + | r6gd_large + | r6gd_medium + | r6gd_metal + | r6gd_xlarge + | r6i_12xlarge + | r6i_16xlarge + | r6i_24xlarge + | r6i_2xlarge + | r6i_32xlarge + | r6i_4xlarge + | r6i_8xlarge + | r6i_large + | r6i_metal + | r6i_xlarge + | r6id_12xlarge + | r6id_16xlarge + | r6id_24xlarge + | r6id_2xlarge + | r6id_32xlarge + | r6id_4xlarge + | r6id_8xlarge + | r6id_large + | r6id_metal + | r6id_xlarge + | r6idn_12xlarge + | r6idn_16xlarge + | r6idn_24xlarge + | r6idn_2xlarge + | r6idn_32xlarge + | r6idn_4xlarge + | r6idn_8xlarge + | r6idn_large + | r6idn_metal + | r6idn_xlarge + | r6in_12xlarge + | r6in_16xlarge + | r6in_24xlarge + | r6in_2xlarge + | r6in_32xlarge + | r6in_4xlarge + | r6in_8xlarge + | r6in_large + | r6in_metal + | r6in_xlarge + | r7a_12xlarge + | r7a_16xlarge + | r7a_24xlarge + | r7a_2xlarge + | r7a_32xlarge + | r7a_48xlarge + | r7a_4xlarge + | r7a_8xlarge + | r7a_large + | r7a_medium + | r7a_metal_48xl + | r7a_xlarge + | r7g_12xlarge + | r7g_16xlarge + | r7g_2xlarge + | r7g_4xlarge + | r7g_8xlarge + | r7g_large + | r7g_medium + | r7g_metal + | r7g_xlarge + | r7gd_12xlarge + | r7gd_16xlarge + | r7gd_2xlarge + | r7gd_4xlarge + | r7gd_8xlarge + | r7gd_large + | r7gd_medium + | r7gd_metal + | r7gd_xlarge + | r7i_12xlarge + | r7i_16xlarge + | r7i_24xlarge + | r7i_2xlarge + | r7i_48xlarge + | r7i_4xlarge + | r7i_8xlarge + | r7i_large + | r7i_metal_24xl + | r7i_metal_48xl + | r7i_xlarge + | r7iz_12xlarge + | r7iz_16xlarge + | r7iz_2xlarge + | r7iz_32xlarge + | r7iz_4xlarge + | r7iz_8xlarge + | r7iz_large + | r7iz_metal_16xl + | r7iz_metal_32xl + | r7iz_xlarge + | r8a_12xlarge + | r8a_16xlarge + | r8a_24xlarge + | r8a_2xlarge + | r8a_48xlarge + | r8a_4xlarge + | r8a_8xlarge + | r8a_large + | r8a_medium + | r8a_metal_24xl + | r8a_metal_48xl + | r8a_xlarge + | r8g_12xlarge + | r8g_16xlarge + | r8g_24xlarge + | r8g_2xlarge + | r8g_48xlarge + | r8g_4xlarge + | r8g_8xlarge + | r8g_large + | r8g_medium + | r8g_metal_24xl + | r8g_metal_48xl + | r8g_xlarge + | r8gb_12xlarge + | r8gb_16xlarge + | r8gb_24xlarge + | r8gb_2xlarge + | r8gb_48xlarge + | r8gb_4xlarge + | r8gb_8xlarge + | r8gb_large + | r8gb_medium + | r8gb_metal_24xl + | r8gb_metal_48xl + | r8gb_xlarge + | r8gd_12xlarge + | r8gd_16xlarge + | r8gd_24xlarge + | r8gd_2xlarge + | r8gd_48xlarge + | r8gd_4xlarge + | r8gd_8xlarge + | r8gd_large + | r8gd_medium + | r8gd_metal_24xl + | r8gd_metal_48xl + | r8gd_xlarge + | r8gn_12xlarge + | r8gn_16xlarge + | r8gn_24xlarge + | r8gn_2xlarge + | r8gn_48xlarge + | r8gn_4xlarge + | r8gn_8xlarge + | r8gn_large + | r8gn_medium + | r8gn_metal_24xl + | r8gn_metal_48xl + | r8gn_xlarge + | r8i_12xlarge + | r8i_16xlarge + | r8i_24xlarge + | r8i_2xlarge + | r8i_32xlarge + | r8i_48xlarge + | r8i_4xlarge + | r8i_8xlarge + | r8i_96xlarge + | r8i_flex_12xlarge + | r8i_flex_16xlarge + | r8i_flex_2xlarge + | r8i_flex_4xlarge + | r8i_flex_8xlarge + | r8i_flex_large + | r8i_flex_xlarge + | r8i_large + | r8i_metal_48xl + | r8i_metal_96xl + | r8i_xlarge + | r8ib_12xlarge + | r8ib_16xlarge + | r8ib_24xlarge + | r8ib_2xlarge + | r8ib_32xlarge + | r8ib_48xlarge + | r8ib_4xlarge + | r8ib_8xlarge + | r8ib_96xlarge + | r8ib_large + | r8ib_metal_48xl + | r8ib_metal_96xl + | r8ib_xlarge + | r8id_12xlarge + | r8id_16xlarge + | r8id_24xlarge + | r8id_2xlarge + | r8id_32xlarge + | r8id_48xlarge + | r8id_4xlarge + | r8id_8xlarge + | r8id_96xlarge + | r8id_large + | r8id_metal_48xl + | r8id_metal_96xl + | r8id_xlarge + | r8idb_12xlarge + | r8idb_16xlarge + | r8idb_24xlarge + | r8idb_2xlarge + | r8idb_32xlarge + | r8idb_48xlarge + | r8idb_4xlarge + | r8idb_8xlarge + | r8idb_96xlarge + | r8idb_large + | r8idb_metal_48xl + | r8idb_metal_96xl + | r8idb_xlarge + | r8idn_12xlarge + | r8idn_16xlarge + | r8idn_24xlarge + | r8idn_2xlarge + | r8idn_32xlarge + | r8idn_48xlarge + | r8idn_4xlarge + | r8idn_8xlarge + | r8idn_96xlarge + | r8idn_large + | r8idn_metal_48xl + | r8idn_metal_96xl + | r8idn_xlarge + | r8in_12xlarge + | r8in_16xlarge + | r8in_24xlarge + | r8in_2xlarge + | r8in_32xlarge + | r8in_48xlarge + | r8in_4xlarge + | r8in_8xlarge + | r8in_96xlarge + | r8in_large + | r8in_metal_48xl + | r8in_metal_96xl + | r8in_xlarge + | r9g_12xlarge + | r9g_16xlarge + | r9g_24xlarge + | r9g_2xlarge + | r9g_48xlarge + | r9g_4xlarge + | r9g_8xlarge + | r9g_large + | r9g_medium + | r9g_metal_48xl + | r9g_xlarge + | r9gd_12xlarge + | r9gd_16xlarge + | r9gd_24xlarge + | r9gd_2xlarge + | r9gd_48xlarge + | r9gd_4xlarge + | r9gd_8xlarge + | r9gd_large + | r9gd_medium + | r9gd_metal_48xl + | r9gd_xlarge + | t1_micro + | t2_2xlarge + | t2_large + | t2_medium + | t2_micro + | t2_nano + | t2_small + | t2_xlarge + | t3_2xlarge + | t3_large + | t3_medium + | t3_micro + | t3_nano + | t3_small + | t3_xlarge + | t3a_2xlarge + | t3a_large + | t3a_medium + | t3a_micro + | t3a_nano + | t3a_small + | t3a_xlarge + | t4g_2xlarge + | t4g_large + | t4g_medium + | t4g_micro + | t4g_nano + | t4g_small + | t4g_xlarge + | t8i_medium + | t8i_micro + | t8i_nano + | t8i_small + | trn1_2xlarge + | trn1_32xlarge + | trn1n_32xlarge + | trn2_3xlarge + | trn2_48xlarge + | trn2u_48xlarge + | u7i_12tb_224xlarge + | u7i_6tb_112xlarge + | u7i_8tb_112xlarge + | u7ib_12tb_224xlarge + | u7in_16tb_224xlarge + | u7in_24tb_224xlarge + | u7in_32tb_224xlarge + | u7inh_32tb_480xlarge + | u_12tb1_112xlarge + | u_12tb1_metal + | u_18tb1_112xlarge + | u_18tb1_metal + | u_24tb1_112xlarge + | u_24tb1_metal + | u_3tb1_56xlarge + | u_6tb1_112xlarge + | u_6tb1_56xlarge + | u_6tb1_metal + | u_9tb1_112xlarge + | u_9tb1_metal + | vt1_24xlarge + | vt1_3xlarge + | vt1_6xlarge + | x1_16xlarge + | x1_32xlarge + | x1e_16xlarge + | x1e_2xlarge + | x1e_32xlarge + | x1e_4xlarge + | x1e_8xlarge + | x1e_xlarge + | x2gd_12xlarge + | x2gd_16xlarge + | x2gd_2xlarge + | x2gd_4xlarge + | x2gd_8xlarge + | x2gd_large + | x2gd_medium + | x2gd_metal + | x2gd_xlarge + | x2idn_16xlarge + | x2idn_24xlarge + | x2idn_32xlarge + | x2idn_metal + | x2iedn_16xlarge + | x2iedn_24xlarge + | x2iedn_2xlarge + | x2iedn_32xlarge + | x2iedn_4xlarge + | x2iedn_8xlarge + | x2iedn_metal + | x2iedn_xlarge + | x2iezn_12xlarge + | x2iezn_2xlarge + | x2iezn_4xlarge + | x2iezn_6xlarge + | x2iezn_8xlarge + | x2iezn_metal + | x8aedz_12xlarge + | x8aedz_24xlarge + | x8aedz_3xlarge + | x8aedz_6xlarge + | x8aedz_large + | x8aedz_metal_12xl + | x8aedz_metal_24xl + | x8aedz_xlarge + | x8g_12xlarge + | x8g_16xlarge + | x8g_24xlarge + | x8g_2xlarge + | x8g_48xlarge + | x8g_4xlarge + | x8g_8xlarge + | x8g_large + | x8g_medium + | x8g_metal_24xl + | x8g_metal_48xl + | x8g_xlarge + | x8i_12xlarge + | x8i_16xlarge + | x8i_24xlarge + | x8i_2xlarge + | x8i_32xlarge + | x8i_48xlarge + | x8i_4xlarge + | x8i_64xlarge + | x8i_8xlarge + | x8i_96xlarge + | x8i_large + | x8i_metal_48xl + | x8i_metal_96xl + | x8i_xlarge + | z1d_12xlarge + | z1d_2xlarge + | z1d_3xlarge + | z1d_6xlarge + | z1d_large + | z1d_metal + | z1d_xlarge +deriving DecidableEq, Repr, Inhabited + +def InstanceType.wire : InstanceType → String + | .a1_2xlarge => "a1.2xlarge" + | .a1_4xlarge => "a1.4xlarge" + | .a1_large => "a1.large" + | .a1_medium => "a1.medium" + | .a1_metal => "a1.metal" + | .a1_xlarge => "a1.xlarge" + | .c1_medium => "c1.medium" + | .c1_xlarge => "c1.xlarge" + | .c3_2xlarge => "c3.2xlarge" + | .c3_4xlarge => "c3.4xlarge" + | .c3_8xlarge => "c3.8xlarge" + | .c3_large => "c3.large" + | .c3_xlarge => "c3.xlarge" + | .c4_2xlarge => "c4.2xlarge" + | .c4_4xlarge => "c4.4xlarge" + | .c4_8xlarge => "c4.8xlarge" + | .c4_large => "c4.large" + | .c4_xlarge => "c4.xlarge" + | .c5_12xlarge => "c5.12xlarge" + | .c5_18xlarge => "c5.18xlarge" + | .c5_24xlarge => "c5.24xlarge" + | .c5_2xlarge => "c5.2xlarge" + | .c5_4xlarge => "c5.4xlarge" + | .c5_9xlarge => "c5.9xlarge" + | .c5_large => "c5.large" + | .c5_metal => "c5.metal" + | .c5_xlarge => "c5.xlarge" + | .c5a_12xlarge => "c5a.12xlarge" + | .c5a_16xlarge => "c5a.16xlarge" + | .c5a_24xlarge => "c5a.24xlarge" + | .c5a_2xlarge => "c5a.2xlarge" + | .c5a_4xlarge => "c5a.4xlarge" + | .c5a_8xlarge => "c5a.8xlarge" + | .c5a_large => "c5a.large" + | .c5a_xlarge => "c5a.xlarge" + | .c5ad_12xlarge => "c5ad.12xlarge" + | .c5ad_16xlarge => "c5ad.16xlarge" + | .c5ad_24xlarge => "c5ad.24xlarge" + | .c5ad_2xlarge => "c5ad.2xlarge" + | .c5ad_4xlarge => "c5ad.4xlarge" + | .c5ad_8xlarge => "c5ad.8xlarge" + | .c5ad_large => "c5ad.large" + | .c5ad_xlarge => "c5ad.xlarge" + | .c5d_12xlarge => "c5d.12xlarge" + | .c5d_18xlarge => "c5d.18xlarge" + | .c5d_24xlarge => "c5d.24xlarge" + | .c5d_2xlarge => "c5d.2xlarge" + | .c5d_4xlarge => "c5d.4xlarge" + | .c5d_9xlarge => "c5d.9xlarge" + | .c5d_large => "c5d.large" + | .c5d_metal => "c5d.metal" + | .c5d_xlarge => "c5d.xlarge" + | .c5n_18xlarge => "c5n.18xlarge" + | .c5n_2xlarge => "c5n.2xlarge" + | .c5n_4xlarge => "c5n.4xlarge" + | .c5n_9xlarge => "c5n.9xlarge" + | .c5n_large => "c5n.large" + | .c5n_metal => "c5n.metal" + | .c5n_xlarge => "c5n.xlarge" + | .c6a_12xlarge => "c6a.12xlarge" + | .c6a_16xlarge => "c6a.16xlarge" + | .c6a_24xlarge => "c6a.24xlarge" + | .c6a_2xlarge => "c6a.2xlarge" + | .c6a_32xlarge => "c6a.32xlarge" + | .c6a_48xlarge => "c6a.48xlarge" + | .c6a_4xlarge => "c6a.4xlarge" + | .c6a_8xlarge => "c6a.8xlarge" + | .c6a_large => "c6a.large" + | .c6a_metal => "c6a.metal" + | .c6a_xlarge => "c6a.xlarge" + | .c6g_12xlarge => "c6g.12xlarge" + | .c6g_16xlarge => "c6g.16xlarge" + | .c6g_2xlarge => "c6g.2xlarge" + | .c6g_4xlarge => "c6g.4xlarge" + | .c6g_8xlarge => "c6g.8xlarge" + | .c6g_large => "c6g.large" + | .c6g_medium => "c6g.medium" + | .c6g_metal => "c6g.metal" + | .c6g_xlarge => "c6g.xlarge" + | .c6gd_12xlarge => "c6gd.12xlarge" + | .c6gd_16xlarge => "c6gd.16xlarge" + | .c6gd_2xlarge => "c6gd.2xlarge" + | .c6gd_4xlarge => "c6gd.4xlarge" + | .c6gd_8xlarge => "c6gd.8xlarge" + | .c6gd_large => "c6gd.large" + | .c6gd_medium => "c6gd.medium" + | .c6gd_metal => "c6gd.metal" + | .c6gd_xlarge => "c6gd.xlarge" + | .c6gn_12xlarge => "c6gn.12xlarge" + | .c6gn_16xlarge => "c6gn.16xlarge" + | .c6gn_2xlarge => "c6gn.2xlarge" + | .c6gn_4xlarge => "c6gn.4xlarge" + | .c6gn_8xlarge => "c6gn.8xlarge" + | .c6gn_large => "c6gn.large" + | .c6gn_medium => "c6gn.medium" + | .c6gn_xlarge => "c6gn.xlarge" + | .c6i_12xlarge => "c6i.12xlarge" + | .c6i_16xlarge => "c6i.16xlarge" + | .c6i_24xlarge => "c6i.24xlarge" + | .c6i_2xlarge => "c6i.2xlarge" + | .c6i_32xlarge => "c6i.32xlarge" + | .c6i_4xlarge => "c6i.4xlarge" + | .c6i_8xlarge => "c6i.8xlarge" + | .c6i_large => "c6i.large" + | .c6i_metal => "c6i.metal" + | .c6i_xlarge => "c6i.xlarge" + | .c6id_12xlarge => "c6id.12xlarge" + | .c6id_16xlarge => "c6id.16xlarge" + | .c6id_24xlarge => "c6id.24xlarge" + | .c6id_2xlarge => "c6id.2xlarge" + | .c6id_32xlarge => "c6id.32xlarge" + | .c6id_4xlarge => "c6id.4xlarge" + | .c6id_8xlarge => "c6id.8xlarge" + | .c6id_large => "c6id.large" + | .c6id_metal => "c6id.metal" + | .c6id_xlarge => "c6id.xlarge" + | .c6in_12xlarge => "c6in.12xlarge" + | .c6in_16xlarge => "c6in.16xlarge" + | .c6in_24xlarge => "c6in.24xlarge" + | .c6in_2xlarge => "c6in.2xlarge" + | .c6in_32xlarge => "c6in.32xlarge" + | .c6in_4xlarge => "c6in.4xlarge" + | .c6in_8xlarge => "c6in.8xlarge" + | .c6in_large => "c6in.large" + | .c6in_metal => "c6in.metal" + | .c6in_xlarge => "c6in.xlarge" + | .c7a_12xlarge => "c7a.12xlarge" + | .c7a_16xlarge => "c7a.16xlarge" + | .c7a_24xlarge => "c7a.24xlarge" + | .c7a_2xlarge => "c7a.2xlarge" + | .c7a_32xlarge => "c7a.32xlarge" + | .c7a_48xlarge => "c7a.48xlarge" + | .c7a_4xlarge => "c7a.4xlarge" + | .c7a_8xlarge => "c7a.8xlarge" + | .c7a_large => "c7a.large" + | .c7a_medium => "c7a.medium" + | .c7a_metal_48xl => "c7a.metal-48xl" + | .c7a_xlarge => "c7a.xlarge" + | .c7g_12xlarge => "c7g.12xlarge" + | .c7g_16xlarge => "c7g.16xlarge" + | .c7g_2xlarge => "c7g.2xlarge" + | .c7g_4xlarge => "c7g.4xlarge" + | .c7g_8xlarge => "c7g.8xlarge" + | .c7g_large => "c7g.large" + | .c7g_medium => "c7g.medium" + | .c7g_metal => "c7g.metal" + | .c7g_xlarge => "c7g.xlarge" + | .c7gd_12xlarge => "c7gd.12xlarge" + | .c7gd_16xlarge => "c7gd.16xlarge" + | .c7gd_2xlarge => "c7gd.2xlarge" + | .c7gd_4xlarge => "c7gd.4xlarge" + | .c7gd_8xlarge => "c7gd.8xlarge" + | .c7gd_large => "c7gd.large" + | .c7gd_medium => "c7gd.medium" + | .c7gd_metal => "c7gd.metal" + | .c7gd_xlarge => "c7gd.xlarge" + | .c7gn_12xlarge => "c7gn.12xlarge" + | .c7gn_16xlarge => "c7gn.16xlarge" + | .c7gn_2xlarge => "c7gn.2xlarge" + | .c7gn_4xlarge => "c7gn.4xlarge" + | .c7gn_8xlarge => "c7gn.8xlarge" + | .c7gn_large => "c7gn.large" + | .c7gn_medium => "c7gn.medium" + | .c7gn_metal => "c7gn.metal" + | .c7gn_xlarge => "c7gn.xlarge" + | .c7i_12xlarge => "c7i.12xlarge" + | .c7i_16xlarge => "c7i.16xlarge" + | .c7i_24xlarge => "c7i.24xlarge" + | .c7i_2xlarge => "c7i.2xlarge" + | .c7i_48xlarge => "c7i.48xlarge" + | .c7i_4xlarge => "c7i.4xlarge" + | .c7i_8xlarge => "c7i.8xlarge" + | .c7i_flex_12xlarge => "c7i-flex.12xlarge" + | .c7i_flex_16xlarge => "c7i-flex.16xlarge" + | .c7i_flex_2xlarge => "c7i-flex.2xlarge" + | .c7i_flex_4xlarge => "c7i-flex.4xlarge" + | .c7i_flex_8xlarge => "c7i-flex.8xlarge" + | .c7i_flex_large => "c7i-flex.large" + | .c7i_flex_xlarge => "c7i-flex.xlarge" + | .c7i_large => "c7i.large" + | .c7i_metal_24xl => "c7i.metal-24xl" + | .c7i_metal_48xl => "c7i.metal-48xl" + | .c7i_xlarge => "c7i.xlarge" + | .c8a_12xlarge => "c8a.12xlarge" + | .c8a_16xlarge => "c8a.16xlarge" + | .c8a_24xlarge => "c8a.24xlarge" + | .c8a_2xlarge => "c8a.2xlarge" + | .c8a_48xlarge => "c8a.48xlarge" + | .c8a_4xlarge => "c8a.4xlarge" + | .c8a_8xlarge => "c8a.8xlarge" + | .c8a_large => "c8a.large" + | .c8a_medium => "c8a.medium" + | .c8a_metal_24xl => "c8a.metal-24xl" + | .c8a_metal_48xl => "c8a.metal-48xl" + | .c8a_xlarge => "c8a.xlarge" + | .c8g_12xlarge => "c8g.12xlarge" + | .c8g_16xlarge => "c8g.16xlarge" + | .c8g_24xlarge => "c8g.24xlarge" + | .c8g_2xlarge => "c8g.2xlarge" + | .c8g_48xlarge => "c8g.48xlarge" + | .c8g_4xlarge => "c8g.4xlarge" + | .c8g_8xlarge => "c8g.8xlarge" + | .c8g_large => "c8g.large" + | .c8g_medium => "c8g.medium" + | .c8g_metal_24xl => "c8g.metal-24xl" + | .c8g_metal_48xl => "c8g.metal-48xl" + | .c8g_xlarge => "c8g.xlarge" + | .c8gb_12xlarge => "c8gb.12xlarge" + | .c8gb_16xlarge => "c8gb.16xlarge" + | .c8gb_24xlarge => "c8gb.24xlarge" + | .c8gb_2xlarge => "c8gb.2xlarge" + | .c8gb_48xlarge => "c8gb.48xlarge" + | .c8gb_4xlarge => "c8gb.4xlarge" + | .c8gb_8xlarge => "c8gb.8xlarge" + | .c8gb_large => "c8gb.large" + | .c8gb_medium => "c8gb.medium" + | .c8gb_metal_24xl => "c8gb.metal-24xl" + | .c8gb_metal_48xl => "c8gb.metal-48xl" + | .c8gb_xlarge => "c8gb.xlarge" + | .c8gd_12xlarge => "c8gd.12xlarge" + | .c8gd_16xlarge => "c8gd.16xlarge" + | .c8gd_24xlarge => "c8gd.24xlarge" + | .c8gd_2xlarge => "c8gd.2xlarge" + | .c8gd_48xlarge => "c8gd.48xlarge" + | .c8gd_4xlarge => "c8gd.4xlarge" + | .c8gd_8xlarge => "c8gd.8xlarge" + | .c8gd_large => "c8gd.large" + | .c8gd_medium => "c8gd.medium" + | .c8gd_metal_24xl => "c8gd.metal-24xl" + | .c8gd_metal_48xl => "c8gd.metal-48xl" + | .c8gd_xlarge => "c8gd.xlarge" + | .c8gn_12xlarge => "c8gn.12xlarge" + | .c8gn_16xlarge => "c8gn.16xlarge" + | .c8gn_24xlarge => "c8gn.24xlarge" + | .c8gn_2xlarge => "c8gn.2xlarge" + | .c8gn_48xlarge => "c8gn.48xlarge" + | .c8gn_4xlarge => "c8gn.4xlarge" + | .c8gn_8xlarge => "c8gn.8xlarge" + | .c8gn_large => "c8gn.large" + | .c8gn_medium => "c8gn.medium" + | .c8gn_metal_24xl => "c8gn.metal-24xl" + | .c8gn_metal_48xl => "c8gn.metal-48xl" + | .c8gn_xlarge => "c8gn.xlarge" + | .c8i_12xlarge => "c8i.12xlarge" + | .c8i_16xlarge => "c8i.16xlarge" + | .c8i_24xlarge => "c8i.24xlarge" + | .c8i_2xlarge => "c8i.2xlarge" + | .c8i_32xlarge => "c8i.32xlarge" + | .c8i_48xlarge => "c8i.48xlarge" + | .c8i_4xlarge => "c8i.4xlarge" + | .c8i_8xlarge => "c8i.8xlarge" + | .c8i_96xlarge => "c8i.96xlarge" + | .c8i_flex_12xlarge => "c8i-flex.12xlarge" + | .c8i_flex_16xlarge => "c8i-flex.16xlarge" + | .c8i_flex_2xlarge => "c8i-flex.2xlarge" + | .c8i_flex_4xlarge => "c8i-flex.4xlarge" + | .c8i_flex_8xlarge => "c8i-flex.8xlarge" + | .c8i_flex_large => "c8i-flex.large" + | .c8i_flex_xlarge => "c8i-flex.xlarge" + | .c8i_large => "c8i.large" + | .c8i_metal_48xl => "c8i.metal-48xl" + | .c8i_metal_96xl => "c8i.metal-96xl" + | .c8i_xlarge => "c8i.xlarge" + | .c8ib_12xlarge => "c8ib.12xlarge" + | .c8ib_16xlarge => "c8ib.16xlarge" + | .c8ib_24xlarge => "c8ib.24xlarge" + | .c8ib_2xlarge => "c8ib.2xlarge" + | .c8ib_32xlarge => "c8ib.32xlarge" + | .c8ib_48xlarge => "c8ib.48xlarge" + | .c8ib_4xlarge => "c8ib.4xlarge" + | .c8ib_8xlarge => "c8ib.8xlarge" + | .c8ib_96xlarge => "c8ib.96xlarge" + | .c8ib_large => "c8ib.large" + | .c8ib_metal_48xl => "c8ib.metal-48xl" + | .c8ib_metal_96xl => "c8ib.metal-96xl" + | .c8ib_xlarge => "c8ib.xlarge" + | .c8id_12xlarge => "c8id.12xlarge" + | .c8id_16xlarge => "c8id.16xlarge" + | .c8id_24xlarge => "c8id.24xlarge" + | .c8id_2xlarge => "c8id.2xlarge" + | .c8id_32xlarge => "c8id.32xlarge" + | .c8id_48xlarge => "c8id.48xlarge" + | .c8id_4xlarge => "c8id.4xlarge" + | .c8id_8xlarge => "c8id.8xlarge" + | .c8id_96xlarge => "c8id.96xlarge" + | .c8id_large => "c8id.large" + | .c8id_metal_48xl => "c8id.metal-48xl" + | .c8id_metal_96xl => "c8id.metal-96xl" + | .c8id_xlarge => "c8id.xlarge" + | .c8in_12xlarge => "c8in.12xlarge" + | .c8in_16xlarge => "c8in.16xlarge" + | .c8in_24xlarge => "c8in.24xlarge" + | .c8in_2xlarge => "c8in.2xlarge" + | .c8in_32xlarge => "c8in.32xlarge" + | .c8in_48xlarge => "c8in.48xlarge" + | .c8in_4xlarge => "c8in.4xlarge" + | .c8in_8xlarge => "c8in.8xlarge" + | .c8in_96xlarge => "c8in.96xlarge" + | .c8in_large => "c8in.large" + | .c8in_metal_48xl => "c8in.metal-48xl" + | .c8in_metal_96xl => "c8in.metal-96xl" + | .c8in_xlarge => "c8in.xlarge" + | .c8ine_12xlarge => "c8ine.12xlarge" + | .c8ine_2xlarge => "c8ine.2xlarge" + | .c8ine_4xlarge => "c8ine.4xlarge" + | .c8ine_8xlarge => "c8ine.8xlarge" + | .c8ine_large => "c8ine.large" + | .c8ine_xlarge => "c8ine.xlarge" + | .c9g_12xlarge => "c9g.12xlarge" + | .c9g_16xlarge => "c9g.16xlarge" + | .c9g_24xlarge => "c9g.24xlarge" + | .c9g_2xlarge => "c9g.2xlarge" + | .c9g_48xlarge => "c9g.48xlarge" + | .c9g_4xlarge => "c9g.4xlarge" + | .c9g_8xlarge => "c9g.8xlarge" + | .c9g_large => "c9g.large" + | .c9g_medium => "c9g.medium" + | .c9g_metal_48xl => "c9g.metal-48xl" + | .c9g_xlarge => "c9g.xlarge" + | .c9gd_12xlarge => "c9gd.12xlarge" + | .c9gd_16xlarge => "c9gd.16xlarge" + | .c9gd_24xlarge => "c9gd.24xlarge" + | .c9gd_2xlarge => "c9gd.2xlarge" + | .c9gd_48xlarge => "c9gd.48xlarge" + | .c9gd_4xlarge => "c9gd.4xlarge" + | .c9gd_8xlarge => "c9gd.8xlarge" + | .c9gd_large => "c9gd.large" + | .c9gd_medium => "c9gd.medium" + | .c9gd_metal_48xl => "c9gd.metal-48xl" + | .c9gd_xlarge => "c9gd.xlarge" + | .cc1_4xlarge => "cc1.4xlarge" + | .cc2_8xlarge => "cc2.8xlarge" + | .cg1_4xlarge => "cg1.4xlarge" + | .cr1_8xlarge => "cr1.8xlarge" + | .d2_2xlarge => "d2.2xlarge" + | .d2_4xlarge => "d2.4xlarge" + | .d2_8xlarge => "d2.8xlarge" + | .d2_xlarge => "d2.xlarge" + | .d3_2xlarge => "d3.2xlarge" + | .d3_4xlarge => "d3.4xlarge" + | .d3_8xlarge => "d3.8xlarge" + | .d3_xlarge => "d3.xlarge" + | .d3en_12xlarge => "d3en.12xlarge" + | .d3en_2xlarge => "d3en.2xlarge" + | .d3en_4xlarge => "d3en.4xlarge" + | .d3en_6xlarge => "d3en.6xlarge" + | .d3en_8xlarge => "d3en.8xlarge" + | .d3en_xlarge => "d3en.xlarge" + | .dl1_24xlarge => "dl1.24xlarge" + | .dl2q_24xlarge => "dl2q.24xlarge" + | .f1_16xlarge => "f1.16xlarge" + | .f1_2xlarge => "f1.2xlarge" + | .f1_4xlarge => "f1.4xlarge" + | .f2_12xlarge => "f2.12xlarge" + | .f2_48xlarge => "f2.48xlarge" + | .f2_6xlarge => "f2.6xlarge" + | .g2_2xlarge => "g2.2xlarge" + | .g2_8xlarge => "g2.8xlarge" + | .g3_16xlarge => "g3.16xlarge" + | .g3_4xlarge => "g3.4xlarge" + | .g3_8xlarge => "g3.8xlarge" + | .g3s_xlarge => "g3s.xlarge" + | .g4ad_16xlarge => "g4ad.16xlarge" + | .g4ad_2xlarge => "g4ad.2xlarge" + | .g4ad_4xlarge => "g4ad.4xlarge" + | .g4ad_8xlarge => "g4ad.8xlarge" + | .g4ad_xlarge => "g4ad.xlarge" + | .g4dn_12xlarge => "g4dn.12xlarge" + | .g4dn_16xlarge => "g4dn.16xlarge" + | .g4dn_2xlarge => "g4dn.2xlarge" + | .g4dn_4xlarge => "g4dn.4xlarge" + | .g4dn_8xlarge => "g4dn.8xlarge" + | .g4dn_metal => "g4dn.metal" + | .g4dn_xlarge => "g4dn.xlarge" + | .g5_12xlarge => "g5.12xlarge" + | .g5_16xlarge => "g5.16xlarge" + | .g5_24xlarge => "g5.24xlarge" + | .g5_2xlarge => "g5.2xlarge" + | .g5_48xlarge => "g5.48xlarge" + | .g5_4xlarge => "g5.4xlarge" + | .g5_8xlarge => "g5.8xlarge" + | .g5_xlarge => "g5.xlarge" + | .g5g_16xlarge => "g5g.16xlarge" + | .g5g_2xlarge => "g5g.2xlarge" + | .g5g_4xlarge => "g5g.4xlarge" + | .g5g_8xlarge => "g5g.8xlarge" + | .g5g_metal => "g5g.metal" + | .g5g_xlarge => "g5g.xlarge" + | .g6_12xlarge => "g6.12xlarge" + | .g6_16xlarge => "g6.16xlarge" + | .g6_24xlarge => "g6.24xlarge" + | .g6_2xlarge => "g6.2xlarge" + | .g6_48xlarge => "g6.48xlarge" + | .g6_4xlarge => "g6.4xlarge" + | .g6_8xlarge => "g6.8xlarge" + | .g6_xlarge => "g6.xlarge" + | .g6e_12xlarge => "g6e.12xlarge" + | .g6e_16xlarge => "g6e.16xlarge" + | .g6e_24xlarge => "g6e.24xlarge" + | .g6e_2xlarge => "g6e.2xlarge" + | .g6e_48xlarge => "g6e.48xlarge" + | .g6e_4xlarge => "g6e.4xlarge" + | .g6e_8xlarge => "g6e.8xlarge" + | .g6e_xlarge => "g6e.xlarge" + | .g6f_2xlarge => "g6f.2xlarge" + | .g6f_4xlarge => "g6f.4xlarge" + | .g6f_large => "g6f.large" + | .g6f_xlarge => "g6f.xlarge" + | .g7_12xlarge => "g7.12xlarge" + | .g7_24xlarge => "g7.24xlarge" + | .g7_2xlarge => "g7.2xlarge" + | .g7_48xlarge => "g7.48xlarge" + | .g7_4xlarge => "g7.4xlarge" + | .g7_8xlarge => "g7.8xlarge" + | .g7e_12xlarge => "g7e.12xlarge" + | .g7e_24xlarge => "g7e.24xlarge" + | .g7e_2xlarge => "g7e.2xlarge" + | .g7e_48xlarge => "g7e.48xlarge" + | .g7e_4xlarge => "g7e.4xlarge" + | .g7e_8xlarge => "g7e.8xlarge" + | .gr6_4xlarge => "gr6.4xlarge" + | .gr6_8xlarge => "gr6.8xlarge" + | .gr6f_4xlarge => "gr6f.4xlarge" + | .h1_16xlarge => "h1.16xlarge" + | .h1_2xlarge => "h1.2xlarge" + | .h1_4xlarge => "h1.4xlarge" + | .h1_8xlarge => "h1.8xlarge" + | .hi1_4xlarge => "hi1.4xlarge" + | .hpc6a_48xlarge => "hpc6a.48xlarge" + | .hpc6id_32xlarge => "hpc6id.32xlarge" + | .hpc7a_12xlarge => "hpc7a.12xlarge" + | .hpc7a_24xlarge => "hpc7a.24xlarge" + | .hpc7a_48xlarge => "hpc7a.48xlarge" + | .hpc7a_96xlarge => "hpc7a.96xlarge" + | .hpc7g_16xlarge => "hpc7g.16xlarge" + | .hpc7g_4xlarge => "hpc7g.4xlarge" + | .hpc7g_8xlarge => "hpc7g.8xlarge" + | .hpc8a_96xlarge => "hpc8a.96xlarge" + | .hs1_8xlarge => "hs1.8xlarge" + | .i2_2xlarge => "i2.2xlarge" + | .i2_4xlarge => "i2.4xlarge" + | .i2_8xlarge => "i2.8xlarge" + | .i2_xlarge => "i2.xlarge" + | .i3_16xlarge => "i3.16xlarge" + | .i3_2xlarge => "i3.2xlarge" + | .i3_4xlarge => "i3.4xlarge" + | .i3_8xlarge => "i3.8xlarge" + | .i3_large => "i3.large" + | .i3_metal => "i3.metal" + | .i3_xlarge => "i3.xlarge" + | .i3en_12xlarge => "i3en.12xlarge" + | .i3en_24xlarge => "i3en.24xlarge" + | .i3en_2xlarge => "i3en.2xlarge" + | .i3en_3xlarge => "i3en.3xlarge" + | .i3en_6xlarge => "i3en.6xlarge" + | .i3en_large => "i3en.large" + | .i3en_metal => "i3en.metal" + | .i3en_xlarge => "i3en.xlarge" + | .i4g_16xlarge => "i4g.16xlarge" + | .i4g_2xlarge => "i4g.2xlarge" + | .i4g_4xlarge => "i4g.4xlarge" + | .i4g_8xlarge => "i4g.8xlarge" + | .i4g_large => "i4g.large" + | .i4g_xlarge => "i4g.xlarge" + | .i4i_12xlarge => "i4i.12xlarge" + | .i4i_16xlarge => "i4i.16xlarge" + | .i4i_24xlarge => "i4i.24xlarge" + | .i4i_2xlarge => "i4i.2xlarge" + | .i4i_32xlarge => "i4i.32xlarge" + | .i4i_4xlarge => "i4i.4xlarge" + | .i4i_8xlarge => "i4i.8xlarge" + | .i4i_large => "i4i.large" + | .i4i_metal => "i4i.metal" + | .i4i_xlarge => "i4i.xlarge" + | .i7i_12xlarge => "i7i.12xlarge" + | .i7i_16xlarge => "i7i.16xlarge" + | .i7i_24xlarge => "i7i.24xlarge" + | .i7i_2xlarge => "i7i.2xlarge" + | .i7i_48xlarge => "i7i.48xlarge" + | .i7i_4xlarge => "i7i.4xlarge" + | .i7i_8xlarge => "i7i.8xlarge" + | .i7i_large => "i7i.large" + | .i7i_metal_24xl => "i7i.metal-24xl" + | .i7i_metal_48xl => "i7i.metal-48xl" + | .i7i_xlarge => "i7i.xlarge" + | .i7ie_12xlarge => "i7ie.12xlarge" + | .i7ie_18xlarge => "i7ie.18xlarge" + | .i7ie_24xlarge => "i7ie.24xlarge" + | .i7ie_2xlarge => "i7ie.2xlarge" + | .i7ie_3xlarge => "i7ie.3xlarge" + | .i7ie_48xlarge => "i7ie.48xlarge" + | .i7ie_6xlarge => "i7ie.6xlarge" + | .i7ie_large => "i7ie.large" + | .i7ie_metal_24xl => "i7ie.metal-24xl" + | .i7ie_metal_48xl => "i7ie.metal-48xl" + | .i7ie_xlarge => "i7ie.xlarge" + | .i8g_12xlarge => "i8g.12xlarge" + | .i8g_16xlarge => "i8g.16xlarge" + | .i8g_24xlarge => "i8g.24xlarge" + | .i8g_2xlarge => "i8g.2xlarge" + | .i8g_48xlarge => "i8g.48xlarge" + | .i8g_4xlarge => "i8g.4xlarge" + | .i8g_8xlarge => "i8g.8xlarge" + | .i8g_large => "i8g.large" + | .i8g_metal_24xl => "i8g.metal-24xl" + | .i8g_metal_48xl => "i8g.metal-48xl" + | .i8g_xlarge => "i8g.xlarge" + | .i8ge_12xlarge => "i8ge.12xlarge" + | .i8ge_18xlarge => "i8ge.18xlarge" + | .i8ge_24xlarge => "i8ge.24xlarge" + | .i8ge_2xlarge => "i8ge.2xlarge" + | .i8ge_3xlarge => "i8ge.3xlarge" + | .i8ge_48xlarge => "i8ge.48xlarge" + | .i8ge_6xlarge => "i8ge.6xlarge" + | .i8ge_large => "i8ge.large" + | .i8ge_metal_24xl => "i8ge.metal-24xl" + | .i8ge_metal_48xl => "i8ge.metal-48xl" + | .i8ge_xlarge => "i8ge.xlarge" + | .im4gn_16xlarge => "im4gn.16xlarge" + | .im4gn_2xlarge => "im4gn.2xlarge" + | .im4gn_4xlarge => "im4gn.4xlarge" + | .im4gn_8xlarge => "im4gn.8xlarge" + | .im4gn_large => "im4gn.large" + | .im4gn_xlarge => "im4gn.xlarge" + | .inf1_24xlarge => "inf1.24xlarge" + | .inf1_2xlarge => "inf1.2xlarge" + | .inf1_6xlarge => "inf1.6xlarge" + | .inf1_xlarge => "inf1.xlarge" + | .inf2_24xlarge => "inf2.24xlarge" + | .inf2_48xlarge => "inf2.48xlarge" + | .inf2_8xlarge => "inf2.8xlarge" + | .inf2_xlarge => "inf2.xlarge" + | .is4gen_2xlarge => "is4gen.2xlarge" + | .is4gen_4xlarge => "is4gen.4xlarge" + | .is4gen_8xlarge => "is4gen.8xlarge" + | .is4gen_large => "is4gen.large" + | .is4gen_medium => "is4gen.medium" + | .is4gen_xlarge => "is4gen.xlarge" + | .m1_large => "m1.large" + | .m1_medium => "m1.medium" + | .m1_small => "m1.small" + | .m1_xlarge => "m1.xlarge" + | .m2_2xlarge => "m2.2xlarge" + | .m2_4xlarge => "m2.4xlarge" + | .m2_xlarge => "m2.xlarge" + | .m3_2xlarge => "m3.2xlarge" + | .m3_large => "m3.large" + | .m3_medium => "m3.medium" + | .m3_xlarge => "m3.xlarge" + | .m4_10xlarge => "m4.10xlarge" + | .m4_16xlarge => "m4.16xlarge" + | .m4_2xlarge => "m4.2xlarge" + | .m4_4xlarge => "m4.4xlarge" + | .m4_large => "m4.large" + | .m4_xlarge => "m4.xlarge" + | .m5_12xlarge => "m5.12xlarge" + | .m5_16xlarge => "m5.16xlarge" + | .m5_24xlarge => "m5.24xlarge" + | .m5_2xlarge => "m5.2xlarge" + | .m5_4xlarge => "m5.4xlarge" + | .m5_8xlarge => "m5.8xlarge" + | .m5_large => "m5.large" + | .m5_metal => "m5.metal" + | .m5_xlarge => "m5.xlarge" + | .m5a_12xlarge => "m5a.12xlarge" + | .m5a_16xlarge => "m5a.16xlarge" + | .m5a_24xlarge => "m5a.24xlarge" + | .m5a_2xlarge => "m5a.2xlarge" + | .m5a_4xlarge => "m5a.4xlarge" + | .m5a_8xlarge => "m5a.8xlarge" + | .m5a_large => "m5a.large" + | .m5a_xlarge => "m5a.xlarge" + | .m5ad_12xlarge => "m5ad.12xlarge" + | .m5ad_16xlarge => "m5ad.16xlarge" + | .m5ad_24xlarge => "m5ad.24xlarge" + | .m5ad_2xlarge => "m5ad.2xlarge" + | .m5ad_4xlarge => "m5ad.4xlarge" + | .m5ad_8xlarge => "m5ad.8xlarge" + | .m5ad_large => "m5ad.large" + | .m5ad_xlarge => "m5ad.xlarge" + | .m5d_12xlarge => "m5d.12xlarge" + | .m5d_16xlarge => "m5d.16xlarge" + | .m5d_24xlarge => "m5d.24xlarge" + | .m5d_2xlarge => "m5d.2xlarge" + | .m5d_4xlarge => "m5d.4xlarge" + | .m5d_8xlarge => "m5d.8xlarge" + | .m5d_large => "m5d.large" + | .m5d_metal => "m5d.metal" + | .m5d_xlarge => "m5d.xlarge" + | .m5dn_12xlarge => "m5dn.12xlarge" + | .m5dn_16xlarge => "m5dn.16xlarge" + | .m5dn_24xlarge => "m5dn.24xlarge" + | .m5dn_2xlarge => "m5dn.2xlarge" + | .m5dn_4xlarge => "m5dn.4xlarge" + | .m5dn_8xlarge => "m5dn.8xlarge" + | .m5dn_large => "m5dn.large" + | .m5dn_metal => "m5dn.metal" + | .m5dn_xlarge => "m5dn.xlarge" + | .m5n_12xlarge => "m5n.12xlarge" + | .m5n_16xlarge => "m5n.16xlarge" + | .m5n_24xlarge => "m5n.24xlarge" + | .m5n_2xlarge => "m5n.2xlarge" + | .m5n_4xlarge => "m5n.4xlarge" + | .m5n_8xlarge => "m5n.8xlarge" + | .m5n_large => "m5n.large" + | .m5n_metal => "m5n.metal" + | .m5n_xlarge => "m5n.xlarge" + | .m5zn_12xlarge => "m5zn.12xlarge" + | .m5zn_2xlarge => "m5zn.2xlarge" + | .m5zn_3xlarge => "m5zn.3xlarge" + | .m5zn_6xlarge => "m5zn.6xlarge" + | .m5zn_large => "m5zn.large" + | .m5zn_metal => "m5zn.metal" + | .m5zn_xlarge => "m5zn.xlarge" + | .m6a_12xlarge => "m6a.12xlarge" + | .m6a_16xlarge => "m6a.16xlarge" + | .m6a_24xlarge => "m6a.24xlarge" + | .m6a_2xlarge => "m6a.2xlarge" + | .m6a_32xlarge => "m6a.32xlarge" + | .m6a_48xlarge => "m6a.48xlarge" + | .m6a_4xlarge => "m6a.4xlarge" + | .m6a_8xlarge => "m6a.8xlarge" + | .m6a_large => "m6a.large" + | .m6a_metal => "m6a.metal" + | .m6a_xlarge => "m6a.xlarge" + | .m6g_12xlarge => "m6g.12xlarge" + | .m6g_16xlarge => "m6g.16xlarge" + | .m6g_2xlarge => "m6g.2xlarge" + | .m6g_4xlarge => "m6g.4xlarge" + | .m6g_8xlarge => "m6g.8xlarge" + | .m6g_large => "m6g.large" + | .m6g_medium => "m6g.medium" + | .m6g_metal => "m6g.metal" + | .m6g_xlarge => "m6g.xlarge" + | .m6gd_12xlarge => "m6gd.12xlarge" + | .m6gd_16xlarge => "m6gd.16xlarge" + | .m6gd_2xlarge => "m6gd.2xlarge" + | .m6gd_4xlarge => "m6gd.4xlarge" + | .m6gd_8xlarge => "m6gd.8xlarge" + | .m6gd_large => "m6gd.large" + | .m6gd_medium => "m6gd.medium" + | .m6gd_metal => "m6gd.metal" + | .m6gd_xlarge => "m6gd.xlarge" + | .m6i_12xlarge => "m6i.12xlarge" + | .m6i_16xlarge => "m6i.16xlarge" + | .m6i_24xlarge => "m6i.24xlarge" + | .m6i_2xlarge => "m6i.2xlarge" + | .m6i_32xlarge => "m6i.32xlarge" + | .m6i_4xlarge => "m6i.4xlarge" + | .m6i_8xlarge => "m6i.8xlarge" + | .m6i_large => "m6i.large" + | .m6i_metal => "m6i.metal" + | .m6i_xlarge => "m6i.xlarge" + | .m6id_12xlarge => "m6id.12xlarge" + | .m6id_16xlarge => "m6id.16xlarge" + | .m6id_24xlarge => "m6id.24xlarge" + | .m6id_2xlarge => "m6id.2xlarge" + | .m6id_32xlarge => "m6id.32xlarge" + | .m6id_4xlarge => "m6id.4xlarge" + | .m6id_8xlarge => "m6id.8xlarge" + | .m6id_large => "m6id.large" + | .m6id_metal => "m6id.metal" + | .m6id_xlarge => "m6id.xlarge" + | .m6idn_12xlarge => "m6idn.12xlarge" + | .m6idn_16xlarge => "m6idn.16xlarge" + | .m6idn_24xlarge => "m6idn.24xlarge" + | .m6idn_2xlarge => "m6idn.2xlarge" + | .m6idn_32xlarge => "m6idn.32xlarge" + | .m6idn_4xlarge => "m6idn.4xlarge" + | .m6idn_8xlarge => "m6idn.8xlarge" + | .m6idn_large => "m6idn.large" + | .m6idn_metal => "m6idn.metal" + | .m6idn_xlarge => "m6idn.xlarge" + | .m6in_12xlarge => "m6in.12xlarge" + | .m6in_16xlarge => "m6in.16xlarge" + | .m6in_24xlarge => "m6in.24xlarge" + | .m6in_2xlarge => "m6in.2xlarge" + | .m6in_32xlarge => "m6in.32xlarge" + | .m6in_4xlarge => "m6in.4xlarge" + | .m6in_8xlarge => "m6in.8xlarge" + | .m6in_large => "m6in.large" + | .m6in_metal => "m6in.metal" + | .m6in_xlarge => "m6in.xlarge" + | .m7a_12xlarge => "m7a.12xlarge" + | .m7a_16xlarge => "m7a.16xlarge" + | .m7a_24xlarge => "m7a.24xlarge" + | .m7a_2xlarge => "m7a.2xlarge" + | .m7a_32xlarge => "m7a.32xlarge" + | .m7a_48xlarge => "m7a.48xlarge" + | .m7a_4xlarge => "m7a.4xlarge" + | .m7a_8xlarge => "m7a.8xlarge" + | .m7a_large => "m7a.large" + | .m7a_medium => "m7a.medium" + | .m7a_metal_48xl => "m7a.metal-48xl" + | .m7a_xlarge => "m7a.xlarge" + | .m7g_12xlarge => "m7g.12xlarge" + | .m7g_16xlarge => "m7g.16xlarge" + | .m7g_2xlarge => "m7g.2xlarge" + | .m7g_4xlarge => "m7g.4xlarge" + | .m7g_8xlarge => "m7g.8xlarge" + | .m7g_large => "m7g.large" + | .m7g_medium => "m7g.medium" + | .m7g_metal => "m7g.metal" + | .m7g_xlarge => "m7g.xlarge" + | .m7gd_12xlarge => "m7gd.12xlarge" + | .m7gd_16xlarge => "m7gd.16xlarge" + | .m7gd_2xlarge => "m7gd.2xlarge" + | .m7gd_4xlarge => "m7gd.4xlarge" + | .m7gd_8xlarge => "m7gd.8xlarge" + | .m7gd_large => "m7gd.large" + | .m7gd_medium => "m7gd.medium" + | .m7gd_metal => "m7gd.metal" + | .m7gd_xlarge => "m7gd.xlarge" + | .m7i_12xlarge => "m7i.12xlarge" + | .m7i_16xlarge => "m7i.16xlarge" + | .m7i_24xlarge => "m7i.24xlarge" + | .m7i_2xlarge => "m7i.2xlarge" + | .m7i_48xlarge => "m7i.48xlarge" + | .m7i_4xlarge => "m7i.4xlarge" + | .m7i_8xlarge => "m7i.8xlarge" + | .m7i_flex_12xlarge => "m7i-flex.12xlarge" + | .m7i_flex_16xlarge => "m7i-flex.16xlarge" + | .m7i_flex_2xlarge => "m7i-flex.2xlarge" + | .m7i_flex_4xlarge => "m7i-flex.4xlarge" + | .m7i_flex_8xlarge => "m7i-flex.8xlarge" + | .m7i_flex_large => "m7i-flex.large" + | .m7i_flex_xlarge => "m7i-flex.xlarge" + | .m7i_large => "m7i.large" + | .m7i_metal_24xl => "m7i.metal-24xl" + | .m7i_metal_48xl => "m7i.metal-48xl" + | .m7i_xlarge => "m7i.xlarge" + | .m8a_12xlarge => "m8a.12xlarge" + | .m8a_16xlarge => "m8a.16xlarge" + | .m8a_24xlarge => "m8a.24xlarge" + | .m8a_2xlarge => "m8a.2xlarge" + | .m8a_48xlarge => "m8a.48xlarge" + | .m8a_4xlarge => "m8a.4xlarge" + | .m8a_8xlarge => "m8a.8xlarge" + | .m8a_large => "m8a.large" + | .m8a_medium => "m8a.medium" + | .m8a_metal_24xl => "m8a.metal-24xl" + | .m8a_metal_48xl => "m8a.metal-48xl" + | .m8a_xlarge => "m8a.xlarge" + | .m8azn_12xlarge => "m8azn.12xlarge" + | .m8azn_24xlarge => "m8azn.24xlarge" + | .m8azn_3xlarge => "m8azn.3xlarge" + | .m8azn_6xlarge => "m8azn.6xlarge" + | .m8azn_large => "m8azn.large" + | .m8azn_medium => "m8azn.medium" + | .m8azn_metal_12xl => "m8azn.metal-12xl" + | .m8azn_metal_24xl => "m8azn.metal-24xl" + | .m8azn_xlarge => "m8azn.xlarge" + | .m8g_12xlarge => "m8g.12xlarge" + | .m8g_16xlarge => "m8g.16xlarge" + | .m8g_24xlarge => "m8g.24xlarge" + | .m8g_2xlarge => "m8g.2xlarge" + | .m8g_48xlarge => "m8g.48xlarge" + | .m8g_4xlarge => "m8g.4xlarge" + | .m8g_8xlarge => "m8g.8xlarge" + | .m8g_large => "m8g.large" + | .m8g_medium => "m8g.medium" + | .m8g_metal_24xl => "m8g.metal-24xl" + | .m8g_metal_48xl => "m8g.metal-48xl" + | .m8g_xlarge => "m8g.xlarge" + | .m8gb_12xlarge => "m8gb.12xlarge" + | .m8gb_16xlarge => "m8gb.16xlarge" + | .m8gb_24xlarge => "m8gb.24xlarge" + | .m8gb_2xlarge => "m8gb.2xlarge" + | .m8gb_48xlarge => "m8gb.48xlarge" + | .m8gb_4xlarge => "m8gb.4xlarge" + | .m8gb_8xlarge => "m8gb.8xlarge" + | .m8gb_large => "m8gb.large" + | .m8gb_medium => "m8gb.medium" + | .m8gb_metal_24xl => "m8gb.metal-24xl" + | .m8gb_metal_48xl => "m8gb.metal-48xl" + | .m8gb_xlarge => "m8gb.xlarge" + | .m8gd_12xlarge => "m8gd.12xlarge" + | .m8gd_16xlarge => "m8gd.16xlarge" + | .m8gd_24xlarge => "m8gd.24xlarge" + | .m8gd_2xlarge => "m8gd.2xlarge" + | .m8gd_48xlarge => "m8gd.48xlarge" + | .m8gd_4xlarge => "m8gd.4xlarge" + | .m8gd_8xlarge => "m8gd.8xlarge" + | .m8gd_large => "m8gd.large" + | .m8gd_medium => "m8gd.medium" + | .m8gd_metal_24xl => "m8gd.metal-24xl" + | .m8gd_metal_48xl => "m8gd.metal-48xl" + | .m8gd_xlarge => "m8gd.xlarge" + | .m8gn_12xlarge => "m8gn.12xlarge" + | .m8gn_16xlarge => "m8gn.16xlarge" + | .m8gn_24xlarge => "m8gn.24xlarge" + | .m8gn_2xlarge => "m8gn.2xlarge" + | .m8gn_48xlarge => "m8gn.48xlarge" + | .m8gn_4xlarge => "m8gn.4xlarge" + | .m8gn_8xlarge => "m8gn.8xlarge" + | .m8gn_large => "m8gn.large" + | .m8gn_medium => "m8gn.medium" + | .m8gn_metal_24xl => "m8gn.metal-24xl" + | .m8gn_metal_48xl => "m8gn.metal-48xl" + | .m8gn_xlarge => "m8gn.xlarge" + | .m8i_12xlarge => "m8i.12xlarge" + | .m8i_16xlarge => "m8i.16xlarge" + | .m8i_24xlarge => "m8i.24xlarge" + | .m8i_2xlarge => "m8i.2xlarge" + | .m8i_32xlarge => "m8i.32xlarge" + | .m8i_48xlarge => "m8i.48xlarge" + | .m8i_4xlarge => "m8i.4xlarge" + | .m8i_8xlarge => "m8i.8xlarge" + | .m8i_96xlarge => "m8i.96xlarge" + | .m8i_flex_12xlarge => "m8i-flex.12xlarge" + | .m8i_flex_16xlarge => "m8i-flex.16xlarge" + | .m8i_flex_2xlarge => "m8i-flex.2xlarge" + | .m8i_flex_4xlarge => "m8i-flex.4xlarge" + | .m8i_flex_8xlarge => "m8i-flex.8xlarge" + | .m8i_flex_large => "m8i-flex.large" + | .m8i_flex_xlarge => "m8i-flex.xlarge" + | .m8i_large => "m8i.large" + | .m8i_metal_48xl => "m8i.metal-48xl" + | .m8i_metal_96xl => "m8i.metal-96xl" + | .m8i_xlarge => "m8i.xlarge" + | .m8ib_12xlarge => "m8ib.12xlarge" + | .m8ib_16xlarge => "m8ib.16xlarge" + | .m8ib_24xlarge => "m8ib.24xlarge" + | .m8ib_2xlarge => "m8ib.2xlarge" + | .m8ib_32xlarge => "m8ib.32xlarge" + | .m8ib_48xlarge => "m8ib.48xlarge" + | .m8ib_4xlarge => "m8ib.4xlarge" + | .m8ib_8xlarge => "m8ib.8xlarge" + | .m8ib_96xlarge => "m8ib.96xlarge" + | .m8ib_large => "m8ib.large" + | .m8ib_metal_48xl => "m8ib.metal-48xl" + | .m8ib_metal_96xl => "m8ib.metal-96xl" + | .m8ib_xlarge => "m8ib.xlarge" + | .m8id_12xlarge => "m8id.12xlarge" + | .m8id_16xlarge => "m8id.16xlarge" + | .m8id_24xlarge => "m8id.24xlarge" + | .m8id_2xlarge => "m8id.2xlarge" + | .m8id_32xlarge => "m8id.32xlarge" + | .m8id_48xlarge => "m8id.48xlarge" + | .m8id_4xlarge => "m8id.4xlarge" + | .m8id_8xlarge => "m8id.8xlarge" + | .m8id_96xlarge => "m8id.96xlarge" + | .m8id_large => "m8id.large" + | .m8id_metal_48xl => "m8id.metal-48xl" + | .m8id_metal_96xl => "m8id.metal-96xl" + | .m8id_xlarge => "m8id.xlarge" + | .m8idb_12xlarge => "m8idb.12xlarge" + | .m8idb_16xlarge => "m8idb.16xlarge" + | .m8idb_24xlarge => "m8idb.24xlarge" + | .m8idb_2xlarge => "m8idb.2xlarge" + | .m8idb_32xlarge => "m8idb.32xlarge" + | .m8idb_48xlarge => "m8idb.48xlarge" + | .m8idb_4xlarge => "m8idb.4xlarge" + | .m8idb_8xlarge => "m8idb.8xlarge" + | .m8idb_96xlarge => "m8idb.96xlarge" + | .m8idb_large => "m8idb.large" + | .m8idb_metal_48xl => "m8idb.metal-48xl" + | .m8idb_metal_96xl => "m8idb.metal-96xl" + | .m8idb_xlarge => "m8idb.xlarge" + | .m8idn_12xlarge => "m8idn.12xlarge" + | .m8idn_16xlarge => "m8idn.16xlarge" + | .m8idn_24xlarge => "m8idn.24xlarge" + | .m8idn_2xlarge => "m8idn.2xlarge" + | .m8idn_32xlarge => "m8idn.32xlarge" + | .m8idn_48xlarge => "m8idn.48xlarge" + | .m8idn_4xlarge => "m8idn.4xlarge" + | .m8idn_8xlarge => "m8idn.8xlarge" + | .m8idn_96xlarge => "m8idn.96xlarge" + | .m8idn_large => "m8idn.large" + | .m8idn_metal_48xl => "m8idn.metal-48xl" + | .m8idn_metal_96xl => "m8idn.metal-96xl" + | .m8idn_xlarge => "m8idn.xlarge" + | .m8in_12xlarge => "m8in.12xlarge" + | .m8in_16xlarge => "m8in.16xlarge" + | .m8in_24xlarge => "m8in.24xlarge" + | .m8in_2xlarge => "m8in.2xlarge" + | .m8in_32xlarge => "m8in.32xlarge" + | .m8in_48xlarge => "m8in.48xlarge" + | .m8in_4xlarge => "m8in.4xlarge" + | .m8in_8xlarge => "m8in.8xlarge" + | .m8in_96xlarge => "m8in.96xlarge" + | .m8in_large => "m8in.large" + | .m8in_metal_48xl => "m8in.metal-48xl" + | .m8in_metal_96xl => "m8in.metal-96xl" + | .m8in_xlarge => "m8in.xlarge" + | .m8ine_12xlarge => "m8ine.12xlarge" + | .m8ine_2xlarge => "m8ine.2xlarge" + | .m8ine_4xlarge => "m8ine.4xlarge" + | .m8ine_8xlarge => "m8ine.8xlarge" + | .m8ine_large => "m8ine.large" + | .m8ine_xlarge => "m8ine.xlarge" + | .m9g_12xlarge => "m9g.12xlarge" + | .m9g_16xlarge => "m9g.16xlarge" + | .m9g_24xlarge => "m9g.24xlarge" + | .m9g_2xlarge => "m9g.2xlarge" + | .m9g_48xlarge => "m9g.48xlarge" + | .m9g_4xlarge => "m9g.4xlarge" + | .m9g_8xlarge => "m9g.8xlarge" + | .m9g_large => "m9g.large" + | .m9g_medium => "m9g.medium" + | .m9g_metal_24xl => "m9g.metal-24xl" + | .m9g_metal_48xl => "m9g.metal-48xl" + | .m9g_xlarge => "m9g.xlarge" + | .m9gd_12xlarge => "m9gd.12xlarge" + | .m9gd_16xlarge => "m9gd.16xlarge" + | .m9gd_24xlarge => "m9gd.24xlarge" + | .m9gd_2xlarge => "m9gd.2xlarge" + | .m9gd_48xlarge => "m9gd.48xlarge" + | .m9gd_4xlarge => "m9gd.4xlarge" + | .m9gd_8xlarge => "m9gd.8xlarge" + | .m9gd_large => "m9gd.large" + | .m9gd_medium => "m9gd.medium" + | .m9gd_metal_24xl => "m9gd.metal-24xl" + | .m9gd_metal_48xl => "m9gd.metal-48xl" + | .m9gd_xlarge => "m9gd.xlarge" + | .mac1_metal => "mac1.metal" + | .mac2_m1ultra_metal => "mac2-m1ultra.metal" + | .mac2_m2_metal => "mac2-m2.metal" + | .mac2_m2pro_metal => "mac2-m2pro.metal" + | .mac2_metal => "mac2.metal" + | .mac_m3ultra_metal => "mac-m3ultra.metal" + | .mac_m4_metal => "mac-m4.metal" + | .mac_m4max_metal => "mac-m4max.metal" + | .mac_m4pro_metal => "mac-m4pro.metal" + | .p2_16xlarge => "p2.16xlarge" + | .p2_8xlarge => "p2.8xlarge" + | .p2_xlarge => "p2.xlarge" + | .p3_16xlarge => "p3.16xlarge" + | .p3_2xlarge => "p3.2xlarge" + | .p3_8xlarge => "p3.8xlarge" + | .p3dn_24xlarge => "p3dn.24xlarge" + | .p4d_24xlarge => "p4d.24xlarge" + | .p4de_24xlarge => "p4de.24xlarge" + | .p5_48xlarge => "p5.48xlarge" + | .p5_4xlarge => "p5.4xlarge" + | .p5e_48xlarge => "p5e.48xlarge" + | .p5en_48xlarge => "p5en.48xlarge" + | .p6_b200_48xlarge => "p6-b200.48xlarge" + | .p6_b300_48xlarge => "p6-b300.48xlarge" + | .p6e_gb200_36xlarge => "p6e-gb200.36xlarge" + | .r3_2xlarge => "r3.2xlarge" + | .r3_4xlarge => "r3.4xlarge" + | .r3_8xlarge => "r3.8xlarge" + | .r3_large => "r3.large" + | .r3_xlarge => "r3.xlarge" + | .r4_16xlarge => "r4.16xlarge" + | .r4_2xlarge => "r4.2xlarge" + | .r4_4xlarge => "r4.4xlarge" + | .r4_8xlarge => "r4.8xlarge" + | .r4_large => "r4.large" + | .r4_xlarge => "r4.xlarge" + | .r5_12xlarge => "r5.12xlarge" + | .r5_16xlarge => "r5.16xlarge" + | .r5_24xlarge => "r5.24xlarge" + | .r5_2xlarge => "r5.2xlarge" + | .r5_4xlarge => "r5.4xlarge" + | .r5_8xlarge => "r5.8xlarge" + | .r5_large => "r5.large" + | .r5_metal => "r5.metal" + | .r5_xlarge => "r5.xlarge" + | .r5a_12xlarge => "r5a.12xlarge" + | .r5a_16xlarge => "r5a.16xlarge" + | .r5a_24xlarge => "r5a.24xlarge" + | .r5a_2xlarge => "r5a.2xlarge" + | .r5a_4xlarge => "r5a.4xlarge" + | .r5a_8xlarge => "r5a.8xlarge" + | .r5a_large => "r5a.large" + | .r5a_xlarge => "r5a.xlarge" + | .r5ad_12xlarge => "r5ad.12xlarge" + | .r5ad_16xlarge => "r5ad.16xlarge" + | .r5ad_24xlarge => "r5ad.24xlarge" + | .r5ad_2xlarge => "r5ad.2xlarge" + | .r5ad_4xlarge => "r5ad.4xlarge" + | .r5ad_8xlarge => "r5ad.8xlarge" + | .r5ad_large => "r5ad.large" + | .r5ad_xlarge => "r5ad.xlarge" + | .r5b_12xlarge => "r5b.12xlarge" + | .r5b_16xlarge => "r5b.16xlarge" + | .r5b_24xlarge => "r5b.24xlarge" + | .r5b_2xlarge => "r5b.2xlarge" + | .r5b_4xlarge => "r5b.4xlarge" + | .r5b_8xlarge => "r5b.8xlarge" + | .r5b_large => "r5b.large" + | .r5b_metal => "r5b.metal" + | .r5b_xlarge => "r5b.xlarge" + | .r5d_12xlarge => "r5d.12xlarge" + | .r5d_16xlarge => "r5d.16xlarge" + | .r5d_24xlarge => "r5d.24xlarge" + | .r5d_2xlarge => "r5d.2xlarge" + | .r5d_4xlarge => "r5d.4xlarge" + | .r5d_8xlarge => "r5d.8xlarge" + | .r5d_large => "r5d.large" + | .r5d_metal => "r5d.metal" + | .r5d_xlarge => "r5d.xlarge" + | .r5dn_12xlarge => "r5dn.12xlarge" + | .r5dn_16xlarge => "r5dn.16xlarge" + | .r5dn_24xlarge => "r5dn.24xlarge" + | .r5dn_2xlarge => "r5dn.2xlarge" + | .r5dn_4xlarge => "r5dn.4xlarge" + | .r5dn_8xlarge => "r5dn.8xlarge" + | .r5dn_large => "r5dn.large" + | .r5dn_metal => "r5dn.metal" + | .r5dn_xlarge => "r5dn.xlarge" + | .r5n_12xlarge => "r5n.12xlarge" + | .r5n_16xlarge => "r5n.16xlarge" + | .r5n_24xlarge => "r5n.24xlarge" + | .r5n_2xlarge => "r5n.2xlarge" + | .r5n_4xlarge => "r5n.4xlarge" + | .r5n_8xlarge => "r5n.8xlarge" + | .r5n_large => "r5n.large" + | .r5n_metal => "r5n.metal" + | .r5n_xlarge => "r5n.xlarge" + | .r6a_12xlarge => "r6a.12xlarge" + | .r6a_16xlarge => "r6a.16xlarge" + | .r6a_24xlarge => "r6a.24xlarge" + | .r6a_2xlarge => "r6a.2xlarge" + | .r6a_32xlarge => "r6a.32xlarge" + | .r6a_48xlarge => "r6a.48xlarge" + | .r6a_4xlarge => "r6a.4xlarge" + | .r6a_8xlarge => "r6a.8xlarge" + | .r6a_large => "r6a.large" + | .r6a_metal => "r6a.metal" + | .r6a_xlarge => "r6a.xlarge" + | .r6g_12xlarge => "r6g.12xlarge" + | .r6g_16xlarge => "r6g.16xlarge" + | .r6g_2xlarge => "r6g.2xlarge" + | .r6g_4xlarge => "r6g.4xlarge" + | .r6g_8xlarge => "r6g.8xlarge" + | .r6g_large => "r6g.large" + | .r6g_medium => "r6g.medium" + | .r6g_metal => "r6g.metal" + | .r6g_xlarge => "r6g.xlarge" + | .r6gd_12xlarge => "r6gd.12xlarge" + | .r6gd_16xlarge => "r6gd.16xlarge" + | .r6gd_2xlarge => "r6gd.2xlarge" + | .r6gd_4xlarge => "r6gd.4xlarge" + | .r6gd_8xlarge => "r6gd.8xlarge" + | .r6gd_large => "r6gd.large" + | .r6gd_medium => "r6gd.medium" + | .r6gd_metal => "r6gd.metal" + | .r6gd_xlarge => "r6gd.xlarge" + | .r6i_12xlarge => "r6i.12xlarge" + | .r6i_16xlarge => "r6i.16xlarge" + | .r6i_24xlarge => "r6i.24xlarge" + | .r6i_2xlarge => "r6i.2xlarge" + | .r6i_32xlarge => "r6i.32xlarge" + | .r6i_4xlarge => "r6i.4xlarge" + | .r6i_8xlarge => "r6i.8xlarge" + | .r6i_large => "r6i.large" + | .r6i_metal => "r6i.metal" + | .r6i_xlarge => "r6i.xlarge" + | .r6id_12xlarge => "r6id.12xlarge" + | .r6id_16xlarge => "r6id.16xlarge" + | .r6id_24xlarge => "r6id.24xlarge" + | .r6id_2xlarge => "r6id.2xlarge" + | .r6id_32xlarge => "r6id.32xlarge" + | .r6id_4xlarge => "r6id.4xlarge" + | .r6id_8xlarge => "r6id.8xlarge" + | .r6id_large => "r6id.large" + | .r6id_metal => "r6id.metal" + | .r6id_xlarge => "r6id.xlarge" + | .r6idn_12xlarge => "r6idn.12xlarge" + | .r6idn_16xlarge => "r6idn.16xlarge" + | .r6idn_24xlarge => "r6idn.24xlarge" + | .r6idn_2xlarge => "r6idn.2xlarge" + | .r6idn_32xlarge => "r6idn.32xlarge" + | .r6idn_4xlarge => "r6idn.4xlarge" + | .r6idn_8xlarge => "r6idn.8xlarge" + | .r6idn_large => "r6idn.large" + | .r6idn_metal => "r6idn.metal" + | .r6idn_xlarge => "r6idn.xlarge" + | .r6in_12xlarge => "r6in.12xlarge" + | .r6in_16xlarge => "r6in.16xlarge" + | .r6in_24xlarge => "r6in.24xlarge" + | .r6in_2xlarge => "r6in.2xlarge" + | .r6in_32xlarge => "r6in.32xlarge" + | .r6in_4xlarge => "r6in.4xlarge" + | .r6in_8xlarge => "r6in.8xlarge" + | .r6in_large => "r6in.large" + | .r6in_metal => "r6in.metal" + | .r6in_xlarge => "r6in.xlarge" + | .r7a_12xlarge => "r7a.12xlarge" + | .r7a_16xlarge => "r7a.16xlarge" + | .r7a_24xlarge => "r7a.24xlarge" + | .r7a_2xlarge => "r7a.2xlarge" + | .r7a_32xlarge => "r7a.32xlarge" + | .r7a_48xlarge => "r7a.48xlarge" + | .r7a_4xlarge => "r7a.4xlarge" + | .r7a_8xlarge => "r7a.8xlarge" + | .r7a_large => "r7a.large" + | .r7a_medium => "r7a.medium" + | .r7a_metal_48xl => "r7a.metal-48xl" + | .r7a_xlarge => "r7a.xlarge" + | .r7g_12xlarge => "r7g.12xlarge" + | .r7g_16xlarge => "r7g.16xlarge" + | .r7g_2xlarge => "r7g.2xlarge" + | .r7g_4xlarge => "r7g.4xlarge" + | .r7g_8xlarge => "r7g.8xlarge" + | .r7g_large => "r7g.large" + | .r7g_medium => "r7g.medium" + | .r7g_metal => "r7g.metal" + | .r7g_xlarge => "r7g.xlarge" + | .r7gd_12xlarge => "r7gd.12xlarge" + | .r7gd_16xlarge => "r7gd.16xlarge" + | .r7gd_2xlarge => "r7gd.2xlarge" + | .r7gd_4xlarge => "r7gd.4xlarge" + | .r7gd_8xlarge => "r7gd.8xlarge" + | .r7gd_large => "r7gd.large" + | .r7gd_medium => "r7gd.medium" + | .r7gd_metal => "r7gd.metal" + | .r7gd_xlarge => "r7gd.xlarge" + | .r7i_12xlarge => "r7i.12xlarge" + | .r7i_16xlarge => "r7i.16xlarge" + | .r7i_24xlarge => "r7i.24xlarge" + | .r7i_2xlarge => "r7i.2xlarge" + | .r7i_48xlarge => "r7i.48xlarge" + | .r7i_4xlarge => "r7i.4xlarge" + | .r7i_8xlarge => "r7i.8xlarge" + | .r7i_large => "r7i.large" + | .r7i_metal_24xl => "r7i.metal-24xl" + | .r7i_metal_48xl => "r7i.metal-48xl" + | .r7i_xlarge => "r7i.xlarge" + | .r7iz_12xlarge => "r7iz.12xlarge" + | .r7iz_16xlarge => "r7iz.16xlarge" + | .r7iz_2xlarge => "r7iz.2xlarge" + | .r7iz_32xlarge => "r7iz.32xlarge" + | .r7iz_4xlarge => "r7iz.4xlarge" + | .r7iz_8xlarge => "r7iz.8xlarge" + | .r7iz_large => "r7iz.large" + | .r7iz_metal_16xl => "r7iz.metal-16xl" + | .r7iz_metal_32xl => "r7iz.metal-32xl" + | .r7iz_xlarge => "r7iz.xlarge" + | .r8a_12xlarge => "r8a.12xlarge" + | .r8a_16xlarge => "r8a.16xlarge" + | .r8a_24xlarge => "r8a.24xlarge" + | .r8a_2xlarge => "r8a.2xlarge" + | .r8a_48xlarge => "r8a.48xlarge" + | .r8a_4xlarge => "r8a.4xlarge" + | .r8a_8xlarge => "r8a.8xlarge" + | .r8a_large => "r8a.large" + | .r8a_medium => "r8a.medium" + | .r8a_metal_24xl => "r8a.metal-24xl" + | .r8a_metal_48xl => "r8a.metal-48xl" + | .r8a_xlarge => "r8a.xlarge" + | .r8g_12xlarge => "r8g.12xlarge" + | .r8g_16xlarge => "r8g.16xlarge" + | .r8g_24xlarge => "r8g.24xlarge" + | .r8g_2xlarge => "r8g.2xlarge" + | .r8g_48xlarge => "r8g.48xlarge" + | .r8g_4xlarge => "r8g.4xlarge" + | .r8g_8xlarge => "r8g.8xlarge" + | .r8g_large => "r8g.large" + | .r8g_medium => "r8g.medium" + | .r8g_metal_24xl => "r8g.metal-24xl" + | .r8g_metal_48xl => "r8g.metal-48xl" + | .r8g_xlarge => "r8g.xlarge" + | .r8gb_12xlarge => "r8gb.12xlarge" + | .r8gb_16xlarge => "r8gb.16xlarge" + | .r8gb_24xlarge => "r8gb.24xlarge" + | .r8gb_2xlarge => "r8gb.2xlarge" + | .r8gb_48xlarge => "r8gb.48xlarge" + | .r8gb_4xlarge => "r8gb.4xlarge" + | .r8gb_8xlarge => "r8gb.8xlarge" + | .r8gb_large => "r8gb.large" + | .r8gb_medium => "r8gb.medium" + | .r8gb_metal_24xl => "r8gb.metal-24xl" + | .r8gb_metal_48xl => "r8gb.metal-48xl" + | .r8gb_xlarge => "r8gb.xlarge" + | .r8gd_12xlarge => "r8gd.12xlarge" + | .r8gd_16xlarge => "r8gd.16xlarge" + | .r8gd_24xlarge => "r8gd.24xlarge" + | .r8gd_2xlarge => "r8gd.2xlarge" + | .r8gd_48xlarge => "r8gd.48xlarge" + | .r8gd_4xlarge => "r8gd.4xlarge" + | .r8gd_8xlarge => "r8gd.8xlarge" + | .r8gd_large => "r8gd.large" + | .r8gd_medium => "r8gd.medium" + | .r8gd_metal_24xl => "r8gd.metal-24xl" + | .r8gd_metal_48xl => "r8gd.metal-48xl" + | .r8gd_xlarge => "r8gd.xlarge" + | .r8gn_12xlarge => "r8gn.12xlarge" + | .r8gn_16xlarge => "r8gn.16xlarge" + | .r8gn_24xlarge => "r8gn.24xlarge" + | .r8gn_2xlarge => "r8gn.2xlarge" + | .r8gn_48xlarge => "r8gn.48xlarge" + | .r8gn_4xlarge => "r8gn.4xlarge" + | .r8gn_8xlarge => "r8gn.8xlarge" + | .r8gn_large => "r8gn.large" + | .r8gn_medium => "r8gn.medium" + | .r8gn_metal_24xl => "r8gn.metal-24xl" + | .r8gn_metal_48xl => "r8gn.metal-48xl" + | .r8gn_xlarge => "r8gn.xlarge" + | .r8i_12xlarge => "r8i.12xlarge" + | .r8i_16xlarge => "r8i.16xlarge" + | .r8i_24xlarge => "r8i.24xlarge" + | .r8i_2xlarge => "r8i.2xlarge" + | .r8i_32xlarge => "r8i.32xlarge" + | .r8i_48xlarge => "r8i.48xlarge" + | .r8i_4xlarge => "r8i.4xlarge" + | .r8i_8xlarge => "r8i.8xlarge" + | .r8i_96xlarge => "r8i.96xlarge" + | .r8i_flex_12xlarge => "r8i-flex.12xlarge" + | .r8i_flex_16xlarge => "r8i-flex.16xlarge" + | .r8i_flex_2xlarge => "r8i-flex.2xlarge" + | .r8i_flex_4xlarge => "r8i-flex.4xlarge" + | .r8i_flex_8xlarge => "r8i-flex.8xlarge" + | .r8i_flex_large => "r8i-flex.large" + | .r8i_flex_xlarge => "r8i-flex.xlarge" + | .r8i_large => "r8i.large" + | .r8i_metal_48xl => "r8i.metal-48xl" + | .r8i_metal_96xl => "r8i.metal-96xl" + | .r8i_xlarge => "r8i.xlarge" + | .r8ib_12xlarge => "r8ib.12xlarge" + | .r8ib_16xlarge => "r8ib.16xlarge" + | .r8ib_24xlarge => "r8ib.24xlarge" + | .r8ib_2xlarge => "r8ib.2xlarge" + | .r8ib_32xlarge => "r8ib.32xlarge" + | .r8ib_48xlarge => "r8ib.48xlarge" + | .r8ib_4xlarge => "r8ib.4xlarge" + | .r8ib_8xlarge => "r8ib.8xlarge" + | .r8ib_96xlarge => "r8ib.96xlarge" + | .r8ib_large => "r8ib.large" + | .r8ib_metal_48xl => "r8ib.metal-48xl" + | .r8ib_metal_96xl => "r8ib.metal-96xl" + | .r8ib_xlarge => "r8ib.xlarge" + | .r8id_12xlarge => "r8id.12xlarge" + | .r8id_16xlarge => "r8id.16xlarge" + | .r8id_24xlarge => "r8id.24xlarge" + | .r8id_2xlarge => "r8id.2xlarge" + | .r8id_32xlarge => "r8id.32xlarge" + | .r8id_48xlarge => "r8id.48xlarge" + | .r8id_4xlarge => "r8id.4xlarge" + | .r8id_8xlarge => "r8id.8xlarge" + | .r8id_96xlarge => "r8id.96xlarge" + | .r8id_large => "r8id.large" + | .r8id_metal_48xl => "r8id.metal-48xl" + | .r8id_metal_96xl => "r8id.metal-96xl" + | .r8id_xlarge => "r8id.xlarge" + | .r8idb_12xlarge => "r8idb.12xlarge" + | .r8idb_16xlarge => "r8idb.16xlarge" + | .r8idb_24xlarge => "r8idb.24xlarge" + | .r8idb_2xlarge => "r8idb.2xlarge" + | .r8idb_32xlarge => "r8idb.32xlarge" + | .r8idb_48xlarge => "r8idb.48xlarge" + | .r8idb_4xlarge => "r8idb.4xlarge" + | .r8idb_8xlarge => "r8idb.8xlarge" + | .r8idb_96xlarge => "r8idb.96xlarge" + | .r8idb_large => "r8idb.large" + | .r8idb_metal_48xl => "r8idb.metal-48xl" + | .r8idb_metal_96xl => "r8idb.metal-96xl" + | .r8idb_xlarge => "r8idb.xlarge" + | .r8idn_12xlarge => "r8idn.12xlarge" + | .r8idn_16xlarge => "r8idn.16xlarge" + | .r8idn_24xlarge => "r8idn.24xlarge" + | .r8idn_2xlarge => "r8idn.2xlarge" + | .r8idn_32xlarge => "r8idn.32xlarge" + | .r8idn_48xlarge => "r8idn.48xlarge" + | .r8idn_4xlarge => "r8idn.4xlarge" + | .r8idn_8xlarge => "r8idn.8xlarge" + | .r8idn_96xlarge => "r8idn.96xlarge" + | .r8idn_large => "r8idn.large" + | .r8idn_metal_48xl => "r8idn.metal-48xl" + | .r8idn_metal_96xl => "r8idn.metal-96xl" + | .r8idn_xlarge => "r8idn.xlarge" + | .r8in_12xlarge => "r8in.12xlarge" + | .r8in_16xlarge => "r8in.16xlarge" + | .r8in_24xlarge => "r8in.24xlarge" + | .r8in_2xlarge => "r8in.2xlarge" + | .r8in_32xlarge => "r8in.32xlarge" + | .r8in_48xlarge => "r8in.48xlarge" + | .r8in_4xlarge => "r8in.4xlarge" + | .r8in_8xlarge => "r8in.8xlarge" + | .r8in_96xlarge => "r8in.96xlarge" + | .r8in_large => "r8in.large" + | .r8in_metal_48xl => "r8in.metal-48xl" + | .r8in_metal_96xl => "r8in.metal-96xl" + | .r8in_xlarge => "r8in.xlarge" + | .r9g_12xlarge => "r9g.12xlarge" + | .r9g_16xlarge => "r9g.16xlarge" + | .r9g_24xlarge => "r9g.24xlarge" + | .r9g_2xlarge => "r9g.2xlarge" + | .r9g_48xlarge => "r9g.48xlarge" + | .r9g_4xlarge => "r9g.4xlarge" + | .r9g_8xlarge => "r9g.8xlarge" + | .r9g_large => "r9g.large" + | .r9g_medium => "r9g.medium" + | .r9g_metal_48xl => "r9g.metal-48xl" + | .r9g_xlarge => "r9g.xlarge" + | .r9gd_12xlarge => "r9gd.12xlarge" + | .r9gd_16xlarge => "r9gd.16xlarge" + | .r9gd_24xlarge => "r9gd.24xlarge" + | .r9gd_2xlarge => "r9gd.2xlarge" + | .r9gd_48xlarge => "r9gd.48xlarge" + | .r9gd_4xlarge => "r9gd.4xlarge" + | .r9gd_8xlarge => "r9gd.8xlarge" + | .r9gd_large => "r9gd.large" + | .r9gd_medium => "r9gd.medium" + | .r9gd_metal_48xl => "r9gd.metal-48xl" + | .r9gd_xlarge => "r9gd.xlarge" + | .t1_micro => "t1.micro" + | .t2_2xlarge => "t2.2xlarge" + | .t2_large => "t2.large" + | .t2_medium => "t2.medium" + | .t2_micro => "t2.micro" + | .t2_nano => "t2.nano" + | .t2_small => "t2.small" + | .t2_xlarge => "t2.xlarge" + | .t3_2xlarge => "t3.2xlarge" + | .t3_large => "t3.large" + | .t3_medium => "t3.medium" + | .t3_micro => "t3.micro" + | .t3_nano => "t3.nano" + | .t3_small => "t3.small" + | .t3_xlarge => "t3.xlarge" + | .t3a_2xlarge => "t3a.2xlarge" + | .t3a_large => "t3a.large" + | .t3a_medium => "t3a.medium" + | .t3a_micro => "t3a.micro" + | .t3a_nano => "t3a.nano" + | .t3a_small => "t3a.small" + | .t3a_xlarge => "t3a.xlarge" + | .t4g_2xlarge => "t4g.2xlarge" + | .t4g_large => "t4g.large" + | .t4g_medium => "t4g.medium" + | .t4g_micro => "t4g.micro" + | .t4g_nano => "t4g.nano" + | .t4g_small => "t4g.small" + | .t4g_xlarge => "t4g.xlarge" + | .t8i_medium => "t8i.medium" + | .t8i_micro => "t8i.micro" + | .t8i_nano => "t8i.nano" + | .t8i_small => "t8i.small" + | .trn1_2xlarge => "trn1.2xlarge" + | .trn1_32xlarge => "trn1.32xlarge" + | .trn1n_32xlarge => "trn1n.32xlarge" + | .trn2_3xlarge => "trn2.3xlarge" + | .trn2_48xlarge => "trn2.48xlarge" + | .trn2u_48xlarge => "trn2u.48xlarge" + | .u7i_12tb_224xlarge => "u7i-12tb.224xlarge" + | .u7i_6tb_112xlarge => "u7i-6tb.112xlarge" + | .u7i_8tb_112xlarge => "u7i-8tb.112xlarge" + | .u7ib_12tb_224xlarge => "u7ib-12tb.224xlarge" + | .u7in_16tb_224xlarge => "u7in-16tb.224xlarge" + | .u7in_24tb_224xlarge => "u7in-24tb.224xlarge" + | .u7in_32tb_224xlarge => "u7in-32tb.224xlarge" + | .u7inh_32tb_480xlarge => "u7inh-32tb.480xlarge" + | .u_12tb1_112xlarge => "u-12tb1.112xlarge" + | .u_12tb1_metal => "u-12tb1.metal" + | .u_18tb1_112xlarge => "u-18tb1.112xlarge" + | .u_18tb1_metal => "u-18tb1.metal" + | .u_24tb1_112xlarge => "u-24tb1.112xlarge" + | .u_24tb1_metal => "u-24tb1.metal" + | .u_3tb1_56xlarge => "u-3tb1.56xlarge" + | .u_6tb1_112xlarge => "u-6tb1.112xlarge" + | .u_6tb1_56xlarge => "u-6tb1.56xlarge" + | .u_6tb1_metal => "u-6tb1.metal" + | .u_9tb1_112xlarge => "u-9tb1.112xlarge" + | .u_9tb1_metal => "u-9tb1.metal" + | .vt1_24xlarge => "vt1.24xlarge" + | .vt1_3xlarge => "vt1.3xlarge" + | .vt1_6xlarge => "vt1.6xlarge" + | .x1_16xlarge => "x1.16xlarge" + | .x1_32xlarge => "x1.32xlarge" + | .x1e_16xlarge => "x1e.16xlarge" + | .x1e_2xlarge => "x1e.2xlarge" + | .x1e_32xlarge => "x1e.32xlarge" + | .x1e_4xlarge => "x1e.4xlarge" + | .x1e_8xlarge => "x1e.8xlarge" + | .x1e_xlarge => "x1e.xlarge" + | .x2gd_12xlarge => "x2gd.12xlarge" + | .x2gd_16xlarge => "x2gd.16xlarge" + | .x2gd_2xlarge => "x2gd.2xlarge" + | .x2gd_4xlarge => "x2gd.4xlarge" + | .x2gd_8xlarge => "x2gd.8xlarge" + | .x2gd_large => "x2gd.large" + | .x2gd_medium => "x2gd.medium" + | .x2gd_metal => "x2gd.metal" + | .x2gd_xlarge => "x2gd.xlarge" + | .x2idn_16xlarge => "x2idn.16xlarge" + | .x2idn_24xlarge => "x2idn.24xlarge" + | .x2idn_32xlarge => "x2idn.32xlarge" + | .x2idn_metal => "x2idn.metal" + | .x2iedn_16xlarge => "x2iedn.16xlarge" + | .x2iedn_24xlarge => "x2iedn.24xlarge" + | .x2iedn_2xlarge => "x2iedn.2xlarge" + | .x2iedn_32xlarge => "x2iedn.32xlarge" + | .x2iedn_4xlarge => "x2iedn.4xlarge" + | .x2iedn_8xlarge => "x2iedn.8xlarge" + | .x2iedn_metal => "x2iedn.metal" + | .x2iedn_xlarge => "x2iedn.xlarge" + | .x2iezn_12xlarge => "x2iezn.12xlarge" + | .x2iezn_2xlarge => "x2iezn.2xlarge" + | .x2iezn_4xlarge => "x2iezn.4xlarge" + | .x2iezn_6xlarge => "x2iezn.6xlarge" + | .x2iezn_8xlarge => "x2iezn.8xlarge" + | .x2iezn_metal => "x2iezn.metal" + | .x8aedz_12xlarge => "x8aedz.12xlarge" + | .x8aedz_24xlarge => "x8aedz.24xlarge" + | .x8aedz_3xlarge => "x8aedz.3xlarge" + | .x8aedz_6xlarge => "x8aedz.6xlarge" + | .x8aedz_large => "x8aedz.large" + | .x8aedz_metal_12xl => "x8aedz.metal-12xl" + | .x8aedz_metal_24xl => "x8aedz.metal-24xl" + | .x8aedz_xlarge => "x8aedz.xlarge" + | .x8g_12xlarge => "x8g.12xlarge" + | .x8g_16xlarge => "x8g.16xlarge" + | .x8g_24xlarge => "x8g.24xlarge" + | .x8g_2xlarge => "x8g.2xlarge" + | .x8g_48xlarge => "x8g.48xlarge" + | .x8g_4xlarge => "x8g.4xlarge" + | .x8g_8xlarge => "x8g.8xlarge" + | .x8g_large => "x8g.large" + | .x8g_medium => "x8g.medium" + | .x8g_metal_24xl => "x8g.metal-24xl" + | .x8g_metal_48xl => "x8g.metal-48xl" + | .x8g_xlarge => "x8g.xlarge" + | .x8i_12xlarge => "x8i.12xlarge" + | .x8i_16xlarge => "x8i.16xlarge" + | .x8i_24xlarge => "x8i.24xlarge" + | .x8i_2xlarge => "x8i.2xlarge" + | .x8i_32xlarge => "x8i.32xlarge" + | .x8i_48xlarge => "x8i.48xlarge" + | .x8i_4xlarge => "x8i.4xlarge" + | .x8i_64xlarge => "x8i.64xlarge" + | .x8i_8xlarge => "x8i.8xlarge" + | .x8i_96xlarge => "x8i.96xlarge" + | .x8i_large => "x8i.large" + | .x8i_metal_48xl => "x8i.metal-48xl" + | .x8i_metal_96xl => "x8i.metal-96xl" + | .x8i_xlarge => "x8i.xlarge" + | .z1d_12xlarge => "z1d.12xlarge" + | .z1d_2xlarge => "z1d.2xlarge" + | .z1d_3xlarge => "z1d.3xlarge" + | .z1d_6xlarge => "z1d.6xlarge" + | .z1d_large => "z1d.large" + | .z1d_metal => "z1d.metal" + | .z1d_xlarge => "z1d.xlarge" + +def InstanceType.wireValues : List (String × InstanceType) := [ + ("a1.2xlarge", .a1_2xlarge), + ("a1.4xlarge", .a1_4xlarge), + ("a1.large", .a1_large), + ("a1.medium", .a1_medium), + ("a1.metal", .a1_metal), + ("a1.xlarge", .a1_xlarge), + ("c1.medium", .c1_medium), + ("c1.xlarge", .c1_xlarge), + ("c3.2xlarge", .c3_2xlarge), + ("c3.4xlarge", .c3_4xlarge), + ("c3.8xlarge", .c3_8xlarge), + ("c3.large", .c3_large), + ("c3.xlarge", .c3_xlarge), + ("c4.2xlarge", .c4_2xlarge), + ("c4.4xlarge", .c4_4xlarge), + ("c4.8xlarge", .c4_8xlarge), + ("c4.large", .c4_large), + ("c4.xlarge", .c4_xlarge), + ("c5.12xlarge", .c5_12xlarge), + ("c5.18xlarge", .c5_18xlarge), + ("c5.24xlarge", .c5_24xlarge), + ("c5.2xlarge", .c5_2xlarge), + ("c5.4xlarge", .c5_4xlarge), + ("c5.9xlarge", .c5_9xlarge), + ("c5.large", .c5_large), + ("c5.metal", .c5_metal), + ("c5.xlarge", .c5_xlarge), + ("c5a.12xlarge", .c5a_12xlarge), + ("c5a.16xlarge", .c5a_16xlarge), + ("c5a.24xlarge", .c5a_24xlarge), + ("c5a.2xlarge", .c5a_2xlarge), + ("c5a.4xlarge", .c5a_4xlarge), + ("c5a.8xlarge", .c5a_8xlarge), + ("c5a.large", .c5a_large), + ("c5a.xlarge", .c5a_xlarge), + ("c5ad.12xlarge", .c5ad_12xlarge), + ("c5ad.16xlarge", .c5ad_16xlarge), + ("c5ad.24xlarge", .c5ad_24xlarge), + ("c5ad.2xlarge", .c5ad_2xlarge), + ("c5ad.4xlarge", .c5ad_4xlarge), + ("c5ad.8xlarge", .c5ad_8xlarge), + ("c5ad.large", .c5ad_large), + ("c5ad.xlarge", .c5ad_xlarge), + ("c5d.12xlarge", .c5d_12xlarge), + ("c5d.18xlarge", .c5d_18xlarge), + ("c5d.24xlarge", .c5d_24xlarge), + ("c5d.2xlarge", .c5d_2xlarge), + ("c5d.4xlarge", .c5d_4xlarge), + ("c5d.9xlarge", .c5d_9xlarge), + ("c5d.large", .c5d_large), + ("c5d.metal", .c5d_metal), + ("c5d.xlarge", .c5d_xlarge), + ("c5n.18xlarge", .c5n_18xlarge), + ("c5n.2xlarge", .c5n_2xlarge), + ("c5n.4xlarge", .c5n_4xlarge), + ("c5n.9xlarge", .c5n_9xlarge), + ("c5n.large", .c5n_large), + ("c5n.metal", .c5n_metal), + ("c5n.xlarge", .c5n_xlarge), + ("c6a.12xlarge", .c6a_12xlarge), + ("c6a.16xlarge", .c6a_16xlarge), + ("c6a.24xlarge", .c6a_24xlarge), + ("c6a.2xlarge", .c6a_2xlarge), + ("c6a.32xlarge", .c6a_32xlarge), + ("c6a.48xlarge", .c6a_48xlarge), + ("c6a.4xlarge", .c6a_4xlarge), + ("c6a.8xlarge", .c6a_8xlarge), + ("c6a.large", .c6a_large), + ("c6a.metal", .c6a_metal), + ("c6a.xlarge", .c6a_xlarge), + ("c6g.12xlarge", .c6g_12xlarge), + ("c6g.16xlarge", .c6g_16xlarge), + ("c6g.2xlarge", .c6g_2xlarge), + ("c6g.4xlarge", .c6g_4xlarge), + ("c6g.8xlarge", .c6g_8xlarge), + ("c6g.large", .c6g_large), + ("c6g.medium", .c6g_medium), + ("c6g.metal", .c6g_metal), + ("c6g.xlarge", .c6g_xlarge), + ("c6gd.12xlarge", .c6gd_12xlarge), + ("c6gd.16xlarge", .c6gd_16xlarge), + ("c6gd.2xlarge", .c6gd_2xlarge), + ("c6gd.4xlarge", .c6gd_4xlarge), + ("c6gd.8xlarge", .c6gd_8xlarge), + ("c6gd.large", .c6gd_large), + ("c6gd.medium", .c6gd_medium), + ("c6gd.metal", .c6gd_metal), + ("c6gd.xlarge", .c6gd_xlarge), + ("c6gn.12xlarge", .c6gn_12xlarge), + ("c6gn.16xlarge", .c6gn_16xlarge), + ("c6gn.2xlarge", .c6gn_2xlarge), + ("c6gn.4xlarge", .c6gn_4xlarge), + ("c6gn.8xlarge", .c6gn_8xlarge), + ("c6gn.large", .c6gn_large), + ("c6gn.medium", .c6gn_medium), + ("c6gn.xlarge", .c6gn_xlarge), + ("c6i.12xlarge", .c6i_12xlarge), + ("c6i.16xlarge", .c6i_16xlarge), + ("c6i.24xlarge", .c6i_24xlarge), + ("c6i.2xlarge", .c6i_2xlarge), + ("c6i.32xlarge", .c6i_32xlarge), + ("c6i.4xlarge", .c6i_4xlarge), + ("c6i.8xlarge", .c6i_8xlarge), + ("c6i.large", .c6i_large), + ("c6i.metal", .c6i_metal), + ("c6i.xlarge", .c6i_xlarge), + ("c6id.12xlarge", .c6id_12xlarge), + ("c6id.16xlarge", .c6id_16xlarge), + ("c6id.24xlarge", .c6id_24xlarge), + ("c6id.2xlarge", .c6id_2xlarge), + ("c6id.32xlarge", .c6id_32xlarge), + ("c6id.4xlarge", .c6id_4xlarge), + ("c6id.8xlarge", .c6id_8xlarge), + ("c6id.large", .c6id_large), + ("c6id.metal", .c6id_metal), + ("c6id.xlarge", .c6id_xlarge), + ("c6in.12xlarge", .c6in_12xlarge), + ("c6in.16xlarge", .c6in_16xlarge), + ("c6in.24xlarge", .c6in_24xlarge), + ("c6in.2xlarge", .c6in_2xlarge), + ("c6in.32xlarge", .c6in_32xlarge), + ("c6in.4xlarge", .c6in_4xlarge), + ("c6in.8xlarge", .c6in_8xlarge), + ("c6in.large", .c6in_large), + ("c6in.metal", .c6in_metal), + ("c6in.xlarge", .c6in_xlarge), + ("c7a.12xlarge", .c7a_12xlarge), + ("c7a.16xlarge", .c7a_16xlarge), + ("c7a.24xlarge", .c7a_24xlarge), + ("c7a.2xlarge", .c7a_2xlarge), + ("c7a.32xlarge", .c7a_32xlarge), + ("c7a.48xlarge", .c7a_48xlarge), + ("c7a.4xlarge", .c7a_4xlarge), + ("c7a.8xlarge", .c7a_8xlarge), + ("c7a.large", .c7a_large), + ("c7a.medium", .c7a_medium), + ("c7a.metal-48xl", .c7a_metal_48xl), + ("c7a.xlarge", .c7a_xlarge), + ("c7g.12xlarge", .c7g_12xlarge), + ("c7g.16xlarge", .c7g_16xlarge), + ("c7g.2xlarge", .c7g_2xlarge), + ("c7g.4xlarge", .c7g_4xlarge), + ("c7g.8xlarge", .c7g_8xlarge), + ("c7g.large", .c7g_large), + ("c7g.medium", .c7g_medium), + ("c7g.metal", .c7g_metal), + ("c7g.xlarge", .c7g_xlarge), + ("c7gd.12xlarge", .c7gd_12xlarge), + ("c7gd.16xlarge", .c7gd_16xlarge), + ("c7gd.2xlarge", .c7gd_2xlarge), + ("c7gd.4xlarge", .c7gd_4xlarge), + ("c7gd.8xlarge", .c7gd_8xlarge), + ("c7gd.large", .c7gd_large), + ("c7gd.medium", .c7gd_medium), + ("c7gd.metal", .c7gd_metal), + ("c7gd.xlarge", .c7gd_xlarge), + ("c7gn.12xlarge", .c7gn_12xlarge), + ("c7gn.16xlarge", .c7gn_16xlarge), + ("c7gn.2xlarge", .c7gn_2xlarge), + ("c7gn.4xlarge", .c7gn_4xlarge), + ("c7gn.8xlarge", .c7gn_8xlarge), + ("c7gn.large", .c7gn_large), + ("c7gn.medium", .c7gn_medium), + ("c7gn.metal", .c7gn_metal), + ("c7gn.xlarge", .c7gn_xlarge), + ("c7i.12xlarge", .c7i_12xlarge), + ("c7i.16xlarge", .c7i_16xlarge), + ("c7i.24xlarge", .c7i_24xlarge), + ("c7i.2xlarge", .c7i_2xlarge), + ("c7i.48xlarge", .c7i_48xlarge), + ("c7i.4xlarge", .c7i_4xlarge), + ("c7i.8xlarge", .c7i_8xlarge), + ("c7i-flex.12xlarge", .c7i_flex_12xlarge), + ("c7i-flex.16xlarge", .c7i_flex_16xlarge), + ("c7i-flex.2xlarge", .c7i_flex_2xlarge), + ("c7i-flex.4xlarge", .c7i_flex_4xlarge), + ("c7i-flex.8xlarge", .c7i_flex_8xlarge), + ("c7i-flex.large", .c7i_flex_large), + ("c7i-flex.xlarge", .c7i_flex_xlarge), + ("c7i.large", .c7i_large), + ("c7i.metal-24xl", .c7i_metal_24xl), + ("c7i.metal-48xl", .c7i_metal_48xl), + ("c7i.xlarge", .c7i_xlarge), + ("c8a.12xlarge", .c8a_12xlarge), + ("c8a.16xlarge", .c8a_16xlarge), + ("c8a.24xlarge", .c8a_24xlarge), + ("c8a.2xlarge", .c8a_2xlarge), + ("c8a.48xlarge", .c8a_48xlarge), + ("c8a.4xlarge", .c8a_4xlarge), + ("c8a.8xlarge", .c8a_8xlarge), + ("c8a.large", .c8a_large), + ("c8a.medium", .c8a_medium), + ("c8a.metal-24xl", .c8a_metal_24xl), + ("c8a.metal-48xl", .c8a_metal_48xl), + ("c8a.xlarge", .c8a_xlarge), + ("c8g.12xlarge", .c8g_12xlarge), + ("c8g.16xlarge", .c8g_16xlarge), + ("c8g.24xlarge", .c8g_24xlarge), + ("c8g.2xlarge", .c8g_2xlarge), + ("c8g.48xlarge", .c8g_48xlarge), + ("c8g.4xlarge", .c8g_4xlarge), + ("c8g.8xlarge", .c8g_8xlarge), + ("c8g.large", .c8g_large), + ("c8g.medium", .c8g_medium), + ("c8g.metal-24xl", .c8g_metal_24xl), + ("c8g.metal-48xl", .c8g_metal_48xl), + ("c8g.xlarge", .c8g_xlarge), + ("c8gb.12xlarge", .c8gb_12xlarge), + ("c8gb.16xlarge", .c8gb_16xlarge), + ("c8gb.24xlarge", .c8gb_24xlarge), + ("c8gb.2xlarge", .c8gb_2xlarge), + ("c8gb.48xlarge", .c8gb_48xlarge), + ("c8gb.4xlarge", .c8gb_4xlarge), + ("c8gb.8xlarge", .c8gb_8xlarge), + ("c8gb.large", .c8gb_large), + ("c8gb.medium", .c8gb_medium), + ("c8gb.metal-24xl", .c8gb_metal_24xl), + ("c8gb.metal-48xl", .c8gb_metal_48xl), + ("c8gb.xlarge", .c8gb_xlarge), + ("c8gd.12xlarge", .c8gd_12xlarge), + ("c8gd.16xlarge", .c8gd_16xlarge), + ("c8gd.24xlarge", .c8gd_24xlarge), + ("c8gd.2xlarge", .c8gd_2xlarge), + ("c8gd.48xlarge", .c8gd_48xlarge), + ("c8gd.4xlarge", .c8gd_4xlarge), + ("c8gd.8xlarge", .c8gd_8xlarge), + ("c8gd.large", .c8gd_large), + ("c8gd.medium", .c8gd_medium), + ("c8gd.metal-24xl", .c8gd_metal_24xl), + ("c8gd.metal-48xl", .c8gd_metal_48xl), + ("c8gd.xlarge", .c8gd_xlarge), + ("c8gn.12xlarge", .c8gn_12xlarge), + ("c8gn.16xlarge", .c8gn_16xlarge), + ("c8gn.24xlarge", .c8gn_24xlarge), + ("c8gn.2xlarge", .c8gn_2xlarge), + ("c8gn.48xlarge", .c8gn_48xlarge), + ("c8gn.4xlarge", .c8gn_4xlarge), + ("c8gn.8xlarge", .c8gn_8xlarge), + ("c8gn.large", .c8gn_large), + ("c8gn.medium", .c8gn_medium), + ("c8gn.metal-24xl", .c8gn_metal_24xl), + ("c8gn.metal-48xl", .c8gn_metal_48xl), + ("c8gn.xlarge", .c8gn_xlarge), + ("c8i.12xlarge", .c8i_12xlarge), + ("c8i.16xlarge", .c8i_16xlarge), + ("c8i.24xlarge", .c8i_24xlarge), + ("c8i.2xlarge", .c8i_2xlarge), + ("c8i.32xlarge", .c8i_32xlarge), + ("c8i.48xlarge", .c8i_48xlarge), + ("c8i.4xlarge", .c8i_4xlarge), + ("c8i.8xlarge", .c8i_8xlarge), + ("c8i.96xlarge", .c8i_96xlarge), + ("c8i-flex.12xlarge", .c8i_flex_12xlarge), + ("c8i-flex.16xlarge", .c8i_flex_16xlarge), + ("c8i-flex.2xlarge", .c8i_flex_2xlarge), + ("c8i-flex.4xlarge", .c8i_flex_4xlarge), + ("c8i-flex.8xlarge", .c8i_flex_8xlarge), + ("c8i-flex.large", .c8i_flex_large), + ("c8i-flex.xlarge", .c8i_flex_xlarge), + ("c8i.large", .c8i_large), + ("c8i.metal-48xl", .c8i_metal_48xl), + ("c8i.metal-96xl", .c8i_metal_96xl), + ("c8i.xlarge", .c8i_xlarge), + ("c8ib.12xlarge", .c8ib_12xlarge), + ("c8ib.16xlarge", .c8ib_16xlarge), + ("c8ib.24xlarge", .c8ib_24xlarge), + ("c8ib.2xlarge", .c8ib_2xlarge), + ("c8ib.32xlarge", .c8ib_32xlarge), + ("c8ib.48xlarge", .c8ib_48xlarge), + ("c8ib.4xlarge", .c8ib_4xlarge), + ("c8ib.8xlarge", .c8ib_8xlarge), + ("c8ib.96xlarge", .c8ib_96xlarge), + ("c8ib.large", .c8ib_large), + ("c8ib.metal-48xl", .c8ib_metal_48xl), + ("c8ib.metal-96xl", .c8ib_metal_96xl), + ("c8ib.xlarge", .c8ib_xlarge), + ("c8id.12xlarge", .c8id_12xlarge), + ("c8id.16xlarge", .c8id_16xlarge), + ("c8id.24xlarge", .c8id_24xlarge), + ("c8id.2xlarge", .c8id_2xlarge), + ("c8id.32xlarge", .c8id_32xlarge), + ("c8id.48xlarge", .c8id_48xlarge), + ("c8id.4xlarge", .c8id_4xlarge), + ("c8id.8xlarge", .c8id_8xlarge), + ("c8id.96xlarge", .c8id_96xlarge), + ("c8id.large", .c8id_large), + ("c8id.metal-48xl", .c8id_metal_48xl), + ("c8id.metal-96xl", .c8id_metal_96xl), + ("c8id.xlarge", .c8id_xlarge), + ("c8in.12xlarge", .c8in_12xlarge), + ("c8in.16xlarge", .c8in_16xlarge), + ("c8in.24xlarge", .c8in_24xlarge), + ("c8in.2xlarge", .c8in_2xlarge), + ("c8in.32xlarge", .c8in_32xlarge), + ("c8in.48xlarge", .c8in_48xlarge), + ("c8in.4xlarge", .c8in_4xlarge), + ("c8in.8xlarge", .c8in_8xlarge), + ("c8in.96xlarge", .c8in_96xlarge), + ("c8in.large", .c8in_large), + ("c8in.metal-48xl", .c8in_metal_48xl), + ("c8in.metal-96xl", .c8in_metal_96xl), + ("c8in.xlarge", .c8in_xlarge), + ("c8ine.12xlarge", .c8ine_12xlarge), + ("c8ine.2xlarge", .c8ine_2xlarge), + ("c8ine.4xlarge", .c8ine_4xlarge), + ("c8ine.8xlarge", .c8ine_8xlarge), + ("c8ine.large", .c8ine_large), + ("c8ine.xlarge", .c8ine_xlarge), + ("c9g.12xlarge", .c9g_12xlarge), + ("c9g.16xlarge", .c9g_16xlarge), + ("c9g.24xlarge", .c9g_24xlarge), + ("c9g.2xlarge", .c9g_2xlarge), + ("c9g.48xlarge", .c9g_48xlarge), + ("c9g.4xlarge", .c9g_4xlarge), + ("c9g.8xlarge", .c9g_8xlarge), + ("c9g.large", .c9g_large), + ("c9g.medium", .c9g_medium), + ("c9g.metal-48xl", .c9g_metal_48xl), + ("c9g.xlarge", .c9g_xlarge), + ("c9gd.12xlarge", .c9gd_12xlarge), + ("c9gd.16xlarge", .c9gd_16xlarge), + ("c9gd.24xlarge", .c9gd_24xlarge), + ("c9gd.2xlarge", .c9gd_2xlarge), + ("c9gd.48xlarge", .c9gd_48xlarge), + ("c9gd.4xlarge", .c9gd_4xlarge), + ("c9gd.8xlarge", .c9gd_8xlarge), + ("c9gd.large", .c9gd_large), + ("c9gd.medium", .c9gd_medium), + ("c9gd.metal-48xl", .c9gd_metal_48xl), + ("c9gd.xlarge", .c9gd_xlarge), + ("cc1.4xlarge", .cc1_4xlarge), + ("cc2.8xlarge", .cc2_8xlarge), + ("cg1.4xlarge", .cg1_4xlarge), + ("cr1.8xlarge", .cr1_8xlarge), + ("d2.2xlarge", .d2_2xlarge), + ("d2.4xlarge", .d2_4xlarge), + ("d2.8xlarge", .d2_8xlarge), + ("d2.xlarge", .d2_xlarge), + ("d3.2xlarge", .d3_2xlarge), + ("d3.4xlarge", .d3_4xlarge), + ("d3.8xlarge", .d3_8xlarge), + ("d3.xlarge", .d3_xlarge), + ("d3en.12xlarge", .d3en_12xlarge), + ("d3en.2xlarge", .d3en_2xlarge), + ("d3en.4xlarge", .d3en_4xlarge), + ("d3en.6xlarge", .d3en_6xlarge), + ("d3en.8xlarge", .d3en_8xlarge), + ("d3en.xlarge", .d3en_xlarge), + ("dl1.24xlarge", .dl1_24xlarge), + ("dl2q.24xlarge", .dl2q_24xlarge), + ("f1.16xlarge", .f1_16xlarge), + ("f1.2xlarge", .f1_2xlarge), + ("f1.4xlarge", .f1_4xlarge), + ("f2.12xlarge", .f2_12xlarge), + ("f2.48xlarge", .f2_48xlarge), + ("f2.6xlarge", .f2_6xlarge), + ("g2.2xlarge", .g2_2xlarge), + ("g2.8xlarge", .g2_8xlarge), + ("g3.16xlarge", .g3_16xlarge), + ("g3.4xlarge", .g3_4xlarge), + ("g3.8xlarge", .g3_8xlarge), + ("g3s.xlarge", .g3s_xlarge), + ("g4ad.16xlarge", .g4ad_16xlarge), + ("g4ad.2xlarge", .g4ad_2xlarge), + ("g4ad.4xlarge", .g4ad_4xlarge), + ("g4ad.8xlarge", .g4ad_8xlarge), + ("g4ad.xlarge", .g4ad_xlarge), + ("g4dn.12xlarge", .g4dn_12xlarge), + ("g4dn.16xlarge", .g4dn_16xlarge), + ("g4dn.2xlarge", .g4dn_2xlarge), + ("g4dn.4xlarge", .g4dn_4xlarge), + ("g4dn.8xlarge", .g4dn_8xlarge), + ("g4dn.metal", .g4dn_metal), + ("g4dn.xlarge", .g4dn_xlarge), + ("g5.12xlarge", .g5_12xlarge), + ("g5.16xlarge", .g5_16xlarge), + ("g5.24xlarge", .g5_24xlarge), + ("g5.2xlarge", .g5_2xlarge), + ("g5.48xlarge", .g5_48xlarge), + ("g5.4xlarge", .g5_4xlarge), + ("g5.8xlarge", .g5_8xlarge), + ("g5.xlarge", .g5_xlarge), + ("g5g.16xlarge", .g5g_16xlarge), + ("g5g.2xlarge", .g5g_2xlarge), + ("g5g.4xlarge", .g5g_4xlarge), + ("g5g.8xlarge", .g5g_8xlarge), + ("g5g.metal", .g5g_metal), + ("g5g.xlarge", .g5g_xlarge), + ("g6.12xlarge", .g6_12xlarge), + ("g6.16xlarge", .g6_16xlarge), + ("g6.24xlarge", .g6_24xlarge), + ("g6.2xlarge", .g6_2xlarge), + ("g6.48xlarge", .g6_48xlarge), + ("g6.4xlarge", .g6_4xlarge), + ("g6.8xlarge", .g6_8xlarge), + ("g6.xlarge", .g6_xlarge), + ("g6e.12xlarge", .g6e_12xlarge), + ("g6e.16xlarge", .g6e_16xlarge), + ("g6e.24xlarge", .g6e_24xlarge), + ("g6e.2xlarge", .g6e_2xlarge), + ("g6e.48xlarge", .g6e_48xlarge), + ("g6e.4xlarge", .g6e_4xlarge), + ("g6e.8xlarge", .g6e_8xlarge), + ("g6e.xlarge", .g6e_xlarge), + ("g6f.2xlarge", .g6f_2xlarge), + ("g6f.4xlarge", .g6f_4xlarge), + ("g6f.large", .g6f_large), + ("g6f.xlarge", .g6f_xlarge), + ("g7.12xlarge", .g7_12xlarge), + ("g7.24xlarge", .g7_24xlarge), + ("g7.2xlarge", .g7_2xlarge), + ("g7.48xlarge", .g7_48xlarge), + ("g7.4xlarge", .g7_4xlarge), + ("g7.8xlarge", .g7_8xlarge), + ("g7e.12xlarge", .g7e_12xlarge), + ("g7e.24xlarge", .g7e_24xlarge), + ("g7e.2xlarge", .g7e_2xlarge), + ("g7e.48xlarge", .g7e_48xlarge), + ("g7e.4xlarge", .g7e_4xlarge), + ("g7e.8xlarge", .g7e_8xlarge), + ("gr6.4xlarge", .gr6_4xlarge), + ("gr6.8xlarge", .gr6_8xlarge), + ("gr6f.4xlarge", .gr6f_4xlarge), + ("h1.16xlarge", .h1_16xlarge), + ("h1.2xlarge", .h1_2xlarge), + ("h1.4xlarge", .h1_4xlarge), + ("h1.8xlarge", .h1_8xlarge), + ("hi1.4xlarge", .hi1_4xlarge), + ("hpc6a.48xlarge", .hpc6a_48xlarge), + ("hpc6id.32xlarge", .hpc6id_32xlarge), + ("hpc7a.12xlarge", .hpc7a_12xlarge), + ("hpc7a.24xlarge", .hpc7a_24xlarge), + ("hpc7a.48xlarge", .hpc7a_48xlarge), + ("hpc7a.96xlarge", .hpc7a_96xlarge), + ("hpc7g.16xlarge", .hpc7g_16xlarge), + ("hpc7g.4xlarge", .hpc7g_4xlarge), + ("hpc7g.8xlarge", .hpc7g_8xlarge), + ("hpc8a.96xlarge", .hpc8a_96xlarge), + ("hs1.8xlarge", .hs1_8xlarge), + ("i2.2xlarge", .i2_2xlarge), + ("i2.4xlarge", .i2_4xlarge), + ("i2.8xlarge", .i2_8xlarge), + ("i2.xlarge", .i2_xlarge), + ("i3.16xlarge", .i3_16xlarge), + ("i3.2xlarge", .i3_2xlarge), + ("i3.4xlarge", .i3_4xlarge), + ("i3.8xlarge", .i3_8xlarge), + ("i3.large", .i3_large), + ("i3.metal", .i3_metal), + ("i3.xlarge", .i3_xlarge), + ("i3en.12xlarge", .i3en_12xlarge), + ("i3en.24xlarge", .i3en_24xlarge), + ("i3en.2xlarge", .i3en_2xlarge), + ("i3en.3xlarge", .i3en_3xlarge), + ("i3en.6xlarge", .i3en_6xlarge), + ("i3en.large", .i3en_large), + ("i3en.metal", .i3en_metal), + ("i3en.xlarge", .i3en_xlarge), + ("i4g.16xlarge", .i4g_16xlarge), + ("i4g.2xlarge", .i4g_2xlarge), + ("i4g.4xlarge", .i4g_4xlarge), + ("i4g.8xlarge", .i4g_8xlarge), + ("i4g.large", .i4g_large), + ("i4g.xlarge", .i4g_xlarge), + ("i4i.12xlarge", .i4i_12xlarge), + ("i4i.16xlarge", .i4i_16xlarge), + ("i4i.24xlarge", .i4i_24xlarge), + ("i4i.2xlarge", .i4i_2xlarge), + ("i4i.32xlarge", .i4i_32xlarge), + ("i4i.4xlarge", .i4i_4xlarge), + ("i4i.8xlarge", .i4i_8xlarge), + ("i4i.large", .i4i_large), + ("i4i.metal", .i4i_metal), + ("i4i.xlarge", .i4i_xlarge), + ("i7i.12xlarge", .i7i_12xlarge), + ("i7i.16xlarge", .i7i_16xlarge), + ("i7i.24xlarge", .i7i_24xlarge), + ("i7i.2xlarge", .i7i_2xlarge), + ("i7i.48xlarge", .i7i_48xlarge), + ("i7i.4xlarge", .i7i_4xlarge), + ("i7i.8xlarge", .i7i_8xlarge), + ("i7i.large", .i7i_large), + ("i7i.metal-24xl", .i7i_metal_24xl), + ("i7i.metal-48xl", .i7i_metal_48xl), + ("i7i.xlarge", .i7i_xlarge), + ("i7ie.12xlarge", .i7ie_12xlarge), + ("i7ie.18xlarge", .i7ie_18xlarge), + ("i7ie.24xlarge", .i7ie_24xlarge), + ("i7ie.2xlarge", .i7ie_2xlarge), + ("i7ie.3xlarge", .i7ie_3xlarge), + ("i7ie.48xlarge", .i7ie_48xlarge), + ("i7ie.6xlarge", .i7ie_6xlarge), + ("i7ie.large", .i7ie_large), + ("i7ie.metal-24xl", .i7ie_metal_24xl), + ("i7ie.metal-48xl", .i7ie_metal_48xl), + ("i7ie.xlarge", .i7ie_xlarge), + ("i8g.12xlarge", .i8g_12xlarge), + ("i8g.16xlarge", .i8g_16xlarge), + ("i8g.24xlarge", .i8g_24xlarge), + ("i8g.2xlarge", .i8g_2xlarge), + ("i8g.48xlarge", .i8g_48xlarge), + ("i8g.4xlarge", .i8g_4xlarge), + ("i8g.8xlarge", .i8g_8xlarge), + ("i8g.large", .i8g_large), + ("i8g.metal-24xl", .i8g_metal_24xl), + ("i8g.metal-48xl", .i8g_metal_48xl), + ("i8g.xlarge", .i8g_xlarge), + ("i8ge.12xlarge", .i8ge_12xlarge), + ("i8ge.18xlarge", .i8ge_18xlarge), + ("i8ge.24xlarge", .i8ge_24xlarge), + ("i8ge.2xlarge", .i8ge_2xlarge), + ("i8ge.3xlarge", .i8ge_3xlarge), + ("i8ge.48xlarge", .i8ge_48xlarge), + ("i8ge.6xlarge", .i8ge_6xlarge), + ("i8ge.large", .i8ge_large), + ("i8ge.metal-24xl", .i8ge_metal_24xl), + ("i8ge.metal-48xl", .i8ge_metal_48xl), + ("i8ge.xlarge", .i8ge_xlarge), + ("im4gn.16xlarge", .im4gn_16xlarge), + ("im4gn.2xlarge", .im4gn_2xlarge), + ("im4gn.4xlarge", .im4gn_4xlarge), + ("im4gn.8xlarge", .im4gn_8xlarge), + ("im4gn.large", .im4gn_large), + ("im4gn.xlarge", .im4gn_xlarge), + ("inf1.24xlarge", .inf1_24xlarge), + ("inf1.2xlarge", .inf1_2xlarge), + ("inf1.6xlarge", .inf1_6xlarge), + ("inf1.xlarge", .inf1_xlarge), + ("inf2.24xlarge", .inf2_24xlarge), + ("inf2.48xlarge", .inf2_48xlarge), + ("inf2.8xlarge", .inf2_8xlarge), + ("inf2.xlarge", .inf2_xlarge), + ("is4gen.2xlarge", .is4gen_2xlarge), + ("is4gen.4xlarge", .is4gen_4xlarge), + ("is4gen.8xlarge", .is4gen_8xlarge), + ("is4gen.large", .is4gen_large), + ("is4gen.medium", .is4gen_medium), + ("is4gen.xlarge", .is4gen_xlarge), + ("m1.large", .m1_large), + ("m1.medium", .m1_medium), + ("m1.small", .m1_small), + ("m1.xlarge", .m1_xlarge), + ("m2.2xlarge", .m2_2xlarge), + ("m2.4xlarge", .m2_4xlarge), + ("m2.xlarge", .m2_xlarge), + ("m3.2xlarge", .m3_2xlarge), + ("m3.large", .m3_large), + ("m3.medium", .m3_medium), + ("m3.xlarge", .m3_xlarge), + ("m4.10xlarge", .m4_10xlarge), + ("m4.16xlarge", .m4_16xlarge), + ("m4.2xlarge", .m4_2xlarge), + ("m4.4xlarge", .m4_4xlarge), + ("m4.large", .m4_large), + ("m4.xlarge", .m4_xlarge), + ("m5.12xlarge", .m5_12xlarge), + ("m5.16xlarge", .m5_16xlarge), + ("m5.24xlarge", .m5_24xlarge), + ("m5.2xlarge", .m5_2xlarge), + ("m5.4xlarge", .m5_4xlarge), + ("m5.8xlarge", .m5_8xlarge), + ("m5.large", .m5_large), + ("m5.metal", .m5_metal), + ("m5.xlarge", .m5_xlarge), + ("m5a.12xlarge", .m5a_12xlarge), + ("m5a.16xlarge", .m5a_16xlarge), + ("m5a.24xlarge", .m5a_24xlarge), + ("m5a.2xlarge", .m5a_2xlarge), + ("m5a.4xlarge", .m5a_4xlarge), + ("m5a.8xlarge", .m5a_8xlarge), + ("m5a.large", .m5a_large), + ("m5a.xlarge", .m5a_xlarge), + ("m5ad.12xlarge", .m5ad_12xlarge), + ("m5ad.16xlarge", .m5ad_16xlarge), + ("m5ad.24xlarge", .m5ad_24xlarge), + ("m5ad.2xlarge", .m5ad_2xlarge), + ("m5ad.4xlarge", .m5ad_4xlarge), + ("m5ad.8xlarge", .m5ad_8xlarge), + ("m5ad.large", .m5ad_large), + ("m5ad.xlarge", .m5ad_xlarge), + ("m5d.12xlarge", .m5d_12xlarge), + ("m5d.16xlarge", .m5d_16xlarge), + ("m5d.24xlarge", .m5d_24xlarge), + ("m5d.2xlarge", .m5d_2xlarge), + ("m5d.4xlarge", .m5d_4xlarge), + ("m5d.8xlarge", .m5d_8xlarge), + ("m5d.large", .m5d_large), + ("m5d.metal", .m5d_metal), + ("m5d.xlarge", .m5d_xlarge), + ("m5dn.12xlarge", .m5dn_12xlarge), + ("m5dn.16xlarge", .m5dn_16xlarge), + ("m5dn.24xlarge", .m5dn_24xlarge), + ("m5dn.2xlarge", .m5dn_2xlarge), + ("m5dn.4xlarge", .m5dn_4xlarge), + ("m5dn.8xlarge", .m5dn_8xlarge), + ("m5dn.large", .m5dn_large), + ("m5dn.metal", .m5dn_metal), + ("m5dn.xlarge", .m5dn_xlarge), + ("m5n.12xlarge", .m5n_12xlarge), + ("m5n.16xlarge", .m5n_16xlarge), + ("m5n.24xlarge", .m5n_24xlarge), + ("m5n.2xlarge", .m5n_2xlarge), + ("m5n.4xlarge", .m5n_4xlarge), + ("m5n.8xlarge", .m5n_8xlarge), + ("m5n.large", .m5n_large), + ("m5n.metal", .m5n_metal), + ("m5n.xlarge", .m5n_xlarge), + ("m5zn.12xlarge", .m5zn_12xlarge), + ("m5zn.2xlarge", .m5zn_2xlarge), + ("m5zn.3xlarge", .m5zn_3xlarge), + ("m5zn.6xlarge", .m5zn_6xlarge), + ("m5zn.large", .m5zn_large), + ("m5zn.metal", .m5zn_metal), + ("m5zn.xlarge", .m5zn_xlarge), + ("m6a.12xlarge", .m6a_12xlarge), + ("m6a.16xlarge", .m6a_16xlarge), + ("m6a.24xlarge", .m6a_24xlarge), + ("m6a.2xlarge", .m6a_2xlarge), + ("m6a.32xlarge", .m6a_32xlarge), + ("m6a.48xlarge", .m6a_48xlarge), + ("m6a.4xlarge", .m6a_4xlarge), + ("m6a.8xlarge", .m6a_8xlarge), + ("m6a.large", .m6a_large), + ("m6a.metal", .m6a_metal), + ("m6a.xlarge", .m6a_xlarge), + ("m6g.12xlarge", .m6g_12xlarge), + ("m6g.16xlarge", .m6g_16xlarge), + ("m6g.2xlarge", .m6g_2xlarge), + ("m6g.4xlarge", .m6g_4xlarge), + ("m6g.8xlarge", .m6g_8xlarge), + ("m6g.large", .m6g_large), + ("m6g.medium", .m6g_medium), + ("m6g.metal", .m6g_metal), + ("m6g.xlarge", .m6g_xlarge), + ("m6gd.12xlarge", .m6gd_12xlarge), + ("m6gd.16xlarge", .m6gd_16xlarge), + ("m6gd.2xlarge", .m6gd_2xlarge), + ("m6gd.4xlarge", .m6gd_4xlarge), + ("m6gd.8xlarge", .m6gd_8xlarge), + ("m6gd.large", .m6gd_large), + ("m6gd.medium", .m6gd_medium), + ("m6gd.metal", .m6gd_metal), + ("m6gd.xlarge", .m6gd_xlarge), + ("m6i.12xlarge", .m6i_12xlarge), + ("m6i.16xlarge", .m6i_16xlarge), + ("m6i.24xlarge", .m6i_24xlarge), + ("m6i.2xlarge", .m6i_2xlarge), + ("m6i.32xlarge", .m6i_32xlarge), + ("m6i.4xlarge", .m6i_4xlarge), + ("m6i.8xlarge", .m6i_8xlarge), + ("m6i.large", .m6i_large), + ("m6i.metal", .m6i_metal), + ("m6i.xlarge", .m6i_xlarge), + ("m6id.12xlarge", .m6id_12xlarge), + ("m6id.16xlarge", .m6id_16xlarge), + ("m6id.24xlarge", .m6id_24xlarge), + ("m6id.2xlarge", .m6id_2xlarge), + ("m6id.32xlarge", .m6id_32xlarge), + ("m6id.4xlarge", .m6id_4xlarge), + ("m6id.8xlarge", .m6id_8xlarge), + ("m6id.large", .m6id_large), + ("m6id.metal", .m6id_metal), + ("m6id.xlarge", .m6id_xlarge), + ("m6idn.12xlarge", .m6idn_12xlarge), + ("m6idn.16xlarge", .m6idn_16xlarge), + ("m6idn.24xlarge", .m6idn_24xlarge), + ("m6idn.2xlarge", .m6idn_2xlarge), + ("m6idn.32xlarge", .m6idn_32xlarge), + ("m6idn.4xlarge", .m6idn_4xlarge), + ("m6idn.8xlarge", .m6idn_8xlarge), + ("m6idn.large", .m6idn_large), + ("m6idn.metal", .m6idn_metal), + ("m6idn.xlarge", .m6idn_xlarge), + ("m6in.12xlarge", .m6in_12xlarge), + ("m6in.16xlarge", .m6in_16xlarge), + ("m6in.24xlarge", .m6in_24xlarge), + ("m6in.2xlarge", .m6in_2xlarge), + ("m6in.32xlarge", .m6in_32xlarge), + ("m6in.4xlarge", .m6in_4xlarge), + ("m6in.8xlarge", .m6in_8xlarge), + ("m6in.large", .m6in_large), + ("m6in.metal", .m6in_metal), + ("m6in.xlarge", .m6in_xlarge), + ("m7a.12xlarge", .m7a_12xlarge), + ("m7a.16xlarge", .m7a_16xlarge), + ("m7a.24xlarge", .m7a_24xlarge), + ("m7a.2xlarge", .m7a_2xlarge), + ("m7a.32xlarge", .m7a_32xlarge), + ("m7a.48xlarge", .m7a_48xlarge), + ("m7a.4xlarge", .m7a_4xlarge), + ("m7a.8xlarge", .m7a_8xlarge), + ("m7a.large", .m7a_large), + ("m7a.medium", .m7a_medium), + ("m7a.metal-48xl", .m7a_metal_48xl), + ("m7a.xlarge", .m7a_xlarge), + ("m7g.12xlarge", .m7g_12xlarge), + ("m7g.16xlarge", .m7g_16xlarge), + ("m7g.2xlarge", .m7g_2xlarge), + ("m7g.4xlarge", .m7g_4xlarge), + ("m7g.8xlarge", .m7g_8xlarge), + ("m7g.large", .m7g_large), + ("m7g.medium", .m7g_medium), + ("m7g.metal", .m7g_metal), + ("m7g.xlarge", .m7g_xlarge), + ("m7gd.12xlarge", .m7gd_12xlarge), + ("m7gd.16xlarge", .m7gd_16xlarge), + ("m7gd.2xlarge", .m7gd_2xlarge), + ("m7gd.4xlarge", .m7gd_4xlarge), + ("m7gd.8xlarge", .m7gd_8xlarge), + ("m7gd.large", .m7gd_large), + ("m7gd.medium", .m7gd_medium), + ("m7gd.metal", .m7gd_metal), + ("m7gd.xlarge", .m7gd_xlarge), + ("m7i.12xlarge", .m7i_12xlarge), + ("m7i.16xlarge", .m7i_16xlarge), + ("m7i.24xlarge", .m7i_24xlarge), + ("m7i.2xlarge", .m7i_2xlarge), + ("m7i.48xlarge", .m7i_48xlarge), + ("m7i.4xlarge", .m7i_4xlarge), + ("m7i.8xlarge", .m7i_8xlarge), + ("m7i-flex.12xlarge", .m7i_flex_12xlarge), + ("m7i-flex.16xlarge", .m7i_flex_16xlarge), + ("m7i-flex.2xlarge", .m7i_flex_2xlarge), + ("m7i-flex.4xlarge", .m7i_flex_4xlarge), + ("m7i-flex.8xlarge", .m7i_flex_8xlarge), + ("m7i-flex.large", .m7i_flex_large), + ("m7i-flex.xlarge", .m7i_flex_xlarge), + ("m7i.large", .m7i_large), + ("m7i.metal-24xl", .m7i_metal_24xl), + ("m7i.metal-48xl", .m7i_metal_48xl), + ("m7i.xlarge", .m7i_xlarge), + ("m8a.12xlarge", .m8a_12xlarge), + ("m8a.16xlarge", .m8a_16xlarge), + ("m8a.24xlarge", .m8a_24xlarge), + ("m8a.2xlarge", .m8a_2xlarge), + ("m8a.48xlarge", .m8a_48xlarge), + ("m8a.4xlarge", .m8a_4xlarge), + ("m8a.8xlarge", .m8a_8xlarge), + ("m8a.large", .m8a_large), + ("m8a.medium", .m8a_medium), + ("m8a.metal-24xl", .m8a_metal_24xl), + ("m8a.metal-48xl", .m8a_metal_48xl), + ("m8a.xlarge", .m8a_xlarge), + ("m8azn.12xlarge", .m8azn_12xlarge), + ("m8azn.24xlarge", .m8azn_24xlarge), + ("m8azn.3xlarge", .m8azn_3xlarge), + ("m8azn.6xlarge", .m8azn_6xlarge), + ("m8azn.large", .m8azn_large), + ("m8azn.medium", .m8azn_medium), + ("m8azn.metal-12xl", .m8azn_metal_12xl), + ("m8azn.metal-24xl", .m8azn_metal_24xl), + ("m8azn.xlarge", .m8azn_xlarge), + ("m8g.12xlarge", .m8g_12xlarge), + ("m8g.16xlarge", .m8g_16xlarge), + ("m8g.24xlarge", .m8g_24xlarge), + ("m8g.2xlarge", .m8g_2xlarge), + ("m8g.48xlarge", .m8g_48xlarge), + ("m8g.4xlarge", .m8g_4xlarge), + ("m8g.8xlarge", .m8g_8xlarge), + ("m8g.large", .m8g_large), + ("m8g.medium", .m8g_medium), + ("m8g.metal-24xl", .m8g_metal_24xl), + ("m8g.metal-48xl", .m8g_metal_48xl), + ("m8g.xlarge", .m8g_xlarge), + ("m8gb.12xlarge", .m8gb_12xlarge), + ("m8gb.16xlarge", .m8gb_16xlarge), + ("m8gb.24xlarge", .m8gb_24xlarge), + ("m8gb.2xlarge", .m8gb_2xlarge), + ("m8gb.48xlarge", .m8gb_48xlarge), + ("m8gb.4xlarge", .m8gb_4xlarge), + ("m8gb.8xlarge", .m8gb_8xlarge), + ("m8gb.large", .m8gb_large), + ("m8gb.medium", .m8gb_medium), + ("m8gb.metal-24xl", .m8gb_metal_24xl), + ("m8gb.metal-48xl", .m8gb_metal_48xl), + ("m8gb.xlarge", .m8gb_xlarge), + ("m8gd.12xlarge", .m8gd_12xlarge), + ("m8gd.16xlarge", .m8gd_16xlarge), + ("m8gd.24xlarge", .m8gd_24xlarge), + ("m8gd.2xlarge", .m8gd_2xlarge), + ("m8gd.48xlarge", .m8gd_48xlarge), + ("m8gd.4xlarge", .m8gd_4xlarge), + ("m8gd.8xlarge", .m8gd_8xlarge), + ("m8gd.large", .m8gd_large), + ("m8gd.medium", .m8gd_medium), + ("m8gd.metal-24xl", .m8gd_metal_24xl), + ("m8gd.metal-48xl", .m8gd_metal_48xl), + ("m8gd.xlarge", .m8gd_xlarge), + ("m8gn.12xlarge", .m8gn_12xlarge), + ("m8gn.16xlarge", .m8gn_16xlarge), + ("m8gn.24xlarge", .m8gn_24xlarge), + ("m8gn.2xlarge", .m8gn_2xlarge), + ("m8gn.48xlarge", .m8gn_48xlarge), + ("m8gn.4xlarge", .m8gn_4xlarge), + ("m8gn.8xlarge", .m8gn_8xlarge), + ("m8gn.large", .m8gn_large), + ("m8gn.medium", .m8gn_medium), + ("m8gn.metal-24xl", .m8gn_metal_24xl), + ("m8gn.metal-48xl", .m8gn_metal_48xl), + ("m8gn.xlarge", .m8gn_xlarge), + ("m8i.12xlarge", .m8i_12xlarge), + ("m8i.16xlarge", .m8i_16xlarge), + ("m8i.24xlarge", .m8i_24xlarge), + ("m8i.2xlarge", .m8i_2xlarge), + ("m8i.32xlarge", .m8i_32xlarge), + ("m8i.48xlarge", .m8i_48xlarge), + ("m8i.4xlarge", .m8i_4xlarge), + ("m8i.8xlarge", .m8i_8xlarge), + ("m8i.96xlarge", .m8i_96xlarge), + ("m8i-flex.12xlarge", .m8i_flex_12xlarge), + ("m8i-flex.16xlarge", .m8i_flex_16xlarge), + ("m8i-flex.2xlarge", .m8i_flex_2xlarge), + ("m8i-flex.4xlarge", .m8i_flex_4xlarge), + ("m8i-flex.8xlarge", .m8i_flex_8xlarge), + ("m8i-flex.large", .m8i_flex_large), + ("m8i-flex.xlarge", .m8i_flex_xlarge), + ("m8i.large", .m8i_large), + ("m8i.metal-48xl", .m8i_metal_48xl), + ("m8i.metal-96xl", .m8i_metal_96xl), + ("m8i.xlarge", .m8i_xlarge), + ("m8ib.12xlarge", .m8ib_12xlarge), + ("m8ib.16xlarge", .m8ib_16xlarge), + ("m8ib.24xlarge", .m8ib_24xlarge), + ("m8ib.2xlarge", .m8ib_2xlarge), + ("m8ib.32xlarge", .m8ib_32xlarge), + ("m8ib.48xlarge", .m8ib_48xlarge), + ("m8ib.4xlarge", .m8ib_4xlarge), + ("m8ib.8xlarge", .m8ib_8xlarge), + ("m8ib.96xlarge", .m8ib_96xlarge), + ("m8ib.large", .m8ib_large), + ("m8ib.metal-48xl", .m8ib_metal_48xl), + ("m8ib.metal-96xl", .m8ib_metal_96xl), + ("m8ib.xlarge", .m8ib_xlarge), + ("m8id.12xlarge", .m8id_12xlarge), + ("m8id.16xlarge", .m8id_16xlarge), + ("m8id.24xlarge", .m8id_24xlarge), + ("m8id.2xlarge", .m8id_2xlarge), + ("m8id.32xlarge", .m8id_32xlarge), + ("m8id.48xlarge", .m8id_48xlarge), + ("m8id.4xlarge", .m8id_4xlarge), + ("m8id.8xlarge", .m8id_8xlarge), + ("m8id.96xlarge", .m8id_96xlarge), + ("m8id.large", .m8id_large), + ("m8id.metal-48xl", .m8id_metal_48xl), + ("m8id.metal-96xl", .m8id_metal_96xl), + ("m8id.xlarge", .m8id_xlarge), + ("m8idb.12xlarge", .m8idb_12xlarge), + ("m8idb.16xlarge", .m8idb_16xlarge), + ("m8idb.24xlarge", .m8idb_24xlarge), + ("m8idb.2xlarge", .m8idb_2xlarge), + ("m8idb.32xlarge", .m8idb_32xlarge), + ("m8idb.48xlarge", .m8idb_48xlarge), + ("m8idb.4xlarge", .m8idb_4xlarge), + ("m8idb.8xlarge", .m8idb_8xlarge), + ("m8idb.96xlarge", .m8idb_96xlarge), + ("m8idb.large", .m8idb_large), + ("m8idb.metal-48xl", .m8idb_metal_48xl), + ("m8idb.metal-96xl", .m8idb_metal_96xl), + ("m8idb.xlarge", .m8idb_xlarge), + ("m8idn.12xlarge", .m8idn_12xlarge), + ("m8idn.16xlarge", .m8idn_16xlarge), + ("m8idn.24xlarge", .m8idn_24xlarge), + ("m8idn.2xlarge", .m8idn_2xlarge), + ("m8idn.32xlarge", .m8idn_32xlarge), + ("m8idn.48xlarge", .m8idn_48xlarge), + ("m8idn.4xlarge", .m8idn_4xlarge), + ("m8idn.8xlarge", .m8idn_8xlarge), + ("m8idn.96xlarge", .m8idn_96xlarge), + ("m8idn.large", .m8idn_large), + ("m8idn.metal-48xl", .m8idn_metal_48xl), + ("m8idn.metal-96xl", .m8idn_metal_96xl), + ("m8idn.xlarge", .m8idn_xlarge), + ("m8in.12xlarge", .m8in_12xlarge), + ("m8in.16xlarge", .m8in_16xlarge), + ("m8in.24xlarge", .m8in_24xlarge), + ("m8in.2xlarge", .m8in_2xlarge), + ("m8in.32xlarge", .m8in_32xlarge), + ("m8in.48xlarge", .m8in_48xlarge), + ("m8in.4xlarge", .m8in_4xlarge), + ("m8in.8xlarge", .m8in_8xlarge), + ("m8in.96xlarge", .m8in_96xlarge), + ("m8in.large", .m8in_large), + ("m8in.metal-48xl", .m8in_metal_48xl), + ("m8in.metal-96xl", .m8in_metal_96xl), + ("m8in.xlarge", .m8in_xlarge), + ("m8ine.12xlarge", .m8ine_12xlarge), + ("m8ine.2xlarge", .m8ine_2xlarge), + ("m8ine.4xlarge", .m8ine_4xlarge), + ("m8ine.8xlarge", .m8ine_8xlarge), + ("m8ine.large", .m8ine_large), + ("m8ine.xlarge", .m8ine_xlarge), + ("m9g.12xlarge", .m9g_12xlarge), + ("m9g.16xlarge", .m9g_16xlarge), + ("m9g.24xlarge", .m9g_24xlarge), + ("m9g.2xlarge", .m9g_2xlarge), + ("m9g.48xlarge", .m9g_48xlarge), + ("m9g.4xlarge", .m9g_4xlarge), + ("m9g.8xlarge", .m9g_8xlarge), + ("m9g.large", .m9g_large), + ("m9g.medium", .m9g_medium), + ("m9g.metal-24xl", .m9g_metal_24xl), + ("m9g.metal-48xl", .m9g_metal_48xl), + ("m9g.xlarge", .m9g_xlarge), + ("m9gd.12xlarge", .m9gd_12xlarge), + ("m9gd.16xlarge", .m9gd_16xlarge), + ("m9gd.24xlarge", .m9gd_24xlarge), + ("m9gd.2xlarge", .m9gd_2xlarge), + ("m9gd.48xlarge", .m9gd_48xlarge), + ("m9gd.4xlarge", .m9gd_4xlarge), + ("m9gd.8xlarge", .m9gd_8xlarge), + ("m9gd.large", .m9gd_large), + ("m9gd.medium", .m9gd_medium), + ("m9gd.metal-24xl", .m9gd_metal_24xl), + ("m9gd.metal-48xl", .m9gd_metal_48xl), + ("m9gd.xlarge", .m9gd_xlarge), + ("mac1.metal", .mac1_metal), + ("mac2-m1ultra.metal", .mac2_m1ultra_metal), + ("mac2-m2.metal", .mac2_m2_metal), + ("mac2-m2pro.metal", .mac2_m2pro_metal), + ("mac2.metal", .mac2_metal), + ("mac-m3ultra.metal", .mac_m3ultra_metal), + ("mac-m4.metal", .mac_m4_metal), + ("mac-m4max.metal", .mac_m4max_metal), + ("mac-m4pro.metal", .mac_m4pro_metal), + ("p2.16xlarge", .p2_16xlarge), + ("p2.8xlarge", .p2_8xlarge), + ("p2.xlarge", .p2_xlarge), + ("p3.16xlarge", .p3_16xlarge), + ("p3.2xlarge", .p3_2xlarge), + ("p3.8xlarge", .p3_8xlarge), + ("p3dn.24xlarge", .p3dn_24xlarge), + ("p4d.24xlarge", .p4d_24xlarge), + ("p4de.24xlarge", .p4de_24xlarge), + ("p5.48xlarge", .p5_48xlarge), + ("p5.4xlarge", .p5_4xlarge), + ("p5e.48xlarge", .p5e_48xlarge), + ("p5en.48xlarge", .p5en_48xlarge), + ("p6-b200.48xlarge", .p6_b200_48xlarge), + ("p6-b300.48xlarge", .p6_b300_48xlarge), + ("p6e-gb200.36xlarge", .p6e_gb200_36xlarge), + ("r3.2xlarge", .r3_2xlarge), + ("r3.4xlarge", .r3_4xlarge), + ("r3.8xlarge", .r3_8xlarge), + ("r3.large", .r3_large), + ("r3.xlarge", .r3_xlarge), + ("r4.16xlarge", .r4_16xlarge), + ("r4.2xlarge", .r4_2xlarge), + ("r4.4xlarge", .r4_4xlarge), + ("r4.8xlarge", .r4_8xlarge), + ("r4.large", .r4_large), + ("r4.xlarge", .r4_xlarge), + ("r5.12xlarge", .r5_12xlarge), + ("r5.16xlarge", .r5_16xlarge), + ("r5.24xlarge", .r5_24xlarge), + ("r5.2xlarge", .r5_2xlarge), + ("r5.4xlarge", .r5_4xlarge), + ("r5.8xlarge", .r5_8xlarge), + ("r5.large", .r5_large), + ("r5.metal", .r5_metal), + ("r5.xlarge", .r5_xlarge), + ("r5a.12xlarge", .r5a_12xlarge), + ("r5a.16xlarge", .r5a_16xlarge), + ("r5a.24xlarge", .r5a_24xlarge), + ("r5a.2xlarge", .r5a_2xlarge), + ("r5a.4xlarge", .r5a_4xlarge), + ("r5a.8xlarge", .r5a_8xlarge), + ("r5a.large", .r5a_large), + ("r5a.xlarge", .r5a_xlarge), + ("r5ad.12xlarge", .r5ad_12xlarge), + ("r5ad.16xlarge", .r5ad_16xlarge), + ("r5ad.24xlarge", .r5ad_24xlarge), + ("r5ad.2xlarge", .r5ad_2xlarge), + ("r5ad.4xlarge", .r5ad_4xlarge), + ("r5ad.8xlarge", .r5ad_8xlarge), + ("r5ad.large", .r5ad_large), + ("r5ad.xlarge", .r5ad_xlarge), + ("r5b.12xlarge", .r5b_12xlarge), + ("r5b.16xlarge", .r5b_16xlarge), + ("r5b.24xlarge", .r5b_24xlarge), + ("r5b.2xlarge", .r5b_2xlarge), + ("r5b.4xlarge", .r5b_4xlarge), + ("r5b.8xlarge", .r5b_8xlarge), + ("r5b.large", .r5b_large), + ("r5b.metal", .r5b_metal), + ("r5b.xlarge", .r5b_xlarge), + ("r5d.12xlarge", .r5d_12xlarge), + ("r5d.16xlarge", .r5d_16xlarge), + ("r5d.24xlarge", .r5d_24xlarge), + ("r5d.2xlarge", .r5d_2xlarge), + ("r5d.4xlarge", .r5d_4xlarge), + ("r5d.8xlarge", .r5d_8xlarge), + ("r5d.large", .r5d_large), + ("r5d.metal", .r5d_metal), + ("r5d.xlarge", .r5d_xlarge), + ("r5dn.12xlarge", .r5dn_12xlarge), + ("r5dn.16xlarge", .r5dn_16xlarge), + ("r5dn.24xlarge", .r5dn_24xlarge), + ("r5dn.2xlarge", .r5dn_2xlarge), + ("r5dn.4xlarge", .r5dn_4xlarge), + ("r5dn.8xlarge", .r5dn_8xlarge), + ("r5dn.large", .r5dn_large), + ("r5dn.metal", .r5dn_metal), + ("r5dn.xlarge", .r5dn_xlarge), + ("r5n.12xlarge", .r5n_12xlarge), + ("r5n.16xlarge", .r5n_16xlarge), + ("r5n.24xlarge", .r5n_24xlarge), + ("r5n.2xlarge", .r5n_2xlarge), + ("r5n.4xlarge", .r5n_4xlarge), + ("r5n.8xlarge", .r5n_8xlarge), + ("r5n.large", .r5n_large), + ("r5n.metal", .r5n_metal), + ("r5n.xlarge", .r5n_xlarge), + ("r6a.12xlarge", .r6a_12xlarge), + ("r6a.16xlarge", .r6a_16xlarge), + ("r6a.24xlarge", .r6a_24xlarge), + ("r6a.2xlarge", .r6a_2xlarge), + ("r6a.32xlarge", .r6a_32xlarge), + ("r6a.48xlarge", .r6a_48xlarge), + ("r6a.4xlarge", .r6a_4xlarge), + ("r6a.8xlarge", .r6a_8xlarge), + ("r6a.large", .r6a_large), + ("r6a.metal", .r6a_metal), + ("r6a.xlarge", .r6a_xlarge), + ("r6g.12xlarge", .r6g_12xlarge), + ("r6g.16xlarge", .r6g_16xlarge), + ("r6g.2xlarge", .r6g_2xlarge), + ("r6g.4xlarge", .r6g_4xlarge), + ("r6g.8xlarge", .r6g_8xlarge), + ("r6g.large", .r6g_large), + ("r6g.medium", .r6g_medium), + ("r6g.metal", .r6g_metal), + ("r6g.xlarge", .r6g_xlarge), + ("r6gd.12xlarge", .r6gd_12xlarge), + ("r6gd.16xlarge", .r6gd_16xlarge), + ("r6gd.2xlarge", .r6gd_2xlarge), + ("r6gd.4xlarge", .r6gd_4xlarge), + ("r6gd.8xlarge", .r6gd_8xlarge), + ("r6gd.large", .r6gd_large), + ("r6gd.medium", .r6gd_medium), + ("r6gd.metal", .r6gd_metal), + ("r6gd.xlarge", .r6gd_xlarge), + ("r6i.12xlarge", .r6i_12xlarge), + ("r6i.16xlarge", .r6i_16xlarge), + ("r6i.24xlarge", .r6i_24xlarge), + ("r6i.2xlarge", .r6i_2xlarge), + ("r6i.32xlarge", .r6i_32xlarge), + ("r6i.4xlarge", .r6i_4xlarge), + ("r6i.8xlarge", .r6i_8xlarge), + ("r6i.large", .r6i_large), + ("r6i.metal", .r6i_metal), + ("r6i.xlarge", .r6i_xlarge), + ("r6id.12xlarge", .r6id_12xlarge), + ("r6id.16xlarge", .r6id_16xlarge), + ("r6id.24xlarge", .r6id_24xlarge), + ("r6id.2xlarge", .r6id_2xlarge), + ("r6id.32xlarge", .r6id_32xlarge), + ("r6id.4xlarge", .r6id_4xlarge), + ("r6id.8xlarge", .r6id_8xlarge), + ("r6id.large", .r6id_large), + ("r6id.metal", .r6id_metal), + ("r6id.xlarge", .r6id_xlarge), + ("r6idn.12xlarge", .r6idn_12xlarge), + ("r6idn.16xlarge", .r6idn_16xlarge), + ("r6idn.24xlarge", .r6idn_24xlarge), + ("r6idn.2xlarge", .r6idn_2xlarge), + ("r6idn.32xlarge", .r6idn_32xlarge), + ("r6idn.4xlarge", .r6idn_4xlarge), + ("r6idn.8xlarge", .r6idn_8xlarge), + ("r6idn.large", .r6idn_large), + ("r6idn.metal", .r6idn_metal), + ("r6idn.xlarge", .r6idn_xlarge), + ("r6in.12xlarge", .r6in_12xlarge), + ("r6in.16xlarge", .r6in_16xlarge), + ("r6in.24xlarge", .r6in_24xlarge), + ("r6in.2xlarge", .r6in_2xlarge), + ("r6in.32xlarge", .r6in_32xlarge), + ("r6in.4xlarge", .r6in_4xlarge), + ("r6in.8xlarge", .r6in_8xlarge), + ("r6in.large", .r6in_large), + ("r6in.metal", .r6in_metal), + ("r6in.xlarge", .r6in_xlarge), + ("r7a.12xlarge", .r7a_12xlarge), + ("r7a.16xlarge", .r7a_16xlarge), + ("r7a.24xlarge", .r7a_24xlarge), + ("r7a.2xlarge", .r7a_2xlarge), + ("r7a.32xlarge", .r7a_32xlarge), + ("r7a.48xlarge", .r7a_48xlarge), + ("r7a.4xlarge", .r7a_4xlarge), + ("r7a.8xlarge", .r7a_8xlarge), + ("r7a.large", .r7a_large), + ("r7a.medium", .r7a_medium), + ("r7a.metal-48xl", .r7a_metal_48xl), + ("r7a.xlarge", .r7a_xlarge), + ("r7g.12xlarge", .r7g_12xlarge), + ("r7g.16xlarge", .r7g_16xlarge), + ("r7g.2xlarge", .r7g_2xlarge), + ("r7g.4xlarge", .r7g_4xlarge), + ("r7g.8xlarge", .r7g_8xlarge), + ("r7g.large", .r7g_large), + ("r7g.medium", .r7g_medium), + ("r7g.metal", .r7g_metal), + ("r7g.xlarge", .r7g_xlarge), + ("r7gd.12xlarge", .r7gd_12xlarge), + ("r7gd.16xlarge", .r7gd_16xlarge), + ("r7gd.2xlarge", .r7gd_2xlarge), + ("r7gd.4xlarge", .r7gd_4xlarge), + ("r7gd.8xlarge", .r7gd_8xlarge), + ("r7gd.large", .r7gd_large), + ("r7gd.medium", .r7gd_medium), + ("r7gd.metal", .r7gd_metal), + ("r7gd.xlarge", .r7gd_xlarge), + ("r7i.12xlarge", .r7i_12xlarge), + ("r7i.16xlarge", .r7i_16xlarge), + ("r7i.24xlarge", .r7i_24xlarge), + ("r7i.2xlarge", .r7i_2xlarge), + ("r7i.48xlarge", .r7i_48xlarge), + ("r7i.4xlarge", .r7i_4xlarge), + ("r7i.8xlarge", .r7i_8xlarge), + ("r7i.large", .r7i_large), + ("r7i.metal-24xl", .r7i_metal_24xl), + ("r7i.metal-48xl", .r7i_metal_48xl), + ("r7i.xlarge", .r7i_xlarge), + ("r7iz.12xlarge", .r7iz_12xlarge), + ("r7iz.16xlarge", .r7iz_16xlarge), + ("r7iz.2xlarge", .r7iz_2xlarge), + ("r7iz.32xlarge", .r7iz_32xlarge), + ("r7iz.4xlarge", .r7iz_4xlarge), + ("r7iz.8xlarge", .r7iz_8xlarge), + ("r7iz.large", .r7iz_large), + ("r7iz.metal-16xl", .r7iz_metal_16xl), + ("r7iz.metal-32xl", .r7iz_metal_32xl), + ("r7iz.xlarge", .r7iz_xlarge), + ("r8a.12xlarge", .r8a_12xlarge), + ("r8a.16xlarge", .r8a_16xlarge), + ("r8a.24xlarge", .r8a_24xlarge), + ("r8a.2xlarge", .r8a_2xlarge), + ("r8a.48xlarge", .r8a_48xlarge), + ("r8a.4xlarge", .r8a_4xlarge), + ("r8a.8xlarge", .r8a_8xlarge), + ("r8a.large", .r8a_large), + ("r8a.medium", .r8a_medium), + ("r8a.metal-24xl", .r8a_metal_24xl), + ("r8a.metal-48xl", .r8a_metal_48xl), + ("r8a.xlarge", .r8a_xlarge), + ("r8g.12xlarge", .r8g_12xlarge), + ("r8g.16xlarge", .r8g_16xlarge), + ("r8g.24xlarge", .r8g_24xlarge), + ("r8g.2xlarge", .r8g_2xlarge), + ("r8g.48xlarge", .r8g_48xlarge), + ("r8g.4xlarge", .r8g_4xlarge), + ("r8g.8xlarge", .r8g_8xlarge), + ("r8g.large", .r8g_large), + ("r8g.medium", .r8g_medium), + ("r8g.metal-24xl", .r8g_metal_24xl), + ("r8g.metal-48xl", .r8g_metal_48xl), + ("r8g.xlarge", .r8g_xlarge), + ("r8gb.12xlarge", .r8gb_12xlarge), + ("r8gb.16xlarge", .r8gb_16xlarge), + ("r8gb.24xlarge", .r8gb_24xlarge), + ("r8gb.2xlarge", .r8gb_2xlarge), + ("r8gb.48xlarge", .r8gb_48xlarge), + ("r8gb.4xlarge", .r8gb_4xlarge), + ("r8gb.8xlarge", .r8gb_8xlarge), + ("r8gb.large", .r8gb_large), + ("r8gb.medium", .r8gb_medium), + ("r8gb.metal-24xl", .r8gb_metal_24xl), + ("r8gb.metal-48xl", .r8gb_metal_48xl), + ("r8gb.xlarge", .r8gb_xlarge), + ("r8gd.12xlarge", .r8gd_12xlarge), + ("r8gd.16xlarge", .r8gd_16xlarge), + ("r8gd.24xlarge", .r8gd_24xlarge), + ("r8gd.2xlarge", .r8gd_2xlarge), + ("r8gd.48xlarge", .r8gd_48xlarge), + ("r8gd.4xlarge", .r8gd_4xlarge), + ("r8gd.8xlarge", .r8gd_8xlarge), + ("r8gd.large", .r8gd_large), + ("r8gd.medium", .r8gd_medium), + ("r8gd.metal-24xl", .r8gd_metal_24xl), + ("r8gd.metal-48xl", .r8gd_metal_48xl), + ("r8gd.xlarge", .r8gd_xlarge), + ("r8gn.12xlarge", .r8gn_12xlarge), + ("r8gn.16xlarge", .r8gn_16xlarge), + ("r8gn.24xlarge", .r8gn_24xlarge), + ("r8gn.2xlarge", .r8gn_2xlarge), + ("r8gn.48xlarge", .r8gn_48xlarge), + ("r8gn.4xlarge", .r8gn_4xlarge), + ("r8gn.8xlarge", .r8gn_8xlarge), + ("r8gn.large", .r8gn_large), + ("r8gn.medium", .r8gn_medium), + ("r8gn.metal-24xl", .r8gn_metal_24xl), + ("r8gn.metal-48xl", .r8gn_metal_48xl), + ("r8gn.xlarge", .r8gn_xlarge), + ("r8i.12xlarge", .r8i_12xlarge), + ("r8i.16xlarge", .r8i_16xlarge), + ("r8i.24xlarge", .r8i_24xlarge), + ("r8i.2xlarge", .r8i_2xlarge), + ("r8i.32xlarge", .r8i_32xlarge), + ("r8i.48xlarge", .r8i_48xlarge), + ("r8i.4xlarge", .r8i_4xlarge), + ("r8i.8xlarge", .r8i_8xlarge), + ("r8i.96xlarge", .r8i_96xlarge), + ("r8i-flex.12xlarge", .r8i_flex_12xlarge), + ("r8i-flex.16xlarge", .r8i_flex_16xlarge), + ("r8i-flex.2xlarge", .r8i_flex_2xlarge), + ("r8i-flex.4xlarge", .r8i_flex_4xlarge), + ("r8i-flex.8xlarge", .r8i_flex_8xlarge), + ("r8i-flex.large", .r8i_flex_large), + ("r8i-flex.xlarge", .r8i_flex_xlarge), + ("r8i.large", .r8i_large), + ("r8i.metal-48xl", .r8i_metal_48xl), + ("r8i.metal-96xl", .r8i_metal_96xl), + ("r8i.xlarge", .r8i_xlarge), + ("r8ib.12xlarge", .r8ib_12xlarge), + ("r8ib.16xlarge", .r8ib_16xlarge), + ("r8ib.24xlarge", .r8ib_24xlarge), + ("r8ib.2xlarge", .r8ib_2xlarge), + ("r8ib.32xlarge", .r8ib_32xlarge), + ("r8ib.48xlarge", .r8ib_48xlarge), + ("r8ib.4xlarge", .r8ib_4xlarge), + ("r8ib.8xlarge", .r8ib_8xlarge), + ("r8ib.96xlarge", .r8ib_96xlarge), + ("r8ib.large", .r8ib_large), + ("r8ib.metal-48xl", .r8ib_metal_48xl), + ("r8ib.metal-96xl", .r8ib_metal_96xl), + ("r8ib.xlarge", .r8ib_xlarge), + ("r8id.12xlarge", .r8id_12xlarge), + ("r8id.16xlarge", .r8id_16xlarge), + ("r8id.24xlarge", .r8id_24xlarge), + ("r8id.2xlarge", .r8id_2xlarge), + ("r8id.32xlarge", .r8id_32xlarge), + ("r8id.48xlarge", .r8id_48xlarge), + ("r8id.4xlarge", .r8id_4xlarge), + ("r8id.8xlarge", .r8id_8xlarge), + ("r8id.96xlarge", .r8id_96xlarge), + ("r8id.large", .r8id_large), + ("r8id.metal-48xl", .r8id_metal_48xl), + ("r8id.metal-96xl", .r8id_metal_96xl), + ("r8id.xlarge", .r8id_xlarge), + ("r8idb.12xlarge", .r8idb_12xlarge), + ("r8idb.16xlarge", .r8idb_16xlarge), + ("r8idb.24xlarge", .r8idb_24xlarge), + ("r8idb.2xlarge", .r8idb_2xlarge), + ("r8idb.32xlarge", .r8idb_32xlarge), + ("r8idb.48xlarge", .r8idb_48xlarge), + ("r8idb.4xlarge", .r8idb_4xlarge), + ("r8idb.8xlarge", .r8idb_8xlarge), + ("r8idb.96xlarge", .r8idb_96xlarge), + ("r8idb.large", .r8idb_large), + ("r8idb.metal-48xl", .r8idb_metal_48xl), + ("r8idb.metal-96xl", .r8idb_metal_96xl), + ("r8idb.xlarge", .r8idb_xlarge), + ("r8idn.12xlarge", .r8idn_12xlarge), + ("r8idn.16xlarge", .r8idn_16xlarge), + ("r8idn.24xlarge", .r8idn_24xlarge), + ("r8idn.2xlarge", .r8idn_2xlarge), + ("r8idn.32xlarge", .r8idn_32xlarge), + ("r8idn.48xlarge", .r8idn_48xlarge), + ("r8idn.4xlarge", .r8idn_4xlarge), + ("r8idn.8xlarge", .r8idn_8xlarge), + ("r8idn.96xlarge", .r8idn_96xlarge), + ("r8idn.large", .r8idn_large), + ("r8idn.metal-48xl", .r8idn_metal_48xl), + ("r8idn.metal-96xl", .r8idn_metal_96xl), + ("r8idn.xlarge", .r8idn_xlarge), + ("r8in.12xlarge", .r8in_12xlarge), + ("r8in.16xlarge", .r8in_16xlarge), + ("r8in.24xlarge", .r8in_24xlarge), + ("r8in.2xlarge", .r8in_2xlarge), + ("r8in.32xlarge", .r8in_32xlarge), + ("r8in.48xlarge", .r8in_48xlarge), + ("r8in.4xlarge", .r8in_4xlarge), + ("r8in.8xlarge", .r8in_8xlarge), + ("r8in.96xlarge", .r8in_96xlarge), + ("r8in.large", .r8in_large), + ("r8in.metal-48xl", .r8in_metal_48xl), + ("r8in.metal-96xl", .r8in_metal_96xl), + ("r8in.xlarge", .r8in_xlarge), + ("r9g.12xlarge", .r9g_12xlarge), + ("r9g.16xlarge", .r9g_16xlarge), + ("r9g.24xlarge", .r9g_24xlarge), + ("r9g.2xlarge", .r9g_2xlarge), + ("r9g.48xlarge", .r9g_48xlarge), + ("r9g.4xlarge", .r9g_4xlarge), + ("r9g.8xlarge", .r9g_8xlarge), + ("r9g.large", .r9g_large), + ("r9g.medium", .r9g_medium), + ("r9g.metal-48xl", .r9g_metal_48xl), + ("r9g.xlarge", .r9g_xlarge), + ("r9gd.12xlarge", .r9gd_12xlarge), + ("r9gd.16xlarge", .r9gd_16xlarge), + ("r9gd.24xlarge", .r9gd_24xlarge), + ("r9gd.2xlarge", .r9gd_2xlarge), + ("r9gd.48xlarge", .r9gd_48xlarge), + ("r9gd.4xlarge", .r9gd_4xlarge), + ("r9gd.8xlarge", .r9gd_8xlarge), + ("r9gd.large", .r9gd_large), + ("r9gd.medium", .r9gd_medium), + ("r9gd.metal-48xl", .r9gd_metal_48xl), + ("r9gd.xlarge", .r9gd_xlarge), + ("t1.micro", .t1_micro), + ("t2.2xlarge", .t2_2xlarge), + ("t2.large", .t2_large), + ("t2.medium", .t2_medium), + ("t2.micro", .t2_micro), + ("t2.nano", .t2_nano), + ("t2.small", .t2_small), + ("t2.xlarge", .t2_xlarge), + ("t3.2xlarge", .t3_2xlarge), + ("t3.large", .t3_large), + ("t3.medium", .t3_medium), + ("t3.micro", .t3_micro), + ("t3.nano", .t3_nano), + ("t3.small", .t3_small), + ("t3.xlarge", .t3_xlarge), + ("t3a.2xlarge", .t3a_2xlarge), + ("t3a.large", .t3a_large), + ("t3a.medium", .t3a_medium), + ("t3a.micro", .t3a_micro), + ("t3a.nano", .t3a_nano), + ("t3a.small", .t3a_small), + ("t3a.xlarge", .t3a_xlarge), + ("t4g.2xlarge", .t4g_2xlarge), + ("t4g.large", .t4g_large), + ("t4g.medium", .t4g_medium), + ("t4g.micro", .t4g_micro), + ("t4g.nano", .t4g_nano), + ("t4g.small", .t4g_small), + ("t4g.xlarge", .t4g_xlarge), + ("t8i.medium", .t8i_medium), + ("t8i.micro", .t8i_micro), + ("t8i.nano", .t8i_nano), + ("t8i.small", .t8i_small), + ("trn1.2xlarge", .trn1_2xlarge), + ("trn1.32xlarge", .trn1_32xlarge), + ("trn1n.32xlarge", .trn1n_32xlarge), + ("trn2.3xlarge", .trn2_3xlarge), + ("trn2.48xlarge", .trn2_48xlarge), + ("trn2u.48xlarge", .trn2u_48xlarge), + ("u7i-12tb.224xlarge", .u7i_12tb_224xlarge), + ("u7i-6tb.112xlarge", .u7i_6tb_112xlarge), + ("u7i-8tb.112xlarge", .u7i_8tb_112xlarge), + ("u7ib-12tb.224xlarge", .u7ib_12tb_224xlarge), + ("u7in-16tb.224xlarge", .u7in_16tb_224xlarge), + ("u7in-24tb.224xlarge", .u7in_24tb_224xlarge), + ("u7in-32tb.224xlarge", .u7in_32tb_224xlarge), + ("u7inh-32tb.480xlarge", .u7inh_32tb_480xlarge), + ("u-12tb1.112xlarge", .u_12tb1_112xlarge), + ("u-12tb1.metal", .u_12tb1_metal), + ("u-18tb1.112xlarge", .u_18tb1_112xlarge), + ("u-18tb1.metal", .u_18tb1_metal), + ("u-24tb1.112xlarge", .u_24tb1_112xlarge), + ("u-24tb1.metal", .u_24tb1_metal), + ("u-3tb1.56xlarge", .u_3tb1_56xlarge), + ("u-6tb1.112xlarge", .u_6tb1_112xlarge), + ("u-6tb1.56xlarge", .u_6tb1_56xlarge), + ("u-6tb1.metal", .u_6tb1_metal), + ("u-9tb1.112xlarge", .u_9tb1_112xlarge), + ("u-9tb1.metal", .u_9tb1_metal), + ("vt1.24xlarge", .vt1_24xlarge), + ("vt1.3xlarge", .vt1_3xlarge), + ("vt1.6xlarge", .vt1_6xlarge), + ("x1.16xlarge", .x1_16xlarge), + ("x1.32xlarge", .x1_32xlarge), + ("x1e.16xlarge", .x1e_16xlarge), + ("x1e.2xlarge", .x1e_2xlarge), + ("x1e.32xlarge", .x1e_32xlarge), + ("x1e.4xlarge", .x1e_4xlarge), + ("x1e.8xlarge", .x1e_8xlarge), + ("x1e.xlarge", .x1e_xlarge), + ("x2gd.12xlarge", .x2gd_12xlarge), + ("x2gd.16xlarge", .x2gd_16xlarge), + ("x2gd.2xlarge", .x2gd_2xlarge), + ("x2gd.4xlarge", .x2gd_4xlarge), + ("x2gd.8xlarge", .x2gd_8xlarge), + ("x2gd.large", .x2gd_large), + ("x2gd.medium", .x2gd_medium), + ("x2gd.metal", .x2gd_metal), + ("x2gd.xlarge", .x2gd_xlarge), + ("x2idn.16xlarge", .x2idn_16xlarge), + ("x2idn.24xlarge", .x2idn_24xlarge), + ("x2idn.32xlarge", .x2idn_32xlarge), + ("x2idn.metal", .x2idn_metal), + ("x2iedn.16xlarge", .x2iedn_16xlarge), + ("x2iedn.24xlarge", .x2iedn_24xlarge), + ("x2iedn.2xlarge", .x2iedn_2xlarge), + ("x2iedn.32xlarge", .x2iedn_32xlarge), + ("x2iedn.4xlarge", .x2iedn_4xlarge), + ("x2iedn.8xlarge", .x2iedn_8xlarge), + ("x2iedn.metal", .x2iedn_metal), + ("x2iedn.xlarge", .x2iedn_xlarge), + ("x2iezn.12xlarge", .x2iezn_12xlarge), + ("x2iezn.2xlarge", .x2iezn_2xlarge), + ("x2iezn.4xlarge", .x2iezn_4xlarge), + ("x2iezn.6xlarge", .x2iezn_6xlarge), + ("x2iezn.8xlarge", .x2iezn_8xlarge), + ("x2iezn.metal", .x2iezn_metal), + ("x8aedz.12xlarge", .x8aedz_12xlarge), + ("x8aedz.24xlarge", .x8aedz_24xlarge), + ("x8aedz.3xlarge", .x8aedz_3xlarge), + ("x8aedz.6xlarge", .x8aedz_6xlarge), + ("x8aedz.large", .x8aedz_large), + ("x8aedz.metal-12xl", .x8aedz_metal_12xl), + ("x8aedz.metal-24xl", .x8aedz_metal_24xl), + ("x8aedz.xlarge", .x8aedz_xlarge), + ("x8g.12xlarge", .x8g_12xlarge), + ("x8g.16xlarge", .x8g_16xlarge), + ("x8g.24xlarge", .x8g_24xlarge), + ("x8g.2xlarge", .x8g_2xlarge), + ("x8g.48xlarge", .x8g_48xlarge), + ("x8g.4xlarge", .x8g_4xlarge), + ("x8g.8xlarge", .x8g_8xlarge), + ("x8g.large", .x8g_large), + ("x8g.medium", .x8g_medium), + ("x8g.metal-24xl", .x8g_metal_24xl), + ("x8g.metal-48xl", .x8g_metal_48xl), + ("x8g.xlarge", .x8g_xlarge), + ("x8i.12xlarge", .x8i_12xlarge), + ("x8i.16xlarge", .x8i_16xlarge), + ("x8i.24xlarge", .x8i_24xlarge), + ("x8i.2xlarge", .x8i_2xlarge), + ("x8i.32xlarge", .x8i_32xlarge), + ("x8i.48xlarge", .x8i_48xlarge), + ("x8i.4xlarge", .x8i_4xlarge), + ("x8i.64xlarge", .x8i_64xlarge), + ("x8i.8xlarge", .x8i_8xlarge), + ("x8i.96xlarge", .x8i_96xlarge), + ("x8i.large", .x8i_large), + ("x8i.metal-48xl", .x8i_metal_48xl), + ("x8i.metal-96xl", .x8i_metal_96xl), + ("x8i.xlarge", .x8i_xlarge), + ("z1d.12xlarge", .z1d_12xlarge), + ("z1d.2xlarge", .z1d_2xlarge), + ("z1d.3xlarge", .z1d_3xlarge), + ("z1d.6xlarge", .z1d_6xlarge), + ("z1d.large", .z1d_large), + ("z1d.metal", .z1d_metal), + ("z1d.xlarge", .z1d_xlarge)] + +def InstanceType.ofWire (text : String) : Except String InstanceType := + match List.find? (·.1 == text) InstanceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InstanceType has no value {text}" + +instance : Key InstanceType := ⟨InstanceType.wire, InstanceType.ofWire⟩ + +instance : Shape InstanceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InstanceType.ofWire text + | _ => .error "expected a string" + +inductive InstanceTypeHypervisor where + | nitro + | xen +deriving DecidableEq, Repr, Inhabited + +def InstanceTypeHypervisor.wire : InstanceTypeHypervisor → String + | .nitro => "nitro" + | .xen => "xen" + +def InstanceTypeHypervisor.wireValues : List (String × InstanceTypeHypervisor) := [ + ("nitro", .nitro), + ("xen", .xen)] + +def InstanceTypeHypervisor.ofWire (text : String) : Except String InstanceTypeHypervisor := + match List.find? (·.1 == text) InstanceTypeHypervisor.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InstanceTypeHypervisor has no value {text}" + +instance : Key InstanceTypeHypervisor := ⟨InstanceTypeHypervisor.wire, InstanceTypeHypervisor.ofWire⟩ + +instance : Shape InstanceTypeHypervisor where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InstanceTypeHypervisor.ofWire text + | _ => .error "expected a string" + +/-- The list of instance types with the specified instance attributes. -/ +structure InstanceTypeInfoFromInstanceRequirements where + /-- The matching instance type. -/ + instanceType : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceTypeInfoFromInstanceRequirements where + schema := .struct "InstanceTypeInfoFromInstanceRequirements" [({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, .string)] + toValue x := record [putOpt "InstanceType" x.instanceType] + ofValue v := do + let instanceType ← v.opt "InstanceType" + return { instanceType } + +/-- An instance type name or wildcard pattern in an instance type specification. -/ +structure InstanceTypeItem where + /-- The instance type or wildcard pattern (for example, t3.* or m5.large ). -/ + instanceType : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceTypeItem where + schema := .struct "InstanceTypeItem" [({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, .string)] + toValue x := record [putOpt "InstanceType" x.instanceType] + ofValue v := do + let instanceType ← v.opt "InstanceType" + return { instanceType } + +/-- The instance type specification for an AMI, which contains lists of supported and unsupported instance types that define which instance types are compatible with the AMI. -/ +structure InstanceTypeSpecificationRequest where + /-- The instance types that the AMI supports. -/ + supportedInstanceTypes : Option (List String) := none + /-- The instance types that the AMI does not support. -/ + unsupportedInstanceTypes : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceTypeSpecificationRequest where + schema := .struct "InstanceTypeSpecificationRequest" [({ name := "SupportedInstanceTypes", xmlName := some "SupportedInstanceType" }, (.list .string "Item")), + ({ name := "UnsupportedInstanceTypes", xmlName := some "UnsupportedInstanceType" }, (.list .string "Item"))] + toValue x := record [putOpt "SupportedInstanceTypes" x.supportedInstanceTypes, putOpt "UnsupportedInstanceTypes" x.unsupportedInstanceTypes] + ofValue v := do + let supportedInstanceTypes ← v.opt "SupportedInstanceTypes" + let unsupportedInstanceTypes ← v.opt "UnsupportedInstanceTypes" + return { supportedInstanceTypes, unsupportedInstanceTypes } + +/-- Information about the Capacity Reservation usage. -/ +structure InstanceUsage where + /-- The ID of the Amazon Web Services account that is making use of the Capacity Reservation. -/ + accountId : Option String := none + /-- The number of instances the Amazon Web Services account currently has in the Capacity Reservation. -/ + usedInstanceCount : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceUsage where + schema := .struct "InstanceUsage" [({ name := "AccountId", xmlName := some "accountId", queryName := some "AccountId" }, .string), + ({ name := "UsedInstanceCount", xmlName := some "usedInstanceCount", queryName := some "UsedInstanceCount" }, .int)] + toValue x := record [putOpt "AccountId" x.accountId, putOpt "UsedInstanceCount" x.usedInstanceCount] + ofValue v := do + let accountId ← v.opt "AccountId" + let usedInstanceCount ← v.opt "UsedInstanceCount" + return { accountId, usedInstanceCount } + +inductive InterfacePermissionType where + | eiP_ASSOCIATE + | instancE_ATTACH +deriving DecidableEq, Repr, Inhabited + +def InterfacePermissionType.wire : InterfacePermissionType → String + | .eiP_ASSOCIATE => "EIP-ASSOCIATE" + | .instancE_ATTACH => "INSTANCE-ATTACH" + +def InterfacePermissionType.wireValues : List (String × InterfacePermissionType) := [ + ("EIP-ASSOCIATE", .eiP_ASSOCIATE), + ("INSTANCE-ATTACH", .instancE_ATTACH)] + +def InterfacePermissionType.ofWire (text : String) : Except String InterfacePermissionType := + match List.find? (·.1 == text) InterfacePermissionType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InterfacePermissionType has no value {text}" + +instance : Key InterfacePermissionType := ⟨InterfacePermissionType.wire, InterfacePermissionType.ofWire⟩ + +instance : Shape InterfacePermissionType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InterfacePermissionType.ofWire text + | _ => .error "expected a string" + +inductive InterfaceProtocolType where + | gre + | vlan +deriving DecidableEq, Repr, Inhabited + +def InterfaceProtocolType.wire : InterfaceProtocolType → String + | .gre => "GRE" + | .vlan => "VLAN" + +def InterfaceProtocolType.wireValues : List (String × InterfaceProtocolType) := [ + ("GRE", .gre), + ("VLAN", .vlan)] + +def InterfaceProtocolType.ofWire (text : String) : Except String InterfaceProtocolType := + match List.find? (·.1 == text) InterfaceProtocolType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InterfaceProtocolType has no value {text}" + +instance : Key InterfaceProtocolType := ⟨InterfaceProtocolType.wire, InterfaceProtocolType.ofWire⟩ + +instance : Shape InterfaceProtocolType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InterfaceProtocolType.ofWire text + | _ => .error "expected a string" + +inductive InternetGatewayBlockMode where + | block_bidirectional + | block_ingress + | off +deriving DecidableEq, Repr, Inhabited + +def InternetGatewayBlockMode.wire : InternetGatewayBlockMode → String + | .block_bidirectional => "block-bidirectional" + | .block_ingress => "block-ingress" + | .off => "off" + +def InternetGatewayBlockMode.wireValues : List (String × InternetGatewayBlockMode) := [ + ("block-bidirectional", .block_bidirectional), + ("block-ingress", .block_ingress), + ("off", .off)] + +def InternetGatewayBlockMode.ofWire (text : String) : Except String InternetGatewayBlockMode := + match List.find? (·.1 == text) InternetGatewayBlockMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InternetGatewayBlockMode has no value {text}" + +instance : Key InternetGatewayBlockMode := ⟨InternetGatewayBlockMode.wire, InternetGatewayBlockMode.ofWire⟩ + +instance : Shape InternetGatewayBlockMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InternetGatewayBlockMode.ofWire text + | _ => .error "expected a string" + +inductive InternetGatewayExclusionMode where + | allow_bidirectional + | allow_egress +deriving DecidableEq, Repr, Inhabited + +def InternetGatewayExclusionMode.wire : InternetGatewayExclusionMode → String + | .allow_bidirectional => "allow-bidirectional" + | .allow_egress => "allow-egress" + +def InternetGatewayExclusionMode.wireValues : List (String × InternetGatewayExclusionMode) := [ + ("allow-bidirectional", .allow_bidirectional), + ("allow-egress", .allow_egress)] + +def InternetGatewayExclusionMode.ofWire (text : String) : Except String InternetGatewayExclusionMode := + match List.find? (·.1 == text) InternetGatewayExclusionMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InternetGatewayExclusionMode has no value {text}" + +instance : Key InternetGatewayExclusionMode := ⟨InternetGatewayExclusionMode.wire, InternetGatewayExclusionMode.ofWire⟩ + +instance : Shape InternetGatewayExclusionMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InternetGatewayExclusionMode.ofWire text + | _ => .error "expected a string" + +inductive InterruptibleCapacityReservationAllocationStatus where + | active + | canceled + | canceling + | failed + | pending + | updating +deriving DecidableEq, Repr, Inhabited + +def InterruptibleCapacityReservationAllocationStatus.wire : InterruptibleCapacityReservationAllocationStatus → String + | .active => "active" + | .canceled => "canceled" + | .canceling => "canceling" + | .failed => "failed" + | .pending => "pending" + | .updating => "updating" + +def InterruptibleCapacityReservationAllocationStatus.wireValues : List (String × InterruptibleCapacityReservationAllocationStatus) := [ + ("active", .active), + ("canceled", .canceled), + ("canceling", .canceling), + ("failed", .failed), + ("pending", .pending), + ("updating", .updating)] + +def InterruptibleCapacityReservationAllocationStatus.ofWire (text : String) : Except String InterruptibleCapacityReservationAllocationStatus := + match List.find? (·.1 == text) InterruptibleCapacityReservationAllocationStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InterruptibleCapacityReservationAllocationStatus has no value {text}" + +instance : Key InterruptibleCapacityReservationAllocationStatus := ⟨InterruptibleCapacityReservationAllocationStatus.wire, InterruptibleCapacityReservationAllocationStatus.ofWire⟩ + +instance : Shape InterruptibleCapacityReservationAllocationStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InterruptibleCapacityReservationAllocationStatus.ofWire text + | _ => .error "expected a string" + +inductive InterruptionType where + | adhoc +deriving DecidableEq, Repr, Inhabited + +def InterruptionType.wire : InterruptionType → String + | .adhoc => "adhoc" + +def InterruptionType.wireValues : List (String × InterruptionType) := [ + ("adhoc", .adhoc)] + +def InterruptionType.ofWire (text : String) : Except String InterruptionType := + match List.find? (·.1 == text) InterruptionType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InterruptionType has no value {text}" + +instance : Key InterruptionType := ⟨InterruptionType.wire, InterruptionType.ofWire⟩ + +instance : Shape InterruptionType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InterruptionType.ofWire text + | _ => .error "expected a string" + +inductive IpAddressType where + | dualstack + | ipv4 + | ipv6 +deriving DecidableEq, Repr, Inhabited + +def IpAddressType.wire : IpAddressType → String + | .dualstack => "dualstack" + | .ipv4 => "ipv4" + | .ipv6 => "ipv6" + +def IpAddressType.wireValues : List (String × IpAddressType) := [ + ("dualstack", .dualstack), + ("ipv4", .ipv4), + ("ipv6", .ipv6)] + +def IpAddressType.ofWire (text : String) : Except String IpAddressType := + match List.find? (·.1 == text) IpAddressType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpAddressType has no value {text}" + +instance : Key IpAddressType := ⟨IpAddressType.wire, IpAddressType.ofWire⟩ + +instance : Shape IpAddressType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpAddressType.ofWire text + | _ => .error "expected a string" + +/-- Describes an IPv4 address range. -/ +structure IpRange where + /-- The IPv4 address range. -/ + cidrIp : Option String := none + /-- A description for the security group rule that references this IPv4 address range. -/ + description : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpRange where + schema := .struct "IpRange" [({ name := "CidrIp", xmlName := some "cidrIp", queryName := some "CidrIp" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string)] + toValue x := record [putOpt "CidrIp" x.cidrIp, putOpt "Description" x.description] + ofValue v := do + let cidrIp ← v.opt "CidrIp" + let description ← v.opt "Description" + return { cidrIp, description } + +inductive IpScopeEnum where + | «private» +deriving DecidableEq, Repr, Inhabited + +def IpScopeEnum.wire : IpScopeEnum → String + | .«private» => "private" + +def IpScopeEnum.wireValues : List (String × IpScopeEnum) := [ + ("private", .«private»)] + +def IpScopeEnum.ofWire (text : String) : Except String IpScopeEnum := + match List.find? (·.1 == text) IpScopeEnum.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpScopeEnum has no value {text}" + +instance : Key IpScopeEnum := ⟨IpScopeEnum.wire, IpScopeEnum.ofWire⟩ + +instance : Shape IpScopeEnum where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpScopeEnum.ofWire text + | _ => .error "expected a string" + +inductive IpSource where + | amazon + | byoip + | none +deriving DecidableEq, Repr, Inhabited + +def IpSource.wire : IpSource → String + | .amazon => "amazon" + | .byoip => "byoip" + | .none => "none" + +def IpSource.wireValues : List (String × IpSource) := [ + ("amazon", .amazon), + ("byoip", .byoip), + ("none", .none)] + +def IpSource.ofWire (text : String) : Except String IpSource := + match List.find? (·.1 == text) IpSource.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpSource has no value {text}" + +instance : Key IpSource := ⟨IpSource.wire, IpSource.ofWire⟩ + +instance : Shape IpSource where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpSource.ofWire text + | _ => .error "expected a string" + +inductive IpVersionEnum where + | ipv4 + | ipv6 +deriving DecidableEq, Repr, Inhabited + +def IpVersionEnum.wire : IpVersionEnum → String + | .ipv4 => "ipv4" + | .ipv6 => "ipv6" + +def IpVersionEnum.wireValues : List (String × IpVersionEnum) := [ + ("ipv4", .ipv4), + ("ipv6", .ipv6)] + +def IpVersionEnum.ofWire (text : String) : Except String IpVersionEnum := + match List.find? (·.1 == text) IpVersionEnum.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpVersionEnum has no value {text}" + +instance : Key IpVersionEnum := ⟨IpVersionEnum.wire, IpVersionEnum.ofWire⟩ + +instance : Shape IpVersionEnum where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpVersionEnum.ofWire text + | _ => .error "expected a string" + +inductive IpamAddressHistoryResourceType where + | eip + | «instance» + | network_interface + | subnet + | vpc +deriving DecidableEq, Repr, Inhabited + +def IpamAddressHistoryResourceType.wire : IpamAddressHistoryResourceType → String + | .eip => "eip" + | .«instance» => "instance" + | .network_interface => "network-interface" + | .subnet => "subnet" + | .vpc => "vpc" + +def IpamAddressHistoryResourceType.wireValues : List (String × IpamAddressHistoryResourceType) := [ + ("eip", .eip), + ("instance", .«instance»), + ("network-interface", .network_interface), + ("subnet", .subnet), + ("vpc", .vpc)] + +def IpamAddressHistoryResourceType.ofWire (text : String) : Except String IpamAddressHistoryResourceType := + match List.find? (·.1 == text) IpamAddressHistoryResourceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamAddressHistoryResourceType has no value {text}" + +instance : Key IpamAddressHistoryResourceType := ⟨IpamAddressHistoryResourceType.wire, IpamAddressHistoryResourceType.ofWire⟩ + +instance : Shape IpamAddressHistoryResourceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamAddressHistoryResourceType.ofWire text + | _ => .error "expected a string" + +inductive IpamAssociatedResourceDiscoveryStatus where + | active + | noT_FOUND +deriving DecidableEq, Repr, Inhabited + +def IpamAssociatedResourceDiscoveryStatus.wire : IpamAssociatedResourceDiscoveryStatus → String + | .active => "active" + | .noT_FOUND => "not-found" + +def IpamAssociatedResourceDiscoveryStatus.wireValues : List (String × IpamAssociatedResourceDiscoveryStatus) := [ + ("active", .active), + ("not-found", .noT_FOUND)] + +def IpamAssociatedResourceDiscoveryStatus.ofWire (text : String) : Except String IpamAssociatedResourceDiscoveryStatus := + match List.find? (·.1 == text) IpamAssociatedResourceDiscoveryStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamAssociatedResourceDiscoveryStatus has no value {text}" + +instance : Key IpamAssociatedResourceDiscoveryStatus := ⟨IpamAssociatedResourceDiscoveryStatus.wire, IpamAssociatedResourceDiscoveryStatus.ofWire⟩ + +instance : Shape IpamAssociatedResourceDiscoveryStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamAssociatedResourceDiscoveryStatus.ofWire text + | _ => .error "expected a string" + +/-- The advertisement type of a BYOIP route. -/ +inductive IpamByoipAdvertisementType where + | global + | regional +deriving DecidableEq, Repr, Inhabited + +def IpamByoipAdvertisementType.wire : IpamByoipAdvertisementType → String + | .global => "global" + | .regional => "regional" + +def IpamByoipAdvertisementType.wireValues : List (String × IpamByoipAdvertisementType) := [ + ("global", .global), + ("regional", .regional)] + +def IpamByoipAdvertisementType.ofWire (text : String) : Except String IpamByoipAdvertisementType := + match List.find? (·.1 == text) IpamByoipAdvertisementType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamByoipAdvertisementType has no value {text}" + +instance : Key IpamByoipAdvertisementType := ⟨IpamByoipAdvertisementType.wire, IpamByoipAdvertisementType.ofWire⟩ + +instance : Shape IpamByoipAdvertisementType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamByoipAdvertisementType.ofWire text + | _ => .error "expected a string" + +/-- The state of a BYOIP CIDR. -/ +inductive IpamByoipCidrState where + | advertised + | deprovisioned + | failed_deprovision + | failed_provision + | pending_advertising + | pending_deprovision + | pending_provision + | pending_withdrawal + | provisioned + | provisioned_not_publicly_advertisable +deriving DecidableEq, Repr, Inhabited + +def IpamByoipCidrState.wire : IpamByoipCidrState → String + | .advertised => "advertised" + | .deprovisioned => "deprovisioned" + | .failed_deprovision => "failed-deprovision" + | .failed_provision => "failed-provision" + | .pending_advertising => "pending-advertising" + | .pending_deprovision => "pending-deprovision" + | .pending_provision => "pending-provision" + | .pending_withdrawal => "pending-withdrawal" + | .provisioned => "provisioned" + | .provisioned_not_publicly_advertisable => "provisioned-not-publicly-advertisable" + +def IpamByoipCidrState.wireValues : List (String × IpamByoipCidrState) := [ + ("advertised", .advertised), + ("deprovisioned", .deprovisioned), + ("failed-deprovision", .failed_deprovision), + ("failed-provision", .failed_provision), + ("pending-advertising", .pending_advertising), + ("pending-deprovision", .pending_deprovision), + ("pending-provision", .pending_provision), + ("pending-withdrawal", .pending_withdrawal), + ("provisioned", .provisioned), + ("provisioned-not-publicly-advertisable", .provisioned_not_publicly_advertisable)] + +def IpamByoipCidrState.ofWire (text : String) : Except String IpamByoipCidrState := + match List.find? (·.1 == text) IpamByoipCidrState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamByoipCidrState has no value {text}" + +instance : Key IpamByoipCidrState := ⟨IpamByoipCidrState.wire, IpamByoipCidrState.ofWire⟩ + +instance : Shape IpamByoipCidrState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamByoipCidrState.ofWire text + | _ => .error "expected a string" + +/-- A signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP. -/ +structure IpamCidrAuthorizationContext where + /-- The plain-text authorization message for the prefix and account. -/ + message : Option String := none + /-- The signed authorization message for the prefix and account. -/ + signature : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamCidrAuthorizationContext where + schema := .struct "IpamCidrAuthorizationContext" [({ name := "Message" }, .string), + ({ name := "Signature" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Signature" x.signature] + ofValue v := do + let message ← v.opt "Message" + let signature ← v.opt "Signature" + return { message, signature } + +inductive IpamComplianceStatus where + | compliant + | ignored + | noncompliant + | unmanaged +deriving DecidableEq, Repr, Inhabited + +def IpamComplianceStatus.wire : IpamComplianceStatus → String + | .compliant => "compliant" + | .ignored => "ignored" + | .noncompliant => "noncompliant" + | .unmanaged => "unmanaged" + +def IpamComplianceStatus.wireValues : List (String × IpamComplianceStatus) := [ + ("compliant", .compliant), + ("ignored", .ignored), + ("noncompliant", .noncompliant), + ("unmanaged", .unmanaged)] + +def IpamComplianceStatus.ofWire (text : String) : Except String IpamComplianceStatus := + match List.find? (·.1 == text) IpamComplianceStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamComplianceStatus has no value {text}" + +instance : Key IpamComplianceStatus := ⟨IpamComplianceStatus.wire, IpamComplianceStatus.ofWire⟩ + +instance : Shape IpamComplianceStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamComplianceStatus.ofWire text + | _ => .error "expected a string" + +inductive IpamDiscoveryFailureCode where + | assume_role_failure + | throttling_failure + | unauthorized_failure +deriving DecidableEq, Repr, Inhabited + +def IpamDiscoveryFailureCode.wire : IpamDiscoveryFailureCode → String + | .assume_role_failure => "assume-role-failure" + | .throttling_failure => "throttling-failure" + | .unauthorized_failure => "unauthorized-failure" + +def IpamDiscoveryFailureCode.wireValues : List (String × IpamDiscoveryFailureCode) := [ + ("assume-role-failure", .assume_role_failure), + ("throttling-failure", .throttling_failure), + ("unauthorized-failure", .unauthorized_failure)] + +def IpamDiscoveryFailureCode.ofWire (text : String) : Except String IpamDiscoveryFailureCode := + match List.find? (·.1 == text) IpamDiscoveryFailureCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamDiscoveryFailureCode has no value {text}" + +instance : Key IpamDiscoveryFailureCode := ⟨IpamDiscoveryFailureCode.wire, IpamDiscoveryFailureCode.ofWire⟩ + +instance : Shape IpamDiscoveryFailureCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamDiscoveryFailureCode.ofWire text + | _ => .error "expected a string" + +inductive IpamExternalResourceVerificationTokenState where + | creatE_COMPLETE + | creatE_FAILED + | creatE_IN_PROGRESS + | deletE_COMPLETE + | deletE_FAILED + | deletE_IN_PROGRESS +deriving DecidableEq, Repr, Inhabited + +def IpamExternalResourceVerificationTokenState.wire : IpamExternalResourceVerificationTokenState → String + | .creatE_COMPLETE => "create-complete" + | .creatE_FAILED => "create-failed" + | .creatE_IN_PROGRESS => "create-in-progress" + | .deletE_COMPLETE => "delete-complete" + | .deletE_FAILED => "delete-failed" + | .deletE_IN_PROGRESS => "delete-in-progress" + +def IpamExternalResourceVerificationTokenState.wireValues : List (String × IpamExternalResourceVerificationTokenState) := [ + ("create-complete", .creatE_COMPLETE), + ("create-failed", .creatE_FAILED), + ("create-in-progress", .creatE_IN_PROGRESS), + ("delete-complete", .deletE_COMPLETE), + ("delete-failed", .deletE_FAILED), + ("delete-in-progress", .deletE_IN_PROGRESS)] + +def IpamExternalResourceVerificationTokenState.ofWire (text : String) : Except String IpamExternalResourceVerificationTokenState := + match List.find? (·.1 == text) IpamExternalResourceVerificationTokenState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamExternalResourceVerificationTokenState has no value {text}" + +instance : Key IpamExternalResourceVerificationTokenState := ⟨IpamExternalResourceVerificationTokenState.wire, IpamExternalResourceVerificationTokenState.ofWire⟩ + +instance : Shape IpamExternalResourceVerificationTokenState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamExternalResourceVerificationTokenState.ofWire text + | _ => .error "expected a string" + +/-- Contains information about an Autonomous System Number (ASN) registered at an internet registry and associated with an IPAM. -/ +structure IpamInternetRegistryAssociationAsn where + /-- The Autonomous System Number. -/ + asn : Option String := none + /-- The time when the ASN was last observed at the internet registry. -/ + lastObservedAt : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamInternetRegistryAssociationAsn where + schema := .struct "IpamInternetRegistryAssociationAsn" [({ name := "Asn", xmlName := some "asn", queryName := some "Asn" }, .string), + ({ name := "LastObservedAt", xmlName := some "lastObservedAt", queryName := some "LastObservedAt" }, (.time none))] + toValue x := record [putOpt "Asn" x.asn, putOpt "LastObservedAt" x.lastObservedAt] + ofValue v := do + let asn ← v.opt "Asn" + let lastObservedAt ← v.opt "LastObservedAt" + return { asn, lastObservedAt } + +/-- Contains information about an IP address CIDR registered at an internet registry and associated with an IPAM. -/ +structure IpamInternetRegistryAssociationCidr where + /-- The IP address prefix in CIDR notation. -/ + cidr : Option String := none + /-- The time when the CIDR was last observed at the internet registry. -/ + lastObservedAt : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamInternetRegistryAssociationCidr where + schema := .struct "IpamInternetRegistryAssociationCidr" [({ name := "Cidr", xmlName := some "cidr", queryName := some "Cidr" }, .string), + ({ name := "LastObservedAt", xmlName := some "lastObservedAt", queryName := some "LastObservedAt" }, (.time none))] + toValue x := record [putOpt "Cidr" x.cidr, putOpt "LastObservedAt" x.lastObservedAt] + ofValue v := do + let cidr ← v.opt "Cidr" + let lastObservedAt ← v.opt "LastObservedAt" + return { cidr, lastObservedAt } + +/-- The state of an IPAM internet registry association. -/ +inductive IpamInternetRegistryAssociationState where + | create_failed + | create_in_progress + | delete_complete + | delete_failed + | delete_in_progress + | disable_complete + | disable_failed + | disable_in_progress + | enable_complete + | enable_failed + | enable_in_progress + | pending_enable +deriving DecidableEq, Repr, Inhabited + +def IpamInternetRegistryAssociationState.wire : IpamInternetRegistryAssociationState → String + | .create_failed => "create-failed" + | .create_in_progress => "create-in-progress" + | .delete_complete => "delete-complete" + | .delete_failed => "delete-failed" + | .delete_in_progress => "delete-in-progress" + | .disable_complete => "disable-complete" + | .disable_failed => "disable-failed" + | .disable_in_progress => "disable-in-progress" + | .enable_complete => "enable-complete" + | .enable_failed => "enable-failed" + | .enable_in_progress => "enable-in-progress" + | .pending_enable => "pending-enable" + +def IpamInternetRegistryAssociationState.wireValues : List (String × IpamInternetRegistryAssociationState) := [ + ("create-failed", .create_failed), + ("create-in-progress", .create_in_progress), + ("delete-complete", .delete_complete), + ("delete-failed", .delete_failed), + ("delete-in-progress", .delete_in_progress), + ("disable-complete", .disable_complete), + ("disable-failed", .disable_failed), + ("disable-in-progress", .disable_in_progress), + ("enable-complete", .enable_complete), + ("enable-failed", .enable_failed), + ("enable-in-progress", .enable_in_progress), + ("pending-enable", .pending_enable)] + +def IpamInternetRegistryAssociationState.ofWire (text : String) : Except String IpamInternetRegistryAssociationState := + match List.find? (·.1 == text) IpamInternetRegistryAssociationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamInternetRegistryAssociationState has no value {text}" + +instance : Key IpamInternetRegistryAssociationState := ⟨IpamInternetRegistryAssociationState.wire, IpamInternetRegistryAssociationState.ofWire⟩ + +instance : Shape IpamInternetRegistryAssociationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamInternetRegistryAssociationState.ofWire text + | _ => .error "expected a string" + +inductive IpamManagementState where + | ignored + | managed + | unmanaged +deriving DecidableEq, Repr, Inhabited + +def IpamManagementState.wire : IpamManagementState → String + | .ignored => "ignored" + | .managed => "managed" + | .unmanaged => "unmanaged" + +def IpamManagementState.wireValues : List (String × IpamManagementState) := [ + ("ignored", .ignored), + ("managed", .managed), + ("unmanaged", .unmanaged)] + +def IpamManagementState.ofWire (text : String) : Except String IpamManagementState := + match List.find? (·.1 == text) IpamManagementState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamManagementState has no value {text}" + +instance : Key IpamManagementState := ⟨IpamManagementState.wire, IpamManagementState.ofWire⟩ + +instance : Shape IpamManagementState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamManagementState.ofWire text + | _ => .error "expected a string" + +inductive IpamMeteredAccount where + | ipam_owner + | resource_owner +deriving DecidableEq, Repr, Inhabited + +def IpamMeteredAccount.wire : IpamMeteredAccount → String + | .ipam_owner => "ipam-owner" + | .resource_owner => "resource-owner" + +def IpamMeteredAccount.wireValues : List (String × IpamMeteredAccount) := [ + ("ipam-owner", .ipam_owner), + ("resource-owner", .resource_owner)] + +def IpamMeteredAccount.ofWire (text : String) : Except String IpamMeteredAccount := + match List.find? (·.1 == text) IpamMeteredAccount.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamMeteredAccount has no value {text}" + +instance : Key IpamMeteredAccount := ⟨IpamMeteredAccount.wire, IpamMeteredAccount.ofWire⟩ + +instance : Shape IpamMeteredAccount where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamMeteredAccount.ofWire text + | _ => .error "expected a string" + +inductive IpamNetworkInterfaceAttachmentStatus where + | available + | in_use +deriving DecidableEq, Repr, Inhabited + +def IpamNetworkInterfaceAttachmentStatus.wire : IpamNetworkInterfaceAttachmentStatus → String + | .available => "available" + | .in_use => "in-use" + +def IpamNetworkInterfaceAttachmentStatus.wireValues : List (String × IpamNetworkInterfaceAttachmentStatus) := [ + ("available", .available), + ("in-use", .in_use)] + +def IpamNetworkInterfaceAttachmentStatus.ofWire (text : String) : Except String IpamNetworkInterfaceAttachmentStatus := + match List.find? (·.1 == text) IpamNetworkInterfaceAttachmentStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamNetworkInterfaceAttachmentStatus has no value {text}" + +instance : Key IpamNetworkInterfaceAttachmentStatus := ⟨IpamNetworkInterfaceAttachmentStatus.wire, IpamNetworkInterfaceAttachmentStatus.ofWire⟩ + +instance : Shape IpamNetworkInterfaceAttachmentStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamNetworkInterfaceAttachmentStatus.ofWire text + | _ => .error "expected a string" + +/-- The operating Regions for an IPAM. -/ +structure IpamOperatingRegion where + /-- The name of the operating Region. -/ + regionName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamOperatingRegion where + schema := .struct "IpamOperatingRegion" [({ name := "RegionName", xmlName := some "regionName", queryName := some "RegionName" }, .string)] + toValue x := record [putOpt "RegionName" x.regionName] + ofValue v := do + let regionName ← v.opt "RegionName" + return { regionName } + +/-- If your IPAM is integrated with Amazon Web Services Organizations and you add an organizational unit (OU) exclusion, IPAM will not manage the IP addresses in accounts in that OU exclusion. -/ +structure IpamOrganizationalUnitExclusion where + /-- An Amazon Web Services Organizations entity path. -/ + organizationsEntityPath : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamOrganizationalUnitExclusion where + schema := .struct "IpamOrganizationalUnitExclusion" [({ name := "OrganizationsEntityPath", xmlName := some "organizationsEntityPath", queryName := some "OrganizationsEntityPath" }, .string)] + toValue x := record [putOpt "OrganizationsEntityPath" x.organizationsEntityPath] + ofValue v := do + let organizationsEntityPath ← v.opt "OrganizationsEntityPath" + return { organizationsEntityPath } + +inductive IpamOverlapStatus where + | ignored + | nonoverlapping + | overlapping +deriving DecidableEq, Repr, Inhabited + +def IpamOverlapStatus.wire : IpamOverlapStatus → String + | .ignored => "ignored" + | .nonoverlapping => "nonoverlapping" + | .overlapping => "overlapping" + +def IpamOverlapStatus.wireValues : List (String × IpamOverlapStatus) := [ + ("ignored", .ignored), + ("nonoverlapping", .nonoverlapping), + ("overlapping", .overlapping)] + +def IpamOverlapStatus.ofWire (text : String) : Except String IpamOverlapStatus := + match List.find? (·.1 == text) IpamOverlapStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamOverlapStatus has no value {text}" + +instance : Key IpamOverlapStatus := ⟨IpamOverlapStatus.wire, IpamOverlapStatus.ofWire⟩ + +instance : Shape IpamOverlapStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamOverlapStatus.ofWire text + | _ => .error "expected a string" + +/-- Information about an IPAM policy allocation rule. -/ +structure IpamPolicyAllocationRule where + /-- The ID of the source IPAM pool for the allocation rule. -/ + sourceIpamPoolId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPolicyAllocationRule where + schema := .struct "IpamPolicyAllocationRule" [({ name := "SourceIpamPoolId", xmlName := some "sourceIpamPoolId", queryName := some "SourceIpamPoolId" }, .string)] + toValue x := record [putOpt "SourceIpamPoolId" x.sourceIpamPoolId] + ofValue v := do + let sourceIpamPoolId ← v.opt "SourceIpamPoolId" + return { sourceIpamPoolId } + +/-- Information about a requested IPAM policy allocation rule. -/ +structure IpamPolicyAllocationRuleRequest where + /-- The ID of the source IPAM pool for the requested allocation rule. -/ + sourceIpamPoolId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPolicyAllocationRuleRequest where + schema := .struct "IpamPolicyAllocationRuleRequest" [({ name := "SourceIpamPoolId" }, .string)] + toValue x := record [putOpt "SourceIpamPoolId" x.sourceIpamPoolId] + ofValue v := do + let sourceIpamPoolId ← v.opt "SourceIpamPoolId" + return { sourceIpamPoolId } + +inductive IpamPolicyManagedBy where + | account + | delegated_administrator_for_ipam +deriving DecidableEq, Repr, Inhabited + +def IpamPolicyManagedBy.wire : IpamPolicyManagedBy → String + | .account => "account" + | .delegated_administrator_for_ipam => "delegated-administrator-for-ipam" + +def IpamPolicyManagedBy.wireValues : List (String × IpamPolicyManagedBy) := [ + ("account", .account), + ("delegated-administrator-for-ipam", .delegated_administrator_for_ipam)] + +def IpamPolicyManagedBy.ofWire (text : String) : Except String IpamPolicyManagedBy := + match List.find? (·.1 == text) IpamPolicyManagedBy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamPolicyManagedBy has no value {text}" + +instance : Key IpamPolicyManagedBy := ⟨IpamPolicyManagedBy.wire, IpamPolicyManagedBy.ofWire⟩ + +instance : Shape IpamPolicyManagedBy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamPolicyManagedBy.ofWire text + | _ => .error "expected a string" + +/-- The Amazon Web Services Organizations target for an IPAM policy. -/ +structure IpamPolicyOrganizationTarget where + /-- The ID of the Amazon Web Services Organizations target. -/ + organizationTargetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPolicyOrganizationTarget where + schema := .struct "IpamPolicyOrganizationTarget" [({ name := "OrganizationTargetId", xmlName := some "organizationTargetId", queryName := some "OrganizationTargetId" }, .string)] + toValue x := record [putOpt "OrganizationTargetId" x.organizationTargetId] + ofValue v := do + let organizationTargetId ← v.opt "OrganizationTargetId" + return { organizationTargetId } + +inductive IpamPolicyResourceType where + | alb + | eip + | rds + | rnat +deriving DecidableEq, Repr, Inhabited + +def IpamPolicyResourceType.wire : IpamPolicyResourceType → String + | .alb => "alb" + | .eip => "eip" + | .rds => "rds" + | .rnat => "rnat" + +def IpamPolicyResourceType.wireValues : List (String × IpamPolicyResourceType) := [ + ("alb", .alb), + ("eip", .eip), + ("rds", .rds), + ("rnat", .rnat)] + +def IpamPolicyResourceType.ofWire (text : String) : Except String IpamPolicyResourceType := + match List.find? (·.1 == text) IpamPolicyResourceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamPolicyResourceType has no value {text}" + +instance : Key IpamPolicyResourceType := ⟨IpamPolicyResourceType.wire, IpamPolicyResourceType.ofWire⟩ + +instance : Shape IpamPolicyResourceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamPolicyResourceType.ofWire text + | _ => .error "expected a string" + +inductive IpamPolicyState where + | create_complete + | create_failed + | create_in_progress + | delete_complete + | delete_failed + | delete_in_progress + | isolate_complete + | isolate_in_progress + | modify_complete + | modify_failed + | modify_in_progress + | restore_in_progress +deriving DecidableEq, Repr, Inhabited + +def IpamPolicyState.wire : IpamPolicyState → String + | .create_complete => "create-complete" + | .create_failed => "create-failed" + | .create_in_progress => "create-in-progress" + | .delete_complete => "delete-complete" + | .delete_failed => "delete-failed" + | .delete_in_progress => "delete-in-progress" + | .isolate_complete => "isolate-complete" + | .isolate_in_progress => "isolate-in-progress" + | .modify_complete => "modify-complete" + | .modify_failed => "modify-failed" + | .modify_in_progress => "modify-in-progress" + | .restore_in_progress => "restore-in-progress" + +def IpamPolicyState.wireValues : List (String × IpamPolicyState) := [ + ("create-complete", .create_complete), + ("create-failed", .create_failed), + ("create-in-progress", .create_in_progress), + ("delete-complete", .delete_complete), + ("delete-failed", .delete_failed), + ("delete-in-progress", .delete_in_progress), + ("isolate-complete", .isolate_complete), + ("isolate-in-progress", .isolate_in_progress), + ("modify-complete", .modify_complete), + ("modify-failed", .modify_failed), + ("modify-in-progress", .modify_in_progress), + ("restore-in-progress", .restore_in_progress)] + +def IpamPolicyState.ofWire (text : String) : Except String IpamPolicyState := + match List.find? (·.1 == text) IpamPolicyState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamPolicyState has no value {text}" + +instance : Key IpamPolicyState := ⟨IpamPolicyState.wire, IpamPolicyState.ofWire⟩ + +instance : Shape IpamPolicyState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamPolicyState.ofWire text + | _ => .error "expected a string" + +inductive IpamPoolAllocationResourceType where + | anycast_ip_list + | custom + | ec2_public_ipv4_pool + | eip + | ipam_pool + | subnet + | vpc +deriving DecidableEq, Repr, Inhabited + +def IpamPoolAllocationResourceType.wire : IpamPoolAllocationResourceType → String + | .anycast_ip_list => "anycast-ip-list" + | .custom => "custom" + | .ec2_public_ipv4_pool => "ec2-public-ipv4-pool" + | .eip => "eip" + | .ipam_pool => "ipam-pool" + | .subnet => "subnet" + | .vpc => "vpc" + +def IpamPoolAllocationResourceType.wireValues : List (String × IpamPoolAllocationResourceType) := [ + ("anycast-ip-list", .anycast_ip_list), + ("custom", .custom), + ("ec2-public-ipv4-pool", .ec2_public_ipv4_pool), + ("eip", .eip), + ("ipam-pool", .ipam_pool), + ("subnet", .subnet), + ("vpc", .vpc)] + +def IpamPoolAllocationResourceType.ofWire (text : String) : Except String IpamPoolAllocationResourceType := + match List.find? (·.1 == text) IpamPoolAllocationResourceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamPoolAllocationResourceType has no value {text}" + +instance : Key IpamPoolAllocationResourceType := ⟨IpamPoolAllocationResourceType.wire, IpamPoolAllocationResourceType.ofWire⟩ + +instance : Shape IpamPoolAllocationResourceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamPoolAllocationResourceType.ofWire text + | _ => .error "expected a string" + +inductive IpamPoolAwsService where + | ec2 + | global_services +deriving DecidableEq, Repr, Inhabited + +def IpamPoolAwsService.wire : IpamPoolAwsService → String + | .ec2 => "ec2" + | .global_services => "global-services" + +def IpamPoolAwsService.wireValues : List (String × IpamPoolAwsService) := [ + ("ec2", .ec2), + ("global-services", .global_services)] + +def IpamPoolAwsService.ofWire (text : String) : Except String IpamPoolAwsService := + match List.find? (·.1 == text) IpamPoolAwsService.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamPoolAwsService has no value {text}" + +instance : Key IpamPoolAwsService := ⟨IpamPoolAwsService.wire, IpamPoolAwsService.ofWire⟩ + +instance : Shape IpamPoolAwsService where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamPoolAwsService.ofWire text + | _ => .error "expected a string" + +inductive IpamPoolCidrFailureCode where + | cidr_not_available + | limit_exceeded +deriving DecidableEq, Repr, Inhabited + +def IpamPoolCidrFailureCode.wire : IpamPoolCidrFailureCode → String + | .cidr_not_available => "cidr-not-available" + | .limit_exceeded => "limit-exceeded" + +def IpamPoolCidrFailureCode.wireValues : List (String × IpamPoolCidrFailureCode) := [ + ("cidr-not-available", .cidr_not_available), + ("limit-exceeded", .limit_exceeded)] + +def IpamPoolCidrFailureCode.ofWire (text : String) : Except String IpamPoolCidrFailureCode := + match List.find? (·.1 == text) IpamPoolCidrFailureCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamPoolCidrFailureCode has no value {text}" + +instance : Key IpamPoolCidrFailureCode := ⟨IpamPoolCidrFailureCode.wire, IpamPoolCidrFailureCode.ofWire⟩ + +instance : Shape IpamPoolCidrFailureCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamPoolCidrFailureCode.ofWire text + | _ => .error "expected a string" + +inductive IpamPoolCidrState where + | deprovisioned + | failed_deprovision + | failed_import + | failed_provision + | pending_deprovision + | pending_import + | pending_provision + | provisioned +deriving DecidableEq, Repr, Inhabited + +def IpamPoolCidrState.wire : IpamPoolCidrState → String + | .deprovisioned => "deprovisioned" + | .failed_deprovision => "failed-deprovision" + | .failed_import => "failed-import" + | .failed_provision => "failed-provision" + | .pending_deprovision => "pending-deprovision" + | .pending_import => "pending-import" + | .pending_provision => "pending-provision" + | .provisioned => "provisioned" + +def IpamPoolCidrState.wireValues : List (String × IpamPoolCidrState) := [ + ("deprovisioned", .deprovisioned), + ("failed-deprovision", .failed_deprovision), + ("failed-import", .failed_import), + ("failed-provision", .failed_provision), + ("pending-deprovision", .pending_deprovision), + ("pending-import", .pending_import), + ("pending-provision", .pending_provision), + ("provisioned", .provisioned)] + +def IpamPoolCidrState.ofWire (text : String) : Except String IpamPoolCidrState := + match List.find? (·.1 == text) IpamPoolCidrState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamPoolCidrState has no value {text}" + +instance : Key IpamPoolCidrState := ⟨IpamPoolCidrState.wire, IpamPoolCidrState.ofWire⟩ + +instance : Shape IpamPoolCidrState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamPoolCidrState.ofWire text + | _ => .error "expected a string" + +inductive IpamPoolPublicIpSource where + | amazon + | byoip +deriving DecidableEq, Repr, Inhabited + +def IpamPoolPublicIpSource.wire : IpamPoolPublicIpSource → String + | .amazon => "amazon" + | .byoip => "byoip" + +def IpamPoolPublicIpSource.wireValues : List (String × IpamPoolPublicIpSource) := [ + ("amazon", .amazon), + ("byoip", .byoip)] + +def IpamPoolPublicIpSource.ofWire (text : String) : Except String IpamPoolPublicIpSource := + match List.find? (·.1 == text) IpamPoolPublicIpSource.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamPoolPublicIpSource has no value {text}" + +instance : Key IpamPoolPublicIpSource := ⟨IpamPoolPublicIpSource.wire, IpamPoolPublicIpSource.ofWire⟩ + +instance : Shape IpamPoolPublicIpSource where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamPoolPublicIpSource.ofWire text + | _ => .error "expected a string" + +inductive IpamPoolSourceResourceType where + | vpc +deriving DecidableEq, Repr, Inhabited + +def IpamPoolSourceResourceType.wire : IpamPoolSourceResourceType → String + | .vpc => "vpc" + +def IpamPoolSourceResourceType.wireValues : List (String × IpamPoolSourceResourceType) := [ + ("vpc", .vpc)] + +def IpamPoolSourceResourceType.ofWire (text : String) : Except String IpamPoolSourceResourceType := + match List.find? (·.1 == text) IpamPoolSourceResourceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamPoolSourceResourceType has no value {text}" + +instance : Key IpamPoolSourceResourceType := ⟨IpamPoolSourceResourceType.wire, IpamPoolSourceResourceType.ofWire⟩ + +instance : Shape IpamPoolSourceResourceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamPoolSourceResourceType.ofWire text + | _ => .error "expected a string" + +inductive IpamPoolState where + | create_complete + | create_failed + | create_in_progress + | delete_complete + | delete_failed + | delete_in_progress + | isolate_complete + | isolate_in_progress + | modify_complete + | modify_failed + | modify_in_progress + | restore_in_progress +deriving DecidableEq, Repr, Inhabited + +def IpamPoolState.wire : IpamPoolState → String + | .create_complete => "create-complete" + | .create_failed => "create-failed" + | .create_in_progress => "create-in-progress" + | .delete_complete => "delete-complete" + | .delete_failed => "delete-failed" + | .delete_in_progress => "delete-in-progress" + | .isolate_complete => "isolate-complete" + | .isolate_in_progress => "isolate-in-progress" + | .modify_complete => "modify-complete" + | .modify_failed => "modify-failed" + | .modify_in_progress => "modify-in-progress" + | .restore_in_progress => "restore-in-progress" + +def IpamPoolState.wireValues : List (String × IpamPoolState) := [ + ("create-complete", .create_complete), + ("create-failed", .create_failed), + ("create-in-progress", .create_in_progress), + ("delete-complete", .delete_complete), + ("delete-failed", .delete_failed), + ("delete-in-progress", .delete_in_progress), + ("isolate-complete", .isolate_complete), + ("isolate-in-progress", .isolate_in_progress), + ("modify-complete", .modify_complete), + ("modify-failed", .modify_failed), + ("modify-in-progress", .modify_in_progress), + ("restore-in-progress", .restore_in_progress)] + +def IpamPoolState.ofWire (text : String) : Except String IpamPoolState := + match List.find? (·.1 == text) IpamPoolState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamPoolState has no value {text}" + +instance : Key IpamPoolState := ⟨IpamPoolState.wire, IpamPoolState.ofWire⟩ + +instance : Shape IpamPoolState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamPoolState.ofWire text + | _ => .error "expected a string" + +inductive IpamPrefixListResolverRuleConditionOperation where + | equals + | not_equals + | subnet_of +deriving DecidableEq, Repr, Inhabited + +def IpamPrefixListResolverRuleConditionOperation.wire : IpamPrefixListResolverRuleConditionOperation → String + | .equals => "equals" + | .not_equals => "not-equals" + | .subnet_of => "subnet-of" + +def IpamPrefixListResolverRuleConditionOperation.wireValues : List (String × IpamPrefixListResolverRuleConditionOperation) := [ + ("equals", .equals), + ("not-equals", .not_equals), + ("subnet-of", .subnet_of)] + +def IpamPrefixListResolverRuleConditionOperation.ofWire (text : String) : Except String IpamPrefixListResolverRuleConditionOperation := + match List.find? (·.1 == text) IpamPrefixListResolverRuleConditionOperation.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamPrefixListResolverRuleConditionOperation has no value {text}" + +instance : Key IpamPrefixListResolverRuleConditionOperation := ⟨IpamPrefixListResolverRuleConditionOperation.wire, IpamPrefixListResolverRuleConditionOperation.ofWire⟩ + +instance : Shape IpamPrefixListResolverRuleConditionOperation where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamPrefixListResolverRuleConditionOperation.ofWire text + | _ => .error "expected a string" + +inductive IpamPrefixListResolverRuleType where + | ipam_pool_cidr + | ipam_resource_cidr + | static_cidr +deriving DecidableEq, Repr, Inhabited + +def IpamPrefixListResolverRuleType.wire : IpamPrefixListResolverRuleType → String + | .ipam_pool_cidr => "ipam-pool-cidr" + | .ipam_resource_cidr => "ipam-resource-cidr" + | .static_cidr => "static-cidr" + +def IpamPrefixListResolverRuleType.wireValues : List (String × IpamPrefixListResolverRuleType) := [ + ("ipam-pool-cidr", .ipam_pool_cidr), + ("ipam-resource-cidr", .ipam_resource_cidr), + ("static-cidr", .static_cidr)] + +def IpamPrefixListResolverRuleType.ofWire (text : String) : Except String IpamPrefixListResolverRuleType := + match List.find? (·.1 == text) IpamPrefixListResolverRuleType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamPrefixListResolverRuleType has no value {text}" + +instance : Key IpamPrefixListResolverRuleType := ⟨IpamPrefixListResolverRuleType.wire, IpamPrefixListResolverRuleType.ofWire⟩ + +instance : Shape IpamPrefixListResolverRuleType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamPrefixListResolverRuleType.ofWire text + | _ => .error "expected a string" + +inductive IpamPrefixListResolverState where + | create_complete + | create_failed + | create_in_progress + | delete_complete + | delete_failed + | delete_in_progress + | isolate_complete + | isolate_in_progress + | modify_complete + | modify_failed + | modify_in_progress + | restore_in_progress +deriving DecidableEq, Repr, Inhabited + +def IpamPrefixListResolverState.wire : IpamPrefixListResolverState → String + | .create_complete => "create-complete" + | .create_failed => "create-failed" + | .create_in_progress => "create-in-progress" + | .delete_complete => "delete-complete" + | .delete_failed => "delete-failed" + | .delete_in_progress => "delete-in-progress" + | .isolate_complete => "isolate-complete" + | .isolate_in_progress => "isolate-in-progress" + | .modify_complete => "modify-complete" + | .modify_failed => "modify-failed" + | .modify_in_progress => "modify-in-progress" + | .restore_in_progress => "restore-in-progress" + +def IpamPrefixListResolverState.wireValues : List (String × IpamPrefixListResolverState) := [ + ("create-complete", .create_complete), + ("create-failed", .create_failed), + ("create-in-progress", .create_in_progress), + ("delete-complete", .delete_complete), + ("delete-failed", .delete_failed), + ("delete-in-progress", .delete_in_progress), + ("isolate-complete", .isolate_complete), + ("isolate-in-progress", .isolate_in_progress), + ("modify-complete", .modify_complete), + ("modify-failed", .modify_failed), + ("modify-in-progress", .modify_in_progress), + ("restore-in-progress", .restore_in_progress)] + +def IpamPrefixListResolverState.ofWire (text : String) : Except String IpamPrefixListResolverState := + match List.find? (·.1 == text) IpamPrefixListResolverState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamPrefixListResolverState has no value {text}" + +instance : Key IpamPrefixListResolverState := ⟨IpamPrefixListResolverState.wire, IpamPrefixListResolverState.ofWire⟩ + +instance : Shape IpamPrefixListResolverState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamPrefixListResolverState.ofWire text + | _ => .error "expected a string" + +inductive IpamPrefixListResolverTargetState where + | create_complete + | create_failed + | create_in_progress + | delete_complete + | delete_failed + | delete_in_progress + | isolate_complete + | isolate_in_progress + | modify_complete + | modify_failed + | modify_in_progress + | restore_in_progress + | sync_complete + | sync_failed + | sync_in_progress +deriving DecidableEq, Repr, Inhabited + +def IpamPrefixListResolverTargetState.wire : IpamPrefixListResolverTargetState → String + | .create_complete => "create-complete" + | .create_failed => "create-failed" + | .create_in_progress => "create-in-progress" + | .delete_complete => "delete-complete" + | .delete_failed => "delete-failed" + | .delete_in_progress => "delete-in-progress" + | .isolate_complete => "isolate-complete" + | .isolate_in_progress => "isolate-in-progress" + | .modify_complete => "modify-complete" + | .modify_failed => "modify-failed" + | .modify_in_progress => "modify-in-progress" + | .restore_in_progress => "restore-in-progress" + | .sync_complete => "sync-complete" + | .sync_failed => "sync-failed" + | .sync_in_progress => "sync-in-progress" + +def IpamPrefixListResolverTargetState.wireValues : List (String × IpamPrefixListResolverTargetState) := [ + ("create-complete", .create_complete), + ("create-failed", .create_failed), + ("create-in-progress", .create_in_progress), + ("delete-complete", .delete_complete), + ("delete-failed", .delete_failed), + ("delete-in-progress", .delete_in_progress), + ("isolate-complete", .isolate_complete), + ("isolate-in-progress", .isolate_in_progress), + ("modify-complete", .modify_complete), + ("modify-failed", .modify_failed), + ("modify-in-progress", .modify_in_progress), + ("restore-in-progress", .restore_in_progress), + ("sync-complete", .sync_complete), + ("sync-failed", .sync_failed), + ("sync-in-progress", .sync_in_progress)] + +def IpamPrefixListResolverTargetState.ofWire (text : String) : Except String IpamPrefixListResolverTargetState := + match List.find? (·.1 == text) IpamPrefixListResolverTargetState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamPrefixListResolverTargetState has no value {text}" + +instance : Key IpamPrefixListResolverTargetState := ⟨IpamPrefixListResolverTargetState.wire, IpamPrefixListResolverTargetState.ofWire⟩ + +instance : Shape IpamPrefixListResolverTargetState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamPrefixListResolverTargetState.ofWire text + | _ => .error "expected a string" + +/-- Describes a version of an IPAM prefix list resolver. -/ +structure IpamPrefixListResolverVersion where + /-- The version number of the IPAM prefix list resolver. -/ + version : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPrefixListResolverVersion where + schema := .struct "IpamPrefixListResolverVersion" [({ name := "Version", xmlName := some "version", queryName := some "Version" }, .int)] + toValue x := record [putOpt "Version" x.version] + ofValue v := do + let version ← v.opt "Version" + return { version } + +inductive IpamPrefixListResolverVersionCreationStatus where + | failure + | pending + | success +deriving DecidableEq, Repr, Inhabited + +def IpamPrefixListResolverVersionCreationStatus.wire : IpamPrefixListResolverVersionCreationStatus → String + | .failure => "failure" + | .pending => "pending" + | .success => "success" + +def IpamPrefixListResolverVersionCreationStatus.wireValues : List (String × IpamPrefixListResolverVersionCreationStatus) := [ + ("failure", .failure), + ("pending", .pending), + ("success", .success)] + +def IpamPrefixListResolverVersionCreationStatus.ofWire (text : String) : Except String IpamPrefixListResolverVersionCreationStatus := + match List.find? (·.1 == text) IpamPrefixListResolverVersionCreationStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamPrefixListResolverVersionCreationStatus has no value {text}" + +instance : Key IpamPrefixListResolverVersionCreationStatus := ⟨IpamPrefixListResolverVersionCreationStatus.wire, IpamPrefixListResolverVersionCreationStatus.ofWire⟩ + +instance : Shape IpamPrefixListResolverVersionCreationStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamPrefixListResolverVersionCreationStatus.ofWire text + | _ => .error "expected a string" + +/-- Describes a CIDR entry in a specific version of an IPAM prefix list resolver. -/ +structure IpamPrefixListResolverVersionEntry where + /-- The CIDR block that was selected and synchronized in this resolver version. -/ + cidr : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPrefixListResolverVersionEntry where + schema := .struct "IpamPrefixListResolverVersionEntry" [({ name := "Cidr", xmlName := some "cidr", queryName := some "Cidr" }, .string)] + toValue x := record [putOpt "Cidr" x.cidr] + ofValue v := do + let cidr ← v.opt "Cidr" + return { cidr } + +inductive IpamPublicAddressAssociationStatus where + | associated + | disassociated +deriving DecidableEq, Repr, Inhabited + +def IpamPublicAddressAssociationStatus.wire : IpamPublicAddressAssociationStatus → String + | .associated => "associated" + | .disassociated => "disassociated" + +def IpamPublicAddressAssociationStatus.wireValues : List (String × IpamPublicAddressAssociationStatus) := [ + ("associated", .associated), + ("disassociated", .disassociated)] + +def IpamPublicAddressAssociationStatus.ofWire (text : String) : Except String IpamPublicAddressAssociationStatus := + match List.find? (·.1 == text) IpamPublicAddressAssociationStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamPublicAddressAssociationStatus has no value {text}" + +instance : Key IpamPublicAddressAssociationStatus := ⟨IpamPublicAddressAssociationStatus.wire, IpamPublicAddressAssociationStatus.ofWire⟩ + +instance : Shape IpamPublicAddressAssociationStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamPublicAddressAssociationStatus.ofWire text + | _ => .error "expected a string" + +inductive IpamPublicAddressAwsService where + | aga + | cloudfront + | dms + | ec2_LB + | ecs + | naT_GATEWAY + | other + | rds + | redshift + | s2S_VPN +deriving DecidableEq, Repr, Inhabited + +def IpamPublicAddressAwsService.wire : IpamPublicAddressAwsService → String + | .aga => "global-accelerator" + | .cloudfront => "cloudfront" + | .dms => "database-migration-service" + | .ec2_LB => "load-balancer" + | .ecs => "elastic-container-service" + | .naT_GATEWAY => "nat-gateway" + | .other => "other" + | .rds => "relational-database-service" + | .redshift => "redshift" + | .s2S_VPN => "site-to-site-vpn" + +def IpamPublicAddressAwsService.wireValues : List (String × IpamPublicAddressAwsService) := [ + ("global-accelerator", .aga), + ("cloudfront", .cloudfront), + ("database-migration-service", .dms), + ("load-balancer", .ec2_LB), + ("elastic-container-service", .ecs), + ("nat-gateway", .naT_GATEWAY), + ("other", .other), + ("relational-database-service", .rds), + ("redshift", .redshift), + ("site-to-site-vpn", .s2S_VPN)] + +def IpamPublicAddressAwsService.ofWire (text : String) : Except String IpamPublicAddressAwsService := + match List.find? (·.1 == text) IpamPublicAddressAwsService.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamPublicAddressAwsService has no value {text}" + +instance : Key IpamPublicAddressAwsService := ⟨IpamPublicAddressAwsService.wire, IpamPublicAddressAwsService.ofWire⟩ + +instance : Shape IpamPublicAddressAwsService where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamPublicAddressAwsService.ofWire text + | _ => .error "expected a string" + +/-- The security group that the resource with the public IP address is in. -/ +structure IpamPublicAddressSecurityGroup where + /-- The security group's ID. -/ + groupId : Option String := none + /-- The security group's name. -/ + groupName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPublicAddressSecurityGroup where + schema := .struct "IpamPublicAddressSecurityGroup" [({ name := "GroupId", xmlName := some "groupId", queryName := some "GroupId" }, .string), + ({ name := "GroupName", xmlName := some "groupName", queryName := some "GroupName" }, .string)] + toValue x := record [putOpt "GroupId" x.groupId, putOpt "GroupName" x.groupName] + ofValue v := do + let groupId ← v.opt "GroupId" + let groupName ← v.opt "GroupName" + return { groupId, groupName } + +/-- A tag for a public IP address discovered by IPAM. -/ +structure IpamPublicAddressTag where + /-- The tag's key. -/ + key : Option String := none + /-- The tag's value. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPublicAddressTag where + schema := .struct "IpamPublicAddressTag" [({ name := "Key", xmlName := some "key", queryName := some "Key" }, .string), + ({ name := "Value", xmlName := some "value", queryName := some "Value" }, .string)] + toValue x := record [putOpt "Key" x.key, putOpt "Value" x.value] + ofValue v := do + let key ← v.opt "Key" + let value ← v.opt "Value" + return { key, value } + +inductive IpamPublicAddressType where + | amazoN_OWNED_CONTIG + | amazoN_OWNED_EIP + | anycasT_IP_LIST_IP + | byoip + | ec2_PUBLIC_IP + | servicE_MANAGED_BYOIP + | servicE_MANAGED_IP +deriving DecidableEq, Repr, Inhabited + +def IpamPublicAddressType.wire : IpamPublicAddressType → String + | .amazoN_OWNED_CONTIG => "amazon-owned-contig" + | .amazoN_OWNED_EIP => "amazon-owned-eip" + | .anycasT_IP_LIST_IP => "anycast-ip-list-ip" + | .byoip => "byoip" + | .ec2_PUBLIC_IP => "ec2-public-ip" + | .servicE_MANAGED_BYOIP => "service-managed-byoip" + | .servicE_MANAGED_IP => "service-managed-ip" + +def IpamPublicAddressType.wireValues : List (String × IpamPublicAddressType) := [ + ("amazon-owned-contig", .amazoN_OWNED_CONTIG), + ("amazon-owned-eip", .amazoN_OWNED_EIP), + ("anycast-ip-list-ip", .anycasT_IP_LIST_IP), + ("byoip", .byoip), + ("ec2-public-ip", .ec2_PUBLIC_IP), + ("service-managed-byoip", .servicE_MANAGED_BYOIP), + ("service-managed-ip", .servicE_MANAGED_IP)] + +def IpamPublicAddressType.ofWire (text : String) : Except String IpamPublicAddressType := + match List.find? (·.1 == text) IpamPublicAddressType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamPublicAddressType has no value {text}" + +instance : Key IpamPublicAddressType := ⟨IpamPublicAddressType.wire, IpamPublicAddressType.ofWire⟩ + +instance : Shape IpamPublicAddressType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamPublicAddressType.ofWire text + | _ => .error "expected a string" + +inductive IpamResourceCidrIpSource where + | amazon + | byoip + | none +deriving DecidableEq, Repr, Inhabited + +def IpamResourceCidrIpSource.wire : IpamResourceCidrIpSource → String + | .amazon => "amazon" + | .byoip => "byoip" + | .none => "none" + +def IpamResourceCidrIpSource.wireValues : List (String × IpamResourceCidrIpSource) := [ + ("amazon", .amazon), + ("byoip", .byoip), + ("none", .none)] + +def IpamResourceCidrIpSource.ofWire (text : String) : Except String IpamResourceCidrIpSource := + match List.find? (·.1 == text) IpamResourceCidrIpSource.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamResourceCidrIpSource has no value {text}" + +instance : Key IpamResourceCidrIpSource := ⟨IpamResourceCidrIpSource.wire, IpamResourceCidrIpSource.ofWire⟩ + +instance : Shape IpamResourceCidrIpSource where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamResourceCidrIpSource.ofWire text + | _ => .error "expected a string" + +inductive IpamResourceDiscoveryAssociationState where + | associatE_COMPLETE + | associatE_FAILED + | associatE_IN_PROGRESS + | disassociatE_COMPLETE + | disassociatE_FAILED + | disassociatE_IN_PROGRESS + | isolatE_COMPLETE + | isolatE_IN_PROGRESS + | restorE_IN_PROGRESS +deriving DecidableEq, Repr, Inhabited + +def IpamResourceDiscoveryAssociationState.wire : IpamResourceDiscoveryAssociationState → String + | .associatE_COMPLETE => "associate-complete" + | .associatE_FAILED => "associate-failed" + | .associatE_IN_PROGRESS => "associate-in-progress" + | .disassociatE_COMPLETE => "disassociate-complete" + | .disassociatE_FAILED => "disassociate-failed" + | .disassociatE_IN_PROGRESS => "disassociate-in-progress" + | .isolatE_COMPLETE => "isolate-complete" + | .isolatE_IN_PROGRESS => "isolate-in-progress" + | .restorE_IN_PROGRESS => "restore-in-progress" + +def IpamResourceDiscoveryAssociationState.wireValues : List (String × IpamResourceDiscoveryAssociationState) := [ + ("associate-complete", .associatE_COMPLETE), + ("associate-failed", .associatE_FAILED), + ("associate-in-progress", .associatE_IN_PROGRESS), + ("disassociate-complete", .disassociatE_COMPLETE), + ("disassociate-failed", .disassociatE_FAILED), + ("disassociate-in-progress", .disassociatE_IN_PROGRESS), + ("isolate-complete", .isolatE_COMPLETE), + ("isolate-in-progress", .isolatE_IN_PROGRESS), + ("restore-in-progress", .restorE_IN_PROGRESS)] + +def IpamResourceDiscoveryAssociationState.ofWire (text : String) : Except String IpamResourceDiscoveryAssociationState := + match List.find? (·.1 == text) IpamResourceDiscoveryAssociationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamResourceDiscoveryAssociationState has no value {text}" + +instance : Key IpamResourceDiscoveryAssociationState := ⟨IpamResourceDiscoveryAssociationState.wire, IpamResourceDiscoveryAssociationState.ofWire⟩ + +instance : Shape IpamResourceDiscoveryAssociationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamResourceDiscoveryAssociationState.ofWire text + | _ => .error "expected a string" + +inductive IpamResourceDiscoveryState where + | creatE_COMPLETE + | creatE_FAILED + | creatE_IN_PROGRESS + | deletE_COMPLETE + | deletE_FAILED + | deletE_IN_PROGRESS + | isolatE_COMPLETE + | isolatE_IN_PROGRESS + | modifY_COMPLETE + | modifY_FAILED + | modifY_IN_PROGRESS + | restorE_IN_PROGRESS +deriving DecidableEq, Repr, Inhabited + +def IpamResourceDiscoveryState.wire : IpamResourceDiscoveryState → String + | .creatE_COMPLETE => "create-complete" + | .creatE_FAILED => "create-failed" + | .creatE_IN_PROGRESS => "create-in-progress" + | .deletE_COMPLETE => "delete-complete" + | .deletE_FAILED => "delete-failed" + | .deletE_IN_PROGRESS => "delete-in-progress" + | .isolatE_COMPLETE => "isolate-complete" + | .isolatE_IN_PROGRESS => "isolate-in-progress" + | .modifY_COMPLETE => "modify-complete" + | .modifY_FAILED => "modify-failed" + | .modifY_IN_PROGRESS => "modify-in-progress" + | .restorE_IN_PROGRESS => "restore-in-progress" + +def IpamResourceDiscoveryState.wireValues : List (String × IpamResourceDiscoveryState) := [ + ("create-complete", .creatE_COMPLETE), + ("create-failed", .creatE_FAILED), + ("create-in-progress", .creatE_IN_PROGRESS), + ("delete-complete", .deletE_COMPLETE), + ("delete-failed", .deletE_FAILED), + ("delete-in-progress", .deletE_IN_PROGRESS), + ("isolate-complete", .isolatE_COMPLETE), + ("isolate-in-progress", .isolatE_IN_PROGRESS), + ("modify-complete", .modifY_COMPLETE), + ("modify-failed", .modifY_FAILED), + ("modify-in-progress", .modifY_IN_PROGRESS), + ("restore-in-progress", .restorE_IN_PROGRESS)] + +def IpamResourceDiscoveryState.ofWire (text : String) : Except String IpamResourceDiscoveryState := + match List.find? (·.1 == text) IpamResourceDiscoveryState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamResourceDiscoveryState has no value {text}" + +instance : Key IpamResourceDiscoveryState := ⟨IpamResourceDiscoveryState.wire, IpamResourceDiscoveryState.ofWire⟩ + +instance : Shape IpamResourceDiscoveryState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamResourceDiscoveryState.ofWire text + | _ => .error "expected a string" + +/-- The key/value combination of a tag assigned to the resource. -/ +structure IpamResourceTag where + /-- The key of a tag assigned to the resource. -/ + key : Option String := none + /-- The value of the tag. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamResourceTag where + schema := .struct "IpamResourceTag" [({ name := "Key", xmlName := some "key", queryName := some "Key" }, .string), + ({ name := "Value", xmlName := some "value", queryName := some "Value" }, .string)] + toValue x := record [putOpt "Key" x.key, putOpt "Value" x.value] + ofValue v := do + let key ← v.opt "Key" + let value ← v.opt "Value" + return { key, value } + +inductive IpamResourceType where + | anycast_ip_list + | eip + | eni + | ipv6_pool + | public_ipv4_pool + | subnet + | vpc +deriving DecidableEq, Repr, Inhabited + +def IpamResourceType.wire : IpamResourceType → String + | .anycast_ip_list => "anycast-ip-list" + | .eip => "eip" + | .eni => "eni" + | .ipv6_pool => "ipv6-pool" + | .public_ipv4_pool => "public-ipv4-pool" + | .subnet => "subnet" + | .vpc => "vpc" + +def IpamResourceType.wireValues : List (String × IpamResourceType) := [ + ("anycast-ip-list", .anycast_ip_list), + ("eip", .eip), + ("eni", .eni), + ("ipv6-pool", .ipv6_pool), + ("public-ipv4-pool", .public_ipv4_pool), + ("subnet", .subnet), + ("vpc", .vpc)] + +def IpamResourceType.ofWire (text : String) : Except String IpamResourceType := + match List.find? (·.1 == text) IpamResourceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamResourceType has no value {text}" + +instance : Key IpamResourceType := ⟨IpamResourceType.wire, IpamResourceType.ofWire⟩ + +instance : Shape IpamResourceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamResourceType.ofWire text + | _ => .error "expected a string" + +/-- Contains information about a Route Origin Authorization (ROA) published in the RPKI. -/ +structure IpamRouteOriginAuthorization where + /-- The Autonomous System Number (ASN) authorized by the ROA. -/ + asn : Option String := none + /-- The expiration date of the ROA. -/ + expiration : Option Timestamp := none + /-- Specifies whether the ROA matches the route announcement. -/ + «match» : Option Bool := none + /-- The maximum prefix length that the ASN is authorized to announce. -/ + maxLength : Option Int := none + /-- The IP address prefix authorized by the ROA in CIDR notation. -/ + «prefix» : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamRouteOriginAuthorization where + schema := .struct "IpamRouteOriginAuthorization" [({ name := "Asn", xmlName := some "asn", queryName := some "Asn" }, .string), + ({ name := "Expiration", xmlName := some "expiration", queryName := some "Expiration" }, (.time none)), + ({ name := "Match", xmlName := some "match", queryName := some "Match" }, .bool), + ({ name := "MaxLength", xmlName := some "maxLength", queryName := some "MaxLength" }, .int), + ({ name := "Prefix", xmlName := some "prefix", queryName := some "Prefix" }, .string)] + toValue x := record [putOpt "Asn" x.asn, putOpt "Expiration" x.expiration, putOpt "Match" x.«match», putOpt "MaxLength" x.maxLength, putOpt "Prefix" x.«prefix»] + ofValue v := do + let asn ← v.opt "Asn" + let expiration ← v.opt "Expiration" + let «match» ← v.opt "Match" + let maxLength ← v.opt "MaxLength" + let «prefix» ← v.opt "Prefix" + return { asn, expiration, «match», maxLength, «prefix» } + +/-- Contains information about a Route Origin Authorization (ROA) currently published in the RPKI. -/ +structure IpamRouteOriginAuthorizationInfo where + /-- The Autonomous System Number (ASN) authorized to originate the prefix. -/ + asn : Option String := none + /-- The IP address prefix in CIDR notation authorized by the ROA. -/ + cidr : Option String := none + /-- The maximum prefix length that the ASN is authorized to announce. -/ + maxLength : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamRouteOriginAuthorizationInfo where + schema := .struct "IpamRouteOriginAuthorizationInfo" [({ name := "Asn", xmlName := some "asn", queryName := some "Asn" }, .string), + ({ name := "Cidr", xmlName := some "cidr", queryName := some "Cidr" }, .string), + ({ name := "MaxLength", xmlName := some "maxLength", queryName := some "MaxLength" }, .int)] + toValue x := record [putOpt "Asn" x.asn, putOpt "Cidr" x.cidr, putOpt "MaxLength" x.maxLength] + ofValue v := do + let asn ← v.opt "Asn" + let cidr ← v.opt "Cidr" + let maxLength ← v.opt "MaxLength" + return { asn, cidr, maxLength } + +/-- Contains information about an overlapping route detected for a BYOIP prefix. -/ +structure IpamRouteOverlap where + /-- The ASN originating the overlapping route. -/ + asn : Option String := none + /-- The time when the overlap was detected. -/ + detectedAt : Option Timestamp := none + /-- The overlapping IP address prefix in CIDR notation. -/ + «prefix» : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamRouteOverlap where + schema := .struct "IpamRouteOverlap" [({ name := "Asn", xmlName := some "asn", queryName := some "Asn" }, .string), + ({ name := "DetectedAt", xmlName := some "detectedAt", queryName := some "DetectedAt" }, (.time none)), + ({ name := "Prefix", xmlName := some "prefix", queryName := some "Prefix" }, .string)] + toValue x := record [putOpt "Asn" x.asn, putOpt "DetectedAt" x.detectedAt, putOpt "Prefix" x.«prefix»] + ofValue v := do + let asn ← v.opt "Asn" + let detectedAt ← v.opt "DetectedAt" + let «prefix» ← v.opt "Prefix" + return { asn, detectedAt, «prefix» } + +/-- The state of a routing policy registration delta. -/ +inductive IpamRoutingPolicyRegistrationDeltaState where + | failed + | pending + | published +deriving DecidableEq, Repr, Inhabited + +def IpamRoutingPolicyRegistrationDeltaState.wire : IpamRoutingPolicyRegistrationDeltaState → String + | .failed => "failed" + | .pending => "pending" + | .published => "published" + +def IpamRoutingPolicyRegistrationDeltaState.wireValues : List (String × IpamRoutingPolicyRegistrationDeltaState) := [ + ("failed", .failed), + ("pending", .pending), + ("published", .published)] + +def IpamRoutingPolicyRegistrationDeltaState.ofWire (text : String) : Except String IpamRoutingPolicyRegistrationDeltaState := + match List.find? (·.1 == text) IpamRoutingPolicyRegistrationDeltaState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamRoutingPolicyRegistrationDeltaState has no value {text}" + +instance : Key IpamRoutingPolicyRegistrationDeltaState := ⟨IpamRoutingPolicyRegistrationDeltaState.wire, IpamRoutingPolicyRegistrationDeltaState.ofWire⟩ + +instance : Shape IpamRoutingPolicyRegistrationDeltaState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamRoutingPolicyRegistrationDeltaState.ofWire text + | _ => .error "expected a string" + +/-- The state of a routing policy registration. -/ +inductive IpamRoutingPolicyRegistrationState where + | activate_failed + | create_complete + | create_in_progress + | delete_complete + | delete_in_progress + | pending_activate + | update_complete + | update_in_progress +deriving DecidableEq, Repr, Inhabited + +def IpamRoutingPolicyRegistrationState.wire : IpamRoutingPolicyRegistrationState → String + | .activate_failed => "activate-failed" + | .create_complete => "create-complete" + | .create_in_progress => "create-in-progress" + | .delete_complete => "delete-complete" + | .delete_in_progress => "delete-in-progress" + | .pending_activate => "pending-activate" + | .update_complete => "update-complete" + | .update_in_progress => "update-in-progress" + +def IpamRoutingPolicyRegistrationState.wireValues : List (String × IpamRoutingPolicyRegistrationState) := [ + ("activate-failed", .activate_failed), + ("create-complete", .create_complete), + ("create-in-progress", .create_in_progress), + ("delete-complete", .delete_complete), + ("delete-in-progress", .delete_in_progress), + ("pending-activate", .pending_activate), + ("update-complete", .update_complete), + ("update-in-progress", .update_in_progress)] + +def IpamRoutingPolicyRegistrationState.ofWire (text : String) : Except String IpamRoutingPolicyRegistrationState := + match List.find? (·.1 == text) IpamRoutingPolicyRegistrationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamRoutingPolicyRegistrationState has no value {text}" + +instance : Key IpamRoutingPolicyRegistrationState := ⟨IpamRoutingPolicyRegistrationState.wire, IpamRoutingPolicyRegistrationState.ofWire⟩ + +instance : Shape IpamRoutingPolicyRegistrationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamRoutingPolicyRegistrationState.ofWire text + | _ => .error "expected a string" + +/-- The RPKI validation status of a BGP route. -/ +inductive IpamRpkiStatus where + | invalid + | unknown + | valid +deriving DecidableEq, Repr, Inhabited + +def IpamRpkiStatus.wire : IpamRpkiStatus → String + | .invalid => "invalid" + | .unknown => "unknown" + | .valid => "valid" + +def IpamRpkiStatus.wireValues : List (String × IpamRpkiStatus) := [ + ("invalid", .invalid), + ("unknown", .unknown), + ("valid", .valid)] + +def IpamRpkiStatus.ofWire (text : String) : Except String IpamRpkiStatus := + match List.find? (·.1 == text) IpamRpkiStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamRpkiStatus has no value {text}" + +instance : Key IpamRpkiStatus := ⟨IpamRpkiStatus.wire, IpamRpkiStatus.ofWire⟩ + +instance : Shape IpamRpkiStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamRpkiStatus.ofWire text + | _ => .error "expected a string" + +/-- The RPKI enforcement strength for route protection. -/ +inductive IpamRpkiStrength where + | permissive + | strict +deriving DecidableEq, Repr, Inhabited + +def IpamRpkiStrength.wire : IpamRpkiStrength → String + | .permissive => "permissive" + | .strict => "strict" + +def IpamRpkiStrength.wireValues : List (String × IpamRpkiStrength) := [ + ("permissive", .permissive), + ("strict", .strict)] + +def IpamRpkiStrength.ofWire (text : String) : Except String IpamRpkiStrength := + match List.find? (·.1 == text) IpamRpkiStrength.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamRpkiStrength has no value {text}" + +instance : Key IpamRpkiStrength := ⟨IpamRpkiStrength.wire, IpamRpkiStrength.ofWire⟩ + +instance : Shape IpamRpkiStrength where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamRpkiStrength.ofWire text + | _ => .error "expected a string" + +inductive IpamScopeExternalAuthorityType where + | infoblox +deriving DecidableEq, Repr, Inhabited + +def IpamScopeExternalAuthorityType.wire : IpamScopeExternalAuthorityType → String + | .infoblox => "infoblox" + +def IpamScopeExternalAuthorityType.wireValues : List (String × IpamScopeExternalAuthorityType) := [ + ("infoblox", .infoblox)] + +def IpamScopeExternalAuthorityType.ofWire (text : String) : Except String IpamScopeExternalAuthorityType := + match List.find? (·.1 == text) IpamScopeExternalAuthorityType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamScopeExternalAuthorityType has no value {text}" + +instance : Key IpamScopeExternalAuthorityType := ⟨IpamScopeExternalAuthorityType.wire, IpamScopeExternalAuthorityType.ofWire⟩ + +instance : Shape IpamScopeExternalAuthorityType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamScopeExternalAuthorityType.ofWire text + | _ => .error "expected a string" + +inductive IpamScopeState where + | create_complete + | create_failed + | create_in_progress + | delete_complete + | delete_failed + | delete_in_progress + | isolate_complete + | isolate_in_progress + | modify_complete + | modify_failed + | modify_in_progress + | restore_in_progress +deriving DecidableEq, Repr, Inhabited + +def IpamScopeState.wire : IpamScopeState → String + | .create_complete => "create-complete" + | .create_failed => "create-failed" + | .create_in_progress => "create-in-progress" + | .delete_complete => "delete-complete" + | .delete_failed => "delete-failed" + | .delete_in_progress => "delete-in-progress" + | .isolate_complete => "isolate-complete" + | .isolate_in_progress => "isolate-in-progress" + | .modify_complete => "modify-complete" + | .modify_failed => "modify-failed" + | .modify_in_progress => "modify-in-progress" + | .restore_in_progress => "restore-in-progress" + +def IpamScopeState.wireValues : List (String × IpamScopeState) := [ + ("create-complete", .create_complete), + ("create-failed", .create_failed), + ("create-in-progress", .create_in_progress), + ("delete-complete", .delete_complete), + ("delete-failed", .delete_failed), + ("delete-in-progress", .delete_in_progress), + ("isolate-complete", .isolate_complete), + ("isolate-in-progress", .isolate_in_progress), + ("modify-complete", .modify_complete), + ("modify-failed", .modify_failed), + ("modify-in-progress", .modify_in_progress), + ("restore-in-progress", .restore_in_progress)] + +def IpamScopeState.ofWire (text : String) : Except String IpamScopeState := + match List.find? (·.1 == text) IpamScopeState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamScopeState has no value {text}" + +instance : Key IpamScopeState := ⟨IpamScopeState.wire, IpamScopeState.ofWire⟩ + +instance : Shape IpamScopeState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamScopeState.ofWire text + | _ => .error "expected a string" + +inductive IpamScopeType where + | «private» + | «public» +deriving DecidableEq, Repr, Inhabited + +def IpamScopeType.wire : IpamScopeType → String + | .«private» => "private" + | .«public» => "public" + +def IpamScopeType.wireValues : List (String × IpamScopeType) := [ + ("private", .«private»), + ("public", .«public»)] + +def IpamScopeType.ofWire (text : String) : Except String IpamScopeType := + match List.find? (·.1 == text) IpamScopeType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamScopeType has no value {text}" + +instance : Key IpamScopeType := ⟨IpamScopeType.wire, IpamScopeType.ofWire⟩ + +instance : Shape IpamScopeType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamScopeType.ofWire text + | _ => .error "expected a string" + +inductive IpamState where + | create_complete + | create_failed + | create_in_progress + | delete_complete + | delete_failed + | delete_in_progress + | isolate_complete + | isolate_in_progress + | modify_complete + | modify_failed + | modify_in_progress + | restore_in_progress +deriving DecidableEq, Repr, Inhabited + +def IpamState.wire : IpamState → String + | .create_complete => "create-complete" + | .create_failed => "create-failed" + | .create_in_progress => "create-in-progress" + | .delete_complete => "delete-complete" + | .delete_failed => "delete-failed" + | .delete_in_progress => "delete-in-progress" + | .isolate_complete => "isolate-complete" + | .isolate_in_progress => "isolate-in-progress" + | .modify_complete => "modify-complete" + | .modify_failed => "modify-failed" + | .modify_in_progress => "modify-in-progress" + | .restore_in_progress => "restore-in-progress" + +def IpamState.wireValues : List (String × IpamState) := [ + ("create-complete", .create_complete), + ("create-failed", .create_failed), + ("create-in-progress", .create_in_progress), + ("delete-complete", .delete_complete), + ("delete-failed", .delete_failed), + ("delete-in-progress", .delete_in_progress), + ("isolate-complete", .isolate_complete), + ("isolate-in-progress", .isolate_in_progress), + ("modify-complete", .modify_complete), + ("modify-failed", .modify_failed), + ("modify-in-progress", .modify_in_progress), + ("restore-in-progress", .restore_in_progress)] + +def IpamState.ofWire (text : String) : Except String IpamState := + match List.find? (·.1 == text) IpamState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamState has no value {text}" + +instance : Key IpamState := ⟨IpamState.wire, IpamState.ofWire⟩ + +instance : Shape IpamState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamState.ofWire text + | _ => .error "expected a string" + +inductive IpamTier where + | advanced + | free +deriving DecidableEq, Repr, Inhabited + +def IpamTier.wire : IpamTier → String + | .advanced => "advanced" + | .free => "free" + +def IpamTier.wireValues : List (String × IpamTier) := [ + ("advanced", .advanced), + ("free", .free)] + +def IpamTier.ofWire (text : String) : Except String IpamTier := + match List.find? (·.1 == text) IpamTier.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IpamTier has no value {text}" + +instance : Key IpamTier := ⟨IpamTier.wire, IpamTier.ofWire⟩ + +instance : Shape IpamTier where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IpamTier.ofWire text + | _ => .error "expected a string" + +/-- Describes an IPv4 prefix. -/ +structure Ipv4PrefixSpecification where + /-- The IPv4 prefix. -/ + ipv4Prefix : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Ipv4PrefixSpecification where + schema := .struct "Ipv4PrefixSpecification" [({ name := "Ipv4Prefix", xmlName := some "ipv4Prefix", queryName := some "Ipv4Prefix" }, .string)] + toValue x := record [putOpt "Ipv4Prefix" x.ipv4Prefix] + ofValue v := do + let ipv4Prefix ← v.opt "Ipv4Prefix" + return { ipv4Prefix } + +/-- Describes the IPv4 prefix option for a network interface. -/ +structure Ipv4PrefixSpecificationRequest where + /-- The IPv4 prefix. -/ + ipv4Prefix : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Ipv4PrefixSpecificationRequest where + schema := .struct "Ipv4PrefixSpecificationRequest" [({ name := "Ipv4Prefix" }, .string)] + toValue x := record [putOpt "Ipv4Prefix" x.ipv4Prefix] + ofValue v := do + let ipv4Prefix ← v.opt "Ipv4Prefix" + return { ipv4Prefix } + +/-- Information about the IPv4 delegated prefixes assigned to a network interface. -/ +structure Ipv4PrefixSpecificationResponse where + /-- The IPv4 delegated prefixes assigned to the network interface. -/ + ipv4Prefix : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Ipv4PrefixSpecificationResponse where + schema := .struct "Ipv4PrefixSpecificationResponse" [({ name := "Ipv4Prefix", xmlName := some "ipv4Prefix", queryName := some "Ipv4Prefix" }, .string)] + toValue x := record [putOpt "Ipv4Prefix" x.ipv4Prefix] + ofValue v := do + let ipv4Prefix ← v.opt "Ipv4Prefix" + return { ipv4Prefix } + +inductive Ipv6AddressAttribute where + | «private» + | «public» +deriving DecidableEq, Repr, Inhabited + +def Ipv6AddressAttribute.wire : Ipv6AddressAttribute → String + | .«private» => "private" + | .«public» => "public" + +def Ipv6AddressAttribute.wireValues : List (String × Ipv6AddressAttribute) := [ + ("private", .«private»), + ("public", .«public»)] + +def Ipv6AddressAttribute.ofWire (text : String) : Except String Ipv6AddressAttribute := + match List.find? (·.1 == text) Ipv6AddressAttribute.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Ipv6AddressAttribute has no value {text}" + +instance : Key Ipv6AddressAttribute := ⟨Ipv6AddressAttribute.wire, Ipv6AddressAttribute.ofWire⟩ + +instance : Shape Ipv6AddressAttribute where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Ipv6AddressAttribute.ofWire text + | _ => .error "expected a string" + +/-- Describes an IPv6 CIDR block association. -/ +structure Ipv6CidrAssociation where + /-- The resource that's associated with the IPv6 CIDR block. -/ + associatedResource : Option String := none + /-- The IPv6 CIDR block. -/ + ipv6Cidr : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Ipv6CidrAssociation where + schema := .struct "Ipv6CidrAssociation" [({ name := "AssociatedResource", xmlName := some "associatedResource", queryName := some "AssociatedResource" }, .string), + ({ name := "Ipv6Cidr", xmlName := some "ipv6Cidr", queryName := some "Ipv6Cidr" }, .string)] + toValue x := record [putOpt "AssociatedResource" x.associatedResource, putOpt "Ipv6Cidr" x.ipv6Cidr] + ofValue v := do + let associatedResource ← v.opt "AssociatedResource" + let ipv6Cidr ← v.opt "Ipv6Cidr" + return { associatedResource, ipv6Cidr } + +/-- Describes an IPv6 CIDR block. -/ +structure Ipv6CidrBlock where + /-- The IPv6 CIDR block. -/ + ipv6CidrBlock : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Ipv6CidrBlock where + schema := .struct "Ipv6CidrBlock" [({ name := "Ipv6CidrBlock", xmlName := some "ipv6CidrBlock", queryName := some "Ipv6CidrBlock" }, .string)] + toValue x := record [putOpt "Ipv6CidrBlock" x.ipv6CidrBlock] + ofValue v := do + let ipv6CidrBlock ← v.opt "Ipv6CidrBlock" + return { ipv6CidrBlock } + +/-- Describes the IPv6 prefix. -/ +structure Ipv6PrefixSpecification where + /-- The IPv6 prefix. -/ + ipv6Prefix : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Ipv6PrefixSpecification where + schema := .struct "Ipv6PrefixSpecification" [({ name := "Ipv6Prefix", xmlName := some "ipv6Prefix", queryName := some "Ipv6Prefix" }, .string)] + toValue x := record [putOpt "Ipv6Prefix" x.ipv6Prefix] + ofValue v := do + let ipv6Prefix ← v.opt "Ipv6Prefix" + return { ipv6Prefix } + +/-- Describes the IPv6 prefix option for a network interface. -/ +structure Ipv6PrefixSpecificationRequest where + /-- The IPv6 prefix. -/ + ipv6Prefix : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Ipv6PrefixSpecificationRequest where + schema := .struct "Ipv6PrefixSpecificationRequest" [({ name := "Ipv6Prefix" }, .string)] + toValue x := record [putOpt "Ipv6Prefix" x.ipv6Prefix] + ofValue v := do + let ipv6Prefix ← v.opt "Ipv6Prefix" + return { ipv6Prefix } + +/-- Information about the IPv6 delegated prefixes assigned to a network interface. -/ +structure Ipv6PrefixSpecificationResponse where + /-- The IPv6 delegated prefixes assigned to the network interface. -/ + ipv6Prefix : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Ipv6PrefixSpecificationResponse where + schema := .struct "Ipv6PrefixSpecificationResponse" [({ name := "Ipv6Prefix", xmlName := some "ipv6Prefix", queryName := some "Ipv6Prefix" }, .string)] + toValue x := record [putOpt "Ipv6Prefix" x.ipv6Prefix] + ofValue v := do + let ipv6Prefix ← v.opt "Ipv6Prefix" + return { ipv6Prefix } + +/-- Describes an IPv6 address range. -/ +structure Ipv6Range where + /-- The IPv6 address range. -/ + cidrIpv6 : Option String := none + /-- A description for the security group rule that references this IPv6 address range. -/ + description : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Ipv6Range where + schema := .struct "Ipv6Range" [({ name := "CidrIpv6", xmlName := some "cidrIpv6", queryName := some "CidrIpv6" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string)] + toValue x := record [putOpt "CidrIpv6" x.cidrIpv6, putOpt "Description" x.description] + ofValue v := do + let cidrIpv6 ← v.opt "CidrIpv6" + let description ← v.opt "Description" + return { cidrIpv6, description } + +inductive Ipv6SupportValue where + | disable + | enable +deriving DecidableEq, Repr, Inhabited + +def Ipv6SupportValue.wire : Ipv6SupportValue → String + | .disable => "disable" + | .enable => "enable" + +def Ipv6SupportValue.wireValues : List (String × Ipv6SupportValue) := [ + ("disable", .disable), + ("enable", .enable)] + +def Ipv6SupportValue.ofWire (text : String) : Except String Ipv6SupportValue := + match List.find? (·.1 == text) Ipv6SupportValue.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Ipv6SupportValue has no value {text}" + +instance : Key Ipv6SupportValue := ⟨Ipv6SupportValue.wire, Ipv6SupportValue.ofWire⟩ + +instance : Shape Ipv6SupportValue where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Ipv6SupportValue.ofWire text + | _ => .error "expected a string" + +inductive KeyFormat where + | pem + | ppk +deriving DecidableEq, Repr, Inhabited + +def KeyFormat.wire : KeyFormat → String + | .pem => "pem" + | .ppk => "ppk" + +def KeyFormat.wireValues : List (String × KeyFormat) := [ + ("pem", .pem), + ("ppk", .ppk)] + +def KeyFormat.ofWire (text : String) : Except String KeyFormat := + match List.find? (·.1 == text) KeyFormat.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"KeyFormat has no value {text}" + +instance : Key KeyFormat := ⟨KeyFormat.wire, KeyFormat.ofWire⟩ + +instance : Shape KeyFormat where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => KeyFormat.ofWire text + | _ => .error "expected a string" + +inductive KeyType where + | ed25519 + | rsa +deriving DecidableEq, Repr, Inhabited + +def KeyType.wire : KeyType → String + | .ed25519 => "ed25519" + | .rsa => "rsa" + +def KeyType.wireValues : List (String × KeyType) := [ + ("ed25519", .ed25519), + ("rsa", .rsa)] + +def KeyType.ofWire (text : String) : Except String KeyType := + match List.find? (·.1 == text) KeyType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"KeyType has no value {text}" + +instance : Key KeyType := ⟨KeyType.wire, KeyType.ofWire⟩ + +instance : Shape KeyType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => KeyType.ofWire text + | _ => .error "expected a string" + +/-- The last error that occurred for a VPC endpoint. -/ +structure LastError where + /-- The error code for the VPC endpoint error. -/ + code : Option String := none + /-- The error message for the VPC endpoint error. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LastError where + schema := .struct "LastError" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, .string), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +inductive LaunchTemplateAutoRecoveryState where + | default + | disabled +deriving DecidableEq, Repr, Inhabited + +def LaunchTemplateAutoRecoveryState.wire : LaunchTemplateAutoRecoveryState → String + | .default => "default" + | .disabled => "disabled" + +def LaunchTemplateAutoRecoveryState.wireValues : List (String × LaunchTemplateAutoRecoveryState) := [ + ("default", .default), + ("disabled", .disabled)] + +def LaunchTemplateAutoRecoveryState.ofWire (text : String) : Except String LaunchTemplateAutoRecoveryState := + match List.find? (·.1 == text) LaunchTemplateAutoRecoveryState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LaunchTemplateAutoRecoveryState has no value {text}" + +instance : Key LaunchTemplateAutoRecoveryState := ⟨LaunchTemplateAutoRecoveryState.wire, LaunchTemplateAutoRecoveryState.ofWire⟩ + +instance : Shape LaunchTemplateAutoRecoveryState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LaunchTemplateAutoRecoveryState.ofWire text + | _ => .error "expected a string" + +/-- Amazon Elastic Inference is no longer available. -/ +structure LaunchTemplateElasticInferenceAccelerator where + /-- The number of elastic inference accelerators to attach to the instance. -/ + count : Option Int := none + /-- The type of elastic inference accelerator. -/ + type : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateElasticInferenceAccelerator where + schema := .struct "LaunchTemplateElasticInferenceAccelerator" [({ name := "Count" }, .int), + ({ name := "Type", required := true }, .string)] + toValue x := record [putOpt "Count" x.count, put "Type" x.type] + ofValue v := do + let count ← v.opt "Count" + let type ← v.req "Type" + return { count, type } + +/-- Amazon Elastic Inference is no longer available. -/ +structure LaunchTemplateElasticInferenceAcceleratorResponse where + /-- The number of elastic inference accelerators to attach to the instance. -/ + count : Option Int := none + /-- The type of elastic inference accelerator. -/ + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateElasticInferenceAcceleratorResponse where + schema := .struct "LaunchTemplateElasticInferenceAcceleratorResponse" [({ name := "Count", xmlName := some "count", queryName := some "Count" }, .int), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, .string)] + toValue x := record [putOpt "Count" x.count, putOpt "Type" x.type] + ofValue v := do + let count ← v.opt "Count" + let type ← v.opt "Type" + return { count, type } + +/-- ENA Express is compatible with both TCP and UDP transport protocols. -/ +structure LaunchTemplateEnaSrdUdpSpecification where + /-- Indicates whether UDP traffic to and from the instance uses ENA Express. -/ + enaSrdUdpEnabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateEnaSrdUdpSpecification where + schema := .struct "LaunchTemplateEnaSrdUdpSpecification" [({ name := "EnaSrdUdpEnabled", xmlName := some "enaSrdUdpEnabled", queryName := some "EnaSrdUdpEnabled" }, .bool)] + toValue x := record [putOpt "EnaSrdUdpEnabled" x.enaSrdUdpEnabled] + ofValue v := do + let enaSrdUdpEnabled ← v.opt "EnaSrdUdpEnabled" + return { enaSrdUdpEnabled } + +/-- Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. -/ +structure LaunchTemplateEnclaveOptions where + /-- If this parameter is set to true , the instance is enabled for Amazon Web Services Nitro Enclaves; otherwise, it is not enabled for Amazon Web Services Nitro Enclaves. -/ + enabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateEnclaveOptions where + schema := .struct "LaunchTemplateEnclaveOptions" [({ name := "Enabled", xmlName := some "enabled", queryName := some "Enabled" }, .bool)] + toValue x := record [putOpt "Enabled" x.enabled] + ofValue v := do + let enabled ← v.opt "Enabled" + return { enabled } + +/-- Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. -/ +structure LaunchTemplateEnclaveOptionsRequest where + /-- To enable the instance for Amazon Web Services Nitro Enclaves, set this parameter to true . -/ + enabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateEnclaveOptionsRequest where + schema := .struct "LaunchTemplateEnclaveOptionsRequest" [({ name := "Enabled" }, .bool)] + toValue x := record [putOpt "Enabled" x.enabled] + ofValue v := do + let enabled ← v.opt "Enabled" + return { enabled } + +inductive LaunchTemplateErrorCode where + | launcH_TEMPLATE_ID_DOES_NOT_EXIST + | launcH_TEMPLATE_ID_MALFORMED + | launcH_TEMPLATE_NAME_DOES_NOT_EXIST + | launcH_TEMPLATE_NAME_MALFORMED + | launcH_TEMPLATE_VERSION_DOES_NOT_EXIST + | unexpecteD_ERROR +deriving DecidableEq, Repr, Inhabited + +def LaunchTemplateErrorCode.wire : LaunchTemplateErrorCode → String + | .launcH_TEMPLATE_ID_DOES_NOT_EXIST => "launchTemplateIdDoesNotExist" + | .launcH_TEMPLATE_ID_MALFORMED => "launchTemplateIdMalformed" + | .launcH_TEMPLATE_NAME_DOES_NOT_EXIST => "launchTemplateNameDoesNotExist" + | .launcH_TEMPLATE_NAME_MALFORMED => "launchTemplateNameMalformed" + | .launcH_TEMPLATE_VERSION_DOES_NOT_EXIST => "launchTemplateVersionDoesNotExist" + | .unexpecteD_ERROR => "unexpectedError" + +def LaunchTemplateErrorCode.wireValues : List (String × LaunchTemplateErrorCode) := [ + ("launchTemplateIdDoesNotExist", .launcH_TEMPLATE_ID_DOES_NOT_EXIST), + ("launchTemplateIdMalformed", .launcH_TEMPLATE_ID_MALFORMED), + ("launchTemplateNameDoesNotExist", .launcH_TEMPLATE_NAME_DOES_NOT_EXIST), + ("launchTemplateNameMalformed", .launcH_TEMPLATE_NAME_MALFORMED), + ("launchTemplateVersionDoesNotExist", .launcH_TEMPLATE_VERSION_DOES_NOT_EXIST), + ("unexpectedError", .unexpecteD_ERROR)] + +def LaunchTemplateErrorCode.ofWire (text : String) : Except String LaunchTemplateErrorCode := + match List.find? (·.1 == text) LaunchTemplateErrorCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LaunchTemplateErrorCode has no value {text}" + +instance : Key LaunchTemplateErrorCode := ⟨LaunchTemplateErrorCode.wire, LaunchTemplateErrorCode.ofWire⟩ + +instance : Shape LaunchTemplateErrorCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LaunchTemplateErrorCode.ofWire text + | _ => .error "expected a string" + +/-- Indicates whether an instance is configured for hibernation. -/ +structure LaunchTemplateHibernationOptions where + /-- If this parameter is set to true , the instance is enabled for hibernation; otherwise, it is not enabled for hibernation. -/ + configured : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateHibernationOptions where + schema := .struct "LaunchTemplateHibernationOptions" [({ name := "Configured", xmlName := some "configured", queryName := some "Configured" }, .bool)] + toValue x := record [putOpt "Configured" x.configured] + ofValue v := do + let configured ← v.opt "Configured" + return { configured } + +/-- Indicates whether the instance is configured for hibernation. -/ +structure LaunchTemplateHibernationOptionsRequest where + /-- If you set this parameter to true , the instance is enabled for hibernation. -/ + configured : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateHibernationOptionsRequest where + schema := .struct "LaunchTemplateHibernationOptionsRequest" [({ name := "Configured" }, .bool)] + toValue x := record [putOpt "Configured" x.configured] + ofValue v := do + let configured ← v.opt "Configured" + return { configured } + +inductive LaunchTemplateHttpTokensState where + | optional + | required +deriving DecidableEq, Repr, Inhabited + +def LaunchTemplateHttpTokensState.wire : LaunchTemplateHttpTokensState → String + | .optional => "optional" + | .required => "required" + +def LaunchTemplateHttpTokensState.wireValues : List (String × LaunchTemplateHttpTokensState) := [ + ("optional", .optional), + ("required", .required)] + +def LaunchTemplateHttpTokensState.ofWire (text : String) : Except String LaunchTemplateHttpTokensState := + match List.find? (·.1 == text) LaunchTemplateHttpTokensState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LaunchTemplateHttpTokensState has no value {text}" + +instance : Key LaunchTemplateHttpTokensState := ⟨LaunchTemplateHttpTokensState.wire, LaunchTemplateHttpTokensState.ofWire⟩ + +instance : Shape LaunchTemplateHttpTokensState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LaunchTemplateHttpTokensState.ofWire text + | _ => .error "expected a string" + +/-- Describes an IAM instance profile. -/ +structure LaunchTemplateIamInstanceProfileSpecification where + /-- The Amazon Resource Name (ARN) of the instance profile. -/ + arn : Option String := none + /-- The name of the instance profile. -/ + name : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateIamInstanceProfileSpecification where + schema := .struct "LaunchTemplateIamInstanceProfileSpecification" [({ name := "Arn", xmlName := some "arn", queryName := some "Arn" }, .string), + ({ name := "Name", xmlName := some "name", queryName := some "Name" }, .string)] + toValue x := record [putOpt "Arn" x.arn, putOpt "Name" x.name] + ofValue v := do + let arn ← v.opt "Arn" + let name ← v.opt "Name" + return { arn, name } + +/-- An IAM instance profile. -/ +structure LaunchTemplateIamInstanceProfileSpecificationRequest where + /-- The Amazon Resource Name (ARN) of the instance profile. -/ + arn : Option String := none + /-- The name of the instance profile. -/ + name : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateIamInstanceProfileSpecificationRequest where + schema := .struct "LaunchTemplateIamInstanceProfileSpecificationRequest" [({ name := "Arn" }, .string), + ({ name := "Name" }, .string)] + toValue x := record [putOpt "Arn" x.arn, putOpt "Name" x.name] + ofValue v := do + let arn ← v.opt "Arn" + let name ← v.opt "Name" + return { arn, name } + +inductive LaunchTemplateInstanceMetadataEndpointState where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def LaunchTemplateInstanceMetadataEndpointState.wire : LaunchTemplateInstanceMetadataEndpointState → String + | .disabled => "disabled" + | .enabled => "enabled" + +def LaunchTemplateInstanceMetadataEndpointState.wireValues : List (String × LaunchTemplateInstanceMetadataEndpointState) := [ + ("disabled", .disabled), + ("enabled", .enabled)] + +def LaunchTemplateInstanceMetadataEndpointState.ofWire (text : String) : Except String LaunchTemplateInstanceMetadataEndpointState := + match List.find? (·.1 == text) LaunchTemplateInstanceMetadataEndpointState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LaunchTemplateInstanceMetadataEndpointState has no value {text}" + +instance : Key LaunchTemplateInstanceMetadataEndpointState := ⟨LaunchTemplateInstanceMetadataEndpointState.wire, LaunchTemplateInstanceMetadataEndpointState.ofWire⟩ + +instance : Shape LaunchTemplateInstanceMetadataEndpointState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LaunchTemplateInstanceMetadataEndpointState.ofWire text + | _ => .error "expected a string" + +inductive LaunchTemplateInstanceMetadataOptionsState where + | applied + | pending +deriving DecidableEq, Repr, Inhabited + +def LaunchTemplateInstanceMetadataOptionsState.wire : LaunchTemplateInstanceMetadataOptionsState → String + | .applied => "applied" + | .pending => "pending" + +def LaunchTemplateInstanceMetadataOptionsState.wireValues : List (String × LaunchTemplateInstanceMetadataOptionsState) := [ + ("applied", .applied), + ("pending", .pending)] + +def LaunchTemplateInstanceMetadataOptionsState.ofWire (text : String) : Except String LaunchTemplateInstanceMetadataOptionsState := + match List.find? (·.1 == text) LaunchTemplateInstanceMetadataOptionsState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LaunchTemplateInstanceMetadataOptionsState has no value {text}" + +instance : Key LaunchTemplateInstanceMetadataOptionsState := ⟨LaunchTemplateInstanceMetadataOptionsState.wire, LaunchTemplateInstanceMetadataOptionsState.ofWire⟩ + +instance : Shape LaunchTemplateInstanceMetadataOptionsState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LaunchTemplateInstanceMetadataOptionsState.ofWire text + | _ => .error "expected a string" + +inductive LaunchTemplateInstanceMetadataProtocolIpv6 where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def LaunchTemplateInstanceMetadataProtocolIpv6.wire : LaunchTemplateInstanceMetadataProtocolIpv6 → String + | .disabled => "disabled" + | .enabled => "enabled" + +def LaunchTemplateInstanceMetadataProtocolIpv6.wireValues : List (String × LaunchTemplateInstanceMetadataProtocolIpv6) := [ + ("disabled", .disabled), + ("enabled", .enabled)] + +def LaunchTemplateInstanceMetadataProtocolIpv6.ofWire (text : String) : Except String LaunchTemplateInstanceMetadataProtocolIpv6 := + match List.find? (·.1 == text) LaunchTemplateInstanceMetadataProtocolIpv6.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LaunchTemplateInstanceMetadataProtocolIpv6 has no value {text}" + +instance : Key LaunchTemplateInstanceMetadataProtocolIpv6 := ⟨LaunchTemplateInstanceMetadataProtocolIpv6.wire, LaunchTemplateInstanceMetadataProtocolIpv6.ofWire⟩ + +instance : Shape LaunchTemplateInstanceMetadataProtocolIpv6 where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LaunchTemplateInstanceMetadataProtocolIpv6.ofWire text + | _ => .error "expected a string" + +inductive LaunchTemplateInstanceMetadataTagsState where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def LaunchTemplateInstanceMetadataTagsState.wire : LaunchTemplateInstanceMetadataTagsState → String + | .disabled => "disabled" + | .enabled => "enabled" + +def LaunchTemplateInstanceMetadataTagsState.wireValues : List (String × LaunchTemplateInstanceMetadataTagsState) := [ + ("disabled", .disabled), + ("enabled", .enabled)] + +def LaunchTemplateInstanceMetadataTagsState.ofWire (text : String) : Except String LaunchTemplateInstanceMetadataTagsState := + match List.find? (·.1 == text) LaunchTemplateInstanceMetadataTagsState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LaunchTemplateInstanceMetadataTagsState has no value {text}" + +instance : Key LaunchTemplateInstanceMetadataTagsState := ⟨LaunchTemplateInstanceMetadataTagsState.wire, LaunchTemplateInstanceMetadataTagsState.ofWire⟩ + +instance : Shape LaunchTemplateInstanceMetadataTagsState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LaunchTemplateInstanceMetadataTagsState.ofWire text + | _ => .error "expected a string" + +/-- Describes a license configuration. -/ +structure LaunchTemplateLicenseConfiguration where + /-- The Amazon Resource Name (ARN) of the license configuration. -/ + licenseConfigurationArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateLicenseConfiguration where + schema := .struct "LaunchTemplateLicenseConfiguration" [({ name := "LicenseConfigurationArn", xmlName := some "licenseConfigurationArn", queryName := some "LicenseConfigurationArn" }, .string)] + toValue x := record [putOpt "LicenseConfigurationArn" x.licenseConfigurationArn] + ofValue v := do + let licenseConfigurationArn ← v.opt "LicenseConfigurationArn" + return { licenseConfigurationArn } + +/-- Describes a license configuration. -/ +structure LaunchTemplateLicenseConfigurationRequest where + /-- The Amazon Resource Name (ARN) of the license configuration. -/ + licenseConfigurationArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateLicenseConfigurationRequest where + schema := .struct "LaunchTemplateLicenseConfigurationRequest" [({ name := "LicenseConfigurationArn" }, .string)] + toValue x := record [putOpt "LicenseConfigurationArn" x.licenseConfigurationArn] + ofValue v := do + let licenseConfigurationArn ← v.opt "LicenseConfigurationArn" + return { licenseConfigurationArn } + +/-- Describes the launch template to use. -/ +structure LaunchTemplateSpecification where + /-- The ID of the launch template. -/ + launchTemplateId : Option String := none + /-- The name of the launch template. -/ + launchTemplateName : Option String := none + /-- The launch template version number, $Latest , or $Default . -/ + version : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateSpecification where + schema := .struct "LaunchTemplateSpecification" [({ name := "LaunchTemplateId" }, .string), + ({ name := "LaunchTemplateName" }, .string), + ({ name := "Version" }, .string)] + toValue x := record [putOpt "LaunchTemplateId" x.launchTemplateId, putOpt "LaunchTemplateName" x.launchTemplateName, putOpt "Version" x.version] + ofValue v := do + let launchTemplateId ← v.opt "LaunchTemplateId" + let launchTemplateName ← v.opt "LaunchTemplateName" + let version ← v.opt "Version" + return { launchTemplateId, launchTemplateName, version } + +/-- Describes the monitoring for the instance. -/ +structure LaunchTemplatesMonitoring where + /-- Indicates whether detailed monitoring is enabled. -/ + enabled : Option Bool := none + /-- The IDs of the metric categories to associate with the instance. -/ + metricCategoryIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplatesMonitoring where + schema := .struct "LaunchTemplatesMonitoring" [({ name := "Enabled", xmlName := some "enabled", queryName := some "Enabled" }, .bool), + ({ name := "MetricCategoryIds", xmlName := some "metricCategoryIdSet", queryName := some "MetricCategoryIdSet" }, (.list .string "item"))] + toValue x := record [putOpt "Enabled" x.enabled, putOpt "MetricCategoryIds" x.metricCategoryIds] + ofValue v := do + let enabled ← v.opt "Enabled" + let metricCategoryIds ← v.opt "MetricCategoryIds" + return { enabled, metricCategoryIds } + +/-- Describes the monitoring for the instance. -/ +structure LaunchTemplatesMonitoringRequest where + /-- Specify true to enable detailed monitoring. -/ + enabled : Option Bool := none + /-- The IDs of the metric categories to associate with the instance. -/ + metricCategoryIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplatesMonitoringRequest where + schema := .struct "LaunchTemplatesMonitoringRequest" [({ name := "Enabled" }, .bool), + ({ name := "MetricCategoryIds", xmlName := some "MetricCategoryId" }, (.list .string "item"))] + toValue x := record [putOpt "Enabled" x.enabled, putOpt "MetricCategoryIds" x.metricCategoryIds] + ofValue v := do + let enabled ← v.opt "Enabled" + let metricCategoryIds ← v.opt "MetricCategoryIds" + return { enabled, metricCategoryIds } + +/-- Describes a license configuration. -/ +structure LicenseConfiguration where + /-- The Amazon Resource Name (ARN) of the license configuration. -/ + licenseConfigurationArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LicenseConfiguration where + schema := .struct "LicenseConfiguration" [({ name := "LicenseConfigurationArn", xmlName := some "licenseConfigurationArn", queryName := some "LicenseConfigurationArn" }, .string)] + toValue x := record [putOpt "LicenseConfigurationArn" x.licenseConfigurationArn] + ofValue v := do + let licenseConfigurationArn ← v.opt "LicenseConfigurationArn" + return { licenseConfigurationArn } + +/-- Describes a license configuration. -/ +structure LicenseConfigurationRequest where + /-- The Amazon Resource Name (ARN) of the license configuration. -/ + licenseConfigurationArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LicenseConfigurationRequest where + schema := .struct "LicenseConfigurationRequest" [({ name := "LicenseConfigurationArn" }, .string)] + toValue x := record [putOpt "LicenseConfigurationArn" x.licenseConfigurationArn] + ofValue v := do + let licenseConfigurationArn ← v.opt "LicenseConfigurationArn" + return { licenseConfigurationArn } + +structure ListImagesInRecycleBinRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the AMIs to list. -/ + imageIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListImagesInRecycleBinRequest where + schema := .struct "ListImagesInRecycleBinRequest" [({ name := "DryRun" }, .bool), + ({ name := "ImageIds", xmlName := some "ImageId" }, (.list .string "ImageId")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "ImageIds" x.imageIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let imageIds ← v.opt "ImageIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, imageIds, maxResults, nextToken } + +structure ListSnapshotsInRecycleBinRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The IDs of the snapshots to list. -/ + snapshotIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListSnapshotsInRecycleBinRequest where + schema := .struct "ListSnapshotsInRecycleBinRequest" [({ name := "DryRun" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "SnapshotIds", xmlName := some "SnapshotId" }, (.list .string "SnapshotId"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "SnapshotIds" x.snapshotIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let snapshotIds ← v.opt "SnapshotIds" + return { dryRun, maxResults, nextToken, snapshotIds } + +structure ListVolumesInRecycleBinRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The IDs of the volumes to list. -/ + volumeIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListVolumesInRecycleBinRequest where + schema := .struct "ListVolumesInRecycleBinRequest" [({ name := "DryRun" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "VolumeIds", xmlName := some "VolumeId" }, (.list .string "VolumeId"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "VolumeIds" x.volumeIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let volumeIds ← v.opt "VolumeIds" + return { dryRun, maxResults, nextToken, volumeIds } + +inductive ListingState where + | available + | cancelled + | pending + | sold +deriving DecidableEq, Repr, Inhabited + +def ListingState.wire : ListingState → String + | .available => "available" + | .cancelled => "cancelled" + | .pending => "pending" + | .sold => "sold" + +def ListingState.wireValues : List (String × ListingState) := [ + ("available", .available), + ("cancelled", .cancelled), + ("pending", .pending), + ("sold", .sold)] + +def ListingState.ofWire (text : String) : Except String ListingState := + match List.find? (·.1 == text) ListingState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ListingState has no value {text}" + +instance : Key ListingState := ⟨ListingState.wire, ListingState.ofWire⟩ + +instance : Shape ListingState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ListingState.ofWire text + | _ => .error "expected a string" + +inductive ListingStatus where + | active + | cancelled + | closed + | pending +deriving DecidableEq, Repr, Inhabited + +def ListingStatus.wire : ListingStatus → String + | .active => "active" + | .cancelled => "cancelled" + | .closed => "closed" + | .pending => "pending" + +def ListingStatus.wireValues : List (String × ListingStatus) := [ + ("active", .active), + ("cancelled", .cancelled), + ("closed", .closed), + ("pending", .pending)] + +def ListingStatus.ofWire (text : String) : Except String ListingStatus := + match List.find? (·.1 == text) ListingStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ListingStatus has no value {text}" + +instance : Key ListingStatus := ⟨ListingStatus.wire, ListingStatus.ofWire⟩ + +instance : Shape ListingStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ListingStatus.ofWire text + | _ => .error "expected a string" + +inductive LocalGatewayRouteState where + | active + | blackhole + | deleted + | deleting + | pending +deriving DecidableEq, Repr, Inhabited + +def LocalGatewayRouteState.wire : LocalGatewayRouteState → String + | .active => "active" + | .blackhole => "blackhole" + | .deleted => "deleted" + | .deleting => "deleting" + | .pending => "pending" + +def LocalGatewayRouteState.wireValues : List (String × LocalGatewayRouteState) := [ + ("active", .active), + ("blackhole", .blackhole), + ("deleted", .deleted), + ("deleting", .deleting), + ("pending", .pending)] + +def LocalGatewayRouteState.ofWire (text : String) : Except String LocalGatewayRouteState := + match List.find? (·.1 == text) LocalGatewayRouteState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LocalGatewayRouteState has no value {text}" + +instance : Key LocalGatewayRouteState := ⟨LocalGatewayRouteState.wire, LocalGatewayRouteState.ofWire⟩ + +instance : Shape LocalGatewayRouteState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LocalGatewayRouteState.ofWire text + | _ => .error "expected a string" + +inductive LocalGatewayRouteTableMode where + | coip + | direct_vpc_routing +deriving DecidableEq, Repr, Inhabited + +def LocalGatewayRouteTableMode.wire : LocalGatewayRouteTableMode → String + | .coip => "coip" + | .direct_vpc_routing => "direct-vpc-routing" + +def LocalGatewayRouteTableMode.wireValues : List (String × LocalGatewayRouteTableMode) := [ + ("coip", .coip), + ("direct-vpc-routing", .direct_vpc_routing)] + +def LocalGatewayRouteTableMode.ofWire (text : String) : Except String LocalGatewayRouteTableMode := + match List.find? (·.1 == text) LocalGatewayRouteTableMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LocalGatewayRouteTableMode has no value {text}" + +instance : Key LocalGatewayRouteTableMode := ⟨LocalGatewayRouteTableMode.wire, LocalGatewayRouteTableMode.ofWire⟩ + +instance : Shape LocalGatewayRouteTableMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LocalGatewayRouteTableMode.ofWire text + | _ => .error "expected a string" + +inductive LocalGatewayRouteType where + | propagated + | static +deriving DecidableEq, Repr, Inhabited + +def LocalGatewayRouteType.wire : LocalGatewayRouteType → String + | .propagated => "propagated" + | .static => "static" + +def LocalGatewayRouteType.wireValues : List (String × LocalGatewayRouteType) := [ + ("propagated", .propagated), + ("static", .static)] + +def LocalGatewayRouteType.ofWire (text : String) : Except String LocalGatewayRouteType := + match List.find? (·.1 == text) LocalGatewayRouteType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LocalGatewayRouteType has no value {text}" + +instance : Key LocalGatewayRouteType := ⟨LocalGatewayRouteType.wire, LocalGatewayRouteType.ofWire⟩ + +instance : Shape LocalGatewayRouteType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LocalGatewayRouteType.ofWire text + | _ => .error "expected a string" + +inductive LocalGatewayVirtualInterfaceConfigurationState where + | available + | deleted + | deleting + | pending +deriving DecidableEq, Repr, Inhabited + +def LocalGatewayVirtualInterfaceConfigurationState.wire : LocalGatewayVirtualInterfaceConfigurationState → String + | .available => "available" + | .deleted => "deleted" + | .deleting => "deleting" + | .pending => "pending" + +def LocalGatewayVirtualInterfaceConfigurationState.wireValues : List (String × LocalGatewayVirtualInterfaceConfigurationState) := [ + ("available", .available), + ("deleted", .deleted), + ("deleting", .deleting), + ("pending", .pending)] + +def LocalGatewayVirtualInterfaceConfigurationState.ofWire (text : String) : Except String LocalGatewayVirtualInterfaceConfigurationState := + match List.find? (·.1 == text) LocalGatewayVirtualInterfaceConfigurationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LocalGatewayVirtualInterfaceConfigurationState has no value {text}" + +instance : Key LocalGatewayVirtualInterfaceConfigurationState := ⟨LocalGatewayVirtualInterfaceConfigurationState.wire, LocalGatewayVirtualInterfaceConfigurationState.ofWire⟩ + +instance : Shape LocalGatewayVirtualInterfaceConfigurationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LocalGatewayVirtualInterfaceConfigurationState.ofWire text + | _ => .error "expected a string" + +inductive LocalGatewayVirtualInterfaceGroupConfigurationState where + | available + | deleted + | deleting + | incomplete + | pending +deriving DecidableEq, Repr, Inhabited + +def LocalGatewayVirtualInterfaceGroupConfigurationState.wire : LocalGatewayVirtualInterfaceGroupConfigurationState → String + | .available => "available" + | .deleted => "deleted" + | .deleting => "deleting" + | .incomplete => "incomplete" + | .pending => "pending" + +def LocalGatewayVirtualInterfaceGroupConfigurationState.wireValues : List (String × LocalGatewayVirtualInterfaceGroupConfigurationState) := [ + ("available", .available), + ("deleted", .deleted), + ("deleting", .deleting), + ("incomplete", .incomplete), + ("pending", .pending)] + +def LocalGatewayVirtualInterfaceGroupConfigurationState.ofWire (text : String) : Except String LocalGatewayVirtualInterfaceGroupConfigurationState := + match List.find? (·.1 == text) LocalGatewayVirtualInterfaceGroupConfigurationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LocalGatewayVirtualInterfaceGroupConfigurationState has no value {text}" + +instance : Key LocalGatewayVirtualInterfaceGroupConfigurationState := ⟨LocalGatewayVirtualInterfaceGroupConfigurationState.wire, LocalGatewayVirtualInterfaceGroupConfigurationState.ofWire⟩ + +instance : Shape LocalGatewayVirtualInterfaceGroupConfigurationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LocalGatewayVirtualInterfaceGroupConfigurationState.ofWire text + | _ => .error "expected a string" + +inductive LocalStorage where + | excluded + | included + | required +deriving DecidableEq, Repr, Inhabited + +def LocalStorage.wire : LocalStorage → String + | .excluded => "excluded" + | .included => "included" + | .required => "required" + +def LocalStorage.wireValues : List (String × LocalStorage) := [ + ("excluded", .excluded), + ("included", .included), + ("required", .required)] + +def LocalStorage.ofWire (text : String) : Except String LocalStorage := + match List.find? (·.1 == text) LocalStorage.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LocalStorage has no value {text}" + +instance : Key LocalStorage := ⟨LocalStorage.wire, LocalStorage.ofWire⟩ + +instance : Shape LocalStorage where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LocalStorage.ofWire text + | _ => .error "expected a string" + +inductive LocalStorageType where + | hdd + | ssd +deriving DecidableEq, Repr, Inhabited + +def LocalStorageType.wire : LocalStorageType → String + | .hdd => "hdd" + | .ssd => "ssd" + +def LocalStorageType.wireValues : List (String × LocalStorageType) := [ + ("hdd", .hdd), + ("ssd", .ssd)] + +def LocalStorageType.ofWire (text : String) : Except String LocalStorageType := + match List.find? (·.1 == text) LocalStorageType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LocalStorageType has no value {text}" + +instance : Key LocalStorageType := ⟨LocalStorageType.wire, LocalStorageType.ofWire⟩ + +instance : Shape LocalStorageType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LocalStorageType.ofWire text + | _ => .error "expected a string" + +inductive LocationType where + | availability_zone + | availability_zone_id + | outpost + | region +deriving DecidableEq, Repr, Inhabited + +def LocationType.wire : LocationType → String + | .availability_zone => "availability-zone" + | .availability_zone_id => "availability-zone-id" + | .outpost => "outpost" + | .region => "region" + +def LocationType.wireValues : List (String × LocationType) := [ + ("availability-zone", .availability_zone), + ("availability-zone-id", .availability_zone_id), + ("outpost", .outpost), + ("region", .region)] + +def LocationType.ofWire (text : String) : Except String LocationType := + match List.find? (·.1 == text) LocationType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LocationType has no value {text}" + +instance : Key LocationType := ⟨LocationType.wire, LocationType.ofWire⟩ + +instance : Shape LocationType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LocationType.ofWire text + | _ => .error "expected a string" + +inductive LockMode where + | compliance + | governance +deriving DecidableEq, Repr, Inhabited + +def LockMode.wire : LockMode → String + | .compliance => "compliance" + | .governance => "governance" + +def LockMode.wireValues : List (String × LockMode) := [ + ("compliance", .compliance), + ("governance", .governance)] + +def LockMode.ofWire (text : String) : Except String LockMode := + match List.find? (·.1 == text) LockMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LockMode has no value {text}" + +instance : Key LockMode := ⟨LockMode.wire, LockMode.ofWire⟩ + +instance : Shape LockMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LockMode.ofWire text + | _ => .error "expected a string" + +inductive LockState where + | compliance + | compliance_cooloff + | expired + | governance +deriving DecidableEq, Repr, Inhabited + +def LockState.wire : LockState → String + | .compliance => "compliance" + | .compliance_cooloff => "compliance-cooloff" + | .expired => "expired" + | .governance => "governance" + +def LockState.wireValues : List (String × LockState) := [ + ("compliance", .compliance), + ("compliance-cooloff", .compliance_cooloff), + ("expired", .expired), + ("governance", .governance)] + +def LockState.ofWire (text : String) : Except String LockState := + match List.find? (·.1 == text) LockState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LockState has no value {text}" + +instance : Key LockState := ⟨LockState.wire, LockState.ofWire⟩ + +instance : Shape LockState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LockState.ofWire text + | _ => .error "expected a string" + +inductive LogDestinationType where + | cloud_watch_logs + | kinesis_data_firehose + | s3 +deriving DecidableEq, Repr, Inhabited + +def LogDestinationType.wire : LogDestinationType → String + | .cloud_watch_logs => "cloud-watch-logs" + | .kinesis_data_firehose => "kinesis-data-firehose" + | .s3 => "s3" + +def LogDestinationType.wireValues : List (String × LogDestinationType) := [ + ("cloud-watch-logs", .cloud_watch_logs), + ("kinesis-data-firehose", .kinesis_data_firehose), + ("s3", .s3)] + +def LogDestinationType.ofWire (text : String) : Except String LogDestinationType := + match List.find? (·.1 == text) LogDestinationType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LogDestinationType has no value {text}" + +instance : Key LogDestinationType := ⟨LogDestinationType.wire, LogDestinationType.ofWire⟩ + +instance : Shape LogDestinationType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LogDestinationType.ofWire text + | _ => .error "expected a string" + +/-- Information about the EC2 Mac Dedicated Host. -/ +structure MacHost where + /-- The EC2 Mac Dedicated Host ID. -/ + hostId : Option String := none + /-- The latest macOS versions that the EC2 Mac Dedicated Host can launch without being upgraded. -/ + macOSLatestSupportedVersions : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MacHost where + schema := .struct "MacHost" [({ name := "HostId", xmlName := some "hostId", queryName := some "HostId" }, .string), + ({ name := "MacOSLatestSupportedVersions", xmlName := some "macOSLatestSupportedVersionSet", queryName := some "MacOSLatestSupportedVersionSet" }, (.list .string "item"))] + toValue x := record [putOpt "HostId" x.hostId, putOpt "MacOSLatestSupportedVersions" x.macOSLatestSupportedVersions] + ofValue v := do + let hostId ← v.opt "HostId" + let macOSLatestSupportedVersions ← v.opt "MacOSLatestSupportedVersions" + return { hostId, macOSLatestSupportedVersions } + +inductive MacModificationTaskState where + | failed + | inprogress + | pending + | successful +deriving DecidableEq, Repr, Inhabited + +def MacModificationTaskState.wire : MacModificationTaskState → String + | .failed => "failed" + | .inprogress => "in-progress" + | .pending => "pending" + | .successful => "successful" + +def MacModificationTaskState.wireValues : List (String × MacModificationTaskState) := [ + ("failed", .failed), + ("in-progress", .inprogress), + ("pending", .pending), + ("successful", .successful)] + +def MacModificationTaskState.ofWire (text : String) : Except String MacModificationTaskState := + match List.find? (·.1 == text) MacModificationTaskState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"MacModificationTaskState has no value {text}" + +instance : Key MacModificationTaskState := ⟨MacModificationTaskState.wire, MacModificationTaskState.ofWire⟩ + +instance : Shape MacModificationTaskState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => MacModificationTaskState.ofWire text + | _ => .error "expected a string" + +inductive MacModificationTaskType where + | sipModification + | volumeOwnershipDelegation +deriving DecidableEq, Repr, Inhabited + +def MacModificationTaskType.wire : MacModificationTaskType → String + | .sipModification => "sip-modification" + | .volumeOwnershipDelegation => "volume-ownership-delegation" + +def MacModificationTaskType.wireValues : List (String × MacModificationTaskType) := [ + ("sip-modification", .sipModification), + ("volume-ownership-delegation", .volumeOwnershipDelegation)] + +def MacModificationTaskType.ofWire (text : String) : Except String MacModificationTaskType := + match List.find? (·.1 == text) MacModificationTaskType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"MacModificationTaskType has no value {text}" + +instance : Key MacModificationTaskType := ⟨MacModificationTaskType.wire, MacModificationTaskType.ofWire⟩ + +instance : Shape MacModificationTaskType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => MacModificationTaskType.ofWire text + | _ => .error "expected a string" + +inductive MacSystemIntegrityProtectionSettingStatus where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def MacSystemIntegrityProtectionSettingStatus.wire : MacSystemIntegrityProtectionSettingStatus → String + | .disabled => "disabled" + | .enabled => "enabled" + +def MacSystemIntegrityProtectionSettingStatus.wireValues : List (String × MacSystemIntegrityProtectionSettingStatus) := [ + ("disabled", .disabled), + ("enabled", .enabled)] + +def MacSystemIntegrityProtectionSettingStatus.ofWire (text : String) : Except String MacSystemIntegrityProtectionSettingStatus := + match List.find? (·.1 == text) MacSystemIntegrityProtectionSettingStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"MacSystemIntegrityProtectionSettingStatus has no value {text}" + +instance : Key MacSystemIntegrityProtectionSettingStatus := ⟨MacSystemIntegrityProtectionSettingStatus.wire, MacSystemIntegrityProtectionSettingStatus.ofWire⟩ + +instance : Shape MacSystemIntegrityProtectionSettingStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => MacSystemIntegrityProtectionSettingStatus.ofWire text + | _ => .error "expected a string" + +/-- Details for Site-to-Site VPN tunnel endpoint maintenance events. -/ +structure MaintenanceDetails where + /-- Timestamp of last applied maintenance. -/ + lastMaintenanceApplied : Option Timestamp := none + /-- The timestamp after which Amazon Web Services will automatically apply maintenance. -/ + maintenanceAutoAppliedAfter : Option Timestamp := none + /-- Verify existence of a pending maintenance. -/ + pendingMaintenance : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MaintenanceDetails where + schema := .struct "MaintenanceDetails" [({ name := "LastMaintenanceApplied", xmlName := some "lastMaintenanceApplied", queryName := some "LastMaintenanceApplied" }, (.time none)), + ({ name := "MaintenanceAutoAppliedAfter", xmlName := some "maintenanceAutoAppliedAfter", queryName := some "MaintenanceAutoAppliedAfter" }, (.time none)), + ({ name := "PendingMaintenance", xmlName := some "pendingMaintenance", queryName := some "PendingMaintenance" }, .string)] + toValue x := record [putOpt "LastMaintenanceApplied" x.lastMaintenanceApplied, putOpt "MaintenanceAutoAppliedAfter" x.maintenanceAutoAppliedAfter, putOpt "PendingMaintenance" x.pendingMaintenance] + ofValue v := do + let lastMaintenanceApplied ← v.opt "LastMaintenanceApplied" + let maintenanceAutoAppliedAfter ← v.opt "MaintenanceAutoAppliedAfter" + let pendingMaintenance ← v.opt "PendingMaintenance" + return { lastMaintenanceApplied, maintenanceAutoAppliedAfter, pendingMaintenance } + +inductive ManagedBy where + | account + | declarative_policy +deriving DecidableEq, Repr, Inhabited + +def ManagedBy.wire : ManagedBy → String + | .account => "account" + | .declarative_policy => "declarative-policy" + +def ManagedBy.wireValues : List (String × ManagedBy) := [ + ("account", .account), + ("declarative-policy", .declarative_policy)] + +def ManagedBy.ofWire (text : String) : Except String ManagedBy := + match List.find? (·.1 == text) ManagedBy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ManagedBy has no value {text}" + +instance : Key ManagedBy := ⟨ManagedBy.wire, ManagedBy.ofWire⟩ + +instance : Shape ManagedBy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ManagedBy.ofWire text + | _ => .error "expected a string" + +inductive ManagedResourceDefaultVisibility where + | hidden + | visible +deriving DecidableEq, Repr, Inhabited + +def ManagedResourceDefaultVisibility.wire : ManagedResourceDefaultVisibility → String + | .hidden => "hidden" + | .visible => "visible" + +def ManagedResourceDefaultVisibility.wireValues : List (String × ManagedResourceDefaultVisibility) := [ + ("hidden", .hidden), + ("visible", .visible)] + +def ManagedResourceDefaultVisibility.ofWire (text : String) : Except String ManagedResourceDefaultVisibility := + match List.find? (·.1 == text) ManagedResourceDefaultVisibility.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ManagedResourceDefaultVisibility has no value {text}" + +instance : Key ManagedResourceDefaultVisibility := ⟨ManagedResourceDefaultVisibility.wire, ManagedResourceDefaultVisibility.ofWire⟩ + +instance : Shape ManagedResourceDefaultVisibility where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ManagedResourceDefaultVisibility.ofWire text + | _ => .error "expected a string" + +inductive MarketType where + | capacity_block + | interruptible_capacity_reservation + | on_demand + | spot +deriving DecidableEq, Repr, Inhabited + +def MarketType.wire : MarketType → String + | .capacity_block => "capacity-block" + | .interruptible_capacity_reservation => "interruptible-capacity-reservation" + | .on_demand => "on-demand" + | .spot => "spot" + +def MarketType.wireValues : List (String × MarketType) := [ + ("capacity-block", .capacity_block), + ("interruptible-capacity-reservation", .interruptible_capacity_reservation), + ("on-demand", .on_demand), + ("spot", .spot)] + +def MarketType.ofWire (text : String) : Except String MarketType := + match List.find? (·.1 == text) MarketType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"MarketType has no value {text}" + +instance : Key MarketType := ⟨MarketType.wire, MarketType.ofWire⟩ + +instance : Shape MarketType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => MarketType.ofWire text + | _ => .error "expected a string" + +/-- Describes the memory available to the media accelerator. -/ +structure MediaDeviceMemoryInfo where + /-- The size of the memory available to each media accelerator, in MiB. -/ + sizeInMiB : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MediaDeviceMemoryInfo where + schema := .struct "MediaDeviceMemoryInfo" [({ name := "SizeInMiB", xmlName := some "sizeInMiB", queryName := some "SizeInMiB" }, .int)] + toValue x := record [putOpt "SizeInMiB" x.sizeInMiB] + ofValue v := do + let sizeInMiB ← v.opt "SizeInMiB" + return { sizeInMiB } + +inductive MembershipType where + | igmp + | static +deriving DecidableEq, Repr, Inhabited + +def MembershipType.wire : MembershipType → String + | .igmp => "igmp" + | .static => "static" + +def MembershipType.wireValues : List (String × MembershipType) := [ + ("igmp", .igmp), + ("static", .static)] + +def MembershipType.ofWire (text : String) : Except String MembershipType := + match List.find? (·.1 == text) MembershipType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"MembershipType has no value {text}" + +instance : Key MembershipType := ⟨MembershipType.wire, MembershipType.ofWire⟩ + +instance : Shape MembershipType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => MembershipType.ofWire text + | _ => .error "expected a string" + +/-- The minimum and maximum amount of memory per vCPU, in GiB. -/ +structure MemoryGiBPerVCpu where + /-- The maximum amount of memory per vCPU, in GiB. -/ + max : Option JsonNumber := none + /-- The minimum amount of memory per vCPU, in GiB. -/ + min : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MemoryGiBPerVCpu where + schema := .struct "MemoryGiBPerVCpu" [({ name := "Max", xmlName := some "max", queryName := some "Max" }, .number), + ({ name := "Min", xmlName := some "min", queryName := some "Min" }, .number)] + toValue x := record [putOpt "Max" x.max, putOpt "Min" x.min] + ofValue v := do + let max ← v.opt "Max" + let min ← v.opt "Min" + return { max, min } + +/-- The minimum and maximum amount of memory per vCPU, in GiB. -/ +structure MemoryGiBPerVCpuRequest where + /-- The maximum amount of memory per vCPU, in GiB. -/ + max : Option JsonNumber := none + /-- The minimum amount of memory per vCPU, in GiB. -/ + min : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MemoryGiBPerVCpuRequest where + schema := .struct "MemoryGiBPerVCpuRequest" [({ name := "Max" }, .number), + ({ name := "Min" }, .number)] + toValue x := record [putOpt "Max" x.max, putOpt "Min" x.min] + ofValue v := do + let max ← v.opt "Max" + let min ← v.opt "Min" + return { max, min } + +/-- Describes the memory for the instance type. -/ +structure MemoryInfo where + /-- The size of the memory, in MiB. -/ + sizeInMiB : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MemoryInfo where + schema := .struct "MemoryInfo" [({ name := "SizeInMiB", xmlName := some "sizeInMiB", queryName := some "SizeInMiB" }, .int)] + toValue x := record [putOpt "SizeInMiB" x.sizeInMiB] + ofValue v := do + let sizeInMiB ← v.opt "SizeInMiB" + return { sizeInMiB } + +/-- The minimum and maximum amount of memory, in MiB. -/ +structure MemoryMiB where + /-- The maximum amount of memory, in MiB. -/ + max : Option Int := none + /-- The minimum amount of memory, in MiB. -/ + min : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MemoryMiB where + schema := .struct "MemoryMiB" [({ name := "Max", xmlName := some "max", queryName := some "Max" }, .int), + ({ name := "Min", xmlName := some "min", queryName := some "Min" }, .int)] + toValue x := record [putOpt "Max" x.max, putOpt "Min" x.min] + ofValue v := do + let max ← v.opt "Max" + let min ← v.opt "Min" + return { max, min } + +/-- The minimum and maximum amount of memory, in MiB. -/ +structure MemoryMiBRequest where + /-- The maximum amount of memory, in MiB. -/ + max : Option Int := none + /-- The minimum amount of memory, in MiB. -/ + min : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape MemoryMiBRequest where + schema := .struct "MemoryMiBRequest" [({ name := "Max" }, .int), + ({ name := "Min", required := true }, .int)] + toValue x := record [putOpt "Max" x.max, put "Min" x.min] + ofValue v := do + let max ← v.opt "Max" + let min ← v.req "Min" + return { max, min } + +inductive MetadataDefaultHttpTokensState where + | no_preference + | optional + | required +deriving DecidableEq, Repr, Inhabited + +def MetadataDefaultHttpTokensState.wire : MetadataDefaultHttpTokensState → String + | .no_preference => "no-preference" + | .optional => "optional" + | .required => "required" + +def MetadataDefaultHttpTokensState.wireValues : List (String × MetadataDefaultHttpTokensState) := [ + ("no-preference", .no_preference), + ("optional", .optional), + ("required", .required)] + +def MetadataDefaultHttpTokensState.ofWire (text : String) : Except String MetadataDefaultHttpTokensState := + match List.find? (·.1 == text) MetadataDefaultHttpTokensState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"MetadataDefaultHttpTokensState has no value {text}" + +instance : Key MetadataDefaultHttpTokensState := ⟨MetadataDefaultHttpTokensState.wire, MetadataDefaultHttpTokensState.ofWire⟩ + +instance : Shape MetadataDefaultHttpTokensState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => MetadataDefaultHttpTokensState.ofWire text + | _ => .error "expected a string" + +inductive Metric where + | avG_INST_AZ_COUNT_PER_REQUESTED_VCPU + | capacitY_REQUEST_FULFILLMENT_RATE + | capacitY_TOTAL_FULFILLED_VCPU + | capacitY_TOTAL_REQUESTED_VCPU + | insT_AZ_FULFILLMENT_RATE + | reservatioN_AVG_COMMITTED_SIZE_INST + | reservatioN_AVG_COMMITTED_SIZE_VCPU + | reservatioN_AVG_FUTURE_SIZE_INST + | reservatioN_AVG_FUTURE_SIZE_VCPU + | reservatioN_AVG_UTILIZATION_INST + | reservatioN_AVG_UTILIZATION_VCPU + | reservatioN_MAX_COMMITTED_SIZE_INST + | reservatioN_MAX_COMMITTED_SIZE_VCPU + | reservatioN_MAX_FUTURE_SIZE_INST + | reservatioN_MAX_FUTURE_SIZE_VCPU + | reservatioN_MAX_SIZE_INST + | reservatioN_MAX_SIZE_VCPU + | reservatioN_MAX_UNUSED_SIZE_INST + | reservatioN_MAX_UNUSED_SIZE_VCPU + | reservatioN_MAX_UTILIZATION + | reservatioN_MIN_COMMITTED_SIZE_INST + | reservatioN_MIN_COMMITTED_SIZE_VCPU + | reservatioN_MIN_FUTURE_SIZE_INST + | reservatioN_MIN_FUTURE_SIZE_VCPU + | reservatioN_MIN_SIZE_INST + | reservatioN_MIN_SIZE_VCPU + | reservatioN_MIN_UNUSED_SIZE_INST + | reservatioN_MIN_UNUSED_SIZE_VCPU + | reservatioN_MIN_UTILIZATION + | reservatioN_TOTAL_CAPACITY_HRS_INST + | reservatioN_TOTAL_CAPACITY_HRS_VCPU + | reservatioN_TOTAL_COUNT + | reservatioN_TOTAL_ESTIMATED_COST + | reservatioN_UNUSED_TOTAL_CAPACITY_HRS_INST + | reservatioN_UNUSED_TOTAL_CAPACITY_HRS_VCPU + | reservatioN_UNUSED_TOTAL_ESTIMATED_COST + | reserveD_TOTAL_ESTIMATED_COST + | reserveD_TOTAL_USAGE_HRS_INST + | reserveD_TOTAL_USAGE_HRS_VCPU + | spoT_AVG_INST_AZ_COUNT_PER_REQUESTED_VCPU + | spoT_AVG_RUN_TIME_BEFORE_INTERRUPTION_INST + | spoT_CAPACITY_REQUEST_FULFILLMENT_RATE + | spoT_CAPACITY_TOTAL_FULFILLED_VCPU + | spoT_CAPACITY_TOTAL_REQUESTED_VCPU + | spoT_INST_AZ_FULFILLMENT_RATE + | spoT_INTERRUPTION_RATE_INST + | spoT_INTERRUPTION_RATE_VCPU + | spoT_MAX_RUN_TIME_BEFORE_INTERRUPTION_INST + | spoT_MIN_RUN_TIME_BEFORE_INTERRUPTION_INST + | spoT_TOTAL_COUNT_INST + | spoT_TOTAL_COUNT_VCPU + | spoT_TOTAL_ESTIMATED_COST + | spoT_TOTAL_INTERRUPTIONS_INST + | spoT_TOTAL_INTERRUPTIONS_VCPU + | spoT_TOTAL_USAGE_HRS_INST + | spoT_TOTAL_USAGE_HRS_VCPU + | unreserveD_TOTAL_ESTIMATED_COST + | unreserveD_TOTAL_USAGE_HRS_INST + | unreserveD_TOTAL_USAGE_HRS_VCPU +deriving DecidableEq, Repr, Inhabited + +def Metric.wire : Metric → String + | .avG_INST_AZ_COUNT_PER_REQUESTED_VCPU => "avg-inst-az-count-per-requested-vcpu" + | .capacitY_REQUEST_FULFILLMENT_RATE => "capacity-request-fulfillment-rate" + | .capacitY_TOTAL_FULFILLED_VCPU => "capacity-total-fulfilled-vcpu" + | .capacitY_TOTAL_REQUESTED_VCPU => "capacity-total-requested-vcpu" + | .insT_AZ_FULFILLMENT_RATE => "inst-az-fulfillment-rate" + | .reservatioN_AVG_COMMITTED_SIZE_INST => "reservation-avg-committed-size-inst" + | .reservatioN_AVG_COMMITTED_SIZE_VCPU => "reservation-avg-committed-size-vcpu" + | .reservatioN_AVG_FUTURE_SIZE_INST => "reservation-avg-future-size-inst" + | .reservatioN_AVG_FUTURE_SIZE_VCPU => "reservation-avg-future-size-vcpu" + | .reservatioN_AVG_UTILIZATION_INST => "reservation-avg-utilization-inst" + | .reservatioN_AVG_UTILIZATION_VCPU => "reservation-avg-utilization-vcpu" + | .reservatioN_MAX_COMMITTED_SIZE_INST => "reservation-max-committed-size-inst" + | .reservatioN_MAX_COMMITTED_SIZE_VCPU => "reservation-max-committed-size-vcpu" + | .reservatioN_MAX_FUTURE_SIZE_INST => "reservation-max-future-size-inst" + | .reservatioN_MAX_FUTURE_SIZE_VCPU => "reservation-max-future-size-vcpu" + | .reservatioN_MAX_SIZE_INST => "reservation-max-size-inst" + | .reservatioN_MAX_SIZE_VCPU => "reservation-max-size-vcpu" + | .reservatioN_MAX_UNUSED_SIZE_INST => "reservation-max-unused-size-inst" + | .reservatioN_MAX_UNUSED_SIZE_VCPU => "reservation-max-unused-size-vcpu" + | .reservatioN_MAX_UTILIZATION => "reservation-max-utilization" + | .reservatioN_MIN_COMMITTED_SIZE_INST => "reservation-min-committed-size-inst" + | .reservatioN_MIN_COMMITTED_SIZE_VCPU => "reservation-min-committed-size-vcpu" + | .reservatioN_MIN_FUTURE_SIZE_INST => "reservation-min-future-size-inst" + | .reservatioN_MIN_FUTURE_SIZE_VCPU => "reservation-min-future-size-vcpu" + | .reservatioN_MIN_SIZE_INST => "reservation-min-size-inst" + | .reservatioN_MIN_SIZE_VCPU => "reservation-min-size-vcpu" + | .reservatioN_MIN_UNUSED_SIZE_INST => "reservation-min-unused-size-inst" + | .reservatioN_MIN_UNUSED_SIZE_VCPU => "reservation-min-unused-size-vcpu" + | .reservatioN_MIN_UTILIZATION => "reservation-min-utilization" + | .reservatioN_TOTAL_CAPACITY_HRS_INST => "reservation-total-capacity-hrs-inst" + | .reservatioN_TOTAL_CAPACITY_HRS_VCPU => "reservation-total-capacity-hrs-vcpu" + | .reservatioN_TOTAL_COUNT => "reservation-total-count" + | .reservatioN_TOTAL_ESTIMATED_COST => "reservation-total-estimated-cost" + | .reservatioN_UNUSED_TOTAL_CAPACITY_HRS_INST => "reservation-unused-total-capacity-hrs-inst" + | .reservatioN_UNUSED_TOTAL_CAPACITY_HRS_VCPU => "reservation-unused-total-capacity-hrs-vcpu" + | .reservatioN_UNUSED_TOTAL_ESTIMATED_COST => "reservation-unused-total-estimated-cost" + | .reserveD_TOTAL_ESTIMATED_COST => "reserved-total-estimated-cost" + | .reserveD_TOTAL_USAGE_HRS_INST => "reserved-total-usage-hrs-inst" + | .reserveD_TOTAL_USAGE_HRS_VCPU => "reserved-total-usage-hrs-vcpu" + | .spoT_AVG_INST_AZ_COUNT_PER_REQUESTED_VCPU => "spot-avg-inst-az-count-per-requested-vcpu" + | .spoT_AVG_RUN_TIME_BEFORE_INTERRUPTION_INST => "spot-avg-run-time-before-interruption-inst" + | .spoT_CAPACITY_REQUEST_FULFILLMENT_RATE => "spot-capacity-request-fulfillment-rate" + | .spoT_CAPACITY_TOTAL_FULFILLED_VCPU => "spot-capacity-total-fulfilled-vcpu" + | .spoT_CAPACITY_TOTAL_REQUESTED_VCPU => "spot-capacity-total-requested-vcpu" + | .spoT_INST_AZ_FULFILLMENT_RATE => "spot-inst-az-fulfillment-rate" + | .spoT_INTERRUPTION_RATE_INST => "spot-interruption-rate-inst" + | .spoT_INTERRUPTION_RATE_VCPU => "spot-interruption-rate-vcpu" + | .spoT_MAX_RUN_TIME_BEFORE_INTERRUPTION_INST => "spot-max-run-time-before-interruption-inst" + | .spoT_MIN_RUN_TIME_BEFORE_INTERRUPTION_INST => "spot-min-run-time-before-interruption-inst" + | .spoT_TOTAL_COUNT_INST => "spot-total-count-inst" + | .spoT_TOTAL_COUNT_VCPU => "spot-total-count-vcpu" + | .spoT_TOTAL_ESTIMATED_COST => "spot-total-estimated-cost" + | .spoT_TOTAL_INTERRUPTIONS_INST => "spot-total-interruptions-inst" + | .spoT_TOTAL_INTERRUPTIONS_VCPU => "spot-total-interruptions-vcpu" + | .spoT_TOTAL_USAGE_HRS_INST => "spot-total-usage-hrs-inst" + | .spoT_TOTAL_USAGE_HRS_VCPU => "spot-total-usage-hrs-vcpu" + | .unreserveD_TOTAL_ESTIMATED_COST => "unreserved-total-estimated-cost" + | .unreserveD_TOTAL_USAGE_HRS_INST => "unreserved-total-usage-hrs-inst" + | .unreserveD_TOTAL_USAGE_HRS_VCPU => "unreserved-total-usage-hrs-vcpu" + +def Metric.wireValues : List (String × Metric) := [ + ("avg-inst-az-count-per-requested-vcpu", .avG_INST_AZ_COUNT_PER_REQUESTED_VCPU), + ("capacity-request-fulfillment-rate", .capacitY_REQUEST_FULFILLMENT_RATE), + ("capacity-total-fulfilled-vcpu", .capacitY_TOTAL_FULFILLED_VCPU), + ("capacity-total-requested-vcpu", .capacitY_TOTAL_REQUESTED_VCPU), + ("inst-az-fulfillment-rate", .insT_AZ_FULFILLMENT_RATE), + ("reservation-avg-committed-size-inst", .reservatioN_AVG_COMMITTED_SIZE_INST), + ("reservation-avg-committed-size-vcpu", .reservatioN_AVG_COMMITTED_SIZE_VCPU), + ("reservation-avg-future-size-inst", .reservatioN_AVG_FUTURE_SIZE_INST), + ("reservation-avg-future-size-vcpu", .reservatioN_AVG_FUTURE_SIZE_VCPU), + ("reservation-avg-utilization-inst", .reservatioN_AVG_UTILIZATION_INST), + ("reservation-avg-utilization-vcpu", .reservatioN_AVG_UTILIZATION_VCPU), + ("reservation-max-committed-size-inst", .reservatioN_MAX_COMMITTED_SIZE_INST), + ("reservation-max-committed-size-vcpu", .reservatioN_MAX_COMMITTED_SIZE_VCPU), + ("reservation-max-future-size-inst", .reservatioN_MAX_FUTURE_SIZE_INST), + ("reservation-max-future-size-vcpu", .reservatioN_MAX_FUTURE_SIZE_VCPU), + ("reservation-max-size-inst", .reservatioN_MAX_SIZE_INST), + ("reservation-max-size-vcpu", .reservatioN_MAX_SIZE_VCPU), + ("reservation-max-unused-size-inst", .reservatioN_MAX_UNUSED_SIZE_INST), + ("reservation-max-unused-size-vcpu", .reservatioN_MAX_UNUSED_SIZE_VCPU), + ("reservation-max-utilization", .reservatioN_MAX_UTILIZATION), + ("reservation-min-committed-size-inst", .reservatioN_MIN_COMMITTED_SIZE_INST), + ("reservation-min-committed-size-vcpu", .reservatioN_MIN_COMMITTED_SIZE_VCPU), + ("reservation-min-future-size-inst", .reservatioN_MIN_FUTURE_SIZE_INST), + ("reservation-min-future-size-vcpu", .reservatioN_MIN_FUTURE_SIZE_VCPU), + ("reservation-min-size-inst", .reservatioN_MIN_SIZE_INST), + ("reservation-min-size-vcpu", .reservatioN_MIN_SIZE_VCPU), + ("reservation-min-unused-size-inst", .reservatioN_MIN_UNUSED_SIZE_INST), + ("reservation-min-unused-size-vcpu", .reservatioN_MIN_UNUSED_SIZE_VCPU), + ("reservation-min-utilization", .reservatioN_MIN_UTILIZATION), + ("reservation-total-capacity-hrs-inst", .reservatioN_TOTAL_CAPACITY_HRS_INST), + ("reservation-total-capacity-hrs-vcpu", .reservatioN_TOTAL_CAPACITY_HRS_VCPU), + ("reservation-total-count", .reservatioN_TOTAL_COUNT), + ("reservation-total-estimated-cost", .reservatioN_TOTAL_ESTIMATED_COST), + ("reservation-unused-total-capacity-hrs-inst", .reservatioN_UNUSED_TOTAL_CAPACITY_HRS_INST), + ("reservation-unused-total-capacity-hrs-vcpu", .reservatioN_UNUSED_TOTAL_CAPACITY_HRS_VCPU), + ("reservation-unused-total-estimated-cost", .reservatioN_UNUSED_TOTAL_ESTIMATED_COST), + ("reserved-total-estimated-cost", .reserveD_TOTAL_ESTIMATED_COST), + ("reserved-total-usage-hrs-inst", .reserveD_TOTAL_USAGE_HRS_INST), + ("reserved-total-usage-hrs-vcpu", .reserveD_TOTAL_USAGE_HRS_VCPU), + ("spot-avg-inst-az-count-per-requested-vcpu", .spoT_AVG_INST_AZ_COUNT_PER_REQUESTED_VCPU), + ("spot-avg-run-time-before-interruption-inst", .spoT_AVG_RUN_TIME_BEFORE_INTERRUPTION_INST), + ("spot-capacity-request-fulfillment-rate", .spoT_CAPACITY_REQUEST_FULFILLMENT_RATE), + ("spot-capacity-total-fulfilled-vcpu", .spoT_CAPACITY_TOTAL_FULFILLED_VCPU), + ("spot-capacity-total-requested-vcpu", .spoT_CAPACITY_TOTAL_REQUESTED_VCPU), + ("spot-inst-az-fulfillment-rate", .spoT_INST_AZ_FULFILLMENT_RATE), + ("spot-interruption-rate-inst", .spoT_INTERRUPTION_RATE_INST), + ("spot-interruption-rate-vcpu", .spoT_INTERRUPTION_RATE_VCPU), + ("spot-max-run-time-before-interruption-inst", .spoT_MAX_RUN_TIME_BEFORE_INTERRUPTION_INST), + ("spot-min-run-time-before-interruption-inst", .spoT_MIN_RUN_TIME_BEFORE_INTERRUPTION_INST), + ("spot-total-count-inst", .spoT_TOTAL_COUNT_INST), + ("spot-total-count-vcpu", .spoT_TOTAL_COUNT_VCPU), + ("spot-total-estimated-cost", .spoT_TOTAL_ESTIMATED_COST), + ("spot-total-interruptions-inst", .spoT_TOTAL_INTERRUPTIONS_INST), + ("spot-total-interruptions-vcpu", .spoT_TOTAL_INTERRUPTIONS_VCPU), + ("spot-total-usage-hrs-inst", .spoT_TOTAL_USAGE_HRS_INST), + ("spot-total-usage-hrs-vcpu", .spoT_TOTAL_USAGE_HRS_VCPU), + ("unreserved-total-estimated-cost", .unreserveD_TOTAL_ESTIMATED_COST), + ("unreserved-total-usage-hrs-inst", .unreserveD_TOTAL_USAGE_HRS_INST), + ("unreserved-total-usage-hrs-vcpu", .unreserveD_TOTAL_USAGE_HRS_VCPU)] + +def Metric.ofWire (text : String) : Except String Metric := + match List.find? (·.1 == text) Metric.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Metric has no value {text}" + +instance : Key Metric := ⟨Metric.wire, Metric.ofWire⟩ + +instance : Shape Metric where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Metric.ofWire text + | _ => .error "expected a string" + +/-- Indicates whether the network was healthy or degraded at a particular point. -/ +structure MetricPoint where + /-- The end date for the metric point. -/ + endDate : Option Timestamp := none + /-- The start date for the metric point. -/ + startDate : Option Timestamp := none + /-- The status of the metric point. -/ + status : Option String := none + value : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MetricPoint where + schema := .struct "MetricPoint" [({ name := "EndDate", xmlName := some "endDate", queryName := some "EndDate" }, (.time none)), + ({ name := "StartDate", xmlName := some "startDate", queryName := some "StartDate" }, (.time none)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, .string), + ({ name := "Value", xmlName := some "value", queryName := some "Value" }, .number)] + toValue x := record [putOpt "EndDate" x.endDate, putOpt "StartDate" x.startDate, putOpt "Status" x.status, putOpt "Value" x.value] + ofValue v := do + let endDate ← v.opt "EndDate" + let startDate ← v.opt "StartDate" + let status ← v.opt "Status" + let value ← v.opt "Value" + return { endDate, startDate, status, value } + +inductive MetricType where + | aggregate_latency +deriving DecidableEq, Repr, Inhabited + +def MetricType.wire : MetricType → String + | .aggregate_latency => "aggregate-latency" + +def MetricType.wireValues : List (String × MetricType) := [ + ("aggregate-latency", .aggregate_latency)] + +def MetricType.ofWire (text : String) : Except String MetricType := + match List.find? (·.1 == text) MetricType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"MetricType has no value {text}" + +instance : Key MetricType := ⟨MetricType.wire, MetricType.ofWire⟩ + +instance : Shape MetricType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => MetricType.ofWire text + | _ => .error "expected a string" + +/-- Describes the configuration that a Capacity Reservation has at the time a modification quote is generated. -/ +structure ModificationQuoteCurrentConfiguration where + /-- The number of instances in the Capacity Reservation. -/ + instanceCount : Option Int := none + /-- The start date that the Capacity Reservation was originally requested with. -/ + originalStartDate : Option Timestamp := none + /-- The current state of the Capacity Reservation. -/ + reservationState : Option String := none + /-- The start date that the Capacity Reservation has before the quoted modification is applied. -/ + startDate : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModificationQuoteCurrentConfiguration where + schema := .struct "ModificationQuoteCurrentConfiguration" [({ name := "InstanceCount", xmlName := some "instanceCount", queryName := some "InstanceCount" }, .int), + ({ name := "OriginalStartDate", xmlName := some "originalStartDate", queryName := some "OriginalStartDate" }, (.time none)), + ({ name := "ReservationState", xmlName := some "reservationState", queryName := some "ReservationState" }, .string), + ({ name := "StartDate", xmlName := some "startDate", queryName := some "StartDate" }, (.time none))] + toValue x := record [putOpt "InstanceCount" x.instanceCount, putOpt "OriginalStartDate" x.originalStartDate, putOpt "ReservationState" x.reservationState, putOpt "StartDate" x.startDate] + ofValue v := do + let instanceCount ← v.opt "InstanceCount" + let originalStartDate ← v.opt "OriginalStartDate" + let reservationState ← v.opt "ReservationState" + let startDate ← v.opt "StartDate" + return { instanceCount, originalStartDate, reservationState, startDate } + +/-- Describes the changes that a Capacity Reservation modification quote will apply to a Capacity Reservation. -/ +structure ModificationReservationUpdate where + /-- The commitment duration, in seconds, that the Capacity Reservation will have after the modification. -/ + newCommitmentDuration : Option Int := none + /-- The date and time at which the commitment duration will expire after the modification, in the ISO8601 format in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ ). -/ + newCommitmentEndDate : Option Timestamp := none + /-- The start date that the Capacity Reservation will have after the modification, in the ISO8601 format in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ ). -/ + newStartDate : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModificationReservationUpdate where + schema := .struct "ModificationReservationUpdate" [({ name := "NewCommitmentDuration", xmlName := some "newCommitmentDuration", queryName := some "NewCommitmentDuration" }, .int), + ({ name := "NewCommitmentEndDate", xmlName := some "newCommitmentEndDate", queryName := some "NewCommitmentEndDate" }, (.time none)), + ({ name := "NewStartDate", xmlName := some "newStartDate", queryName := some "NewStartDate" }, (.time none))] + toValue x := record [putOpt "NewCommitmentDuration" x.newCommitmentDuration, putOpt "NewCommitmentEndDate" x.newCommitmentEndDate, putOpt "NewStartDate" x.newStartDate] + ofValue v := do + let newCommitmentDuration ← v.opt "NewCommitmentDuration" + let newCommitmentEndDate ← v.opt "NewCommitmentEndDate" + let newStartDate ← v.opt "NewStartDate" + return { newCommitmentDuration, newCommitmentEndDate, newStartDate } + +structure ModifyAddressAttributeRequest where + /-- [EC2-VPC] The allocation ID. -/ + allocationId : String + /-- The domain name to modify for the IP address. -/ + domainName : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyAddressAttributeRequest where + schema := .struct "ModifyAddressAttributeRequest" [({ name := "AllocationId", required := true }, .string), + ({ name := "DomainName" }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "AllocationId" x.allocationId, putOpt "DomainName" x.domainName, putOpt "DryRun" x.dryRun] + ofValue v := do + let allocationId ← v.req "AllocationId" + let domainName ← v.opt "DomainName" + let dryRun ← v.opt "DryRun" + return { allocationId, domainName, dryRun } + +structure ModifyAvailabilityZoneGroupResult where + /-- Is true if the request succeeds, and an error otherwise. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyAvailabilityZoneGroupResult where + schema := .struct "ModifyAvailabilityZoneGroupResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +inductive ModifyAvailabilityZoneOptInStatus where + | not_opted_in + | opted_in +deriving DecidableEq, Repr, Inhabited + +def ModifyAvailabilityZoneOptInStatus.wire : ModifyAvailabilityZoneOptInStatus → String + | .not_opted_in => "not-opted-in" + | .opted_in => "opted-in" + +def ModifyAvailabilityZoneOptInStatus.wireValues : List (String × ModifyAvailabilityZoneOptInStatus) := [ + ("not-opted-in", .not_opted_in), + ("opted-in", .opted_in)] + +def ModifyAvailabilityZoneOptInStatus.ofWire (text : String) : Except String ModifyAvailabilityZoneOptInStatus := + match List.find? (·.1 == text) ModifyAvailabilityZoneOptInStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ModifyAvailabilityZoneOptInStatus has no value {text}" + +instance : Key ModifyAvailabilityZoneOptInStatus := ⟨ModifyAvailabilityZoneOptInStatus.wire, ModifyAvailabilityZoneOptInStatus.ofWire⟩ + +instance : Shape ModifyAvailabilityZoneOptInStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ModifyAvailabilityZoneOptInStatus.ofWire text + | _ => .error "expected a string" + +structure ModifyCapacityReservationFleetRequest where + /-- The ID of the Capacity Reservation Fleet to modify. -/ + capacityReservationFleetId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The date and time at which the Capacity Reservation Fleet expires. -/ + endDate : Option Timestamp := none + /-- Indicates whether to remove the end date from the Capacity Reservation Fleet. -/ + removeEndDate : Option Bool := none + /-- The total number of capacity units to be reserved by the Capacity Reservation Fleet. -/ + totalTargetCapacity : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyCapacityReservationFleetRequest where + schema := .struct "ModifyCapacityReservationFleetRequest" [({ name := "CapacityReservationFleetId", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "EndDate" }, (.time none)), + ({ name := "RemoveEndDate" }, .bool), + ({ name := "TotalTargetCapacity" }, .int)] + toValue x := record [put "CapacityReservationFleetId" x.capacityReservationFleetId, putOpt "DryRun" x.dryRun, putOpt "EndDate" x.endDate, putOpt "RemoveEndDate" x.removeEndDate, putOpt "TotalTargetCapacity" x.totalTargetCapacity] + ofValue v := do + let capacityReservationFleetId ← v.req "CapacityReservationFleetId" + let dryRun ← v.opt "DryRun" + let endDate ← v.opt "EndDate" + let removeEndDate ← v.opt "RemoveEndDate" + let totalTargetCapacity ← v.opt "TotalTargetCapacity" + return { capacityReservationFleetId, dryRun, endDate, removeEndDate, totalTargetCapacity } + +structure ModifyCapacityReservationFleetResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyCapacityReservationFleetResult where + schema := .struct "ModifyCapacityReservationFleetResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure ModifyClientVpnEndpointResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyClientVpnEndpointResult where + schema := .struct "ModifyClientVpnEndpointResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure ModifyEbsDefaultKmsKeyIdRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The identifier of the KMS key to use for Amazon EBS encryption. -/ + kmsKeyId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyEbsDefaultKmsKeyIdRequest where + schema := .struct "ModifyEbsDefaultKmsKeyIdRequest" [({ name := "DryRun" }, .bool), + ({ name := "KmsKeyId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "KmsKeyId" x.kmsKeyId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let kmsKeyId ← v.req "KmsKeyId" + return { dryRun, kmsKeyId } + +structure ModifyEbsDefaultKmsKeyIdResult where + /-- The Amazon Resource Name (ARN) of the default KMS key for encryption by default. -/ + kmsKeyId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyEbsDefaultKmsKeyIdResult where + schema := .struct "ModifyEbsDefaultKmsKeyIdResult" [({ name := "KmsKeyId", xmlName := some "kmsKeyId", queryName := some "KmsKeyId" }, .string)] + toValue x := record [putOpt "KmsKeyId" x.kmsKeyId] + ofValue v := do + let kmsKeyId ← v.opt "KmsKeyId" + return { kmsKeyId } + +structure ModifyFleetResult where + /-- If the request succeeds, the response returns true . -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyFleetResult where + schema := .struct "ModifyFleetResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure ModifyIdFormatRequest where + /-- The type of resource: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | ne -/ + resource : String + /-- Indicate whether the resource should use longer IDs (17-character IDs). -/ + useLongIds : Bool +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIdFormatRequest where + schema := .struct "ModifyIdFormatRequest" [({ name := "Resource", required := true }, .string), + ({ name := "UseLongIds", required := true }, .bool)] + toValue x := record [put "Resource" x.resource, put "UseLongIds" x.useLongIds] + ofValue v := do + let resource ← v.req "Resource" + let useLongIds ← v.req "UseLongIds" + return { resource, useLongIds } + +structure ModifyIdentityIdFormatRequest where + /-- The ARN of the principal, which can be an IAM user, IAM role, or the root user. -/ + principalArn : String + /-- The type of resource: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | ne -/ + resource : String + /-- Indicates whether the resource should use longer IDs (17-character IDs). -/ + useLongIds : Bool +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIdentityIdFormatRequest where + schema := .struct "ModifyIdentityIdFormatRequest" [({ name := "PrincipalArn", required := true, xmlName := some "principalArn", queryName := some "PrincipalArn" }, .string), + ({ name := "Resource", required := true, xmlName := some "resource", queryName := some "Resource" }, .string), + ({ name := "UseLongIds", required := true, xmlName := some "useLongIds", queryName := some "UseLongIds" }, .bool)] + toValue x := record [put "PrincipalArn" x.principalArn, put "Resource" x.resource, put "UseLongIds" x.useLongIds] + ofValue v := do + let principalArn ← v.req "PrincipalArn" + let resource ← v.req "Resource" + let useLongIds ← v.req "UseLongIds" + return { principalArn, resource, useLongIds } + +structure ModifyInstanceCapacityReservationAttributesResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceCapacityReservationAttributesResult where + schema := .struct "ModifyInstanceCapacityReservationAttributesResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure ModifyInstanceConnectEndpointResult where + /-- Is true if the request succeeds and an error otherwise. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceConnectEndpointResult where + schema := .struct "ModifyInstanceConnectEndpointResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure ModifyInstanceEventStartTimeRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the event whose date and time you are modifying. -/ + instanceEventId : String + /-- The ID of the instance with the scheduled event. -/ + instanceId : String + /-- The new date and time when the event will take place. -/ + notBefore : Timestamp +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceEventStartTimeRequest where + schema := .struct "ModifyInstanceEventStartTimeRequest" [({ name := "DryRun" }, .bool), + ({ name := "InstanceEventId", required := true }, .string), + ({ name := "InstanceId", required := true }, .string), + ({ name := "NotBefore", required := true }, (.time none))] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceEventId" x.instanceEventId, put "InstanceId" x.instanceId, put "NotBefore" x.notBefore] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceEventId ← v.req "InstanceEventId" + let instanceId ← v.req "InstanceId" + let notBefore ← v.req "NotBefore" + return { dryRun, instanceEventId, instanceId, notBefore } + +structure ModifyInstanceMetadataDefaultsResult where + /-- If the request succeeds, the response returns true . -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceMetadataDefaultsResult where + schema := .struct "ModifyInstanceMetadataDefaultsResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure ModifyInstancePlacementResult where + /-- Is true if the request succeeds, and an error otherwise. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstancePlacementResult where + schema := .struct "ModifyInstancePlacementResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure ModifyIpamPoolAllocationRequest where + /-- The new description for the IPAM pool allocation. -/ + description : Option String := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM pool allocation you want to modify. -/ + ipamPoolAllocationId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIpamPoolAllocationRequest where + schema := .struct "ModifyIpamPoolAllocationRequest" [({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "IpamPoolAllocationId", required := true }, .string)] + toValue x := record [putOpt "Description" x.description, putOpt "DryRun" x.dryRun, put "IpamPoolAllocationId" x.ipamPoolAllocationId] + ofValue v := do + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let ipamPoolAllocationId ← v.req "IpamPoolAllocationId" + return { description, dryRun, ipamPoolAllocationId } + +structure ModifyIpamPrefixListResolverTargetRequest where + /-- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The desired version of the prefix list to target. -/ + desiredVersion : Option Int := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM prefix list resolver target to modify. -/ + ipamPrefixListResolverTargetId : String + /-- Indicates whether the resolver target should automatically track the latest version of the prefix list. -/ + trackLatestVersion : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIpamPrefixListResolverTargetRequest where + schema := .struct "ModifyIpamPrefixListResolverTargetRequest" [({ name := "ClientToken" }, .string), + ({ name := "DesiredVersion" }, .int), + ({ name := "DryRun" }, .bool), + ({ name := "IpamPrefixListResolverTargetId", required := true }, .string), + ({ name := "TrackLatestVersion" }, .bool)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DesiredVersion" x.desiredVersion, putOpt "DryRun" x.dryRun, put "IpamPrefixListResolverTargetId" x.ipamPrefixListResolverTargetId, putOpt "TrackLatestVersion" x.trackLatestVersion] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let desiredVersion ← v.opt "DesiredVersion" + let dryRun ← v.opt "DryRun" + let ipamPrefixListResolverTargetId ← v.req "IpamPrefixListResolverTargetId" + let trackLatestVersion ← v.opt "TrackLatestVersion" + return { clientToken, desiredVersion, dryRun, ipamPrefixListResolverTargetId, trackLatestVersion } + +structure ModifyIpamResourceCidrRequest where + /-- The ID of the current scope that the resource CIDR is in. -/ + currentIpamScopeId : String + /-- The ID of the scope you want to transfer the resource CIDR to. -/ + destinationIpamScopeId : Option String := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- Determines if the resource is monitored by IPAM. -/ + monitored : Bool + /-- The CIDR of the resource you want to modify. -/ + resourceCidr : String + /-- The ID of the resource you want to modify. -/ + resourceId : String + /-- The Amazon Web Services Region of the resource you want to modify. -/ + resourceRegion : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIpamResourceCidrRequest where + schema := .struct "ModifyIpamResourceCidrRequest" [({ name := "CurrentIpamScopeId", required := true }, .string), + ({ name := "DestinationIpamScopeId" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Monitored", required := true }, .bool), + ({ name := "ResourceCidr", required := true }, .string), + ({ name := "ResourceId", required := true }, .string), + ({ name := "ResourceRegion", required := true }, .string)] + toValue x := record [put "CurrentIpamScopeId" x.currentIpamScopeId, putOpt "DestinationIpamScopeId" x.destinationIpamScopeId, putOpt "DryRun" x.dryRun, put "Monitored" x.monitored, put "ResourceCidr" x.resourceCidr, put "ResourceId" x.resourceId, put "ResourceRegion" x.resourceRegion] + ofValue v := do + let currentIpamScopeId ← v.req "CurrentIpamScopeId" + let destinationIpamScopeId ← v.opt "DestinationIpamScopeId" + let dryRun ← v.opt "DryRun" + let monitored ← v.req "Monitored" + let resourceCidr ← v.req "ResourceCidr" + let resourceId ← v.req "ResourceId" + let resourceRegion ← v.req "ResourceRegion" + return { currentIpamScopeId, destinationIpamScopeId, dryRun, monitored, resourceCidr, resourceId, resourceRegion } + +structure ModifyIpamRoutingPolicyRegistrationRequest where + /-- The updated list of Autonomous System Numbers (ASNs) authorized to originate the prefix. -/ + asns : (List String) + /-- The IP address prefix in CIDR notation identifying the routing policy registration to modify. -/ + cidr : String + /-- A unique, case-sensitive identifier to ensure that the operation completes no more than one time. -/ + clientToken : Option String := none + /-- A new description for the routing policy registration. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Forces the modification even if it conflicts with an announced route. -/ + force : Option Bool := none + /-- The ID of the IPAM internet registry association. -/ + ipamInternetRegistryAssociationId : String + /-- The new maximum prefix length that the ASNs are authorized to announce. -/ + maxLength : Option Int := none + /-- Specifies whether to permit more specific route announcements than the CIDR prefix. -/ + permitMoreSpecificAnnouncements : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIpamRoutingPolicyRegistrationRequest where + schema := .struct "ModifyIpamRoutingPolicyRegistrationRequest" [({ name := "Asns", required := true, xmlName := some "Asn" }, (.list .string "item")), + ({ name := "Cidr", required := true }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Force" }, .bool), + ({ name := "IpamInternetRegistryAssociationId", required := true }, .string), + ({ name := "MaxLength" }, .int), + ({ name := "PermitMoreSpecificAnnouncements" }, .bool)] + toValue x := record [put "Asns" x.asns, put "Cidr" x.cidr, putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "Force" x.force, put "IpamInternetRegistryAssociationId" x.ipamInternetRegistryAssociationId, putOpt "MaxLength" x.maxLength, putOpt "PermitMoreSpecificAnnouncements" x.permitMoreSpecificAnnouncements] + ofValue v := do + let asns ← v.req "Asns" + let cidr ← v.req "Cidr" + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let force ← v.opt "Force" + let ipamInternetRegistryAssociationId ← v.req "IpamInternetRegistryAssociationId" + let maxLength ← v.opt "MaxLength" + let permitMoreSpecificAnnouncements ← v.opt "PermitMoreSpecificAnnouncements" + return { asns, cidr, clientToken, description, dryRun, force, ipamInternetRegistryAssociationId, maxLength, permitMoreSpecificAnnouncements } + +structure ModifyLaunchTemplateRequest where + /-- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The version number of the launch template to set as the default version. -/ + defaultVersion : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the launch template. -/ + launchTemplateId : Option String := none + /-- The name of the launch template. -/ + launchTemplateName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyLaunchTemplateRequest where + schema := .struct "ModifyLaunchTemplateRequest" [({ name := "ClientToken" }, .string), + ({ name := "DefaultVersion", xmlName := some "SetDefaultVersion" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "LaunchTemplateId" }, .string), + ({ name := "LaunchTemplateName" }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DefaultVersion" x.defaultVersion, putOpt "DryRun" x.dryRun, putOpt "LaunchTemplateId" x.launchTemplateId, putOpt "LaunchTemplateName" x.launchTemplateName] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let defaultVersion ← v.opt "DefaultVersion" + let dryRun ← v.opt "DryRun" + let launchTemplateId ← v.opt "LaunchTemplateId" + let launchTemplateName ← v.opt "LaunchTemplateName" + return { clientToken, defaultVersion, dryRun, launchTemplateId, launchTemplateName } + +structure ModifyLocalGatewayRouteRequest where + /-- The CIDR block used for destination matches. -/ + destinationCidrBlock : Option String := none + /-- The ID of the prefix list. -/ + destinationPrefixListId : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the local gateway route table. -/ + localGatewayRouteTableId : String + /-- The ID of the virtual interface group. -/ + localGatewayVirtualInterfaceGroupId : Option String := none + /-- The ID of the network interface. -/ + networkInterfaceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyLocalGatewayRouteRequest where + schema := .struct "ModifyLocalGatewayRouteRequest" [({ name := "DestinationCidrBlock" }, .string), + ({ name := "DestinationPrefixListId" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "LocalGatewayRouteTableId", required := true }, .string), + ({ name := "LocalGatewayVirtualInterfaceGroupId" }, .string), + ({ name := "NetworkInterfaceId" }, .string)] + toValue x := record [putOpt "DestinationCidrBlock" x.destinationCidrBlock, putOpt "DestinationPrefixListId" x.destinationPrefixListId, putOpt "DryRun" x.dryRun, put "LocalGatewayRouteTableId" x.localGatewayRouteTableId, putOpt "LocalGatewayVirtualInterfaceGroupId" x.localGatewayVirtualInterfaceGroupId, putOpt "NetworkInterfaceId" x.networkInterfaceId] + ofValue v := do + let destinationCidrBlock ← v.opt "DestinationCidrBlock" + let destinationPrefixListId ← v.opt "DestinationPrefixListId" + let dryRun ← v.opt "DryRun" + let localGatewayRouteTableId ← v.req "LocalGatewayRouteTableId" + let localGatewayVirtualInterfaceGroupId ← v.opt "LocalGatewayVirtualInterfaceGroupId" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + return { destinationCidrBlock, destinationPrefixListId, dryRun, localGatewayRouteTableId, localGatewayVirtualInterfaceGroupId, networkInterfaceId } + +structure ModifyMetricCategoryRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the metric category. -/ + metricCategoryId : String + /-- The names of the metrics for the metric category. -/ + metrics : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyMetricCategoryRequest where + schema := .struct "ModifyMetricCategoryRequest" [({ name := "DryRun" }, .bool), + ({ name := "MetricCategoryId", required := true }, .string), + ({ name := "Metrics", required := true, xmlName := some "Metric" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "MetricCategoryId" x.metricCategoryId, put "Metrics" x.metrics] + ofValue v := do + let dryRun ← v.opt "DryRun" + let metricCategoryId ← v.req "MetricCategoryId" + let metrics ← v.req "Metrics" + return { dryRun, metricCategoryId, metrics } + +structure ModifyNetworkingFlexCostAllocationPolicyResult where + /-- The ID of the flex cost allocation policy. -/ + fcaPolicyId : Option String := none + /-- The date and time when the policy was updated. -/ + updatedAt : Option Timestamp := none + /-- The version number of the policy that this modification created. -/ + version : Option Int := none + /-- The date and time when the new version of the policy is expected to apply to network traffic. -/ + versionExpectedEffectiveAt : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyNetworkingFlexCostAllocationPolicyResult where + schema := .struct "ModifyNetworkingFlexCostAllocationPolicyResult" [({ name := "FcaPolicyId", xmlName := some "fcaPolicyId", queryName := some "FcaPolicyId" }, .string), + ({ name := "UpdatedAt", xmlName := some "updatedAt", queryName := some "UpdatedAt" }, (.time none)), + ({ name := "Version", xmlName := some "version", queryName := some "Version" }, .int), + ({ name := "VersionExpectedEffectiveAt", xmlName := some "versionExpectedEffectiveAt", queryName := some "VersionExpectedEffectiveAt" }, (.time none))] + toValue x := record [putOpt "FcaPolicyId" x.fcaPolicyId, putOpt "UpdatedAt" x.updatedAt, putOpt "Version" x.version, putOpt "VersionExpectedEffectiveAt" x.versionExpectedEffectiveAt] + ofValue v := do + let fcaPolicyId ← v.opt "FcaPolicyId" + let updatedAt ← v.opt "UpdatedAt" + let version ← v.opt "Version" + let versionExpectedEffectiveAt ← v.opt "VersionExpectedEffectiveAt" + return { fcaPolicyId, updatedAt, version, versionExpectedEffectiveAt } + +structure ModifyPrivateDnsNameOptionsResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyPrivateDnsNameOptionsResult where + schema := .struct "ModifyPrivateDnsNameOptionsResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure ModifyPublicIpDnsNameOptionsResult where + /-- Whether or not the request was successful. -/ + successful : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyPublicIpDnsNameOptionsResult where + schema := .struct "ModifyPublicIpDnsNameOptionsResult" [({ name := "Successful", xmlName := some "successful", queryName := some "Successful" }, .bool)] + toValue x := record [putOpt "Successful" x.successful] + ofValue v := do + let successful ← v.opt "Successful" + return { successful } + +/-- Contains the output of ModifyReservedInstances. -/ +structure ModifyReservedInstancesResult where + /-- The ID for the modification. -/ + reservedInstancesModificationId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyReservedInstancesResult where + schema := .struct "ModifyReservedInstancesResult" [({ name := "ReservedInstancesModificationId", xmlName := some "reservedInstancesModificationId", queryName := some "ReservedInstancesModificationId" }, .string)] + toValue x := record [putOpt "ReservedInstancesModificationId" x.reservedInstancesModificationId] + ofValue v := do + let reservedInstancesModificationId ← v.opt "ReservedInstancesModificationId" + return { reservedInstancesModificationId } + +structure ModifySecurityGroupRulesResult where + /-- Returns true if the request succeeds; otherwise, returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifySecurityGroupRulesResult where + schema := .struct "ModifySecurityGroupRulesResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure ModifySnapshotTierResult where + /-- The ID of the snapshot. -/ + snapshotId : Option String := none + /-- The date and time when the archive process was started. -/ + tieringStartTime : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifySnapshotTierResult where + schema := .struct "ModifySnapshotTierResult" [({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string), + ({ name := "TieringStartTime", xmlName := some "tieringStartTime", queryName := some "TieringStartTime" }, (.time none))] + toValue x := record [putOpt "SnapshotId" x.snapshotId, putOpt "TieringStartTime" x.tieringStartTime] + ofValue v := do + let snapshotId ← v.opt "SnapshotId" + let tieringStartTime ← v.opt "TieringStartTime" + return { snapshotId, tieringStartTime } + +/-- Contains the output of ModifySpotFleetRequest. -/ +structure ModifySpotFleetRequestResponse where + /-- If the request succeeds, the response returns true . -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifySpotFleetRequestResponse where + schema := .struct "ModifySpotFleetRequestResponse" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure ModifyTransitGatewayMeteringPolicyRequest where + /-- The IDs of middlebox attachments to add to the metering policy. -/ + addMiddleboxAttachmentIds : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of middlebox attachments to remove from the metering policy. -/ + removeMiddleboxAttachmentIds : Option (List String) := none + /-- The ID of the transit gateway metering policy to modify. -/ + transitGatewayMeteringPolicyId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTransitGatewayMeteringPolicyRequest where + schema := .struct "ModifyTransitGatewayMeteringPolicyRequest" [({ name := "AddMiddleboxAttachmentIds", xmlName := some "AddMiddleboxAttachmentId" }, (.list .string "member")), + ({ name := "DryRun" }, .bool), + ({ name := "RemoveMiddleboxAttachmentIds", xmlName := some "RemoveMiddleboxAttachmentId" }, (.list .string "member")), + ({ name := "TransitGatewayMeteringPolicyId", required := true }, .string)] + toValue x := record [putOpt "AddMiddleboxAttachmentIds" x.addMiddleboxAttachmentIds, putOpt "DryRun" x.dryRun, putOpt "RemoveMiddleboxAttachmentIds" x.removeMiddleboxAttachmentIds, put "TransitGatewayMeteringPolicyId" x.transitGatewayMeteringPolicyId] + ofValue v := do + let addMiddleboxAttachmentIds ← v.opt "AddMiddleboxAttachmentIds" + let dryRun ← v.opt "DryRun" + let removeMiddleboxAttachmentIds ← v.opt "RemoveMiddleboxAttachmentIds" + let transitGatewayMeteringPolicyId ← v.req "TransitGatewayMeteringPolicyId" + return { addMiddleboxAttachmentIds, dryRun, removeMiddleboxAttachmentIds, transitGatewayMeteringPolicyId } + +structure ModifyTransitGatewayNetworkFunctionAttachmentRequest where + /-- The IDs of the Availability Zones to add to the attachment. -/ + addAvailabilityZoneIds : Option (List String) := none + /-- The names of the Availability Zones to add to the attachment. -/ + addAvailabilityZones : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the Availability Zones to remove from the attachment. -/ + removeAvailabilityZoneIds : Option (List String) := none + /-- The names of the Availability Zones to remove from the attachment. -/ + removeAvailabilityZones : Option (List String) := none + /-- The ID of the network function attachment. -/ + transitGatewayAttachmentId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTransitGatewayNetworkFunctionAttachmentRequest where + schema := .struct "ModifyTransitGatewayNetworkFunctionAttachmentRequest" [({ name := "AddAvailabilityZoneIds", xmlName := some "AddAvailabilityZoneId" }, (.list .string "item")), + ({ name := "AddAvailabilityZones", xmlName := some "AddAvailabilityZone" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "RemoveAvailabilityZoneIds", xmlName := some "RemoveAvailabilityZoneId" }, (.list .string "item")), + ({ name := "RemoveAvailabilityZones", xmlName := some "RemoveAvailabilityZone" }, (.list .string "item")), + ({ name := "TransitGatewayAttachmentId", required := true }, .string)] + toValue x := record [putOpt "AddAvailabilityZoneIds" x.addAvailabilityZoneIds, putOpt "AddAvailabilityZones" x.addAvailabilityZones, putOpt "DryRun" x.dryRun, putOpt "RemoveAvailabilityZoneIds" x.removeAvailabilityZoneIds, putOpt "RemoveAvailabilityZones" x.removeAvailabilityZones, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let addAvailabilityZoneIds ← v.opt "AddAvailabilityZoneIds" + let addAvailabilityZones ← v.opt "AddAvailabilityZones" + let dryRun ← v.opt "DryRun" + let removeAvailabilityZoneIds ← v.opt "RemoveAvailabilityZoneIds" + let removeAvailabilityZones ← v.opt "RemoveAvailabilityZones" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + return { addAvailabilityZoneIds, addAvailabilityZones, dryRun, removeAvailabilityZoneIds, removeAvailabilityZones, transitGatewayAttachmentId } + +structure ModifyTransitGatewayPrefixListReferenceRequest where + /-- Indicates whether to drop traffic that matches this route. -/ + blackhole : Option Bool := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the prefix list. -/ + prefixListId : String + /-- The ID of the attachment to which traffic is routed. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the transit gateway route table. -/ + transitGatewayRouteTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTransitGatewayPrefixListReferenceRequest where + schema := .struct "ModifyTransitGatewayPrefixListReferenceRequest" [({ name := "Blackhole" }, .bool), + ({ name := "DryRun" }, .bool), + ({ name := "PrefixListId", required := true }, .string), + ({ name := "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayRouteTableId", required := true }, .string)] + toValue x := record [putOpt "Blackhole" x.blackhole, putOpt "DryRun" x.dryRun, put "PrefixListId" x.prefixListId, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, put "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let blackhole ← v.opt "Blackhole" + let dryRun ← v.opt "DryRun" + let prefixListId ← v.req "PrefixListId" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayRouteTableId ← v.req "TransitGatewayRouteTableId" + return { blackhole, dryRun, prefixListId, transitGatewayAttachmentId, transitGatewayRouteTableId } + +/-- Describes the port range for a Verified Access endpoint. -/ +structure ModifyVerifiedAccessEndpointPortRange where + /-- The start of the port range. -/ + fromPort : Option Int := none + /-- The end of the port range. -/ + toPort : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessEndpointPortRange where + schema := .struct "ModifyVerifiedAccessEndpointPortRange" [({ name := "FromPort" }, .int), + ({ name := "ToPort" }, .int)] + toValue x := record [putOpt "FromPort" x.fromPort, putOpt "ToPort" x.toPort] + ofValue v := do + let fromPort ← v.opt "FromPort" + let toPort ← v.opt "ToPort" + return { fromPort, toPort } + +/-- The RDS options for a Verified Access endpoint. -/ +structure ModifyVerifiedAccessEndpointRdsOptions where + /-- The port. -/ + port : Option Int := none + /-- The RDS endpoint. -/ + rdsEndpoint : Option String := none + /-- The IDs of the subnets. -/ + subnetIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessEndpointRdsOptions where + schema := .struct "ModifyVerifiedAccessEndpointRdsOptions" [({ name := "Port" }, .int), + ({ name := "RdsEndpoint" }, .string), + ({ name := "SubnetIds", xmlName := some "SubnetId" }, (.list .string "item"))] + toValue x := record [putOpt "Port" x.port, putOpt "RdsEndpoint" x.rdsEndpoint, putOpt "SubnetIds" x.subnetIds] + ofValue v := do + let port ← v.opt "Port" + let rdsEndpoint ← v.opt "RdsEndpoint" + let subnetIds ← v.opt "SubnetIds" + return { port, rdsEndpoint, subnetIds } + +structure ModifyVerifiedAccessGroupRequest where + /-- A unique, case-sensitive token that you provide to ensure idempotency of your modification request. -/ + clientToken : Option String := none + /-- A description for the Verified Access group. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Verified Access group. -/ + verifiedAccessGroupId : String + /-- The ID of the Verified Access instance. -/ + verifiedAccessInstanceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessGroupRequest where + schema := .struct "ModifyVerifiedAccessGroupRequest" [({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "VerifiedAccessGroupId", required := true }, .string), + ({ name := "VerifiedAccessInstanceId" }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, put "VerifiedAccessGroupId" x.verifiedAccessGroupId, putOpt "VerifiedAccessInstanceId" x.verifiedAccessInstanceId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let verifiedAccessGroupId ← v.req "VerifiedAccessGroupId" + let verifiedAccessInstanceId ← v.opt "VerifiedAccessInstanceId" + return { clientToken, description, dryRun, verifiedAccessGroupId, verifiedAccessInstanceId } + +structure ModifyVerifiedAccessInstanceRequest where + /-- The custom subdomain. -/ + cidrEndpointsCustomSubDomain : Option String := none + /-- A unique, case-sensitive token that you provide to ensure idempotency of your modification request. -/ + clientToken : Option String := none + /-- A description for the Verified Access instance. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Verified Access instance. -/ + verifiedAccessInstanceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessInstanceRequest where + schema := .struct "ModifyVerifiedAccessInstanceRequest" [({ name := "CidrEndpointsCustomSubDomain" }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "VerifiedAccessInstanceId", required := true }, .string)] + toValue x := record [putOpt "CidrEndpointsCustomSubDomain" x.cidrEndpointsCustomSubDomain, putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, put "VerifiedAccessInstanceId" x.verifiedAccessInstanceId] + ofValue v := do + let cidrEndpointsCustomSubDomain ← v.opt "CidrEndpointsCustomSubDomain" + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let verifiedAccessInstanceId ← v.req "VerifiedAccessInstanceId" + return { cidrEndpointsCustomSubDomain, clientToken, description, dryRun, verifiedAccessInstanceId } + +/-- Describes the OpenID Connect (OIDC) options. -/ +structure ModifyVerifiedAccessNativeApplicationOidcOptions where + /-- The authorization endpoint of the IdP. -/ + authorizationEndpoint : Option String := none + /-- The OAuth 2.0 client identifier. -/ + clientId : Option String := none + /-- The OAuth 2.0 client secret. -/ + clientSecret : Option String := none + /-- The OIDC issuer identifier of the IdP. -/ + issuer : Option String := none + /-- The public signing key endpoint. -/ + publicSigningKeyEndpoint : Option String := none + /-- The set of user claims to be requested from the IdP. -/ + scope : Option String := none + /-- The token endpoint of the IdP. -/ + tokenEndpoint : Option String := none + /-- The user info endpoint of the IdP. -/ + userInfoEndpoint : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessNativeApplicationOidcOptions where + schema := .struct "ModifyVerifiedAccessNativeApplicationOidcOptions" [({ name := "AuthorizationEndpoint" }, .string), + ({ name := "ClientId" }, .string), + ({ name := "ClientSecret" }, .string), + ({ name := "Issuer" }, .string), + ({ name := "PublicSigningKeyEndpoint" }, .string), + ({ name := "Scope" }, .string), + ({ name := "TokenEndpoint" }, .string), + ({ name := "UserInfoEndpoint" }, .string)] + toValue x := record [putOpt "AuthorizationEndpoint" x.authorizationEndpoint, putOpt "ClientId" x.clientId, putOpt "ClientSecret" x.clientSecret, putOpt "Issuer" x.issuer, putOpt "PublicSigningKeyEndpoint" x.publicSigningKeyEndpoint, putOpt "Scope" x.scope, putOpt "TokenEndpoint" x.tokenEndpoint, putOpt "UserInfoEndpoint" x.userInfoEndpoint] + ofValue v := do + let authorizationEndpoint ← v.opt "AuthorizationEndpoint" + let clientId ← v.opt "ClientId" + let clientSecret ← v.opt "ClientSecret" + let issuer ← v.opt "Issuer" + let publicSigningKeyEndpoint ← v.opt "PublicSigningKeyEndpoint" + let scope ← v.opt "Scope" + let tokenEndpoint ← v.opt "TokenEndpoint" + let userInfoEndpoint ← v.opt "UserInfoEndpoint" + return { authorizationEndpoint, clientId, clientSecret, issuer, publicSigningKeyEndpoint, scope, tokenEndpoint, userInfoEndpoint } + +/-- Modifies the configuration of the specified device-based Amazon Web Services Verified Access trust provider. -/ +structure ModifyVerifiedAccessTrustProviderDeviceOptions where + /-- The URL Amazon Web Services Verified Access will use to verify the authenticity of the device tokens. -/ + publicSigningKeyUrl : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessTrustProviderDeviceOptions where + schema := .struct "ModifyVerifiedAccessTrustProviderDeviceOptions" [({ name := "PublicSigningKeyUrl" }, .string)] + toValue x := record [putOpt "PublicSigningKeyUrl" x.publicSigningKeyUrl] + ofValue v := do + let publicSigningKeyUrl ← v.opt "PublicSigningKeyUrl" + return { publicSigningKeyUrl } + +/-- Options for an OpenID Connect-compatible user-identity trust provider. -/ +structure ModifyVerifiedAccessTrustProviderOidcOptions where + /-- The OIDC authorization endpoint. -/ + authorizationEndpoint : Option String := none + /-- The client identifier. -/ + clientId : Option String := none + /-- The client secret. -/ + clientSecret : Option String := none + /-- The OIDC issuer. -/ + issuer : Option String := none + /-- OpenID Connect (OIDC) scopes are used by an application during authentication to authorize access to a user's details. -/ + scope : Option String := none + /-- The OIDC token endpoint. -/ + tokenEndpoint : Option String := none + /-- The OIDC user info endpoint. -/ + userInfoEndpoint : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessTrustProviderOidcOptions where + schema := .struct "ModifyVerifiedAccessTrustProviderOidcOptions" [({ name := "AuthorizationEndpoint" }, .string), + ({ name := "ClientId" }, .string), + ({ name := "ClientSecret" }, .string), + ({ name := "Issuer" }, .string), + ({ name := "Scope" }, .string), + ({ name := "TokenEndpoint" }, .string), + ({ name := "UserInfoEndpoint" }, .string)] + toValue x := record [putOpt "AuthorizationEndpoint" x.authorizationEndpoint, putOpt "ClientId" x.clientId, putOpt "ClientSecret" x.clientSecret, putOpt "Issuer" x.issuer, putOpt "Scope" x.scope, putOpt "TokenEndpoint" x.tokenEndpoint, putOpt "UserInfoEndpoint" x.userInfoEndpoint] + ofValue v := do + let authorizationEndpoint ← v.opt "AuthorizationEndpoint" + let clientId ← v.opt "ClientId" + let clientSecret ← v.opt "ClientSecret" + let issuer ← v.opt "Issuer" + let scope ← v.opt "Scope" + let tokenEndpoint ← v.opt "TokenEndpoint" + let userInfoEndpoint ← v.opt "UserInfoEndpoint" + return { authorizationEndpoint, clientId, clientSecret, issuer, scope, tokenEndpoint, userInfoEndpoint } + +structure ModifyVpcEndpointConnectionNotificationRequest where + /-- The events for the endpoint. -/ + connectionEvents : Option (List String) := none + /-- The ARN for the SNS topic for the notification. -/ + connectionNotificationArn : Option String := none + /-- The ID of the notification. -/ + connectionNotificationId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcEndpointConnectionNotificationRequest where + schema := .struct "ModifyVpcEndpointConnectionNotificationRequest" [({ name := "ConnectionEvents" }, (.list .string "item")), + ({ name := "ConnectionNotificationArn" }, .string), + ({ name := "ConnectionNotificationId", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "ConnectionEvents" x.connectionEvents, putOpt "ConnectionNotificationArn" x.connectionNotificationArn, put "ConnectionNotificationId" x.connectionNotificationId, putOpt "DryRun" x.dryRun] + ofValue v := do + let connectionEvents ← v.opt "ConnectionEvents" + let connectionNotificationArn ← v.opt "ConnectionNotificationArn" + let connectionNotificationId ← v.req "ConnectionNotificationId" + let dryRun ← v.opt "DryRun" + return { connectionEvents, connectionNotificationArn, connectionNotificationId, dryRun } + +structure ModifyVpcEndpointConnectionNotificationResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + returnValue : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcEndpointConnectionNotificationResult where + schema := .struct "ModifyVpcEndpointConnectionNotificationResult" [({ name := "ReturnValue", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "ReturnValue" x.returnValue] + ofValue v := do + let returnValue ← v.opt "ReturnValue" + return { returnValue } + +structure ModifyVpcEndpointResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcEndpointResult where + schema := .struct "ModifyVpcEndpointResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure ModifyVpcEndpointServiceConfigurationRequest where + /-- Indicates whether requests to create an endpoint to the service must be accepted. -/ + acceptanceRequired : Option Bool := none + /-- The Amazon Resource Names (ARNs) of Gateway Load Balancers to add to the service configuration. -/ + addGatewayLoadBalancerArns : Option (List String) := none + /-- The Amazon Resource Names (ARNs) of Network Load Balancers to add to the service configuration. -/ + addNetworkLoadBalancerArns : Option (List String) := none + /-- The IP address types to add to the service configuration. -/ + addSupportedIpAddressTypes : Option (List String) := none + /-- The supported Regions to add to the service configuration. -/ + addSupportedRegions : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- (Interface endpoint configuration) The private DNS name to assign to the endpoint service. -/ + privateDnsName : Option String := none + /-- The Amazon Resource Names (ARNs) of Gateway Load Balancers to remove from the service configuration. -/ + removeGatewayLoadBalancerArns : Option (List String) := none + /-- The Amazon Resource Names (ARNs) of Network Load Balancers to remove from the service configuration. -/ + removeNetworkLoadBalancerArns : Option (List String) := none + /-- (Interface endpoint configuration) Removes the private DNS name of the endpoint service. -/ + removePrivateDnsName : Option Bool := none + /-- The IP address types to remove from the service configuration. -/ + removeSupportedIpAddressTypes : Option (List String) := none + /-- The supported Regions to remove from the service configuration. -/ + removeSupportedRegions : Option (List String) := none + /-- The ID of the service. -/ + serviceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcEndpointServiceConfigurationRequest where + schema := .struct "ModifyVpcEndpointServiceConfigurationRequest" [({ name := "AcceptanceRequired" }, .bool), + ({ name := "AddGatewayLoadBalancerArns", xmlName := some "AddGatewayLoadBalancerArn" }, (.list .string "item")), + ({ name := "AddNetworkLoadBalancerArns", xmlName := some "AddNetworkLoadBalancerArn" }, (.list .string "item")), + ({ name := "AddSupportedIpAddressTypes", xmlName := some "AddSupportedIpAddressType" }, (.list .string "item")), + ({ name := "AddSupportedRegions", xmlName := some "AddSupportedRegion" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "PrivateDnsName" }, .string), + ({ name := "RemoveGatewayLoadBalancerArns", xmlName := some "RemoveGatewayLoadBalancerArn" }, (.list .string "item")), + ({ name := "RemoveNetworkLoadBalancerArns", xmlName := some "RemoveNetworkLoadBalancerArn" }, (.list .string "item")), + ({ name := "RemovePrivateDnsName" }, .bool), + ({ name := "RemoveSupportedIpAddressTypes", xmlName := some "RemoveSupportedIpAddressType" }, (.list .string "item")), + ({ name := "RemoveSupportedRegions", xmlName := some "RemoveSupportedRegion" }, (.list .string "item")), + ({ name := "ServiceId", required := true }, .string)] + toValue x := record [putOpt "AcceptanceRequired" x.acceptanceRequired, putOpt "AddGatewayLoadBalancerArns" x.addGatewayLoadBalancerArns, putOpt "AddNetworkLoadBalancerArns" x.addNetworkLoadBalancerArns, putOpt "AddSupportedIpAddressTypes" x.addSupportedIpAddressTypes, putOpt "AddSupportedRegions" x.addSupportedRegions, putOpt "DryRun" x.dryRun, putOpt "PrivateDnsName" x.privateDnsName, putOpt "RemoveGatewayLoadBalancerArns" x.removeGatewayLoadBalancerArns, putOpt "RemoveNetworkLoadBalancerArns" x.removeNetworkLoadBalancerArns, putOpt "RemovePrivateDnsName" x.removePrivateDnsName, putOpt "RemoveSupportedIpAddressTypes" x.removeSupportedIpAddressTypes, putOpt "RemoveSupportedRegions" x.removeSupportedRegions, put "ServiceId" x.serviceId] + ofValue v := do + let acceptanceRequired ← v.opt "AcceptanceRequired" + let addGatewayLoadBalancerArns ← v.opt "AddGatewayLoadBalancerArns" + let addNetworkLoadBalancerArns ← v.opt "AddNetworkLoadBalancerArns" + let addSupportedIpAddressTypes ← v.opt "AddSupportedIpAddressTypes" + let addSupportedRegions ← v.opt "AddSupportedRegions" + let dryRun ← v.opt "DryRun" + let privateDnsName ← v.opt "PrivateDnsName" + let removeGatewayLoadBalancerArns ← v.opt "RemoveGatewayLoadBalancerArns" + let removeNetworkLoadBalancerArns ← v.opt "RemoveNetworkLoadBalancerArns" + let removePrivateDnsName ← v.opt "RemovePrivateDnsName" + let removeSupportedIpAddressTypes ← v.opt "RemoveSupportedIpAddressTypes" + let removeSupportedRegions ← v.opt "RemoveSupportedRegions" + let serviceId ← v.req "ServiceId" + return { acceptanceRequired, addGatewayLoadBalancerArns, addNetworkLoadBalancerArns, addSupportedIpAddressTypes, addSupportedRegions, dryRun, privateDnsName, removeGatewayLoadBalancerArns, removeNetworkLoadBalancerArns, removePrivateDnsName, removeSupportedIpAddressTypes, removeSupportedRegions, serviceId } + +structure ModifyVpcEndpointServiceConfigurationResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcEndpointServiceConfigurationResult where + schema := .struct "ModifyVpcEndpointServiceConfigurationResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure ModifyVpcEndpointServicePayerResponsibilityResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + returnValue : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcEndpointServicePayerResponsibilityResult where + schema := .struct "ModifyVpcEndpointServicePayerResponsibilityResult" [({ name := "ReturnValue", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "ReturnValue" x.returnValue] + ofValue v := do + let returnValue ← v.opt "ReturnValue" + return { returnValue } + +structure ModifyVpcTenancyResult where + /-- Returns true if the request succeeds; otherwise, returns an error. -/ + returnValue : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcTenancyResult where + schema := .struct "ModifyVpcTenancyResult" [({ name := "ReturnValue", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "ReturnValue" x.returnValue] + ofValue v := do + let returnValue ← v.opt "ReturnValue" + return { returnValue } + +structure ModifyVpnConnectionRequest where + /-- The ID of the customer gateway at your end of the VPN connection. -/ + customerGatewayId : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the transit gateway. -/ + transitGatewayId : Option String := none + /-- The ID of the VPN connection. -/ + vpnConnectionId : String + /-- The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection. -/ + vpnGatewayId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpnConnectionRequest where + schema := .struct "ModifyVpnConnectionRequest" [({ name := "CustomerGatewayId" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayId" }, .string), + ({ name := "VpnConnectionId", required := true }, .string), + ({ name := "VpnGatewayId" }, .string)] + toValue x := record [putOpt "CustomerGatewayId" x.customerGatewayId, putOpt "DryRun" x.dryRun, putOpt "TransitGatewayId" x.transitGatewayId, put "VpnConnectionId" x.vpnConnectionId, putOpt "VpnGatewayId" x.vpnGatewayId] + ofValue v := do + let customerGatewayId ← v.opt "CustomerGatewayId" + let dryRun ← v.opt "DryRun" + let transitGatewayId ← v.opt "TransitGatewayId" + let vpnConnectionId ← v.req "VpnConnectionId" + let vpnGatewayId ← v.opt "VpnGatewayId" + return { customerGatewayId, dryRun, transitGatewayId, vpnConnectionId, vpnGatewayId } + +structure ModifyVpnTunnelCertificateRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Amazon Web Services Site-to-Site VPN connection. -/ + vpnConnectionId : String + /-- The external IP address of the VPN tunnel. -/ + vpnTunnelOutsideIpAddress : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpnTunnelCertificateRequest where + schema := .struct "ModifyVpnTunnelCertificateRequest" [({ name := "DryRun" }, .bool), + ({ name := "VpnConnectionId", required := true }, .string), + ({ name := "VpnTunnelOutsideIpAddress", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VpnConnectionId" x.vpnConnectionId, put "VpnTunnelOutsideIpAddress" x.vpnTunnelOutsideIpAddress] + ofValue v := do + let dryRun ← v.opt "DryRun" + let vpnConnectionId ← v.req "VpnConnectionId" + let vpnTunnelOutsideIpAddress ← v.req "VpnTunnelOutsideIpAddress" + return { dryRun, vpnConnectionId, vpnTunnelOutsideIpAddress } + +structure MonitorInstancesRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the instances. -/ + instanceIds : (List String) + /-- The IDs of the metric categories to associate with the instances. -/ + metricCategoryIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MonitorInstancesRequest where + schema := .struct "MonitorInstancesRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "InstanceIds", required := true, xmlName := some "InstanceId" }, (.list .string "InstanceId")), + ({ name := "MetricCategoryIds", xmlName := some "MetricCategoryId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceIds" x.instanceIds, putOpt "MetricCategoryIds" x.metricCategoryIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceIds ← v.req "InstanceIds" + let metricCategoryIds ← v.opt "MetricCategoryIds" + return { dryRun, instanceIds, metricCategoryIds } + +inductive MonitoringState where + | disabled + | disabling + | enabled + | pending +deriving DecidableEq, Repr, Inhabited + +def MonitoringState.wire : MonitoringState → String + | .disabled => "disabled" + | .disabling => "disabling" + | .enabled => "enabled" + | .pending => "pending" + +def MonitoringState.wireValues : List (String × MonitoringState) := [ + ("disabled", .disabled), + ("disabling", .disabling), + ("enabled", .enabled), + ("pending", .pending)] + +def MonitoringState.ofWire (text : String) : Except String MonitoringState := + match List.find? (·.1 == text) MonitoringState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"MonitoringState has no value {text}" + +instance : Key MonitoringState := ⟨MonitoringState.wire, MonitoringState.ofWire⟩ + +instance : Shape MonitoringState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => MonitoringState.ofWire text + | _ => .error "expected a string" + +structure MoveAddressToVpcRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The Elastic IP address. -/ + publicIp : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape MoveAddressToVpcRequest where + schema := .struct "MoveAddressToVpcRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "PublicIp", required := true, xmlName := some "publicIp", queryName := some "PublicIp" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "PublicIp" x.publicIp] + ofValue v := do + let dryRun ← v.opt "DryRun" + let publicIp ← v.req "PublicIp" + return { dryRun, publicIp } + +structure MoveByoipCidrToIpamRequest where + /-- The BYOIP CIDR. -/ + cidr : String + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The IPAM pool ID. -/ + ipamPoolId : String + /-- The Amazon Web Services account ID of the owner of the IPAM pool. -/ + ipamPoolOwner : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape MoveByoipCidrToIpamRequest where + schema := .struct "MoveByoipCidrToIpamRequest" [({ name := "Cidr", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "IpamPoolId", required := true }, .string), + ({ name := "IpamPoolOwner", required := true }, .string)] + toValue x := record [put "Cidr" x.cidr, putOpt "DryRun" x.dryRun, put "IpamPoolId" x.ipamPoolId, put "IpamPoolOwner" x.ipamPoolOwner] + ofValue v := do + let cidr ← v.req "Cidr" + let dryRun ← v.opt "DryRun" + let ipamPoolId ← v.req "IpamPoolId" + let ipamPoolOwner ← v.req "IpamPoolOwner" + return { cidr, dryRun, ipamPoolId, ipamPoolOwner } + +structure MoveCapacityReservationInstancesRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The ID of the Capacity Reservation that you want to move capacity into. -/ + destinationCapacityReservationId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The number of instances that you want to move from the source Capacity Reservation. -/ + instanceCount : Int + /-- The ID of the Capacity Reservation from which you want to move capacity. -/ + sourceCapacityReservationId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape MoveCapacityReservationInstancesRequest where + schema := .struct "MoveCapacityReservationInstancesRequest" [({ name := "ClientToken" }, .string), + ({ name := "DestinationCapacityReservationId", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceCount", required := true }, .int), + ({ name := "SourceCapacityReservationId", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, put "DestinationCapacityReservationId" x.destinationCapacityReservationId, putOpt "DryRun" x.dryRun, put "InstanceCount" x.instanceCount, put "SourceCapacityReservationId" x.sourceCapacityReservationId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let destinationCapacityReservationId ← v.req "DestinationCapacityReservationId" + let dryRun ← v.opt "DryRun" + let instanceCount ← v.req "InstanceCount" + let sourceCapacityReservationId ← v.req "SourceCapacityReservationId" + return { clientToken, destinationCapacityReservationId, dryRun, instanceCount, sourceCapacityReservationId } + +inductive MoveStatus where + | movingToVpc + | restoringToClassic +deriving DecidableEq, Repr, Inhabited + +def MoveStatus.wire : MoveStatus → String + | .movingToVpc => "movingToVpc" + | .restoringToClassic => "restoringToClassic" + +def MoveStatus.wireValues : List (String × MoveStatus) := [ + ("movingToVpc", .movingToVpc), + ("restoringToClassic", .restoringToClassic)] + +def MoveStatus.ofWire (text : String) : Except String MoveStatus := + match List.find? (·.1 == text) MoveStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"MoveStatus has no value {text}" + +instance : Key MoveStatus := ⟨MoveStatus.wire, MoveStatus.ofWire⟩ + +instance : Shape MoveStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => MoveStatus.ofWire text + | _ => .error "expected a string" + +inductive MulticastSupportValue where + | disable + | enable +deriving DecidableEq, Repr, Inhabited + +def MulticastSupportValue.wire : MulticastSupportValue → String + | .disable => "disable" + | .enable => "enable" + +def MulticastSupportValue.wireValues : List (String × MulticastSupportValue) := [ + ("disable", .disable), + ("enable", .enable)] + +def MulticastSupportValue.ofWire (text : String) : Except String MulticastSupportValue := + match List.find? (·.1 == text) MulticastSupportValue.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"MulticastSupportValue has no value {text}" + +instance : Key MulticastSupportValue := ⟨MulticastSupportValue.wire, MulticastSupportValue.ofWire⟩ + +instance : Shape MulticastSupportValue where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => MulticastSupportValue.ofWire text + | _ => .error "expected a string" + +inductive MultipathResilienceMode where + | alwayS_ON +deriving DecidableEq, Repr, Inhabited + +def MultipathResilienceMode.wire : MultipathResilienceMode → String + | .alwayS_ON => "always-on" + +def MultipathResilienceMode.wireValues : List (String × MultipathResilienceMode) := [ + ("always-on", .alwayS_ON)] + +def MultipathResilienceMode.ofWire (text : String) : Except String MultipathResilienceMode := + match List.find? (·.1 == text) MultipathResilienceMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"MultipathResilienceMode has no value {text}" + +instance : Key MultipathResilienceMode := ⟨MultipathResilienceMode.wire, MultipathResilienceMode.ofWire⟩ + +instance : Shape MultipathResilienceMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => MultipathResilienceMode.ofWire text + | _ => .error "expected a string" + +inductive MultipathResilienceStatus where + | disabled + | enabled + | pending +deriving DecidableEq, Repr, Inhabited + +def MultipathResilienceStatus.wire : MultipathResilienceStatus → String + | .disabled => "disabled" + | .enabled => "enabled" + | .pending => "pending" + +def MultipathResilienceStatus.wireValues : List (String × MultipathResilienceStatus) := [ + ("disabled", .disabled), + ("enabled", .enabled), + ("pending", .pending)] + +def MultipathResilienceStatus.ofWire (text : String) : Except String MultipathResilienceStatus := + match List.find? (·.1 == text) MultipathResilienceStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"MultipathResilienceStatus has no value {text}" + +instance : Key MultipathResilienceStatus := ⟨MultipathResilienceStatus.wire, MultipathResilienceStatus.ofWire⟩ + +instance : Shape MultipathResilienceStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => MultipathResilienceStatus.ofWire text + | _ => .error "expected a string" + +inductive NatGatewayAddressStatus where + | assigning + | associating + | disassociating + | failed + | succeeded + | unassigning +deriving DecidableEq, Repr, Inhabited + +def NatGatewayAddressStatus.wire : NatGatewayAddressStatus → String + | .assigning => "assigning" + | .associating => "associating" + | .disassociating => "disassociating" + | .failed => "failed" + | .succeeded => "succeeded" + | .unassigning => "unassigning" + +def NatGatewayAddressStatus.wireValues : List (String × NatGatewayAddressStatus) := [ + ("assigning", .assigning), + ("associating", .associating), + ("disassociating", .disassociating), + ("failed", .failed), + ("succeeded", .succeeded), + ("unassigning", .unassigning)] + +def NatGatewayAddressStatus.ofWire (text : String) : Except String NatGatewayAddressStatus := + match List.find? (·.1 == text) NatGatewayAddressStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"NatGatewayAddressStatus has no value {text}" + +instance : Key NatGatewayAddressStatus := ⟨NatGatewayAddressStatus.wire, NatGatewayAddressStatus.ofWire⟩ + +instance : Shape NatGatewayAddressStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => NatGatewayAddressStatus.ofWire text + | _ => .error "expected a string" + +inductive NatGatewayApplianceModifyState where + | completed + | failed + | modifying +deriving DecidableEq, Repr, Inhabited + +def NatGatewayApplianceModifyState.wire : NatGatewayApplianceModifyState → String + | .completed => "completed" + | .failed => "failed" + | .modifying => "modifying" + +def NatGatewayApplianceModifyState.wireValues : List (String × NatGatewayApplianceModifyState) := [ + ("completed", .completed), + ("failed", .failed), + ("modifying", .modifying)] + +def NatGatewayApplianceModifyState.ofWire (text : String) : Except String NatGatewayApplianceModifyState := + match List.find? (·.1 == text) NatGatewayApplianceModifyState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"NatGatewayApplianceModifyState has no value {text}" + +instance : Key NatGatewayApplianceModifyState := ⟨NatGatewayApplianceModifyState.wire, NatGatewayApplianceModifyState.ofWire⟩ + +instance : Shape NatGatewayApplianceModifyState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => NatGatewayApplianceModifyState.ofWire text + | _ => .error "expected a string" + +inductive NatGatewayApplianceState where + | attached + | attaching + | attacH_FAILED + | detached + | detaching + | detacH_FAILED +deriving DecidableEq, Repr, Inhabited + +def NatGatewayApplianceState.wire : NatGatewayApplianceState → String + | .attached => "attached" + | .attaching => "attaching" + | .attacH_FAILED => "attach-failed" + | .detached => "detached" + | .detaching => "detaching" + | .detacH_FAILED => "detach-failed" + +def NatGatewayApplianceState.wireValues : List (String × NatGatewayApplianceState) := [ + ("attached", .attached), + ("attaching", .attaching), + ("attach-failed", .attacH_FAILED), + ("detached", .detached), + ("detaching", .detaching), + ("detach-failed", .detacH_FAILED)] + +def NatGatewayApplianceState.ofWire (text : String) : Except String NatGatewayApplianceState := + match List.find? (·.1 == text) NatGatewayApplianceState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"NatGatewayApplianceState has no value {text}" + +instance : Key NatGatewayApplianceState := ⟨NatGatewayApplianceState.wire, NatGatewayApplianceState.ofWire⟩ + +instance : Shape NatGatewayApplianceState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => NatGatewayApplianceState.ofWire text + | _ => .error "expected a string" + +inductive NatGatewayApplianceType where + | networK_FIREWALL_PROXY +deriving DecidableEq, Repr, Inhabited + +def NatGatewayApplianceType.wire : NatGatewayApplianceType → String + | .networK_FIREWALL_PROXY => "network-firewall-proxy" + +def NatGatewayApplianceType.wireValues : List (String × NatGatewayApplianceType) := [ + ("network-firewall-proxy", .networK_FIREWALL_PROXY)] + +def NatGatewayApplianceType.ofWire (text : String) : Except String NatGatewayApplianceType := + match List.find? (·.1 == text) NatGatewayApplianceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"NatGatewayApplianceType has no value {text}" + +instance : Key NatGatewayApplianceType := ⟨NatGatewayApplianceType.wire, NatGatewayApplianceType.ofWire⟩ + +instance : Shape NatGatewayApplianceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => NatGatewayApplianceType.ofWire text + | _ => .error "expected a string" + +inductive NatGatewayState where + | available + | deleted + | deleting + | failed + | pending +deriving DecidableEq, Repr, Inhabited + +def NatGatewayState.wire : NatGatewayState → String + | .available => "available" + | .deleted => "deleted" + | .deleting => "deleting" + | .failed => "failed" + | .pending => "pending" + +def NatGatewayState.wireValues : List (String × NatGatewayState) := [ + ("available", .available), + ("deleted", .deleted), + ("deleting", .deleting), + ("failed", .failed), + ("pending", .pending)] + +def NatGatewayState.ofWire (text : String) : Except String NatGatewayState := + match List.find? (·.1 == text) NatGatewayState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"NatGatewayState has no value {text}" + +instance : Key NatGatewayState := ⟨NatGatewayState.wire, NatGatewayState.ofWire⟩ + +instance : Shape NatGatewayState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => NatGatewayState.ofWire text + | _ => .error "expected a string" + +/-- Describes the OpenID Connect (OIDC) options. -/ +structure NativeApplicationOidcOptions where + /-- The authorization endpoint of the IdP. -/ + authorizationEndpoint : Option String := none + /-- The OAuth 2.0 client identifier. -/ + clientId : Option String := none + /-- The OIDC issuer identifier of the IdP. -/ + issuer : Option String := none + /-- The public signing key endpoint. -/ + publicSigningKeyEndpoint : Option String := none + /-- The set of user claims to be requested from the IdP. -/ + scope : Option String := none + /-- The token endpoint of the IdP. -/ + tokenEndpoint : Option String := none + /-- The user info endpoint of the IdP. -/ + userInfoEndpoint : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NativeApplicationOidcOptions where + schema := .struct "NativeApplicationOidcOptions" [({ name := "AuthorizationEndpoint", xmlName := some "authorizationEndpoint", queryName := some "AuthorizationEndpoint" }, .string), + ({ name := "ClientId", xmlName := some "clientId", queryName := some "ClientId" }, .string), + ({ name := "Issuer", xmlName := some "issuer", queryName := some "Issuer" }, .string), + ({ name := "PublicSigningKeyEndpoint", xmlName := some "publicSigningKeyEndpoint", queryName := some "PublicSigningKeyEndpoint" }, .string), + ({ name := "Scope", xmlName := some "scope", queryName := some "Scope" }, .string), + ({ name := "TokenEndpoint", xmlName := some "tokenEndpoint", queryName := some "TokenEndpoint" }, .string), + ({ name := "UserInfoEndpoint", xmlName := some "userInfoEndpoint", queryName := some "UserInfoEndpoint" }, .string)] + toValue x := record [putOpt "AuthorizationEndpoint" x.authorizationEndpoint, putOpt "ClientId" x.clientId, putOpt "Issuer" x.issuer, putOpt "PublicSigningKeyEndpoint" x.publicSigningKeyEndpoint, putOpt "Scope" x.scope, putOpt "TokenEndpoint" x.tokenEndpoint, putOpt "UserInfoEndpoint" x.userInfoEndpoint] + ofValue v := do + let authorizationEndpoint ← v.opt "AuthorizationEndpoint" + let clientId ← v.opt "ClientId" + let issuer ← v.opt "Issuer" + let publicSigningKeyEndpoint ← v.opt "PublicSigningKeyEndpoint" + let scope ← v.opt "Scope" + let tokenEndpoint ← v.opt "TokenEndpoint" + let userInfoEndpoint ← v.opt "UserInfoEndpoint" + return { authorizationEndpoint, clientId, issuer, publicSigningKeyEndpoint, scope, tokenEndpoint, userInfoEndpoint } + +inductive NestedVirtualizationSpecification where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def NestedVirtualizationSpecification.wire : NestedVirtualizationSpecification → String + | .disabled => "disabled" + | .enabled => "enabled" + +def NestedVirtualizationSpecification.wireValues : List (String × NestedVirtualizationSpecification) := [ + ("disabled", .disabled), + ("enabled", .enabled)] + +def NestedVirtualizationSpecification.ofWire (text : String) : Except String NestedVirtualizationSpecification := + match List.find? (·.1 == text) NestedVirtualizationSpecification.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"NestedVirtualizationSpecification has no value {text}" + +instance : Key NestedVirtualizationSpecification := ⟨NestedVirtualizationSpecification.wire, NestedVirtualizationSpecification.ofWire⟩ + +instance : Shape NestedVirtualizationSpecification where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => NestedVirtualizationSpecification.ofWire text + | _ => .error "expected a string" + +/-- Describes an association between a network ACL and a subnet. -/ +structure NetworkAclAssociation where + /-- The ID of the association between a network ACL and a subnet. -/ + networkAclAssociationId : Option String := none + /-- The ID of the network ACL. -/ + networkAclId : Option String := none + /-- The ID of the subnet. -/ + subnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkAclAssociation where + schema := .struct "NetworkAclAssociation" [({ name := "NetworkAclAssociationId", xmlName := some "networkAclAssociationId", queryName := some "NetworkAclAssociationId" }, .string), + ({ name := "NetworkAclId", xmlName := some "networkAclId", queryName := some "NetworkAclId" }, .string), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string)] + toValue x := record [putOpt "NetworkAclAssociationId" x.networkAclAssociationId, putOpt "NetworkAclId" x.networkAclId, putOpt "SubnetId" x.subnetId] + ofValue v := do + let networkAclAssociationId ← v.opt "NetworkAclAssociationId" + let networkAclId ← v.opt "NetworkAclId" + let subnetId ← v.opt "SubnetId" + return { networkAclAssociationId, networkAclId, subnetId } + +/-- The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). -/ +structure NetworkBandwidthGbps where + /-- The maximum amount of network bandwidth, in Gbps. -/ + max : Option JsonNumber := none + /-- The minimum amount of network bandwidth, in Gbps. -/ + min : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkBandwidthGbps where + schema := .struct "NetworkBandwidthGbps" [({ name := "Max", xmlName := some "max", queryName := some "Max" }, .number), + ({ name := "Min", xmlName := some "min", queryName := some "Min" }, .number)] + toValue x := record [putOpt "Max" x.max, putOpt "Min" x.min] + ofValue v := do + let max ← v.opt "Max" + let min ← v.opt "Min" + return { max, min } + +/-- The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). -/ +structure NetworkBandwidthGbpsRequest where + /-- The maximum amount of network bandwidth, in Gbps. -/ + max : Option JsonNumber := none + /-- The minimum amount of network bandwidth, in Gbps. -/ + min : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkBandwidthGbpsRequest where + schema := .struct "NetworkBandwidthGbpsRequest" [({ name := "Max" }, .number), + ({ name := "Min" }, .number)] + toValue x := record [putOpt "Max" x.max, putOpt "Min" x.min] + ofValue v := do + let max ← v.opt "Max" + let min ← v.opt "Min" + return { max, min } + +inductive NetworkCardInterfaceType where + | efa + | efa_only + | interface + | secondary +deriving DecidableEq, Repr, Inhabited + +def NetworkCardInterfaceType.wire : NetworkCardInterfaceType → String + | .efa => "efa" + | .efa_only => "efa-only" + | .interface => "interface" + | .secondary => "secondary" + +def NetworkCardInterfaceType.wireValues : List (String × NetworkCardInterfaceType) := [ + ("efa", .efa), + ("efa-only", .efa_only), + ("interface", .interface), + ("secondary", .secondary)] + +def NetworkCardInterfaceType.ofWire (text : String) : Except String NetworkCardInterfaceType := + match List.find? (·.1 == text) NetworkCardInterfaceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"NetworkCardInterfaceType has no value {text}" + +instance : Key NetworkCardInterfaceType := ⟨NetworkCardInterfaceType.wire, NetworkCardInterfaceType.ofWire⟩ + +instance : Shape NetworkCardInterfaceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => NetworkCardInterfaceType.ofWire text + | _ => .error "expected a string" + +/-- Describes association information for an Elastic IP address (IPv4 only), or a Carrier IP address (for a network interface which resides in a subnet in a Wavelength Zone). -/ +structure NetworkInterfaceAssociation where + /-- The allocation ID. -/ + allocationId : Option String := none + /-- The association ID. -/ + associationId : Option String := none + /-- The carrier IP address associated with the network interface. -/ + carrierIp : Option String := none + /-- The customer-owned IP address associated with the network interface. -/ + customerOwnedIp : Option String := none + /-- The ID of the Elastic IP address owner. -/ + ipOwnerId : Option String := none + /-- The public DNS name. -/ + publicDnsName : Option String := none + /-- The address of the Elastic IP address bound to the network interface. -/ + publicIp : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkInterfaceAssociation where + schema := .struct "NetworkInterfaceAssociation" [({ name := "AllocationId", xmlName := some "allocationId", queryName := some "AllocationId" }, .string), + ({ name := "AssociationId", xmlName := some "associationId", queryName := some "AssociationId" }, .string), + ({ name := "CarrierIp", xmlName := some "carrierIp", queryName := some "CarrierIp" }, .string), + ({ name := "CustomerOwnedIp", xmlName := some "customerOwnedIp", queryName := some "CustomerOwnedIp" }, .string), + ({ name := "IpOwnerId", xmlName := some "ipOwnerId", queryName := some "IpOwnerId" }, .string), + ({ name := "PublicDnsName", xmlName := some "publicDnsName", queryName := some "PublicDnsName" }, .string), + ({ name := "PublicIp", xmlName := some "publicIp", queryName := some "PublicIp" }, .string)] + toValue x := record [putOpt "AllocationId" x.allocationId, putOpt "AssociationId" x.associationId, putOpt "CarrierIp" x.carrierIp, putOpt "CustomerOwnedIp" x.customerOwnedIp, putOpt "IpOwnerId" x.ipOwnerId, putOpt "PublicDnsName" x.publicDnsName, putOpt "PublicIp" x.publicIp] + ofValue v := do + let allocationId ← v.opt "AllocationId" + let associationId ← v.opt "AssociationId" + let carrierIp ← v.opt "CarrierIp" + let customerOwnedIp ← v.opt "CustomerOwnedIp" + let ipOwnerId ← v.opt "IpOwnerId" + let publicDnsName ← v.opt "PublicDnsName" + let publicIp ← v.opt "PublicIp" + return { allocationId, associationId, carrierIp, customerOwnedIp, ipOwnerId, publicDnsName, publicIp } + +/-- Describes an attachment change. -/ +structure NetworkInterfaceAttachmentChanges where + /-- The ID of the network interface attachment. -/ + attachmentId : Option String := none + /-- The default number of the ENA queues. -/ + defaultEnaQueueCount : Option Bool := none + /-- Indicates whether the network interface is deleted when the instance is terminated. -/ + deleteOnTermination : Option Bool := none + /-- The number of ENA queues to be created with the instance. -/ + enaQueueCount : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkInterfaceAttachmentChanges where + schema := .struct "NetworkInterfaceAttachmentChanges" [({ name := "AttachmentId", xmlName := some "attachmentId", queryName := some "AttachmentId" }, .string), + ({ name := "DefaultEnaQueueCount" }, .bool), + ({ name := "DeleteOnTermination", xmlName := some "deleteOnTermination", queryName := some "DeleteOnTermination" }, .bool), + ({ name := "EnaQueueCount" }, .int)] + toValue x := record [putOpt "AttachmentId" x.attachmentId, putOpt "DefaultEnaQueueCount" x.defaultEnaQueueCount, putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "EnaQueueCount" x.enaQueueCount] + ofValue v := do + let attachmentId ← v.opt "AttachmentId" + let defaultEnaQueueCount ← v.opt "DefaultEnaQueueCount" + let deleteOnTermination ← v.opt "DeleteOnTermination" + let enaQueueCount ← v.opt "EnaQueueCount" + return { attachmentId, defaultEnaQueueCount, deleteOnTermination, enaQueueCount } + +inductive NetworkInterfaceAttribute where + | associatePublicIpAddress + | attachment + | description + | groupSet + | sourceDestCheck +deriving DecidableEq, Repr, Inhabited + +def NetworkInterfaceAttribute.wire : NetworkInterfaceAttribute → String + | .associatePublicIpAddress => "associatePublicIpAddress" + | .attachment => "attachment" + | .description => "description" + | .groupSet => "groupSet" + | .sourceDestCheck => "sourceDestCheck" + +def NetworkInterfaceAttribute.wireValues : List (String × NetworkInterfaceAttribute) := [ + ("associatePublicIpAddress", .associatePublicIpAddress), + ("attachment", .attachment), + ("description", .description), + ("groupSet", .groupSet), + ("sourceDestCheck", .sourceDestCheck)] + +def NetworkInterfaceAttribute.ofWire (text : String) : Except String NetworkInterfaceAttribute := + match List.find? (·.1 == text) NetworkInterfaceAttribute.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"NetworkInterfaceAttribute has no value {text}" + +instance : Key NetworkInterfaceAttribute := ⟨NetworkInterfaceAttribute.wire, NetworkInterfaceAttribute.ofWire⟩ + +instance : Shape NetworkInterfaceAttribute where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => NetworkInterfaceAttribute.ofWire text + | _ => .error "expected a string" + +/-- The minimum and maximum number of network interfaces. -/ +structure NetworkInterfaceCount where + /-- The maximum number of network interfaces. -/ + max : Option Int := none + /-- The minimum number of network interfaces. -/ + min : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkInterfaceCount where + schema := .struct "NetworkInterfaceCount" [({ name := "Max", xmlName := some "max", queryName := some "Max" }, .int), + ({ name := "Min", xmlName := some "min", queryName := some "Min" }, .int)] + toValue x := record [putOpt "Max" x.max, putOpt "Min" x.min] + ofValue v := do + let max ← v.opt "Max" + let min ← v.opt "Min" + return { max, min } + +/-- The minimum and maximum number of network interfaces. -/ +structure NetworkInterfaceCountRequest where + /-- The maximum number of network interfaces. -/ + max : Option Int := none + /-- The minimum number of network interfaces. -/ + min : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkInterfaceCountRequest where + schema := .struct "NetworkInterfaceCountRequest" [({ name := "Max" }, .int), + ({ name := "Min" }, .int)] + toValue x := record [putOpt "Max" x.max, putOpt "Min" x.min] + ofValue v := do + let max ← v.opt "Max" + let min ← v.opt "Min" + return { max, min } + +inductive NetworkInterfaceCreationType where + | branch + | efa + | efa_only + | trunk +deriving DecidableEq, Repr, Inhabited + +def NetworkInterfaceCreationType.wire : NetworkInterfaceCreationType → String + | .branch => "branch" + | .efa => "efa" + | .efa_only => "efa-only" + | .trunk => "trunk" + +def NetworkInterfaceCreationType.wireValues : List (String × NetworkInterfaceCreationType) := [ + ("branch", .branch), + ("efa", .efa), + ("efa-only", .efa_only), + ("trunk", .trunk)] + +def NetworkInterfaceCreationType.ofWire (text : String) : Except String NetworkInterfaceCreationType := + match List.find? (·.1 == text) NetworkInterfaceCreationType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"NetworkInterfaceCreationType has no value {text}" + +instance : Key NetworkInterfaceCreationType := ⟨NetworkInterfaceCreationType.wire, NetworkInterfaceCreationType.ofWire⟩ + +instance : Shape NetworkInterfaceCreationType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => NetworkInterfaceCreationType.ofWire text + | _ => .error "expected a string" + +/-- Describes an IPv6 address associated with a network interface. -/ +structure NetworkInterfaceIpv6Address where + /-- The IPv6 address. -/ + ipv6Address : Option String := none + /-- Determines if an IPv6 address associated with a network interface is the primary IPv6 address. -/ + isPrimaryIpv6 : Option Bool := none + /-- An IPv6-enabled public hostname for a network interface. -/ + publicIpv6DnsName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkInterfaceIpv6Address where + schema := .struct "NetworkInterfaceIpv6Address" [({ name := "Ipv6Address", xmlName := some "ipv6Address", queryName := some "Ipv6Address" }, .string), + ({ name := "IsPrimaryIpv6", xmlName := some "isPrimaryIpv6", queryName := some "IsPrimaryIpv6" }, .bool), + ({ name := "PublicIpv6DnsName", xmlName := some "publicIpv6DnsName", queryName := some "PublicIpv6DnsName" }, .string)] + toValue x := record [putOpt "Ipv6Address" x.ipv6Address, putOpt "IsPrimaryIpv6" x.isPrimaryIpv6, putOpt "PublicIpv6DnsName" x.publicIpv6DnsName] + ofValue v := do + let ipv6Address ← v.opt "Ipv6Address" + let isPrimaryIpv6 ← v.opt "IsPrimaryIpv6" + let publicIpv6DnsName ← v.opt "PublicIpv6DnsName" + return { ipv6Address, isPrimaryIpv6, publicIpv6DnsName } + +inductive NetworkInterfacePermissionStateCode where + | granted + | pending + | revoked + | revoking +deriving DecidableEq, Repr, Inhabited + +def NetworkInterfacePermissionStateCode.wire : NetworkInterfacePermissionStateCode → String + | .granted => "granted" + | .pending => "pending" + | .revoked => "revoked" + | .revoking => "revoking" + +def NetworkInterfacePermissionStateCode.wireValues : List (String × NetworkInterfacePermissionStateCode) := [ + ("granted", .granted), + ("pending", .pending), + ("revoked", .revoked), + ("revoking", .revoking)] + +def NetworkInterfacePermissionStateCode.ofWire (text : String) : Except String NetworkInterfacePermissionStateCode := + match List.find? (·.1 == text) NetworkInterfacePermissionStateCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"NetworkInterfacePermissionStateCode has no value {text}" + +instance : Key NetworkInterfacePermissionStateCode := ⟨NetworkInterfacePermissionStateCode.wire, NetworkInterfacePermissionStateCode.ofWire⟩ + +instance : Shape NetworkInterfacePermissionStateCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => NetworkInterfacePermissionStateCode.ofWire text + | _ => .error "expected a string" + +inductive NetworkInterfaceStatus where + | associated + | attaching + | available + | detaching + | in_use +deriving DecidableEq, Repr, Inhabited + +def NetworkInterfaceStatus.wire : NetworkInterfaceStatus → String + | .associated => "associated" + | .attaching => "attaching" + | .available => "available" + | .detaching => "detaching" + | .in_use => "in-use" + +def NetworkInterfaceStatus.wireValues : List (String × NetworkInterfaceStatus) := [ + ("associated", .associated), + ("attaching", .attaching), + ("available", .available), + ("detaching", .detaching), + ("in-use", .in_use)] + +def NetworkInterfaceStatus.ofWire (text : String) : Except String NetworkInterfaceStatus := + match List.find? (·.1 == text) NetworkInterfaceStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"NetworkInterfaceStatus has no value {text}" + +instance : Key NetworkInterfaceStatus := ⟨NetworkInterfaceStatus.wire, NetworkInterfaceStatus.ofWire⟩ + +instance : Shape NetworkInterfaceStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => NetworkInterfaceStatus.ofWire text + | _ => .error "expected a string" + +inductive NetworkInterfaceType where + | api_gateway_managed + | aws_codestar_connections_managed + | branch + | efa + | efa_only + | gateway_load_balancer + | gateway_load_balancer_endpoint + | global_accelerator_managed + | interface + | iot_rules_managed + | lambda + | load_balancer + | natGateway + | network_load_balancer + | quicksight + | transit_gateway + | trunk + | vpc_endpoint +deriving DecidableEq, Repr, Inhabited + +def NetworkInterfaceType.wire : NetworkInterfaceType → String + | .api_gateway_managed => "api_gateway_managed" + | .aws_codestar_connections_managed => "aws_codestar_connections_managed" + | .branch => "branch" + | .efa => "efa" + | .efa_only => "efa-only" + | .gateway_load_balancer => "gateway_load_balancer" + | .gateway_load_balancer_endpoint => "gateway_load_balancer_endpoint" + | .global_accelerator_managed => "global_accelerator_managed" + | .interface => "interface" + | .iot_rules_managed => "iot_rules_managed" + | .lambda => "lambda" + | .load_balancer => "load_balancer" + | .natGateway => "natGateway" + | .network_load_balancer => "network_load_balancer" + | .quicksight => "quicksight" + | .transit_gateway => "transit_gateway" + | .trunk => "trunk" + | .vpc_endpoint => "vpc_endpoint" + +def NetworkInterfaceType.wireValues : List (String × NetworkInterfaceType) := [ + ("api_gateway_managed", .api_gateway_managed), + ("aws_codestar_connections_managed", .aws_codestar_connections_managed), + ("branch", .branch), + ("efa", .efa), + ("efa-only", .efa_only), + ("gateway_load_balancer", .gateway_load_balancer), + ("gateway_load_balancer_endpoint", .gateway_load_balancer_endpoint), + ("global_accelerator_managed", .global_accelerator_managed), + ("interface", .interface), + ("iot_rules_managed", .iot_rules_managed), + ("lambda", .lambda), + ("load_balancer", .load_balancer), + ("natGateway", .natGateway), + ("network_load_balancer", .network_load_balancer), + ("quicksight", .quicksight), + ("transit_gateway", .transit_gateway), + ("trunk", .trunk), + ("vpc_endpoint", .vpc_endpoint)] + +def NetworkInterfaceType.ofWire (text : String) : Except String NetworkInterfaceType := + match List.find? (·.1 == text) NetworkInterfaceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"NetworkInterfaceType has no value {text}" + +instance : Key NetworkInterfaceType := ⟨NetworkInterfaceType.wire, NetworkInterfaceType.ofWire⟩ + +instance : Shape NetworkInterfaceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => NetworkInterfaceType.ofWire text + | _ => .error "expected a string" + +inductive NetworkProtocolEnum where + | http + | https +deriving DecidableEq, Repr, Inhabited + +def NetworkProtocolEnum.wire : NetworkProtocolEnum → String + | .http => "http" + | .https => "https" + +def NetworkProtocolEnum.wireValues : List (String × NetworkProtocolEnum) := [ + ("http", .http), + ("https", .https)] + +def NetworkProtocolEnum.ofWire (text : String) : Except String NetworkProtocolEnum := + match List.find? (·.1 == text) NetworkProtocolEnum.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"NetworkProtocolEnum has no value {text}" + +instance : Key NetworkProtocolEnum := ⟨NetworkProtocolEnum.wire, NetworkProtocolEnum.ofWire⟩ + +instance : Shape NetworkProtocolEnum where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => NetworkProtocolEnum.ofWire text + | _ => .error "expected a string" + +/-- Describes the cores available to the neuron accelerator. -/ +structure NeuronDeviceCoreInfo where + /-- The number of cores available to the neuron accelerator. -/ + count : Option Int := none + /-- The version of the neuron accelerator. -/ + version : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NeuronDeviceCoreInfo where + schema := .struct "NeuronDeviceCoreInfo" [({ name := "Count", xmlName := some "count", queryName := some "Count" }, .int), + ({ name := "Version", xmlName := some "version", queryName := some "Version" }, .int)] + toValue x := record [putOpt "Count" x.count, putOpt "Version" x.version] + ofValue v := do + let count ← v.opt "Count" + let version ← v.opt "Version" + return { count, version } + +/-- Describes the memory available to the neuron accelerator. -/ +structure NeuronDeviceMemoryInfo where + /-- The size of the memory available to the neuron accelerator, in MiB. -/ + sizeInMiB : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NeuronDeviceMemoryInfo where + schema := .struct "NeuronDeviceMemoryInfo" [({ name := "SizeInMiB", xmlName := some "sizeInMiB", queryName := some "SizeInMiB" }, .int)] + toValue x := record [putOpt "SizeInMiB" x.sizeInMiB] + ofValue v := do + let sizeInMiB ← v.opt "SizeInMiB" + return { sizeInMiB } + +/-- Describes a DHCP configuration option. -/ +structure NewDhcpConfiguration where + /-- The name of a DHCP option. -/ + key : Option String := none + /-- The values for the DHCP option. -/ + values : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NewDhcpConfiguration where + schema := .struct "NewDhcpConfiguration" [({ name := "Key", xmlName := some "key", queryName := some "Key" }, .string), + ({ name := "Values", xmlName := some "Value" }, (.list .string "item"))] + toValue x := record [putOpt "Key" x.key, putOpt "Values" x.values] + ofValue v := do + let key ← v.opt "Key" + let values ← v.opt "Values" + return { key, values } + +inductive NitroEnclavesSupport where + | supported + | unsupported +deriving DecidableEq, Repr, Inhabited + +def NitroEnclavesSupport.wire : NitroEnclavesSupport → String + | .supported => "supported" + | .unsupported => "unsupported" + +def NitroEnclavesSupport.wireValues : List (String × NitroEnclavesSupport) := [ + ("supported", .supported), + ("unsupported", .unsupported)] + +def NitroEnclavesSupport.ofWire (text : String) : Except String NitroEnclavesSupport := + match List.find? (·.1 == text) NitroEnclavesSupport.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"NitroEnclavesSupport has no value {text}" + +instance : Key NitroEnclavesSupport := ⟨NitroEnclavesSupport.wire, NitroEnclavesSupport.ofWire⟩ + +instance : Shape NitroEnclavesSupport where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => NitroEnclavesSupport.ofWire text + | _ => .error "expected a string" + +/-- Describes the supported NitroTPM versions for the instance type. -/ +structure NitroTpmInfo where + /-- Indicates the supported NitroTPM versions. -/ + supportedVersions : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NitroTpmInfo where + schema := .struct "NitroTpmInfo" [({ name := "SupportedVersions", xmlName := some "supportedVersions", queryName := some "SupportedVersions" }, (.list .string "item"))] + toValue x := record [putOpt "SupportedVersions" x.supportedVersions] + ofValue v := do + let supportedVersions ← v.opt "SupportedVersions" + return { supportedVersions } + +inductive NitroTpmSupport where + | supported + | unsupported +deriving DecidableEq, Repr, Inhabited + +def NitroTpmSupport.wire : NitroTpmSupport → String + | .supported => "supported" + | .unsupported => "unsupported" + +def NitroTpmSupport.wireValues : List (String × NitroTpmSupport) := [ + ("supported", .supported), + ("unsupported", .unsupported)] + +def NitroTpmSupport.ofWire (text : String) : Except String NitroTpmSupport := + match List.find? (·.1 == text) NitroTpmSupport.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"NitroTpmSupport has no value {text}" + +instance : Key NitroTpmSupport := ⟨NitroTpmSupport.wire, NitroTpmSupport.ofWire⟩ + +instance : Shape NitroTpmSupport where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => NitroTpmSupport.ofWire text + | _ => .error "expected a string" + +inductive OfferingClassType where + | convertible + | standard +deriving DecidableEq, Repr, Inhabited + +def OfferingClassType.wire : OfferingClassType → String + | .convertible => "convertible" + | .standard => "standard" + +def OfferingClassType.wireValues : List (String × OfferingClassType) := [ + ("convertible", .convertible), + ("standard", .standard)] + +def OfferingClassType.ofWire (text : String) : Except String OfferingClassType := + match List.find? (·.1 == text) OfferingClassType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"OfferingClassType has no value {text}" + +instance : Key OfferingClassType := ⟨OfferingClassType.wire, OfferingClassType.ofWire⟩ + +instance : Shape OfferingClassType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => OfferingClassType.ofWire text + | _ => .error "expected a string" + +inductive OfferingTypeValues where + | all_Upfront + | heavy_Utilization + | light_Utilization + | medium_Utilization + | no_Upfront + | partial_Upfront +deriving DecidableEq, Repr, Inhabited + +def OfferingTypeValues.wire : OfferingTypeValues → String + | .all_Upfront => "All Upfront" + | .heavy_Utilization => "Heavy Utilization" + | .light_Utilization => "Light Utilization" + | .medium_Utilization => "Medium Utilization" + | .no_Upfront => "No Upfront" + | .partial_Upfront => "Partial Upfront" + +def OfferingTypeValues.wireValues : List (String × OfferingTypeValues) := [ + ("All Upfront", .all_Upfront), + ("Heavy Utilization", .heavy_Utilization), + ("Light Utilization", .light_Utilization), + ("Medium Utilization", .medium_Utilization), + ("No Upfront", .no_Upfront), + ("Partial Upfront", .partial_Upfront)] + +def OfferingTypeValues.ofWire (text : String) : Except String OfferingTypeValues := + match List.find? (·.1 == text) OfferingTypeValues.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"OfferingTypeValues has no value {text}" + +instance : Key OfferingTypeValues := ⟨OfferingTypeValues.wire, OfferingTypeValues.ofWire⟩ + +instance : Shape OfferingTypeValues where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => OfferingTypeValues.ofWire text + | _ => .error "expected a string" + +/-- Describes the options for an OpenID Connect-compatible user-identity trust provider. -/ +structure OidcOptions where + /-- The OIDC authorization endpoint. -/ + authorizationEndpoint : Option String := none + /-- The client identifier. -/ + clientId : Option String := none + /-- The client secret. -/ + clientSecret : Option String := none + /-- The OIDC issuer. -/ + issuer : Option String := none + /-- The OpenID Connect (OIDC) scope specified. -/ + scope : Option String := none + /-- The OIDC token endpoint. -/ + tokenEndpoint : Option String := none + /-- The OIDC user info endpoint. -/ + userInfoEndpoint : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape OidcOptions where + schema := .struct "OidcOptions" [({ name := "AuthorizationEndpoint", xmlName := some "authorizationEndpoint", queryName := some "AuthorizationEndpoint" }, .string), + ({ name := "ClientId", xmlName := some "clientId", queryName := some "ClientId" }, .string), + ({ name := "ClientSecret", xmlName := some "clientSecret", queryName := some "ClientSecret" }, .string), + ({ name := "Issuer", xmlName := some "issuer", queryName := some "Issuer" }, .string), + ({ name := "Scope", xmlName := some "scope", queryName := some "Scope" }, .string), + ({ name := "TokenEndpoint", xmlName := some "tokenEndpoint", queryName := some "TokenEndpoint" }, .string), + ({ name := "UserInfoEndpoint", xmlName := some "userInfoEndpoint", queryName := some "UserInfoEndpoint" }, .string)] + toValue x := record [putOpt "AuthorizationEndpoint" x.authorizationEndpoint, putOpt "ClientId" x.clientId, putOpt "ClientSecret" x.clientSecret, putOpt "Issuer" x.issuer, putOpt "Scope" x.scope, putOpt "TokenEndpoint" x.tokenEndpoint, putOpt "UserInfoEndpoint" x.userInfoEndpoint] + ofValue v := do + let authorizationEndpoint ← v.opt "AuthorizationEndpoint" + let clientId ← v.opt "ClientId" + let clientSecret ← v.opt "ClientSecret" + let issuer ← v.opt "Issuer" + let scope ← v.opt "Scope" + let tokenEndpoint ← v.opt "TokenEndpoint" + let userInfoEndpoint ← v.opt "UserInfoEndpoint" + return { authorizationEndpoint, clientId, clientSecret, issuer, scope, tokenEndpoint, userInfoEndpoint } + +inductive OnDemandAllocationStrategy where + | lowesT_PRICE + | prioritized +deriving DecidableEq, Repr, Inhabited + +def OnDemandAllocationStrategy.wire : OnDemandAllocationStrategy → String + | .lowesT_PRICE => "lowestPrice" + | .prioritized => "prioritized" + +def OnDemandAllocationStrategy.wireValues : List (String × OnDemandAllocationStrategy) := [ + ("lowestPrice", .lowesT_PRICE), + ("prioritized", .prioritized)] + +def OnDemandAllocationStrategy.ofWire (text : String) : Except String OnDemandAllocationStrategy := + match List.find? (·.1 == text) OnDemandAllocationStrategy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"OnDemandAllocationStrategy has no value {text}" + +instance : Key OnDemandAllocationStrategy := ⟨OnDemandAllocationStrategy.wire, OnDemandAllocationStrategy.ofWire⟩ + +instance : Shape OnDemandAllocationStrategy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => OnDemandAllocationStrategy.ofWire text + | _ => .error "expected a string" + +inductive OperationType where + | add + | remove +deriving DecidableEq, Repr, Inhabited + +def OperationType.wire : OperationType → String + | .add => "add" + | .remove => "remove" + +def OperationType.wireValues : List (String × OperationType) := [ + ("add", .add), + ("remove", .remove)] + +def OperationType.ofWire (text : String) : Except String OperationType := + match List.find? (·.1 == text) OperationType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"OperationType has no value {text}" + +instance : Key OperationType := ⟨OperationType.wire, OperationType.ofWire⟩ + +instance : Shape OperationType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => OperationType.ofWire text + | _ => .error "expected a string" + +/-- The service provider that manages the resource. -/ +structure OperatorRequest where + /-- The service provider that manages the resource. -/ + principal : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape OperatorRequest where + schema := .struct "OperatorRequest" [({ name := "Principal" }, .string)] + toValue x := record [putOpt "Principal" x.principal] + ofValue v := do + let principal ← v.opt "Principal" + return { principal } + +/-- Describes whether the resource is managed by a service provider and, if so, describes the service provider that manages it. -/ +structure OperatorResponse where + /-- If true , the resource is hidden by default based on the managed resource visibility settings for the account. -/ + hiddenByDefault : Option Bool := none + /-- If true , the resource is managed by a service provider. -/ + managed : Option Bool := none + /-- If managed is true , then the principal is returned. -/ + principal : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape OperatorResponse where + schema := .struct "OperatorResponse" [({ name := "HiddenByDefault", xmlName := some "hiddenByDefault", queryName := some "HiddenByDefault" }, .bool), + ({ name := "Managed", xmlName := some "managed", queryName := some "Managed" }, .bool), + ({ name := "Principal", xmlName := some "principal", queryName := some "Principal" }, .string)] + toValue x := record [putOpt "HiddenByDefault" x.hiddenByDefault, putOpt "Managed" x.managed, putOpt "Principal" x.principal] + ofValue v := do + let hiddenByDefault ← v.opt "HiddenByDefault" + let managed ← v.opt "Managed" + let principal ← v.opt "Principal" + return { hiddenByDefault, managed, principal } + +inductive OutputFormat where + | csv + | parquet +deriving DecidableEq, Repr, Inhabited + +def OutputFormat.wire : OutputFormat → String + | .csv => "csv" + | .parquet => "parquet" + +def OutputFormat.wireValues : List (String × OutputFormat) := [ + ("csv", .csv), + ("parquet", .parquet)] + +def OutputFormat.ofWire (text : String) : Except String OutputFormat := + match List.find? (·.1 == text) OutputFormat.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"OutputFormat has no value {text}" + +instance : Key OutputFormat := ⟨OutputFormat.wire, OutputFormat.ofWire⟩ + +instance : Shape OutputFormat where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => OutputFormat.ofWire text + | _ => .error "expected a string" + +inductive PartitionLoadFrequency where + | daily + | monthly + | none + | weekly +deriving DecidableEq, Repr, Inhabited + +def PartitionLoadFrequency.wire : PartitionLoadFrequency → String + | .daily => "daily" + | .monthly => "monthly" + | .none => "none" + | .weekly => "weekly" + +def PartitionLoadFrequency.wireValues : List (String × PartitionLoadFrequency) := [ + ("daily", .daily), + ("monthly", .monthly), + ("none", .none), + ("weekly", .weekly)] + +def PartitionLoadFrequency.ofWire (text : String) : Except String PartitionLoadFrequency := + match List.find? (·.1 == text) PartitionLoadFrequency.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"PartitionLoadFrequency has no value {text}" + +instance : Key PartitionLoadFrequency := ⟨PartitionLoadFrequency.wire, PartitionLoadFrequency.ofWire⟩ + +instance : Shape PartitionLoadFrequency where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => PartitionLoadFrequency.ofWire text + | _ => .error "expected a string" + +inductive PayerResponsibility where + | serviceOwner +deriving DecidableEq, Repr, Inhabited + +def PayerResponsibility.wire : PayerResponsibility → String + | .serviceOwner => "ServiceOwner" + +def PayerResponsibility.wireValues : List (String × PayerResponsibility) := [ + ("ServiceOwner", .serviceOwner)] + +def PayerResponsibility.ofWire (text : String) : Except String PayerResponsibility := + match List.find? (·.1 == text) PayerResponsibility.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"PayerResponsibility has no value {text}" + +instance : Key PayerResponsibility := ⟨PayerResponsibility.wire, PayerResponsibility.ofWire⟩ + +instance : Shape PayerResponsibility where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => PayerResponsibility.ofWire text + | _ => .error "expected a string" + +inductive PayerResponsibilityScope where + | resourceGatewayCharges + | vpcEndpointCharges +deriving DecidableEq, Repr, Inhabited + +def PayerResponsibilityScope.wire : PayerResponsibilityScope → String + | .resourceGatewayCharges => "resource-gateway-charges" + | .vpcEndpointCharges => "vpc-endpoint-charges" + +def PayerResponsibilityScope.wireValues : List (String × PayerResponsibilityScope) := [ + ("resource-gateway-charges", .resourceGatewayCharges), + ("vpc-endpoint-charges", .vpcEndpointCharges)] + +def PayerResponsibilityScope.ofWire (text : String) : Except String PayerResponsibilityScope := + match List.find? (·.1 == text) PayerResponsibilityScope.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"PayerResponsibilityScope has no value {text}" + +instance : Key PayerResponsibilityScope := ⟨PayerResponsibilityScope.wire, PayerResponsibilityScope.ofWire⟩ + +instance : Shape PayerResponsibilityScope where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => PayerResponsibilityScope.ofWire text + | _ => .error "expected a string" + +inductive PayerResponsibilityType where + | resourceGatewayAccount + | vpcEndpointAccount + | vpcEndpointServiceAccount +deriving DecidableEq, Repr, Inhabited + +def PayerResponsibilityType.wire : PayerResponsibilityType → String + | .resourceGatewayAccount => "resource-gateway-account" + | .vpcEndpointAccount => "vpc-endpoint-account" + | .vpcEndpointServiceAccount => "vpc-endpoint-service-account" + +def PayerResponsibilityType.wireValues : List (String × PayerResponsibilityType) := [ + ("resource-gateway-account", .resourceGatewayAccount), + ("vpc-endpoint-account", .vpcEndpointAccount), + ("vpc-endpoint-service-account", .vpcEndpointServiceAccount)] + +def PayerResponsibilityType.ofWire (text : String) : Except String PayerResponsibilityType := + match List.find? (·.1 == text) PayerResponsibilityType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"PayerResponsibilityType has no value {text}" + +instance : Key PayerResponsibilityType := ⟨PayerResponsibilityType.wire, PayerResponsibilityType.ofWire⟩ + +instance : Shape PayerResponsibilityType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => PayerResponsibilityType.ofWire text + | _ => .error "expected a string" + +inductive PaymentOption where + | alL_UPFRONT + | nO_UPFRONT + | partiaL_UPFRONT +deriving DecidableEq, Repr, Inhabited + +def PaymentOption.wire : PaymentOption → String + | .alL_UPFRONT => "AllUpfront" + | .nO_UPFRONT => "NoUpfront" + | .partiaL_UPFRONT => "PartialUpfront" + +def PaymentOption.wireValues : List (String × PaymentOption) := [ + ("AllUpfront", .alL_UPFRONT), + ("NoUpfront", .nO_UPFRONT), + ("PartialUpfront", .partiaL_UPFRONT)] + +def PaymentOption.ofWire (text : String) : Except String PaymentOption := + match List.find? (·.1 == text) PaymentOption.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"PaymentOption has no value {text}" + +instance : Key PaymentOption := ⟨PaymentOption.wire, PaymentOption.ofWire⟩ + +instance : Shape PaymentOption where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => PaymentOption.ofWire text + | _ => .error "expected a string" + +/-- Describes the data that identifies an Amazon FPGA image (AFI) on the PCI bus. -/ +structure PciId where + /-- The ID of the device. -/ + deviceId : Option String := none + /-- The ID of the subsystem. -/ + subsystemId : Option String := none + /-- The ID of the vendor for the subsystem. -/ + subsystemVendorId : Option String := none + /-- The ID of the vendor. -/ + vendorId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PciId where + schema := .struct "PciId" [({ name := "DeviceId" }, .string), + ({ name := "SubsystemId" }, .string), + ({ name := "SubsystemVendorId" }, .string), + ({ name := "VendorId" }, .string)] + toValue x := record [putOpt "DeviceId" x.deviceId, putOpt "SubsystemId" x.subsystemId, putOpt "SubsystemVendorId" x.subsystemVendorId, putOpt "VendorId" x.vendorId] + ofValue v := do + let deviceId ← v.opt "DeviceId" + let subsystemId ← v.opt "SubsystemId" + let subsystemVendorId ← v.opt "SubsystemVendorId" + let vendorId ← v.opt "VendorId" + return { deviceId, subsystemId, subsystemVendorId, vendorId } + +/-- The status of the transit gateway peering attachment. -/ +structure PeeringAttachmentStatus where + /-- The status code. -/ + code : Option String := none + /-- The status message, if applicable. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PeeringAttachmentStatus where + schema := .struct "PeeringAttachmentStatus" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, .string), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +/-- Information about the transit gateway in the peering attachment. -/ +structure PeeringTgwInfo where + /-- The ID of the core network where the transit gateway peer is located. -/ + coreNetworkId : Option String := none + /-- The ID of the Amazon Web Services account that owns the transit gateway. -/ + ownerId : Option String := none + /-- The Region of the transit gateway. -/ + region : Option String := none + /-- The ID of the transit gateway. -/ + transitGatewayId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PeeringTgwInfo where + schema := .struct "PeeringTgwInfo" [({ name := "CoreNetworkId", xmlName := some "coreNetworkId", queryName := some "CoreNetworkId" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "Region", xmlName := some "region", queryName := some "Region" }, .string), + ({ name := "TransitGatewayId", xmlName := some "transitGatewayId", queryName := some "TransitGatewayId" }, .string)] + toValue x := record [putOpt "CoreNetworkId" x.coreNetworkId, putOpt "OwnerId" x.ownerId, putOpt "Region" x.region, putOpt "TransitGatewayId" x.transitGatewayId] + ofValue v := do + let coreNetworkId ← v.opt "CoreNetworkId" + let ownerId ← v.opt "OwnerId" + let region ← v.opt "Region" + let transitGatewayId ← v.opt "TransitGatewayId" + return { coreNetworkId, ownerId, region, transitGatewayId } + +/-- Specify an instance family to use as the baseline reference for CPU performance. -/ +structure PerformanceFactorReference where + /-- The instance family to use as a baseline reference. -/ + instanceFamily : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PerformanceFactorReference where + schema := .struct "PerformanceFactorReference" [({ name := "InstanceFamily", xmlName := some "instanceFamily", queryName := some "InstanceFamily" }, .string)] + toValue x := record [putOpt "InstanceFamily" x.instanceFamily] + ofValue v := do + let instanceFamily ← v.opt "InstanceFamily" + return { instanceFamily } + +/-- Specify an instance family to use as the baseline reference for CPU performance. -/ +structure PerformanceFactorReferenceRequest where + /-- The instance family to use as a baseline reference. -/ + instanceFamily : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PerformanceFactorReferenceRequest where + schema := .struct "PerformanceFactorReferenceRequest" [({ name := "InstanceFamily" }, .string)] + toValue x := record [putOpt "InstanceFamily" x.instanceFamily] + ofValue v := do + let instanceFamily ← v.opt "InstanceFamily" + return { instanceFamily } + +inductive PeriodType where + | fifteen_minutes + | five_minutes + | one_day + | one_hour + | one_week + | three_hours +deriving DecidableEq, Repr, Inhabited + +def PeriodType.wire : PeriodType → String + | .fifteen_minutes => "fifteen-minutes" + | .five_minutes => "five-minutes" + | .one_day => "one-day" + | .one_hour => "one-hour" + | .one_week => "one-week" + | .three_hours => "three-hours" + +def PeriodType.wireValues : List (String × PeriodType) := [ + ("fifteen-minutes", .fifteen_minutes), + ("five-minutes", .five_minutes), + ("one-day", .one_day), + ("one-hour", .one_hour), + ("one-week", .one_week), + ("three-hours", .three_hours)] + +def PeriodType.ofWire (text : String) : Except String PeriodType := + match List.find? (·.1 == text) PeriodType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"PeriodType has no value {text}" + +instance : Key PeriodType := ⟨PeriodType.wire, PeriodType.ofWire⟩ + +instance : Shape PeriodType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => PeriodType.ofWire text + | _ => .error "expected a string" + +inductive PermissionGroup where + | all +deriving DecidableEq, Repr, Inhabited + +def PermissionGroup.wire : PermissionGroup → String + | .all => "all" + +def PermissionGroup.wireValues : List (String × PermissionGroup) := [ + ("all", .all)] + +def PermissionGroup.ofWire (text : String) : Except String PermissionGroup := + match List.find? (·.1 == text) PermissionGroup.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"PermissionGroup has no value {text}" + +instance : Key PermissionGroup := ⟨PermissionGroup.wire, PermissionGroup.ofWire⟩ + +instance : Shape PermissionGroup where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => PermissionGroup.ofWire text + | _ => .error "expected a string" + +inductive PermissionType where + | transitGatewayAttachment + | vpcEndpoint +deriving DecidableEq, Repr, Inhabited + +def PermissionType.wire : PermissionType → String + | .transitGatewayAttachment => "transit-gateway-attachment" + | .vpcEndpoint => "vpc-endpoint" + +def PermissionType.wireValues : List (String × PermissionType) := [ + ("transit-gateway-attachment", .transitGatewayAttachment), + ("vpc-endpoint", .vpcEndpoint)] + +def PermissionType.ofWire (text : String) : Except String PermissionType := + match List.find? (·.1 == text) PermissionType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"PermissionType has no value {text}" + +instance : Key PermissionType := ⟨PermissionType.wire, PermissionType.ofWire⟩ + +instance : Shape PermissionType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => PermissionType.ofWire text + | _ => .error "expected a string" + +/-- The Diffie-Hellmann group number for phase 1 IKE negotiations. -/ +structure Phase1DHGroupNumbersListValue where + /-- The Diffie-Hellmann group number. -/ + value : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Phase1DHGroupNumbersListValue where + schema := .struct "Phase1DHGroupNumbersListValue" [({ name := "Value", xmlName := some "value", queryName := some "Value" }, .int)] + toValue x := record [putOpt "Value" x.value] + ofValue v := do + let value ← v.opt "Value" + return { value } + +/-- Specifies a Diffie-Hellman group number for the VPN tunnel for phase 1 IKE negotiations. -/ +structure Phase1DHGroupNumbersRequestListValue where + /-- The Diffie-Hellmann group number. -/ + value : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Phase1DHGroupNumbersRequestListValue where + schema := .struct "Phase1DHGroupNumbersRequestListValue" [({ name := "Value" }, .int)] + toValue x := record [putOpt "Value" x.value] + ofValue v := do + let value ← v.opt "Value" + return { value } + +/-- The encryption algorithm for phase 1 IKE negotiations. -/ +structure Phase1EncryptionAlgorithmsListValue where + /-- The value for the encryption algorithm. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Phase1EncryptionAlgorithmsListValue where + schema := .struct "Phase1EncryptionAlgorithmsListValue" [({ name := "Value", xmlName := some "value", queryName := some "Value" }, .string)] + toValue x := record [putOpt "Value" x.value] + ofValue v := do + let value ← v.opt "Value" + return { value } + +/-- Specifies the encryption algorithm for the VPN tunnel for phase 1 IKE negotiations. -/ +structure Phase1EncryptionAlgorithmsRequestListValue where + /-- The value for the encryption algorithm. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Phase1EncryptionAlgorithmsRequestListValue where + schema := .struct "Phase1EncryptionAlgorithmsRequestListValue" [({ name := "Value" }, .string)] + toValue x := record [putOpt "Value" x.value] + ofValue v := do + let value ← v.opt "Value" + return { value } + +/-- The integrity algorithm for phase 1 IKE negotiations. -/ +structure Phase1IntegrityAlgorithmsListValue where + /-- The value for the integrity algorithm. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Phase1IntegrityAlgorithmsListValue where + schema := .struct "Phase1IntegrityAlgorithmsListValue" [({ name := "Value", xmlName := some "value", queryName := some "Value" }, .string)] + toValue x := record [putOpt "Value" x.value] + ofValue v := do + let value ← v.opt "Value" + return { value } + +/-- Specifies the integrity algorithm for the VPN tunnel for phase 1 IKE negotiations. -/ +structure Phase1IntegrityAlgorithmsRequestListValue where + /-- The value for the integrity algorithm. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Phase1IntegrityAlgorithmsRequestListValue where + schema := .struct "Phase1IntegrityAlgorithmsRequestListValue" [({ name := "Value" }, .string)] + toValue x := record [putOpt "Value" x.value] + ofValue v := do + let value ← v.opt "Value" + return { value } + +/-- The Diffie-Hellmann group number for phase 2 IKE negotiations. -/ +structure Phase2DHGroupNumbersListValue where + /-- The Diffie-Hellmann group number. -/ + value : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Phase2DHGroupNumbersListValue where + schema := .struct "Phase2DHGroupNumbersListValue" [({ name := "Value", xmlName := some "value", queryName := some "Value" }, .int)] + toValue x := record [putOpt "Value" x.value] + ofValue v := do + let value ← v.opt "Value" + return { value } + +/-- Specifies a Diffie-Hellman group number for the VPN tunnel for phase 2 IKE negotiations. -/ +structure Phase2DHGroupNumbersRequestListValue where + /-- The Diffie-Hellmann group number. -/ + value : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Phase2DHGroupNumbersRequestListValue where + schema := .struct "Phase2DHGroupNumbersRequestListValue" [({ name := "Value" }, .int)] + toValue x := record [putOpt "Value" x.value] + ofValue v := do + let value ← v.opt "Value" + return { value } + +/-- The encryption algorithm for phase 2 IKE negotiations. -/ +structure Phase2EncryptionAlgorithmsListValue where + /-- The encryption algorithm. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Phase2EncryptionAlgorithmsListValue where + schema := .struct "Phase2EncryptionAlgorithmsListValue" [({ name := "Value", xmlName := some "value", queryName := some "Value" }, .string)] + toValue x := record [putOpt "Value" x.value] + ofValue v := do + let value ← v.opt "Value" + return { value } + +/-- Specifies the encryption algorithm for the VPN tunnel for phase 2 IKE negotiations. -/ +structure Phase2EncryptionAlgorithmsRequestListValue where + /-- The encryption algorithm. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Phase2EncryptionAlgorithmsRequestListValue where + schema := .struct "Phase2EncryptionAlgorithmsRequestListValue" [({ name := "Value" }, .string)] + toValue x := record [putOpt "Value" x.value] + ofValue v := do + let value ← v.opt "Value" + return { value } + +/-- The integrity algorithm for phase 2 IKE negotiations. -/ +structure Phase2IntegrityAlgorithmsListValue where + /-- The integrity algorithm. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Phase2IntegrityAlgorithmsListValue where + schema := .struct "Phase2IntegrityAlgorithmsListValue" [({ name := "Value", xmlName := some "value", queryName := some "Value" }, .string)] + toValue x := record [putOpt "Value" x.value] + ofValue v := do + let value ← v.opt "Value" + return { value } + +/-- Specifies the integrity algorithm for the VPN tunnel for phase 2 IKE negotiations. -/ +structure Phase2IntegrityAlgorithmsRequestListValue where + /-- The integrity algorithm. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Phase2IntegrityAlgorithmsRequestListValue where + schema := .struct "Phase2IntegrityAlgorithmsRequestListValue" [({ name := "Value" }, .string)] + toValue x := record [putOpt "Value" x.value] + ofValue v := do + let value ← v.opt "Value" + return { value } + +inductive PhcSupport where + | supported + | unsupported +deriving DecidableEq, Repr, Inhabited + +def PhcSupport.wire : PhcSupport → String + | .supported => "supported" + | .unsupported => "unsupported" + +def PhcSupport.wireValues : List (String × PhcSupport) := [ + ("supported", .supported), + ("unsupported", .unsupported)] + +def PhcSupport.ofWire (text : String) : Except String PhcSupport := + match List.find? (·.1 == text) PhcSupport.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"PhcSupport has no value {text}" + +instance : Key PhcSupport := ⟨PhcSupport.wire, PhcSupport.ofWire⟩ + +instance : Shape PhcSupport where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => PhcSupport.ofWire text + | _ => .error "expected a string" + +inductive PlacementGroupState where + | available + | deleted + | deleting + | pending +deriving DecidableEq, Repr, Inhabited + +def PlacementGroupState.wire : PlacementGroupState → String + | .available => "available" + | .deleted => "deleted" + | .deleting => "deleting" + | .pending => "pending" + +def PlacementGroupState.wireValues : List (String × PlacementGroupState) := [ + ("available", .available), + ("deleted", .deleted), + ("deleting", .deleting), + ("pending", .pending)] + +def PlacementGroupState.ofWire (text : String) : Except String PlacementGroupState := + match List.find? (·.1 == text) PlacementGroupState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"PlacementGroupState has no value {text}" + +instance : Key PlacementGroupState := ⟨PlacementGroupState.wire, PlacementGroupState.ofWire⟩ + +instance : Shape PlacementGroupState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => PlacementGroupState.ofWire text + | _ => .error "expected a string" + +inductive PlacementGroupStrategy where + | cluster + | partition + | spread +deriving DecidableEq, Repr, Inhabited + +def PlacementGroupStrategy.wire : PlacementGroupStrategy → String + | .cluster => "cluster" + | .partition => "partition" + | .spread => "spread" + +def PlacementGroupStrategy.wireValues : List (String × PlacementGroupStrategy) := [ + ("cluster", .cluster), + ("partition", .partition), + ("spread", .spread)] + +def PlacementGroupStrategy.ofWire (text : String) : Except String PlacementGroupStrategy := + match List.find? (·.1 == text) PlacementGroupStrategy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"PlacementGroupStrategy has no value {text}" + +instance : Key PlacementGroupStrategy := ⟨PlacementGroupStrategy.wire, PlacementGroupStrategy.ofWire⟩ + +instance : Shape PlacementGroupStrategy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => PlacementGroupStrategy.ofWire text + | _ => .error "expected a string" + +/-- Describes the placement of an instance. -/ +structure PlacementResponse where + /-- The name of the placement group that the instance is in. -/ + groupName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PlacementResponse where + schema := .struct "PlacementResponse" [({ name := "GroupName", xmlName := some "groupName", queryName := some "GroupName" }, .string)] + toValue x := record [putOpt "GroupName" x.groupName] + ofValue v := do + let groupName ← v.opt "GroupName" + return { groupName } + +inductive PlacementStrategy where + | cluster + | partition + | precision_time + | spread +deriving DecidableEq, Repr, Inhabited + +def PlacementStrategy.wire : PlacementStrategy → String + | .cluster => "cluster" + | .partition => "partition" + | .precision_time => "precision-time" + | .spread => "spread" + +def PlacementStrategy.wireValues : List (String × PlacementStrategy) := [ + ("cluster", .cluster), + ("partition", .partition), + ("precision-time", .precision_time), + ("spread", .spread)] + +def PlacementStrategy.ofWire (text : String) : Except String PlacementStrategy := + match List.find? (·.1 == text) PlacementStrategy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"PlacementStrategy has no value {text}" + +instance : Key PlacementStrategy := ⟨PlacementStrategy.wire, PlacementStrategy.ofWire⟩ + +instance : Shape PlacementStrategy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => PlacementStrategy.ofWire text + | _ => .error "expected a string" + +inductive PlatformValues where + | windows +deriving DecidableEq, Repr, Inhabited + +def PlatformValues.wire : PlatformValues → String + | .windows => "Windows" + +def PlatformValues.wireValues : List (String × PlatformValues) := [ + ("Windows", .windows)] + +def PlatformValues.ofWire (text : String) : Except String PlatformValues := + match List.find? (·.1 == text) PlatformValues.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"PlatformValues has no value {text}" + +instance : Key PlatformValues := ⟨PlatformValues.wire, PlatformValues.ofWire⟩ + +instance : Shape PlatformValues where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => PlatformValues.ofWire text + | _ => .error "expected a string" + +/-- Describes a CIDR block for an address pool. -/ +structure PoolCidrBlock where + /-- The CIDR block. -/ + cidr : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PoolCidrBlock where + schema := .struct "PoolCidrBlock" [({ name := "Cidr", xmlName := some "poolCidrBlock", queryName := some "PoolCidrBlock" }, .string)] + toValue x := record [putOpt "Cidr" x.cidr] + ofValue v := do + let cidr ← v.opt "Cidr" + return { cidr } + +/-- Describes a range of ports. -/ +structure PortRange where + /-- The first port in the range. -/ + «from» : Option Int := none + /-- The last port in the range. -/ + to : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PortRange where + schema := .struct "PortRange" [({ name := "From", xmlName := some "from", queryName := some "From" }, .int), + ({ name := "To", xmlName := some "to", queryName := some "To" }, .int)] + toValue x := record [putOpt "From" x.«from», putOpt "To" x.to] + ofValue v := do + let «from» ← v.opt "From" + let to ← v.opt "To" + return { «from», to } + +/-- Describes prefixes for Amazon Web Services services. -/ +structure PrefixList where + /-- The IP address range of the Amazon Web Services service. -/ + cidrs : Option (List String) := none + /-- The ID of the prefix. -/ + prefixListId : Option String := none + /-- The name of the prefix. -/ + prefixListName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PrefixList where + schema := .struct "PrefixList" [({ name := "Cidrs", xmlName := some "cidrSet", queryName := some "CidrSet" }, (.list .string "item")), + ({ name := "PrefixListId", xmlName := some "prefixListId", queryName := some "PrefixListId" }, .string), + ({ name := "PrefixListName", xmlName := some "prefixListName", queryName := some "PrefixListName" }, .string)] + toValue x := record [putOpt "Cidrs" x.cidrs, putOpt "PrefixListId" x.prefixListId, putOpt "PrefixListName" x.prefixListName] + ofValue v := do + let cidrs ← v.opt "Cidrs" + let prefixListId ← v.opt "PrefixListId" + let prefixListName ← v.opt "PrefixListName" + return { cidrs, prefixListId, prefixListName } + +/-- Describes the resource with which a prefix list is associated. -/ +structure PrefixListAssociation where + /-- The ID of the resource. -/ + resourceId : Option String := none + /-- The owner of the resource. -/ + resourceOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PrefixListAssociation where + schema := .struct "PrefixListAssociation" [({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceOwner", xmlName := some "resourceOwner", queryName := some "ResourceOwner" }, .string)] + toValue x := record [putOpt "ResourceId" x.resourceId, putOpt "ResourceOwner" x.resourceOwner] + ofValue v := do + let resourceId ← v.opt "ResourceId" + let resourceOwner ← v.opt "ResourceOwner" + return { resourceId, resourceOwner } + +/-- Describes a prefix list entry. -/ +structure PrefixListEntry where + /-- The CIDR block. -/ + cidr : Option String := none + /-- The description. -/ + description : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PrefixListEntry where + schema := .struct "PrefixListEntry" [({ name := "Cidr", xmlName := some "cidr", queryName := some "Cidr" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string)] + toValue x := record [putOpt "Cidr" x.cidr, putOpt "Description" x.description] + ofValue v := do + let cidr ← v.opt "Cidr" + let description ← v.opt "Description" + return { cidr, description } + +/-- Describes a prefix list ID. -/ +structure PrefixListId where + /-- A description for the security group rule that references this prefix list ID. -/ + description : Option String := none + /-- The ID of the prefix. -/ + prefixListId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PrefixListId where + schema := .struct "PrefixListId" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "PrefixListId", xmlName := some "prefixListId", queryName := some "PrefixListId" }, .string)] + toValue x := record [putOpt "Description" x.description, putOpt "PrefixListId" x.prefixListId] + ofValue v := do + let description ← v.opt "Description" + let prefixListId ← v.opt "PrefixListId" + return { description, prefixListId } + +inductive PrefixListState where + | create_complete + | create_failed + | create_in_progress + | delete_complete + | delete_failed + | delete_in_progress + | modify_complete + | modify_failed + | modify_in_progress + | restore_complete + | restore_failed + | restore_in_progress +deriving DecidableEq, Repr, Inhabited + +def PrefixListState.wire : PrefixListState → String + | .create_complete => "create-complete" + | .create_failed => "create-failed" + | .create_in_progress => "create-in-progress" + | .delete_complete => "delete-complete" + | .delete_failed => "delete-failed" + | .delete_in_progress => "delete-in-progress" + | .modify_complete => "modify-complete" + | .modify_failed => "modify-failed" + | .modify_in_progress => "modify-in-progress" + | .restore_complete => "restore-complete" + | .restore_failed => "restore-failed" + | .restore_in_progress => "restore-in-progress" + +def PrefixListState.wireValues : List (String × PrefixListState) := [ + ("create-complete", .create_complete), + ("create-failed", .create_failed), + ("create-in-progress", .create_in_progress), + ("delete-complete", .delete_complete), + ("delete-failed", .delete_failed), + ("delete-in-progress", .delete_in_progress), + ("modify-complete", .modify_complete), + ("modify-failed", .modify_failed), + ("modify-in-progress", .modify_in_progress), + ("restore-complete", .restore_complete), + ("restore-failed", .restore_failed), + ("restore-in-progress", .restore_in_progress)] + +def PrefixListState.ofWire (text : String) : Except String PrefixListState := + match List.find? (·.1 == text) PrefixListState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"PrefixListState has no value {text}" + +instance : Key PrefixListState := ⟨PrefixListState.wire, PrefixListState.ofWire⟩ + +instance : Shape PrefixListState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => PrefixListState.ofWire text + | _ => .error "expected a string" + +/-- Describes a Reserved Instance offering. -/ +structure PricingDetail where + /-- The number of reservations available for the price. -/ + count : Option Int := none + /-- The price per instance. -/ + price : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PricingDetail where + schema := .struct "PricingDetail" [({ name := "Count", xmlName := some "count", queryName := some "Count" }, .int), + ({ name := "Price", xmlName := some "price", queryName := some "Price" }, .number)] + toValue x := record [putOpt "Count" x.count, putOpt "Price" x.price] + ofValue v := do + let count ← v.opt "Count" + let price ← v.opt "Price" + return { count, price } + +inductive PrincipalType where + | account + | all + | organizationUnit + | role + | service + | user +deriving DecidableEq, Repr, Inhabited + +def PrincipalType.wire : PrincipalType → String + | .account => "Account" + | .all => "All" + | .organizationUnit => "OrganizationUnit" + | .role => "Role" + | .service => "Service" + | .user => "User" + +def PrincipalType.wireValues : List (String × PrincipalType) := [ + ("Account", .account), + ("All", .all), + ("OrganizationUnit", .organizationUnit), + ("Role", .role), + ("Service", .service), + ("User", .user)] + +def PrincipalType.ofWire (text : String) : Except String PrincipalType := + match List.find? (·.1 == text) PrincipalType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"PrincipalType has no value {text}" + +instance : Key PrincipalType := ⟨PrincipalType.wire, PrincipalType.ofWire⟩ + +instance : Shape PrincipalType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => PrincipalType.ofWire text + | _ => .error "expected a string" + +/-- Information about the Private DNS name for interface endpoints. -/ +structure PrivateDnsDetails where + /-- The private DNS name assigned to the VPC endpoint service. -/ + privateDnsName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PrivateDnsDetails where + schema := .struct "PrivateDnsDetails" [({ name := "PrivateDnsName", xmlName := some "privateDnsName", queryName := some "PrivateDnsName" }, .string)] + toValue x := record [putOpt "PrivateDnsName" x.privateDnsName] + ofValue v := do + let privateDnsName ← v.opt "PrivateDnsName" + return { privateDnsName } + +/-- Describes a secondary private IPv4 address for a network interface. -/ +structure PrivateIpAddressSpecification where + /-- Indicates whether the private IPv4 address is the primary private IPv4 address. -/ + primary : Option Bool := none + /-- The private IPv4 address. -/ + privateIpAddress : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PrivateIpAddressSpecification where + schema := .struct "PrivateIpAddressSpecification" [({ name := "Primary", xmlName := some "primary", queryName := some "Primary" }, .bool), + ({ name := "PrivateIpAddress", xmlName := some "privateIpAddress", queryName := some "PrivateIpAddress" }, .string)] + toValue x := record [putOpt "Primary" x.primary, putOpt "PrivateIpAddress" x.privateIpAddress] + ofValue v := do + let primary ← v.opt "Primary" + let privateIpAddress ← v.opt "PrivateIpAddress" + return { primary, privateIpAddress } + +inductive ProductCodeValues where + | devpay + | marketplace +deriving DecidableEq, Repr, Inhabited + +def ProductCodeValues.wire : ProductCodeValues → String + | .devpay => "devpay" + | .marketplace => "marketplace" + +def ProductCodeValues.wireValues : List (String × ProductCodeValues) := [ + ("devpay", .devpay), + ("marketplace", .marketplace)] + +def ProductCodeValues.ofWire (text : String) : Except String ProductCodeValues := + match List.find? (·.1 == text) ProductCodeValues.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ProductCodeValues has no value {text}" + +instance : Key ProductCodeValues := ⟨ProductCodeValues.wire, ProductCodeValues.ofWire⟩ + +instance : Shape ProductCodeValues where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ProductCodeValues.ofWire text + | _ => .error "expected a string" + +/-- Describes a virtual private gateway propagating route. -/ +structure PropagatingVgw where + /-- The ID of the virtual private gateway. -/ + gatewayId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PropagatingVgw where + schema := .struct "PropagatingVgw" [({ name := "GatewayId", xmlName := some "gatewayId", queryName := some "GatewayId" }, .string)] + toValue x := record [putOpt "GatewayId" x.gatewayId] + ofValue v := do + let gatewayId ← v.opt "GatewayId" + return { gatewayId } + +inductive Protocol_ where + | tcp + | udp +deriving DecidableEq, Repr, Inhabited + +def Protocol_.wire : Protocol_ → String + | .tcp => "tcp" + | .udp => "udp" + +def Protocol_.wireValues : List (String × Protocol_) := [ + ("tcp", .tcp), + ("udp", .udp)] + +def Protocol_.ofWire (text : String) : Except String Protocol_ := + match List.find? (·.1 == text) Protocol_.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Protocol_ has no value {text}" + +instance : Key Protocol_ := ⟨Protocol_.wire, Protocol_.ofWire⟩ + +instance : Shape Protocol_ where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Protocol_.ofWire text + | _ => .error "expected a string" + +inductive ProtocolValue where + | gre +deriving DecidableEq, Repr, Inhabited + +def ProtocolValue.wire : ProtocolValue → String + | .gre => "gre" + +def ProtocolValue.wireValues : List (String × ProtocolValue) := [ + ("gre", .gre)] + +def ProtocolValue.ofWire (text : String) : Except String ProtocolValue := + match List.find? (·.1 == text) ProtocolValue.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ProtocolValue has no value {text}" + +instance : Key ProtocolValue := ⟨ProtocolValue.wire, ProtocolValue.ofWire⟩ + +instance : Shape ProtocolValue where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ProtocolValue.ofWire text + | _ => .error "expected a string" + +structure ProvisionPublicIpv4PoolCidrRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM pool you would like to use to allocate this CIDR. -/ + ipamPoolId : String + /-- The netmask length of the CIDR you would like to allocate to the public IPv4 pool. -/ + netmaskLength : Int + /-- The Availability Zone (AZ) or Local Zone (LZ) network border group that the resource that the IP address is assigned to is in. -/ + networkBorderGroup : Option String := none + /-- The ID of the public IPv4 pool you would like to use for this CIDR. -/ + poolId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ProvisionPublicIpv4PoolCidrRequest where + schema := .struct "ProvisionPublicIpv4PoolCidrRequest" [({ name := "DryRun" }, .bool), + ({ name := "IpamPoolId", required := true }, .string), + ({ name := "NetmaskLength", required := true }, .int), + ({ name := "NetworkBorderGroup" }, .string), + ({ name := "PoolId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "IpamPoolId" x.ipamPoolId, put "NetmaskLength" x.netmaskLength, putOpt "NetworkBorderGroup" x.networkBorderGroup, put "PoolId" x.poolId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let ipamPoolId ← v.req "IpamPoolId" + let netmaskLength ← v.req "NetmaskLength" + let networkBorderGroup ← v.opt "NetworkBorderGroup" + let poolId ← v.req "PoolId" + return { dryRun, ipamPoolId, netmaskLength, networkBorderGroup, poolId } + +/-- Reserved. -/ +structure ProvisionedBandwidth where + /-- Reserved. -/ + provisionTime : Option Timestamp := none + /-- Reserved. -/ + provisioned : Option String := none + /-- Reserved. -/ + requestTime : Option Timestamp := none + /-- Reserved. -/ + requested : Option String := none + /-- Reserved. -/ + status : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ProvisionedBandwidth where + schema := .struct "ProvisionedBandwidth" [({ name := "ProvisionTime", xmlName := some "provisionTime", queryName := some "ProvisionTime" }, (.time none)), + ({ name := "Provisioned", xmlName := some "provisioned", queryName := some "Provisioned" }, .string), + ({ name := "RequestTime", xmlName := some "requestTime", queryName := some "RequestTime" }, (.time none)), + ({ name := "Requested", xmlName := some "requested", queryName := some "Requested" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, .string)] + toValue x := record [putOpt "ProvisionTime" x.provisionTime, putOpt "Provisioned" x.provisioned, putOpt "RequestTime" x.requestTime, putOpt "Requested" x.requested, putOpt "Status" x.status] + ofValue v := do + let provisionTime ← v.opt "ProvisionTime" + let provisioned ← v.opt "Provisioned" + let requestTime ← v.opt "RequestTime" + let requested ← v.opt "Requested" + let status ← v.opt "Status" + return { provisionTime, provisioned, requestTime, requested, status } + +/-- The status of an updated pointer (PTR) record for an Elastic IP address. -/ +structure PtrUpdateStatus where + /-- The reason for the PTR record update. -/ + reason : Option String := none + /-- The status of the PTR record update. -/ + status : Option String := none + /-- The value for the PTR record update. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PtrUpdateStatus where + schema := .struct "PtrUpdateStatus" [({ name := "Reason", xmlName := some "reason", queryName := some "Reason" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, .string), + ({ name := "Value", xmlName := some "value", queryName := some "Value" }, .string)] + toValue x := record [putOpt "Reason" x.reason, putOpt "Status" x.status, putOpt "Value" x.value] + ofValue v := do + let reason ← v.opt "Reason" + let status ← v.opt "Status" + let value ← v.opt "Value" + return { reason, status, value } + +/-- Public hostname type options. -/ +structure PublicIpDnsNameOptions where + /-- The public hostname type. -/ + dnsHostnameType : Option String := none + /-- A dual-stack public hostname for a network interface. -/ + publicDualStackDnsName : Option String := none + /-- An IPv4-enabled public hostname for a network interface. -/ + publicIpv4DnsName : Option String := none + /-- An IPv6-enabled public hostname for a network interface. -/ + publicIpv6DnsName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PublicIpDnsNameOptions where + schema := .struct "PublicIpDnsNameOptions" [({ name := "DnsHostnameType", xmlName := some "dnsHostnameType", queryName := some "DnsHostnameType" }, .string), + ({ name := "PublicDualStackDnsName", xmlName := some "publicDualStackDnsName", queryName := some "PublicDualStackDnsName" }, .string), + ({ name := "PublicIpv4DnsName", xmlName := some "publicIpv4DnsName", queryName := some "PublicIpv4DnsName" }, .string), + ({ name := "PublicIpv6DnsName", xmlName := some "publicIpv6DnsName", queryName := some "PublicIpv6DnsName" }, .string)] + toValue x := record [putOpt "DnsHostnameType" x.dnsHostnameType, putOpt "PublicDualStackDnsName" x.publicDualStackDnsName, putOpt "PublicIpv4DnsName" x.publicIpv4DnsName, putOpt "PublicIpv6DnsName" x.publicIpv6DnsName] + ofValue v := do + let dnsHostnameType ← v.opt "DnsHostnameType" + let publicDualStackDnsName ← v.opt "PublicDualStackDnsName" + let publicIpv4DnsName ← v.opt "PublicIpv4DnsName" + let publicIpv6DnsName ← v.opt "PublicIpv6DnsName" + return { dnsHostnameType, publicDualStackDnsName, publicIpv4DnsName, publicIpv6DnsName } + +inductive PublicIpDnsOption where + | public_dual_stack_dns_name + | public_ipv4_dns_name + | public_ipv6_dns_name +deriving DecidableEq, Repr, Inhabited + +def PublicIpDnsOption.wire : PublicIpDnsOption → String + | .public_dual_stack_dns_name => "public-dual-stack-dns-name" + | .public_ipv4_dns_name => "public-ipv4-dns-name" + | .public_ipv6_dns_name => "public-ipv6-dns-name" + +def PublicIpDnsOption.wireValues : List (String × PublicIpDnsOption) := [ + ("public-dual-stack-dns-name", .public_dual_stack_dns_name), + ("public-ipv4-dns-name", .public_ipv4_dns_name), + ("public-ipv6-dns-name", .public_ipv6_dns_name)] + +def PublicIpDnsOption.ofWire (text : String) : Except String PublicIpDnsOption := + match List.find? (·.1 == text) PublicIpDnsOption.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"PublicIpDnsOption has no value {text}" + +instance : Key PublicIpDnsOption := ⟨PublicIpDnsOption.wire, PublicIpDnsOption.ofWire⟩ + +instance : Shape PublicIpDnsOption where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => PublicIpDnsOption.ofWire text + | _ => .error "expected a string" + +/-- Describes an address range of an IPv4 address pool. -/ +structure PublicIpv4PoolRange where + /-- The number of addresses in the range. -/ + addressCount : Option Int := none + /-- The number of available addresses in the range. -/ + availableAddressCount : Option Int := none + /-- The first IP address in the range. -/ + firstAddress : Option String := none + /-- The last IP address in the range. -/ + lastAddress : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PublicIpv4PoolRange where + schema := .struct "PublicIpv4PoolRange" [({ name := "AddressCount", xmlName := some "addressCount", queryName := some "AddressCount" }, .int), + ({ name := "AvailableAddressCount", xmlName := some "availableAddressCount", queryName := some "AvailableAddressCount" }, .int), + ({ name := "FirstAddress", xmlName := some "firstAddress", queryName := some "FirstAddress" }, .string), + ({ name := "LastAddress", xmlName := some "lastAddress", queryName := some "LastAddress" }, .string)] + toValue x := record [putOpt "AddressCount" x.addressCount, putOpt "AvailableAddressCount" x.availableAddressCount, putOpt "FirstAddress" x.firstAddress, putOpt "LastAddress" x.lastAddress] + ofValue v := do + let addressCount ← v.opt "AddressCount" + let availableAddressCount ← v.opt "AvailableAddressCount" + let firstAddress ← v.opt "FirstAddress" + let lastAddress ← v.opt "LastAddress" + return { addressCount, availableAddressCount, firstAddress, lastAddress } + +structure PurchaseCapacityBlockExtensionRequest where + /-- The ID of the Capacity Block extension offering to purchase. -/ + capacityBlockExtensionOfferingId : String + /-- The ID of the Capacity reservation to be extended. -/ + capacityReservationId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PurchaseCapacityBlockExtensionRequest where + schema := .struct "PurchaseCapacityBlockExtensionRequest" [({ name := "CapacityBlockExtensionOfferingId", required := true }, .string), + ({ name := "CapacityReservationId", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "CapacityBlockExtensionOfferingId" x.capacityBlockExtensionOfferingId, put "CapacityReservationId" x.capacityReservationId, putOpt "DryRun" x.dryRun] + ofValue v := do + let capacityBlockExtensionOfferingId ← v.req "CapacityBlockExtensionOfferingId" + let capacityReservationId ← v.req "CapacityReservationId" + let dryRun ← v.opt "DryRun" + return { capacityBlockExtensionOfferingId, capacityReservationId, dryRun } + +/-- Describes a request to purchase Scheduled Instances. -/ +structure PurchaseRequest where + /-- The number of instances. -/ + instanceCount : Int + /-- The purchase token. -/ + purchaseToken : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape PurchaseRequest where + schema := .struct "PurchaseRequest" [({ name := "InstanceCount", required := true }, .int), + ({ name := "PurchaseToken", required := true }, .string)] + toValue x := record [put "InstanceCount" x.instanceCount, put "PurchaseToken" x.purchaseToken] + ofValue v := do + let instanceCount ← v.req "InstanceCount" + let purchaseToken ← v.req "PurchaseToken" + return { instanceCount, purchaseToken } + +/-- Contains the output of PurchaseReservedInstancesOffering. -/ +structure PurchaseReservedInstancesOfferingResult where + /-- The IDs of the purchased Reserved Instances. -/ + reservedInstancesId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PurchaseReservedInstancesOfferingResult where + schema := .struct "PurchaseReservedInstancesOfferingResult" [({ name := "ReservedInstancesId", xmlName := some "reservedInstancesId", queryName := some "ReservedInstancesId" }, .string)] + toValue x := record [putOpt "ReservedInstancesId" x.reservedInstancesId] + ofValue v := do + let reservedInstancesId ← v.opt "ReservedInstancesId" + return { reservedInstancesId } + +inductive RIProductDescription where + | linux_UNIX + | linux_UNIX_Amazon_VPC_ + | windows + | windows_Amazon_VPC_ +deriving DecidableEq, Repr, Inhabited + +def RIProductDescription.wire : RIProductDescription → String + | .linux_UNIX => "Linux/UNIX" + | .linux_UNIX_Amazon_VPC_ => "Linux/UNIX (Amazon VPC)" + | .windows => "Windows" + | .windows_Amazon_VPC_ => "Windows (Amazon VPC)" + +def RIProductDescription.wireValues : List (String × RIProductDescription) := [ + ("Linux/UNIX", .linux_UNIX), + ("Linux/UNIX (Amazon VPC)", .linux_UNIX_Amazon_VPC_), + ("Windows", .windows), + ("Windows (Amazon VPC)", .windows_Amazon_VPC_)] + +def RIProductDescription.ofWire (text : String) : Except String RIProductDescription := + match List.find? (·.1 == text) RIProductDescription.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RIProductDescription has no value {text}" + +instance : Key RIProductDescription := ⟨RIProductDescription.wire, RIProductDescription.ofWire⟩ + +instance : Shape RIProductDescription where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RIProductDescription.ofWire text + | _ => .error "expected a string" + +structure RebootInstancesRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The instance IDs. -/ + instanceIds : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape RebootInstancesRequest where + schema := .struct "RebootInstancesRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "InstanceIds", required := true, xmlName := some "InstanceId" }, (.list .string "InstanceId"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceIds" x.instanceIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceIds ← v.req "InstanceIds" + return { dryRun, instanceIds } + +inductive RebootMigrationSupport where + | supported + | unsupported +deriving DecidableEq, Repr, Inhabited + +def RebootMigrationSupport.wire : RebootMigrationSupport → String + | .supported => "supported" + | .unsupported => "unsupported" + +def RebootMigrationSupport.wireValues : List (String × RebootMigrationSupport) := [ + ("supported", .supported), + ("unsupported", .unsupported)] + +def RebootMigrationSupport.ofWire (text : String) : Except String RebootMigrationSupport := + match List.find? (·.1 == text) RebootMigrationSupport.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RebootMigrationSupport has no value {text}" + +instance : Key RebootMigrationSupport := ⟨RebootMigrationSupport.wire, RebootMigrationSupport.ofWire⟩ + +instance : Shape RebootMigrationSupport where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RebootMigrationSupport.ofWire text + | _ => .error "expected a string" + +inductive RecurringChargeFrequency where + | hourly +deriving DecidableEq, Repr, Inhabited + +def RecurringChargeFrequency.wire : RecurringChargeFrequency → String + | .hourly => "Hourly" + +def RecurringChargeFrequency.wireValues : List (String × RecurringChargeFrequency) := [ + ("Hourly", .hourly)] + +def RecurringChargeFrequency.ofWire (text : String) : Except String RecurringChargeFrequency := + match List.find? (·.1 == text) RecurringChargeFrequency.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RecurringChargeFrequency has no value {text}" + +instance : Key RecurringChargeFrequency := ⟨RecurringChargeFrequency.wire, RecurringChargeFrequency.ofWire⟩ + +instance : Shape RecurringChargeFrequency where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RecurringChargeFrequency.ofWire text + | _ => .error "expected a string" + +/-- Describes the security group that is referenced in the security group rule. -/ +structure ReferencedSecurityGroup where + /-- The ID of the security group. -/ + groupId : Option String := none + /-- The status of a VPC peering connection, if applicable. -/ + peeringStatus : Option String := none + /-- The Amazon Web Services account ID. -/ + userId : Option String := none + /-- The ID of the VPC. -/ + vpcId : Option String := none + /-- The ID of the VPC peering connection (if applicable). -/ + vpcPeeringConnectionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReferencedSecurityGroup where + schema := .struct "ReferencedSecurityGroup" [({ name := "GroupId", xmlName := some "groupId", queryName := some "GroupId" }, .string), + ({ name := "PeeringStatus", xmlName := some "peeringStatus", queryName := some "PeeringStatus" }, .string), + ({ name := "UserId", xmlName := some "userId", queryName := some "UserId" }, .string), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string), + ({ name := "VpcPeeringConnectionId", xmlName := some "vpcPeeringConnectionId", queryName := some "VpcPeeringConnectionId" }, .string)] + toValue x := record [putOpt "GroupId" x.groupId, putOpt "PeeringStatus" x.peeringStatus, putOpt "UserId" x.userId, putOpt "VpcId" x.vpcId, putOpt "VpcPeeringConnectionId" x.vpcPeeringConnectionId] + ofValue v := do + let groupId ← v.opt "GroupId" + let peeringStatus ← v.opt "PeeringStatus" + let userId ← v.opt "UserId" + let vpcId ← v.opt "VpcId" + let vpcPeeringConnectionId ← v.opt "VpcPeeringConnectionId" + return { groupId, peeringStatus, userId, vpcId, vpcPeeringConnectionId } + +/-- Describes the geography information for a Region. -/ +structure RegionGeography where + /-- The name of the geography, for example, United States of America . -/ + name : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RegionGeography where + schema := .struct "RegionGeography" [({ name := "Name", xmlName := some "name", queryName := some "Name" }, .string)] + toValue x := record [putOpt "Name" x.name] + ofValue v := do + let name ← v.opt "Name" + return { name } + +/-- A summary report for the attribute for a Region. -/ +structure RegionalSummary where + /-- The number of accounts in the Region with the same configuration value for the attribute that is most frequently observed. -/ + numberOfMatchedAccounts : Option Int := none + /-- The number of accounts in the Region with a configuration value different from the most frequently observed value for the attribute. -/ + numberOfUnmatchedAccounts : Option Int := none + /-- The Amazon Web Services Region. -/ + regionName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RegionalSummary where + schema := .struct "RegionalSummary" [({ name := "NumberOfMatchedAccounts", xmlName := some "numberOfMatchedAccounts", queryName := some "NumberOfMatchedAccounts" }, .int), + ({ name := "NumberOfUnmatchedAccounts", xmlName := some "numberOfUnmatchedAccounts", queryName := some "NumberOfUnmatchedAccounts" }, .int), + ({ name := "RegionName", xmlName := some "regionName", queryName := some "RegionName" }, .string)] + toValue x := record [putOpt "NumberOfMatchedAccounts" x.numberOfMatchedAccounts, putOpt "NumberOfUnmatchedAccounts" x.numberOfUnmatchedAccounts, putOpt "RegionName" x.regionName] + ofValue v := do + let numberOfMatchedAccounts ← v.opt "NumberOfMatchedAccounts" + let numberOfUnmatchedAccounts ← v.opt "NumberOfUnmatchedAccounts" + let regionName ← v.opt "RegionName" + return { numberOfMatchedAccounts, numberOfUnmatchedAccounts, regionName } + +/-- Contains the output of RegisterImage. -/ +structure RegisterImageResult where + /-- The ID of the newly registered AMI. -/ + imageId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RegisterImageResult where + schema := .struct "RegisterImageResult" [({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string)] + toValue x := record [putOpt "ImageId" x.imageId] + ofValue v := do + let imageId ← v.opt "ImageId" + return { imageId } + +/-- Information about the tag keys to register for the current Region. -/ +structure RegisterInstanceTagAttributeRequest where + /-- Indicates whether to register all tag keys in the current Region. -/ + includeAllTagsOfInstance : Option Bool := none + /-- The tag keys to register. -/ + instanceTagKeys : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RegisterInstanceTagAttributeRequest where + schema := .struct "RegisterInstanceTagAttributeRequest" [({ name := "IncludeAllTagsOfInstance" }, .bool), + ({ name := "InstanceTagKeys", xmlName := some "InstanceTagKey" }, (.list .string "item"))] + toValue x := record [putOpt "IncludeAllTagsOfInstance" x.includeAllTagsOfInstance, putOpt "InstanceTagKeys" x.instanceTagKeys] + ofValue v := do + let includeAllTagsOfInstance ← v.opt "IncludeAllTagsOfInstance" + let instanceTagKeys ← v.opt "InstanceTagKeys" + return { includeAllTagsOfInstance, instanceTagKeys } + +structure RegisterTransitGatewayMulticastGroupMembersRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IP address assigned to the transit gateway multicast group. -/ + groupIpAddress : Option String := none + /-- The group members' network interface IDs to register with the transit gateway multicast group. -/ + networkInterfaceIds : (List String) + /-- The ID of the transit gateway multicast domain. -/ + transitGatewayMulticastDomainId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape RegisterTransitGatewayMulticastGroupMembersRequest where + schema := .struct "RegisterTransitGatewayMulticastGroupMembersRequest" [({ name := "DryRun" }, .bool), + ({ name := "GroupIpAddress" }, .string), + ({ name := "NetworkInterfaceIds", required := true }, (.list .string "item")), + ({ name := "TransitGatewayMulticastDomainId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "GroupIpAddress" x.groupIpAddress, put "NetworkInterfaceIds" x.networkInterfaceIds, put "TransitGatewayMulticastDomainId" x.transitGatewayMulticastDomainId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let groupIpAddress ← v.opt "GroupIpAddress" + let networkInterfaceIds ← v.req "NetworkInterfaceIds" + let transitGatewayMulticastDomainId ← v.req "TransitGatewayMulticastDomainId" + return { dryRun, groupIpAddress, networkInterfaceIds, transitGatewayMulticastDomainId } + +structure RegisterTransitGatewayMulticastGroupSourcesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IP address assigned to the transit gateway multicast group. -/ + groupIpAddress : Option String := none + /-- The group sources' network interface IDs to register with the transit gateway multicast group. -/ + networkInterfaceIds : (List String) + /-- The ID of the transit gateway multicast domain. -/ + transitGatewayMulticastDomainId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape RegisterTransitGatewayMulticastGroupSourcesRequest where + schema := .struct "RegisterTransitGatewayMulticastGroupSourcesRequest" [({ name := "DryRun" }, .bool), + ({ name := "GroupIpAddress" }, .string), + ({ name := "NetworkInterfaceIds", required := true }, (.list .string "item")), + ({ name := "TransitGatewayMulticastDomainId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "GroupIpAddress" x.groupIpAddress, put "NetworkInterfaceIds" x.networkInterfaceIds, put "TransitGatewayMulticastDomainId" x.transitGatewayMulticastDomainId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let groupIpAddress ← v.opt "GroupIpAddress" + let networkInterfaceIds ← v.req "NetworkInterfaceIds" + let transitGatewayMulticastDomainId ← v.req "TransitGatewayMulticastDomainId" + return { dryRun, groupIpAddress, networkInterfaceIds, transitGatewayMulticastDomainId } + +structure RejectCapacityReservationBillingOwnershipRequest where + /-- The ID of the Capacity Reservation for which to reject the request. -/ + capacityReservationId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RejectCapacityReservationBillingOwnershipRequest where + schema := .struct "RejectCapacityReservationBillingOwnershipRequest" [({ name := "CapacityReservationId", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "CapacityReservationId" x.capacityReservationId, putOpt "DryRun" x.dryRun] + ofValue v := do + let capacityReservationId ← v.req "CapacityReservationId" + let dryRun ← v.opt "DryRun" + return { capacityReservationId, dryRun } + +structure RejectCapacityReservationBillingOwnershipResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RejectCapacityReservationBillingOwnershipResult where + schema := .struct "RejectCapacityReservationBillingOwnershipResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure RejectTransitGatewayClientVpnAttachmentRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Transit Gateway attachment. -/ + transitGatewayAttachmentId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape RejectTransitGatewayClientVpnAttachmentRequest where + schema := .struct "RejectTransitGatewayClientVpnAttachmentRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayAttachmentId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + return { dryRun, transitGatewayAttachmentId } + +structure RejectTransitGatewayMulticastDomainAssociationsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the subnets to associate with the transit gateway multicast domain. -/ + subnetIds : Option (List String) := none + /-- The ID of the transit gateway attachment. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the transit gateway multicast domain. -/ + transitGatewayMulticastDomainId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RejectTransitGatewayMulticastDomainAssociationsRequest where + schema := .struct "RejectTransitGatewayMulticastDomainAssociationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "SubnetIds" }, (.list .string "item")), + ({ name := "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayMulticastDomainId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "SubnetIds" x.subnetIds, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, putOpt "TransitGatewayMulticastDomainId" x.transitGatewayMulticastDomainId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let subnetIds ← v.opt "SubnetIds" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayMulticastDomainId ← v.opt "TransitGatewayMulticastDomainId" + return { dryRun, subnetIds, transitGatewayAttachmentId, transitGatewayMulticastDomainId } + +structure RejectTransitGatewayPeeringAttachmentRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the transit gateway peering attachment. -/ + transitGatewayAttachmentId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape RejectTransitGatewayPeeringAttachmentRequest where + schema := .struct "RejectTransitGatewayPeeringAttachmentRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayAttachmentId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + return { dryRun, transitGatewayAttachmentId } + +structure RejectTransitGatewayVpcAttachmentRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape RejectTransitGatewayVpcAttachmentRequest where + schema := .struct "RejectTransitGatewayVpcAttachmentRequest" [({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayAttachmentId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + return { dryRun, transitGatewayAttachmentId } + +structure RejectVpcEndpointConnectionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the service. -/ + serviceId : String + /-- The IDs of the transit gateway attachments to reject. -/ + transitGatewayAttachmentIds : Option (List String) := none + /-- The IDs of the VPC endpoints. -/ + vpcEndpointIds : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape RejectVpcEndpointConnectionsRequest where + schema := .struct "RejectVpcEndpointConnectionsRequest" [({ name := "DryRun" }, .bool), + ({ name := "ServiceId", required := true }, .string), + ({ name := "TransitGatewayAttachmentIds", xmlName := some "TransitGatewayAttachmentId" }, (.list .string "item")), + ({ name := "VpcEndpointIds", required := true, xmlName := some "VpcEndpointId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "ServiceId" x.serviceId, putOpt "TransitGatewayAttachmentIds" x.transitGatewayAttachmentIds, put "VpcEndpointIds" x.vpcEndpointIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let serviceId ← v.req "ServiceId" + let transitGatewayAttachmentIds ← v.opt "TransitGatewayAttachmentIds" + let vpcEndpointIds ← v.req "VpcEndpointIds" + return { dryRun, serviceId, transitGatewayAttachmentIds, vpcEndpointIds } + +structure RejectVpcPeeringConnectionRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the VPC peering connection. -/ + vpcPeeringConnectionId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape RejectVpcPeeringConnectionRequest where + schema := .struct "RejectVpcPeeringConnectionRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "VpcPeeringConnectionId", required := true, xmlName := some "vpcPeeringConnectionId", queryName := some "VpcPeeringConnectionId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VpcPeeringConnectionId" x.vpcPeeringConnectionId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let vpcPeeringConnectionId ← v.req "VpcPeeringConnectionId" + return { dryRun, vpcPeeringConnectionId } + +structure RejectVpcPeeringConnectionResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RejectVpcPeeringConnectionResult where + schema := .struct "RejectVpcPeeringConnectionResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure ReleaseAddressRequest where + /-- The allocation ID. -/ + allocationId : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises IP addresses. -/ + networkBorderGroup : Option String := none + /-- Deprecated. -/ + publicIp : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReleaseAddressRequest where + schema := .struct "ReleaseAddressRequest" [({ name := "AllocationId" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "NetworkBorderGroup" }, .string), + ({ name := "PublicIp" }, .string)] + toValue x := record [putOpt "AllocationId" x.allocationId, putOpt "DryRun" x.dryRun, putOpt "NetworkBorderGroup" x.networkBorderGroup, putOpt "PublicIp" x.publicIp] + ofValue v := do + let allocationId ← v.opt "AllocationId" + let dryRun ← v.opt "DryRun" + let networkBorderGroup ← v.opt "NetworkBorderGroup" + let publicIp ← v.opt "PublicIp" + return { allocationId, dryRun, networkBorderGroup, publicIp } + +structure ReleaseHostsRequest where + /-- The IDs of the Dedicated Hosts to release. -/ + hostIds : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReleaseHostsRequest where + schema := .struct "ReleaseHostsRequest" [({ name := "HostIds", required := true, xmlName := some "hostId", queryName := some "HostId" }, (.list .string "item"))] + toValue x := record [put "HostIds" x.hostIds] + ofValue v := do + let hostIds ← v.req "HostIds" + return { hostIds } + +structure ReleaseIpamPoolAllocationRequest where + /-- The CIDR of the allocation you want to release. -/ + cidr : String + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the allocation. -/ + ipamPoolAllocationId : String + /-- The ID of the IPAM pool which contains the allocation you want to release. -/ + ipamPoolId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReleaseIpamPoolAllocationRequest where + schema := .struct "ReleaseIpamPoolAllocationRequest" [({ name := "Cidr", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "IpamPoolAllocationId", required := true }, .string), + ({ name := "IpamPoolId", required := true }, .string)] + toValue x := record [put "Cidr" x.cidr, putOpt "DryRun" x.dryRun, put "IpamPoolAllocationId" x.ipamPoolAllocationId, put "IpamPoolId" x.ipamPoolId] + ofValue v := do + let cidr ← v.req "Cidr" + let dryRun ← v.opt "DryRun" + let ipamPoolAllocationId ← v.req "IpamPoolAllocationId" + let ipamPoolId ← v.req "IpamPoolId" + return { cidr, dryRun, ipamPoolAllocationId, ipamPoolId } + +structure ReleaseIpamPoolAllocationResult where + /-- Indicates if the release was successful. -/ + success : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReleaseIpamPoolAllocationResult where + schema := .struct "ReleaseIpamPoolAllocationResult" [({ name := "Success", xmlName := some "success", queryName := some "Success" }, .bool)] + toValue x := record [putOpt "Success" x.success] + ofValue v := do + let success ← v.opt "Success" + return { success } + +/-- Remove an operating Region from an IPAM. -/ +structure RemoveIpamOperatingRegion where + /-- The name of the operating Region you want to remove. -/ + regionName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RemoveIpamOperatingRegion where + schema := .struct "RemoveIpamOperatingRegion" [({ name := "RegionName" }, .string)] + toValue x := record [putOpt "RegionName" x.regionName] + ofValue v := do + let regionName ← v.opt "RegionName" + return { regionName } + +/-- Remove an Organizational Unit (OU) exclusion to your IPAM. -/ +structure RemoveIpamOrganizationalUnitExclusion where + /-- An Amazon Web Services Organizations entity path. -/ + organizationsEntityPath : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RemoveIpamOrganizationalUnitExclusion where + schema := .struct "RemoveIpamOrganizationalUnitExclusion" [({ name := "OrganizationsEntityPath" }, .string)] + toValue x := record [putOpt "OrganizationsEntityPath" x.organizationsEntityPath] + ofValue v := do + let organizationsEntityPath ← v.opt "OrganizationsEntityPath" + return { organizationsEntityPath } + +/-- An entry for a prefix list. -/ +structure RemovePrefixListEntry where + /-- The CIDR block. -/ + cidr : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape RemovePrefixListEntry where + schema := .struct "RemovePrefixListEntry" [({ name := "Cidr", required := true }, .string)] + toValue x := record [put "Cidr" x.cidr] + ofValue v := do + let cidr ← v.req "Cidr" + return { cidr } + +structure ReplaceImageCriteriaInAllowedImagesSettingsResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + returnValue : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplaceImageCriteriaInAllowedImagesSettingsResult where + schema := .struct "ReplaceImageCriteriaInAllowedImagesSettingsResult" [({ name := "ReturnValue", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "ReturnValue" x.returnValue] + ofValue v := do + let returnValue ← v.opt "ReturnValue" + return { returnValue } + +structure ReplaceImageInstanceTypeSpecificationResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + returnValue : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplaceImageInstanceTypeSpecificationResult where + schema := .struct "ReplaceImageInstanceTypeSpecificationResult" [({ name := "ReturnValue", xmlName := some "returnValue", queryName := some "ReturnValue" }, .bool)] + toValue x := record [putOpt "ReturnValue" x.returnValue] + ofValue v := do + let returnValue ← v.opt "ReturnValue" + return { returnValue } + +structure ReplaceNetworkAclAssociationRequest where + /-- The ID of the current association between the original network ACL and the subnet. -/ + associationId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the new network ACL to associate with the subnet. -/ + networkAclId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplaceNetworkAclAssociationRequest where + schema := .struct "ReplaceNetworkAclAssociationRequest" [({ name := "AssociationId", required := true, xmlName := some "associationId", queryName := some "AssociationId" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "NetworkAclId", required := true, xmlName := some "networkAclId", queryName := some "NetworkAclId" }, .string)] + toValue x := record [put "AssociationId" x.associationId, putOpt "DryRun" x.dryRun, put "NetworkAclId" x.networkAclId] + ofValue v := do + let associationId ← v.req "AssociationId" + let dryRun ← v.opt "DryRun" + let networkAclId ← v.req "NetworkAclId" + return { associationId, dryRun, networkAclId } + +structure ReplaceNetworkAclAssociationResult where + /-- The ID of the new association. -/ + newAssociationId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplaceNetworkAclAssociationResult where + schema := .struct "ReplaceNetworkAclAssociationResult" [({ name := "NewAssociationId", xmlName := some "newAssociationId", queryName := some "NewAssociationId" }, .string)] + toValue x := record [putOpt "NewAssociationId" x.newAssociationId] + ofValue v := do + let newAssociationId ← v.opt "NewAssociationId" + return { newAssociationId } + +inductive ReplaceRootVolumeTaskState where + | failed + | failed_detached + | failing + | in_progress + | pending + | succeeded +deriving DecidableEq, Repr, Inhabited + +def ReplaceRootVolumeTaskState.wire : ReplaceRootVolumeTaskState → String + | .failed => "failed" + | .failed_detached => "failed-detached" + | .failing => "failing" + | .in_progress => "in-progress" + | .pending => "pending" + | .succeeded => "succeeded" + +def ReplaceRootVolumeTaskState.wireValues : List (String × ReplaceRootVolumeTaskState) := [ + ("failed", .failed), + ("failed-detached", .failed_detached), + ("failing", .failing), + ("in-progress", .in_progress), + ("pending", .pending), + ("succeeded", .succeeded)] + +def ReplaceRootVolumeTaskState.ofWire (text : String) : Except String ReplaceRootVolumeTaskState := + match List.find? (·.1 == text) ReplaceRootVolumeTaskState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ReplaceRootVolumeTaskState has no value {text}" + +instance : Key ReplaceRootVolumeTaskState := ⟨ReplaceRootVolumeTaskState.wire, ReplaceRootVolumeTaskState.ofWire⟩ + +instance : Shape ReplaceRootVolumeTaskState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ReplaceRootVolumeTaskState.ofWire text + | _ => .error "expected a string" + +structure ReplaceRouteRequest where + /-- [IPv4 traffic only] The ID of a carrier gateway. -/ + carrierGatewayId : Option String := none + /-- The Amazon Resource Name (ARN) of the core network. -/ + coreNetworkArn : Option String := none + /-- The IPv4 CIDR address block used for the destination match. -/ + destinationCidrBlock : Option String := none + /-- The IPv6 CIDR address block used for the destination match. -/ + destinationIpv6CidrBlock : Option String := none + /-- The ID of the prefix list for the route. -/ + destinationPrefixListId : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- [IPv6 traffic only] The ID of an egress-only internet gateway. -/ + egressOnlyInternetGatewayId : Option String := none + /-- The ID of an internet gateway or virtual private gateway. -/ + gatewayId : Option String := none + /-- The ID of a NAT instance in your VPC. -/ + instanceId : Option String := none + /-- The ID of the local gateway. -/ + localGatewayId : Option String := none + /-- Specifies whether to reset the local route to its default target ( local ). -/ + localTarget : Option Bool := none + /-- [IPv4 traffic only] The ID of a NAT gateway. -/ + natGatewayId : Option String := none + /-- The ID of a network interface. -/ + networkInterfaceId : Option String := none + /-- The Amazon Resource Name (ARN) of the ODB network. -/ + odbNetworkArn : Option String := none + /-- The ID of the route table. -/ + routeTableId : String + /-- The ID of a transit gateway. -/ + transitGatewayId : Option String := none + /-- The ID of a VPC endpoint. -/ + vpcEndpointId : Option String := none + /-- The ID of a VPC peering connection. -/ + vpcPeeringConnectionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplaceRouteRequest where + schema := .struct "ReplaceRouteRequest" [({ name := "CarrierGatewayId" }, .string), + ({ name := "CoreNetworkArn" }, .string), + ({ name := "DestinationCidrBlock", xmlName := some "destinationCidrBlock", queryName := some "DestinationCidrBlock" }, .string), + ({ name := "DestinationIpv6CidrBlock", xmlName := some "destinationIpv6CidrBlock", queryName := some "DestinationIpv6CidrBlock" }, .string), + ({ name := "DestinationPrefixListId" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "EgressOnlyInternetGatewayId", xmlName := some "egressOnlyInternetGatewayId", queryName := some "EgressOnlyInternetGatewayId" }, .string), + ({ name := "GatewayId", xmlName := some "gatewayId", queryName := some "GatewayId" }, .string), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "LocalGatewayId" }, .string), + ({ name := "LocalTarget" }, .bool), + ({ name := "NatGatewayId", xmlName := some "natGatewayId", queryName := some "NatGatewayId" }, .string), + ({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "OdbNetworkArn" }, .string), + ({ name := "RouteTableId", required := true, xmlName := some "routeTableId", queryName := some "RouteTableId" }, .string), + ({ name := "TransitGatewayId" }, .string), + ({ name := "VpcEndpointId" }, .string), + ({ name := "VpcPeeringConnectionId", xmlName := some "vpcPeeringConnectionId", queryName := some "VpcPeeringConnectionId" }, .string)] + toValue x := record [putOpt "CarrierGatewayId" x.carrierGatewayId, putOpt "CoreNetworkArn" x.coreNetworkArn, putOpt "DestinationCidrBlock" x.destinationCidrBlock, putOpt "DestinationIpv6CidrBlock" x.destinationIpv6CidrBlock, putOpt "DestinationPrefixListId" x.destinationPrefixListId, putOpt "DryRun" x.dryRun, putOpt "EgressOnlyInternetGatewayId" x.egressOnlyInternetGatewayId, putOpt "GatewayId" x.gatewayId, putOpt "InstanceId" x.instanceId, putOpt "LocalGatewayId" x.localGatewayId, putOpt "LocalTarget" x.localTarget, putOpt "NatGatewayId" x.natGatewayId, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "OdbNetworkArn" x.odbNetworkArn, put "RouteTableId" x.routeTableId, putOpt "TransitGatewayId" x.transitGatewayId, putOpt "VpcEndpointId" x.vpcEndpointId, putOpt "VpcPeeringConnectionId" x.vpcPeeringConnectionId] + ofValue v := do + let carrierGatewayId ← v.opt "CarrierGatewayId" + let coreNetworkArn ← v.opt "CoreNetworkArn" + let destinationCidrBlock ← v.opt "DestinationCidrBlock" + let destinationIpv6CidrBlock ← v.opt "DestinationIpv6CidrBlock" + let destinationPrefixListId ← v.opt "DestinationPrefixListId" + let dryRun ← v.opt "DryRun" + let egressOnlyInternetGatewayId ← v.opt "EgressOnlyInternetGatewayId" + let gatewayId ← v.opt "GatewayId" + let instanceId ← v.opt "InstanceId" + let localGatewayId ← v.opt "LocalGatewayId" + let localTarget ← v.opt "LocalTarget" + let natGatewayId ← v.opt "NatGatewayId" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let odbNetworkArn ← v.opt "OdbNetworkArn" + let routeTableId ← v.req "RouteTableId" + let transitGatewayId ← v.opt "TransitGatewayId" + let vpcEndpointId ← v.opt "VpcEndpointId" + let vpcPeeringConnectionId ← v.opt "VpcPeeringConnectionId" + return { carrierGatewayId, coreNetworkArn, destinationCidrBlock, destinationIpv6CidrBlock, destinationPrefixListId, dryRun, egressOnlyInternetGatewayId, gatewayId, instanceId, localGatewayId, localTarget, natGatewayId, networkInterfaceId, odbNetworkArn, routeTableId, transitGatewayId, vpcEndpointId, vpcPeeringConnectionId } + +structure ReplaceRouteTableAssociationRequest where + /-- The association ID. -/ + associationId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the new route table to associate with the subnet. -/ + routeTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplaceRouteTableAssociationRequest where + schema := .struct "ReplaceRouteTableAssociationRequest" [({ name := "AssociationId", required := true, xmlName := some "associationId", queryName := some "AssociationId" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "RouteTableId", required := true, xmlName := some "routeTableId", queryName := some "RouteTableId" }, .string)] + toValue x := record [put "AssociationId" x.associationId, putOpt "DryRun" x.dryRun, put "RouteTableId" x.routeTableId] + ofValue v := do + let associationId ← v.req "AssociationId" + let dryRun ← v.opt "DryRun" + let routeTableId ← v.req "RouteTableId" + return { associationId, dryRun, routeTableId } + +structure ReplaceTransitGatewayRouteRequest where + /-- Indicates whether traffic matching this route is to be dropped. -/ + blackhole : Option Bool := none + /-- The CIDR range used for the destination match. -/ + destinationCidrBlock : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the route table. -/ + transitGatewayRouteTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplaceTransitGatewayRouteRequest where + schema := .struct "ReplaceTransitGatewayRouteRequest" [({ name := "Blackhole" }, .bool), + ({ name := "DestinationCidrBlock", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayRouteTableId", required := true }, .string)] + toValue x := record [putOpt "Blackhole" x.blackhole, put "DestinationCidrBlock" x.destinationCidrBlock, putOpt "DryRun" x.dryRun, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, put "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let blackhole ← v.opt "Blackhole" + let destinationCidrBlock ← v.req "DestinationCidrBlock" + let dryRun ← v.opt "DryRun" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayRouteTableId ← v.req "TransitGatewayRouteTableId" + return { blackhole, destinationCidrBlock, dryRun, transitGatewayAttachmentId, transitGatewayRouteTableId } + +structure ReplaceVpnTunnelRequest where + /-- Trigger pending tunnel endpoint maintenance. -/ + applyPendingMaintenance : Option Bool := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Site-to-Site VPN connection. -/ + vpnConnectionId : String + /-- The external IP address of the VPN tunnel. -/ + vpnTunnelOutsideIpAddress : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplaceVpnTunnelRequest where + schema := .struct "ReplaceVpnTunnelRequest" [({ name := "ApplyPendingMaintenance" }, .bool), + ({ name := "DryRun" }, .bool), + ({ name := "VpnConnectionId", required := true }, .string), + ({ name := "VpnTunnelOutsideIpAddress", required := true }, .string)] + toValue x := record [putOpt "ApplyPendingMaintenance" x.applyPendingMaintenance, putOpt "DryRun" x.dryRun, put "VpnConnectionId" x.vpnConnectionId, put "VpnTunnelOutsideIpAddress" x.vpnTunnelOutsideIpAddress] + ofValue v := do + let applyPendingMaintenance ← v.opt "ApplyPendingMaintenance" + let dryRun ← v.opt "DryRun" + let vpnConnectionId ← v.req "VpnConnectionId" + let vpnTunnelOutsideIpAddress ← v.req "VpnTunnelOutsideIpAddress" + return { applyPendingMaintenance, dryRun, vpnConnectionId, vpnTunnelOutsideIpAddress } + +structure ReplaceVpnTunnelResult where + /-- Confirmation of replace tunnel operation. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplaceVpnTunnelResult where + schema := .struct "ReplaceVpnTunnelResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +inductive ReplacementStrategy where + | launch + | launcH_BEFORE_TERMINATE +deriving DecidableEq, Repr, Inhabited + +def ReplacementStrategy.wire : ReplacementStrategy → String + | .launch => "launch" + | .launcH_BEFORE_TERMINATE => "launch-before-terminate" + +def ReplacementStrategy.wireValues : List (String × ReplacementStrategy) := [ + ("launch", .launch), + ("launch-before-terminate", .launcH_BEFORE_TERMINATE)] + +def ReplacementStrategy.ofWire (text : String) : Except String ReplacementStrategy := + match List.find? (·.1 == text) ReplacementStrategy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ReplacementStrategy has no value {text}" + +instance : Key ReplacementStrategy := ⟨ReplacementStrategy.wire, ReplacementStrategy.ofWire⟩ + +instance : Shape ReplacementStrategy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ReplacementStrategy.ofWire text + | _ => .error "expected a string" + +inductive ReportInstanceReasonCodes where + | instance_stuck_in_state + | not_accepting_credentials + | other + | password_not_available + | performance_ebs_volume + | performance_instance_store + | performance_network + | performance_other + | unresponsive +deriving DecidableEq, Repr, Inhabited + +def ReportInstanceReasonCodes.wire : ReportInstanceReasonCodes → String + | .instance_stuck_in_state => "instance-stuck-in-state" + | .not_accepting_credentials => "not-accepting-credentials" + | .other => "other" + | .password_not_available => "password-not-available" + | .performance_ebs_volume => "performance-ebs-volume" + | .performance_instance_store => "performance-instance-store" + | .performance_network => "performance-network" + | .performance_other => "performance-other" + | .unresponsive => "unresponsive" + +def ReportInstanceReasonCodes.wireValues : List (String × ReportInstanceReasonCodes) := [ + ("instance-stuck-in-state", .instance_stuck_in_state), + ("not-accepting-credentials", .not_accepting_credentials), + ("other", .other), + ("password-not-available", .password_not_available), + ("performance-ebs-volume", .performance_ebs_volume), + ("performance-instance-store", .performance_instance_store), + ("performance-network", .performance_network), + ("performance-other", .performance_other), + ("unresponsive", .unresponsive)] + +def ReportInstanceReasonCodes.ofWire (text : String) : Except String ReportInstanceReasonCodes := + match List.find? (·.1 == text) ReportInstanceReasonCodes.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ReportInstanceReasonCodes has no value {text}" + +instance : Key ReportInstanceReasonCodes := ⟨ReportInstanceReasonCodes.wire, ReportInstanceReasonCodes.ofWire⟩ + +instance : Shape ReportInstanceReasonCodes where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ReportInstanceReasonCodes.ofWire text + | _ => .error "expected a string" + +inductive ReportState where + | cancelled + | complete + | error + | running +deriving DecidableEq, Repr, Inhabited + +def ReportState.wire : ReportState → String + | .cancelled => "cancelled" + | .complete => "complete" + | .error => "error" + | .running => "running" + +def ReportState.wireValues : List (String × ReportState) := [ + ("cancelled", .cancelled), + ("complete", .complete), + ("error", .error), + ("running", .running)] + +def ReportState.ofWire (text : String) : Except String ReportState := + match List.find? (·.1 == text) ReportState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ReportState has no value {text}" + +instance : Key ReportState := ⟨ReportState.wire, ReportState.ofWire⟩ + +instance : Shape ReportState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ReportState.ofWire text + | _ => .error "expected a string" + +inductive ReportStatusType where + | impaired + | ok +deriving DecidableEq, Repr, Inhabited + +def ReportStatusType.wire : ReportStatusType → String + | .impaired => "impaired" + | .ok => "ok" + +def ReportStatusType.wireValues : List (String × ReportStatusType) := [ + ("impaired", .impaired), + ("ok", .ok)] + +def ReportStatusType.ofWire (text : String) : Except String ReportStatusType := + match List.find? (·.1 == text) ReportStatusType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ReportStatusType has no value {text}" + +instance : Key ReportStatusType := ⟨ReportStatusType.wire, ReportStatusType.ofWire⟩ + +instance : Shape ReportStatusType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ReportStatusType.ofWire text + | _ => .error "expected a string" + +/-- Describes a port range. -/ +structure RequestFilterPortRange where + /-- The first port in the range. -/ + fromPort : Option Int := none + /-- The last port in the range. -/ + toPort : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RequestFilterPortRange where + schema := .struct "RequestFilterPortRange" [({ name := "FromPort" }, .int), + ({ name := "ToPort" }, .int)] + toValue x := record [putOpt "FromPort" x.fromPort, putOpt "ToPort" x.toPort] + ofValue v := do + let fromPort ← v.opt "FromPort" + let toPort ← v.opt "ToPort" + return { fromPort, toPort } + +/-- A tag on an IPAM resource. -/ +structure RequestIpamResourceTag where + /-- The key of a tag assigned to the resource. -/ + key : Option String := none + /-- The value for the tag. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RequestIpamResourceTag where + schema := .struct "RequestIpamResourceTag" [({ name := "Key" }, .string), + ({ name := "Value" }, .string)] + toValue x := record [putOpt "Key" x.key, putOpt "Value" x.value] + ofValue v := do + let key ← v.opt "Key" + let value ← v.opt "Value" + return { key, value } + +/-- Contains the output of RequestSpotFleet. -/ +structure RequestSpotFleetResponse where + /-- The ID of the Spot Fleet request. -/ + spotFleetRequestId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RequestSpotFleetResponse where + schema := .struct "RequestSpotFleetResponse" [({ name := "SpotFleetRequestId", xmlName := some "spotFleetRequestId", queryName := some "SpotFleetRequestId" }, .string)] + toValue x := record [putOpt "SpotFleetRequestId" x.spotFleetRequestId] + ofValue v := do + let spotFleetRequestId ← v.opt "SpotFleetRequestId" + return { spotFleetRequestId } + +inductive ReservationEndDateType where + | limited + | unlimited +deriving DecidableEq, Repr, Inhabited + +def ReservationEndDateType.wire : ReservationEndDateType → String + | .limited => "limited" + | .unlimited => "unlimited" + +def ReservationEndDateType.wireValues : List (String × ReservationEndDateType) := [ + ("limited", .limited), + ("unlimited", .unlimited)] + +def ReservationEndDateType.ofWire (text : String) : Except String ReservationEndDateType := + match List.find? (·.1 == text) ReservationEndDateType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ReservationEndDateType has no value {text}" + +instance : Key ReservationEndDateType := ⟨ReservationEndDateType.wire, ReservationEndDateType.ofWire⟩ + +instance : Shape ReservationEndDateType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ReservationEndDateType.ofWire text + | _ => .error "expected a string" + +inductive ReservationState where + | active + | cancelled + | delayed + | expired + | failed + | paymenT_FAILED + | paymenT_PENDING + | pending + | retired + | scheduled + | unsupported +deriving DecidableEq, Repr, Inhabited + +def ReservationState.wire : ReservationState → String + | .active => "active" + | .cancelled => "cancelled" + | .delayed => "delayed" + | .expired => "expired" + | .failed => "failed" + | .paymenT_FAILED => "payment-failed" + | .paymenT_PENDING => "payment-pending" + | .pending => "pending" + | .retired => "retired" + | .scheduled => "scheduled" + | .unsupported => "unsupported" + +def ReservationState.wireValues : List (String × ReservationState) := [ + ("active", .active), + ("cancelled", .cancelled), + ("delayed", .delayed), + ("expired", .expired), + ("failed", .failed), + ("payment-failed", .paymenT_FAILED), + ("payment-pending", .paymenT_PENDING), + ("pending", .pending), + ("retired", .retired), + ("scheduled", .scheduled), + ("unsupported", .unsupported)] + +def ReservationState.ofWire (text : String) : Except String ReservationState := + match List.find? (·.1 == text) ReservationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ReservationState has no value {text}" + +instance : Key ReservationState := ⟨ReservationState.wire, ReservationState.ofWire⟩ + +instance : Shape ReservationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ReservationState.ofWire text + | _ => .error "expected a string" + +inductive ReservationType where + | capacitY_BLOCK + | odcr +deriving DecidableEq, Repr, Inhabited + +def ReservationType.wire : ReservationType → String + | .capacitY_BLOCK => "capacity-block" + | .odcr => "odcr" + +def ReservationType.wireValues : List (String × ReservationType) := [ + ("capacity-block", .capacitY_BLOCK), + ("odcr", .odcr)] + +def ReservationType.ofWire (text : String) : Except String ReservationType := + match List.find? (·.1 == text) ReservationType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ReservationType has no value {text}" + +instance : Key ReservationType := ⟨ReservationType.wire, ReservationType.ofWire⟩ + +instance : Shape ReservationType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ReservationType.ofWire text + | _ => .error "expected a string" + +/-- The cost associated with the Reserved Instance. -/ +structure ReservationValue where + /-- The hourly rate of the reservation. -/ + hourlyPrice : Option String := none + /-- The balance of the total value (the sum of remainingUpfrontValue + hourlyPrice * number of hours remaining). -/ + remainingTotalValue : Option String := none + /-- The remaining upfront cost of the reservation. -/ + remainingUpfrontValue : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReservationValue where + schema := .struct "ReservationValue" [({ name := "HourlyPrice", xmlName := some "hourlyPrice", queryName := some "HourlyPrice" }, .string), + ({ name := "RemainingTotalValue", xmlName := some "remainingTotalValue", queryName := some "RemainingTotalValue" }, .string), + ({ name := "RemainingUpfrontValue", xmlName := some "remainingUpfrontValue", queryName := some "RemainingUpfrontValue" }, .string)] + toValue x := record [putOpt "HourlyPrice" x.hourlyPrice, putOpt "RemainingTotalValue" x.remainingTotalValue, putOpt "RemainingUpfrontValue" x.remainingUpfrontValue] + ofValue v := do + let hourlyPrice ← v.opt "HourlyPrice" + let remainingTotalValue ← v.opt "RemainingTotalValue" + let remainingUpfrontValue ← v.opt "RemainingUpfrontValue" + return { hourlyPrice, remainingTotalValue, remainingUpfrontValue } + +inductive ReservedCapacityAllocationStrategy where + | prioritized +deriving DecidableEq, Repr, Inhabited + +def ReservedCapacityAllocationStrategy.wire : ReservedCapacityAllocationStrategy → String + | .prioritized => "prioritized" + +def ReservedCapacityAllocationStrategy.wireValues : List (String × ReservedCapacityAllocationStrategy) := [ + ("prioritized", .prioritized)] + +def ReservedCapacityAllocationStrategy.ofWire (text : String) : Except String ReservedCapacityAllocationStrategy := + match List.find? (·.1 == text) ReservedCapacityAllocationStrategy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ReservedCapacityAllocationStrategy has no value {text}" + +instance : Key ReservedCapacityAllocationStrategy := ⟨ReservedCapacityAllocationStrategy.wire, ReservedCapacityAllocationStrategy.ofWire⟩ + +instance : Shape ReservedCapacityAllocationStrategy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ReservedCapacityAllocationStrategy.ofWire text + | _ => .error "expected a string" + +inductive ReservedCapacityFallbackMarketType where + | oN_DEMAND +deriving DecidableEq, Repr, Inhabited + +def ReservedCapacityFallbackMarketType.wire : ReservedCapacityFallbackMarketType → String + | .oN_DEMAND => "on-demand" + +def ReservedCapacityFallbackMarketType.wireValues : List (String × ReservedCapacityFallbackMarketType) := [ + ("on-demand", .oN_DEMAND)] + +def ReservedCapacityFallbackMarketType.ofWire (text : String) : Except String ReservedCapacityFallbackMarketType := + match List.find? (·.1 == text) ReservedCapacityFallbackMarketType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ReservedCapacityFallbackMarketType has no value {text}" + +instance : Key ReservedCapacityFallbackMarketType := ⟨ReservedCapacityFallbackMarketType.wire, ReservedCapacityFallbackMarketType.ofWire⟩ + +instance : Shape ReservedCapacityFallbackMarketType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ReservedCapacityFallbackMarketType.ofWire text + | _ => .error "expected a string" + +inductive ReservedInstanceState where + | active + | payment_failed + | payment_pending + | queued + | queued_deleted + | retired +deriving DecidableEq, Repr, Inhabited + +def ReservedInstanceState.wire : ReservedInstanceState → String + | .active => "active" + | .payment_failed => "payment-failed" + | .payment_pending => "payment-pending" + | .queued => "queued" + | .queued_deleted => "queued-deleted" + | .retired => "retired" + +def ReservedInstanceState.wireValues : List (String × ReservedInstanceState) := [ + ("active", .active), + ("payment-failed", .payment_failed), + ("payment-pending", .payment_pending), + ("queued", .queued), + ("queued-deleted", .queued_deleted), + ("retired", .retired)] + +def ReservedInstanceState.ofWire (text : String) : Except String ReservedInstanceState := + match List.find? (·.1 == text) ReservedInstanceState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ReservedInstanceState has no value {text}" + +instance : Key ReservedInstanceState := ⟨ReservedInstanceState.wire, ReservedInstanceState.ofWire⟩ + +instance : Shape ReservedInstanceState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ReservedInstanceState.ofWire text + | _ => .error "expected a string" + +/-- Describes the ID of a Reserved Instance. -/ +structure ReservedInstancesId where + /-- The ID of the Reserved Instance. -/ + reservedInstancesId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReservedInstancesId where + schema := .struct "ReservedInstancesId" [({ name := "ReservedInstancesId", xmlName := some "reservedInstancesId", queryName := some "ReservedInstancesId" }, .string)] + toValue x := record [putOpt "ReservedInstancesId" x.reservedInstancesId] + ofValue v := do + let reservedInstancesId ← v.opt "ReservedInstancesId" + return { reservedInstancesId } + +structure ResetEbsDefaultKmsKeyIdRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResetEbsDefaultKmsKeyIdRequest where + schema := .struct "ResetEbsDefaultKmsKeyIdRequest" [({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun] + ofValue v := do + let dryRun ← v.opt "DryRun" + return { dryRun } + +structure ResetEbsDefaultKmsKeyIdResult where + /-- The Amazon Resource Name (ARN) of the default KMS key for EBS encryption by default. -/ + kmsKeyId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResetEbsDefaultKmsKeyIdResult where + schema := .struct "ResetEbsDefaultKmsKeyIdResult" [({ name := "KmsKeyId", xmlName := some "kmsKeyId", queryName := some "KmsKeyId" }, .string)] + toValue x := record [putOpt "KmsKeyId" x.kmsKeyId] + ofValue v := do + let kmsKeyId ← v.opt "KmsKeyId" + return { kmsKeyId } + +inductive ResetFpgaImageAttributeName where + | loadPermission +deriving DecidableEq, Repr, Inhabited + +def ResetFpgaImageAttributeName.wire : ResetFpgaImageAttributeName → String + | .loadPermission => "loadPermission" + +def ResetFpgaImageAttributeName.wireValues : List (String × ResetFpgaImageAttributeName) := [ + ("loadPermission", .loadPermission)] + +def ResetFpgaImageAttributeName.ofWire (text : String) : Except String ResetFpgaImageAttributeName := + match List.find? (·.1 == text) ResetFpgaImageAttributeName.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ResetFpgaImageAttributeName has no value {text}" + +instance : Key ResetFpgaImageAttributeName := ⟨ResetFpgaImageAttributeName.wire, ResetFpgaImageAttributeName.ofWire⟩ + +instance : Shape ResetFpgaImageAttributeName where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ResetFpgaImageAttributeName.ofWire text + | _ => .error "expected a string" + +structure ResetFpgaImageAttributeResult where + /-- Is true if the request succeeds, and an error otherwise. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResetFpgaImageAttributeResult where + schema := .struct "ResetFpgaImageAttributeResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +inductive ResetImageAttributeName where + | launchPermission +deriving DecidableEq, Repr, Inhabited + +def ResetImageAttributeName.wire : ResetImageAttributeName → String + | .launchPermission => "launchPermission" + +def ResetImageAttributeName.wireValues : List (String × ResetImageAttributeName) := [ + ("launchPermission", .launchPermission)] + +def ResetImageAttributeName.ofWire (text : String) : Except String ResetImageAttributeName := + match List.find? (·.1 == text) ResetImageAttributeName.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ResetImageAttributeName has no value {text}" + +instance : Key ResetImageAttributeName := ⟨ResetImageAttributeName.wire, ResetImageAttributeName.ofWire⟩ + +instance : Shape ResetImageAttributeName where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ResetImageAttributeName.ofWire text + | _ => .error "expected a string" + +/-- Contains the parameters for ResetNetworkInterfaceAttribute. -/ +structure ResetNetworkInterfaceAttributeRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the network interface. -/ + networkInterfaceId : String + /-- The source/destination checking attribute. -/ + sourceDestCheck : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResetNetworkInterfaceAttributeRequest where + schema := .struct "ResetNetworkInterfaceAttributeRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "NetworkInterfaceId", required := true, xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "SourceDestCheck", xmlName := some "sourceDestCheck", queryName := some "SourceDestCheck" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "NetworkInterfaceId" x.networkInterfaceId, putOpt "SourceDestCheck" x.sourceDestCheck] + ofValue v := do + let dryRun ← v.opt "DryRun" + let networkInterfaceId ← v.req "NetworkInterfaceId" + let sourceDestCheck ← v.opt "SourceDestCheck" + return { dryRun, networkInterfaceId, sourceDestCheck } + +/-- Describes a resource statement. -/ +structure ResourceStatement where + /-- The resource types. -/ + resourceTypes : Option (List String) := none + /-- The resources. -/ + resources : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResourceStatement where + schema := .struct "ResourceStatement" [({ name := "ResourceTypes", xmlName := some "resourceTypeSet", queryName := some "ResourceTypeSet" }, (.list .string "item")), + ({ name := "Resources", xmlName := some "resourceSet", queryName := some "ResourceSet" }, (.list .string "item"))] + toValue x := record [putOpt "ResourceTypes" x.resourceTypes, putOpt "Resources" x.resources] + ofValue v := do + let resourceTypes ← v.opt "ResourceTypes" + let resources ← v.opt "Resources" + return { resourceTypes, resources } + +/-- Describes a resource statement. -/ +structure ResourceStatementRequest where + /-- The resource types. -/ + resourceTypes : Option (List String) := none + /-- The resources. -/ + resources : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResourceStatementRequest where + schema := .struct "ResourceStatementRequest" [({ name := "ResourceTypes", xmlName := some "ResourceType" }, (.list .string "item")), + ({ name := "Resources", xmlName := some "Resource" }, (.list .string "item"))] + toValue x := record [putOpt "ResourceTypes" x.resourceTypes, putOpt "Resources" x.resources] + ofValue v := do + let resourceTypes ← v.opt "ResourceTypes" + let resources ← v.opt "Resources" + return { resourceTypes, resources } + +inductive ResourceType where + | application_status_check + | capacity_block + | capacity_manager_data_export + | capacity_reservation + | capacity_reservation_cancellation_quote + | capacity_reservation_fleet + | capacity_reservation_modification_quote + | carrier_gateway + | client_vpn_endpoint + | coip_pool + | customer_gateway + | declarative_policies_report + | dedicated_host + | dhcp_options + | egress_only_internet_gateway + | elastic_gpu + | elastic_ip + | export_image_task + | export_instance_task + | fca_policy + | fleet + | fpga_image + | host_reservation + | image + | image_usage_report + | import_image_task + | import_snapshot_task + | «instance» + | instance_connect_endpoint + | instance_event_window + | internet_gateway + | ipam + | ipam_external_resource_verification_token + | ipam_internet_registry_association + | ipam_policy + | ipam_pool + | ipam_pool_allocation + | ipam_prefix_list_resolver + | ipam_prefix_list_resolver_target + | ipam_resource_discovery + | ipam_resource_discovery_association + | ipam_scope + | ipv4pool_ec2 + | ipv6pool_ec2 + | key_pair + | launch_template + | local_gateway + | local_gateway_route_table + | local_gateway_route_table_virtual_interface_group_association + | local_gateway_route_table_vpc_association + | local_gateway_virtual_interface + | local_gateway_virtual_interface_group + | mac_modification_task + | metric_category + | natgateway + | network_acl + | network_insights_access_scope + | network_insights_access_scope_analysis + | network_insights_analysis + | network_insights_path + | network_interface + | outpost_lag + | placement_group + | prefix_list + | replace_root_volume_task + | reserved_instances + | route_server + | route_server_endpoint + | route_server_peer + | route_table + | secondary_interface + | secondary_network + | secondary_subnet + | security_group + | security_group_rule + | service_link_virtual_interface + | snapshot + | spot_fleet_request + | spot_instances_request + | subnet + | subnet_cidr_reservation + | traffic_mirror_filter + | traffic_mirror_filter_rule + | traffic_mirror_session + | traffic_mirror_target + | transit_gateway + | transit_gateway_attachment + | transit_gateway_connect_peer + | transit_gateway_metering_policy + | transit_gateway_multicast_domain + | transit_gateway_policy_table + | transit_gateway_route_table + | transit_gateway_route_table_announcement + | verified_access_endpoint + | verified_access_endpoint_target + | verified_access_group + | verified_access_instance + | verified_access_policy + | verified_access_trust_provider + | volume + | vpc + | vpc_block_public_access_exclusion + | vpc_encryption_control + | vpc_endpoint + | vpc_endpoint_connection + | vpc_endpoint_connection_device_type + | vpc_endpoint_service + | vpc_endpoint_service_permission + | vpc_flow_log + | vpc_peering_connection + | vpn_concentrator + | vpn_connection + | vpn_connection_device_type + | vpn_gateway +deriving DecidableEq, Repr, Inhabited + +def ResourceType.wire : ResourceType → String + | .application_status_check => "application-status-check" + | .capacity_block => "capacity-block" + | .capacity_manager_data_export => "capacity-manager-data-export" + | .capacity_reservation => "capacity-reservation" + | .capacity_reservation_cancellation_quote => "capacity-reservation-cancellation-quote" + | .capacity_reservation_fleet => "capacity-reservation-fleet" + | .capacity_reservation_modification_quote => "capacity-reservation-modification-quote" + | .carrier_gateway => "carrier-gateway" + | .client_vpn_endpoint => "client-vpn-endpoint" + | .coip_pool => "coip-pool" + | .customer_gateway => "customer-gateway" + | .declarative_policies_report => "declarative-policies-report" + | .dedicated_host => "dedicated-host" + | .dhcp_options => "dhcp-options" + | .egress_only_internet_gateway => "egress-only-internet-gateway" + | .elastic_gpu => "elastic-gpu" + | .elastic_ip => "elastic-ip" + | .export_image_task => "export-image-task" + | .export_instance_task => "export-instance-task" + | .fca_policy => "fca-policy" + | .fleet => "fleet" + | .fpga_image => "fpga-image" + | .host_reservation => "host-reservation" + | .image => "image" + | .image_usage_report => "image-usage-report" + | .import_image_task => "import-image-task" + | .import_snapshot_task => "import-snapshot-task" + | .«instance» => "instance" + | .instance_connect_endpoint => "instance-connect-endpoint" + | .instance_event_window => "instance-event-window" + | .internet_gateway => "internet-gateway" + | .ipam => "ipam" + | .ipam_external_resource_verification_token => "ipam-external-resource-verification-token" + | .ipam_internet_registry_association => "ipam-internet-registry-association" + | .ipam_policy => "ipam-policy" + | .ipam_pool => "ipam-pool" + | .ipam_pool_allocation => "ipam-pool-allocation" + | .ipam_prefix_list_resolver => "ipam-prefix-list-resolver" + | .ipam_prefix_list_resolver_target => "ipam-prefix-list-resolver-target" + | .ipam_resource_discovery => "ipam-resource-discovery" + | .ipam_resource_discovery_association => "ipam-resource-discovery-association" + | .ipam_scope => "ipam-scope" + | .ipv4pool_ec2 => "ipv4pool-ec2" + | .ipv6pool_ec2 => "ipv6pool-ec2" + | .key_pair => "key-pair" + | .launch_template => "launch-template" + | .local_gateway => "local-gateway" + | .local_gateway_route_table => "local-gateway-route-table" + | .local_gateway_route_table_virtual_interface_group_association => "local-gateway-route-table-virtual-interface-group-association" + | .local_gateway_route_table_vpc_association => "local-gateway-route-table-vpc-association" + | .local_gateway_virtual_interface => "local-gateway-virtual-interface" + | .local_gateway_virtual_interface_group => "local-gateway-virtual-interface-group" + | .mac_modification_task => "mac-modification-task" + | .metric_category => "metric-category" + | .natgateway => "natgateway" + | .network_acl => "network-acl" + | .network_insights_access_scope => "network-insights-access-scope" + | .network_insights_access_scope_analysis => "network-insights-access-scope-analysis" + | .network_insights_analysis => "network-insights-analysis" + | .network_insights_path => "network-insights-path" + | .network_interface => "network-interface" + | .outpost_lag => "outpost-lag" + | .placement_group => "placement-group" + | .prefix_list => "prefix-list" + | .replace_root_volume_task => "replace-root-volume-task" + | .reserved_instances => "reserved-instances" + | .route_server => "route-server" + | .route_server_endpoint => "route-server-endpoint" + | .route_server_peer => "route-server-peer" + | .route_table => "route-table" + | .secondary_interface => "secondary-interface" + | .secondary_network => "secondary-network" + | .secondary_subnet => "secondary-subnet" + | .security_group => "security-group" + | .security_group_rule => "security-group-rule" + | .service_link_virtual_interface => "service-link-virtual-interface" + | .snapshot => "snapshot" + | .spot_fleet_request => "spot-fleet-request" + | .spot_instances_request => "spot-instances-request" + | .subnet => "subnet" + | .subnet_cidr_reservation => "subnet-cidr-reservation" + | .traffic_mirror_filter => "traffic-mirror-filter" + | .traffic_mirror_filter_rule => "traffic-mirror-filter-rule" + | .traffic_mirror_session => "traffic-mirror-session" + | .traffic_mirror_target => "traffic-mirror-target" + | .transit_gateway => "transit-gateway" + | .transit_gateway_attachment => "transit-gateway-attachment" + | .transit_gateway_connect_peer => "transit-gateway-connect-peer" + | .transit_gateway_metering_policy => "transit-gateway-metering-policy" + | .transit_gateway_multicast_domain => "transit-gateway-multicast-domain" + | .transit_gateway_policy_table => "transit-gateway-policy-table" + | .transit_gateway_route_table => "transit-gateway-route-table" + | .transit_gateway_route_table_announcement => "transit-gateway-route-table-announcement" + | .verified_access_endpoint => "verified-access-endpoint" + | .verified_access_endpoint_target => "verified-access-endpoint-target" + | .verified_access_group => "verified-access-group" + | .verified_access_instance => "verified-access-instance" + | .verified_access_policy => "verified-access-policy" + | .verified_access_trust_provider => "verified-access-trust-provider" + | .volume => "volume" + | .vpc => "vpc" + | .vpc_block_public_access_exclusion => "vpc-block-public-access-exclusion" + | .vpc_encryption_control => "vpc-encryption-control" + | .vpc_endpoint => "vpc-endpoint" + | .vpc_endpoint_connection => "vpc-endpoint-connection" + | .vpc_endpoint_connection_device_type => "vpc-endpoint-connection-device-type" + | .vpc_endpoint_service => "vpc-endpoint-service" + | .vpc_endpoint_service_permission => "vpc-endpoint-service-permission" + | .vpc_flow_log => "vpc-flow-log" + | .vpc_peering_connection => "vpc-peering-connection" + | .vpn_concentrator => "vpn-concentrator" + | .vpn_connection => "vpn-connection" + | .vpn_connection_device_type => "vpn-connection-device-type" + | .vpn_gateway => "vpn-gateway" + +def ResourceType.wireValues : List (String × ResourceType) := [ + ("application-status-check", .application_status_check), + ("capacity-block", .capacity_block), + ("capacity-manager-data-export", .capacity_manager_data_export), + ("capacity-reservation", .capacity_reservation), + ("capacity-reservation-cancellation-quote", .capacity_reservation_cancellation_quote), + ("capacity-reservation-fleet", .capacity_reservation_fleet), + ("capacity-reservation-modification-quote", .capacity_reservation_modification_quote), + ("carrier-gateway", .carrier_gateway), + ("client-vpn-endpoint", .client_vpn_endpoint), + ("coip-pool", .coip_pool), + ("customer-gateway", .customer_gateway), + ("declarative-policies-report", .declarative_policies_report), + ("dedicated-host", .dedicated_host), + ("dhcp-options", .dhcp_options), + ("egress-only-internet-gateway", .egress_only_internet_gateway), + ("elastic-gpu", .elastic_gpu), + ("elastic-ip", .elastic_ip), + ("export-image-task", .export_image_task), + ("export-instance-task", .export_instance_task), + ("fca-policy", .fca_policy), + ("fleet", .fleet), + ("fpga-image", .fpga_image), + ("host-reservation", .host_reservation), + ("image", .image), + ("image-usage-report", .image_usage_report), + ("import-image-task", .import_image_task), + ("import-snapshot-task", .import_snapshot_task), + ("instance", .«instance»), + ("instance-connect-endpoint", .instance_connect_endpoint), + ("instance-event-window", .instance_event_window), + ("internet-gateway", .internet_gateway), + ("ipam", .ipam), + ("ipam-external-resource-verification-token", .ipam_external_resource_verification_token), + ("ipam-internet-registry-association", .ipam_internet_registry_association), + ("ipam-policy", .ipam_policy), + ("ipam-pool", .ipam_pool), + ("ipam-pool-allocation", .ipam_pool_allocation), + ("ipam-prefix-list-resolver", .ipam_prefix_list_resolver), + ("ipam-prefix-list-resolver-target", .ipam_prefix_list_resolver_target), + ("ipam-resource-discovery", .ipam_resource_discovery), + ("ipam-resource-discovery-association", .ipam_resource_discovery_association), + ("ipam-scope", .ipam_scope), + ("ipv4pool-ec2", .ipv4pool_ec2), + ("ipv6pool-ec2", .ipv6pool_ec2), + ("key-pair", .key_pair), + ("launch-template", .launch_template), + ("local-gateway", .local_gateway), + ("local-gateway-route-table", .local_gateway_route_table), + ("local-gateway-route-table-virtual-interface-group-association", .local_gateway_route_table_virtual_interface_group_association), + ("local-gateway-route-table-vpc-association", .local_gateway_route_table_vpc_association), + ("local-gateway-virtual-interface", .local_gateway_virtual_interface), + ("local-gateway-virtual-interface-group", .local_gateway_virtual_interface_group), + ("mac-modification-task", .mac_modification_task), + ("metric-category", .metric_category), + ("natgateway", .natgateway), + ("network-acl", .network_acl), + ("network-insights-access-scope", .network_insights_access_scope), + ("network-insights-access-scope-analysis", .network_insights_access_scope_analysis), + ("network-insights-analysis", .network_insights_analysis), + ("network-insights-path", .network_insights_path), + ("network-interface", .network_interface), + ("outpost-lag", .outpost_lag), + ("placement-group", .placement_group), + ("prefix-list", .prefix_list), + ("replace-root-volume-task", .replace_root_volume_task), + ("reserved-instances", .reserved_instances), + ("route-server", .route_server), + ("route-server-endpoint", .route_server_endpoint), + ("route-server-peer", .route_server_peer), + ("route-table", .route_table), + ("secondary-interface", .secondary_interface), + ("secondary-network", .secondary_network), + ("secondary-subnet", .secondary_subnet), + ("security-group", .security_group), + ("security-group-rule", .security_group_rule), + ("service-link-virtual-interface", .service_link_virtual_interface), + ("snapshot", .snapshot), + ("spot-fleet-request", .spot_fleet_request), + ("spot-instances-request", .spot_instances_request), + ("subnet", .subnet), + ("subnet-cidr-reservation", .subnet_cidr_reservation), + ("traffic-mirror-filter", .traffic_mirror_filter), + ("traffic-mirror-filter-rule", .traffic_mirror_filter_rule), + ("traffic-mirror-session", .traffic_mirror_session), + ("traffic-mirror-target", .traffic_mirror_target), + ("transit-gateway", .transit_gateway), + ("transit-gateway-attachment", .transit_gateway_attachment), + ("transit-gateway-connect-peer", .transit_gateway_connect_peer), + ("transit-gateway-metering-policy", .transit_gateway_metering_policy), + ("transit-gateway-multicast-domain", .transit_gateway_multicast_domain), + ("transit-gateway-policy-table", .transit_gateway_policy_table), + ("transit-gateway-route-table", .transit_gateway_route_table), + ("transit-gateway-route-table-announcement", .transit_gateway_route_table_announcement), + ("verified-access-endpoint", .verified_access_endpoint), + ("verified-access-endpoint-target", .verified_access_endpoint_target), + ("verified-access-group", .verified_access_group), + ("verified-access-instance", .verified_access_instance), + ("verified-access-policy", .verified_access_policy), + ("verified-access-trust-provider", .verified_access_trust_provider), + ("volume", .volume), + ("vpc", .vpc), + ("vpc-block-public-access-exclusion", .vpc_block_public_access_exclusion), + ("vpc-encryption-control", .vpc_encryption_control), + ("vpc-endpoint", .vpc_endpoint), + ("vpc-endpoint-connection", .vpc_endpoint_connection), + ("vpc-endpoint-connection-device-type", .vpc_endpoint_connection_device_type), + ("vpc-endpoint-service", .vpc_endpoint_service), + ("vpc-endpoint-service-permission", .vpc_endpoint_service_permission), + ("vpc-flow-log", .vpc_flow_log), + ("vpc-peering-connection", .vpc_peering_connection), + ("vpn-concentrator", .vpn_concentrator), + ("vpn-connection", .vpn_connection), + ("vpn-connection-device-type", .vpn_connection_device_type), + ("vpn-gateway", .vpn_gateway)] + +def ResourceType.ofWire (text : String) : Except String ResourceType := + match List.find? (·.1 == text) ResourceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ResourceType has no value {text}" + +instance : Key ResourceType := ⟨ResourceType.wire, ResourceType.ofWire⟩ + +instance : Shape ResourceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ResourceType.ofWire text + | _ => .error "expected a string" + +structure RestoreAddressToClassicRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The Elastic IP address. -/ + publicIp : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreAddressToClassicRequest where + schema := .struct "RestoreAddressToClassicRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "PublicIp", required := true, xmlName := some "publicIp", queryName := some "PublicIp" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "PublicIp" x.publicIp] + ofValue v := do + let dryRun ← v.opt "DryRun" + let publicIp ← v.req "PublicIp" + return { dryRun, publicIp } + +structure RestoreImageFromRecycleBinRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AMI to restore. -/ + imageId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreImageFromRecycleBinRequest where + schema := .struct "RestoreImageFromRecycleBinRequest" [({ name := "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "ImageId" x.imageId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + return { dryRun, imageId } + +structure RestoreImageFromRecycleBinResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreImageFromRecycleBinResult where + schema := .struct "RestoreImageFromRecycleBinResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure RestoreManagedPrefixListVersionRequest where + /-- The current version number for the prefix list. -/ + currentVersion : Int + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the prefix list. -/ + prefixListId : String + /-- The version to restore. -/ + previousVersion : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreManagedPrefixListVersionRequest where + schema := .struct "RestoreManagedPrefixListVersionRequest" [({ name := "CurrentVersion", required := true }, .int), + ({ name := "DryRun" }, .bool), + ({ name := "PrefixListId", required := true }, .string), + ({ name := "PreviousVersion", required := true }, .int)] + toValue x := record [put "CurrentVersion" x.currentVersion, putOpt "DryRun" x.dryRun, put "PrefixListId" x.prefixListId, put "PreviousVersion" x.previousVersion] + ofValue v := do + let currentVersion ← v.req "CurrentVersion" + let dryRun ← v.opt "DryRun" + let prefixListId ← v.req "PrefixListId" + let previousVersion ← v.req "PreviousVersion" + return { currentVersion, dryRun, prefixListId, previousVersion } + +structure RestoreSnapshotFromRecycleBinRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the snapshot to restore. -/ + snapshotId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreSnapshotFromRecycleBinRequest where + schema := .struct "RestoreSnapshotFromRecycleBinRequest" [({ name := "DryRun" }, .bool), + ({ name := "SnapshotId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "SnapshotId" x.snapshotId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let snapshotId ← v.req "SnapshotId" + return { dryRun, snapshotId } + +structure RestoreSnapshotTierRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Indicates whether to permanently restore an archived snapshot. -/ + permanentRestore : Option Bool := none + /-- The ID of the snapshot to restore. -/ + snapshotId : String + /-- Specifies the number of days for which to temporarily restore an archived snapshot. -/ + temporaryRestoreDays : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreSnapshotTierRequest where + schema := .struct "RestoreSnapshotTierRequest" [({ name := "DryRun" }, .bool), + ({ name := "PermanentRestore" }, .bool), + ({ name := "SnapshotId", required := true }, .string), + ({ name := "TemporaryRestoreDays" }, .int)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "PermanentRestore" x.permanentRestore, put "SnapshotId" x.snapshotId, putOpt "TemporaryRestoreDays" x.temporaryRestoreDays] + ofValue v := do + let dryRun ← v.opt "DryRun" + let permanentRestore ← v.opt "PermanentRestore" + let snapshotId ← v.req "SnapshotId" + let temporaryRestoreDays ← v.opt "TemporaryRestoreDays" + return { dryRun, permanentRestore, snapshotId, temporaryRestoreDays } + +structure RestoreSnapshotTierResult where + /-- Indicates whether the snapshot is permanently restored. -/ + isPermanentRestore : Option Bool := none + /-- For temporary restores only. -/ + restoreDuration : Option Int := none + /-- The date and time when the snapshot restore process started. -/ + restoreStartTime : Option Timestamp := none + /-- The ID of the snapshot. -/ + snapshotId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreSnapshotTierResult where + schema := .struct "RestoreSnapshotTierResult" [({ name := "IsPermanentRestore", xmlName := some "isPermanentRestore", queryName := some "IsPermanentRestore" }, .bool), + ({ name := "RestoreDuration", xmlName := some "restoreDuration", queryName := some "RestoreDuration" }, .int), + ({ name := "RestoreStartTime", xmlName := some "restoreStartTime", queryName := some "RestoreStartTime" }, (.time none)), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string)] + toValue x := record [putOpt "IsPermanentRestore" x.isPermanentRestore, putOpt "RestoreDuration" x.restoreDuration, putOpt "RestoreStartTime" x.restoreStartTime, putOpt "SnapshotId" x.snapshotId] + ofValue v := do + let isPermanentRestore ← v.opt "IsPermanentRestore" + let restoreDuration ← v.opt "RestoreDuration" + let restoreStartTime ← v.opt "RestoreStartTime" + let snapshotId ← v.opt "SnapshotId" + return { isPermanentRestore, restoreDuration, restoreStartTime, snapshotId } + +structure RestoreVolumeFromRecycleBinRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the volume to restore. -/ + volumeId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreVolumeFromRecycleBinRequest where + schema := .struct "RestoreVolumeFromRecycleBinRequest" [({ name := "DryRun" }, .bool), + ({ name := "VolumeId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "VolumeId" x.volumeId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let volumeId ← v.req "VolumeId" + return { dryRun, volumeId } + +structure RestoreVolumeFromRecycleBinResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreVolumeFromRecycleBinResult where + schema := .struct "RestoreVolumeFromRecycleBinResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure RevokeClientVpnIngressRequest where + /-- The ID of the Active Directory group for which to revoke access. -/ + accessGroupId : Option String := none + /-- The ID of the Client VPN endpoint with which the authorization rule is associated. -/ + clientVpnEndpointId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Indicates whether access should be revoked for all groups for a single TargetNetworkCidr that earlier authorized ingress for all groups using AuthorizeAllGroups . -/ + revokeAllGroups : Option Bool := none + /-- The IPv4 address range, in CIDR notation, of the network for which access is being removed. -/ + targetNetworkCidr : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape RevokeClientVpnIngressRequest where + schema := .struct "RevokeClientVpnIngressRequest" [({ name := "AccessGroupId" }, .string), + ({ name := "ClientVpnEndpointId", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "RevokeAllGroups" }, .bool), + ({ name := "TargetNetworkCidr", required := true }, .string)] + toValue x := record [putOpt "AccessGroupId" x.accessGroupId, put "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "DryRun" x.dryRun, putOpt "RevokeAllGroups" x.revokeAllGroups, put "TargetNetworkCidr" x.targetNetworkCidr] + ofValue v := do + let accessGroupId ← v.opt "AccessGroupId" + let clientVpnEndpointId ← v.req "ClientVpnEndpointId" + let dryRun ← v.opt "DryRun" + let revokeAllGroups ← v.opt "RevokeAllGroups" + let targetNetworkCidr ← v.req "TargetNetworkCidr" + return { accessGroupId, clientVpnEndpointId, dryRun, revokeAllGroups, targetNetworkCidr } + +/-- A security group rule removed with RevokeSecurityGroupEgress or RevokeSecurityGroupIngress . -/ +structure RevokedSecurityGroupRule where + /-- The IPv4 CIDR of the traffic source. -/ + cidrIpv4 : Option String := none + /-- The IPv6 CIDR of the traffic source. -/ + cidrIpv6 : Option String := none + /-- A description of the revoked security group rule. -/ + description : Option String := none + /-- The 'from' port number of the security group rule. -/ + fromPort : Option Int := none + /-- A security group ID. -/ + groupId : Option String := none + /-- The security group rule's protocol. -/ + ipProtocol : Option String := none + /-- Defines if a security group rule is an outbound rule. -/ + isEgress : Option Bool := none + /-- The ID of a prefix list that's the traffic source. -/ + prefixListId : Option String := none + /-- The ID of a referenced security group. -/ + referencedGroupId : Option String := none + /-- A security group rule ID. -/ + securityGroupRuleId : Option String := none + /-- The 'to' port number of the security group rule. -/ + toPort : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RevokedSecurityGroupRule where + schema := .struct "RevokedSecurityGroupRule" [({ name := "CidrIpv4", xmlName := some "cidrIpv4", queryName := some "CidrIpv4" }, .string), + ({ name := "CidrIpv6", xmlName := some "cidrIpv6", queryName := some "CidrIpv6" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "FromPort", xmlName := some "fromPort", queryName := some "FromPort" }, .int), + ({ name := "GroupId", xmlName := some "groupId", queryName := some "GroupId" }, .string), + ({ name := "IpProtocol", xmlName := some "ipProtocol", queryName := some "IpProtocol" }, .string), + ({ name := "IsEgress", xmlName := some "isEgress", queryName := some "IsEgress" }, .bool), + ({ name := "PrefixListId", xmlName := some "prefixListId", queryName := some "PrefixListId" }, .string), + ({ name := "ReferencedGroupId", xmlName := some "referencedGroupId", queryName := some "ReferencedGroupId" }, .string), + ({ name := "SecurityGroupRuleId", xmlName := some "securityGroupRuleId", queryName := some "SecurityGroupRuleId" }, .string), + ({ name := "ToPort", xmlName := some "toPort", queryName := some "ToPort" }, .int)] + toValue x := record [putOpt "CidrIpv4" x.cidrIpv4, putOpt "CidrIpv6" x.cidrIpv6, putOpt "Description" x.description, putOpt "FromPort" x.fromPort, putOpt "GroupId" x.groupId, putOpt "IpProtocol" x.ipProtocol, putOpt "IsEgress" x.isEgress, putOpt "PrefixListId" x.prefixListId, putOpt "ReferencedGroupId" x.referencedGroupId, putOpt "SecurityGroupRuleId" x.securityGroupRuleId, putOpt "ToPort" x.toPort] + ofValue v := do + let cidrIpv4 ← v.opt "CidrIpv4" + let cidrIpv6 ← v.opt "CidrIpv6" + let description ← v.opt "Description" + let fromPort ← v.opt "FromPort" + let groupId ← v.opt "GroupId" + let ipProtocol ← v.opt "IpProtocol" + let isEgress ← v.opt "IsEgress" + let prefixListId ← v.opt "PrefixListId" + let referencedGroupId ← v.opt "ReferencedGroupId" + let securityGroupRuleId ← v.opt "SecurityGroupRuleId" + let toPort ← v.opt "ToPort" + return { cidrIpv4, cidrIpv6, description, fromPort, groupId, ipProtocol, isEgress, prefixListId, referencedGroupId, securityGroupRuleId, toPort } + +/-- The Regional Internet Registry (RIR). -/ +inductive Rir where + | apnic + | arin + | lacnic + | nicbr + | ripe +deriving DecidableEq, Repr, Inhabited + +def Rir.wire : Rir → String + | .apnic => "apnic" + | .arin => "arin" + | .lacnic => "lacnic" + | .nicbr => "nicbr" + | .ripe => "ripe" + +def Rir.wireValues : List (String × Rir) := [ + ("apnic", .apnic), + ("arin", .arin), + ("lacnic", .lacnic), + ("nicbr", .nicbr), + ("ripe", .ripe)] + +def Rir.ofWire (text : String) : Except String Rir := + match List.find? (·.1 == text) Rir.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Rir has no value {text}" + +instance : Key Rir := ⟨Rir.wire, Rir.ofWire⟩ + +instance : Shape Rir where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Rir.ofWire text + | _ => .error "expected a string" + +inductive RootDeviceType where + | ebs + | instance_store +deriving DecidableEq, Repr, Inhabited + +def RootDeviceType.wire : RootDeviceType → String + | .ebs => "ebs" + | .instance_store => "instance-store" + +def RootDeviceType.wireValues : List (String × RootDeviceType) := [ + ("ebs", .ebs), + ("instance-store", .instance_store)] + +def RootDeviceType.ofWire (text : String) : Except String RootDeviceType := + match List.find? (·.1 == text) RootDeviceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RootDeviceType has no value {text}" + +instance : Key RootDeviceType := ⟨RootDeviceType.wire, RootDeviceType.ofWire⟩ + +instance : Shape RootDeviceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RootDeviceType.ofWire text + | _ => .error "expected a string" + +inductive RouteOrigin where + | advertisement + | createRoute + | createRouteTable + | enableVgwRoutePropagation +deriving DecidableEq, Repr, Inhabited + +def RouteOrigin.wire : RouteOrigin → String + | .advertisement => "Advertisement" + | .createRoute => "CreateRoute" + | .createRouteTable => "CreateRouteTable" + | .enableVgwRoutePropagation => "EnableVgwRoutePropagation" + +def RouteOrigin.wireValues : List (String × RouteOrigin) := [ + ("Advertisement", .advertisement), + ("CreateRoute", .createRoute), + ("CreateRouteTable", .createRouteTable), + ("EnableVgwRoutePropagation", .enableVgwRoutePropagation)] + +def RouteOrigin.ofWire (text : String) : Except String RouteOrigin := + match List.find? (·.1 == text) RouteOrigin.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RouteOrigin has no value {text}" + +instance : Key RouteOrigin := ⟨RouteOrigin.wire, RouteOrigin.ofWire⟩ + +instance : Shape RouteOrigin where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RouteOrigin.ofWire text + | _ => .error "expected a string" + +inductive RouteServerAssociationState where + | associated + | associating + | disassociating +deriving DecidableEq, Repr, Inhabited + +def RouteServerAssociationState.wire : RouteServerAssociationState → String + | .associated => "associated" + | .associating => "associating" + | .disassociating => "disassociating" + +def RouteServerAssociationState.wireValues : List (String × RouteServerAssociationState) := [ + ("associated", .associated), + ("associating", .associating), + ("disassociating", .disassociating)] + +def RouteServerAssociationState.ofWire (text : String) : Except String RouteServerAssociationState := + match List.find? (·.1 == text) RouteServerAssociationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RouteServerAssociationState has no value {text}" + +instance : Key RouteServerAssociationState := ⟨RouteServerAssociationState.wire, RouteServerAssociationState.ofWire⟩ + +instance : Shape RouteServerAssociationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RouteServerAssociationState.ofWire text + | _ => .error "expected a string" + +inductive RouteServerBfdState where + | down + | up +deriving DecidableEq, Repr, Inhabited + +def RouteServerBfdState.wire : RouteServerBfdState → String + | .down => "down" + | .up => "up" + +def RouteServerBfdState.wireValues : List (String × RouteServerBfdState) := [ + ("down", .down), + ("up", .up)] + +def RouteServerBfdState.ofWire (text : String) : Except String RouteServerBfdState := + match List.find? (·.1 == text) RouteServerBfdState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RouteServerBfdState has no value {text}" + +instance : Key RouteServerBfdState := ⟨RouteServerBfdState.wire, RouteServerBfdState.ofWire⟩ + +instance : Shape RouteServerBfdState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RouteServerBfdState.ofWire text + | _ => .error "expected a string" + +inductive RouteServerBgpState where + | down + | up +deriving DecidableEq, Repr, Inhabited + +def RouteServerBgpState.wire : RouteServerBgpState → String + | .down => "down" + | .up => "up" + +def RouteServerBgpState.wireValues : List (String × RouteServerBgpState) := [ + ("down", .down), + ("up", .up)] + +def RouteServerBgpState.ofWire (text : String) : Except String RouteServerBgpState := + match List.find? (·.1 == text) RouteServerBgpState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RouteServerBgpState has no value {text}" + +instance : Key RouteServerBgpState := ⟨RouteServerBgpState.wire, RouteServerBgpState.ofWire⟩ + +instance : Shape RouteServerBgpState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RouteServerBgpState.ofWire text + | _ => .error "expected a string" + +inductive RouteServerEndpointState where + | available + | deleted + | deletE_FAILED + | deleting + | failed + | failing + | pending +deriving DecidableEq, Repr, Inhabited + +def RouteServerEndpointState.wire : RouteServerEndpointState → String + | .available => "available" + | .deleted => "deleted" + | .deletE_FAILED => "delete-failed" + | .deleting => "deleting" + | .failed => "failed" + | .failing => "failing" + | .pending => "pending" + +def RouteServerEndpointState.wireValues : List (String × RouteServerEndpointState) := [ + ("available", .available), + ("deleted", .deleted), + ("delete-failed", .deletE_FAILED), + ("deleting", .deleting), + ("failed", .failed), + ("failing", .failing), + ("pending", .pending)] + +def RouteServerEndpointState.ofWire (text : String) : Except String RouteServerEndpointState := + match List.find? (·.1 == text) RouteServerEndpointState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RouteServerEndpointState has no value {text}" + +instance : Key RouteServerEndpointState := ⟨RouteServerEndpointState.wire, RouteServerEndpointState.ofWire⟩ + +instance : Shape RouteServerEndpointState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RouteServerEndpointState.ofWire text + | _ => .error "expected a string" + +inductive RouteServerPeerLivenessMode where + | bfd + | bgP_KEEPALIVE +deriving DecidableEq, Repr, Inhabited + +def RouteServerPeerLivenessMode.wire : RouteServerPeerLivenessMode → String + | .bfd => "bfd" + | .bgP_KEEPALIVE => "bgp-keepalive" + +def RouteServerPeerLivenessMode.wireValues : List (String × RouteServerPeerLivenessMode) := [ + ("bfd", .bfd), + ("bgp-keepalive", .bgP_KEEPALIVE)] + +def RouteServerPeerLivenessMode.ofWire (text : String) : Except String RouteServerPeerLivenessMode := + match List.find? (·.1 == text) RouteServerPeerLivenessMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RouteServerPeerLivenessMode has no value {text}" + +instance : Key RouteServerPeerLivenessMode := ⟨RouteServerPeerLivenessMode.wire, RouteServerPeerLivenessMode.ofWire⟩ + +instance : Shape RouteServerPeerLivenessMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RouteServerPeerLivenessMode.ofWire text + | _ => .error "expected a string" + +inductive RouteServerPeerState where + | available + | deleted + | deleting + | failed + | failing + | pending +deriving DecidableEq, Repr, Inhabited + +def RouteServerPeerState.wire : RouteServerPeerState → String + | .available => "available" + | .deleted => "deleted" + | .deleting => "deleting" + | .failed => "failed" + | .failing => "failing" + | .pending => "pending" + +def RouteServerPeerState.wireValues : List (String × RouteServerPeerState) := [ + ("available", .available), + ("deleted", .deleted), + ("deleting", .deleting), + ("failed", .failed), + ("failing", .failing), + ("pending", .pending)] + +def RouteServerPeerState.ofWire (text : String) : Except String RouteServerPeerState := + match List.find? (·.1 == text) RouteServerPeerState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RouteServerPeerState has no value {text}" + +instance : Key RouteServerPeerState := ⟨RouteServerPeerState.wire, RouteServerPeerState.ofWire⟩ + +instance : Shape RouteServerPeerState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RouteServerPeerState.ofWire text + | _ => .error "expected a string" + +inductive RouteServerPersistRoutesAction where + | disable + | enable + | reset +deriving DecidableEq, Repr, Inhabited + +def RouteServerPersistRoutesAction.wire : RouteServerPersistRoutesAction → String + | .disable => "disable" + | .enable => "enable" + | .reset => "reset" + +def RouteServerPersistRoutesAction.wireValues : List (String × RouteServerPersistRoutesAction) := [ + ("disable", .disable), + ("enable", .enable), + ("reset", .reset)] + +def RouteServerPersistRoutesAction.ofWire (text : String) : Except String RouteServerPersistRoutesAction := + match List.find? (·.1 == text) RouteServerPersistRoutesAction.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RouteServerPersistRoutesAction has no value {text}" + +instance : Key RouteServerPersistRoutesAction := ⟨RouteServerPersistRoutesAction.wire, RouteServerPersistRoutesAction.ofWire⟩ + +instance : Shape RouteServerPersistRoutesAction where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RouteServerPersistRoutesAction.ofWire text + | _ => .error "expected a string" + +inductive RouteServerPersistRoutesState where + | disabled + | disabling + | enabled + | enabling + | modifying + | resetting +deriving DecidableEq, Repr, Inhabited + +def RouteServerPersistRoutesState.wire : RouteServerPersistRoutesState → String + | .disabled => "disabled" + | .disabling => "disabling" + | .enabled => "enabled" + | .enabling => "enabling" + | .modifying => "modifying" + | .resetting => "resetting" + +def RouteServerPersistRoutesState.wireValues : List (String × RouteServerPersistRoutesState) := [ + ("disabled", .disabled), + ("disabling", .disabling), + ("enabled", .enabled), + ("enabling", .enabling), + ("modifying", .modifying), + ("resetting", .resetting)] + +def RouteServerPersistRoutesState.ofWire (text : String) : Except String RouteServerPersistRoutesState := + match List.find? (·.1 == text) RouteServerPersistRoutesState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RouteServerPersistRoutesState has no value {text}" + +instance : Key RouteServerPersistRoutesState := ⟨RouteServerPersistRoutesState.wire, RouteServerPersistRoutesState.ofWire⟩ + +instance : Shape RouteServerPersistRoutesState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RouteServerPersistRoutesState.ofWire text + | _ => .error "expected a string" + +inductive RouteServerPropagationState where + | available + | deleting + | pending +deriving DecidableEq, Repr, Inhabited + +def RouteServerPropagationState.wire : RouteServerPropagationState → String + | .available => "available" + | .deleting => "deleting" + | .pending => "pending" + +def RouteServerPropagationState.wireValues : List (String × RouteServerPropagationState) := [ + ("available", .available), + ("deleting", .deleting), + ("pending", .pending)] + +def RouteServerPropagationState.ofWire (text : String) : Except String RouteServerPropagationState := + match List.find? (·.1 == text) RouteServerPropagationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RouteServerPropagationState has no value {text}" + +instance : Key RouteServerPropagationState := ⟨RouteServerPropagationState.wire, RouteServerPropagationState.ofWire⟩ + +instance : Shape RouteServerPropagationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RouteServerPropagationState.ofWire text + | _ => .error "expected a string" + +inductive RouteServerRouteInstallationStatus where + | installed + | rejected +deriving DecidableEq, Repr, Inhabited + +def RouteServerRouteInstallationStatus.wire : RouteServerRouteInstallationStatus → String + | .installed => "installed" + | .rejected => "rejected" + +def RouteServerRouteInstallationStatus.wireValues : List (String × RouteServerRouteInstallationStatus) := [ + ("installed", .installed), + ("rejected", .rejected)] + +def RouteServerRouteInstallationStatus.ofWire (text : String) : Except String RouteServerRouteInstallationStatus := + match List.find? (·.1 == text) RouteServerRouteInstallationStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RouteServerRouteInstallationStatus has no value {text}" + +instance : Key RouteServerRouteInstallationStatus := ⟨RouteServerRouteInstallationStatus.wire, RouteServerRouteInstallationStatus.ofWire⟩ + +instance : Shape RouteServerRouteInstallationStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RouteServerRouteInstallationStatus.ofWire text + | _ => .error "expected a string" + +inductive RouteServerRouteStatus where + | iN_FIB + | iN_RIB +deriving DecidableEq, Repr, Inhabited + +def RouteServerRouteStatus.wire : RouteServerRouteStatus → String + | .iN_FIB => "in-fib" + | .iN_RIB => "in-rib" + +def RouteServerRouteStatus.wireValues : List (String × RouteServerRouteStatus) := [ + ("in-fib", .iN_FIB), + ("in-rib", .iN_RIB)] + +def RouteServerRouteStatus.ofWire (text : String) : Except String RouteServerRouteStatus := + match List.find? (·.1 == text) RouteServerRouteStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RouteServerRouteStatus has no value {text}" + +instance : Key RouteServerRouteStatus := ⟨RouteServerRouteStatus.wire, RouteServerRouteStatus.ofWire⟩ + +instance : Shape RouteServerRouteStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RouteServerRouteStatus.ofWire text + | _ => .error "expected a string" + +inductive RouteServerState where + | available + | deleted + | deleting + | modifying + | pending +deriving DecidableEq, Repr, Inhabited + +def RouteServerState.wire : RouteServerState → String + | .available => "available" + | .deleted => "deleted" + | .deleting => "deleting" + | .modifying => "modifying" + | .pending => "pending" + +def RouteServerState.wireValues : List (String × RouteServerState) := [ + ("available", .available), + ("deleted", .deleted), + ("deleting", .deleting), + ("modifying", .modifying), + ("pending", .pending)] + +def RouteServerState.ofWire (text : String) : Except String RouteServerState := + match List.find? (·.1 == text) RouteServerState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RouteServerState has no value {text}" + +instance : Key RouteServerState := ⟨RouteServerState.wire, RouteServerState.ofWire⟩ + +instance : Shape RouteServerState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RouteServerState.ofWire text + | _ => .error "expected a string" + +inductive RouteState where + | active + | blackhole + | filtered +deriving DecidableEq, Repr, Inhabited + +def RouteState.wire : RouteState → String + | .active => "active" + | .blackhole => "blackhole" + | .filtered => "filtered" + +def RouteState.wireValues : List (String × RouteState) := [ + ("active", .active), + ("blackhole", .blackhole), + ("filtered", .filtered)] + +def RouteState.ofWire (text : String) : Except String RouteState := + match List.find? (·.1 == text) RouteState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RouteState has no value {text}" + +instance : Key RouteState := ⟨RouteState.wire, RouteState.ofWire⟩ + +instance : Shape RouteState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RouteState.ofWire text + | _ => .error "expected a string" + +inductive RouteTableAssociationStateCode where + | associated + | associating + | disassociated + | disassociating + | failed +deriving DecidableEq, Repr, Inhabited + +def RouteTableAssociationStateCode.wire : RouteTableAssociationStateCode → String + | .associated => "associated" + | .associating => "associating" + | .disassociated => "disassociated" + | .disassociating => "disassociating" + | .failed => "failed" + +def RouteTableAssociationStateCode.wireValues : List (String × RouteTableAssociationStateCode) := [ + ("associated", .associated), + ("associating", .associating), + ("disassociated", .disassociated), + ("disassociating", .disassociating), + ("failed", .failed)] + +def RouteTableAssociationStateCode.ofWire (text : String) : Except String RouteTableAssociationStateCode := + match List.find? (·.1 == text) RouteTableAssociationStateCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RouteTableAssociationStateCode has no value {text}" + +instance : Key RouteTableAssociationStateCode := ⟨RouteTableAssociationStateCode.wire, RouteTableAssociationStateCode.ofWire⟩ + +instance : Shape RouteTableAssociationStateCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RouteTableAssociationStateCode.ofWire text + | _ => .error "expected a string" + +inductive RuleAction where + | allow + | deny +deriving DecidableEq, Repr, Inhabited + +def RuleAction.wire : RuleAction → String + | .allow => "allow" + | .deny => "deny" + +def RuleAction.wireValues : List (String × RuleAction) := [ + ("allow", .allow), + ("deny", .deny)] + +def RuleAction.ofWire (text : String) : Except String RuleAction := + match List.find? (·.1 == text) RuleAction.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RuleAction has no value {text}" + +instance : Key RuleAction := ⟨RuleAction.wire, RuleAction.ofWire⟩ + +instance : Shape RuleAction where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RuleAction.ofWire text + | _ => .error "expected a string" + +/-- Describes the type of a stateful rule group. -/ +structure RuleGroupTypePair where + /-- The ARN of the rule group. -/ + ruleGroupArn : Option String := none + /-- The rule group type. -/ + ruleGroupType : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RuleGroupTypePair where + schema := .struct "RuleGroupTypePair" [({ name := "RuleGroupArn", xmlName := some "ruleGroupArn", queryName := some "RuleGroupArn" }, .string), + ({ name := "RuleGroupType", xmlName := some "ruleGroupType", queryName := some "RuleGroupType" }, .string)] + toValue x := record [putOpt "RuleGroupArn" x.ruleGroupArn, putOpt "RuleGroupType" x.ruleGroupType] + ofValue v := do + let ruleGroupArn ← v.opt "RuleGroupArn" + let ruleGroupType ← v.opt "RuleGroupType" + return { ruleGroupArn, ruleGroupType } + +/-- Describes additional settings for a stateful rule. -/ +structure RuleOption where + /-- The Suricata keyword. -/ + keyword : Option String := none + /-- The settings for the keyword. -/ + settings : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RuleOption where + schema := .struct "RuleOption" [({ name := "Keyword", xmlName := some "keyword", queryName := some "Keyword" }, .string), + ({ name := "Settings", xmlName := some "settingSet", queryName := some "SettingSet" }, (.list .string "item"))] + toValue x := record [putOpt "Keyword" x.keyword, putOpt "Settings" x.settings] + ofValue v := do + let keyword ← v.opt "Keyword" + let settings ← v.opt "Settings" + return { keyword, settings } + +/-- Describes the monitoring of an instance. -/ +structure RunInstancesMonitoringEnabled where + /-- Indicates whether detailed monitoring is enabled. -/ + enabled : Bool + /-- The IDs of the metric categories to associate with the instance. -/ + metricCategoryIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RunInstancesMonitoringEnabled where + schema := .struct "RunInstancesMonitoringEnabled" [({ name := "Enabled", required := true, xmlName := some "enabled", queryName := some "Enabled" }, .bool), + ({ name := "MetricCategoryIds", xmlName := some "MetricCategoryId" }, (.list .string "item"))] + toValue x := record [put "Enabled" x.enabled, putOpt "MetricCategoryIds" x.metricCategoryIds] + ofValue v := do + let enabled ← v.req "Enabled" + let metricCategoryIds ← v.opt "MetricCategoryIds" + return { enabled, metricCategoryIds } + +/-- Contains the output of RunScheduledInstances. -/ +structure RunScheduledInstancesResult where + /-- The IDs of the newly launched instances. -/ + instanceIdSet : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RunScheduledInstancesResult where + schema := .struct "RunScheduledInstancesResult" [({ name := "InstanceIdSet", xmlName := some "instanceIdSet", queryName := some "InstanceIdSet" }, (.list .string "item"))] + toValue x := record [putOpt "InstanceIdSet" x.instanceIdSet] + ofValue v := do + let instanceIdSet ← v.opt "InstanceIdSet" + return { instanceIdSet } + +/-- The tags to apply to the AMI object that will be stored in the Amazon S3 bucket. -/ +structure S3ObjectTag where + /-- The key of the tag. -/ + key : Option String := none + /-- The value of the tag. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape S3ObjectTag where + schema := .struct "S3ObjectTag" [({ name := "Key" }, .string), + ({ name := "Value" }, .string)] + toValue x := record [putOpt "Key" x.key, putOpt "Value" x.value] + ofValue v := do + let key ← v.opt "Key" + let value ← v.opt "Value" + return { key, value } + +/-- Describes the storage parameters for Amazon S3 and Amazon S3 buckets for an instance store-backed AMI. -/ +structure S3Storage where + /-- The access key ID of the owner of the bucket. -/ + awsAccessKeyId : Option String := none + /-- The bucket in which to store the AMI. -/ + bucket : Option String := none + /-- The beginning of the file name of the AMI. -/ + «prefix» : Option String := none + /-- An Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf. -/ + uploadPolicy : Option Blob := none + /-- The signature of the JSON document. -/ + uploadPolicySignature : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape S3Storage where + schema := .struct "S3Storage" [({ name := "AWSAccessKeyId" }, .string), + ({ name := "Bucket", xmlName := some "bucket", queryName := some "Bucket" }, .string), + ({ name := "Prefix", xmlName := some "prefix", queryName := some "Prefix" }, .string), + ({ name := "UploadPolicy", xmlName := some "uploadPolicy", queryName := some "UploadPolicy" }, .blob), + ({ name := "UploadPolicySignature", xmlName := some "uploadPolicySignature", queryName := some "UploadPolicySignature" }, .string)] + toValue x := record [putOpt "AWSAccessKeyId" x.awsAccessKeyId, putOpt "Bucket" x.bucket, putOpt "Prefix" x.«prefix», putOpt "UploadPolicy" x.uploadPolicy, putOpt "UploadPolicySignature" x.uploadPolicySignature] + ofValue v := do + let awsAccessKeyId ← v.opt "AWSAccessKeyId" + let bucket ← v.opt "Bucket" + let «prefix» ← v.opt "Prefix" + let uploadPolicy ← v.opt "UploadPolicy" + let uploadPolicySignature ← v.opt "UploadPolicySignature" + return { awsAccessKeyId, bucket, «prefix», uploadPolicy, uploadPolicySignature } + +inductive SSEType where + | none + | sse_ebs + | sse_kms +deriving DecidableEq, Repr, Inhabited + +def SSEType.wire : SSEType → String + | .none => "none" + | .sse_ebs => "sse-ebs" + | .sse_kms => "sse-kms" + +def SSEType.wireValues : List (String × SSEType) := [ + ("none", .none), + ("sse-ebs", .sse_ebs), + ("sse-kms", .sse_kms)] + +def SSEType.ofWire (text : String) : Except String SSEType := + match List.find? (·.1 == text) SSEType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SSEType has no value {text}" + +instance : Key SSEType := ⟨SSEType.wire, SSEType.ofWire⟩ + +instance : Shape SSEType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SSEType.ofWire text + | _ => .error "expected a string" + +inductive Schedule where + | hourly +deriving DecidableEq, Repr, Inhabited + +def Schedule.wire : Schedule → String + | .hourly => "hourly" + +def Schedule.wireValues : List (String × Schedule) := [ + ("hourly", .hourly)] + +def Schedule.ofWire (text : String) : Except String Schedule := + match List.find? (·.1 == text) Schedule.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Schedule has no value {text}" + +instance : Key Schedule := ⟨Schedule.wire, Schedule.ofWire⟩ + +instance : Shape Schedule where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Schedule.ofWire text + | _ => .error "expected a string" + +/-- Describes the recurring schedule for a Scheduled Instance. -/ +structure ScheduledInstanceRecurrence where + /-- The frequency ( Daily , Weekly , or Monthly ). -/ + frequency : Option String := none + /-- The interval quantity. -/ + interval : Option Int := none + /-- The days. -/ + occurrenceDaySet : Option (List Int) := none + /-- Indicates whether the occurrence is relative to the end of the specified week or month. -/ + occurrenceRelativeToEnd : Option Bool := none + /-- The unit for occurrenceDaySet ( DayOfWeek or DayOfMonth ). -/ + occurrenceUnit : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ScheduledInstanceRecurrence where + schema := .struct "ScheduledInstanceRecurrence" [({ name := "Frequency", xmlName := some "frequency", queryName := some "Frequency" }, .string), + ({ name := "Interval", xmlName := some "interval", queryName := some "Interval" }, .int), + ({ name := "OccurrenceDaySet", xmlName := some "occurrenceDaySet", queryName := some "OccurrenceDaySet" }, (.list .int "item")), + ({ name := "OccurrenceRelativeToEnd", xmlName := some "occurrenceRelativeToEnd", queryName := some "OccurrenceRelativeToEnd" }, .bool), + ({ name := "OccurrenceUnit", xmlName := some "occurrenceUnit", queryName := some "OccurrenceUnit" }, .string)] + toValue x := record [putOpt "Frequency" x.frequency, putOpt "Interval" x.interval, putOpt "OccurrenceDaySet" x.occurrenceDaySet, putOpt "OccurrenceRelativeToEnd" x.occurrenceRelativeToEnd, putOpt "OccurrenceUnit" x.occurrenceUnit] + ofValue v := do + let frequency ← v.opt "Frequency" + let interval ← v.opt "Interval" + let occurrenceDaySet ← v.opt "OccurrenceDaySet" + let occurrenceRelativeToEnd ← v.opt "OccurrenceRelativeToEnd" + let occurrenceUnit ← v.opt "OccurrenceUnit" + return { frequency, interval, occurrenceDaySet, occurrenceRelativeToEnd, occurrenceUnit } + +/-- Describes the recurring schedule for a Scheduled Instance. -/ +structure ScheduledInstanceRecurrenceRequest where + /-- The frequency ( Daily , Weekly , or Monthly ). -/ + frequency : Option String := none + /-- The interval quantity. -/ + interval : Option Int := none + /-- The days. -/ + occurrenceDays : Option (List Int) := none + /-- Indicates whether the occurrence is relative to the end of the specified week or month. -/ + occurrenceRelativeToEnd : Option Bool := none + /-- The unit for OccurrenceDays ( DayOfWeek or DayOfMonth ). -/ + occurrenceUnit : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ScheduledInstanceRecurrenceRequest where + schema := .struct "ScheduledInstanceRecurrenceRequest" [({ name := "Frequency" }, .string), + ({ name := "Interval" }, .int), + ({ name := "OccurrenceDays", xmlName := some "OccurrenceDay" }, (.list .int "OccurenceDay")), + ({ name := "OccurrenceRelativeToEnd" }, .bool), + ({ name := "OccurrenceUnit" }, .string)] + toValue x := record [putOpt "Frequency" x.frequency, putOpt "Interval" x.interval, putOpt "OccurrenceDays" x.occurrenceDays, putOpt "OccurrenceRelativeToEnd" x.occurrenceRelativeToEnd, putOpt "OccurrenceUnit" x.occurrenceUnit] + ofValue v := do + let frequency ← v.opt "Frequency" + let interval ← v.opt "Interval" + let occurrenceDays ← v.opt "OccurrenceDays" + let occurrenceRelativeToEnd ← v.opt "OccurrenceRelativeToEnd" + let occurrenceUnit ← v.opt "OccurrenceUnit" + return { frequency, interval, occurrenceDays, occurrenceRelativeToEnd, occurrenceUnit } + +/-- Describes an EBS volume for a Scheduled Instance. -/ +structure ScheduledInstancesEbs where + /-- Indicates whether the volume is deleted on instance termination. -/ + deleteOnTermination : Option Bool := none + /-- Indicates whether the volume is encrypted. -/ + encrypted : Option Bool := none + /-- The number of I/O operations per second (IOPS) to provision for a gp3 , io1 , or io2 volume. -/ + iops : Option Int := none + /-- The ID of the snapshot. -/ + snapshotId : Option String := none + /-- The size of the volume, in GiB. -/ + volumeSize : Option Int := none + /-- The volume type. -/ + volumeType : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ScheduledInstancesEbs where + schema := .struct "ScheduledInstancesEbs" [({ name := "DeleteOnTermination" }, .bool), + ({ name := "Encrypted" }, .bool), + ({ name := "Iops" }, .int), + ({ name := "SnapshotId" }, .string), + ({ name := "VolumeSize" }, .int), + ({ name := "VolumeType" }, .string)] + toValue x := record [putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "Encrypted" x.encrypted, putOpt "Iops" x.iops, putOpt "SnapshotId" x.snapshotId, putOpt "VolumeSize" x.volumeSize, putOpt "VolumeType" x.volumeType] + ofValue v := do + let deleteOnTermination ← v.opt "DeleteOnTermination" + let encrypted ← v.opt "Encrypted" + let iops ← v.opt "Iops" + let snapshotId ← v.opt "SnapshotId" + let volumeSize ← v.opt "VolumeSize" + let volumeType ← v.opt "VolumeType" + return { deleteOnTermination, encrypted, iops, snapshotId, volumeSize, volumeType } + +/-- Describes an IAM instance profile for a Scheduled Instance. -/ +structure ScheduledInstancesIamInstanceProfile where + /-- The Amazon Resource Name (ARN). -/ + arn : Option String := none + /-- The name. -/ + name : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ScheduledInstancesIamInstanceProfile where + schema := .struct "ScheduledInstancesIamInstanceProfile" [({ name := "Arn" }, .string), + ({ name := "Name" }, .string)] + toValue x := record [putOpt "Arn" x.arn, putOpt "Name" x.name] + ofValue v := do + let arn ← v.opt "Arn" + let name ← v.opt "Name" + return { arn, name } + +/-- Describes an IPv6 address. -/ +structure ScheduledInstancesIpv6Address where + /-- The IPv6 address. -/ + ipv6Address : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ScheduledInstancesIpv6Address where + schema := .struct "ScheduledInstancesIpv6Address" [({ name := "Ipv6Address" }, .string)] + toValue x := record [putOpt "Ipv6Address" x.ipv6Address] + ofValue v := do + let ipv6Address ← v.opt "Ipv6Address" + return { ipv6Address } + +/-- Describes whether monitoring is enabled for a Scheduled Instance. -/ +structure ScheduledInstancesMonitoring where + /-- Indicates whether monitoring is enabled. -/ + enabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ScheduledInstancesMonitoring where + schema := .struct "ScheduledInstancesMonitoring" [({ name := "Enabled" }, .bool)] + toValue x := record [putOpt "Enabled" x.enabled] + ofValue v := do + let enabled ← v.opt "Enabled" + return { enabled } + +/-- Describes the placement for a Scheduled Instance. -/ +structure ScheduledInstancesPlacement where + /-- The Availability Zone. -/ + availabilityZone : Option String := none + /-- The name of the placement group. -/ + groupName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ScheduledInstancesPlacement where + schema := .struct "ScheduledInstancesPlacement" [({ name := "AvailabilityZone" }, .string), + ({ name := "GroupName" }, .string)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "GroupName" x.groupName] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let groupName ← v.opt "GroupName" + return { availabilityZone, groupName } + +/-- Describes a private IPv4 address for a Scheduled Instance. -/ +structure ScheduledInstancesPrivateIpAddressConfig where + /-- Indicates whether this is a primary IPv4 address. -/ + primary : Option Bool := none + /-- The IPv4 address. -/ + privateIpAddress : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ScheduledInstancesPrivateIpAddressConfig where + schema := .struct "ScheduledInstancesPrivateIpAddressConfig" [({ name := "Primary" }, .bool), + ({ name := "PrivateIpAddress" }, .string)] + toValue x := record [putOpt "Primary" x.primary, putOpt "PrivateIpAddress" x.privateIpAddress] + ofValue v := do + let primary ← v.opt "Primary" + let privateIpAddress ← v.opt "PrivateIpAddress" + return { primary, privateIpAddress } + +/-- Describes a private IPv4 address for a secondary interface. -/ +structure SecondaryInterfaceIpv4Address where + /-- The private IPv4 address. -/ + privateIpAddress : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SecondaryInterfaceIpv4Address where + schema := .struct "SecondaryInterfaceIpv4Address" [({ name := "PrivateIpAddress", xmlName := some "privateIpAddress", queryName := some "PrivateIpAddress" }, .string)] + toValue x := record [putOpt "PrivateIpAddress" x.privateIpAddress] + ofValue v := do + let privateIpAddress ← v.opt "PrivateIpAddress" + return { privateIpAddress } + +/-- Describes a private IPv4 address specification for a secondary interface. -/ +structure SecondaryInterfacePrivateIpAddressSpecification where + /-- The private IPv4 address. -/ + privateIpAddress : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SecondaryInterfacePrivateIpAddressSpecification where + schema := .struct "SecondaryInterfacePrivateIpAddressSpecification" [({ name := "PrivateIpAddress", xmlName := some "privateIpAddress", queryName := some "PrivateIpAddress" }, .string)] + toValue x := record [putOpt "PrivateIpAddress" x.privateIpAddress] + ofValue v := do + let privateIpAddress ← v.opt "PrivateIpAddress" + return { privateIpAddress } + +/-- Describes a private IPv4 address specification for a secondary interface request. -/ +structure SecondaryInterfacePrivateIpAddressSpecificationRequest where + /-- The private IPv4 address. -/ + privateIpAddress : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SecondaryInterfacePrivateIpAddressSpecificationRequest where + schema := .struct "SecondaryInterfacePrivateIpAddressSpecificationRequest" [({ name := "PrivateIpAddress" }, .string)] + toValue x := record [putOpt "PrivateIpAddress" x.privateIpAddress] + ofValue v := do + let privateIpAddress ← v.opt "PrivateIpAddress" + return { privateIpAddress } + +inductive SecondaryInterfaceStatus where + | available + | in_use +deriving DecidableEq, Repr, Inhabited + +def SecondaryInterfaceStatus.wire : SecondaryInterfaceStatus → String + | .available => "available" + | .in_use => "in-use" + +def SecondaryInterfaceStatus.wireValues : List (String × SecondaryInterfaceStatus) := [ + ("available", .available), + ("in-use", .in_use)] + +def SecondaryInterfaceStatus.ofWire (text : String) : Except String SecondaryInterfaceStatus := + match List.find? (·.1 == text) SecondaryInterfaceStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SecondaryInterfaceStatus has no value {text}" + +instance : Key SecondaryInterfaceStatus := ⟨SecondaryInterfaceStatus.wire, SecondaryInterfaceStatus.ofWire⟩ + +instance : Shape SecondaryInterfaceStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SecondaryInterfaceStatus.ofWire text + | _ => .error "expected a string" + +inductive SecondaryInterfaceType where + | secondary +deriving DecidableEq, Repr, Inhabited + +def SecondaryInterfaceType.wire : SecondaryInterfaceType → String + | .secondary => "secondary" + +def SecondaryInterfaceType.wireValues : List (String × SecondaryInterfaceType) := [ + ("secondary", .secondary)] + +def SecondaryInterfaceType.ofWire (text : String) : Except String SecondaryInterfaceType := + match List.find? (·.1 == text) SecondaryInterfaceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SecondaryInterfaceType has no value {text}" + +instance : Key SecondaryInterfaceType := ⟨SecondaryInterfaceType.wire, SecondaryInterfaceType.ofWire⟩ + +instance : Shape SecondaryInterfaceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SecondaryInterfaceType.ofWire text + | _ => .error "expected a string" + +inductive SecondaryNetworkCidrBlockAssociationState where + | associated + | associating + | association_failed + | disassociated + | disassociating + | disassociation_failed +deriving DecidableEq, Repr, Inhabited + +def SecondaryNetworkCidrBlockAssociationState.wire : SecondaryNetworkCidrBlockAssociationState → String + | .associated => "associated" + | .associating => "associating" + | .association_failed => "association-failed" + | .disassociated => "disassociated" + | .disassociating => "disassociating" + | .disassociation_failed => "disassociation-failed" + +def SecondaryNetworkCidrBlockAssociationState.wireValues : List (String × SecondaryNetworkCidrBlockAssociationState) := [ + ("associated", .associated), + ("associating", .associating), + ("association-failed", .association_failed), + ("disassociated", .disassociated), + ("disassociating", .disassociating), + ("disassociation-failed", .disassociation_failed)] + +def SecondaryNetworkCidrBlockAssociationState.ofWire (text : String) : Except String SecondaryNetworkCidrBlockAssociationState := + match List.find? (·.1 == text) SecondaryNetworkCidrBlockAssociationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SecondaryNetworkCidrBlockAssociationState has no value {text}" + +instance : Key SecondaryNetworkCidrBlockAssociationState := ⟨SecondaryNetworkCidrBlockAssociationState.wire, SecondaryNetworkCidrBlockAssociationState.ofWire⟩ + +instance : Shape SecondaryNetworkCidrBlockAssociationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SecondaryNetworkCidrBlockAssociationState.ofWire text + | _ => .error "expected a string" + +inductive SecondaryNetworkState where + | create_complete + | create_failed + | create_in_progress + | delete_complete + | delete_failed + | delete_in_progress +deriving DecidableEq, Repr, Inhabited + +def SecondaryNetworkState.wire : SecondaryNetworkState → String + | .create_complete => "create-complete" + | .create_failed => "create-failed" + | .create_in_progress => "create-in-progress" + | .delete_complete => "delete-complete" + | .delete_failed => "delete-failed" + | .delete_in_progress => "delete-in-progress" + +def SecondaryNetworkState.wireValues : List (String × SecondaryNetworkState) := [ + ("create-complete", .create_complete), + ("create-failed", .create_failed), + ("create-in-progress", .create_in_progress), + ("delete-complete", .delete_complete), + ("delete-failed", .delete_failed), + ("delete-in-progress", .delete_in_progress)] + +def SecondaryNetworkState.ofWire (text : String) : Except String SecondaryNetworkState := + match List.find? (·.1 == text) SecondaryNetworkState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SecondaryNetworkState has no value {text}" + +instance : Key SecondaryNetworkState := ⟨SecondaryNetworkState.wire, SecondaryNetworkState.ofWire⟩ + +instance : Shape SecondaryNetworkState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SecondaryNetworkState.ofWire text + | _ => .error "expected a string" + +inductive SecondaryNetworkType where + | rdma +deriving DecidableEq, Repr, Inhabited + +def SecondaryNetworkType.wire : SecondaryNetworkType → String + | .rdma => "rdma" + +def SecondaryNetworkType.wireValues : List (String × SecondaryNetworkType) := [ + ("rdma", .rdma)] + +def SecondaryNetworkType.ofWire (text : String) : Except String SecondaryNetworkType := + match List.find? (·.1 == text) SecondaryNetworkType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SecondaryNetworkType has no value {text}" + +instance : Key SecondaryNetworkType := ⟨SecondaryNetworkType.wire, SecondaryNetworkType.ofWire⟩ + +instance : Shape SecondaryNetworkType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SecondaryNetworkType.ofWire text + | _ => .error "expected a string" + +inductive SecondarySubnetCidrBlockAssociationState where + | associated + | associating + | association_failed + | disassociated + | disassociating + | disassociation_failed +deriving DecidableEq, Repr, Inhabited + +def SecondarySubnetCidrBlockAssociationState.wire : SecondarySubnetCidrBlockAssociationState → String + | .associated => "associated" + | .associating => "associating" + | .association_failed => "association-failed" + | .disassociated => "disassociated" + | .disassociating => "disassociating" + | .disassociation_failed => "disassociation-failed" + +def SecondarySubnetCidrBlockAssociationState.wireValues : List (String × SecondarySubnetCidrBlockAssociationState) := [ + ("associated", .associated), + ("associating", .associating), + ("association-failed", .association_failed), + ("disassociated", .disassociated), + ("disassociating", .disassociating), + ("disassociation-failed", .disassociation_failed)] + +def SecondarySubnetCidrBlockAssociationState.ofWire (text : String) : Except String SecondarySubnetCidrBlockAssociationState := + match List.find? (·.1 == text) SecondarySubnetCidrBlockAssociationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SecondarySubnetCidrBlockAssociationState has no value {text}" + +instance : Key SecondarySubnetCidrBlockAssociationState := ⟨SecondarySubnetCidrBlockAssociationState.wire, SecondarySubnetCidrBlockAssociationState.ofWire⟩ + +instance : Shape SecondarySubnetCidrBlockAssociationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SecondarySubnetCidrBlockAssociationState.ofWire text + | _ => .error "expected a string" + +inductive SecondarySubnetState where + | create_complete + | create_failed + | create_in_progress + | delete_complete + | delete_failed + | delete_in_progress +deriving DecidableEq, Repr, Inhabited + +def SecondarySubnetState.wire : SecondarySubnetState → String + | .create_complete => "create-complete" + | .create_failed => "create-failed" + | .create_in_progress => "create-in-progress" + | .delete_complete => "delete-complete" + | .delete_failed => "delete-failed" + | .delete_in_progress => "delete-in-progress" + +def SecondarySubnetState.wireValues : List (String × SecondarySubnetState) := [ + ("create-complete", .create_complete), + ("create-failed", .create_failed), + ("create-in-progress", .create_in_progress), + ("delete-complete", .delete_complete), + ("delete-failed", .delete_failed), + ("delete-in-progress", .delete_in_progress)] + +def SecondarySubnetState.ofWire (text : String) : Except String SecondarySubnetState := + match List.find? (·.1 == text) SecondarySubnetState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SecondarySubnetState has no value {text}" + +instance : Key SecondarySubnetState := ⟨SecondarySubnetState.wire, SecondarySubnetState.ofWire⟩ + +instance : Shape SecondarySubnetState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SecondarySubnetState.ofWire text + | _ => .error "expected a string" + +/-- Describes a value for a resource attribute that is a Base64-encoded binary data object. -/ +structure SecureBlobAttributeValue where + /-- The attribute value. -/ + value : Option Blob := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SecureBlobAttributeValue where + schema := .struct "SecureBlobAttributeValue" [({ name := "Value", xmlName := some "value", queryName := some "Value" }, .blob)] + toValue x := record [putOpt "Value" x.value] + ofValue v := do + let value ← v.opt "Value" + return { value } + +/-- Describes a security group. -/ +structure SecurityGroupIdentifier where + /-- The ID of the security group. -/ + groupId : Option String := none + /-- The name of the security group. -/ + groupName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SecurityGroupIdentifier where + schema := .struct "SecurityGroupIdentifier" [({ name := "GroupId", xmlName := some "groupId", queryName := some "GroupId" }, .string), + ({ name := "GroupName", xmlName := some "groupName", queryName := some "GroupName" }, .string)] + toValue x := record [putOpt "GroupId" x.groupId, putOpt "GroupName" x.groupName] + ofValue v := do + let groupId ← v.opt "GroupId" + let groupName ← v.opt "GroupName" + return { groupId, groupName } + +/-- Describes a VPC with a security group that references your security group. -/ +structure SecurityGroupReference where + /-- The ID of your security group. -/ + groupId : Option String := none + /-- The ID of the VPC with the referencing security group. -/ + referencingVpcId : Option String := none + /-- The ID of the transit gateway (if applicable). -/ + transitGatewayId : Option String := none + /-- The ID of the VPC peering connection (if applicable). -/ + vpcPeeringConnectionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SecurityGroupReference where + schema := .struct "SecurityGroupReference" [({ name := "GroupId", xmlName := some "groupId", queryName := some "GroupId" }, .string), + ({ name := "ReferencingVpcId", xmlName := some "referencingVpcId", queryName := some "ReferencingVpcId" }, .string), + ({ name := "TransitGatewayId", xmlName := some "transitGatewayId", queryName := some "TransitGatewayId" }, .string), + ({ name := "VpcPeeringConnectionId", xmlName := some "vpcPeeringConnectionId", queryName := some "VpcPeeringConnectionId" }, .string)] + toValue x := record [putOpt "GroupId" x.groupId, putOpt "ReferencingVpcId" x.referencingVpcId, putOpt "TransitGatewayId" x.transitGatewayId, putOpt "VpcPeeringConnectionId" x.vpcPeeringConnectionId] + ofValue v := do + let groupId ← v.opt "GroupId" + let referencingVpcId ← v.opt "ReferencingVpcId" + let transitGatewayId ← v.opt "TransitGatewayId" + let vpcPeeringConnectionId ← v.opt "VpcPeeringConnectionId" + return { groupId, referencingVpcId, transitGatewayId, vpcPeeringConnectionId } + +inductive SecurityGroupReferencingSupportValue where + | disable + | enable +deriving DecidableEq, Repr, Inhabited + +def SecurityGroupReferencingSupportValue.wire : SecurityGroupReferencingSupportValue → String + | .disable => "disable" + | .enable => "enable" + +def SecurityGroupReferencingSupportValue.wireValues : List (String × SecurityGroupReferencingSupportValue) := [ + ("disable", .disable), + ("enable", .enable)] + +def SecurityGroupReferencingSupportValue.ofWire (text : String) : Except String SecurityGroupReferencingSupportValue := + match List.find? (·.1 == text) SecurityGroupReferencingSupportValue.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SecurityGroupReferencingSupportValue has no value {text}" + +instance : Key SecurityGroupReferencingSupportValue := ⟨SecurityGroupReferencingSupportValue.wire, SecurityGroupReferencingSupportValue.ofWire⟩ + +instance : Shape SecurityGroupReferencingSupportValue where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SecurityGroupReferencingSupportValue.ofWire text + | _ => .error "expected a string" + +/-- Describes the description of a security group rule. -/ +structure SecurityGroupRuleDescription where + /-- The description of the security group rule. -/ + description : Option String := none + /-- The ID of the security group rule. -/ + securityGroupRuleId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SecurityGroupRuleDescription where + schema := .struct "SecurityGroupRuleDescription" [({ name := "Description" }, .string), + ({ name := "SecurityGroupRuleId" }, .string)] + toValue x := record [putOpt "Description" x.description, putOpt "SecurityGroupRuleId" x.securityGroupRuleId] + ofValue v := do + let description ← v.opt "Description" + let securityGroupRuleId ← v.opt "SecurityGroupRuleId" + return { description, securityGroupRuleId } + +/-- Describes a security group rule. -/ +structure SecurityGroupRuleRequest where + /-- The IPv4 CIDR range. -/ + cidrIpv4 : Option String := none + /-- The IPv6 CIDR range. -/ + cidrIpv6 : Option String := none + /-- The description of the security group rule. -/ + description : Option String := none + /-- If the protocol is TCP or UDP, this is the start of the port range. -/ + fromPort : Option Int := none + /-- The IP protocol name ( tcp , udp , icmp , icmpv6 ) or number (see Protocol Numbers ). -/ + ipProtocol : Option String := none + /-- The ID of the prefix list. -/ + prefixListId : Option String := none + /-- The ID of the security group that is referenced in the security group rule. -/ + referencedGroupId : Option String := none + /-- If the protocol is TCP or UDP, this is the end of the port range. -/ + toPort : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SecurityGroupRuleRequest where + schema := .struct "SecurityGroupRuleRequest" [({ name := "CidrIpv4" }, .string), + ({ name := "CidrIpv6" }, .string), + ({ name := "Description" }, .string), + ({ name := "FromPort" }, .int), + ({ name := "IpProtocol" }, .string), + ({ name := "PrefixListId" }, .string), + ({ name := "ReferencedGroupId" }, .string), + ({ name := "ToPort" }, .int)] + toValue x := record [putOpt "CidrIpv4" x.cidrIpv4, putOpt "CidrIpv6" x.cidrIpv6, putOpt "Description" x.description, putOpt "FromPort" x.fromPort, putOpt "IpProtocol" x.ipProtocol, putOpt "PrefixListId" x.prefixListId, putOpt "ReferencedGroupId" x.referencedGroupId, putOpt "ToPort" x.toPort] + ofValue v := do + let cidrIpv4 ← v.opt "CidrIpv4" + let cidrIpv6 ← v.opt "CidrIpv6" + let description ← v.opt "Description" + let fromPort ← v.opt "FromPort" + let ipProtocol ← v.opt "IpProtocol" + let prefixListId ← v.opt "PrefixListId" + let referencedGroupId ← v.opt "ReferencedGroupId" + let toPort ← v.opt "ToPort" + return { cidrIpv4, cidrIpv6, description, fromPort, ipProtocol, prefixListId, referencedGroupId, toPort } + +inductive SecurityGroupVpcAssociationState where + | associated + | associating + | association_failed + | disassociated + | disassociating + | disassociation_failed +deriving DecidableEq, Repr, Inhabited + +def SecurityGroupVpcAssociationState.wire : SecurityGroupVpcAssociationState → String + | .associated => "associated" + | .associating => "associating" + | .association_failed => "association-failed" + | .disassociated => "disassociated" + | .disassociating => "disassociating" + | .disassociation_failed => "disassociation-failed" + +def SecurityGroupVpcAssociationState.wireValues : List (String × SecurityGroupVpcAssociationState) := [ + ("associated", .associated), + ("associating", .associating), + ("association-failed", .association_failed), + ("disassociated", .disassociated), + ("disassociating", .disassociating), + ("disassociation-failed", .disassociation_failed)] + +def SecurityGroupVpcAssociationState.ofWire (text : String) : Except String SecurityGroupVpcAssociationState := + match List.find? (·.1 == text) SecurityGroupVpcAssociationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SecurityGroupVpcAssociationState has no value {text}" + +instance : Key SecurityGroupVpcAssociationState := ⟨SecurityGroupVpcAssociationState.wire, SecurityGroupVpcAssociationState.ofWire⟩ + +instance : Shape SecurityGroupVpcAssociationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SecurityGroupVpcAssociationState.ofWire text + | _ => .error "expected a string" + +inductive SelfServicePortal where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def SelfServicePortal.wire : SelfServicePortal → String + | .disabled => "disabled" + | .enabled => "enabled" + +def SelfServicePortal.wireValues : List (String × SelfServicePortal) := [ + ("disabled", .disabled), + ("enabled", .enabled)] + +def SelfServicePortal.ofWire (text : String) : Except String SelfServicePortal := + match List.find? (·.1 == text) SelfServicePortal.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SelfServicePortal has no value {text}" + +instance : Key SelfServicePortal := ⟨SelfServicePortal.wire, SelfServicePortal.ofWire⟩ + +instance : Shape SelfServicePortal where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SelfServicePortal.ofWire text + | _ => .error "expected a string" + +structure SendDiagnosticInterruptRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the instance. -/ + instanceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape SendDiagnosticInterruptRequest where + schema := .struct "SendDiagnosticInterruptRequest" [({ name := "DryRun" }, .bool), + ({ name := "InstanceId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceId" x.instanceId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceId ← v.req "InstanceId" + return { dryRun, instanceId } + +inductive ServiceConnectivityType where + | ipv4 + | ipv6 +deriving DecidableEq, Repr, Inhabited + +def ServiceConnectivityType.wire : ServiceConnectivityType → String + | .ipv4 => "ipv4" + | .ipv6 => "ipv6" + +def ServiceConnectivityType.wireValues : List (String × ServiceConnectivityType) := [ + ("ipv4", .ipv4), + ("ipv6", .ipv6)] + +def ServiceConnectivityType.ofWire (text : String) : Except String ServiceConnectivityType := + match List.find? (·.1 == text) ServiceConnectivityType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ServiceConnectivityType has no value {text}" + +instance : Key ServiceConnectivityType := ⟨ServiceConnectivityType.wire, ServiceConnectivityType.ofWire⟩ + +instance : Shape ServiceConnectivityType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ServiceConnectivityType.ofWire text + | _ => .error "expected a string" + +inductive ServiceLinkVirtualInterfaceConfigurationState where + | available + | deleted + | deleting + | pending +deriving DecidableEq, Repr, Inhabited + +def ServiceLinkVirtualInterfaceConfigurationState.wire : ServiceLinkVirtualInterfaceConfigurationState → String + | .available => "available" + | .deleted => "deleted" + | .deleting => "deleting" + | .pending => "pending" + +def ServiceLinkVirtualInterfaceConfigurationState.wireValues : List (String × ServiceLinkVirtualInterfaceConfigurationState) := [ + ("available", .available), + ("deleted", .deleted), + ("deleting", .deleting), + ("pending", .pending)] + +def ServiceLinkVirtualInterfaceConfigurationState.ofWire (text : String) : Except String ServiceLinkVirtualInterfaceConfigurationState := + match List.find? (·.1 == text) ServiceLinkVirtualInterfaceConfigurationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ServiceLinkVirtualInterfaceConfigurationState has no value {text}" + +instance : Key ServiceLinkVirtualInterfaceConfigurationState := ⟨ServiceLinkVirtualInterfaceConfigurationState.wire, ServiceLinkVirtualInterfaceConfigurationState.ofWire⟩ + +instance : Shape ServiceLinkVirtualInterfaceConfigurationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ServiceLinkVirtualInterfaceConfigurationState.ofWire text + | _ => .error "expected a string" + +inductive ServiceManaged where + | alb + | nlb + | rds + | rnat +deriving DecidableEq, Repr, Inhabited + +def ServiceManaged.wire : ServiceManaged → String + | .alb => "alb" + | .nlb => "nlb" + | .rds => "rds" + | .rnat => "rnat" + +def ServiceManaged.wireValues : List (String × ServiceManaged) := [ + ("alb", .alb), + ("nlb", .nlb), + ("rds", .rds), + ("rnat", .rnat)] + +def ServiceManaged.ofWire (text : String) : Except String ServiceManaged := + match List.find? (·.1 == text) ServiceManaged.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ServiceManaged has no value {text}" + +instance : Key ServiceManaged := ⟨ServiceManaged.wire, ServiceManaged.ofWire⟩ + +instance : Shape ServiceManaged where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ServiceManaged.ofWire text + | _ => .error "expected a string" + +inductive ServiceState where + | available + | deleted + | deleting + | failed + | pending +deriving DecidableEq, Repr, Inhabited + +def ServiceState.wire : ServiceState → String + | .available => "Available" + | .deleted => "Deleted" + | .deleting => "Deleting" + | .failed => "Failed" + | .pending => "Pending" + +def ServiceState.wireValues : List (String × ServiceState) := [ + ("Available", .available), + ("Deleted", .deleted), + ("Deleting", .deleting), + ("Failed", .failed), + ("Pending", .pending)] + +def ServiceState.ofWire (text : String) : Except String ServiceState := + match List.find? (·.1 == text) ServiceState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ServiceState has no value {text}" + +instance : Key ServiceState := ⟨ServiceState.wire, ServiceState.ofWire⟩ + +instance : Shape ServiceState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ServiceState.ofWire text + | _ => .error "expected a string" + +inductive ServiceType where + | gateway + | gatewayLoadBalancer + | interface +deriving DecidableEq, Repr, Inhabited + +def ServiceType.wire : ServiceType → String + | .gateway => "Gateway" + | .gatewayLoadBalancer => "GatewayLoadBalancer" + | .interface => "Interface" + +def ServiceType.wireValues : List (String × ServiceType) := [ + ("Gateway", .gateway), + ("GatewayLoadBalancer", .gatewayLoadBalancer), + ("Interface", .interface)] + +def ServiceType.ofWire (text : String) : Except String ServiceType := + match List.find? (·.1 == text) ServiceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ServiceType has no value {text}" + +instance : Key ServiceType := ⟨ServiceType.wire, ServiceType.ofWire⟩ + +instance : Shape ServiceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ServiceType.ofWire text + | _ => .error "expected a string" + +inductive SeverityLabel where + | critical + | high + | informational + | low + | medium +deriving DecidableEq, Repr, Inhabited + +def SeverityLabel.wire : SeverityLabel → String + | .critical => "critical" + | .high => "high" + | .informational => "informational" + | .low => "low" + | .medium => "medium" + +def SeverityLabel.wireValues : List (String × SeverityLabel) := [ + ("critical", .critical), + ("high", .high), + ("informational", .informational), + ("low", .low), + ("medium", .medium)] + +def SeverityLabel.ofWire (text : String) : Except String SeverityLabel := + match List.find? (·.1 == text) SeverityLabel.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SeverityLabel has no value {text}" + +instance : Key SeverityLabel := ⟨SeverityLabel.wire, SeverityLabel.ofWire⟩ + +instance : Shape SeverityLabel where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SeverityLabel.ofWire text + | _ => .error "expected a string" + +inductive ShutdownBehavior where + | stop + | terminate +deriving DecidableEq, Repr, Inhabited + +def ShutdownBehavior.wire : ShutdownBehavior → String + | .stop => "stop" + | .terminate => "terminate" + +def ShutdownBehavior.wireValues : List (String × ShutdownBehavior) := [ + ("stop", .stop), + ("terminate", .terminate)] + +def ShutdownBehavior.ofWire (text : String) : Except String ShutdownBehavior := + match List.find? (·.1 == text) ShutdownBehavior.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ShutdownBehavior has no value {text}" + +instance : Key ShutdownBehavior := ⟨ShutdownBehavior.wire, ShutdownBehavior.ofWire⟩ + +instance : Shape ShutdownBehavior where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ShutdownBehavior.ofWire text + | _ => .error "expected a string" + +/-- Describes the time period for a Scheduled Instance to start its first schedule. -/ +structure SlotDateTimeRangeRequest where + /-- The earliest date and time, in UTC, for the Scheduled Instance to start. -/ + earliestTime : Timestamp + /-- The latest date and time, in UTC, for the Scheduled Instance to start. -/ + latestTime : Timestamp +deriving DecidableEq, Repr, Inhabited + +instance : Shape SlotDateTimeRangeRequest where + schema := .struct "SlotDateTimeRangeRequest" [({ name := "EarliestTime", required := true }, (.time none)), + ({ name := "LatestTime", required := true }, (.time none))] + toValue x := record [put "EarliestTime" x.earliestTime, put "LatestTime" x.latestTime] + ofValue v := do + let earliestTime ← v.req "EarliestTime" + let latestTime ← v.req "LatestTime" + return { earliestTime, latestTime } + +/-- Describes the time period for a Scheduled Instance to start its first schedule. -/ +structure SlotStartTimeRangeRequest where + /-- The earliest date and time, in UTC, for the Scheduled Instance to start. -/ + earliestTime : Option Timestamp := none + /-- The latest date and time, in UTC, for the Scheduled Instance to start. -/ + latestTime : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SlotStartTimeRangeRequest where + schema := .struct "SlotStartTimeRangeRequest" [({ name := "EarliestTime" }, (.time none)), + ({ name := "LatestTime" }, (.time none))] + toValue x := record [putOpt "EarliestTime" x.earliestTime, putOpt "LatestTime" x.latestTime] + ofValue v := do + let earliestTime ← v.opt "EarliestTime" + let latestTime ← v.opt "LatestTime" + return { earliestTime, latestTime } + +inductive SnapshotAttributeName where + | createVolumePermission + | productCodes +deriving DecidableEq, Repr, Inhabited + +def SnapshotAttributeName.wire : SnapshotAttributeName → String + | .createVolumePermission => "createVolumePermission" + | .productCodes => "productCodes" + +def SnapshotAttributeName.wireValues : List (String × SnapshotAttributeName) := [ + ("createVolumePermission", .createVolumePermission), + ("productCodes", .productCodes)] + +def SnapshotAttributeName.ofWire (text : String) : Except String SnapshotAttributeName := + match List.find? (·.1 == text) SnapshotAttributeName.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SnapshotAttributeName has no value {text}" + +instance : Key SnapshotAttributeName := ⟨SnapshotAttributeName.wire, SnapshotAttributeName.ofWire⟩ + +instance : Shape SnapshotAttributeName where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SnapshotAttributeName.ofWire text + | _ => .error "expected a string" + +inductive SnapshotBlockPublicAccessState where + | block_all_sharing + | block_new_sharing + | unblocked +deriving DecidableEq, Repr, Inhabited + +def SnapshotBlockPublicAccessState.wire : SnapshotBlockPublicAccessState → String + | .block_all_sharing => "block-all-sharing" + | .block_new_sharing => "block-new-sharing" + | .unblocked => "unblocked" + +def SnapshotBlockPublicAccessState.wireValues : List (String × SnapshotBlockPublicAccessState) := [ + ("block-all-sharing", .block_all_sharing), + ("block-new-sharing", .block_new_sharing), + ("unblocked", .unblocked)] + +def SnapshotBlockPublicAccessState.ofWire (text : String) : Except String SnapshotBlockPublicAccessState := + match List.find? (·.1 == text) SnapshotBlockPublicAccessState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SnapshotBlockPublicAccessState has no value {text}" + +instance : Key SnapshotBlockPublicAccessState := ⟨SnapshotBlockPublicAccessState.wire, SnapshotBlockPublicAccessState.ofWire⟩ + +instance : Shape SnapshotBlockPublicAccessState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SnapshotBlockPublicAccessState.ofWire text + | _ => .error "expected a string" + +inductive SnapshotLocationEnum where + | «local» + | regional +deriving DecidableEq, Repr, Inhabited + +def SnapshotLocationEnum.wire : SnapshotLocationEnum → String + | .«local» => "local" + | .regional => "regional" + +def SnapshotLocationEnum.wireValues : List (String × SnapshotLocationEnum) := [ + ("local", .«local»), + ("regional", .regional)] + +def SnapshotLocationEnum.ofWire (text : String) : Except String SnapshotLocationEnum := + match List.find? (·.1 == text) SnapshotLocationEnum.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SnapshotLocationEnum has no value {text}" + +instance : Key SnapshotLocationEnum := ⟨SnapshotLocationEnum.wire, SnapshotLocationEnum.ofWire⟩ + +instance : Shape SnapshotLocationEnum where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SnapshotLocationEnum.ofWire text + | _ => .error "expected a string" + +/-- Information about a snapshot that is currently in the Recycle Bin. -/ +structure SnapshotRecycleBinInfo where + /-- The description for the snapshot. -/ + description : Option String := none + /-- The date and time when the snapshot entered the Recycle Bin. -/ + recycleBinEnterTime : Option Timestamp := none + /-- The date and time when the snapshot is to be permanently deleted from the Recycle Bin. -/ + recycleBinExitTime : Option Timestamp := none + /-- The ID of the snapshot. -/ + snapshotId : Option String := none + /-- The ID of the volume from which the snapshot was created. -/ + volumeId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SnapshotRecycleBinInfo where + schema := .struct "SnapshotRecycleBinInfo" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "RecycleBinEnterTime", xmlName := some "recycleBinEnterTime", queryName := some "RecycleBinEnterTime" }, (.time none)), + ({ name := "RecycleBinExitTime", xmlName := some "recycleBinExitTime", queryName := some "RecycleBinExitTime" }, (.time none)), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string), + ({ name := "VolumeId", xmlName := some "volumeId", queryName := some "VolumeId" }, .string)] + toValue x := record [putOpt "Description" x.description, putOpt "RecycleBinEnterTime" x.recycleBinEnterTime, putOpt "RecycleBinExitTime" x.recycleBinExitTime, putOpt "SnapshotId" x.snapshotId, putOpt "VolumeId" x.volumeId] + ofValue v := do + let description ← v.opt "Description" + let recycleBinEnterTime ← v.opt "RecycleBinEnterTime" + let recycleBinExitTime ← v.opt "RecycleBinExitTime" + let snapshotId ← v.opt "SnapshotId" + let volumeId ← v.opt "VolumeId" + return { description, recycleBinEnterTime, recycleBinExitTime, snapshotId, volumeId } + +inductive SnapshotReturnCodes where + | erroR_CODE_CLIENT_ERROR + | erroR_CODE_INTERNAL_ERROR + | erroR_MISSING_PERMISSIONS + | success + | warN_SKIPPED +deriving DecidableEq, Repr, Inhabited + +def SnapshotReturnCodes.wire : SnapshotReturnCodes → String + | .erroR_CODE_CLIENT_ERROR => "client-error" + | .erroR_CODE_INTERNAL_ERROR => "internal-error" + | .erroR_MISSING_PERMISSIONS => "missing-permissions" + | .success => "success" + | .warN_SKIPPED => "skipped" + +def SnapshotReturnCodes.wireValues : List (String × SnapshotReturnCodes) := [ + ("client-error", .erroR_CODE_CLIENT_ERROR), + ("internal-error", .erroR_CODE_INTERNAL_ERROR), + ("missing-permissions", .erroR_MISSING_PERMISSIONS), + ("success", .success), + ("skipped", .warN_SKIPPED)] + +def SnapshotReturnCodes.ofWire (text : String) : Except String SnapshotReturnCodes := + match List.find? (·.1 == text) SnapshotReturnCodes.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SnapshotReturnCodes has no value {text}" + +instance : Key SnapshotReturnCodes := ⟨SnapshotReturnCodes.wire, SnapshotReturnCodes.ofWire⟩ + +instance : Shape SnapshotReturnCodes where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SnapshotReturnCodes.ofWire text + | _ => .error "expected a string" + +inductive SnapshotState where + | completed + | error + | pending + | recoverable + | recovering +deriving DecidableEq, Repr, Inhabited + +def SnapshotState.wire : SnapshotState → String + | .completed => "completed" + | .error => "error" + | .pending => "pending" + | .recoverable => "recoverable" + | .recovering => "recovering" + +def SnapshotState.wireValues : List (String × SnapshotState) := [ + ("completed", .completed), + ("error", .error), + ("pending", .pending), + ("recoverable", .recoverable), + ("recovering", .recovering)] + +def SnapshotState.ofWire (text : String) : Except String SnapshotState := + match List.find? (·.1 == text) SnapshotState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SnapshotState has no value {text}" + +instance : Key SnapshotState := ⟨SnapshotState.wire, SnapshotState.ofWire⟩ + +instance : Shape SnapshotState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SnapshotState.ofWire text + | _ => .error "expected a string" + +inductive SpotAllocationStrategy where + | capacitY_OPTIMIZED + | capacitY_OPTIMIZED_PRIORITIZED + | diversified + | lowesT_PRICE + | pricE_CAPACITY_OPTIMIZED +deriving DecidableEq, Repr, Inhabited + +def SpotAllocationStrategy.wire : SpotAllocationStrategy → String + | .capacitY_OPTIMIZED => "capacity-optimized" + | .capacitY_OPTIMIZED_PRIORITIZED => "capacity-optimized-prioritized" + | .diversified => "diversified" + | .lowesT_PRICE => "lowest-price" + | .pricE_CAPACITY_OPTIMIZED => "price-capacity-optimized" + +def SpotAllocationStrategy.wireValues : List (String × SpotAllocationStrategy) := [ + ("capacity-optimized", .capacitY_OPTIMIZED), + ("capacity-optimized-prioritized", .capacitY_OPTIMIZED_PRIORITIZED), + ("diversified", .diversified), + ("lowest-price", .lowesT_PRICE), + ("price-capacity-optimized", .pricE_CAPACITY_OPTIMIZED)] + +def SpotAllocationStrategy.ofWire (text : String) : Except String SpotAllocationStrategy := + match List.find? (·.1 == text) SpotAllocationStrategy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SpotAllocationStrategy has no value {text}" + +instance : Key SpotAllocationStrategy := ⟨SpotAllocationStrategy.wire, SpotAllocationStrategy.ofWire⟩ + +instance : Shape SpotAllocationStrategy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SpotAllocationStrategy.ofWire text + | _ => .error "expected a string" + +/-- Describes whether monitoring is enabled. -/ +structure SpotFleetMonitoring where + /-- Enables monitoring for the instance. -/ + enabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SpotFleetMonitoring where + schema := .struct "SpotFleetMonitoring" [({ name := "Enabled", xmlName := some "enabled", queryName := some "Enabled" }, .bool)] + toValue x := record [putOpt "Enabled" x.enabled] + ofValue v := do + let enabled ← v.opt "Enabled" + return { enabled } + +inductive SpotInstanceInterruptionBehavior where + | hibernate + | stop + | terminate +deriving DecidableEq, Repr, Inhabited + +def SpotInstanceInterruptionBehavior.wire : SpotInstanceInterruptionBehavior → String + | .hibernate => "hibernate" + | .stop => "stop" + | .terminate => "terminate" + +def SpotInstanceInterruptionBehavior.wireValues : List (String × SpotInstanceInterruptionBehavior) := [ + ("hibernate", .hibernate), + ("stop", .stop), + ("terminate", .terminate)] + +def SpotInstanceInterruptionBehavior.ofWire (text : String) : Except String SpotInstanceInterruptionBehavior := + match List.find? (·.1 == text) SpotInstanceInterruptionBehavior.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SpotInstanceInterruptionBehavior has no value {text}" + +instance : Key SpotInstanceInterruptionBehavior := ⟨SpotInstanceInterruptionBehavior.wire, SpotInstanceInterruptionBehavior.ofWire⟩ + +instance : Shape SpotInstanceInterruptionBehavior where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SpotInstanceInterruptionBehavior.ofWire text + | _ => .error "expected a string" + +inductive SpotInstanceState where + | active + | cancelled + | closed + | disabled + | failed + | «open» +deriving DecidableEq, Repr, Inhabited + +def SpotInstanceState.wire : SpotInstanceState → String + | .active => "active" + | .cancelled => "cancelled" + | .closed => "closed" + | .disabled => "disabled" + | .failed => "failed" + | .«open» => "open" + +def SpotInstanceState.wireValues : List (String × SpotInstanceState) := [ + ("active", .active), + ("cancelled", .cancelled), + ("closed", .closed), + ("disabled", .disabled), + ("failed", .failed), + ("open", .«open»)] + +def SpotInstanceState.ofWire (text : String) : Except String SpotInstanceState := + match List.find? (·.1 == text) SpotInstanceState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SpotInstanceState has no value {text}" + +instance : Key SpotInstanceState := ⟨SpotInstanceState.wire, SpotInstanceState.ofWire⟩ + +instance : Shape SpotInstanceState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SpotInstanceState.ofWire text + | _ => .error "expected a string" + +/-- Describes a Spot Instance state change. -/ +structure SpotInstanceStateFault where + /-- The reason code for the Spot Instance state change. -/ + code : Option String := none + /-- The message for the Spot Instance state change. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SpotInstanceStateFault where + schema := .struct "SpotInstanceStateFault" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, .string), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +/-- Describes the status of a Spot Instance request. -/ +structure SpotInstanceStatus where + /-- The status code. -/ + code : Option String := none + /-- The description for the status code. -/ + message : Option String := none + /-- The date and time of the most recent status update, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). -/ + updateTime : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SpotInstanceStatus where + schema := .struct "SpotInstanceStatus" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, .string), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string), + ({ name := "UpdateTime", xmlName := some "updateTime", queryName := some "UpdateTime" }, (.time none))] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message, putOpt "UpdateTime" x.updateTime] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + let updateTime ← v.opt "UpdateTime" + return { code, message, updateTime } + +inductive SpotInstanceType where + | one_time + | persistent +deriving DecidableEq, Repr, Inhabited + +def SpotInstanceType.wire : SpotInstanceType → String + | .one_time => "one-time" + | .persistent => "persistent" + +def SpotInstanceType.wireValues : List (String × SpotInstanceType) := [ + ("one-time", .one_time), + ("persistent", .persistent)] + +def SpotInstanceType.ofWire (text : String) : Except String SpotInstanceType := + match List.find? (·.1 == text) SpotInstanceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SpotInstanceType has no value {text}" + +instance : Key SpotInstanceType := ⟨SpotInstanceType.wire, SpotInstanceType.ofWire⟩ + +instance : Shape SpotInstanceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SpotInstanceType.ofWire text + | _ => .error "expected a string" + +/-- The Spot placement score for this Region or Availability Zone. -/ +structure SpotPlacementScore where + /-- The Availability Zone. -/ + availabilityZoneId : Option String := none + /-- The Region. -/ + region : Option String := none + /-- The placement score, on a scale from 1 to 10 . -/ + score : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SpotPlacementScore where + schema := .struct "SpotPlacementScore" [({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "Region", xmlName := some "region", queryName := some "Region" }, .string), + ({ name := "Score", xmlName := some "score", queryName := some "Score" }, .int)] + toValue x := record [putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "Region" x.region, putOpt "Score" x.score] + ofValue v := do + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let region ← v.opt "Region" + let score ← v.opt "Score" + return { availabilityZoneId, region, score } + +inductive SpreadLevel where + | host + | rack +deriving DecidableEq, Repr, Inhabited + +def SpreadLevel.wire : SpreadLevel → String + | .host => "host" + | .rack => "rack" + +def SpreadLevel.wireValues : List (String × SpreadLevel) := [ + ("host", .host), + ("rack", .rack)] + +def SpreadLevel.ofWire (text : String) : Except String SpreadLevel := + match List.find? (·.1 == text) SpreadLevel.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SpreadLevel has no value {text}" + +instance : Key SpreadLevel := ⟨SpreadLevel.wire, SpreadLevel.ofWire⟩ + +instance : Shape SpreadLevel where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SpreadLevel.ofWire text + | _ => .error "expected a string" + +inductive SqlServerLicenseUsage where + | full + | waived +deriving DecidableEq, Repr, Inhabited + +def SqlServerLicenseUsage.wire : SqlServerLicenseUsage → String + | .full => "full" + | .waived => "waived" + +def SqlServerLicenseUsage.wireValues : List (String × SqlServerLicenseUsage) := [ + ("full", .full), + ("waived", .waived)] + +def SqlServerLicenseUsage.ofWire (text : String) : Except String SqlServerLicenseUsage := + match List.find? (·.1 == text) SqlServerLicenseUsage.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SqlServerLicenseUsage has no value {text}" + +instance : Key SqlServerLicenseUsage := ⟨SqlServerLicenseUsage.wire, SqlServerLicenseUsage.ofWire⟩ + +instance : Shape SqlServerLicenseUsage where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SqlServerLicenseUsage.ofWire text + | _ => .error "expected a string" + +structure StartDeclarativePoliciesReportResult where + /-- The ID of the report. -/ + reportId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StartDeclarativePoliciesReportResult where + schema := .struct "StartDeclarativePoliciesReportResult" [({ name := "ReportId", xmlName := some "reportId", queryName := some "ReportId" }, .string)] + toValue x := record [putOpt "ReportId" x.reportId] + ofValue v := do + let reportId ← v.opt "ReportId" + return { reportId } + +structure StartInstancesRequest where + /-- Reserved. -/ + additionalInfo : Option String := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the instances. -/ + instanceIds : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape StartInstancesRequest where + schema := .struct "StartInstancesRequest" [({ name := "AdditionalInfo", xmlName := some "additionalInfo", queryName := some "AdditionalInfo" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "InstanceIds", required := true, xmlName := some "InstanceId" }, (.list .string "InstanceId"))] + toValue x := record [putOpt "AdditionalInfo" x.additionalInfo, putOpt "DryRun" x.dryRun, put "InstanceIds" x.instanceIds] + ofValue v := do + let additionalInfo ← v.opt "AdditionalInfo" + let dryRun ← v.opt "DryRun" + let instanceIds ← v.req "InstanceIds" + return { additionalInfo, dryRun, instanceIds } + +structure StartVpcEndpointServicePrivateDnsVerificationRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the endpoint service. -/ + serviceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape StartVpcEndpointServicePrivateDnsVerificationRequest where + schema := .struct "StartVpcEndpointServicePrivateDnsVerificationRequest" [({ name := "DryRun" }, .bool), + ({ name := "ServiceId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "ServiceId" x.serviceId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let serviceId ← v.req "ServiceId" + return { dryRun, serviceId } + +structure StartVpcEndpointServicePrivateDnsVerificationResult where + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + returnValue : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StartVpcEndpointServicePrivateDnsVerificationResult where + schema := .struct "StartVpcEndpointServicePrivateDnsVerificationResult" [({ name := "ReturnValue", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "ReturnValue" x.returnValue] + ofValue v := do + let returnValue ← v.opt "ReturnValue" + return { returnValue } + +inductive State where + | available + | deleted + | deleting + | expired + | failed + | «partial» + | pending + | pendingAcceptance + | rejected +deriving DecidableEq, Repr, Inhabited + +def State.wire : State → String + | .available => "Available" + | .deleted => "Deleted" + | .deleting => "Deleting" + | .expired => "Expired" + | .failed => "Failed" + | .«partial» => "Partial" + | .pending => "Pending" + | .pendingAcceptance => "PendingAcceptance" + | .rejected => "Rejected" + +def State.wireValues : List (String × State) := [ + ("Available", .available), + ("Deleted", .deleted), + ("Deleting", .deleting), + ("Expired", .expired), + ("Failed", .failed), + ("Partial", .«partial»), + ("Pending", .pending), + ("PendingAcceptance", .pendingAcceptance), + ("Rejected", .rejected)] + +def State.ofWire (text : String) : Except String State := + match List.find? (·.1 == text) State.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"State has no value {text}" + +instance : Key State := ⟨State.wire, State.ofWire⟩ + +instance : Shape State where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => State.ofWire text + | _ => .error "expected a string" + +/-- Describes a state change. -/ +structure StateReason where + /-- The reason code for the state change. -/ + code : Option String := none + /-- The message for the state change. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StateReason where + schema := .struct "StateReason" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, .string), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +inductive StaticSourcesSupportValue where + | disable + | enable +deriving DecidableEq, Repr, Inhabited + +def StaticSourcesSupportValue.wire : StaticSourcesSupportValue → String + | .disable => "disable" + | .enable => "enable" + +def StaticSourcesSupportValue.wireValues : List (String × StaticSourcesSupportValue) := [ + ("disable", .disable), + ("enable", .enable)] + +def StaticSourcesSupportValue.ofWire (text : String) : Except String StaticSourcesSupportValue := + match List.find? (·.1 == text) StaticSourcesSupportValue.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"StaticSourcesSupportValue has no value {text}" + +instance : Key StaticSourcesSupportValue := ⟨StaticSourcesSupportValue.wire, StaticSourcesSupportValue.ofWire⟩ + +instance : Shape StaticSourcesSupportValue where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => StaticSourcesSupportValue.ofWire text + | _ => .error "expected a string" + +inductive StatisticType where + | p50 +deriving DecidableEq, Repr, Inhabited + +def StatisticType.wire : StatisticType → String + | .p50 => "p50" + +def StatisticType.wireValues : List (String × StatisticType) := [ + ("p50", .p50)] + +def StatisticType.ofWire (text : String) : Except String StatisticType := + match List.find? (·.1 == text) StatisticType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"StatisticType has no value {text}" + +instance : Key StatisticType := ⟨StatisticType.wire, StatisticType.ofWire⟩ + +instance : Shape StatisticType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => StatisticType.ofWire text + | _ => .error "expected a string" + +inductive Status where + | inClassic + | inVpc + | moveInProgress +deriving DecidableEq, Repr, Inhabited + +def Status.wire : Status → String + | .inClassic => "InClassic" + | .inVpc => "InVpc" + | .moveInProgress => "MoveInProgress" + +def Status.wireValues : List (String × Status) := [ + ("InClassic", .inClassic), + ("InVpc", .inVpc), + ("MoveInProgress", .moveInProgress)] + +def Status.ofWire (text : String) : Except String Status := + match List.find? (·.1 == text) Status.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Status has no value {text}" + +instance : Key Status := ⟨Status.wire, Status.ofWire⟩ + +instance : Shape Status where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Status.ofWire text + | _ => .error "expected a string" + +inductive StatusName where + | reachability +deriving DecidableEq, Repr, Inhabited + +def StatusName.wire : StatusName → String + | .reachability => "reachability" + +def StatusName.wireValues : List (String × StatusName) := [ + ("reachability", .reachability)] + +def StatusName.ofWire (text : String) : Except String StatusName := + match List.find? (·.1 == text) StatusName.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"StatusName has no value {text}" + +instance : Key StatusName := ⟨StatusName.wire, StatusName.ofWire⟩ + +instance : Shape StatusName where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => StatusName.ofWire text + | _ => .error "expected a string" + +inductive StatusType where + | failed + | initializing + | insufficient_data + | passed +deriving DecidableEq, Repr, Inhabited + +def StatusType.wire : StatusType → String + | .failed => "failed" + | .initializing => "initializing" + | .insufficient_data => "insufficient-data" + | .passed => "passed" + +def StatusType.wireValues : List (String × StatusType) := [ + ("failed", .failed), + ("initializing", .initializing), + ("insufficient-data", .insufficient_data), + ("passed", .passed)] + +def StatusType.ofWire (text : String) : Except String StatusType := + match List.find? (·.1 == text) StatusType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"StatusType has no value {text}" + +instance : Key StatusType := ⟨StatusType.wire, StatusType.ofWire⟩ + +instance : Shape StatusType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => StatusType.ofWire text + | _ => .error "expected a string" + +structure StopInstancesRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Forces the instance to stop. -/ + force : Option Bool := none + /-- Hibernates the instance if the instance was enabled for hibernation at launch. -/ + hibernate : Option Bool := none + /-- The IDs of the instances. -/ + instanceIds : (List String) + /-- Specifies whether to bypass the graceful OS shutdown process when the instance is stopped. -/ + skipOsShutdown : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StopInstancesRequest where + schema := .struct "StopInstancesRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Force", xmlName := some "force", queryName := some "Force" }, .bool), + ({ name := "Hibernate" }, .bool), + ({ name := "InstanceIds", required := true, xmlName := some "InstanceId" }, (.list .string "InstanceId")), + ({ name := "SkipOsShutdown" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Force" x.force, putOpt "Hibernate" x.hibernate, put "InstanceIds" x.instanceIds, putOpt "SkipOsShutdown" x.skipOsShutdown] + ofValue v := do + let dryRun ← v.opt "DryRun" + let force ← v.opt "Force" + let hibernate ← v.opt "Hibernate" + let instanceIds ← v.req "InstanceIds" + let skipOsShutdown ← v.opt "SkipOsShutdown" + return { dryRun, force, hibernate, instanceIds, skipOsShutdown } + +/-- Describes a storage location in Amazon S3. -/ +structure StorageLocation where + /-- The name of the S3 bucket. -/ + bucket : Option String := none + /-- The key. -/ + key : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StorageLocation where + schema := .struct "StorageLocation" [({ name := "Bucket" }, .string), + ({ name := "Key" }, .string)] + toValue x := record [putOpt "Bucket" x.bucket, putOpt "Key" x.key] + ofValue v := do + let bucket ← v.opt "Bucket" + let key ← v.opt "Key" + return { bucket, key } + +inductive StorageTier where + | archive + | standard +deriving DecidableEq, Repr, Inhabited + +def StorageTier.wire : StorageTier → String + | .archive => "archive" + | .standard => "standard" + +def StorageTier.wireValues : List (String × StorageTier) := [ + ("archive", .archive), + ("standard", .standard)] + +def StorageTier.ofWire (text : String) : Except String StorageTier := + match List.find? (·.1 == text) StorageTier.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"StorageTier has no value {text}" + +instance : Key StorageTier := ⟨StorageTier.wire, StorageTier.ofWire⟩ + +instance : Shape StorageTier where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => StorageTier.ofWire text + | _ => .error "expected a string" + +/-- The information about the AMI store task, including the progress of the task. -/ +structure StoreImageTaskResult where + /-- The ID of the AMI that is being stored. -/ + amiId : Option String := none + /-- The name of the Amazon S3 bucket that contains the stored AMI object. -/ + bucket : Option String := none + /-- The progress of the task as a percentage. -/ + progressPercentage : Option Int := none + /-- The name of the stored AMI object in the bucket. -/ + s3objectKey : Option String := none + /-- If the tasks fails, the reason for the failure is returned. -/ + storeTaskFailureReason : Option String := none + /-- The state of the store task ( InProgress , Completed , or Failed ). -/ + storeTaskState : Option String := none + /-- The time the task started. -/ + taskStartTime : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StoreImageTaskResult where + schema := .struct "StoreImageTaskResult" [({ name := "AmiId", xmlName := some "amiId", queryName := some "AmiId" }, .string), + ({ name := "Bucket", xmlName := some "bucket", queryName := some "Bucket" }, .string), + ({ name := "ProgressPercentage", xmlName := some "progressPercentage", queryName := some "ProgressPercentage" }, .int), + ({ name := "S3objectKey", xmlName := some "s3objectKey", queryName := some "S3objectKey" }, .string), + ({ name := "StoreTaskFailureReason", xmlName := some "storeTaskFailureReason", queryName := some "StoreTaskFailureReason" }, .string), + ({ name := "StoreTaskState", xmlName := some "storeTaskState", queryName := some "StoreTaskState" }, .string), + ({ name := "TaskStartTime", xmlName := some "taskStartTime", queryName := some "TaskStartTime" }, (.time none))] + toValue x := record [putOpt "AmiId" x.amiId, putOpt "Bucket" x.bucket, putOpt "ProgressPercentage" x.progressPercentage, putOpt "S3objectKey" x.s3objectKey, putOpt "StoreTaskFailureReason" x.storeTaskFailureReason, putOpt "StoreTaskState" x.storeTaskState, putOpt "TaskStartTime" x.taskStartTime] + ofValue v := do + let amiId ← v.opt "AmiId" + let bucket ← v.opt "Bucket" + let progressPercentage ← v.opt "ProgressPercentage" + let s3objectKey ← v.opt "S3objectKey" + let storeTaskFailureReason ← v.opt "StoreTaskFailureReason" + let storeTaskState ← v.opt "StoreTaskState" + let taskStartTime ← v.opt "TaskStartTime" + return { amiId, bucket, progressPercentage, s3objectKey, storeTaskFailureReason, storeTaskState, taskStartTime } + +inductive SubnetCidrBlockStateCode where + | associated + | associating + | disassociated + | disassociating + | failed + | failing +deriving DecidableEq, Repr, Inhabited + +def SubnetCidrBlockStateCode.wire : SubnetCidrBlockStateCode → String + | .associated => "associated" + | .associating => "associating" + | .disassociated => "disassociated" + | .disassociating => "disassociating" + | .failed => "failed" + | .failing => "failing" + +def SubnetCidrBlockStateCode.wireValues : List (String × SubnetCidrBlockStateCode) := [ + ("associated", .associated), + ("associating", .associating), + ("disassociated", .disassociated), + ("disassociating", .disassociating), + ("failed", .failed), + ("failing", .failing)] + +def SubnetCidrBlockStateCode.ofWire (text : String) : Except String SubnetCidrBlockStateCode := + match List.find? (·.1 == text) SubnetCidrBlockStateCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SubnetCidrBlockStateCode has no value {text}" + +instance : Key SubnetCidrBlockStateCode := ⟨SubnetCidrBlockStateCode.wire, SubnetCidrBlockStateCode.ofWire⟩ + +instance : Shape SubnetCidrBlockStateCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SubnetCidrBlockStateCode.ofWire text + | _ => .error "expected a string" + +inductive SubnetCidrReservationType where + | explicit + | «prefix» +deriving DecidableEq, Repr, Inhabited + +def SubnetCidrReservationType.wire : SubnetCidrReservationType → String + | .explicit => "explicit" + | .«prefix» => "prefix" + +def SubnetCidrReservationType.wireValues : List (String × SubnetCidrReservationType) := [ + ("explicit", .explicit), + ("prefix", .«prefix»)] + +def SubnetCidrReservationType.ofWire (text : String) : Except String SubnetCidrReservationType := + match List.find? (·.1 == text) SubnetCidrReservationType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SubnetCidrReservationType has no value {text}" + +instance : Key SubnetCidrReservationType := ⟨SubnetCidrReservationType.wire, SubnetCidrReservationType.ofWire⟩ + +instance : Shape SubnetCidrReservationType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SubnetCidrReservationType.ofWire text + | _ => .error "expected a string" + +/-- Describes the configuration of a subnet for a VPC endpoint. -/ +structure SubnetConfiguration where + /-- The IPv4 address to assign to the endpoint network interface in the subnet. -/ + ipv4 : Option String := none + /-- The IPv6 address to assign to the endpoint network interface in the subnet. -/ + ipv6 : Option String := none + /-- The ID of the subnet. -/ + subnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SubnetConfiguration where + schema := .struct "SubnetConfiguration" [({ name := "Ipv4" }, .string), + ({ name := "Ipv6" }, .string), + ({ name := "SubnetId" }, .string)] + toValue x := record [putOpt "Ipv4" x.ipv4, putOpt "Ipv6" x.ipv6, putOpt "SubnetId" x.subnetId] + ofValue v := do + let ipv4 ← v.opt "Ipv4" + let ipv6 ← v.opt "Ipv6" + let subnetId ← v.opt "SubnetId" + return { ipv4, ipv6, subnetId } + +/-- Prefixes of the subnet IP. -/ +structure SubnetIpPrefixes where + /-- Array of SubnetIpPrefixes objects. -/ + ipPrefixes : Option (List String) := none + /-- ID of the subnet. -/ + subnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SubnetIpPrefixes where + schema := .struct "SubnetIpPrefixes" [({ name := "IpPrefixes", xmlName := some "ipPrefixSet", queryName := some "IpPrefixSet" }, (.list .string "item")), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string)] + toValue x := record [putOpt "IpPrefixes" x.ipPrefixes, putOpt "SubnetId" x.subnetId] + ofValue v := do + let ipPrefixes ← v.opt "IpPrefixes" + let subnetId ← v.opt "SubnetId" + return { ipPrefixes, subnetId } + +inductive SubnetState where + | available + | failed + | failed_insufficient_capacity + | pending + | unavailable +deriving DecidableEq, Repr, Inhabited + +def SubnetState.wire : SubnetState → String + | .available => "available" + | .failed => "failed" + | .failed_insufficient_capacity => "failed-insufficient-capacity" + | .pending => "pending" + | .unavailable => "unavailable" + +def SubnetState.wireValues : List (String × SubnetState) := [ + ("available", .available), + ("failed", .failed), + ("failed-insufficient-capacity", .failed_insufficient_capacity), + ("pending", .pending), + ("unavailable", .unavailable)] + +def SubnetState.ofWire (text : String) : Except String SubnetState := + match List.find? (·.1 == text) SubnetState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SubnetState has no value {text}" + +instance : Key SubnetState := ⟨SubnetState.wire, SubnetState.ofWire⟩ + +instance : Shape SubnetState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SubnetState.ofWire text + | _ => .error "expected a string" + +/-- Describes a successful application status check association. -/ +structure SuccessfulAssociationResponseObject where + /-- The ID of the application status check. -/ + applicationStatusCheckId : Option String := none + /-- The type of association. -/ + associationType : Option String := none + /-- The association value. -/ + associationValue : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SuccessfulAssociationResponseObject where + schema := .struct "SuccessfulAssociationResponseObject" [({ name := "ApplicationStatusCheckId", xmlName := some "applicationStatusCheckId", queryName := some "ApplicationStatusCheckId" }, .string), + ({ name := "AssociationType", xmlName := some "associationType", queryName := some "AssociationType" }, .string), + ({ name := "AssociationValue", xmlName := some "associationValue", queryName := some "AssociationValue" }, .string)] + toValue x := record [putOpt "ApplicationStatusCheckId" x.applicationStatusCheckId, putOpt "AssociationType" x.associationType, putOpt "AssociationValue" x.associationValue] + ofValue v := do + let applicationStatusCheckId ← v.opt "ApplicationStatusCheckId" + let associationType ← v.opt "AssociationType" + let associationValue ← v.opt "AssociationValue" + return { applicationStatusCheckId, associationType, associationValue } + +/-- Describes the burstable performance instance whose credit option for CPU usage was successfully modified. -/ +structure SuccessfulInstanceCreditSpecificationItem where + /-- The ID of the instance. -/ + instanceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SuccessfulInstanceCreditSpecificationItem where + schema := .struct "SuccessfulInstanceCreditSpecificationItem" [({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string)] + toValue x := record [putOpt "InstanceId" x.instanceId] + ofValue v := do + let instanceId ← v.opt "InstanceId" + return { instanceId } + +/-- Describes a Reserved Instance whose queued purchase was successfully deleted. -/ +structure SuccessfulQueuedPurchaseDeletion where + /-- The ID of the Reserved Instance. -/ + reservedInstancesId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SuccessfulQueuedPurchaseDeletion where + schema := .struct "SuccessfulQueuedPurchaseDeletion" [({ name := "ReservedInstancesId", xmlName := some "reservedInstancesId", queryName := some "ReservedInstancesId" }, .string)] + toValue x := record [putOpt "ReservedInstancesId" x.reservedInstancesId] + ofValue v := do + let reservedInstancesId ← v.opt "ReservedInstancesId" + return { reservedInstancesId } + +/-- Describes a successful application status check suppression. -/ +structure SuccessfulSuppressionResponseObject where + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- The date and time when suppression ends and health checks resume. -/ + resumeAt : Option Timestamp := none + /-- The date and time when suppression started. -/ + suppressAt : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SuccessfulSuppressionResponseObject where + schema := .struct "SuccessfulSuppressionResponseObject" [({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "ResumeAt", xmlName := some "resumeAt", queryName := some "ResumeAt" }, (.time none)), + ({ name := "SuppressAt", xmlName := some "suppressAt", queryName := some "SuppressAt" }, (.time none))] + toValue x := record [putOpt "InstanceId" x.instanceId, putOpt "ResumeAt" x.resumeAt, putOpt "SuppressAt" x.suppressAt] + ofValue v := do + let instanceId ← v.opt "InstanceId" + let resumeAt ← v.opt "ResumeAt" + let suppressAt ← v.opt "SuppressAt" + return { instanceId, resumeAt, suppressAt } + +inductive SummaryStatus where + | impaired + | initializing + | insufficient_data + | not_applicable + | ok +deriving DecidableEq, Repr, Inhabited + +def SummaryStatus.wire : SummaryStatus → String + | .impaired => "impaired" + | .initializing => "initializing" + | .insufficient_data => "insufficient-data" + | .not_applicable => "not-applicable" + | .ok => "ok" + +def SummaryStatus.wireValues : List (String × SummaryStatus) := [ + ("impaired", .impaired), + ("initializing", .initializing), + ("insufficient-data", .insufficient_data), + ("not-applicable", .not_applicable), + ("ok", .ok)] + +def SummaryStatus.ofWire (text : String) : Except String SummaryStatus := + match List.find? (·.1 == text) SummaryStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SummaryStatus has no value {text}" + +instance : Key SummaryStatus := ⟨SummaryStatus.wire, SummaryStatus.ofWire⟩ + +instance : Shape SummaryStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SummaryStatus.ofWire text + | _ => .error "expected a string" + +inductive SupportabilityMarketType where + | oN_DEMAND + | spot +deriving DecidableEq, Repr, Inhabited + +def SupportabilityMarketType.wire : SupportabilityMarketType → String + | .oN_DEMAND => "on-demand" + | .spot => "spot" + +def SupportabilityMarketType.wireValues : List (String × SupportabilityMarketType) := [ + ("on-demand", .oN_DEMAND), + ("spot", .spot)] + +def SupportabilityMarketType.ofWire (text : String) : Except String SupportabilityMarketType := + match List.find? (·.1 == text) SupportabilityMarketType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SupportabilityMarketType has no value {text}" + +instance : Key SupportabilityMarketType := ⟨SupportabilityMarketType.wire, SupportabilityMarketType.ofWire⟩ + +instance : Shape SupportabilityMarketType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SupportabilityMarketType.ofWire text + | _ => .error "expected a string" + +inductive SupportabilityScore where + | high + | low + | medium + | unsupported +deriving DecidableEq, Repr, Inhabited + +def SupportabilityScore.wire : SupportabilityScore → String + | .high => "high" + | .low => "low" + | .medium => "medium" + | .unsupported => "unsupported" + +def SupportabilityScore.wireValues : List (String × SupportabilityScore) := [ + ("high", .high), + ("low", .low), + ("medium", .medium), + ("unsupported", .unsupported)] + +def SupportabilityScore.ofWire (text : String) : Except String SupportabilityScore := + match List.find? (·.1 == text) SupportabilityScore.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SupportabilityScore has no value {text}" + +instance : Key SupportabilityScore := ⟨SupportabilityScore.wire, SupportabilityScore.ofWire⟩ + +instance : Shape SupportabilityScore where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SupportabilityScore.ofWire text + | _ => .error "expected a string" + +inductive SupportedAdditionalProcessorFeature where + | amD_SEV_SNP + | nesteD_VIRTUALIZATION +deriving DecidableEq, Repr, Inhabited + +def SupportedAdditionalProcessorFeature.wire : SupportedAdditionalProcessorFeature → String + | .amD_SEV_SNP => "amd-sev-snp" + | .nesteD_VIRTUALIZATION => "nested-virtualization" + +def SupportedAdditionalProcessorFeature.wireValues : List (String × SupportedAdditionalProcessorFeature) := [ + ("amd-sev-snp", .amD_SEV_SNP), + ("nested-virtualization", .nesteD_VIRTUALIZATION)] + +def SupportedAdditionalProcessorFeature.ofWire (text : String) : Except String SupportedAdditionalProcessorFeature := + match List.find? (·.1 == text) SupportedAdditionalProcessorFeature.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SupportedAdditionalProcessorFeature has no value {text}" + +instance : Key SupportedAdditionalProcessorFeature := ⟨SupportedAdditionalProcessorFeature.wire, SupportedAdditionalProcessorFeature.ofWire⟩ + +instance : Shape SupportedAdditionalProcessorFeature where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SupportedAdditionalProcessorFeature.ofWire text + | _ => .error "expected a string" + +/-- Describes a supported Region. -/ +structure SupportedRegionDetail where + /-- The Region code. -/ + region : Option String := none + /-- The service state. -/ + serviceState : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SupportedRegionDetail where + schema := .struct "SupportedRegionDetail" [({ name := "Region", xmlName := some "region", queryName := some "Region" }, .string), + ({ name := "ServiceState", xmlName := some "serviceState", queryName := some "ServiceState" }, .string)] + toValue x := record [putOpt "Region" x.region, putOpt "ServiceState" x.serviceState] + ofValue v := do + let region ← v.opt "Region" + let serviceState ← v.opt "ServiceState" + return { region, serviceState } + +/-- Describes a tag. -/ +structure Tag where + /-- The key of the tag. -/ + key : Option String := none + /-- The value of the tag. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Tag where + schema := .struct "Tag" [({ name := "Key", xmlName := some "key", queryName := some "Key" }, .string), + ({ name := "Value", xmlName := some "value", queryName := some "Value" }, .string)] + toValue x := record [putOpt "Key" x.key, putOpt "Value" x.value] + ofValue v := do + let key ← v.opt "Key" + let value ← v.opt "Value" + return { key, value } + +inductive TaggableResourceType where + | auto_scaling_group + | «instance» + | network_interface +deriving DecidableEq, Repr, Inhabited + +def TaggableResourceType.wire : TaggableResourceType → String + | .auto_scaling_group => "auto-scaling-group" + | .«instance» => "instance" + | .network_interface => "network-interface" + +def TaggableResourceType.wireValues : List (String × TaggableResourceType) := [ + ("auto-scaling-group", .auto_scaling_group), + ("instance", .«instance»), + ("network-interface", .network_interface)] + +def TaggableResourceType.ofWire (text : String) : Except String TaggableResourceType := + match List.find? (·.1 == text) TaggableResourceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TaggableResourceType has no value {text}" + +instance : Key TaggableResourceType := ⟨TaggableResourceType.wire, TaggableResourceType.ofWire⟩ + +instance : Shape TaggableResourceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TaggableResourceType.ofWire text + | _ => .error "expected a string" + +inductive TargetCapacityUnitType where + | memorY_MIB + | units + | vcpu +deriving DecidableEq, Repr, Inhabited + +def TargetCapacityUnitType.wire : TargetCapacityUnitType → String + | .memorY_MIB => "memory-mib" + | .units => "units" + | .vcpu => "vcpu" + +def TargetCapacityUnitType.wireValues : List (String × TargetCapacityUnitType) := [ + ("memory-mib", .memorY_MIB), + ("units", .units), + ("vcpu", .vcpu)] + +def TargetCapacityUnitType.ofWire (text : String) : Except String TargetCapacityUnitType := + match List.find? (·.1 == text) TargetCapacityUnitType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TargetCapacityUnitType has no value {text}" + +instance : Key TargetCapacityUnitType := ⟨TargetCapacityUnitType.wire, TargetCapacityUnitType.ofWire⟩ + +instance : Shape TargetCapacityUnitType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TargetCapacityUnitType.ofWire text + | _ => .error "expected a string" + +/-- Information about the Convertible Reserved Instance offering. -/ +structure TargetConfiguration where + /-- The number of instances the Convertible Reserved Instance offering can be applied to. -/ + instanceCount : Option Int := none + /-- The ID of the Convertible Reserved Instance offering. -/ + offeringId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TargetConfiguration where + schema := .struct "TargetConfiguration" [({ name := "InstanceCount", xmlName := some "instanceCount", queryName := some "InstanceCount" }, .int), + ({ name := "OfferingId", xmlName := some "offeringId", queryName := some "OfferingId" }, .string)] + toValue x := record [putOpt "InstanceCount" x.instanceCount, putOpt "OfferingId" x.offeringId] + ofValue v := do + let instanceCount ← v.opt "InstanceCount" + let offeringId ← v.opt "OfferingId" + return { instanceCount, offeringId } + +/-- Details about the target configuration. -/ +structure TargetConfigurationRequest where + /-- The number of instances the Convertible Reserved Instance offering can be applied to. -/ + instanceCount : Option Int := none + /-- The Convertible Reserved Instance offering ID. -/ + offeringId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape TargetConfigurationRequest where + schema := .struct "TargetConfigurationRequest" [({ name := "InstanceCount" }, .int), + ({ name := "OfferingId", required := true }, .string)] + toValue x := record [putOpt "InstanceCount" x.instanceCount, put "OfferingId" x.offeringId] + ofValue v := do + let instanceCount ← v.opt "InstanceCount" + let offeringId ← v.req "OfferingId" + return { instanceCount, offeringId } + +/-- Describes a load balancer target group. -/ +structure TargetGroup where + /-- The Amazon Resource Name (ARN) of the target group. -/ + arn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TargetGroup where + schema := .struct "TargetGroup" [({ name := "Arn", xmlName := some "arn", queryName := some "Arn" }, .string)] + toValue x := record [putOpt "Arn" x.arn] + ofValue v := do + let arn ← v.opt "Arn" + return { arn } + +inductive TargetStorageTier where + | archive +deriving DecidableEq, Repr, Inhabited + +def TargetStorageTier.wire : TargetStorageTier → String + | .archive => "archive" + +def TargetStorageTier.wireValues : List (String × TargetStorageTier) := [ + ("archive", .archive)] + +def TargetStorageTier.ofWire (text : String) : Except String TargetStorageTier := + match List.find? (·.1 == text) TargetStorageTier.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TargetStorageTier has no value {text}" + +instance : Key TargetStorageTier := ⟨TargetStorageTier.wire, TargetStorageTier.ofWire⟩ + +instance : Shape TargetStorageTier where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TargetStorageTier.ofWire text + | _ => .error "expected a string" + +inductive TelemetryStatus where + | down + | up +deriving DecidableEq, Repr, Inhabited + +def TelemetryStatus.wire : TelemetryStatus → String + | .down => "DOWN" + | .up => "UP" + +def TelemetryStatus.wireValues : List (String × TelemetryStatus) := [ + ("DOWN", .down), + ("UP", .up)] + +def TelemetryStatus.ofWire (text : String) : Except String TelemetryStatus := + match List.find? (·.1 == text) TelemetryStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TelemetryStatus has no value {text}" + +instance : Key TelemetryStatus := ⟨TelemetryStatus.wire, TelemetryStatus.ofWire⟩ + +instance : Shape TelemetryStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TelemetryStatus.ofWire text + | _ => .error "expected a string" + +inductive Tenancy where + | dedicated + | default + | host +deriving DecidableEq, Repr, Inhabited + +def Tenancy.wire : Tenancy → String + | .dedicated => "dedicated" + | .default => "default" + | .host => "host" + +def Tenancy.wireValues : List (String × Tenancy) := [ + ("dedicated", .dedicated), + ("default", .default), + ("host", .host)] + +def Tenancy.ofWire (text : String) : Except String Tenancy := + match List.find? (·.1 == text) Tenancy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Tenancy has no value {text}" + +instance : Key Tenancy := ⟨Tenancy.wire, Tenancy.ofWire⟩ + +instance : Shape Tenancy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Tenancy.ofWire text + | _ => .error "expected a string" + +structure TerminateClientVpnConnectionsRequest where + /-- The ID of the Client VPN endpoint to which the client is connected. -/ + clientVpnEndpointId : String + /-- The ID of the client connection to be terminated. -/ + connectionId : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The name of the user who initiated the connection. -/ + username : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TerminateClientVpnConnectionsRequest where + schema := .struct "TerminateClientVpnConnectionsRequest" [({ name := "ClientVpnEndpointId", required := true }, .string), + ({ name := "ConnectionId" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Username" }, .string)] + toValue x := record [put "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "ConnectionId" x.connectionId, putOpt "DryRun" x.dryRun, putOpt "Username" x.username] + ofValue v := do + let clientVpnEndpointId ← v.req "ClientVpnEndpointId" + let connectionId ← v.opt "ConnectionId" + let dryRun ← v.opt "DryRun" + let username ← v.opt "Username" + return { clientVpnEndpointId, connectionId, dryRun, username } + +structure TerminateInstancesRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Forces the instances to terminate. -/ + force : Option Bool := none + /-- The IDs of the instances. -/ + instanceIds : (List String) + /-- Specifies whether to bypass the graceful OS shutdown process when the instance is terminated. -/ + skipOsShutdown : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TerminateInstancesRequest where + schema := .struct "TerminateInstancesRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Force" }, .bool), + ({ name := "InstanceIds", required := true, xmlName := some "InstanceId" }, (.list .string "InstanceId")), + ({ name := "SkipOsShutdown" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Force" x.force, put "InstanceIds" x.instanceIds, putOpt "SkipOsShutdown" x.skipOsShutdown] + ofValue v := do + let dryRun ← v.opt "DryRun" + let force ← v.opt "Force" + let instanceIds ← v.req "InstanceIds" + let skipOsShutdown ← v.opt "SkipOsShutdown" + return { dryRun, force, instanceIds, skipOsShutdown } + +inductive TieringOperationStatus where + | archival_completed + | archival_failed + | archival_in_progress + | permanent_restore_completed + | permanent_restore_failed + | permanent_restore_in_progress + | temporary_restore_completed + | temporary_restore_failed + | temporary_restore_in_progress +deriving DecidableEq, Repr, Inhabited + +def TieringOperationStatus.wire : TieringOperationStatus → String + | .archival_completed => "archival-completed" + | .archival_failed => "archival-failed" + | .archival_in_progress => "archival-in-progress" + | .permanent_restore_completed => "permanent-restore-completed" + | .permanent_restore_failed => "permanent-restore-failed" + | .permanent_restore_in_progress => "permanent-restore-in-progress" + | .temporary_restore_completed => "temporary-restore-completed" + | .temporary_restore_failed => "temporary-restore-failed" + | .temporary_restore_in_progress => "temporary-restore-in-progress" + +def TieringOperationStatus.wireValues : List (String × TieringOperationStatus) := [ + ("archival-completed", .archival_completed), + ("archival-failed", .archival_failed), + ("archival-in-progress", .archival_in_progress), + ("permanent-restore-completed", .permanent_restore_completed), + ("permanent-restore-failed", .permanent_restore_failed), + ("permanent-restore-in-progress", .permanent_restore_in_progress), + ("temporary-restore-completed", .temporary_restore_completed), + ("temporary-restore-failed", .temporary_restore_failed), + ("temporary-restore-in-progress", .temporary_restore_in_progress)] + +def TieringOperationStatus.ofWire (text : String) : Except String TieringOperationStatus := + match List.find? (·.1 == text) TieringOperationStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TieringOperationStatus has no value {text}" + +instance : Key TieringOperationStatus := ⟨TieringOperationStatus.wire, TieringOperationStatus.ofWire⟩ + +instance : Shape TieringOperationStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TieringOperationStatus.ofWire text + | _ => .error "expected a string" + +inductive TokenState where + | expired + | valid +deriving DecidableEq, Repr, Inhabited + +def TokenState.wire : TokenState → String + | .expired => "expired" + | .valid => "valid" + +def TokenState.wireValues : List (String × TokenState) := [ + ("expired", .expired), + ("valid", .valid)] + +def TokenState.ofWire (text : String) : Except String TokenState := + match List.find? (·.1 == text) TokenState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TokenState has no value {text}" + +instance : Key TokenState := ⟨TokenState.wire, TokenState.ofWire⟩ + +instance : Shape TokenState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TokenState.ofWire text + | _ => .error "expected a string" + +/-- The minimum and maximum amount of total local storage, in GB. -/ +structure TotalLocalStorageGB where + /-- The maximum amount of total local storage, in GB. -/ + max : Option JsonNumber := none + /-- The minimum amount of total local storage, in GB. -/ + min : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TotalLocalStorageGB where + schema := .struct "TotalLocalStorageGB" [({ name := "Max", xmlName := some "max", queryName := some "Max" }, .number), + ({ name := "Min", xmlName := some "min", queryName := some "Min" }, .number)] + toValue x := record [putOpt "Max" x.max, putOpt "Min" x.min] + ofValue v := do + let max ← v.opt "Max" + let min ← v.opt "Min" + return { max, min } + +/-- The minimum and maximum amount of total local storage, in GB. -/ +structure TotalLocalStorageGBRequest where + /-- The maximum amount of total local storage, in GB. -/ + max : Option JsonNumber := none + /-- The minimum amount of total local storage, in GB. -/ + min : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TotalLocalStorageGBRequest where + schema := .struct "TotalLocalStorageGBRequest" [({ name := "Max" }, .number), + ({ name := "Min" }, .number)] + toValue x := record [putOpt "Max" x.max, putOpt "Min" x.min] + ofValue v := do + let max ← v.opt "Max" + let min ← v.opt "Min" + return { max, min } + +inductive TpmSupportValues where + | v2_0 +deriving DecidableEq, Repr, Inhabited + +def TpmSupportValues.wire : TpmSupportValues → String + | .v2_0 => "v2.0" + +def TpmSupportValues.wireValues : List (String × TpmSupportValues) := [ + ("v2.0", .v2_0)] + +def TpmSupportValues.ofWire (text : String) : Except String TpmSupportValues := + match List.find? (·.1 == text) TpmSupportValues.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TpmSupportValues has no value {text}" + +instance : Key TpmSupportValues := ⟨TpmSupportValues.wire, TpmSupportValues.ofWire⟩ + +instance : Shape TpmSupportValues where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TpmSupportValues.ofWire text + | _ => .error "expected a string" + +inductive TrafficDirection where + | egress + | ingress +deriving DecidableEq, Repr, Inhabited + +def TrafficDirection.wire : TrafficDirection → String + | .egress => "egress" + | .ingress => "ingress" + +def TrafficDirection.wireValues : List (String × TrafficDirection) := [ + ("egress", .egress), + ("ingress", .ingress)] + +def TrafficDirection.ofWire (text : String) : Except String TrafficDirection := + match List.find? (·.1 == text) TrafficDirection.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TrafficDirection has no value {text}" + +instance : Key TrafficDirection := ⟨TrafficDirection.wire, TrafficDirection.ofWire⟩ + +instance : Shape TrafficDirection where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TrafficDirection.ofWire text + | _ => .error "expected a string" + +inductive TrafficIpAddressType where + | dual_stack + | ipv4 + | ipv6 +deriving DecidableEq, Repr, Inhabited + +def TrafficIpAddressType.wire : TrafficIpAddressType → String + | .dual_stack => "dual-stack" + | .ipv4 => "ipv4" + | .ipv6 => "ipv6" + +def TrafficIpAddressType.wireValues : List (String × TrafficIpAddressType) := [ + ("dual-stack", .dual_stack), + ("ipv4", .ipv4), + ("ipv6", .ipv6)] + +def TrafficIpAddressType.ofWire (text : String) : Except String TrafficIpAddressType := + match List.find? (·.1 == text) TrafficIpAddressType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TrafficIpAddressType has no value {text}" + +instance : Key TrafficIpAddressType := ⟨TrafficIpAddressType.wire, TrafficIpAddressType.ofWire⟩ + +instance : Shape TrafficIpAddressType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TrafficIpAddressType.ofWire text + | _ => .error "expected a string" + +inductive TrafficMirrorFilterRuleField where + | description + | destination_port_range + | protocol + | source_port_range +deriving DecidableEq, Repr, Inhabited + +def TrafficMirrorFilterRuleField.wire : TrafficMirrorFilterRuleField → String + | .description => "description" + | .destination_port_range => "destination-port-range" + | .protocol => "protocol" + | .source_port_range => "source-port-range" + +def TrafficMirrorFilterRuleField.wireValues : List (String × TrafficMirrorFilterRuleField) := [ + ("description", .description), + ("destination-port-range", .destination_port_range), + ("protocol", .protocol), + ("source-port-range", .source_port_range)] + +def TrafficMirrorFilterRuleField.ofWire (text : String) : Except String TrafficMirrorFilterRuleField := + match List.find? (·.1 == text) TrafficMirrorFilterRuleField.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TrafficMirrorFilterRuleField has no value {text}" + +instance : Key TrafficMirrorFilterRuleField := ⟨TrafficMirrorFilterRuleField.wire, TrafficMirrorFilterRuleField.ofWire⟩ + +instance : Shape TrafficMirrorFilterRuleField where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TrafficMirrorFilterRuleField.ofWire text + | _ => .error "expected a string" + +inductive TrafficMirrorNetworkService where + | amazon_dns +deriving DecidableEq, Repr, Inhabited + +def TrafficMirrorNetworkService.wire : TrafficMirrorNetworkService → String + | .amazon_dns => "amazon-dns" + +def TrafficMirrorNetworkService.wireValues : List (String × TrafficMirrorNetworkService) := [ + ("amazon-dns", .amazon_dns)] + +def TrafficMirrorNetworkService.ofWire (text : String) : Except String TrafficMirrorNetworkService := + match List.find? (·.1 == text) TrafficMirrorNetworkService.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TrafficMirrorNetworkService has no value {text}" + +instance : Key TrafficMirrorNetworkService := ⟨TrafficMirrorNetworkService.wire, TrafficMirrorNetworkService.ofWire⟩ + +instance : Shape TrafficMirrorNetworkService where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TrafficMirrorNetworkService.ofWire text + | _ => .error "expected a string" + +/-- Describes the Traffic Mirror port range. -/ +structure TrafficMirrorPortRange where + /-- The start of the Traffic Mirror port range. -/ + fromPort : Option Int := none + /-- The end of the Traffic Mirror port range. -/ + toPort : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TrafficMirrorPortRange where + schema := .struct "TrafficMirrorPortRange" [({ name := "FromPort", xmlName := some "fromPort", queryName := some "FromPort" }, .int), + ({ name := "ToPort", xmlName := some "toPort", queryName := some "ToPort" }, .int)] + toValue x := record [putOpt "FromPort" x.fromPort, putOpt "ToPort" x.toPort] + ofValue v := do + let fromPort ← v.opt "FromPort" + let toPort ← v.opt "ToPort" + return { fromPort, toPort } + +/-- Information about the Traffic Mirror filter rule port range. -/ +structure TrafficMirrorPortRangeRequest where + /-- The first port in the Traffic Mirror port range. -/ + fromPort : Option Int := none + /-- The last port in the Traffic Mirror port range. -/ + toPort : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TrafficMirrorPortRangeRequest where + schema := .struct "TrafficMirrorPortRangeRequest" [({ name := "FromPort" }, .int), + ({ name := "ToPort" }, .int)] + toValue x := record [putOpt "FromPort" x.fromPort, putOpt "ToPort" x.toPort] + ofValue v := do + let fromPort ← v.opt "FromPort" + let toPort ← v.opt "ToPort" + return { fromPort, toPort } + +inductive TrafficMirrorRuleAction where + | accept + | reject +deriving DecidableEq, Repr, Inhabited + +def TrafficMirrorRuleAction.wire : TrafficMirrorRuleAction → String + | .accept => "accept" + | .reject => "reject" + +def TrafficMirrorRuleAction.wireValues : List (String × TrafficMirrorRuleAction) := [ + ("accept", .accept), + ("reject", .reject)] + +def TrafficMirrorRuleAction.ofWire (text : String) : Except String TrafficMirrorRuleAction := + match List.find? (·.1 == text) TrafficMirrorRuleAction.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TrafficMirrorRuleAction has no value {text}" + +instance : Key TrafficMirrorRuleAction := ⟨TrafficMirrorRuleAction.wire, TrafficMirrorRuleAction.ofWire⟩ + +instance : Shape TrafficMirrorRuleAction where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TrafficMirrorRuleAction.ofWire text + | _ => .error "expected a string" + +inductive TrafficMirrorSessionField where + | description + | packet_length + | virtual_network_id +deriving DecidableEq, Repr, Inhabited + +def TrafficMirrorSessionField.wire : TrafficMirrorSessionField → String + | .description => "description" + | .packet_length => "packet-length" + | .virtual_network_id => "virtual-network-id" + +def TrafficMirrorSessionField.wireValues : List (String × TrafficMirrorSessionField) := [ + ("description", .description), + ("packet-length", .packet_length), + ("virtual-network-id", .virtual_network_id)] + +def TrafficMirrorSessionField.ofWire (text : String) : Except String TrafficMirrorSessionField := + match List.find? (·.1 == text) TrafficMirrorSessionField.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TrafficMirrorSessionField has no value {text}" + +instance : Key TrafficMirrorSessionField := ⟨TrafficMirrorSessionField.wire, TrafficMirrorSessionField.ofWire⟩ + +instance : Shape TrafficMirrorSessionField where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TrafficMirrorSessionField.ofWire text + | _ => .error "expected a string" + +inductive TrafficMirrorTargetType where + | gateway_load_balancer_endpoint + | network_interface + | network_load_balancer +deriving DecidableEq, Repr, Inhabited + +def TrafficMirrorTargetType.wire : TrafficMirrorTargetType → String + | .gateway_load_balancer_endpoint => "gateway-load-balancer-endpoint" + | .network_interface => "network-interface" + | .network_load_balancer => "network-load-balancer" + +def TrafficMirrorTargetType.wireValues : List (String × TrafficMirrorTargetType) := [ + ("gateway-load-balancer-endpoint", .gateway_load_balancer_endpoint), + ("network-interface", .network_interface), + ("network-load-balancer", .network_load_balancer)] + +def TrafficMirrorTargetType.ofWire (text : String) : Except String TrafficMirrorTargetType := + match List.find? (·.1 == text) TrafficMirrorTargetType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TrafficMirrorTargetType has no value {text}" + +instance : Key TrafficMirrorTargetType := ⟨TrafficMirrorTargetType.wire, TrafficMirrorTargetType.ofWire⟩ + +instance : Shape TrafficMirrorTargetType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TrafficMirrorTargetType.ofWire text + | _ => .error "expected a string" + +inductive TrafficType where + | accept + | all + | reject +deriving DecidableEq, Repr, Inhabited + +def TrafficType.wire : TrafficType → String + | .accept => "ACCEPT" + | .all => "ALL" + | .reject => "REJECT" + +def TrafficType.wireValues : List (String × TrafficType) := [ + ("ACCEPT", .accept), + ("ALL", .all), + ("REJECT", .reject)] + +def TrafficType.ofWire (text : String) : Except String TrafficType := + match List.find? (·.1 == text) TrafficType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TrafficType has no value {text}" + +instance : Key TrafficType := ⟨TrafficType.wire, TrafficType.ofWire⟩ + +instance : Shape TrafficType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TrafficType.ofWire text + | _ => .error "expected a string" + +inductive TransferType where + | standard + | time_based +deriving DecidableEq, Repr, Inhabited + +def TransferType.wire : TransferType → String + | .standard => "standard" + | .time_based => "time-based" + +def TransferType.wireValues : List (String × TransferType) := [ + ("standard", .standard), + ("time-based", .time_based)] + +def TransferType.ofWire (text : String) : Except String TransferType := + match List.find? (·.1 == text) TransferType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransferType has no value {text}" + +instance : Key TransferType := ⟨TransferType.wire, TransferType.ofWire⟩ + +instance : Shape TransferType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransferType.ofWire text + | _ => .error "expected a string" + +inductive TransitGatewayAssociationState where + | associated + | associating + | disassociated + | disassociating +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayAssociationState.wire : TransitGatewayAssociationState → String + | .associated => "associated" + | .associating => "associating" + | .disassociated => "disassociated" + | .disassociating => "disassociating" + +def TransitGatewayAssociationState.wireValues : List (String × TransitGatewayAssociationState) := [ + ("associated", .associated), + ("associating", .associating), + ("disassociated", .disassociated), + ("disassociating", .disassociating)] + +def TransitGatewayAssociationState.ofWire (text : String) : Except String TransitGatewayAssociationState := + match List.find? (·.1 == text) TransitGatewayAssociationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayAssociationState has no value {text}" + +instance : Key TransitGatewayAssociationState := ⟨TransitGatewayAssociationState.wire, TransitGatewayAssociationState.ofWire⟩ + +instance : Shape TransitGatewayAssociationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayAssociationState.ofWire text + | _ => .error "expected a string" + +inductive TransitGatewayAttachmentNatGatewaySupportState where + | disabled + | disabling + | enabled + | enabling +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayAttachmentNatGatewaySupportState.wire : TransitGatewayAttachmentNatGatewaySupportState → String + | .disabled => "disabled" + | .disabling => "disabling" + | .enabled => "enabled" + | .enabling => "enabling" + +def TransitGatewayAttachmentNatGatewaySupportState.wireValues : List (String × TransitGatewayAttachmentNatGatewaySupportState) := [ + ("disabled", .disabled), + ("disabling", .disabling), + ("enabled", .enabled), + ("enabling", .enabling)] + +def TransitGatewayAttachmentNatGatewaySupportState.ofWire (text : String) : Except String TransitGatewayAttachmentNatGatewaySupportState := + match List.find? (·.1 == text) TransitGatewayAttachmentNatGatewaySupportState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayAttachmentNatGatewaySupportState has no value {text}" + +instance : Key TransitGatewayAttachmentNatGatewaySupportState := ⟨TransitGatewayAttachmentNatGatewaySupportState.wire, TransitGatewayAttachmentNatGatewaySupportState.ofWire⟩ + +instance : Shape TransitGatewayAttachmentNatGatewaySupportState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayAttachmentNatGatewaySupportState.ofWire text + | _ => .error "expected a string" + +inductive TransitGatewayAttachmentNatGatewaySupportValue where + | disable + | enable +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayAttachmentNatGatewaySupportValue.wire : TransitGatewayAttachmentNatGatewaySupportValue → String + | .disable => "disable" + | .enable => "enable" + +def TransitGatewayAttachmentNatGatewaySupportValue.wireValues : List (String × TransitGatewayAttachmentNatGatewaySupportValue) := [ + ("disable", .disable), + ("enable", .enable)] + +def TransitGatewayAttachmentNatGatewaySupportValue.ofWire (text : String) : Except String TransitGatewayAttachmentNatGatewaySupportValue := + match List.find? (·.1 == text) TransitGatewayAttachmentNatGatewaySupportValue.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayAttachmentNatGatewaySupportValue has no value {text}" + +instance : Key TransitGatewayAttachmentNatGatewaySupportValue := ⟨TransitGatewayAttachmentNatGatewaySupportValue.wire, TransitGatewayAttachmentNatGatewaySupportValue.ofWire⟩ + +instance : Shape TransitGatewayAttachmentNatGatewaySupportValue where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayAttachmentNatGatewaySupportValue.ofWire text + | _ => .error "expected a string" + +inductive TransitGatewayAttachmentNatSystemRouteSupportValue where + | disable + | enable +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayAttachmentNatSystemRouteSupportValue.wire : TransitGatewayAttachmentNatSystemRouteSupportValue → String + | .disable => "disable" + | .enable => "enable" + +def TransitGatewayAttachmentNatSystemRouteSupportValue.wireValues : List (String × TransitGatewayAttachmentNatSystemRouteSupportValue) := [ + ("disable", .disable), + ("enable", .enable)] + +def TransitGatewayAttachmentNatSystemRouteSupportValue.ofWire (text : String) : Except String TransitGatewayAttachmentNatSystemRouteSupportValue := + match List.find? (·.1 == text) TransitGatewayAttachmentNatSystemRouteSupportValue.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayAttachmentNatSystemRouteSupportValue has no value {text}" + +instance : Key TransitGatewayAttachmentNatSystemRouteSupportValue := ⟨TransitGatewayAttachmentNatSystemRouteSupportValue.wire, TransitGatewayAttachmentNatSystemRouteSupportValue.ofWire⟩ + +instance : Shape TransitGatewayAttachmentNatSystemRouteSupportValue where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayAttachmentNatSystemRouteSupportValue.ofWire text + | _ => .error "expected a string" + +inductive TransitGatewayAttachmentResourceType where + | client_vpn + | connect + | direct_connect_gateway + | network_function + | peering + | tgw_peering + | vpc + | vpn + | vpn_concentrator +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayAttachmentResourceType.wire : TransitGatewayAttachmentResourceType → String + | .client_vpn => "client-vpn" + | .connect => "connect" + | .direct_connect_gateway => "direct-connect-gateway" + | .network_function => "network-function" + | .peering => "peering" + | .tgw_peering => "tgw-peering" + | .vpc => "vpc" + | .vpn => "vpn" + | .vpn_concentrator => "vpn-concentrator" + +def TransitGatewayAttachmentResourceType.wireValues : List (String × TransitGatewayAttachmentResourceType) := [ + ("client-vpn", .client_vpn), + ("connect", .connect), + ("direct-connect-gateway", .direct_connect_gateway), + ("network-function", .network_function), + ("peering", .peering), + ("tgw-peering", .tgw_peering), + ("vpc", .vpc), + ("vpn", .vpn), + ("vpn-concentrator", .vpn_concentrator)] + +def TransitGatewayAttachmentResourceType.ofWire (text : String) : Except String TransitGatewayAttachmentResourceType := + match List.find? (·.1 == text) TransitGatewayAttachmentResourceType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayAttachmentResourceType has no value {text}" + +instance : Key TransitGatewayAttachmentResourceType := ⟨TransitGatewayAttachmentResourceType.wire, TransitGatewayAttachmentResourceType.ofWire⟩ + +instance : Shape TransitGatewayAttachmentResourceType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayAttachmentResourceType.ofWire text + | _ => .error "expected a string" + +inductive TransitGatewayAttachmentState where + | available + | deleted + | deleting + | failed + | failing + | initiating + | initiatingRequest + | modifying + | pending + | pendingAcceptance + | rejected + | rejecting + | rollingBack +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayAttachmentState.wire : TransitGatewayAttachmentState → String + | .available => "available" + | .deleted => "deleted" + | .deleting => "deleting" + | .failed => "failed" + | .failing => "failing" + | .initiating => "initiating" + | .initiatingRequest => "initiatingRequest" + | .modifying => "modifying" + | .pending => "pending" + | .pendingAcceptance => "pendingAcceptance" + | .rejected => "rejected" + | .rejecting => "rejecting" + | .rollingBack => "rollingBack" + +def TransitGatewayAttachmentState.wireValues : List (String × TransitGatewayAttachmentState) := [ + ("available", .available), + ("deleted", .deleted), + ("deleting", .deleting), + ("failed", .failed), + ("failing", .failing), + ("initiating", .initiating), + ("initiatingRequest", .initiatingRequest), + ("modifying", .modifying), + ("pending", .pending), + ("pendingAcceptance", .pendingAcceptance), + ("rejected", .rejected), + ("rejecting", .rejecting), + ("rollingBack", .rollingBack)] + +def TransitGatewayAttachmentState.ofWire (text : String) : Except String TransitGatewayAttachmentState := + match List.find? (·.1 == text) TransitGatewayAttachmentState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayAttachmentState has no value {text}" + +instance : Key TransitGatewayAttachmentState := ⟨TransitGatewayAttachmentState.wire, TransitGatewayAttachmentState.ofWire⟩ + +instance : Shape TransitGatewayAttachmentState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayAttachmentState.ofWire text + | _ => .error "expected a string" + +inductive TransitGatewayAttachmentStatusType where + | available + | deleted + | deleting + | pending + | pending_acceptance + | rejected +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayAttachmentStatusType.wire : TransitGatewayAttachmentStatusType → String + | .available => "available" + | .deleted => "deleted" + | .deleting => "deleting" + | .pending => "pending" + | .pending_acceptance => "pending-acceptance" + | .rejected => "rejected" + +def TransitGatewayAttachmentStatusType.wireValues : List (String × TransitGatewayAttachmentStatusType) := [ + ("available", .available), + ("deleted", .deleted), + ("deleting", .deleting), + ("pending", .pending), + ("pending-acceptance", .pending_acceptance), + ("rejected", .rejected)] + +def TransitGatewayAttachmentStatusType.ofWire (text : String) : Except String TransitGatewayAttachmentStatusType := + match List.find? (·.1 == text) TransitGatewayAttachmentStatusType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayAttachmentStatusType has no value {text}" + +instance : Key TransitGatewayAttachmentStatusType := ⟨TransitGatewayAttachmentStatusType.wire, TransitGatewayAttachmentStatusType.ofWire⟩ + +instance : Shape TransitGatewayAttachmentStatusType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayAttachmentStatusType.ofWire text + | _ => .error "expected a string" + +/-- Describes the Transit Gateway configuration for a Client VPN endpoint. -/ +structure TransitGatewayConfigurationDescribeEndpointStructure where + /-- The Availability Zone IDs for the Transit Gateway association. -/ + availabilityZoneIds : Option (List String) := none + /-- The Availability Zone names for the Transit Gateway association. -/ + availabilityZones : Option (List String) := none + /-- The ID of the Transit Gateway attachment. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the Transit Gateway. -/ + transitGatewayId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayConfigurationDescribeEndpointStructure where + schema := .struct "TransitGatewayConfigurationDescribeEndpointStructure" [({ name := "AvailabilityZoneIds", xmlName := some "availabilityZoneIdSet", queryName := some "AvailabilityZoneIdSet" }, (.list .string "item")), + ({ name := "AvailabilityZones", xmlName := some "availabilityZoneSet", queryName := some "AvailabilityZoneSet" }, (.list .string "item")), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayId", xmlName := some "transitGatewayId", queryName := some "TransitGatewayId" }, .string)] + toValue x := record [putOpt "AvailabilityZoneIds" x.availabilityZoneIds, putOpt "AvailabilityZones" x.availabilityZones, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, putOpt "TransitGatewayId" x.transitGatewayId] + ofValue v := do + let availabilityZoneIds ← v.opt "AvailabilityZoneIds" + let availabilityZones ← v.opt "AvailabilityZones" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayId ← v.opt "TransitGatewayId" + return { availabilityZoneIds, availabilityZones, transitGatewayAttachmentId, transitGatewayId } + +/-- The Transit Gateway configuration for a Client VPN endpoint. -/ +structure TransitGatewayConfigurationInputStructure where + /-- The Availability Zone IDs for the Transit Gateway association. -/ + availabilityZoneIds : Option (List String) := none + /-- The Availability Zone names for the Transit Gateway association. -/ + availabilityZones : Option (List String) := none + /-- The ID of the Transit Gateway to associate with the Client VPN endpoint. -/ + transitGatewayId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayConfigurationInputStructure where + schema := .struct "TransitGatewayConfigurationInputStructure" [({ name := "AvailabilityZoneIds", xmlName := some "AvailabilityZoneId" }, (.list .string "item")), + ({ name := "AvailabilityZones", xmlName := some "AvailabilityZone" }, (.list .string "item")), + ({ name := "TransitGatewayId" }, .string)] + toValue x := record [putOpt "AvailabilityZoneIds" x.availabilityZoneIds, putOpt "AvailabilityZones" x.availabilityZones, putOpt "TransitGatewayId" x.transitGatewayId] + ofValue v := do + let availabilityZoneIds ← v.opt "AvailabilityZoneIds" + let availabilityZones ← v.opt "AvailabilityZones" + let transitGatewayId ← v.opt "TransitGatewayId" + return { availabilityZoneIds, availabilityZones, transitGatewayId } + +inductive TransitGatewayConnectPeerState where + | available + | deleted + | deleting + | pending +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayConnectPeerState.wire : TransitGatewayConnectPeerState → String + | .available => "available" + | .deleted => "deleted" + | .deleting => "deleting" + | .pending => "pending" + +def TransitGatewayConnectPeerState.wireValues : List (String × TransitGatewayConnectPeerState) := [ + ("available", .available), + ("deleted", .deleted), + ("deleting", .deleting), + ("pending", .pending)] + +def TransitGatewayConnectPeerState.ofWire (text : String) : Except String TransitGatewayConnectPeerState := + match List.find? (·.1 == text) TransitGatewayConnectPeerState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayConnectPeerState has no value {text}" + +instance : Key TransitGatewayConnectPeerState := ⟨TransitGatewayConnectPeerState.wire, TransitGatewayConnectPeerState.ofWire⟩ + +instance : Shape TransitGatewayConnectPeerState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayConnectPeerState.ofWire text + | _ => .error "expected a string" + +/-- The BGP options for the Connect attachment. -/ +structure TransitGatewayConnectRequestBgpOptions where + /-- The peer Autonomous System Number (ASN). -/ + peerAsn : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayConnectRequestBgpOptions where + schema := .struct "TransitGatewayConnectRequestBgpOptions" [({ name := "PeerAsn" }, .int)] + toValue x := record [putOpt "PeerAsn" x.peerAsn] + ofValue v := do + let peerAsn ← v.opt "PeerAsn" + return { peerAsn } + +inductive TransitGatewayMeteringPayerType where + | destination_attachment_owner + | source_attachment_owner + | transit_gateway_owner +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayMeteringPayerType.wire : TransitGatewayMeteringPayerType → String + | .destination_attachment_owner => "destination-attachment-owner" + | .source_attachment_owner => "source-attachment-owner" + | .transit_gateway_owner => "transit-gateway-owner" + +def TransitGatewayMeteringPayerType.wireValues : List (String × TransitGatewayMeteringPayerType) := [ + ("destination-attachment-owner", .destination_attachment_owner), + ("source-attachment-owner", .source_attachment_owner), + ("transit-gateway-owner", .transit_gateway_owner)] + +def TransitGatewayMeteringPayerType.ofWire (text : String) : Except String TransitGatewayMeteringPayerType := + match List.find? (·.1 == text) TransitGatewayMeteringPayerType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayMeteringPayerType has no value {text}" + +instance : Key TransitGatewayMeteringPayerType := ⟨TransitGatewayMeteringPayerType.wire, TransitGatewayMeteringPayerType.ofWire⟩ + +instance : Shape TransitGatewayMeteringPayerType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayMeteringPayerType.ofWire text + | _ => .error "expected a string" + +inductive TransitGatewayMeteringPolicyEntryState where + | available + | deleted +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayMeteringPolicyEntryState.wire : TransitGatewayMeteringPolicyEntryState → String + | .available => "available" + | .deleted => "deleted" + +def TransitGatewayMeteringPolicyEntryState.wireValues : List (String × TransitGatewayMeteringPolicyEntryState) := [ + ("available", .available), + ("deleted", .deleted)] + +def TransitGatewayMeteringPolicyEntryState.ofWire (text : String) : Except String TransitGatewayMeteringPolicyEntryState := + match List.find? (·.1 == text) TransitGatewayMeteringPolicyEntryState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayMeteringPolicyEntryState has no value {text}" + +instance : Key TransitGatewayMeteringPolicyEntryState := ⟨TransitGatewayMeteringPolicyEntryState.wire, TransitGatewayMeteringPolicyEntryState.ofWire⟩ + +instance : Shape TransitGatewayMeteringPolicyEntryState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayMeteringPolicyEntryState.ofWire text + | _ => .error "expected a string" + +inductive TransitGatewayMeteringPolicyState where + | available + | deleted + | deleting + | modifying + | pending +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayMeteringPolicyState.wire : TransitGatewayMeteringPolicyState → String + | .available => "available" + | .deleted => "deleted" + | .deleting => "deleting" + | .modifying => "modifying" + | .pending => "pending" + +def TransitGatewayMeteringPolicyState.wireValues : List (String × TransitGatewayMeteringPolicyState) := [ + ("available", .available), + ("deleted", .deleted), + ("deleting", .deleting), + ("modifying", .modifying), + ("pending", .pending)] + +def TransitGatewayMeteringPolicyState.ofWire (text : String) : Except String TransitGatewayMeteringPolicyState := + match List.find? (·.1 == text) TransitGatewayMeteringPolicyState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayMeteringPolicyState has no value {text}" + +instance : Key TransitGatewayMeteringPolicyState := ⟨TransitGatewayMeteringPolicyState.wire, TransitGatewayMeteringPolicyState.ofWire⟩ + +instance : Shape TransitGatewayMeteringPolicyState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayMeteringPolicyState.ofWire text + | _ => .error "expected a string" + +inductive TransitGatewayMulitcastDomainAssociationState where + | associated + | associating + | disassociated + | disassociating + | failed + | pendingAcceptance + | rejected +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayMulitcastDomainAssociationState.wire : TransitGatewayMulitcastDomainAssociationState → String + | .associated => "associated" + | .associating => "associating" + | .disassociated => "disassociated" + | .disassociating => "disassociating" + | .failed => "failed" + | .pendingAcceptance => "pendingAcceptance" + | .rejected => "rejected" + +def TransitGatewayMulitcastDomainAssociationState.wireValues : List (String × TransitGatewayMulitcastDomainAssociationState) := [ + ("associated", .associated), + ("associating", .associating), + ("disassociated", .disassociated), + ("disassociating", .disassociating), + ("failed", .failed), + ("pendingAcceptance", .pendingAcceptance), + ("rejected", .rejected)] + +def TransitGatewayMulitcastDomainAssociationState.ofWire (text : String) : Except String TransitGatewayMulitcastDomainAssociationState := + match List.find? (·.1 == text) TransitGatewayMulitcastDomainAssociationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayMulitcastDomainAssociationState has no value {text}" + +instance : Key TransitGatewayMulitcastDomainAssociationState := ⟨TransitGatewayMulitcastDomainAssociationState.wire, TransitGatewayMulitcastDomainAssociationState.ofWire⟩ + +instance : Shape TransitGatewayMulitcastDomainAssociationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayMulitcastDomainAssociationState.ofWire text + | _ => .error "expected a string" + +/-- Describes the deregistered transit gateway multicast group members. -/ +structure TransitGatewayMulticastDeregisteredGroupMembers where + /-- The network interface IDs of the deregistered members. -/ + deregisteredNetworkInterfaceIds : Option (List String) := none + /-- The IP address assigned to the transit gateway multicast group. -/ + groupIpAddress : Option String := none + /-- The ID of the transit gateway multicast domain. -/ + transitGatewayMulticastDomainId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayMulticastDeregisteredGroupMembers where + schema := .struct "TransitGatewayMulticastDeregisteredGroupMembers" [({ name := "DeregisteredNetworkInterfaceIds", xmlName := some "deregisteredNetworkInterfaceIds", queryName := some "DeregisteredNetworkInterfaceIds" }, (.list .string "item")), + ({ name := "GroupIpAddress", xmlName := some "groupIpAddress", queryName := some "GroupIpAddress" }, .string), + ({ name := "TransitGatewayMulticastDomainId", xmlName := some "transitGatewayMulticastDomainId", queryName := some "TransitGatewayMulticastDomainId" }, .string)] + toValue x := record [putOpt "DeregisteredNetworkInterfaceIds" x.deregisteredNetworkInterfaceIds, putOpt "GroupIpAddress" x.groupIpAddress, putOpt "TransitGatewayMulticastDomainId" x.transitGatewayMulticastDomainId] + ofValue v := do + let deregisteredNetworkInterfaceIds ← v.opt "DeregisteredNetworkInterfaceIds" + let groupIpAddress ← v.opt "GroupIpAddress" + let transitGatewayMulticastDomainId ← v.opt "TransitGatewayMulticastDomainId" + return { deregisteredNetworkInterfaceIds, groupIpAddress, transitGatewayMulticastDomainId } + +/-- Describes the deregistered transit gateway multicast group sources. -/ +structure TransitGatewayMulticastDeregisteredGroupSources where + /-- The network interface IDs of the non-registered members. -/ + deregisteredNetworkInterfaceIds : Option (List String) := none + /-- The IP address assigned to the transit gateway multicast group. -/ + groupIpAddress : Option String := none + /-- The ID of the transit gateway multicast domain. -/ + transitGatewayMulticastDomainId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayMulticastDeregisteredGroupSources where + schema := .struct "TransitGatewayMulticastDeregisteredGroupSources" [({ name := "DeregisteredNetworkInterfaceIds", xmlName := some "deregisteredNetworkInterfaceIds", queryName := some "DeregisteredNetworkInterfaceIds" }, (.list .string "item")), + ({ name := "GroupIpAddress", xmlName := some "groupIpAddress", queryName := some "GroupIpAddress" }, .string), + ({ name := "TransitGatewayMulticastDomainId", xmlName := some "transitGatewayMulticastDomainId", queryName := some "TransitGatewayMulticastDomainId" }, .string)] + toValue x := record [putOpt "DeregisteredNetworkInterfaceIds" x.deregisteredNetworkInterfaceIds, putOpt "GroupIpAddress" x.groupIpAddress, putOpt "TransitGatewayMulticastDomainId" x.transitGatewayMulticastDomainId] + ofValue v := do + let deregisteredNetworkInterfaceIds ← v.opt "DeregisteredNetworkInterfaceIds" + let groupIpAddress ← v.opt "GroupIpAddress" + let transitGatewayMulticastDomainId ← v.opt "TransitGatewayMulticastDomainId" + return { deregisteredNetworkInterfaceIds, groupIpAddress, transitGatewayMulticastDomainId } + +inductive TransitGatewayMulticastDomainState where + | available + | deleted + | deleting + | pending +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayMulticastDomainState.wire : TransitGatewayMulticastDomainState → String + | .available => "available" + | .deleted => "deleted" + | .deleting => "deleting" + | .pending => "pending" + +def TransitGatewayMulticastDomainState.wireValues : List (String × TransitGatewayMulticastDomainState) := [ + ("available", .available), + ("deleted", .deleted), + ("deleting", .deleting), + ("pending", .pending)] + +def TransitGatewayMulticastDomainState.ofWire (text : String) : Except String TransitGatewayMulticastDomainState := + match List.find? (·.1 == text) TransitGatewayMulticastDomainState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayMulticastDomainState has no value {text}" + +instance : Key TransitGatewayMulticastDomainState := ⟨TransitGatewayMulticastDomainState.wire, TransitGatewayMulticastDomainState.ofWire⟩ + +instance : Shape TransitGatewayMulticastDomainState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayMulticastDomainState.ofWire text + | _ => .error "expected a string" + +/-- Describes the registered transit gateway multicast group members. -/ +structure TransitGatewayMulticastRegisteredGroupMembers where + /-- The IP address assigned to the transit gateway multicast group. -/ + groupIpAddress : Option String := none + /-- The ID of the registered network interfaces. -/ + registeredNetworkInterfaceIds : Option (List String) := none + /-- The ID of the transit gateway multicast domain. -/ + transitGatewayMulticastDomainId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayMulticastRegisteredGroupMembers where + schema := .struct "TransitGatewayMulticastRegisteredGroupMembers" [({ name := "GroupIpAddress", xmlName := some "groupIpAddress", queryName := some "GroupIpAddress" }, .string), + ({ name := "RegisteredNetworkInterfaceIds", xmlName := some "registeredNetworkInterfaceIds", queryName := some "RegisteredNetworkInterfaceIds" }, (.list .string "item")), + ({ name := "TransitGatewayMulticastDomainId", xmlName := some "transitGatewayMulticastDomainId", queryName := some "TransitGatewayMulticastDomainId" }, .string)] + toValue x := record [putOpt "GroupIpAddress" x.groupIpAddress, putOpt "RegisteredNetworkInterfaceIds" x.registeredNetworkInterfaceIds, putOpt "TransitGatewayMulticastDomainId" x.transitGatewayMulticastDomainId] + ofValue v := do + let groupIpAddress ← v.opt "GroupIpAddress" + let registeredNetworkInterfaceIds ← v.opt "RegisteredNetworkInterfaceIds" + let transitGatewayMulticastDomainId ← v.opt "TransitGatewayMulticastDomainId" + return { groupIpAddress, registeredNetworkInterfaceIds, transitGatewayMulticastDomainId } + +/-- Describes the members registered with the transit gateway multicast group. -/ +structure TransitGatewayMulticastRegisteredGroupSources where + /-- The IP address assigned to the transit gateway multicast group. -/ + groupIpAddress : Option String := none + /-- The IDs of the network interfaces members registered with the transit gateway multicast group. -/ + registeredNetworkInterfaceIds : Option (List String) := none + /-- The ID of the transit gateway multicast domain. -/ + transitGatewayMulticastDomainId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayMulticastRegisteredGroupSources where + schema := .struct "TransitGatewayMulticastRegisteredGroupSources" [({ name := "GroupIpAddress", xmlName := some "groupIpAddress", queryName := some "GroupIpAddress" }, .string), + ({ name := "RegisteredNetworkInterfaceIds", xmlName := some "registeredNetworkInterfaceIds", queryName := some "RegisteredNetworkInterfaceIds" }, (.list .string "item")), + ({ name := "TransitGatewayMulticastDomainId", xmlName := some "transitGatewayMulticastDomainId", queryName := some "TransitGatewayMulticastDomainId" }, .string)] + toValue x := record [putOpt "GroupIpAddress" x.groupIpAddress, putOpt "RegisteredNetworkInterfaceIds" x.registeredNetworkInterfaceIds, putOpt "TransitGatewayMulticastDomainId" x.transitGatewayMulticastDomainId] + ofValue v := do + let groupIpAddress ← v.opt "GroupIpAddress" + let registeredNetworkInterfaceIds ← v.opt "RegisteredNetworkInterfaceIds" + let transitGatewayMulticastDomainId ← v.opt "TransitGatewayMulticastDomainId" + return { groupIpAddress, registeredNetworkInterfaceIds, transitGatewayMulticastDomainId } + +/-- Describes a NAT gateway rule to apply to a transit gateway attachment. -/ +structure TransitGatewayNatRuleRequest where + /-- The IPv4 CIDR block of the source addresses to translate. -/ + matchSourceCidr : Option String := none + /-- The IPv4 CIDR block to translate the source addresses to. -/ + natCidr : Option String := none + /-- The rule number. -/ + ruleNumber : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayNatRuleRequest where + schema := .struct "TransitGatewayNatRuleRequest" [({ name := "MatchSourceCidr" }, .string), + ({ name := "NatCidr" }, .string), + ({ name := "RuleNumber" }, .int)] + toValue x := record [putOpt "MatchSourceCidr" x.matchSourceCidr, putOpt "NatCidr" x.natCidr, putOpt "RuleNumber" x.ruleNumber] + ofValue v := do + let matchSourceCidr ← v.opt "MatchSourceCidr" + let natCidr ← v.opt "NatCidr" + let ruleNumber ← v.opt "RuleNumber" + return { matchSourceCidr, natCidr, ruleNumber } + +inductive TransitGatewayNatRuleState where + | activated + | deactivated + | deleting + | pending +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayNatRuleState.wire : TransitGatewayNatRuleState → String + | .activated => "activated" + | .deactivated => "deactivated" + | .deleting => "deleting" + | .pending => "pending" + +def TransitGatewayNatRuleState.wireValues : List (String × TransitGatewayNatRuleState) := [ + ("activated", .activated), + ("deactivated", .deactivated), + ("deleting", .deleting), + ("pending", .pending)] + +def TransitGatewayNatRuleState.ofWire (text : String) : Except String TransitGatewayNatRuleState := + match List.find? (·.1 == text) TransitGatewayNatRuleState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayNatRuleState has no value {text}" + +instance : Key TransitGatewayNatRuleState := ⟨TransitGatewayNatRuleState.wire, TransitGatewayNatRuleState.ofWire⟩ + +instance : Shape TransitGatewayNatRuleState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayNatRuleState.ofWire text + | _ => .error "expected a string" + +inductive TransitGatewayPeeringAttachmentMultipathResilienceMode where + | always_on +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayPeeringAttachmentMultipathResilienceMode.wire : TransitGatewayPeeringAttachmentMultipathResilienceMode → String + | .always_on => "always-on" + +def TransitGatewayPeeringAttachmentMultipathResilienceMode.wireValues : List (String × TransitGatewayPeeringAttachmentMultipathResilienceMode) := [ + ("always-on", .always_on)] + +def TransitGatewayPeeringAttachmentMultipathResilienceMode.ofWire (text : String) : Except String TransitGatewayPeeringAttachmentMultipathResilienceMode := + match List.find? (·.1 == text) TransitGatewayPeeringAttachmentMultipathResilienceMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayPeeringAttachmentMultipathResilienceMode has no value {text}" + +instance : Key TransitGatewayPeeringAttachmentMultipathResilienceMode := ⟨TransitGatewayPeeringAttachmentMultipathResilienceMode.wire, TransitGatewayPeeringAttachmentMultipathResilienceMode.ofWire⟩ + +instance : Shape TransitGatewayPeeringAttachmentMultipathResilienceMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayPeeringAttachmentMultipathResilienceMode.ofWire text + | _ => .error "expected a string" + +inductive TransitGatewayPeeringAttachmentMultipathResilienceStatus where + | disabled + | enabled + | pending +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayPeeringAttachmentMultipathResilienceStatus.wire : TransitGatewayPeeringAttachmentMultipathResilienceStatus → String + | .disabled => "disabled" + | .enabled => "enabled" + | .pending => "pending" + +def TransitGatewayPeeringAttachmentMultipathResilienceStatus.wireValues : List (String × TransitGatewayPeeringAttachmentMultipathResilienceStatus) := [ + ("disabled", .disabled), + ("enabled", .enabled), + ("pending", .pending)] + +def TransitGatewayPeeringAttachmentMultipathResilienceStatus.ofWire (text : String) : Except String TransitGatewayPeeringAttachmentMultipathResilienceStatus := + match List.find? (·.1 == text) TransitGatewayPeeringAttachmentMultipathResilienceStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayPeeringAttachmentMultipathResilienceStatus has no value {text}" + +instance : Key TransitGatewayPeeringAttachmentMultipathResilienceStatus := ⟨TransitGatewayPeeringAttachmentMultipathResilienceStatus.wire, TransitGatewayPeeringAttachmentMultipathResilienceStatus.ofWire⟩ + +instance : Shape TransitGatewayPeeringAttachmentMultipathResilienceStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayPeeringAttachmentMultipathResilienceStatus.ofWire text + | _ => .error "expected a string" + +/-- Describes the meta data tags associated with a transit gateway policy rule. -/ +structure TransitGatewayPolicyRuleMetaData where + /-- The key name for the transit gateway policy rule meta data tag. -/ + metaDataKey : Option String := none + /-- The value of the key for the transit gateway policy rule meta data tag. -/ + metaDataValue : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayPolicyRuleMetaData where + schema := .struct "TransitGatewayPolicyRuleMetaData" [({ name := "MetaDataKey", xmlName := some "metaDataKey", queryName := some "MetaDataKey" }, .string), + ({ name := "MetaDataValue", xmlName := some "metaDataValue", queryName := some "MetaDataValue" }, .string)] + toValue x := record [putOpt "MetaDataKey" x.metaDataKey, putOpt "MetaDataValue" x.metaDataValue] + ofValue v := do + let metaDataKey ← v.opt "MetaDataKey" + let metaDataValue ← v.opt "MetaDataValue" + return { metaDataKey, metaDataValue } + +inductive TransitGatewayPolicyTableEntryState where + | active + | deleted +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayPolicyTableEntryState.wire : TransitGatewayPolicyTableEntryState → String + | .active => "active" + | .deleted => "deleted" + +def TransitGatewayPolicyTableEntryState.wireValues : List (String × TransitGatewayPolicyTableEntryState) := [ + ("active", .active), + ("deleted", .deleted)] + +def TransitGatewayPolicyTableEntryState.ofWire (text : String) : Except String TransitGatewayPolicyTableEntryState := + match List.find? (·.1 == text) TransitGatewayPolicyTableEntryState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayPolicyTableEntryState has no value {text}" + +instance : Key TransitGatewayPolicyTableEntryState := ⟨TransitGatewayPolicyTableEntryState.wire, TransitGatewayPolicyTableEntryState.ofWire⟩ + +instance : Shape TransitGatewayPolicyTableEntryState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayPolicyTableEntryState.ofWire text + | _ => .error "expected a string" + +inductive TransitGatewayPolicyTableState where + | available + | deleted + | deleting + | pending +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayPolicyTableState.wire : TransitGatewayPolicyTableState → String + | .available => "available" + | .deleted => "deleted" + | .deleting => "deleting" + | .pending => "pending" + +def TransitGatewayPolicyTableState.wireValues : List (String × TransitGatewayPolicyTableState) := [ + ("available", .available), + ("deleted", .deleted), + ("deleting", .deleting), + ("pending", .pending)] + +def TransitGatewayPolicyTableState.ofWire (text : String) : Except String TransitGatewayPolicyTableState := + match List.find? (·.1 == text) TransitGatewayPolicyTableState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayPolicyTableState has no value {text}" + +instance : Key TransitGatewayPolicyTableState := ⟨TransitGatewayPolicyTableState.wire, TransitGatewayPolicyTableState.ofWire⟩ + +instance : Shape TransitGatewayPolicyTableState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayPolicyTableState.ofWire text + | _ => .error "expected a string" + +inductive TransitGatewayPrefixListReferenceState where + | available + | deleting + | modifying + | pending +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayPrefixListReferenceState.wire : TransitGatewayPrefixListReferenceState → String + | .available => "available" + | .deleting => "deleting" + | .modifying => "modifying" + | .pending => "pending" + +def TransitGatewayPrefixListReferenceState.wireValues : List (String × TransitGatewayPrefixListReferenceState) := [ + ("available", .available), + ("deleting", .deleting), + ("modifying", .modifying), + ("pending", .pending)] + +def TransitGatewayPrefixListReferenceState.ofWire (text : String) : Except String TransitGatewayPrefixListReferenceState := + match List.find? (·.1 == text) TransitGatewayPrefixListReferenceState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayPrefixListReferenceState has no value {text}" + +instance : Key TransitGatewayPrefixListReferenceState := ⟨TransitGatewayPrefixListReferenceState.wire, TransitGatewayPrefixListReferenceState.ofWire⟩ + +instance : Shape TransitGatewayPrefixListReferenceState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayPrefixListReferenceState.ofWire text + | _ => .error "expected a string" + +inductive TransitGatewayPropagationState where + | disabled + | disabling + | enabled + | enabling +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayPropagationState.wire : TransitGatewayPropagationState → String + | .disabled => "disabled" + | .disabling => "disabling" + | .enabled => "enabled" + | .enabling => "enabling" + +def TransitGatewayPropagationState.wireValues : List (String × TransitGatewayPropagationState) := [ + ("disabled", .disabled), + ("disabling", .disabling), + ("enabled", .enabled), + ("enabling", .enabling)] + +def TransitGatewayPropagationState.ofWire (text : String) : Except String TransitGatewayPropagationState := + match List.find? (·.1 == text) TransitGatewayPropagationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayPropagationState has no value {text}" + +instance : Key TransitGatewayPropagationState := ⟨TransitGatewayPropagationState.wire, TransitGatewayPropagationState.ofWire⟩ + +instance : Shape TransitGatewayPropagationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayPropagationState.ofWire text + | _ => .error "expected a string" + +/-- A metadata key-value pair for a transit gateway policy rule. -/ +structure TransitGatewayRequestPolicyRuleMetaData where + /-- The key of the metadata pair for the policy rule. -/ + metaDataKey : Option String := none + /-- The value of the metadata pair for the policy rule. -/ + metaDataValue : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayRequestPolicyRuleMetaData where + schema := .struct "TransitGatewayRequestPolicyRuleMetaData" [({ name := "MetaDataKey" }, .string), + ({ name := "MetaDataValue" }, .string)] + toValue x := record [putOpt "MetaDataKey" x.metaDataKey, putOpt "MetaDataValue" x.metaDataValue] + ofValue v := do + let metaDataKey ← v.opt "MetaDataKey" + let metaDataValue ← v.opt "MetaDataValue" + return { metaDataKey, metaDataValue } + +inductive TransitGatewayRouteState where + | active + | blackhole + | deleted + | deleting + | pending +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayRouteState.wire : TransitGatewayRouteState → String + | .active => "active" + | .blackhole => "blackhole" + | .deleted => "deleted" + | .deleting => "deleting" + | .pending => "pending" + +def TransitGatewayRouteState.wireValues : List (String × TransitGatewayRouteState) := [ + ("active", .active), + ("blackhole", .blackhole), + ("deleted", .deleted), + ("deleting", .deleting), + ("pending", .pending)] + +def TransitGatewayRouteState.ofWire (text : String) : Except String TransitGatewayRouteState := + match List.find? (·.1 == text) TransitGatewayRouteState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayRouteState has no value {text}" + +instance : Key TransitGatewayRouteState := ⟨TransitGatewayRouteState.wire, TransitGatewayRouteState.ofWire⟩ + +instance : Shape TransitGatewayRouteState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayRouteState.ofWire text + | _ => .error "expected a string" + +inductive TransitGatewayRouteTableAnnouncementDirection where + | incoming + | outgoing +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayRouteTableAnnouncementDirection.wire : TransitGatewayRouteTableAnnouncementDirection → String + | .incoming => "incoming" + | .outgoing => "outgoing" + +def TransitGatewayRouteTableAnnouncementDirection.wireValues : List (String × TransitGatewayRouteTableAnnouncementDirection) := [ + ("incoming", .incoming), + ("outgoing", .outgoing)] + +def TransitGatewayRouteTableAnnouncementDirection.ofWire (text : String) : Except String TransitGatewayRouteTableAnnouncementDirection := + match List.find? (·.1 == text) TransitGatewayRouteTableAnnouncementDirection.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayRouteTableAnnouncementDirection has no value {text}" + +instance : Key TransitGatewayRouteTableAnnouncementDirection := ⟨TransitGatewayRouteTableAnnouncementDirection.wire, TransitGatewayRouteTableAnnouncementDirection.ofWire⟩ + +instance : Shape TransitGatewayRouteTableAnnouncementDirection where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayRouteTableAnnouncementDirection.ofWire text + | _ => .error "expected a string" + +inductive TransitGatewayRouteTableAnnouncementState where + | available + | deleted + | deleting + | failed + | failing + | pending +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayRouteTableAnnouncementState.wire : TransitGatewayRouteTableAnnouncementState → String + | .available => "available" + | .deleted => "deleted" + | .deleting => "deleting" + | .failed => "failed" + | .failing => "failing" + | .pending => "pending" + +def TransitGatewayRouteTableAnnouncementState.wireValues : List (String × TransitGatewayRouteTableAnnouncementState) := [ + ("available", .available), + ("deleted", .deleted), + ("deleting", .deleting), + ("failed", .failed), + ("failing", .failing), + ("pending", .pending)] + +def TransitGatewayRouteTableAnnouncementState.ofWire (text : String) : Except String TransitGatewayRouteTableAnnouncementState := + match List.find? (·.1 == text) TransitGatewayRouteTableAnnouncementState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayRouteTableAnnouncementState has no value {text}" + +instance : Key TransitGatewayRouteTableAnnouncementState := ⟨TransitGatewayRouteTableAnnouncementState.wire, TransitGatewayRouteTableAnnouncementState.ofWire⟩ + +instance : Shape TransitGatewayRouteTableAnnouncementState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayRouteTableAnnouncementState.ofWire text + | _ => .error "expected a string" + +/-- Describes a route in a transit gateway route table. -/ +structure TransitGatewayRouteTableRoute where + /-- The ID of the route attachment. -/ + attachmentId : Option String := none + /-- The CIDR block used for destination matches. -/ + destinationCidr : Option String := none + /-- The ID of the prefix list. -/ + prefixListId : Option String := none + /-- The ID of the resource for the route attachment. -/ + resourceId : Option String := none + /-- The resource type for the route attachment. -/ + resourceType : Option String := none + /-- The route origin. -/ + routeOrigin : Option String := none + /-- The state of the route. -/ + state : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayRouteTableRoute where + schema := .struct "TransitGatewayRouteTableRoute" [({ name := "AttachmentId", xmlName := some "attachmentId", queryName := some "AttachmentId" }, .string), + ({ name := "DestinationCidr", xmlName := some "destinationCidr", queryName := some "DestinationCidr" }, .string), + ({ name := "PrefixListId", xmlName := some "prefixListId", queryName := some "PrefixListId" }, .string), + ({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, .string), + ({ name := "RouteOrigin", xmlName := some "routeOrigin", queryName := some "RouteOrigin" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, .string)] + toValue x := record [putOpt "AttachmentId" x.attachmentId, putOpt "DestinationCidr" x.destinationCidr, putOpt "PrefixListId" x.prefixListId, putOpt "ResourceId" x.resourceId, putOpt "ResourceType" x.resourceType, putOpt "RouteOrigin" x.routeOrigin, putOpt "State" x.state] + ofValue v := do + let attachmentId ← v.opt "AttachmentId" + let destinationCidr ← v.opt "DestinationCidr" + let prefixListId ← v.opt "PrefixListId" + let resourceId ← v.opt "ResourceId" + let resourceType ← v.opt "ResourceType" + let routeOrigin ← v.opt "RouteOrigin" + let state ← v.opt "State" + return { attachmentId, destinationCidr, prefixListId, resourceId, resourceType, routeOrigin, state } + +inductive TransitGatewayRouteTableState where + | available + | deleted + | deleting + | pending +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayRouteTableState.wire : TransitGatewayRouteTableState → String + | .available => "available" + | .deleted => "deleted" + | .deleting => "deleting" + | .pending => "pending" + +def TransitGatewayRouteTableState.wireValues : List (String × TransitGatewayRouteTableState) := [ + ("available", .available), + ("deleted", .deleted), + ("deleting", .deleting), + ("pending", .pending)] + +def TransitGatewayRouteTableState.ofWire (text : String) : Except String TransitGatewayRouteTableState := + match List.find? (·.1 == text) TransitGatewayRouteTableState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayRouteTableState has no value {text}" + +instance : Key TransitGatewayRouteTableState := ⟨TransitGatewayRouteTableState.wire, TransitGatewayRouteTableState.ofWire⟩ + +instance : Shape TransitGatewayRouteTableState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayRouteTableState.ofWire text + | _ => .error "expected a string" + +inductive TransitGatewayRouteType where + | propagated + | static + | system +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayRouteType.wire : TransitGatewayRouteType → String + | .propagated => "propagated" + | .static => "static" + | .system => "system" + +def TransitGatewayRouteType.wireValues : List (String × TransitGatewayRouteType) := [ + ("propagated", .propagated), + ("static", .static), + ("system", .system)] + +def TransitGatewayRouteType.ofWire (text : String) : Except String TransitGatewayRouteType := + match List.find? (·.1 == text) TransitGatewayRouteType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayRouteType has no value {text}" + +instance : Key TransitGatewayRouteType := ⟨TransitGatewayRouteType.wire, TransitGatewayRouteType.ofWire⟩ + +instance : Shape TransitGatewayRouteType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayRouteType.ofWire text + | _ => .error "expected a string" + +inductive TransitGatewayState where + | available + | deleted + | deleting + | modifying + | pending +deriving DecidableEq, Repr, Inhabited + +def TransitGatewayState.wire : TransitGatewayState → String + | .available => "available" + | .deleted => "deleted" + | .deleting => "deleting" + | .modifying => "modifying" + | .pending => "pending" + +def TransitGatewayState.wireValues : List (String × TransitGatewayState) := [ + ("available", .available), + ("deleted", .deleted), + ("deleting", .deleting), + ("modifying", .modifying), + ("pending", .pending)] + +def TransitGatewayState.ofWire (text : String) : Except String TransitGatewayState := + match List.find? (·.1 == text) TransitGatewayState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitGatewayState has no value {text}" + +instance : Key TransitGatewayState := ⟨TransitGatewayState.wire, TransitGatewayState.ofWire⟩ + +instance : Shape TransitGatewayState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitGatewayState.ofWire text + | _ => .error "expected a string" + +inductive TransportProtocol where + | tcp + | udp +deriving DecidableEq, Repr, Inhabited + +def TransportProtocol.wire : TransportProtocol → String + | .tcp => "tcp" + | .udp => "udp" + +def TransportProtocol.wireValues : List (String × TransportProtocol) := [ + ("tcp", .tcp), + ("udp", .udp)] + +def TransportProtocol.ofWire (text : String) : Except String TransportProtocol := + match List.find? (·.1 == text) TransportProtocol.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransportProtocol has no value {text}" + +instance : Key TransportProtocol := ⟨TransportProtocol.wire, TransportProtocol.ofWire⟩ + +instance : Shape TransportProtocol where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransportProtocol.ofWire text + | _ => .error "expected a string" + +inductive TrustProviderType where + | device + | user +deriving DecidableEq, Repr, Inhabited + +def TrustProviderType.wire : TrustProviderType → String + | .device => "device" + | .user => "user" + +def TrustProviderType.wireValues : List (String × TrustProviderType) := [ + ("device", .device), + ("user", .user)] + +def TrustProviderType.ofWire (text : String) : Except String TrustProviderType := + match List.find? (·.1 == text) TrustProviderType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TrustProviderType has no value {text}" + +instance : Key TrustProviderType := ⟨TrustProviderType.wire, TrustProviderType.ofWire⟩ + +instance : Shape TrustProviderType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TrustProviderType.ofWire text + | _ => .error "expected a string" + +inductive TunnelInsideIpVersion where + | ipv4 + | ipv6 +deriving DecidableEq, Repr, Inhabited + +def TunnelInsideIpVersion.wire : TunnelInsideIpVersion → String + | .ipv4 => "ipv4" + | .ipv6 => "ipv6" + +def TunnelInsideIpVersion.wireValues : List (String × TunnelInsideIpVersion) := [ + ("ipv4", .ipv4), + ("ipv6", .ipv6)] + +def TunnelInsideIpVersion.ofWire (text : String) : Except String TunnelInsideIpVersion := + match List.find? (·.1 == text) TunnelInsideIpVersion.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TunnelInsideIpVersion has no value {text}" + +instance : Key TunnelInsideIpVersion := ⟨TunnelInsideIpVersion.wire, TunnelInsideIpVersion.ofWire⟩ + +instance : Shape TunnelInsideIpVersion where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TunnelInsideIpVersion.ofWire text + | _ => .error "expected a string" + +structure UnassignIpv6AddressesRequest where + /-- The IPv6 addresses to unassign from the network interface. -/ + ipv6Addresses : Option (List String) := none + /-- The IPv6 prefixes to unassign from the network interface. -/ + ipv6Prefixes : Option (List String) := none + /-- The ID of the network interface. -/ + networkInterfaceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape UnassignIpv6AddressesRequest where + schema := .struct "UnassignIpv6AddressesRequest" [({ name := "Ipv6Addresses", xmlName := some "ipv6Addresses", queryName := some "Ipv6Addresses" }, (.list .string "item")), + ({ name := "Ipv6Prefixes", xmlName := some "Ipv6Prefix" }, (.list .string "item")), + ({ name := "NetworkInterfaceId", required := true, xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string)] + toValue x := record [putOpt "Ipv6Addresses" x.ipv6Addresses, putOpt "Ipv6Prefixes" x.ipv6Prefixes, put "NetworkInterfaceId" x.networkInterfaceId] + ofValue v := do + let ipv6Addresses ← v.opt "Ipv6Addresses" + let ipv6Prefixes ← v.opt "Ipv6Prefixes" + let networkInterfaceId ← v.req "NetworkInterfaceId" + return { ipv6Addresses, ipv6Prefixes, networkInterfaceId } + +structure UnassignIpv6AddressesResult where + /-- The ID of the network interface. -/ + networkInterfaceId : Option String := none + /-- The IPv6 addresses that have been unassigned from the network interface. -/ + unassignedIpv6Addresses : Option (List String) := none + /-- The IPv6 prefixes that have been unassigned from the network interface. -/ + unassignedIpv6Prefixes : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UnassignIpv6AddressesResult where + schema := .struct "UnassignIpv6AddressesResult" [({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "UnassignedIpv6Addresses", xmlName := some "unassignedIpv6Addresses", queryName := some "UnassignedIpv6Addresses" }, (.list .string "item")), + ({ name := "UnassignedIpv6Prefixes", xmlName := some "unassignedIpv6PrefixSet", queryName := some "UnassignedIpv6PrefixSet" }, (.list .string "item"))] + toValue x := record [putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "UnassignedIpv6Addresses" x.unassignedIpv6Addresses, putOpt "UnassignedIpv6Prefixes" x.unassignedIpv6Prefixes] + ofValue v := do + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let unassignedIpv6Addresses ← v.opt "UnassignedIpv6Addresses" + let unassignedIpv6Prefixes ← v.opt "UnassignedIpv6Prefixes" + return { networkInterfaceId, unassignedIpv6Addresses, unassignedIpv6Prefixes } + +/-- Contains the parameters for UnassignPrivateIpAddresses. -/ +structure UnassignPrivateIpAddressesRequest where + /-- The IPv4 prefixes to unassign from the network interface. -/ + ipv4Prefixes : Option (List String) := none + /-- The ID of the network interface. -/ + networkInterfaceId : String + /-- The secondary private IP addresses to unassign from the network interface. -/ + privateIpAddresses : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UnassignPrivateIpAddressesRequest where + schema := .struct "UnassignPrivateIpAddressesRequest" [({ name := "Ipv4Prefixes", xmlName := some "Ipv4Prefix" }, (.list .string "item")), + ({ name := "NetworkInterfaceId", required := true, xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "PrivateIpAddresses", xmlName := some "privateIpAddress", queryName := some "PrivateIpAddress" }, (.list .string "PrivateIpAddress"))] + toValue x := record [putOpt "Ipv4Prefixes" x.ipv4Prefixes, put "NetworkInterfaceId" x.networkInterfaceId, putOpt "PrivateIpAddresses" x.privateIpAddresses] + ofValue v := do + let ipv4Prefixes ← v.opt "Ipv4Prefixes" + let networkInterfaceId ← v.req "NetworkInterfaceId" + let privateIpAddresses ← v.opt "PrivateIpAddresses" + return { ipv4Prefixes, networkInterfaceId, privateIpAddresses } + +structure UnassignPrivateNatGatewayAddressRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum amount of time to wait (in seconds) before forcibly releasing the IP addresses if connections are still in progress. -/ + maxDrainDurationSeconds : Option Int := none + /-- The ID of the NAT gateway. -/ + natGatewayId : String + /-- The private IPv4 addresses you want to unassign. -/ + privateIpAddresses : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape UnassignPrivateNatGatewayAddressRequest where + schema := .struct "UnassignPrivateNatGatewayAddressRequest" [({ name := "DryRun" }, .bool), + ({ name := "MaxDrainDurationSeconds" }, .int), + ({ name := "NatGatewayId", required := true }, .string), + ({ name := "PrivateIpAddresses", required := true, xmlName := some "PrivateIpAddress" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "MaxDrainDurationSeconds" x.maxDrainDurationSeconds, put "NatGatewayId" x.natGatewayId, put "PrivateIpAddresses" x.privateIpAddresses] + ofValue v := do + let dryRun ← v.opt "DryRun" + let maxDrainDurationSeconds ← v.opt "MaxDrainDurationSeconds" + let natGatewayId ← v.req "NatGatewayId" + let privateIpAddresses ← v.req "PrivateIpAddresses" + return { dryRun, maxDrainDurationSeconds, natGatewayId, privateIpAddresses } + +inductive UnlimitedSupportedInstanceFamily where + | t2 + | t3 + | t3a + | t4g + | t8i +deriving DecidableEq, Repr, Inhabited + +def UnlimitedSupportedInstanceFamily.wire : UnlimitedSupportedInstanceFamily → String + | .t2 => "t2" + | .t3 => "t3" + | .t3a => "t3a" + | .t4g => "t4g" + | .t8i => "t8i" + +def UnlimitedSupportedInstanceFamily.wireValues : List (String × UnlimitedSupportedInstanceFamily) := [ + ("t2", .t2), + ("t3", .t3), + ("t3a", .t3a), + ("t4g", .t4g), + ("t8i", .t8i)] + +def UnlimitedSupportedInstanceFamily.ofWire (text : String) : Except String UnlimitedSupportedInstanceFamily := + match List.find? (·.1 == text) UnlimitedSupportedInstanceFamily.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"UnlimitedSupportedInstanceFamily has no value {text}" + +instance : Key UnlimitedSupportedInstanceFamily := ⟨UnlimitedSupportedInstanceFamily.wire, UnlimitedSupportedInstanceFamily.ofWire⟩ + +instance : Shape UnlimitedSupportedInstanceFamily where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => UnlimitedSupportedInstanceFamily.ofWire text + | _ => .error "expected a string" + +structure UnlockSnapshotRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the snapshot to unlock. -/ + snapshotId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape UnlockSnapshotRequest where + schema := .struct "UnlockSnapshotRequest" [({ name := "DryRun" }, .bool), + ({ name := "SnapshotId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "SnapshotId" x.snapshotId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let snapshotId ← v.req "SnapshotId" + return { dryRun, snapshotId } + +structure UnlockSnapshotResult where + /-- The ID of the snapshot. -/ + snapshotId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UnlockSnapshotResult where + schema := .struct "UnlockSnapshotResult" [({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string)] + toValue x := record [putOpt "SnapshotId" x.snapshotId] + ofValue v := do + let snapshotId ← v.opt "SnapshotId" + return { snapshotId } + +structure UnmonitorInstancesRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the instances. -/ + instanceIds : (List String) + /-- The IDs of the metric categories to remove from the instances. -/ + metricCategoryIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UnmonitorInstancesRequest where + schema := .struct "UnmonitorInstancesRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "InstanceIds", required := true, xmlName := some "InstanceId" }, (.list .string "InstanceId")), + ({ name := "MetricCategoryIds", xmlName := some "MetricCategoryId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceIds" x.instanceIds, putOpt "MetricCategoryIds" x.metricCategoryIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceIds ← v.req "InstanceIds" + let metricCategoryIds ← v.opt "MetricCategoryIds" + return { dryRun, instanceIds, metricCategoryIds } + +/-- Describes an unsuccessful application status check association. -/ +structure UnsuccessfulAssociationResponseObject where + /-- The ID of the application status check. -/ + applicationStatusCheckId : Option String := none + /-- The type of association. -/ + associationType : Option String := none + /-- The association value. -/ + associationValue : Option String := none + /-- The reason the association failed. -/ + reason : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UnsuccessfulAssociationResponseObject where + schema := .struct "UnsuccessfulAssociationResponseObject" [({ name := "ApplicationStatusCheckId", xmlName := some "applicationStatusCheckId", queryName := some "ApplicationStatusCheckId" }, .string), + ({ name := "AssociationType", xmlName := some "associationType", queryName := some "AssociationType" }, .string), + ({ name := "AssociationValue", xmlName := some "associationValue", queryName := some "AssociationValue" }, .string), + ({ name := "Reason", xmlName := some "reason", queryName := some "Reason" }, .string)] + toValue x := record [putOpt "ApplicationStatusCheckId" x.applicationStatusCheckId, putOpt "AssociationType" x.associationType, putOpt "AssociationValue" x.associationValue, putOpt "Reason" x.reason] + ofValue v := do + let applicationStatusCheckId ← v.opt "ApplicationStatusCheckId" + let associationType ← v.opt "AssociationType" + let associationValue ← v.opt "AssociationValue" + let reason ← v.opt "Reason" + return { applicationStatusCheckId, associationType, associationValue, reason } + +inductive UnsuccessfulInstanceCreditSpecificationErrorCode where + | incorrecT_INSTANCE_STATE + | instancE_CREDIT_SPECIFICATION_NOT_SUPPORTED + | instancE_NOT_FOUND + | invaliD_INSTANCE_ID +deriving DecidableEq, Repr, Inhabited + +def UnsuccessfulInstanceCreditSpecificationErrorCode.wire : UnsuccessfulInstanceCreditSpecificationErrorCode → String + | .incorrecT_INSTANCE_STATE => "IncorrectInstanceState" + | .instancE_CREDIT_SPECIFICATION_NOT_SUPPORTED => "InstanceCreditSpecification.NotSupported" + | .instancE_NOT_FOUND => "InvalidInstanceID.NotFound" + | .invaliD_INSTANCE_ID => "InvalidInstanceID.Malformed" + +def UnsuccessfulInstanceCreditSpecificationErrorCode.wireValues : List (String × UnsuccessfulInstanceCreditSpecificationErrorCode) := [ + ("IncorrectInstanceState", .incorrecT_INSTANCE_STATE), + ("InstanceCreditSpecification.NotSupported", .instancE_CREDIT_SPECIFICATION_NOT_SUPPORTED), + ("InvalidInstanceID.NotFound", .instancE_NOT_FOUND), + ("InvalidInstanceID.Malformed", .invaliD_INSTANCE_ID)] + +def UnsuccessfulInstanceCreditSpecificationErrorCode.ofWire (text : String) : Except String UnsuccessfulInstanceCreditSpecificationErrorCode := + match List.find? (·.1 == text) UnsuccessfulInstanceCreditSpecificationErrorCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"UnsuccessfulInstanceCreditSpecificationErrorCode has no value {text}" + +instance : Key UnsuccessfulInstanceCreditSpecificationErrorCode := ⟨UnsuccessfulInstanceCreditSpecificationErrorCode.wire, UnsuccessfulInstanceCreditSpecificationErrorCode.ofWire⟩ + +instance : Shape UnsuccessfulInstanceCreditSpecificationErrorCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => UnsuccessfulInstanceCreditSpecificationErrorCode.ofWire text + | _ => .error "expected a string" + +/-- Information about the error that occurred. -/ +structure UnsuccessfulItemError where + /-- The error code. -/ + code : Option String := none + /-- The error message accompanying the error code. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UnsuccessfulItemError where + schema := .struct "UnsuccessfulItemError" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, .string), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +/-- Describes an unsuccessful application status check suppression. -/ +structure UnsuccessfulSuppressionResponseObject where + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- The reason the suppression failed. -/ + reason : Option String := none + /-- The date and time when health checks would have resumed. -/ + resumeAt : Option Timestamp := none + /-- The date and time when suppression was attempted. -/ + suppressAt : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UnsuccessfulSuppressionResponseObject where + schema := .struct "UnsuccessfulSuppressionResponseObject" [({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "Reason", xmlName := some "reason", queryName := some "Reason" }, .string), + ({ name := "ResumeAt", xmlName := some "resumeAt", queryName := some "ResumeAt" }, (.time none)), + ({ name := "SuppressAt", xmlName := some "suppressAt", queryName := some "SuppressAt" }, (.time none))] + toValue x := record [putOpt "InstanceId" x.instanceId, putOpt "Reason" x.reason, putOpt "ResumeAt" x.resumeAt, putOpt "SuppressAt" x.suppressAt] + ofValue v := do + let instanceId ← v.opt "InstanceId" + let reason ← v.opt "Reason" + let resumeAt ← v.opt "ResumeAt" + let suppressAt ← v.opt "SuppressAt" + return { instanceId, reason, resumeAt, suppressAt } + +structure UpdateCapacityManagerMonitoredTagKeysRequest where + /-- The tag keys to activate for monitoring. -/ + activateTagKeys : Option (List String) := none + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The tag keys to deactivate. -/ + deactivateTagKeys : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateCapacityManagerMonitoredTagKeysRequest where + schema := .struct "UpdateCapacityManagerMonitoredTagKeysRequest" [({ name := "ActivateTagKeys", xmlName := some "ActivateTagKey" }, (.list .string "item")), + ({ name := "ClientToken" }, .string), + ({ name := "DeactivateTagKeys", xmlName := some "DeactivateTagKey" }, (.list .string "item")), + ({ name := "DryRun" }, .bool)] + toValue x := record [putOpt "ActivateTagKeys" x.activateTagKeys, putOpt "ClientToken" x.clientToken, putOpt "DeactivateTagKeys" x.deactivateTagKeys, putOpt "DryRun" x.dryRun] + ofValue v := do + let activateTagKeys ← v.opt "ActivateTagKeys" + let clientToken ← v.opt "ClientToken" + let deactivateTagKeys ← v.opt "DeactivateTagKeys" + let dryRun ← v.opt "DryRun" + return { activateTagKeys, clientToken, deactivateTagKeys, dryRun } + +structure UpdateCapacityManagerOrganizationsAccessRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Specifies whether to enable or disable cross-account access for Amazon Web Services Organizations. -/ + organizationsAccess : Bool +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateCapacityManagerOrganizationsAccessRequest where + schema := .struct "UpdateCapacityManagerOrganizationsAccessRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "OrganizationsAccess", required := true }, .bool)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "OrganizationsAccess" x.organizationsAccess] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let organizationsAccess ← v.req "OrganizationsAccess" + return { clientToken, dryRun, organizationsAccess } + +structure UpdateSecurityGroupRuleDescriptionsEgressResult where + /-- Returns true if the request succeeds; otherwise, returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateSecurityGroupRuleDescriptionsEgressResult where + schema := .struct "UpdateSecurityGroupRuleDescriptionsEgressResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +structure UpdateSecurityGroupRuleDescriptionsIngressResult where + /-- Returns true if the request succeeds; otherwise, returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateSecurityGroupRuleDescriptionsIngressResult where + schema := .struct "UpdateSecurityGroupRuleDescriptionsIngressResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "Return" x.«return»] + ofValue v := do + let «return» ← v.opt "Return" + return { «return» } + +inductive UsageClassType where + | capacity_block + | on_demand + | spot +deriving DecidableEq, Repr, Inhabited + +def UsageClassType.wire : UsageClassType → String + | .capacity_block => "capacity-block" + | .on_demand => "on-demand" + | .spot => "spot" + +def UsageClassType.wireValues : List (String × UsageClassType) := [ + ("capacity-block", .capacity_block), + ("on-demand", .on_demand), + ("spot", .spot)] + +def UsageClassType.ofWire (text : String) : Except String UsageClassType := + match List.find? (·.1 == text) UsageClassType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"UsageClassType has no value {text}" + +instance : Key UsageClassType := ⟨UsageClassType.wire, UsageClassType.ofWire⟩ + +instance : Shape UsageClassType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => UsageClassType.ofWire text + | _ => .error "expected a string" + +/-- Describes the Amazon S3 bucket for the disk image. -/ +structure UserBucket where + /-- The name of the Amazon S3 bucket where the disk image is located. -/ + s3Bucket : Option String := none + /-- The file name of the disk image. -/ + s3Key : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UserBucket where + schema := .struct "UserBucket" [({ name := "S3Bucket" }, .string), + ({ name := "S3Key" }, .string)] + toValue x := record [putOpt "S3Bucket" x.s3Bucket, putOpt "S3Key" x.s3Key] + ofValue v := do + let s3Bucket ← v.opt "S3Bucket" + let s3Key ← v.opt "S3Key" + return { s3Bucket, s3Key } + +/-- Describes the Amazon S3 bucket for the disk image. -/ +structure UserBucketDetails where + /-- The Amazon S3 bucket from which the disk image was created. -/ + s3Bucket : Option String := none + /-- The file name of the disk image. -/ + s3Key : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UserBucketDetails where + schema := .struct "UserBucketDetails" [({ name := "S3Bucket", xmlName := some "s3Bucket", queryName := some "S3Bucket" }, .string), + ({ name := "S3Key", xmlName := some "s3Key", queryName := some "S3Key" }, .string)] + toValue x := record [putOpt "S3Bucket" x.s3Bucket, putOpt "S3Key" x.s3Key] + ofValue v := do + let s3Bucket ← v.opt "S3Bucket" + let s3Key ← v.opt "S3Key" + return { s3Bucket, s3Key } + +/-- Describes the user data for an instance. -/ +structure UserData where + /-- The user data. -/ + data : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UserData where + schema := .struct "UserData" [({ name := "Data", xmlName := some "data", queryName := some "Data" }, .string)] + toValue x := record [putOpt "Data" x.data] + ofValue v := do + let data ← v.opt "Data" + return { data } + +/-- Describes a security group and Amazon Web Services account ID pair. -/ +structure UserIdGroupPair where + /-- A description for the security group rule that references this user ID group pair. -/ + description : Option String := none + /-- The ID of the security group. -/ + groupId : Option String := none + /-- [Default VPC] The name of the security group. -/ + groupName : Option String := none + /-- The status of a VPC peering connection, if applicable. -/ + peeringStatus : Option String := none + /-- The ID of an Amazon Web Services account. -/ + userId : Option String := none + /-- The ID of the VPC for the referenced security group, if applicable. -/ + vpcId : Option String := none + /-- The ID of the VPC peering connection, if applicable. -/ + vpcPeeringConnectionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UserIdGroupPair where + schema := .struct "UserIdGroupPair" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "GroupId", xmlName := some "groupId", queryName := some "GroupId" }, .string), + ({ name := "GroupName", xmlName := some "groupName", queryName := some "GroupName" }, .string), + ({ name := "PeeringStatus", xmlName := some "peeringStatus", queryName := some "PeeringStatus" }, .string), + ({ name := "UserId", xmlName := some "userId", queryName := some "UserId" }, .string), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string), + ({ name := "VpcPeeringConnectionId", xmlName := some "vpcPeeringConnectionId", queryName := some "VpcPeeringConnectionId" }, .string)] + toValue x := record [putOpt "Description" x.description, putOpt "GroupId" x.groupId, putOpt "GroupName" x.groupName, putOpt "PeeringStatus" x.peeringStatus, putOpt "UserId" x.userId, putOpt "VpcId" x.vpcId, putOpt "VpcPeeringConnectionId" x.vpcPeeringConnectionId] + ofValue v := do + let description ← v.opt "Description" + let groupId ← v.opt "GroupId" + let groupName ← v.opt "GroupName" + let peeringStatus ← v.opt "PeeringStatus" + let userId ← v.opt "UserId" + let vpcId ← v.opt "VpcId" + let vpcPeeringConnectionId ← v.opt "VpcPeeringConnectionId" + return { description, groupId, groupName, peeringStatus, userId, vpcId, vpcPeeringConnectionId } + +inductive UserTrustProviderType where + | iam_identity_center + | oidc +deriving DecidableEq, Repr, Inhabited + +def UserTrustProviderType.wire : UserTrustProviderType → String + | .iam_identity_center => "iam-identity-center" + | .oidc => "oidc" + +def UserTrustProviderType.wireValues : List (String × UserTrustProviderType) := [ + ("iam-identity-center", .iam_identity_center), + ("oidc", .oidc)] + +def UserTrustProviderType.ofWire (text : String) : Except String UserTrustProviderType := + match List.find? (·.1 == text) UserTrustProviderType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"UserTrustProviderType has no value {text}" + +instance : Key UserTrustProviderType := ⟨UserTrustProviderType.wire, UserTrustProviderType.ofWire⟩ + +instance : Shape UserTrustProviderType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => UserTrustProviderType.ofWire text + | _ => .error "expected a string" + +/-- The minimum and maximum number of vCPUs. -/ +structure VCpuCountRange where + /-- The maximum number of vCPUs. -/ + max : Option Int := none + /-- The minimum number of vCPUs. -/ + min : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VCpuCountRange where + schema := .struct "VCpuCountRange" [({ name := "Max", xmlName := some "max", queryName := some "Max" }, .int), + ({ name := "Min", xmlName := some "min", queryName := some "Min" }, .int)] + toValue x := record [putOpt "Max" x.max, putOpt "Min" x.min] + ofValue v := do + let max ← v.opt "Max" + let min ← v.opt "Min" + return { max, min } + +/-- The minimum and maximum number of vCPUs. -/ +structure VCpuCountRangeRequest where + /-- The maximum number of vCPUs. -/ + max : Option Int := none + /-- The minimum number of vCPUs. -/ + min : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape VCpuCountRangeRequest where + schema := .struct "VCpuCountRangeRequest" [({ name := "Max" }, .int), + ({ name := "Min", required := true }, .int)] + toValue x := record [putOpt "Max" x.max, put "Min" x.min] + ofValue v := do + let max ← v.opt "Max" + let min ← v.req "Min" + return { max, min } + +/-- Describes the vCPU configurations for the instance type. -/ +structure VCpuInfo where + /-- The default number of cores for the instance type. -/ + defaultCores : Option Int := none + /-- The default number of threads per core for the instance type. -/ + defaultThreadsPerCore : Option Int := none + /-- The default number of vCPUs for the instance type. -/ + defaultVCpus : Option Int := none + /-- The valid number of cores that can be configured for the instance type. -/ + validCores : Option (List Int) := none + /-- The valid number of threads per core that can be configured for the instance type. -/ + validThreadsPerCore : Option (List Int) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VCpuInfo where + schema := .struct "VCpuInfo" [({ name := "DefaultCores", xmlName := some "defaultCores", queryName := some "DefaultCores" }, .int), + ({ name := "DefaultThreadsPerCore", xmlName := some "defaultThreadsPerCore", queryName := some "DefaultThreadsPerCore" }, .int), + ({ name := "DefaultVCpus", xmlName := some "defaultVCpus", queryName := some "DefaultVCpus" }, .int), + ({ name := "ValidCores", xmlName := some "validCores", queryName := some "ValidCores" }, (.list .int "item")), + ({ name := "ValidThreadsPerCore", xmlName := some "validThreadsPerCore", queryName := some "ValidThreadsPerCore" }, (.list .int "item"))] + toValue x := record [putOpt "DefaultCores" x.defaultCores, putOpt "DefaultThreadsPerCore" x.defaultThreadsPerCore, putOpt "DefaultVCpus" x.defaultVCpus, putOpt "ValidCores" x.validCores, putOpt "ValidThreadsPerCore" x.validThreadsPerCore] + ofValue v := do + let defaultCores ← v.opt "DefaultCores" + let defaultThreadsPerCore ← v.opt "DefaultThreadsPerCore" + let defaultVCpus ← v.opt "DefaultVCpus" + let validCores ← v.opt "ValidCores" + let validThreadsPerCore ← v.opt "ValidThreadsPerCore" + return { defaultCores, defaultThreadsPerCore, defaultVCpus, validCores, validThreadsPerCore } + +structure ValidateSecurityGroupQuotasForInterfaceRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the security groups to validate for association with a single network interface. -/ + securityGroupIds : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape ValidateSecurityGroupQuotasForInterfaceRequest where + schema := .struct "ValidateSecurityGroupQuotasForInterfaceRequest" [({ name := "DryRun" }, .bool), + ({ name := "SecurityGroupIds", required := true, xmlName := some "SecurityGroupId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "SecurityGroupIds" x.securityGroupIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let securityGroupIds ← v.req "SecurityGroupIds" + return { dryRun, securityGroupIds } + +structure ValidateSecurityGroupQuotasForInterfaceResult where + /-- Specifies whether the specified security groups can be associated with a single network interface without exceeding the quotas. -/ + valid : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ValidateSecurityGroupQuotasForInterfaceResult where + schema := .struct "ValidateSecurityGroupQuotasForInterfaceResult" [({ name := "Valid", xmlName := some "valid", queryName := some "Valid" }, .bool)] + toValue x := record [putOpt "Valid" x.valid] + ofValue v := do + let valid ← v.opt "Valid" + return { valid } + +/-- The error code and error message that is returned for a parameter or parameter combination that is not valid when a new launch template or new version of a launch template is created. -/ +structure ValidationError where + /-- The error code that indicates why the parameter or parameter combination is not valid. -/ + code : Option String := none + /-- The error message that describes why the parameter or parameter combination is not valid. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ValidationError where + schema := .struct "ValidationError" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, .string), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +inductive VerificationMethod where + | dns_token + | remarks_x509 +deriving DecidableEq, Repr, Inhabited + +def VerificationMethod.wire : VerificationMethod → String + | .dns_token => "dns-token" + | .remarks_x509 => "remarks-x509" + +def VerificationMethod.wireValues : List (String × VerificationMethod) := [ + ("dns-token", .dns_token), + ("remarks-x509", .remarks_x509)] + +def VerificationMethod.ofWire (text : String) : Except String VerificationMethod := + match List.find? (·.1 == text) VerificationMethod.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VerificationMethod has no value {text}" + +instance : Key VerificationMethod := ⟨VerificationMethod.wire, VerificationMethod.ofWire⟩ + +instance : Shape VerificationMethod where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VerificationMethod.ofWire text + | _ => .error "expected a string" + +inductive VerifiedAccessEndpointAttachmentType where + | vpc +deriving DecidableEq, Repr, Inhabited + +def VerifiedAccessEndpointAttachmentType.wire : VerifiedAccessEndpointAttachmentType → String + | .vpc => "vpc" + +def VerifiedAccessEndpointAttachmentType.wireValues : List (String × VerifiedAccessEndpointAttachmentType) := [ + ("vpc", .vpc)] + +def VerifiedAccessEndpointAttachmentType.ofWire (text : String) : Except String VerifiedAccessEndpointAttachmentType := + match List.find? (·.1 == text) VerifiedAccessEndpointAttachmentType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VerifiedAccessEndpointAttachmentType has no value {text}" + +instance : Key VerifiedAccessEndpointAttachmentType := ⟨VerifiedAccessEndpointAttachmentType.wire, VerifiedAccessEndpointAttachmentType.ofWire⟩ + +instance : Shape VerifiedAccessEndpointAttachmentType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VerifiedAccessEndpointAttachmentType.ofWire text + | _ => .error "expected a string" + +/-- Describes a port range. -/ +structure VerifiedAccessEndpointPortRange where + /-- The start of the port range. -/ + fromPort : Option Int := none + /-- The end of the port range. -/ + toPort : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessEndpointPortRange where + schema := .struct "VerifiedAccessEndpointPortRange" [({ name := "FromPort", xmlName := some "fromPort", queryName := some "FromPort" }, .int), + ({ name := "ToPort", xmlName := some "toPort", queryName := some "ToPort" }, .int)] + toValue x := record [putOpt "FromPort" x.fromPort, putOpt "ToPort" x.toPort] + ofValue v := do + let fromPort ← v.opt "FromPort" + let toPort ← v.opt "ToPort" + return { fromPort, toPort } + +inductive VerifiedAccessEndpointProtocol where + | http + | https + | tcp +deriving DecidableEq, Repr, Inhabited + +def VerifiedAccessEndpointProtocol.wire : VerifiedAccessEndpointProtocol → String + | .http => "http" + | .https => "https" + | .tcp => "tcp" + +def VerifiedAccessEndpointProtocol.wireValues : List (String × VerifiedAccessEndpointProtocol) := [ + ("http", .http), + ("https", .https), + ("tcp", .tcp)] + +def VerifiedAccessEndpointProtocol.ofWire (text : String) : Except String VerifiedAccessEndpointProtocol := + match List.find? (·.1 == text) VerifiedAccessEndpointProtocol.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VerifiedAccessEndpointProtocol has no value {text}" + +instance : Key VerifiedAccessEndpointProtocol := ⟨VerifiedAccessEndpointProtocol.wire, VerifiedAccessEndpointProtocol.ofWire⟩ + +instance : Shape VerifiedAccessEndpointProtocol where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VerifiedAccessEndpointProtocol.ofWire text + | _ => .error "expected a string" + +inductive VerifiedAccessEndpointStatusCode where + | active + | deleted + | deleting + | pending + | updating +deriving DecidableEq, Repr, Inhabited + +def VerifiedAccessEndpointStatusCode.wire : VerifiedAccessEndpointStatusCode → String + | .active => "active" + | .deleted => "deleted" + | .deleting => "deleting" + | .pending => "pending" + | .updating => "updating" + +def VerifiedAccessEndpointStatusCode.wireValues : List (String × VerifiedAccessEndpointStatusCode) := [ + ("active", .active), + ("deleted", .deleted), + ("deleting", .deleting), + ("pending", .pending), + ("updating", .updating)] + +def VerifiedAccessEndpointStatusCode.ofWire (text : String) : Except String VerifiedAccessEndpointStatusCode := + match List.find? (·.1 == text) VerifiedAccessEndpointStatusCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VerifiedAccessEndpointStatusCode has no value {text}" + +instance : Key VerifiedAccessEndpointStatusCode := ⟨VerifiedAccessEndpointStatusCode.wire, VerifiedAccessEndpointStatusCode.ofWire⟩ + +instance : Shape VerifiedAccessEndpointStatusCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VerifiedAccessEndpointStatusCode.ofWire text + | _ => .error "expected a string" + +/-- Describes the targets for the specified Verified Access endpoint. -/ +structure VerifiedAccessEndpointTarget where + /-- The ID of the Verified Access endpoint. -/ + verifiedAccessEndpointId : Option String := none + /-- The DNS name of the target. -/ + verifiedAccessEndpointTargetDns : Option String := none + /-- The IP address of the target. -/ + verifiedAccessEndpointTargetIpAddress : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessEndpointTarget where + schema := .struct "VerifiedAccessEndpointTarget" [({ name := "VerifiedAccessEndpointId", xmlName := some "verifiedAccessEndpointId", queryName := some "VerifiedAccessEndpointId" }, .string), + ({ name := "VerifiedAccessEndpointTargetDns", xmlName := some "verifiedAccessEndpointTargetDns", queryName := some "VerifiedAccessEndpointTargetDns" }, .string), + ({ name := "VerifiedAccessEndpointTargetIpAddress", xmlName := some "verifiedAccessEndpointTargetIpAddress", queryName := some "VerifiedAccessEndpointTargetIpAddress" }, .string)] + toValue x := record [putOpt "VerifiedAccessEndpointId" x.verifiedAccessEndpointId, putOpt "VerifiedAccessEndpointTargetDns" x.verifiedAccessEndpointTargetDns, putOpt "VerifiedAccessEndpointTargetIpAddress" x.verifiedAccessEndpointTargetIpAddress] + ofValue v := do + let verifiedAccessEndpointId ← v.opt "VerifiedAccessEndpointId" + let verifiedAccessEndpointTargetDns ← v.opt "VerifiedAccessEndpointTargetDns" + let verifiedAccessEndpointTargetIpAddress ← v.opt "VerifiedAccessEndpointTargetIpAddress" + return { verifiedAccessEndpointId, verifiedAccessEndpointTargetDns, verifiedAccessEndpointTargetIpAddress } + +inductive VerifiedAccessEndpointType where + | cidr + | load_balancer + | network_interface + | rds +deriving DecidableEq, Repr, Inhabited + +def VerifiedAccessEndpointType.wire : VerifiedAccessEndpointType → String + | .cidr => "cidr" + | .load_balancer => "load-balancer" + | .network_interface => "network-interface" + | .rds => "rds" + +def VerifiedAccessEndpointType.wireValues : List (String × VerifiedAccessEndpointType) := [ + ("cidr", .cidr), + ("load-balancer", .load_balancer), + ("network-interface", .network_interface), + ("rds", .rds)] + +def VerifiedAccessEndpointType.ofWire (text : String) : Except String VerifiedAccessEndpointType := + match List.find? (·.1 == text) VerifiedAccessEndpointType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VerifiedAccessEndpointType has no value {text}" + +instance : Key VerifiedAccessEndpointType := ⟨VerifiedAccessEndpointType.wire, VerifiedAccessEndpointType.ofWire⟩ + +instance : Shape VerifiedAccessEndpointType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VerifiedAccessEndpointType.ofWire text + | _ => .error "expected a string" + +/-- Describes a custom subdomain for a network CIDR endpoint for Verified Access. -/ +structure VerifiedAccessInstanceCustomSubDomain where + /-- The name servers. -/ + nameservers : Option (List String) := none + /-- The subdomain. -/ + subDomain : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessInstanceCustomSubDomain where + schema := .struct "VerifiedAccessInstanceCustomSubDomain" [({ name := "Nameservers", xmlName := some "nameserverSet", queryName := some "NameserverSet" }, (.list .string "item")), + ({ name := "SubDomain", xmlName := some "subDomain", queryName := some "SubDomain" }, .string)] + toValue x := record [putOpt "Nameservers" x.nameservers, putOpt "SubDomain" x.subDomain] + ofValue v := do + let nameservers ← v.opt "Nameservers" + let subDomain ← v.opt "SubDomain" + return { nameservers, subDomain } + +/-- Describes a route. -/ +structure VerifiedAccessInstanceOpenVpnClientConfigurationRoute where + /-- The CIDR block. -/ + cidr : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessInstanceOpenVpnClientConfigurationRoute where + schema := .struct "VerifiedAccessInstanceOpenVpnClientConfigurationRoute" [({ name := "Cidr", xmlName := some "cidr", queryName := some "Cidr" }, .string)] + toValue x := record [putOpt "Cidr" x.cidr] + ofValue v := do + let cidr ← v.opt "Cidr" + return { cidr } + +/-- Options for CloudWatch Logs as a logging destination. -/ +structure VerifiedAccessLogCloudWatchLogsDestinationOptions where + /-- Indicates whether logging is enabled. -/ + enabled : Bool + /-- The ID of the CloudWatch Logs log group. -/ + logGroup : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessLogCloudWatchLogsDestinationOptions where + schema := .struct "VerifiedAccessLogCloudWatchLogsDestinationOptions" [({ name := "Enabled", required := true }, .bool), + ({ name := "LogGroup" }, .string)] + toValue x := record [put "Enabled" x.enabled, putOpt "LogGroup" x.logGroup] + ofValue v := do + let enabled ← v.req "Enabled" + let logGroup ← v.opt "LogGroup" + return { enabled, logGroup } + +inductive VerifiedAccessLogDeliveryStatusCode where + | failed + | success +deriving DecidableEq, Repr, Inhabited + +def VerifiedAccessLogDeliveryStatusCode.wire : VerifiedAccessLogDeliveryStatusCode → String + | .failed => "failed" + | .success => "success" + +def VerifiedAccessLogDeliveryStatusCode.wireValues : List (String × VerifiedAccessLogDeliveryStatusCode) := [ + ("failed", .failed), + ("success", .success)] + +def VerifiedAccessLogDeliveryStatusCode.ofWire (text : String) : Except String VerifiedAccessLogDeliveryStatusCode := + match List.find? (·.1 == text) VerifiedAccessLogDeliveryStatusCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VerifiedAccessLogDeliveryStatusCode has no value {text}" + +instance : Key VerifiedAccessLogDeliveryStatusCode := ⟨VerifiedAccessLogDeliveryStatusCode.wire, VerifiedAccessLogDeliveryStatusCode.ofWire⟩ + +instance : Shape VerifiedAccessLogDeliveryStatusCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VerifiedAccessLogDeliveryStatusCode.ofWire text + | _ => .error "expected a string" + +/-- Describes Amazon Kinesis Data Firehose logging options. -/ +structure VerifiedAccessLogKinesisDataFirehoseDestinationOptions where + /-- The ID of the delivery stream. -/ + deliveryStream : Option String := none + /-- Indicates whether logging is enabled. -/ + enabled : Bool +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessLogKinesisDataFirehoseDestinationOptions where + schema := .struct "VerifiedAccessLogKinesisDataFirehoseDestinationOptions" [({ name := "DeliveryStream" }, .string), + ({ name := "Enabled", required := true }, .bool)] + toValue x := record [putOpt "DeliveryStream" x.deliveryStream, put "Enabled" x.enabled] + ofValue v := do + let deliveryStream ← v.opt "DeliveryStream" + let enabled ← v.req "Enabled" + return { deliveryStream, enabled } + +/-- Options for Amazon S3 as a logging destination. -/ +structure VerifiedAccessLogS3DestinationOptions where + /-- The bucket name. -/ + bucketName : Option String := none + /-- The ID of the Amazon Web Services account that owns the Amazon S3 bucket. -/ + bucketOwner : Option String := none + /-- Indicates whether logging is enabled. -/ + enabled : Bool + /-- The bucket prefix. -/ + «prefix» : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessLogS3DestinationOptions where + schema := .struct "VerifiedAccessLogS3DestinationOptions" [({ name := "BucketName" }, .string), + ({ name := "BucketOwner" }, .string), + ({ name := "Enabled", required := true }, .bool), + ({ name := "Prefix" }, .string)] + toValue x := record [putOpt "BucketName" x.bucketName, putOpt "BucketOwner" x.bucketOwner, put "Enabled" x.enabled, putOpt "Prefix" x.«prefix»] + ofValue v := do + let bucketName ← v.opt "BucketName" + let bucketOwner ← v.opt "BucketOwner" + let enabled ← v.req "Enabled" + let «prefix» ← v.opt "Prefix" + return { bucketName, bucketOwner, enabled, «prefix» } + +/-- Verified Access provides server side encryption by default to data at rest using Amazon Web Services-owned KMS keys. -/ +structure VerifiedAccessSseSpecificationRequest where + /-- Enable or disable the use of customer managed KMS keys for server side encryption. -/ + customerManagedKeyEnabled : Option Bool := none + /-- The ARN of the KMS key. -/ + kmsKeyArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessSseSpecificationRequest where + schema := .struct "VerifiedAccessSseSpecificationRequest" [({ name := "CustomerManagedKeyEnabled" }, .bool), + ({ name := "KmsKeyArn" }, .string)] + toValue x := record [putOpt "CustomerManagedKeyEnabled" x.customerManagedKeyEnabled, putOpt "KmsKeyArn" x.kmsKeyArn] + ofValue v := do + let customerManagedKeyEnabled ← v.opt "CustomerManagedKeyEnabled" + let kmsKeyArn ← v.opt "KmsKeyArn" + return { customerManagedKeyEnabled, kmsKeyArn } + +/-- The options in use for server side encryption. -/ +structure VerifiedAccessSseSpecificationResponse where + /-- Indicates whether customer managed KMS keys are in use for server side encryption. -/ + customerManagedKeyEnabled : Option Bool := none + /-- The ARN of the KMS key. -/ + kmsKeyArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessSseSpecificationResponse where + schema := .struct "VerifiedAccessSseSpecificationResponse" [({ name := "CustomerManagedKeyEnabled", xmlName := some "customerManagedKeyEnabled", queryName := some "CustomerManagedKeyEnabled" }, .bool), + ({ name := "KmsKeyArn", xmlName := some "kmsKeyArn", queryName := some "KmsKeyArn" }, .string)] + toValue x := record [putOpt "CustomerManagedKeyEnabled" x.customerManagedKeyEnabled, putOpt "KmsKeyArn" x.kmsKeyArn] + ofValue v := do + let customerManagedKeyEnabled ← v.opt "CustomerManagedKeyEnabled" + let kmsKeyArn ← v.opt "KmsKeyArn" + return { customerManagedKeyEnabled, kmsKeyArn } + +inductive VirtualizationType where + | hvm + | paravirtual +deriving DecidableEq, Repr, Inhabited + +def VirtualizationType.wire : VirtualizationType → String + | .hvm => "hvm" + | .paravirtual => "paravirtual" + +def VirtualizationType.wireValues : List (String × VirtualizationType) := [ + ("hvm", .hvm), + ("paravirtual", .paravirtual)] + +def VirtualizationType.ofWire (text : String) : Except String VirtualizationType := + match List.find? (·.1 == text) VirtualizationType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VirtualizationType has no value {text}" + +instance : Key VirtualizationType := ⟨VirtualizationType.wire, VirtualizationType.ofWire⟩ + +instance : Shape VirtualizationType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VirtualizationType.ofWire text + | _ => .error "expected a string" + +inductive VolumeAttachmentState where + | attached + | attaching + | busy + | detached + | detaching +deriving DecidableEq, Repr, Inhabited + +def VolumeAttachmentState.wire : VolumeAttachmentState → String + | .attached => "attached" + | .attaching => "attaching" + | .busy => "busy" + | .detached => "detached" + | .detaching => "detaching" + +def VolumeAttachmentState.wireValues : List (String × VolumeAttachmentState) := [ + ("attached", .attached), + ("attaching", .attaching), + ("busy", .busy), + ("detached", .detached), + ("detaching", .detaching)] + +def VolumeAttachmentState.ofWire (text : String) : Except String VolumeAttachmentState := + match List.find? (·.1 == text) VolumeAttachmentState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VolumeAttachmentState has no value {text}" + +instance : Key VolumeAttachmentState := ⟨VolumeAttachmentState.wire, VolumeAttachmentState.ofWire⟩ + +instance : Shape VolumeAttachmentState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VolumeAttachmentState.ofWire text + | _ => .error "expected a string" + +inductive VolumeAttributeName where + | autoEnableIO + | productCodes +deriving DecidableEq, Repr, Inhabited + +def VolumeAttributeName.wire : VolumeAttributeName → String + | .autoEnableIO => "autoEnableIO" + | .productCodes => "productCodes" + +def VolumeAttributeName.wireValues : List (String × VolumeAttributeName) := [ + ("autoEnableIO", .autoEnableIO), + ("productCodes", .productCodes)] + +def VolumeAttributeName.ofWire (text : String) : Except String VolumeAttributeName := + match List.find? (·.1 == text) VolumeAttributeName.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VolumeAttributeName has no value {text}" + +instance : Key VolumeAttributeName := ⟨VolumeAttributeName.wire, VolumeAttributeName.ofWire⟩ + +instance : Shape VolumeAttributeName where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VolumeAttributeName.ofWire text + | _ => .error "expected a string" + +/-- Describes an EBS volume. -/ +structure VolumeDetail where + /-- The size of the volume, in GiB. -/ + size : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape VolumeDetail where + schema := .struct "VolumeDetail" [({ name := "Size", required := true, xmlName := some "size", queryName := some "Size" }, .int)] + toValue x := record [put "Size" x.size] + ofValue v := do + let size ← v.req "Size" + return { size } + +inductive VolumeModificationState where + | completed + | failed + | modifying + | optimizing +deriving DecidableEq, Repr, Inhabited + +def VolumeModificationState.wire : VolumeModificationState → String + | .completed => "completed" + | .failed => "failed" + | .modifying => "modifying" + | .optimizing => "optimizing" + +def VolumeModificationState.wireValues : List (String × VolumeModificationState) := [ + ("completed", .completed), + ("failed", .failed), + ("modifying", .modifying), + ("optimizing", .optimizing)] + +def VolumeModificationState.ofWire (text : String) : Except String VolumeModificationState := + match List.find? (·.1 == text) VolumeModificationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VolumeModificationState has no value {text}" + +instance : Key VolumeModificationState := ⟨VolumeModificationState.wire, VolumeModificationState.ofWire⟩ + +instance : Shape VolumeModificationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VolumeModificationState.ofWire text + | _ => .error "expected a string" + +inductive VolumeState where + | available + | creating + | deleted + | deleting + | error + | in_use +deriving DecidableEq, Repr, Inhabited + +def VolumeState.wire : VolumeState → String + | .available => "available" + | .creating => "creating" + | .deleted => "deleted" + | .deleting => "deleting" + | .error => "error" + | .in_use => "in-use" + +def VolumeState.wireValues : List (String × VolumeState) := [ + ("available", .available), + ("creating", .creating), + ("deleted", .deleted), + ("deleting", .deleting), + ("error", .error), + ("in-use", .in_use)] + +def VolumeState.ofWire (text : String) : Except String VolumeState := + match List.find? (·.1 == text) VolumeState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VolumeState has no value {text}" + +instance : Key VolumeState := ⟨VolumeState.wire, VolumeState.ofWire⟩ + +instance : Shape VolumeState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VolumeState.ofWire text + | _ => .error "expected a string" + +/-- Describes a volume status operation code. -/ +structure VolumeStatusAction where + /-- The code identifying the operation, for example, enable-volume-io . -/ + code : Option String := none + /-- A description of the operation. -/ + description : Option String := none + /-- The ID of the event associated with this operation. -/ + eventId : Option String := none + /-- The event type associated with this operation. -/ + eventType : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VolumeStatusAction where + schema := .struct "VolumeStatusAction" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "EventId", xmlName := some "eventId", queryName := some "EventId" }, .string), + ({ name := "EventType", xmlName := some "eventType", queryName := some "EventType" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Description" x.description, putOpt "EventId" x.eventId, putOpt "EventType" x.eventType] + ofValue v := do + let code ← v.opt "Code" + let description ← v.opt "Description" + let eventId ← v.opt "EventId" + let eventType ← v.opt "EventType" + return { code, description, eventId, eventType } + +/-- Information about the instances to which the volume is attached. -/ +structure VolumeStatusAttachmentStatus where + /-- The ID of the attached instance. -/ + instanceId : Option String := none + /-- The maximum IOPS supported by the attached instance. -/ + ioPerformance : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VolumeStatusAttachmentStatus where + schema := .struct "VolumeStatusAttachmentStatus" [({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "IoPerformance", xmlName := some "ioPerformance", queryName := some "IoPerformance" }, .string)] + toValue x := record [putOpt "InstanceId" x.instanceId, putOpt "IoPerformance" x.ioPerformance] + ofValue v := do + let instanceId ← v.opt "InstanceId" + let ioPerformance ← v.opt "IoPerformance" + return { instanceId, ioPerformance } + +/-- Describes a volume status event. -/ +structure VolumeStatusEvent where + /-- A description of the event. -/ + description : Option String := none + /-- The ID of this event. -/ + eventId : Option String := none + /-- The type of this event. -/ + eventType : Option String := none + /-- The ID of the instance associated with the event. -/ + instanceId : Option String := none + /-- The latest end time of the event. -/ + notAfter : Option Timestamp := none + /-- The earliest start time of the event. -/ + notBefore : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VolumeStatusEvent where + schema := .struct "VolumeStatusEvent" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "EventId", xmlName := some "eventId", queryName := some "EventId" }, .string), + ({ name := "EventType", xmlName := some "eventType", queryName := some "EventType" }, .string), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "NotAfter", xmlName := some "notAfter", queryName := some "NotAfter" }, (.time none)), + ({ name := "NotBefore", xmlName := some "notBefore", queryName := some "NotBefore" }, (.time none))] + toValue x := record [putOpt "Description" x.description, putOpt "EventId" x.eventId, putOpt "EventType" x.eventType, putOpt "InstanceId" x.instanceId, putOpt "NotAfter" x.notAfter, putOpt "NotBefore" x.notBefore] + ofValue v := do + let description ← v.opt "Description" + let eventId ← v.opt "EventId" + let eventType ← v.opt "EventType" + let instanceId ← v.opt "InstanceId" + let notAfter ← v.opt "NotAfter" + let notBefore ← v.opt "NotBefore" + return { description, eventId, eventType, instanceId, notAfter, notBefore } + +inductive VolumeStatusInfoStatus where + | impaired + | insufficient_data + | ok + | warning +deriving DecidableEq, Repr, Inhabited + +def VolumeStatusInfoStatus.wire : VolumeStatusInfoStatus → String + | .impaired => "impaired" + | .insufficient_data => "insufficient-data" + | .ok => "ok" + | .warning => "warning" + +def VolumeStatusInfoStatus.wireValues : List (String × VolumeStatusInfoStatus) := [ + ("impaired", .impaired), + ("insufficient-data", .insufficient_data), + ("ok", .ok), + ("warning", .warning)] + +def VolumeStatusInfoStatus.ofWire (text : String) : Except String VolumeStatusInfoStatus := + match List.find? (·.1 == text) VolumeStatusInfoStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VolumeStatusInfoStatus has no value {text}" + +instance : Key VolumeStatusInfoStatus := ⟨VolumeStatusInfoStatus.wire, VolumeStatusInfoStatus.ofWire⟩ + +instance : Shape VolumeStatusInfoStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VolumeStatusInfoStatus.ofWire text + | _ => .error "expected a string" + +inductive VolumeStatusName where + | initialization_state + | io_enabled + | io_performance +deriving DecidableEq, Repr, Inhabited + +def VolumeStatusName.wire : VolumeStatusName → String + | .initialization_state => "initialization-state" + | .io_enabled => "io-enabled" + | .io_performance => "io-performance" + +def VolumeStatusName.wireValues : List (String × VolumeStatusName) := [ + ("initialization-state", .initialization_state), + ("io-enabled", .io_enabled), + ("io-performance", .io_performance)] + +def VolumeStatusName.ofWire (text : String) : Except String VolumeStatusName := + match List.find? (·.1 == text) VolumeStatusName.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VolumeStatusName has no value {text}" + +instance : Key VolumeStatusName := ⟨VolumeStatusName.wire, VolumeStatusName.ofWire⟩ + +instance : Shape VolumeStatusName where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VolumeStatusName.ofWire text + | _ => .error "expected a string" + +inductive VolumeType where + | gp2 + | gp3 + | io1 + | io2 + | sc1 + | st1 + | standard +deriving DecidableEq, Repr, Inhabited + +def VolumeType.wire : VolumeType → String + | .gp2 => "gp2" + | .gp3 => "gp3" + | .io1 => "io1" + | .io2 => "io2" + | .sc1 => "sc1" + | .st1 => "st1" + | .standard => "standard" + +def VolumeType.wireValues : List (String × VolumeType) := [ + ("gp2", .gp2), + ("gp3", .gp3), + ("io1", .io1), + ("io2", .io2), + ("sc1", .sc1), + ("st1", .st1), + ("standard", .standard)] + +def VolumeType.ofWire (text : String) : Except String VolumeType := + match List.find? (·.1 == text) VolumeType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VolumeType has no value {text}" + +instance : Key VolumeType := ⟨VolumeType.wire, VolumeType.ofWire⟩ + +instance : Shape VolumeType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VolumeType.ofWire text + | _ => .error "expected a string" + +inductive VpcAttributeName where + | enableDnsHostnames + | enableDnsSupport + | enableNetworkAddressUsageMetrics +deriving DecidableEq, Repr, Inhabited + +def VpcAttributeName.wire : VpcAttributeName → String + | .enableDnsHostnames => "enableDnsHostnames" + | .enableDnsSupport => "enableDnsSupport" + | .enableNetworkAddressUsageMetrics => "enableNetworkAddressUsageMetrics" + +def VpcAttributeName.wireValues : List (String × VpcAttributeName) := [ + ("enableDnsHostnames", .enableDnsHostnames), + ("enableDnsSupport", .enableDnsSupport), + ("enableNetworkAddressUsageMetrics", .enableNetworkAddressUsageMetrics)] + +def VpcAttributeName.ofWire (text : String) : Except String VpcAttributeName := + match List.find? (·.1 == text) VpcAttributeName.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VpcAttributeName has no value {text}" + +instance : Key VpcAttributeName := ⟨VpcAttributeName.wire, VpcAttributeName.ofWire⟩ + +instance : Shape VpcAttributeName where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VpcAttributeName.ofWire text + | _ => .error "expected a string" + +inductive VpcBlockPublicAccessExclusionState where + | create_complete + | create_failed + | create_in_progress + | delete_complete + | delete_in_progress + | disable_complete + | disable_in_progress + | update_complete + | update_failed + | update_in_progress +deriving DecidableEq, Repr, Inhabited + +def VpcBlockPublicAccessExclusionState.wire : VpcBlockPublicAccessExclusionState → String + | .create_complete => "create-complete" + | .create_failed => "create-failed" + | .create_in_progress => "create-in-progress" + | .delete_complete => "delete-complete" + | .delete_in_progress => "delete-in-progress" + | .disable_complete => "disable-complete" + | .disable_in_progress => "disable-in-progress" + | .update_complete => "update-complete" + | .update_failed => "update-failed" + | .update_in_progress => "update-in-progress" + +def VpcBlockPublicAccessExclusionState.wireValues : List (String × VpcBlockPublicAccessExclusionState) := [ + ("create-complete", .create_complete), + ("create-failed", .create_failed), + ("create-in-progress", .create_in_progress), + ("delete-complete", .delete_complete), + ("delete-in-progress", .delete_in_progress), + ("disable-complete", .disable_complete), + ("disable-in-progress", .disable_in_progress), + ("update-complete", .update_complete), + ("update-failed", .update_failed), + ("update-in-progress", .update_in_progress)] + +def VpcBlockPublicAccessExclusionState.ofWire (text : String) : Except String VpcBlockPublicAccessExclusionState := + match List.find? (·.1 == text) VpcBlockPublicAccessExclusionState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VpcBlockPublicAccessExclusionState has no value {text}" + +instance : Key VpcBlockPublicAccessExclusionState := ⟨VpcBlockPublicAccessExclusionState.wire, VpcBlockPublicAccessExclusionState.ofWire⟩ + +instance : Shape VpcBlockPublicAccessExclusionState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VpcBlockPublicAccessExclusionState.ofWire text + | _ => .error "expected a string" + +inductive VpcBlockPublicAccessExclusionsAllowed where + | allowed + | not_allowed +deriving DecidableEq, Repr, Inhabited + +def VpcBlockPublicAccessExclusionsAllowed.wire : VpcBlockPublicAccessExclusionsAllowed → String + | .allowed => "allowed" + | .not_allowed => "not-allowed" + +def VpcBlockPublicAccessExclusionsAllowed.wireValues : List (String × VpcBlockPublicAccessExclusionsAllowed) := [ + ("allowed", .allowed), + ("not-allowed", .not_allowed)] + +def VpcBlockPublicAccessExclusionsAllowed.ofWire (text : String) : Except String VpcBlockPublicAccessExclusionsAllowed := + match List.find? (·.1 == text) VpcBlockPublicAccessExclusionsAllowed.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VpcBlockPublicAccessExclusionsAllowed has no value {text}" + +instance : Key VpcBlockPublicAccessExclusionsAllowed := ⟨VpcBlockPublicAccessExclusionsAllowed.wire, VpcBlockPublicAccessExclusionsAllowed.ofWire⟩ + +instance : Shape VpcBlockPublicAccessExclusionsAllowed where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VpcBlockPublicAccessExclusionsAllowed.ofWire text + | _ => .error "expected a string" + +inductive VpcBlockPublicAccessState where + | default_state + | update_complete + | update_in_progress +deriving DecidableEq, Repr, Inhabited + +def VpcBlockPublicAccessState.wire : VpcBlockPublicAccessState → String + | .default_state => "default-state" + | .update_complete => "update-complete" + | .update_in_progress => "update-in-progress" + +def VpcBlockPublicAccessState.wireValues : List (String × VpcBlockPublicAccessState) := [ + ("default-state", .default_state), + ("update-complete", .update_complete), + ("update-in-progress", .update_in_progress)] + +def VpcBlockPublicAccessState.ofWire (text : String) : Except String VpcBlockPublicAccessState := + match List.find? (·.1 == text) VpcBlockPublicAccessState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VpcBlockPublicAccessState has no value {text}" + +instance : Key VpcBlockPublicAccessState := ⟨VpcBlockPublicAccessState.wire, VpcBlockPublicAccessState.ofWire⟩ + +instance : Shape VpcBlockPublicAccessState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VpcBlockPublicAccessState.ofWire text + | _ => .error "expected a string" + +inductive VpcCidrBlockStateCode where + | associated + | associating + | disassociated + | disassociating + | failed + | failing +deriving DecidableEq, Repr, Inhabited + +def VpcCidrBlockStateCode.wire : VpcCidrBlockStateCode → String + | .associated => "associated" + | .associating => "associating" + | .disassociated => "disassociated" + | .disassociating => "disassociating" + | .failed => "failed" + | .failing => "failing" + +def VpcCidrBlockStateCode.wireValues : List (String × VpcCidrBlockStateCode) := [ + ("associated", .associated), + ("associating", .associating), + ("disassociated", .disassociated), + ("disassociating", .disassociating), + ("failed", .failed), + ("failing", .failing)] + +def VpcCidrBlockStateCode.ofWire (text : String) : Except String VpcCidrBlockStateCode := + match List.find? (·.1 == text) VpcCidrBlockStateCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VpcCidrBlockStateCode has no value {text}" + +instance : Key VpcCidrBlockStateCode := ⟨VpcCidrBlockStateCode.wire, VpcCidrBlockStateCode.ofWire⟩ + +instance : Shape VpcCidrBlockStateCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VpcCidrBlockStateCode.ofWire text + | _ => .error "expected a string" + +inductive VpcEncryptionControlExclusionState where + | disabled + | disabling + | enabled + | enabling +deriving DecidableEq, Repr, Inhabited + +def VpcEncryptionControlExclusionState.wire : VpcEncryptionControlExclusionState → String + | .disabled => "disabled" + | .disabling => "disabling" + | .enabled => "enabled" + | .enabling => "enabling" + +def VpcEncryptionControlExclusionState.wireValues : List (String × VpcEncryptionControlExclusionState) := [ + ("disabled", .disabled), + ("disabling", .disabling), + ("enabled", .enabled), + ("enabling", .enabling)] + +def VpcEncryptionControlExclusionState.ofWire (text : String) : Except String VpcEncryptionControlExclusionState := + match List.find? (·.1 == text) VpcEncryptionControlExclusionState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VpcEncryptionControlExclusionState has no value {text}" + +instance : Key VpcEncryptionControlExclusionState := ⟨VpcEncryptionControlExclusionState.wire, VpcEncryptionControlExclusionState.ofWire⟩ + +instance : Shape VpcEncryptionControlExclusionState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VpcEncryptionControlExclusionState.ofWire text + | _ => .error "expected a string" + +inductive VpcEncryptionControlExclusionStateInput where + | disable + | enable +deriving DecidableEq, Repr, Inhabited + +def VpcEncryptionControlExclusionStateInput.wire : VpcEncryptionControlExclusionStateInput → String + | .disable => "disable" + | .enable => "enable" + +def VpcEncryptionControlExclusionStateInput.wireValues : List (String × VpcEncryptionControlExclusionStateInput) := [ + ("disable", .disable), + ("enable", .enable)] + +def VpcEncryptionControlExclusionStateInput.ofWire (text : String) : Except String VpcEncryptionControlExclusionStateInput := + match List.find? (·.1 == text) VpcEncryptionControlExclusionStateInput.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VpcEncryptionControlExclusionStateInput has no value {text}" + +instance : Key VpcEncryptionControlExclusionStateInput := ⟨VpcEncryptionControlExclusionStateInput.wire, VpcEncryptionControlExclusionStateInput.ofWire⟩ + +instance : Shape VpcEncryptionControlExclusionStateInput where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VpcEncryptionControlExclusionStateInput.ofWire text + | _ => .error "expected a string" + +inductive VpcEncryptionControlMode where + | enforce + | monitor +deriving DecidableEq, Repr, Inhabited + +def VpcEncryptionControlMode.wire : VpcEncryptionControlMode → String + | .enforce => "enforce" + | .monitor => "monitor" + +def VpcEncryptionControlMode.wireValues : List (String × VpcEncryptionControlMode) := [ + ("enforce", .enforce), + ("monitor", .monitor)] + +def VpcEncryptionControlMode.ofWire (text : String) : Except String VpcEncryptionControlMode := + match List.find? (·.1 == text) VpcEncryptionControlMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VpcEncryptionControlMode has no value {text}" + +instance : Key VpcEncryptionControlMode := ⟨VpcEncryptionControlMode.wire, VpcEncryptionControlMode.ofWire⟩ + +instance : Shape VpcEncryptionControlMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VpcEncryptionControlMode.ofWire text + | _ => .error "expected a string" + +inductive VpcEncryptionControlState where + | available + | creating + | delete_failed + | deleted + | deleting + | enforce_failed + | enforce_in_progress + | monitor_failed + | monitor_in_progress +deriving DecidableEq, Repr, Inhabited + +def VpcEncryptionControlState.wire : VpcEncryptionControlState → String + | .available => "available" + | .creating => "creating" + | .delete_failed => "delete-failed" + | .deleted => "deleted" + | .deleting => "deleting" + | .enforce_failed => "enforce-failed" + | .enforce_in_progress => "enforce-in-progress" + | .monitor_failed => "monitor-failed" + | .monitor_in_progress => "monitor-in-progress" + +def VpcEncryptionControlState.wireValues : List (String × VpcEncryptionControlState) := [ + ("available", .available), + ("creating", .creating), + ("delete-failed", .delete_failed), + ("deleted", .deleted), + ("deleting", .deleting), + ("enforce-failed", .enforce_failed), + ("enforce-in-progress", .enforce_in_progress), + ("monitor-failed", .monitor_failed), + ("monitor-in-progress", .monitor_in_progress)] + +def VpcEncryptionControlState.ofWire (text : String) : Except String VpcEncryptionControlState := + match List.find? (·.1 == text) VpcEncryptionControlState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VpcEncryptionControlState has no value {text}" + +instance : Key VpcEncryptionControlState := ⟨VpcEncryptionControlState.wire, VpcEncryptionControlState.ofWire⟩ + +instance : Shape VpcEncryptionControlState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VpcEncryptionControlState.ofWire text + | _ => .error "expected a string" + +/-- Describes a resource that is not compliant with VPC encryption requirements. -/ +structure VpcEncryptionNonCompliantResource where + /-- A description of the non-compliant resource. -/ + description : Option String := none + /-- The ID of the non-compliant resource. -/ + id : Option String := none + /-- Indicates whether the resource can be excluded from encryption enforcement. -/ + isExcludable : Option Bool := none + /-- The type of the non-compliant resource. -/ + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcEncryptionNonCompliantResource where + schema := .struct "VpcEncryptionNonCompliantResource" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "Id", xmlName := some "id", queryName := some "Id" }, .string), + ({ name := "IsExcludable", xmlName := some "isExcludable", queryName := some "IsExcludable" }, .bool), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, .string)] + toValue x := record [putOpt "Description" x.description, putOpt "Id" x.id, putOpt "IsExcludable" x.isExcludable, putOpt "Type" x.type] + ofValue v := do + let description ← v.opt "Description" + let id ← v.opt "Id" + let isExcludable ← v.opt "IsExcludable" + let type ← v.opt "Type" + return { description, id, isExcludable, type } + +inductive VpcEndpointType where + | gateway + | gatewayLoadBalancer + | interface + | resource + | serviceNetwork + | tunnel +deriving DecidableEq, Repr, Inhabited + +def VpcEndpointType.wire : VpcEndpointType → String + | .gateway => "Gateway" + | .gatewayLoadBalancer => "GatewayLoadBalancer" + | .interface => "Interface" + | .resource => "Resource" + | .serviceNetwork => "ServiceNetwork" + | .tunnel => "Tunnel" + +def VpcEndpointType.wireValues : List (String × VpcEndpointType) := [ + ("Gateway", .gateway), + ("GatewayLoadBalancer", .gatewayLoadBalancer), + ("Interface", .interface), + ("Resource", .resource), + ("ServiceNetwork", .serviceNetwork), + ("Tunnel", .tunnel)] + +def VpcEndpointType.ofWire (text : String) : Except String VpcEndpointType := + match List.find? (·.1 == text) VpcEndpointType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VpcEndpointType has no value {text}" + +instance : Key VpcEndpointType := ⟨VpcEndpointType.wire, VpcEndpointType.ofWire⟩ + +instance : Shape VpcEndpointType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VpcEndpointType.ofWire text + | _ => .error "expected a string" + +inductive VpcPeeringConnectionStateReasonCode where + | active + | deleted + | deleting + | expired + | failed + | initiating_request + | pending_acceptance + | provisioning + | rejected +deriving DecidableEq, Repr, Inhabited + +def VpcPeeringConnectionStateReasonCode.wire : VpcPeeringConnectionStateReasonCode → String + | .active => "active" + | .deleted => "deleted" + | .deleting => "deleting" + | .expired => "expired" + | .failed => "failed" + | .initiating_request => "initiating-request" + | .pending_acceptance => "pending-acceptance" + | .provisioning => "provisioning" + | .rejected => "rejected" + +def VpcPeeringConnectionStateReasonCode.wireValues : List (String × VpcPeeringConnectionStateReasonCode) := [ + ("active", .active), + ("deleted", .deleted), + ("deleting", .deleting), + ("expired", .expired), + ("failed", .failed), + ("initiating-request", .initiating_request), + ("pending-acceptance", .pending_acceptance), + ("provisioning", .provisioning), + ("rejected", .rejected)] + +def VpcPeeringConnectionStateReasonCode.ofWire (text : String) : Except String VpcPeeringConnectionStateReasonCode := + match List.find? (·.1 == text) VpcPeeringConnectionStateReasonCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VpcPeeringConnectionStateReasonCode has no value {text}" + +instance : Key VpcPeeringConnectionStateReasonCode := ⟨VpcPeeringConnectionStateReasonCode.wire, VpcPeeringConnectionStateReasonCode.ofWire⟩ + +instance : Shape VpcPeeringConnectionStateReasonCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VpcPeeringConnectionStateReasonCode.ofWire text + | _ => .error "expected a string" + +inductive VpcState where + | available + | deleting + | pending +deriving DecidableEq, Repr, Inhabited + +def VpcState.wire : VpcState → String + | .available => "available" + | .deleting => "deleting" + | .pending => "pending" + +def VpcState.wireValues : List (String × VpcState) := [ + ("available", .available), + ("deleting", .deleting), + ("pending", .pending)] + +def VpcState.ofWire (text : String) : Except String VpcState := + match List.find? (·.1 == text) VpcState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VpcState has no value {text}" + +instance : Key VpcState := ⟨VpcState.wire, VpcState.ofWire⟩ + +instance : Shape VpcState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VpcState.ofWire text + | _ => .error "expected a string" + +inductive VpcTenancy where + | default +deriving DecidableEq, Repr, Inhabited + +def VpcTenancy.wire : VpcTenancy → String + | .default => "default" + +def VpcTenancy.wireValues : List (String × VpcTenancy) := [ + ("default", .default)] + +def VpcTenancy.ofWire (text : String) : Except String VpcTenancy := + match List.find? (·.1 == text) VpcTenancy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VpcTenancy has no value {text}" + +instance : Key VpcTenancy := ⟨VpcTenancy.wire, VpcTenancy.ofWire⟩ + +instance : Shape VpcTenancy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VpcTenancy.ofWire text + | _ => .error "expected a string" + +inductive VpnConcentratorType where + | ipsec_1 +deriving DecidableEq, Repr, Inhabited + +def VpnConcentratorType.wire : VpnConcentratorType → String + | .ipsec_1 => "ipsec.1" + +def VpnConcentratorType.wireValues : List (String × VpnConcentratorType) := [ + ("ipsec.1", .ipsec_1)] + +def VpnConcentratorType.ofWire (text : String) : Except String VpnConcentratorType := + match List.find? (·.1 == text) VpnConcentratorType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VpnConcentratorType has no value {text}" + +instance : Key VpnConcentratorType := ⟨VpnConcentratorType.wire, VpnConcentratorType.ofWire⟩ + +instance : Shape VpnConcentratorType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VpnConcentratorType.ofWire text + | _ => .error "expected a string" + +/-- List of customer gateway devices that have a sample configuration file available for use. -/ +structure VpnConnectionDeviceType where + /-- Customer gateway device platform. -/ + platform : Option String := none + /-- Customer gateway device software version. -/ + software : Option String := none + /-- Customer gateway device vendor. -/ + vendor : Option String := none + /-- Customer gateway device identifier. -/ + vpnConnectionDeviceTypeId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpnConnectionDeviceType where + schema := .struct "VpnConnectionDeviceType" [({ name := "Platform", xmlName := some "platform", queryName := some "Platform" }, .string), + ({ name := "Software", xmlName := some "software", queryName := some "Software" }, .string), + ({ name := "Vendor", xmlName := some "vendor", queryName := some "Vendor" }, .string), + ({ name := "VpnConnectionDeviceTypeId", xmlName := some "vpnConnectionDeviceTypeId", queryName := some "VpnConnectionDeviceTypeId" }, .string)] + toValue x := record [putOpt "Platform" x.platform, putOpt "Software" x.software, putOpt "Vendor" x.vendor, putOpt "VpnConnectionDeviceTypeId" x.vpnConnectionDeviceTypeId] + ofValue v := do + let platform ← v.opt "Platform" + let software ← v.opt "Software" + let vendor ← v.opt "Vendor" + let vpnConnectionDeviceTypeId ← v.opt "VpnConnectionDeviceTypeId" + return { platform, software, vendor, vpnConnectionDeviceTypeId } + +inductive VpnEcmpSupportValue where + | disable + | enable +deriving DecidableEq, Repr, Inhabited + +def VpnEcmpSupportValue.wire : VpnEcmpSupportValue → String + | .disable => "disable" + | .enable => "enable" + +def VpnEcmpSupportValue.wireValues : List (String × VpnEcmpSupportValue) := [ + ("disable", .disable), + ("enable", .enable)] + +def VpnEcmpSupportValue.ofWire (text : String) : Except String VpnEcmpSupportValue := + match List.find? (·.1 == text) VpnEcmpSupportValue.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VpnEcmpSupportValue has no value {text}" + +instance : Key VpnEcmpSupportValue := ⟨VpnEcmpSupportValue.wire, VpnEcmpSupportValue.ofWire⟩ + +instance : Shape VpnEcmpSupportValue where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VpnEcmpSupportValue.ofWire text + | _ => .error "expected a string" + +inductive VpnProtocol where + | openvpn +deriving DecidableEq, Repr, Inhabited + +def VpnProtocol.wire : VpnProtocol → String + | .openvpn => "openvpn" + +def VpnProtocol.wireValues : List (String × VpnProtocol) := [ + ("openvpn", .openvpn)] + +def VpnProtocol.ofWire (text : String) : Except String VpnProtocol := + match List.find? (·.1 == text) VpnProtocol.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VpnProtocol has no value {text}" + +instance : Key VpnProtocol := ⟨VpnProtocol.wire, VpnProtocol.ofWire⟩ + +instance : Shape VpnProtocol where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VpnProtocol.ofWire text + | _ => .error "expected a string" + +inductive VpnState where + | available + | deleted + | deleting + | pending +deriving DecidableEq, Repr, Inhabited + +def VpnState.wire : VpnState → String + | .available => "available" + | .deleted => "deleted" + | .deleting => "deleting" + | .pending => "pending" + +def VpnState.wireValues : List (String × VpnState) := [ + ("available", .available), + ("deleted", .deleted), + ("deleting", .deleting), + ("pending", .pending)] + +def VpnState.ofWire (text : String) : Except String VpnState := + match List.find? (·.1 == text) VpnState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VpnState has no value {text}" + +instance : Key VpnState := ⟨VpnState.wire, VpnState.ofWire⟩ + +instance : Shape VpnState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VpnState.ofWire text + | _ => .error "expected a string" + +inductive VpnStaticRouteSource where + | static +deriving DecidableEq, Repr, Inhabited + +def VpnStaticRouteSource.wire : VpnStaticRouteSource → String + | .static => "Static" + +def VpnStaticRouteSource.wireValues : List (String × VpnStaticRouteSource) := [ + ("Static", .static)] + +def VpnStaticRouteSource.ofWire (text : String) : Except String VpnStaticRouteSource := + match List.find? (·.1 == text) VpnStaticRouteSource.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VpnStaticRouteSource has no value {text}" + +instance : Key VpnStaticRouteSource := ⟨VpnStaticRouteSource.wire, VpnStaticRouteSource.ofWire⟩ + +instance : Shape VpnStaticRouteSource where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VpnStaticRouteSource.ofWire text + | _ => .error "expected a string" + +inductive VpnTunnelBandwidth where + | large + | standard +deriving DecidableEq, Repr, Inhabited + +def VpnTunnelBandwidth.wire : VpnTunnelBandwidth → String + | .large => "large" + | .standard => "standard" + +def VpnTunnelBandwidth.wireValues : List (String × VpnTunnelBandwidth) := [ + ("large", .large), + ("standard", .standard)] + +def VpnTunnelBandwidth.ofWire (text : String) : Except String VpnTunnelBandwidth := + match List.find? (·.1 == text) VpnTunnelBandwidth.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VpnTunnelBandwidth has no value {text}" + +instance : Key VpnTunnelBandwidth := ⟨VpnTunnelBandwidth.wire, VpnTunnelBandwidth.ofWire⟩ + +instance : Shape VpnTunnelBandwidth where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VpnTunnelBandwidth.ofWire text + | _ => .error "expected a string" + +inductive VpnTunnelProvisioningStatus where + | available + | failed + | pending +deriving DecidableEq, Repr, Inhabited + +def VpnTunnelProvisioningStatus.wire : VpnTunnelProvisioningStatus → String + | .available => "available" + | .failed => "failed" + | .pending => "pending" + +def VpnTunnelProvisioningStatus.wireValues : List (String × VpnTunnelProvisioningStatus) := [ + ("available", .available), + ("failed", .failed), + ("pending", .pending)] + +def VpnTunnelProvisioningStatus.ofWire (text : String) : Except String VpnTunnelProvisioningStatus := + match List.find? (·.1 == text) VpnTunnelProvisioningStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"VpnTunnelProvisioningStatus has no value {text}" + +instance : Key VpnTunnelProvisioningStatus := ⟨VpnTunnelProvisioningStatus.wire, VpnTunnelProvisioningStatus.ofWire⟩ + +instance : Shape VpnTunnelProvisioningStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => VpnTunnelProvisioningStatus.ofWire text + | _ => .error "expected a string" + +inductive WeekDay where + | friday + | monday + | saturday + | sunday + | thursday + | tuesday + | wednesday +deriving DecidableEq, Repr, Inhabited + +def WeekDay.wire : WeekDay → String + | .friday => "friday" + | .monday => "monday" + | .saturday => "saturday" + | .sunday => "sunday" + | .thursday => "thursday" + | .tuesday => "tuesday" + | .wednesday => "wednesday" + +def WeekDay.wireValues : List (String × WeekDay) := [ + ("friday", .friday), + ("monday", .monday), + ("saturday", .saturday), + ("sunday", .sunday), + ("thursday", .thursday), + ("tuesday", .tuesday), + ("wednesday", .wednesday)] + +def WeekDay.ofWire (text : String) : Except String WeekDay := + match List.find? (·.1 == text) WeekDay.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"WeekDay has no value {text}" + +instance : Key WeekDay := ⟨WeekDay.wire, WeekDay.ofWire⟩ + +instance : Shape WeekDay where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => WeekDay.ofWire text + | _ => .error "expected a string" + +structure WithdrawByoipCidrRequest where + /-- The address range, in CIDR notation. -/ + cidr : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape WithdrawByoipCidrRequest where + schema := .struct "WithdrawByoipCidrRequest" [({ name := "Cidr", required := true }, .string), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "Cidr" x.cidr, putOpt "DryRun" x.dryRun] + ofValue v := do + let cidr ← v.req "Cidr" + let dryRun ← v.opt "DryRun" + return { cidr, dryRun } + +inductive ZeroSizePreference where + | default + | retain +deriving DecidableEq, Repr, Inhabited + +def ZeroSizePreference.wire : ZeroSizePreference → String + | .default => "default" + | .retain => "retain" + +def ZeroSizePreference.wireValues : List (String × ZeroSizePreference) := [ + ("default", .default), + ("retain", .retain)] + +def ZeroSizePreference.ofWire (text : String) : Except String ZeroSizePreference := + match List.find? (·.1 == text) ZeroSizePreference.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ZeroSizePreference has no value {text}" + +instance : Key ZeroSizePreference := ⟨ZeroSizePreference.wire, ZeroSizePreference.ofWire⟩ + +instance : Shape ZeroSizePreference where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ZeroSizePreference.ofWire text + | _ => .error "expected a string" + +inductive scope where + | availabilitY_ZONE + | regional +deriving DecidableEq, Repr, Inhabited + +def scope.wire : scope → String + | .availabilitY_ZONE => "Availability Zone" + | .regional => "Region" + +def scope.wireValues : List (String × scope) := [ + ("Availability Zone", .availabilitY_ZONE), + ("Region", .regional)] + +def scope.ofWire (text : String) : Except String scope := + match List.find? (·.1 == text) scope.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"scope has no value {text}" + +instance : Key scope := ⟨scope.wire, scope.ofWire⟩ + +instance : Shape scope where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => scope.ofWire text + | _ => .error "expected a string" + +/-- Contains the parameters for accepting the quote. -/ +structure AcceptReservedInstancesExchangeQuoteRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the Convertible Reserved Instances to exchange for another Convertible Reserved Instance of the same or higher value. -/ + reservedInstanceIds : (List String) + /-- The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances. -/ + targetConfigurations : Option (List TargetConfigurationRequest) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceptReservedInstancesExchangeQuoteRequest where + schema := .struct "AcceptReservedInstancesExchangeQuoteRequest" [({ name := "DryRun" }, .bool), + ({ name := "ReservedInstanceIds", required := true, xmlName := some "ReservedInstanceId" }, (.list .string "ReservedInstanceId")), + ({ name := "TargetConfigurations", xmlName := some "TargetConfiguration" }, (.list (Shape.schema TargetConfigurationRequest) "TargetConfigurationRequest"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "ReservedInstanceIds" x.reservedInstanceIds, putOpt "TargetConfigurations" x.targetConfigurations] + ofValue v := do + let dryRun ← v.opt "DryRun" + let reservedInstanceIds ← v.req "ReservedInstanceIds" + let targetConfigurations ← v.opt "TargetConfigurations" + return { dryRun, reservedInstanceIds, targetConfigurations } + +/-- Describes an account attribute. -/ +structure AccountAttribute where + /-- The name of the account attribute. -/ + attributeName : Option String := none + /-- The values for the account attribute. -/ + attributeValues : Option (List AccountAttributeValue) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AccountAttribute where + schema := .struct "AccountAttribute" [({ name := "AttributeName", xmlName := some "attributeName", queryName := some "AttributeName" }, .string), + ({ name := "AttributeValues", xmlName := some "attributeValueSet", queryName := some "AttributeValueSet" }, (.list (Shape.schema AccountAttributeValue) "item"))] + toValue x := record [putOpt "AttributeName" x.attributeName, putOpt "AttributeValues" x.attributeValues] + ofValue v := do + let attributeName ← v.opt "AttributeName" + let attributeValues ← v.opt "AttributeValues" + return { attributeName, attributeValues } + +/-- Describes the exclusion configurations for the various resource types in the account-level VPC Encryption Control configuration. -/ +structure AccountVpcEncryptionControlExclusions where + /-- The exclusion configuration for Amazon API Gateway V2. -/ + apiGatewayV2 : Option VpcEncryptionControlExclusionState := none + /-- The exclusion configuration for egress-only internet gateway resource. -/ + egressOnlyInternetGateway : Option VpcEncryptionControlExclusionState := none + /-- The exclusion configuration for Elastic File System service. -/ + elasticFileSystem : Option VpcEncryptionControlExclusionState := none + /-- The exclusion configuration for Amazon Web Services Global Accelerator. -/ + globalAccelerator : Option VpcEncryptionControlExclusionState := none + /-- The exclusion configuration for internet gateway resource. -/ + internetGateway : Option VpcEncryptionControlExclusionState := none + /-- The exclusion configuration for Lambda service. -/ + lambda : Option VpcEncryptionControlExclusionState := none + /-- The exclusion configuration for NAT gateway resource. -/ + natGateway : Option VpcEncryptionControlExclusionState := none + /-- The exclusion configuration for virtual private gateway resource. -/ + virtualPrivateGateway : Option VpcEncryptionControlExclusionState := none + /-- The exclusion configuration for VPC Lattice service. -/ + vpcLattice : Option VpcEncryptionControlExclusionState := none + /-- The exclusion configuration for VPC peering connection resource. -/ + vpcPeering : Option VpcEncryptionControlExclusionState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AccountVpcEncryptionControlExclusions where + schema := .struct "AccountVpcEncryptionControlExclusions" [({ name := "ApiGatewayV2", xmlName := some "apiGatewayV2", queryName := some "ApiGatewayV2" }, (Shape.schema VpcEncryptionControlExclusionState)), + ({ name := "EgressOnlyInternetGateway", xmlName := some "egressOnlyInternetGateway", queryName := some "EgressOnlyInternetGateway" }, (Shape.schema VpcEncryptionControlExclusionState)), + ({ name := "ElasticFileSystem", xmlName := some "elasticFileSystem", queryName := some "ElasticFileSystem" }, (Shape.schema VpcEncryptionControlExclusionState)), + ({ name := "GlobalAccelerator", xmlName := some "globalAccelerator", queryName := some "GlobalAccelerator" }, (Shape.schema VpcEncryptionControlExclusionState)), + ({ name := "InternetGateway", xmlName := some "internetGateway", queryName := some "InternetGateway" }, (Shape.schema VpcEncryptionControlExclusionState)), + ({ name := "Lambda", xmlName := some "lambda", queryName := some "Lambda" }, (Shape.schema VpcEncryptionControlExclusionState)), + ({ name := "NatGateway", xmlName := some "natGateway", queryName := some "NatGateway" }, (Shape.schema VpcEncryptionControlExclusionState)), + ({ name := "VirtualPrivateGateway", xmlName := some "virtualPrivateGateway", queryName := some "VirtualPrivateGateway" }, (Shape.schema VpcEncryptionControlExclusionState)), + ({ name := "VpcLattice", xmlName := some "vpcLattice", queryName := some "VpcLattice" }, (Shape.schema VpcEncryptionControlExclusionState)), + ({ name := "VpcPeering", xmlName := some "vpcPeering", queryName := some "VpcPeering" }, (Shape.schema VpcEncryptionControlExclusionState))] + toValue x := record [putOpt "ApiGatewayV2" x.apiGatewayV2, putOpt "EgressOnlyInternetGateway" x.egressOnlyInternetGateway, putOpt "ElasticFileSystem" x.elasticFileSystem, putOpt "GlobalAccelerator" x.globalAccelerator, putOpt "InternetGateway" x.internetGateway, putOpt "Lambda" x.lambda, putOpt "NatGateway" x.natGateway, putOpt "VirtualPrivateGateway" x.virtualPrivateGateway, putOpt "VpcLattice" x.vpcLattice, putOpt "VpcPeering" x.vpcPeering] + ofValue v := do + let apiGatewayV2 ← v.opt "ApiGatewayV2" + let egressOnlyInternetGateway ← v.opt "EgressOnlyInternetGateway" + let elasticFileSystem ← v.opt "ElasticFileSystem" + let globalAccelerator ← v.opt "GlobalAccelerator" + let internetGateway ← v.opt "InternetGateway" + let lambda ← v.opt "Lambda" + let natGateway ← v.opt "NatGateway" + let virtualPrivateGateway ← v.opt "VirtualPrivateGateway" + let vpcLattice ← v.opt "VpcLattice" + let vpcPeering ← v.opt "VpcPeering" + return { apiGatewayV2, egressOnlyInternetGateway, elasticFileSystem, globalAccelerator, internetGateway, lambda, natGateway, virtualPrivateGateway, vpcLattice, vpcPeering } + +/-- Describes a running instance in a Spot Fleet. -/ +structure ActiveInstance where + /-- The health status of the instance. -/ + instanceHealth : Option InstanceHealthStatus := none + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- The instance type. -/ + instanceType : Option String := none + /-- The ID of the Spot Instance request. -/ + spotInstanceRequestId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ActiveInstance where + schema := .struct "ActiveInstance" [({ name := "InstanceHealth", xmlName := some "instanceHealth", queryName := some "InstanceHealth" }, (Shape.schema InstanceHealthStatus)), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, .string), + ({ name := "SpotInstanceRequestId", xmlName := some "spotInstanceRequestId", queryName := some "SpotInstanceRequestId" }, .string)] + toValue x := record [putOpt "InstanceHealth" x.instanceHealth, putOpt "InstanceId" x.instanceId, putOpt "InstanceType" x.instanceType, putOpt "SpotInstanceRequestId" x.spotInstanceRequestId] + ofValue v := do + let instanceHealth ← v.opt "InstanceHealth" + let instanceId ← v.opt "InstanceId" + let instanceType ← v.opt "InstanceType" + let spotInstanceRequestId ← v.opt "SpotInstanceRequestId" + return { instanceHealth, instanceId, instanceType, spotInstanceRequestId } + +/-- Contains information about the current security configuration of an active VPN tunnel. -/ +structure ActiveVpnTunnelStatus where + /-- The version of the Internet Key Exchange (IKE) protocol being used. -/ + ikeVersion : Option String := none + /-- The additional key exchanges negotiated in Phase 1 IKE negotiations. -/ + phase1AdditionalKeyExchanges : Option (List ActiveVpnTunnelAdditionalKeyExchange) := none + /-- The Diffie-Hellman group number being used in Phase 1 IKE negotiations. -/ + phase1DHGroup : Option Int := none + /-- The encryption algorithm negotiated in Phase 1 IKE negotiations. -/ + phase1EncryptionAlgorithm : Option String := none + /-- The integrity algorithm negotiated in Phase 1 IKE negotiations. -/ + phase1IntegrityAlgorithm : Option String := none + /-- The additional key exchanges negotiated in Phase 2 IKE negotiations. -/ + phase2AdditionalKeyExchanges : Option (List ActiveVpnTunnelAdditionalKeyExchange) := none + /-- The Diffie-Hellman group number being used in Phase 2 IKE negotiations. -/ + phase2DHGroup : Option Int := none + /-- The encryption algorithm negotiated in Phase 2 IKE negotiations. -/ + phase2EncryptionAlgorithm : Option String := none + /-- The integrity algorithm negotiated in Phase 2 IKE negotiations. -/ + phase2IntegrityAlgorithm : Option String := none + /-- The current provisioning status of the VPN tunnel. -/ + provisioningStatus : Option VpnTunnelProvisioningStatus := none + /-- The reason for the current provisioning status. -/ + provisioningStatusReason : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ActiveVpnTunnelStatus where + schema := .struct "ActiveVpnTunnelStatus" [({ name := "IkeVersion", xmlName := some "ikeVersion", queryName := some "IkeVersion" }, .string), + ({ name := "Phase1AdditionalKeyExchanges", xmlName := some "phase1AdditionalKeyExchangeSet", queryName := some "Phase1AdditionalKeyExchangeSet" }, (.list (Shape.schema ActiveVpnTunnelAdditionalKeyExchange) "item")), + ({ name := "Phase1DHGroup", xmlName := some "phase1DHGroup", queryName := some "Phase1DHGroup" }, .int), + ({ name := "Phase1EncryptionAlgorithm", xmlName := some "phase1EncryptionAlgorithm", queryName := some "Phase1EncryptionAlgorithm" }, .string), + ({ name := "Phase1IntegrityAlgorithm", xmlName := some "phase1IntegrityAlgorithm", queryName := some "Phase1IntegrityAlgorithm" }, .string), + ({ name := "Phase2AdditionalKeyExchanges", xmlName := some "phase2AdditionalKeyExchangeSet", queryName := some "Phase2AdditionalKeyExchangeSet" }, (.list (Shape.schema ActiveVpnTunnelAdditionalKeyExchange) "item")), + ({ name := "Phase2DHGroup", xmlName := some "phase2DHGroup", queryName := some "Phase2DHGroup" }, .int), + ({ name := "Phase2EncryptionAlgorithm", xmlName := some "phase2EncryptionAlgorithm", queryName := some "Phase2EncryptionAlgorithm" }, .string), + ({ name := "Phase2IntegrityAlgorithm", xmlName := some "phase2IntegrityAlgorithm", queryName := some "Phase2IntegrityAlgorithm" }, .string), + ({ name := "ProvisioningStatus", xmlName := some "provisioningStatus", queryName := some "ProvisioningStatus" }, (Shape.schema VpnTunnelProvisioningStatus)), + ({ name := "ProvisioningStatusReason", xmlName := some "provisioningStatusReason", queryName := some "ProvisioningStatusReason" }, .string)] + toValue x := record [putOpt "IkeVersion" x.ikeVersion, putOpt "Phase1AdditionalKeyExchanges" x.phase1AdditionalKeyExchanges, putOpt "Phase1DHGroup" x.phase1DHGroup, putOpt "Phase1EncryptionAlgorithm" x.phase1EncryptionAlgorithm, putOpt "Phase1IntegrityAlgorithm" x.phase1IntegrityAlgorithm, putOpt "Phase2AdditionalKeyExchanges" x.phase2AdditionalKeyExchanges, putOpt "Phase2DHGroup" x.phase2DHGroup, putOpt "Phase2EncryptionAlgorithm" x.phase2EncryptionAlgorithm, putOpt "Phase2IntegrityAlgorithm" x.phase2IntegrityAlgorithm, putOpt "ProvisioningStatus" x.provisioningStatus, putOpt "ProvisioningStatusReason" x.provisioningStatusReason] + ofValue v := do + let ikeVersion ← v.opt "IkeVersion" + let phase1AdditionalKeyExchanges ← v.opt "Phase1AdditionalKeyExchanges" + let phase1DHGroup ← v.opt "Phase1DHGroup" + let phase1EncryptionAlgorithm ← v.opt "Phase1EncryptionAlgorithm" + let phase1IntegrityAlgorithm ← v.opt "Phase1IntegrityAlgorithm" + let phase2AdditionalKeyExchanges ← v.opt "Phase2AdditionalKeyExchanges" + let phase2DHGroup ← v.opt "Phase2DHGroup" + let phase2EncryptionAlgorithm ← v.opt "Phase2EncryptionAlgorithm" + let phase2IntegrityAlgorithm ← v.opt "Phase2IntegrityAlgorithm" + let provisioningStatus ← v.opt "ProvisioningStatus" + let provisioningStatusReason ← v.opt "ProvisioningStatusReason" + return { ikeVersion, phase1AdditionalKeyExchanges, phase1DHGroup, phase1EncryptionAlgorithm, phase1IntegrityAlgorithm, phase2AdditionalKeyExchanges, phase2DHGroup, phase2EncryptionAlgorithm, phase2IntegrityAlgorithm, provisioningStatus, provisioningStatusReason } + +/-- Describes a principal. -/ +structure AddedPrincipal where + /-- The type of permission granted to the principal. -/ + permissionType : Option PermissionType := none + /-- The Amazon Resource Name (ARN) of the principal. -/ + principal : Option String := none + /-- The type of principal. -/ + principalType : Option PrincipalType := none + /-- The ID of the service. -/ + serviceId : Option String := none + /-- The ID of the service permission. -/ + servicePermissionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AddedPrincipal where + schema := .struct "AddedPrincipal" [({ name := "PermissionType", xmlName := some "permissionType", queryName := some "PermissionType" }, (Shape.schema PermissionType)), + ({ name := "Principal", xmlName := some "principal", queryName := some "Principal" }, .string), + ({ name := "PrincipalType", xmlName := some "principalType", queryName := some "PrincipalType" }, (Shape.schema PrincipalType)), + ({ name := "ServiceId", xmlName := some "serviceId", queryName := some "ServiceId" }, .string), + ({ name := "ServicePermissionId", xmlName := some "servicePermissionId", queryName := some "ServicePermissionId" }, .string)] + toValue x := record [putOpt "PermissionType" x.permissionType, putOpt "Principal" x.principal, putOpt "PrincipalType" x.principalType, putOpt "ServiceId" x.serviceId, putOpt "ServicePermissionId" x.servicePermissionId] + ofValue v := do + let permissionType ← v.opt "PermissionType" + let principal ← v.opt "Principal" + let principalType ← v.opt "PrincipalType" + let serviceId ← v.opt "ServiceId" + let servicePermissionId ← v.opt "ServicePermissionId" + return { permissionType, principal, principalType, serviceId, servicePermissionId } + +/-- Describes an Elastic IP address, or a carrier IP address. -/ +structure Address where + /-- The ID representing the allocation of the address. -/ + allocationId : Option String := none + /-- The ID representing the association of the address with an instance. -/ + associationId : Option String := none + /-- The carrier IP address associated. -/ + carrierIp : Option String := none + /-- The customer-owned IP address. -/ + customerOwnedIp : Option String := none + /-- The ID of the customer-owned address pool. -/ + customerOwnedIpv4Pool : Option String := none + /-- The network ( vpc ). -/ + domain : Option DomainType := none + /-- The ID of the instance that the address is associated with (if any). -/ + instanceId : Option String := none + /-- The name of the unique set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises IP addresses. -/ + networkBorderGroup : Option String := none + /-- The ID of the network interface. -/ + networkInterfaceId : Option String := none + /-- The ID of the Amazon Web Services account that owns the network interface. -/ + networkInterfaceOwnerId : Option String := none + /-- The private IP address associated with the Elastic IP address. -/ + privateIpAddress : Option String := none + /-- The Elastic IP address. -/ + publicIp : Option String := none + /-- The ID of an address pool. -/ + publicIpv4Pool : Option String := none + /-- The service that manages the elastic IP address. -/ + serviceManaged : Option ServiceManaged := none + /-- The ID of the subnet where the IP address is allocated. -/ + subnetId : Option String := none + /-- Any tags assigned to the Elastic IP address. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Address where + schema := .struct "Address" [({ name := "AllocationId", xmlName := some "allocationId", queryName := some "AllocationId" }, .string), + ({ name := "AssociationId", xmlName := some "associationId", queryName := some "AssociationId" }, .string), + ({ name := "CarrierIp", xmlName := some "carrierIp", queryName := some "CarrierIp" }, .string), + ({ name := "CustomerOwnedIp", xmlName := some "customerOwnedIp", queryName := some "CustomerOwnedIp" }, .string), + ({ name := "CustomerOwnedIpv4Pool", xmlName := some "customerOwnedIpv4Pool", queryName := some "CustomerOwnedIpv4Pool" }, .string), + ({ name := "Domain", xmlName := some "domain", queryName := some "Domain" }, (Shape.schema DomainType)), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "NetworkBorderGroup", xmlName := some "networkBorderGroup", queryName := some "NetworkBorderGroup" }, .string), + ({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "NetworkInterfaceOwnerId", xmlName := some "networkInterfaceOwnerId", queryName := some "NetworkInterfaceOwnerId" }, .string), + ({ name := "PrivateIpAddress", xmlName := some "privateIpAddress", queryName := some "PrivateIpAddress" }, .string), + ({ name := "PublicIp", xmlName := some "publicIp", queryName := some "PublicIp" }, .string), + ({ name := "PublicIpv4Pool", xmlName := some "publicIpv4Pool", queryName := some "PublicIpv4Pool" }, .string), + ({ name := "ServiceManaged", xmlName := some "serviceManaged", queryName := some "ServiceManaged" }, (Shape.schema ServiceManaged)), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "AllocationId" x.allocationId, putOpt "AssociationId" x.associationId, putOpt "CarrierIp" x.carrierIp, putOpt "CustomerOwnedIp" x.customerOwnedIp, putOpt "CustomerOwnedIpv4Pool" x.customerOwnedIpv4Pool, putOpt "Domain" x.domain, putOpt "InstanceId" x.instanceId, putOpt "NetworkBorderGroup" x.networkBorderGroup, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "NetworkInterfaceOwnerId" x.networkInterfaceOwnerId, putOpt "PrivateIpAddress" x.privateIpAddress, putOpt "PublicIp" x.publicIp, putOpt "PublicIpv4Pool" x.publicIpv4Pool, putOpt "ServiceManaged" x.serviceManaged, putOpt "SubnetId" x.subnetId, putOpt "Tags" x.tags] + ofValue v := do + let allocationId ← v.opt "AllocationId" + let associationId ← v.opt "AssociationId" + let carrierIp ← v.opt "CarrierIp" + let customerOwnedIp ← v.opt "CustomerOwnedIp" + let customerOwnedIpv4Pool ← v.opt "CustomerOwnedIpv4Pool" + let domain ← v.opt "Domain" + let instanceId ← v.opt "InstanceId" + let networkBorderGroup ← v.opt "NetworkBorderGroup" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let networkInterfaceOwnerId ← v.opt "NetworkInterfaceOwnerId" + let privateIpAddress ← v.opt "PrivateIpAddress" + let publicIp ← v.opt "PublicIp" + let publicIpv4Pool ← v.opt "PublicIpv4Pool" + let serviceManaged ← v.opt "ServiceManaged" + let subnetId ← v.opt "SubnetId" + let tags ← v.opt "Tags" + return { allocationId, associationId, carrierIp, customerOwnedIp, customerOwnedIpv4Pool, domain, instanceId, networkBorderGroup, networkInterfaceId, networkInterfaceOwnerId, privateIpAddress, publicIp, publicIpv4Pool, serviceManaged, subnetId, tags } + +/-- The attributes associated with an Elastic IP address. -/ +structure AddressAttribute where + /-- [EC2-VPC] The allocation ID. -/ + allocationId : Option String := none + /-- The pointer (PTR) record for the IP address. -/ + ptrRecord : Option String := none + /-- The updated PTR record for the IP address. -/ + ptrRecordUpdate : Option PtrUpdateStatus := none + /-- The public IP address. -/ + publicIp : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AddressAttribute where + schema := .struct "AddressAttribute" [({ name := "AllocationId", xmlName := some "allocationId", queryName := some "AllocationId" }, .string), + ({ name := "PtrRecord", xmlName := some "ptrRecord", queryName := some "PtrRecord" }, .string), + ({ name := "PtrRecordUpdate", xmlName := some "ptrRecordUpdate", queryName := some "PtrRecordUpdate" }, (Shape.schema PtrUpdateStatus)), + ({ name := "PublicIp", xmlName := some "publicIp", queryName := some "PublicIp" }, .string)] + toValue x := record [putOpt "AllocationId" x.allocationId, putOpt "PtrRecord" x.ptrRecord, putOpt "PtrRecordUpdate" x.ptrRecordUpdate, putOpt "PublicIp" x.publicIp] + ofValue v := do + let allocationId ← v.opt "AllocationId" + let ptrRecord ← v.opt "PtrRecord" + let ptrRecordUpdate ← v.opt "PtrRecordUpdate" + let publicIp ← v.opt "PublicIp" + return { allocationId, ptrRecord, ptrRecordUpdate, publicIp } + +/-- Details on the Elastic IP address transfer. -/ +structure AddressTransfer where + /-- The Elastic IP address transfer status. -/ + addressTransferStatus : Option AddressTransferStatus := none + /-- The allocation ID of an Elastic IP address. -/ + allocationId : Option String := none + /-- The Elastic IP address being transferred. -/ + publicIp : Option String := none + /-- The ID of the account that you want to transfer the Elastic IP address to. -/ + transferAccountId : Option String := none + /-- The timestamp when the Elastic IP address transfer was accepted. -/ + transferOfferAcceptedTimestamp : Option Timestamp := none + /-- The timestamp when the Elastic IP address transfer expired. -/ + transferOfferExpirationTimestamp : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AddressTransfer where + schema := .struct "AddressTransfer" [({ name := "AddressTransferStatus", xmlName := some "addressTransferStatus", queryName := some "AddressTransferStatus" }, (Shape.schema AddressTransferStatus)), + ({ name := "AllocationId", xmlName := some "allocationId", queryName := some "AllocationId" }, .string), + ({ name := "PublicIp", xmlName := some "publicIp", queryName := some "PublicIp" }, .string), + ({ name := "TransferAccountId", xmlName := some "transferAccountId", queryName := some "TransferAccountId" }, .string), + ({ name := "TransferOfferAcceptedTimestamp", xmlName := some "transferOfferAcceptedTimestamp", queryName := some "TransferOfferAcceptedTimestamp" }, (.time none)), + ({ name := "TransferOfferExpirationTimestamp", xmlName := some "transferOfferExpirationTimestamp", queryName := some "TransferOfferExpirationTimestamp" }, (.time none))] + toValue x := record [putOpt "AddressTransferStatus" x.addressTransferStatus, putOpt "AllocationId" x.allocationId, putOpt "PublicIp" x.publicIp, putOpt "TransferAccountId" x.transferAccountId, putOpt "TransferOfferAcceptedTimestamp" x.transferOfferAcceptedTimestamp, putOpt "TransferOfferExpirationTimestamp" x.transferOfferExpirationTimestamp] + ofValue v := do + let addressTransferStatus ← v.opt "AddressTransferStatus" + let allocationId ← v.opt "AllocationId" + let publicIp ← v.opt "PublicIp" + let transferAccountId ← v.opt "TransferAccountId" + let transferOfferAcceptedTimestamp ← v.opt "TransferOfferAcceptedTimestamp" + let transferOfferExpirationTimestamp ← v.opt "TransferOfferExpirationTimestamp" + return { addressTransferStatus, allocationId, publicIp, transferAccountId, transferOfferAcceptedTimestamp, transferOfferExpirationTimestamp } + +structure AllocateAddressResult where + /-- The ID that represents the allocation of the Elastic IP address. -/ + allocationId : Option String := none + /-- The carrier IP address. -/ + carrierIp : Option String := none + /-- The customer-owned IP address. -/ + customerOwnedIp : Option String := none + /-- The ID of the customer-owned address pool. -/ + customerOwnedIpv4Pool : Option String := none + /-- The network ( vpc ). -/ + domain : Option DomainType := none + /-- The set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises IP addresses. -/ + networkBorderGroup : Option String := none + /-- The Amazon-owned IP address. -/ + publicIp : Option String := none + /-- The ID of an address pool that you own. -/ + publicIpv4Pool : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AllocateAddressResult where + schema := .struct "AllocateAddressResult" [({ name := "AllocationId", xmlName := some "allocationId", queryName := some "AllocationId" }, .string), + ({ name := "CarrierIp", xmlName := some "carrierIp", queryName := some "CarrierIp" }, .string), + ({ name := "CustomerOwnedIp", xmlName := some "customerOwnedIp", queryName := some "CustomerOwnedIp" }, .string), + ({ name := "CustomerOwnedIpv4Pool", xmlName := some "customerOwnedIpv4Pool", queryName := some "CustomerOwnedIpv4Pool" }, .string), + ({ name := "Domain", xmlName := some "domain", queryName := some "Domain" }, (Shape.schema DomainType)), + ({ name := "NetworkBorderGroup", xmlName := some "networkBorderGroup", queryName := some "NetworkBorderGroup" }, .string), + ({ name := "PublicIp", xmlName := some "publicIp", queryName := some "PublicIp" }, .string), + ({ name := "PublicIpv4Pool", xmlName := some "publicIpv4Pool", queryName := some "PublicIpv4Pool" }, .string)] + toValue x := record [putOpt "AllocationId" x.allocationId, putOpt "CarrierIp" x.carrierIp, putOpt "CustomerOwnedIp" x.customerOwnedIp, putOpt "CustomerOwnedIpv4Pool" x.customerOwnedIpv4Pool, putOpt "Domain" x.domain, putOpt "NetworkBorderGroup" x.networkBorderGroup, putOpt "PublicIp" x.publicIp, putOpt "PublicIpv4Pool" x.publicIpv4Pool] + ofValue v := do + let allocationId ← v.opt "AllocationId" + let carrierIp ← v.opt "CarrierIp" + let customerOwnedIp ← v.opt "CustomerOwnedIp" + let customerOwnedIpv4Pool ← v.opt "CustomerOwnedIpv4Pool" + let domain ← v.opt "Domain" + let networkBorderGroup ← v.opt "NetworkBorderGroup" + let publicIp ← v.opt "PublicIp" + let publicIpv4Pool ← v.opt "PublicIpv4Pool" + return { allocationId, carrierIp, customerOwnedIp, customerOwnedIpv4Pool, domain, networkBorderGroup, publicIp, publicIpv4Pool } + +/-- Describes a principal. -/ +structure AllowedPrincipal where + /-- The type of permission granted to the principal. -/ + permissionType : Option PermissionType := none + /-- The Amazon Resource Name (ARN) of the principal. -/ + principal : Option String := none + /-- The type of principal. -/ + principalType : Option PrincipalType := none + /-- The ID of the service. -/ + serviceId : Option String := none + /-- The ID of the service permission. -/ + servicePermissionId : Option String := none + /-- The tags. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AllowedPrincipal where + schema := .struct "AllowedPrincipal" [({ name := "PermissionType", xmlName := some "permissionType", queryName := some "PermissionType" }, (Shape.schema PermissionType)), + ({ name := "Principal", xmlName := some "principal", queryName := some "Principal" }, .string), + ({ name := "PrincipalType", xmlName := some "principalType", queryName := some "PrincipalType" }, (Shape.schema PrincipalType)), + ({ name := "ServiceId", xmlName := some "serviceId", queryName := some "ServiceId" }, .string), + ({ name := "ServicePermissionId", xmlName := some "servicePermissionId", queryName := some "ServicePermissionId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "PermissionType" x.permissionType, putOpt "Principal" x.principal, putOpt "PrincipalType" x.principalType, putOpt "ServiceId" x.serviceId, putOpt "ServicePermissionId" x.servicePermissionId, putOpt "Tags" x.tags] + ofValue v := do + let permissionType ← v.opt "PermissionType" + let principal ← v.opt "Principal" + let principalType ← v.opt "PrincipalType" + let serviceId ← v.opt "ServiceId" + let servicePermissionId ← v.opt "ServicePermissionId" + let tags ← v.opt "Tags" + return { permissionType, principal, principalType, serviceId, servicePermissionId, tags } + +/-- Describes a network access control (ACL) rule. -/ +structure AnalysisAclRule where + /-- The IPv4 address range, in CIDR notation. -/ + cidr : Option String := none + /-- Indicates whether the rule is an outbound rule. -/ + egress : Option Bool := none + /-- The range of ports. -/ + portRange : Option PortRange := none + /-- The protocol. -/ + protocol : Option String := none + /-- Indicates whether to allow or deny traffic that matches the rule. -/ + ruleAction : Option String := none + /-- The rule number. -/ + ruleNumber : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AnalysisAclRule where + schema := .struct "AnalysisAclRule" [({ name := "Cidr", xmlName := some "cidr", queryName := some "Cidr" }, .string), + ({ name := "Egress", xmlName := some "egress", queryName := some "Egress" }, .bool), + ({ name := "PortRange", xmlName := some "portRange", queryName := some "PortRange" }, (Shape.schema PortRange)), + ({ name := "Protocol", xmlName := some "protocol", queryName := some "Protocol" }, .string), + ({ name := "RuleAction", xmlName := some "ruleAction", queryName := some "RuleAction" }, .string), + ({ name := "RuleNumber", xmlName := some "ruleNumber", queryName := some "RuleNumber" }, .int)] + toValue x := record [putOpt "Cidr" x.cidr, putOpt "Egress" x.egress, putOpt "PortRange" x.portRange, putOpt "Protocol" x.protocol, putOpt "RuleAction" x.ruleAction, putOpt "RuleNumber" x.ruleNumber] + ofValue v := do + let cidr ← v.opt "Cidr" + let egress ← v.opt "Egress" + let portRange ← v.opt "PortRange" + let protocol ← v.opt "Protocol" + let ruleAction ← v.opt "RuleAction" + let ruleNumber ← v.opt "RuleNumber" + return { cidr, egress, portRange, protocol, ruleAction, ruleNumber } + +/-- Describes a load balancer target. -/ +structure AnalysisLoadBalancerTarget where + /-- The IP address. -/ + address : Option String := none + /-- The Availability Zone. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone. -/ + availabilityZoneId : Option String := none + /-- Information about the instance. -/ + «instance» : Option AnalysisComponent := none + /-- The port on which the target is listening. -/ + port : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AnalysisLoadBalancerTarget where + schema := .struct "AnalysisLoadBalancerTarget" [({ name := "Address", xmlName := some "address", queryName := some "Address" }, .string), + ({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "Instance", xmlName := some "instance", queryName := some "Instance" }, (Shape.schema AnalysisComponent)), + ({ name := "Port", xmlName := some "port", queryName := some "Port" }, .int)] + toValue x := record [putOpt "Address" x.address, putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "Instance" x.«instance», putOpt "Port" x.port] + ofValue v := do + let address ← v.opt "Address" + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let «instance» ← v.opt "Instance" + let port ← v.opt "Port" + return { address, availabilityZone, availabilityZoneId, «instance», port } + +/-- Describes a header. -/ +structure AnalysisPacketHeader where + /-- The destination addresses. -/ + destinationAddresses : Option (List String) := none + /-- The destination port ranges. -/ + destinationPortRanges : Option (List PortRange) := none + /-- The protocol. -/ + protocol : Option String := none + /-- The source addresses. -/ + sourceAddresses : Option (List String) := none + /-- The source port ranges. -/ + sourcePortRanges : Option (List PortRange) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AnalysisPacketHeader where + schema := .struct "AnalysisPacketHeader" [({ name := "DestinationAddresses", xmlName := some "destinationAddressSet", queryName := some "DestinationAddressSet" }, (.list .string "item")), + ({ name := "DestinationPortRanges", xmlName := some "destinationPortRangeSet", queryName := some "DestinationPortRangeSet" }, (.list (Shape.schema PortRange) "item")), + ({ name := "Protocol", xmlName := some "protocol", queryName := some "Protocol" }, .string), + ({ name := "SourceAddresses", xmlName := some "sourceAddressSet", queryName := some "SourceAddressSet" }, (.list .string "item")), + ({ name := "SourcePortRanges", xmlName := some "sourcePortRangeSet", queryName := some "SourcePortRangeSet" }, (.list (Shape.schema PortRange) "item"))] + toValue x := record [putOpt "DestinationAddresses" x.destinationAddresses, putOpt "DestinationPortRanges" x.destinationPortRanges, putOpt "Protocol" x.protocol, putOpt "SourceAddresses" x.sourceAddresses, putOpt "SourcePortRanges" x.sourcePortRanges] + ofValue v := do + let destinationAddresses ← v.opt "DestinationAddresses" + let destinationPortRanges ← v.opt "DestinationPortRanges" + let protocol ← v.opt "Protocol" + let sourceAddresses ← v.opt "SourceAddresses" + let sourcePortRanges ← v.opt "SourcePortRanges" + return { destinationAddresses, destinationPortRanges, protocol, sourceAddresses, sourcePortRanges } + +/-- Describes a security group rule. -/ +structure AnalysisSecurityGroupRule where + /-- The IPv4 address range, in CIDR notation. -/ + cidr : Option String := none + /-- The direction. -/ + direction : Option String := none + /-- The port range. -/ + portRange : Option PortRange := none + /-- The prefix list ID. -/ + prefixListId : Option String := none + /-- The protocol name. -/ + protocol : Option String := none + /-- The security group ID. -/ + securityGroupId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AnalysisSecurityGroupRule where + schema := .struct "AnalysisSecurityGroupRule" [({ name := "Cidr", xmlName := some "cidr", queryName := some "Cidr" }, .string), + ({ name := "Direction", xmlName := some "direction", queryName := some "Direction" }, .string), + ({ name := "PortRange", xmlName := some "portRange", queryName := some "PortRange" }, (Shape.schema PortRange)), + ({ name := "PrefixListId", xmlName := some "prefixListId", queryName := some "PrefixListId" }, .string), + ({ name := "Protocol", xmlName := some "protocol", queryName := some "Protocol" }, .string), + ({ name := "SecurityGroupId", xmlName := some "securityGroupId", queryName := some "SecurityGroupId" }, .string)] + toValue x := record [putOpt "Cidr" x.cidr, putOpt "Direction" x.direction, putOpt "PortRange" x.portRange, putOpt "PrefixListId" x.prefixListId, putOpt "Protocol" x.protocol, putOpt "SecurityGroupId" x.securityGroupId] + ofValue v := do + let cidr ← v.opt "Cidr" + let direction ← v.opt "Direction" + let portRange ← v.opt "PortRange" + let prefixListId ← v.opt "PrefixListId" + let protocol ← v.opt "Protocol" + let securityGroupId ← v.opt "SecurityGroupId" + return { cidr, direction, portRange, prefixListId, protocol, securityGroupId } + +/-- Describes an entry in a transit gateway policy table. -/ +structure AnalysisTransitGatewayPolicyTableEntry where + /-- The destination CIDR block. -/ + destinationCidr : Option String := none + /-- The destination port range. -/ + destinationPortRange : Option PortRange := none + /-- The protocol number. -/ + protocol : Option String := none + /-- The rule number for the policy table entry. -/ + ruleNumber : Option Int := none + /-- The source CIDR block. -/ + sourceCidr : Option String := none + /-- The source port range. -/ + sourcePortRange : Option PortRange := none + /-- The ID of the transit gateway route table to which the entry routes matching traffic. -/ + targetRouteTableId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AnalysisTransitGatewayPolicyTableEntry where + schema := .struct "AnalysisTransitGatewayPolicyTableEntry" [({ name := "DestinationCidr", xmlName := some "destinationCidr", queryName := some "DestinationCidr" }, .string), + ({ name := "DestinationPortRange", xmlName := some "destinationPortRange", queryName := some "DestinationPortRange" }, (Shape.schema PortRange)), + ({ name := "Protocol", xmlName := some "protocol", queryName := some "Protocol" }, .string), + ({ name := "RuleNumber", xmlName := some "ruleNumber", queryName := some "RuleNumber" }, .int), + ({ name := "SourceCidr", xmlName := some "sourceCidr", queryName := some "SourceCidr" }, .string), + ({ name := "SourcePortRange", xmlName := some "sourcePortRange", queryName := some "SourcePortRange" }, (Shape.schema PortRange)), + ({ name := "TargetRouteTableId", xmlName := some "targetRouteTableId", queryName := some "TargetRouteTableId" }, .string)] + toValue x := record [putOpt "DestinationCidr" x.destinationCidr, putOpt "DestinationPortRange" x.destinationPortRange, putOpt "Protocol" x.protocol, putOpt "RuleNumber" x.ruleNumber, putOpt "SourceCidr" x.sourceCidr, putOpt "SourcePortRange" x.sourcePortRange, putOpt "TargetRouteTableId" x.targetRouteTableId] + ofValue v := do + let destinationCidr ← v.opt "DestinationCidr" + let destinationPortRange ← v.opt "DestinationPortRange" + let protocol ← v.opt "Protocol" + let ruleNumber ← v.opt "RuleNumber" + let sourceCidr ← v.opt "SourceCidr" + let sourcePortRange ← v.opt "SourcePortRange" + let targetRouteTableId ← v.opt "TargetRouteTableId" + return { destinationCidr, destinationPortRange, protocol, ruleNumber, sourceCidr, sourcePortRange, targetRouteTableId } + +/-- Information about an application status check association. -/ +structure ApplicationStatusCheckAssociationObject where + /-- The ID of the application status check. -/ + applicationStatusCheckId : Option String := none + /-- The type of target that the application status check is associated with. -/ + associationType : Option AssociationTypeEnum := none + /-- The key for the association. -/ + key : Option String := none + /-- The value for the association target. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ApplicationStatusCheckAssociationObject where + schema := .struct "ApplicationStatusCheckAssociationObject" [({ name := "ApplicationStatusCheckId", xmlName := some "applicationStatusCheckId", queryName := some "ApplicationStatusCheckId" }, .string), + ({ name := "AssociationType", xmlName := some "associationType", queryName := some "AssociationType" }, (Shape.schema AssociationTypeEnum)), + ({ name := "Key", xmlName := some "key", queryName := some "Key" }, .string), + ({ name := "Value", xmlName := some "value", queryName := some "Value" }, .string)] + toValue x := record [putOpt "ApplicationStatusCheckId" x.applicationStatusCheckId, putOpt "AssociationType" x.associationType, putOpt "Key" x.key, putOpt "Value" x.value] + ofValue v := do + let applicationStatusCheckId ← v.opt "ApplicationStatusCheckId" + let associationType ← v.opt "AssociationType" + let key ← v.opt "Key" + let value ← v.opt "Value" + return { applicationStatusCheckId, associationType, key, value } + +/-- Describes the details of an application status check for an instance. -/ +structure ApplicationStatusDetail where + /-- The aggregation setting for the application status check. -/ + aggregation : Option AggregationStatusEnum := none + /-- The ID of the application status check. -/ + applicationStatusCheckId : Option String := none + /-- The date and time when the check was last updated. -/ + checkUpdateTime : Option Timestamp := none + /-- The reason for the current status. -/ + reason : Option ApplicationStatusReason := none + /-- The status of the individual application status check. -/ + status : Option ApplicationStatusCheckEnum := none + /-- The date and time when the current status started for this check. -/ + statusSince : Option Timestamp := none + /-- The date and time of the last status update for this check. -/ + statusTimeStamp : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ApplicationStatusDetail where + schema := .struct "ApplicationStatusDetail" [({ name := "Aggregation", xmlName := some "aggregation", queryName := some "Aggregation" }, (Shape.schema AggregationStatusEnum)), + ({ name := "ApplicationStatusCheckId", xmlName := some "applicationStatusCheckId", queryName := some "ApplicationStatusCheckId" }, .string), + ({ name := "CheckUpdateTime", xmlName := some "checkUpdateTime", queryName := some "CheckUpdateTime" }, (.time none)), + ({ name := "Reason", xmlName := some "reason", queryName := some "Reason" }, (Shape.schema ApplicationStatusReason)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema ApplicationStatusCheckEnum)), + ({ name := "StatusSince", xmlName := some "statusSince", queryName := some "StatusSince" }, (.time none)), + ({ name := "StatusTimeStamp", xmlName := some "statusTimeStamp", queryName := some "StatusTimeStamp" }, (.time none))] + toValue x := record [putOpt "Aggregation" x.aggregation, putOpt "ApplicationStatusCheckId" x.applicationStatusCheckId, putOpt "CheckUpdateTime" x.checkUpdateTime, putOpt "Reason" x.reason, putOpt "Status" x.status, putOpt "StatusSince" x.statusSince, putOpt "StatusTimeStamp" x.statusTimeStamp] + ofValue v := do + let aggregation ← v.opt "Aggregation" + let applicationStatusCheckId ← v.opt "ApplicationStatusCheckId" + let checkUpdateTime ← v.opt "CheckUpdateTime" + let reason ← v.opt "Reason" + let status ← v.opt "Status" + let statusSince ← v.opt "StatusSince" + let statusTimeStamp ← v.opt "StatusTimeStamp" + return { aggregation, applicationStatusCheckId, checkUpdateTime, reason, status, statusSince, statusTimeStamp } + +/-- Provides a summary of the application-level health status for an instance. -/ +structure ApplicationStatusSummary where + /-- The date and time when the application status became impaired. -/ + impairedSince : Option Timestamp := none + /-- The current status. -/ + status : Option SummaryStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ApplicationStatusSummary where + schema := .struct "ApplicationStatusSummary" [({ name := "ImpairedSince", xmlName := some "impairedSince", queryName := some "ImpairedSince" }, (.time none)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema SummaryStatus))] + toValue x := record [putOpt "ImpairedSince" x.impairedSince, putOpt "Status" x.status] + ofValue v := do + let impairedSince ← v.opt "ImpairedSince" + let status ← v.opt "Status" + return { impairedSince, status } + +/-- An Autonomous System Number (ASN) and BYOIP CIDR association. -/ +structure AsnAssociation where + /-- The association's ASN. -/ + asn : Option String := none + /-- The association's CIDR. -/ + cidr : Option String := none + /-- The association's state. -/ + state : Option AsnAssociationState := none + /-- The association's status message. -/ + statusMessage : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AsnAssociation where + schema := .struct "AsnAssociation" [({ name := "Asn", xmlName := some "asn", queryName := some "Asn" }, .string), + ({ name := "Cidr", xmlName := some "cidr", queryName := some "Cidr" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema AsnAssociationState)), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string)] + toValue x := record [putOpt "Asn" x.asn, putOpt "Cidr" x.cidr, putOpt "State" x.state, putOpt "StatusMessage" x.statusMessage] + ofValue v := do + let asn ← v.opt "Asn" + let cidr ← v.opt "Cidr" + let state ← v.opt "State" + let statusMessage ← v.opt "StatusMessage" + return { asn, cidr, state, statusMessage } + +structure AssignPrivateIpAddressesResult where + /-- The IPv4 prefixes that are assigned to the network interface. -/ + assignedIpv4Prefixes : Option (List Ipv4PrefixSpecification) := none + /-- The private IP addresses assigned to the network interface. -/ + assignedPrivateIpAddresses : Option (List AssignedPrivateIpAddress) := none + /-- The ID of the network interface. -/ + networkInterfaceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssignPrivateIpAddressesResult where + schema := .struct "AssignPrivateIpAddressesResult" [({ name := "AssignedIpv4Prefixes", xmlName := some "assignedIpv4PrefixSet", queryName := some "AssignedIpv4PrefixSet" }, (.list (Shape.schema Ipv4PrefixSpecification) "item")), + ({ name := "AssignedPrivateIpAddresses", xmlName := some "assignedPrivateIpAddressesSet", queryName := some "AssignedPrivateIpAddressesSet" }, (.list (Shape.schema AssignedPrivateIpAddress) "item")), + ({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string)] + toValue x := record [putOpt "AssignedIpv4Prefixes" x.assignedIpv4Prefixes, putOpt "AssignedPrivateIpAddresses" x.assignedPrivateIpAddresses, putOpt "NetworkInterfaceId" x.networkInterfaceId] + ofValue v := do + let assignedIpv4Prefixes ← v.opt "AssignedIpv4Prefixes" + let assignedPrivateIpAddresses ← v.opt "AssignedPrivateIpAddresses" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + return { assignedIpv4Prefixes, assignedPrivateIpAddresses, networkInterfaceId } + +structure AssociateApplicationStatusCheckRequest where + /-- The ID of the application status check to associate. -/ + applicationStatusCheckId : String + /-- A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the instances to associate with the application status check. -/ + instanceIds : Option (List String) := none + /-- The tags to associate the application status check with. -/ + targetTagAssociations : Option (List CustomTagKeyValueRequestPair) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateApplicationStatusCheckRequest where + schema := .struct "AssociateApplicationStatusCheckRequest" [({ name := "ApplicationStatusCheckId", required := true }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceIds", xmlName := some "InstanceId" }, (.list .string "item")), + ({ name := "TargetTagAssociations", xmlName := some "TargetTagAssociation" }, (.list (Shape.schema CustomTagKeyValueRequestPair) "item"))] + toValue x := record [put "ApplicationStatusCheckId" x.applicationStatusCheckId, putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "InstanceIds" x.instanceIds, putOpt "TargetTagAssociations" x.targetTagAssociations] + ofValue v := do + let applicationStatusCheckId ← v.req "ApplicationStatusCheckId" + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let instanceIds ← v.opt "InstanceIds" + let targetTagAssociations ← v.opt "TargetTagAssociations" + return { applicationStatusCheckId, clientToken, dryRun, instanceIds, targetTagAssociations } + +structure AssociateApplicationStatusCheckResult where + /-- The associations that were successfully created. -/ + successfulResults : Option (List SuccessfulAssociationResponseObject) := none + /-- The associations that failed to be created. -/ + unsuccessfulResults : Option (List UnsuccessfulAssociationResponseObject) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateApplicationStatusCheckResult where + schema := .struct "AssociateApplicationStatusCheckResult" [({ name := "SuccessfulResults", xmlName := some "successfulResultSet", queryName := some "SuccessfulResultSet" }, (.list (Shape.schema SuccessfulAssociationResponseObject) "item")), + ({ name := "UnsuccessfulResults", xmlName := some "unsuccessfulResultSet", queryName := some "UnsuccessfulResultSet" }, (.list (Shape.schema UnsuccessfulAssociationResponseObject) "item"))] + toValue x := record [putOpt "SuccessfulResults" x.successfulResults, putOpt "UnsuccessfulResults" x.unsuccessfulResults] + ofValue v := do + let successfulResults ← v.opt "SuccessfulResults" + let unsuccessfulResults ← v.opt "UnsuccessfulResults" + return { successfulResults, unsuccessfulResults } + +structure AssociateIamInstanceProfileRequest where + /-- The IAM instance profile. -/ + iamInstanceProfile : IamInstanceProfileSpecification + /-- The ID of the instance. -/ + instanceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateIamInstanceProfileRequest where + schema := .struct "AssociateIamInstanceProfileRequest" [({ name := "IamInstanceProfile", required := true }, (Shape.schema IamInstanceProfileSpecification)), + ({ name := "InstanceId", required := true }, .string)] + toValue x := record [put "IamInstanceProfile" x.iamInstanceProfile, put "InstanceId" x.instanceId] + ofValue v := do + let iamInstanceProfile ← v.req "IamInstanceProfile" + let instanceId ← v.req "InstanceId" + return { iamInstanceProfile, instanceId } + +structure AssociateSecurityGroupVpcResult where + /-- The state of the association. -/ + state : Option SecurityGroupVpcAssociationState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateSecurityGroupVpcResult where + schema := .struct "AssociateSecurityGroupVpcResult" [({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema SecurityGroupVpcAssociationState))] + toValue x := record [putOpt "State" x.state] + ofValue v := do + let state ← v.opt "State" + return { state } + +/-- Describes a target network that is associated with a Client VPN endpoint. -/ +structure AssociatedTargetNetwork where + /-- The ID of the subnet. -/ + networkId : Option String := none + /-- The target network type. -/ + networkType : Option AssociatedNetworkType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociatedTargetNetwork where + schema := .struct "AssociatedTargetNetwork" [({ name := "NetworkId", xmlName := some "networkId", queryName := some "NetworkId" }, .string), + ({ name := "NetworkType", xmlName := some "networkType", queryName := some "NetworkType" }, (Shape.schema AssociatedNetworkType))] + toValue x := record [putOpt "NetworkId" x.networkId, putOpt "NetworkType" x.networkType] + ofValue v := do + let networkId ← v.opt "NetworkId" + let networkType ← v.opt "NetworkType" + return { networkId, networkType } + +/-- Describes the state of a target network association. -/ +structure AssociationStatus where + /-- The state of the target network association. -/ + code : Option AssociationStatusCode := none + /-- A message about the status of the target network association, if applicable. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociationStatus where + schema := .struct "AssociationStatus" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, (Shape.schema AssociationStatusCode)), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +/-- Describes integration options for Amazon Athena. -/ +structure AthenaIntegration where + /-- The location in Amazon S3 to store the generated CloudFormation template. -/ + integrationResultS3DestinationArn : String + /-- The end date for the partition. -/ + partitionEndDate : Option Timestamp := none + /-- The schedule for adding new partitions to the table. -/ + partitionLoadFrequency : PartitionLoadFrequency + /-- The start date for the partition. -/ + partitionStartDate : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AthenaIntegration where + schema := .struct "AthenaIntegration" [({ name := "IntegrationResultS3DestinationArn", required := true }, .string), + ({ name := "PartitionEndDate" }, (.time none)), + ({ name := "PartitionLoadFrequency", required := true }, (Shape.schema PartitionLoadFrequency)), + ({ name := "PartitionStartDate" }, (.time none))] + toValue x := record [put "IntegrationResultS3DestinationArn" x.integrationResultS3DestinationArn, putOpt "PartitionEndDate" x.partitionEndDate, put "PartitionLoadFrequency" x.partitionLoadFrequency, putOpt "PartitionStartDate" x.partitionStartDate] + ofValue v := do + let integrationResultS3DestinationArn ← v.req "IntegrationResultS3DestinationArn" + let partitionEndDate ← v.opt "PartitionEndDate" + let partitionLoadFrequency ← v.req "PartitionLoadFrequency" + let partitionStartDate ← v.opt "PartitionStartDate" + return { integrationResultS3DestinationArn, partitionEndDate, partitionLoadFrequency, partitionStartDate } + +/-- ENA Express uses Amazon Web Services Scalable Reliable Datagram (SRD) technology to increase the maximum bandwidth used per stream and minimize tail latency of network traffic between EC2 instances. -/ +structure AttachmentEnaSrdSpecification where + /-- Indicates whether ENA Express is enabled for the network interface. -/ + enaSrdEnabled : Option Bool := none + /-- Configures ENA Express for UDP network traffic. -/ + enaSrdUdpSpecification : Option AttachmentEnaSrdUdpSpecification := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AttachmentEnaSrdSpecification where + schema := .struct "AttachmentEnaSrdSpecification" [({ name := "EnaSrdEnabled", xmlName := some "enaSrdEnabled", queryName := some "EnaSrdEnabled" }, .bool), + ({ name := "EnaSrdUdpSpecification", xmlName := some "enaSrdUdpSpecification", queryName := some "EnaSrdUdpSpecification" }, (Shape.schema AttachmentEnaSrdUdpSpecification))] + toValue x := record [putOpt "EnaSrdEnabled" x.enaSrdEnabled, putOpt "EnaSrdUdpSpecification" x.enaSrdUdpSpecification] + ofValue v := do + let enaSrdEnabled ← v.opt "EnaSrdEnabled" + let enaSrdUdpSpecification ← v.opt "EnaSrdUdpSpecification" + return { enaSrdEnabled, enaSrdUdpSpecification } + +/-- A summary report for the attribute across all Regions. -/ +structure AttributeSummary where + /-- The name of the attribute. -/ + attributeName : Option String := none + /-- The configuration value that is most frequently observed for the attribute. -/ + mostFrequentValue : Option String := none + /-- The number of accounts with the same configuration value for the attribute that is most frequently observed. -/ + numberOfMatchedAccounts : Option Int := none + /-- The number of accounts with a configuration value different from the most frequently observed value for the attribute. -/ + numberOfUnmatchedAccounts : Option Int := none + /-- The summary report for each Region for the attribute. -/ + regionalSummaries : Option (List RegionalSummary) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AttributeSummary where + schema := .struct "AttributeSummary" [({ name := "AttributeName", xmlName := some "attributeName", queryName := some "AttributeName" }, .string), + ({ name := "MostFrequentValue", xmlName := some "mostFrequentValue", queryName := some "MostFrequentValue" }, .string), + ({ name := "NumberOfMatchedAccounts", xmlName := some "numberOfMatchedAccounts", queryName := some "NumberOfMatchedAccounts" }, .int), + ({ name := "NumberOfUnmatchedAccounts", xmlName := some "numberOfUnmatchedAccounts", queryName := some "NumberOfUnmatchedAccounts" }, .int), + ({ name := "RegionalSummaries", xmlName := some "regionalSummarySet", queryName := some "RegionalSummarySet" }, (.list (Shape.schema RegionalSummary) "item"))] + toValue x := record [putOpt "AttributeName" x.attributeName, putOpt "MostFrequentValue" x.mostFrequentValue, putOpt "NumberOfMatchedAccounts" x.numberOfMatchedAccounts, putOpt "NumberOfUnmatchedAccounts" x.numberOfUnmatchedAccounts, putOpt "RegionalSummaries" x.regionalSummaries] + ofValue v := do + let attributeName ← v.opt "AttributeName" + let mostFrequentValue ← v.opt "MostFrequentValue" + let numberOfMatchedAccounts ← v.opt "NumberOfMatchedAccounts" + let numberOfUnmatchedAccounts ← v.opt "NumberOfUnmatchedAccounts" + let regionalSummaries ← v.opt "RegionalSummaries" + return { attributeName, mostFrequentValue, numberOfMatchedAccounts, numberOfUnmatchedAccounts, regionalSummaries } + +/-- Describes Availability Zones, Local Zones, and Wavelength Zones. -/ +structure AvailabilityZone where + /-- The geography information for the Availability Zone or Local Zone. -/ + geography : Option (List AvailabilityZoneGeography) := none + /-- The long name of the Availability Zone group, Local Zone group, or Wavelength Zone group. -/ + groupLongName : Option String := none + /-- The name of the zone group. -/ + groupName : Option String := none + /-- Any messages about the Availability Zone, Local Zone, or Wavelength Zone. -/ + messages : Option (List AvailabilityZoneMessage) := none + /-- The name of the network border group. -/ + networkBorderGroup : Option String := none + /-- For Availability Zones, this parameter always has the value of opt-in-not-required . -/ + optInStatus : Option AvailabilityZoneOptInStatus := none + /-- The ID of the zone that handles some of the Local Zone or Wavelength Zone control plane operations, such as API calls. -/ + parentZoneId : Option String := none + /-- The name of the zone that handles some of the Local Zone or Wavelength Zone control plane operations, such as API calls. -/ + parentZoneName : Option String := none + /-- The name of the Region. -/ + regionName : Option String := none + /-- The state of the Availability Zone, Local Zone, or Wavelength Zone. -/ + state : Option AvailabilityZoneState := none + /-- The sub-geography information for the Availability Zone or Local Zone. -/ + subGeography : Option (List AvailabilityZoneSubGeography) := none + /-- The ID of the Availability Zone, Local Zone, or Wavelength Zone. -/ + zoneId : Option String := none + /-- The name of the Availability Zone, Local Zone, or Wavelength Zone. -/ + zoneName : Option String := none + /-- The type of zone. -/ + zoneType : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AvailabilityZone where + schema := .struct "AvailabilityZone" [({ name := "Geography", xmlName := some "geographySet", queryName := some "GeographySet" }, (.list (Shape.schema AvailabilityZoneGeography) "item")), + ({ name := "GroupLongName", xmlName := some "groupLongName", queryName := some "GroupLongName" }, .string), + ({ name := "GroupName", xmlName := some "groupName", queryName := some "GroupName" }, .string), + ({ name := "Messages", xmlName := some "messageSet", queryName := some "MessageSet" }, (.list (Shape.schema AvailabilityZoneMessage) "item")), + ({ name := "NetworkBorderGroup", xmlName := some "networkBorderGroup", queryName := some "NetworkBorderGroup" }, .string), + ({ name := "OptInStatus", xmlName := some "optInStatus", queryName := some "OptInStatus" }, (Shape.schema AvailabilityZoneOptInStatus)), + ({ name := "ParentZoneId", xmlName := some "parentZoneId", queryName := some "ParentZoneId" }, .string), + ({ name := "ParentZoneName", xmlName := some "parentZoneName", queryName := some "ParentZoneName" }, .string), + ({ name := "RegionName", xmlName := some "regionName", queryName := some "RegionName" }, .string), + ({ name := "State", xmlName := some "zoneState", queryName := some "ZoneState" }, (Shape.schema AvailabilityZoneState)), + ({ name := "SubGeography", xmlName := some "subGeographySet", queryName := some "SubGeographySet" }, (.list (Shape.schema AvailabilityZoneSubGeography) "item")), + ({ name := "ZoneId", xmlName := some "zoneId", queryName := some "ZoneId" }, .string), + ({ name := "ZoneName", xmlName := some "zoneName", queryName := some "ZoneName" }, .string), + ({ name := "ZoneType", xmlName := some "zoneType", queryName := some "ZoneType" }, .string)] + toValue x := record [putOpt "Geography" x.geography, putOpt "GroupLongName" x.groupLongName, putOpt "GroupName" x.groupName, putOpt "Messages" x.messages, putOpt "NetworkBorderGroup" x.networkBorderGroup, putOpt "OptInStatus" x.optInStatus, putOpt "ParentZoneId" x.parentZoneId, putOpt "ParentZoneName" x.parentZoneName, putOpt "RegionName" x.regionName, putOpt "State" x.state, putOpt "SubGeography" x.subGeography, putOpt "ZoneId" x.zoneId, putOpt "ZoneName" x.zoneName, putOpt "ZoneType" x.zoneType] + ofValue v := do + let geography ← v.opt "Geography" + let groupLongName ← v.opt "GroupLongName" + let groupName ← v.opt "GroupName" + let messages ← v.opt "Messages" + let networkBorderGroup ← v.opt "NetworkBorderGroup" + let optInStatus ← v.opt "OptInStatus" + let parentZoneId ← v.opt "ParentZoneId" + let parentZoneName ← v.opt "ParentZoneName" + let regionName ← v.opt "RegionName" + let state ← v.opt "State" + let subGeography ← v.opt "SubGeography" + let zoneId ← v.opt "ZoneId" + let zoneName ← v.opt "ZoneName" + let zoneType ← v.opt "ZoneType" + return { geography, groupLongName, groupName, messages, networkBorderGroup, optInStatus, parentZoneId, parentZoneName, regionName, state, subGeography, zoneId, zoneName, zoneType } + +/-- The capacity information for instances that can be launched onto the Dedicated Host. -/ +structure AvailableCapacity where + /-- The number of instances that can be launched onto the Dedicated Host depending on the host's available capacity. -/ + availableInstanceCapacity : Option (List InstanceCapacity) := none + /-- The number of vCPUs available for launching instances onto the Dedicated Host. -/ + availableVCpus : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AvailableCapacity where + schema := .struct "AvailableCapacity" [({ name := "AvailableInstanceCapacity", xmlName := some "availableInstanceCapacity", queryName := some "AvailableInstanceCapacity" }, (.list (Shape.schema InstanceCapacity) "item")), + ({ name := "AvailableVCpus", xmlName := some "availableVCpus", queryName := some "AvailableVCpus" }, .int)] + toValue x := record [putOpt "AvailableInstanceCapacity" x.availableInstanceCapacity, putOpt "AvailableVCpus" x.availableVCpus] + ofValue v := do + let availableInstanceCapacity ← v.opt "AvailableInstanceCapacity" + let availableVCpus ← v.opt "AvailableVCpus" + return { availableInstanceCapacity, availableVCpus } + +/-- The state of VPC Block Public Access (BPA). -/ +structure BlockPublicAccessStates where + /-- The mode of VPC BPA. -/ + internetGatewayBlockMode : Option BlockPublicAccessMode := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BlockPublicAccessStates where + schema := .struct "BlockPublicAccessStates" [({ name := "InternetGatewayBlockMode", xmlName := some "internetGatewayBlockMode", queryName := some "InternetGatewayBlockMode" }, (Shape.schema BlockPublicAccessMode))] + toValue x := record [putOpt "InternetGatewayBlockMode" x.internetGatewayBlockMode] + ofValue v := do + let internetGatewayBlockMode ← v.opt "InternetGatewayBlockMode" + return { internetGatewayBlockMode } + +/-- The Autonomous System Number (ASN) and BYOIP CIDR association. -/ +structure Byoasn where + /-- A public 2-byte or 4-byte ASN. -/ + asn : Option String := none + /-- An IPAM ID. -/ + ipamId : Option String := none + /-- The provisioning state of the BYOASN. -/ + state : Option AsnState := none + /-- The status message. -/ + statusMessage : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Byoasn where + schema := .struct "Byoasn" [({ name := "Asn", xmlName := some "asn", queryName := some "Asn" }, .string), + ({ name := "IpamId", xmlName := some "ipamId", queryName := some "IpamId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema AsnState)), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string)] + toValue x := record [putOpt "Asn" x.asn, putOpt "IpamId" x.ipamId, putOpt "State" x.state, putOpt "StatusMessage" x.statusMessage] + ofValue v := do + let asn ← v.opt "Asn" + let ipamId ← v.opt "IpamId" + let state ← v.opt "State" + let statusMessage ← v.opt "StatusMessage" + return { asn, ipamId, state, statusMessage } + +structure CancelCapacityReservationRequest where + /-- Specifies the cancellation charge type to apply when cancelling a future-dated Capacity Reservation during its commitment duration. -/ + applyCancellationCharges : Option ApplyCancellationCharges := none + /-- The ID of the Capacity Reservation to be cancelled. -/ + capacityReservationId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the cancellation quote to use for the cancellation. -/ + quoteId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelCapacityReservationRequest where + schema := .struct "CancelCapacityReservationRequest" [({ name := "ApplyCancellationCharges" }, (Shape.schema ApplyCancellationCharges)), + ({ name := "CapacityReservationId", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "QuoteId" }, .string)] + toValue x := record [putOpt "ApplyCancellationCharges" x.applyCancellationCharges, put "CapacityReservationId" x.capacityReservationId, putOpt "DryRun" x.dryRun, putOpt "QuoteId" x.quoteId] + ofValue v := do + let applyCancellationCharges ← v.opt "ApplyCancellationCharges" + let capacityReservationId ← v.req "CapacityReservationId" + let dryRun ← v.opt "DryRun" + let quoteId ← v.opt "QuoteId" + return { applyCancellationCharges, capacityReservationId, dryRun, quoteId } + +/-- Describes a Spot Fleet error. -/ +structure CancelSpotFleetRequestsError where + /-- The error code. -/ + code : Option CancelBatchErrorCode := none + /-- The description for the error code. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelSpotFleetRequestsError where + schema := .struct "CancelSpotFleetRequestsError" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, (Shape.schema CancelBatchErrorCode)), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +/-- Describes a Spot Fleet request that was successfully canceled. -/ +structure CancelSpotFleetRequestsSuccessItem where + /-- The current state of the Spot Fleet request. -/ + currentSpotFleetRequestState : Option BatchState := none + /-- The previous state of the Spot Fleet request. -/ + previousSpotFleetRequestState : Option BatchState := none + /-- The ID of the Spot Fleet request. -/ + spotFleetRequestId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelSpotFleetRequestsSuccessItem where + schema := .struct "CancelSpotFleetRequestsSuccessItem" [({ name := "CurrentSpotFleetRequestState", xmlName := some "currentSpotFleetRequestState", queryName := some "CurrentSpotFleetRequestState" }, (Shape.schema BatchState)), + ({ name := "PreviousSpotFleetRequestState", xmlName := some "previousSpotFleetRequestState", queryName := some "PreviousSpotFleetRequestState" }, (Shape.schema BatchState)), + ({ name := "SpotFleetRequestId", xmlName := some "spotFleetRequestId", queryName := some "SpotFleetRequestId" }, .string)] + toValue x := record [putOpt "CurrentSpotFleetRequestState" x.currentSpotFleetRequestState, putOpt "PreviousSpotFleetRequestState" x.previousSpotFleetRequestState, putOpt "SpotFleetRequestId" x.spotFleetRequestId] + ofValue v := do + let currentSpotFleetRequestState ← v.opt "CurrentSpotFleetRequestState" + let previousSpotFleetRequestState ← v.opt "PreviousSpotFleetRequestState" + let spotFleetRequestId ← v.opt "SpotFleetRequestId" + return { currentSpotFleetRequestState, previousSpotFleetRequestState, spotFleetRequestId } + +/-- Describes the cancellation terms for cancelling a future-dated Capacity Reservation during its commitment duration. -/ +structure CancellationTerms where + /-- The type of cancellation charge. -/ + cancellationType : Option ApplyCancellationCharges := none + /-- The number of hours for which cancellation charges will apply. -/ + chargeCommitmentDurationHours : Option Int := none + /-- The date and time at which cancellation charges will stop. -/ + chargeEndDate : Option Timestamp := none + /-- The number of instances under commitment after cancellation. -/ + committedInstanceCount : Option Int := none + /-- The state that the Capacity Reservation will transition to after cancellation. -/ + reservationState : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancellationTerms where + schema := .struct "CancellationTerms" [({ name := "CancellationType", xmlName := some "cancellationType", queryName := some "CancellationType" }, (Shape.schema ApplyCancellationCharges)), + ({ name := "ChargeCommitmentDurationHours", xmlName := some "chargeCommitmentDurationHours", queryName := some "ChargeCommitmentDurationHours" }, .int), + ({ name := "ChargeEndDate", xmlName := some "chargeEndDate", queryName := some "ChargeEndDate" }, (.time none)), + ({ name := "CommittedInstanceCount", xmlName := some "committedInstanceCount", queryName := some "CommittedInstanceCount" }, .int), + ({ name := "ReservationState", xmlName := some "reservationState", queryName := some "ReservationState" }, .string)] + toValue x := record [putOpt "CancellationType" x.cancellationType, putOpt "ChargeCommitmentDurationHours" x.chargeCommitmentDurationHours, putOpt "ChargeEndDate" x.chargeEndDate, putOpt "CommittedInstanceCount" x.committedInstanceCount, putOpt "ReservationState" x.reservationState] + ofValue v := do + let cancellationType ← v.opt "CancellationType" + let chargeCommitmentDurationHours ← v.opt "ChargeCommitmentDurationHours" + let chargeEndDate ← v.opt "ChargeEndDate" + let committedInstanceCount ← v.opt "CommittedInstanceCount" + let reservationState ← v.opt "ReservationState" + return { cancellationType, chargeCommitmentDurationHours, chargeEndDate, committedInstanceCount, reservationState } + +/-- Describes a request to cancel a Spot Instance. -/ +structure CancelledSpotInstanceRequest where + /-- The ID of the Spot Instance request. -/ + spotInstanceRequestId : Option String := none + /-- The state of the Spot Instance request. -/ + state : Option CancelSpotInstanceRequestState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelledSpotInstanceRequest where + schema := .struct "CancelledSpotInstanceRequest" [({ name := "SpotInstanceRequestId", xmlName := some "spotInstanceRequestId", queryName := some "SpotInstanceRequestId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema CancelSpotInstanceRequestState))] + toValue x := record [putOpt "SpotInstanceRequestId" x.spotInstanceRequestId, putOpt "State" x.state] + ofValue v := do + let spotInstanceRequestId ← v.opt "SpotInstanceRequestId" + let state ← v.opt "State" + return { spotInstanceRequestId, state } + +/-- Information about instance capacity usage for a Capacity Reservation. -/ +structure CapacityAllocation where + /-- Additional metadata associated with the capacity allocation. -/ + allocationMetadata : Option (List CapacityAllocationMetadataEntry) := none + /-- The usage type. -/ + allocationType : Option AllocationType := none + /-- The amount of instance capacity associated with the usage. -/ + count : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityAllocation where + schema := .struct "CapacityAllocation" [({ name := "AllocationMetadata", xmlName := some "allocationMetadataList", queryName := some "AllocationMetadataList" }, (.list (Shape.schema CapacityAllocationMetadataEntry) "item")), + ({ name := "AllocationType", xmlName := some "allocationType", queryName := some "AllocationType" }, (Shape.schema AllocationType)), + ({ name := "Count", xmlName := some "count", queryName := some "Count" }, .int)] + toValue x := record [putOpt "AllocationMetadata" x.allocationMetadata, putOpt "AllocationType" x.allocationType, putOpt "Count" x.count] + ofValue v := do + let allocationMetadata ← v.opt "AllocationMetadata" + let allocationType ← v.opt "AllocationType" + let count ← v.opt "Count" + return { allocationMetadata, allocationType, count } + +/-- Reserve powerful GPU instances on a future date to support your short duration machine learning (ML) workloads. -/ +structure CapacityBlock where + /-- The Availability Zone of the Capacity Block. -/ + availabilityZone : Option String := none + /-- The Availability Zone ID of the Capacity Block. -/ + availabilityZoneId : Option String := none + /-- The ID of the Capacity Block. -/ + capacityBlockId : Option String := none + /-- The ID of the Capacity Reservation. -/ + capacityReservationIds : Option (List String) := none + /-- The date and time at which the Capacity Block was created. -/ + createDate : Option Timestamp := none + /-- The date and time at which the Capacity Block expires. -/ + endDate : Option Timestamp := none + /-- The date and time at which the Capacity Block was started. -/ + startDate : Option Timestamp := none + /-- The state of the Capacity Block. -/ + state : Option CapacityBlockResourceState := none + /-- The tags assigned to the Capacity Block. -/ + tags : Option (List Tag) := none + /-- The EC2 UltraServer type of the Capacity Block. -/ + ultraserverType : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityBlock where + schema := .struct "CapacityBlock" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "CapacityBlockId", xmlName := some "capacityBlockId", queryName := some "CapacityBlockId" }, .string), + ({ name := "CapacityReservationIds", xmlName := some "capacityReservationIdSet", queryName := some "CapacityReservationIdSet" }, (.list .string "item")), + ({ name := "CreateDate", xmlName := some "createDate", queryName := some "CreateDate" }, (.time none)), + ({ name := "EndDate", xmlName := some "endDate", queryName := some "EndDate" }, (.time none)), + ({ name := "StartDate", xmlName := some "startDate", queryName := some "StartDate" }, (.time none)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema CapacityBlockResourceState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "UltraserverType", xmlName := some "ultraserverType", queryName := some "UltraserverType" }, .string)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "CapacityBlockId" x.capacityBlockId, putOpt "CapacityReservationIds" x.capacityReservationIds, putOpt "CreateDate" x.createDate, putOpt "EndDate" x.endDate, putOpt "StartDate" x.startDate, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "UltraserverType" x.ultraserverType] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let capacityBlockId ← v.opt "CapacityBlockId" + let capacityReservationIds ← v.opt "CapacityReservationIds" + let createDate ← v.opt "CreateDate" + let endDate ← v.opt "EndDate" + let startDate ← v.opt "StartDate" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let ultraserverType ← v.opt "UltraserverType" + return { availabilityZone, availabilityZoneId, capacityBlockId, capacityReservationIds, createDate, endDate, startDate, state, tags, ultraserverType } + +/-- Describes a Capacity Block extension. -/ +structure CapacityBlockExtension where + /-- The Availability Zone of the Capacity Block extension. -/ + availabilityZone : Option String := none + /-- The Availability Zone ID of the Capacity Block extension. -/ + availabilityZoneId : Option String := none + /-- The duration of the Capacity Block extension in hours. -/ + capacityBlockExtensionDurationHours : Option Int := none + /-- The end date of the Capacity Block extension. -/ + capacityBlockExtensionEndDate : Option Timestamp := none + /-- The ID of the Capacity Block extension offering. -/ + capacityBlockExtensionOfferingId : Option String := none + /-- The date when the Capacity Block extension was purchased. -/ + capacityBlockExtensionPurchaseDate : Option Timestamp := none + /-- The start date of the Capacity Block extension. -/ + capacityBlockExtensionStartDate : Option Timestamp := none + /-- The status of the Capacity Block extension. -/ + capacityBlockExtensionStatus : Option CapacityBlockExtensionStatus := none + /-- The reservation ID of the Capacity Block extension. -/ + capacityReservationId : Option String := none + /-- The currency of the payment for the Capacity Block extension. -/ + currencyCode : Option String := none + /-- The number of instances in the Capacity Block extension. -/ + instanceCount : Option Int := none + /-- The instance type of the Capacity Block extension. -/ + instanceType : Option String := none + /-- The total price to be paid up front. -/ + upfrontFee : Option String := none + /-- The type of zone where the Capacity Block extension is located. -/ + zoneType : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityBlockExtension where + schema := .struct "CapacityBlockExtension" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "CapacityBlockExtensionDurationHours", xmlName := some "capacityBlockExtensionDurationHours", queryName := some "CapacityBlockExtensionDurationHours" }, .int), + ({ name := "CapacityBlockExtensionEndDate", xmlName := some "capacityBlockExtensionEndDate", queryName := some "CapacityBlockExtensionEndDate" }, (.time none)), + ({ name := "CapacityBlockExtensionOfferingId", xmlName := some "capacityBlockExtensionOfferingId", queryName := some "CapacityBlockExtensionOfferingId" }, .string), + ({ name := "CapacityBlockExtensionPurchaseDate", xmlName := some "capacityBlockExtensionPurchaseDate", queryName := some "CapacityBlockExtensionPurchaseDate" }, (.time none)), + ({ name := "CapacityBlockExtensionStartDate", xmlName := some "capacityBlockExtensionStartDate", queryName := some "CapacityBlockExtensionStartDate" }, (.time none)), + ({ name := "CapacityBlockExtensionStatus", xmlName := some "capacityBlockExtensionStatus", queryName := some "CapacityBlockExtensionStatus" }, (Shape.schema CapacityBlockExtensionStatus)), + ({ name := "CapacityReservationId", xmlName := some "capacityReservationId", queryName := some "CapacityReservationId" }, .string), + ({ name := "CurrencyCode", xmlName := some "currencyCode", queryName := some "CurrencyCode" }, .string), + ({ name := "InstanceCount", xmlName := some "instanceCount", queryName := some "InstanceCount" }, .int), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, .string), + ({ name := "UpfrontFee", xmlName := some "upfrontFee", queryName := some "UpfrontFee" }, .string), + ({ name := "ZoneType", xmlName := some "zoneType", queryName := some "ZoneType" }, .string)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "CapacityBlockExtensionDurationHours" x.capacityBlockExtensionDurationHours, putOpt "CapacityBlockExtensionEndDate" x.capacityBlockExtensionEndDate, putOpt "CapacityBlockExtensionOfferingId" x.capacityBlockExtensionOfferingId, putOpt "CapacityBlockExtensionPurchaseDate" x.capacityBlockExtensionPurchaseDate, putOpt "CapacityBlockExtensionStartDate" x.capacityBlockExtensionStartDate, putOpt "CapacityBlockExtensionStatus" x.capacityBlockExtensionStatus, putOpt "CapacityReservationId" x.capacityReservationId, putOpt "CurrencyCode" x.currencyCode, putOpt "InstanceCount" x.instanceCount, putOpt "InstanceType" x.instanceType, putOpt "UpfrontFee" x.upfrontFee, putOpt "ZoneType" x.zoneType] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let capacityBlockExtensionDurationHours ← v.opt "CapacityBlockExtensionDurationHours" + let capacityBlockExtensionEndDate ← v.opt "CapacityBlockExtensionEndDate" + let capacityBlockExtensionOfferingId ← v.opt "CapacityBlockExtensionOfferingId" + let capacityBlockExtensionPurchaseDate ← v.opt "CapacityBlockExtensionPurchaseDate" + let capacityBlockExtensionStartDate ← v.opt "CapacityBlockExtensionStartDate" + let capacityBlockExtensionStatus ← v.opt "CapacityBlockExtensionStatus" + let capacityReservationId ← v.opt "CapacityReservationId" + let currencyCode ← v.opt "CurrencyCode" + let instanceCount ← v.opt "InstanceCount" + let instanceType ← v.opt "InstanceType" + let upfrontFee ← v.opt "UpfrontFee" + let zoneType ← v.opt "ZoneType" + return { availabilityZone, availabilityZoneId, capacityBlockExtensionDurationHours, capacityBlockExtensionEndDate, capacityBlockExtensionOfferingId, capacityBlockExtensionPurchaseDate, capacityBlockExtensionStartDate, capacityBlockExtensionStatus, capacityReservationId, currencyCode, instanceCount, instanceType, upfrontFee, zoneType } + +/-- The recommended Capacity Block extension that fits your search requirements. -/ +structure CapacityBlockExtensionOffering where + /-- The Availability Zone of the Capacity Block that will be extended. -/ + availabilityZone : Option String := none + /-- The Availability Zone ID of the Capacity Block that will be extended. -/ + availabilityZoneId : Option String := none + /-- The amount of time of the Capacity Block extension offering in hours. -/ + capacityBlockExtensionDurationHours : Option Int := none + /-- The date and time at which the Capacity Block extension expires. -/ + capacityBlockExtensionEndDate : Option Timestamp := none + /-- The ID of the Capacity Block extension offering. -/ + capacityBlockExtensionOfferingId : Option String := none + /-- The date and time at which the Capacity Block extension will start. -/ + capacityBlockExtensionStartDate : Option Timestamp := none + /-- The currency of the payment for the Capacity Block extension offering. -/ + currencyCode : Option String := none + /-- The number of instances in the Capacity Block extension offering. -/ + instanceCount : Option Int := none + /-- The instance type of the Capacity Block that will be extended. -/ + instanceType : Option String := none + /-- The start date of the Capacity Block that will be extended. -/ + startDate : Option Timestamp := none + /-- Indicates the tenancy of the Capacity Block extension offering. -/ + tenancy : Option CapacityReservationTenancy := none + /-- The total price of the Capacity Block extension offering, to be paid up front. -/ + upfrontFee : Option String := none + /-- The type of zone where the Capacity Block extension offering is available. -/ + zoneType : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityBlockExtensionOffering where + schema := .struct "CapacityBlockExtensionOffering" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "CapacityBlockExtensionDurationHours", xmlName := some "capacityBlockExtensionDurationHours", queryName := some "CapacityBlockExtensionDurationHours" }, .int), + ({ name := "CapacityBlockExtensionEndDate", xmlName := some "capacityBlockExtensionEndDate", queryName := some "CapacityBlockExtensionEndDate" }, (.time none)), + ({ name := "CapacityBlockExtensionOfferingId", xmlName := some "capacityBlockExtensionOfferingId", queryName := some "CapacityBlockExtensionOfferingId" }, .string), + ({ name := "CapacityBlockExtensionStartDate", xmlName := some "capacityBlockExtensionStartDate", queryName := some "CapacityBlockExtensionStartDate" }, (.time none)), + ({ name := "CurrencyCode", xmlName := some "currencyCode", queryName := some "CurrencyCode" }, .string), + ({ name := "InstanceCount", xmlName := some "instanceCount", queryName := some "InstanceCount" }, .int), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, .string), + ({ name := "StartDate", xmlName := some "startDate", queryName := some "StartDate" }, (.time none)), + ({ name := "Tenancy", xmlName := some "tenancy", queryName := some "Tenancy" }, (Shape.schema CapacityReservationTenancy)), + ({ name := "UpfrontFee", xmlName := some "upfrontFee", queryName := some "UpfrontFee" }, .string), + ({ name := "ZoneType", xmlName := some "zoneType", queryName := some "ZoneType" }, .string)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "CapacityBlockExtensionDurationHours" x.capacityBlockExtensionDurationHours, putOpt "CapacityBlockExtensionEndDate" x.capacityBlockExtensionEndDate, putOpt "CapacityBlockExtensionOfferingId" x.capacityBlockExtensionOfferingId, putOpt "CapacityBlockExtensionStartDate" x.capacityBlockExtensionStartDate, putOpt "CurrencyCode" x.currencyCode, putOpt "InstanceCount" x.instanceCount, putOpt "InstanceType" x.instanceType, putOpt "StartDate" x.startDate, putOpt "Tenancy" x.tenancy, putOpt "UpfrontFee" x.upfrontFee, putOpt "ZoneType" x.zoneType] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let capacityBlockExtensionDurationHours ← v.opt "CapacityBlockExtensionDurationHours" + let capacityBlockExtensionEndDate ← v.opt "CapacityBlockExtensionEndDate" + let capacityBlockExtensionOfferingId ← v.opt "CapacityBlockExtensionOfferingId" + let capacityBlockExtensionStartDate ← v.opt "CapacityBlockExtensionStartDate" + let currencyCode ← v.opt "CurrencyCode" + let instanceCount ← v.opt "InstanceCount" + let instanceType ← v.opt "InstanceType" + let startDate ← v.opt "StartDate" + let tenancy ← v.opt "Tenancy" + let upfrontFee ← v.opt "UpfrontFee" + let zoneType ← v.opt "ZoneType" + return { availabilityZone, availabilityZoneId, capacityBlockExtensionDurationHours, capacityBlockExtensionEndDate, capacityBlockExtensionOfferingId, capacityBlockExtensionStartDate, currencyCode, instanceCount, instanceType, startDate, tenancy, upfrontFee, zoneType } + +/-- The recommended Capacity Block that fits your search requirements. -/ +structure CapacityBlockOffering where + /-- The Availability Zone of the Capacity Block offering. -/ + availabilityZone : Option String := none + /-- The number of hours (in addition to capacityBlockDurationMinutes ) for the duration of the Capacity Block reservation. -/ + capacityBlockDurationHours : Option Int := none + /-- The number of minutes (in addition to capacityBlockDurationHours ) for the duration of the Capacity Block reservation. -/ + capacityBlockDurationMinutes : Option Int := none + /-- The ID of the Capacity Block offering. -/ + capacityBlockOfferingId : Option String := none + /-- The individual segments that compose the Capacity Block offering. -/ + capacityBlockOfferingSegments : Option (List CapacityBlockOfferingSegment) := none + /-- The currency of the payment for the Capacity Block. -/ + currencyCode : Option String := none + /-- The end date of the Capacity Block offering. -/ + endDate : Option Timestamp := none + /-- The number of instances in the Capacity Block offering. -/ + instanceCount : Option Int := none + /-- The instance type of the Capacity Block offering. -/ + instanceType : Option String := none + /-- The start date of the Capacity Block offering. -/ + startDate : Option Timestamp := none + /-- The tenancy of the Capacity Block. -/ + tenancy : Option CapacityReservationTenancy := none + /-- The number of EC2 UltraServers in the offering. -/ + ultraserverCount : Option Int := none + /-- The EC2 UltraServer type of the Capacity Block offering. -/ + ultraserverType : Option String := none + /-- The total price to be paid up front. -/ + upfrontFee : Option String := none + /-- The type of zone where the Capacity Block offering is available. -/ + zoneType : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityBlockOffering where + schema := .struct "CapacityBlockOffering" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "CapacityBlockDurationHours", xmlName := some "capacityBlockDurationHours", queryName := some "CapacityBlockDurationHours" }, .int), + ({ name := "CapacityBlockDurationMinutes", xmlName := some "capacityBlockDurationMinutes", queryName := some "CapacityBlockDurationMinutes" }, .int), + ({ name := "CapacityBlockOfferingId", xmlName := some "capacityBlockOfferingId", queryName := some "CapacityBlockOfferingId" }, .string), + ({ name := "CapacityBlockOfferingSegments", xmlName := some "capacityBlockOfferingSegmentSet", queryName := some "CapacityBlockOfferingSegmentSet" }, (.list (Shape.schema CapacityBlockOfferingSegment) "item")), + ({ name := "CurrencyCode", xmlName := some "currencyCode", queryName := some "CurrencyCode" }, .string), + ({ name := "EndDate", xmlName := some "endDate", queryName := some "EndDate" }, (.time none)), + ({ name := "InstanceCount", xmlName := some "instanceCount", queryName := some "InstanceCount" }, .int), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, .string), + ({ name := "StartDate", xmlName := some "startDate", queryName := some "StartDate" }, (.time none)), + ({ name := "Tenancy", xmlName := some "tenancy", queryName := some "Tenancy" }, (Shape.schema CapacityReservationTenancy)), + ({ name := "UltraserverCount", xmlName := some "ultraserverCount", queryName := some "UltraserverCount" }, .int), + ({ name := "UltraserverType", xmlName := some "ultraserverType", queryName := some "UltraserverType" }, .string), + ({ name := "UpfrontFee", xmlName := some "upfrontFee", queryName := some "UpfrontFee" }, .string), + ({ name := "ZoneType", xmlName := some "zoneType", queryName := some "ZoneType" }, .string)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "CapacityBlockDurationHours" x.capacityBlockDurationHours, putOpt "CapacityBlockDurationMinutes" x.capacityBlockDurationMinutes, putOpt "CapacityBlockOfferingId" x.capacityBlockOfferingId, putOpt "CapacityBlockOfferingSegments" x.capacityBlockOfferingSegments, putOpt "CurrencyCode" x.currencyCode, putOpt "EndDate" x.endDate, putOpt "InstanceCount" x.instanceCount, putOpt "InstanceType" x.instanceType, putOpt "StartDate" x.startDate, putOpt "Tenancy" x.tenancy, putOpt "UltraserverCount" x.ultraserverCount, putOpt "UltraserverType" x.ultraserverType, putOpt "UpfrontFee" x.upfrontFee, putOpt "ZoneType" x.zoneType] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let capacityBlockDurationHours ← v.opt "CapacityBlockDurationHours" + let capacityBlockDurationMinutes ← v.opt "CapacityBlockDurationMinutes" + let capacityBlockOfferingId ← v.opt "CapacityBlockOfferingId" + let capacityBlockOfferingSegments ← v.opt "CapacityBlockOfferingSegments" + let currencyCode ← v.opt "CurrencyCode" + let endDate ← v.opt "EndDate" + let instanceCount ← v.opt "InstanceCount" + let instanceType ← v.opt "InstanceType" + let startDate ← v.opt "StartDate" + let tenancy ← v.opt "Tenancy" + let ultraserverCount ← v.opt "UltraserverCount" + let ultraserverType ← v.opt "UltraserverType" + let upfrontFee ← v.opt "UpfrontFee" + let zoneType ← v.opt "ZoneType" + return { availabilityZone, capacityBlockDurationHours, capacityBlockDurationMinutes, capacityBlockOfferingId, capacityBlockOfferingSegments, currencyCode, endDate, instanceCount, instanceType, startDate, tenancy, ultraserverCount, ultraserverType, upfrontFee, zoneType } + +/-- Describes the availability of capacity for a Capacity Block. -/ +structure CapacityBlockStatus where + /-- The ID of the Capacity Block. -/ + capacityBlockId : Option String := none + /-- The availability of capacity for the Capacity Block reservations. -/ + capacityReservationStatuses : Option (List CapacityReservationStatus) := none + /-- The status of the high-bandwidth accelerator interconnect. -/ + interconnectStatus : Option CapacityBlockInterconnectStatus := none + /-- The remaining capacity. -/ + totalAvailableCapacity : Option Int := none + /-- The combined amount of Available and Unavailable capacity in the Capacity Block. -/ + totalCapacity : Option Int := none + /-- The unavailable capacity. -/ + totalUnavailableCapacity : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityBlockStatus where + schema := .struct "CapacityBlockStatus" [({ name := "CapacityBlockId", xmlName := some "capacityBlockId", queryName := some "CapacityBlockId" }, .string), + ({ name := "CapacityReservationStatuses", xmlName := some "capacityReservationStatusSet", queryName := some "CapacityReservationStatusSet" }, (.list (Shape.schema CapacityReservationStatus) "item")), + ({ name := "InterconnectStatus", xmlName := some "interconnectStatus", queryName := some "InterconnectStatus" }, (Shape.schema CapacityBlockInterconnectStatus)), + ({ name := "TotalAvailableCapacity", xmlName := some "totalAvailableCapacity", queryName := some "TotalAvailableCapacity" }, .int), + ({ name := "TotalCapacity", xmlName := some "totalCapacity", queryName := some "TotalCapacity" }, .int), + ({ name := "TotalUnavailableCapacity", xmlName := some "totalUnavailableCapacity", queryName := some "TotalUnavailableCapacity" }, .int)] + toValue x := record [putOpt "CapacityBlockId" x.capacityBlockId, putOpt "CapacityReservationStatuses" x.capacityReservationStatuses, putOpt "InterconnectStatus" x.interconnectStatus, putOpt "TotalAvailableCapacity" x.totalAvailableCapacity, putOpt "TotalCapacity" x.totalCapacity, putOpt "TotalUnavailableCapacity" x.totalUnavailableCapacity] + ofValue v := do + let capacityBlockId ← v.opt "CapacityBlockId" + let capacityReservationStatuses ← v.opt "CapacityReservationStatuses" + let interconnectStatus ← v.opt "InterconnectStatus" + let totalAvailableCapacity ← v.opt "TotalAvailableCapacity" + let totalCapacity ← v.opt "TotalCapacity" + let totalUnavailableCapacity ← v.opt "TotalUnavailableCapacity" + return { capacityBlockId, capacityReservationStatuses, interconnectStatus, totalAvailableCapacity, totalCapacity, totalUnavailableCapacity } + +/-- Contains information about a Capacity Manager data export configuration, including export settings, delivery status, and recent export activity. -/ +structure CapacityManagerDataExportResponse where + /-- The unique identifier for the data export configuration. -/ + capacityManagerDataExportId : Option String := none + /-- The timestamp when the data export configuration was created. -/ + createTime : Option Timestamp := none + /-- The S3 URI of the most recently delivered export file. -/ + latestDeliveryS3LocationUri : Option String := none + /-- The status of the most recent export delivery. -/ + latestDeliveryStatus : Option CapacityManagerDataExportStatus := none + /-- A message describing the status of the most recent export delivery, including any error details if the delivery failed. -/ + latestDeliveryStatusMessage : Option String := none + /-- The timestamp when the most recent export was delivered to S3. -/ + latestDeliveryTime : Option Timestamp := none + /-- The file format of the exported data. -/ + outputFormat : Option OutputFormat := none + /-- The name of the S3 bucket where export files are delivered. -/ + s3BucketName : Option String := none + /-- The S3 key prefix used for organizing export files within the bucket. -/ + s3BucketPrefix : Option String := none + /-- The frequency at which data exports are generated. -/ + schedule : Option Schedule := none + /-- The tags associated with the data export configuration. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityManagerDataExportResponse where + schema := .struct "CapacityManagerDataExportResponse" [({ name := "CapacityManagerDataExportId", xmlName := some "capacityManagerDataExportId", queryName := some "CapacityManagerDataExportId" }, .string), + ({ name := "CreateTime", xmlName := some "createTime", queryName := some "CreateTime" }, (.time none)), + ({ name := "LatestDeliveryS3LocationUri", xmlName := some "latestDeliveryS3LocationUri", queryName := some "LatestDeliveryS3LocationUri" }, .string), + ({ name := "LatestDeliveryStatus", xmlName := some "latestDeliveryStatus", queryName := some "LatestDeliveryStatus" }, (Shape.schema CapacityManagerDataExportStatus)), + ({ name := "LatestDeliveryStatusMessage", xmlName := some "latestDeliveryStatusMessage", queryName := some "LatestDeliveryStatusMessage" }, .string), + ({ name := "LatestDeliveryTime", xmlName := some "latestDeliveryTime", queryName := some "LatestDeliveryTime" }, (.time none)), + ({ name := "OutputFormat", xmlName := some "outputFormat", queryName := some "OutputFormat" }, (Shape.schema OutputFormat)), + ({ name := "S3BucketName", xmlName := some "s3BucketName", queryName := some "S3BucketName" }, .string), + ({ name := "S3BucketPrefix", xmlName := some "s3BucketPrefix", queryName := some "S3BucketPrefix" }, .string), + ({ name := "Schedule", xmlName := some "schedule", queryName := some "Schedule" }, (Shape.schema Schedule)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "CapacityManagerDataExportId" x.capacityManagerDataExportId, putOpt "CreateTime" x.createTime, putOpt "LatestDeliveryS3LocationUri" x.latestDeliveryS3LocationUri, putOpt "LatestDeliveryStatus" x.latestDeliveryStatus, putOpt "LatestDeliveryStatusMessage" x.latestDeliveryStatusMessage, putOpt "LatestDeliveryTime" x.latestDeliveryTime, putOpt "OutputFormat" x.outputFormat, putOpt "S3BucketName" x.s3BucketName, putOpt "S3BucketPrefix" x.s3BucketPrefix, putOpt "Schedule" x.schedule, putOpt "Tags" x.tags] + ofValue v := do + let capacityManagerDataExportId ← v.opt "CapacityManagerDataExportId" + let createTime ← v.opt "CreateTime" + let latestDeliveryS3LocationUri ← v.opt "LatestDeliveryS3LocationUri" + let latestDeliveryStatus ← v.opt "LatestDeliveryStatus" + let latestDeliveryStatusMessage ← v.opt "LatestDeliveryStatusMessage" + let latestDeliveryTime ← v.opt "LatestDeliveryTime" + let outputFormat ← v.opt "OutputFormat" + let s3BucketName ← v.opt "S3BucketName" + let s3BucketPrefix ← v.opt "S3BucketPrefix" + let schedule ← v.opt "Schedule" + let tags ← v.opt "Tags" + return { capacityManagerDataExportId, createTime, latestDeliveryS3LocationUri, latestDeliveryStatus, latestDeliveryStatusMessage, latestDeliveryTime, outputFormat, s3BucketName, s3BucketPrefix, schedule, tags } + +/-- Represents dimension values for capacity metrics, including resource identifiers, geographic information, and reservation details used for grouping and filtering capacity data. -/ +structure CapacityManagerDimension where + /-- The Amazon Web Services account ID that owns the capacity resource. -/ + accountId : Option String := none + /-- The name of the Amazon Web Services account that owns the capacity resource. -/ + accountName : Option String := none + /-- The unique identifier of the Availability Zone where the capacity resource is located. -/ + availabilityZoneId : Option String := none + /-- The EC2 instance family of the capacity resource. -/ + instanceFamily : Option String := none + /-- The platform or operating system of the instance. -/ + instancePlatform : Option String := none + /-- The specific EC2 instance type of the capacity resource. -/ + instanceType : Option String := none + /-- The Amazon Resource Name (ARN) of the capacity reservation. -/ + reservationArn : Option String := none + /-- The timestamp when the capacity reservation was originally created, in milliseconds since epoch. -/ + reservationCreateTimestamp : Option Timestamp := none + /-- The type of end date for the capacity reservation. -/ + reservationEndDateType : Option ReservationEndDateType := none + /-- The timestamp when the capacity reservation expires and is no longer available, in milliseconds since epoch. -/ + reservationEndTimestamp : Option Timestamp := none + /-- The unique identifier of the capacity reservation. -/ + reservationId : Option String := none + /-- The instance matching criteria for the capacity reservation, determining how instances are matched to the reservation. -/ + reservationInstanceMatchCriteria : Option String := none + /-- The timestamp when the capacity reservation becomes active and available for use, in milliseconds since epoch. -/ + reservationStartTimestamp : Option Timestamp := none + /-- The current state of the capacity reservation. -/ + reservationState : Option ReservationState := none + /-- The type of capacity reservation. -/ + reservationType : Option ReservationType := none + /-- The Amazon Web Services account ID that is financially responsible for unused capacity reservation costs. -/ + reservationUnusedFinancialOwner : Option String := none + /-- The Amazon Web Services Region where the capacity resource is located. -/ + resourceRegion : Option String := none + /-- The tags associated with the capacity resource, represented as key-value pairs. -/ + tags : Option (List CapacityManagerTagDimension) := none + /-- The tenancy of the EC2 instances associated with this capacity dimension. -/ + tenancy : Option CapacityTenancy := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityManagerDimension where + schema := .struct "CapacityManagerDimension" [({ name := "AccountId", xmlName := some "accountId", queryName := some "AccountId" }, .string), + ({ name := "AccountName", xmlName := some "accountName", queryName := some "AccountName" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "InstanceFamily", xmlName := some "instanceFamily", queryName := some "InstanceFamily" }, .string), + ({ name := "InstancePlatform", xmlName := some "instancePlatform", queryName := some "InstancePlatform" }, .string), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, .string), + ({ name := "ReservationArn", xmlName := some "reservationArn", queryName := some "ReservationArn" }, .string), + ({ name := "ReservationCreateTimestamp", xmlName := some "reservationCreateTimestamp", queryName := some "ReservationCreateTimestamp" }, (.time none)), + ({ name := "ReservationEndDateType", xmlName := some "reservationEndDateType", queryName := some "ReservationEndDateType" }, (Shape.schema ReservationEndDateType)), + ({ name := "ReservationEndTimestamp", xmlName := some "reservationEndTimestamp", queryName := some "ReservationEndTimestamp" }, (.time none)), + ({ name := "ReservationId", xmlName := some "reservationId", queryName := some "ReservationId" }, .string), + ({ name := "ReservationInstanceMatchCriteria", xmlName := some "reservationInstanceMatchCriteria", queryName := some "ReservationInstanceMatchCriteria" }, .string), + ({ name := "ReservationStartTimestamp", xmlName := some "reservationStartTimestamp", queryName := some "ReservationStartTimestamp" }, (.time none)), + ({ name := "ReservationState", xmlName := some "reservationState", queryName := some "ReservationState" }, (Shape.schema ReservationState)), + ({ name := "ReservationType", xmlName := some "reservationType", queryName := some "ReservationType" }, (Shape.schema ReservationType)), + ({ name := "ReservationUnusedFinancialOwner", xmlName := some "reservationUnusedFinancialOwner", queryName := some "ReservationUnusedFinancialOwner" }, .string), + ({ name := "ResourceRegion", xmlName := some "resourceRegion", queryName := some "ResourceRegion" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema CapacityManagerTagDimension) "item")), + ({ name := "Tenancy", xmlName := some "tenancy", queryName := some "Tenancy" }, (Shape.schema CapacityTenancy))] + toValue x := record [putOpt "AccountId" x.accountId, putOpt "AccountName" x.accountName, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "InstanceFamily" x.instanceFamily, putOpt "InstancePlatform" x.instancePlatform, putOpt "InstanceType" x.instanceType, putOpt "ReservationArn" x.reservationArn, putOpt "ReservationCreateTimestamp" x.reservationCreateTimestamp, putOpt "ReservationEndDateType" x.reservationEndDateType, putOpt "ReservationEndTimestamp" x.reservationEndTimestamp, putOpt "ReservationId" x.reservationId, putOpt "ReservationInstanceMatchCriteria" x.reservationInstanceMatchCriteria, putOpt "ReservationStartTimestamp" x.reservationStartTimestamp, putOpt "ReservationState" x.reservationState, putOpt "ReservationType" x.reservationType, putOpt "ReservationUnusedFinancialOwner" x.reservationUnusedFinancialOwner, putOpt "ResourceRegion" x.resourceRegion, putOpt "Tags" x.tags, putOpt "Tenancy" x.tenancy] + ofValue v := do + let accountId ← v.opt "AccountId" + let accountName ← v.opt "AccountName" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let instanceFamily ← v.opt "InstanceFamily" + let instancePlatform ← v.opt "InstancePlatform" + let instanceType ← v.opt "InstanceType" + let reservationArn ← v.opt "ReservationArn" + let reservationCreateTimestamp ← v.opt "ReservationCreateTimestamp" + let reservationEndDateType ← v.opt "ReservationEndDateType" + let reservationEndTimestamp ← v.opt "ReservationEndTimestamp" + let reservationId ← v.opt "ReservationId" + let reservationInstanceMatchCriteria ← v.opt "ReservationInstanceMatchCriteria" + let reservationStartTimestamp ← v.opt "ReservationStartTimestamp" + let reservationState ← v.opt "ReservationState" + let reservationType ← v.opt "ReservationType" + let reservationUnusedFinancialOwner ← v.opt "ReservationUnusedFinancialOwner" + let resourceRegion ← v.opt "ResourceRegion" + let tags ← v.opt "Tags" + let tenancy ← v.opt "Tenancy" + return { accountId, accountName, availabilityZoneId, instanceFamily, instancePlatform, instanceType, reservationArn, reservationCreateTimestamp, reservationEndDateType, reservationEndTimestamp, reservationId, reservationInstanceMatchCriteria, reservationStartTimestamp, reservationState, reservationType, reservationUnusedFinancialOwner, resourceRegion, tags, tenancy } + +/-- Describes a tag key that is being monitored by Capacity Manager, including its activation status and the earliest available data point. -/ +structure CapacityManagerMonitoredTagKey where + /-- Indicates whether this tag key is provided by Capacity Manager by default, rather than being user-activated. -/ + capacityManagerProvided : Option Bool := none + /-- The earliest timestamp from which tag data is available for queries, in UTC ISO 8601 format. -/ + earliestDatapointTimestamp : Option Timestamp := none + /-- The current status of the monitored tag key. -/ + status : Option CapacityManagerMonitoredTagKeyStatus := none + /-- A message providing additional details about the current status of the monitored tag key. -/ + statusMessage : Option String := none + /-- The tag key being monitored. -/ + tagKey : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityManagerMonitoredTagKey where + schema := .struct "CapacityManagerMonitoredTagKey" [({ name := "CapacityManagerProvided", xmlName := some "capacityManagerProvided", queryName := some "CapacityManagerProvided" }, .bool), + ({ name := "EarliestDatapointTimestamp", xmlName := some "earliestDatapointTimestamp", queryName := some "EarliestDatapointTimestamp" }, (.time none)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema CapacityManagerMonitoredTagKeyStatus)), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string), + ({ name := "TagKey", xmlName := some "tagKey", queryName := some "TagKey" }, .string)] + toValue x := record [putOpt "CapacityManagerProvided" x.capacityManagerProvided, putOpt "EarliestDatapointTimestamp" x.earliestDatapointTimestamp, putOpt "Status" x.status, putOpt "StatusMessage" x.statusMessage, putOpt "TagKey" x.tagKey] + ofValue v := do + let capacityManagerProvided ← v.opt "CapacityManagerProvided" + let earliestDatapointTimestamp ← v.opt "EarliestDatapointTimestamp" + let status ← v.opt "Status" + let statusMessage ← v.opt "StatusMessage" + let tagKey ← v.opt "TagKey" + return { capacityManagerProvided, earliestDatapointTimestamp, status, statusMessage, tagKey } + +/-- The supportability score for a single instance type and Availability Zone combination. -/ +structure CapacityManagerSupportabilityScore where + /-- The ID of the Availability Zone. -/ + availabilityZoneId : Option String := none + /-- The instance type. -/ + instanceType : Option String := none + /-- How well the combination can support the requested capacity right now. -/ + score : Option SupportabilityScore := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityManagerSupportabilityScore where + schema := .struct "CapacityManagerSupportabilityScore" [({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, .string), + ({ name := "Score", xmlName := some "score", queryName := some "Score" }, (Shape.schema SupportabilityScore))] + toValue x := record [putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "InstanceType" x.instanceType, putOpt "Score" x.score] + ofValue v := do + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let instanceType ← v.opt "InstanceType" + let score ← v.opt "Score" + return { availabilityZoneId, instanceType, score } + +/-- Describes a Capacity Reservation Fleet that was successfully cancelled. -/ +structure CapacityReservationFleetCancellationState where + /-- The ID of the Capacity Reservation Fleet that was successfully cancelled. -/ + capacityReservationFleetId : Option String := none + /-- The current state of the Capacity Reservation Fleet. -/ + currentFleetState : Option CapacityReservationFleetState := none + /-- The previous state of the Capacity Reservation Fleet. -/ + previousFleetState : Option CapacityReservationFleetState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityReservationFleetCancellationState where + schema := .struct "CapacityReservationFleetCancellationState" [({ name := "CapacityReservationFleetId", xmlName := some "capacityReservationFleetId", queryName := some "CapacityReservationFleetId" }, .string), + ({ name := "CurrentFleetState", xmlName := some "currentFleetState", queryName := some "CurrentFleetState" }, (Shape.schema CapacityReservationFleetState)), + ({ name := "PreviousFleetState", xmlName := some "previousFleetState", queryName := some "PreviousFleetState" }, (Shape.schema CapacityReservationFleetState))] + toValue x := record [putOpt "CapacityReservationFleetId" x.capacityReservationFleetId, putOpt "CurrentFleetState" x.currentFleetState, putOpt "PreviousFleetState" x.previousFleetState] + ofValue v := do + let capacityReservationFleetId ← v.opt "CapacityReservationFleetId" + let currentFleetState ← v.opt "CurrentFleetState" + let previousFleetState ← v.opt "PreviousFleetState" + return { capacityReservationFleetId, currentFleetState, previousFleetState } + +/-- Information about a Capacity Reservation. -/ +structure CapacityReservationInfo where + /-- The Availability Zone for the Capacity Reservation. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone. -/ + availabilityZoneId : Option String := none + /-- The instance type for the Capacity Reservation. -/ + instanceType : Option String := none + /-- The tenancy of the Capacity Reservation. -/ + tenancy : Option CapacityReservationTenancy := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityReservationInfo where + schema := .struct "CapacityReservationInfo" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, .string), + ({ name := "Tenancy", xmlName := some "tenancy", queryName := some "Tenancy" }, (Shape.schema CapacityReservationTenancy))] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "InstanceType" x.instanceType, putOpt "Tenancy" x.tenancy] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let instanceType ← v.opt "InstanceType" + let tenancy ← v.opt "Tenancy" + return { availabilityZone, availabilityZoneId, instanceType, tenancy } + +/-- Describes the strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. -/ +structure CapacityReservationOptions where + /-- Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity. -/ + usageStrategy : Option FleetCapacityReservationUsageStrategy := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityReservationOptions where + schema := .struct "CapacityReservationOptions" [({ name := "UsageStrategy", xmlName := some "usageStrategy", queryName := some "UsageStrategy" }, (Shape.schema FleetCapacityReservationUsageStrategy))] + toValue x := record [putOpt "UsageStrategy" x.usageStrategy] + ofValue v := do + let usageStrategy ← v.opt "UsageStrategy" + return { usageStrategy } + +/-- Describes the strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. -/ +structure CapacityReservationOptionsRequest where + /-- Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity. -/ + usageStrategy : Option FleetCapacityReservationUsageStrategy := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityReservationOptionsRequest where + schema := .struct "CapacityReservationOptionsRequest" [({ name := "UsageStrategy" }, (Shape.schema FleetCapacityReservationUsageStrategy))] + toValue x := record [putOpt "UsageStrategy" x.usageStrategy] + ofValue v := do + let usageStrategy ← v.opt "UsageStrategy" + return { usageStrategy } + +/-- Describes an instance's Capacity Reservation targeting option. -/ +structure CapacityReservationSpecification where + /-- Indicates the instance's Capacity Reservation preferences. -/ + capacityReservationPreference : Option CapacityReservationPreference := none + /-- Information about the target Capacity Reservation or Capacity Reservation group. -/ + capacityReservationTarget : Option CapacityReservationTarget := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityReservationSpecification where + schema := .struct "CapacityReservationSpecification" [({ name := "CapacityReservationPreference" }, (Shape.schema CapacityReservationPreference)), + ({ name := "CapacityReservationTarget" }, (Shape.schema CapacityReservationTarget))] + toValue x := record [putOpt "CapacityReservationPreference" x.capacityReservationPreference, putOpt "CapacityReservationTarget" x.capacityReservationTarget] + ofValue v := do + let capacityReservationPreference ← v.opt "CapacityReservationPreference" + let capacityReservationTarget ← v.opt "CapacityReservationTarget" + return { capacityReservationPreference, capacityReservationTarget } + +/-- Describes the instance's Capacity Reservation targeting preferences. -/ +structure CapacityReservationSpecificationResponse where + /-- Describes the instance's Capacity Reservation preferences. -/ + capacityReservationPreference : Option CapacityReservationPreference := none + /-- Information about the targeted Capacity Reservation or Capacity Reservation group. -/ + capacityReservationTarget : Option CapacityReservationTargetResponse := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityReservationSpecificationResponse where + schema := .struct "CapacityReservationSpecificationResponse" [({ name := "CapacityReservationPreference", xmlName := some "capacityReservationPreference", queryName := some "CapacityReservationPreference" }, (Shape.schema CapacityReservationPreference)), + ({ name := "CapacityReservationTarget", xmlName := some "capacityReservationTarget", queryName := some "CapacityReservationTarget" }, (Shape.schema CapacityReservationTargetResponse))] + toValue x := record [putOpt "CapacityReservationPreference" x.capacityReservationPreference, putOpt "CapacityReservationTarget" x.capacityReservationTarget] + ofValue v := do + let capacityReservationPreference ← v.opt "CapacityReservationPreference" + let capacityReservationTarget ← v.opt "CapacityReservationTarget" + return { capacityReservationPreference, capacityReservationTarget } + +/-- Describes a carrier gateway. -/ +structure CarrierGateway where + /-- The ID of the carrier gateway. -/ + carrierGatewayId : Option String := none + /-- The Amazon Web Services account ID of the owner of the carrier gateway. -/ + ownerId : Option String := none + /-- The state of the carrier gateway. -/ + state : Option CarrierGatewayState := none + /-- The tags assigned to the carrier gateway. -/ + tags : Option (List Tag) := none + /-- The ID of the VPC associated with the carrier gateway. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CarrierGateway where + schema := .struct "CarrierGateway" [({ name := "CarrierGatewayId", xmlName := some "carrierGatewayId", queryName := some "CarrierGatewayId" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema CarrierGatewayState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "CarrierGatewayId" x.carrierGatewayId, putOpt "OwnerId" x.ownerId, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "VpcId" x.vpcId] + ofValue v := do + let carrierGatewayId ← v.opt "CarrierGatewayId" + let ownerId ← v.opt "OwnerId" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let vpcId ← v.opt "VpcId" + return { carrierGatewayId, ownerId, state, tags, vpcId } + +/-- Deprecated. -/ +structure ClassicLinkInstance where + /-- The security groups. -/ + groups : Option (List GroupIdentifier) := none + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- Any tags assigned to the instance. -/ + tags : Option (List Tag) := none + /-- The ID of the VPC. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClassicLinkInstance where + schema := .struct "ClassicLinkInstance" [({ name := "Groups", xmlName := some "groupSet", queryName := some "GroupSet" }, (.list (Shape.schema GroupIdentifier) "item")), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "Groups" x.groups, putOpt "InstanceId" x.instanceId, putOpt "Tags" x.tags, putOpt "VpcId" x.vpcId] + ofValue v := do + let groups ← v.opt "Groups" + let instanceId ← v.opt "InstanceId" + let tags ← v.opt "Tags" + let vpcId ← v.opt "VpcId" + return { groups, instanceId, tags, vpcId } + +/-- Describes the Classic Load Balancers to attach to a Spot Fleet. -/ +structure ClassicLoadBalancersConfig where + /-- One or more Classic Load Balancers. -/ + classicLoadBalancers : Option (List ClassicLoadBalancer) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClassicLoadBalancersConfig where + schema := .struct "ClassicLoadBalancersConfig" [({ name := "ClassicLoadBalancers", xmlName := some "classicLoadBalancers", queryName := some "ClassicLoadBalancers" }, (.list (Shape.schema ClassicLoadBalancer) "item"))] + toValue x := record [putOpt "ClassicLoadBalancers" x.classicLoadBalancers] + ofValue v := do + let classicLoadBalancers ← v.opt "ClassicLoadBalancers" + return { classicLoadBalancers } + +/-- Describes the state of a client certificate revocation list. -/ +structure ClientCertificateRevocationListStatus where + /-- The state of the client certificate revocation list. -/ + code : Option ClientCertificateRevocationListStatusCode := none + /-- A message about the status of the client certificate revocation list, if applicable. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClientCertificateRevocationListStatus where + schema := .struct "ClientCertificateRevocationListStatus" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, (Shape.schema ClientCertificateRevocationListStatusCode)), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +/-- Describes the authentication methods used by a Client VPN endpoint. -/ +structure ClientVpnAuthentication where + /-- Information about the Active Directory, if applicable. -/ + activeDirectory : Option DirectoryServiceAuthentication := none + /-- Information about the IAM SAML identity provider, if applicable. -/ + federatedAuthentication : Option FederatedAuthentication := none + /-- Information about the authentication certificates, if applicable. -/ + mutualAuthentication : Option CertificateAuthentication := none + /-- The authentication type used. -/ + type : Option ClientVpnAuthenticationType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClientVpnAuthentication where + schema := .struct "ClientVpnAuthentication" [({ name := "ActiveDirectory", xmlName := some "activeDirectory", queryName := some "ActiveDirectory" }, (Shape.schema DirectoryServiceAuthentication)), + ({ name := "FederatedAuthentication", xmlName := some "federatedAuthentication", queryName := some "FederatedAuthentication" }, (Shape.schema FederatedAuthentication)), + ({ name := "MutualAuthentication", xmlName := some "mutualAuthentication", queryName := some "MutualAuthentication" }, (Shape.schema CertificateAuthentication)), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, (Shape.schema ClientVpnAuthenticationType))] + toValue x := record [putOpt "ActiveDirectory" x.activeDirectory, putOpt "FederatedAuthentication" x.federatedAuthentication, putOpt "MutualAuthentication" x.mutualAuthentication, putOpt "Type" x.type] + ofValue v := do + let activeDirectory ← v.opt "ActiveDirectory" + let federatedAuthentication ← v.opt "FederatedAuthentication" + let mutualAuthentication ← v.opt "MutualAuthentication" + let type ← v.opt "Type" + return { activeDirectory, federatedAuthentication, mutualAuthentication, type } + +/-- Describes the authentication method to be used by a Client VPN endpoint. -/ +structure ClientVpnAuthenticationRequest where + /-- Information about the Active Directory to be used, if applicable. -/ + activeDirectory : Option DirectoryServiceAuthenticationRequest := none + /-- Information about the IAM SAML identity provider to be used, if applicable. -/ + federatedAuthentication : Option FederatedAuthenticationRequest := none + /-- Information about the authentication certificates to be used, if applicable. -/ + mutualAuthentication : Option CertificateAuthenticationRequest := none + /-- The type of client authentication to be used. -/ + type : Option ClientVpnAuthenticationType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClientVpnAuthenticationRequest where + schema := .struct "ClientVpnAuthenticationRequest" [({ name := "ActiveDirectory" }, (Shape.schema DirectoryServiceAuthenticationRequest)), + ({ name := "FederatedAuthentication" }, (Shape.schema FederatedAuthenticationRequest)), + ({ name := "MutualAuthentication" }, (Shape.schema CertificateAuthenticationRequest)), + ({ name := "Type" }, (Shape.schema ClientVpnAuthenticationType))] + toValue x := record [putOpt "ActiveDirectory" x.activeDirectory, putOpt "FederatedAuthentication" x.federatedAuthentication, putOpt "MutualAuthentication" x.mutualAuthentication, putOpt "Type" x.type] + ofValue v := do + let activeDirectory ← v.opt "ActiveDirectory" + let federatedAuthentication ← v.opt "FederatedAuthentication" + let mutualAuthentication ← v.opt "MutualAuthentication" + let type ← v.opt "Type" + return { activeDirectory, federatedAuthentication, mutualAuthentication, type } + +/-- Describes the state of an authorization rule. -/ +structure ClientVpnAuthorizationRuleStatus where + /-- The state of the authorization rule. -/ + code : Option ClientVpnAuthorizationRuleStatusCode := none + /-- A message about the status of the authorization rule, if applicable. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClientVpnAuthorizationRuleStatus where + schema := .struct "ClientVpnAuthorizationRuleStatus" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, (Shape.schema ClientVpnAuthorizationRuleStatusCode)), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +/-- Describes the status of a client connection. -/ +structure ClientVpnConnectionStatus where + /-- The state of the client connection. -/ + code : Option ClientVpnConnectionStatusCode := none + /-- A message about the status of the client connection, if applicable. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClientVpnConnectionStatus where + schema := .struct "ClientVpnConnectionStatus" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, (Shape.schema ClientVpnConnectionStatusCode)), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +/-- Describes the status of the Client VPN endpoint attribute. -/ +structure ClientVpnEndpointAttributeStatus where + /-- The status code. -/ + code : Option ClientVpnEndpointAttributeStatusCode := none + /-- The status message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClientVpnEndpointAttributeStatus where + schema := .struct "ClientVpnEndpointAttributeStatus" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, (Shape.schema ClientVpnEndpointAttributeStatusCode)), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +/-- Describes the state of a Client VPN endpoint. -/ +structure ClientVpnEndpointStatus where + /-- The state of the Client VPN endpoint. -/ + code : Option ClientVpnEndpointStatusCode := none + /-- A message about the status of the Client VPN endpoint. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClientVpnEndpointStatus where + schema := .struct "ClientVpnEndpointStatus" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, (Shape.schema ClientVpnEndpointStatusCode)), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +/-- Describes the state of a Client VPN endpoint route. -/ +structure ClientVpnRouteStatus where + /-- The state of the Client VPN endpoint route. -/ + code : Option ClientVpnRouteStatusCode := none + /-- A message about the status of the Client VPN endpoint route, if applicable. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClientVpnRouteStatus where + schema := .struct "ClientVpnRouteStatus" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, (Shape.schema ClientVpnRouteStatusCode)), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +/-- Information about a device trust provider configured for a Client VPN endpoint. -/ +structure ClientVpnTrustProvider where + /-- The URL of the public signing key that is used to verify the identity token issued by the device trust provider. -/ + publicSigningKeyUrl : Option String := none + /-- The tenant ID associated with your device trust provider account. -/ + tenantId : Option String := none + /-- The type of the device trust provider. -/ + trustProviderType : Option ClientVpnDeviceTrustProviderType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClientVpnTrustProvider where + schema := .struct "ClientVpnTrustProvider" [({ name := "PublicSigningKeyUrl", xmlName := some "publicSigningKeyUrl", queryName := some "PublicSigningKeyUrl" }, .string), + ({ name := "TenantId", xmlName := some "tenantId", queryName := some "TenantId" }, .string), + ({ name := "TrustProviderType", xmlName := some "trustProviderType", queryName := some "TrustProviderType" }, (Shape.schema ClientVpnDeviceTrustProviderType))] + toValue x := record [putOpt "PublicSigningKeyUrl" x.publicSigningKeyUrl, putOpt "TenantId" x.tenantId, putOpt "TrustProviderType" x.trustProviderType] + ofValue v := do + let publicSigningKeyUrl ← v.opt "PublicSigningKeyUrl" + let tenantId ← v.opt "TenantId" + let trustProviderType ← v.opt "TrustProviderType" + return { publicSigningKeyUrl, tenantId, trustProviderType } + +/-- Describes a device trust provider to configure for a Client VPN endpoint. -/ +structure ClientVpnTrustProviderRequest where + /-- The URL of the public signing key that is used to verify the identity token issued by the device trust provider. -/ + publicSigningKeyUrl : Option String := none + /-- The tenant ID associated with your device trust provider account. -/ + tenantId : Option String := none + /-- The type of the device trust provider. -/ + trustProviderType : Option ClientVpnDeviceTrustProviderType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClientVpnTrustProviderRequest where + schema := .struct "ClientVpnTrustProviderRequest" [({ name := "PublicSigningKeyUrl" }, .string), + ({ name := "TenantId" }, .string), + ({ name := "TrustProviderType" }, (Shape.schema ClientVpnDeviceTrustProviderType))] + toValue x := record [putOpt "PublicSigningKeyUrl" x.publicSigningKeyUrl, putOpt "TenantId" x.tenantId, putOpt "TrustProviderType" x.trustProviderType] + ofValue v := do + let publicSigningKeyUrl ← v.opt "PublicSigningKeyUrl" + let tenantId ← v.opt "TenantId" + let trustProviderType ← v.opt "TrustProviderType" + return { publicSigningKeyUrl, tenantId, trustProviderType } + +/-- Describes a customer-owned address pool. -/ +structure CoipPool where + /-- The ID of the local gateway route table. -/ + localGatewayRouteTableId : Option String := none + /-- The ARN of the address pool. -/ + poolArn : Option String := none + /-- The address ranges of the address pool. -/ + poolCidrs : Option (List String) := none + /-- The ID of the address pool. -/ + poolId : Option String := none + /-- The tags. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CoipPool where + schema := .struct "CoipPool" [({ name := "LocalGatewayRouteTableId", xmlName := some "localGatewayRouteTableId", queryName := some "LocalGatewayRouteTableId" }, .string), + ({ name := "PoolArn", xmlName := some "poolArn", queryName := some "PoolArn" }, .string), + ({ name := "PoolCidrs", xmlName := some "poolCidrSet", queryName := some "PoolCidrSet" }, (.list .string "item")), + ({ name := "PoolId", xmlName := some "poolId", queryName := some "PoolId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "LocalGatewayRouteTableId" x.localGatewayRouteTableId, putOpt "PoolArn" x.poolArn, putOpt "PoolCidrs" x.poolCidrs, putOpt "PoolId" x.poolId, putOpt "Tags" x.tags] + ofValue v := do + let localGatewayRouteTableId ← v.opt "LocalGatewayRouteTableId" + let poolArn ← v.opt "PoolArn" + let poolCidrs ← v.opt "PoolCidrs" + let poolId ← v.opt "PoolId" + let tags ← v.opt "Tags" + return { localGatewayRouteTableId, poolArn, poolCidrs, poolId, tags } + +/-- Describes a connection notification for a VPC endpoint or VPC endpoint service. -/ +structure ConnectionNotification where + /-- The events for the notification. -/ + connectionEvents : Option (List String) := none + /-- The ARN of the SNS topic for the notification. -/ + connectionNotificationArn : Option String := none + /-- The ID of the notification. -/ + connectionNotificationId : Option String := none + /-- The state of the notification. -/ + connectionNotificationState : Option ConnectionNotificationState := none + /-- The type of notification. -/ + connectionNotificationType : Option ConnectionNotificationType := none + /-- The ID of the endpoint service. -/ + serviceId : Option String := none + /-- The Region for the endpoint service. -/ + serviceRegion : Option String := none + /-- The ID of the VPC endpoint. -/ + vpcEndpointId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ConnectionNotification where + schema := .struct "ConnectionNotification" [({ name := "ConnectionEvents", xmlName := some "connectionEvents", queryName := some "ConnectionEvents" }, (.list .string "item")), + ({ name := "ConnectionNotificationArn", xmlName := some "connectionNotificationArn", queryName := some "ConnectionNotificationArn" }, .string), + ({ name := "ConnectionNotificationId", xmlName := some "connectionNotificationId", queryName := some "ConnectionNotificationId" }, .string), + ({ name := "ConnectionNotificationState", xmlName := some "connectionNotificationState", queryName := some "ConnectionNotificationState" }, (Shape.schema ConnectionNotificationState)), + ({ name := "ConnectionNotificationType", xmlName := some "connectionNotificationType", queryName := some "ConnectionNotificationType" }, (Shape.schema ConnectionNotificationType)), + ({ name := "ServiceId", xmlName := some "serviceId", queryName := some "ServiceId" }, .string), + ({ name := "ServiceRegion", xmlName := some "serviceRegion", queryName := some "ServiceRegion" }, .string), + ({ name := "VpcEndpointId", xmlName := some "vpcEndpointId", queryName := some "VpcEndpointId" }, .string)] + toValue x := record [putOpt "ConnectionEvents" x.connectionEvents, putOpt "ConnectionNotificationArn" x.connectionNotificationArn, putOpt "ConnectionNotificationId" x.connectionNotificationId, putOpt "ConnectionNotificationState" x.connectionNotificationState, putOpt "ConnectionNotificationType" x.connectionNotificationType, putOpt "ServiceId" x.serviceId, putOpt "ServiceRegion" x.serviceRegion, putOpt "VpcEndpointId" x.vpcEndpointId] + ofValue v := do + let connectionEvents ← v.opt "ConnectionEvents" + let connectionNotificationArn ← v.opt "ConnectionNotificationArn" + let connectionNotificationId ← v.opt "ConnectionNotificationId" + let connectionNotificationState ← v.opt "ConnectionNotificationState" + let connectionNotificationType ← v.opt "ConnectionNotificationType" + let serviceId ← v.opt "ServiceId" + let serviceRegion ← v.opt "ServiceRegion" + let vpcEndpointId ← v.opt "VpcEndpointId" + return { connectionEvents, connectionNotificationArn, connectionNotificationId, connectionNotificationState, connectionNotificationType, serviceId, serviceRegion, vpcEndpointId } + +structure CopySnapshotResult where + /-- The ID of the new snapshot. -/ + snapshotId : Option String := none + /-- Any tags applied to the new snapshot. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CopySnapshotResult where + schema := .struct "CopySnapshotResult" [({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "SnapshotId" x.snapshotId, putOpt "Tags" x.tags] + ofValue v := do + let snapshotId ← v.opt "SnapshotId" + let tags ← v.opt "Tags" + return { snapshotId, tags } + +/-- The CPU options for the instance. -/ +structure CpuOptions where + /-- Indicates whether the instance is enabled for AMD SEV-SNP. -/ + amdSevSnp : Option AmdSevSnpSpecification := none + /-- The number of CPU cores for the instance. -/ + coreCount : Option Int := none + /-- Indicates whether the instance is enabled for nested virtualization. -/ + nestedVirtualization : Option NestedVirtualizationSpecification := none + /-- The number of threads per CPU core. -/ + threadsPerCore : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CpuOptions where + schema := .struct "CpuOptions" [({ name := "AmdSevSnp", xmlName := some "amdSevSnp", queryName := some "AmdSevSnp" }, (Shape.schema AmdSevSnpSpecification)), + ({ name := "CoreCount", xmlName := some "coreCount", queryName := some "CoreCount" }, .int), + ({ name := "NestedVirtualization", xmlName := some "nestedVirtualization", queryName := some "NestedVirtualization" }, (Shape.schema NestedVirtualizationSpecification)), + ({ name := "ThreadsPerCore", xmlName := some "threadsPerCore", queryName := some "ThreadsPerCore" }, .int)] + toValue x := record [putOpt "AmdSevSnp" x.amdSevSnp, putOpt "CoreCount" x.coreCount, putOpt "NestedVirtualization" x.nestedVirtualization, putOpt "ThreadsPerCore" x.threadsPerCore] + ofValue v := do + let amdSevSnp ← v.opt "AmdSevSnp" + let coreCount ← v.opt "CoreCount" + let nestedVirtualization ← v.opt "NestedVirtualization" + let threadsPerCore ← v.opt "ThreadsPerCore" + return { amdSevSnp, coreCount, nestedVirtualization, threadsPerCore } + +/-- The CPU options for the instance. -/ +structure CpuOptionsRequest where + /-- Indicates whether to enable the instance for AMD SEV-SNP. -/ + amdSevSnp : Option AmdSevSnpSpecification := none + /-- The number of CPU cores for the instance. -/ + coreCount : Option Int := none + /-- Indicates whether to enable the instance for nested virtualization. -/ + nestedVirtualization : Option NestedVirtualizationSpecification := none + /-- The number of threads per CPU core. -/ + threadsPerCore : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CpuOptionsRequest where + schema := .struct "CpuOptionsRequest" [({ name := "AmdSevSnp" }, (Shape.schema AmdSevSnpSpecification)), + ({ name := "CoreCount" }, .int), + ({ name := "NestedVirtualization" }, (Shape.schema NestedVirtualizationSpecification)), + ({ name := "ThreadsPerCore" }, .int)] + toValue x := record [putOpt "AmdSevSnp" x.amdSevSnp, putOpt "CoreCount" x.coreCount, putOpt "NestedVirtualization" x.nestedVirtualization, putOpt "ThreadsPerCore" x.threadsPerCore] + ofValue v := do + let amdSevSnp ← v.opt "AmdSevSnp" + let coreCount ← v.opt "CoreCount" + let nestedVirtualization ← v.opt "NestedVirtualization" + let threadsPerCore ← v.opt "ThreadsPerCore" + return { amdSevSnp, coreCount, nestedVirtualization, threadsPerCore } + +/-- The CPU performance to consider, using an instance family as the baseline reference. -/ +structure CpuPerformanceFactor where + /-- Specify an instance family to use as the baseline reference for CPU performance. -/ + references : Option (List PerformanceFactorReference) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CpuPerformanceFactor where + schema := .struct "CpuPerformanceFactor" [({ name := "References", xmlName := some "referenceSet", queryName := some "ReferenceSet" }, (.list (Shape.schema PerformanceFactorReference) "item"))] + toValue x := record [putOpt "References" x.references] + ofValue v := do + let references ← v.opt "References" + return { references } + +/-- The CPU performance to consider, using an instance family as the baseline reference. -/ +structure CpuPerformanceFactorRequest where + /-- Specify an instance family to use as the baseline reference for CPU performance. -/ + references : Option (List PerformanceFactorReferenceRequest) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CpuPerformanceFactorRequest where + schema := .struct "CpuPerformanceFactorRequest" [({ name := "References", xmlName := some "Reference" }, (.list (Shape.schema PerformanceFactorReferenceRequest) "item"))] + toValue x := record [putOpt "References" x.references] + ofValue v := do + let references ← v.opt "References" + return { references } + +structure CreateCoipCidrResult where + /-- Information about a range of customer-owned IP addresses. -/ + coipCidr : Option CoipCidr := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCoipCidrResult where + schema := .struct "CreateCoipCidrResult" [({ name := "CoipCidr", xmlName := some "coipCidr", queryName := some "CoipCidr" }, (Shape.schema CoipCidr))] + toValue x := record [putOpt "CoipCidr" x.coipCidr] + ofValue v := do + let coipCidr ← v.opt "CoipCidr" + return { coipCidr } + +structure CreateInterruptibleCapacityReservationAllocationResult where + /-- The type of interruption applied to the interruptible reservation. -/ + interruptionType : Option InterruptionType := none + /-- The ID of the source Capacity Reservation from which the interruptible Capacity Reservation was created. -/ + sourceCapacityReservationId : Option String := none + /-- The current status of the allocation request (creating, active, updating). -/ + status : Option InterruptibleCapacityReservationAllocationStatus := none + /-- The number of instances allocated to the interruptible reservation. -/ + targetInstanceCount : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateInterruptibleCapacityReservationAllocationResult where + schema := .struct "CreateInterruptibleCapacityReservationAllocationResult" [({ name := "InterruptionType", xmlName := some "interruptionType", queryName := some "InterruptionType" }, (Shape.schema InterruptionType)), + ({ name := "SourceCapacityReservationId", xmlName := some "sourceCapacityReservationId", queryName := some "SourceCapacityReservationId" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema InterruptibleCapacityReservationAllocationStatus)), + ({ name := "TargetInstanceCount", xmlName := some "targetInstanceCount", queryName := some "TargetInstanceCount" }, .int)] + toValue x := record [putOpt "InterruptionType" x.interruptionType, putOpt "SourceCapacityReservationId" x.sourceCapacityReservationId, putOpt "Status" x.status, putOpt "TargetInstanceCount" x.targetInstanceCount] + ofValue v := do + let interruptionType ← v.opt "InterruptionType" + let sourceCapacityReservationId ← v.opt "SourceCapacityReservationId" + let status ← v.opt "Status" + let targetInstanceCount ← v.opt "TargetInstanceCount" + return { interruptionType, sourceCapacityReservationId, status, targetInstanceCount } + +structure CreateNetworkAclEntryRequest where + /-- The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24 ). -/ + cidrBlock : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet). -/ + egress : Bool + /-- ICMP protocol: The ICMP or ICMPv6 type and code. -/ + icmpTypeCode : Option IcmpTypeCode := none + /-- The IPv6 network range to allow or deny, in CIDR notation (for example 2001:db8:1234:1a00::/64 ). -/ + ipv6CidrBlock : Option String := none + /-- The ID of the network ACL. -/ + networkAclId : String + /-- TCP or UDP protocols: The range of ports the rule applies to. -/ + portRange : Option PortRange := none + /-- The protocol number. -/ + protocol : String + /-- Indicates whether to allow or deny the traffic that matches the rule. -/ + ruleAction : RuleAction + /-- The rule number for the entry (for example, 100). -/ + ruleNumber : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateNetworkAclEntryRequest where + schema := .struct "CreateNetworkAclEntryRequest" [({ name := "CidrBlock", xmlName := some "cidrBlock", queryName := some "CidrBlock" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Egress", required := true, xmlName := some "egress", queryName := some "Egress" }, .bool), + ({ name := "IcmpTypeCode", xmlName := some "Icmp" }, (Shape.schema IcmpTypeCode)), + ({ name := "Ipv6CidrBlock", xmlName := some "ipv6CidrBlock", queryName := some "Ipv6CidrBlock" }, .string), + ({ name := "NetworkAclId", required := true, xmlName := some "networkAclId", queryName := some "NetworkAclId" }, .string), + ({ name := "PortRange", xmlName := some "portRange", queryName := some "PortRange" }, (Shape.schema PortRange)), + ({ name := "Protocol", required := true, xmlName := some "protocol", queryName := some "Protocol" }, .string), + ({ name := "RuleAction", required := true, xmlName := some "ruleAction", queryName := some "RuleAction" }, (Shape.schema RuleAction)), + ({ name := "RuleNumber", required := true, xmlName := some "ruleNumber", queryName := some "RuleNumber" }, .int)] + toValue x := record [putOpt "CidrBlock" x.cidrBlock, putOpt "DryRun" x.dryRun, put "Egress" x.egress, putOpt "IcmpTypeCode" x.icmpTypeCode, putOpt "Ipv6CidrBlock" x.ipv6CidrBlock, put "NetworkAclId" x.networkAclId, putOpt "PortRange" x.portRange, put "Protocol" x.protocol, put "RuleAction" x.ruleAction, put "RuleNumber" x.ruleNumber] + ofValue v := do + let cidrBlock ← v.opt "CidrBlock" + let dryRun ← v.opt "DryRun" + let egress ← v.req "Egress" + let icmpTypeCode ← v.opt "IcmpTypeCode" + let ipv6CidrBlock ← v.opt "Ipv6CidrBlock" + let networkAclId ← v.req "NetworkAclId" + let portRange ← v.opt "PortRange" + let protocol ← v.req "Protocol" + let ruleAction ← v.req "RuleAction" + let ruleNumber ← v.req "RuleNumber" + return { cidrBlock, dryRun, egress, icmpTypeCode, ipv6CidrBlock, networkAclId, portRange, protocol, ruleAction, ruleNumber } + +/-- Contains the parameters for CreateNetworkInterfacePermission. -/ +structure CreateNetworkInterfacePermissionRequest where + /-- The Amazon Web Services account ID. -/ + awsAccountId : Option String := none + /-- The Amazon Web Services service. -/ + awsService : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the network interface. -/ + networkInterfaceId : String + /-- The type of permission to grant. -/ + permission : InterfacePermissionType +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateNetworkInterfacePermissionRequest where + schema := .struct "CreateNetworkInterfacePermissionRequest" [({ name := "AwsAccountId" }, .string), + ({ name := "AwsService" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "NetworkInterfaceId", required := true }, .string), + ({ name := "Permission", required := true }, (Shape.schema InterfacePermissionType))] + toValue x := record [putOpt "AwsAccountId" x.awsAccountId, putOpt "AwsService" x.awsService, putOpt "DryRun" x.dryRun, put "NetworkInterfaceId" x.networkInterfaceId, put "Permission" x.permission] + ofValue v := do + let awsAccountId ← v.opt "AwsAccountId" + let awsService ← v.opt "AwsService" + let dryRun ← v.opt "DryRun" + let networkInterfaceId ← v.req "NetworkInterfaceId" + let permission ← v.req "Permission" + return { awsAccountId, awsService, dryRun, networkInterfaceId, permission } + +/-- The VPC peering connection options to apply to the requester VPC when you create a VPC peering connection. -/ +structure CreatePeeringConnectionOptionsRequest where + /-- Specifies whether you allow multipath resilience for the requester VPC. -/ + allowMultipathResilience : Option Bool := none + /-- The multipath resilience mode. -/ + multipathResilienceMode : Option MultipathResilienceMode := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreatePeeringConnectionOptionsRequest where + schema := .struct "CreatePeeringConnectionOptionsRequest" [({ name := "AllowMultipathResilience" }, .bool), + ({ name := "MultipathResilienceMode" }, (Shape.schema MultipathResilienceMode))] + toValue x := record [putOpt "AllowMultipathResilience" x.allowMultipathResilience, putOpt "MultipathResilienceMode" x.multipathResilienceMode] + ofValue v := do + let allowMultipathResilience ← v.opt "AllowMultipathResilience" + let multipathResilienceMode ← v.opt "MultipathResilienceMode" + return { allowMultipathResilience, multipathResilienceMode } + +structure CreateSecurityGroupResult where + /-- The ID of the security group. -/ + groupId : Option String := none + /-- The security group ARN. -/ + securityGroupArn : Option String := none + /-- The tags assigned to the security group. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateSecurityGroupResult where + schema := .struct "CreateSecurityGroupResult" [({ name := "GroupId", xmlName := some "groupId", queryName := some "GroupId" }, .string), + ({ name := "SecurityGroupArn", xmlName := some "securityGroupArn", queryName := some "SecurityGroupArn" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "GroupId" x.groupId, putOpt "SecurityGroupArn" x.securityGroupArn, putOpt "Tags" x.tags] + ofValue v := do + let groupId ← v.opt "GroupId" + let securityGroupArn ← v.opt "SecurityGroupArn" + let tags ← v.opt "Tags" + return { groupId, securityGroupArn, tags } + +structure CreateStoreImageTaskRequest where + /-- The name of the Amazon S3 bucket in which the AMI object will be stored. -/ + bucket : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AMI. -/ + imageId : String + /-- The tags to apply to the AMI object that will be stored in the Amazon S3 bucket. -/ + s3ObjectTags : Option (List S3ObjectTag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateStoreImageTaskRequest where + schema := .struct "CreateStoreImageTaskRequest" [({ name := "Bucket", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string), + ({ name := "S3ObjectTags", xmlName := some "S3ObjectTag" }, (.list (Shape.schema S3ObjectTag) "item"))] + toValue x := record [put "Bucket" x.bucket, putOpt "DryRun" x.dryRun, put "ImageId" x.imageId, putOpt "S3ObjectTags" x.s3ObjectTags] + ofValue v := do + let bucket ← v.req "Bucket" + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + let s3ObjectTags ← v.opt "S3ObjectTags" + return { bucket, dryRun, imageId, s3ObjectTags } + +structure CreateTagsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the resources, separated by spaces. -/ + resources : (List String) + /-- The tags. -/ + tags : (List Tag) +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTagsRequest where + schema := .struct "CreateTagsRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Resources", required := true, xmlName := some "ResourceId" }, (.list .string "member")), + ({ name := "Tags", required := true, xmlName := some "Tag" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "Resources" x.resources, put "Tags" x.tags] + ofValue v := do + let dryRun ← v.opt "DryRun" + let resources ← v.req "Resources" + let tags ← v.req "Tags" + return { dryRun, resources, tags } + +/-- The options for a Connect attachment. -/ +structure CreateTransitGatewayConnectRequestOptions where + /-- The tunnel protocol. -/ + protocol : ProtocolValue +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayConnectRequestOptions where + schema := .struct "CreateTransitGatewayConnectRequestOptions" [({ name := "Protocol", required := true }, (Shape.schema ProtocolValue))] + toValue x := record [put "Protocol" x.protocol] + ofValue v := do + let protocol ← v.req "Protocol" + return { protocol } + +structure CreateTransitGatewayMeteringPolicyEntryRequest where + /-- The destination CIDR block for traffic matching. -/ + destinationCidrBlock : Option String := none + /-- The destination port range for traffic matching. -/ + destinationPortRange : Option String := none + /-- The ID of the destination transit gateway attachment for traffic matching. -/ + destinationTransitGatewayAttachmentId : Option String := none + /-- The type of the destination transit gateway attachment for traffic matching. -/ + destinationTransitGatewayAttachmentType : Option TransitGatewayAttachmentResourceType := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The Amazon Web Services account ID to which the metered traffic should be attributed. -/ + meteredAccount : TransitGatewayMeteringPayerType + /-- The rule number for the metering policy entry. -/ + policyRuleNumber : Int + /-- The protocol for traffic matching (1, 6, 17, etc.). -/ + protocol : Option String := none + /-- The source CIDR block for traffic matching. -/ + sourceCidrBlock : Option String := none + /-- The source port range for traffic matching. -/ + sourcePortRange : Option String := none + /-- The ID of the source transit gateway attachment for traffic matching. -/ + sourceTransitGatewayAttachmentId : Option String := none + /-- The type of the source transit gateway attachment for traffic matching. -/ + sourceTransitGatewayAttachmentType : Option TransitGatewayAttachmentResourceType := none + /-- The ID of the transit gateway metering policy to add the entry to. -/ + transitGatewayMeteringPolicyId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayMeteringPolicyEntryRequest where + schema := .struct "CreateTransitGatewayMeteringPolicyEntryRequest" [({ name := "DestinationCidrBlock" }, .string), + ({ name := "DestinationPortRange" }, .string), + ({ name := "DestinationTransitGatewayAttachmentId" }, .string), + ({ name := "DestinationTransitGatewayAttachmentType" }, (Shape.schema TransitGatewayAttachmentResourceType)), + ({ name := "DryRun" }, .bool), + ({ name := "MeteredAccount", required := true }, (Shape.schema TransitGatewayMeteringPayerType)), + ({ name := "PolicyRuleNumber", required := true }, .int), + ({ name := "Protocol" }, .string), + ({ name := "SourceCidrBlock" }, .string), + ({ name := "SourcePortRange" }, .string), + ({ name := "SourceTransitGatewayAttachmentId" }, .string), + ({ name := "SourceTransitGatewayAttachmentType" }, (Shape.schema TransitGatewayAttachmentResourceType)), + ({ name := "TransitGatewayMeteringPolicyId", required := true }, .string)] + toValue x := record [putOpt "DestinationCidrBlock" x.destinationCidrBlock, putOpt "DestinationPortRange" x.destinationPortRange, putOpt "DestinationTransitGatewayAttachmentId" x.destinationTransitGatewayAttachmentId, putOpt "DestinationTransitGatewayAttachmentType" x.destinationTransitGatewayAttachmentType, putOpt "DryRun" x.dryRun, put "MeteredAccount" x.meteredAccount, put "PolicyRuleNumber" x.policyRuleNumber, putOpt "Protocol" x.protocol, putOpt "SourceCidrBlock" x.sourceCidrBlock, putOpt "SourcePortRange" x.sourcePortRange, putOpt "SourceTransitGatewayAttachmentId" x.sourceTransitGatewayAttachmentId, putOpt "SourceTransitGatewayAttachmentType" x.sourceTransitGatewayAttachmentType, put "TransitGatewayMeteringPolicyId" x.transitGatewayMeteringPolicyId] + ofValue v := do + let destinationCidrBlock ← v.opt "DestinationCidrBlock" + let destinationPortRange ← v.opt "DestinationPortRange" + let destinationTransitGatewayAttachmentId ← v.opt "DestinationTransitGatewayAttachmentId" + let destinationTransitGatewayAttachmentType ← v.opt "DestinationTransitGatewayAttachmentType" + let dryRun ← v.opt "DryRun" + let meteredAccount ← v.req "MeteredAccount" + let policyRuleNumber ← v.req "PolicyRuleNumber" + let protocol ← v.opt "Protocol" + let sourceCidrBlock ← v.opt "SourceCidrBlock" + let sourcePortRange ← v.opt "SourcePortRange" + let sourceTransitGatewayAttachmentId ← v.opt "SourceTransitGatewayAttachmentId" + let sourceTransitGatewayAttachmentType ← v.opt "SourceTransitGatewayAttachmentType" + let transitGatewayMeteringPolicyId ← v.req "TransitGatewayMeteringPolicyId" + return { destinationCidrBlock, destinationPortRange, destinationTransitGatewayAttachmentId, destinationTransitGatewayAttachmentType, dryRun, meteredAccount, policyRuleNumber, protocol, sourceCidrBlock, sourcePortRange, sourceTransitGatewayAttachmentId, sourceTransitGatewayAttachmentType, transitGatewayMeteringPolicyId } + +/-- The options for the transit gateway multicast domain. -/ +structure CreateTransitGatewayMulticastDomainRequestOptions where + /-- Indicates whether to automatically accept cross-account subnet associations that are associated with the transit gateway multicast domain. -/ + autoAcceptSharedAssociations : Option AutoAcceptSharedAssociationsValue := none + /-- Specify whether to enable Internet Group Management Protocol (IGMP) version 2 for the transit gateway multicast domain. -/ + igmpv2Support : Option Igmpv2SupportValue := none + /-- Specify whether to enable support for statically configuring multicast group sources for a domain. -/ + staticSourcesSupport : Option StaticSourcesSupportValue := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayMulticastDomainRequestOptions where + schema := .struct "CreateTransitGatewayMulticastDomainRequestOptions" [({ name := "AutoAcceptSharedAssociations" }, (Shape.schema AutoAcceptSharedAssociationsValue)), + ({ name := "Igmpv2Support" }, (Shape.schema Igmpv2SupportValue)), + ({ name := "StaticSourcesSupport" }, (Shape.schema StaticSourcesSupportValue))] + toValue x := record [putOpt "AutoAcceptSharedAssociations" x.autoAcceptSharedAssociations, putOpt "Igmpv2Support" x.igmpv2Support, putOpt "StaticSourcesSupport" x.staticSourcesSupport] + ofValue v := do + let autoAcceptSharedAssociations ← v.opt "AutoAcceptSharedAssociations" + let igmpv2Support ← v.opt "Igmpv2Support" + let staticSourcesSupport ← v.opt "StaticSourcesSupport" + return { autoAcceptSharedAssociations, igmpv2Support, staticSourcesSupport } + +/-- Describes whether dynamic routing is enabled or disabled for the transit gateway peering request. -/ +structure CreateTransitGatewayPeeringAttachmentRequestOptions where + /-- Specifies whether you allow multipath resilience for the requester side of the transit gateway peering attachment. -/ + allowMultipathResilience : Option Bool := none + /-- Indicates whether dynamic routing is enabled or disabled. -/ + dynamicRouting : Option DynamicRoutingValue := none + /-- The multipath resilience mode. -/ + multipathResilienceMode : Option TransitGatewayPeeringAttachmentMultipathResilienceMode := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayPeeringAttachmentRequestOptions where + schema := .struct "CreateTransitGatewayPeeringAttachmentRequestOptions" [({ name := "AllowMultipathResilience" }, .bool), + ({ name := "DynamicRouting" }, (Shape.schema DynamicRoutingValue)), + ({ name := "MultipathResilienceMode" }, (Shape.schema TransitGatewayPeeringAttachmentMultipathResilienceMode))] + toValue x := record [putOpt "AllowMultipathResilience" x.allowMultipathResilience, putOpt "DynamicRouting" x.dynamicRouting, putOpt "MultipathResilienceMode" x.multipathResilienceMode] + ofValue v := do + let allowMultipathResilience ← v.opt "AllowMultipathResilience" + let dynamicRouting ← v.opt "DynamicRouting" + let multipathResilienceMode ← v.opt "MultipathResilienceMode" + return { allowMultipathResilience, dynamicRouting, multipathResilienceMode } + +/-- Describes the options for a VPC attachment. -/ +structure CreateTransitGatewayVpcAttachmentRequestOptions where + /-- Enable or disable support for appliance mode. -/ + applianceModeSupport : Option ApplianceModeSupportValue := none + /-- Enable or disable DNS support. -/ + dnsSupport : Option DnsSupportValue := none + /-- Specifies whether IPv6 support is enabled for the attachment. -/ + ipv6Support : Option Ipv6SupportValue := none + /-- Enables you to reference a security group across VPCs attached to a transit gateway to simplify security group management. -/ + securityGroupReferencingSupport : Option SecurityGroupReferencingSupportValue := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayVpcAttachmentRequestOptions where + schema := .struct "CreateTransitGatewayVpcAttachmentRequestOptions" [({ name := "ApplianceModeSupport" }, (Shape.schema ApplianceModeSupportValue)), + ({ name := "DnsSupport" }, (Shape.schema DnsSupportValue)), + ({ name := "Ipv6Support" }, (Shape.schema Ipv6SupportValue)), + ({ name := "SecurityGroupReferencingSupport" }, (Shape.schema SecurityGroupReferencingSupportValue))] + toValue x := record [putOpt "ApplianceModeSupport" x.applianceModeSupport, putOpt "DnsSupport" x.dnsSupport, putOpt "Ipv6Support" x.ipv6Support, putOpt "SecurityGroupReferencingSupport" x.securityGroupReferencingSupport] + ofValue v := do + let applianceModeSupport ← v.opt "ApplianceModeSupport" + let dnsSupport ← v.opt "DnsSupport" + let ipv6Support ← v.opt "Ipv6Support" + let securityGroupReferencingSupport ← v.opt "SecurityGroupReferencingSupport" + return { applianceModeSupport, dnsSupport, ipv6Support, securityGroupReferencingSupport } + +/-- Describes the CIDR options for a Verified Access endpoint. -/ +structure CreateVerifiedAccessEndpointCidrOptions where + /-- The CIDR. -/ + cidr : Option String := none + /-- The port ranges. -/ + portRanges : Option (List CreateVerifiedAccessEndpointPortRange) := none + /-- The protocol. -/ + protocol : Option VerifiedAccessEndpointProtocol := none + /-- The IDs of the subnets. -/ + subnetIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVerifiedAccessEndpointCidrOptions where + schema := .struct "CreateVerifiedAccessEndpointCidrOptions" [({ name := "Cidr" }, .string), + ({ name := "PortRanges", xmlName := some "PortRange" }, (.list (Shape.schema CreateVerifiedAccessEndpointPortRange) "item")), + ({ name := "Protocol" }, (Shape.schema VerifiedAccessEndpointProtocol)), + ({ name := "SubnetIds", xmlName := some "SubnetId" }, (.list .string "item"))] + toValue x := record [putOpt "Cidr" x.cidr, putOpt "PortRanges" x.portRanges, putOpt "Protocol" x.protocol, putOpt "SubnetIds" x.subnetIds] + ofValue v := do + let cidr ← v.opt "Cidr" + let portRanges ← v.opt "PortRanges" + let protocol ← v.opt "Protocol" + let subnetIds ← v.opt "SubnetIds" + return { cidr, portRanges, protocol, subnetIds } + +/-- Describes the network interface options when creating an Amazon Web Services Verified Access endpoint using the network-interface type. -/ +structure CreateVerifiedAccessEndpointEniOptions where + /-- The ID of the network interface. -/ + networkInterfaceId : Option String := none + /-- The IP port number. -/ + port : Option Int := none + /-- The port ranges. -/ + portRanges : Option (List CreateVerifiedAccessEndpointPortRange) := none + /-- The IP protocol. -/ + protocol : Option VerifiedAccessEndpointProtocol := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVerifiedAccessEndpointEniOptions where + schema := .struct "CreateVerifiedAccessEndpointEniOptions" [({ name := "NetworkInterfaceId" }, .string), + ({ name := "Port" }, .int), + ({ name := "PortRanges", xmlName := some "PortRange" }, (.list (Shape.schema CreateVerifiedAccessEndpointPortRange) "item")), + ({ name := "Protocol" }, (Shape.schema VerifiedAccessEndpointProtocol))] + toValue x := record [putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "Port" x.port, putOpt "PortRanges" x.portRanges, putOpt "Protocol" x.protocol] + ofValue v := do + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let port ← v.opt "Port" + let portRanges ← v.opt "PortRanges" + let protocol ← v.opt "Protocol" + return { networkInterfaceId, port, portRanges, protocol } + +/-- Describes the load balancer options when creating an Amazon Web Services Verified Access endpoint using the load-balancer type. -/ +structure CreateVerifiedAccessEndpointLoadBalancerOptions where + /-- The ARN of the load balancer. -/ + loadBalancerArn : Option String := none + /-- The IP port number. -/ + port : Option Int := none + /-- The port ranges. -/ + portRanges : Option (List CreateVerifiedAccessEndpointPortRange) := none + /-- The IP protocol. -/ + protocol : Option VerifiedAccessEndpointProtocol := none + /-- The IDs of the subnets. -/ + subnetIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVerifiedAccessEndpointLoadBalancerOptions where + schema := .struct "CreateVerifiedAccessEndpointLoadBalancerOptions" [({ name := "LoadBalancerArn" }, .string), + ({ name := "Port" }, .int), + ({ name := "PortRanges", xmlName := some "PortRange" }, (.list (Shape.schema CreateVerifiedAccessEndpointPortRange) "item")), + ({ name := "Protocol" }, (Shape.schema VerifiedAccessEndpointProtocol)), + ({ name := "SubnetIds", xmlName := some "SubnetId" }, (.list .string "item"))] + toValue x := record [putOpt "LoadBalancerArn" x.loadBalancerArn, putOpt "Port" x.port, putOpt "PortRanges" x.portRanges, putOpt "Protocol" x.protocol, putOpt "SubnetIds" x.subnetIds] + ofValue v := do + let loadBalancerArn ← v.opt "LoadBalancerArn" + let port ← v.opt "Port" + let portRanges ← v.opt "PortRanges" + let protocol ← v.opt "Protocol" + let subnetIds ← v.opt "SubnetIds" + return { loadBalancerArn, port, portRanges, protocol, subnetIds } + +/-- Describes the RDS options for a Verified Access endpoint. -/ +structure CreateVerifiedAccessEndpointRdsOptions where + /-- The port. -/ + port : Option Int := none + /-- The protocol. -/ + protocol : Option VerifiedAccessEndpointProtocol := none + /-- The ARN of the DB cluster. -/ + rdsDbClusterArn : Option String := none + /-- The ARN of the RDS instance. -/ + rdsDbInstanceArn : Option String := none + /-- The ARN of the RDS proxy. -/ + rdsDbProxyArn : Option String := none + /-- The RDS endpoint. -/ + rdsEndpoint : Option String := none + /-- The IDs of the subnets. -/ + subnetIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVerifiedAccessEndpointRdsOptions where + schema := .struct "CreateVerifiedAccessEndpointRdsOptions" [({ name := "Port" }, .int), + ({ name := "Protocol" }, (Shape.schema VerifiedAccessEndpointProtocol)), + ({ name := "RdsDbClusterArn" }, .string), + ({ name := "RdsDbInstanceArn" }, .string), + ({ name := "RdsDbProxyArn" }, .string), + ({ name := "RdsEndpoint" }, .string), + ({ name := "SubnetIds", xmlName := some "SubnetId" }, (.list .string "item"))] + toValue x := record [putOpt "Port" x.port, putOpt "Protocol" x.protocol, putOpt "RdsDbClusterArn" x.rdsDbClusterArn, putOpt "RdsDbInstanceArn" x.rdsDbInstanceArn, putOpt "RdsDbProxyArn" x.rdsDbProxyArn, putOpt "RdsEndpoint" x.rdsEndpoint, putOpt "SubnetIds" x.subnetIds] + ofValue v := do + let port ← v.opt "Port" + let protocol ← v.opt "Protocol" + let rdsDbClusterArn ← v.opt "RdsDbClusterArn" + let rdsDbInstanceArn ← v.opt "RdsDbInstanceArn" + let rdsDbProxyArn ← v.opt "RdsDbProxyArn" + let rdsEndpoint ← v.opt "RdsEndpoint" + let subnetIds ← v.opt "SubnetIds" + return { port, protocol, rdsDbClusterArn, rdsDbInstanceArn, rdsDbProxyArn, rdsEndpoint, subnetIds } + +/-- Describes the user or group to be added or removed from the list of create volume permissions for a volume. -/ +structure CreateVolumePermission where + /-- The group to be added or removed. -/ + group : Option PermissionGroup := none + /-- The ID of the Amazon Web Services account to be added or removed. -/ + userId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVolumePermission where + schema := .struct "CreateVolumePermission" [({ name := "Group", xmlName := some "group", queryName := some "Group" }, (Shape.schema PermissionGroup)), + ({ name := "UserId", xmlName := some "userId", queryName := some "UserId" }, .string)] + toValue x := record [putOpt "Group" x.group, putOpt "UserId" x.userId] + ofValue v := do + let group ← v.opt "Group" + let userId ← v.opt "UserId" + return { group, userId } + +/-- Describes a customer gateway. -/ +structure CustomerGateway where + /-- The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN). -/ + bgpAsn : Option String := none + /-- The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN). -/ + bgpAsnExtended : Option String := none + /-- The Amazon Resource Name (ARN) for the customer gateway certificate. -/ + certificateArn : Option String := none + /-- The ID of the customer gateway. -/ + customerGatewayId : Option String := none + /-- The name of customer gateway device. -/ + deviceName : Option String := none + /-- The IP address for the customer gateway device's outside interface. -/ + ipAddress : Option String := none + /-- The current state of the customer gateway ( pending | available | deleting | deleted ). -/ + state : Option String := none + /-- Any tags assigned to the customer gateway. -/ + tags : Option (List Tag) := none + /-- The type of VPN connection the customer gateway supports ( ipsec.1 ). -/ + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CustomerGateway where + schema := .struct "CustomerGateway" [({ name := "BgpAsn", xmlName := some "bgpAsn", queryName := some "BgpAsn" }, .string), + ({ name := "BgpAsnExtended", xmlName := some "bgpAsnExtended", queryName := some "BgpAsnExtended" }, .string), + ({ name := "CertificateArn", xmlName := some "certificateArn", queryName := some "CertificateArn" }, .string), + ({ name := "CustomerGatewayId", xmlName := some "customerGatewayId", queryName := some "CustomerGatewayId" }, .string), + ({ name := "DeviceName", xmlName := some "deviceName", queryName := some "DeviceName" }, .string), + ({ name := "IpAddress", xmlName := some "ipAddress", queryName := some "IpAddress" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, .string)] + toValue x := record [putOpt "BgpAsn" x.bgpAsn, putOpt "BgpAsnExtended" x.bgpAsnExtended, putOpt "CertificateArn" x.certificateArn, putOpt "CustomerGatewayId" x.customerGatewayId, putOpt "DeviceName" x.deviceName, putOpt "IpAddress" x.ipAddress, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "Type" x.type] + ofValue v := do + let bgpAsn ← v.opt "BgpAsn" + let bgpAsnExtended ← v.opt "BgpAsnExtended" + let certificateArn ← v.opt "CertificateArn" + let customerGatewayId ← v.opt "CustomerGatewayId" + let deviceName ← v.opt "DeviceName" + let ipAddress ← v.opt "IpAddress" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let type ← v.opt "Type" + return { bgpAsn, bgpAsnExtended, certificateArn, customerGatewayId, deviceName, ipAddress, state, tags, type } + +/-- A query used for retrieving network health data. -/ +structure DataQuery where + /-- The Region or Availability Zone that's the target for the data query. -/ + destination : Option String := none + /-- A user-defined ID associated with a data query that's returned in the dataResponse identifying the query. -/ + id : Option String := none + /-- The metric used for the network performance request. -/ + metric : Option MetricType := none + /-- The aggregation period used for the data query. -/ + period : Option PeriodType := none + /-- The Region or Availability Zone that's the source for the data query. -/ + source : Option String := none + /-- The metric data aggregation period, p50 , between the specified startDate and endDate . -/ + statistic : Option StatisticType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DataQuery where + schema := .struct "DataQuery" [({ name := "Destination" }, .string), + ({ name := "Id" }, .string), + ({ name := "Metric" }, (Shape.schema MetricType)), + ({ name := "Period" }, (Shape.schema PeriodType)), + ({ name := "Source" }, .string), + ({ name := "Statistic" }, (Shape.schema StatisticType))] + toValue x := record [putOpt "Destination" x.destination, putOpt "Id" x.id, putOpt "Metric" x.metric, putOpt "Period" x.period, putOpt "Source" x.source, putOpt "Statistic" x.statistic] + ofValue v := do + let destination ← v.opt "Destination" + let id ← v.opt "Id" + let metric ← v.opt "Metric" + let period ← v.opt "Period" + let source ← v.opt "Source" + let statistic ← v.opt "Statistic" + return { destination, id, metric, period, source, statistic } + +/-- The response to a DataQuery . -/ +structure DataResponse where + /-- The Region or Availability Zone that's the destination for the data query. -/ + destination : Option String := none + /-- The ID passed in the DataQuery . -/ + id : Option String := none + /-- The metric used for the network performance request. -/ + metric : Option MetricType := none + /-- A list of MetricPoint objects. -/ + metricPoints : Option (List MetricPoint) := none + /-- The period used for the network performance request. -/ + period : Option PeriodType := none + /-- The Region or Availability Zone that's the source for the data query. -/ + source : Option String := none + /-- The statistic used for the network performance request. -/ + statistic : Option StatisticType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DataResponse where + schema := .struct "DataResponse" [({ name := "Destination", xmlName := some "destination", queryName := some "Destination" }, .string), + ({ name := "Id", xmlName := some "id", queryName := some "Id" }, .string), + ({ name := "Metric", xmlName := some "metric", queryName := some "Metric" }, (Shape.schema MetricType)), + ({ name := "MetricPoints", xmlName := some "metricPointSet", queryName := some "MetricPointSet" }, (.list (Shape.schema MetricPoint) "item")), + ({ name := "Period", xmlName := some "period", queryName := some "Period" }, (Shape.schema PeriodType)), + ({ name := "Source", xmlName := some "source", queryName := some "Source" }, .string), + ({ name := "Statistic", xmlName := some "statistic", queryName := some "Statistic" }, (Shape.schema StatisticType))] + toValue x := record [putOpt "Destination" x.destination, putOpt "Id" x.id, putOpt "Metric" x.metric, putOpt "MetricPoints" x.metricPoints, putOpt "Period" x.period, putOpt "Source" x.source, putOpt "Statistic" x.statistic] + ofValue v := do + let destination ← v.opt "Destination" + let id ← v.opt "Id" + let metric ← v.opt "Metric" + let metricPoints ← v.opt "MetricPoints" + let period ← v.opt "Period" + let source ← v.opt "Source" + let statistic ← v.opt "Statistic" + return { destination, id, metric, metricPoints, period, source, statistic } + +/-- Describes the metadata of the account status report. -/ +structure DeclarativePoliciesReport where + /-- The time when the report generation ended. -/ + endTime : Option Timestamp := none + /-- The ID of the report. -/ + reportId : Option String := none + /-- The name of the Amazon S3 bucket where the report is located. -/ + s3Bucket : Option String := none + /-- The prefix for your S3 object. -/ + s3Prefix : Option String := none + /-- The time when the report generation started. -/ + startTime : Option Timestamp := none + /-- The current status of the report. -/ + status : Option ReportState := none + /-- Any tags assigned to the report. -/ + tags : Option (List Tag) := none + /-- The root ID, organizational unit ID, or account ID. -/ + targetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeclarativePoliciesReport where + schema := .struct "DeclarativePoliciesReport" [({ name := "EndTime", xmlName := some "endTime", queryName := some "EndTime" }, (.time none)), + ({ name := "ReportId", xmlName := some "reportId", queryName := some "ReportId" }, .string), + ({ name := "S3Bucket", xmlName := some "s3Bucket", queryName := some "S3Bucket" }, .string), + ({ name := "S3Prefix", xmlName := some "s3Prefix", queryName := some "S3Prefix" }, .string), + ({ name := "StartTime", xmlName := some "startTime", queryName := some "StartTime" }, (.time none)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema ReportState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TargetId", xmlName := some "targetId", queryName := some "TargetId" }, .string)] + toValue x := record [putOpt "EndTime" x.endTime, putOpt "ReportId" x.reportId, putOpt "S3Bucket" x.s3Bucket, putOpt "S3Prefix" x.s3Prefix, putOpt "StartTime" x.startTime, putOpt "Status" x.status, putOpt "Tags" x.tags, putOpt "TargetId" x.targetId] + ofValue v := do + let endTime ← v.opt "EndTime" + let reportId ← v.opt "ReportId" + let s3Bucket ← v.opt "S3Bucket" + let s3Prefix ← v.opt "S3Prefix" + let startTime ← v.opt "StartTime" + let status ← v.opt "Status" + let tags ← v.opt "Tags" + let targetId ← v.opt "TargetId" + return { endTime, reportId, s3Bucket, s3Prefix, startTime, status, tags, targetId } + +structure DeleteClientVpnEndpointAuthorizationPolicyResult where + /-- The current state of the authorization policy. -/ + status : Option ClientVpnAuthorizationPolicyStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteClientVpnEndpointAuthorizationPolicyResult where + schema := .struct "DeleteClientVpnEndpointAuthorizationPolicyResult" [({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema ClientVpnAuthorizationPolicyStatus))] + toValue x := record [putOpt "Status" x.status] + ofValue v := do + let status ← v.opt "Status" + return { status } + +structure DeleteCoipCidrResult where + /-- Information about a range of customer-owned IP addresses. -/ + coipCidr : Option CoipCidr := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteCoipCidrResult where + schema := .struct "DeleteCoipCidrResult" [({ name := "CoipCidr", xmlName := some "coipCidr", queryName := some "CoipCidr" }, (Shape.schema CoipCidr))] + toValue x := record [putOpt "CoipCidr" x.coipCidr] + ofValue v := do + let coipCidr ← v.opt "CoipCidr" + return { coipCidr } + +/-- Describes an EC2 Fleet error. -/ +structure DeleteFleetError where + /-- The error code. -/ + code : Option DeleteFleetErrorCode := none + /-- The description for the error code. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteFleetError where + schema := .struct "DeleteFleetError" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, (Shape.schema DeleteFleetErrorCode)), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +/-- Describes an EC2 Fleet that was successfully deleted. -/ +structure DeleteFleetSuccessItem where + /-- The current state of the EC2 Fleet. -/ + currentFleetState : Option FleetStateCode := none + /-- The ID of the EC2 Fleet. -/ + fleetId : Option String := none + /-- The previous state of the EC2 Fleet. -/ + previousFleetState : Option FleetStateCode := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteFleetSuccessItem where + schema := .struct "DeleteFleetSuccessItem" [({ name := "CurrentFleetState", xmlName := some "currentFleetState", queryName := some "CurrentFleetState" }, (Shape.schema FleetStateCode)), + ({ name := "FleetId", xmlName := some "fleetId", queryName := some "FleetId" }, .string), + ({ name := "PreviousFleetState", xmlName := some "previousFleetState", queryName := some "PreviousFleetState" }, (Shape.schema FleetStateCode))] + toValue x := record [putOpt "CurrentFleetState" x.currentFleetState, putOpt "FleetId" x.fleetId, putOpt "PreviousFleetState" x.previousFleetState] + ofValue v := do + let currentFleetState ← v.opt "CurrentFleetState" + let fleetId ← v.opt "FleetId" + let previousFleetState ← v.opt "PreviousFleetState" + return { currentFleetState, fleetId, previousFleetState } + +structure DeleteNetworkingFlexCostAllocationPoliciesResult where + /-- Information about the policies that could not be deleted. -/ + failed : Option (List FlexCostAllocationOperationFailure) := none + /-- The IDs of the policies that were successfully deleted. -/ + successful : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteNetworkingFlexCostAllocationPoliciesResult where + schema := .struct "DeleteNetworkingFlexCostAllocationPoliciesResult" [({ name := "Failed", xmlName := some "failed", queryName := some "Failed" }, (.list (Shape.schema FlexCostAllocationOperationFailure) "item")), + ({ name := "Successful", xmlName := some "successful", queryName := some "Successful" }, (.list .string "item"))] + toValue x := record [putOpt "Failed" x.failed, putOpt "Successful" x.successful] + ofValue v := do + let failed ← v.opt "Failed" + let successful ← v.opt "Successful" + return { failed, successful } + +/-- Describes the error for a Reserved Instance whose queued purchase could not be deleted. -/ +structure DeleteQueuedReservedInstancesError where + /-- The error code. -/ + code : Option DeleteQueuedReservedInstancesErrorCode := none + /-- The error message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteQueuedReservedInstancesError where + schema := .struct "DeleteQueuedReservedInstancesError" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, (Shape.schema DeleteQueuedReservedInstancesErrorCode)), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +/-- The snapshot ID and its deletion result code. -/ +structure DeleteSnapshotReturnCode where + /-- The result code from the snapshot deletion attempt. -/ + returnCode : Option SnapshotReturnCodes := none + /-- The ID of the snapshot. -/ + snapshotId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteSnapshotReturnCode where + schema := .struct "DeleteSnapshotReturnCode" [({ name := "ReturnCode", xmlName := some "returnCode", queryName := some "ReturnCode" }, (Shape.schema SnapshotReturnCodes)), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string)] + toValue x := record [putOpt "ReturnCode" x.returnCode, putOpt "SnapshotId" x.snapshotId] + ofValue v := do + let returnCode ← v.opt "ReturnCode" + let snapshotId ← v.opt "SnapshotId" + return { returnCode, snapshotId } + +structure DeleteTagsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the resources, separated by spaces. -/ + resources : (List String) + /-- The tags to delete. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTagsRequest where + schema := .struct "DeleteTagsRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Resources", required := true, xmlName := some "resourceId", queryName := some "ResourceId" }, (.list .string "member")), + ({ name := "Tags", xmlName := some "tag", queryName := some "Tag" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "Resources" x.resources, putOpt "Tags" x.tags] + ofValue v := do + let dryRun ← v.opt "DryRun" + let resources ← v.req "Resources" + let tags ← v.opt "Tags" + return { dryRun, resources, tags } + +structure DeregisterInstanceEventNotificationAttributesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Information about the tag keys to deregister. -/ + instanceTagAttribute : DeregisterInstanceTagAttributeRequest +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeregisterInstanceEventNotificationAttributesRequest where + schema := .struct "DeregisterInstanceEventNotificationAttributesRequest" [({ name := "DryRun" }, .bool), + ({ name := "InstanceTagAttribute", required := true }, (Shape.schema DeregisterInstanceTagAttributeRequest))] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceTagAttribute" x.instanceTagAttribute] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceTagAttribute ← v.req "InstanceTagAttribute" + return { dryRun, instanceTagAttribute } + +structure DeregisterInstanceEventNotificationAttributesResult where + /-- The resulting set of tag keys. -/ + instanceTagAttribute : Option InstanceTagNotificationAttribute := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeregisterInstanceEventNotificationAttributesResult where + schema := .struct "DeregisterInstanceEventNotificationAttributesResult" [({ name := "InstanceTagAttribute", xmlName := some "instanceTagAttribute", queryName := some "InstanceTagAttribute" }, (Shape.schema InstanceTagNotificationAttribute))] + toValue x := record [putOpt "InstanceTagAttribute" x.instanceTagAttribute] + ofValue v := do + let instanceTagAttribute ← v.opt "InstanceTagAttribute" + return { instanceTagAttribute } + +structure DeregisterTransitGatewayMulticastGroupMembersResult where + /-- Information about the deregistered members. -/ + deregisteredMulticastGroupMembers : Option TransitGatewayMulticastDeregisteredGroupMembers := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeregisterTransitGatewayMulticastGroupMembersResult where + schema := .struct "DeregisterTransitGatewayMulticastGroupMembersResult" [({ name := "DeregisteredMulticastGroupMembers", xmlName := some "deregisteredMulticastGroupMembers", queryName := some "DeregisteredMulticastGroupMembers" }, (Shape.schema TransitGatewayMulticastDeregisteredGroupMembers))] + toValue x := record [putOpt "DeregisteredMulticastGroupMembers" x.deregisteredMulticastGroupMembers] + ofValue v := do + let deregisteredMulticastGroupMembers ← v.opt "DeregisteredMulticastGroupMembers" + return { deregisteredMulticastGroupMembers } + +structure DeregisterTransitGatewayMulticastGroupSourcesResult where + /-- Information about the deregistered group sources. -/ + deregisteredMulticastGroupSources : Option TransitGatewayMulticastDeregisteredGroupSources := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeregisterTransitGatewayMulticastGroupSourcesResult where + schema := .struct "DeregisterTransitGatewayMulticastGroupSourcesResult" [({ name := "DeregisteredMulticastGroupSources", xmlName := some "deregisteredMulticastGroupSources", queryName := some "DeregisteredMulticastGroupSources" }, (Shape.schema TransitGatewayMulticastDeregisteredGroupSources))] + toValue x := record [putOpt "DeregisteredMulticastGroupSources" x.deregisteredMulticastGroupSources] + ofValue v := do + let deregisteredMulticastGroupSources ← v.opt "DeregisteredMulticastGroupSources" + return { deregisteredMulticastGroupSources } + +structure DescribeAccountAttributesRequest where + /-- The account attribute names. -/ + attributeNames : Option (List AccountAttributeName) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeAccountAttributesRequest where + schema := .struct "DescribeAccountAttributesRequest" [({ name := "AttributeNames", xmlName := some "attributeName", queryName := some "AttributeName" }, (.list (Shape.schema AccountAttributeName) "attributeName")), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool)] + toValue x := record [putOpt "AttributeNames" x.attributeNames, putOpt "DryRun" x.dryRun] + ofValue v := do + let attributeNames ← v.opt "AttributeNames" + let dryRun ← v.opt "DryRun" + return { attributeNames, dryRun } + +structure DescribeAddressesAttributeRequest where + /-- [EC2-VPC] The allocation IDs. -/ + allocationIds : Option (List String) := none + /-- The attribute of the IP address. -/ + «attribute» : Option AddressAttributeName := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeAddressesAttributeRequest where + schema := .struct "DescribeAddressesAttributeRequest" [({ name := "AllocationIds", xmlName := some "AllocationId" }, (.list .string "item")), + ({ name := "Attribute" }, (Shape.schema AddressAttributeName)), + ({ name := "DryRun" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "AllocationIds" x.allocationIds, putOpt "Attribute" x.«attribute», putOpt "DryRun" x.dryRun, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let allocationIds ← v.opt "AllocationIds" + let «attribute» ← v.opt "Attribute" + let dryRun ← v.opt "DryRun" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { allocationIds, «attribute», dryRun, maxResults, nextToken } + +structure DescribeAddressesRequest where + /-- Information about the allocation IDs. -/ + allocationIds : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- One or more Elastic IP addresses. -/ + publicIps : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeAddressesRequest where + schema := .struct "DescribeAddressesRequest" [({ name := "AllocationIds", xmlName := some "AllocationId" }, (.list .string "AllocationId")), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "PublicIps", xmlName := some "PublicIp" }, (.list .string "PublicIp"))] + toValue x := record [putOpt "AllocationIds" x.allocationIds, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "PublicIps" x.publicIps] + ofValue v := do + let allocationIds ← v.opt "AllocationIds" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let publicIps ← v.opt "PublicIps" + return { allocationIds, dryRun, filters, publicIps } + +structure DescribeAggregateIdFormatResult where + /-- Information about each resource's ID format. -/ + statuses : Option (List IdFormat) := none + /-- Indicates whether all resource types in the Region are configured to use longer IDs. -/ + useLongIdsAggregated : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeAggregateIdFormatResult where + schema := .struct "DescribeAggregateIdFormatResult" [({ name := "Statuses", xmlName := some "statusSet", queryName := some "StatusSet" }, (.list (Shape.schema IdFormat) "item")), + ({ name := "UseLongIdsAggregated", xmlName := some "useLongIdsAggregated", queryName := some "UseLongIdsAggregated" }, .bool)] + toValue x := record [putOpt "Statuses" x.statuses, putOpt "UseLongIdsAggregated" x.useLongIdsAggregated] + ofValue v := do + let statuses ← v.opt "Statuses" + let useLongIdsAggregated ← v.opt "UseLongIdsAggregated" + return { statuses, useLongIdsAggregated } + +structure DescribeApplicationStatusCheckAssociationsRequest where + /-- The IDs of the application status checks for which to describe associations. -/ + applicationStatusCheckIds : Option (List String) := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters to use to limit the results. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeApplicationStatusCheckAssociationsRequest where + schema := .struct "DescribeApplicationStatusCheckAssociationsRequest" [({ name := "ApplicationStatusCheckIds", xmlName := some "ApplicationStatusCheckId" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "ApplicationStatusCheckIds" x.applicationStatusCheckIds, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let applicationStatusCheckIds ← v.opt "ApplicationStatusCheckIds" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { applicationStatusCheckIds, dryRun, filters, maxResults, nextToken } + +structure DescribeApplicationStatusChecksRequest where + /-- The IDs of the application status checks to describe. -/ + applicationStatusCheckIds : Option (List String) := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- Specifies whether to include recently deleted application status checks that remain available during the deletion grace period. -/ + includeAll : Option Bool := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeApplicationStatusChecksRequest where + schema := .struct "DescribeApplicationStatusChecksRequest" [({ name := "ApplicationStatusCheckIds", xmlName := some "ApplicationStatusCheckId" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IncludeAll" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "ApplicationStatusCheckIds" x.applicationStatusCheckIds, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IncludeAll" x.includeAll, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let applicationStatusCheckIds ← v.opt "ApplicationStatusCheckIds" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let includeAll ← v.opt "IncludeAll" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { applicationStatusCheckIds, dryRun, filters, includeAll, maxResults, nextToken } + +structure DescribeApplicationStatusRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The IDs of the instances for which to describe application status. -/ + instanceIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeApplicationStatusRequest where + schema := .struct "DescribeApplicationStatusRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "InstanceIds", xmlName := some "InstanceId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "InstanceIds" x.instanceIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let instanceIds ← v.opt "InstanceIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, instanceIds, maxResults, nextToken } + +structure DescribeAvailabilityZonesRequest where + /-- Include all Availability Zones, Local Zones, and Wavelength Zones regardless of your opt-in status. -/ + allAvailabilityZones : Option Bool := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The IDs of the Availability Zones, Local Zones, and Wavelength Zones. -/ + zoneIds : Option (List String) := none + /-- The names of the Availability Zones, Local Zones, and Wavelength Zones. -/ + zoneNames : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeAvailabilityZonesRequest where + schema := .struct "DescribeAvailabilityZonesRequest" [({ name := "AllAvailabilityZones" }, .bool), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "ZoneIds", xmlName := some "ZoneId" }, (.list .string "ZoneId")), + ({ name := "ZoneNames", xmlName := some "ZoneName" }, (.list .string "ZoneName"))] + toValue x := record [putOpt "AllAvailabilityZones" x.allAvailabilityZones, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "ZoneIds" x.zoneIds, putOpt "ZoneNames" x.zoneNames] + ofValue v := do + let allAvailabilityZones ← v.opt "AllAvailabilityZones" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let zoneIds ← v.opt "ZoneIds" + let zoneNames ← v.opt "ZoneNames" + return { allAvailabilityZones, dryRun, filters, zoneIds, zoneNames } + +structure DescribeAwsNetworkPerformanceMetricSubscriptionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeAwsNetworkPerformanceMetricSubscriptionsRequest where + schema := .struct "DescribeAwsNetworkPerformanceMetricSubscriptionsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, maxResults, nextToken } + +structure DescribeBundleTasksRequest where + /-- The bundle task IDs. -/ + bundleIds : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeBundleTasksRequest where + schema := .struct "DescribeBundleTasksRequest" [({ name := "BundleIds", xmlName := some "BundleId" }, (.list .string "BundleId")), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter"))] + toValue x := record [putOpt "BundleIds" x.bundleIds, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters] + ofValue v := do + let bundleIds ← v.opt "BundleIds" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + return { bundleIds, dryRun, filters } + +structure DescribeCapacityBlockExtensionHistoryRequest where + /-- The IDs of Capacity Block reservations that you want to display the history for. -/ + capacityReservationIds : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters availability-zone - The Availability Zone of the extension. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityBlockExtensionHistoryRequest where + schema := .struct "DescribeCapacityBlockExtensionHistoryRequest" [({ name := "CapacityReservationIds", xmlName := some "CapacityReservationId" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "CapacityReservationIds" x.capacityReservationIds, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityReservationIds ← v.opt "CapacityReservationIds" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { capacityReservationIds, dryRun, filters, maxResults, nextToken } + +structure DescribeCapacityBlockOfferingsRequest where + /-- Include all Availability Zones and Local Zones, regardless of your opt-in status. -/ + allAvailabilityZones : Option Bool := none + /-- The reservation duration for the Capacity Block, in hours. -/ + capacityDurationHours : Int + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The latest end date for the Capacity Block offering. -/ + endDateRange : Option Timestamp := none + /-- The number of instances for which to reserve capacity. -/ + instanceCount : Option Int := none + /-- The type of instance for which the Capacity Block offering reserves capacity. -/ + instanceType : Option String := none + /-- List of instance type preferences for the Capacity Block offering search. -/ + instanceTypePreferences : Option (List CapacityBlockInstanceTypePreference) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- The earliest start date for the Capacity Block offering. -/ + startDateRange : Option Timestamp := none + /-- The number of EC2 UltraServers in the offerings. -/ + ultraserverCount : Option Int := none + /-- The EC2 UltraServer type of the Capacity Block offerings. -/ + ultraserverType : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityBlockOfferingsRequest where + schema := .struct "DescribeCapacityBlockOfferingsRequest" [({ name := "AllAvailabilityZones" }, .bool), + ({ name := "CapacityDurationHours", required := true }, .int), + ({ name := "DryRun" }, .bool), + ({ name := "EndDateRange" }, (.time none)), + ({ name := "InstanceCount" }, .int), + ({ name := "InstanceType" }, .string), + ({ name := "InstanceTypePreferences", xmlName := some "InstanceTypePreference" }, (.list (Shape.schema CapacityBlockInstanceTypePreference) "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "StartDateRange" }, (.time none)), + ({ name := "UltraserverCount" }, .int), + ({ name := "UltraserverType" }, .string)] + toValue x := record [putOpt "AllAvailabilityZones" x.allAvailabilityZones, put "CapacityDurationHours" x.capacityDurationHours, putOpt "DryRun" x.dryRun, putOpt "EndDateRange" x.endDateRange, putOpt "InstanceCount" x.instanceCount, putOpt "InstanceType" x.instanceType, putOpt "InstanceTypePreferences" x.instanceTypePreferences, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "StartDateRange" x.startDateRange, putOpt "UltraserverCount" x.ultraserverCount, putOpt "UltraserverType" x.ultraserverType] + ofValue v := do + let allAvailabilityZones ← v.opt "AllAvailabilityZones" + let capacityDurationHours ← v.req "CapacityDurationHours" + let dryRun ← v.opt "DryRun" + let endDateRange ← v.opt "EndDateRange" + let instanceCount ← v.opt "InstanceCount" + let instanceType ← v.opt "InstanceType" + let instanceTypePreferences ← v.opt "InstanceTypePreferences" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let startDateRange ← v.opt "StartDateRange" + let ultraserverCount ← v.opt "UltraserverCount" + let ultraserverType ← v.opt "UltraserverType" + return { allAvailabilityZones, capacityDurationHours, dryRun, endDateRange, instanceCount, instanceType, instanceTypePreferences, maxResults, nextToken, startDateRange, ultraserverCount, ultraserverType } + +structure DescribeCapacityBlockStatusRequest where + /-- The ID of the Capacity Block. -/ + capacityBlockIds : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityBlockStatusRequest where + schema := .struct "DescribeCapacityBlockStatusRequest" [({ name := "CapacityBlockIds", xmlName := some "CapacityBlockId" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "CapacityBlockIds" x.capacityBlockIds, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityBlockIds ← v.opt "CapacityBlockIds" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { capacityBlockIds, dryRun, filters, maxResults, nextToken } + +structure DescribeCapacityBlocksRequest where + /-- The IDs of the Capacity Blocks. -/ + capacityBlockIds : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityBlocksRequest where + schema := .struct "DescribeCapacityBlocksRequest" [({ name := "CapacityBlockIds", xmlName := some "CapacityBlockId" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "CapacityBlockIds" x.capacityBlockIds, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityBlockIds ← v.opt "CapacityBlockIds" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { capacityBlockIds, dryRun, filters, maxResults, nextToken } + +structure DescribeCapacityManagerDataExportsRequest where + /-- The IDs of the data export configurations to describe. -/ + capacityManagerDataExportIds : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters to narrow the results. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityManagerDataExportsRequest where + schema := .struct "DescribeCapacityManagerDataExportsRequest" [({ name := "CapacityManagerDataExportIds", xmlName := some "CapacityManagerDataExportId" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "CapacityManagerDataExportIds" x.capacityManagerDataExportIds, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityManagerDataExportIds ← v.opt "CapacityManagerDataExportIds" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { capacityManagerDataExportIds, dryRun, filters, maxResults, nextToken } + +structure DescribeCapacityReservationBillingRequestsRequest where + /-- The ID of the Capacity Reservation. -/ + capacityReservationIds : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Specify one of the following: odcr-owner - If you are the Capacity Reservation owner, specify this value to view requests that you have initiated. -/ + role : CallerRole +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityReservationBillingRequestsRequest where + schema := .struct "DescribeCapacityReservationBillingRequestsRequest" [({ name := "CapacityReservationIds", xmlName := some "CapacityReservationId" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "Role", required := true }, (Shape.schema CallerRole))] + toValue x := record [putOpt "CapacityReservationIds" x.capacityReservationIds, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "Role" x.role] + ofValue v := do + let capacityReservationIds ← v.opt "CapacityReservationIds" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let role ← v.req "Role" + return { capacityReservationIds, dryRun, filters, maxResults, nextToken, role } + +structure DescribeCapacityReservationCancellationQuotesRequest where + /-- The IDs of the cancellation quotes to describe. -/ + capacityReservationCancellationQuoteIds : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityReservationCancellationQuotesRequest where + schema := .struct "DescribeCapacityReservationCancellationQuotesRequest" [({ name := "CapacityReservationCancellationQuoteIds", xmlName := some "CapacityReservationCancellationQuoteId" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "CapacityReservationCancellationQuoteIds" x.capacityReservationCancellationQuoteIds, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityReservationCancellationQuoteIds ← v.opt "CapacityReservationCancellationQuoteIds" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { capacityReservationCancellationQuoteIds, dryRun, filters, maxResults, nextToken } + +structure DescribeCapacityReservationDateChangeQuotesRequest where + /-- The IDs of the date change quotes to describe. -/ + capacityReservationModificationQuoteIds : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityReservationDateChangeQuotesRequest where + schema := .struct "DescribeCapacityReservationDateChangeQuotesRequest" [({ name := "CapacityReservationModificationQuoteIds", xmlName := some "CapacityReservationModificationQuoteId" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "CapacityReservationModificationQuoteIds" x.capacityReservationModificationQuoteIds, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityReservationModificationQuoteIds ← v.opt "CapacityReservationModificationQuoteIds" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { capacityReservationModificationQuoteIds, dryRun, filters, maxResults, nextToken } + +structure DescribeCapacityReservationFleetsRequest where + /-- The IDs of the Capacity Reservation Fleets to describe. -/ + capacityReservationFleetIds : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityReservationFleetsRequest where + schema := .struct "DescribeCapacityReservationFleetsRequest" [({ name := "CapacityReservationFleetIds", xmlName := some "CapacityReservationFleetId" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "CapacityReservationFleetIds" x.capacityReservationFleetIds, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityReservationFleetIds ← v.opt "CapacityReservationFleetIds" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { capacityReservationFleetIds, dryRun, filters, maxResults, nextToken } + +structure DescribeCapacityReservationTopologyRequest where + /-- The Capacity Reservation IDs. -/ + capacityReservationIds : Option (List String) := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityReservationTopologyRequest where + schema := .struct "DescribeCapacityReservationTopologyRequest" [({ name := "CapacityReservationIds", xmlName := some "CapacityReservationId" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "CapacityReservationIds" x.capacityReservationIds, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityReservationIds ← v.opt "CapacityReservationIds" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { capacityReservationIds, dryRun, filters, maxResults, nextToken } + +structure DescribeCapacityReservationTopologyResult where + /-- Information about the topology of each Capacity Reservation. -/ + capacityReservations : Option (List CapacityReservationTopology) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityReservationTopologyResult where + schema := .struct "DescribeCapacityReservationTopologyResult" [({ name := "CapacityReservations", xmlName := some "capacityReservationSet", queryName := some "CapacityReservationSet" }, (.list (Shape.schema CapacityReservationTopology) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "CapacityReservations" x.capacityReservations, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityReservations ← v.opt "CapacityReservations" + let nextToken ← v.opt "NextToken" + return { capacityReservations, nextToken } + +structure DescribeCapacityReservationsRequest where + /-- The ID of the Capacity Reservation. -/ + capacityReservationIds : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityReservationsRequest where + schema := .struct "DescribeCapacityReservationsRequest" [({ name := "CapacityReservationIds", xmlName := some "CapacityReservationId" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "CapacityReservationIds" x.capacityReservationIds, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityReservationIds ← v.opt "CapacityReservationIds" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { capacityReservationIds, dryRun, filters, maxResults, nextToken } + +structure DescribeCarrierGatewaysRequest where + /-- One or more carrier gateway IDs. -/ + carrierGatewayIds : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCarrierGatewaysRequest where + schema := .struct "DescribeCarrierGatewaysRequest" [({ name := "CarrierGatewayIds", xmlName := some "CarrierGatewayId" }, (.list .string "member")), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "CarrierGatewayIds" x.carrierGatewayIds, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let carrierGatewayIds ← v.opt "CarrierGatewayIds" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { carrierGatewayIds, dryRun, filters, maxResults, nextToken } + +structure DescribeClassicLinkInstancesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The instance IDs. -/ + instanceIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeClassicLinkInstancesRequest where + schema := .struct "DescribeClassicLinkInstancesRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "InstanceIds", xmlName := some "InstanceId" }, (.list .string "InstanceId")), + ({ name := "MaxResults", xmlName := some "maxResults", queryName := some "MaxResults" }, .int), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "InstanceIds" x.instanceIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let instanceIds ← v.opt "InstanceIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, instanceIds, maxResults, nextToken } + +structure DescribeClientVpnAuthorizationRulesRequest where + /-- The ID of the Client VPN endpoint. -/ + clientVpnEndpointId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return for the request in a single page. -/ + maxResults : Option Int := none + /-- The token to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeClientVpnAuthorizationRulesRequest where + schema := .struct "DescribeClientVpnAuthorizationRulesRequest" [({ name := "ClientVpnEndpointId", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [put "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let clientVpnEndpointId ← v.req "ClientVpnEndpointId" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { clientVpnEndpointId, dryRun, filters, maxResults, nextToken } + +structure DescribeClientVpnConnectionsRequest where + /-- The ID of the Client VPN endpoint. -/ + clientVpnEndpointId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return for the request in a single page. -/ + maxResults : Option Int := none + /-- The token to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeClientVpnConnectionsRequest where + schema := .struct "DescribeClientVpnConnectionsRequest" [({ name := "ClientVpnEndpointId", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [put "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let clientVpnEndpointId ← v.req "ClientVpnEndpointId" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { clientVpnEndpointId, dryRun, filters, maxResults, nextToken } + +structure DescribeClientVpnEndpointsRequest where + /-- The ID of the Client VPN endpoint. -/ + clientVpnEndpointIds : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return for the request in a single page. -/ + maxResults : Option Int := none + /-- The token to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeClientVpnEndpointsRequest where + schema := .struct "DescribeClientVpnEndpointsRequest" [({ name := "ClientVpnEndpointIds", xmlName := some "ClientVpnEndpointId" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "ClientVpnEndpointIds" x.clientVpnEndpointIds, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let clientVpnEndpointIds ← v.opt "ClientVpnEndpointIds" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { clientVpnEndpointIds, dryRun, filters, maxResults, nextToken } + +structure DescribeClientVpnRoutesRequest where + /-- The ID of the Client VPN endpoint. -/ + clientVpnEndpointId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return for the request in a single page. -/ + maxResults : Option Int := none + /-- The token to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeClientVpnRoutesRequest where + schema := .struct "DescribeClientVpnRoutesRequest" [({ name := "ClientVpnEndpointId", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [put "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let clientVpnEndpointId ← v.req "ClientVpnEndpointId" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { clientVpnEndpointId, dryRun, filters, maxResults, nextToken } + +structure DescribeClientVpnTargetNetworksRequest where + /-- The IDs of the target network associations. -/ + associationIds : Option (List String) := none + /-- The ID of the Client VPN endpoint. -/ + clientVpnEndpointId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return for the request in a single page. -/ + maxResults : Option Int := none + /-- The token to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeClientVpnTargetNetworksRequest where + schema := .struct "DescribeClientVpnTargetNetworksRequest" [({ name := "AssociationIds" }, (.list .string "item")), + ({ name := "ClientVpnEndpointId", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "AssociationIds" x.associationIds, put "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let associationIds ← v.opt "AssociationIds" + let clientVpnEndpointId ← v.req "ClientVpnEndpointId" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { associationIds, clientVpnEndpointId, dryRun, filters, maxResults, nextToken } + +structure DescribeCoipPoolsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the address pools. -/ + poolIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCoipPoolsRequest where + schema := .struct "DescribeCoipPoolsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "PoolIds", xmlName := some "PoolId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "PoolIds" x.poolIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let poolIds ← v.opt "PoolIds" + return { dryRun, filters, maxResults, nextToken, poolIds } + +/-- Contains the parameters for DescribeCustomerGateways. -/ +structure DescribeCustomerGatewaysRequest where + /-- One or more customer gateway IDs. -/ + customerGatewayIds : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCustomerGatewaysRequest where + schema := .struct "DescribeCustomerGatewaysRequest" [({ name := "CustomerGatewayIds", xmlName := some "CustomerGatewayId" }, (.list .string "CustomerGatewayId")), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter"))] + toValue x := record [putOpt "CustomerGatewayIds" x.customerGatewayIds, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters] + ofValue v := do + let customerGatewayIds ← v.opt "CustomerGatewayIds" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + return { customerGatewayIds, dryRun, filters } + +structure DescribeDhcpOptionsRequest where + /-- The IDs of DHCP option sets. -/ + dhcpOptionsIds : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeDhcpOptionsRequest where + schema := .struct "DescribeDhcpOptionsRequest" [({ name := "DhcpOptionsIds", xmlName := some "DhcpOptionsId" }, (.list .string "DhcpOptionsId")), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DhcpOptionsIds" x.dhcpOptionsIds, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dhcpOptionsIds ← v.opt "DhcpOptionsIds" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dhcpOptionsIds, dryRun, filters, maxResults, nextToken } + +structure DescribeEgressOnlyInternetGatewaysRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the egress-only internet gateways. -/ + egressOnlyInternetGatewayIds : Option (List String) := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeEgressOnlyInternetGatewaysRequest where + schema := .struct "DescribeEgressOnlyInternetGatewaysRequest" [({ name := "DryRun" }, .bool), + ({ name := "EgressOnlyInternetGatewayIds", xmlName := some "EgressOnlyInternetGatewayId" }, (.list .string "item")), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "EgressOnlyInternetGatewayIds" x.egressOnlyInternetGatewayIds, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let egressOnlyInternetGatewayIds ← v.opt "EgressOnlyInternetGatewayIds" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, egressOnlyInternetGatewayIds, filters, maxResults, nextToken } + +structure DescribeElasticGpusRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The Elastic Graphics accelerator IDs. -/ + elasticGpuIds : Option (List String) := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token to request the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeElasticGpusRequest where + schema := .struct "DescribeElasticGpusRequest" [({ name := "DryRun" }, .bool), + ({ name := "ElasticGpuIds", xmlName := some "ElasticGpuId" }, (.list .string "item")), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "ElasticGpuIds" x.elasticGpuIds, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let elasticGpuIds ← v.opt "ElasticGpuIds" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, elasticGpuIds, filters, maxResults, nextToken } + +structure DescribeExportImageTasksRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the export image tasks. -/ + exportImageTaskIds : Option (List String) := none + /-- Filter tasks using the task-state filter and one of the following values: active , completed , deleting , or deleted . -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- A token that indicates the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeExportImageTasksRequest where + schema := .struct "DescribeExportImageTasksRequest" [({ name := "DryRun" }, .bool), + ({ name := "ExportImageTaskIds", xmlName := some "ExportImageTaskId" }, (.list .string "ExportImageTaskId")), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "ExportImageTaskIds" x.exportImageTaskIds, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let exportImageTaskIds ← v.opt "ExportImageTaskIds" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, exportImageTaskIds, filters, maxResults, nextToken } + +structure DescribeExportTasksRequest where + /-- The export task IDs. -/ + exportTaskIds : Option (List String) := none + /-- the filters for the export tasks. -/ + filters : Option (List Filter) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeExportTasksRequest where + schema := .struct "DescribeExportTasksRequest" [({ name := "ExportTaskIds", xmlName := some "exportTaskId", queryName := some "ExportTaskId" }, (.list .string "ExportTaskId")), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter"))] + toValue x := record [putOpt "ExportTaskIds" x.exportTaskIds, putOpt "Filters" x.filters] + ofValue v := do + let exportTaskIds ← v.opt "ExportTaskIds" + let filters ← v.opt "Filters" + return { exportTaskIds, filters } + +structure DescribeFastLaunchImagesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Use the following filters to streamline results. -/ + filters : Option (List Filter) := none + /-- Specify one or more Windows AMI image IDs for the request. -/ + imageIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeFastLaunchImagesRequest where + schema := .struct "DescribeFastLaunchImagesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "ImageIds", xmlName := some "ImageId" }, (.list .string "ImageId")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "ImageIds" x.imageIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let imageIds ← v.opt "ImageIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, imageIds, maxResults, nextToken } + +/-- Describe details about a Windows image with Windows fast launch enabled that meets the requested criteria. -/ +structure DescribeFastLaunchImagesSuccessItem where + /-- The image ID that identifies the Windows fast launch enabled image. -/ + imageId : Option String := none + /-- The launch template that the Windows fast launch enabled AMI uses when it launches Windows instances from pre-provisioned snapshots. -/ + launchTemplate : Option FastLaunchLaunchTemplateSpecificationResponse := none + /-- The maximum number of instances that Amazon EC2 can launch at the same time to create pre-provisioned snapshots for Windows fast launch. -/ + maxParallelLaunches : Option Int := none + /-- The owner ID for the Windows fast launch enabled AMI. -/ + ownerId : Option String := none + /-- The resource type that Amazon EC2 uses for pre-provisioning the Windows AMI. -/ + resourceType : Option FastLaunchResourceType := none + /-- A group of parameters that are used for pre-provisioning the associated Windows AMI using snapshots. -/ + snapshotConfiguration : Option FastLaunchSnapshotConfigurationResponse := none + /-- The current state of Windows fast launch for the specified Windows AMI. -/ + state : Option FastLaunchStateCode := none + /-- The reason that Windows fast launch for the AMI changed to the current state. -/ + stateTransitionReason : Option String := none + /-- The time that Windows fast launch for the AMI changed to the current state. -/ + stateTransitionTime : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeFastLaunchImagesSuccessItem where + schema := .struct "DescribeFastLaunchImagesSuccessItem" [({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "LaunchTemplate", xmlName := some "launchTemplate", queryName := some "LaunchTemplate" }, (Shape.schema FastLaunchLaunchTemplateSpecificationResponse)), + ({ name := "MaxParallelLaunches", xmlName := some "maxParallelLaunches", queryName := some "MaxParallelLaunches" }, .int), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema FastLaunchResourceType)), + ({ name := "SnapshotConfiguration", xmlName := some "snapshotConfiguration", queryName := some "SnapshotConfiguration" }, (Shape.schema FastLaunchSnapshotConfigurationResponse)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema FastLaunchStateCode)), + ({ name := "StateTransitionReason", xmlName := some "stateTransitionReason", queryName := some "StateTransitionReason" }, .string), + ({ name := "StateTransitionTime", xmlName := some "stateTransitionTime", queryName := some "StateTransitionTime" }, (.time none))] + toValue x := record [putOpt "ImageId" x.imageId, putOpt "LaunchTemplate" x.launchTemplate, putOpt "MaxParallelLaunches" x.maxParallelLaunches, putOpt "OwnerId" x.ownerId, putOpt "ResourceType" x.resourceType, putOpt "SnapshotConfiguration" x.snapshotConfiguration, putOpt "State" x.state, putOpt "StateTransitionReason" x.stateTransitionReason, putOpt "StateTransitionTime" x.stateTransitionTime] + ofValue v := do + let imageId ← v.opt "ImageId" + let launchTemplate ← v.opt "LaunchTemplate" + let maxParallelLaunches ← v.opt "MaxParallelLaunches" + let ownerId ← v.opt "OwnerId" + let resourceType ← v.opt "ResourceType" + let snapshotConfiguration ← v.opt "SnapshotConfiguration" + let state ← v.opt "State" + let stateTransitionReason ← v.opt "StateTransitionReason" + let stateTransitionTime ← v.opt "StateTransitionTime" + return { imageId, launchTemplate, maxParallelLaunches, ownerId, resourceType, snapshotConfiguration, state, stateTransitionReason, stateTransitionTime } + +/-- Describes fast snapshot restores for a snapshot. -/ +structure DescribeFastSnapshotRestoreSuccessItem where + /-- The Availability Zone. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone. -/ + availabilityZoneId : Option String := none + /-- The time at which fast snapshot restores entered the disabled state. -/ + disabledTime : Option Timestamp := none + /-- The time at which fast snapshot restores entered the disabling state. -/ + disablingTime : Option Timestamp := none + /-- The time at which fast snapshot restores entered the enabled state. -/ + enabledTime : Option Timestamp := none + /-- The time at which fast snapshot restores entered the enabling state. -/ + enablingTime : Option Timestamp := none + /-- The time at which fast snapshot restores entered the optimizing state. -/ + optimizingTime : Option Timestamp := none + /-- The Amazon Web Services owner alias that enabled fast snapshot restores on the snapshot. -/ + ownerAlias : Option String := none + /-- The ID of the Amazon Web Services account that enabled fast snapshot restores on the snapshot. -/ + ownerId : Option String := none + /-- The ID of the snapshot. -/ + snapshotId : Option String := none + /-- The state of fast snapshot restores. -/ + state : Option FastSnapshotRestoreStateCode := none + /-- The reason for the state transition. -/ + stateTransitionReason : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeFastSnapshotRestoreSuccessItem where + schema := .struct "DescribeFastSnapshotRestoreSuccessItem" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "DisabledTime", xmlName := some "disabledTime", queryName := some "DisabledTime" }, (.time none)), + ({ name := "DisablingTime", xmlName := some "disablingTime", queryName := some "DisablingTime" }, (.time none)), + ({ name := "EnabledTime", xmlName := some "enabledTime", queryName := some "EnabledTime" }, (.time none)), + ({ name := "EnablingTime", xmlName := some "enablingTime", queryName := some "EnablingTime" }, (.time none)), + ({ name := "OptimizingTime", xmlName := some "optimizingTime", queryName := some "OptimizingTime" }, (.time none)), + ({ name := "OwnerAlias", xmlName := some "ownerAlias", queryName := some "OwnerAlias" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema FastSnapshotRestoreStateCode)), + ({ name := "StateTransitionReason", xmlName := some "stateTransitionReason", queryName := some "StateTransitionReason" }, .string)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "DisabledTime" x.disabledTime, putOpt "DisablingTime" x.disablingTime, putOpt "EnabledTime" x.enabledTime, putOpt "EnablingTime" x.enablingTime, putOpt "OptimizingTime" x.optimizingTime, putOpt "OwnerAlias" x.ownerAlias, putOpt "OwnerId" x.ownerId, putOpt "SnapshotId" x.snapshotId, putOpt "State" x.state, putOpt "StateTransitionReason" x.stateTransitionReason] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let disabledTime ← v.opt "DisabledTime" + let disablingTime ← v.opt "DisablingTime" + let enabledTime ← v.opt "EnabledTime" + let enablingTime ← v.opt "EnablingTime" + let optimizingTime ← v.opt "OptimizingTime" + let ownerAlias ← v.opt "OwnerAlias" + let ownerId ← v.opt "OwnerId" + let snapshotId ← v.opt "SnapshotId" + let state ← v.opt "State" + let stateTransitionReason ← v.opt "StateTransitionReason" + return { availabilityZone, availabilityZoneId, disabledTime, disablingTime, enabledTime, enablingTime, optimizingTime, ownerAlias, ownerId, snapshotId, state, stateTransitionReason } + +structure DescribeFastSnapshotRestoresRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeFastSnapshotRestoresRequest where + schema := .struct "DescribeFastSnapshotRestoresRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, maxResults, nextToken } + +structure DescribeFleetHistoryRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The type of events to describe. -/ + eventType : Option FleetEventType := none + /-- The ID of the EC2 Fleet. -/ + fleetId : String + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The start date and time for the events, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). -/ + startTime : Timestamp +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeFleetHistoryRequest where + schema := .struct "DescribeFleetHistoryRequest" [({ name := "DryRun" }, .bool), + ({ name := "EventType" }, (Shape.schema FleetEventType)), + ({ name := "FleetId", required := true }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "StartTime", required := true }, (.time none))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "EventType" x.eventType, put "FleetId" x.fleetId, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "StartTime" x.startTime] + ofValue v := do + let dryRun ← v.opt "DryRun" + let eventType ← v.opt "EventType" + let fleetId ← v.req "FleetId" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let startTime ← v.req "StartTime" + return { dryRun, eventType, fleetId, maxResults, nextToken, startTime } + +structure DescribeFleetInstancesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The ID of the EC2 Fleet. -/ + fleetId : String + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeFleetInstancesRequest where + schema := .struct "DescribeFleetInstancesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "FleetId", required := true }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, put "FleetId" x.fleetId, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let fleetId ← v.req "FleetId" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, fleetId, maxResults, nextToken } + +structure DescribeFleetsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The IDs of the EC2 Fleets. -/ + fleetIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeFleetsRequest where + schema := .struct "DescribeFleetsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "FleetIds", xmlName := some "FleetId" }, (.list .string "member")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "FleetIds" x.fleetIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let fleetIds ← v.opt "FleetIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, fleetIds, maxResults, nextToken } + +structure DescribeFlowLogsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filter : Option (List Filter) := none + /-- One or more flow log IDs. -/ + flowLogIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token to request the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeFlowLogsRequest where + schema := .struct "DescribeFlowLogsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "FlowLogIds", xmlName := some "FlowLogId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filter" x.filter, putOpt "FlowLogIds" x.flowLogIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filter ← v.opt "Filter" + let flowLogIds ← v.opt "FlowLogIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filter, flowLogIds, maxResults, nextToken } + +structure DescribeFpgaImageAttributeRequest where + /-- The AFI attribute. -/ + «attribute» : FpgaImageAttributeName + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AFI. -/ + fpgaImageId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeFpgaImageAttributeRequest where + schema := .struct "DescribeFpgaImageAttributeRequest" [({ name := "Attribute", required := true }, (Shape.schema FpgaImageAttributeName)), + ({ name := "DryRun" }, .bool), + ({ name := "FpgaImageId", required := true }, .string)] + toValue x := record [put "Attribute" x.«attribute», putOpt "DryRun" x.dryRun, put "FpgaImageId" x.fpgaImageId] + ofValue v := do + let «attribute» ← v.req "Attribute" + let dryRun ← v.opt "DryRun" + let fpgaImageId ← v.req "FpgaImageId" + return { «attribute», dryRun, fpgaImageId } + +structure DescribeFpgaImagesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The AFI IDs. -/ + fpgaImageIds : Option (List String) := none + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Filters the AFI by owner. -/ + owners : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeFpgaImagesRequest where + schema := .struct "DescribeFpgaImagesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "FpgaImageIds", xmlName := some "FpgaImageId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "Owners", xmlName := some "Owner" }, (.list .string "Owner"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "FpgaImageIds" x.fpgaImageIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "Owners" x.owners] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let fpgaImageIds ← v.opt "FpgaImageIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let owners ← v.opt "Owners" + return { dryRun, filters, fpgaImageIds, maxResults, nextToken, owners } + +structure DescribeHostReservationOfferingsRequest where + /-- The filters. -/ + filter : Option (List Filter) := none + /-- This is the maximum duration of the reservation to purchase, specified in seconds. -/ + maxDuration : Option Int := none + /-- The maximum number of results to return for the request in a single page. -/ + maxResults : Option Int := none + /-- This is the minimum duration of the reservation you'd like to purchase, specified in seconds. -/ + minDuration : Option Int := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- The ID of the reservation offering. -/ + offeringId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeHostReservationOfferingsRequest where + schema := .struct "DescribeHostReservationOfferingsRequest" [({ name := "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxDuration" }, .int), + ({ name := "MaxResults" }, .int), + ({ name := "MinDuration" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "OfferingId" }, .string)] + toValue x := record [putOpt "Filter" x.filter, putOpt "MaxDuration" x.maxDuration, putOpt "MaxResults" x.maxResults, putOpt "MinDuration" x.minDuration, putOpt "NextToken" x.nextToken, putOpt "OfferingId" x.offeringId] + ofValue v := do + let filter ← v.opt "Filter" + let maxDuration ← v.opt "MaxDuration" + let maxResults ← v.opt "MaxResults" + let minDuration ← v.opt "MinDuration" + let nextToken ← v.opt "NextToken" + let offeringId ← v.opt "OfferingId" + return { filter, maxDuration, maxResults, minDuration, nextToken, offeringId } + +structure DescribeHostReservationsRequest where + /-- The filters. -/ + filter : Option (List Filter) := none + /-- The host reservation IDs. -/ + hostReservationIdSet : Option (List String) := none + /-- The maximum number of results to return for the request in a single page. -/ + maxResults : Option Int := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeHostReservationsRequest where + schema := .struct "DescribeHostReservationsRequest" [({ name := "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "HostReservationIdSet" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "Filter" x.filter, putOpt "HostReservationIdSet" x.hostReservationIdSet, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let filter ← v.opt "Filter" + let hostReservationIdSet ← v.opt "HostReservationIdSet" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { filter, hostReservationIdSet, maxResults, nextToken } + +structure DescribeHostsRequest where + /-- The filters. -/ + filter : Option (List Filter) := none + /-- The IDs of the Dedicated Hosts. -/ + hostIds : Option (List String) := none + /-- The maximum number of results to return for the request in a single page. -/ + maxResults : Option Int := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeHostsRequest where + schema := .struct "DescribeHostsRequest" [({ name := "Filter", xmlName := some "filter", queryName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "HostIds", xmlName := some "hostId", queryName := some "HostId" }, (.list .string "item")), + ({ name := "MaxResults", xmlName := some "maxResults", queryName := some "MaxResults" }, .int), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "Filter" x.filter, putOpt "HostIds" x.hostIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let filter ← v.opt "Filter" + let hostIds ← v.opt "HostIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { filter, hostIds, maxResults, nextToken } + +structure DescribeIamInstanceProfileAssociationsRequest where + /-- The IAM instance profile associations. -/ + associationIds : Option (List String) := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIamInstanceProfileAssociationsRequest where + schema := .struct "DescribeIamInstanceProfileAssociationsRequest" [({ name := "AssociationIds", xmlName := some "AssociationId" }, (.list .string "AssociationId")), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "AssociationIds" x.associationIds, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let associationIds ← v.opt "AssociationIds" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { associationIds, filters, maxResults, nextToken } + +structure DescribeIdFormatResult where + /-- Information about the ID format for the resource. -/ + statuses : Option (List IdFormat) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIdFormatResult where + schema := .struct "DescribeIdFormatResult" [({ name := "Statuses", xmlName := some "statusSet", queryName := some "StatusSet" }, (.list (Shape.schema IdFormat) "item"))] + toValue x := record [putOpt "Statuses" x.statuses] + ofValue v := do + let statuses ← v.opt "Statuses" + return { statuses } + +structure DescribeIdentityIdFormatResult where + /-- Information about the ID format for the resources. -/ + statuses : Option (List IdFormat) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIdentityIdFormatResult where + schema := .struct "DescribeIdentityIdFormatResult" [({ name := "Statuses", xmlName := some "statusSet", queryName := some "StatusSet" }, (.list (Shape.schema IdFormat) "item"))] + toValue x := record [putOpt "Statuses" x.statuses] + ofValue v := do + let statuses ← v.opt "Statuses" + return { statuses } + +/-- Contains the parameters for DescribeImageAttribute. -/ +structure DescribeImageAttributeRequest where + /-- The AMI attribute. -/ + «attribute» : ImageAttributeName + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AMI. -/ + imageId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeImageAttributeRequest where + schema := .struct "DescribeImageAttributeRequest" [({ name := "Attribute", required := true }, (Shape.schema ImageAttributeName)), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string)] + toValue x := record [put "Attribute" x.«attribute», putOpt "DryRun" x.dryRun, put "ImageId" x.imageId] + ofValue v := do + let «attribute» ← v.req "Attribute" + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + return { «attribute», dryRun, imageId } + +structure DescribeImageUsageReportEntriesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The IDs of the images for filtering the report entries. -/ + imageIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The IDs of the usage reports. -/ + reportIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeImageUsageReportEntriesRequest where + schema := .struct "DescribeImageUsageReportEntriesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "ImageIds", xmlName := some "ImageId" }, (.list .string "member")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "ReportIds", xmlName := some "ReportId" }, (.list .string "member"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "ImageIds" x.imageIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "ReportIds" x.reportIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let imageIds ← v.opt "ImageIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let reportIds ← v.opt "ReportIds" + return { dryRun, filters, imageIds, maxResults, nextToken, reportIds } + +structure DescribeImageUsageReportEntriesResult where + /-- The content of the usage reports. -/ + imageUsageReportEntries : Option (List ImageUsageReportEntry) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeImageUsageReportEntriesResult where + schema := .struct "DescribeImageUsageReportEntriesResult" [({ name := "ImageUsageReportEntries", xmlName := some "imageUsageReportEntrySet", queryName := some "ImageUsageReportEntrySet" }, (.list (Shape.schema ImageUsageReportEntry) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "ImageUsageReportEntries" x.imageUsageReportEntries, putOpt "NextToken" x.nextToken] + ofValue v := do + let imageUsageReportEntries ← v.opt "ImageUsageReportEntries" + let nextToken ← v.opt "NextToken" + return { imageUsageReportEntries, nextToken } + +structure DescribeImageUsageReportsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The IDs of the images for filtering the reports. -/ + imageIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The IDs of the image usage reports. -/ + reportIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeImageUsageReportsRequest where + schema := .struct "DescribeImageUsageReportsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "ImageIds", xmlName := some "ImageId" }, (.list .string "member")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "ReportIds", xmlName := some "ReportId" }, (.list .string "member"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "ImageIds" x.imageIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "ReportIds" x.reportIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let imageIds ← v.opt "ImageIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let reportIds ← v.opt "ReportIds" + return { dryRun, filters, imageIds, maxResults, nextToken, reportIds } + +structure DescribeImagesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Scopes the images by users with explicit launch permissions. -/ + executableUsers : Option (List String) := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The image IDs. -/ + imageIds : Option (List String) := none + /-- Specifies whether to include deprecated AMIs. -/ + includeDeprecated : Option Bool := none + /-- Specifies whether to include disabled AMIs. -/ + includeDisabled : Option Bool := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- Scopes the results to images with the specified owners. -/ + owners : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeImagesRequest where + schema := .struct "DescribeImagesRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "ExecutableUsers", xmlName := some "ExecutableBy" }, (.list .string "ExecutableBy")), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "ImageIds", xmlName := some "ImageId" }, (.list .string "ImageId")), + ({ name := "IncludeDeprecated" }, .bool), + ({ name := "IncludeDisabled" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "Owners", xmlName := some "Owner" }, (.list .string "Owner"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "ExecutableUsers" x.executableUsers, putOpt "Filters" x.filters, putOpt "ImageIds" x.imageIds, putOpt "IncludeDeprecated" x.includeDeprecated, putOpt "IncludeDisabled" x.includeDisabled, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "Owners" x.owners] + ofValue v := do + let dryRun ← v.opt "DryRun" + let executableUsers ← v.opt "ExecutableUsers" + let filters ← v.opt "Filters" + let imageIds ← v.opt "ImageIds" + let includeDeprecated ← v.opt "IncludeDeprecated" + let includeDisabled ← v.opt "IncludeDisabled" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let owners ← v.opt "Owners" + return { dryRun, executableUsers, filters, imageIds, includeDeprecated, includeDisabled, maxResults, nextToken, owners } + +structure DescribeImportImageTasksRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Filter tasks using the task-state filter and one of the following values: active , completed , deleting , or deleted . -/ + filters : Option (List Filter) := none + /-- The IDs of the import image tasks. -/ + importTaskIds : Option (List String) := none + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- A token that indicates the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeImportImageTasksRequest where + schema := .struct "DescribeImportImageTasksRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filters" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "ImportTaskIds", xmlName := some "ImportTaskId" }, (.list .string "ImportTaskId")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "ImportTaskIds" x.importTaskIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let importTaskIds ← v.opt "ImportTaskIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, importTaskIds, maxResults, nextToken } + +structure DescribeImportSnapshotTasksRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- A list of import snapshot task IDs. -/ + importTaskIds : Option (List String) := none + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- A token that indicates the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeImportSnapshotTasksRequest where + schema := .struct "DescribeImportSnapshotTasksRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filters" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "ImportTaskIds", xmlName := some "ImportTaskId" }, (.list .string "ImportTaskId")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "ImportTaskIds" x.importTaskIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let importTaskIds ← v.opt "ImportTaskIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, importTaskIds, maxResults, nextToken } + +structure DescribeInstanceAttributeRequest where + /-- The instance attribute. -/ + «attribute» : InstanceAttributeName + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the instance. -/ + instanceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceAttributeRequest where + schema := .struct "DescribeInstanceAttributeRequest" [({ name := "Attribute", required := true, xmlName := some "attribute", queryName := some "Attribute" }, (Shape.schema InstanceAttributeName)), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "InstanceId", required := true, xmlName := some "instanceId", queryName := some "InstanceId" }, .string)] + toValue x := record [put "Attribute" x.«attribute», putOpt "DryRun" x.dryRun, put "InstanceId" x.instanceId] + ofValue v := do + let «attribute» ← v.req "Attribute" + let dryRun ← v.opt "DryRun" + let instanceId ← v.req "InstanceId" + return { «attribute», dryRun, instanceId } + +structure DescribeInstanceConnectEndpointsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- One or more EC2 Instance Connect Endpoint IDs. -/ + instanceConnectEndpointIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceConnectEndpointsRequest where + schema := .struct "DescribeInstanceConnectEndpointsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "InstanceConnectEndpointIds", xmlName := some "InstanceConnectEndpointId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "InstanceConnectEndpointIds" x.instanceConnectEndpointIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let instanceConnectEndpointIds ← v.opt "InstanceConnectEndpointIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, instanceConnectEndpointIds, maxResults, nextToken } + +structure DescribeInstanceCreditSpecificationsRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The instance IDs. -/ + instanceIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceCreditSpecificationsRequest where + schema := .struct "DescribeInstanceCreditSpecificationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "InstanceIds", xmlName := some "InstanceId" }, (.list .string "InstanceId")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "InstanceIds" x.instanceIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let instanceIds ← v.opt "InstanceIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, instanceIds, maxResults, nextToken } + +structure DescribeInstanceCreditSpecificationsResult where + /-- Information about the credit option for CPU usage of an instance. -/ + instanceCreditSpecifications : Option (List InstanceCreditSpecification) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceCreditSpecificationsResult where + schema := .struct "DescribeInstanceCreditSpecificationsResult" [({ name := "InstanceCreditSpecifications", xmlName := some "instanceCreditSpecificationSet", queryName := some "InstanceCreditSpecificationSet" }, (.list (Shape.schema InstanceCreditSpecification) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "InstanceCreditSpecifications" x.instanceCreditSpecifications, putOpt "NextToken" x.nextToken] + ofValue v := do + let instanceCreditSpecifications ← v.opt "InstanceCreditSpecifications" + let nextToken ← v.opt "NextToken" + return { instanceCreditSpecifications, nextToken } + +structure DescribeInstanceEventNotificationAttributesResult where + /-- Information about the registered tag keys. -/ + instanceTagAttribute : Option InstanceTagNotificationAttribute := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceEventNotificationAttributesResult where + schema := .struct "DescribeInstanceEventNotificationAttributesResult" [({ name := "InstanceTagAttribute", xmlName := some "instanceTagAttribute", queryName := some "InstanceTagAttribute" }, (Shape.schema InstanceTagNotificationAttribute))] + toValue x := record [putOpt "InstanceTagAttribute" x.instanceTagAttribute] + ofValue v := do + let instanceTagAttribute ← v.opt "InstanceTagAttribute" + return { instanceTagAttribute } + +/-- Describe instance event windows by InstanceEventWindow. -/ +structure DescribeInstanceEventWindowsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The IDs of the event windows. -/ + instanceEventWindowIds : Option (List String) := none + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token to request the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceEventWindowsRequest where + schema := .struct "DescribeInstanceEventWindowsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "InstanceEventWindowIds", xmlName := some "InstanceEventWindowId" }, (.list .string "InstanceEventWindowId")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "InstanceEventWindowIds" x.instanceEventWindowIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let instanceEventWindowIds ← v.opt "InstanceEventWindowIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, instanceEventWindowIds, maxResults, nextToken } + +structure DescribeInstanceImageMetadataRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The instance IDs. -/ + instanceIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceImageMetadataRequest where + schema := .struct "DescribeInstanceImageMetadataRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "InstanceIds", xmlName := some "InstanceId" }, (.list .string "InstanceId")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "InstanceIds" x.instanceIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let instanceIds ← v.opt "InstanceIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, instanceIds, maxResults, nextToken } + +structure DescribeInstanceSqlHaHistoryStatesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The end data and time of the period for which to get historical SQL Server High Availability states. -/ + endTime : Option Timestamp := none + /-- One or more filters to apply to the results. -/ + filters : Option (List Filter) := none + /-- The IDs of the SQL Server High Availability instances to describe. -/ + instanceIds : Option (List String) := none + /-- The maximum number of results to return for the request in a single page. -/ + maxResults : Option Int := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- The start data and time of the period for which to get the historical SQL Server High Availability states. -/ + startTime : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceSqlHaHistoryStatesRequest where + schema := .struct "DescribeInstanceSqlHaHistoryStatesRequest" [({ name := "DryRun" }, .bool), + ({ name := "EndTime" }, (.time none)), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "InstanceIds", xmlName := some "InstanceId" }, (.list .string "InstanceId")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "StartTime" }, (.time none))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "EndTime" x.endTime, putOpt "Filters" x.filters, putOpt "InstanceIds" x.instanceIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "StartTime" x.startTime] + ofValue v := do + let dryRun ← v.opt "DryRun" + let endTime ← v.opt "EndTime" + let filters ← v.opt "Filters" + let instanceIds ← v.opt "InstanceIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let startTime ← v.opt "StartTime" + return { dryRun, endTime, filters, instanceIds, maxResults, nextToken, startTime } + +structure DescribeInstanceSqlHaStatesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters to apply to the results. -/ + filters : Option (List Filter) := none + /-- The IDs of the SQL Server High Availability instances to describe. -/ + instanceIds : Option (List String) := none + /-- The maximum number of results to return for the request in a single page. -/ + maxResults : Option Int := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceSqlHaStatesRequest where + schema := .struct "DescribeInstanceSqlHaStatesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "InstanceIds", xmlName := some "InstanceId" }, (.list .string "InstanceId")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "InstanceIds" x.instanceIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let instanceIds ← v.opt "InstanceIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, instanceIds, maxResults, nextToken } + +structure DescribeInstanceStatusRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- When true , includes the health status for all instances. -/ + includeAllInstances : Option Bool := none + /-- Indicates whether to include managed resources in the output. -/ + includeManagedResources : Option Bool := none + /-- The instance IDs. -/ + instanceIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceStatusRequest where + schema := .struct "DescribeInstanceStatusRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IncludeAllInstances", xmlName := some "includeAllInstances", queryName := some "IncludeAllInstances" }, .bool), + ({ name := "IncludeManagedResources" }, .bool), + ({ name := "InstanceIds", xmlName := some "InstanceId" }, (.list .string "InstanceId")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IncludeAllInstances" x.includeAllInstances, putOpt "IncludeManagedResources" x.includeManagedResources, putOpt "InstanceIds" x.instanceIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let includeAllInstances ← v.opt "IncludeAllInstances" + let includeManagedResources ← v.opt "IncludeManagedResources" + let instanceIds ← v.opt "InstanceIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, includeAllInstances, includeManagedResources, instanceIds, maxResults, nextToken } + +structure DescribeInstanceTopologyRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The name of the placement group that each instance is in. -/ + groupNames : Option (List String) := none + /-- The instance IDs. -/ + instanceIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceTopologyRequest where + schema := .struct "DescribeInstanceTopologyRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "GroupNames", xmlName := some "GroupName" }, (.list .string "member")), + ({ name := "InstanceIds", xmlName := some "InstanceId" }, (.list .string "member")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "GroupNames" x.groupNames, putOpt "InstanceIds" x.instanceIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let groupNames ← v.opt "GroupNames" + let instanceIds ← v.opt "InstanceIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, groupNames, instanceIds, maxResults, nextToken } + +structure DescribeInstanceTopologyResult where + /-- Information about the topology of each instance. -/ + instances : Option (List InstanceTopology) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceTopologyResult where + schema := .struct "DescribeInstanceTopologyResult" [({ name := "Instances", xmlName := some "instanceSet", queryName := some "InstanceSet" }, (.list (Shape.schema InstanceTopology) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "Instances" x.instances, putOpt "NextToken" x.nextToken] + ofValue v := do + let instances ← v.opt "Instances" + let nextToken ← v.opt "NextToken" + return { instances, nextToken } + +structure DescribeInstanceTypeOfferingsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The location type. -/ + locationType : Option LocationType := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceTypeOfferingsRequest where + schema := .struct "DescribeInstanceTypeOfferingsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "LocationType" }, (Shape.schema LocationType)), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "LocationType" x.locationType, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let locationType ← v.opt "LocationType" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, locationType, maxResults, nextToken } + +structure DescribeInstanceTypesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- If true , the response includes instance types that are not supported in the current Region, in addition to the supported types. -/ + includeUnsupportedInRegion : Option Bool := none + /-- The instance types. -/ + instanceTypes : Option (List InstanceType) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceTypesRequest where + schema := .struct "DescribeInstanceTypesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IncludeUnsupportedInRegion" }, .bool), + ({ name := "InstanceTypes", xmlName := some "InstanceType" }, (.list (Shape.schema InstanceType) "member")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IncludeUnsupportedInRegion" x.includeUnsupportedInRegion, putOpt "InstanceTypes" x.instanceTypes, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let includeUnsupportedInRegion ← v.opt "IncludeUnsupportedInRegion" + let instanceTypes ← v.opt "InstanceTypes" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, includeUnsupportedInRegion, instanceTypes, maxResults, nextToken } + +structure DescribeInstancesRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- Indicates whether to include managed resources in the output. -/ + includeManagedResources : Option Bool := none + /-- The instance IDs. -/ + instanceIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstancesRequest where + schema := .struct "DescribeInstancesRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IncludeManagedResources" }, .bool), + ({ name := "InstanceIds", xmlName := some "InstanceId" }, (.list .string "InstanceId")), + ({ name := "MaxResults", xmlName := some "maxResults", queryName := some "MaxResults" }, .int), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IncludeManagedResources" x.includeManagedResources, putOpt "InstanceIds" x.instanceIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let includeManagedResources ← v.opt "IncludeManagedResources" + let instanceIds ← v.opt "InstanceIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, includeManagedResources, instanceIds, maxResults, nextToken } + +structure DescribeInternetGatewaysRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The IDs of the internet gateways. -/ + internetGatewayIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInternetGatewaysRequest where + schema := .struct "DescribeInternetGatewaysRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "InternetGatewayIds", xmlName := some "internetGatewayId", queryName := some "InternetGatewayId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "InternetGatewayIds" x.internetGatewayIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let internetGatewayIds ← v.opt "InternetGatewayIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, internetGatewayIds, maxResults, nextToken } + +structure DescribeIpamExternalResourceVerificationTokensRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters for the request. -/ + filters : Option (List Filter) := none + /-- Verification token IDs. -/ + ipamExternalResourceVerificationTokenIds : Option (List String) := none + /-- The maximum number of tokens to return in one page of results. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamExternalResourceVerificationTokensRequest where + schema := .struct "DescribeIpamExternalResourceVerificationTokensRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamExternalResourceVerificationTokenIds", xmlName := some "IpamExternalResourceVerificationTokenId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IpamExternalResourceVerificationTokenIds" x.ipamExternalResourceVerificationTokenIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamExternalResourceVerificationTokenIds ← v.opt "IpamExternalResourceVerificationTokenIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, ipamExternalResourceVerificationTokenIds, maxResults, nextToken } + +structure DescribeIpamInternetRegistryAssociationsRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters to apply to the results. -/ + filters : Option (List Filter) := none + /-- The IDs of the internet registry associations to describe. -/ + ipamInternetRegistryAssociationIds : Option (List String) := none + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamInternetRegistryAssociationsRequest where + schema := .struct "DescribeIpamInternetRegistryAssociationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamInternetRegistryAssociationIds", xmlName := some "IpamInternetRegistryAssociationId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IpamInternetRegistryAssociationIds" x.ipamInternetRegistryAssociationIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamInternetRegistryAssociationIds ← v.opt "IpamInternetRegistryAssociationIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, ipamInternetRegistryAssociationIds, maxResults, nextToken } + +structure DescribeIpamPoliciesRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters for the IPAM policy description. -/ + filters : Option (List Filter) := none + /-- The IDs of the IPAM policies to describe. -/ + ipamPolicyIds : Option (List String) := none + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamPoliciesRequest where + schema := .struct "DescribeIpamPoliciesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamPolicyIds", xmlName := some "IpamPolicyId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IpamPolicyIds" x.ipamPolicyIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamPolicyIds ← v.opt "IpamPolicyIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, ipamPolicyIds, maxResults, nextToken } + +structure DescribeIpamPoolAllocationsRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters for the request. -/ + filters : Option (List Filter) := none + /-- The IDs of the IPAM pool allocations you want to describe. -/ + ipamPoolAllocationIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamPoolAllocationsRequest where + schema := .struct "DescribeIpamPoolAllocationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamPoolAllocationIds", xmlName := some "IpamPoolAllocationId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IpamPoolAllocationIds" x.ipamPoolAllocationIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamPoolAllocationIds ← v.opt "IpamPoolAllocationIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, ipamPoolAllocationIds, maxResults, nextToken } + +structure DescribeIpamPoolsRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters for the request. -/ + filters : Option (List Filter) := none + /-- The IDs of the IPAM pools you would like information on. -/ + ipamPoolIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamPoolsRequest where + schema := .struct "DescribeIpamPoolsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamPoolIds", xmlName := some "IpamPoolId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IpamPoolIds" x.ipamPoolIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamPoolIds ← v.opt "IpamPoolIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, ipamPoolIds, maxResults, nextToken } + +structure DescribeIpamPrefixListResolverTargetsRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters to limit the results. -/ + filters : Option (List Filter) := none + /-- The ID of the IPAM prefix list resolver to filter targets by. -/ + ipamPrefixListResolverId : Option String := none + /-- The IDs of the IPAM prefix list resolver Targets to describe. -/ + ipamPrefixListResolverTargetIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamPrefixListResolverTargetsRequest where + schema := .struct "DescribeIpamPrefixListResolverTargetsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamPrefixListResolverId" }, .string), + ({ name := "IpamPrefixListResolverTargetIds", xmlName := some "IpamPrefixListResolverTargetId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IpamPrefixListResolverId" x.ipamPrefixListResolverId, putOpt "IpamPrefixListResolverTargetIds" x.ipamPrefixListResolverTargetIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamPrefixListResolverId ← v.opt "IpamPrefixListResolverId" + let ipamPrefixListResolverTargetIds ← v.opt "IpamPrefixListResolverTargetIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, ipamPrefixListResolverId, ipamPrefixListResolverTargetIds, maxResults, nextToken } + +structure DescribeIpamPrefixListResolversRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters to limit the results. -/ + filters : Option (List Filter) := none + /-- The IDs of the IPAM prefix list resolvers to describe. -/ + ipamPrefixListResolverIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamPrefixListResolversRequest where + schema := .struct "DescribeIpamPrefixListResolversRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamPrefixListResolverIds", xmlName := some "IpamPrefixListResolverId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IpamPrefixListResolverIds" x.ipamPrefixListResolverIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamPrefixListResolverIds ← v.opt "IpamPrefixListResolverIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, ipamPrefixListResolverIds, maxResults, nextToken } + +structure DescribeIpamResourceDiscoveriesRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The resource discovery filters. -/ + filters : Option (List Filter) := none + /-- The IPAM resource discovery IDs. -/ + ipamResourceDiscoveryIds : Option (List String) := none + /-- The maximum number of resource discoveries to return in one page of results. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamResourceDiscoveriesRequest where + schema := .struct "DescribeIpamResourceDiscoveriesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamResourceDiscoveryIds", xmlName := some "IpamResourceDiscoveryId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IpamResourceDiscoveryIds" x.ipamResourceDiscoveryIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamResourceDiscoveryIds ← v.opt "IpamResourceDiscoveryIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, ipamResourceDiscoveryIds, maxResults, nextToken } + +structure DescribeIpamResourceDiscoveryAssociationsRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The resource discovery association filters. -/ + filters : Option (List Filter) := none + /-- The resource discovery association IDs. -/ + ipamResourceDiscoveryAssociationIds : Option (List String) := none + /-- The maximum number of resource discovery associations to return in one page of results. -/ + maxResults : Option Int := none + /-- Specify the pagination token from a previous request to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamResourceDiscoveryAssociationsRequest where + schema := .struct "DescribeIpamResourceDiscoveryAssociationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamResourceDiscoveryAssociationIds", xmlName := some "IpamResourceDiscoveryAssociationId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IpamResourceDiscoveryAssociationIds" x.ipamResourceDiscoveryAssociationIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamResourceDiscoveryAssociationIds ← v.opt "IpamResourceDiscoveryAssociationIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, ipamResourceDiscoveryAssociationIds, maxResults, nextToken } + +structure DescribeIpamScopesRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters for the request. -/ + filters : Option (List Filter) := none + /-- The IDs of the scopes you want information on. -/ + ipamScopeIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamScopesRequest where + schema := .struct "DescribeIpamScopesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamScopeIds", xmlName := some "IpamScopeId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IpamScopeIds" x.ipamScopeIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamScopeIds ← v.opt "IpamScopeIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, ipamScopeIds, maxResults, nextToken } + +structure DescribeIpamsRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters for the request. -/ + filters : Option (List Filter) := none + /-- The IDs of the IPAMs you want information on. -/ + ipamIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamsRequest where + schema := .struct "DescribeIpamsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamIds", xmlName := some "IpamId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IpamIds" x.ipamIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamIds ← v.opt "IpamIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, ipamIds, maxResults, nextToken } + +structure DescribeIpv6PoolsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the IPv6 address pools. -/ + poolIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpv6PoolsRequest where + schema := .struct "DescribeIpv6PoolsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "PoolIds", xmlName := some "PoolId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "PoolIds" x.poolIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let poolIds ← v.opt "PoolIds" + return { dryRun, filters, maxResults, nextToken, poolIds } + +structure DescribeKeyPairsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- If true , the public key material is included in the response. -/ + includePublicKey : Option Bool := none + /-- The key pair names. -/ + keyNames : Option (List String) := none + /-- The IDs of the key pairs. -/ + keyPairIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeKeyPairsRequest where + schema := .struct "DescribeKeyPairsRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IncludePublicKey" }, .bool), + ({ name := "KeyNames", xmlName := some "KeyName" }, (.list .string "KeyName")), + ({ name := "KeyPairIds", xmlName := some "KeyPairId" }, (.list .string "KeyPairId"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IncludePublicKey" x.includePublicKey, putOpt "KeyNames" x.keyNames, putOpt "KeyPairIds" x.keyPairIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let includePublicKey ← v.opt "IncludePublicKey" + let keyNames ← v.opt "KeyNames" + let keyPairIds ← v.opt "KeyPairIds" + return { dryRun, filters, includePublicKey, keyNames, keyPairIds } + +structure DescribeLaunchTemplateVersionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- Indicates whether to include managed resources in the output. -/ + includeManagedResources : Option Bool := none + /-- The ID of the launch template. -/ + launchTemplateId : Option String := none + /-- The name of the launch template. -/ + launchTemplateName : Option String := none + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The version number up to which to describe launch template versions. -/ + maxVersion : Option String := none + /-- The version number after which to describe launch template versions. -/ + minVersion : Option String := none + /-- The token to request the next page of results. -/ + nextToken : Option String := none + /-- If true , and if a Systems Manager parameter is specified for ImageId , the AMI ID is displayed in the response for imageId . -/ + resolveAlias : Option Bool := none + /-- One or more versions of the launch template. -/ + versions : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeLaunchTemplateVersionsRequest where + schema := .struct "DescribeLaunchTemplateVersionsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IncludeManagedResources" }, .bool), + ({ name := "LaunchTemplateId" }, .string), + ({ name := "LaunchTemplateName" }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "MaxVersion" }, .string), + ({ name := "MinVersion" }, .string), + ({ name := "NextToken" }, .string), + ({ name := "ResolveAlias" }, .bool), + ({ name := "Versions", xmlName := some "LaunchTemplateVersion" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IncludeManagedResources" x.includeManagedResources, putOpt "LaunchTemplateId" x.launchTemplateId, putOpt "LaunchTemplateName" x.launchTemplateName, putOpt "MaxResults" x.maxResults, putOpt "MaxVersion" x.maxVersion, putOpt "MinVersion" x.minVersion, putOpt "NextToken" x.nextToken, putOpt "ResolveAlias" x.resolveAlias, putOpt "Versions" x.versions] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let includeManagedResources ← v.opt "IncludeManagedResources" + let launchTemplateId ← v.opt "LaunchTemplateId" + let launchTemplateName ← v.opt "LaunchTemplateName" + let maxResults ← v.opt "MaxResults" + let maxVersion ← v.opt "MaxVersion" + let minVersion ← v.opt "MinVersion" + let nextToken ← v.opt "NextToken" + let resolveAlias ← v.opt "ResolveAlias" + let versions ← v.opt "Versions" + return { dryRun, filters, includeManagedResources, launchTemplateId, launchTemplateName, maxResults, maxVersion, minVersion, nextToken, resolveAlias, versions } + +structure DescribeLaunchTemplatesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- Indicates whether to include managed resources in the output. -/ + includeManagedResources : Option Bool := none + /-- One or more launch template IDs. -/ + launchTemplateIds : Option (List String) := none + /-- One or more launch template names. -/ + launchTemplateNames : Option (List String) := none + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token to request the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeLaunchTemplatesRequest where + schema := .struct "DescribeLaunchTemplatesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IncludeManagedResources" }, .bool), + ({ name := "LaunchTemplateIds", xmlName := some "LaunchTemplateId" }, (.list .string "item")), + ({ name := "LaunchTemplateNames", xmlName := some "LaunchTemplateName" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IncludeManagedResources" x.includeManagedResources, putOpt "LaunchTemplateIds" x.launchTemplateIds, putOpt "LaunchTemplateNames" x.launchTemplateNames, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let includeManagedResources ← v.opt "IncludeManagedResources" + let launchTemplateIds ← v.opt "LaunchTemplateIds" + let launchTemplateNames ← v.opt "LaunchTemplateNames" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, includeManagedResources, launchTemplateIds, launchTemplateNames, maxResults, nextToken } + +structure DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The IDs of the associations. -/ + localGatewayRouteTableVirtualInterfaceGroupAssociationIds : Option (List String) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest where + schema := .struct "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "LocalGatewayRouteTableVirtualInterfaceGroupAssociationIds", xmlName := some "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "LocalGatewayRouteTableVirtualInterfaceGroupAssociationIds" x.localGatewayRouteTableVirtualInterfaceGroupAssociationIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let localGatewayRouteTableVirtualInterfaceGroupAssociationIds ← v.opt "LocalGatewayRouteTableVirtualInterfaceGroupAssociationIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, localGatewayRouteTableVirtualInterfaceGroupAssociationIds, maxResults, nextToken } + +structure DescribeLocalGatewayRouteTableVpcAssociationsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The IDs of the associations. -/ + localGatewayRouteTableVpcAssociationIds : Option (List String) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeLocalGatewayRouteTableVpcAssociationsRequest where + schema := .struct "DescribeLocalGatewayRouteTableVpcAssociationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "LocalGatewayRouteTableVpcAssociationIds", xmlName := some "LocalGatewayRouteTableVpcAssociationId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "LocalGatewayRouteTableVpcAssociationIds" x.localGatewayRouteTableVpcAssociationIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let localGatewayRouteTableVpcAssociationIds ← v.opt "LocalGatewayRouteTableVpcAssociationIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, localGatewayRouteTableVpcAssociationIds, maxResults, nextToken } + +structure DescribeLocalGatewayRouteTablesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The IDs of the local gateway route tables. -/ + localGatewayRouteTableIds : Option (List String) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeLocalGatewayRouteTablesRequest where + schema := .struct "DescribeLocalGatewayRouteTablesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "LocalGatewayRouteTableIds", xmlName := some "LocalGatewayRouteTableId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "LocalGatewayRouteTableIds" x.localGatewayRouteTableIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let localGatewayRouteTableIds ← v.opt "LocalGatewayRouteTableIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, localGatewayRouteTableIds, maxResults, nextToken } + +structure DescribeLocalGatewayVirtualInterfaceGroupsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The IDs of the virtual interface groups. -/ + localGatewayVirtualInterfaceGroupIds : Option (List String) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeLocalGatewayVirtualInterfaceGroupsRequest where + schema := .struct "DescribeLocalGatewayVirtualInterfaceGroupsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "LocalGatewayVirtualInterfaceGroupIds", xmlName := some "LocalGatewayVirtualInterfaceGroupId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "LocalGatewayVirtualInterfaceGroupIds" x.localGatewayVirtualInterfaceGroupIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let localGatewayVirtualInterfaceGroupIds ← v.opt "LocalGatewayVirtualInterfaceGroupIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, localGatewayVirtualInterfaceGroupIds, maxResults, nextToken } + +structure DescribeLocalGatewayVirtualInterfacesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The IDs of the virtual interfaces. -/ + localGatewayVirtualInterfaceIds : Option (List String) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeLocalGatewayVirtualInterfacesRequest where + schema := .struct "DescribeLocalGatewayVirtualInterfacesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "LocalGatewayVirtualInterfaceIds", xmlName := some "LocalGatewayVirtualInterfaceId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "LocalGatewayVirtualInterfaceIds" x.localGatewayVirtualInterfaceIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let localGatewayVirtualInterfaceIds ← v.opt "LocalGatewayVirtualInterfaceIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, localGatewayVirtualInterfaceIds, maxResults, nextToken } + +structure DescribeLocalGatewaysRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The IDs of the local gateways. -/ + localGatewayIds : Option (List String) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeLocalGatewaysRequest where + schema := .struct "DescribeLocalGatewaysRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "LocalGatewayIds", xmlName := some "LocalGatewayId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "LocalGatewayIds" x.localGatewayIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let localGatewayIds ← v.opt "LocalGatewayIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, localGatewayIds, maxResults, nextToken } + +structure DescribeLockedSnapshotsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The IDs of the snapshots for which to view the lock status. -/ + snapshotIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeLockedSnapshotsRequest where + schema := .struct "DescribeLockedSnapshotsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "SnapshotIds", xmlName := some "SnapshotId" }, (.list .string "SnapshotId"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "SnapshotIds" x.snapshotIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let snapshotIds ← v.opt "SnapshotIds" + return { dryRun, filters, maxResults, nextToken, snapshotIds } + +structure DescribeMacHostsRequest where + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The IDs of the EC2 Mac Dedicated Hosts. -/ + hostIds : Option (List String) := none + /-- The maximum number of results to return for the request in a single page. -/ + maxResults : Option Int := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeMacHostsRequest where + schema := .struct "DescribeMacHostsRequest" [({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "HostIds", xmlName := some "HostId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "Filters" x.filters, putOpt "HostIds" x.hostIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let filters ← v.opt "Filters" + let hostIds ← v.opt "HostIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { filters, hostIds, maxResults, nextToken } + +structure DescribeMacHostsResult where + /-- Information about the EC2 Mac Dedicated Hosts. -/ + macHosts : Option (List MacHost) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeMacHostsResult where + schema := .struct "DescribeMacHostsResult" [({ name := "MacHosts", xmlName := some "macHostSet", queryName := some "MacHostSet" }, (.list (Shape.schema MacHost) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "MacHosts" x.macHosts, putOpt "NextToken" x.nextToken] + ofValue v := do + let macHosts ← v.opt "MacHosts" + let nextToken ← v.opt "NextToken" + return { macHosts, nextToken } + +structure DescribeMacModificationTasksRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Specifies one or more filters for the request: instance-id - The ID of the instance for which the task was created. -/ + filters : Option (List Filter) := none + /-- The ID of task. -/ + macModificationTaskIds : Option (List String) := none + /-- The maximum number of results to return for the request in a single page. -/ + maxResults : Option Int := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeMacModificationTasksRequest where + schema := .struct "DescribeMacModificationTasksRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MacModificationTaskIds", xmlName := some "MacModificationTaskId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MacModificationTaskIds" x.macModificationTaskIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let macModificationTaskIds ← v.opt "MacModificationTaskIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, macModificationTaskIds, maxResults, nextToken } + +structure DescribeManagedPrefixListsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- One or more prefix list IDs. -/ + prefixListIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeManagedPrefixListsRequest where + schema := .struct "DescribeManagedPrefixListsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "PrefixListIds", xmlName := some "PrefixListId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "PrefixListIds" x.prefixListIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let prefixListIds ← v.opt "PrefixListIds" + return { dryRun, filters, maxResults, nextToken, prefixListIds } + +structure DescribeMetricCategoriesRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The IDs of the metric categories. -/ + metricCategoryIds : Option (List String) := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeMetricCategoriesRequest where + schema := .struct "DescribeMetricCategoriesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "MetricCategoryIds", xmlName := some "MetricCategoryId" }, (.list .string "item")), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "MetricCategoryIds" x.metricCategoryIds, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let metricCategoryIds ← v.opt "MetricCategoryIds" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, maxResults, metricCategoryIds, nextToken } + +structure DescribeMovingAddressesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return for the request in a single page. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- One or more Elastic IP addresses. -/ + publicIps : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeMovingAddressesRequest where + schema := .struct "DescribeMovingAddressesRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "filter", queryName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults", xmlName := some "maxResults", queryName := some "MaxResults" }, .int), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "PublicIps", xmlName := some "publicIp", queryName := some "PublicIp" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "PublicIps" x.publicIps] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let publicIps ← v.opt "PublicIps" + return { dryRun, filters, maxResults, nextToken, publicIps } + +structure DescribeNatGatewaysRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filter : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The IDs of the NAT gateways. -/ + natGatewayIds : Option (List String) := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNatGatewaysRequest where + schema := .struct "DescribeNatGatewaysRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NatGatewayIds", xmlName := some "NatGatewayId" }, (.list .string "item")), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filter" x.filter, putOpt "MaxResults" x.maxResults, putOpt "NatGatewayIds" x.natGatewayIds, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filter ← v.opt "Filter" + let maxResults ← v.opt "MaxResults" + let natGatewayIds ← v.opt "NatGatewayIds" + let nextToken ← v.opt "NextToken" + return { dryRun, filter, maxResults, natGatewayIds, nextToken } + +structure DescribeNetworkAclsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The IDs of the network ACLs. -/ + networkAclIds : Option (List String) := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNetworkAclsRequest where + schema := .struct "DescribeNetworkAclsRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NetworkAclIds", xmlName := some "NetworkAclId" }, (.list .string "item")), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NetworkAclIds" x.networkAclIds, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let networkAclIds ← v.opt "NetworkAclIds" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, maxResults, networkAclIds, nextToken } + +structure DescribeNetworkInsightsAccessScopeAnalysesRequest where + /-- Filters the results based on the start time. -/ + analysisStartTimeBegin : Option Timestamp := none + /-- Filters the results based on the start time. -/ + analysisStartTimeEnd : Option Timestamp := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- There are no supported filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The IDs of the Network Access Scope analyses. -/ + networkInsightsAccessScopeAnalysisIds : Option (List String) := none + /-- The ID of the Network Access Scope. -/ + networkInsightsAccessScopeId : Option String := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNetworkInsightsAccessScopeAnalysesRequest where + schema := .struct "DescribeNetworkInsightsAccessScopeAnalysesRequest" [({ name := "AnalysisStartTimeBegin" }, (.time none)), + ({ name := "AnalysisStartTimeEnd" }, (.time none)), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NetworkInsightsAccessScopeAnalysisIds", xmlName := some "NetworkInsightsAccessScopeAnalysisId" }, (.list .string "item")), + ({ name := "NetworkInsightsAccessScopeId" }, .string), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "AnalysisStartTimeBegin" x.analysisStartTimeBegin, putOpt "AnalysisStartTimeEnd" x.analysisStartTimeEnd, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NetworkInsightsAccessScopeAnalysisIds" x.networkInsightsAccessScopeAnalysisIds, putOpt "NetworkInsightsAccessScopeId" x.networkInsightsAccessScopeId, putOpt "NextToken" x.nextToken] + ofValue v := do + let analysisStartTimeBegin ← v.opt "AnalysisStartTimeBegin" + let analysisStartTimeEnd ← v.opt "AnalysisStartTimeEnd" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let networkInsightsAccessScopeAnalysisIds ← v.opt "NetworkInsightsAccessScopeAnalysisIds" + let networkInsightsAccessScopeId ← v.opt "NetworkInsightsAccessScopeId" + let nextToken ← v.opt "NextToken" + return { analysisStartTimeBegin, analysisStartTimeEnd, dryRun, filters, maxResults, networkInsightsAccessScopeAnalysisIds, networkInsightsAccessScopeId, nextToken } + +structure DescribeNetworkInsightsAccessScopesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- There are no supported filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The IDs of the Network Access Scopes. -/ + networkInsightsAccessScopeIds : Option (List String) := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNetworkInsightsAccessScopesRequest where + schema := .struct "DescribeNetworkInsightsAccessScopesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NetworkInsightsAccessScopeIds", xmlName := some "NetworkInsightsAccessScopeId" }, (.list .string "item")), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NetworkInsightsAccessScopeIds" x.networkInsightsAccessScopeIds, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let networkInsightsAccessScopeIds ← v.opt "NetworkInsightsAccessScopeIds" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, maxResults, networkInsightsAccessScopeIds, nextToken } + +structure DescribeNetworkInsightsAnalysesRequest where + /-- The time when the network insights analyses ended. -/ + analysisEndTime : Option Timestamp := none + /-- The time when the network insights analyses started. -/ + analysisStartTime : Option Timestamp := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The ID of the network insights analyses. -/ + networkInsightsAnalysisIds : Option (List String) := none + /-- The ID of the path. -/ + networkInsightsPathId : Option String := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNetworkInsightsAnalysesRequest where + schema := .struct "DescribeNetworkInsightsAnalysesRequest" [({ name := "AnalysisEndTime" }, (.time none)), + ({ name := "AnalysisStartTime" }, (.time none)), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NetworkInsightsAnalysisIds", xmlName := some "NetworkInsightsAnalysisId" }, (.list .string "item")), + ({ name := "NetworkInsightsPathId" }, .string), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "AnalysisEndTime" x.analysisEndTime, putOpt "AnalysisStartTime" x.analysisStartTime, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NetworkInsightsAnalysisIds" x.networkInsightsAnalysisIds, putOpt "NetworkInsightsPathId" x.networkInsightsPathId, putOpt "NextToken" x.nextToken] + ofValue v := do + let analysisEndTime ← v.opt "AnalysisEndTime" + let analysisStartTime ← v.opt "AnalysisStartTime" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let networkInsightsAnalysisIds ← v.opt "NetworkInsightsAnalysisIds" + let networkInsightsPathId ← v.opt "NetworkInsightsPathId" + let nextToken ← v.opt "NextToken" + return { analysisEndTime, analysisStartTime, dryRun, filters, maxResults, networkInsightsAnalysisIds, networkInsightsPathId, nextToken } + +structure DescribeNetworkInsightsPathsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The IDs of the paths. -/ + networkInsightsPathIds : Option (List String) := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNetworkInsightsPathsRequest where + schema := .struct "DescribeNetworkInsightsPathsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NetworkInsightsPathIds", xmlName := some "NetworkInsightsPathId" }, (.list .string "item")), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NetworkInsightsPathIds" x.networkInsightsPathIds, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let networkInsightsPathIds ← v.opt "NetworkInsightsPathIds" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, maxResults, networkInsightsPathIds, nextToken } + +/-- Contains the parameters for DescribeNetworkInterfaceAttribute. -/ +structure DescribeNetworkInterfaceAttributeRequest where + /-- The attribute of the network interface. -/ + «attribute» : Option NetworkInterfaceAttribute := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the network interface. -/ + networkInterfaceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNetworkInterfaceAttributeRequest where + schema := .struct "DescribeNetworkInterfaceAttributeRequest" [({ name := "Attribute", xmlName := some "attribute", queryName := some "Attribute" }, (Shape.schema NetworkInterfaceAttribute)), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "NetworkInterfaceId", required := true, xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string)] + toValue x := record [putOpt "Attribute" x.«attribute», putOpt "DryRun" x.dryRun, put "NetworkInterfaceId" x.networkInterfaceId] + ofValue v := do + let «attribute» ← v.opt "Attribute" + let dryRun ← v.opt "DryRun" + let networkInterfaceId ← v.req "NetworkInterfaceId" + return { «attribute», dryRun, networkInterfaceId } + +/-- Contains the parameters for DescribeNetworkInterfacePermissions. -/ +structure DescribeNetworkInterfacePermissionsRequest where + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The network interface permission IDs. -/ + networkInterfacePermissionIds : Option (List String) := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNetworkInterfacePermissionsRequest where + schema := .struct "DescribeNetworkInterfacePermissionsRequest" [({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NetworkInterfacePermissionIds", xmlName := some "NetworkInterfacePermissionId" }, (.list .string "member")), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NetworkInterfacePermissionIds" x.networkInterfacePermissionIds, putOpt "NextToken" x.nextToken] + ofValue v := do + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let networkInterfacePermissionIds ← v.opt "NetworkInterfacePermissionIds" + let nextToken ← v.opt "NextToken" + return { filters, maxResults, networkInterfacePermissionIds, nextToken } + +/-- Contains the parameters for DescribeNetworkInterfaces. -/ +structure DescribeNetworkInterfacesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- Indicates whether to include managed resources in the output. -/ + includeManagedResources : Option Bool := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The network interface IDs. -/ + networkInterfaceIds : Option (List String) := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNetworkInterfacesRequest where + schema := .struct "DescribeNetworkInterfacesRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "filter", queryName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IncludeManagedResources" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NetworkInterfaceIds", xmlName := some "NetworkInterfaceId" }, (.list .string "item")), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IncludeManagedResources" x.includeManagedResources, putOpt "MaxResults" x.maxResults, putOpt "NetworkInterfaceIds" x.networkInterfaceIds, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let includeManagedResources ← v.opt "IncludeManagedResources" + let maxResults ← v.opt "MaxResults" + let networkInterfaceIds ← v.opt "NetworkInterfaceIds" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, includeManagedResources, maxResults, networkInterfaceIds, nextToken } + +structure DescribeNetworkingFlexCostAllocationPoliciesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the flex cost allocation policies to describe. -/ + fcaPolicyIds : Option (List String) := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNetworkingFlexCostAllocationPoliciesRequest where + schema := .struct "DescribeNetworkingFlexCostAllocationPoliciesRequest" [({ name := "DryRun" }, .bool), + ({ name := "FcaPolicyIds" }, (.list .string "item")), + ({ name := "Filters" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "FcaPolicyIds" x.fcaPolicyIds, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let fcaPolicyIds ← v.opt "FcaPolicyIds" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, fcaPolicyIds, filters, maxResults, nextToken } + +structure DescribeNetworkingFlexCostAllocationPolicyAssociationsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the policy associations to describe. -/ + fcaPolicyAssociationIds : Option (List String) := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNetworkingFlexCostAllocationPolicyAssociationsRequest where + schema := .struct "DescribeNetworkingFlexCostAllocationPolicyAssociationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "FcaPolicyAssociationIds" }, (.list .string "item")), + ({ name := "Filters" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "FcaPolicyAssociationIds" x.fcaPolicyAssociationIds, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let fcaPolicyAssociationIds ← v.opt "FcaPolicyAssociationIds" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, fcaPolicyAssociationIds, filters, maxResults, nextToken } + +structure DescribeOutpostLagsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters to use for narrowing down the request. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the Outpost LAGs. -/ + outpostLagIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeOutpostLagsRequest where + schema := .struct "DescribeOutpostLagsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "OutpostLagIds", xmlName := some "OutpostLagId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "OutpostLagIds" x.outpostLagIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let outpostLagIds ← v.opt "OutpostLagIds" + return { dryRun, filters, maxResults, nextToken, outpostLagIds } + +structure DescribePlacementGroupsRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The IDs of the placement groups. -/ + groupIds : Option (List String) := none + /-- The names of the placement groups. -/ + groupNames : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribePlacementGroupsRequest where + schema := .struct "DescribePlacementGroupsRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "GroupIds", xmlName := some "GroupId" }, (.list .string "GroupId")), + ({ name := "GroupNames", xmlName := some "groupName", queryName := some "GroupName" }, (.list .string "member"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "GroupIds" x.groupIds, putOpt "GroupNames" x.groupNames] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let groupIds ← v.opt "GroupIds" + let groupNames ← v.opt "GroupNames" + return { dryRun, filters, groupIds, groupNames } + +structure DescribePrefixListsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- One or more prefix list IDs. -/ + prefixListIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribePrefixListsRequest where + schema := .struct "DescribePrefixListsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "PrefixListIds", xmlName := some "PrefixListId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "PrefixListIds" x.prefixListIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let prefixListIds ← v.opt "PrefixListIds" + return { dryRun, filters, maxResults, nextToken, prefixListIds } + +structure DescribePrefixListsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- All available prefix lists. -/ + prefixLists : Option (List PrefixList) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribePrefixListsResult where + schema := .struct "DescribePrefixListsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "PrefixLists", xmlName := some "prefixListSet", queryName := some "PrefixListSet" }, (.list (Shape.schema PrefixList) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "PrefixLists" x.prefixLists] + ofValue v := do + let nextToken ← v.opt "NextToken" + let prefixLists ← v.opt "PrefixLists" + return { nextToken, prefixLists } + +structure DescribePublicIpv4PoolsRequest where + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the address pools. -/ + poolIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribePublicIpv4PoolsRequest where + schema := .struct "DescribePublicIpv4PoolsRequest" [({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "PoolIds", xmlName := some "PoolId" }, (.list .string "item"))] + toValue x := record [putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "PoolIds" x.poolIds] + ofValue v := do + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let poolIds ← v.opt "PoolIds" + return { filters, maxResults, nextToken, poolIds } + +structure DescribeRegionsRequest where + /-- Indicates whether to display all Regions, including Regions that are disabled for your account. -/ + allRegions : Option Bool := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The names of the Regions. -/ + regionNames : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeRegionsRequest where + schema := .struct "DescribeRegionsRequest" [({ name := "AllRegions" }, .bool), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "RegionNames", xmlName := some "RegionName" }, (.list .string "RegionName"))] + toValue x := record [putOpt "AllRegions" x.allRegions, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "RegionNames" x.regionNames] + ofValue v := do + let allRegions ← v.opt "AllRegions" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let regionNames ← v.opt "RegionNames" + return { allRegions, dryRun, filters, regionNames } + +structure DescribeReplaceRootVolumeTasksRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Filter to use: instance-id - The ID of the instance for which the root volume replacement task was created. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The ID of the root volume replacement task to view. -/ + replaceRootVolumeTaskIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeReplaceRootVolumeTasksRequest where + schema := .struct "DescribeReplaceRootVolumeTasksRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "ReplaceRootVolumeTaskIds", xmlName := some "ReplaceRootVolumeTaskId" }, (.list .string "ReplaceRootVolumeTaskId"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "ReplaceRootVolumeTaskIds" x.replaceRootVolumeTaskIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let replaceRootVolumeTaskIds ← v.opt "ReplaceRootVolumeTaskIds" + return { dryRun, filters, maxResults, nextToken, replaceRootVolumeTaskIds } + +/-- Contains the parameters for DescribeReservedInstancesListings. -/ +structure DescribeReservedInstancesListingsRequest where + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- One or more Reserved Instance IDs. -/ + reservedInstancesId : Option String := none + /-- One or more Reserved Instance listing IDs. -/ + reservedInstancesListingId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeReservedInstancesListingsRequest where + schema := .struct "DescribeReservedInstancesListingsRequest" [({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "ReservedInstancesId", xmlName := some "reservedInstancesId", queryName := some "ReservedInstancesId" }, .string), + ({ name := "ReservedInstancesListingId", xmlName := some "reservedInstancesListingId", queryName := some "ReservedInstancesListingId" }, .string)] + toValue x := record [putOpt "Filters" x.filters, putOpt "ReservedInstancesId" x.reservedInstancesId, putOpt "ReservedInstancesListingId" x.reservedInstancesListingId] + ofValue v := do + let filters ← v.opt "Filters" + let reservedInstancesId ← v.opt "ReservedInstancesId" + let reservedInstancesListingId ← v.opt "ReservedInstancesListingId" + return { filters, reservedInstancesId, reservedInstancesListingId } + +/-- Contains the parameters for DescribeReservedInstancesModifications. -/ +structure DescribeReservedInstancesModificationsRequest where + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The token to retrieve the next page of results. -/ + nextToken : Option String := none + /-- IDs for the submitted modification request. -/ + reservedInstancesModificationIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeReservedInstancesModificationsRequest where + schema := .struct "DescribeReservedInstancesModificationsRequest" [({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "ReservedInstancesModificationIds", xmlName := some "ReservedInstancesModificationId" }, (.list .string "ReservedInstancesModificationId"))] + toValue x := record [putOpt "Filters" x.filters, putOpt "NextToken" x.nextToken, putOpt "ReservedInstancesModificationIds" x.reservedInstancesModificationIds] + ofValue v := do + let filters ← v.opt "Filters" + let nextToken ← v.opt "NextToken" + let reservedInstancesModificationIds ← v.opt "ReservedInstancesModificationIds" + return { filters, nextToken, reservedInstancesModificationIds } + +/-- Contains the parameters for DescribeReservedInstancesOfferings. -/ +structure DescribeReservedInstancesOfferingsRequest where + /-- The Availability Zone in which the Reserved Instance can be used. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone. -/ + availabilityZoneId : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- Include Reserved Instance Marketplace offerings in the response. -/ + includeMarketplace : Option Bool := none + /-- The tenancy of the instances covered by the reservation. -/ + instanceTenancy : Option Tenancy := none + /-- The instance type that the reservation will cover (for example, m1.small ). -/ + instanceType : Option InstanceType := none + /-- The maximum duration (in seconds) to filter when searching for offerings. -/ + maxDuration : Option Int := none + /-- The maximum number of instances to filter when searching for offerings. -/ + maxInstanceCount : Option Int := none + /-- The maximum number of results to return for the request in a single page. -/ + maxResults : Option Int := none + /-- The minimum duration (in seconds) to filter when searching for offerings. -/ + minDuration : Option Int := none + /-- The token to retrieve the next page of results. -/ + nextToken : Option String := none + /-- The offering class of the Reserved Instance. -/ + offeringClass : Option OfferingClassType := none + /-- The Reserved Instance offering type. -/ + offeringType : Option OfferingTypeValues := none + /-- The Reserved Instance product platform description. -/ + productDescription : Option RIProductDescription := none + /-- One or more Reserved Instances offering IDs. -/ + reservedInstancesOfferingIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeReservedInstancesOfferingsRequest where + schema := .struct "DescribeReservedInstancesOfferingsRequest" [({ name := "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IncludeMarketplace" }, .bool), + ({ name := "InstanceTenancy", xmlName := some "instanceTenancy", queryName := some "InstanceTenancy" }, (Shape.schema Tenancy)), + ({ name := "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "MaxDuration" }, .int), + ({ name := "MaxInstanceCount" }, .int), + ({ name := "MaxResults", xmlName := some "maxResults", queryName := some "MaxResults" }, .int), + ({ name := "MinDuration" }, .int), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "OfferingClass" }, (Shape.schema OfferingClassType)), + ({ name := "OfferingType", xmlName := some "offeringType", queryName := some "OfferingType" }, (Shape.schema OfferingTypeValues)), + ({ name := "ProductDescription" }, (Shape.schema RIProductDescription)), + ({ name := "ReservedInstancesOfferingIds", xmlName := some "ReservedInstancesOfferingId" }, (.list .string "member"))] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IncludeMarketplace" x.includeMarketplace, putOpt "InstanceTenancy" x.instanceTenancy, putOpt "InstanceType" x.instanceType, putOpt "MaxDuration" x.maxDuration, putOpt "MaxInstanceCount" x.maxInstanceCount, putOpt "MaxResults" x.maxResults, putOpt "MinDuration" x.minDuration, putOpt "NextToken" x.nextToken, putOpt "OfferingClass" x.offeringClass, putOpt "OfferingType" x.offeringType, putOpt "ProductDescription" x.productDescription, putOpt "ReservedInstancesOfferingIds" x.reservedInstancesOfferingIds] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let includeMarketplace ← v.opt "IncludeMarketplace" + let instanceTenancy ← v.opt "InstanceTenancy" + let instanceType ← v.opt "InstanceType" + let maxDuration ← v.opt "MaxDuration" + let maxInstanceCount ← v.opt "MaxInstanceCount" + let maxResults ← v.opt "MaxResults" + let minDuration ← v.opt "MinDuration" + let nextToken ← v.opt "NextToken" + let offeringClass ← v.opt "OfferingClass" + let offeringType ← v.opt "OfferingType" + let productDescription ← v.opt "ProductDescription" + let reservedInstancesOfferingIds ← v.opt "ReservedInstancesOfferingIds" + return { availabilityZone, availabilityZoneId, dryRun, filters, includeMarketplace, instanceTenancy, instanceType, maxDuration, maxInstanceCount, maxResults, minDuration, nextToken, offeringClass, offeringType, productDescription, reservedInstancesOfferingIds } + +/-- Contains the parameters for DescribeReservedInstances. -/ +structure DescribeReservedInstancesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- Describes whether the Reserved Instance is Standard or Convertible. -/ + offeringClass : Option OfferingClassType := none + /-- The Reserved Instance offering type. -/ + offeringType : Option OfferingTypeValues := none + /-- One or more Reserved Instance IDs. -/ + reservedInstancesIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeReservedInstancesRequest where + schema := .struct "DescribeReservedInstancesRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "OfferingClass" }, (Shape.schema OfferingClassType)), + ({ name := "OfferingType", xmlName := some "offeringType", queryName := some "OfferingType" }, (Shape.schema OfferingTypeValues)), + ({ name := "ReservedInstancesIds", xmlName := some "ReservedInstancesId" }, (.list .string "ReservedInstancesId"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "OfferingClass" x.offeringClass, putOpt "OfferingType" x.offeringType, putOpt "ReservedInstancesIds" x.reservedInstancesIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let offeringClass ← v.opt "OfferingClass" + let offeringType ← v.opt "OfferingType" + let reservedInstancesIds ← v.opt "ReservedInstancesIds" + return { dryRun, filters, offeringClass, offeringType, reservedInstancesIds } + +structure DescribeRouteServerEndpointsRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters to apply to the describe request. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the route server endpoints to describe. -/ + routeServerEndpointIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeRouteServerEndpointsRequest where + schema := .struct "DescribeRouteServerEndpointsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "RouteServerEndpointIds", xmlName := some "RouteServerEndpointId" }, (.list .string "member"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "RouteServerEndpointIds" x.routeServerEndpointIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let routeServerEndpointIds ← v.opt "RouteServerEndpointIds" + return { dryRun, filters, maxResults, nextToken, routeServerEndpointIds } + +structure DescribeRouteServerPeersRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters to apply to the describe request. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the route server peers to describe. -/ + routeServerPeerIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeRouteServerPeersRequest where + schema := .struct "DescribeRouteServerPeersRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "RouteServerPeerIds", xmlName := some "RouteServerPeerId" }, (.list .string "member"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "RouteServerPeerIds" x.routeServerPeerIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let routeServerPeerIds ← v.opt "RouteServerPeerIds" + return { dryRun, filters, maxResults, nextToken, routeServerPeerIds } + +structure DescribeRouteServersRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters to apply to the describe request. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the route servers to describe. -/ + routeServerIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeRouteServersRequest where + schema := .struct "DescribeRouteServersRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "RouteServerIds", xmlName := some "RouteServerId" }, (.list .string "member"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "RouteServerIds" x.routeServerIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let routeServerIds ← v.opt "RouteServerIds" + return { dryRun, filters, maxResults, nextToken, routeServerIds } + +structure DescribeRouteTablesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The IDs of the route tables. -/ + routeTableIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeRouteTablesRequest where + schema := .struct "DescribeRouteTablesRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "RouteTableIds", xmlName := some "RouteTableId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "RouteTableIds" x.routeTableIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let routeTableIds ← v.opt "RouteTableIds" + return { dryRun, filters, maxResults, nextToken, routeTableIds } + +/-- Contains the parameters for DescribeScheduledInstanceAvailability. -/ +structure DescribeScheduledInstanceAvailabilityRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The time period for the first schedule to start. -/ + firstSlotStartTimeRange : SlotDateTimeRangeRequest + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The maximum available duration, in hours. -/ + maxSlotDurationInHours : Option Int := none + /-- The minimum available duration, in hours. -/ + minSlotDurationInHours : Option Int := none + /-- The token for the next set of results. -/ + nextToken : Option String := none + /-- The schedule recurrence. -/ + recurrence : ScheduledInstanceRecurrenceRequest +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeScheduledInstanceAvailabilityRequest where + schema := .struct "DescribeScheduledInstanceAvailabilityRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "FirstSlotStartTimeRange", required := true }, (Shape.schema SlotDateTimeRangeRequest)), + ({ name := "MaxResults" }, .int), + ({ name := "MaxSlotDurationInHours" }, .int), + ({ name := "MinSlotDurationInHours" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "Recurrence", required := true }, (Shape.schema ScheduledInstanceRecurrenceRequest))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, put "FirstSlotStartTimeRange" x.firstSlotStartTimeRange, putOpt "MaxResults" x.maxResults, putOpt "MaxSlotDurationInHours" x.maxSlotDurationInHours, putOpt "MinSlotDurationInHours" x.minSlotDurationInHours, putOpt "NextToken" x.nextToken, put "Recurrence" x.recurrence] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let firstSlotStartTimeRange ← v.req "FirstSlotStartTimeRange" + let maxResults ← v.opt "MaxResults" + let maxSlotDurationInHours ← v.opt "MaxSlotDurationInHours" + let minSlotDurationInHours ← v.opt "MinSlotDurationInHours" + let nextToken ← v.opt "NextToken" + let recurrence ← v.req "Recurrence" + return { dryRun, filters, firstSlotStartTimeRange, maxResults, maxSlotDurationInHours, minSlotDurationInHours, nextToken, recurrence } + +/-- Contains the parameters for DescribeScheduledInstances. -/ +structure DescribeScheduledInstancesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token for the next set of results. -/ + nextToken : Option String := none + /-- The Scheduled Instance IDs. -/ + scheduledInstanceIds : Option (List String) := none + /-- The time period for the first schedule to start. -/ + slotStartTimeRange : Option SlotStartTimeRangeRequest := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeScheduledInstancesRequest where + schema := .struct "DescribeScheduledInstancesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "ScheduledInstanceIds", xmlName := some "ScheduledInstanceId" }, (.list .string "ScheduledInstanceId")), + ({ name := "SlotStartTimeRange" }, (Shape.schema SlotStartTimeRangeRequest))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "ScheduledInstanceIds" x.scheduledInstanceIds, putOpt "SlotStartTimeRange" x.slotStartTimeRange] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let scheduledInstanceIds ← v.opt "ScheduledInstanceIds" + let slotStartTimeRange ← v.opt "SlotStartTimeRange" + return { dryRun, filters, maxResults, nextToken, scheduledInstanceIds, slotStartTimeRange } + +structure DescribeSecondaryInterfacesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the secondary interfaces. -/ + secondaryInterfaceIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSecondaryInterfacesRequest where + schema := .struct "DescribeSecondaryInterfacesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "SecondaryInterfaceIds", xmlName := some "SecondaryInterfaceId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "SecondaryInterfaceIds" x.secondaryInterfaceIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let secondaryInterfaceIds ← v.opt "SecondaryInterfaceIds" + return { dryRun, filters, maxResults, nextToken, secondaryInterfaceIds } + +structure DescribeSecondaryNetworksRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the secondary networks. -/ + secondaryNetworkIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSecondaryNetworksRequest where + schema := .struct "DescribeSecondaryNetworksRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "SecondaryNetworkIds", xmlName := some "SecondaryNetworkId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "SecondaryNetworkIds" x.secondaryNetworkIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let secondaryNetworkIds ← v.opt "SecondaryNetworkIds" + return { dryRun, filters, maxResults, nextToken, secondaryNetworkIds } + +structure DescribeSecondarySubnetsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the secondary subnets. -/ + secondarySubnetIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSecondarySubnetsRequest where + schema := .struct "DescribeSecondarySubnetsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "SecondarySubnetIds", xmlName := some "SecondarySubnetId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "SecondarySubnetIds" x.secondarySubnetIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let secondarySubnetIds ← v.opt "SecondarySubnetIds" + return { dryRun, filters, maxResults, nextToken, secondarySubnetIds } + +structure DescribeSecurityGroupReferencesResult where + /-- Information about the VPCs with the referencing security groups. -/ + securityGroupReferenceSet : Option (List SecurityGroupReference) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSecurityGroupReferencesResult where + schema := .struct "DescribeSecurityGroupReferencesResult" [({ name := "SecurityGroupReferenceSet", xmlName := some "securityGroupReferenceSet", queryName := some "SecurityGroupReferenceSet" }, (.list (Shape.schema SecurityGroupReference) "item"))] + toValue x := record [putOpt "SecurityGroupReferenceSet" x.securityGroupReferenceSet] + ofValue v := do + let securityGroupReferenceSet ← v.opt "SecurityGroupReferenceSet" + return { securityGroupReferenceSet } + +structure DescribeSecurityGroupRulesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The IDs of the security group rules. -/ + securityGroupRuleIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSecurityGroupRulesRequest where + schema := .struct "DescribeSecurityGroupRulesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "SecurityGroupRuleIds", xmlName := some "SecurityGroupRuleId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "SecurityGroupRuleIds" x.securityGroupRuleIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let securityGroupRuleIds ← v.opt "SecurityGroupRuleIds" + return { dryRun, filters, maxResults, nextToken, securityGroupRuleIds } + +structure DescribeSecurityGroupVpcAssociationsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Security group VPC association filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSecurityGroupVpcAssociationsRequest where + schema := .struct "DescribeSecurityGroupVpcAssociationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, maxResults, nextToken } + +structure DescribeSecurityGroupsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The IDs of the security groups. -/ + groupIds : Option (List String) := none + /-- [Default VPC] The names of the security groups. -/ + groupNames : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSecurityGroupsRequest where + schema := .struct "DescribeSecurityGroupsRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "GroupIds", xmlName := some "GroupId" }, (.list .string "groupId")), + ({ name := "GroupNames", xmlName := some "GroupName" }, (.list .string "GroupName")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "GroupIds" x.groupIds, putOpt "GroupNames" x.groupNames, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let groupIds ← v.opt "GroupIds" + let groupNames ← v.opt "GroupNames" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, groupIds, groupNames, maxResults, nextToken } + +structure DescribeServiceLinkVirtualInterfacesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters to use for narrowing down the request. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the service link virtual interfaces. -/ + serviceLinkVirtualInterfaceIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeServiceLinkVirtualInterfacesRequest where + schema := .struct "DescribeServiceLinkVirtualInterfacesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "ServiceLinkVirtualInterfaceIds", xmlName := some "ServiceLinkVirtualInterfaceId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "ServiceLinkVirtualInterfaceIds" x.serviceLinkVirtualInterfaceIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let serviceLinkVirtualInterfaceIds ← v.opt "ServiceLinkVirtualInterfaceIds" + return { dryRun, filters, maxResults, nextToken, serviceLinkVirtualInterfaceIds } + +structure DescribeSnapshotAttributeRequest where + /-- The snapshot attribute you would like to view. -/ + «attribute» : SnapshotAttributeName + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the EBS snapshot. -/ + snapshotId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSnapshotAttributeRequest where + schema := .struct "DescribeSnapshotAttributeRequest" [({ name := "Attribute", required := true }, (Shape.schema SnapshotAttributeName)), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "SnapshotId", required := true }, .string)] + toValue x := record [put "Attribute" x.«attribute», putOpt "DryRun" x.dryRun, put "SnapshotId" x.snapshotId] + ofValue v := do + let «attribute» ← v.req "Attribute" + let dryRun ← v.opt "DryRun" + let snapshotId ← v.req "SnapshotId" + return { «attribute», dryRun, snapshotId } + +structure DescribeSnapshotTierStatusRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSnapshotTierStatusRequest where + schema := .struct "DescribeSnapshotTierStatusRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, maxResults, nextToken } + +structure DescribeSnapshotsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- Scopes the results to snapshots with the specified owners. -/ + ownerIds : Option (List String) := none + /-- The IDs of the Amazon Web Services accounts that can create volumes from the snapshot. -/ + restorableByUserIds : Option (List String) := none + /-- The snapshot IDs. -/ + snapshotIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSnapshotsRequest where + schema := .struct "DescribeSnapshotsRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "OwnerIds", xmlName := some "Owner" }, (.list .string "Owner")), + ({ name := "RestorableByUserIds", xmlName := some "RestorableBy" }, (.list .string "member")), + ({ name := "SnapshotIds", xmlName := some "SnapshotId" }, (.list .string "SnapshotId"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "OwnerIds" x.ownerIds, putOpt "RestorableByUserIds" x.restorableByUserIds, putOpt "SnapshotIds" x.snapshotIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let ownerIds ← v.opt "OwnerIds" + let restorableByUserIds ← v.opt "RestorableByUserIds" + let snapshotIds ← v.opt "SnapshotIds" + return { dryRun, filters, maxResults, nextToken, ownerIds, restorableByUserIds, snapshotIds } + +/-- Contains the parameters for DescribeSpotFleetRequestHistory. -/ +structure DescribeSpotFleetRequestHistoryRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The type of events to describe. -/ + eventType : Option EventType := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- The ID of the Spot Fleet request. -/ + spotFleetRequestId : String + /-- The starting date and time for the events, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). -/ + startTime : Timestamp +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSpotFleetRequestHistoryRequest where + schema := .struct "DescribeSpotFleetRequestHistoryRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "EventType", xmlName := some "eventType", queryName := some "EventType" }, (Shape.schema EventType)), + ({ name := "MaxResults", xmlName := some "maxResults", queryName := some "MaxResults" }, .int), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "SpotFleetRequestId", required := true, xmlName := some "spotFleetRequestId", queryName := some "SpotFleetRequestId" }, .string), + ({ name := "StartTime", required := true, xmlName := some "startTime", queryName := some "StartTime" }, (.time none))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "EventType" x.eventType, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "SpotFleetRequestId" x.spotFleetRequestId, put "StartTime" x.startTime] + ofValue v := do + let dryRun ← v.opt "DryRun" + let eventType ← v.opt "EventType" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let spotFleetRequestId ← v.req "SpotFleetRequestId" + let startTime ← v.req "StartTime" + return { dryRun, eventType, maxResults, nextToken, spotFleetRequestId, startTime } + +/-- Contains the parameters for DescribeSpotInstanceRequests. -/ +structure DescribeSpotInstanceRequestsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The IDs of the Spot Instance requests. -/ + spotInstanceRequestIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSpotInstanceRequestsRequest where + schema := .struct "DescribeSpotInstanceRequestsRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "SpotInstanceRequestIds", xmlName := some "SpotInstanceRequestId" }, (.list .string "SpotInstanceRequestId"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "SpotInstanceRequestIds" x.spotInstanceRequestIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let spotInstanceRequestIds ← v.opt "SpotInstanceRequestIds" + return { dryRun, filters, maxResults, nextToken, spotInstanceRequestIds } + +/-- Contains the parameters for DescribeSpotPriceHistory. -/ +structure DescribeSpotPriceHistoryRequest where + /-- Filters the results by the specified Availability Zone. -/ + availabilityZone : Option String := none + /-- Filters the results by the specified ID of the Availability Zone. -/ + availabilityZoneId : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). -/ + endTime : Option Timestamp := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- Filters the results by the specified instance types. -/ + instanceTypes : Option (List InstanceType) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- Filters the results by the specified basic product descriptions. -/ + productDescriptions : Option (List String) := none + /-- The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). -/ + startTime : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSpotPriceHistoryRequest where + schema := .struct "DescribeSpotPriceHistoryRequest" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "EndTime", xmlName := some "endTime", queryName := some "EndTime" }, (.time none)), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "InstanceTypes", xmlName := some "InstanceType" }, (.list (Shape.schema InstanceType) "member")), + ({ name := "MaxResults", xmlName := some "maxResults", queryName := some "MaxResults" }, .int), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "ProductDescriptions", xmlName := some "ProductDescription" }, (.list .string "member")), + ({ name := "StartTime", xmlName := some "startTime", queryName := some "StartTime" }, (.time none))] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "DryRun" x.dryRun, putOpt "EndTime" x.endTime, putOpt "Filters" x.filters, putOpt "InstanceTypes" x.instanceTypes, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "ProductDescriptions" x.productDescriptions, putOpt "StartTime" x.startTime] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let dryRun ← v.opt "DryRun" + let endTime ← v.opt "EndTime" + let filters ← v.opt "Filters" + let instanceTypes ← v.opt "InstanceTypes" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let productDescriptions ← v.opt "ProductDescriptions" + let startTime ← v.opt "StartTime" + return { availabilityZone, availabilityZoneId, dryRun, endTime, filters, instanceTypes, maxResults, nextToken, productDescriptions, startTime } + +structure DescribeStoreImageTasksRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The AMI IDs for which to show progress. -/ + imageIds : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeStoreImageTasksRequest where + schema := .struct "DescribeStoreImageTasksRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "ImageIds", xmlName := some "ImageId" }, (.list .string "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "ImageIds" x.imageIds, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let imageIds ← v.opt "ImageIds" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, imageIds, maxResults, nextToken } + +structure DescribeStoreImageTasksResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- The information about the AMI store tasks. -/ + storeImageTaskResults : Option (List StoreImageTaskResult) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeStoreImageTasksResult where + schema := .struct "DescribeStoreImageTasksResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "StoreImageTaskResults", xmlName := some "storeImageTaskResultSet", queryName := some "StoreImageTaskResultSet" }, (.list (Shape.schema StoreImageTaskResult) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "StoreImageTaskResults" x.storeImageTaskResults] + ofValue v := do + let nextToken ← v.opt "NextToken" + let storeImageTaskResults ← v.opt "StoreImageTaskResults" + return { nextToken, storeImageTaskResults } + +structure DescribeSubnetsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The IDs of the subnets. -/ + subnetIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSubnetsRequest where + schema := .struct "DescribeSubnetsRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "SubnetIds", xmlName := some "SubnetId" }, (.list .string "SubnetId"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "SubnetIds" x.subnetIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let subnetIds ← v.opt "SubnetIds" + return { dryRun, filters, maxResults, nextToken, subnetIds } + +structure DescribeTagsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTagsRequest where + schema := .struct "DescribeTagsRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults", xmlName := some "maxResults", queryName := some "MaxResults" }, .int), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, maxResults, nextToken } + +structure DescribeTrafficMirrorFilterRulesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Traffic mirror filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- Traffic filter ID. -/ + trafficMirrorFilterId : Option String := none + /-- Traffic filter rule IDs. -/ + trafficMirrorFilterRuleIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTrafficMirrorFilterRulesRequest where + schema := .struct "DescribeTrafficMirrorFilterRulesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TrafficMirrorFilterId" }, .string), + ({ name := "TrafficMirrorFilterRuleIds", xmlName := some "TrafficMirrorFilterRuleId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "TrafficMirrorFilterId" x.trafficMirrorFilterId, putOpt "TrafficMirrorFilterRuleIds" x.trafficMirrorFilterRuleIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let trafficMirrorFilterId ← v.opt "TrafficMirrorFilterId" + let trafficMirrorFilterRuleIds ← v.opt "TrafficMirrorFilterRuleIds" + return { dryRun, filters, maxResults, nextToken, trafficMirrorFilterId, trafficMirrorFilterRuleIds } + +structure DescribeTrafficMirrorFiltersRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the Traffic Mirror filter. -/ + trafficMirrorFilterIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTrafficMirrorFiltersRequest where + schema := .struct "DescribeTrafficMirrorFiltersRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TrafficMirrorFilterIds", xmlName := some "TrafficMirrorFilterId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "TrafficMirrorFilterIds" x.trafficMirrorFilterIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let trafficMirrorFilterIds ← v.opt "TrafficMirrorFilterIds" + return { dryRun, filters, maxResults, nextToken, trafficMirrorFilterIds } + +structure DescribeTrafficMirrorSessionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the Traffic Mirror session. -/ + trafficMirrorSessionIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTrafficMirrorSessionsRequest where + schema := .struct "DescribeTrafficMirrorSessionsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TrafficMirrorSessionIds", xmlName := some "TrafficMirrorSessionId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "TrafficMirrorSessionIds" x.trafficMirrorSessionIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let trafficMirrorSessionIds ← v.opt "TrafficMirrorSessionIds" + return { dryRun, filters, maxResults, nextToken, trafficMirrorSessionIds } + +structure DescribeTrafficMirrorTargetsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the Traffic Mirror targets. -/ + trafficMirrorTargetIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTrafficMirrorTargetsRequest where + schema := .struct "DescribeTrafficMirrorTargetsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TrafficMirrorTargetIds", xmlName := some "TrafficMirrorTargetId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "TrafficMirrorTargetIds" x.trafficMirrorTargetIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let trafficMirrorTargetIds ← v.opt "TrafficMirrorTargetIds" + return { dryRun, filters, maxResults, nextToken, trafficMirrorTargetIds } + +structure DescribeTransitGatewayAttachmentsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the attachments. -/ + transitGatewayAttachmentIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayAttachmentsRequest where + schema := .struct "DescribeTransitGatewayAttachmentsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayAttachmentIds" }, (.list .string "member"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "TransitGatewayAttachmentIds" x.transitGatewayAttachmentIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayAttachmentIds ← v.opt "TransitGatewayAttachmentIds" + return { dryRun, filters, maxResults, nextToken, transitGatewayAttachmentIds } + +structure DescribeTransitGatewayConnectPeersRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the Connect peers. -/ + transitGatewayConnectPeerIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayConnectPeersRequest where + schema := .struct "DescribeTransitGatewayConnectPeersRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayConnectPeerIds" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "TransitGatewayConnectPeerIds" x.transitGatewayConnectPeerIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayConnectPeerIds ← v.opt "TransitGatewayConnectPeerIds" + return { dryRun, filters, maxResults, nextToken, transitGatewayConnectPeerIds } + +structure DescribeTransitGatewayConnectsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the attachments. -/ + transitGatewayAttachmentIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayConnectsRequest where + schema := .struct "DescribeTransitGatewayConnectsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayAttachmentIds" }, (.list .string "member"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "TransitGatewayAttachmentIds" x.transitGatewayAttachmentIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayAttachmentIds ← v.opt "TransitGatewayAttachmentIds" + return { dryRun, filters, maxResults, nextToken, transitGatewayAttachmentIds } + +structure DescribeTransitGatewayMeteringPoliciesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters to apply when describing transit gateway metering policies. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the transit gateway metering policies to describe. -/ + transitGatewayMeteringPolicyIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayMeteringPoliciesRequest where + schema := .struct "DescribeTransitGatewayMeteringPoliciesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayMeteringPolicyIds" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "TransitGatewayMeteringPolicyIds" x.transitGatewayMeteringPolicyIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayMeteringPolicyIds ← v.opt "TransitGatewayMeteringPolicyIds" + return { dryRun, filters, maxResults, nextToken, transitGatewayMeteringPolicyIds } + +structure DescribeTransitGatewayMulticastDomainsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the transit gateway multicast domain. -/ + transitGatewayMulticastDomainIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayMulticastDomainsRequest where + schema := .struct "DescribeTransitGatewayMulticastDomainsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayMulticastDomainIds" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "TransitGatewayMulticastDomainIds" x.transitGatewayMulticastDomainIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayMulticastDomainIds ← v.opt "TransitGatewayMulticastDomainIds" + return { dryRun, filters, maxResults, nextToken, transitGatewayMulticastDomainIds } + +structure DescribeTransitGatewayNetworkFunctionAttachmentsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the network function attachments. -/ + transitGatewayAttachmentIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayNetworkFunctionAttachmentsRequest where + schema := .struct "DescribeTransitGatewayNetworkFunctionAttachmentsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayAttachmentIds", xmlName := some "TransitGatewayAttachmentId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "TransitGatewayAttachmentIds" x.transitGatewayAttachmentIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayAttachmentIds ← v.opt "TransitGatewayAttachmentIds" + return { dryRun, filters, maxResults, nextToken, transitGatewayAttachmentIds } + +structure DescribeTransitGatewayPeeringAttachmentsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- One or more IDs of the transit gateway peering attachments. -/ + transitGatewayAttachmentIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayPeeringAttachmentsRequest where + schema := .struct "DescribeTransitGatewayPeeringAttachmentsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayAttachmentIds" }, (.list .string "member"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "TransitGatewayAttachmentIds" x.transitGatewayAttachmentIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayAttachmentIds ← v.opt "TransitGatewayAttachmentIds" + return { dryRun, filters, maxResults, nextToken, transitGatewayAttachmentIds } + +structure DescribeTransitGatewayPolicyTablesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters associated with the transit gateway policy table. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the transit gateway policy tables. -/ + transitGatewayPolicyTableIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayPolicyTablesRequest where + schema := .struct "DescribeTransitGatewayPolicyTablesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayPolicyTableIds" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "TransitGatewayPolicyTableIds" x.transitGatewayPolicyTableIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayPolicyTableIds ← v.opt "TransitGatewayPolicyTableIds" + return { dryRun, filters, maxResults, nextToken, transitGatewayPolicyTableIds } + +structure DescribeTransitGatewayRouteTableAnnouncementsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters associated with the transit gateway policy table. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the transit gateway route tables that are being advertised. -/ + transitGatewayRouteTableAnnouncementIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayRouteTableAnnouncementsRequest where + schema := .struct "DescribeTransitGatewayRouteTableAnnouncementsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayRouteTableAnnouncementIds" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "TransitGatewayRouteTableAnnouncementIds" x.transitGatewayRouteTableAnnouncementIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayRouteTableAnnouncementIds ← v.opt "TransitGatewayRouteTableAnnouncementIds" + return { dryRun, filters, maxResults, nextToken, transitGatewayRouteTableAnnouncementIds } + +structure DescribeTransitGatewayRouteTablesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the transit gateway route tables. -/ + transitGatewayRouteTableIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayRouteTablesRequest where + schema := .struct "DescribeTransitGatewayRouteTablesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayRouteTableIds" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "TransitGatewayRouteTableIds" x.transitGatewayRouteTableIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayRouteTableIds ← v.opt "TransitGatewayRouteTableIds" + return { dryRun, filters, maxResults, nextToken, transitGatewayRouteTableIds } + +structure DescribeTransitGatewayVpcAttachmentsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the attachments. -/ + transitGatewayAttachmentIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayVpcAttachmentsRequest where + schema := .struct "DescribeTransitGatewayVpcAttachmentsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayAttachmentIds" }, (.list .string "member"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "TransitGatewayAttachmentIds" x.transitGatewayAttachmentIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayAttachmentIds ← v.opt "TransitGatewayAttachmentIds" + return { dryRun, filters, maxResults, nextToken, transitGatewayAttachmentIds } + +structure DescribeTransitGatewaysRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the transit gateways. -/ + transitGatewayIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewaysRequest where + schema := .struct "DescribeTransitGatewaysRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayIds" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "TransitGatewayIds" x.transitGatewayIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayIds ← v.opt "TransitGatewayIds" + return { dryRun, filters, maxResults, nextToken, transitGatewayIds } + +structure DescribeTrunkInterfaceAssociationsRequest where + /-- The IDs of the associations. -/ + associationIds : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTrunkInterfaceAssociationsRequest where + schema := .struct "DescribeTrunkInterfaceAssociationsRequest" [({ name := "AssociationIds", xmlName := some "AssociationId" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "AssociationIds" x.associationIds, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let associationIds ← v.opt "AssociationIds" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { associationIds, dryRun, filters, maxResults, nextToken } + +structure DescribeVerifiedAccessEndpointsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the Verified Access endpoint. -/ + verifiedAccessEndpointIds : Option (List String) := none + /-- The ID of the Verified Access group. -/ + verifiedAccessGroupId : Option String := none + /-- The ID of the Verified Access instance. -/ + verifiedAccessInstanceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVerifiedAccessEndpointsRequest where + schema := .struct "DescribeVerifiedAccessEndpointsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "VerifiedAccessEndpointIds", xmlName := some "VerifiedAccessEndpointId" }, (.list .string "item")), + ({ name := "VerifiedAccessGroupId" }, .string), + ({ name := "VerifiedAccessInstanceId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "VerifiedAccessEndpointIds" x.verifiedAccessEndpointIds, putOpt "VerifiedAccessGroupId" x.verifiedAccessGroupId, putOpt "VerifiedAccessInstanceId" x.verifiedAccessInstanceId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let verifiedAccessEndpointIds ← v.opt "VerifiedAccessEndpointIds" + let verifiedAccessGroupId ← v.opt "VerifiedAccessGroupId" + let verifiedAccessInstanceId ← v.opt "VerifiedAccessInstanceId" + return { dryRun, filters, maxResults, nextToken, verifiedAccessEndpointIds, verifiedAccessGroupId, verifiedAccessInstanceId } + +structure DescribeVerifiedAccessGroupsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the Verified Access groups. -/ + verifiedAccessGroupIds : Option (List String) := none + /-- The ID of the Verified Access instance. -/ + verifiedAccessInstanceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVerifiedAccessGroupsRequest where + schema := .struct "DescribeVerifiedAccessGroupsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "VerifiedAccessGroupIds", xmlName := some "VerifiedAccessGroupId" }, (.list .string "item")), + ({ name := "VerifiedAccessInstanceId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "VerifiedAccessGroupIds" x.verifiedAccessGroupIds, putOpt "VerifiedAccessInstanceId" x.verifiedAccessInstanceId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let verifiedAccessGroupIds ← v.opt "VerifiedAccessGroupIds" + let verifiedAccessInstanceId ← v.opt "VerifiedAccessInstanceId" + return { dryRun, filters, maxResults, nextToken, verifiedAccessGroupIds, verifiedAccessInstanceId } + +structure DescribeVerifiedAccessInstanceLoggingConfigurationsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the Verified Access instances. -/ + verifiedAccessInstanceIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVerifiedAccessInstanceLoggingConfigurationsRequest where + schema := .struct "DescribeVerifiedAccessInstanceLoggingConfigurationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "VerifiedAccessInstanceIds", xmlName := some "VerifiedAccessInstanceId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "VerifiedAccessInstanceIds" x.verifiedAccessInstanceIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let verifiedAccessInstanceIds ← v.opt "VerifiedAccessInstanceIds" + return { dryRun, filters, maxResults, nextToken, verifiedAccessInstanceIds } + +structure DescribeVerifiedAccessInstancesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the Verified Access instances. -/ + verifiedAccessInstanceIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVerifiedAccessInstancesRequest where + schema := .struct "DescribeVerifiedAccessInstancesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "VerifiedAccessInstanceIds", xmlName := some "VerifiedAccessInstanceId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "VerifiedAccessInstanceIds" x.verifiedAccessInstanceIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let verifiedAccessInstanceIds ← v.opt "VerifiedAccessInstanceIds" + return { dryRun, filters, maxResults, nextToken, verifiedAccessInstanceIds } + +structure DescribeVerifiedAccessTrustProvidersRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the Verified Access trust providers. -/ + verifiedAccessTrustProviderIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVerifiedAccessTrustProvidersRequest where + schema := .struct "DescribeVerifiedAccessTrustProvidersRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "VerifiedAccessTrustProviderIds", xmlName := some "VerifiedAccessTrustProviderId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "VerifiedAccessTrustProviderIds" x.verifiedAccessTrustProviderIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let verifiedAccessTrustProviderIds ← v.opt "VerifiedAccessTrustProviderIds" + return { dryRun, filters, maxResults, nextToken, verifiedAccessTrustProviderIds } + +structure DescribeVolumeAttributeRequest where + /-- The attribute of the volume. -/ + «attribute» : VolumeAttributeName + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the volume. -/ + volumeId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVolumeAttributeRequest where + schema := .struct "DescribeVolumeAttributeRequest" [({ name := "Attribute", required := true }, (Shape.schema VolumeAttributeName)), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "VolumeId", required := true }, .string)] + toValue x := record [put "Attribute" x.«attribute», putOpt "DryRun" x.dryRun, put "VolumeId" x.volumeId] + ofValue v := do + let «attribute» ← v.req "Attribute" + let dryRun ← v.opt "DryRun" + let volumeId ← v.req "VolumeId" + return { «attribute», dryRun, volumeId } + +structure DescribeVolumeStatusRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- Indicates whether to include managed resources in the output. -/ + includeManagedResources : Option Bool := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The IDs of the volumes. -/ + volumeIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVolumeStatusRequest where + schema := .struct "DescribeVolumeStatusRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IncludeManagedResources" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "VolumeIds", xmlName := some "VolumeId" }, (.list .string "VolumeId"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IncludeManagedResources" x.includeManagedResources, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "VolumeIds" x.volumeIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let includeManagedResources ← v.opt "IncludeManagedResources" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let volumeIds ← v.opt "VolumeIds" + return { dryRun, filters, includeManagedResources, maxResults, nextToken, volumeIds } + +structure DescribeVolumesModificationsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- Indicates whether to include managed resources in the output. -/ + includeManagedResources : Option Bool := none + /-- The maximum number of results (up to a limit of 500) to be returned in a paginated request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The IDs of the volumes. -/ + volumeIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVolumesModificationsRequest where + schema := .struct "DescribeVolumesModificationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IncludeManagedResources" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "VolumeIds", xmlName := some "VolumeId" }, (.list .string "VolumeId"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IncludeManagedResources" x.includeManagedResources, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "VolumeIds" x.volumeIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let includeManagedResources ← v.opt "IncludeManagedResources" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let volumeIds ← v.opt "VolumeIds" + return { dryRun, filters, includeManagedResources, maxResults, nextToken, volumeIds } + +structure DescribeVolumesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- Indicates whether to include managed resources in the output. -/ + includeManagedResources : Option Bool := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The volume IDs. -/ + volumeIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVolumesRequest where + schema := .struct "DescribeVolumesRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IncludeManagedResources" }, .bool), + ({ name := "MaxResults", xmlName := some "maxResults", queryName := some "MaxResults" }, .int), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "VolumeIds", xmlName := some "VolumeId" }, (.list .string "VolumeId"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IncludeManagedResources" x.includeManagedResources, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "VolumeIds" x.volumeIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let includeManagedResources ← v.opt "IncludeManagedResources" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let volumeIds ← v.opt "VolumeIds" + return { dryRun, filters, includeManagedResources, maxResults, nextToken, volumeIds } + +structure DescribeVpcAttributeRequest where + /-- The VPC attribute. -/ + «attribute» : VpcAttributeName + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the VPC. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcAttributeRequest where + schema := .struct "DescribeVpcAttributeRequest" [({ name := "Attribute", required := true }, (Shape.schema VpcAttributeName)), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "VpcId", required := true }, .string)] + toValue x := record [put "Attribute" x.«attribute», putOpt "DryRun" x.dryRun, put "VpcId" x.vpcId] + ofValue v := do + let «attribute» ← v.req "Attribute" + let dryRun ← v.opt "DryRun" + let vpcId ← v.req "VpcId" + return { «attribute», dryRun, vpcId } + +structure DescribeVpcAttributeResult where + /-- Indicates whether the instances launched in the VPC get DNS hostnames. -/ + enableDnsHostnames : Option AttributeBooleanValue := none + /-- Indicates whether DNS resolution is enabled for the VPC. -/ + enableDnsSupport : Option AttributeBooleanValue := none + /-- Indicates whether Network Address Usage metrics are enabled for your VPC. -/ + enableNetworkAddressUsageMetrics : Option AttributeBooleanValue := none + /-- The ID of the VPC. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcAttributeResult where + schema := .struct "DescribeVpcAttributeResult" [({ name := "EnableDnsHostnames", xmlName := some "enableDnsHostnames", queryName := some "EnableDnsHostnames" }, (Shape.schema AttributeBooleanValue)), + ({ name := "EnableDnsSupport", xmlName := some "enableDnsSupport", queryName := some "EnableDnsSupport" }, (Shape.schema AttributeBooleanValue)), + ({ name := "EnableNetworkAddressUsageMetrics", xmlName := some "enableNetworkAddressUsageMetrics", queryName := some "EnableNetworkAddressUsageMetrics" }, (Shape.schema AttributeBooleanValue)), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "EnableDnsHostnames" x.enableDnsHostnames, putOpt "EnableDnsSupport" x.enableDnsSupport, putOpt "EnableNetworkAddressUsageMetrics" x.enableNetworkAddressUsageMetrics, putOpt "VpcId" x.vpcId] + ofValue v := do + let enableDnsHostnames ← v.opt "EnableDnsHostnames" + let enableDnsSupport ← v.opt "EnableDnsSupport" + let enableNetworkAddressUsageMetrics ← v.opt "EnableNetworkAddressUsageMetrics" + let vpcId ← v.opt "VpcId" + return { enableDnsHostnames, enableDnsSupport, enableNetworkAddressUsageMetrics, vpcId } + +structure DescribeVpcBlockPublicAccessExclusionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- IDs of exclusions. -/ + exclusionIds : Option (List String) := none + /-- Filters for the request: resource-arn - The Amazon Resource Name (ARN) of a exclusion. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcBlockPublicAccessExclusionsRequest where + schema := .struct "DescribeVpcBlockPublicAccessExclusionsRequest" [({ name := "DryRun" }, .bool), + ({ name := "ExclusionIds", xmlName := some "ExclusionId" }, (.list .string "item")), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "ExclusionIds" x.exclusionIds, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let exclusionIds ← v.opt "ExclusionIds" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, exclusionIds, filters, maxResults, nextToken } + +structure DescribeVpcClassicLinkDnsSupportResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about the ClassicLink DNS support status of the VPCs. -/ + vpcs : Option (List ClassicLinkDnsSupport) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcClassicLinkDnsSupportResult where + schema := .struct "DescribeVpcClassicLinkDnsSupportResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "Vpcs", xmlName := some "vpcs", queryName := some "Vpcs" }, (.list (Shape.schema ClassicLinkDnsSupport) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "Vpcs" x.vpcs] + ofValue v := do + let nextToken ← v.opt "NextToken" + let vpcs ← v.opt "Vpcs" + return { nextToken, vpcs } + +structure DescribeVpcClassicLinkRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The VPCs for which you want to describe the ClassicLink status. -/ + vpcIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcClassicLinkRequest where + schema := .struct "DescribeVpcClassicLinkRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "VpcIds", xmlName := some "VpcId" }, (.list .string "VpcId"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "VpcIds" x.vpcIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let vpcIds ← v.opt "VpcIds" + return { dryRun, filters, vpcIds } + +structure DescribeVpcEncryptionControlsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters to apply to the request. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The IDs of the VPC Encryption Control configurations to describe. -/ + vpcEncryptionControlIds : Option (List String) := none + /-- The IDs of the VPCs to describe encryption control configurations for. -/ + vpcIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcEncryptionControlsRequest where + schema := .struct "DescribeVpcEncryptionControlsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "VpcEncryptionControlIds", xmlName := some "VpcEncryptionControlId" }, (.list .string "item")), + ({ name := "VpcIds", xmlName := some "VpcId" }, (.list .string "VpcId"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "VpcEncryptionControlIds" x.vpcEncryptionControlIds, putOpt "VpcIds" x.vpcIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let vpcEncryptionControlIds ← v.opt "VpcEncryptionControlIds" + let vpcIds ← v.opt "VpcIds" + return { dryRun, filters, maxResults, nextToken, vpcEncryptionControlIds, vpcIds } + +structure DescribeVpcEndpointAssociationsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum page size. -/ + maxResults : Option Int := none + /-- The pagination token. -/ + nextToken : Option String := none + /-- The IDs of the VPC endpoints. -/ + vpcEndpointIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcEndpointAssociationsRequest where + schema := .struct "DescribeVpcEndpointAssociationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "VpcEndpointIds", xmlName := some "VpcEndpointId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "VpcEndpointIds" x.vpcEndpointIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let vpcEndpointIds ← v.opt "VpcEndpointIds" + return { dryRun, filters, maxResults, nextToken, vpcEndpointIds } + +structure DescribeVpcEndpointConnectionNotificationsRequest where + /-- The ID of the notification. -/ + connectionNotificationId : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token to request the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcEndpointConnectionNotificationsRequest where + schema := .struct "DescribeVpcEndpointConnectionNotificationsRequest" [({ name := "ConnectionNotificationId" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "ConnectionNotificationId" x.connectionNotificationId, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let connectionNotificationId ← v.opt "ConnectionNotificationId" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { connectionNotificationId, dryRun, filters, maxResults, nextToken } + +structure DescribeVpcEndpointConnectionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return for the request in a single page. -/ + maxResults : Option Int := none + /-- The token to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcEndpointConnectionsRequest where + schema := .struct "DescribeVpcEndpointConnectionsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, maxResults, nextToken } + +structure DescribeVpcEndpointServiceConfigurationsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return for the request in a single page. -/ + maxResults : Option Int := none + /-- The token to retrieve the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the endpoint services. -/ + serviceIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcEndpointServiceConfigurationsRequest where + schema := .struct "DescribeVpcEndpointServiceConfigurationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "ServiceIds", xmlName := some "ServiceId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "ServiceIds" x.serviceIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let serviceIds ← v.opt "ServiceIds" + return { dryRun, filters, maxResults, nextToken, serviceIds } + +structure DescribeVpcEndpointServicePermissionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return for the request in a single page. -/ + maxResults : Option Int := none + /-- The token to retrieve the next page of results. -/ + nextToken : Option String := none + /-- The ID of the service. -/ + serviceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcEndpointServicePermissionsRequest where + schema := .struct "DescribeVpcEndpointServicePermissionsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "ServiceId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "ServiceId" x.serviceId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let serviceId ← v.req "ServiceId" + return { dryRun, filters, maxResults, nextToken, serviceId } + +structure DescribeVpcEndpointServicesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token for the next set of items to return. -/ + nextToken : Option String := none + /-- The service names. -/ + serviceNames : Option (List String) := none + /-- The service Regions. -/ + serviceRegions : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcEndpointServicesRequest where + schema := .struct "DescribeVpcEndpointServicesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "ServiceNames", xmlName := some "ServiceName" }, (.list .string "item")), + ({ name := "ServiceRegions", xmlName := some "ServiceRegion" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "ServiceNames" x.serviceNames, putOpt "ServiceRegions" x.serviceRegions] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let serviceNames ← v.opt "ServiceNames" + let serviceRegions ← v.opt "ServiceRegions" + return { dryRun, filters, maxResults, nextToken, serviceNames, serviceRegions } + +structure DescribeVpcEndpointsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token for the next set of items to return. -/ + nextToken : Option String := none + /-- The IDs of the VPC endpoints. -/ + vpcEndpointIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcEndpointsRequest where + schema := .struct "DescribeVpcEndpointsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "VpcEndpointIds", xmlName := some "VpcEndpointId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "VpcEndpointIds" x.vpcEndpointIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let vpcEndpointIds ← v.opt "VpcEndpointIds" + return { dryRun, filters, maxResults, nextToken, vpcEndpointIds } + +structure DescribeVpcPeeringConnectionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The IDs of the VPC peering connections. -/ + vpcPeeringConnectionIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcPeeringConnectionsRequest where + schema := .struct "DescribeVpcPeeringConnectionsRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "VpcPeeringConnectionIds", xmlName := some "VpcPeeringConnectionId" }, (.list .string "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "VpcPeeringConnectionIds" x.vpcPeeringConnectionIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let vpcPeeringConnectionIds ← v.opt "VpcPeeringConnectionIds" + return { dryRun, filters, maxResults, nextToken, vpcPeeringConnectionIds } + +structure DescribeVpcsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The IDs of the VPCs. -/ + vpcIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcsRequest where + schema := .struct "DescribeVpcsRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "VpcIds", xmlName := some "VpcId" }, (.list .string "VpcId"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "VpcIds" x.vpcIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let vpcIds ← v.opt "VpcIds" + return { dryRun, filters, maxResults, nextToken, vpcIds } + +structure DescribeVpnConcentratorsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters to limit the results. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- One or more VPN concentrator IDs. -/ + vpnConcentratorIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpnConcentratorsRequest where + schema := .struct "DescribeVpnConcentratorsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "VpnConcentratorIds", xmlName := some "VpnConcentratorId" }, (.list .string "VpnConcentratorId"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "VpnConcentratorIds" x.vpnConcentratorIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let vpnConcentratorIds ← v.opt "VpnConcentratorIds" + return { dryRun, filters, maxResults, nextToken, vpnConcentratorIds } + +/-- Contains the parameters for DescribeVpnConnections. -/ +structure DescribeVpnConnectionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- One or more VPN connection IDs. -/ + vpnConnectionIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpnConnectionsRequest where + schema := .struct "DescribeVpnConnectionsRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "VpnConnectionIds", xmlName := some "VpnConnectionId" }, (.list .string "VpnConnectionId"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "VpnConnectionIds" x.vpnConnectionIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let vpnConnectionIds ← v.opt "VpnConnectionIds" + return { dryRun, filters, vpnConnectionIds } + +/-- Contains the parameters for DescribeVpnGateways. -/ +structure DescribeVpnGatewaysRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- One or more virtual private gateway IDs. -/ + vpnGatewayIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpnGatewaysRequest where + schema := .struct "DescribeVpnGatewaysRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "VpnGatewayIds", xmlName := some "VpnGatewayId" }, (.list .string "VpnGatewayId"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "VpnGatewayIds" x.vpnGatewayIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let vpnGatewayIds ← v.opt "VpnGatewayIds" + return { dryRun, filters, vpnGatewayIds } + +/-- Describes the destination options for a flow log. -/ +structure DestinationOptionsRequest where + /-- The format for the flow log. -/ + fileFormat : Option DestinationFileFormat := none + /-- Indicates whether to use Hive-compatible prefixes for flow logs stored in Amazon S3. -/ + hiveCompatiblePartitions : Option Bool := none + /-- Indicates whether to partition the flow log per hour. -/ + perHourPartition : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DestinationOptionsRequest where + schema := .struct "DestinationOptionsRequest" [({ name := "FileFormat" }, (Shape.schema DestinationFileFormat)), + ({ name := "HiveCompatiblePartitions" }, .bool), + ({ name := "PerHourPartition" }, .bool)] + toValue x := record [putOpt "FileFormat" x.fileFormat, putOpt "HiveCompatiblePartitions" x.hiveCompatiblePartitions, putOpt "PerHourPartition" x.perHourPartition] + ofValue v := do + let fileFormat ← v.opt "FileFormat" + let hiveCompatiblePartitions ← v.opt "HiveCompatiblePartitions" + let perHourPartition ← v.opt "PerHourPartition" + return { fileFormat, hiveCompatiblePartitions, perHourPartition } + +/-- Describes the destination options for a flow log. -/ +structure DestinationOptionsResponse where + /-- The format for the flow log. -/ + fileFormat : Option DestinationFileFormat := none + /-- Indicates whether to use Hive-compatible prefixes for flow logs stored in Amazon S3. -/ + hiveCompatiblePartitions : Option Bool := none + /-- Indicates whether to partition the flow log per hour. -/ + perHourPartition : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DestinationOptionsResponse where + schema := .struct "DestinationOptionsResponse" [({ name := "FileFormat", xmlName := some "fileFormat", queryName := some "FileFormat" }, (Shape.schema DestinationFileFormat)), + ({ name := "HiveCompatiblePartitions", xmlName := some "hiveCompatiblePartitions", queryName := some "HiveCompatiblePartitions" }, .bool), + ({ name := "PerHourPartition", xmlName := some "perHourPartition", queryName := some "PerHourPartition" }, .bool)] + toValue x := record [putOpt "FileFormat" x.fileFormat, putOpt "HiveCompatiblePartitions" x.hiveCompatiblePartitions, putOpt "PerHourPartition" x.perHourPartition] + ofValue v := do + let fileFormat ← v.opt "FileFormat" + let hiveCompatiblePartitions ← v.opt "HiveCompatiblePartitions" + let perHourPartition ← v.opt "PerHourPartition" + return { fileFormat, hiveCompatiblePartitions, perHourPartition } + +/-- Describes a DHCP configuration option. -/ +structure DhcpConfiguration where + /-- The name of a DHCP option. -/ + key : Option String := none + /-- The values for the DHCP option. -/ + values : Option (List AttributeValue) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DhcpConfiguration where + schema := .struct "DhcpConfiguration" [({ name := "Key", xmlName := some "key", queryName := some "Key" }, .string), + ({ name := "Values", xmlName := some "valueSet", queryName := some "ValueSet" }, (.list (Shape.schema AttributeValue) "item"))] + toValue x := record [putOpt "Key" x.key, putOpt "Values" x.values] + ofValue v := do + let key ← v.opt "Key" + let values ← v.opt "Values" + return { key, values } + +/-- Specifies a condition for filtering capacity data based on dimension values. -/ +structure DimensionCondition where + /-- The comparison operator to use for the filter. -/ + comparison : Option Comparison := none + /-- The name of the dimension to filter by. -/ + dimension : Option FilterByDimension := none + /-- The list of values to match against the specified dimension. -/ + values : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DimensionCondition where + schema := .struct "DimensionCondition" [({ name := "Comparison" }, (Shape.schema Comparison)), + ({ name := "Dimension" }, (Shape.schema FilterByDimension)), + ({ name := "Values", xmlName := some "Value" }, (.list .string "item"))] + toValue x := record [putOpt "Comparison" x.comparison, putOpt "Dimension" x.dimension, putOpt "Values" x.values] + ofValue v := do + let comparison ← v.opt "Comparison" + let dimension ← v.opt "Dimension" + let values ← v.opt "Values" + return { comparison, dimension, values } + +structure DisableAllowedImagesSettingsResult where + /-- Returns disabled if the request succeeds; otherwise, it returns an error. -/ + allowedImagesSettingsState : Option AllowedImagesSettingsDisabledState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableAllowedImagesSettingsResult where + schema := .struct "DisableAllowedImagesSettingsResult" [({ name := "AllowedImagesSettingsState", xmlName := some "allowedImagesSettingsState", queryName := some "AllowedImagesSettingsState" }, (Shape.schema AllowedImagesSettingsDisabledState))] + toValue x := record [putOpt "AllowedImagesSettingsState" x.allowedImagesSettingsState] + ofValue v := do + let allowedImagesSettingsState ← v.opt "AllowedImagesSettingsState" + return { allowedImagesSettingsState } + +structure DisableApplicationStatusCheckSuppressionResult where + /-- The instances for which suppression was successfully disabled. -/ + successfulResults : Option (List SuccessfulSuppressionResponseObject) := none + /-- The instances for which suppression failed to be disabled. -/ + unsuccessfulResults : Option (List UnsuccessfulSuppressionResponseObject) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableApplicationStatusCheckSuppressionResult where + schema := .struct "DisableApplicationStatusCheckSuppressionResult" [({ name := "SuccessfulResults", xmlName := some "successfulResultSet", queryName := some "SuccessfulResultSet" }, (.list (Shape.schema SuccessfulSuppressionResponseObject) "item")), + ({ name := "UnsuccessfulResults", xmlName := some "unsuccessfulResultSet", queryName := some "UnsuccessfulResultSet" }, (.list (Shape.schema UnsuccessfulSuppressionResponseObject) "item"))] + toValue x := record [putOpt "SuccessfulResults" x.successfulResults, putOpt "UnsuccessfulResults" x.unsuccessfulResults] + ofValue v := do + let successfulResults ← v.opt "SuccessfulResults" + let unsuccessfulResults ← v.opt "UnsuccessfulResults" + return { successfulResults, unsuccessfulResults } + +structure DisableAwsNetworkPerformanceMetricSubscriptionRequest where + /-- The target Region or Availability Zone that the metric subscription is disabled for. -/ + destination : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The metric used for the disabled subscription. -/ + metric : Option MetricType := none + /-- The source Region or Availability Zone that the metric subscription is disabled for. -/ + source : Option String := none + /-- The statistic used for the disabled subscription. -/ + statistic : Option StatisticType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableAwsNetworkPerformanceMetricSubscriptionRequest where + schema := .struct "DisableAwsNetworkPerformanceMetricSubscriptionRequest" [({ name := "Destination" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Metric" }, (Shape.schema MetricType)), + ({ name := "Source" }, .string), + ({ name := "Statistic" }, (Shape.schema StatisticType))] + toValue x := record [putOpt "Destination" x.destination, putOpt "DryRun" x.dryRun, putOpt "Metric" x.metric, putOpt "Source" x.source, putOpt "Statistic" x.statistic] + ofValue v := do + let destination ← v.opt "Destination" + let dryRun ← v.opt "DryRun" + let metric ← v.opt "Metric" + let source ← v.opt "Source" + let statistic ← v.opt "Statistic" + return { destination, dryRun, metric, source, statistic } + +structure DisableCapacityManagerResult where + /-- The current status of Capacity Manager after the disable operation. -/ + capacityManagerStatus : Option CapacityManagerStatus := none + /-- Indicates whether Organizations access is enabled. -/ + organizationsAccess : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableCapacityManagerResult where + schema := .struct "DisableCapacityManagerResult" [({ name := "CapacityManagerStatus", xmlName := some "capacityManagerStatus", queryName := some "CapacityManagerStatus" }, (Shape.schema CapacityManagerStatus)), + ({ name := "OrganizationsAccess", xmlName := some "organizationsAccess", queryName := some "OrganizationsAccess" }, .bool)] + toValue x := record [putOpt "CapacityManagerStatus" x.capacityManagerStatus, putOpt "OrganizationsAccess" x.organizationsAccess] + ofValue v := do + let capacityManagerStatus ← v.opt "CapacityManagerStatus" + let organizationsAccess ← v.opt "OrganizationsAccess" + return { capacityManagerStatus, organizationsAccess } + +structure DisableFastLaunchResult where + /-- The ID of the image for which Windows fast launch was disabled. -/ + imageId : Option String := none + /-- The launch template that was used to launch Windows instances from pre-provisioned snapshots. -/ + launchTemplate : Option FastLaunchLaunchTemplateSpecificationResponse := none + /-- The maximum number of instances that Amazon EC2 can launch at the same time to create pre-provisioned snapshots for Windows fast launch. -/ + maxParallelLaunches : Option Int := none + /-- The owner of the Windows AMI for which Windows fast launch was disabled. -/ + ownerId : Option String := none + /-- The pre-provisioning resource type that must be cleaned after turning off Windows fast launch for the Windows AMI. -/ + resourceType : Option FastLaunchResourceType := none + /-- Parameters that were used for Windows fast launch for the Windows AMI before Windows fast launch was disabled. -/ + snapshotConfiguration : Option FastLaunchSnapshotConfigurationResponse := none + /-- The current state of Windows fast launch for the specified Windows AMI. -/ + state : Option FastLaunchStateCode := none + /-- The reason that the state changed for Windows fast launch for the Windows AMI. -/ + stateTransitionReason : Option String := none + /-- The time that the state changed for Windows fast launch for the Windows AMI. -/ + stateTransitionTime : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableFastLaunchResult where + schema := .struct "DisableFastLaunchResult" [({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "LaunchTemplate", xmlName := some "launchTemplate", queryName := some "LaunchTemplate" }, (Shape.schema FastLaunchLaunchTemplateSpecificationResponse)), + ({ name := "MaxParallelLaunches", xmlName := some "maxParallelLaunches", queryName := some "MaxParallelLaunches" }, .int), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema FastLaunchResourceType)), + ({ name := "SnapshotConfiguration", xmlName := some "snapshotConfiguration", queryName := some "SnapshotConfiguration" }, (Shape.schema FastLaunchSnapshotConfigurationResponse)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema FastLaunchStateCode)), + ({ name := "StateTransitionReason", xmlName := some "stateTransitionReason", queryName := some "StateTransitionReason" }, .string), + ({ name := "StateTransitionTime", xmlName := some "stateTransitionTime", queryName := some "StateTransitionTime" }, (.time none))] + toValue x := record [putOpt "ImageId" x.imageId, putOpt "LaunchTemplate" x.launchTemplate, putOpt "MaxParallelLaunches" x.maxParallelLaunches, putOpt "OwnerId" x.ownerId, putOpt "ResourceType" x.resourceType, putOpt "SnapshotConfiguration" x.snapshotConfiguration, putOpt "State" x.state, putOpt "StateTransitionReason" x.stateTransitionReason, putOpt "StateTransitionTime" x.stateTransitionTime] + ofValue v := do + let imageId ← v.opt "ImageId" + let launchTemplate ← v.opt "LaunchTemplate" + let maxParallelLaunches ← v.opt "MaxParallelLaunches" + let ownerId ← v.opt "OwnerId" + let resourceType ← v.opt "ResourceType" + let snapshotConfiguration ← v.opt "SnapshotConfiguration" + let state ← v.opt "State" + let stateTransitionReason ← v.opt "StateTransitionReason" + let stateTransitionTime ← v.opt "StateTransitionTime" + return { imageId, launchTemplate, maxParallelLaunches, ownerId, resourceType, snapshotConfiguration, state, stateTransitionReason, stateTransitionTime } + +/-- Contains information about an error that occurred when disabling fast snapshot restores. -/ +structure DisableFastSnapshotRestoreStateErrorItem where + /-- The Availability Zone. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone. -/ + availabilityZoneId : Option String := none + /-- The error. -/ + error : Option DisableFastSnapshotRestoreStateError := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableFastSnapshotRestoreStateErrorItem where + schema := .struct "DisableFastSnapshotRestoreStateErrorItem" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "Error", xmlName := some "error", queryName := some "Error" }, (Shape.schema DisableFastSnapshotRestoreStateError))] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "Error" x.error] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let error ← v.opt "Error" + return { availabilityZone, availabilityZoneId, error } + +/-- Describes fast snapshot restores that were successfully disabled. -/ +structure DisableFastSnapshotRestoreSuccessItem where + /-- The Availability Zone. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone. -/ + availabilityZoneId : Option String := none + /-- The time at which fast snapshot restores entered the disabled state. -/ + disabledTime : Option Timestamp := none + /-- The time at which fast snapshot restores entered the disabling state. -/ + disablingTime : Option Timestamp := none + /-- The time at which fast snapshot restores entered the enabled state. -/ + enabledTime : Option Timestamp := none + /-- The time at which fast snapshot restores entered the enabling state. -/ + enablingTime : Option Timestamp := none + /-- The time at which fast snapshot restores entered the optimizing state. -/ + optimizingTime : Option Timestamp := none + /-- The Amazon Web Services owner alias that enabled fast snapshot restores on the snapshot. -/ + ownerAlias : Option String := none + /-- The ID of the Amazon Web Services account that enabled fast snapshot restores on the snapshot. -/ + ownerId : Option String := none + /-- The ID of the snapshot. -/ + snapshotId : Option String := none + /-- The state of fast snapshot restores for the snapshot. -/ + state : Option FastSnapshotRestoreStateCode := none + /-- The reason for the state transition. -/ + stateTransitionReason : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableFastSnapshotRestoreSuccessItem where + schema := .struct "DisableFastSnapshotRestoreSuccessItem" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "DisabledTime", xmlName := some "disabledTime", queryName := some "DisabledTime" }, (.time none)), + ({ name := "DisablingTime", xmlName := some "disablingTime", queryName := some "DisablingTime" }, (.time none)), + ({ name := "EnabledTime", xmlName := some "enabledTime", queryName := some "EnabledTime" }, (.time none)), + ({ name := "EnablingTime", xmlName := some "enablingTime", queryName := some "EnablingTime" }, (.time none)), + ({ name := "OptimizingTime", xmlName := some "optimizingTime", queryName := some "OptimizingTime" }, (.time none)), + ({ name := "OwnerAlias", xmlName := some "ownerAlias", queryName := some "OwnerAlias" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema FastSnapshotRestoreStateCode)), + ({ name := "StateTransitionReason", xmlName := some "stateTransitionReason", queryName := some "StateTransitionReason" }, .string)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "DisabledTime" x.disabledTime, putOpt "DisablingTime" x.disablingTime, putOpt "EnabledTime" x.enabledTime, putOpt "EnablingTime" x.enablingTime, putOpt "OptimizingTime" x.optimizingTime, putOpt "OwnerAlias" x.ownerAlias, putOpt "OwnerId" x.ownerId, putOpt "SnapshotId" x.snapshotId, putOpt "State" x.state, putOpt "StateTransitionReason" x.stateTransitionReason] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let disabledTime ← v.opt "DisabledTime" + let disablingTime ← v.opt "DisablingTime" + let enabledTime ← v.opt "EnabledTime" + let enablingTime ← v.opt "EnablingTime" + let optimizingTime ← v.opt "OptimizingTime" + let ownerAlias ← v.opt "OwnerAlias" + let ownerId ← v.opt "OwnerId" + let snapshotId ← v.opt "SnapshotId" + let state ← v.opt "State" + let stateTransitionReason ← v.opt "StateTransitionReason" + return { availabilityZone, availabilityZoneId, disabledTime, disablingTime, enabledTime, enablingTime, optimizingTime, ownerAlias, ownerId, snapshotId, state, stateTransitionReason } + +structure DisableImageBlockPublicAccessResult where + /-- Returns unblocked if the request succeeds; otherwise, it returns an error. -/ + imageBlockPublicAccessState : Option ImageBlockPublicAccessDisabledState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableImageBlockPublicAccessResult where + schema := .struct "DisableImageBlockPublicAccessResult" [({ name := "ImageBlockPublicAccessState", xmlName := some "imageBlockPublicAccessState", queryName := some "ImageBlockPublicAccessState" }, (Shape.schema ImageBlockPublicAccessDisabledState))] + toValue x := record [putOpt "ImageBlockPublicAccessState" x.imageBlockPublicAccessState] + ofValue v := do + let imageBlockPublicAccessState ← v.opt "ImageBlockPublicAccessState" + return { imageBlockPublicAccessState } + +structure DisableSnapshotBlockPublicAccessResult where + /-- Returns unblocked if the request succeeds. -/ + state : Option SnapshotBlockPublicAccessState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableSnapshotBlockPublicAccessResult where + schema := .struct "DisableSnapshotBlockPublicAccessResult" [({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema SnapshotBlockPublicAccessState))] + toValue x := record [putOpt "State" x.state] + ofValue v := do + let state ← v.opt "State" + return { state } + +structure DisassociateApplicationStatusCheckRequest where + /-- The ID of the application status check to disassociate. -/ + applicationStatusCheckId : String + /-- A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the instances to disassociate from the application status check. -/ + instanceIds : Option (List String) := none + /-- The tags to disassociate from the application status check. -/ + targetTagAssociations : Option (List CustomTagKeyValueRequestPair) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateApplicationStatusCheckRequest where + schema := .struct "DisassociateApplicationStatusCheckRequest" [({ name := "ApplicationStatusCheckId", required := true }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceIds", xmlName := some "InstanceId" }, (.list .string "item")), + ({ name := "TargetTagAssociations", xmlName := some "TargetTagAssociation" }, (.list (Shape.schema CustomTagKeyValueRequestPair) "item"))] + toValue x := record [put "ApplicationStatusCheckId" x.applicationStatusCheckId, putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "InstanceIds" x.instanceIds, putOpt "TargetTagAssociations" x.targetTagAssociations] + ofValue v := do + let applicationStatusCheckId ← v.req "ApplicationStatusCheckId" + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let instanceIds ← v.opt "InstanceIds" + let targetTagAssociations ← v.opt "TargetTagAssociations" + return { applicationStatusCheckId, clientToken, dryRun, instanceIds, targetTagAssociations } + +structure DisassociateApplicationStatusCheckResult where + /-- The associations that were successfully removed. -/ + successfulResults : Option (List SuccessfulAssociationResponseObject) := none + /-- The associations that failed to be removed. -/ + unsuccessfulResults : Option (List UnsuccessfulAssociationResponseObject) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateApplicationStatusCheckResult where + schema := .struct "DisassociateApplicationStatusCheckResult" [({ name := "SuccessfulResults", xmlName := some "successfulResultSet", queryName := some "SuccessfulResultSet" }, (.list (Shape.schema SuccessfulAssociationResponseObject) "item")), + ({ name := "UnsuccessfulResults", xmlName := some "unsuccessfulResultSet", queryName := some "UnsuccessfulResultSet" }, (.list (Shape.schema UnsuccessfulAssociationResponseObject) "item"))] + toValue x := record [putOpt "SuccessfulResults" x.successfulResults, putOpt "UnsuccessfulResults" x.unsuccessfulResults] + ofValue v := do + let successfulResults ← v.opt "SuccessfulResults" + let unsuccessfulResults ← v.opt "UnsuccessfulResults" + return { successfulResults, unsuccessfulResults } + +structure DisassociateNetworkingFlexCostAllocationPolicyResult where + /-- Information about the policy associations that could not be removed. -/ + fcaPolicyDisassociationFailures : Option (List FlexCostAllocationOperationFailure) := none + /-- The IDs of the policy associations that were removed. -/ + fcaPolicyDisassociations : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateNetworkingFlexCostAllocationPolicyResult where + schema := .struct "DisassociateNetworkingFlexCostAllocationPolicyResult" [({ name := "FcaPolicyDisassociationFailures", xmlName := some "fcaPolicyDisassociationFailures", queryName := some "FcaPolicyDisassociationFailures" }, (.list (Shape.schema FlexCostAllocationOperationFailure) "item")), + ({ name := "FcaPolicyDisassociations", xmlName := some "fcaPolicyDisassociations", queryName := some "FcaPolicyDisassociations" }, (.list .string "item"))] + toValue x := record [putOpt "FcaPolicyDisassociationFailures" x.fcaPolicyDisassociationFailures, putOpt "FcaPolicyDisassociations" x.fcaPolicyDisassociations] + ofValue v := do + let fcaPolicyDisassociationFailures ← v.opt "FcaPolicyDisassociationFailures" + let fcaPolicyDisassociations ← v.opt "FcaPolicyDisassociations" + return { fcaPolicyDisassociationFailures, fcaPolicyDisassociations } + +structure DisassociateSecurityGroupVpcResult where + /-- The state of the disassociation. -/ + state : Option SecurityGroupVpcAssociationState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateSecurityGroupVpcResult where + schema := .struct "DisassociateSecurityGroupVpcResult" [({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema SecurityGroupVpcAssociationState))] + toValue x := record [putOpt "State" x.state] + ofValue v := do + let state ← v.opt "State" + return { state } + +/-- Describes a disk image. -/ +structure DiskImageDescription where + /-- The checksum computed for the disk image. -/ + checksum : Option String := none + /-- The disk image format. -/ + format : Option DiskImageFormat := none + /-- A presigned URL for the import manifest stored in Amazon S3. -/ + importManifestUrl : Option String := none + /-- The size of the disk image, in GiB. -/ + size : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DiskImageDescription where + schema := .struct "DiskImageDescription" [({ name := "Checksum", xmlName := some "checksum", queryName := some "Checksum" }, .string), + ({ name := "Format", xmlName := some "format", queryName := some "Format" }, (Shape.schema DiskImageFormat)), + ({ name := "ImportManifestUrl", xmlName := some "importManifestUrl", queryName := some "ImportManifestUrl" }, .string), + ({ name := "Size", xmlName := some "size", queryName := some "Size" }, .int)] + toValue x := record [putOpt "Checksum" x.checksum, putOpt "Format" x.format, putOpt "ImportManifestUrl" x.importManifestUrl, putOpt "Size" x.size] + ofValue v := do + let checksum ← v.opt "Checksum" + let format ← v.opt "Format" + let importManifestUrl ← v.opt "ImportManifestUrl" + let size ← v.opt "Size" + return { checksum, format, importManifestUrl, size } + +/-- Describes a disk image. -/ +structure DiskImageDetail where + /-- The size of the disk image, in GiB. -/ + bytes : Int + /-- The disk image format. -/ + format : DiskImageFormat + /-- A presigned URL for the import manifest stored in Amazon S3 and presented here as an Amazon S3 presigned URL. -/ + importManifestUrl : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DiskImageDetail where + schema := .struct "DiskImageDetail" [({ name := "Bytes", required := true, xmlName := some "bytes", queryName := some "Bytes" }, .int), + ({ name := "Format", required := true, xmlName := some "format", queryName := some "Format" }, (Shape.schema DiskImageFormat)), + ({ name := "ImportManifestUrl", required := true, xmlName := some "importManifestUrl", queryName := some "ImportManifestUrl" }, .string)] + toValue x := record [put "Bytes" x.bytes, put "Format" x.format, put "ImportManifestUrl" x.importManifestUrl] + ofValue v := do + let bytes ← v.req "Bytes" + let format ← v.req "Format" + let importManifestUrl ← v.req "ImportManifestUrl" + return { bytes, format, importManifestUrl } + +/-- Describes a disk. -/ +structure DiskInfo where + /-- The number of disks with this configuration. -/ + count : Option Int := none + /-- The size of the disk in GB. -/ + sizeInGB : Option Int := none + /-- The type of disk. -/ + type : Option DiskType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DiskInfo where + schema := .struct "DiskInfo" [({ name := "Count", xmlName := some "count", queryName := some "Count" }, .int), + ({ name := "SizeInGB", xmlName := some "sizeInGB", queryName := some "SizeInGB" }, .int), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, (Shape.schema DiskType))] + toValue x := record [putOpt "Count" x.count, putOpt "SizeInGB" x.sizeInGB, putOpt "Type" x.type] + ofValue v := do + let count ← v.opt "Count" + let sizeInGB ← v.opt "SizeInGB" + let type ← v.opt "Type" + return { count, sizeInGB, type } + +/-- Describes the DNS options for an endpoint. -/ +structure DnsOptions where + /-- The DNS records created for the endpoint. -/ + dnsRecordIpType : Option DnsRecordIpType := none + /-- Indicates whether to enable private DNS only for inbound endpoints. -/ + privateDnsOnlyForInboundResolverEndpoint : Option Bool := none + /-- The preference for which private domains have a private hosted zone created for and associated with the specified VPC. -/ + privateDnsPreference : Option String := none + /-- Indicates which of the private domains to create private hosted zones for and associate with the specified VPC. -/ + privateDnsSpecifiedDomains : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DnsOptions where + schema := .struct "DnsOptions" [({ name := "DnsRecordIpType", xmlName := some "dnsRecordIpType", queryName := some "DnsRecordIpType" }, (Shape.schema DnsRecordIpType)), + ({ name := "PrivateDnsOnlyForInboundResolverEndpoint", xmlName := some "privateDnsOnlyForInboundResolverEndpoint", queryName := some "PrivateDnsOnlyForInboundResolverEndpoint" }, .bool), + ({ name := "PrivateDnsPreference", xmlName := some "privateDnsPreference", queryName := some "PrivateDnsPreference" }, .string), + ({ name := "PrivateDnsSpecifiedDomains", xmlName := some "privateDnsSpecifiedDomainSet", queryName := some "PrivateDnsSpecifiedDomainSet" }, (.list .string "item"))] + toValue x := record [putOpt "DnsRecordIpType" x.dnsRecordIpType, putOpt "PrivateDnsOnlyForInboundResolverEndpoint" x.privateDnsOnlyForInboundResolverEndpoint, putOpt "PrivateDnsPreference" x.privateDnsPreference, putOpt "PrivateDnsSpecifiedDomains" x.privateDnsSpecifiedDomains] + ofValue v := do + let dnsRecordIpType ← v.opt "DnsRecordIpType" + let privateDnsOnlyForInboundResolverEndpoint ← v.opt "PrivateDnsOnlyForInboundResolverEndpoint" + let privateDnsPreference ← v.opt "PrivateDnsPreference" + let privateDnsSpecifiedDomains ← v.opt "PrivateDnsSpecifiedDomains" + return { dnsRecordIpType, privateDnsOnlyForInboundResolverEndpoint, privateDnsPreference, privateDnsSpecifiedDomains } + +/-- Describes the DNS options for an endpoint. -/ +structure DnsOptionsSpecification where + /-- The DNS records created for the endpoint. -/ + dnsRecordIpType : Option DnsRecordIpType := none + /-- Indicates whether to enable private DNS only for inbound endpoints. -/ + privateDnsOnlyForInboundResolverEndpoint : Option Bool := none + /-- The preference for which private domains have a private hosted zone created for and associated with the specified VPC. -/ + privateDnsPreference : Option String := none + /-- Indicates which of the private domains to create private hosted zones for and associate with the specified VPC. -/ + privateDnsSpecifiedDomains : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DnsOptionsSpecification where + schema := .struct "DnsOptionsSpecification" [({ name := "DnsRecordIpType" }, (Shape.schema DnsRecordIpType)), + ({ name := "PrivateDnsOnlyForInboundResolverEndpoint" }, .bool), + ({ name := "PrivateDnsPreference" }, .string), + ({ name := "PrivateDnsSpecifiedDomains", xmlName := some "PrivateDnsSpecifiedDomain" }, (.list .string "item"))] + toValue x := record [putOpt "DnsRecordIpType" x.dnsRecordIpType, putOpt "PrivateDnsOnlyForInboundResolverEndpoint" x.privateDnsOnlyForInboundResolverEndpoint, putOpt "PrivateDnsPreference" x.privateDnsPreference, putOpt "PrivateDnsSpecifiedDomains" x.privateDnsSpecifiedDomains] + ofValue v := do + let dnsRecordIpType ← v.opt "DnsRecordIpType" + let privateDnsOnlyForInboundResolverEndpoint ← v.opt "PrivateDnsOnlyForInboundResolverEndpoint" + let privateDnsPreference ← v.opt "PrivateDnsPreference" + let privateDnsSpecifiedDomains ← v.opt "PrivateDnsSpecifiedDomains" + return { dnsRecordIpType, privateDnsOnlyForInboundResolverEndpoint, privateDnsPreference, privateDnsSpecifiedDomains } + +/-- Describes a block device for an EBS volume. -/ +structure EbsBlockDevice where + /-- The Availability Zone where the EBS volume will be created (for example, us-east-1a ). -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone where the EBS volume will be created (for example, use1-az1 ). -/ + availabilityZoneId : Option String := none + /-- Indicates whether the EBS volume is deleted on instance termination. -/ + deleteOnTermination : Option Bool := none + /-- The index of the EBS card. -/ + ebsCardIndex : Option Int := none + /-- Indicates whether the encryption state of an EBS volume is changed while being restored from a backing snapshot. -/ + encrypted : Option Bool := none + /-- The number of I/O operations per second (IOPS). -/ + iops : Option Int := none + /-- Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key to use for EBS encryption. -/ + kmsKeyId : Option String := none + /-- The ARN of the Outpost on which the snapshot is stored. -/ + outpostArn : Option String := none + /-- The ID of the snapshot. -/ + snapshotId : Option String := none + /-- The throughput that the volume supports, in MiB/s. -/ + throughput : Option Int := none + /-- Specifies the Amazon EBS Provisioned Rate for Volume Initialization (volume initialization rate), in MiB/s, at which to download the snapshot blocks from Amazon S3 to the volume. -/ + volumeInitializationRate : Option Int := none + /-- The size of the volume, in GiBs. -/ + volumeSize : Option Int := none + /-- The volume type. -/ + volumeType : Option VolumeType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EbsBlockDevice where + schema := .struct "EbsBlockDevice" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId" }, .string), + ({ name := "DeleteOnTermination", xmlName := some "deleteOnTermination", queryName := some "DeleteOnTermination" }, .bool), + ({ name := "EbsCardIndex" }, .int), + ({ name := "Encrypted", xmlName := some "encrypted", queryName := some "Encrypted" }, .bool), + ({ name := "Iops", xmlName := some "iops", queryName := some "Iops" }, .int), + ({ name := "KmsKeyId", xmlName := some "kmsKeyId", queryName := some "KmsKeyId" }, .string), + ({ name := "OutpostArn", xmlName := some "outpostArn", queryName := some "OutpostArn" }, .string), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string), + ({ name := "Throughput", xmlName := some "throughput", queryName := some "Throughput" }, .int), + ({ name := "VolumeInitializationRate" }, .int), + ({ name := "VolumeSize", xmlName := some "volumeSize", queryName := some "VolumeSize" }, .int), + ({ name := "VolumeType", xmlName := some "volumeType", queryName := some "VolumeType" }, (Shape.schema VolumeType))] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "EbsCardIndex" x.ebsCardIndex, putOpt "Encrypted" x.encrypted, putOpt "Iops" x.iops, putOpt "KmsKeyId" x.kmsKeyId, putOpt "OutpostArn" x.outpostArn, putOpt "SnapshotId" x.snapshotId, putOpt "Throughput" x.throughput, putOpt "VolumeInitializationRate" x.volumeInitializationRate, putOpt "VolumeSize" x.volumeSize, putOpt "VolumeType" x.volumeType] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let deleteOnTermination ← v.opt "DeleteOnTermination" + let ebsCardIndex ← v.opt "EbsCardIndex" + let encrypted ← v.opt "Encrypted" + let iops ← v.opt "Iops" + let kmsKeyId ← v.opt "KmsKeyId" + let outpostArn ← v.opt "OutpostArn" + let snapshotId ← v.opt "SnapshotId" + let throughput ← v.opt "Throughput" + let volumeInitializationRate ← v.opt "VolumeInitializationRate" + let volumeSize ← v.opt "VolumeSize" + let volumeType ← v.opt "VolumeType" + return { availabilityZone, availabilityZoneId, deleteOnTermination, ebsCardIndex, encrypted, iops, kmsKeyId, outpostArn, snapshotId, throughput, volumeInitializationRate, volumeSize, volumeType } + +/-- Describes a block device for an EBS volume. -/ +structure EbsBlockDeviceResponse where + /-- Indicates whether the volume is deleted on instance termination. -/ + deleteOnTermination : Option Bool := none + /-- Indicates whether the volume is encrypted. -/ + encrypted : Option Bool := none + /-- The number of I/O operations per second (IOPS). -/ + iops : Option Int := none + /-- Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key to use for EBS encryption. -/ + kmsKeyId : Option String := none + /-- The ID of the snapshot. -/ + snapshotId : Option String := none + /-- The throughput that the volume supports, in MiB/s. -/ + throughput : Option Int := none + /-- The size of the volume, in GiBs. -/ + volumeSize : Option Int := none + /-- The volume type. -/ + volumeType : Option VolumeType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EbsBlockDeviceResponse where + schema := .struct "EbsBlockDeviceResponse" [({ name := "DeleteOnTermination", xmlName := some "deleteOnTermination", queryName := some "DeleteOnTermination" }, .bool), + ({ name := "Encrypted", xmlName := some "encrypted", queryName := some "Encrypted" }, .bool), + ({ name := "Iops", xmlName := some "iops", queryName := some "Iops" }, .int), + ({ name := "KmsKeyId", xmlName := some "kmsKeyId", queryName := some "KmsKeyId" }, .string), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string), + ({ name := "Throughput", xmlName := some "throughput", queryName := some "Throughput" }, .int), + ({ name := "VolumeSize", xmlName := some "volumeSize", queryName := some "VolumeSize" }, .int), + ({ name := "VolumeType", xmlName := some "volumeType", queryName := some "VolumeType" }, (Shape.schema VolumeType))] + toValue x := record [putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "Encrypted" x.encrypted, putOpt "Iops" x.iops, putOpt "KmsKeyId" x.kmsKeyId, putOpt "SnapshotId" x.snapshotId, putOpt "Throughput" x.throughput, putOpt "VolumeSize" x.volumeSize, putOpt "VolumeType" x.volumeType] + ofValue v := do + let deleteOnTermination ← v.opt "DeleteOnTermination" + let encrypted ← v.opt "Encrypted" + let iops ← v.opt "Iops" + let kmsKeyId ← v.opt "KmsKeyId" + let snapshotId ← v.opt "SnapshotId" + let throughput ← v.opt "Throughput" + let volumeSize ← v.opt "VolumeSize" + let volumeType ← v.opt "VolumeType" + return { deleteOnTermination, encrypted, iops, kmsKeyId, snapshotId, throughput, volumeSize, volumeType } + +/-- Describes the Amazon EBS features supported by the instance type. -/ +structure EbsInfo where + /-- Indicates whether the instance type features a shared or dedicated Amazon EBS volume attachment limit. -/ + attachmentLimitType : Option AttachmentLimitType := none + /-- Describes the EBS cards available for the instance type. -/ + ebsCards : Option (List EbsCardInfo) := none + /-- Describes the optimized EBS performance for the instance type. -/ + ebsOptimizedInfo : Option EbsOptimizedInfo := none + /-- Indicates whether the instance type is Amazon EBS-optimized. -/ + ebsOptimizedSupport : Option EbsOptimizedSupport := none + /-- Indicates whether Amazon EBS encryption is supported. -/ + encryptionSupport : Option EbsEncryptionSupport := none + /-- Indicates the maximum number of Amazon EBS volumes that can be attached to the instance type. -/ + maximumEbsAttachments : Option Int := none + /-- Indicates the number of EBS cards supported by the instance type. -/ + maximumEbsCards : Option Int := none + /-- Indicates whether non-volatile memory express (NVMe) is supported. -/ + nvmeSupport : Option EbsNvmeSupport := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EbsInfo where + schema := .struct "EbsInfo" [({ name := "AttachmentLimitType", xmlName := some "attachmentLimitType", queryName := some "AttachmentLimitType" }, (Shape.schema AttachmentLimitType)), + ({ name := "EbsCards", xmlName := some "ebsCardSet", queryName := some "EbsCardSet" }, (.list (Shape.schema EbsCardInfo) "item")), + ({ name := "EbsOptimizedInfo", xmlName := some "ebsOptimizedInfo", queryName := some "EbsOptimizedInfo" }, (Shape.schema EbsOptimizedInfo)), + ({ name := "EbsOptimizedSupport", xmlName := some "ebsOptimizedSupport", queryName := some "EbsOptimizedSupport" }, (Shape.schema EbsOptimizedSupport)), + ({ name := "EncryptionSupport", xmlName := some "encryptionSupport", queryName := some "EncryptionSupport" }, (Shape.schema EbsEncryptionSupport)), + ({ name := "MaximumEbsAttachments", xmlName := some "maximumEbsAttachments", queryName := some "MaximumEbsAttachments" }, .int), + ({ name := "MaximumEbsCards", xmlName := some "maximumEbsCards", queryName := some "MaximumEbsCards" }, .int), + ({ name := "NvmeSupport", xmlName := some "nvmeSupport", queryName := some "NvmeSupport" }, (Shape.schema EbsNvmeSupport))] + toValue x := record [putOpt "AttachmentLimitType" x.attachmentLimitType, putOpt "EbsCards" x.ebsCards, putOpt "EbsOptimizedInfo" x.ebsOptimizedInfo, putOpt "EbsOptimizedSupport" x.ebsOptimizedSupport, putOpt "EncryptionSupport" x.encryptionSupport, putOpt "MaximumEbsAttachments" x.maximumEbsAttachments, putOpt "MaximumEbsCards" x.maximumEbsCards, putOpt "NvmeSupport" x.nvmeSupport] + ofValue v := do + let attachmentLimitType ← v.opt "AttachmentLimitType" + let ebsCards ← v.opt "EbsCards" + let ebsOptimizedInfo ← v.opt "EbsOptimizedInfo" + let ebsOptimizedSupport ← v.opt "EbsOptimizedSupport" + let encryptionSupport ← v.opt "EncryptionSupport" + let maximumEbsAttachments ← v.opt "MaximumEbsAttachments" + let maximumEbsCards ← v.opt "MaximumEbsCards" + let nvmeSupport ← v.opt "NvmeSupport" + return { attachmentLimitType, ebsCards, ebsOptimizedInfo, ebsOptimizedSupport, encryptionSupport, maximumEbsAttachments, maximumEbsCards, nvmeSupport } + +/-- Describes a parameter used to set up an EBS volume in a block device mapping. -/ +structure EbsInstanceBlockDevice where + /-- The ARN of the Amazon Web Services-managed resource to which the volume is attached. -/ + associatedResource : Option String := none + /-- The time stamp when the attachment initiated. -/ + attachTime : Option Timestamp := none + /-- Indicates whether the volume is deleted on instance termination. -/ + deleteOnTermination : Option Bool := none + /-- The index of the EBS card. -/ + ebsCardIndex : Option Int := none + /-- The service provider that manages the EBS volume. -/ + operator : Option OperatorResponse := none + /-- The attachment state. -/ + status : Option AttachmentStatus := none + /-- The ID of the EBS volume. -/ + volumeId : Option String := none + /-- The ID of the Amazon Web Services account that owns the volume. -/ + volumeOwnerId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EbsInstanceBlockDevice where + schema := .struct "EbsInstanceBlockDevice" [({ name := "AssociatedResource", xmlName := some "associatedResource", queryName := some "AssociatedResource" }, .string), + ({ name := "AttachTime", xmlName := some "attachTime", queryName := some "AttachTime" }, (.time none)), + ({ name := "DeleteOnTermination", xmlName := some "deleteOnTermination", queryName := some "DeleteOnTermination" }, .bool), + ({ name := "EbsCardIndex", xmlName := some "ebsCardIndex", queryName := some "EbsCardIndex" }, .int), + ({ name := "Operator", xmlName := some "operator", queryName := some "Operator" }, (Shape.schema OperatorResponse)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema AttachmentStatus)), + ({ name := "VolumeId", xmlName := some "volumeId", queryName := some "VolumeId" }, .string), + ({ name := "VolumeOwnerId", xmlName := some "volumeOwnerId", queryName := some "VolumeOwnerId" }, .string)] + toValue x := record [putOpt "AssociatedResource" x.associatedResource, putOpt "AttachTime" x.attachTime, putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "EbsCardIndex" x.ebsCardIndex, putOpt "Operator" x.operator, putOpt "Status" x.status, putOpt "VolumeId" x.volumeId, putOpt "VolumeOwnerId" x.volumeOwnerId] + ofValue v := do + let associatedResource ← v.opt "AssociatedResource" + let attachTime ← v.opt "AttachTime" + let deleteOnTermination ← v.opt "DeleteOnTermination" + let ebsCardIndex ← v.opt "EbsCardIndex" + let operator ← v.opt "Operator" + let status ← v.opt "Status" + let volumeId ← v.opt "VolumeId" + let volumeOwnerId ← v.opt "VolumeOwnerId" + return { associatedResource, attachTime, deleteOnTermination, ebsCardIndex, operator, status, volumeId, volumeOwnerId } + +/-- Describes the attached EBS status check for an instance. -/ +structure EbsStatusDetails where + /-- The date and time when the attached EBS status check failed. -/ + impairedSince : Option Timestamp := none + /-- The name of the attached EBS status check. -/ + name : Option StatusName := none + /-- The result of the attached EBS status check. -/ + status : Option StatusType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EbsStatusDetails where + schema := .struct "EbsStatusDetails" [({ name := "ImpairedSince", xmlName := some "impairedSince", queryName := some "ImpairedSince" }, (.time none)), + ({ name := "Name", xmlName := some "name", queryName := some "Name" }, (Shape.schema StatusName)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema StatusType))] + toValue x := record [putOpt "ImpairedSince" x.impairedSince, putOpt "Name" x.name, putOpt "Status" x.status] + ofValue v := do + let impairedSince ← v.opt "ImpairedSince" + let name ← v.opt "Name" + let status ← v.opt "Status" + return { impairedSince, name, status } + +/-- Amazon Elastic Graphics reached end of life on January 8, 2024. -/ +structure ElasticGpuHealth where + /-- The health status. -/ + status : Option ElasticGpuStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ElasticGpuHealth where + schema := .struct "ElasticGpuHealth" [({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema ElasticGpuStatus))] + toValue x := record [putOpt "Status" x.status] + ofValue v := do + let status ← v.opt "Status" + return { status } + +/-- ENA Express uses Amazon Web Services Scalable Reliable Datagram (SRD) technology to increase the maximum bandwidth used per stream and minimize tail latency of network traffic between EC2 instances. -/ +structure EnaSrdSpecification where + /-- Indicates whether ENA Express is enabled for the network interface. -/ + enaSrdEnabled : Option Bool := none + /-- Configures ENA Express for UDP network traffic. -/ + enaSrdUdpSpecification : Option EnaSrdUdpSpecification := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnaSrdSpecification where + schema := .struct "EnaSrdSpecification" [({ name := "EnaSrdEnabled" }, .bool), + ({ name := "EnaSrdUdpSpecification" }, (Shape.schema EnaSrdUdpSpecification))] + toValue x := record [putOpt "EnaSrdEnabled" x.enaSrdEnabled, putOpt "EnaSrdUdpSpecification" x.enaSrdUdpSpecification] + ofValue v := do + let enaSrdEnabled ← v.opt "EnaSrdEnabled" + let enaSrdUdpSpecification ← v.opt "EnaSrdUdpSpecification" + return { enaSrdEnabled, enaSrdUdpSpecification } + +/-- Launch instances with ENA Express settings configured from your launch template. -/ +structure EnaSrdSpecificationRequest where + /-- Specifies whether ENA Express is enabled for the network interface when you launch an instance. -/ + enaSrdEnabled : Option Bool := none + /-- Contains ENA Express settings for UDP network traffic for the network interface attached to the instance. -/ + enaSrdUdpSpecification : Option EnaSrdUdpSpecificationRequest := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnaSrdSpecificationRequest where + schema := .struct "EnaSrdSpecificationRequest" [({ name := "EnaSrdEnabled" }, .bool), + ({ name := "EnaSrdUdpSpecification" }, (Shape.schema EnaSrdUdpSpecificationRequest))] + toValue x := record [putOpt "EnaSrdEnabled" x.enaSrdEnabled, putOpt "EnaSrdUdpSpecification" x.enaSrdUdpSpecification] + ofValue v := do + let enaSrdEnabled ← v.opt "EnaSrdEnabled" + let enaSrdUdpSpecification ← v.opt "EnaSrdUdpSpecification" + return { enaSrdEnabled, enaSrdUdpSpecification } + +structure EnableAllowedImagesSettingsRequest where + /-- Specify enabled to apply the image criteria specified by the Allowed AMIs settings. -/ + allowedImagesSettingsState : AllowedImagesSettingsEnabledState + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableAllowedImagesSettingsRequest where + schema := .struct "EnableAllowedImagesSettingsRequest" [({ name := "AllowedImagesSettingsState", required := true }, (Shape.schema AllowedImagesSettingsEnabledState)), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "AllowedImagesSettingsState" x.allowedImagesSettingsState, putOpt "DryRun" x.dryRun] + ofValue v := do + let allowedImagesSettingsState ← v.req "AllowedImagesSettingsState" + let dryRun ← v.opt "DryRun" + return { allowedImagesSettingsState, dryRun } + +structure EnableAllowedImagesSettingsResult where + /-- Returns enabled or audit-mode if the request succeeds; otherwise, it returns an error. -/ + allowedImagesSettingsState : Option AllowedImagesSettingsEnabledState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableAllowedImagesSettingsResult where + schema := .struct "EnableAllowedImagesSettingsResult" [({ name := "AllowedImagesSettingsState", xmlName := some "allowedImagesSettingsState", queryName := some "AllowedImagesSettingsState" }, (Shape.schema AllowedImagesSettingsEnabledState))] + toValue x := record [putOpt "AllowedImagesSettingsState" x.allowedImagesSettingsState] + ofValue v := do + let allowedImagesSettingsState ← v.opt "AllowedImagesSettingsState" + return { allowedImagesSettingsState } + +structure EnableApplicationStatusCheckSuppressionResult where + /-- The instances for which suppression was successfully enabled. -/ + successfulResults : Option (List SuccessfulSuppressionResponseObject) := none + /-- The instances for which suppression failed to be enabled. -/ + unsuccessfulResults : Option (List UnsuccessfulSuppressionResponseObject) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableApplicationStatusCheckSuppressionResult where + schema := .struct "EnableApplicationStatusCheckSuppressionResult" [({ name := "SuccessfulResults", xmlName := some "successfulResultSet", queryName := some "SuccessfulResultSet" }, (.list (Shape.schema SuccessfulSuppressionResponseObject) "item")), + ({ name := "UnsuccessfulResults", xmlName := some "unsuccessfulResultSet", queryName := some "UnsuccessfulResultSet" }, (.list (Shape.schema UnsuccessfulSuppressionResponseObject) "item"))] + toValue x := record [putOpt "SuccessfulResults" x.successfulResults, putOpt "UnsuccessfulResults" x.unsuccessfulResults] + ofValue v := do + let successfulResults ← v.opt "SuccessfulResults" + let unsuccessfulResults ← v.opt "UnsuccessfulResults" + return { successfulResults, unsuccessfulResults } + +structure EnableAwsNetworkPerformanceMetricSubscriptionRequest where + /-- The target Region (like us-east-2 ) or Availability Zone ID (like use2-az2 ) that the metric subscription is enabled for. -/ + destination : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The metric used for the enabled subscription. -/ + metric : Option MetricType := none + /-- The source Region (like us-east-1 ) or Availability Zone ID (like use1-az1 ) that the metric subscription is enabled for. -/ + source : Option String := none + /-- The statistic used for the enabled subscription. -/ + statistic : Option StatisticType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableAwsNetworkPerformanceMetricSubscriptionRequest where + schema := .struct "EnableAwsNetworkPerformanceMetricSubscriptionRequest" [({ name := "Destination" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Metric" }, (Shape.schema MetricType)), + ({ name := "Source" }, .string), + ({ name := "Statistic" }, (Shape.schema StatisticType))] + toValue x := record [putOpt "Destination" x.destination, putOpt "DryRun" x.dryRun, putOpt "Metric" x.metric, putOpt "Source" x.source, putOpt "Statistic" x.statistic] + ofValue v := do + let destination ← v.opt "Destination" + let dryRun ← v.opt "DryRun" + let metric ← v.opt "Metric" + let source ← v.opt "Source" + let statistic ← v.opt "Statistic" + return { destination, dryRun, metric, source, statistic } + +structure EnableCapacityManagerResult where + /-- The current status of Capacity Manager after the enable operation. -/ + capacityManagerStatus : Option CapacityManagerStatus := none + /-- Indicates whether Organizations access is enabled for cross-account data aggregation. -/ + organizationsAccess : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableCapacityManagerResult where + schema := .struct "EnableCapacityManagerResult" [({ name := "CapacityManagerStatus", xmlName := some "capacityManagerStatus", queryName := some "CapacityManagerStatus" }, (Shape.schema CapacityManagerStatus)), + ({ name := "OrganizationsAccess", xmlName := some "organizationsAccess", queryName := some "OrganizationsAccess" }, .bool)] + toValue x := record [putOpt "CapacityManagerStatus" x.capacityManagerStatus, putOpt "OrganizationsAccess" x.organizationsAccess] + ofValue v := do + let capacityManagerStatus ← v.opt "CapacityManagerStatus" + let organizationsAccess ← v.opt "OrganizationsAccess" + return { capacityManagerStatus, organizationsAccess } + +structure EnableFastLaunchRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Specify the ID of the image for which to enable Windows fast launch. -/ + imageId : String + /-- The launch template to use when launching Windows instances from pre-provisioned snapshots. -/ + launchTemplate : Option FastLaunchLaunchTemplateSpecificationRequest := none + /-- The maximum number of instances that Amazon EC2 can launch at the same time to create pre-provisioned snapshots for Windows fast launch. -/ + maxParallelLaunches : Option Int := none + /-- The type of resource to use for pre-provisioning the AMI for Windows fast launch. -/ + resourceType : Option String := none + /-- Configuration settings for creating and managing the snapshots that are used for pre-provisioning the AMI for Windows fast launch. -/ + snapshotConfiguration : Option FastLaunchSnapshotConfigurationRequest := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableFastLaunchRequest where + schema := .struct "EnableFastLaunchRequest" [({ name := "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string), + ({ name := "LaunchTemplate" }, (Shape.schema FastLaunchLaunchTemplateSpecificationRequest)), + ({ name := "MaxParallelLaunches" }, .int), + ({ name := "ResourceType" }, .string), + ({ name := "SnapshotConfiguration" }, (Shape.schema FastLaunchSnapshotConfigurationRequest))] + toValue x := record [putOpt "DryRun" x.dryRun, put "ImageId" x.imageId, putOpt "LaunchTemplate" x.launchTemplate, putOpt "MaxParallelLaunches" x.maxParallelLaunches, putOpt "ResourceType" x.resourceType, putOpt "SnapshotConfiguration" x.snapshotConfiguration] + ofValue v := do + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + let launchTemplate ← v.opt "LaunchTemplate" + let maxParallelLaunches ← v.opt "MaxParallelLaunches" + let resourceType ← v.opt "ResourceType" + let snapshotConfiguration ← v.opt "SnapshotConfiguration" + return { dryRun, imageId, launchTemplate, maxParallelLaunches, resourceType, snapshotConfiguration } + +structure EnableFastLaunchResult where + /-- The image ID that identifies the AMI for which Windows fast launch was enabled. -/ + imageId : Option String := none + /-- The launch template that is used when launching Windows instances from pre-provisioned snapshots. -/ + launchTemplate : Option FastLaunchLaunchTemplateSpecificationResponse := none + /-- The maximum number of instances that Amazon EC2 can launch at the same time to create pre-provisioned snapshots for Windows fast launch. -/ + maxParallelLaunches : Option Int := none + /-- The owner ID for the AMI for which Windows fast launch was enabled. -/ + ownerId : Option String := none + /-- The type of resource that was defined for pre-provisioning the AMI for Windows fast launch. -/ + resourceType : Option FastLaunchResourceType := none + /-- Settings to create and manage the pre-provisioned snapshots that Amazon EC2 uses for faster launches from the Windows AMI. -/ + snapshotConfiguration : Option FastLaunchSnapshotConfigurationResponse := none + /-- The current state of Windows fast launch for the specified AMI. -/ + state : Option FastLaunchStateCode := none + /-- The reason that the state changed for Windows fast launch for the AMI. -/ + stateTransitionReason : Option String := none + /-- The time that the state changed for Windows fast launch for the AMI. -/ + stateTransitionTime : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableFastLaunchResult where + schema := .struct "EnableFastLaunchResult" [({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "LaunchTemplate", xmlName := some "launchTemplate", queryName := some "LaunchTemplate" }, (Shape.schema FastLaunchLaunchTemplateSpecificationResponse)), + ({ name := "MaxParallelLaunches", xmlName := some "maxParallelLaunches", queryName := some "MaxParallelLaunches" }, .int), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema FastLaunchResourceType)), + ({ name := "SnapshotConfiguration", xmlName := some "snapshotConfiguration", queryName := some "SnapshotConfiguration" }, (Shape.schema FastLaunchSnapshotConfigurationResponse)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema FastLaunchStateCode)), + ({ name := "StateTransitionReason", xmlName := some "stateTransitionReason", queryName := some "StateTransitionReason" }, .string), + ({ name := "StateTransitionTime", xmlName := some "stateTransitionTime", queryName := some "StateTransitionTime" }, (.time none))] + toValue x := record [putOpt "ImageId" x.imageId, putOpt "LaunchTemplate" x.launchTemplate, putOpt "MaxParallelLaunches" x.maxParallelLaunches, putOpt "OwnerId" x.ownerId, putOpt "ResourceType" x.resourceType, putOpt "SnapshotConfiguration" x.snapshotConfiguration, putOpt "State" x.state, putOpt "StateTransitionReason" x.stateTransitionReason, putOpt "StateTransitionTime" x.stateTransitionTime] + ofValue v := do + let imageId ← v.opt "ImageId" + let launchTemplate ← v.opt "LaunchTemplate" + let maxParallelLaunches ← v.opt "MaxParallelLaunches" + let ownerId ← v.opt "OwnerId" + let resourceType ← v.opt "ResourceType" + let snapshotConfiguration ← v.opt "SnapshotConfiguration" + let state ← v.opt "State" + let stateTransitionReason ← v.opt "StateTransitionReason" + let stateTransitionTime ← v.opt "StateTransitionTime" + return { imageId, launchTemplate, maxParallelLaunches, ownerId, resourceType, snapshotConfiguration, state, stateTransitionReason, stateTransitionTime } + +/-- Contains information about an error that occurred when enabling fast snapshot restores. -/ +structure EnableFastSnapshotRestoreStateErrorItem where + /-- The Availability Zone. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone. -/ + availabilityZoneId : Option String := none + /-- The error. -/ + error : Option EnableFastSnapshotRestoreStateError := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableFastSnapshotRestoreStateErrorItem where + schema := .struct "EnableFastSnapshotRestoreStateErrorItem" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "Error", xmlName := some "error", queryName := some "Error" }, (Shape.schema EnableFastSnapshotRestoreStateError))] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "Error" x.error] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let error ← v.opt "Error" + return { availabilityZone, availabilityZoneId, error } + +/-- Describes fast snapshot restores that were successfully enabled. -/ +structure EnableFastSnapshotRestoreSuccessItem where + /-- The Availability Zone. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone. -/ + availabilityZoneId : Option String := none + /-- The time at which fast snapshot restores entered the disabled state. -/ + disabledTime : Option Timestamp := none + /-- The time at which fast snapshot restores entered the disabling state. -/ + disablingTime : Option Timestamp := none + /-- The time at which fast snapshot restores entered the enabled state. -/ + enabledTime : Option Timestamp := none + /-- The time at which fast snapshot restores entered the enabling state. -/ + enablingTime : Option Timestamp := none + /-- The time at which fast snapshot restores entered the optimizing state. -/ + optimizingTime : Option Timestamp := none + /-- The Amazon Web Services owner alias that enabled fast snapshot restores on the snapshot. -/ + ownerAlias : Option String := none + /-- The ID of the Amazon Web Services account that enabled fast snapshot restores on the snapshot. -/ + ownerId : Option String := none + /-- The ID of the snapshot. -/ + snapshotId : Option String := none + /-- The state of fast snapshot restores. -/ + state : Option FastSnapshotRestoreStateCode := none + /-- The reason for the state transition. -/ + stateTransitionReason : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableFastSnapshotRestoreSuccessItem where + schema := .struct "EnableFastSnapshotRestoreSuccessItem" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "DisabledTime", xmlName := some "disabledTime", queryName := some "DisabledTime" }, (.time none)), + ({ name := "DisablingTime", xmlName := some "disablingTime", queryName := some "DisablingTime" }, (.time none)), + ({ name := "EnabledTime", xmlName := some "enabledTime", queryName := some "EnabledTime" }, (.time none)), + ({ name := "EnablingTime", xmlName := some "enablingTime", queryName := some "EnablingTime" }, (.time none)), + ({ name := "OptimizingTime", xmlName := some "optimizingTime", queryName := some "OptimizingTime" }, (.time none)), + ({ name := "OwnerAlias", xmlName := some "ownerAlias", queryName := some "OwnerAlias" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema FastSnapshotRestoreStateCode)), + ({ name := "StateTransitionReason", xmlName := some "stateTransitionReason", queryName := some "StateTransitionReason" }, .string)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "DisabledTime" x.disabledTime, putOpt "DisablingTime" x.disablingTime, putOpt "EnabledTime" x.enabledTime, putOpt "EnablingTime" x.enablingTime, putOpt "OptimizingTime" x.optimizingTime, putOpt "OwnerAlias" x.ownerAlias, putOpt "OwnerId" x.ownerId, putOpt "SnapshotId" x.snapshotId, putOpt "State" x.state, putOpt "StateTransitionReason" x.stateTransitionReason] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let disabledTime ← v.opt "DisabledTime" + let disablingTime ← v.opt "DisablingTime" + let enabledTime ← v.opt "EnabledTime" + let enablingTime ← v.opt "EnablingTime" + let optimizingTime ← v.opt "OptimizingTime" + let ownerAlias ← v.opt "OwnerAlias" + let ownerId ← v.opt "OwnerId" + let snapshotId ← v.opt "SnapshotId" + let state ← v.opt "State" + let stateTransitionReason ← v.opt "StateTransitionReason" + return { availabilityZone, availabilityZoneId, disabledTime, disablingTime, enabledTime, enablingTime, optimizingTime, ownerAlias, ownerId, snapshotId, state, stateTransitionReason } + +structure EnableImageBlockPublicAccessRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Specify block-new-sharing to enable block public access for AMIs at the account level in the specified Region. -/ + imageBlockPublicAccessState : ImageBlockPublicAccessEnabledState +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableImageBlockPublicAccessRequest where + schema := .struct "EnableImageBlockPublicAccessRequest" [({ name := "DryRun" }, .bool), + ({ name := "ImageBlockPublicAccessState", required := true }, (Shape.schema ImageBlockPublicAccessEnabledState))] + toValue x := record [putOpt "DryRun" x.dryRun, put "ImageBlockPublicAccessState" x.imageBlockPublicAccessState] + ofValue v := do + let dryRun ← v.opt "DryRun" + let imageBlockPublicAccessState ← v.req "ImageBlockPublicAccessState" + return { dryRun, imageBlockPublicAccessState } + +structure EnableImageBlockPublicAccessResult where + /-- Returns block-new-sharing if the request succeeds; otherwise, it returns an error. -/ + imageBlockPublicAccessState : Option ImageBlockPublicAccessEnabledState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableImageBlockPublicAccessResult where + schema := .struct "EnableImageBlockPublicAccessResult" [({ name := "ImageBlockPublicAccessState", xmlName := some "imageBlockPublicAccessState", queryName := some "ImageBlockPublicAccessState" }, (Shape.schema ImageBlockPublicAccessEnabledState))] + toValue x := record [putOpt "ImageBlockPublicAccessState" x.imageBlockPublicAccessState] + ofValue v := do + let imageBlockPublicAccessState ← v.opt "ImageBlockPublicAccessState" + return { imageBlockPublicAccessState } + +structure EnableSnapshotBlockPublicAccessRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The mode in which to enable block public access for snapshots for the Region. -/ + state : SnapshotBlockPublicAccessState +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableSnapshotBlockPublicAccessRequest where + schema := .struct "EnableSnapshotBlockPublicAccessRequest" [({ name := "DryRun" }, .bool), + ({ name := "State", required := true }, (Shape.schema SnapshotBlockPublicAccessState))] + toValue x := record [putOpt "DryRun" x.dryRun, put "State" x.state] + ofValue v := do + let dryRun ← v.opt "DryRun" + let state ← v.req "State" + return { dryRun, state } + +structure EnableSnapshotBlockPublicAccessResult where + /-- The state of block public access for snapshots for the account and Region. -/ + state : Option SnapshotBlockPublicAccessState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableSnapshotBlockPublicAccessResult where + schema := .struct "EnableSnapshotBlockPublicAccessResult" [({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema SnapshotBlockPublicAccessState))] + toValue x := record [putOpt "State" x.state] + ofValue v := do + let state ← v.opt "State" + return { state } + +/-- Describes the encryption support status for a transit gateway. -/ +structure EncryptionSupport where + /-- The current encryption state of the resource. -/ + encryptionState : Option EncryptionStateValue := none + /-- A message describing the encryption state. -/ + stateMessage : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EncryptionSupport where + schema := .struct "EncryptionSupport" [({ name := "EncryptionState", xmlName := some "encryptionState", queryName := some "EncryptionState" }, (Shape.schema EncryptionStateValue)), + ({ name := "StateMessage", xmlName := some "stateMessage", queryName := some "StateMessage" }, .string)] + toValue x := record [putOpt "EncryptionState" x.encryptionState, putOpt "StateMessage" x.stateMessage] + ofValue v := do + let encryptionState ← v.opt "EncryptionState" + let stateMessage ← v.opt "StateMessage" + return { encryptionState, stateMessage } + +structure ExportImageResult where + /-- A description of the image being exported. -/ + description : Option String := none + /-- The disk image format for the exported image. -/ + diskImageFormat : Option DiskImageFormat := none + /-- The ID of the export image task. -/ + exportImageTaskId : Option String := none + /-- The ID of the image. -/ + imageId : Option String := none + /-- The percent complete of the export image task. -/ + progress : Option String := none + /-- The name of the role that grants VM Import/Export permission to export images to your Amazon S3 bucket. -/ + roleName : Option String := none + /-- Information about the destination Amazon S3 bucket. -/ + s3ExportLocation : Option ExportTaskS3Location := none + /-- The status of the export image task. -/ + status : Option String := none + /-- The status message for the export image task. -/ + statusMessage : Option String := none + /-- Any tags assigned to the export image task. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExportImageResult where + schema := .struct "ExportImageResult" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "DiskImageFormat", xmlName := some "diskImageFormat", queryName := some "DiskImageFormat" }, (Shape.schema DiskImageFormat)), + ({ name := "ExportImageTaskId", xmlName := some "exportImageTaskId", queryName := some "ExportImageTaskId" }, .string), + ({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "Progress", xmlName := some "progress", queryName := some "Progress" }, .string), + ({ name := "RoleName", xmlName := some "roleName", queryName := some "RoleName" }, .string), + ({ name := "S3ExportLocation", xmlName := some "s3ExportLocation", queryName := some "S3ExportLocation" }, (Shape.schema ExportTaskS3Location)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, .string), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "Description" x.description, putOpt "DiskImageFormat" x.diskImageFormat, putOpt "ExportImageTaskId" x.exportImageTaskId, putOpt "ImageId" x.imageId, putOpt "Progress" x.progress, putOpt "RoleName" x.roleName, putOpt "S3ExportLocation" x.s3ExportLocation, putOpt "Status" x.status, putOpt "StatusMessage" x.statusMessage, putOpt "Tags" x.tags] + ofValue v := do + let description ← v.opt "Description" + let diskImageFormat ← v.opt "DiskImageFormat" + let exportImageTaskId ← v.opt "ExportImageTaskId" + let imageId ← v.opt "ImageId" + let progress ← v.opt "Progress" + let roleName ← v.opt "RoleName" + let s3ExportLocation ← v.opt "S3ExportLocation" + let status ← v.opt "Status" + let statusMessage ← v.opt "StatusMessage" + let tags ← v.opt "Tags" + return { description, diskImageFormat, exportImageTaskId, imageId, progress, roleName, s3ExportLocation, status, statusMessage, tags } + +/-- Describes an export image task. -/ +structure ExportImageTask where + /-- A description of the image being exported. -/ + description : Option String := none + /-- The ID of the export image task. -/ + exportImageTaskId : Option String := none + /-- The ID of the image. -/ + imageId : Option String := none + /-- The percent complete of the export image task. -/ + progress : Option String := none + /-- Information about the destination Amazon S3 bucket. -/ + s3ExportLocation : Option ExportTaskS3Location := none + /-- The status of the export image task. -/ + status : Option String := none + /-- The status message for the export image task. -/ + statusMessage : Option String := none + /-- Any tags assigned to the export image task. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExportImageTask where + schema := .struct "ExportImageTask" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "ExportImageTaskId", xmlName := some "exportImageTaskId", queryName := some "ExportImageTaskId" }, .string), + ({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "Progress", xmlName := some "progress", queryName := some "Progress" }, .string), + ({ name := "S3ExportLocation", xmlName := some "s3ExportLocation", queryName := some "S3ExportLocation" }, (Shape.schema ExportTaskS3Location)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, .string), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "Description" x.description, putOpt "ExportImageTaskId" x.exportImageTaskId, putOpt "ImageId" x.imageId, putOpt "Progress" x.progress, putOpt "S3ExportLocation" x.s3ExportLocation, putOpt "Status" x.status, putOpt "StatusMessage" x.statusMessage, putOpt "Tags" x.tags] + ofValue v := do + let description ← v.opt "Description" + let exportImageTaskId ← v.opt "ExportImageTaskId" + let imageId ← v.opt "ImageId" + let progress ← v.opt "Progress" + let s3ExportLocation ← v.opt "S3ExportLocation" + let status ← v.opt "Status" + let statusMessage ← v.opt "StatusMessage" + let tags ← v.opt "Tags" + return { description, exportImageTaskId, imageId, progress, s3ExportLocation, status, statusMessage, tags } + +/-- Describes the format and location for the export task. -/ +structure ExportToS3Task where + /-- The container format used to combine disk images with metadata (such as OVF). -/ + containerFormat : Option ContainerFormat := none + /-- The format for the exported image. -/ + diskImageFormat : Option DiskImageFormat := none + /-- The Amazon S3 bucket for the destination image. -/ + s3Bucket : Option String := none + /-- The encryption key for your S3 bucket. -/ + s3Key : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExportToS3Task where + schema := .struct "ExportToS3Task" [({ name := "ContainerFormat", xmlName := some "containerFormat", queryName := some "ContainerFormat" }, (Shape.schema ContainerFormat)), + ({ name := "DiskImageFormat", xmlName := some "diskImageFormat", queryName := some "DiskImageFormat" }, (Shape.schema DiskImageFormat)), + ({ name := "S3Bucket", xmlName := some "s3Bucket", queryName := some "S3Bucket" }, .string), + ({ name := "S3Key", xmlName := some "s3Key", queryName := some "S3Key" }, .string)] + toValue x := record [putOpt "ContainerFormat" x.containerFormat, putOpt "DiskImageFormat" x.diskImageFormat, putOpt "S3Bucket" x.s3Bucket, putOpt "S3Key" x.s3Key] + ofValue v := do + let containerFormat ← v.opt "ContainerFormat" + let diskImageFormat ← v.opt "DiskImageFormat" + let s3Bucket ← v.opt "S3Bucket" + let s3Key ← v.opt "S3Key" + return { containerFormat, diskImageFormat, s3Bucket, s3Key } + +/-- Describes an export instance task. -/ +structure ExportToS3TaskSpecification where + /-- The container format used to combine disk images with metadata (such as OVF). -/ + containerFormat : Option ContainerFormat := none + /-- The format for the exported image. -/ + diskImageFormat : Option DiskImageFormat := none + /-- The Amazon S3 bucket for the destination image. -/ + s3Bucket : Option String := none + /-- The image is written to a single object in the Amazon S3 bucket at the S3 key s3prefix + exportTaskId + '.' + diskImageFormat. -/ + s3Prefix : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExportToS3TaskSpecification where + schema := .struct "ExportToS3TaskSpecification" [({ name := "ContainerFormat", xmlName := some "containerFormat", queryName := some "ContainerFormat" }, (Shape.schema ContainerFormat)), + ({ name := "DiskImageFormat", xmlName := some "diskImageFormat", queryName := some "DiskImageFormat" }, (Shape.schema DiskImageFormat)), + ({ name := "S3Bucket", xmlName := some "s3Bucket", queryName := some "S3Bucket" }, .string), + ({ name := "S3Prefix", xmlName := some "s3Prefix", queryName := some "S3Prefix" }, .string)] + toValue x := record [putOpt "ContainerFormat" x.containerFormat, putOpt "DiskImageFormat" x.diskImageFormat, putOpt "S3Bucket" x.s3Bucket, putOpt "S3Prefix" x.s3Prefix] + ofValue v := do + let containerFormat ← v.opt "ContainerFormat" + let diskImageFormat ← v.opt "DiskImageFormat" + let s3Bucket ← v.opt "S3Bucket" + let s3Prefix ← v.opt "S3Prefix" + return { containerFormat, diskImageFormat, s3Bucket, s3Prefix } + +structure ExportTransitGatewayRoutesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The name of the S3 bucket. -/ + s3Bucket : String + /-- The ID of the route table. -/ + transitGatewayRouteTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExportTransitGatewayRoutesRequest where + schema := .struct "ExportTransitGatewayRoutesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "S3Bucket", required := true }, .string), + ({ name := "TransitGatewayRouteTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, put "S3Bucket" x.s3Bucket, put "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let s3Bucket ← v.req "S3Bucket" + let transitGatewayRouteTableId ← v.req "TransitGatewayRouteTableId" + return { dryRun, filters, s3Bucket, transitGatewayRouteTableId } + +/-- The configuration that links an Amazon VPC IPAM scope to an external authority system. -/ +structure ExternalAuthorityConfiguration where + /-- The identifier for the external resource managing this scope. -/ + externalResourceIdentifier : Option String := none + /-- The type of external authority. -/ + type : Option IpamScopeExternalAuthorityType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExternalAuthorityConfiguration where + schema := .struct "ExternalAuthorityConfiguration" [({ name := "ExternalResourceIdentifier" }, .string), + ({ name := "Type" }, (Shape.schema IpamScopeExternalAuthorityType))] + toValue x := record [putOpt "ExternalResourceIdentifier" x.externalResourceIdentifier, putOpt "Type" x.type] + ofValue v := do + let externalResourceIdentifier ← v.opt "ExternalResourceIdentifier" + let type ← v.opt "Type" + return { externalResourceIdentifier, type } + +/-- Describes a Capacity Reservation Fleet that could not be cancelled. -/ +structure FailedCapacityReservationFleetCancellationResult where + /-- Information about the Capacity Reservation Fleet cancellation error. -/ + cancelCapacityReservationFleetError : Option CancelCapacityReservationFleetError := none + /-- The ID of the Capacity Reservation Fleet that could not be cancelled. -/ + capacityReservationFleetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FailedCapacityReservationFleetCancellationResult where + schema := .struct "FailedCapacityReservationFleetCancellationResult" [({ name := "CancelCapacityReservationFleetError", xmlName := some "cancelCapacityReservationFleetError", queryName := some "CancelCapacityReservationFleetError" }, (Shape.schema CancelCapacityReservationFleetError)), + ({ name := "CapacityReservationFleetId", xmlName := some "capacityReservationFleetId", queryName := some "CapacityReservationFleetId" }, .string)] + toValue x := record [putOpt "CancelCapacityReservationFleetError" x.cancelCapacityReservationFleetError, putOpt "CapacityReservationFleetId" x.capacityReservationFleetId] + ofValue v := do + let cancelCapacityReservationFleetError ← v.opt "CancelCapacityReservationFleetError" + let capacityReservationFleetId ← v.opt "CapacityReservationFleetId" + return { cancelCapacityReservationFleetError, capacityReservationFleetId } + +/-- Describes a stateful rule. -/ +structure FirewallStatefulRule where + /-- The destination ports. -/ + destinationPorts : Option (List PortRange) := none + /-- The destination IP addresses, in CIDR notation. -/ + destinations : Option (List String) := none + /-- The direction. -/ + direction : Option String := none + /-- The protocol. -/ + protocol : Option String := none + /-- The rule action. -/ + ruleAction : Option String := none + /-- The ARN of the stateful rule group. -/ + ruleGroupArn : Option String := none + /-- The source ports. -/ + sourcePorts : Option (List PortRange) := none + /-- The source IP addresses, in CIDR notation. -/ + sources : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FirewallStatefulRule where + schema := .struct "FirewallStatefulRule" [({ name := "DestinationPorts", xmlName := some "destinationPortSet", queryName := some "DestinationPortSet" }, (.list (Shape.schema PortRange) "item")), + ({ name := "Destinations", xmlName := some "destinationSet", queryName := some "DestinationSet" }, (.list .string "item")), + ({ name := "Direction", xmlName := some "direction", queryName := some "Direction" }, .string), + ({ name := "Protocol", xmlName := some "protocol", queryName := some "Protocol" }, .string), + ({ name := "RuleAction", xmlName := some "ruleAction", queryName := some "RuleAction" }, .string), + ({ name := "RuleGroupArn", xmlName := some "ruleGroupArn", queryName := some "RuleGroupArn" }, .string), + ({ name := "SourcePorts", xmlName := some "sourcePortSet", queryName := some "SourcePortSet" }, (.list (Shape.schema PortRange) "item")), + ({ name := "Sources", xmlName := some "sourceSet", queryName := some "SourceSet" }, (.list .string "item"))] + toValue x := record [putOpt "DestinationPorts" x.destinationPorts, putOpt "Destinations" x.destinations, putOpt "Direction" x.direction, putOpt "Protocol" x.protocol, putOpt "RuleAction" x.ruleAction, putOpt "RuleGroupArn" x.ruleGroupArn, putOpt "SourcePorts" x.sourcePorts, putOpt "Sources" x.sources] + ofValue v := do + let destinationPorts ← v.opt "DestinationPorts" + let destinations ← v.opt "Destinations" + let direction ← v.opt "Direction" + let protocol ← v.opt "Protocol" + let ruleAction ← v.opt "RuleAction" + let ruleGroupArn ← v.opt "RuleGroupArn" + let sourcePorts ← v.opt "SourcePorts" + let sources ← v.opt "Sources" + return { destinationPorts, destinations, direction, protocol, ruleAction, ruleGroupArn, sourcePorts, sources } + +/-- Describes a stateless rule. -/ +structure FirewallStatelessRule where + /-- The destination ports. -/ + destinationPorts : Option (List PortRange) := none + /-- The destination IP addresses, in CIDR notation. -/ + destinations : Option (List String) := none + /-- The rule priority. -/ + priority : Option Int := none + /-- The protocols. -/ + protocols : Option (List Int) := none + /-- The rule action. -/ + ruleAction : Option String := none + /-- The ARN of the stateless rule group. -/ + ruleGroupArn : Option String := none + /-- The source ports. -/ + sourcePorts : Option (List PortRange) := none + /-- The source IP addresses, in CIDR notation. -/ + sources : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FirewallStatelessRule where + schema := .struct "FirewallStatelessRule" [({ name := "DestinationPorts", xmlName := some "destinationPortSet", queryName := some "DestinationPortSet" }, (.list (Shape.schema PortRange) "item")), + ({ name := "Destinations", xmlName := some "destinationSet", queryName := some "DestinationSet" }, (.list .string "item")), + ({ name := "Priority", xmlName := some "priority", queryName := some "Priority" }, .int), + ({ name := "Protocols", xmlName := some "protocolSet", queryName := some "ProtocolSet" }, (.list .int "item")), + ({ name := "RuleAction", xmlName := some "ruleAction", queryName := some "RuleAction" }, .string), + ({ name := "RuleGroupArn", xmlName := some "ruleGroupArn", queryName := some "RuleGroupArn" }, .string), + ({ name := "SourcePorts", xmlName := some "sourcePortSet", queryName := some "SourcePortSet" }, (.list (Shape.schema PortRange) "item")), + ({ name := "Sources", xmlName := some "sourceSet", queryName := some "SourceSet" }, (.list .string "item"))] + toValue x := record [putOpt "DestinationPorts" x.destinationPorts, putOpt "Destinations" x.destinations, putOpt "Priority" x.priority, putOpt "Protocols" x.protocols, putOpt "RuleAction" x.ruleAction, putOpt "RuleGroupArn" x.ruleGroupArn, putOpt "SourcePorts" x.sourcePorts, putOpt "Sources" x.sources] + ofValue v := do + let destinationPorts ← v.opt "DestinationPorts" + let destinations ← v.opt "Destinations" + let priority ← v.opt "Priority" + let protocols ← v.opt "Protocols" + let ruleAction ← v.opt "RuleAction" + let ruleGroupArn ← v.opt "RuleGroupArn" + let sourcePorts ← v.opt "SourcePorts" + let sources ← v.opt "Sources" + return { destinationPorts, destinations, priority, protocols, ruleAction, ruleGroupArn, sourcePorts, sources } + +/-- Information about a Capacity Reservation in a Capacity Reservation Fleet. -/ +structure FleetCapacityReservation where + /-- The Availability Zone in which the Capacity Reservation reserves capacity. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone in which the Capacity Reservation reserves capacity. -/ + availabilityZoneId : Option String := none + /-- The ID of the Capacity Reservation. -/ + capacityReservationId : Option String := none + /-- The date and time at which the Capacity Reservation was created. -/ + createDate : Option Timestamp := none + /-- Indicates whether the Capacity Reservation reserves capacity for EBS-optimized instance types. -/ + ebsOptimized : Option Bool := none + /-- The number of capacity units fulfilled by the Capacity Reservation. -/ + fulfilledCapacity : Option JsonNumber := none + /-- The type of operating system for which the Capacity Reservation reserves capacity. -/ + instancePlatform : Option CapacityReservationInstancePlatform := none + /-- The instance type for which the Capacity Reservation reserves capacity. -/ + instanceType : Option InstanceType := none + /-- The priority of the instance type in the Capacity Reservation Fleet. -/ + priority : Option Int := none + /-- The total number of instances for which the Capacity Reservation reserves capacity. -/ + totalInstanceCount : Option Int := none + /-- The weight of the instance type in the Capacity Reservation Fleet. -/ + weight : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FleetCapacityReservation where + schema := .struct "FleetCapacityReservation" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "CapacityReservationId", xmlName := some "capacityReservationId", queryName := some "CapacityReservationId" }, .string), + ({ name := "CreateDate", xmlName := some "createDate", queryName := some "CreateDate" }, (.time none)), + ({ name := "EbsOptimized", xmlName := some "ebsOptimized", queryName := some "EbsOptimized" }, .bool), + ({ name := "FulfilledCapacity", xmlName := some "fulfilledCapacity", queryName := some "FulfilledCapacity" }, .number), + ({ name := "InstancePlatform", xmlName := some "instancePlatform", queryName := some "InstancePlatform" }, (Shape.schema CapacityReservationInstancePlatform)), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "Priority", xmlName := some "priority", queryName := some "Priority" }, .int), + ({ name := "TotalInstanceCount", xmlName := some "totalInstanceCount", queryName := some "TotalInstanceCount" }, .int), + ({ name := "Weight", xmlName := some "weight", queryName := some "Weight" }, .number)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "CapacityReservationId" x.capacityReservationId, putOpt "CreateDate" x.createDate, putOpt "EbsOptimized" x.ebsOptimized, putOpt "FulfilledCapacity" x.fulfilledCapacity, putOpt "InstancePlatform" x.instancePlatform, putOpt "InstanceType" x.instanceType, putOpt "Priority" x.priority, putOpt "TotalInstanceCount" x.totalInstanceCount, putOpt "Weight" x.weight] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let capacityReservationId ← v.opt "CapacityReservationId" + let createDate ← v.opt "CreateDate" + let ebsOptimized ← v.opt "EbsOptimized" + let fulfilledCapacity ← v.opt "FulfilledCapacity" + let instancePlatform ← v.opt "InstancePlatform" + let instanceType ← v.opt "InstanceType" + let priority ← v.opt "Priority" + let totalInstanceCount ← v.opt "TotalInstanceCount" + let weight ← v.opt "Weight" + return { availabilityZone, availabilityZoneId, capacityReservationId, createDate, ebsOptimized, fulfilledCapacity, instancePlatform, instanceType, priority, totalInstanceCount, weight } + +/-- Describes a block device for an EBS volume. -/ +structure FleetEbsBlockDeviceRequest where + /-- Indicates whether the EBS volume is deleted on instance termination. -/ + deleteOnTermination : Option Bool := none + /-- Indicates whether the encryption state of an EBS volume is changed while being restored from a backing snapshot. -/ + encrypted : Option Bool := none + /-- The number of I/O operations per second (IOPS). -/ + iops : Option Int := none + /-- Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key to use for EBS encryption. -/ + kmsKeyId : Option String := none + /-- The ID of the snapshot. -/ + snapshotId : Option String := none + /-- The throughput that the volume supports, in MiB/s. -/ + throughput : Option Int := none + /-- The size of the volume, in GiBs. -/ + volumeSize : Option Int := none + /-- The volume type. -/ + volumeType : Option VolumeType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FleetEbsBlockDeviceRequest where + schema := .struct "FleetEbsBlockDeviceRequest" [({ name := "DeleteOnTermination" }, .bool), + ({ name := "Encrypted" }, .bool), + ({ name := "Iops" }, .int), + ({ name := "KmsKeyId" }, .string), + ({ name := "SnapshotId" }, .string), + ({ name := "Throughput" }, .int), + ({ name := "VolumeSize" }, .int), + ({ name := "VolumeType" }, (Shape.schema VolumeType))] + toValue x := record [putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "Encrypted" x.encrypted, putOpt "Iops" x.iops, putOpt "KmsKeyId" x.kmsKeyId, putOpt "SnapshotId" x.snapshotId, putOpt "Throughput" x.throughput, putOpt "VolumeSize" x.volumeSize, putOpt "VolumeType" x.volumeType] + ofValue v := do + let deleteOnTermination ← v.opt "DeleteOnTermination" + let encrypted ← v.opt "Encrypted" + let iops ← v.opt "Iops" + let kmsKeyId ← v.opt "KmsKeyId" + let snapshotId ← v.opt "SnapshotId" + let throughput ← v.opt "Throughput" + let volumeSize ← v.opt "VolumeSize" + let volumeType ← v.opt "VolumeType" + return { deleteOnTermination, encrypted, iops, kmsKeyId, snapshotId, throughput, volumeSize, volumeType } + +/-- Describes the metadata options for the instances. -/ +structure FleetInstanceMetadataOptionsRequest where + /-- Enables or disables the HTTP metadata endpoint on your instances. -/ + httpEndpoint : Option FleetInstanceMetadataEndpointState := none + /-- The desired HTTP PUT response hop limit for instance metadata requests. -/ + httpPutResponseHopLimit : Option Int := none + /-- Indicates whether IMDSv2 is required. -/ + httpTokens : Option FleetHttpTokensState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FleetInstanceMetadataOptionsRequest where + schema := .struct "FleetInstanceMetadataOptionsRequest" [({ name := "HttpEndpoint" }, (Shape.schema FleetInstanceMetadataEndpointState)), + ({ name := "HttpPutResponseHopLimit" }, .int), + ({ name := "HttpTokens" }, (Shape.schema FleetHttpTokensState))] + toValue x := record [putOpt "HttpEndpoint" x.httpEndpoint, putOpt "HttpPutResponseHopLimit" x.httpPutResponseHopLimit, putOpt "HttpTokens" x.httpTokens] + ofValue v := do + let httpEndpoint ← v.opt "HttpEndpoint" + let httpPutResponseHopLimit ← v.opt "HttpPutResponseHopLimit" + let httpTokens ← v.opt "HttpTokens" + return { httpEndpoint, httpPutResponseHopLimit, httpTokens } + +/-- The strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. -/ +structure FleetSpotCapacityRebalance where + /-- The replacement strategy to use. -/ + replacementStrategy : Option FleetReplacementStrategy := none + /-- The amount of time (in seconds) that Amazon EC2 waits before terminating the old Spot Instance after launching a new replacement Spot Instance. -/ + terminationDelay : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FleetSpotCapacityRebalance where + schema := .struct "FleetSpotCapacityRebalance" [({ name := "ReplacementStrategy", xmlName := some "replacementStrategy", queryName := some "ReplacementStrategy" }, (Shape.schema FleetReplacementStrategy)), + ({ name := "TerminationDelay", xmlName := some "terminationDelay", queryName := some "TerminationDelay" }, .int)] + toValue x := record [putOpt "ReplacementStrategy" x.replacementStrategy, putOpt "TerminationDelay" x.terminationDelay] + ofValue v := do + let replacementStrategy ← v.opt "ReplacementStrategy" + let terminationDelay ← v.opt "TerminationDelay" + return { replacementStrategy, terminationDelay } + +/-- The Spot Instance replacement strategy to use when Amazon EC2 emits a rebalance notification signal that your Spot Instance is at an elevated risk of being interrupted. -/ +structure FleetSpotCapacityRebalanceRequest where + /-- The replacement strategy to use. -/ + replacementStrategy : Option FleetReplacementStrategy := none + /-- The amount of time (in seconds) that Amazon EC2 waits before terminating the old Spot Instance after launching a new replacement Spot Instance. -/ + terminationDelay : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FleetSpotCapacityRebalanceRequest where + schema := .struct "FleetSpotCapacityRebalanceRequest" [({ name := "ReplacementStrategy" }, (Shape.schema FleetReplacementStrategy)), + ({ name := "TerminationDelay" }, .int)] + toValue x := record [putOpt "ReplacementStrategy" x.replacementStrategy, putOpt "TerminationDelay" x.terminationDelay] + ofValue v := do + let replacementStrategy ← v.opt "ReplacementStrategy" + let terminationDelay ← v.opt "TerminationDelay" + return { replacementStrategy, terminationDelay } + +/-- Specifies the CIDR ranges and labels to use for cost allocation when the reporting granularity is cidr . -/ +structure FlexCostAllocationCidrRangeSpecifications where + /-- The CIDR range to label mappings. -/ + prefixes : (List FlexCostAllocationCidrMapping) + /-- The type of prefixes to use. -/ + prefixesType : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape FlexCostAllocationCidrRangeSpecifications where + schema := .struct "FlexCostAllocationCidrRangeSpecifications" [({ name := "Prefixes", required := true }, (.list (Shape.schema FlexCostAllocationCidrMapping) "item")), + ({ name := "PrefixesType", required := true }, .string)] + toValue x := record [put "Prefixes" x.prefixes, put "PrefixesType" x.prefixesType] + ofValue v := do + let prefixes ← v.req "Prefixes" + let prefixesType ← v.req "PrefixesType" + return { prefixes, prefixesType } + +/-- Specifies a scope of network resources for a scope-based policy association. -/ +structure FlexCostAllocationNetworkResourceScope where + /-- The IDs of the resources owned by you that define the scope. -/ + resourceIds : (List String) + /-- The type of scope. -/ + resourceType : FlexCostAllocationNetworkResourceScopeType +deriving DecidableEq, Repr, Inhabited + +instance : Shape FlexCostAllocationNetworkResourceScope where + schema := .struct "FlexCostAllocationNetworkResourceScope" [({ name := "ResourceIds", required := true }, (.list .string "item")), + ({ name := "ResourceType", required := true }, (Shape.schema FlexCostAllocationNetworkResourceScopeType))] + toValue x := record [put "ResourceIds" x.resourceIds, put "ResourceType" x.resourceType] + ofValue v := do + let resourceIds ← v.req "ResourceIds" + let resourceType ← v.req "ResourceType" + return { resourceIds, resourceType } + +/-- Describes an association between a flex cost allocation policy and a network resource. -/ +structure FlexCostAllocationPolicyAssociationDescription where + /-- The date and time when the association was created. -/ + associatedAt : Option Timestamp := none + /-- The mode of the association. -/ + associationMode : Option FlexCostAllocationAssociationMode := none + /-- The date and time when the association is expected to apply to network traffic. -/ + expectedEffectiveAt : Option Timestamp := none + /-- The ID of the policy association. -/ + fcaPolicyAssociationId : Option String := none + /-- The ID of the policy. -/ + fcaPolicyId : Option String := none + /-- The entity that manages the association. -/ + managedBy : Option ManagedBy := none + /-- The ID of the associated network resource. -/ + networkResourceId : Option String := none + /-- The ID of the account that owns the association. -/ + ownerAccount : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FlexCostAllocationPolicyAssociationDescription where + schema := .struct "FlexCostAllocationPolicyAssociationDescription" [({ name := "AssociatedAt", xmlName := some "associatedAt", queryName := some "AssociatedAt" }, (.time none)), + ({ name := "AssociationMode", xmlName := some "associationMode", queryName := some "AssociationMode" }, (Shape.schema FlexCostAllocationAssociationMode)), + ({ name := "ExpectedEffectiveAt", xmlName := some "expectedEffectiveAt", queryName := some "ExpectedEffectiveAt" }, (.time none)), + ({ name := "FcaPolicyAssociationId", xmlName := some "fcaPolicyAssociationId", queryName := some "FcaPolicyAssociationId" }, .string), + ({ name := "FcaPolicyId", xmlName := some "fcaPolicyId", queryName := some "FcaPolicyId" }, .string), + ({ name := "ManagedBy", xmlName := some "managedBy", queryName := some "ManagedBy" }, (Shape.schema ManagedBy)), + ({ name := "NetworkResourceId", xmlName := some "networkResourceId", queryName := some "NetworkResourceId" }, .string), + ({ name := "OwnerAccount", xmlName := some "ownerAccount", queryName := some "OwnerAccount" }, .string)] + toValue x := record [putOpt "AssociatedAt" x.associatedAt, putOpt "AssociationMode" x.associationMode, putOpt "ExpectedEffectiveAt" x.expectedEffectiveAt, putOpt "FcaPolicyAssociationId" x.fcaPolicyAssociationId, putOpt "FcaPolicyId" x.fcaPolicyId, putOpt "ManagedBy" x.managedBy, putOpt "NetworkResourceId" x.networkResourceId, putOpt "OwnerAccount" x.ownerAccount] + ofValue v := do + let associatedAt ← v.opt "AssociatedAt" + let associationMode ← v.opt "AssociationMode" + let expectedEffectiveAt ← v.opt "ExpectedEffectiveAt" + let fcaPolicyAssociationId ← v.opt "FcaPolicyAssociationId" + let fcaPolicyId ← v.opt "FcaPolicyId" + let managedBy ← v.opt "ManagedBy" + let networkResourceId ← v.opt "NetworkResourceId" + let ownerAccount ← v.opt "OwnerAccount" + return { associatedAt, associationMode, expectedEffectiveAt, fcaPolicyAssociationId, fcaPolicyId, managedBy, networkResourceId, ownerAccount } + +/-- Describes the FPGA accelerator for the instance type. -/ +structure FpgaDeviceInfo where + /-- The count of FPGA accelerators for the instance type. -/ + count : Option Int := none + /-- The manufacturer of the FPGA accelerator. -/ + manufacturer : Option String := none + /-- Describes the memory for the FPGA accelerator for the instance type. -/ + memoryInfo : Option FpgaDeviceMemoryInfo := none + /-- The name of the FPGA accelerator. -/ + name : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FpgaDeviceInfo where + schema := .struct "FpgaDeviceInfo" [({ name := "Count", xmlName := some "count", queryName := some "Count" }, .int), + ({ name := "Manufacturer", xmlName := some "manufacturer", queryName := some "Manufacturer" }, .string), + ({ name := "MemoryInfo", xmlName := some "memoryInfo", queryName := some "MemoryInfo" }, (Shape.schema FpgaDeviceMemoryInfo)), + ({ name := "Name", xmlName := some "name", queryName := some "Name" }, .string)] + toValue x := record [putOpt "Count" x.count, putOpt "Manufacturer" x.manufacturer, putOpt "MemoryInfo" x.memoryInfo, putOpt "Name" x.name] + ofValue v := do + let count ← v.opt "Count" + let manufacturer ← v.opt "Manufacturer" + let memoryInfo ← v.opt "MemoryInfo" + let name ← v.opt "Name" + return { count, manufacturer, memoryInfo, name } + +/-- Describes the state of the bitstream generation process for an Amazon FPGA image (AFI). -/ +structure FpgaImageState where + /-- The state. -/ + code : Option FpgaImageStateCode := none + /-- If the state is failed , this is the error message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FpgaImageState where + schema := .struct "FpgaImageState" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, (Shape.schema FpgaImageStateCode)), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +structure GetAssociatedEnclaveCertificateIamRolesResult where + /-- Information about the associated IAM roles. -/ + associatedRoles : Option (List AssociatedRole) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetAssociatedEnclaveCertificateIamRolesResult where + schema := .struct "GetAssociatedEnclaveCertificateIamRolesResult" [({ name := "AssociatedRoles", xmlName := some "associatedRoleSet", queryName := some "AssociatedRoleSet" }, (.list (Shape.schema AssociatedRole) "item"))] + toValue x := record [putOpt "AssociatedRoles" x.associatedRoles] + ofValue v := do + let associatedRoles ← v.opt "AssociatedRoles" + return { associatedRoles } + +structure GetAssociatedIpv6PoolCidrsResult where + /-- Information about the IPv6 CIDR block associations. -/ + ipv6CidrAssociations : Option (List Ipv6CidrAssociation) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetAssociatedIpv6PoolCidrsResult where + schema := .struct "GetAssociatedIpv6PoolCidrsResult" [({ name := "Ipv6CidrAssociations", xmlName := some "ipv6CidrAssociationSet", queryName := some "Ipv6CidrAssociationSet" }, (.list (Shape.schema Ipv6CidrAssociation) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "Ipv6CidrAssociations" x.ipv6CidrAssociations, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipv6CidrAssociations ← v.opt "Ipv6CidrAssociations" + let nextToken ← v.opt "NextToken" + return { ipv6CidrAssociations, nextToken } + +structure GetCapacityManagerAttributesResult where + /-- The current status of Capacity Manager. -/ + capacityManagerStatus : Option CapacityManagerStatus := none + /-- The number of active data export configurations for this account. -/ + dataExportCount : Option Int := none + /-- The timestamp of the earliest data point available in Capacity Manager, in milliseconds since epoch. -/ + earliestDatapointTimestamp : Option Timestamp := none + /-- The current data ingestion status. -/ + ingestionStatus : Option IngestionStatus := none + /-- A descriptive message providing additional details about the current ingestion status. -/ + ingestionStatusMessage : Option String := none + /-- The timestamp of the most recent data point ingested by Capacity Manager, in milliseconds since epoch. -/ + latestDatapointTimestamp : Option Timestamp := none + /-- Indicates whether Organizations access is enabled for cross-account data aggregation. -/ + organizationsAccess : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetCapacityManagerAttributesResult where + schema := .struct "GetCapacityManagerAttributesResult" [({ name := "CapacityManagerStatus", xmlName := some "capacityManagerStatus", queryName := some "CapacityManagerStatus" }, (Shape.schema CapacityManagerStatus)), + ({ name := "DataExportCount", xmlName := some "dataExportCount", queryName := some "DataExportCount" }, .int), + ({ name := "EarliestDatapointTimestamp", xmlName := some "earliestDatapointTimestamp", queryName := some "EarliestDatapointTimestamp" }, (.time none)), + ({ name := "IngestionStatus", xmlName := some "ingestionStatus", queryName := some "IngestionStatus" }, (Shape.schema IngestionStatus)), + ({ name := "IngestionStatusMessage", xmlName := some "ingestionStatusMessage", queryName := some "IngestionStatusMessage" }, .string), + ({ name := "LatestDatapointTimestamp", xmlName := some "latestDatapointTimestamp", queryName := some "LatestDatapointTimestamp" }, (.time none)), + ({ name := "OrganizationsAccess", xmlName := some "organizationsAccess", queryName := some "OrganizationsAccess" }, .bool)] + toValue x := record [putOpt "CapacityManagerStatus" x.capacityManagerStatus, putOpt "DataExportCount" x.dataExportCount, putOpt "EarliestDatapointTimestamp" x.earliestDatapointTimestamp, putOpt "IngestionStatus" x.ingestionStatus, putOpt "IngestionStatusMessage" x.ingestionStatusMessage, putOpt "LatestDatapointTimestamp" x.latestDatapointTimestamp, putOpt "OrganizationsAccess" x.organizationsAccess] + ofValue v := do + let capacityManagerStatus ← v.opt "CapacityManagerStatus" + let dataExportCount ← v.opt "DataExportCount" + let earliestDatapointTimestamp ← v.opt "EarliestDatapointTimestamp" + let ingestionStatus ← v.opt "IngestionStatus" + let ingestionStatusMessage ← v.opt "IngestionStatusMessage" + let latestDatapointTimestamp ← v.opt "LatestDatapointTimestamp" + let organizationsAccess ← v.opt "OrganizationsAccess" + return { capacityManagerStatus, dataExportCount, earliestDatapointTimestamp, ingestionStatus, ingestionStatusMessage, latestDatapointTimestamp, organizationsAccess } + +structure GetClientVpnEndpointAuthorizationPolicyResult where + /-- The ID of the Client VPN endpoint. -/ + clientVpnEndpointId : Option String := none + /-- A brief description of the authorization policy. -/ + description : Option String := none + /-- The authorization policy document, written in the Cedar policy language. -/ + policyDocument : Option String := none + /-- Specifies whether the authorization policy is evaluated in shadow mode. -/ + shadowMode : Option ClientVpnAuthorizationPolicyShadowMode := none + /-- The current state of the authorization policy. -/ + status : Option ClientVpnAuthorizationPolicyStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetClientVpnEndpointAuthorizationPolicyResult where + schema := .struct "GetClientVpnEndpointAuthorizationPolicyResult" [({ name := "ClientVpnEndpointId", xmlName := some "clientVpnEndpointId", queryName := some "ClientVpnEndpointId" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "PolicyDocument", xmlName := some "policyDocument", queryName := some "PolicyDocument" }, .string), + ({ name := "ShadowMode", xmlName := some "shadowMode", queryName := some "ShadowMode" }, (Shape.schema ClientVpnAuthorizationPolicyShadowMode)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema ClientVpnAuthorizationPolicyStatus))] + toValue x := record [putOpt "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "Description" x.description, putOpt "PolicyDocument" x.policyDocument, putOpt "ShadowMode" x.shadowMode, putOpt "Status" x.status] + ofValue v := do + let clientVpnEndpointId ← v.opt "ClientVpnEndpointId" + let description ← v.opt "Description" + let policyDocument ← v.opt "PolicyDocument" + let shadowMode ← v.opt "ShadowMode" + let status ← v.opt "Status" + return { clientVpnEndpointId, description, policyDocument, shadowMode, status } + +structure GetCoipPoolUsageRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the address pool. -/ + poolId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetCoipPoolUsageRequest where + schema := .struct "GetCoipPoolUsageRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "PoolId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "PoolId" x.poolId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let poolId ← v.req "PoolId" + return { dryRun, filters, maxResults, nextToken, poolId } + +structure GetCoipPoolUsageResult where + /-- Information about the address usage. -/ + coipAddressUsages : Option (List CoipAddressUsage) := none + /-- The ID of the customer-owned address pool. -/ + coipPoolId : Option String := none + /-- The ID of the local gateway route table. -/ + localGatewayRouteTableId : Option String := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetCoipPoolUsageResult where + schema := .struct "GetCoipPoolUsageResult" [({ name := "CoipAddressUsages", xmlName := some "coipAddressUsageSet", queryName := some "CoipAddressUsageSet" }, (.list (Shape.schema CoipAddressUsage) "item")), + ({ name := "CoipPoolId", xmlName := some "coipPoolId", queryName := some "CoipPoolId" }, .string), + ({ name := "LocalGatewayRouteTableId", xmlName := some "localGatewayRouteTableId", queryName := some "LocalGatewayRouteTableId" }, .string), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "CoipAddressUsages" x.coipAddressUsages, putOpt "CoipPoolId" x.coipPoolId, putOpt "LocalGatewayRouteTableId" x.localGatewayRouteTableId, putOpt "NextToken" x.nextToken] + ofValue v := do + let coipAddressUsages ← v.opt "CoipAddressUsages" + let coipPoolId ← v.opt "CoipPoolId" + let localGatewayRouteTableId ← v.opt "LocalGatewayRouteTableId" + let nextToken ← v.opt "NextToken" + return { coipAddressUsages, coipPoolId, localGatewayRouteTableId, nextToken } + +structure GetDefaultCreditSpecificationRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The instance family. -/ + instanceFamily : UnlimitedSupportedInstanceFamily +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetDefaultCreditSpecificationRequest where + schema := .struct "GetDefaultCreditSpecificationRequest" [({ name := "DryRun" }, .bool), + ({ name := "InstanceFamily", required := true }, (Shape.schema UnlimitedSupportedInstanceFamily))] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceFamily" x.instanceFamily] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceFamily ← v.req "InstanceFamily" + return { dryRun, instanceFamily } + +structure GetEbsEncryptionByDefaultResult where + /-- Indicates whether encryption by default is enabled. -/ + ebsEncryptionByDefault : Option Bool := none + /-- Reserved for future use. -/ + sseType : Option SSEType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetEbsEncryptionByDefaultResult where + schema := .struct "GetEbsEncryptionByDefaultResult" [({ name := "EbsEncryptionByDefault", xmlName := some "ebsEncryptionByDefault", queryName := some "EbsEncryptionByDefault" }, .bool), + ({ name := "SseType", xmlName := some "sseType", queryName := some "SseType" }, (Shape.schema SSEType))] + toValue x := record [putOpt "EbsEncryptionByDefault" x.ebsEncryptionByDefault, putOpt "SseType" x.sseType] + ofValue v := do + let ebsEncryptionByDefault ← v.opt "EbsEncryptionByDefault" + let sseType ← v.opt "SseType" + return { ebsEncryptionByDefault, sseType } + +structure GetEnabledIpamPolicyResult where + /-- Indicates whether the IPAM policy is enabled. -/ + ipamPolicyEnabled : Option Bool := none + /-- The ID of the enabled IPAM policy. -/ + ipamPolicyId : Option String := none + /-- The entity that manages the IPAM policy. -/ + managedBy : Option IpamPolicyManagedBy := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetEnabledIpamPolicyResult where + schema := .struct "GetEnabledIpamPolicyResult" [({ name := "IpamPolicyEnabled", xmlName := some "ipamPolicyEnabled", queryName := some "IpamPolicyEnabled" }, .bool), + ({ name := "IpamPolicyId", xmlName := some "ipamPolicyId", queryName := some "IpamPolicyId" }, .string), + ({ name := "ManagedBy", xmlName := some "managedBy", queryName := some "ManagedBy" }, (Shape.schema IpamPolicyManagedBy))] + toValue x := record [putOpt "IpamPolicyEnabled" x.ipamPolicyEnabled, putOpt "IpamPolicyId" x.ipamPolicyId, putOpt "ManagedBy" x.managedBy] + ofValue v := do + let ipamPolicyEnabled ← v.opt "IpamPolicyEnabled" + let ipamPolicyId ← v.opt "IpamPolicyId" + let managedBy ← v.opt "ManagedBy" + return { ipamPolicyEnabled, ipamPolicyId, managedBy } + +structure GetGroupsForCapacityReservationResult where + /-- Information about the resource groups to which the Capacity Reservation has been added. -/ + capacityReservationGroups : Option (List CapacityReservationGroup) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetGroupsForCapacityReservationResult where + schema := .struct "GetGroupsForCapacityReservationResult" [({ name := "CapacityReservationGroups", xmlName := some "capacityReservationGroupSet", queryName := some "CapacityReservationGroupSet" }, (.list (Shape.schema CapacityReservationGroup) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "CapacityReservationGroups" x.capacityReservationGroups, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityReservationGroups ← v.opt "CapacityReservationGroups" + let nextToken ← v.opt "NextToken" + return { capacityReservationGroups, nextToken } + +structure GetImageAncestryResult where + /-- A list of entries in the AMI ancestry chain, from the specified AMI to the root AMI. -/ + imageAncestryEntries : Option (List ImageAncestryEntry) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetImageAncestryResult where + schema := .struct "GetImageAncestryResult" [({ name := "ImageAncestryEntries", xmlName := some "imageAncestryEntrySet", queryName := some "ImageAncestryEntrySet" }, (.list (Shape.schema ImageAncestryEntry) "item"))] + toValue x := record [putOpt "ImageAncestryEntries" x.imageAncestryEntries] + ofValue v := do + let imageAncestryEntries ← v.opt "ImageAncestryEntries" + return { imageAncestryEntries } + +structure GetImageBlockPublicAccessStateResult where + /-- The current state of block public access for AMIs at the account level in the specified Amazon Web Services Region. -/ + imageBlockPublicAccessState : Option String := none + /-- The entity that manages the state for block public access for AMIs. -/ + managedBy : Option ManagedBy := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetImageBlockPublicAccessStateResult where + schema := .struct "GetImageBlockPublicAccessStateResult" [({ name := "ImageBlockPublicAccessState", xmlName := some "imageBlockPublicAccessState", queryName := some "ImageBlockPublicAccessState" }, .string), + ({ name := "ManagedBy", xmlName := some "managedBy", queryName := some "ManagedBy" }, (Shape.schema ManagedBy))] + toValue x := record [putOpt "ImageBlockPublicAccessState" x.imageBlockPublicAccessState, putOpt "ManagedBy" x.managedBy] + ofValue v := do + let imageBlockPublicAccessState ← v.opt "ImageBlockPublicAccessState" + let managedBy ← v.opt "ManagedBy" + return { imageBlockPublicAccessState, managedBy } + +structure GetInstanceTpmEkPubRequest where + /-- Specify this parameter to verify whether the request will succeed, without actually making the request. -/ + dryRun : Option Bool := none + /-- The ID of the instance for which to get the public endorsement key. -/ + instanceId : String + /-- The required public endorsement key format. -/ + keyFormat : EkPubKeyFormat + /-- The required public endorsement key type. -/ + keyType : EkPubKeyType +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetInstanceTpmEkPubRequest where + schema := .struct "GetInstanceTpmEkPubRequest" [({ name := "DryRun" }, .bool), + ({ name := "InstanceId", required := true, xmlName := some "InstanceId" }, .string), + ({ name := "KeyFormat", required := true }, (Shape.schema EkPubKeyFormat)), + ({ name := "KeyType", required := true }, (Shape.schema EkPubKeyType))] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceId" x.instanceId, put "KeyFormat" x.keyFormat, put "KeyType" x.keyType] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceId ← v.req "InstanceId" + let keyFormat ← v.req "KeyFormat" + let keyType ← v.req "KeyType" + return { dryRun, instanceId, keyFormat, keyType } + +structure GetInstanceTpmEkPubResult where + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- The public endorsement key format. -/ + keyFormat : Option EkPubKeyFormat := none + /-- The public endorsement key type. -/ + keyType : Option EkPubKeyType := none + /-- The public endorsement key material. -/ + keyValue : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetInstanceTpmEkPubResult where + schema := .struct "GetInstanceTpmEkPubResult" [({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "KeyFormat", xmlName := some "keyFormat", queryName := some "KeyFormat" }, (Shape.schema EkPubKeyFormat)), + ({ name := "KeyType", xmlName := some "keyType", queryName := some "KeyType" }, (Shape.schema EkPubKeyType)), + ({ name := "KeyValue", xmlName := some "keyValue", queryName := some "KeyValue" }, .string)] + toValue x := record [putOpt "InstanceId" x.instanceId, putOpt "KeyFormat" x.keyFormat, putOpt "KeyType" x.keyType, putOpt "KeyValue" x.keyValue] + ofValue v := do + let instanceId ← v.opt "InstanceId" + let keyFormat ← v.opt "KeyFormat" + let keyType ← v.opt "KeyType" + let keyValue ← v.opt "KeyValue" + return { instanceId, keyFormat, keyType, keyValue } + +structure GetInstanceTypesFromInstanceRequirementsResult where + /-- The instance types with the specified instance attributes. -/ + instanceTypes : Option (List InstanceTypeInfoFromInstanceRequirements) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetInstanceTypesFromInstanceRequirementsResult where + schema := .struct "GetInstanceTypesFromInstanceRequirementsResult" [({ name := "InstanceTypes", xmlName := some "instanceTypeSet", queryName := some "InstanceTypeSet" }, (.list (Shape.schema InstanceTypeInfoFromInstanceRequirements) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "InstanceTypes" x.instanceTypes, putOpt "NextToken" x.nextToken] + ofValue v := do + let instanceTypes ← v.opt "InstanceTypes" + let nextToken ← v.opt "NextToken" + return { instanceTypes, nextToken } + +structure GetIpamDiscoveredAccountsRequest where + /-- The Amazon Web Services Region that the account information is returned from. -/ + discoveryRegion : String + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- Discovered account filters. -/ + filters : Option (List Filter) := none + /-- A resource discovery ID. -/ + ipamResourceDiscoveryId : String + /-- The maximum number of discovered accounts to return in one page of results. -/ + maxResults : Option Int := none + /-- Specify the pagination token from a previous request to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamDiscoveredAccountsRequest where + schema := .struct "GetIpamDiscoveredAccountsRequest" [({ name := "DiscoveryRegion", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamResourceDiscoveryId", required := true }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [put "DiscoveryRegion" x.discoveryRegion, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, put "IpamResourceDiscoveryId" x.ipamResourceDiscoveryId, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let discoveryRegion ← v.req "DiscoveryRegion" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamResourceDiscoveryId ← v.req "IpamResourceDiscoveryId" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { discoveryRegion, dryRun, filters, ipamResourceDiscoveryId, maxResults, nextToken } + +structure GetIpamDiscoveredPublicAddressesRequest where + /-- The Amazon Web Services Region for the IP address. -/ + addressRegion : String + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- Filters. -/ + filters : Option (List Filter) := none + /-- An IPAM resource discovery ID. -/ + ipamResourceDiscoveryId : String + /-- The maximum number of IPAM discovered public addresses to return in one page of results. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamDiscoveredPublicAddressesRequest where + schema := .struct "GetIpamDiscoveredPublicAddressesRequest" [({ name := "AddressRegion", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamResourceDiscoveryId", required := true }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [put "AddressRegion" x.addressRegion, putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, put "IpamResourceDiscoveryId" x.ipamResourceDiscoveryId, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let addressRegion ← v.req "AddressRegion" + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamResourceDiscoveryId ← v.req "IpamResourceDiscoveryId" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { addressRegion, dryRun, filters, ipamResourceDiscoveryId, maxResults, nextToken } + +structure GetIpamDiscoveredResourceCidrsRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- Filters. -/ + filters : Option (List Filter) := none + /-- A resource discovery ID. -/ + ipamResourceDiscoveryId : String + /-- The maximum number of discovered resource CIDRs to return in one page of results. -/ + maxResults : Option Int := none + /-- Specify the pagination token from a previous request to retrieve the next page of results. -/ + nextToken : Option String := none + /-- A resource Region. -/ + resourceRegion : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamDiscoveredResourceCidrsRequest where + schema := .struct "GetIpamDiscoveredResourceCidrsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamResourceDiscoveryId", required := true }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "ResourceRegion", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, put "IpamResourceDiscoveryId" x.ipamResourceDiscoveryId, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "ResourceRegion" x.resourceRegion] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamResourceDiscoveryId ← v.req "IpamResourceDiscoveryId" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let resourceRegion ← v.req "ResourceRegion" + return { dryRun, filters, ipamResourceDiscoveryId, maxResults, nextToken, resourceRegion } + +structure GetIpamDiscoveredRoutesRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters to apply to the results. -/ + filters : Option (List Filter) := none + /-- The ID of the IPAM resource discovery. -/ + ipamResourceDiscoveryId : String + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The Amazon Web Services Region to retrieve discovered routes for. -/ + resourceRegion : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamDiscoveredRoutesRequest where + schema := .struct "GetIpamDiscoveredRoutesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamResourceDiscoveryId", required := true }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "ResourceRegion", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, put "IpamResourceDiscoveryId" x.ipamResourceDiscoveryId, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "ResourceRegion" x.resourceRegion] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamResourceDiscoveryId ← v.req "IpamResourceDiscoveryId" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let resourceRegion ← v.req "ResourceRegion" + return { dryRun, filters, ipamResourceDiscoveryId, maxResults, nextToken, resourceRegion } + +structure GetIpamInternetRegistryAssociationAsnsRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters to apply to the results. -/ + filters : Option (List Filter) := none + /-- The ID of the IPAM internet registry association. -/ + ipamInternetRegistryAssociationId : String + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamInternetRegistryAssociationAsnsRequest where + schema := .struct "GetIpamInternetRegistryAssociationAsnsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamInternetRegistryAssociationId", required := true }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, put "IpamInternetRegistryAssociationId" x.ipamInternetRegistryAssociationId, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamInternetRegistryAssociationId ← v.req "IpamInternetRegistryAssociationId" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, ipamInternetRegistryAssociationId, maxResults, nextToken } + +structure GetIpamInternetRegistryAssociationAsnsResult where + /-- The ASNs registered with the internet registry. -/ + ipamInternetRegistryAssociationAsns : Option (List IpamInternetRegistryAssociationAsn) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamInternetRegistryAssociationAsnsResult where + schema := .struct "GetIpamInternetRegistryAssociationAsnsResult" [({ name := "IpamInternetRegistryAssociationAsns", xmlName := some "ipamInternetRegistryAssociationAsnSet", queryName := some "IpamInternetRegistryAssociationAsnSet" }, (.list (Shape.schema IpamInternetRegistryAssociationAsn) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamInternetRegistryAssociationAsns" x.ipamInternetRegistryAssociationAsns, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamInternetRegistryAssociationAsns ← v.opt "IpamInternetRegistryAssociationAsns" + let nextToken ← v.opt "NextToken" + return { ipamInternetRegistryAssociationAsns, nextToken } + +structure GetIpamInternetRegistryAssociationCidrsRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters to apply to the results. -/ + filters : Option (List Filter) := none + /-- The ID of the IPAM internet registry association. -/ + ipamInternetRegistryAssociationId : String + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamInternetRegistryAssociationCidrsRequest where + schema := .struct "GetIpamInternetRegistryAssociationCidrsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamInternetRegistryAssociationId", required := true }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, put "IpamInternetRegistryAssociationId" x.ipamInternetRegistryAssociationId, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamInternetRegistryAssociationId ← v.req "IpamInternetRegistryAssociationId" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, ipamInternetRegistryAssociationId, maxResults, nextToken } + +structure GetIpamInternetRegistryAssociationCidrsResult where + /-- The CIDRs registered with the internet registry. -/ + ipamInternetRegistryAssociationCidrs : Option (List IpamInternetRegistryAssociationCidr) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamInternetRegistryAssociationCidrsResult where + schema := .struct "GetIpamInternetRegistryAssociationCidrsResult" [({ name := "IpamInternetRegistryAssociationCidrs", xmlName := some "ipamInternetRegistryAssociationCidrSet", queryName := some "IpamInternetRegistryAssociationCidrSet" }, (.list (Shape.schema IpamInternetRegistryAssociationCidr) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamInternetRegistryAssociationCidrs" x.ipamInternetRegistryAssociationCidrs, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamInternetRegistryAssociationCidrs ← v.opt "IpamInternetRegistryAssociationCidrs" + let nextToken ← v.opt "NextToken" + return { ipamInternetRegistryAssociationCidrs, nextToken } + +structure GetIpamPolicyAllocationRulesRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters for the allocation rules. -/ + filters : Option (List Filter) := none + /-- The ID of the IPAM policy for which to get allocation rules. -/ + ipamPolicyId : String + /-- The locale for which to get the allocation rules. -/ + locale : Option String := none + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The resource type for which to get the allocation rules. -/ + resourceType : Option IpamPolicyResourceType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamPolicyAllocationRulesRequest where + schema := .struct "GetIpamPolicyAllocationRulesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamPolicyId", required := true }, .string), + ({ name := "Locale" }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "ResourceType" }, (Shape.schema IpamPolicyResourceType))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, put "IpamPolicyId" x.ipamPolicyId, putOpt "Locale" x.locale, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "ResourceType" x.resourceType] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamPolicyId ← v.req "IpamPolicyId" + let locale ← v.opt "Locale" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let resourceType ← v.opt "ResourceType" + return { dryRun, filters, ipamPolicyId, locale, maxResults, nextToken, resourceType } + +structure GetIpamPolicyOrganizationTargetsRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters for the Amazon Web Services Organizations targets. -/ + filters : Option (List Filter) := none + /-- The ID of the IPAM policy for which to get Amazon Web Services Organizations targets. -/ + ipamPolicyId : String + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamPolicyOrganizationTargetsRequest where + schema := .struct "GetIpamPolicyOrganizationTargetsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamPolicyId", required := true }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, put "IpamPolicyId" x.ipamPolicyId, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamPolicyId ← v.req "IpamPolicyId" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, ipamPolicyId, maxResults, nextToken } + +structure GetIpamPolicyOrganizationTargetsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- The IDs of the Amazon Web Services Organizations targets. -/ + organizationTargets : Option (List IpamPolicyOrganizationTarget) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamPolicyOrganizationTargetsResult where + schema := .struct "GetIpamPolicyOrganizationTargetsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "OrganizationTargets", xmlName := some "organizationTargetSet", queryName := some "OrganizationTargetSet" }, (.list (Shape.schema IpamPolicyOrganizationTarget) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "OrganizationTargets" x.organizationTargets] + ofValue v := do + let nextToken ← v.opt "NextToken" + let organizationTargets ← v.opt "OrganizationTargets" + return { nextToken, organizationTargets } + +structure GetIpamPoolAllocationsRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters for the request. -/ + filters : Option (List Filter) := none + /-- The ID of the allocation. -/ + ipamPoolAllocationId : Option String := none + /-- The ID of the IPAM pool you want to see the allocations for. -/ + ipamPoolId : String + /-- The maximum number of results you would like returned per page. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamPoolAllocationsRequest where + schema := .struct "GetIpamPoolAllocationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamPoolAllocationId" }, .string), + ({ name := "IpamPoolId", required := true }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IpamPoolAllocationId" x.ipamPoolAllocationId, put "IpamPoolId" x.ipamPoolId, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamPoolAllocationId ← v.opt "IpamPoolAllocationId" + let ipamPoolId ← v.req "IpamPoolId" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, ipamPoolAllocationId, ipamPoolId, maxResults, nextToken } + +structure GetIpamPoolCidrsRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters for the request. -/ + filters : Option (List Filter) := none + /-- The ID of the IPAM pool you want the CIDR for. -/ + ipamPoolId : String + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamPoolCidrsRequest where + schema := .struct "GetIpamPoolCidrsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamPoolId", required := true }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, put "IpamPoolId" x.ipamPoolId, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamPoolId ← v.req "IpamPoolId" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, ipamPoolId, maxResults, nextToken } + +structure GetIpamPrefixListResolverRulesRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters to limit the results. -/ + filters : Option (List Filter) := none + /-- The ID of the IPAM prefix list resolver whose rules you want to retrieve. -/ + ipamPrefixListResolverId : String + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamPrefixListResolverRulesRequest where + schema := .struct "GetIpamPrefixListResolverRulesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamPrefixListResolverId", required := true }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, put "IpamPrefixListResolverId" x.ipamPrefixListResolverId, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamPrefixListResolverId ← v.req "IpamPrefixListResolverId" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, ipamPrefixListResolverId, maxResults, nextToken } + +structure GetIpamPrefixListResolverVersionEntriesResult where + /-- The CIDR entries for the specified resolver version. -/ + entries : Option (List IpamPrefixListResolverVersionEntry) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamPrefixListResolverVersionEntriesResult where + schema := .struct "GetIpamPrefixListResolverVersionEntriesResult" [({ name := "Entries", xmlName := some "entrySet", queryName := some "EntrySet" }, (.list (Shape.schema IpamPrefixListResolverVersionEntry) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "Entries" x.entries, putOpt "NextToken" x.nextToken] + ofValue v := do + let entries ← v.opt "Entries" + let nextToken ← v.opt "NextToken" + return { entries, nextToken } + +structure GetIpamPrefixListResolverVersionsRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters to limit the results. -/ + filters : Option (List Filter) := none + /-- The ID of the IPAM prefix list resolver whose versions you want to retrieve. -/ + ipamPrefixListResolverId : String + /-- Specific version numbers to retrieve. -/ + ipamPrefixListResolverVersions : Option (List Int) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamPrefixListResolverVersionsRequest where + schema := .struct "GetIpamPrefixListResolverVersionsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamPrefixListResolverId", required := true }, .string), + ({ name := "IpamPrefixListResolverVersions", xmlName := some "IpamPrefixListResolverVersion" }, (.list .int "item")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, put "IpamPrefixListResolverId" x.ipamPrefixListResolverId, putOpt "IpamPrefixListResolverVersions" x.ipamPrefixListResolverVersions, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamPrefixListResolverId ← v.req "IpamPrefixListResolverId" + let ipamPrefixListResolverVersions ← v.opt "IpamPrefixListResolverVersions" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, ipamPrefixListResolverId, ipamPrefixListResolverVersions, maxResults, nextToken } + +structure GetIpamPrefixListResolverVersionsResult where + /-- Information about the IPAM prefix list resolver versions. -/ + ipamPrefixListResolverVersions : Option (List IpamPrefixListResolverVersion) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamPrefixListResolverVersionsResult where + schema := .struct "GetIpamPrefixListResolverVersionsResult" [({ name := "IpamPrefixListResolverVersions", xmlName := some "ipamPrefixListResolverVersionSet", queryName := some "IpamPrefixListResolverVersionSet" }, (.list (Shape.schema IpamPrefixListResolverVersion) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamPrefixListResolverVersions" x.ipamPrefixListResolverVersions, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamPrefixListResolverVersions ← v.opt "IpamPrefixListResolverVersions" + let nextToken ← v.opt "NextToken" + return { ipamPrefixListResolverVersions, nextToken } + +structure GetIpamResourceCidrsRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters for the request. -/ + filters : Option (List Filter) := none + /-- The ID of the IPAM pool that the resource is in. -/ + ipamPoolId : Option String := none + /-- The ID of the scope that the resource is in. -/ + ipamScopeId : String + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the resource. -/ + resourceId : Option String := none + /-- The ID of the Amazon Web Services account that owns the resource. -/ + resourceOwner : Option String := none + /-- The resource tag. -/ + resourceTag : Option RequestIpamResourceTag := none + /-- The resource type. -/ + resourceType : Option IpamResourceType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamResourceCidrsRequest where + schema := .struct "GetIpamResourceCidrsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamPoolId" }, .string), + ({ name := "IpamScopeId", required := true }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "ResourceId" }, .string), + ({ name := "ResourceOwner" }, .string), + ({ name := "ResourceTag" }, (Shape.schema RequestIpamResourceTag)), + ({ name := "ResourceType" }, (Shape.schema IpamResourceType))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "IpamPoolId" x.ipamPoolId, put "IpamScopeId" x.ipamScopeId, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "ResourceId" x.resourceId, putOpt "ResourceOwner" x.resourceOwner, putOpt "ResourceTag" x.resourceTag, putOpt "ResourceType" x.resourceType] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamPoolId ← v.opt "IpamPoolId" + let ipamScopeId ← v.req "IpamScopeId" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let resourceId ← v.opt "ResourceId" + let resourceOwner ← v.opt "ResourceOwner" + let resourceTag ← v.opt "ResourceTag" + let resourceType ← v.opt "ResourceType" + return { dryRun, filters, ipamPoolId, ipamScopeId, maxResults, nextToken, resourceId, resourceOwner, resourceTag, resourceType } + +structure GetIpamRouteOriginAuthorizationsResult where + /-- The Route Origin Authorizations published to the RPKI. -/ + ipamRouteOriginAuthorizations : Option (List IpamRouteOriginAuthorizationInfo) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamRouteOriginAuthorizationsResult where + schema := .struct "GetIpamRouteOriginAuthorizationsResult" [({ name := "IpamRouteOriginAuthorizations", xmlName := some "ipamRouteOriginAuthorizationSet", queryName := some "IpamRouteOriginAuthorizationSet" }, (.list (Shape.schema IpamRouteOriginAuthorizationInfo) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamRouteOriginAuthorizations" x.ipamRouteOriginAuthorizations, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamRouteOriginAuthorizations ← v.opt "IpamRouteOriginAuthorizations" + let nextToken ← v.opt "NextToken" + return { ipamRouteOriginAuthorizations, nextToken } + +structure GetIpamRouteProtectionFindingsRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters to apply to the results. -/ + filters : Option (List Filter) := none + /-- The ID of the IPAM to retrieve route protection findings for. -/ + ipamId : String + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamRouteProtectionFindingsRequest where + schema := .struct "GetIpamRouteProtectionFindingsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "IpamId", required := true }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, put "IpamId" x.ipamId, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let ipamId ← v.req "IpamId" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, ipamId, maxResults, nextToken } + +structure GetIpamRoutingPolicyRegistrationDeltasRequest where + /-- The chronological order to return results in. -/ + chronologicalOrder : Option ChronologicalOrder := none + /-- Filter results to a specific delta ID. -/ + deltaId : Option String := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The end of the time range to filter deltas by. -/ + endTime : Option Timestamp := none + /-- The ID of the IPAM internet registry association. -/ + ipamInternetRegistryAssociationId : String + /-- The maximum number of results to return in a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The start of the time range to filter deltas by. -/ + startTime : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamRoutingPolicyRegistrationDeltasRequest where + schema := .struct "GetIpamRoutingPolicyRegistrationDeltasRequest" [({ name := "ChronologicalOrder" }, (Shape.schema ChronologicalOrder)), + ({ name := "DeltaId" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "EndTime" }, (.time none)), + ({ name := "IpamInternetRegistryAssociationId", required := true }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "StartTime" }, (.time none))] + toValue x := record [putOpt "ChronologicalOrder" x.chronologicalOrder, putOpt "DeltaId" x.deltaId, putOpt "DryRun" x.dryRun, putOpt "EndTime" x.endTime, put "IpamInternetRegistryAssociationId" x.ipamInternetRegistryAssociationId, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "StartTime" x.startTime] + ofValue v := do + let chronologicalOrder ← v.opt "ChronologicalOrder" + let deltaId ← v.opt "DeltaId" + let dryRun ← v.opt "DryRun" + let endTime ← v.opt "EndTime" + let ipamInternetRegistryAssociationId ← v.req "IpamInternetRegistryAssociationId" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let startTime ← v.opt "StartTime" + return { chronologicalOrder, deltaId, dryRun, endTime, ipamInternetRegistryAssociationId, maxResults, nextToken, startTime } + +structure GetManagedPrefixListAssociationsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the associations. -/ + prefixListAssociations : Option (List PrefixListAssociation) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetManagedPrefixListAssociationsResult where + schema := .struct "GetManagedPrefixListAssociationsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "PrefixListAssociations", xmlName := some "prefixListAssociationSet", queryName := some "PrefixListAssociationSet" }, (.list (Shape.schema PrefixListAssociation) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "PrefixListAssociations" x.prefixListAssociations] + ofValue v := do + let nextToken ← v.opt "NextToken" + let prefixListAssociations ← v.opt "PrefixListAssociations" + return { nextToken, prefixListAssociations } + +structure GetManagedPrefixListEntriesResult where + /-- Information about the prefix list entries. -/ + entries : Option (List PrefixListEntry) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetManagedPrefixListEntriesResult where + schema := .struct "GetManagedPrefixListEntriesResult" [({ name := "Entries", xmlName := some "entrySet", queryName := some "EntrySet" }, (.list (Shape.schema PrefixListEntry) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "Entries" x.entries, putOpt "NextToken" x.nextToken] + ofValue v := do + let entries ← v.opt "Entries" + let nextToken ← v.opt "NextToken" + return { entries, nextToken } + +/-- Contains the parameters for GetReservedInstanceExchangeQuote. -/ +structure GetReservedInstancesExchangeQuoteRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the Convertible Reserved Instances to exchange. -/ + reservedInstanceIds : (List String) + /-- The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances. -/ + targetConfigurations : Option (List TargetConfigurationRequest) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetReservedInstancesExchangeQuoteRequest where + schema := .struct "GetReservedInstancesExchangeQuoteRequest" [({ name := "DryRun" }, .bool), + ({ name := "ReservedInstanceIds", required := true, xmlName := some "ReservedInstanceId" }, (.list .string "ReservedInstanceId")), + ({ name := "TargetConfigurations", xmlName := some "TargetConfiguration" }, (.list (Shape.schema TargetConfigurationRequest) "TargetConfigurationRequest"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "ReservedInstanceIds" x.reservedInstanceIds, putOpt "TargetConfigurations" x.targetConfigurations] + ofValue v := do + let dryRun ← v.opt "DryRun" + let reservedInstanceIds ← v.req "ReservedInstanceIds" + let targetConfigurations ← v.opt "TargetConfigurations" + return { dryRun, reservedInstanceIds, targetConfigurations } + +structure GetRouteServerRoutingDatabaseRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- Filters to apply to the routing database query. -/ + filters : Option (List Filter) := none + /-- The maximum number of routing database entries to return in a single response. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the route server for which to get the routing database. -/ + routeServerId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetRouteServerRoutingDatabaseRequest where + schema := .struct "GetRouteServerRoutingDatabaseRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "RouteServerId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "RouteServerId" x.routeServerId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let routeServerId ← v.req "RouteServerId" + return { dryRun, filters, maxResults, nextToken, routeServerId } + +structure GetSecurityGroupsForVpcRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The VPC ID where the security group can be used. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetSecurityGroupsForVpcRequest where + schema := .struct "GetSecurityGroupsForVpcRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "VpcId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "VpcId" x.vpcId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let vpcId ← v.req "VpcId" + return { dryRun, filters, maxResults, nextToken, vpcId } + +structure GetSerialConsoleAccessStatusResult where + /-- The entity that manages access to the serial console. -/ + managedBy : Option ManagedBy := none + /-- If true , access to the EC2 serial console of all instances is enabled for your account. -/ + serialConsoleAccessEnabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetSerialConsoleAccessStatusResult where + schema := .struct "GetSerialConsoleAccessStatusResult" [({ name := "ManagedBy", xmlName := some "managedBy", queryName := some "ManagedBy" }, (Shape.schema ManagedBy)), + ({ name := "SerialConsoleAccessEnabled", xmlName := some "serialConsoleAccessEnabled", queryName := some "SerialConsoleAccessEnabled" }, .bool)] + toValue x := record [putOpt "ManagedBy" x.managedBy, putOpt "SerialConsoleAccessEnabled" x.serialConsoleAccessEnabled] + ofValue v := do + let managedBy ← v.opt "ManagedBy" + let serialConsoleAccessEnabled ← v.opt "SerialConsoleAccessEnabled" + return { managedBy, serialConsoleAccessEnabled } + +structure GetSnapshotBlockPublicAccessStateResult where + /-- The entity that manages the state for block public access for snapshots. -/ + managedBy : Option ManagedBy := none + /-- The current state of block public access for snapshots. -/ + state : Option SnapshotBlockPublicAccessState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetSnapshotBlockPublicAccessStateResult where + schema := .struct "GetSnapshotBlockPublicAccessStateResult" [({ name := "ManagedBy", xmlName := some "managedBy", queryName := some "ManagedBy" }, (Shape.schema ManagedBy)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema SnapshotBlockPublicAccessState))] + toValue x := record [putOpt "ManagedBy" x.managedBy, putOpt "State" x.state] + ofValue v := do + let managedBy ← v.opt "ManagedBy" + let state ← v.opt "State" + return { managedBy, state } + +structure GetSpotPlacementScoresResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- The Spot placement score for the top 10 Regions or Availability Zones, scored on a scale from 1 to 10. -/ + spotPlacementScores : Option (List SpotPlacementScore) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetSpotPlacementScoresResult where + schema := .struct "GetSpotPlacementScoresResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "SpotPlacementScores", xmlName := some "spotPlacementScoreSet", queryName := some "SpotPlacementScoreSet" }, (.list (Shape.schema SpotPlacementScore) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "SpotPlacementScores" x.spotPlacementScores] + ofValue v := do + let nextToken ← v.opt "NextToken" + let spotPlacementScores ← v.opt "SpotPlacementScores" + return { nextToken, spotPlacementScores } + +structure GetSubnetCidrReservationsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the subnet. -/ + subnetId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetSubnetCidrReservationsRequest where + schema := .struct "GetSubnetCidrReservationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "SubnetId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "SubnetId" x.subnetId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let subnetId ← v.req "SubnetId" + return { dryRun, filters, maxResults, nextToken, subnetId } + +structure GetTransitGatewayAttachmentPropagationsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetTransitGatewayAttachmentPropagationsRequest where + schema := .struct "GetTransitGatewayAttachmentPropagationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayAttachmentId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + return { dryRun, filters, maxResults, nextToken, transitGatewayAttachmentId } + +structure GetTransitGatewayMeteringPolicyEntriesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters to apply when retrieving metering policy entries. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the transit gateway metering policy to retrieve entries for. -/ + transitGatewayMeteringPolicyId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetTransitGatewayMeteringPolicyEntriesRequest where + schema := .struct "GetTransitGatewayMeteringPolicyEntriesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayMeteringPolicyId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "TransitGatewayMeteringPolicyId" x.transitGatewayMeteringPolicyId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayMeteringPolicyId ← v.req "TransitGatewayMeteringPolicyId" + return { dryRun, filters, maxResults, nextToken, transitGatewayMeteringPolicyId } + +structure GetTransitGatewayMulticastDomainAssociationsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the transit gateway multicast domain. -/ + transitGatewayMulticastDomainId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetTransitGatewayMulticastDomainAssociationsRequest where + schema := .struct "GetTransitGatewayMulticastDomainAssociationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayMulticastDomainId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "TransitGatewayMulticastDomainId" x.transitGatewayMulticastDomainId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayMulticastDomainId ← v.req "TransitGatewayMulticastDomainId" + return { dryRun, filters, maxResults, nextToken, transitGatewayMulticastDomainId } + +structure GetTransitGatewayPolicyTableAssociationsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The filters associated with the transit gateway policy table. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the transit gateway policy table. -/ + transitGatewayPolicyTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetTransitGatewayPolicyTableAssociationsRequest where + schema := .struct "GetTransitGatewayPolicyTableAssociationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayPolicyTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "TransitGatewayPolicyTableId" x.transitGatewayPolicyTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayPolicyTableId ← v.req "TransitGatewayPolicyTableId" + return { dryRun, filters, maxResults, nextToken, transitGatewayPolicyTableId } + +structure GetTransitGatewayPolicyTableEntriesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the transit gateway policy table. -/ + transitGatewayPolicyTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetTransitGatewayPolicyTableEntriesRequest where + schema := .struct "GetTransitGatewayPolicyTableEntriesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayPolicyTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "TransitGatewayPolicyTableId" x.transitGatewayPolicyTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayPolicyTableId ← v.req "TransitGatewayPolicyTableId" + return { dryRun, filters, maxResults, nextToken, transitGatewayPolicyTableId } + +structure GetTransitGatewayPrefixListReferencesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the transit gateway route table. -/ + transitGatewayRouteTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetTransitGatewayPrefixListReferencesRequest where + schema := .struct "GetTransitGatewayPrefixListReferencesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayRouteTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayRouteTableId ← v.req "TransitGatewayRouteTableId" + return { dryRun, filters, maxResults, nextToken, transitGatewayRouteTableId } + +structure GetTransitGatewayRouteTableAssociationsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the transit gateway route table. -/ + transitGatewayRouteTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetTransitGatewayRouteTableAssociationsRequest where + schema := .struct "GetTransitGatewayRouteTableAssociationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayRouteTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayRouteTableId ← v.req "TransitGatewayRouteTableId" + return { dryRun, filters, maxResults, nextToken, transitGatewayRouteTableId } + +structure GetTransitGatewayRouteTablePropagationsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the transit gateway route table. -/ + transitGatewayRouteTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetTransitGatewayRouteTablePropagationsRequest where + schema := .struct "GetTransitGatewayRouteTablePropagationsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayRouteTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayRouteTableId ← v.req "TransitGatewayRouteTableId" + return { dryRun, filters, maxResults, nextToken, transitGatewayRouteTableId } + +structure GetVerifiedAccessEndpointTargetsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- The Verified Access targets. -/ + verifiedAccessEndpointTargets : Option (List VerifiedAccessEndpointTarget) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetVerifiedAccessEndpointTargetsResult where + schema := .struct "GetVerifiedAccessEndpointTargetsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "VerifiedAccessEndpointTargets", xmlName := some "verifiedAccessEndpointTargetSet", queryName := some "VerifiedAccessEndpointTargetSet" }, (.list (Shape.schema VerifiedAccessEndpointTarget) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "VerifiedAccessEndpointTargets" x.verifiedAccessEndpointTargets] + ofValue v := do + let nextToken ← v.opt "NextToken" + let verifiedAccessEndpointTargets ← v.opt "VerifiedAccessEndpointTargets" + return { nextToken, verifiedAccessEndpointTargets } + +structure GetVpcResourcesBlockingEncryptionEnforcementResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about resources that are blocking encryption enforcement. -/ + nonCompliantResources : Option (List VpcEncryptionNonCompliantResource) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetVpcResourcesBlockingEncryptionEnforcementResult where + schema := .struct "GetVpcResourcesBlockingEncryptionEnforcementResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "NonCompliantResources", xmlName := some "nonCompliantResourceSet", queryName := some "NonCompliantResourceSet" }, (.list (Shape.schema VpcEncryptionNonCompliantResource) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "NonCompliantResources" x.nonCompliantResources] + ofValue v := do + let nextToken ← v.opt "NextToken" + let nonCompliantResources ← v.opt "NonCompliantResources" + return { nextToken, nonCompliantResources } + +structure GetVpnConnectionDeviceTypesResult where + /-- The NextToken value to include in a future GetVpnConnectionDeviceTypes request. -/ + nextToken : Option String := none + /-- List of customer gateway devices that have a sample configuration file available for use. -/ + vpnConnectionDeviceTypes : Option (List VpnConnectionDeviceType) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetVpnConnectionDeviceTypesResult where + schema := .struct "GetVpnConnectionDeviceTypesResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "VpnConnectionDeviceTypes", xmlName := some "vpnConnectionDeviceTypeSet", queryName := some "VpnConnectionDeviceTypeSet" }, (.list (Shape.schema VpnConnectionDeviceType) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "VpnConnectionDeviceTypes" x.vpnConnectionDeviceTypes] + ofValue v := do + let nextToken ← v.opt "NextToken" + let vpnConnectionDeviceTypes ← v.opt "VpnConnectionDeviceTypes" + return { nextToken, vpnConnectionDeviceTypes } + +structure GetVpnTunnelReplacementStatusResult where + /-- The ID of the customer gateway. -/ + customerGatewayId : Option String := none + /-- Get details of pending tunnel endpoint maintenance. -/ + maintenanceDetails : Option MaintenanceDetails := none + /-- The ID of the transit gateway associated with the VPN connection. -/ + transitGatewayId : Option String := none + /-- The ID of the Site-to-Site VPN connection. -/ + vpnConnectionId : Option String := none + /-- The ID of the virtual private gateway. -/ + vpnGatewayId : Option String := none + /-- The external IP address of the VPN tunnel. -/ + vpnTunnelOutsideIpAddress : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetVpnTunnelReplacementStatusResult where + schema := .struct "GetVpnTunnelReplacementStatusResult" [({ name := "CustomerGatewayId", xmlName := some "customerGatewayId", queryName := some "CustomerGatewayId" }, .string), + ({ name := "MaintenanceDetails", xmlName := some "maintenanceDetails", queryName := some "MaintenanceDetails" }, (Shape.schema MaintenanceDetails)), + ({ name := "TransitGatewayId", xmlName := some "transitGatewayId", queryName := some "TransitGatewayId" }, .string), + ({ name := "VpnConnectionId", xmlName := some "vpnConnectionId", queryName := some "VpnConnectionId" }, .string), + ({ name := "VpnGatewayId", xmlName := some "vpnGatewayId", queryName := some "VpnGatewayId" }, .string), + ({ name := "VpnTunnelOutsideIpAddress", xmlName := some "vpnTunnelOutsideIpAddress", queryName := some "VpnTunnelOutsideIpAddress" }, .string)] + toValue x := record [putOpt "CustomerGatewayId" x.customerGatewayId, putOpt "MaintenanceDetails" x.maintenanceDetails, putOpt "TransitGatewayId" x.transitGatewayId, putOpt "VpnConnectionId" x.vpnConnectionId, putOpt "VpnGatewayId" x.vpnGatewayId, putOpt "VpnTunnelOutsideIpAddress" x.vpnTunnelOutsideIpAddress] + ofValue v := do + let customerGatewayId ← v.opt "CustomerGatewayId" + let maintenanceDetails ← v.opt "MaintenanceDetails" + let transitGatewayId ← v.opt "TransitGatewayId" + let vpnConnectionId ← v.opt "VpnConnectionId" + let vpnGatewayId ← v.opt "VpnGatewayId" + let vpnTunnelOutsideIpAddress ← v.opt "VpnTunnelOutsideIpAddress" + return { customerGatewayId, maintenanceDetails, transitGatewayId, vpnConnectionId, vpnGatewayId, vpnTunnelOutsideIpAddress } + +/-- Describes the GPU accelerators for the instance type. -/ +structure GpuDeviceInfo where + /-- The number of GPUs for the instance type. -/ + count : Option Int := none + /-- The size of each GPU as a fraction of a full GPU, between 0 (excluded) and 1 (included). -/ + gpuPartitionSize : Option JsonNumber := none + /-- Total number of GPU devices of this type. -/ + logicalGpuCount : Option Int := none + /-- The manufacturer of the GPU accelerator. -/ + manufacturer : Option String := none + /-- Describes the memory available to the GPU accelerator. -/ + memoryInfo : Option GpuDeviceMemoryInfo := none + /-- The name of the GPU accelerator. -/ + name : Option String := none + /-- A list of workload types this GPU supports. -/ + workloads : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GpuDeviceInfo where + schema := .struct "GpuDeviceInfo" [({ name := "Count", xmlName := some "count", queryName := some "Count" }, .int), + ({ name := "GpuPartitionSize", xmlName := some "gpuPartitionSize", queryName := some "GpuPartitionSize" }, .number), + ({ name := "LogicalGpuCount", xmlName := some "logicalGpuCount", queryName := some "LogicalGpuCount" }, .int), + ({ name := "Manufacturer", xmlName := some "manufacturer", queryName := some "Manufacturer" }, .string), + ({ name := "MemoryInfo", xmlName := some "memoryInfo", queryName := some "MemoryInfo" }, (Shape.schema GpuDeviceMemoryInfo)), + ({ name := "Name", xmlName := some "name", queryName := some "Name" }, .string), + ({ name := "Workloads", xmlName := some "workloadSet", queryName := some "WorkloadSet" }, (.list .string "item"))] + toValue x := record [putOpt "Count" x.count, putOpt "GpuPartitionSize" x.gpuPartitionSize, putOpt "LogicalGpuCount" x.logicalGpuCount, putOpt "Manufacturer" x.manufacturer, putOpt "MemoryInfo" x.memoryInfo, putOpt "Name" x.name, putOpt "Workloads" x.workloads] + ofValue v := do + let count ← v.opt "Count" + let gpuPartitionSize ← v.opt "GpuPartitionSize" + let logicalGpuCount ← v.opt "LogicalGpuCount" + let manufacturer ← v.opt "Manufacturer" + let memoryInfo ← v.opt "MemoryInfo" + let name ← v.opt "Name" + let workloads ← v.opt "Workloads" + return { count, gpuPartitionSize, logicalGpuCount, manufacturer, memoryInfo, name, workloads } + +/-- Describes a health check path for an application status check request. -/ +structure HealthCheckPathRequestObject where + /-- The destinations for the health check path. -/ + destinations : Option (List HealthCheckPathDestinationRequestObject) := none + /-- The source for the health check path. -/ + source : Option HealthCheckPathSourceRequestObject := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape HealthCheckPathRequestObject where + schema := .struct "HealthCheckPathRequestObject" [({ name := "Destinations", xmlName := some "Destination" }, (.list (Shape.schema HealthCheckPathDestinationRequestObject) "item")), + ({ name := "Source" }, (Shape.schema HealthCheckPathSourceRequestObject))] + toValue x := record [putOpt "Destinations" x.destinations, putOpt "Source" x.source] + ofValue v := do + let destinations ← v.opt "Destinations" + let source ← v.opt "Source" + return { destinations, source } + +/-- Describes a health check path for an application status check. -/ +structure HealthCheckPathResponseObject where + /-- The destinations for the health check path. -/ + destinations : Option (List HealthCheckPathDestinationResponseObject) := none + /-- The source for the health check path. -/ + source : Option HealthCheckPathSourceResponseObject := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape HealthCheckPathResponseObject where + schema := .struct "HealthCheckPathResponseObject" [({ name := "Destinations", xmlName := some "destinationSet", queryName := some "DestinationSet" }, (.list (Shape.schema HealthCheckPathDestinationResponseObject) "item")), + ({ name := "Source", xmlName := some "source", queryName := some "Source" }, (Shape.schema HealthCheckPathSourceResponseObject))] + toValue x := record [putOpt "Destinations" x.destinations, putOpt "Source" x.source] + ofValue v := do + let destinations ← v.opt "Destinations" + let source ← v.opt "Source" + return { destinations, source } + +/-- Describes an event in the history of the Spot Fleet request. -/ +structure HistoryRecord where + /-- Information about the event. -/ + eventInformation : Option EventInformation := none + /-- The event type. -/ + eventType : Option EventType := none + /-- The date and time of the event, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). -/ + timestamp : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape HistoryRecord where + schema := .struct "HistoryRecord" [({ name := "EventInformation", xmlName := some "eventInformation", queryName := some "EventInformation" }, (Shape.schema EventInformation)), + ({ name := "EventType", xmlName := some "eventType", queryName := some "EventType" }, (Shape.schema EventType)), + ({ name := "Timestamp", xmlName := some "timestamp", queryName := some "Timestamp" }, (.time none))] + toValue x := record [putOpt "EventInformation" x.eventInformation, putOpt "EventType" x.eventType, putOpt "Timestamp" x.timestamp] + ofValue v := do + let eventInformation ← v.opt "EventInformation" + let eventType ← v.opt "EventType" + let timestamp ← v.opt "Timestamp" + return { eventInformation, eventType, timestamp } + +/-- Describes an event in the history of an EC2 Fleet. -/ +structure HistoryRecordEntry where + /-- Information about the event. -/ + eventInformation : Option EventInformation := none + /-- The event type. -/ + eventType : Option FleetEventType := none + /-- The date and time of the event, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). -/ + timestamp : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape HistoryRecordEntry where + schema := .struct "HistoryRecordEntry" [({ name := "EventInformation", xmlName := some "eventInformation", queryName := some "EventInformation" }, (Shape.schema EventInformation)), + ({ name := "EventType", xmlName := some "eventType", queryName := some "EventType" }, (Shape.schema FleetEventType)), + ({ name := "Timestamp", xmlName := some "timestamp", queryName := some "Timestamp" }, (.time none))] + toValue x := record [putOpt "EventInformation" x.eventInformation, putOpt "EventType" x.eventType, putOpt "Timestamp" x.timestamp] + ofValue v := do + let eventInformation ← v.opt "EventInformation" + let eventType ← v.opt "EventType" + let timestamp ← v.opt "Timestamp" + return { eventInformation, eventType, timestamp } + +/-- Contains the CPU options for a Dedicated Host, including AMD Secure Encrypted Virtualization-Secure Nested Paging (AMD SEV-SNP) settings. -/ +structure HostCpuOptions where + /-- Specifies whether AMD Secure Encrypted Virtualization-Secure Nested Paging (AMD SEV-SNP) is enabled or disabled for the Dedicated Host. -/ + amdSevSnp : Option AmdSevSnp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape HostCpuOptions where + schema := .struct "HostCpuOptions" [({ name := "AmdSevSnp", xmlName := some "amdSevSnp", queryName := some "AmdSevSnp" }, (Shape.schema AmdSevSnp))] + toValue x := record [putOpt "AmdSevSnp" x.amdSevSnp] + ofValue v := do + let amdSevSnp ← v.opt "AmdSevSnp" + return { amdSevSnp } + +/-- Contains the CPU configuration options for a Dedicated Host allocation request. -/ +structure HostCpuOptionsRequest where + /-- Specifies whether AMD Secure Encrypted Virtualization-Secure Nested Paging (AMD SEV-SNP) is enabled or disabled for the Dedicated Host. -/ + amdSevSnp : Option AmdSevSnp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape HostCpuOptionsRequest where + schema := .struct "HostCpuOptionsRequest" [({ name := "AmdSevSnp" }, (Shape.schema AmdSevSnp))] + toValue x := record [putOpt "AmdSevSnp" x.amdSevSnp] + ofValue v := do + let amdSevSnp ← v.opt "AmdSevSnp" + return { amdSevSnp } + +/-- Details about the Dedicated Host Reservation offering. -/ +structure HostOffering where + /-- The currency of the offering. -/ + currencyCode : Option CurrencyCodeValues := none + /-- The duration of the offering (in seconds). -/ + duration : Option Int := none + /-- The hourly price of the offering. -/ + hourlyPrice : Option String := none + /-- The instance family of the offering. -/ + instanceFamily : Option String := none + /-- The ID of the offering. -/ + offeringId : Option String := none + /-- The available payment option. -/ + paymentOption : Option PaymentOption := none + /-- The upfront price of the offering. -/ + upfrontPrice : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape HostOffering where + schema := .struct "HostOffering" [({ name := "CurrencyCode", xmlName := some "currencyCode", queryName := some "CurrencyCode" }, (Shape.schema CurrencyCodeValues)), + ({ name := "Duration", xmlName := some "duration", queryName := some "Duration" }, .int), + ({ name := "HourlyPrice", xmlName := some "hourlyPrice", queryName := some "HourlyPrice" }, .string), + ({ name := "InstanceFamily", xmlName := some "instanceFamily", queryName := some "InstanceFamily" }, .string), + ({ name := "OfferingId", xmlName := some "offeringId", queryName := some "OfferingId" }, .string), + ({ name := "PaymentOption", xmlName := some "paymentOption", queryName := some "PaymentOption" }, (Shape.schema PaymentOption)), + ({ name := "UpfrontPrice", xmlName := some "upfrontPrice", queryName := some "UpfrontPrice" }, .string)] + toValue x := record [putOpt "CurrencyCode" x.currencyCode, putOpt "Duration" x.duration, putOpt "HourlyPrice" x.hourlyPrice, putOpt "InstanceFamily" x.instanceFamily, putOpt "OfferingId" x.offeringId, putOpt "PaymentOption" x.paymentOption, putOpt "UpfrontPrice" x.upfrontPrice] + ofValue v := do + let currencyCode ← v.opt "CurrencyCode" + let duration ← v.opt "Duration" + let hourlyPrice ← v.opt "HourlyPrice" + let instanceFamily ← v.opt "InstanceFamily" + let offeringId ← v.opt "OfferingId" + let paymentOption ← v.opt "PaymentOption" + let upfrontPrice ← v.opt "UpfrontPrice" + return { currencyCode, duration, hourlyPrice, instanceFamily, offeringId, paymentOption, upfrontPrice } + +/-- Details about the Dedicated Host Reservation and associated Dedicated Hosts. -/ +structure HostReservation where + /-- The number of Dedicated Hosts the reservation is associated with. -/ + count : Option Int := none + /-- The currency in which the upfrontPrice and hourlyPrice amounts are specified. -/ + currencyCode : Option CurrencyCodeValues := none + /-- The length of the reservation's term, specified in seconds. -/ + duration : Option Int := none + /-- The date and time that the reservation ends. -/ + «end» : Option Timestamp := none + /-- The IDs of the Dedicated Hosts associated with the reservation. -/ + hostIdSet : Option (List String) := none + /-- The ID of the reservation that specifies the associated Dedicated Hosts. -/ + hostReservationId : Option String := none + /-- The hourly price of the reservation. -/ + hourlyPrice : Option String := none + /-- The instance family of the Dedicated Host Reservation. -/ + instanceFamily : Option String := none + /-- The ID of the reservation. -/ + offeringId : Option String := none + /-- The payment option selected for this reservation. -/ + paymentOption : Option PaymentOption := none + /-- The date and time that the reservation started. -/ + start : Option Timestamp := none + /-- The state of the reservation. -/ + state : Option ReservationState := none + /-- Any tags assigned to the Dedicated Host Reservation. -/ + tags : Option (List Tag) := none + /-- The upfront price of the reservation. -/ + upfrontPrice : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape HostReservation where + schema := .struct "HostReservation" [({ name := "Count", xmlName := some "count", queryName := some "Count" }, .int), + ({ name := "CurrencyCode", xmlName := some "currencyCode", queryName := some "CurrencyCode" }, (Shape.schema CurrencyCodeValues)), + ({ name := "Duration", xmlName := some "duration", queryName := some "Duration" }, .int), + ({ name := "End", xmlName := some "end", queryName := some "End" }, (.time none)), + ({ name := "HostIdSet", xmlName := some "hostIdSet", queryName := some "HostIdSet" }, (.list .string "item")), + ({ name := "HostReservationId", xmlName := some "hostReservationId", queryName := some "HostReservationId" }, .string), + ({ name := "HourlyPrice", xmlName := some "hourlyPrice", queryName := some "HourlyPrice" }, .string), + ({ name := "InstanceFamily", xmlName := some "instanceFamily", queryName := some "InstanceFamily" }, .string), + ({ name := "OfferingId", xmlName := some "offeringId", queryName := some "OfferingId" }, .string), + ({ name := "PaymentOption", xmlName := some "paymentOption", queryName := some "PaymentOption" }, (Shape.schema PaymentOption)), + ({ name := "Start", xmlName := some "start", queryName := some "Start" }, (.time none)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema ReservationState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "UpfrontPrice", xmlName := some "upfrontPrice", queryName := some "UpfrontPrice" }, .string)] + toValue x := record [putOpt "Count" x.count, putOpt "CurrencyCode" x.currencyCode, putOpt "Duration" x.duration, putOpt "End" x.«end», putOpt "HostIdSet" x.hostIdSet, putOpt "HostReservationId" x.hostReservationId, putOpt "HourlyPrice" x.hourlyPrice, putOpt "InstanceFamily" x.instanceFamily, putOpt "OfferingId" x.offeringId, putOpt "PaymentOption" x.paymentOption, putOpt "Start" x.start, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "UpfrontPrice" x.upfrontPrice] + ofValue v := do + let count ← v.opt "Count" + let currencyCode ← v.opt "CurrencyCode" + let duration ← v.opt "Duration" + let «end» ← v.opt "End" + let hostIdSet ← v.opt "HostIdSet" + let hostReservationId ← v.opt "HostReservationId" + let hourlyPrice ← v.opt "HourlyPrice" + let instanceFamily ← v.opt "InstanceFamily" + let offeringId ← v.opt "OfferingId" + let paymentOption ← v.opt "PaymentOption" + let start ← v.opt "Start" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let upfrontPrice ← v.opt "UpfrontPrice" + return { count, currencyCode, duration, «end», hostIdSet, hostReservationId, hourlyPrice, instanceFamily, offeringId, paymentOption, start, state, tags, upfrontPrice } + +/-- Describes an association between an IAM instance profile and an instance. -/ +structure IamInstanceProfileAssociation where + /-- The ID of the association. -/ + associationId : Option String := none + /-- The IAM instance profile. -/ + iamInstanceProfile : Option IamInstanceProfile := none + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- The state of the association. -/ + state : Option IamInstanceProfileAssociationState := none + /-- The time the IAM instance profile was associated with the instance. -/ + timestamp : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IamInstanceProfileAssociation where + schema := .struct "IamInstanceProfileAssociation" [({ name := "AssociationId", xmlName := some "associationId", queryName := some "AssociationId" }, .string), + ({ name := "IamInstanceProfile", xmlName := some "iamInstanceProfile", queryName := some "IamInstanceProfile" }, (Shape.schema IamInstanceProfile)), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema IamInstanceProfileAssociationState)), + ({ name := "Timestamp", xmlName := some "timestamp", queryName := some "Timestamp" }, (.time none))] + toValue x := record [putOpt "AssociationId" x.associationId, putOpt "IamInstanceProfile" x.iamInstanceProfile, putOpt "InstanceId" x.instanceId, putOpt "State" x.state, putOpt "Timestamp" x.timestamp] + ofValue v := do + let associationId ← v.opt "AssociationId" + let iamInstanceProfile ← v.opt "IamInstanceProfile" + let instanceId ← v.opt "InstanceId" + let state ← v.opt "State" + let timestamp ← v.opt "Timestamp" + return { associationId, iamInstanceProfile, instanceId, state, timestamp } + +/-- Describes the disk container object for an import image task. -/ +structure ImageDiskContainer where + /-- The description of the disk image. -/ + description : Option String := none + /-- The block device mapping for the disk. -/ + deviceName : Option String := none + /-- The format of the disk image being imported. -/ + format : Option String := none + /-- The ID of the EBS snapshot to be used for importing the snapshot. -/ + snapshotId : Option String := none + /-- The URL to the Amazon S3-based disk image being imported. -/ + url : Option String := none + /-- The S3 bucket for the disk image. -/ + userBucket : Option UserBucket := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageDiskContainer where + schema := .struct "ImageDiskContainer" [({ name := "Description" }, .string), + ({ name := "DeviceName" }, .string), + ({ name := "Format" }, .string), + ({ name := "SnapshotId" }, .string), + ({ name := "Url" }, .string), + ({ name := "UserBucket" }, (Shape.schema UserBucket))] + toValue x := record [putOpt "Description" x.description, putOpt "DeviceName" x.deviceName, putOpt "Format" x.format, putOpt "SnapshotId" x.snapshotId, putOpt "Url" x.url, putOpt "UserBucket" x.userBucket] + ofValue v := do + let description ← v.opt "Description" + let deviceName ← v.opt "DeviceName" + let format ← v.opt "Format" + let snapshotId ← v.opt "SnapshotId" + let url ← v.opt "Url" + let userBucket ← v.opt "UserBucket" + return { description, deviceName, format, snapshotId, url, userBucket } + +/-- Describes an Amazon Inspector vulnerability finding for an AMI. -/ +structure ImageFinding where + /-- The date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), when Amazon Inspector first observed the finding. -/ + firstObservedAt : Option Timestamp := none + /-- Specifies whether a fix is available for the finding. -/ + fixAvailable : Option Bool := none + /-- The file paths in the AMI that are affected by the finding. -/ + paths : Option (List String) := none + /-- The Amazon Inspector score for the finding. -/ + score : Option JsonNumber := none + /-- The severity of the finding. -/ + severityLabel : Option SeverityLabel := none + /-- The ID of the Amazon EBS snapshot of the AMI in which the finding was detected. -/ + snapshotId : Option String := none + /-- The title of the finding. -/ + title : Option String := none + /-- The date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), when Amazon Inspector last updated the finding. -/ + updatedAt : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageFinding where + schema := .struct "ImageFinding" [({ name := "FirstObservedAt", xmlName := some "firstObservedAt", queryName := some "FirstObservedAt" }, (.time none)), + ({ name := "FixAvailable", xmlName := some "fixAvailable", queryName := some "FixAvailable" }, .bool), + ({ name := "Paths", xmlName := some "pathSet", queryName := some "PathSet" }, (.list .string "item")), + ({ name := "Score", xmlName := some "score", queryName := some "Score" }, .number), + ({ name := "SeverityLabel", xmlName := some "severityLabel", queryName := some "SeverityLabel" }, (Shape.schema SeverityLabel)), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string), + ({ name := "Title", xmlName := some "title", queryName := some "Title" }, .string), + ({ name := "UpdatedAt", xmlName := some "updatedAt", queryName := some "UpdatedAt" }, (.time none))] + toValue x := record [putOpt "FirstObservedAt" x.firstObservedAt, putOpt "FixAvailable" x.fixAvailable, putOpt "Paths" x.paths, putOpt "Score" x.score, putOpt "SeverityLabel" x.severityLabel, putOpt "SnapshotId" x.snapshotId, putOpt "Title" x.title, putOpt "UpdatedAt" x.updatedAt] + ofValue v := do + let firstObservedAt ← v.opt "FirstObservedAt" + let fixAvailable ← v.opt "FixAvailable" + let paths ← v.opt "Paths" + let score ← v.opt "Score" + let severityLabel ← v.opt "SeverityLabel" + let snapshotId ← v.opt "SnapshotId" + let title ← v.opt "Title" + let updatedAt ← v.opt "UpdatedAt" + return { firstObservedAt, fixAvailable, paths, score, severityLabel, snapshotId, title, updatedAt } + +/-- Information about the AMI. -/ +structure ImageMetadata where + /-- The date and time the AMI was created. -/ + creationDate : Option String := none + /-- The deprecation date and time of the AMI, in UTC, in the following format: YYYY - MM - DD T HH : MM : SS Z. -/ + deprecationTime : Option String := none + /-- If true , the AMI satisfies the criteria for Allowed AMIs and can be discovered and used in the account. -/ + imageAllowed : Option Bool := none + /-- The ID of the AMI. -/ + imageId : Option String := none + /-- The alias of the AMI owner. -/ + imageOwnerAlias : Option String := none + /-- The watermarks attached to the AMI. -/ + imageWatermarks : Option (List ImageWatermark) := none + /-- Indicates whether the AMI has public launch permissions. -/ + isPublic : Option Bool := none + /-- The name of the AMI. -/ + name : Option String := none + /-- The ID of the Amazon Web Services account that owns the AMI. -/ + ownerId : Option String := none + /-- The current state of the AMI. -/ + state : Option ImageState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageMetadata where + schema := .struct "ImageMetadata" [({ name := "CreationDate", xmlName := some "creationDate", queryName := some "CreationDate" }, .string), + ({ name := "DeprecationTime", xmlName := some "deprecationTime", queryName := some "DeprecationTime" }, .string), + ({ name := "ImageAllowed", xmlName := some "imageAllowed", queryName := some "ImageAllowed" }, .bool), + ({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "ImageOwnerAlias", xmlName := some "imageOwnerAlias", queryName := some "ImageOwnerAlias" }, .string), + ({ name := "ImageWatermarks", xmlName := some "imageWatermarkSet", queryName := some "ImageWatermarkSet" }, (.list (Shape.schema ImageWatermark) "item")), + ({ name := "IsPublic", xmlName := some "isPublic", queryName := some "IsPublic" }, .bool), + ({ name := "Name", xmlName := some "name", queryName := some "Name" }, .string), + ({ name := "OwnerId", xmlName := some "imageOwnerId", queryName := some "ImageOwnerId" }, .string), + ({ name := "State", xmlName := some "imageState", queryName := some "ImageState" }, (Shape.schema ImageState))] + toValue x := record [putOpt "CreationDate" x.creationDate, putOpt "DeprecationTime" x.deprecationTime, putOpt "ImageAllowed" x.imageAllowed, putOpt "ImageId" x.imageId, putOpt "ImageOwnerAlias" x.imageOwnerAlias, putOpt "ImageWatermarks" x.imageWatermarks, putOpt "IsPublic" x.isPublic, putOpt "Name" x.name, putOpt "OwnerId" x.ownerId, putOpt "State" x.state] + ofValue v := do + let creationDate ← v.opt "CreationDate" + let deprecationTime ← v.opt "DeprecationTime" + let imageAllowed ← v.opt "ImageAllowed" + let imageId ← v.opt "ImageId" + let imageOwnerAlias ← v.opt "ImageOwnerAlias" + let imageWatermarks ← v.opt "ImageWatermarks" + let isPublic ← v.opt "IsPublic" + let name ← v.opt "Name" + let ownerId ← v.opt "OwnerId" + let state ← v.opt "State" + return { creationDate, deprecationTime, imageAllowed, imageId, imageOwnerAlias, imageWatermarks, isPublic, name, ownerId, state } + +/-- A resource that is referencing an image. -/ +structure ImageReference where + /-- The Amazon Resource Name (ARN) of the resource referencing the image. -/ + arn : Option String := none + /-- The ID of the referenced image. -/ + imageId : Option String := none + /-- The type of resource referencing the image. -/ + resourceType : Option ImageReferenceResourceType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageReference where + schema := .struct "ImageReference" [({ name := "Arn", xmlName := some "arn", queryName := some "Arn" }, .string), + ({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema ImageReferenceResourceType))] + toValue x := record [putOpt "Arn" x.arn, putOpt "ImageId" x.imageId, putOpt "ResourceType" x.resourceType] + ofValue v := do + let arn ← v.opt "Arn" + let imageId ← v.opt "ImageId" + let resourceType ← v.opt "ResourceType" + return { arn, imageId, resourceType } + +/-- A resource type to include in the report. -/ +structure ImageUsageResourceType where + /-- The resource type. -/ + resourceType : Option String := none + /-- The options that affect the scope of the report. -/ + resourceTypeOptions : Option (List ImageUsageResourceTypeOption) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageUsageResourceType where + schema := .struct "ImageUsageResourceType" [({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, .string), + ({ name := "ResourceTypeOptions", xmlName := some "resourceTypeOptionSet", queryName := some "ResourceTypeOptionSet" }, (.list (Shape.schema ImageUsageResourceTypeOption) "item"))] + toValue x := record [putOpt "ResourceType" x.resourceType, putOpt "ResourceTypeOptions" x.resourceTypeOptions] + ofValue v := do + let resourceType ← v.opt "ResourceType" + let resourceTypeOptions ← v.opt "ResourceTypeOptions" + return { resourceType, resourceTypeOptions } + +/-- A resource type to include in the report. -/ +structure ImageUsageResourceTypeRequest where + /-- The resource type. -/ + resourceType : Option String := none + /-- The options that affect the scope of the report. -/ + resourceTypeOptions : Option (List ImageUsageResourceTypeOptionRequest) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageUsageResourceTypeRequest where + schema := .struct "ImageUsageResourceTypeRequest" [({ name := "ResourceType" }, .string), + ({ name := "ResourceTypeOptions", xmlName := some "ResourceTypeOption" }, (.list (Shape.schema ImageUsageResourceTypeOptionRequest) "member"))] + toValue x := record [putOpt "ResourceType" x.resourceType, putOpt "ResourceTypeOptions" x.resourceTypeOptions] + ofValue v := do + let resourceType ← v.opt "ResourceType" + let resourceTypeOptions ← v.opt "ResourceTypeOptions" + return { resourceType, resourceTypeOptions } + +structure ImportKeyPairResult where + /-- For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC 4716. -/ + keyFingerprint : Option String := none + /-- The key pair name that you provided. -/ + keyName : Option String := none + /-- The ID of the resulting key pair. -/ + keyPairId : Option String := none + /-- The tags applied to the imported key pair. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportKeyPairResult where + schema := .struct "ImportKeyPairResult" [({ name := "KeyFingerprint", xmlName := some "keyFingerprint", queryName := some "KeyFingerprint" }, .string), + ({ name := "KeyName", xmlName := some "keyName", queryName := some "KeyName" }, .string), + ({ name := "KeyPairId", xmlName := some "keyPairId", queryName := some "KeyPairId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "KeyFingerprint" x.keyFingerprint, putOpt "KeyName" x.keyName, putOpt "KeyPairId" x.keyPairId, putOpt "Tags" x.tags] + ofValue v := do + let keyFingerprint ← v.opt "KeyFingerprint" + let keyName ← v.opt "KeyName" + let keyPairId ← v.opt "KeyPairId" + let tags ← v.opt "Tags" + return { keyFingerprint, keyName, keyPairId, tags } + +/-- Amazon Elastic Inference is no longer available. -/ +structure InferenceDeviceInfo where + /-- The number of Inference accelerators for the instance type. -/ + count : Option Int := none + /-- The manufacturer of the Inference accelerator. -/ + manufacturer : Option String := none + /-- Describes the memory available to the inference accelerator. -/ + memoryInfo : Option InferenceDeviceMemoryInfo := none + /-- The name of the Inference accelerator. -/ + name : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InferenceDeviceInfo where + schema := .struct "InferenceDeviceInfo" [({ name := "Count", xmlName := some "count", queryName := some "Count" }, .int), + ({ name := "Manufacturer", xmlName := some "manufacturer", queryName := some "Manufacturer" }, .string), + ({ name := "MemoryInfo", xmlName := some "memoryInfo", queryName := some "MemoryInfo" }, (Shape.schema InferenceDeviceMemoryInfo)), + ({ name := "Name", xmlName := some "name", queryName := some "Name" }, .string)] + toValue x := record [putOpt "Count" x.count, putOpt "Manufacturer" x.manufacturer, putOpt "MemoryInfo" x.memoryInfo, putOpt "Name" x.name] + ofValue v := do + let count ← v.opt "Count" + let manufacturer ← v.opt "Manufacturer" + let memoryInfo ← v.opt "MemoryInfo" + let name ← v.opt "Name" + return { count, manufacturer, memoryInfo, name } + +/-- Information about the volume initialization. -/ +structure InitializationStatusDetails where + /-- The estimated remaining time, in seconds, for volume initialization to complete. -/ + estimatedTimeToCompleteInSeconds : Option Int := none + /-- The method used for volume initialization. -/ + initializationType : Option InitializationType := none + /-- The current volume initialization progress as a percentage (0-100). -/ + progress : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InitializationStatusDetails where + schema := .struct "InitializationStatusDetails" [({ name := "EstimatedTimeToCompleteInSeconds", xmlName := some "estimatedTimeToCompleteInSeconds", queryName := some "EstimatedTimeToCompleteInSeconds" }, .int), + ({ name := "InitializationType", xmlName := some "initializationType", queryName := some "InitializationType" }, (Shape.schema InitializationType)), + ({ name := "Progress", xmlName := some "progress", queryName := some "Progress" }, .int)] + toValue x := record [putOpt "EstimatedTimeToCompleteInSeconds" x.estimatedTimeToCompleteInSeconds, putOpt "InitializationType" x.initializationType, putOpt "Progress" x.progress] + ofValue v := do + let estimatedTimeToCompleteInSeconds ← v.opt "EstimatedTimeToCompleteInSeconds" + let initializationType ← v.opt "InitializationType" + let progress ← v.opt "Progress" + return { estimatedTimeToCompleteInSeconds, initializationType, progress } + +/-- ENA Express uses Amazon Web Services Scalable Reliable Datagram (SRD) technology to increase the maximum bandwidth used per stream and minimize tail latency of network traffic between EC2 instances. -/ +structure InstanceAttachmentEnaSrdSpecification where + /-- Indicates whether ENA Express is enabled for the network interface. -/ + enaSrdEnabled : Option Bool := none + /-- Configures ENA Express for UDP network traffic. -/ + enaSrdUdpSpecification : Option InstanceAttachmentEnaSrdUdpSpecification := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceAttachmentEnaSrdSpecification where + schema := .struct "InstanceAttachmentEnaSrdSpecification" [({ name := "EnaSrdEnabled", xmlName := some "enaSrdEnabled", queryName := some "EnaSrdEnabled" }, .bool), + ({ name := "EnaSrdUdpSpecification", xmlName := some "enaSrdUdpSpecification", queryName := some "EnaSrdUdpSpecification" }, (Shape.schema InstanceAttachmentEnaSrdUdpSpecification))] + toValue x := record [putOpt "EnaSrdEnabled" x.enaSrdEnabled, putOpt "EnaSrdUdpSpecification" x.enaSrdUdpSpecification] + ofValue v := do + let enaSrdEnabled ← v.opt "EnaSrdEnabled" + let enaSrdUdpSpecification ← v.opt "EnaSrdUdpSpecification" + return { enaSrdEnabled, enaSrdUdpSpecification } + +/-- Describes a block device mapping entry. -/ +structure InstanceBlockDeviceMappingSpecification where + /-- The device name. -/ + deviceName : Option String := none + /-- Parameters used to automatically set up EBS volumes when the instance is launched. -/ + ebs : Option EbsInstanceBlockDeviceSpecification := none + /-- Suppresses the specified device included in the block device mapping. -/ + noDevice : Option String := none + /-- The virtual device name. -/ + virtualName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceBlockDeviceMappingSpecification where + schema := .struct "InstanceBlockDeviceMappingSpecification" [({ name := "DeviceName", xmlName := some "deviceName", queryName := some "DeviceName" }, .string), + ({ name := "Ebs", xmlName := some "ebs", queryName := some "Ebs" }, (Shape.schema EbsInstanceBlockDeviceSpecification)), + ({ name := "NoDevice", xmlName := some "noDevice", queryName := some "NoDevice" }, .string), + ({ name := "VirtualName", xmlName := some "virtualName", queryName := some "VirtualName" }, .string)] + toValue x := record [putOpt "DeviceName" x.deviceName, putOpt "Ebs" x.ebs, putOpt "NoDevice" x.noDevice, putOpt "VirtualName" x.virtualName] + ofValue v := do + let deviceName ← v.opt "DeviceName" + let ebs ← v.opt "Ebs" + let noDevice ← v.opt "NoDevice" + let virtualName ← v.opt "VirtualName" + return { deviceName, ebs, noDevice, virtualName } + +/-- The public DNS names of the endpoint, including IPv4-only and dualstack DNS names. -/ +structure InstanceConnectEndpointPublicDnsNames where + /-- The dualstack DNS name of the EC2 Instance Connect Endpoint. -/ + dualstack : Option InstanceConnectEndpointDnsNames := none + /-- The IPv4-only DNS name of the EC2 Instance Connect Endpoint. -/ + ipv4 : Option InstanceConnectEndpointDnsNames := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceConnectEndpointPublicDnsNames where + schema := .struct "InstanceConnectEndpointPublicDnsNames" [({ name := "Dualstack", xmlName := some "dualstack", queryName := some "Dualstack" }, (Shape.schema InstanceConnectEndpointDnsNames)), + ({ name := "Ipv4", xmlName := some "ipv4", queryName := some "Ipv4" }, (Shape.schema InstanceConnectEndpointDnsNames))] + toValue x := record [putOpt "Dualstack" x.dualstack, putOpt "Ipv4" x.ipv4] + ofValue v := do + let dualstack ← v.opt "Dualstack" + let ipv4 ← v.opt "Ipv4" + return { dualstack, ipv4 } + +/-- Describes a Reserved Instance listing state. -/ +structure InstanceCount where + /-- The number of listed Reserved Instances in the state specified by the state . -/ + instanceCount : Option Int := none + /-- The states of the listed Reserved Instances. -/ + state : Option ListingState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceCount where + schema := .struct "InstanceCount" [({ name := "InstanceCount", xmlName := some "instanceCount", queryName := some "InstanceCount" }, .int), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema ListingState))] + toValue x := record [putOpt "InstanceCount" x.instanceCount, putOpt "State" x.state] + ofValue v := do + let instanceCount ← v.opt "InstanceCount" + let state ← v.opt "State" + return { instanceCount, state } + +/-- One or more targets associated with the specified event window. -/ +structure InstanceEventWindowAssociationRequest where + /-- The IDs of the Dedicated Hosts to associate with the event window. -/ + dedicatedHostIds : Option (List String) := none + /-- The IDs of the instances to associate with the event window. -/ + instanceIds : Option (List String) := none + /-- The instance tags to associate with the event window. -/ + instanceTags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceEventWindowAssociationRequest where + schema := .struct "InstanceEventWindowAssociationRequest" [({ name := "DedicatedHostIds", xmlName := some "DedicatedHostId" }, (.list .string "item")), + ({ name := "InstanceIds", xmlName := some "InstanceId" }, (.list .string "item")), + ({ name := "InstanceTags", xmlName := some "InstanceTag" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "DedicatedHostIds" x.dedicatedHostIds, putOpt "InstanceIds" x.instanceIds, putOpt "InstanceTags" x.instanceTags] + ofValue v := do + let dedicatedHostIds ← v.opt "DedicatedHostIds" + let instanceIds ← v.opt "InstanceIds" + let instanceTags ← v.opt "InstanceTags" + return { dedicatedHostIds, instanceIds, instanceTags } + +/-- One or more targets associated with the event window. -/ +structure InstanceEventWindowAssociationTarget where + /-- The IDs of the Dedicated Hosts associated with the event window. -/ + dedicatedHostIds : Option (List String) := none + /-- The IDs of the instances associated with the event window. -/ + instanceIds : Option (List String) := none + /-- The instance tags associated with the event window. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceEventWindowAssociationTarget where + schema := .struct "InstanceEventWindowAssociationTarget" [({ name := "DedicatedHostIds", xmlName := some "dedicatedHostIdSet", queryName := some "DedicatedHostIdSet" }, (.list .string "item")), + ({ name := "InstanceIds", xmlName := some "instanceIdSet", queryName := some "InstanceIdSet" }, (.list .string "item")), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "DedicatedHostIds" x.dedicatedHostIds, putOpt "InstanceIds" x.instanceIds, putOpt "Tags" x.tags] + ofValue v := do + let dedicatedHostIds ← v.opt "DedicatedHostIds" + let instanceIds ← v.opt "InstanceIds" + let tags ← v.opt "Tags" + return { dedicatedHostIds, instanceIds, tags } + +/-- The targets to disassociate from the specified event window. -/ +structure InstanceEventWindowDisassociationRequest where + /-- The IDs of the Dedicated Hosts to disassociate from the event window. -/ + dedicatedHostIds : Option (List String) := none + /-- The IDs of the instances to disassociate from the event window. -/ + instanceIds : Option (List String) := none + /-- The instance tags to disassociate from the event window. -/ + instanceTags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceEventWindowDisassociationRequest where + schema := .struct "InstanceEventWindowDisassociationRequest" [({ name := "DedicatedHostIds", xmlName := some "DedicatedHostId" }, (.list .string "item")), + ({ name := "InstanceIds", xmlName := some "InstanceId" }, (.list .string "item")), + ({ name := "InstanceTags", xmlName := some "InstanceTag" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "DedicatedHostIds" x.dedicatedHostIds, putOpt "InstanceIds" x.instanceIds, putOpt "InstanceTags" x.instanceTags] + ofValue v := do + let dedicatedHostIds ← v.opt "DedicatedHostIds" + let instanceIds ← v.opt "InstanceIds" + let instanceTags ← v.opt "InstanceTags" + return { dedicatedHostIds, instanceIds, instanceTags } + +/-- The state of the event window. -/ +structure InstanceEventWindowStateChange where + /-- The ID of the event window. -/ + instanceEventWindowId : Option String := none + /-- The current state of the event window. -/ + state : Option InstanceEventWindowState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceEventWindowStateChange where + schema := .struct "InstanceEventWindowStateChange" [({ name := "InstanceEventWindowId", xmlName := some "instanceEventWindowId", queryName := some "InstanceEventWindowId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema InstanceEventWindowState))] + toValue x := record [putOpt "InstanceEventWindowId" x.instanceEventWindowId, putOpt "State" x.state] + ofValue v := do + let instanceEventWindowId ← v.opt "InstanceEventWindowId" + let state ← v.opt "State" + return { instanceEventWindowId, state } + +/-- The start day and time and the end day and time of the time range, in UTC. -/ +structure InstanceEventWindowTimeRange where + /-- The hour when the time range ends. -/ + endHour : Option Int := none + /-- The day on which the time range ends. -/ + endWeekDay : Option WeekDay := none + /-- The hour when the time range begins. -/ + startHour : Option Int := none + /-- The day on which the time range begins. -/ + startWeekDay : Option WeekDay := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceEventWindowTimeRange where + schema := .struct "InstanceEventWindowTimeRange" [({ name := "EndHour", xmlName := some "endHour", queryName := some "EndHour" }, .int), + ({ name := "EndWeekDay", xmlName := some "endWeekDay", queryName := some "EndWeekDay" }, (Shape.schema WeekDay)), + ({ name := "StartHour", xmlName := some "startHour", queryName := some "StartHour" }, .int), + ({ name := "StartWeekDay", xmlName := some "startWeekDay", queryName := some "StartWeekDay" }, (Shape.schema WeekDay))] + toValue x := record [putOpt "EndHour" x.endHour, putOpt "EndWeekDay" x.endWeekDay, putOpt "StartHour" x.startHour, putOpt "StartWeekDay" x.startWeekDay] + ofValue v := do + let endHour ← v.opt "EndHour" + let endWeekDay ← v.opt "EndWeekDay" + let startHour ← v.opt "StartHour" + let startWeekDay ← v.opt "StartWeekDay" + return { endHour, endWeekDay, startHour, startWeekDay } + +/-- The start day and time and the end day and time of the time range, in UTC. -/ +structure InstanceEventWindowTimeRangeRequest where + /-- The hour when the time range ends. -/ + endHour : Option Int := none + /-- The day on which the time range ends. -/ + endWeekDay : Option WeekDay := none + /-- The hour when the time range begins. -/ + startHour : Option Int := none + /-- The day on which the time range begins. -/ + startWeekDay : Option WeekDay := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceEventWindowTimeRangeRequest where + schema := .struct "InstanceEventWindowTimeRangeRequest" [({ name := "EndHour" }, .int), + ({ name := "EndWeekDay" }, (Shape.schema WeekDay)), + ({ name := "StartHour" }, .int), + ({ name := "StartWeekDay" }, (Shape.schema WeekDay))] + toValue x := record [putOpt "EndHour" x.endHour, putOpt "EndWeekDay" x.endWeekDay, putOpt "StartHour" x.startHour, putOpt "StartWeekDay" x.startWeekDay] + ofValue v := do + let endHour ← v.opt "EndHour" + let endWeekDay ← v.opt "EndWeekDay" + let startHour ← v.opt "StartHour" + let startWeekDay ← v.opt "StartWeekDay" + return { endHour, endWeekDay, startHour, startWeekDay } + +/-- Describes an instance to export. -/ +structure InstanceExportDetails where + /-- The ID of the resource being exported. -/ + instanceId : Option String := none + /-- The target virtualization environment. -/ + targetEnvironment : Option ExportEnvironment := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceExportDetails where + schema := .struct "InstanceExportDetails" [({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "TargetEnvironment", xmlName := some "targetEnvironment", queryName := some "TargetEnvironment" }, (Shape.schema ExportEnvironment))] + toValue x := record [putOpt "InstanceId" x.instanceId, putOpt "TargetEnvironment" x.targetEnvironment] + ofValue v := do + let instanceId ← v.opt "InstanceId" + let targetEnvironment ← v.opt "TargetEnvironment" + return { instanceId, targetEnvironment } + +/-- Describes the default credit option for CPU usage of a burstable performance instance family. -/ +structure InstanceFamilyCreditSpecification where + /-- The default credit option for CPU usage of the instance family. -/ + cpuCredits : Option String := none + /-- The instance family. -/ + instanceFamily : Option UnlimitedSupportedInstanceFamily := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceFamilyCreditSpecification where + schema := .struct "InstanceFamilyCreditSpecification" [({ name := "CpuCredits", xmlName := some "cpuCredits", queryName := some "CpuCredits" }, .string), + ({ name := "InstanceFamily", xmlName := some "instanceFamily", queryName := some "InstanceFamily" }, (Shape.schema UnlimitedSupportedInstanceFamily))] + toValue x := record [putOpt "CpuCredits" x.cpuCredits, putOpt "InstanceFamily" x.instanceFamily] + ofValue v := do + let cpuCredits ← v.opt "CpuCredits" + let instanceFamily ← v.opt "InstanceFamily" + return { cpuCredits, instanceFamily } + +/-- The maintenance options for the instance. -/ +structure InstanceMaintenanceOptions where + /-- Provides information on the current automatic recovery behavior of your instance. -/ + autoRecovery : Option InstanceAutoRecoveryState := none + /-- Specifies whether to attempt reboot migration during a user-initiated reboot of an instance that has a scheduled system-reboot event: default - Amazon EC2 attempts to migrate the instance to new hardware (reboot migration). -/ + rebootMigration : Option InstanceRebootMigrationState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceMaintenanceOptions where + schema := .struct "InstanceMaintenanceOptions" [({ name := "AutoRecovery", xmlName := some "autoRecovery", queryName := some "AutoRecovery" }, (Shape.schema InstanceAutoRecoveryState)), + ({ name := "RebootMigration", xmlName := some "rebootMigration", queryName := some "RebootMigration" }, (Shape.schema InstanceRebootMigrationState))] + toValue x := record [putOpt "AutoRecovery" x.autoRecovery, putOpt "RebootMigration" x.rebootMigration] + ofValue v := do + let autoRecovery ← v.opt "AutoRecovery" + let rebootMigration ← v.opt "RebootMigration" + return { autoRecovery, rebootMigration } + +/-- The maintenance options for the instance. -/ +structure InstanceMaintenanceOptionsRequest where + /-- Disables the automatic recovery behavior of your instance or sets it to default. -/ + autoRecovery : Option InstanceAutoRecoveryState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceMaintenanceOptionsRequest where + schema := .struct "InstanceMaintenanceOptionsRequest" [({ name := "AutoRecovery" }, (Shape.schema InstanceAutoRecoveryState))] + toValue x := record [putOpt "AutoRecovery" x.autoRecovery] + ofValue v := do + let autoRecovery ← v.opt "AutoRecovery" + return { autoRecovery } + +/-- The default instance metadata service (IMDS) settings that were set at the account level in the specified Amazon Web Services
 Region. -/ +structure InstanceMetadataDefaultsResponse where + /-- Indicates whether the IMDS endpoint for an instance is enabled or disabled. -/ + httpEndpoint : Option InstanceMetadataEndpointState := none + /-- The maximum number of hops that the metadata token can travel. -/ + httpPutResponseHopLimit : Option Int := none + /-- Indicates whether IMDSv2 is required. -/ + httpTokens : Option HttpTokensState := none + /-- Indicates whether to enforce the requirement of IMDSv2 on an instance at the time of launch. -/ + httpTokensEnforced : Option HttpTokensEnforcedState := none + /-- Indicates whether access to instance tags from the instance metadata is enabled or disabled. -/ + instanceMetadataTags : Option InstanceMetadataTagsState := none + /-- The entity that manages the IMDS default settings. -/ + managedBy : Option ManagedBy := none + /-- The customized exception message that is specified in the declarative policy. -/ + managedExceptionMessage : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceMetadataDefaultsResponse where + schema := .struct "InstanceMetadataDefaultsResponse" [({ name := "HttpEndpoint", xmlName := some "httpEndpoint", queryName := some "HttpEndpoint" }, (Shape.schema InstanceMetadataEndpointState)), + ({ name := "HttpPutResponseHopLimit", xmlName := some "httpPutResponseHopLimit", queryName := some "HttpPutResponseHopLimit" }, .int), + ({ name := "HttpTokens", xmlName := some "httpTokens", queryName := some "HttpTokens" }, (Shape.schema HttpTokensState)), + ({ name := "HttpTokensEnforced", xmlName := some "httpTokensEnforced", queryName := some "HttpTokensEnforced" }, (Shape.schema HttpTokensEnforcedState)), + ({ name := "InstanceMetadataTags", xmlName := some "instanceMetadataTags", queryName := some "InstanceMetadataTags" }, (Shape.schema InstanceMetadataTagsState)), + ({ name := "ManagedBy", xmlName := some "managedBy", queryName := some "ManagedBy" }, (Shape.schema ManagedBy)), + ({ name := "ManagedExceptionMessage", xmlName := some "managedExceptionMessage", queryName := some "ManagedExceptionMessage" }, .string)] + toValue x := record [putOpt "HttpEndpoint" x.httpEndpoint, putOpt "HttpPutResponseHopLimit" x.httpPutResponseHopLimit, putOpt "HttpTokens" x.httpTokens, putOpt "HttpTokensEnforced" x.httpTokensEnforced, putOpt "InstanceMetadataTags" x.instanceMetadataTags, putOpt "ManagedBy" x.managedBy, putOpt "ManagedExceptionMessage" x.managedExceptionMessage] + ofValue v := do + let httpEndpoint ← v.opt "HttpEndpoint" + let httpPutResponseHopLimit ← v.opt "HttpPutResponseHopLimit" + let httpTokens ← v.opt "HttpTokens" + let httpTokensEnforced ← v.opt "HttpTokensEnforced" + let instanceMetadataTags ← v.opt "InstanceMetadataTags" + let managedBy ← v.opt "ManagedBy" + let managedExceptionMessage ← v.opt "ManagedExceptionMessage" + return { httpEndpoint, httpPutResponseHopLimit, httpTokens, httpTokensEnforced, instanceMetadataTags, managedBy, managedExceptionMessage } + +/-- The metadata options for the instance. -/ +structure InstanceMetadataOptionsRequest where + /-- Enables or disables the HTTP metadata endpoint on your instances. -/ + httpEndpoint : Option InstanceMetadataEndpointState := none + /-- Enables or disables the IPv6 endpoint for the instance metadata service. -/ + httpProtocolIpv6 : Option InstanceMetadataProtocolState := none + /-- The maximum number of hops that the metadata token can travel. -/ + httpPutResponseHopLimit : Option Int := none + /-- Indicates whether IMDSv2 is required. -/ + httpTokens : Option HttpTokensState := none + /-- Set to enabled to allow access to instance tags from the instance metadata. -/ + instanceMetadataTags : Option InstanceMetadataTagsState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceMetadataOptionsRequest where + schema := .struct "InstanceMetadataOptionsRequest" [({ name := "HttpEndpoint" }, (Shape.schema InstanceMetadataEndpointState)), + ({ name := "HttpProtocolIpv6" }, (Shape.schema InstanceMetadataProtocolState)), + ({ name := "HttpPutResponseHopLimit" }, .int), + ({ name := "HttpTokens" }, (Shape.schema HttpTokensState)), + ({ name := "InstanceMetadataTags" }, (Shape.schema InstanceMetadataTagsState))] + toValue x := record [putOpt "HttpEndpoint" x.httpEndpoint, putOpt "HttpProtocolIpv6" x.httpProtocolIpv6, putOpt "HttpPutResponseHopLimit" x.httpPutResponseHopLimit, putOpt "HttpTokens" x.httpTokens, putOpt "InstanceMetadataTags" x.instanceMetadataTags] + ofValue v := do + let httpEndpoint ← v.opt "HttpEndpoint" + let httpProtocolIpv6 ← v.opt "HttpProtocolIpv6" + let httpPutResponseHopLimit ← v.opt "HttpPutResponseHopLimit" + let httpTokens ← v.opt "HttpTokens" + let instanceMetadataTags ← v.opt "InstanceMetadataTags" + return { httpEndpoint, httpProtocolIpv6, httpPutResponseHopLimit, httpTokens, instanceMetadataTags } + +/-- The metadata options for the instance. -/ +structure InstanceMetadataOptionsResponse where + /-- Indicates whether the HTTP metadata endpoint on your instances is enabled or disabled. -/ + httpEndpoint : Option InstanceMetadataEndpointState := none + /-- Indicates whether the IPv6 endpoint for the instance metadata service is enabled or disabled. -/ + httpProtocolIpv6 : Option InstanceMetadataProtocolState := none + /-- The maximum number of hops that the metadata token can travel. -/ + httpPutResponseHopLimit : Option Int := none + /-- Indicates whether IMDSv2 is required. -/ + httpTokens : Option HttpTokensState := none + /-- Indicates whether access to instance tags from the instance metadata is enabled or disabled. -/ + instanceMetadataTags : Option InstanceMetadataTagsState := none + /-- The state of the metadata option changes. -/ + state : Option InstanceMetadataOptionsState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceMetadataOptionsResponse where + schema := .struct "InstanceMetadataOptionsResponse" [({ name := "HttpEndpoint", xmlName := some "httpEndpoint", queryName := some "HttpEndpoint" }, (Shape.schema InstanceMetadataEndpointState)), + ({ name := "HttpProtocolIpv6", xmlName := some "httpProtocolIpv6", queryName := some "HttpProtocolIpv6" }, (Shape.schema InstanceMetadataProtocolState)), + ({ name := "HttpPutResponseHopLimit", xmlName := some "httpPutResponseHopLimit", queryName := some "HttpPutResponseHopLimit" }, .int), + ({ name := "HttpTokens", xmlName := some "httpTokens", queryName := some "HttpTokens" }, (Shape.schema HttpTokensState)), + ({ name := "InstanceMetadataTags", xmlName := some "instanceMetadataTags", queryName := some "InstanceMetadataTags" }, (Shape.schema InstanceMetadataTagsState)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema InstanceMetadataOptionsState))] + toValue x := record [putOpt "HttpEndpoint" x.httpEndpoint, putOpt "HttpProtocolIpv6" x.httpProtocolIpv6, putOpt "HttpPutResponseHopLimit" x.httpPutResponseHopLimit, putOpt "HttpTokens" x.httpTokens, putOpt "InstanceMetadataTags" x.instanceMetadataTags, putOpt "State" x.state] + ofValue v := do + let httpEndpoint ← v.opt "HttpEndpoint" + let httpProtocolIpv6 ← v.opt "HttpProtocolIpv6" + let httpPutResponseHopLimit ← v.opt "HttpPutResponseHopLimit" + let httpTokens ← v.opt "HttpTokens" + let instanceMetadataTags ← v.opt "InstanceMetadataTags" + let state ← v.opt "State" + return { httpEndpoint, httpProtocolIpv6, httpPutResponseHopLimit, httpTokens, instanceMetadataTags, state } + +/-- With network performance options, you can adjust your bandwidth preferences to meet the needs of the workload that runs on your instance. -/ +structure InstanceNetworkPerformanceOptions where + /-- When you configure network bandwidth weighting, you can boost your baseline bandwidth for either networking or EBS by up to 25%. -/ + bandwidthWeighting : Option InstanceBandwidthWeighting := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceNetworkPerformanceOptions where + schema := .struct "InstanceNetworkPerformanceOptions" [({ name := "BandwidthWeighting", xmlName := some "bandwidthWeighting", queryName := some "BandwidthWeighting" }, (Shape.schema InstanceBandwidthWeighting))] + toValue x := record [putOpt "BandwidthWeighting" x.bandwidthWeighting] + ofValue v := do + let bandwidthWeighting ← v.opt "BandwidthWeighting" + return { bandwidthWeighting } + +/-- Configure network performance options for your instance that are geared towards performance improvements based on the workload that it runs. -/ +structure InstanceNetworkPerformanceOptionsRequest where + /-- Specify the bandwidth weighting option to boost the associated type of baseline bandwidth, as follows: default This option uses the standard bandwidth configuration for your instance type. -/ + bandwidthWeighting : Option InstanceBandwidthWeighting := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceNetworkPerformanceOptionsRequest where + schema := .struct "InstanceNetworkPerformanceOptionsRequest" [({ name := "BandwidthWeighting" }, (Shape.schema InstanceBandwidthWeighting))] + toValue x := record [putOpt "BandwidthWeighting" x.bandwidthWeighting] + ofValue v := do + let bandwidthWeighting ← v.opt "BandwidthWeighting" + return { bandwidthWeighting } + +/-- Describes a private IPv4 address. -/ +structure InstancePrivateIpAddress where + /-- The association information for an Elastic IP address for the network interface. -/ + association : Option InstanceNetworkInterfaceAssociation := none + /-- Indicates whether this IPv4 address is the primary private IP address of the network interface. -/ + primary : Option Bool := none + /-- The private IPv4 DNS name. -/ + privateDnsName : Option String := none + /-- The private IPv4 address of the network interface. -/ + privateIpAddress : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstancePrivateIpAddress where + schema := .struct "InstancePrivateIpAddress" [({ name := "Association", xmlName := some "association", queryName := some "Association" }, (Shape.schema InstanceNetworkInterfaceAssociation)), + ({ name := "Primary", xmlName := some "primary", queryName := some "Primary" }, .bool), + ({ name := "PrivateDnsName", xmlName := some "privateDnsName", queryName := some "PrivateDnsName" }, .string), + ({ name := "PrivateIpAddress", xmlName := some "privateIpAddress", queryName := some "PrivateIpAddress" }, .string)] + toValue x := record [putOpt "Association" x.association, putOpt "Primary" x.primary, putOpt "PrivateDnsName" x.privateDnsName, putOpt "PrivateIpAddress" x.privateIpAddress] + ofValue v := do + let association ← v.opt "Association" + let primary ← v.opt "Primary" + let privateDnsName ← v.opt "PrivateDnsName" + let privateIpAddress ← v.opt "PrivateIpAddress" + return { association, primary, privateDnsName, privateIpAddress } + +/-- Describes the attachment of a secondary interface to an instance. -/ +structure InstanceSecondaryInterfaceAttachment where + /-- The timestamp when the attachment was created. -/ + attachTime : Option Timestamp := none + /-- The ID of the attachment. -/ + attachmentId : Option String := none + /-- Indicates whether the secondary interface is deleted when the instance is terminated. -/ + deleteOnTermination : Option Bool := none + /-- The device index of the secondary interface. -/ + deviceIndex : Option Int := none + /-- The index of the network card. -/ + networkCardIndex : Option Int := none + /-- The attachment state. -/ + status : Option AttachmentStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceSecondaryInterfaceAttachment where + schema := .struct "InstanceSecondaryInterfaceAttachment" [({ name := "AttachTime", xmlName := some "attachTime", queryName := some "AttachTime" }, (.time none)), + ({ name := "AttachmentId", xmlName := some "attachmentId", queryName := some "AttachmentId" }, .string), + ({ name := "DeleteOnTermination", xmlName := some "deleteOnTermination", queryName := some "DeleteOnTermination" }, .bool), + ({ name := "DeviceIndex", xmlName := some "deviceIndex", queryName := some "DeviceIndex" }, .int), + ({ name := "NetworkCardIndex", xmlName := some "networkCardIndex", queryName := some "NetworkCardIndex" }, .int), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema AttachmentStatus))] + toValue x := record [putOpt "AttachTime" x.attachTime, putOpt "AttachmentId" x.attachmentId, putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "DeviceIndex" x.deviceIndex, putOpt "NetworkCardIndex" x.networkCardIndex, putOpt "Status" x.status] + ofValue v := do + let attachTime ← v.opt "AttachTime" + let attachmentId ← v.opt "AttachmentId" + let deleteOnTermination ← v.opt "DeleteOnTermination" + let deviceIndex ← v.opt "DeviceIndex" + let networkCardIndex ← v.opt "NetworkCardIndex" + let status ← v.opt "Status" + return { attachTime, attachmentId, deleteOnTermination, deviceIndex, networkCardIndex, status } + +/-- Describes a secondary interface specification for launching an instance. -/ +structure InstanceSecondaryInterfaceSpecificationRequest where + /-- Indicates whether the secondary interface is deleted when the instance is terminated. -/ + deleteOnTermination : Option Bool := none + /-- The device index for the secondary interface attachment. -/ + deviceIndex : Option Int := none + /-- The type of secondary interface. -/ + interfaceType : Option SecondaryInterfaceType := none + /-- The index of the network card. -/ + networkCardIndex : Option Int := none + /-- The number of private IPv4 addresses to assign to the secondary interface. -/ + privateIpAddressCount : Option Int := none + /-- The private IPv4 addresses to assign to the secondary interface. -/ + privateIpAddresses : Option (List InstanceSecondaryInterfacePrivateIpAddressRequest) := none + /-- The ID of the secondary subnet. -/ + secondarySubnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceSecondaryInterfaceSpecificationRequest where + schema := .struct "InstanceSecondaryInterfaceSpecificationRequest" [({ name := "DeleteOnTermination" }, .bool), + ({ name := "DeviceIndex" }, .int), + ({ name := "InterfaceType" }, (Shape.schema SecondaryInterfaceType)), + ({ name := "NetworkCardIndex" }, .int), + ({ name := "PrivateIpAddressCount" }, .int), + ({ name := "PrivateIpAddresses", xmlName := some "PrivateIpAddress" }, (.list (Shape.schema InstanceSecondaryInterfacePrivateIpAddressRequest) "item")), + ({ name := "SecondarySubnetId" }, .string)] + toValue x := record [putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "DeviceIndex" x.deviceIndex, putOpt "InterfaceType" x.interfaceType, putOpt "NetworkCardIndex" x.networkCardIndex, putOpt "PrivateIpAddressCount" x.privateIpAddressCount, putOpt "PrivateIpAddresses" x.privateIpAddresses, putOpt "SecondarySubnetId" x.secondarySubnetId] + ofValue v := do + let deleteOnTermination ← v.opt "DeleteOnTermination" + let deviceIndex ← v.opt "DeviceIndex" + let interfaceType ← v.opt "InterfaceType" + let networkCardIndex ← v.opt "NetworkCardIndex" + let privateIpAddressCount ← v.opt "PrivateIpAddressCount" + let privateIpAddresses ← v.opt "PrivateIpAddresses" + let secondarySubnetId ← v.opt "SecondarySubnetId" + return { deleteOnTermination, deviceIndex, interfaceType, networkCardIndex, privateIpAddressCount, privateIpAddresses, secondarySubnetId } + +/-- Describes the current state of an instance. -/ +structure InstanceState where + /-- The state of the instance as a 16-bit unsigned integer. -/ + code : Option Int := none + /-- The current state of the instance. -/ + name : Option InstanceStateName := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceState where + schema := .struct "InstanceState" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, .int), + ({ name := "Name", xmlName := some "name", queryName := some "Name" }, (Shape.schema InstanceStateName))] + toValue x := record [putOpt "Code" x.code, putOpt "Name" x.name] + ofValue v := do + let code ← v.opt "Code" + let name ← v.opt "Name" + return { code, name } + +/-- Describes the instance status. -/ +structure InstanceStatusDetails where + /-- The time when a status check failed. -/ + impairedSince : Option Timestamp := none + /-- The type of instance status. -/ + name : Option StatusName := none + /-- The status. -/ + status : Option StatusType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceStatusDetails where + schema := .struct "InstanceStatusDetails" [({ name := "ImpairedSince", xmlName := some "impairedSince", queryName := some "ImpairedSince" }, (.time none)), + ({ name := "Name", xmlName := some "name", queryName := some "Name" }, (Shape.schema StatusName)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema StatusType))] + toValue x := record [putOpt "ImpairedSince" x.impairedSince, putOpt "Name" x.name, putOpt "Status" x.status] + ofValue v := do + let impairedSince ← v.opt "ImpairedSince" + let name ← v.opt "Name" + let status ← v.opt "Status" + return { impairedSince, name, status } + +/-- Describes a scheduled event for an instance. -/ +structure InstanceStatusEvent where + /-- The event code. -/ + code : Option EventCode := none + /-- A description of the event. -/ + description : Option String := none + /-- The ID of the event. -/ + instanceEventId : Option String := none + /-- The latest scheduled end time for the event. -/ + notAfter : Option Timestamp := none + /-- The earliest scheduled start time for the event. -/ + notBefore : Option Timestamp := none + /-- The deadline for starting the event. -/ + notBeforeDeadline : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceStatusEvent where + schema := .struct "InstanceStatusEvent" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, (Shape.schema EventCode)), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "InstanceEventId", xmlName := some "instanceEventId", queryName := some "InstanceEventId" }, .string), + ({ name := "NotAfter", xmlName := some "notAfter", queryName := some "NotAfter" }, (.time none)), + ({ name := "NotBefore", xmlName := some "notBefore", queryName := some "NotBefore" }, (.time none)), + ({ name := "NotBeforeDeadline", xmlName := some "notBeforeDeadline", queryName := some "NotBeforeDeadline" }, (.time none))] + toValue x := record [putOpt "Code" x.code, putOpt "Description" x.description, putOpt "InstanceEventId" x.instanceEventId, putOpt "NotAfter" x.notAfter, putOpt "NotBefore" x.notBefore, putOpt "NotBeforeDeadline" x.notBeforeDeadline] + ofValue v := do + let code ← v.opt "Code" + let description ← v.opt "Description" + let instanceEventId ← v.opt "InstanceEventId" + let notAfter ← v.opt "NotAfter" + let notBefore ← v.opt "NotBefore" + let notBeforeDeadline ← v.opt "NotBeforeDeadline" + return { code, description, instanceEventId, notAfter, notBefore, notBeforeDeadline } + +/-- The instance types offered. -/ +structure InstanceTypeOffering where + /-- The instance type. -/ + instanceType : Option InstanceType := none + /-- The identifier for the location. -/ + location : Option String := none + /-- The location type. -/ + locationType : Option LocationType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceTypeOffering where + schema := .struct "InstanceTypeOffering" [({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "Location", xmlName := some "location", queryName := some "Location" }, .string), + ({ name := "LocationType", xmlName := some "locationType", queryName := some "LocationType" }, (Shape.schema LocationType))] + toValue x := record [putOpt "InstanceType" x.instanceType, putOpt "Location" x.location, putOpt "LocationType" x.locationType] + ofValue v := do + let instanceType ← v.opt "InstanceType" + let location ← v.opt "Location" + let locationType ← v.opt "LocationType" + return { instanceType, location, locationType } + +/-- Describes the instance type compatibility rules for an AMI, including lists of supported and unsupported instance type patterns. -/ +structure InstanceTypeSpecification where + /-- The instance types that the AMI supports. -/ + supportedInstanceTypes : Option (List InstanceTypeItem) := none + /-- The instance types that the AMI does not support. -/ + unsupportedInstanceTypes : Option (List InstanceTypeItem) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceTypeSpecification where + schema := .struct "InstanceTypeSpecification" [({ name := "SupportedInstanceTypes", xmlName := some "supportedInstanceTypeSet", queryName := some "SupportedInstanceTypeSet" }, (.list (Shape.schema InstanceTypeItem) "item")), + ({ name := "UnsupportedInstanceTypes", xmlName := some "unsupportedInstanceTypeSet", queryName := some "UnsupportedInstanceTypeSet" }, (.list (Shape.schema InstanceTypeItem) "item"))] + toValue x := record [putOpt "SupportedInstanceTypes" x.supportedInstanceTypes, putOpt "UnsupportedInstanceTypes" x.unsupportedInstanceTypes] + ofValue v := do + let supportedInstanceTypes ← v.opt "SupportedInstanceTypes" + let unsupportedInstanceTypes ← v.opt "UnsupportedInstanceTypes" + return { supportedInstanceTypes, unsupportedInstanceTypes } + +/-- Describes the attachment of a VPC to an internet gateway or an egress-only internet gateway. -/ +structure InternetGatewayAttachment where + /-- The current state of the attachment. -/ + state : Option AttachmentStatus := none + /-- The ID of the VPC. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InternetGatewayAttachment where + schema := .struct "InternetGatewayAttachment" [({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema AttachmentStatus)), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "State" x.state, putOpt "VpcId" x.vpcId] + ofValue v := do + let state ← v.opt "State" + let vpcId ← v.opt "VpcId" + return { state, vpcId } + +/-- Represents the allocation of capacity from a source reservation to an interruptible reservation, tracking current and target instance counts for allocation management. -/ +structure InterruptibleCapacityAllocation where + /-- The current number of instances allocated to the interruptible reservation. -/ + instanceCount : Option Int := none + /-- The ID of the interruptible Capacity Reservation created from the allocation. -/ + interruptibleCapacityReservationId : Option String := none + /-- The type of interruption policy applied to the interruptible reservation. -/ + interruptionType : Option InterruptionType := none + /-- The current status of the allocation (updating during reclamation, active when complete). -/ + status : Option InterruptibleCapacityReservationAllocationStatus := none + /-- After your modify request, the requested number of instances allocated to interruptible reservation. -/ + targetInstanceCount : Option Int := none + /-- Specifies how Amazon EC2 handles the interruptible Capacity Reservation when you reduce its allocation to zero instances. -/ + zeroSizePreference : Option ZeroSizePreference := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InterruptibleCapacityAllocation where + schema := .struct "InterruptibleCapacityAllocation" [({ name := "InstanceCount", xmlName := some "instanceCount", queryName := some "InstanceCount" }, .int), + ({ name := "InterruptibleCapacityReservationId", xmlName := some "interruptibleCapacityReservationId", queryName := some "InterruptibleCapacityReservationId" }, .string), + ({ name := "InterruptionType", xmlName := some "interruptionType", queryName := some "InterruptionType" }, (Shape.schema InterruptionType)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema InterruptibleCapacityReservationAllocationStatus)), + ({ name := "TargetInstanceCount", xmlName := some "targetInstanceCount", queryName := some "TargetInstanceCount" }, .int), + ({ name := "ZeroSizePreference", xmlName := some "zeroSizePreference", queryName := some "ZeroSizePreference" }, (Shape.schema ZeroSizePreference))] + toValue x := record [putOpt "InstanceCount" x.instanceCount, putOpt "InterruptibleCapacityReservationId" x.interruptibleCapacityReservationId, putOpt "InterruptionType" x.interruptionType, putOpt "Status" x.status, putOpt "TargetInstanceCount" x.targetInstanceCount, putOpt "ZeroSizePreference" x.zeroSizePreference] + ofValue v := do + let instanceCount ← v.opt "InstanceCount" + let interruptibleCapacityReservationId ← v.opt "InterruptibleCapacityReservationId" + let interruptionType ← v.opt "InterruptionType" + let status ← v.opt "Status" + let targetInstanceCount ← v.opt "TargetInstanceCount" + let zeroSizePreference ← v.opt "ZeroSizePreference" + return { instanceCount, interruptibleCapacityReservationId, interruptionType, status, targetInstanceCount, zeroSizePreference } + +/-- Contains information about how and when instances in an interruptible reservation can be terminated when capacity is reclaimed. -/ +structure InterruptionInfo where + /-- The interruption type that determines how instances are terminated when capacity is reclaimed. -/ + interruptionType : Option InterruptionType := none + /-- The ID of the source Capacity Reservation from which the interruptible reservation was created. -/ + sourceCapacityReservationId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InterruptionInfo where + schema := .struct "InterruptionInfo" [({ name := "InterruptionType", xmlName := some "interruptionType", queryName := some "InterruptionType" }, (Shape.schema InterruptionType)), + ({ name := "SourceCapacityReservationId", xmlName := some "sourceCapacityReservationId", queryName := some "SourceCapacityReservationId" }, .string)] + toValue x := record [putOpt "InterruptionType" x.interruptionType, putOpt "SourceCapacityReservationId" x.sourceCapacityReservationId] + ofValue v := do + let interruptionType ← v.opt "InterruptionType" + let sourceCapacityReservationId ← v.opt "SourceCapacityReservationId" + return { interruptionType, sourceCapacityReservationId } + +/-- Describes the permissions for a security group rule. -/ +structure IpPermission where + /-- If the protocol is TCP or UDP, this is the start of the port range. -/ + fromPort : Option Int := none + /-- The IP protocol name ( tcp , udp , icmp , icmpv6 ) or number (see Protocol Numbers ). -/ + ipProtocol : Option String := none + /-- The IPv4 address ranges. -/ + ipRanges : Option (List IpRange) := none + /-- The IPv6 address ranges. -/ + ipv6Ranges : Option (List Ipv6Range) := none + /-- The prefix list IDs. -/ + prefixListIds : Option (List PrefixListId) := none + /-- If the protocol is TCP or UDP, this is the end of the port range. -/ + toPort : Option Int := none + /-- The security group and Amazon Web Services account ID pairs. -/ + userIdGroupPairs : Option (List UserIdGroupPair) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpPermission where + schema := .struct "IpPermission" [({ name := "FromPort", xmlName := some "fromPort", queryName := some "FromPort" }, .int), + ({ name := "IpProtocol", xmlName := some "ipProtocol", queryName := some "IpProtocol" }, .string), + ({ name := "IpRanges", xmlName := some "ipRanges", queryName := some "IpRanges" }, (.list (Shape.schema IpRange) "item")), + ({ name := "Ipv6Ranges", xmlName := some "ipv6Ranges", queryName := some "Ipv6Ranges" }, (.list (Shape.schema Ipv6Range) "item")), + ({ name := "PrefixListIds", xmlName := some "prefixListIds", queryName := some "PrefixListIds" }, (.list (Shape.schema PrefixListId) "item")), + ({ name := "ToPort", xmlName := some "toPort", queryName := some "ToPort" }, .int), + ({ name := "UserIdGroupPairs", xmlName := some "groups", queryName := some "Groups" }, (.list (Shape.schema UserIdGroupPair) "item"))] + toValue x := record [putOpt "FromPort" x.fromPort, putOpt "IpProtocol" x.ipProtocol, putOpt "IpRanges" x.ipRanges, putOpt "Ipv6Ranges" x.ipv6Ranges, putOpt "PrefixListIds" x.prefixListIds, putOpt "ToPort" x.toPort, putOpt "UserIdGroupPairs" x.userIdGroupPairs] + ofValue v := do + let fromPort ← v.opt "FromPort" + let ipProtocol ← v.opt "IpProtocol" + let ipRanges ← v.opt "IpRanges" + let ipv6Ranges ← v.opt "Ipv6Ranges" + let prefixListIds ← v.opt "PrefixListIds" + let toPort ← v.opt "ToPort" + let userIdGroupPairs ← v.opt "UserIdGroupPairs" + return { fromPort, ipProtocol, ipRanges, ipv6Ranges, prefixListIds, toPort, userIdGroupPairs } + +/-- IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across Amazon Web Services Regions and accounts throughout your Amazon Web Ser -/ +structure Ipam where + /-- The IPAM's default resource discovery association ID. -/ + defaultResourceDiscoveryAssociationId : Option String := none + /-- The IPAM's default resource discovery ID. -/ + defaultResourceDiscoveryId : Option String := none + /-- The description for the IPAM. -/ + description : Option String := none + /-- Enable this option to use your own GUA ranges as private IPv6 addresses. -/ + enablePrivateGua : Option Bool := none + /-- The Amazon Resource Name (ARN) of the IPAM. -/ + ipamArn : Option String := none + /-- The ID of the IPAM. -/ + ipamId : Option String := none + /-- The Amazon Web Services Region of the IPAM. -/ + ipamRegion : Option String := none + /-- A metered account is an Amazon Web Services account that is charged for active IP addresses managed in IPAM. -/ + meteredAccount : Option IpamMeteredAccount := none + /-- The operating Regions for an IPAM. -/ + operatingRegions : Option (List IpamOperatingRegion) := none + /-- The Amazon Web Services account ID of the owner of the IPAM. -/ + ownerId : Option String := none + /-- The ID of the IPAM's default private scope. -/ + privateDefaultScopeId : Option String := none + /-- The ID of the IPAM's default public scope. -/ + publicDefaultScopeId : Option String := none + /-- The IPAM's resource discovery association count. -/ + resourceDiscoveryAssociationCount : Option Int := none + /-- The number of scopes in the IPAM. -/ + scopeCount : Option Int := none + /-- The state of the IPAM. -/ + state : Option IpamState := none + /-- The state message. -/ + stateMessage : Option String := none + /-- The key/value combination of a tag assigned to the resource. -/ + tags : Option (List Tag) := none + /-- IPAM is offered in a Free Tier and an Advanced Tier. -/ + tier : Option IpamTier := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Ipam where + schema := .struct "Ipam" [({ name := "DefaultResourceDiscoveryAssociationId", xmlName := some "defaultResourceDiscoveryAssociationId", queryName := some "DefaultResourceDiscoveryAssociationId" }, .string), + ({ name := "DefaultResourceDiscoveryId", xmlName := some "defaultResourceDiscoveryId", queryName := some "DefaultResourceDiscoveryId" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "EnablePrivateGua", xmlName := some "enablePrivateGua", queryName := some "EnablePrivateGua" }, .bool), + ({ name := "IpamArn", xmlName := some "ipamArn", queryName := some "IpamArn" }, .string), + ({ name := "IpamId", xmlName := some "ipamId", queryName := some "IpamId" }, .string), + ({ name := "IpamRegion", xmlName := some "ipamRegion", queryName := some "IpamRegion" }, .string), + ({ name := "MeteredAccount", xmlName := some "meteredAccount", queryName := some "MeteredAccount" }, (Shape.schema IpamMeteredAccount)), + ({ name := "OperatingRegions", xmlName := some "operatingRegionSet", queryName := some "OperatingRegionSet" }, (.list (Shape.schema IpamOperatingRegion) "item")), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "PrivateDefaultScopeId", xmlName := some "privateDefaultScopeId", queryName := some "PrivateDefaultScopeId" }, .string), + ({ name := "PublicDefaultScopeId", xmlName := some "publicDefaultScopeId", queryName := some "PublicDefaultScopeId" }, .string), + ({ name := "ResourceDiscoveryAssociationCount", xmlName := some "resourceDiscoveryAssociationCount", queryName := some "ResourceDiscoveryAssociationCount" }, .int), + ({ name := "ScopeCount", xmlName := some "scopeCount", queryName := some "ScopeCount" }, .int), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema IpamState)), + ({ name := "StateMessage", xmlName := some "stateMessage", queryName := some "StateMessage" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "Tier", xmlName := some "tier", queryName := some "Tier" }, (Shape.schema IpamTier))] + toValue x := record [putOpt "DefaultResourceDiscoveryAssociationId" x.defaultResourceDiscoveryAssociationId, putOpt "DefaultResourceDiscoveryId" x.defaultResourceDiscoveryId, putOpt "Description" x.description, putOpt "EnablePrivateGua" x.enablePrivateGua, putOpt "IpamArn" x.ipamArn, putOpt "IpamId" x.ipamId, putOpt "IpamRegion" x.ipamRegion, putOpt "MeteredAccount" x.meteredAccount, putOpt "OperatingRegions" x.operatingRegions, putOpt "OwnerId" x.ownerId, putOpt "PrivateDefaultScopeId" x.privateDefaultScopeId, putOpt "PublicDefaultScopeId" x.publicDefaultScopeId, putOpt "ResourceDiscoveryAssociationCount" x.resourceDiscoveryAssociationCount, putOpt "ScopeCount" x.scopeCount, putOpt "State" x.state, putOpt "StateMessage" x.stateMessage, putOpt "Tags" x.tags, putOpt "Tier" x.tier] + ofValue v := do + let defaultResourceDiscoveryAssociationId ← v.opt "DefaultResourceDiscoveryAssociationId" + let defaultResourceDiscoveryId ← v.opt "DefaultResourceDiscoveryId" + let description ← v.opt "Description" + let enablePrivateGua ← v.opt "EnablePrivateGua" + let ipamArn ← v.opt "IpamArn" + let ipamId ← v.opt "IpamId" + let ipamRegion ← v.opt "IpamRegion" + let meteredAccount ← v.opt "MeteredAccount" + let operatingRegions ← v.opt "OperatingRegions" + let ownerId ← v.opt "OwnerId" + let privateDefaultScopeId ← v.opt "PrivateDefaultScopeId" + let publicDefaultScopeId ← v.opt "PublicDefaultScopeId" + let resourceDiscoveryAssociationCount ← v.opt "ResourceDiscoveryAssociationCount" + let scopeCount ← v.opt "ScopeCount" + let state ← v.opt "State" + let stateMessage ← v.opt "StateMessage" + let tags ← v.opt "Tags" + let tier ← v.opt "Tier" + return { defaultResourceDiscoveryAssociationId, defaultResourceDiscoveryId, description, enablePrivateGua, ipamArn, ipamId, ipamRegion, meteredAccount, operatingRegions, ownerId, privateDefaultScopeId, publicDefaultScopeId, resourceDiscoveryAssociationCount, scopeCount, state, stateMessage, tags, tier } + +/-- The historical record of a CIDR within an IPAM scope. -/ +structure IpamAddressHistoryRecord where + /-- The CIDR of the resource. -/ + resourceCidr : Option String := none + /-- The compliance status of a resource. -/ + resourceComplianceStatus : Option IpamComplianceStatus := none + /-- The ID of the resource. -/ + resourceId : Option String := none + /-- The name of the resource. -/ + resourceName : Option String := none + /-- The overlap status of an IPAM resource. -/ + resourceOverlapStatus : Option IpamOverlapStatus := none + /-- The ID of the resource owner. -/ + resourceOwnerId : Option String := none + /-- The Amazon Web Services Region of the resource. -/ + resourceRegion : Option String := none + /-- The type of the resource. -/ + resourceType : Option IpamAddressHistoryResourceType := none + /-- Sampled end time of the resource-to-CIDR association within the IPAM scope. -/ + sampledEndTime : Option Timestamp := none + /-- Sampled start time of the resource-to-CIDR association within the IPAM scope. -/ + sampledStartTime : Option Timestamp := none + /-- The VPC ID of the resource. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamAddressHistoryRecord where + schema := .struct "IpamAddressHistoryRecord" [({ name := "ResourceCidr", xmlName := some "resourceCidr", queryName := some "ResourceCidr" }, .string), + ({ name := "ResourceComplianceStatus", xmlName := some "resourceComplianceStatus", queryName := some "ResourceComplianceStatus" }, (Shape.schema IpamComplianceStatus)), + ({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceName", xmlName := some "resourceName", queryName := some "ResourceName" }, .string), + ({ name := "ResourceOverlapStatus", xmlName := some "resourceOverlapStatus", queryName := some "ResourceOverlapStatus" }, (Shape.schema IpamOverlapStatus)), + ({ name := "ResourceOwnerId", xmlName := some "resourceOwnerId", queryName := some "ResourceOwnerId" }, .string), + ({ name := "ResourceRegion", xmlName := some "resourceRegion", queryName := some "ResourceRegion" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema IpamAddressHistoryResourceType)), + ({ name := "SampledEndTime", xmlName := some "sampledEndTime", queryName := some "SampledEndTime" }, (.time none)), + ({ name := "SampledStartTime", xmlName := some "sampledStartTime", queryName := some "SampledStartTime" }, (.time none)), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "ResourceCidr" x.resourceCidr, putOpt "ResourceComplianceStatus" x.resourceComplianceStatus, putOpt "ResourceId" x.resourceId, putOpt "ResourceName" x.resourceName, putOpt "ResourceOverlapStatus" x.resourceOverlapStatus, putOpt "ResourceOwnerId" x.resourceOwnerId, putOpt "ResourceRegion" x.resourceRegion, putOpt "ResourceType" x.resourceType, putOpt "SampledEndTime" x.sampledEndTime, putOpt "SampledStartTime" x.sampledStartTime, putOpt "VpcId" x.vpcId] + ofValue v := do + let resourceCidr ← v.opt "ResourceCidr" + let resourceComplianceStatus ← v.opt "ResourceComplianceStatus" + let resourceId ← v.opt "ResourceId" + let resourceName ← v.opt "ResourceName" + let resourceOverlapStatus ← v.opt "ResourceOverlapStatus" + let resourceOwnerId ← v.opt "ResourceOwnerId" + let resourceRegion ← v.opt "ResourceRegion" + let resourceType ← v.opt "ResourceType" + let sampledEndTime ← v.opt "SampledEndTime" + let sampledStartTime ← v.opt "SampledStartTime" + let vpcId ← v.opt "VpcId" + return { resourceCidr, resourceComplianceStatus, resourceId, resourceName, resourceOverlapStatus, resourceOwnerId, resourceRegion, resourceType, sampledEndTime, sampledStartTime, vpcId } + +/-- An IPAM discovered resource CIDR. -/ +structure IpamDiscoveredResourceCidr where + /-- The Availability Zone ID. -/ + availabilityZoneId : Option String := none + /-- The source that allocated the IP address space. -/ + ipSource : Option IpamResourceCidrIpSource := none + /-- The percentage of IP address space in use. -/ + ipUsage : Option JsonNumber := none + /-- The resource discovery ID. -/ + ipamResourceDiscoveryId : Option String := none + /-- For elastic network interfaces, this is the status of whether or not the elastic network interface is attached. -/ + networkInterfaceAttachmentStatus : Option IpamNetworkInterfaceAttachmentStatus := none + /-- The resource CIDR. -/ + resourceCidr : Option String := none + /-- The resource ID. -/ + resourceId : Option String := none + /-- The resource owner ID. -/ + resourceOwnerId : Option String := none + /-- The resource Region. -/ + resourceRegion : Option String := none + /-- The resource tags. -/ + resourceTags : Option (List IpamResourceTag) := none + /-- The resource type. -/ + resourceType : Option IpamResourceType := none + /-- The last successful resource discovery time. -/ + sampleTime : Option Timestamp := none + /-- The subnet ID. -/ + subnetId : Option String := none + /-- The VPC ID. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamDiscoveredResourceCidr where + schema := .struct "IpamDiscoveredResourceCidr" [({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "IpSource", xmlName := some "ipSource", queryName := some "IpSource" }, (Shape.schema IpamResourceCidrIpSource)), + ({ name := "IpUsage", xmlName := some "ipUsage", queryName := some "IpUsage" }, .number), + ({ name := "IpamResourceDiscoveryId", xmlName := some "ipamResourceDiscoveryId", queryName := some "IpamResourceDiscoveryId" }, .string), + ({ name := "NetworkInterfaceAttachmentStatus", xmlName := some "networkInterfaceAttachmentStatus", queryName := some "NetworkInterfaceAttachmentStatus" }, (Shape.schema IpamNetworkInterfaceAttachmentStatus)), + ({ name := "ResourceCidr", xmlName := some "resourceCidr", queryName := some "ResourceCidr" }, .string), + ({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceOwnerId", xmlName := some "resourceOwnerId", queryName := some "ResourceOwnerId" }, .string), + ({ name := "ResourceRegion", xmlName := some "resourceRegion", queryName := some "ResourceRegion" }, .string), + ({ name := "ResourceTags", xmlName := some "resourceTagSet", queryName := some "ResourceTagSet" }, (.list (Shape.schema IpamResourceTag) "item")), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema IpamResourceType)), + ({ name := "SampleTime", xmlName := some "sampleTime", queryName := some "SampleTime" }, (.time none)), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "IpSource" x.ipSource, putOpt "IpUsage" x.ipUsage, putOpt "IpamResourceDiscoveryId" x.ipamResourceDiscoveryId, putOpt "NetworkInterfaceAttachmentStatus" x.networkInterfaceAttachmentStatus, putOpt "ResourceCidr" x.resourceCidr, putOpt "ResourceId" x.resourceId, putOpt "ResourceOwnerId" x.resourceOwnerId, putOpt "ResourceRegion" x.resourceRegion, putOpt "ResourceTags" x.resourceTags, putOpt "ResourceType" x.resourceType, putOpt "SampleTime" x.sampleTime, putOpt "SubnetId" x.subnetId, putOpt "VpcId" x.vpcId] + ofValue v := do + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let ipSource ← v.opt "IpSource" + let ipUsage ← v.opt "IpUsage" + let ipamResourceDiscoveryId ← v.opt "IpamResourceDiscoveryId" + let networkInterfaceAttachmentStatus ← v.opt "NetworkInterfaceAttachmentStatus" + let resourceCidr ← v.opt "ResourceCidr" + let resourceId ← v.opt "ResourceId" + let resourceOwnerId ← v.opt "ResourceOwnerId" + let resourceRegion ← v.opt "ResourceRegion" + let resourceTags ← v.opt "ResourceTags" + let resourceType ← v.opt "ResourceType" + let sampleTime ← v.opt "SampleTime" + let subnetId ← v.opt "SubnetId" + let vpcId ← v.opt "VpcId" + return { availabilityZoneId, ipSource, ipUsage, ipamResourceDiscoveryId, networkInterfaceAttachmentStatus, resourceCidr, resourceId, resourceOwnerId, resourceRegion, resourceTags, resourceType, sampleTime, subnetId, vpcId } + +/-- Contains information about a BGP route discovered by IPAM resource discovery. -/ +structure IpamDiscoveredRoute where + /-- The advertisement type of the route. -/ + advertisementType : Option IpamByoipAdvertisementType := none + /-- The Autonomous System Number (ASN) that originates the route. -/ + asn : Option String := none + /-- The IP address prefix of the discovered route in CIDR notation. -/ + cidr : Option String := none + /-- The ID of the IPAM pool associated with the route. -/ + ipamPoolId : Option String := none + /-- The ID of the IPAM resource discovery that discovered the route. -/ + ipamResourceDiscoveryId : Option String := none + /-- The network border group for the route. -/ + networkBorderGroup : Option String := none + /-- The ID of the BYOIP pool associated with the route. -/ + poolId : Option String := none + /-- The ID of the resource owner. -/ + resourceOwnerId : Option String := none + /-- The Amazon Web Services Region where the route was discovered. -/ + resourceRegion : Option String := none + /-- The time when the route was last sampled. -/ + sampleTime : Option Timestamp := none + /-- The state of the BYOIP CIDR. -/ + state : Option IpamByoipCidrState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamDiscoveredRoute where + schema := .struct "IpamDiscoveredRoute" [({ name := "AdvertisementType", xmlName := some "advertisementType", queryName := some "AdvertisementType" }, (Shape.schema IpamByoipAdvertisementType)), + ({ name := "Asn", xmlName := some "asn", queryName := some "Asn" }, .string), + ({ name := "Cidr", xmlName := some "cidr", queryName := some "Cidr" }, .string), + ({ name := "IpamPoolId", xmlName := some "ipamPoolId", queryName := some "IpamPoolId" }, .string), + ({ name := "IpamResourceDiscoveryId", xmlName := some "ipamResourceDiscoveryId", queryName := some "IpamResourceDiscoveryId" }, .string), + ({ name := "NetworkBorderGroup", xmlName := some "networkBorderGroup", queryName := some "NetworkBorderGroup" }, .string), + ({ name := "PoolId", xmlName := some "poolId", queryName := some "PoolId" }, .string), + ({ name := "ResourceOwnerId", xmlName := some "resourceOwnerId", queryName := some "ResourceOwnerId" }, .string), + ({ name := "ResourceRegion", xmlName := some "resourceRegion", queryName := some "ResourceRegion" }, .string), + ({ name := "SampleTime", xmlName := some "sampleTime", queryName := some "SampleTime" }, (.time none)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema IpamByoipCidrState))] + toValue x := record [putOpt "AdvertisementType" x.advertisementType, putOpt "Asn" x.asn, putOpt "Cidr" x.cidr, putOpt "IpamPoolId" x.ipamPoolId, putOpt "IpamResourceDiscoveryId" x.ipamResourceDiscoveryId, putOpt "NetworkBorderGroup" x.networkBorderGroup, putOpt "PoolId" x.poolId, putOpt "ResourceOwnerId" x.resourceOwnerId, putOpt "ResourceRegion" x.resourceRegion, putOpt "SampleTime" x.sampleTime, putOpt "State" x.state] + ofValue v := do + let advertisementType ← v.opt "AdvertisementType" + let asn ← v.opt "Asn" + let cidr ← v.opt "Cidr" + let ipamPoolId ← v.opt "IpamPoolId" + let ipamResourceDiscoveryId ← v.opt "IpamResourceDiscoveryId" + let networkBorderGroup ← v.opt "NetworkBorderGroup" + let poolId ← v.opt "PoolId" + let resourceOwnerId ← v.opt "ResourceOwnerId" + let resourceRegion ← v.opt "ResourceRegion" + let sampleTime ← v.opt "SampleTime" + let state ← v.opt "State" + return { advertisementType, asn, cidr, ipamPoolId, ipamResourceDiscoveryId, networkBorderGroup, poolId, resourceOwnerId, resourceRegion, sampleTime, state } + +/-- The discovery failure reason. -/ +structure IpamDiscoveryFailureReason where + /-- The discovery failure code. -/ + code : Option IpamDiscoveryFailureCode := none + /-- The discovery failure message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamDiscoveryFailureReason where + schema := .struct "IpamDiscoveryFailureReason" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, (Shape.schema IpamDiscoveryFailureCode)), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +/-- A verification token is an Amazon Web Services-generated random value that you can use to prove ownership of an external resource. -/ +structure IpamExternalResourceVerificationToken where + /-- ARN of the IPAM that created the token. -/ + ipamArn : Option String := none + /-- Token ARN. -/ + ipamExternalResourceVerificationTokenArn : Option String := none + /-- The ID of the token. -/ + ipamExternalResourceVerificationTokenId : Option String := none + /-- The ID of the IPAM that created the token. -/ + ipamId : Option String := none + /-- Region of the IPAM that created the token. -/ + ipamRegion : Option String := none + /-- Token expiration. -/ + notAfter : Option Timestamp := none + /-- Token state. -/ + state : Option IpamExternalResourceVerificationTokenState := none + /-- Token status. -/ + status : Option TokenState := none + /-- Token tags. -/ + tags : Option (List Tag) := none + /-- Token name. -/ + tokenName : Option String := none + /-- Token value. -/ + tokenValue : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamExternalResourceVerificationToken where + schema := .struct "IpamExternalResourceVerificationToken" [({ name := "IpamArn", xmlName := some "ipamArn", queryName := some "IpamArn" }, .string), + ({ name := "IpamExternalResourceVerificationTokenArn", xmlName := some "ipamExternalResourceVerificationTokenArn", queryName := some "IpamExternalResourceVerificationTokenArn" }, .string), + ({ name := "IpamExternalResourceVerificationTokenId", xmlName := some "ipamExternalResourceVerificationTokenId", queryName := some "IpamExternalResourceVerificationTokenId" }, .string), + ({ name := "IpamId", xmlName := some "ipamId", queryName := some "IpamId" }, .string), + ({ name := "IpamRegion", xmlName := some "ipamRegion", queryName := some "IpamRegion" }, .string), + ({ name := "NotAfter", xmlName := some "notAfter", queryName := some "NotAfter" }, (.time none)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema IpamExternalResourceVerificationTokenState)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema TokenState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TokenName", xmlName := some "tokenName", queryName := some "TokenName" }, .string), + ({ name := "TokenValue", xmlName := some "tokenValue", queryName := some "TokenValue" }, .string)] + toValue x := record [putOpt "IpamArn" x.ipamArn, putOpt "IpamExternalResourceVerificationTokenArn" x.ipamExternalResourceVerificationTokenArn, putOpt "IpamExternalResourceVerificationTokenId" x.ipamExternalResourceVerificationTokenId, putOpt "IpamId" x.ipamId, putOpt "IpamRegion" x.ipamRegion, putOpt "NotAfter" x.notAfter, putOpt "State" x.state, putOpt "Status" x.status, putOpt "Tags" x.tags, putOpt "TokenName" x.tokenName, putOpt "TokenValue" x.tokenValue] + ofValue v := do + let ipamArn ← v.opt "IpamArn" + let ipamExternalResourceVerificationTokenArn ← v.opt "IpamExternalResourceVerificationTokenArn" + let ipamExternalResourceVerificationTokenId ← v.opt "IpamExternalResourceVerificationTokenId" + let ipamId ← v.opt "IpamId" + let ipamRegion ← v.opt "IpamRegion" + let notAfter ← v.opt "NotAfter" + let state ← v.opt "State" + let status ← v.opt "Status" + let tags ← v.opt "Tags" + let tokenName ← v.opt "TokenName" + let tokenValue ← v.opt "TokenValue" + return { ipamArn, ipamExternalResourceVerificationTokenArn, ipamExternalResourceVerificationTokenId, ipamId, ipamRegion, notAfter, state, status, tags, tokenName, tokenValue } + +/-- Contains information about an association between an IPAM and a Regional Internet Registry (RIR) for delegated RPKI management. -/ +structure IpamInternetRegistryAssociation where + /-- The XML content for the child request to be submitted to the internet registry to complete the BPKI setup. -/ + childRequestXml : Option String := none + /-- The description of the internet registry association. -/ + description : Option String := none + /-- The ID of the associated IPAM. -/ + ipamId : Option String := none + /-- The Amazon Resource Name (ARN) of the internet registry association. -/ + ipamInternetRegistryAssociationArn : Option String := none + /-- The ID of the internet registry association. -/ + ipamInternetRegistryAssociationId : Option String := none + /-- The Amazon Web Services Region of the IPAM. -/ + ipamRegion : Option String := none + /-- The organization handle at the internet registry. -/ + organizationHandle : Option String := none + /-- The ID of the Amazon Web Services account that owns the internet registry association. -/ + ownerId : Option String := none + /-- The internet registry. -/ + rir : Option Rir := none + /-- The state of the internet registry association. -/ + state : Option IpamInternetRegistryAssociationState := none + /-- A message describing the current state of the internet registry association, including additional details such as the reason for a failure. -/ + stateMessage : Option String := none + /-- The tags assigned to the internet registry association. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamInternetRegistryAssociation where + schema := .struct "IpamInternetRegistryAssociation" [({ name := "ChildRequestXml", xmlName := some "childRequestXml", queryName := some "ChildRequestXml" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "IpamId", xmlName := some "ipamId", queryName := some "IpamId" }, .string), + ({ name := "IpamInternetRegistryAssociationArn", xmlName := some "ipamInternetRegistryAssociationArn", queryName := some "IpamInternetRegistryAssociationArn" }, .string), + ({ name := "IpamInternetRegistryAssociationId", xmlName := some "ipamInternetRegistryAssociationId", queryName := some "IpamInternetRegistryAssociationId" }, .string), + ({ name := "IpamRegion", xmlName := some "ipamRegion", queryName := some "IpamRegion" }, .string), + ({ name := "OrganizationHandle", xmlName := some "organizationHandle", queryName := some "OrganizationHandle" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "Rir", xmlName := some "rir", queryName := some "Rir" }, (Shape.schema Rir)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema IpamInternetRegistryAssociationState)), + ({ name := "StateMessage", xmlName := some "stateMessage", queryName := some "StateMessage" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "ChildRequestXml" x.childRequestXml, putOpt "Description" x.description, putOpt "IpamId" x.ipamId, putOpt "IpamInternetRegistryAssociationArn" x.ipamInternetRegistryAssociationArn, putOpt "IpamInternetRegistryAssociationId" x.ipamInternetRegistryAssociationId, putOpt "IpamRegion" x.ipamRegion, putOpt "OrganizationHandle" x.organizationHandle, putOpt "OwnerId" x.ownerId, putOpt "Rir" x.rir, putOpt "State" x.state, putOpt "StateMessage" x.stateMessage, putOpt "Tags" x.tags] + ofValue v := do + let childRequestXml ← v.opt "ChildRequestXml" + let description ← v.opt "Description" + let ipamId ← v.opt "IpamId" + let ipamInternetRegistryAssociationArn ← v.opt "IpamInternetRegistryAssociationArn" + let ipamInternetRegistryAssociationId ← v.opt "IpamInternetRegistryAssociationId" + let ipamRegion ← v.opt "IpamRegion" + let organizationHandle ← v.opt "OrganizationHandle" + let ownerId ← v.opt "OwnerId" + let rir ← v.opt "Rir" + let state ← v.opt "State" + let stateMessage ← v.opt "StateMessage" + let tags ← v.opt "Tags" + return { childRequestXml, description, ipamId, ipamInternetRegistryAssociationArn, ipamInternetRegistryAssociationId, ipamRegion, organizationHandle, ownerId, rir, state, stateMessage, tags } + +/-- Information about an IPAM policy. -/ +structure IpamPolicy where + /-- The ID of the IPAM this policy belongs to. -/ + ipamId : Option String := none + /-- The Amazon Resource Name (ARN) of the IPAM policy. -/ + ipamPolicyArn : Option String := none + /-- The ID of the IPAM policy. -/ + ipamPolicyId : Option String := none + /-- The Region of the IPAM policy. -/ + ipamPolicyRegion : Option String := none + /-- The account ID that owns the IPAM policy. -/ + ownerId : Option String := none + /-- The state of the IPAM policy. -/ + state : Option IpamPolicyState := none + /-- A message about the state of the IPAM policy. -/ + stateMessage : Option String := none + /-- The tags assigned to the IPAM policy. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPolicy where + schema := .struct "IpamPolicy" [({ name := "IpamId", xmlName := some "ipamId", queryName := some "IpamId" }, .string), + ({ name := "IpamPolicyArn", xmlName := some "ipamPolicyArn", queryName := some "IpamPolicyArn" }, .string), + ({ name := "IpamPolicyId", xmlName := some "ipamPolicyId", queryName := some "IpamPolicyId" }, .string), + ({ name := "IpamPolicyRegion", xmlName := some "ipamPolicyRegion", queryName := some "IpamPolicyRegion" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema IpamPolicyState)), + ({ name := "StateMessage", xmlName := some "stateMessage", queryName := some "StateMessage" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "IpamId" x.ipamId, putOpt "IpamPolicyArn" x.ipamPolicyArn, putOpt "IpamPolicyId" x.ipamPolicyId, putOpt "IpamPolicyRegion" x.ipamPolicyRegion, putOpt "OwnerId" x.ownerId, putOpt "State" x.state, putOpt "StateMessage" x.stateMessage, putOpt "Tags" x.tags] + ofValue v := do + let ipamId ← v.opt "IpamId" + let ipamPolicyArn ← v.opt "IpamPolicyArn" + let ipamPolicyId ← v.opt "IpamPolicyId" + let ipamPolicyRegion ← v.opt "IpamPolicyRegion" + let ownerId ← v.opt "OwnerId" + let state ← v.opt "State" + let stateMessage ← v.opt "StateMessage" + let tags ← v.opt "Tags" + return { ipamId, ipamPolicyArn, ipamPolicyId, ipamPolicyRegion, ownerId, state, stateMessage, tags } + +/-- Information about an IPAM policy. -/ +structure IpamPolicyDocument where + /-- The allocation rules in the IPAM policy document. -/ + allocationRules : Option (List IpamPolicyAllocationRule) := none + /-- The ID of the IPAM policy. -/ + ipamPolicyId : Option String := none + /-- The locale of the IPAM policy document. -/ + locale : Option String := none + /-- The resource type of the IPAM policy document. -/ + resourceType : Option IpamPolicyResourceType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPolicyDocument where + schema := .struct "IpamPolicyDocument" [({ name := "AllocationRules", xmlName := some "allocationRuleSet", queryName := some "AllocationRuleSet" }, (.list (Shape.schema IpamPolicyAllocationRule) "item")), + ({ name := "IpamPolicyId", xmlName := some "ipamPolicyId", queryName := some "IpamPolicyId" }, .string), + ({ name := "Locale", xmlName := some "locale", queryName := some "Locale" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema IpamPolicyResourceType))] + toValue x := record [putOpt "AllocationRules" x.allocationRules, putOpt "IpamPolicyId" x.ipamPolicyId, putOpt "Locale" x.locale, putOpt "ResourceType" x.resourceType] + ofValue v := do + let allocationRules ← v.opt "AllocationRules" + let ipamPolicyId ← v.opt "IpamPolicyId" + let locale ← v.opt "Locale" + let resourceType ← v.opt "ResourceType" + return { allocationRules, ipamPolicyId, locale, resourceType } + +/-- In IPAM, an allocation is a CIDR assignment from an IPAM pool to another IPAM pool or to a resource. -/ +structure IpamPoolAllocation where + /-- The CIDR for the allocation. -/ + cidr : Option String := none + /-- A description of the pool allocation. -/ + description : Option String := none + /-- The ID of an allocation. -/ + ipamPoolAllocationId : Option String := none + /-- The ID of the resource. -/ + resourceId : Option String := none + /-- The owner of the resource. -/ + resourceOwner : Option String := none + /-- The Amazon Web Services Region of the resource. -/ + resourceRegion : Option String := none + /-- The type of the resource. -/ + resourceType : Option IpamPoolAllocationResourceType := none + /-- The tags for the IPAM pool allocation. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPoolAllocation where + schema := .struct "IpamPoolAllocation" [({ name := "Cidr", xmlName := some "cidr", queryName := some "Cidr" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "IpamPoolAllocationId", xmlName := some "ipamPoolAllocationId", queryName := some "IpamPoolAllocationId" }, .string), + ({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceOwner", xmlName := some "resourceOwner", queryName := some "ResourceOwner" }, .string), + ({ name := "ResourceRegion", xmlName := some "resourceRegion", queryName := some "ResourceRegion" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema IpamPoolAllocationResourceType)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "Cidr" x.cidr, putOpt "Description" x.description, putOpt "IpamPoolAllocationId" x.ipamPoolAllocationId, putOpt "ResourceId" x.resourceId, putOpt "ResourceOwner" x.resourceOwner, putOpt "ResourceRegion" x.resourceRegion, putOpt "ResourceType" x.resourceType, putOpt "Tags" x.tags] + ofValue v := do + let cidr ← v.opt "Cidr" + let description ← v.opt "Description" + let ipamPoolAllocationId ← v.opt "IpamPoolAllocationId" + let resourceId ← v.opt "ResourceId" + let resourceOwner ← v.opt "ResourceOwner" + let resourceRegion ← v.opt "ResourceRegion" + let resourceType ← v.opt "ResourceType" + let tags ← v.opt "Tags" + return { cidr, description, ipamPoolAllocationId, resourceId, resourceOwner, resourceRegion, resourceType, tags } + +/-- Details related to why an IPAM pool CIDR failed to be provisioned. -/ +structure IpamPoolCidrFailureReason where + /-- An error code related to why an IPAM pool CIDR failed to be provisioned. -/ + code : Option IpamPoolCidrFailureCode := none + /-- A message related to why an IPAM pool CIDR failed to be provisioned. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPoolCidrFailureReason where + schema := .struct "IpamPoolCidrFailureReason" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, (Shape.schema IpamPoolCidrFailureCode)), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +/-- The resource used to provision CIDRs to a resource planning pool. -/ +structure IpamPoolSourceResource where + /-- The source resource ID. -/ + resourceId : Option String := none + /-- The source resource owner. -/ + resourceOwner : Option String := none + /-- The source resource Region. -/ + resourceRegion : Option String := none + /-- The source resource type. -/ + resourceType : Option IpamPoolSourceResourceType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPoolSourceResource where + schema := .struct "IpamPoolSourceResource" [({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceOwner", xmlName := some "resourceOwner", queryName := some "ResourceOwner" }, .string), + ({ name := "ResourceRegion", xmlName := some "resourceRegion", queryName := some "ResourceRegion" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema IpamPoolSourceResourceType))] + toValue x := record [putOpt "ResourceId" x.resourceId, putOpt "ResourceOwner" x.resourceOwner, putOpt "ResourceRegion" x.resourceRegion, putOpt "ResourceType" x.resourceType] + ofValue v := do + let resourceId ← v.opt "ResourceId" + let resourceOwner ← v.opt "ResourceOwner" + let resourceRegion ← v.opt "ResourceRegion" + let resourceType ← v.opt "ResourceType" + return { resourceId, resourceOwner, resourceRegion, resourceType } + +/-- The resource used to provision CIDRs to a resource planning pool. -/ +structure IpamPoolSourceResourceRequest where + /-- The source resource ID. -/ + resourceId : Option String := none + /-- The source resource owner. -/ + resourceOwner : Option String := none + /-- The source resource Region. -/ + resourceRegion : Option String := none + /-- The source resource type. -/ + resourceType : Option IpamPoolSourceResourceType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPoolSourceResourceRequest where + schema := .struct "IpamPoolSourceResourceRequest" [({ name := "ResourceId" }, .string), + ({ name := "ResourceOwner" }, .string), + ({ name := "ResourceRegion" }, .string), + ({ name := "ResourceType" }, (Shape.schema IpamPoolSourceResourceType))] + toValue x := record [putOpt "ResourceId" x.resourceId, putOpt "ResourceOwner" x.resourceOwner, putOpt "ResourceRegion" x.resourceRegion, putOpt "ResourceType" x.resourceType] + ofValue v := do + let resourceId ← v.opt "ResourceId" + let resourceOwner ← v.opt "ResourceOwner" + let resourceRegion ← v.opt "ResourceRegion" + let resourceType ← v.opt "ResourceType" + return { resourceId, resourceOwner, resourceRegion, resourceType } + +/-- Describes an IPAM prefix list resolver. -/ +structure IpamPrefixListResolver where + /-- The address family (IPv4 or IPv6) for the IPAM prefix list resolver. -/ + addressFamily : Option AddressFamily := none + /-- The description of the IPAM prefix list resolver. -/ + description : Option String := none + /-- The Amazon Resource Name (ARN) of the IPAM associated with this resolver. -/ + ipamArn : Option String := none + /-- The Amazon Resource Name (ARN) of the IPAM prefix list resolver. -/ + ipamPrefixListResolverArn : Option String := none + /-- The ID of the IPAM prefix list resolver. -/ + ipamPrefixListResolverId : Option String := none + /-- The Amazon Web Services Region where the associated IPAM is located. -/ + ipamRegion : Option String := none + /-- The status for the last time a version was created. -/ + lastVersionCreationStatus : Option IpamPrefixListResolverVersionCreationStatus := none + /-- The status message for the last time a version was created. -/ + lastVersionCreationStatusMessage : Option String := none + /-- The ID of the Amazon Web Services account that owns the IPAM prefix list resolver. -/ + ownerId : Option String := none + /-- The current state of the IPAM prefix list resolver. -/ + state : Option IpamPrefixListResolverState := none + /-- The tags assigned to the IPAM prefix list resolver. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPrefixListResolver where + schema := .struct "IpamPrefixListResolver" [({ name := "AddressFamily", xmlName := some "addressFamily", queryName := some "AddressFamily" }, (Shape.schema AddressFamily)), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "IpamArn", xmlName := some "ipamArn", queryName := some "IpamArn" }, .string), + ({ name := "IpamPrefixListResolverArn", xmlName := some "ipamPrefixListResolverArn", queryName := some "IpamPrefixListResolverArn" }, .string), + ({ name := "IpamPrefixListResolverId", xmlName := some "ipamPrefixListResolverId", queryName := some "IpamPrefixListResolverId" }, .string), + ({ name := "IpamRegion", xmlName := some "ipamRegion", queryName := some "IpamRegion" }, .string), + ({ name := "LastVersionCreationStatus", xmlName := some "lastVersionCreationStatus", queryName := some "LastVersionCreationStatus" }, (Shape.schema IpamPrefixListResolverVersionCreationStatus)), + ({ name := "LastVersionCreationStatusMessage", xmlName := some "lastVersionCreationStatusMessage", queryName := some "LastVersionCreationStatusMessage" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema IpamPrefixListResolverState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "AddressFamily" x.addressFamily, putOpt "Description" x.description, putOpt "IpamArn" x.ipamArn, putOpt "IpamPrefixListResolverArn" x.ipamPrefixListResolverArn, putOpt "IpamPrefixListResolverId" x.ipamPrefixListResolverId, putOpt "IpamRegion" x.ipamRegion, putOpt "LastVersionCreationStatus" x.lastVersionCreationStatus, putOpt "LastVersionCreationStatusMessage" x.lastVersionCreationStatusMessage, putOpt "OwnerId" x.ownerId, putOpt "State" x.state, putOpt "Tags" x.tags] + ofValue v := do + let addressFamily ← v.opt "AddressFamily" + let description ← v.opt "Description" + let ipamArn ← v.opt "IpamArn" + let ipamPrefixListResolverArn ← v.opt "IpamPrefixListResolverArn" + let ipamPrefixListResolverId ← v.opt "IpamPrefixListResolverId" + let ipamRegion ← v.opt "IpamRegion" + let lastVersionCreationStatus ← v.opt "LastVersionCreationStatus" + let lastVersionCreationStatusMessage ← v.opt "LastVersionCreationStatusMessage" + let ownerId ← v.opt "OwnerId" + let state ← v.opt "State" + let tags ← v.opt "Tags" + return { addressFamily, description, ipamArn, ipamPrefixListResolverArn, ipamPrefixListResolverId, ipamRegion, lastVersionCreationStatus, lastVersionCreationStatusMessage, ownerId, state, tags } + +/-- Describes a condition within a CIDR selection rule. -/ +structure IpamPrefixListResolverRuleCondition where + /-- A CIDR block to match against. -/ + cidr : Option String := none + /-- The ID of the IPAM pool to match against. -/ + ipamPoolId : Option String := none + /-- The operation to perform when evaluating this condition. -/ + operation : Option IpamPrefixListResolverRuleConditionOperation := none + /-- The ID of the Amazon Web Services resource to match against. -/ + resourceId : Option String := none + /-- The Amazon Web Services account ID that owns the resources to match against. -/ + resourceOwner : Option String := none + /-- The Amazon Web Services Region where the resources are located. -/ + resourceRegion : Option String := none + /-- A tag key-value pair to match against. -/ + resourceTag : Option IpamResourceTag := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPrefixListResolverRuleCondition where + schema := .struct "IpamPrefixListResolverRuleCondition" [({ name := "Cidr", xmlName := some "cidr", queryName := some "Cidr" }, .string), + ({ name := "IpamPoolId", xmlName := some "ipamPoolId", queryName := some "IpamPoolId" }, .string), + ({ name := "Operation", xmlName := some "operation", queryName := some "Operation" }, (Shape.schema IpamPrefixListResolverRuleConditionOperation)), + ({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceOwner", xmlName := some "resourceOwner", queryName := some "ResourceOwner" }, .string), + ({ name := "ResourceRegion", xmlName := some "resourceRegion", queryName := some "ResourceRegion" }, .string), + ({ name := "ResourceTag", xmlName := some "resourceTag", queryName := some "ResourceTag" }, (Shape.schema IpamResourceTag))] + toValue x := record [putOpt "Cidr" x.cidr, putOpt "IpamPoolId" x.ipamPoolId, putOpt "Operation" x.operation, putOpt "ResourceId" x.resourceId, putOpt "ResourceOwner" x.resourceOwner, putOpt "ResourceRegion" x.resourceRegion, putOpt "ResourceTag" x.resourceTag] + ofValue v := do + let cidr ← v.opt "Cidr" + let ipamPoolId ← v.opt "IpamPoolId" + let operation ← v.opt "Operation" + let resourceId ← v.opt "ResourceId" + let resourceOwner ← v.opt "ResourceOwner" + let resourceRegion ← v.opt "ResourceRegion" + let resourceTag ← v.opt "ResourceTag" + return { cidr, ipamPoolId, operation, resourceId, resourceOwner, resourceRegion, resourceTag } + +/-- Describes a condition used when creating or modifying resolver rules. -/ +structure IpamPrefixListResolverRuleConditionRequest where + /-- A CIDR block to match against. -/ + cidr : Option String := none + /-- The ID of the IPAM pool to match against. -/ + ipamPoolId : Option String := none + /-- The operation to perform when evaluating this condition. -/ + operation : IpamPrefixListResolverRuleConditionOperation + /-- The ID of the Amazon Web Services resource to match against. -/ + resourceId : Option String := none + /-- The Amazon Web Services account ID that owns the resources to match against. -/ + resourceOwner : Option String := none + /-- The Amazon Web Services Region where the resources are located. -/ + resourceRegion : Option String := none + /-- A tag key-value pair to match against. -/ + resourceTag : Option RequestIpamResourceTag := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPrefixListResolverRuleConditionRequest where + schema := .struct "IpamPrefixListResolverRuleConditionRequest" [({ name := "Cidr" }, .string), + ({ name := "IpamPoolId" }, .string), + ({ name := "Operation", required := true }, (Shape.schema IpamPrefixListResolverRuleConditionOperation)), + ({ name := "ResourceId" }, .string), + ({ name := "ResourceOwner" }, .string), + ({ name := "ResourceRegion" }, .string), + ({ name := "ResourceTag" }, (Shape.schema RequestIpamResourceTag))] + toValue x := record [putOpt "Cidr" x.cidr, putOpt "IpamPoolId" x.ipamPoolId, put "Operation" x.operation, putOpt "ResourceId" x.resourceId, putOpt "ResourceOwner" x.resourceOwner, putOpt "ResourceRegion" x.resourceRegion, putOpt "ResourceTag" x.resourceTag] + ofValue v := do + let cidr ← v.opt "Cidr" + let ipamPoolId ← v.opt "IpamPoolId" + let operation ← v.req "Operation" + let resourceId ← v.opt "ResourceId" + let resourceOwner ← v.opt "ResourceOwner" + let resourceRegion ← v.opt "ResourceRegion" + let resourceTag ← v.opt "ResourceTag" + return { cidr, ipamPoolId, operation, resourceId, resourceOwner, resourceRegion, resourceTag } + +/-- Describes an IPAM prefix list resolver target. -/ +structure IpamPrefixListResolverTarget where + /-- The desired version of the prefix list that this target should synchronize with. -/ + desiredVersion : Option Int := none + /-- The ID of the IPAM prefix list resolver associated with this target. -/ + ipamPrefixListResolverId : Option String := none + /-- The Amazon Resource Name (ARN) of the IPAM prefix list resolver target. -/ + ipamPrefixListResolverTargetArn : Option String := none + /-- The ID of the IPAM prefix list resolver target. -/ + ipamPrefixListResolverTargetId : Option String := none + /-- The version of the prefix list that was last successfully synchronized by this target. -/ + lastSyncedVersion : Option Int := none + /-- The ID of the Amazon Web Services account that owns the IPAM prefix list resolver target. -/ + ownerId : Option String := none + /-- The ID of the managed prefix list associated with this target. -/ + prefixListId : Option String := none + /-- The Amazon Web Services Region where the prefix list associated with this target is located. -/ + prefixListRegion : Option String := none + /-- The current state of the IPAM prefix list resolver target. -/ + state : Option IpamPrefixListResolverTargetState := none + /-- A message describing the current state of the IPAM prefix list resolver target, including any error information. -/ + stateMessage : Option String := none + /-- The tags assigned to the IPAM prefix list resolver target. -/ + tags : Option (List Tag) := none + /-- Indicates whether this target automatically tracks the latest version of the prefix list. -/ + trackLatestVersion : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPrefixListResolverTarget where + schema := .struct "IpamPrefixListResolverTarget" [({ name := "DesiredVersion", xmlName := some "desiredVersion", queryName := some "DesiredVersion" }, .int), + ({ name := "IpamPrefixListResolverId", xmlName := some "ipamPrefixListResolverId", queryName := some "IpamPrefixListResolverId" }, .string), + ({ name := "IpamPrefixListResolverTargetArn", xmlName := some "ipamPrefixListResolverTargetArn", queryName := some "IpamPrefixListResolverTargetArn" }, .string), + ({ name := "IpamPrefixListResolverTargetId", xmlName := some "ipamPrefixListResolverTargetId", queryName := some "IpamPrefixListResolverTargetId" }, .string), + ({ name := "LastSyncedVersion", xmlName := some "lastSyncedVersion", queryName := some "LastSyncedVersion" }, .int), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "PrefixListId", xmlName := some "prefixListId", queryName := some "PrefixListId" }, .string), + ({ name := "PrefixListRegion", xmlName := some "prefixListRegion", queryName := some "PrefixListRegion" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema IpamPrefixListResolverTargetState)), + ({ name := "StateMessage", xmlName := some "stateMessage", queryName := some "StateMessage" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TrackLatestVersion", xmlName := some "trackLatestVersion", queryName := some "TrackLatestVersion" }, .bool)] + toValue x := record [putOpt "DesiredVersion" x.desiredVersion, putOpt "IpamPrefixListResolverId" x.ipamPrefixListResolverId, putOpt "IpamPrefixListResolverTargetArn" x.ipamPrefixListResolverTargetArn, putOpt "IpamPrefixListResolverTargetId" x.ipamPrefixListResolverTargetId, putOpt "LastSyncedVersion" x.lastSyncedVersion, putOpt "OwnerId" x.ownerId, putOpt "PrefixListId" x.prefixListId, putOpt "PrefixListRegion" x.prefixListRegion, putOpt "State" x.state, putOpt "StateMessage" x.stateMessage, putOpt "Tags" x.tags, putOpt "TrackLatestVersion" x.trackLatestVersion] + ofValue v := do + let desiredVersion ← v.opt "DesiredVersion" + let ipamPrefixListResolverId ← v.opt "IpamPrefixListResolverId" + let ipamPrefixListResolverTargetArn ← v.opt "IpamPrefixListResolverTargetArn" + let ipamPrefixListResolverTargetId ← v.opt "IpamPrefixListResolverTargetId" + let lastSyncedVersion ← v.opt "LastSyncedVersion" + let ownerId ← v.opt "OwnerId" + let prefixListId ← v.opt "PrefixListId" + let prefixListRegion ← v.opt "PrefixListRegion" + let state ← v.opt "State" + let stateMessage ← v.opt "StateMessage" + let tags ← v.opt "Tags" + let trackLatestVersion ← v.opt "TrackLatestVersion" + return { desiredVersion, ipamPrefixListResolverId, ipamPrefixListResolverTargetArn, ipamPrefixListResolverTargetId, lastSyncedVersion, ownerId, prefixListId, prefixListRegion, state, stateMessage, tags, trackLatestVersion } + +/-- Tags for a public IP address discovered by IPAM. -/ +structure IpamPublicAddressTags where + /-- Tags for an Elastic IP address. -/ + eipTags : Option (List IpamPublicAddressTag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPublicAddressTags where + schema := .struct "IpamPublicAddressTags" [({ name := "EipTags", xmlName := some "eipTagSet", queryName := some "EipTagSet" }, (.list (Shape.schema IpamPublicAddressTag) "item"))] + toValue x := record [putOpt "EipTags" x.eipTags] + ofValue v := do + let eipTags ← v.opt "EipTags" + return { eipTags } + +/-- The CIDR for an IPAM resource. -/ +structure IpamResourceCidr where + /-- The Availability Zone ID. -/ + availabilityZoneId : Option String := none + /-- The compliance status of the IPAM resource. -/ + complianceStatus : Option IpamComplianceStatus := none + /-- The percentage of IP address space in use. -/ + ipUsage : Option JsonNumber := none + /-- The IPAM ID for an IPAM resource. -/ + ipamId : Option String := none + /-- The pool ID for an IPAM resource. -/ + ipamPoolId : Option String := none + /-- The scope ID for an IPAM resource. -/ + ipamScopeId : Option String := none + /-- The management state of the resource. -/ + managementState : Option IpamManagementState := none + /-- The overlap status of an IPAM resource. -/ + overlapStatus : Option IpamOverlapStatus := none + /-- The CIDR for an IPAM resource. -/ + resourceCidr : Option String := none + /-- The ID of an IPAM resource. -/ + resourceId : Option String := none + /-- The name of an IPAM resource. -/ + resourceName : Option String := none + /-- The Amazon Web Services account number of the owner of an IPAM resource. -/ + resourceOwnerId : Option String := none + /-- The Amazon Web Services Region for an IPAM resource. -/ + resourceRegion : Option String := none + /-- The tags for an IPAM resource. -/ + resourceTags : Option (List IpamResourceTag) := none + /-- The type of IPAM resource. -/ + resourceType : Option IpamResourceType := none + /-- The ID of a VPC. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamResourceCidr where + schema := .struct "IpamResourceCidr" [({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "ComplianceStatus", xmlName := some "complianceStatus", queryName := some "ComplianceStatus" }, (Shape.schema IpamComplianceStatus)), + ({ name := "IpUsage", xmlName := some "ipUsage", queryName := some "IpUsage" }, .number), + ({ name := "IpamId", xmlName := some "ipamId", queryName := some "IpamId" }, .string), + ({ name := "IpamPoolId", xmlName := some "ipamPoolId", queryName := some "IpamPoolId" }, .string), + ({ name := "IpamScopeId", xmlName := some "ipamScopeId", queryName := some "IpamScopeId" }, .string), + ({ name := "ManagementState", xmlName := some "managementState", queryName := some "ManagementState" }, (Shape.schema IpamManagementState)), + ({ name := "OverlapStatus", xmlName := some "overlapStatus", queryName := some "OverlapStatus" }, (Shape.schema IpamOverlapStatus)), + ({ name := "ResourceCidr", xmlName := some "resourceCidr", queryName := some "ResourceCidr" }, .string), + ({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceName", xmlName := some "resourceName", queryName := some "ResourceName" }, .string), + ({ name := "ResourceOwnerId", xmlName := some "resourceOwnerId", queryName := some "ResourceOwnerId" }, .string), + ({ name := "ResourceRegion", xmlName := some "resourceRegion", queryName := some "ResourceRegion" }, .string), + ({ name := "ResourceTags", xmlName := some "resourceTagSet", queryName := some "ResourceTagSet" }, (.list (Shape.schema IpamResourceTag) "item")), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema IpamResourceType)), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "ComplianceStatus" x.complianceStatus, putOpt "IpUsage" x.ipUsage, putOpt "IpamId" x.ipamId, putOpt "IpamPoolId" x.ipamPoolId, putOpt "IpamScopeId" x.ipamScopeId, putOpt "ManagementState" x.managementState, putOpt "OverlapStatus" x.overlapStatus, putOpt "ResourceCidr" x.resourceCidr, putOpt "ResourceId" x.resourceId, putOpt "ResourceName" x.resourceName, putOpt "ResourceOwnerId" x.resourceOwnerId, putOpt "ResourceRegion" x.resourceRegion, putOpt "ResourceTags" x.resourceTags, putOpt "ResourceType" x.resourceType, putOpt "VpcId" x.vpcId] + ofValue v := do + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let complianceStatus ← v.opt "ComplianceStatus" + let ipUsage ← v.opt "IpUsage" + let ipamId ← v.opt "IpamId" + let ipamPoolId ← v.opt "IpamPoolId" + let ipamScopeId ← v.opt "IpamScopeId" + let managementState ← v.opt "ManagementState" + let overlapStatus ← v.opt "OverlapStatus" + let resourceCidr ← v.opt "ResourceCidr" + let resourceId ← v.opt "ResourceId" + let resourceName ← v.opt "ResourceName" + let resourceOwnerId ← v.opt "ResourceOwnerId" + let resourceRegion ← v.opt "ResourceRegion" + let resourceTags ← v.opt "ResourceTags" + let resourceType ← v.opt "ResourceType" + let vpcId ← v.opt "VpcId" + return { availabilityZoneId, complianceStatus, ipUsage, ipamId, ipamPoolId, ipamScopeId, managementState, overlapStatus, resourceCidr, resourceId, resourceName, resourceOwnerId, resourceRegion, resourceTags, resourceType, vpcId } + +/-- A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account. -/ +structure IpamResourceDiscovery where + /-- The resource discovery description. -/ + description : Option String := none + /-- The resource discovery Amazon Resource Name (ARN). -/ + ipamResourceDiscoveryArn : Option String := none + /-- The resource discovery ID. -/ + ipamResourceDiscoveryId : Option String := none + /-- The resource discovery Region. -/ + ipamResourceDiscoveryRegion : Option String := none + /-- Defines if the resource discovery is the default. -/ + isDefault : Option Bool := none + /-- The operating Regions for the resource discovery. -/ + operatingRegions : Option (List IpamOperatingRegion) := none + /-- If your IPAM is integrated with Amazon Web Services Organizations and you add an organizational unit (OU) exclusion, IPAM will not manage the IP addresses in accounts in that OU exclusion. -/ + organizationalUnitExclusions : Option (List IpamOrganizationalUnitExclusion) := none + /-- The ID of the owner. -/ + ownerId : Option String := none + /-- The lifecycle state of the resource discovery. -/ + state : Option IpamResourceDiscoveryState := none + /-- A tag is a label that you assign to an Amazon Web Services resource. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamResourceDiscovery where + schema := .struct "IpamResourceDiscovery" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "IpamResourceDiscoveryArn", xmlName := some "ipamResourceDiscoveryArn", queryName := some "IpamResourceDiscoveryArn" }, .string), + ({ name := "IpamResourceDiscoveryId", xmlName := some "ipamResourceDiscoveryId", queryName := some "IpamResourceDiscoveryId" }, .string), + ({ name := "IpamResourceDiscoveryRegion", xmlName := some "ipamResourceDiscoveryRegion", queryName := some "IpamResourceDiscoveryRegion" }, .string), + ({ name := "IsDefault", xmlName := some "isDefault", queryName := some "IsDefault" }, .bool), + ({ name := "OperatingRegions", xmlName := some "operatingRegionSet", queryName := some "OperatingRegionSet" }, (.list (Shape.schema IpamOperatingRegion) "item")), + ({ name := "OrganizationalUnitExclusions", xmlName := some "organizationalUnitExclusionSet", queryName := some "OrganizationalUnitExclusionSet" }, (.list (Shape.schema IpamOrganizationalUnitExclusion) "item")), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema IpamResourceDiscoveryState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "Description" x.description, putOpt "IpamResourceDiscoveryArn" x.ipamResourceDiscoveryArn, putOpt "IpamResourceDiscoveryId" x.ipamResourceDiscoveryId, putOpt "IpamResourceDiscoveryRegion" x.ipamResourceDiscoveryRegion, putOpt "IsDefault" x.isDefault, putOpt "OperatingRegions" x.operatingRegions, putOpt "OrganizationalUnitExclusions" x.organizationalUnitExclusions, putOpt "OwnerId" x.ownerId, putOpt "State" x.state, putOpt "Tags" x.tags] + ofValue v := do + let description ← v.opt "Description" + let ipamResourceDiscoveryArn ← v.opt "IpamResourceDiscoveryArn" + let ipamResourceDiscoveryId ← v.opt "IpamResourceDiscoveryId" + let ipamResourceDiscoveryRegion ← v.opt "IpamResourceDiscoveryRegion" + let isDefault ← v.opt "IsDefault" + let operatingRegions ← v.opt "OperatingRegions" + let organizationalUnitExclusions ← v.opt "OrganizationalUnitExclusions" + let ownerId ← v.opt "OwnerId" + let state ← v.opt "State" + let tags ← v.opt "Tags" + return { description, ipamResourceDiscoveryArn, ipamResourceDiscoveryId, ipamResourceDiscoveryRegion, isDefault, operatingRegions, organizationalUnitExclusions, ownerId, state, tags } + +/-- An IPAM resource discovery association. -/ +structure IpamResourceDiscoveryAssociation where + /-- The IPAM ARN. -/ + ipamArn : Option String := none + /-- The IPAM ID. -/ + ipamId : Option String := none + /-- The IPAM home Region. -/ + ipamRegion : Option String := none + /-- The resource discovery association Amazon Resource Name (ARN). -/ + ipamResourceDiscoveryAssociationArn : Option String := none + /-- The resource discovery association ID. -/ + ipamResourceDiscoveryAssociationId : Option String := none + /-- The resource discovery ID. -/ + ipamResourceDiscoveryId : Option String := none + /-- Defines if the resource discovery is the default. -/ + isDefault : Option Bool := none + /-- The Amazon Web Services account ID of the resource discovery owner. -/ + ownerId : Option String := none + /-- The resource discovery status. -/ + resourceDiscoveryStatus : Option IpamAssociatedResourceDiscoveryStatus := none + /-- The lifecycle state of the association when you associate or disassociate a resource discovery. -/ + state : Option IpamResourceDiscoveryAssociationState := none + /-- A tag is a label that you assign to an Amazon Web Services resource. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamResourceDiscoveryAssociation where + schema := .struct "IpamResourceDiscoveryAssociation" [({ name := "IpamArn", xmlName := some "ipamArn", queryName := some "IpamArn" }, .string), + ({ name := "IpamId", xmlName := some "ipamId", queryName := some "IpamId" }, .string), + ({ name := "IpamRegion", xmlName := some "ipamRegion", queryName := some "IpamRegion" }, .string), + ({ name := "IpamResourceDiscoveryAssociationArn", xmlName := some "ipamResourceDiscoveryAssociationArn", queryName := some "IpamResourceDiscoveryAssociationArn" }, .string), + ({ name := "IpamResourceDiscoveryAssociationId", xmlName := some "ipamResourceDiscoveryAssociationId", queryName := some "IpamResourceDiscoveryAssociationId" }, .string), + ({ name := "IpamResourceDiscoveryId", xmlName := some "ipamResourceDiscoveryId", queryName := some "IpamResourceDiscoveryId" }, .string), + ({ name := "IsDefault", xmlName := some "isDefault", queryName := some "IsDefault" }, .bool), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "ResourceDiscoveryStatus", xmlName := some "resourceDiscoveryStatus", queryName := some "ResourceDiscoveryStatus" }, (Shape.schema IpamAssociatedResourceDiscoveryStatus)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema IpamResourceDiscoveryAssociationState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "IpamArn" x.ipamArn, putOpt "IpamId" x.ipamId, putOpt "IpamRegion" x.ipamRegion, putOpt "IpamResourceDiscoveryAssociationArn" x.ipamResourceDiscoveryAssociationArn, putOpt "IpamResourceDiscoveryAssociationId" x.ipamResourceDiscoveryAssociationId, putOpt "IpamResourceDiscoveryId" x.ipamResourceDiscoveryId, putOpt "IsDefault" x.isDefault, putOpt "OwnerId" x.ownerId, putOpt "ResourceDiscoveryStatus" x.resourceDiscoveryStatus, putOpt "State" x.state, putOpt "Tags" x.tags] + ofValue v := do + let ipamArn ← v.opt "IpamArn" + let ipamId ← v.opt "IpamId" + let ipamRegion ← v.opt "IpamRegion" + let ipamResourceDiscoveryAssociationArn ← v.opt "IpamResourceDiscoveryAssociationArn" + let ipamResourceDiscoveryAssociationId ← v.opt "IpamResourceDiscoveryAssociationId" + let ipamResourceDiscoveryId ← v.opt "IpamResourceDiscoveryId" + let isDefault ← v.opt "IsDefault" + let ownerId ← v.opt "OwnerId" + let resourceDiscoveryStatus ← v.opt "ResourceDiscoveryStatus" + let state ← v.opt "State" + let tags ← v.opt "Tags" + return { ipamArn, ipamId, ipamRegion, ipamResourceDiscoveryAssociationArn, ipamResourceDiscoveryAssociationId, ipamResourceDiscoveryId, isDefault, ownerId, resourceDiscoveryStatus, state, tags } + +/-- Contains information about a route protection finding, including the RPKI validation status of a BYOIP route announcement. -/ +structure IpamRouteProtectionFinding where + /-- The advertisement type. -/ + advertisementType : Option IpamByoipAdvertisementType := none + /-- The Autonomous System Number (ASN) that originates the route. -/ + asn : Option String := none + /-- The IP address prefix in CIDR notation. -/ + cidr : Option String := none + /-- The ID of the IPAM pool associated with the finding. -/ + ipamPoolId : Option String := none + /-- The network border group. -/ + networkBorderGroup : Option String := none + /-- The ID of the BYOIP pool. -/ + poolId : Option String := none + /-- The ID of the resource owner. -/ + resourceOwnerId : Option String := none + /-- The Amazon Web Services Region of the resource. -/ + resourceRegion : Option String := none + /-- The time when the ROA data was last sampled. -/ + roaSampleTime : Option Timestamp := none + /-- The Route Origin Authorizations (ROAs) that cover the prefix. -/ + roas : Option (List IpamRouteOriginAuthorization) := none + /-- The overlapping routes detected for this prefix. -/ + routeOverlaps : Option (List IpamRouteOverlap) := none + /-- The RPKI validation status of the route. -/ + rpkiStatus : Option IpamRpkiStatus := none + /-- The RPKI enforcement strength for the route. -/ + rpkiStrength : Option IpamRpkiStrength := none + /-- The time when the route was last sampled. -/ + sampleTime : Option Timestamp := none + /-- The state of the BYOIP CIDR. -/ + state : Option IpamByoipCidrState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamRouteProtectionFinding where + schema := .struct "IpamRouteProtectionFinding" [({ name := "AdvertisementType", xmlName := some "advertisementType", queryName := some "AdvertisementType" }, (Shape.schema IpamByoipAdvertisementType)), + ({ name := "Asn", xmlName := some "asn", queryName := some "Asn" }, .string), + ({ name := "Cidr", xmlName := some "cidr", queryName := some "Cidr" }, .string), + ({ name := "IpamPoolId", xmlName := some "ipamPoolId", queryName := some "IpamPoolId" }, .string), + ({ name := "NetworkBorderGroup", xmlName := some "networkBorderGroup", queryName := some "NetworkBorderGroup" }, .string), + ({ name := "PoolId", xmlName := some "poolId", queryName := some "PoolId" }, .string), + ({ name := "ResourceOwnerId", xmlName := some "resourceOwnerId", queryName := some "ResourceOwnerId" }, .string), + ({ name := "ResourceRegion", xmlName := some "resourceRegion", queryName := some "ResourceRegion" }, .string), + ({ name := "RoaSampleTime", xmlName := some "roaSampleTime", queryName := some "RoaSampleTime" }, (.time none)), + ({ name := "Roas", xmlName := some "roaSet", queryName := some "RoaSet" }, (.list (Shape.schema IpamRouteOriginAuthorization) "item")), + ({ name := "RouteOverlaps", xmlName := some "routeOverlapSet", queryName := some "RouteOverlapSet" }, (.list (Shape.schema IpamRouteOverlap) "item")), + ({ name := "RpkiStatus", xmlName := some "rpkiStatus", queryName := some "RpkiStatus" }, (Shape.schema IpamRpkiStatus)), + ({ name := "RpkiStrength", xmlName := some "rpkiStrength", queryName := some "RpkiStrength" }, (Shape.schema IpamRpkiStrength)), + ({ name := "SampleTime", xmlName := some "sampleTime", queryName := some "SampleTime" }, (.time none)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema IpamByoipCidrState))] + toValue x := record [putOpt "AdvertisementType" x.advertisementType, putOpt "Asn" x.asn, putOpt "Cidr" x.cidr, putOpt "IpamPoolId" x.ipamPoolId, putOpt "NetworkBorderGroup" x.networkBorderGroup, putOpt "PoolId" x.poolId, putOpt "ResourceOwnerId" x.resourceOwnerId, putOpt "ResourceRegion" x.resourceRegion, putOpt "RoaSampleTime" x.roaSampleTime, putOpt "Roas" x.roas, putOpt "RouteOverlaps" x.routeOverlaps, putOpt "RpkiStatus" x.rpkiStatus, putOpt "RpkiStrength" x.rpkiStrength, putOpt "SampleTime" x.sampleTime, putOpt "State" x.state] + ofValue v := do + let advertisementType ← v.opt "AdvertisementType" + let asn ← v.opt "Asn" + let cidr ← v.opt "Cidr" + let ipamPoolId ← v.opt "IpamPoolId" + let networkBorderGroup ← v.opt "NetworkBorderGroup" + let poolId ← v.opt "PoolId" + let resourceOwnerId ← v.opt "ResourceOwnerId" + let resourceRegion ← v.opt "ResourceRegion" + let roaSampleTime ← v.opt "RoaSampleTime" + let roas ← v.opt "Roas" + let routeOverlaps ← v.opt "RouteOverlaps" + let rpkiStatus ← v.opt "RpkiStatus" + let rpkiStrength ← v.opt "RpkiStrength" + let sampleTime ← v.opt "SampleTime" + let state ← v.opt "State" + return { advertisementType, asn, cidr, ipamPoolId, networkBorderGroup, poolId, resourceOwnerId, resourceRegion, roaSampleTime, roas, routeOverlaps, rpkiStatus, rpkiStrength, sampleTime, state } + +/-- Contains information about a routing policy registration that represents a Route Origin Authorization (ROA) managed through IPAM. -/ +structure IpamRoutingPolicyRegistration where + /-- The Autonomous System Numbers (ASNs) authorized to originate the prefix. -/ + asns : Option (List String) := none + /-- The IP address prefix in CIDR notation authorized by the ROA. -/ + cidr : Option String := none + /-- The description of the routing policy registration. -/ + description : Option String := none + /-- The ID of the most recent delta that modified this registration. -/ + latestDeltaId : Option String := none + /-- The maximum prefix length that the ASNs are authorized to announce. -/ + maxLength : Option Int := none + /-- Specifies whether to permit more specific route announcements than the CIDR prefix. -/ + permitMoreSpecificAnnouncements : Option Bool := none + /-- The state of the routing policy registration. -/ + state : Option IpamRoutingPolicyRegistrationState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamRoutingPolicyRegistration where + schema := .struct "IpamRoutingPolicyRegistration" [({ name := "Asns", xmlName := some "asnSet", queryName := some "AsnSet" }, (.list .string "item")), + ({ name := "Cidr", xmlName := some "cidr", queryName := some "Cidr" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "LatestDeltaId", xmlName := some "latestDeltaId", queryName := some "LatestDeltaId" }, .string), + ({ name := "MaxLength", xmlName := some "maxLength", queryName := some "MaxLength" }, .int), + ({ name := "PermitMoreSpecificAnnouncements", xmlName := some "permitMoreSpecificAnnouncements", queryName := some "PermitMoreSpecificAnnouncements" }, .bool), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema IpamRoutingPolicyRegistrationState))] + toValue x := record [putOpt "Asns" x.asns, putOpt "Cidr" x.cidr, putOpt "Description" x.description, putOpt "LatestDeltaId" x.latestDeltaId, putOpt "MaxLength" x.maxLength, putOpt "PermitMoreSpecificAnnouncements" x.permitMoreSpecificAnnouncements, putOpt "State" x.state] + ofValue v := do + let asns ← v.opt "Asns" + let cidr ← v.opt "Cidr" + let description ← v.opt "Description" + let latestDeltaId ← v.opt "LatestDeltaId" + let maxLength ← v.opt "MaxLength" + let permitMoreSpecificAnnouncements ← v.opt "PermitMoreSpecificAnnouncements" + let state ← v.opt "State" + return { asns, cidr, description, latestDeltaId, maxLength, permitMoreSpecificAnnouncements, state } + +/-- Contains information about a routing policy registration change, including the changes applied and their publication state. -/ +structure IpamRoutingPolicyRegistrationDelta where + /-- The unique identifier of the delta. -/ + deltaId : Option String := none + /-- The JSON specification describing the changes applied in this delta. -/ + deltaJson : Option String := none + /-- The state of the delta. -/ + state : Option IpamRoutingPolicyRegistrationDeltaState := none + /-- A message describing the current state, including error information if the delta failed. -/ + stateMessage : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamRoutingPolicyRegistrationDelta where + schema := .struct "IpamRoutingPolicyRegistrationDelta" [({ name := "DeltaId", xmlName := some "deltaId", queryName := some "DeltaId" }, .string), + ({ name := "DeltaJson", xmlName := some "deltaJson", queryName := some "DeltaJson" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema IpamRoutingPolicyRegistrationDeltaState)), + ({ name := "StateMessage", xmlName := some "stateMessage", queryName := some "StateMessage" }, .string)] + toValue x := record [putOpt "DeltaId" x.deltaId, putOpt "DeltaJson" x.deltaJson, putOpt "State" x.state, putOpt "StateMessage" x.stateMessage] + ofValue v := do + let deltaId ← v.opt "DeltaId" + let deltaJson ← v.opt "DeltaJson" + let state ← v.opt "State" + let stateMessage ← v.opt "StateMessage" + return { deltaId, deltaJson, state, stateMessage } + +/-- The configuration that links an Amazon VPC IPAM scope to an external authority system. -/ +structure IpamScopeExternalAuthorityConfiguration where + /-- The identifier for the external resource managing this scope. -/ + externalResourceIdentifier : Option String := none + /-- The type of external authority managing this scope. -/ + type : Option IpamScopeExternalAuthorityType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamScopeExternalAuthorityConfiguration where + schema := .struct "IpamScopeExternalAuthorityConfiguration" [({ name := "ExternalResourceIdentifier", xmlName := some "externalResourceIdentifier", queryName := some "ExternalResourceIdentifier" }, .string), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, (Shape.schema IpamScopeExternalAuthorityType))] + toValue x := record [putOpt "ExternalResourceIdentifier" x.externalResourceIdentifier, putOpt "Type" x.type] + ofValue v := do + let externalResourceIdentifier ← v.opt "ExternalResourceIdentifier" + let type ← v.opt "Type" + return { externalResourceIdentifier, type } + +/-- Describes an IPv6 address pool. -/ +structure Ipv6Pool where + /-- The description for the address pool. -/ + description : Option String := none + /-- The CIDR blocks for the address pool. -/ + poolCidrBlocks : Option (List PoolCidrBlock) := none + /-- The ID of the address pool. -/ + poolId : Option String := none + /-- Any tags for the address pool. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Ipv6Pool where + schema := .struct "Ipv6Pool" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "PoolCidrBlocks", xmlName := some "poolCidrBlockSet", queryName := some "PoolCidrBlockSet" }, (.list (Shape.schema PoolCidrBlock) "item")), + ({ name := "PoolId", xmlName := some "poolId", queryName := some "PoolId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "Description" x.description, putOpt "PoolCidrBlocks" x.poolCidrBlocks, putOpt "PoolId" x.poolId, putOpt "Tags" x.tags] + ofValue v := do + let description ← v.opt "Description" + let poolCidrBlocks ← v.opt "PoolCidrBlocks" + let poolId ← v.opt "PoolId" + let tags ← v.opt "Tags" + return { description, poolCidrBlocks, poolId, tags } + +/-- Describes a key pair. -/ +structure KeyPair where + /-- For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key. -/ + keyFingerprint : Option String := none + /-- An unencrypted PEM encoded RSA or ED25519 private key. -/ + keyMaterial : Option String := none + /-- The name of the key pair. -/ + keyName : Option String := none + /-- The ID of the key pair. -/ + keyPairId : Option String := none + /-- Any tags applied to the key pair. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KeyPair where + schema := .struct "KeyPair" [({ name := "KeyFingerprint", xmlName := some "keyFingerprint", queryName := some "KeyFingerprint" }, .string), + ({ name := "KeyMaterial", xmlName := some "keyMaterial", queryName := some "KeyMaterial" }, .string), + ({ name := "KeyName", xmlName := some "keyName", queryName := some "KeyName" }, .string), + ({ name := "KeyPairId", xmlName := some "keyPairId", queryName := some "KeyPairId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "KeyFingerprint" x.keyFingerprint, putOpt "KeyMaterial" x.keyMaterial, putOpt "KeyName" x.keyName, putOpt "KeyPairId" x.keyPairId, putOpt "Tags" x.tags] + ofValue v := do + let keyFingerprint ← v.opt "KeyFingerprint" + let keyMaterial ← v.opt "KeyMaterial" + let keyName ← v.opt "KeyName" + let keyPairId ← v.opt "KeyPairId" + let tags ← v.opt "Tags" + return { keyFingerprint, keyMaterial, keyName, keyPairId, tags } + +/-- Describes a key pair. -/ +structure KeyPairInfo where + /-- If you used Amazon EC2 to create the key pair, this is the date and time when the key was created, in ISO 8601 date-time format , in the UTC time zone. -/ + createTime : Option Timestamp := none + /-- If you used CreateKeyPair to create the key pair: For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key. -/ + keyFingerprint : Option String := none + /-- The name of the key pair. -/ + keyName : Option String := none + /-- The ID of the key pair. -/ + keyPairId : Option String := none + /-- The type of key pair. -/ + keyType : Option KeyType := none + /-- The public key material. -/ + publicKey : Option String := none + /-- Any tags applied to the key pair. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KeyPairInfo where + schema := .struct "KeyPairInfo" [({ name := "CreateTime", xmlName := some "createTime", queryName := some "CreateTime" }, (.time none)), + ({ name := "KeyFingerprint", xmlName := some "keyFingerprint", queryName := some "KeyFingerprint" }, .string), + ({ name := "KeyName", xmlName := some "keyName", queryName := some "KeyName" }, .string), + ({ name := "KeyPairId", xmlName := some "keyPairId", queryName := some "KeyPairId" }, .string), + ({ name := "KeyType", xmlName := some "keyType", queryName := some "KeyType" }, (Shape.schema KeyType)), + ({ name := "PublicKey", xmlName := some "publicKey", queryName := some "PublicKey" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "CreateTime" x.createTime, putOpt "KeyFingerprint" x.keyFingerprint, putOpt "KeyName" x.keyName, putOpt "KeyPairId" x.keyPairId, putOpt "KeyType" x.keyType, putOpt "PublicKey" x.publicKey, putOpt "Tags" x.tags] + ofValue v := do + let createTime ← v.opt "CreateTime" + let keyFingerprint ← v.opt "KeyFingerprint" + let keyName ← v.opt "KeyName" + let keyPairId ← v.opt "KeyPairId" + let keyType ← v.opt "KeyType" + let publicKey ← v.opt "PublicKey" + let tags ← v.opt "Tags" + return { createTime, keyFingerprint, keyName, keyPairId, keyType, publicKey, tags } + +/-- Describes a launch permission. -/ +structure LaunchPermission where + /-- The name of the group. -/ + group : Option PermissionGroup := none + /-- The Amazon Resource Name (ARN) of an organization. -/ + organizationArn : Option String := none + /-- The Amazon Resource Name (ARN) of an organizational unit (OU). -/ + organizationalUnitArn : Option String := none + /-- The Amazon Web Services account ID. -/ + userId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchPermission where + schema := .struct "LaunchPermission" [({ name := "Group", xmlName := some "group", queryName := some "Group" }, (Shape.schema PermissionGroup)), + ({ name := "OrganizationArn", xmlName := some "organizationArn", queryName := some "OrganizationArn" }, .string), + ({ name := "OrganizationalUnitArn", xmlName := some "organizationalUnitArn", queryName := some "OrganizationalUnitArn" }, .string), + ({ name := "UserId", xmlName := some "userId", queryName := some "UserId" }, .string)] + toValue x := record [putOpt "Group" x.group, putOpt "OrganizationArn" x.organizationArn, putOpt "OrganizationalUnitArn" x.organizationalUnitArn, putOpt "UserId" x.userId] + ofValue v := do + let group ← v.opt "Group" + let organizationArn ← v.opt "OrganizationArn" + let organizationalUnitArn ← v.opt "OrganizationalUnitArn" + let userId ← v.opt "UserId" + return { group, organizationArn, organizationalUnitArn, userId } + +/-- Describes a launch template. -/ +structure LaunchTemplate where + /-- The time launch template was created. -/ + createTime : Option Timestamp := none + /-- The principal that created the launch template. -/ + createdBy : Option String := none + /-- The version number of the default version of the launch template. -/ + defaultVersionNumber : Option Int := none + /-- The version number of the latest version of the launch template. -/ + latestVersionNumber : Option Int := none + /-- The ID of the launch template. -/ + launchTemplateId : Option String := none + /-- The name of the launch template. -/ + launchTemplateName : Option String := none + /-- The entity that manages the launch template. -/ + operator : Option OperatorResponse := none + /-- The tags for the launch template. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplate where + schema := .struct "LaunchTemplate" [({ name := "CreateTime", xmlName := some "createTime", queryName := some "CreateTime" }, (.time none)), + ({ name := "CreatedBy", xmlName := some "createdBy", queryName := some "CreatedBy" }, .string), + ({ name := "DefaultVersionNumber", xmlName := some "defaultVersionNumber", queryName := some "DefaultVersionNumber" }, .int), + ({ name := "LatestVersionNumber", xmlName := some "latestVersionNumber", queryName := some "LatestVersionNumber" }, .int), + ({ name := "LaunchTemplateId", xmlName := some "launchTemplateId", queryName := some "LaunchTemplateId" }, .string), + ({ name := "LaunchTemplateName", xmlName := some "launchTemplateName", queryName := some "LaunchTemplateName" }, .string), + ({ name := "Operator", xmlName := some "operator", queryName := some "Operator" }, (Shape.schema OperatorResponse)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "CreateTime" x.createTime, putOpt "CreatedBy" x.createdBy, putOpt "DefaultVersionNumber" x.defaultVersionNumber, putOpt "LatestVersionNumber" x.latestVersionNumber, putOpt "LaunchTemplateId" x.launchTemplateId, putOpt "LaunchTemplateName" x.launchTemplateName, putOpt "Operator" x.operator, putOpt "Tags" x.tags] + ofValue v := do + let createTime ← v.opt "CreateTime" + let createdBy ← v.opt "CreatedBy" + let defaultVersionNumber ← v.opt "DefaultVersionNumber" + let latestVersionNumber ← v.opt "LatestVersionNumber" + let launchTemplateId ← v.opt "LaunchTemplateId" + let launchTemplateName ← v.opt "LaunchTemplateName" + let operator ← v.opt "Operator" + let tags ← v.opt "Tags" + return { createTime, createdBy, defaultVersionNumber, latestVersionNumber, launchTemplateId, launchTemplateName, operator, tags } + +/-- Describes an instance's Capacity Reservation targeting option. -/ +structure LaunchTemplateCapacityReservationSpecificationRequest where + /-- Indicates the instance's Capacity Reservation preferences. -/ + capacityReservationPreference : Option CapacityReservationPreference := none + /-- Information about the target Capacity Reservation or Capacity Reservation group. -/ + capacityReservationTarget : Option CapacityReservationTarget := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateCapacityReservationSpecificationRequest where + schema := .struct "LaunchTemplateCapacityReservationSpecificationRequest" [({ name := "CapacityReservationPreference" }, (Shape.schema CapacityReservationPreference)), + ({ name := "CapacityReservationTarget" }, (Shape.schema CapacityReservationTarget))] + toValue x := record [putOpt "CapacityReservationPreference" x.capacityReservationPreference, putOpt "CapacityReservationTarget" x.capacityReservationTarget] + ofValue v := do + let capacityReservationPreference ← v.opt "CapacityReservationPreference" + let capacityReservationTarget ← v.opt "CapacityReservationTarget" + return { capacityReservationPreference, capacityReservationTarget } + +/-- Information about the Capacity Reservation targeting option. -/ +structure LaunchTemplateCapacityReservationSpecificationResponse where + /-- Indicates the instance's Capacity Reservation preferences. -/ + capacityReservationPreference : Option CapacityReservationPreference := none + /-- Information about the target Capacity Reservation or Capacity Reservation group. -/ + capacityReservationTarget : Option CapacityReservationTargetResponse := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateCapacityReservationSpecificationResponse where + schema := .struct "LaunchTemplateCapacityReservationSpecificationResponse" [({ name := "CapacityReservationPreference", xmlName := some "capacityReservationPreference", queryName := some "CapacityReservationPreference" }, (Shape.schema CapacityReservationPreference)), + ({ name := "CapacityReservationTarget", xmlName := some "capacityReservationTarget", queryName := some "CapacityReservationTarget" }, (Shape.schema CapacityReservationTargetResponse))] + toValue x := record [putOpt "CapacityReservationPreference" x.capacityReservationPreference, putOpt "CapacityReservationTarget" x.capacityReservationTarget] + ofValue v := do + let capacityReservationPreference ← v.opt "CapacityReservationPreference" + let capacityReservationTarget ← v.opt "CapacityReservationTarget" + return { capacityReservationPreference, capacityReservationTarget } + +/-- The CPU options for the instance. -/ +structure LaunchTemplateCpuOptions where + /-- Indicates whether the instance is enabled for AMD SEV-SNP. -/ + amdSevSnp : Option AmdSevSnpSpecification := none + /-- The number of CPU cores for the instance. -/ + coreCount : Option Int := none + /-- Indicates whether the instance is enabled for nested virtualization. -/ + nestedVirtualization : Option NestedVirtualizationSpecification := none + /-- The number of threads per CPU core. -/ + threadsPerCore : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateCpuOptions where + schema := .struct "LaunchTemplateCpuOptions" [({ name := "AmdSevSnp", xmlName := some "amdSevSnp", queryName := some "AmdSevSnp" }, (Shape.schema AmdSevSnpSpecification)), + ({ name := "CoreCount", xmlName := some "coreCount", queryName := some "CoreCount" }, .int), + ({ name := "NestedVirtualization", xmlName := some "nestedVirtualization", queryName := some "NestedVirtualization" }, (Shape.schema NestedVirtualizationSpecification)), + ({ name := "ThreadsPerCore", xmlName := some "threadsPerCore", queryName := some "ThreadsPerCore" }, .int)] + toValue x := record [putOpt "AmdSevSnp" x.amdSevSnp, putOpt "CoreCount" x.coreCount, putOpt "NestedVirtualization" x.nestedVirtualization, putOpt "ThreadsPerCore" x.threadsPerCore] + ofValue v := do + let amdSevSnp ← v.opt "AmdSevSnp" + let coreCount ← v.opt "CoreCount" + let nestedVirtualization ← v.opt "NestedVirtualization" + let threadsPerCore ← v.opt "ThreadsPerCore" + return { amdSevSnp, coreCount, nestedVirtualization, threadsPerCore } + +/-- The CPU options for the instance. -/ +structure LaunchTemplateCpuOptionsRequest where + /-- Indicates whether to enable the instance for AMD SEV-SNP. -/ + amdSevSnp : Option AmdSevSnpSpecification := none + /-- The number of CPU cores for the instance. -/ + coreCount : Option Int := none + /-- Indicates whether to enable the instance for nested virtualization. -/ + nestedVirtualization : Option NestedVirtualizationSpecification := none + /-- The number of threads per CPU core. -/ + threadsPerCore : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateCpuOptionsRequest where + schema := .struct "LaunchTemplateCpuOptionsRequest" [({ name := "AmdSevSnp" }, (Shape.schema AmdSevSnpSpecification)), + ({ name := "CoreCount" }, .int), + ({ name := "NestedVirtualization" }, (Shape.schema NestedVirtualizationSpecification)), + ({ name := "ThreadsPerCore" }, .int)] + toValue x := record [putOpt "AmdSevSnp" x.amdSevSnp, putOpt "CoreCount" x.coreCount, putOpt "NestedVirtualization" x.nestedVirtualization, putOpt "ThreadsPerCore" x.threadsPerCore] + ofValue v := do + let amdSevSnp ← v.opt "AmdSevSnp" + let coreCount ← v.opt "CoreCount" + let nestedVirtualization ← v.opt "NestedVirtualization" + let threadsPerCore ← v.opt "ThreadsPerCore" + return { amdSevSnp, coreCount, nestedVirtualization, threadsPerCore } + +/-- Describes a block device for an EBS volume. -/ +structure LaunchTemplateEbsBlockDevice where + /-- Indicates whether the EBS volume is deleted on instance termination. -/ + deleteOnTermination : Option Bool := none + /-- The index of the EBS card. -/ + ebsCardIndex : Option Int := none + /-- Indicates whether the EBS volume is encrypted. -/ + encrypted : Option Bool := none + /-- The number of I/O operations per second (IOPS) that the volume supports. -/ + iops : Option Int := none + /-- Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key to use for EBS encryption. -/ + kmsKeyId : Option String := none + /-- The ID of the snapshot. -/ + snapshotId : Option String := none + /-- The throughput that the volume supports, in MiB/s. -/ + throughput : Option Int := none + /-- The Amazon EBS Provisioned Rate for Volume Initialization (volume initialization rate) specified for the volume, in MiB/s. -/ + volumeInitializationRate : Option Int := none + /-- The size of the volume, in GiB. -/ + volumeSize : Option Int := none + /-- The volume type. -/ + volumeType : Option VolumeType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateEbsBlockDevice where + schema := .struct "LaunchTemplateEbsBlockDevice" [({ name := "DeleteOnTermination", xmlName := some "deleteOnTermination", queryName := some "DeleteOnTermination" }, .bool), + ({ name := "EbsCardIndex", xmlName := some "ebsCardIndex", queryName := some "EbsCardIndex" }, .int), + ({ name := "Encrypted", xmlName := some "encrypted", queryName := some "Encrypted" }, .bool), + ({ name := "Iops", xmlName := some "iops", queryName := some "Iops" }, .int), + ({ name := "KmsKeyId", xmlName := some "kmsKeyId", queryName := some "KmsKeyId" }, .string), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string), + ({ name := "Throughput", xmlName := some "throughput", queryName := some "Throughput" }, .int), + ({ name := "VolumeInitializationRate", xmlName := some "volumeInitializationRate", queryName := some "VolumeInitializationRate" }, .int), + ({ name := "VolumeSize", xmlName := some "volumeSize", queryName := some "VolumeSize" }, .int), + ({ name := "VolumeType", xmlName := some "volumeType", queryName := some "VolumeType" }, (Shape.schema VolumeType))] + toValue x := record [putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "EbsCardIndex" x.ebsCardIndex, putOpt "Encrypted" x.encrypted, putOpt "Iops" x.iops, putOpt "KmsKeyId" x.kmsKeyId, putOpt "SnapshotId" x.snapshotId, putOpt "Throughput" x.throughput, putOpt "VolumeInitializationRate" x.volumeInitializationRate, putOpt "VolumeSize" x.volumeSize, putOpt "VolumeType" x.volumeType] + ofValue v := do + let deleteOnTermination ← v.opt "DeleteOnTermination" + let ebsCardIndex ← v.opt "EbsCardIndex" + let encrypted ← v.opt "Encrypted" + let iops ← v.opt "Iops" + let kmsKeyId ← v.opt "KmsKeyId" + let snapshotId ← v.opt "SnapshotId" + let throughput ← v.opt "Throughput" + let volumeInitializationRate ← v.opt "VolumeInitializationRate" + let volumeSize ← v.opt "VolumeSize" + let volumeType ← v.opt "VolumeType" + return { deleteOnTermination, ebsCardIndex, encrypted, iops, kmsKeyId, snapshotId, throughput, volumeInitializationRate, volumeSize, volumeType } + +/-- The parameters for a block device for an EBS volume. -/ +structure LaunchTemplateEbsBlockDeviceRequest where + /-- Indicates whether the EBS volume is deleted on instance termination. -/ + deleteOnTermination : Option Bool := none + /-- The index of the EBS card. -/ + ebsCardIndex : Option Int := none + /-- Indicates whether the EBS volume is encrypted. -/ + encrypted : Option Bool := none + /-- The number of I/O operations per second (IOPS). -/ + iops : Option Int := none + /-- Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key to use for EBS encryption. -/ + kmsKeyId : Option String := none + /-- The ID of the snapshot. -/ + snapshotId : Option String := none + /-- The throughput to provision for a gp3 volume, with a maximum of 2,000 MiB/s. -/ + throughput : Option Int := none + /-- Specifies the Amazon EBS Provisioned Rate for Volume Initialization (volume initialization rate), in MiB/s, at which to download the snapshot blocks from Amazon S3 to the volume. -/ + volumeInitializationRate : Option Int := none + /-- The size of the volume, in GiBs. -/ + volumeSize : Option Int := none + /-- The volume type. -/ + volumeType : Option VolumeType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateEbsBlockDeviceRequest where + schema := .struct "LaunchTemplateEbsBlockDeviceRequest" [({ name := "DeleteOnTermination" }, .bool), + ({ name := "EbsCardIndex" }, .int), + ({ name := "Encrypted" }, .bool), + ({ name := "Iops" }, .int), + ({ name := "KmsKeyId" }, .string), + ({ name := "SnapshotId" }, .string), + ({ name := "Throughput" }, .int), + ({ name := "VolumeInitializationRate" }, .int), + ({ name := "VolumeSize" }, .int), + ({ name := "VolumeType" }, (Shape.schema VolumeType))] + toValue x := record [putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "EbsCardIndex" x.ebsCardIndex, putOpt "Encrypted" x.encrypted, putOpt "Iops" x.iops, putOpt "KmsKeyId" x.kmsKeyId, putOpt "SnapshotId" x.snapshotId, putOpt "Throughput" x.throughput, putOpt "VolumeInitializationRate" x.volumeInitializationRate, putOpt "VolumeSize" x.volumeSize, putOpt "VolumeType" x.volumeType] + ofValue v := do + let deleteOnTermination ← v.opt "DeleteOnTermination" + let ebsCardIndex ← v.opt "EbsCardIndex" + let encrypted ← v.opt "Encrypted" + let iops ← v.opt "Iops" + let kmsKeyId ← v.opt "KmsKeyId" + let snapshotId ← v.opt "SnapshotId" + let throughput ← v.opt "Throughput" + let volumeInitializationRate ← v.opt "VolumeInitializationRate" + let volumeSize ← v.opt "VolumeSize" + let volumeType ← v.opt "VolumeType" + return { deleteOnTermination, ebsCardIndex, encrypted, iops, kmsKeyId, snapshotId, throughput, volumeInitializationRate, volumeSize, volumeType } + +/-- ENA Express uses Amazon Web Services Scalable Reliable Datagram (SRD) technology to increase the maximum bandwidth used per stream and minimize tail latency of network traffic between EC2 instances. -/ +structure LaunchTemplateEnaSrdSpecification where + /-- Indicates whether ENA Express is enabled for the network interface. -/ + enaSrdEnabled : Option Bool := none + /-- Configures ENA Express for UDP network traffic. -/ + enaSrdUdpSpecification : Option LaunchTemplateEnaSrdUdpSpecification := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateEnaSrdSpecification where + schema := .struct "LaunchTemplateEnaSrdSpecification" [({ name := "EnaSrdEnabled", xmlName := some "enaSrdEnabled", queryName := some "EnaSrdEnabled" }, .bool), + ({ name := "EnaSrdUdpSpecification", xmlName := some "enaSrdUdpSpecification", queryName := some "EnaSrdUdpSpecification" }, (Shape.schema LaunchTemplateEnaSrdUdpSpecification))] + toValue x := record [putOpt "EnaSrdEnabled" x.enaSrdEnabled, putOpt "EnaSrdUdpSpecification" x.enaSrdUdpSpecification] + ofValue v := do + let enaSrdEnabled ← v.opt "EnaSrdEnabled" + let enaSrdUdpSpecification ← v.opt "EnaSrdUdpSpecification" + return { enaSrdEnabled, enaSrdUdpSpecification } + +/-- The maintenance options of your instance. -/ +structure LaunchTemplateInstanceMaintenanceOptions where + /-- Disables the automatic recovery behavior of your instance or sets it to default. -/ + autoRecovery : Option LaunchTemplateAutoRecoveryState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateInstanceMaintenanceOptions where + schema := .struct "LaunchTemplateInstanceMaintenanceOptions" [({ name := "AutoRecovery", xmlName := some "autoRecovery", queryName := some "AutoRecovery" }, (Shape.schema LaunchTemplateAutoRecoveryState))] + toValue x := record [putOpt "AutoRecovery" x.autoRecovery] + ofValue v := do + let autoRecovery ← v.opt "AutoRecovery" + return { autoRecovery } + +/-- The maintenance options of your instance. -/ +structure LaunchTemplateInstanceMaintenanceOptionsRequest where + /-- Disables the automatic recovery behavior of your instance or sets it to default. -/ + autoRecovery : Option LaunchTemplateAutoRecoveryState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateInstanceMaintenanceOptionsRequest where + schema := .struct "LaunchTemplateInstanceMaintenanceOptionsRequest" [({ name := "AutoRecovery" }, (Shape.schema LaunchTemplateAutoRecoveryState))] + toValue x := record [putOpt "AutoRecovery" x.autoRecovery] + ofValue v := do + let autoRecovery ← v.opt "AutoRecovery" + return { autoRecovery } + +/-- The metadata options for the instance. -/ +structure LaunchTemplateInstanceMetadataOptions where + /-- Enables or disables the HTTP metadata endpoint on your instances. -/ + httpEndpoint : Option LaunchTemplateInstanceMetadataEndpointState := none + /-- Enables or disables the IPv6 endpoint for the instance metadata service. -/ + httpProtocolIpv6 : Option LaunchTemplateInstanceMetadataProtocolIpv6 := none + /-- The desired HTTP PUT response hop limit for instance metadata requests. -/ + httpPutResponseHopLimit : Option Int := none + /-- Indicates whether IMDSv2 is required. -/ + httpTokens : Option LaunchTemplateHttpTokensState := none + /-- Set to enabled to allow access to instance tags from the instance metadata. -/ + instanceMetadataTags : Option LaunchTemplateInstanceMetadataTagsState := none + /-- The state of the metadata option changes. -/ + state : Option LaunchTemplateInstanceMetadataOptionsState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateInstanceMetadataOptions where + schema := .struct "LaunchTemplateInstanceMetadataOptions" [({ name := "HttpEndpoint", xmlName := some "httpEndpoint", queryName := some "HttpEndpoint" }, (Shape.schema LaunchTemplateInstanceMetadataEndpointState)), + ({ name := "HttpProtocolIpv6", xmlName := some "httpProtocolIpv6", queryName := some "HttpProtocolIpv6" }, (Shape.schema LaunchTemplateInstanceMetadataProtocolIpv6)), + ({ name := "HttpPutResponseHopLimit", xmlName := some "httpPutResponseHopLimit", queryName := some "HttpPutResponseHopLimit" }, .int), + ({ name := "HttpTokens", xmlName := some "httpTokens", queryName := some "HttpTokens" }, (Shape.schema LaunchTemplateHttpTokensState)), + ({ name := "InstanceMetadataTags", xmlName := some "instanceMetadataTags", queryName := some "InstanceMetadataTags" }, (Shape.schema LaunchTemplateInstanceMetadataTagsState)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema LaunchTemplateInstanceMetadataOptionsState))] + toValue x := record [putOpt "HttpEndpoint" x.httpEndpoint, putOpt "HttpProtocolIpv6" x.httpProtocolIpv6, putOpt "HttpPutResponseHopLimit" x.httpPutResponseHopLimit, putOpt "HttpTokens" x.httpTokens, putOpt "InstanceMetadataTags" x.instanceMetadataTags, putOpt "State" x.state] + ofValue v := do + let httpEndpoint ← v.opt "HttpEndpoint" + let httpProtocolIpv6 ← v.opt "HttpProtocolIpv6" + let httpPutResponseHopLimit ← v.opt "HttpPutResponseHopLimit" + let httpTokens ← v.opt "HttpTokens" + let instanceMetadataTags ← v.opt "InstanceMetadataTags" + let state ← v.opt "State" + return { httpEndpoint, httpProtocolIpv6, httpPutResponseHopLimit, httpTokens, instanceMetadataTags, state } + +/-- The metadata options for the instance. -/ +structure LaunchTemplateInstanceMetadataOptionsRequest where + /-- Enables or disables the HTTP metadata endpoint on your instances. -/ + httpEndpoint : Option LaunchTemplateInstanceMetadataEndpointState := none + /-- Enables or disables the IPv6 endpoint for the instance metadata service. -/ + httpProtocolIpv6 : Option LaunchTemplateInstanceMetadataProtocolIpv6 := none + /-- The desired HTTP PUT response hop limit for instance metadata requests. -/ + httpPutResponseHopLimit : Option Int := none + /-- Indicates whether IMDSv2 is required. -/ + httpTokens : Option LaunchTemplateHttpTokensState := none + /-- Set to enabled to allow access to instance tags from the instance metadata. -/ + instanceMetadataTags : Option LaunchTemplateInstanceMetadataTagsState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateInstanceMetadataOptionsRequest where + schema := .struct "LaunchTemplateInstanceMetadataOptionsRequest" [({ name := "HttpEndpoint" }, (Shape.schema LaunchTemplateInstanceMetadataEndpointState)), + ({ name := "HttpProtocolIpv6" }, (Shape.schema LaunchTemplateInstanceMetadataProtocolIpv6)), + ({ name := "HttpPutResponseHopLimit" }, .int), + ({ name := "HttpTokens" }, (Shape.schema LaunchTemplateHttpTokensState)), + ({ name := "InstanceMetadataTags" }, (Shape.schema LaunchTemplateInstanceMetadataTagsState))] + toValue x := record [putOpt "HttpEndpoint" x.httpEndpoint, putOpt "HttpProtocolIpv6" x.httpProtocolIpv6, putOpt "HttpPutResponseHopLimit" x.httpPutResponseHopLimit, putOpt "HttpTokens" x.httpTokens, putOpt "InstanceMetadataTags" x.instanceMetadataTags] + ofValue v := do + let httpEndpoint ← v.opt "HttpEndpoint" + let httpProtocolIpv6 ← v.opt "HttpProtocolIpv6" + let httpPutResponseHopLimit ← v.opt "HttpPutResponseHopLimit" + let httpTokens ← v.opt "HttpTokens" + let instanceMetadataTags ← v.opt "InstanceMetadataTags" + return { httpEndpoint, httpProtocolIpv6, httpPutResponseHopLimit, httpTokens, instanceMetadataTags } + +/-- Describes a secondary interface specification in a launch template. -/ +structure LaunchTemplateInstanceSecondaryInterfaceSpecification where + /-- Indicates whether the secondary interface is deleted when the instance is terminated. -/ + deleteOnTermination : Option Bool := none + /-- The device index for the secondary interface attachment. -/ + deviceIndex : Option Int := none + /-- The type of secondary interface. -/ + interfaceType : Option SecondaryInterfaceType := none + /-- The index of the network card. -/ + networkCardIndex : Option Int := none + /-- The number of private IPv4 addresses to assign to the secondary interface. -/ + privateIpAddressCount : Option Int := none + /-- The private IPv4 addresses to assign to the secondary interface. -/ + privateIpAddresses : Option (List SecondaryInterfacePrivateIpAddressSpecification) := none + /-- The ID of the secondary subnet. -/ + secondarySubnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateInstanceSecondaryInterfaceSpecification where + schema := .struct "LaunchTemplateInstanceSecondaryInterfaceSpecification" [({ name := "DeleteOnTermination", xmlName := some "deleteOnTermination", queryName := some "DeleteOnTermination" }, .bool), + ({ name := "DeviceIndex", xmlName := some "deviceIndex", queryName := some "DeviceIndex" }, .int), + ({ name := "InterfaceType", xmlName := some "interfaceType", queryName := some "InterfaceType" }, (Shape.schema SecondaryInterfaceType)), + ({ name := "NetworkCardIndex", xmlName := some "networkCardIndex", queryName := some "NetworkCardIndex" }, .int), + ({ name := "PrivateIpAddressCount", xmlName := some "privateIpAddressCount", queryName := some "PrivateIpAddressCount" }, .int), + ({ name := "PrivateIpAddresses", xmlName := some "privateIpAddressesSet", queryName := some "PrivateIpAddressesSet" }, (.list (Shape.schema SecondaryInterfacePrivateIpAddressSpecification) "item")), + ({ name := "SecondarySubnetId", xmlName := some "secondarySubnetId", queryName := some "SecondarySubnetId" }, .string)] + toValue x := record [putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "DeviceIndex" x.deviceIndex, putOpt "InterfaceType" x.interfaceType, putOpt "NetworkCardIndex" x.networkCardIndex, putOpt "PrivateIpAddressCount" x.privateIpAddressCount, putOpt "PrivateIpAddresses" x.privateIpAddresses, putOpt "SecondarySubnetId" x.secondarySubnetId] + ofValue v := do + let deleteOnTermination ← v.opt "DeleteOnTermination" + let deviceIndex ← v.opt "DeviceIndex" + let interfaceType ← v.opt "InterfaceType" + let networkCardIndex ← v.opt "NetworkCardIndex" + let privateIpAddressCount ← v.opt "PrivateIpAddressCount" + let privateIpAddresses ← v.opt "PrivateIpAddresses" + let secondarySubnetId ← v.opt "SecondarySubnetId" + return { deleteOnTermination, deviceIndex, interfaceType, networkCardIndex, privateIpAddressCount, privateIpAddresses, secondarySubnetId } + +/-- Describes a secondary interface specification for a launch template request. -/ +structure LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest where + /-- Indicates whether the secondary interface is deleted when the instance is terminated. -/ + deleteOnTermination : Option Bool := none + /-- The device index for the secondary interface attachment. -/ + deviceIndex : Option Int := none + /-- The type of secondary interface. -/ + interfaceType : Option SecondaryInterfaceType := none + /-- The index of the network card. -/ + networkCardIndex : Option Int := none + /-- The number of private IPv4 addresses to assign to the secondary interface. -/ + privateIpAddressCount : Option Int := none + /-- The private IPv4 addresses to assign to the secondary interface. -/ + privateIpAddresses : Option (List SecondaryInterfacePrivateIpAddressSpecificationRequest) := none + /-- The ID of the secondary subnet. -/ + secondarySubnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest where + schema := .struct "LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest" [({ name := "DeleteOnTermination" }, .bool), + ({ name := "DeviceIndex" }, .int), + ({ name := "InterfaceType" }, (Shape.schema SecondaryInterfaceType)), + ({ name := "NetworkCardIndex" }, .int), + ({ name := "PrivateIpAddressCount" }, .int), + ({ name := "PrivateIpAddresses", xmlName := some "PrivateIpAddress" }, (.list (Shape.schema SecondaryInterfacePrivateIpAddressSpecificationRequest) "SecondaryInterfacePrivateIpAddressSpecification")), + ({ name := "SecondarySubnetId" }, .string)] + toValue x := record [putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "DeviceIndex" x.deviceIndex, putOpt "InterfaceType" x.interfaceType, putOpt "NetworkCardIndex" x.networkCardIndex, putOpt "PrivateIpAddressCount" x.privateIpAddressCount, putOpt "PrivateIpAddresses" x.privateIpAddresses, putOpt "SecondarySubnetId" x.secondarySubnetId] + ofValue v := do + let deleteOnTermination ← v.opt "DeleteOnTermination" + let deviceIndex ← v.opt "DeviceIndex" + let interfaceType ← v.opt "InterfaceType" + let networkCardIndex ← v.opt "NetworkCardIndex" + let privateIpAddressCount ← v.opt "PrivateIpAddressCount" + let privateIpAddresses ← v.opt "PrivateIpAddresses" + let secondarySubnetId ← v.opt "SecondarySubnetId" + return { deleteOnTermination, deviceIndex, interfaceType, networkCardIndex, privateIpAddressCount, privateIpAddresses, secondarySubnetId } + +/-- With network performance options, you can adjust your bandwidth preferences to meet the needs of the workload that runs on your instance at launch. -/ +structure LaunchTemplateNetworkPerformanceOptions where + /-- When you configure network bandwidth weighting, you can boost baseline bandwidth for either networking or EBS by up to 25%. -/ + bandwidthWeighting : Option InstanceBandwidthWeighting := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateNetworkPerformanceOptions where + schema := .struct "LaunchTemplateNetworkPerformanceOptions" [({ name := "BandwidthWeighting", xmlName := some "bandwidthWeighting", queryName := some "BandwidthWeighting" }, (Shape.schema InstanceBandwidthWeighting))] + toValue x := record [putOpt "BandwidthWeighting" x.bandwidthWeighting] + ofValue v := do + let bandwidthWeighting ← v.opt "BandwidthWeighting" + return { bandwidthWeighting } + +/-- When you configure network performance options in your launch template, your instance is geared for performance improvements based on the workload that it runs as soon as it's available. -/ +structure LaunchTemplateNetworkPerformanceOptionsRequest where + /-- Specify the bandwidth weighting option to boost the associated type of baseline bandwidth, as follows: default This option uses the standard bandwidth configuration for your instance type. -/ + bandwidthWeighting : Option InstanceBandwidthWeighting := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateNetworkPerformanceOptionsRequest where + schema := .struct "LaunchTemplateNetworkPerformanceOptionsRequest" [({ name := "BandwidthWeighting" }, (Shape.schema InstanceBandwidthWeighting))] + toValue x := record [putOpt "BandwidthWeighting" x.bandwidthWeighting] + ofValue v := do + let bandwidthWeighting ← v.opt "BandwidthWeighting" + return { bandwidthWeighting } + +/-- Describes the placement of an instance. -/ +structure LaunchTemplatePlacement where + /-- The affinity setting for the instance on the Dedicated Host. -/ + affinity : Option String := none + /-- The Availability Zone of the instance. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone of the instance. -/ + availabilityZoneId : Option String := none + /-- The Group ID of the placement group. -/ + groupId : Option String := none + /-- The name of the placement group for the instance. -/ + groupName : Option String := none + /-- The ID of the Dedicated Host for the instance. -/ + hostId : Option String := none + /-- The ARN of the host resource group in which to launch the instances. -/ + hostResourceGroupArn : Option String := none + /-- The number of the partition the instance should launch in. -/ + partitionNumber : Option Int := none + /-- Reserved for future use. -/ + spreadDomain : Option String := none + /-- The tenancy of the instance. -/ + tenancy : Option Tenancy := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplatePlacement where + schema := .struct "LaunchTemplatePlacement" [({ name := "Affinity", xmlName := some "affinity", queryName := some "Affinity" }, .string), + ({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "GroupId", xmlName := some "groupId", queryName := some "GroupId" }, .string), + ({ name := "GroupName", xmlName := some "groupName", queryName := some "GroupName" }, .string), + ({ name := "HostId", xmlName := some "hostId", queryName := some "HostId" }, .string), + ({ name := "HostResourceGroupArn", xmlName := some "hostResourceGroupArn", queryName := some "HostResourceGroupArn" }, .string), + ({ name := "PartitionNumber", xmlName := some "partitionNumber", queryName := some "PartitionNumber" }, .int), + ({ name := "SpreadDomain", xmlName := some "spreadDomain", queryName := some "SpreadDomain" }, .string), + ({ name := "Tenancy", xmlName := some "tenancy", queryName := some "Tenancy" }, (Shape.schema Tenancy))] + toValue x := record [putOpt "Affinity" x.affinity, putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "GroupId" x.groupId, putOpt "GroupName" x.groupName, putOpt "HostId" x.hostId, putOpt "HostResourceGroupArn" x.hostResourceGroupArn, putOpt "PartitionNumber" x.partitionNumber, putOpt "SpreadDomain" x.spreadDomain, putOpt "Tenancy" x.tenancy] + ofValue v := do + let affinity ← v.opt "Affinity" + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let groupId ← v.opt "GroupId" + let groupName ← v.opt "GroupName" + let hostId ← v.opt "HostId" + let hostResourceGroupArn ← v.opt "HostResourceGroupArn" + let partitionNumber ← v.opt "PartitionNumber" + let spreadDomain ← v.opt "SpreadDomain" + let tenancy ← v.opt "Tenancy" + return { affinity, availabilityZone, availabilityZoneId, groupId, groupName, hostId, hostResourceGroupArn, partitionNumber, spreadDomain, tenancy } + +/-- Describes the placement of an instance. -/ +structure LaunchTemplatePlacementRequest where + /-- The affinity setting for an instance on a Dedicated Host. -/ + affinity : Option String := none + /-- The Availability Zone for the instance. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone for the instance. -/ + availabilityZoneId : Option String := none + /-- The Group Id of a placement group. -/ + groupId : Option String := none + /-- The name of the placement group for the instance. -/ + groupName : Option String := none + /-- The ID of the Dedicated Host for the instance. -/ + hostId : Option String := none + /-- The ARN of the host resource group in which to launch the instances. -/ + hostResourceGroupArn : Option String := none + /-- The number of the partition the instance should launch in. -/ + partitionNumber : Option Int := none + /-- Reserved for future use. -/ + spreadDomain : Option String := none + /-- The tenancy of the instance. -/ + tenancy : Option Tenancy := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplatePlacementRequest where + schema := .struct "LaunchTemplatePlacementRequest" [({ name := "Affinity" }, .string), + ({ name := "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId" }, .string), + ({ name := "GroupId" }, .string), + ({ name := "GroupName" }, .string), + ({ name := "HostId" }, .string), + ({ name := "HostResourceGroupArn" }, .string), + ({ name := "PartitionNumber" }, .int), + ({ name := "SpreadDomain" }, .string), + ({ name := "Tenancy" }, (Shape.schema Tenancy))] + toValue x := record [putOpt "Affinity" x.affinity, putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "GroupId" x.groupId, putOpt "GroupName" x.groupName, putOpt "HostId" x.hostId, putOpt "HostResourceGroupArn" x.hostResourceGroupArn, putOpt "PartitionNumber" x.partitionNumber, putOpt "SpreadDomain" x.spreadDomain, putOpt "Tenancy" x.tenancy] + ofValue v := do + let affinity ← v.opt "Affinity" + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let groupId ← v.opt "GroupId" + let groupName ← v.opt "GroupName" + let hostId ← v.opt "HostId" + let hostResourceGroupArn ← v.opt "HostResourceGroupArn" + let partitionNumber ← v.opt "PartitionNumber" + let spreadDomain ← v.opt "SpreadDomain" + let tenancy ← v.opt "Tenancy" + return { affinity, availabilityZone, availabilityZoneId, groupId, groupName, hostId, hostResourceGroupArn, partitionNumber, spreadDomain, tenancy } + +/-- Describes the options for instance hostnames. -/ +structure LaunchTemplatePrivateDnsNameOptions where + /-- Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. -/ + enableResourceNameDnsAAAARecord : Option Bool := none + /-- Indicates whether to respond to DNS queries for instance hostnames with DNS A records. -/ + enableResourceNameDnsARecord : Option Bool := none + /-- The type of hostname to assign to an instance. -/ + hostnameType : Option HostnameType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplatePrivateDnsNameOptions where + schema := .struct "LaunchTemplatePrivateDnsNameOptions" [({ name := "EnableResourceNameDnsAAAARecord", xmlName := some "enableResourceNameDnsAAAARecord", queryName := some "EnableResourceNameDnsAAAARecord" }, .bool), + ({ name := "EnableResourceNameDnsARecord", xmlName := some "enableResourceNameDnsARecord", queryName := some "EnableResourceNameDnsARecord" }, .bool), + ({ name := "HostnameType", xmlName := some "hostnameType", queryName := some "HostnameType" }, (Shape.schema HostnameType))] + toValue x := record [putOpt "EnableResourceNameDnsAAAARecord" x.enableResourceNameDnsAAAARecord, putOpt "EnableResourceNameDnsARecord" x.enableResourceNameDnsARecord, putOpt "HostnameType" x.hostnameType] + ofValue v := do + let enableResourceNameDnsAAAARecord ← v.opt "EnableResourceNameDnsAAAARecord" + let enableResourceNameDnsARecord ← v.opt "EnableResourceNameDnsARecord" + let hostnameType ← v.opt "HostnameType" + return { enableResourceNameDnsAAAARecord, enableResourceNameDnsARecord, hostnameType } + +/-- Describes the options for instance hostnames. -/ +structure LaunchTemplatePrivateDnsNameOptionsRequest where + /-- Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. -/ + enableResourceNameDnsAAAARecord : Option Bool := none + /-- Indicates whether to respond to DNS queries for instance hostnames with DNS A records. -/ + enableResourceNameDnsARecord : Option Bool := none + /-- The type of hostname for Amazon EC2 instances. -/ + hostnameType : Option HostnameType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplatePrivateDnsNameOptionsRequest where + schema := .struct "LaunchTemplatePrivateDnsNameOptionsRequest" [({ name := "EnableResourceNameDnsAAAARecord" }, .bool), + ({ name := "EnableResourceNameDnsARecord" }, .bool), + ({ name := "HostnameType" }, (Shape.schema HostnameType))] + toValue x := record [putOpt "EnableResourceNameDnsAAAARecord" x.enableResourceNameDnsAAAARecord, putOpt "EnableResourceNameDnsARecord" x.enableResourceNameDnsARecord, putOpt "HostnameType" x.hostnameType] + ofValue v := do + let enableResourceNameDnsAAAARecord ← v.opt "EnableResourceNameDnsAAAARecord" + let enableResourceNameDnsARecord ← v.opt "EnableResourceNameDnsARecord" + let hostnameType ← v.opt "HostnameType" + return { enableResourceNameDnsAAAARecord, enableResourceNameDnsARecord, hostnameType } + +/-- The options for Spot Instances. -/ +structure LaunchTemplateSpotMarketOptions where + /-- The required duration for the Spot Instances (also known as Spot blocks), in minutes. -/ + blockDurationMinutes : Option Int := none + /-- The behavior when a Spot Instance is interrupted. -/ + instanceInterruptionBehavior : Option InstanceInterruptionBehavior := none + /-- The maximum hourly price you're willing to pay for a Spot Instance. -/ + maxPrice : Option String := none + /-- The Spot Instance request type. -/ + spotInstanceType : Option SpotInstanceType := none + /-- The end date of the request. -/ + validUntil : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateSpotMarketOptions where + schema := .struct "LaunchTemplateSpotMarketOptions" [({ name := "BlockDurationMinutes", xmlName := some "blockDurationMinutes", queryName := some "BlockDurationMinutes" }, .int), + ({ name := "InstanceInterruptionBehavior", xmlName := some "instanceInterruptionBehavior", queryName := some "InstanceInterruptionBehavior" }, (Shape.schema InstanceInterruptionBehavior)), + ({ name := "MaxPrice", xmlName := some "maxPrice", queryName := some "MaxPrice" }, .string), + ({ name := "SpotInstanceType", xmlName := some "spotInstanceType", queryName := some "SpotInstanceType" }, (Shape.schema SpotInstanceType)), + ({ name := "ValidUntil", xmlName := some "validUntil", queryName := some "ValidUntil" }, (.time none))] + toValue x := record [putOpt "BlockDurationMinutes" x.blockDurationMinutes, putOpt "InstanceInterruptionBehavior" x.instanceInterruptionBehavior, putOpt "MaxPrice" x.maxPrice, putOpt "SpotInstanceType" x.spotInstanceType, putOpt "ValidUntil" x.validUntil] + ofValue v := do + let blockDurationMinutes ← v.opt "BlockDurationMinutes" + let instanceInterruptionBehavior ← v.opt "InstanceInterruptionBehavior" + let maxPrice ← v.opt "MaxPrice" + let spotInstanceType ← v.opt "SpotInstanceType" + let validUntil ← v.opt "ValidUntil" + return { blockDurationMinutes, instanceInterruptionBehavior, maxPrice, spotInstanceType, validUntil } + +/-- The options for Spot Instances. -/ +structure LaunchTemplateSpotMarketOptionsRequest where + /-- Deprecated. -/ + blockDurationMinutes : Option Int := none + /-- The behavior when a Spot Instance is interrupted. -/ + instanceInterruptionBehavior : Option InstanceInterruptionBehavior := none + /-- The maximum hourly price you're willing to pay for a Spot Instance. -/ + maxPrice : Option String := none + /-- The Spot Instance request type. -/ + spotInstanceType : Option SpotInstanceType := none + /-- The end date of the request, in UTC format ( YYYY-MM-DD T HH:MM:SS Z). -/ + validUntil : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateSpotMarketOptionsRequest where + schema := .struct "LaunchTemplateSpotMarketOptionsRequest" [({ name := "BlockDurationMinutes" }, .int), + ({ name := "InstanceInterruptionBehavior" }, (Shape.schema InstanceInterruptionBehavior)), + ({ name := "MaxPrice" }, .string), + ({ name := "SpotInstanceType" }, (Shape.schema SpotInstanceType)), + ({ name := "ValidUntil" }, (.time none))] + toValue x := record [putOpt "BlockDurationMinutes" x.blockDurationMinutes, putOpt "InstanceInterruptionBehavior" x.instanceInterruptionBehavior, putOpt "MaxPrice" x.maxPrice, putOpt "SpotInstanceType" x.spotInstanceType, putOpt "ValidUntil" x.validUntil] + ofValue v := do + let blockDurationMinutes ← v.opt "BlockDurationMinutes" + let instanceInterruptionBehavior ← v.opt "InstanceInterruptionBehavior" + let maxPrice ← v.opt "MaxPrice" + let spotInstanceType ← v.opt "SpotInstanceType" + let validUntil ← v.opt "ValidUntil" + return { blockDurationMinutes, instanceInterruptionBehavior, maxPrice, spotInstanceType, validUntil } + +/-- The tags specification for the launch template. -/ +structure LaunchTemplateTagSpecification where + /-- The type of resource to tag. -/ + resourceType : Option ResourceType := none + /-- The tags for the resource. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateTagSpecification where + schema := .struct "LaunchTemplateTagSpecification" [({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema ResourceType)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "ResourceType" x.resourceType, putOpt "Tags" x.tags] + ofValue v := do + let resourceType ← v.opt "ResourceType" + let tags ← v.opt "Tags" + return { resourceType, tags } + +/-- The tags specification for the resources that are created during instance launch. -/ +structure LaunchTemplateTagSpecificationRequest where + /-- The type of resource to tag. -/ + resourceType : Option ResourceType := none + /-- The tags to apply to the resource. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateTagSpecificationRequest where + schema := .struct "LaunchTemplateTagSpecificationRequest" [({ name := "ResourceType" }, (Shape.schema ResourceType)), + ({ name := "Tags", xmlName := some "Tag" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "ResourceType" x.resourceType, putOpt "Tags" x.tags] + ofValue v := do + let resourceType ← v.opt "ResourceType" + let tags ← v.opt "Tags" + return { resourceType, tags } + +structure ListImagesInRecycleBinResult where + /-- Information about the AMIs. -/ + images : Option (List ImageRecycleBinInfo) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListImagesInRecycleBinResult where + schema := .struct "ListImagesInRecycleBinResult" [({ name := "Images", xmlName := some "imageSet", queryName := some "ImageSet" }, (.list (Shape.schema ImageRecycleBinInfo) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "Images" x.images, putOpt "NextToken" x.nextToken] + ofValue v := do + let images ← v.opt "Images" + let nextToken ← v.opt "NextToken" + return { images, nextToken } + +structure ListSnapshotsInRecycleBinResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about the snapshots. -/ + snapshots : Option (List SnapshotRecycleBinInfo) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListSnapshotsInRecycleBinResult where + schema := .struct "ListSnapshotsInRecycleBinResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "Snapshots", xmlName := some "snapshotSet", queryName := some "SnapshotSet" }, (.list (Shape.schema SnapshotRecycleBinInfo) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "Snapshots" x.snapshots] + ofValue v := do + let nextToken ← v.opt "NextToken" + let snapshots ← v.opt "Snapshots" + return { nextToken, snapshots } + +/-- Describes a load permission. -/ +structure LoadPermission where + /-- The name of the group. -/ + group : Option PermissionGroup := none + /-- The Amazon Web Services account ID. -/ + userId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LoadPermission where + schema := .struct "LoadPermission" [({ name := "Group", xmlName := some "group", queryName := some "Group" }, (Shape.schema PermissionGroup)), + ({ name := "UserId", xmlName := some "userId", queryName := some "UserId" }, .string)] + toValue x := record [putOpt "Group" x.group, putOpt "UserId" x.userId] + ofValue v := do + let group ← v.opt "Group" + let userId ← v.opt "UserId" + return { group, userId } + +/-- Describes a load permission. -/ +structure LoadPermissionRequest where + /-- The name of the group. -/ + group : Option PermissionGroup := none + /-- The Amazon Web Services account ID. -/ + userId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LoadPermissionRequest where + schema := .struct "LoadPermissionRequest" [({ name := "Group" }, (Shape.schema PermissionGroup)), + ({ name := "UserId" }, .string)] + toValue x := record [putOpt "Group" x.group, putOpt "UserId" x.userId] + ofValue v := do + let group ← v.opt "Group" + let userId ← v.opt "UserId" + return { group, userId } + +/-- Describes a local gateway. -/ +structure LocalGateway where + /-- The ID of the local gateway. -/ + localGatewayId : Option String := none + /-- The Amazon Resource Name (ARN) of the Outpost. -/ + outpostArn : Option String := none + /-- The ID of the Amazon Web Services account that owns the local gateway. -/ + ownerId : Option String := none + /-- The state of the local gateway. -/ + state : Option String := none + /-- The tags assigned to the local gateway. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LocalGateway where + schema := .struct "LocalGateway" [({ name := "LocalGatewayId", xmlName := some "localGatewayId", queryName := some "LocalGatewayId" }, .string), + ({ name := "OutpostArn", xmlName := some "outpostArn", queryName := some "OutpostArn" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "LocalGatewayId" x.localGatewayId, putOpt "OutpostArn" x.outpostArn, putOpt "OwnerId" x.ownerId, putOpt "State" x.state, putOpt "Tags" x.tags] + ofValue v := do + let localGatewayId ← v.opt "LocalGatewayId" + let outpostArn ← v.opt "OutpostArn" + let ownerId ← v.opt "OwnerId" + let state ← v.opt "State" + let tags ← v.opt "Tags" + return { localGatewayId, outpostArn, ownerId, state, tags } + +/-- Describes a route for a local gateway route table. -/ +structure LocalGatewayRoute where + /-- The ID of the customer-owned address pool. -/ + coipPoolId : Option String := none + /-- The CIDR block used for destination matches. -/ + destinationCidrBlock : Option String := none + /-- The ID of the prefix list. -/ + destinationPrefixListId : Option String := none + /-- The Amazon Resource Name (ARN) of the local gateway route table. -/ + localGatewayRouteTableArn : Option String := none + /-- The ID of the local gateway route table. -/ + localGatewayRouteTableId : Option String := none + /-- The ID of the virtual interface group. -/ + localGatewayVirtualInterfaceGroupId : Option String := none + /-- The ID of the network interface. -/ + networkInterfaceId : Option String := none + /-- The ID of the Amazon Web Services account that owns the local gateway route. -/ + ownerId : Option String := none + /-- The state of the route. -/ + state : Option LocalGatewayRouteState := none + /-- The ID of the subnet. -/ + subnetId : Option String := none + /-- The route type. -/ + type : Option LocalGatewayRouteType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LocalGatewayRoute where + schema := .struct "LocalGatewayRoute" [({ name := "CoipPoolId", xmlName := some "coipPoolId", queryName := some "CoipPoolId" }, .string), + ({ name := "DestinationCidrBlock", xmlName := some "destinationCidrBlock", queryName := some "DestinationCidrBlock" }, .string), + ({ name := "DestinationPrefixListId", xmlName := some "destinationPrefixListId", queryName := some "DestinationPrefixListId" }, .string), + ({ name := "LocalGatewayRouteTableArn", xmlName := some "localGatewayRouteTableArn", queryName := some "LocalGatewayRouteTableArn" }, .string), + ({ name := "LocalGatewayRouteTableId", xmlName := some "localGatewayRouteTableId", queryName := some "LocalGatewayRouteTableId" }, .string), + ({ name := "LocalGatewayVirtualInterfaceGroupId", xmlName := some "localGatewayVirtualInterfaceGroupId", queryName := some "LocalGatewayVirtualInterfaceGroupId" }, .string), + ({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema LocalGatewayRouteState)), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, (Shape.schema LocalGatewayRouteType))] + toValue x := record [putOpt "CoipPoolId" x.coipPoolId, putOpt "DestinationCidrBlock" x.destinationCidrBlock, putOpt "DestinationPrefixListId" x.destinationPrefixListId, putOpt "LocalGatewayRouteTableArn" x.localGatewayRouteTableArn, putOpt "LocalGatewayRouteTableId" x.localGatewayRouteTableId, putOpt "LocalGatewayVirtualInterfaceGroupId" x.localGatewayVirtualInterfaceGroupId, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "OwnerId" x.ownerId, putOpt "State" x.state, putOpt "SubnetId" x.subnetId, putOpt "Type" x.type] + ofValue v := do + let coipPoolId ← v.opt "CoipPoolId" + let destinationCidrBlock ← v.opt "DestinationCidrBlock" + let destinationPrefixListId ← v.opt "DestinationPrefixListId" + let localGatewayRouteTableArn ← v.opt "LocalGatewayRouteTableArn" + let localGatewayRouteTableId ← v.opt "LocalGatewayRouteTableId" + let localGatewayVirtualInterfaceGroupId ← v.opt "LocalGatewayVirtualInterfaceGroupId" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let ownerId ← v.opt "OwnerId" + let state ← v.opt "State" + let subnetId ← v.opt "SubnetId" + let type ← v.opt "Type" + return { coipPoolId, destinationCidrBlock, destinationPrefixListId, localGatewayRouteTableArn, localGatewayRouteTableId, localGatewayVirtualInterfaceGroupId, networkInterfaceId, ownerId, state, subnetId, type } + +/-- Describes a local gateway route table. -/ +structure LocalGatewayRouteTable where + /-- The ID of the local gateway. -/ + localGatewayId : Option String := none + /-- The Amazon Resource Name (ARN) of the local gateway route table. -/ + localGatewayRouteTableArn : Option String := none + /-- The ID of the local gateway route table. -/ + localGatewayRouteTableId : Option String := none + /-- The mode of the local gateway route table. -/ + mode : Option LocalGatewayRouteTableMode := none + /-- The Amazon Resource Name (ARN) of the Outpost. -/ + outpostArn : Option String := none + /-- The ID of the Amazon Web Services account that owns the local gateway route table. -/ + ownerId : Option String := none + /-- The state of the local gateway route table. -/ + state : Option String := none + /-- Information about the state change. -/ + stateReason : Option StateReason := none + /-- The tags assigned to the local gateway route table. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LocalGatewayRouteTable where + schema := .struct "LocalGatewayRouteTable" [({ name := "LocalGatewayId", xmlName := some "localGatewayId", queryName := some "LocalGatewayId" }, .string), + ({ name := "LocalGatewayRouteTableArn", xmlName := some "localGatewayRouteTableArn", queryName := some "LocalGatewayRouteTableArn" }, .string), + ({ name := "LocalGatewayRouteTableId", xmlName := some "localGatewayRouteTableId", queryName := some "LocalGatewayRouteTableId" }, .string), + ({ name := "Mode", xmlName := some "mode", queryName := some "Mode" }, (Shape.schema LocalGatewayRouteTableMode)), + ({ name := "OutpostArn", xmlName := some "outpostArn", queryName := some "OutpostArn" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, .string), + ({ name := "StateReason", xmlName := some "stateReason", queryName := some "StateReason" }, (Shape.schema StateReason)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "LocalGatewayId" x.localGatewayId, putOpt "LocalGatewayRouteTableArn" x.localGatewayRouteTableArn, putOpt "LocalGatewayRouteTableId" x.localGatewayRouteTableId, putOpt "Mode" x.mode, putOpt "OutpostArn" x.outpostArn, putOpt "OwnerId" x.ownerId, putOpt "State" x.state, putOpt "StateReason" x.stateReason, putOpt "Tags" x.tags] + ofValue v := do + let localGatewayId ← v.opt "LocalGatewayId" + let localGatewayRouteTableArn ← v.opt "LocalGatewayRouteTableArn" + let localGatewayRouteTableId ← v.opt "LocalGatewayRouteTableId" + let mode ← v.opt "Mode" + let outpostArn ← v.opt "OutpostArn" + let ownerId ← v.opt "OwnerId" + let state ← v.opt "State" + let stateReason ← v.opt "StateReason" + let tags ← v.opt "Tags" + return { localGatewayId, localGatewayRouteTableArn, localGatewayRouteTableId, mode, outpostArn, ownerId, state, stateReason, tags } + +/-- Describes an association between a local gateway route table and a virtual interface group. -/ +structure LocalGatewayRouteTableVirtualInterfaceGroupAssociation where + /-- The ID of the local gateway. -/ + localGatewayId : Option String := none + /-- The Amazon Resource Name (ARN) of the local gateway route table for the virtual interface group. -/ + localGatewayRouteTableArn : Option String := none + /-- The ID of the local gateway route table. -/ + localGatewayRouteTableId : Option String := none + /-- The ID of the association. -/ + localGatewayRouteTableVirtualInterfaceGroupAssociationId : Option String := none + /-- The ID of the virtual interface group. -/ + localGatewayVirtualInterfaceGroupId : Option String := none + /-- The ID of the Amazon Web Services account that owns the local gateway virtual interface group association. -/ + ownerId : Option String := none + /-- The state of the association. -/ + state : Option String := none + /-- The tags assigned to the association. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LocalGatewayRouteTableVirtualInterfaceGroupAssociation where + schema := .struct "LocalGatewayRouteTableVirtualInterfaceGroupAssociation" [({ name := "LocalGatewayId", xmlName := some "localGatewayId", queryName := some "LocalGatewayId" }, .string), + ({ name := "LocalGatewayRouteTableArn", xmlName := some "localGatewayRouteTableArn", queryName := some "LocalGatewayRouteTableArn" }, .string), + ({ name := "LocalGatewayRouteTableId", xmlName := some "localGatewayRouteTableId", queryName := some "LocalGatewayRouteTableId" }, .string), + ({ name := "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId", xmlName := some "localGatewayRouteTableVirtualInterfaceGroupAssociationId", queryName := some "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId" }, .string), + ({ name := "LocalGatewayVirtualInterfaceGroupId", xmlName := some "localGatewayVirtualInterfaceGroupId", queryName := some "LocalGatewayVirtualInterfaceGroupId" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "LocalGatewayId" x.localGatewayId, putOpt "LocalGatewayRouteTableArn" x.localGatewayRouteTableArn, putOpt "LocalGatewayRouteTableId" x.localGatewayRouteTableId, putOpt "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId" x.localGatewayRouteTableVirtualInterfaceGroupAssociationId, putOpt "LocalGatewayVirtualInterfaceGroupId" x.localGatewayVirtualInterfaceGroupId, putOpt "OwnerId" x.ownerId, putOpt "State" x.state, putOpt "Tags" x.tags] + ofValue v := do + let localGatewayId ← v.opt "LocalGatewayId" + let localGatewayRouteTableArn ← v.opt "LocalGatewayRouteTableArn" + let localGatewayRouteTableId ← v.opt "LocalGatewayRouteTableId" + let localGatewayRouteTableVirtualInterfaceGroupAssociationId ← v.opt "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId" + let localGatewayVirtualInterfaceGroupId ← v.opt "LocalGatewayVirtualInterfaceGroupId" + let ownerId ← v.opt "OwnerId" + let state ← v.opt "State" + let tags ← v.opt "Tags" + return { localGatewayId, localGatewayRouteTableArn, localGatewayRouteTableId, localGatewayRouteTableVirtualInterfaceGroupAssociationId, localGatewayVirtualInterfaceGroupId, ownerId, state, tags } + +/-- Describes an association between a local gateway route table and a VPC. -/ +structure LocalGatewayRouteTableVpcAssociation where + /-- The ID of the local gateway. -/ + localGatewayId : Option String := none + /-- The Amazon Resource Name (ARN) of the local gateway route table for the association. -/ + localGatewayRouteTableArn : Option String := none + /-- The ID of the local gateway route table. -/ + localGatewayRouteTableId : Option String := none + /-- The ID of the association. -/ + localGatewayRouteTableVpcAssociationId : Option String := none + /-- The ID of the Amazon Web Services account that owns the local gateway route table for the association. -/ + ownerId : Option String := none + /-- The state of the association. -/ + state : Option String := none + /-- The tags assigned to the association. -/ + tags : Option (List Tag) := none + /-- The ID of the VPC. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LocalGatewayRouteTableVpcAssociation where + schema := .struct "LocalGatewayRouteTableVpcAssociation" [({ name := "LocalGatewayId", xmlName := some "localGatewayId", queryName := some "LocalGatewayId" }, .string), + ({ name := "LocalGatewayRouteTableArn", xmlName := some "localGatewayRouteTableArn", queryName := some "LocalGatewayRouteTableArn" }, .string), + ({ name := "LocalGatewayRouteTableId", xmlName := some "localGatewayRouteTableId", queryName := some "LocalGatewayRouteTableId" }, .string), + ({ name := "LocalGatewayRouteTableVpcAssociationId", xmlName := some "localGatewayRouteTableVpcAssociationId", queryName := some "LocalGatewayRouteTableVpcAssociationId" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "LocalGatewayId" x.localGatewayId, putOpt "LocalGatewayRouteTableArn" x.localGatewayRouteTableArn, putOpt "LocalGatewayRouteTableId" x.localGatewayRouteTableId, putOpt "LocalGatewayRouteTableVpcAssociationId" x.localGatewayRouteTableVpcAssociationId, putOpt "OwnerId" x.ownerId, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "VpcId" x.vpcId] + ofValue v := do + let localGatewayId ← v.opt "LocalGatewayId" + let localGatewayRouteTableArn ← v.opt "LocalGatewayRouteTableArn" + let localGatewayRouteTableId ← v.opt "LocalGatewayRouteTableId" + let localGatewayRouteTableVpcAssociationId ← v.opt "LocalGatewayRouteTableVpcAssociationId" + let ownerId ← v.opt "OwnerId" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let vpcId ← v.opt "VpcId" + return { localGatewayId, localGatewayRouteTableArn, localGatewayRouteTableId, localGatewayRouteTableVpcAssociationId, ownerId, state, tags, vpcId } + +/-- Describes a local gateway virtual interface. -/ +structure LocalGatewayVirtualInterface where + /-- The current state of the local gateway virtual interface. -/ + configurationState : Option LocalGatewayVirtualInterfaceConfigurationState := none + /-- The local address. -/ + localAddress : Option String := none + /-- The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the local gateway. -/ + localBgpAsn : Option Int := none + /-- The ID of the local gateway. -/ + localGatewayId : Option String := none + /-- The Amazon Resource Number (ARN) of the local gateway virtual interface. -/ + localGatewayVirtualInterfaceArn : Option String := none + /-- The ID of the local gateway virtual interface group. -/ + localGatewayVirtualInterfaceGroupId : Option String := none + /-- The ID of the virtual interface. -/ + localGatewayVirtualInterfaceId : Option String := none + /-- The Outpost LAG ID. -/ + outpostLagId : Option String := none + /-- The ID of the Amazon Web Services account that owns the local gateway virtual interface. -/ + ownerId : Option String := none + /-- The peer address. -/ + peerAddress : Option String := none + /-- The peer BGP ASN. -/ + peerBgpAsn : Option Int := none + /-- The extended 32-bit ASN of the BGP peer for use with larger ASN values. -/ + peerBgpAsnExtended : Option Int := none + /-- The tags assigned to the virtual interface. -/ + tags : Option (List Tag) := none + /-- The ID of the VLAN. -/ + vlan : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LocalGatewayVirtualInterface where + schema := .struct "LocalGatewayVirtualInterface" [({ name := "ConfigurationState", xmlName := some "configurationState", queryName := some "ConfigurationState" }, (Shape.schema LocalGatewayVirtualInterfaceConfigurationState)), + ({ name := "LocalAddress", xmlName := some "localAddress", queryName := some "LocalAddress" }, .string), + ({ name := "LocalBgpAsn", xmlName := some "localBgpAsn", queryName := some "LocalBgpAsn" }, .int), + ({ name := "LocalGatewayId", xmlName := some "localGatewayId", queryName := some "LocalGatewayId" }, .string), + ({ name := "LocalGatewayVirtualInterfaceArn", xmlName := some "localGatewayVirtualInterfaceArn", queryName := some "LocalGatewayVirtualInterfaceArn" }, .string), + ({ name := "LocalGatewayVirtualInterfaceGroupId", xmlName := some "localGatewayVirtualInterfaceGroupId", queryName := some "LocalGatewayVirtualInterfaceGroupId" }, .string), + ({ name := "LocalGatewayVirtualInterfaceId", xmlName := some "localGatewayVirtualInterfaceId", queryName := some "LocalGatewayVirtualInterfaceId" }, .string), + ({ name := "OutpostLagId", xmlName := some "outpostLagId", queryName := some "OutpostLagId" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "PeerAddress", xmlName := some "peerAddress", queryName := some "PeerAddress" }, .string), + ({ name := "PeerBgpAsn", xmlName := some "peerBgpAsn", queryName := some "PeerBgpAsn" }, .int), + ({ name := "PeerBgpAsnExtended", xmlName := some "peerBgpAsnExtended", queryName := some "PeerBgpAsnExtended" }, .int), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "Vlan", xmlName := some "vlan", queryName := some "Vlan" }, .int)] + toValue x := record [putOpt "ConfigurationState" x.configurationState, putOpt "LocalAddress" x.localAddress, putOpt "LocalBgpAsn" x.localBgpAsn, putOpt "LocalGatewayId" x.localGatewayId, putOpt "LocalGatewayVirtualInterfaceArn" x.localGatewayVirtualInterfaceArn, putOpt "LocalGatewayVirtualInterfaceGroupId" x.localGatewayVirtualInterfaceGroupId, putOpt "LocalGatewayVirtualInterfaceId" x.localGatewayVirtualInterfaceId, putOpt "OutpostLagId" x.outpostLagId, putOpt "OwnerId" x.ownerId, putOpt "PeerAddress" x.peerAddress, putOpt "PeerBgpAsn" x.peerBgpAsn, putOpt "PeerBgpAsnExtended" x.peerBgpAsnExtended, putOpt "Tags" x.tags, putOpt "Vlan" x.vlan] + ofValue v := do + let configurationState ← v.opt "ConfigurationState" + let localAddress ← v.opt "LocalAddress" + let localBgpAsn ← v.opt "LocalBgpAsn" + let localGatewayId ← v.opt "LocalGatewayId" + let localGatewayVirtualInterfaceArn ← v.opt "LocalGatewayVirtualInterfaceArn" + let localGatewayVirtualInterfaceGroupId ← v.opt "LocalGatewayVirtualInterfaceGroupId" + let localGatewayVirtualInterfaceId ← v.opt "LocalGatewayVirtualInterfaceId" + let outpostLagId ← v.opt "OutpostLagId" + let ownerId ← v.opt "OwnerId" + let peerAddress ← v.opt "PeerAddress" + let peerBgpAsn ← v.opt "PeerBgpAsn" + let peerBgpAsnExtended ← v.opt "PeerBgpAsnExtended" + let tags ← v.opt "Tags" + let vlan ← v.opt "Vlan" + return { configurationState, localAddress, localBgpAsn, localGatewayId, localGatewayVirtualInterfaceArn, localGatewayVirtualInterfaceGroupId, localGatewayVirtualInterfaceId, outpostLagId, ownerId, peerAddress, peerBgpAsn, peerBgpAsnExtended, tags, vlan } + +/-- Describes a local gateway virtual interface group. -/ +structure LocalGatewayVirtualInterfaceGroup where + /-- The current state of the local gateway virtual interface group. -/ + configurationState : Option LocalGatewayVirtualInterfaceGroupConfigurationState := none + /-- The Autonomous System Number(ASN) for the local Border Gateway Protocol (BGP). -/ + localBgpAsn : Option Int := none + /-- The extended 32-bit ASN for the local BGP configuration. -/ + localBgpAsnExtended : Option Int := none + /-- The ID of the local gateway. -/ + localGatewayId : Option String := none + /-- The Amazon Resource Number (ARN) of the local gateway virtual interface group. -/ + localGatewayVirtualInterfaceGroupArn : Option String := none + /-- The ID of the virtual interface group. -/ + localGatewayVirtualInterfaceGroupId : Option String := none + /-- The IDs of the virtual interfaces. -/ + localGatewayVirtualInterfaceIds : Option (List String) := none + /-- The ID of the Amazon Web Services account that owns the local gateway virtual interface group. -/ + ownerId : Option String := none + /-- The tags assigned to the virtual interface group. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LocalGatewayVirtualInterfaceGroup where + schema := .struct "LocalGatewayVirtualInterfaceGroup" [({ name := "ConfigurationState", xmlName := some "configurationState", queryName := some "ConfigurationState" }, (Shape.schema LocalGatewayVirtualInterfaceGroupConfigurationState)), + ({ name := "LocalBgpAsn", xmlName := some "localBgpAsn", queryName := some "LocalBgpAsn" }, .int), + ({ name := "LocalBgpAsnExtended", xmlName := some "localBgpAsnExtended", queryName := some "LocalBgpAsnExtended" }, .int), + ({ name := "LocalGatewayId", xmlName := some "localGatewayId", queryName := some "LocalGatewayId" }, .string), + ({ name := "LocalGatewayVirtualInterfaceGroupArn", xmlName := some "localGatewayVirtualInterfaceGroupArn", queryName := some "LocalGatewayVirtualInterfaceGroupArn" }, .string), + ({ name := "LocalGatewayVirtualInterfaceGroupId", xmlName := some "localGatewayVirtualInterfaceGroupId", queryName := some "LocalGatewayVirtualInterfaceGroupId" }, .string), + ({ name := "LocalGatewayVirtualInterfaceIds", xmlName := some "localGatewayVirtualInterfaceIdSet", queryName := some "LocalGatewayVirtualInterfaceIdSet" }, (.list .string "item")), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "ConfigurationState" x.configurationState, putOpt "LocalBgpAsn" x.localBgpAsn, putOpt "LocalBgpAsnExtended" x.localBgpAsnExtended, putOpt "LocalGatewayId" x.localGatewayId, putOpt "LocalGatewayVirtualInterfaceGroupArn" x.localGatewayVirtualInterfaceGroupArn, putOpt "LocalGatewayVirtualInterfaceGroupId" x.localGatewayVirtualInterfaceGroupId, putOpt "LocalGatewayVirtualInterfaceIds" x.localGatewayVirtualInterfaceIds, putOpt "OwnerId" x.ownerId, putOpt "Tags" x.tags] + ofValue v := do + let configurationState ← v.opt "ConfigurationState" + let localBgpAsn ← v.opt "LocalBgpAsn" + let localBgpAsnExtended ← v.opt "LocalBgpAsnExtended" + let localGatewayId ← v.opt "LocalGatewayId" + let localGatewayVirtualInterfaceGroupArn ← v.opt "LocalGatewayVirtualInterfaceGroupArn" + let localGatewayVirtualInterfaceGroupId ← v.opt "LocalGatewayVirtualInterfaceGroupId" + let localGatewayVirtualInterfaceIds ← v.opt "LocalGatewayVirtualInterfaceIds" + let ownerId ← v.opt "OwnerId" + let tags ← v.opt "Tags" + return { configurationState, localBgpAsn, localBgpAsnExtended, localGatewayId, localGatewayVirtualInterfaceGroupArn, localGatewayVirtualInterfaceGroupId, localGatewayVirtualInterfaceIds, ownerId, tags } + +structure LockSnapshotRequest where + /-- The cooling-off period during which you can unlock the snapshot or modify the lock settings after locking the snapshot in compliance mode, in hours. -/ + coolOffPeriod : Option Int := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The date and time at which the snapshot lock is to automatically expire, in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ ). -/ + expirationDate : Option Timestamp := none + /-- The period of time for which to lock the snapshot, in days. -/ + lockDuration : Option Int := none + /-- The mode in which to lock the snapshot. -/ + lockMode : LockMode + /-- The ID of the snapshot to lock. -/ + snapshotId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape LockSnapshotRequest where + schema := .struct "LockSnapshotRequest" [({ name := "CoolOffPeriod" }, .int), + ({ name := "DryRun" }, .bool), + ({ name := "ExpirationDate" }, (.time none)), + ({ name := "LockDuration" }, .int), + ({ name := "LockMode", required := true }, (Shape.schema LockMode)), + ({ name := "SnapshotId", required := true }, .string)] + toValue x := record [putOpt "CoolOffPeriod" x.coolOffPeriod, putOpt "DryRun" x.dryRun, putOpt "ExpirationDate" x.expirationDate, putOpt "LockDuration" x.lockDuration, put "LockMode" x.lockMode, put "SnapshotId" x.snapshotId] + ofValue v := do + let coolOffPeriod ← v.opt "CoolOffPeriod" + let dryRun ← v.opt "DryRun" + let expirationDate ← v.opt "ExpirationDate" + let lockDuration ← v.opt "LockDuration" + let lockMode ← v.req "LockMode" + let snapshotId ← v.req "SnapshotId" + return { coolOffPeriod, dryRun, expirationDate, lockDuration, lockMode, snapshotId } + +structure LockSnapshotResult where + /-- The compliance mode cooling-off period, in hours. -/ + coolOffPeriod : Option Int := none + /-- The date and time at which the compliance mode cooling-off period expires, in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ ). -/ + coolOffPeriodExpiresOn : Option Timestamp := none + /-- The date and time at which the snapshot was locked, in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ ). -/ + lockCreatedOn : Option Timestamp := none + /-- The period of time for which the snapshot is locked, in days. -/ + lockDuration : Option Int := none + /-- The date and time at which the lock duration started, in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ ). -/ + lockDurationStartTime : Option Timestamp := none + /-- The date and time at which the lock will expire, in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ ). -/ + lockExpiresOn : Option Timestamp := none + /-- The state of the snapshot lock. -/ + lockState : Option LockState := none + /-- The ID of the snapshot. -/ + snapshotId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LockSnapshotResult where + schema := .struct "LockSnapshotResult" [({ name := "CoolOffPeriod", xmlName := some "coolOffPeriod", queryName := some "CoolOffPeriod" }, .int), + ({ name := "CoolOffPeriodExpiresOn", xmlName := some "coolOffPeriodExpiresOn", queryName := some "CoolOffPeriodExpiresOn" }, (.time none)), + ({ name := "LockCreatedOn", xmlName := some "lockCreatedOn", queryName := some "LockCreatedOn" }, (.time none)), + ({ name := "LockDuration", xmlName := some "lockDuration", queryName := some "LockDuration" }, .int), + ({ name := "LockDurationStartTime", xmlName := some "lockDurationStartTime", queryName := some "LockDurationStartTime" }, (.time none)), + ({ name := "LockExpiresOn", xmlName := some "lockExpiresOn", queryName := some "LockExpiresOn" }, (.time none)), + ({ name := "LockState", xmlName := some "lockState", queryName := some "LockState" }, (Shape.schema LockState)), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string)] + toValue x := record [putOpt "CoolOffPeriod" x.coolOffPeriod, putOpt "CoolOffPeriodExpiresOn" x.coolOffPeriodExpiresOn, putOpt "LockCreatedOn" x.lockCreatedOn, putOpt "LockDuration" x.lockDuration, putOpt "LockDurationStartTime" x.lockDurationStartTime, putOpt "LockExpiresOn" x.lockExpiresOn, putOpt "LockState" x.lockState, putOpt "SnapshotId" x.snapshotId] + ofValue v := do + let coolOffPeriod ← v.opt "CoolOffPeriod" + let coolOffPeriodExpiresOn ← v.opt "CoolOffPeriodExpiresOn" + let lockCreatedOn ← v.opt "LockCreatedOn" + let lockDuration ← v.opt "LockDuration" + let lockDurationStartTime ← v.opt "LockDurationStartTime" + let lockExpiresOn ← v.opt "LockExpiresOn" + let lockState ← v.opt "LockState" + let snapshotId ← v.opt "SnapshotId" + return { coolOffPeriod, coolOffPeriodExpiresOn, lockCreatedOn, lockDuration, lockDurationStartTime, lockExpiresOn, lockState, snapshotId } + +/-- Information about a locked snapshot. -/ +structure LockedSnapshotsInfo where + /-- The compliance mode cooling-off period, in hours. -/ + coolOffPeriod : Option Int := none + /-- The date and time at which the compliance mode cooling-off period expires, in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ ). -/ + coolOffPeriodExpiresOn : Option Timestamp := none + /-- The date and time at which the snapshot was locked, in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ ). -/ + lockCreatedOn : Option Timestamp := none + /-- The period of time for which the snapshot is locked, in days. -/ + lockDuration : Option Int := none + /-- The date and time at which the lock duration started, in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ ). -/ + lockDurationStartTime : Option Timestamp := none + /-- The date and time at which the lock will expire, in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ ). -/ + lockExpiresOn : Option Timestamp := none + /-- The state of the snapshot lock. -/ + lockState : Option LockState := none + /-- The account ID of the Amazon Web Services account that owns the snapshot. -/ + ownerId : Option String := none + /-- The ID of the snapshot. -/ + snapshotId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LockedSnapshotsInfo where + schema := .struct "LockedSnapshotsInfo" [({ name := "CoolOffPeriod", xmlName := some "coolOffPeriod", queryName := some "CoolOffPeriod" }, .int), + ({ name := "CoolOffPeriodExpiresOn", xmlName := some "coolOffPeriodExpiresOn", queryName := some "CoolOffPeriodExpiresOn" }, (.time none)), + ({ name := "LockCreatedOn", xmlName := some "lockCreatedOn", queryName := some "LockCreatedOn" }, (.time none)), + ({ name := "LockDuration", xmlName := some "lockDuration", queryName := some "LockDuration" }, .int), + ({ name := "LockDurationStartTime", xmlName := some "lockDurationStartTime", queryName := some "LockDurationStartTime" }, (.time none)), + ({ name := "LockExpiresOn", xmlName := some "lockExpiresOn", queryName := some "LockExpiresOn" }, (.time none)), + ({ name := "LockState", xmlName := some "lockState", queryName := some "LockState" }, (Shape.schema LockState)), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string)] + toValue x := record [putOpt "CoolOffPeriod" x.coolOffPeriod, putOpt "CoolOffPeriodExpiresOn" x.coolOffPeriodExpiresOn, putOpt "LockCreatedOn" x.lockCreatedOn, putOpt "LockDuration" x.lockDuration, putOpt "LockDurationStartTime" x.lockDurationStartTime, putOpt "LockExpiresOn" x.lockExpiresOn, putOpt "LockState" x.lockState, putOpt "OwnerId" x.ownerId, putOpt "SnapshotId" x.snapshotId] + ofValue v := do + let coolOffPeriod ← v.opt "CoolOffPeriod" + let coolOffPeriodExpiresOn ← v.opt "CoolOffPeriodExpiresOn" + let lockCreatedOn ← v.opt "LockCreatedOn" + let lockDuration ← v.opt "LockDuration" + let lockDurationStartTime ← v.opt "LockDurationStartTime" + let lockExpiresOn ← v.opt "LockExpiresOn" + let lockState ← v.opt "LockState" + let ownerId ← v.opt "OwnerId" + let snapshotId ← v.opt "SnapshotId" + return { coolOffPeriod, coolOffPeriodExpiresOn, lockCreatedOn, lockDuration, lockDurationStartTime, lockExpiresOn, lockState, ownerId, snapshotId } + +/-- Describes the configuration for a System Integrity Protection (SIP) modification task. -/ +structure MacSystemIntegrityProtectionConfiguration where + /-- Indicates whether Apple Internal was enabled or disabled by the task. -/ + appleInternal : Option MacSystemIntegrityProtectionSettingStatus := none + /-- Indicates whether Base System was enabled or disabled by the task. -/ + baseSystem : Option MacSystemIntegrityProtectionSettingStatus := none + /-- Indicates whether Dtrace Restrictions was enabled or disabled by the task. -/ + dTraceRestrictions : Option MacSystemIntegrityProtectionSettingStatus := none + /-- Indicates whether Debugging Restrictions was enabled or disabled by the task. -/ + debuggingRestrictions : Option MacSystemIntegrityProtectionSettingStatus := none + /-- Indicates whether Filesystem Protections was enabled or disabled by the task. -/ + filesystemProtections : Option MacSystemIntegrityProtectionSettingStatus := none + /-- Indicates whether Kext Signing was enabled or disabled by the task. -/ + kextSigning : Option MacSystemIntegrityProtectionSettingStatus := none + /-- Indicates whether NVRAM Protections was enabled or disabled by the task. -/ + nvramProtections : Option MacSystemIntegrityProtectionSettingStatus := none + /-- Indicates SIP was enabled or disabled by the task. -/ + status : Option MacSystemIntegrityProtectionSettingStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MacSystemIntegrityProtectionConfiguration where + schema := .struct "MacSystemIntegrityProtectionConfiguration" [({ name := "AppleInternal", xmlName := some "appleInternal", queryName := some "AppleInternal" }, (Shape.schema MacSystemIntegrityProtectionSettingStatus)), + ({ name := "BaseSystem", xmlName := some "baseSystem", queryName := some "BaseSystem" }, (Shape.schema MacSystemIntegrityProtectionSettingStatus)), + ({ name := "DTraceRestrictions", xmlName := some "dTraceRestrictions", queryName := some "DTraceRestrictions" }, (Shape.schema MacSystemIntegrityProtectionSettingStatus)), + ({ name := "DebuggingRestrictions", xmlName := some "debuggingRestrictions", queryName := some "DebuggingRestrictions" }, (Shape.schema MacSystemIntegrityProtectionSettingStatus)), + ({ name := "FilesystemProtections", xmlName := some "filesystemProtections", queryName := some "FilesystemProtections" }, (Shape.schema MacSystemIntegrityProtectionSettingStatus)), + ({ name := "KextSigning", xmlName := some "kextSigning", queryName := some "KextSigning" }, (Shape.schema MacSystemIntegrityProtectionSettingStatus)), + ({ name := "NvramProtections", xmlName := some "nvramProtections", queryName := some "NvramProtections" }, (Shape.schema MacSystemIntegrityProtectionSettingStatus)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema MacSystemIntegrityProtectionSettingStatus))] + toValue x := record [putOpt "AppleInternal" x.appleInternal, putOpt "BaseSystem" x.baseSystem, putOpt "DTraceRestrictions" x.dTraceRestrictions, putOpt "DebuggingRestrictions" x.debuggingRestrictions, putOpt "FilesystemProtections" x.filesystemProtections, putOpt "KextSigning" x.kextSigning, putOpt "NvramProtections" x.nvramProtections, putOpt "Status" x.status] + ofValue v := do + let appleInternal ← v.opt "AppleInternal" + let baseSystem ← v.opt "BaseSystem" + let dTraceRestrictions ← v.opt "DTraceRestrictions" + let debuggingRestrictions ← v.opt "DebuggingRestrictions" + let filesystemProtections ← v.opt "FilesystemProtections" + let kextSigning ← v.opt "KextSigning" + let nvramProtections ← v.opt "NvramProtections" + let status ← v.opt "Status" + return { appleInternal, baseSystem, dTraceRestrictions, debuggingRestrictions, filesystemProtections, kextSigning, nvramProtections, status } + +/-- Describes a custom configuration for a System Integrity Protection (SIP) modification task. -/ +structure MacSystemIntegrityProtectionConfigurationRequest where + /-- Enables or disables Apple Internal. -/ + appleInternal : Option MacSystemIntegrityProtectionSettingStatus := none + /-- Enables or disables Base System. -/ + baseSystem : Option MacSystemIntegrityProtectionSettingStatus := none + /-- Enables or disables Dtrace Restrictions. -/ + dTraceRestrictions : Option MacSystemIntegrityProtectionSettingStatus := none + /-- Enables or disables Debugging Restrictions. -/ + debuggingRestrictions : Option MacSystemIntegrityProtectionSettingStatus := none + /-- Enables or disables Filesystem Protections. -/ + filesystemProtections : Option MacSystemIntegrityProtectionSettingStatus := none + /-- Enables or disables Kext Signing. -/ + kextSigning : Option MacSystemIntegrityProtectionSettingStatus := none + /-- Enables or disables Nvram Protections. -/ + nvramProtections : Option MacSystemIntegrityProtectionSettingStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MacSystemIntegrityProtectionConfigurationRequest where + schema := .struct "MacSystemIntegrityProtectionConfigurationRequest" [({ name := "AppleInternal" }, (Shape.schema MacSystemIntegrityProtectionSettingStatus)), + ({ name := "BaseSystem" }, (Shape.schema MacSystemIntegrityProtectionSettingStatus)), + ({ name := "DTraceRestrictions" }, (Shape.schema MacSystemIntegrityProtectionSettingStatus)), + ({ name := "DebuggingRestrictions" }, (Shape.schema MacSystemIntegrityProtectionSettingStatus)), + ({ name := "FilesystemProtections" }, (Shape.schema MacSystemIntegrityProtectionSettingStatus)), + ({ name := "KextSigning" }, (Shape.schema MacSystemIntegrityProtectionSettingStatus)), + ({ name := "NvramProtections" }, (Shape.schema MacSystemIntegrityProtectionSettingStatus))] + toValue x := record [putOpt "AppleInternal" x.appleInternal, putOpt "BaseSystem" x.baseSystem, putOpt "DTraceRestrictions" x.dTraceRestrictions, putOpt "DebuggingRestrictions" x.debuggingRestrictions, putOpt "FilesystemProtections" x.filesystemProtections, putOpt "KextSigning" x.kextSigning, putOpt "NvramProtections" x.nvramProtections] + ofValue v := do + let appleInternal ← v.opt "AppleInternal" + let baseSystem ← v.opt "BaseSystem" + let dTraceRestrictions ← v.opt "DTraceRestrictions" + let debuggingRestrictions ← v.opt "DebuggingRestrictions" + let filesystemProtections ← v.opt "FilesystemProtections" + let kextSigning ← v.opt "KextSigning" + let nvramProtections ← v.opt "NvramProtections" + return { appleInternal, baseSystem, dTraceRestrictions, debuggingRestrictions, filesystemProtections, kextSigning, nvramProtections } + +/-- Describes a managed prefix list. -/ +structure ManagedPrefixList where + /-- The IP address version. -/ + addressFamily : Option String := none + /-- Indicates whether synchronization with an IPAM prefix list resolver is enabled for this managed prefix list. -/ + ipamPrefixListResolverSyncEnabled : Option Bool := none + /-- The ID of the IPAM prefix list resolver target associated with this managed prefix list. -/ + ipamPrefixListResolverTargetId : Option String := none + /-- The maximum number of entries for the prefix list. -/ + maxEntries : Option Int := none + /-- The ID of the owner of the prefix list. -/ + ownerId : Option String := none + /-- The Amazon Resource Name (ARN) for the prefix list. -/ + prefixListArn : Option String := none + /-- The ID of the prefix list. -/ + prefixListId : Option String := none + /-- The name of the prefix list. -/ + prefixListName : Option String := none + /-- The current state of the prefix list. -/ + state : Option PrefixListState := none + /-- The state message. -/ + stateMessage : Option String := none + /-- The tags for the prefix list. -/ + tags : Option (List Tag) := none + /-- The version of the prefix list. -/ + version : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ManagedPrefixList where + schema := .struct "ManagedPrefixList" [({ name := "AddressFamily", xmlName := some "addressFamily", queryName := some "AddressFamily" }, .string), + ({ name := "IpamPrefixListResolverSyncEnabled", xmlName := some "ipamPrefixListResolverSyncEnabled", queryName := some "IpamPrefixListResolverSyncEnabled" }, .bool), + ({ name := "IpamPrefixListResolverTargetId", xmlName := some "ipamPrefixListResolverTargetId", queryName := some "IpamPrefixListResolverTargetId" }, .string), + ({ name := "MaxEntries", xmlName := some "maxEntries", queryName := some "MaxEntries" }, .int), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "PrefixListArn", xmlName := some "prefixListArn", queryName := some "PrefixListArn" }, .string), + ({ name := "PrefixListId", xmlName := some "prefixListId", queryName := some "PrefixListId" }, .string), + ({ name := "PrefixListName", xmlName := some "prefixListName", queryName := some "PrefixListName" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema PrefixListState)), + ({ name := "StateMessage", xmlName := some "stateMessage", queryName := some "StateMessage" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "Version", xmlName := some "version", queryName := some "Version" }, .int)] + toValue x := record [putOpt "AddressFamily" x.addressFamily, putOpt "IpamPrefixListResolverSyncEnabled" x.ipamPrefixListResolverSyncEnabled, putOpt "IpamPrefixListResolverTargetId" x.ipamPrefixListResolverTargetId, putOpt "MaxEntries" x.maxEntries, putOpt "OwnerId" x.ownerId, putOpt "PrefixListArn" x.prefixListArn, putOpt "PrefixListId" x.prefixListId, putOpt "PrefixListName" x.prefixListName, putOpt "State" x.state, putOpt "StateMessage" x.stateMessage, putOpt "Tags" x.tags, putOpt "Version" x.version] + ofValue v := do + let addressFamily ← v.opt "AddressFamily" + let ipamPrefixListResolverSyncEnabled ← v.opt "IpamPrefixListResolverSyncEnabled" + let ipamPrefixListResolverTargetId ← v.opt "IpamPrefixListResolverTargetId" + let maxEntries ← v.opt "MaxEntries" + let ownerId ← v.opt "OwnerId" + let prefixListArn ← v.opt "PrefixListArn" + let prefixListId ← v.opt "PrefixListId" + let prefixListName ← v.opt "PrefixListName" + let state ← v.opt "State" + let stateMessage ← v.opt "StateMessage" + let tags ← v.opt "Tags" + let version ← v.opt "Version" + return { addressFamily, ipamPrefixListResolverSyncEnabled, ipamPrefixListResolverTargetId, maxEntries, ownerId, prefixListArn, prefixListId, prefixListName, state, stateMessage, tags, version } + +/-- Describes the managed resource visibility settings for the account. -/ +structure ManagedResourceVisibilitySettings where + /-- The default visibility setting for managed resources. -/ + defaultVisibility : Option ManagedResourceDefaultVisibility := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ManagedResourceVisibilitySettings where + schema := .struct "ManagedResourceVisibilitySettings" [({ name := "DefaultVisibility", xmlName := some "defaultVisibility", queryName := some "DefaultVisibility" }, (Shape.schema ManagedResourceDefaultVisibility))] + toValue x := record [putOpt "DefaultVisibility" x.defaultVisibility] + ofValue v := do + let defaultVisibility ← v.opt "DefaultVisibility" + return { defaultVisibility } + +/-- Describes the media accelerators for the instance type. -/ +structure MediaDeviceInfo where + /-- The number of media accelerators for the instance type. -/ + count : Option Int := none + /-- The manufacturer of the media accelerator. -/ + manufacturer : Option String := none + /-- Describes the memory available to the media accelerator. -/ + memoryInfo : Option MediaDeviceMemoryInfo := none + /-- The name of the media accelerator. -/ + name : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MediaDeviceInfo where + schema := .struct "MediaDeviceInfo" [({ name := "Count", xmlName := some "count", queryName := some "Count" }, .int), + ({ name := "Manufacturer", xmlName := some "manufacturer", queryName := some "Manufacturer" }, .string), + ({ name := "MemoryInfo", xmlName := some "memoryInfo", queryName := some "MemoryInfo" }, (Shape.schema MediaDeviceMemoryInfo)), + ({ name := "Name", xmlName := some "name", queryName := some "Name" }, .string)] + toValue x := record [putOpt "Count" x.count, putOpt "Manufacturer" x.manufacturer, putOpt "MemoryInfo" x.memoryInfo, putOpt "Name" x.name] + ofValue v := do + let count ← v.opt "Count" + let manufacturer ← v.opt "Manufacturer" + let memoryInfo ← v.opt "MemoryInfo" + let name ← v.opt "Name" + return { count, manufacturer, memoryInfo, name } + +/-- Describes a metric category. -/ +structure MetricCategory where + /-- The ID of the metric category. -/ + metricCategoryId : Option String := none + /-- The names of the metrics in the metric category. -/ + metrics : Option (List String) := none + /-- Any tags assigned to the metric category. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MetricCategory where + schema := .struct "MetricCategory" [({ name := "MetricCategoryId", xmlName := some "metricCategoryId", queryName := some "MetricCategoryId" }, .string), + ({ name := "Metrics", xmlName := some "metricSet", queryName := some "MetricSet" }, (.list .string "item")), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "MetricCategoryId" x.metricCategoryId, putOpt "Metrics" x.metrics, putOpt "Tags" x.tags] + ofValue v := do + let metricCategoryId ← v.opt "MetricCategoryId" + let metrics ← v.opt "Metrics" + let tags ← v.opt "Tags" + return { metricCategoryId, metrics, tags } + +/-- Represents a single metric value with its associated statistic, such as the sum or average of unused capacity hours. -/ +structure MetricValue where + /-- The name of the metric. -/ + metric : Option Metric := none + /-- The numerical value of the metric for the specified statistic and time period. -/ + value : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MetricValue where + schema := .struct "MetricValue" [({ name := "Metric", xmlName := some "metric", queryName := some "Metric" }, (Shape.schema Metric)), + ({ name := "Value", xmlName := some "value", queryName := some "Value" }, .number)] + toValue x := record [putOpt "Metric" x.metric, putOpt "Value" x.value] + ofValue v := do + let metric ← v.opt "Metric" + let value ← v.opt "Value" + return { metric, value } + +/-- Describes the terms of a Capacity Reservation modification quote. -/ +structure ModificationTerms where + /-- The changes that will be applied to the Capacity Reservation if you accept the modification terms. -/ + reservationUpdate : Option ModificationReservationUpdate := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModificationTerms where + schema := .struct "ModificationTerms" [({ name := "ReservationUpdate", xmlName := some "reservationUpdate", queryName := some "ReservationUpdate" }, (Shape.schema ModificationReservationUpdate))] + toValue x := record [putOpt "ReservationUpdate" x.reservationUpdate] + ofValue v := do + let reservationUpdate ← v.opt "ReservationUpdate" + return { reservationUpdate } + +structure ModifyAccountVpcEncryptionControlRequest where + /-- Specifies whether to exclude Amazon API Gateway V2 from account-level encryption enforcement. -/ + apiGatewayV2 : Option VpcEncryptionControlExclusionStateInput := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Specifies whether to exclude egress-only internet gateway resource from account-level encryption enforcement. -/ + egressOnlyInternetGateway : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude Elastic File System service from account-level encryption enforcement. -/ + elasticFileSystem : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude Amazon Web Services Global Accelerator from account-level encryption enforcement. -/ + globalAccelerator : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude internet gateway resource from account-level encryption enforcement. -/ + internetGateway : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude Lambda service from account-level encryption enforcement. -/ + lambda : Option VpcEncryptionControlExclusionStateInput := none + /-- The encryption mode for the account encryption control configuration. -/ + mode : Option AccountVpcEncryptionControlMode := none + /-- Specifies whether to exclude NAT gateway resource from account-level encryption enforcement. -/ + natGateway : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude virtual private gateway resource from account-level encryption enforcement. -/ + virtualPrivateGateway : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude VPC Lattice service from account-level encryption enforcement. -/ + vpcLattice : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude VPC peering connection resource from account-level encryption enforcement. -/ + vpcPeering : Option VpcEncryptionControlExclusionStateInput := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyAccountVpcEncryptionControlRequest where + schema := .struct "ModifyAccountVpcEncryptionControlRequest" [({ name := "ApiGatewayV2" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "DryRun" }, .bool), + ({ name := "EgressOnlyInternetGateway" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "ElasticFileSystem" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "GlobalAccelerator" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "InternetGateway" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "Lambda" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "Mode" }, (Shape.schema AccountVpcEncryptionControlMode)), + ({ name := "NatGateway" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "VirtualPrivateGateway" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "VpcLattice" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "VpcPeering" }, (Shape.schema VpcEncryptionControlExclusionStateInput))] + toValue x := record [putOpt "ApiGatewayV2" x.apiGatewayV2, putOpt "DryRun" x.dryRun, putOpt "EgressOnlyInternetGateway" x.egressOnlyInternetGateway, putOpt "ElasticFileSystem" x.elasticFileSystem, putOpt "GlobalAccelerator" x.globalAccelerator, putOpt "InternetGateway" x.internetGateway, putOpt "Lambda" x.lambda, putOpt "Mode" x.mode, putOpt "NatGateway" x.natGateway, putOpt "VirtualPrivateGateway" x.virtualPrivateGateway, putOpt "VpcLattice" x.vpcLattice, putOpt "VpcPeering" x.vpcPeering] + ofValue v := do + let apiGatewayV2 ← v.opt "ApiGatewayV2" + let dryRun ← v.opt "DryRun" + let egressOnlyInternetGateway ← v.opt "EgressOnlyInternetGateway" + let elasticFileSystem ← v.opt "ElasticFileSystem" + let globalAccelerator ← v.opt "GlobalAccelerator" + let internetGateway ← v.opt "InternetGateway" + let lambda ← v.opt "Lambda" + let mode ← v.opt "Mode" + let natGateway ← v.opt "NatGateway" + let virtualPrivateGateway ← v.opt "VirtualPrivateGateway" + let vpcLattice ← v.opt "VpcLattice" + let vpcPeering ← v.opt "VpcPeering" + return { apiGatewayV2, dryRun, egressOnlyInternetGateway, elasticFileSystem, globalAccelerator, internetGateway, lambda, mode, natGateway, virtualPrivateGateway, vpcLattice, vpcPeering } + +structure ModifyAvailabilityZoneGroupRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The name of the Availability Zone group, Local Zone group, or Wavelength Zone group. -/ + groupName : String + /-- Indicates whether to opt in to the zone group. -/ + optInStatus : ModifyAvailabilityZoneOptInStatus +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyAvailabilityZoneGroupRequest where + schema := .struct "ModifyAvailabilityZoneGroupRequest" [({ name := "DryRun" }, .bool), + ({ name := "GroupName", required := true }, .string), + ({ name := "OptInStatus", required := true }, (Shape.schema ModifyAvailabilityZoneOptInStatus))] + toValue x := record [putOpt "DryRun" x.dryRun, put "GroupName" x.groupName, put "OptInStatus" x.optInStatus] + ofValue v := do + let dryRun ← v.opt "DryRun" + let groupName ← v.req "GroupName" + let optInStatus ← v.req "OptInStatus" + return { dryRun, groupName, optInStatus } + +structure ModifyCapacityReservationRequest where + /-- Reserved. -/ + accept : Option Bool := none + /-- Indicates that you accept the modification terms of the quote identified by QuoteId . -/ + acceptModificationTerms : Option Bool := none + /-- Reserved for future use. -/ + additionalInfo : Option String := none + /-- The ID of the Capacity Reservation. -/ + capacityReservationId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The date and time at which the Capacity Reservation expires. -/ + endDate : Option Timestamp := none + /-- Indicates the way in which the Capacity Reservation ends. -/ + endDateType : Option EndDateType := none + /-- The number of instances for which to reserve capacity. -/ + instanceCount : Option Int := none + /-- The matching criteria (instance eligibility) that you want to use in the modified Capacity Reservation. -/ + instanceMatchCriteria : Option InstanceMatchCriteria := none + /-- The ID of the quote that describes the modification you want to apply. -/ + quoteId : Option String := none + /-- The new start date for the Capacity Reservation, in the ISO8601 format in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ ). -/ + startDate : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyCapacityReservationRequest where + schema := .struct "ModifyCapacityReservationRequest" [({ name := "Accept" }, .bool), + ({ name := "AcceptModificationTerms" }, .bool), + ({ name := "AdditionalInfo" }, .string), + ({ name := "CapacityReservationId", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "EndDate" }, (.time none)), + ({ name := "EndDateType" }, (Shape.schema EndDateType)), + ({ name := "InstanceCount" }, .int), + ({ name := "InstanceMatchCriteria" }, (Shape.schema InstanceMatchCriteria)), + ({ name := "QuoteId" }, .string), + ({ name := "StartDate" }, (.time none))] + toValue x := record [putOpt "Accept" x.accept, putOpt "AcceptModificationTerms" x.acceptModificationTerms, putOpt "AdditionalInfo" x.additionalInfo, put "CapacityReservationId" x.capacityReservationId, putOpt "DryRun" x.dryRun, putOpt "EndDate" x.endDate, putOpt "EndDateType" x.endDateType, putOpt "InstanceCount" x.instanceCount, putOpt "InstanceMatchCriteria" x.instanceMatchCriteria, putOpt "QuoteId" x.quoteId, putOpt "StartDate" x.startDate] + ofValue v := do + let accept ← v.opt "Accept" + let acceptModificationTerms ← v.opt "AcceptModificationTerms" + let additionalInfo ← v.opt "AdditionalInfo" + let capacityReservationId ← v.req "CapacityReservationId" + let dryRun ← v.opt "DryRun" + let endDate ← v.opt "EndDate" + let endDateType ← v.opt "EndDateType" + let instanceCount ← v.opt "InstanceCount" + let instanceMatchCriteria ← v.opt "InstanceMatchCriteria" + let quoteId ← v.opt "QuoteId" + let startDate ← v.opt "StartDate" + return { accept, acceptModificationTerms, additionalInfo, capacityReservationId, dryRun, endDate, endDateType, instanceCount, instanceMatchCriteria, quoteId, startDate } + +structure ModifyCapacityReservationResult where + /-- The configuration that the Capacity Reservation will have after the adjustment is applied. -/ + adjustmentDetails : Option CapacityReservationAdjustmentDetails := none + /-- The status of the requested modification. -/ + adjustmentStatus : Option CapacityReservationAdjustmentStatus := none + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyCapacityReservationResult where + schema := .struct "ModifyCapacityReservationResult" [({ name := "AdjustmentDetails", xmlName := some "adjustmentDetails", queryName := some "AdjustmentDetails" }, (Shape.schema CapacityReservationAdjustmentDetails)), + ({ name := "AdjustmentStatus", xmlName := some "adjustmentStatus", queryName := some "AdjustmentStatus" }, (Shape.schema CapacityReservationAdjustmentStatus)), + ({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "AdjustmentDetails" x.adjustmentDetails, putOpt "AdjustmentStatus" x.adjustmentStatus, putOpt "Return" x.«return»] + ofValue v := do + let adjustmentDetails ← v.opt "AdjustmentDetails" + let adjustmentStatus ← v.opt "AdjustmentStatus" + let «return» ← v.opt "Return" + return { adjustmentDetails, adjustmentStatus, «return» } + +structure ModifyClientVpnEndpointAuthorizationPolicyRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The ID of the Client VPN endpoint. -/ + clientVpnEndpointId : String + /-- A brief description of the authorization policy. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The authorization policy document, written in the Cedar policy language. -/ + policyDocument : Option String := none + /-- Specifies whether the authorization policy is evaluated in shadow mode. -/ + shadowMode : Option ClientVpnAuthorizationPolicyShadowMode := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyClientVpnEndpointAuthorizationPolicyRequest where + schema := .struct "ModifyClientVpnEndpointAuthorizationPolicyRequest" [({ name := "ClientToken" }, .string), + ({ name := "ClientVpnEndpointId", required := true }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "PolicyDocument" }, .string), + ({ name := "ShadowMode" }, (Shape.schema ClientVpnAuthorizationPolicyShadowMode))] + toValue x := record [putOpt "ClientToken" x.clientToken, put "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "PolicyDocument" x.policyDocument, putOpt "ShadowMode" x.shadowMode] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let clientVpnEndpointId ← v.req "ClientVpnEndpointId" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let policyDocument ← v.opt "PolicyDocument" + let shadowMode ← v.opt "ShadowMode" + return { clientToken, clientVpnEndpointId, description, dryRun, policyDocument, shadowMode } + +structure ModifyClientVpnEndpointAuthorizationPolicyResult where + /-- The current state of the authorization policy. -/ + status : Option ClientVpnAuthorizationPolicyStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyClientVpnEndpointAuthorizationPolicyResult where + schema := .struct "ModifyClientVpnEndpointAuthorizationPolicyResult" [({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema ClientVpnAuthorizationPolicyStatus))] + toValue x := record [putOpt "Status" x.status] + ofValue v := do + let status ← v.opt "Status" + return { status } + +structure ModifyDefaultCreditSpecificationRequest where + /-- The credit option for CPU usage of the instance family. -/ + cpuCredits : String + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The instance family. -/ + instanceFamily : UnlimitedSupportedInstanceFamily +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyDefaultCreditSpecificationRequest where + schema := .struct "ModifyDefaultCreditSpecificationRequest" [({ name := "CpuCredits", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceFamily", required := true }, (Shape.schema UnlimitedSupportedInstanceFamily))] + toValue x := record [put "CpuCredits" x.cpuCredits, putOpt "DryRun" x.dryRun, put "InstanceFamily" x.instanceFamily] + ofValue v := do + let cpuCredits ← v.req "CpuCredits" + let dryRun ← v.opt "DryRun" + let instanceFamily ← v.req "InstanceFamily" + return { cpuCredits, dryRun, instanceFamily } + +structure ModifyHostsRequest where + /-- Specify whether to enable or disable auto-placement. -/ + autoPlacement : Option AutoPlacement := none + /-- The IDs of the Dedicated Hosts to modify. -/ + hostIds : (List String) + /-- Indicates whether to enable or disable host maintenance for the Dedicated Host. -/ + hostMaintenance : Option HostMaintenance := none + /-- Indicates whether to enable or disable host recovery for the Dedicated Host. -/ + hostRecovery : Option HostRecovery := none + /-- Specifies the instance family to be supported by the Dedicated Host. -/ + instanceFamily : Option String := none + /-- Specifies the instance type to be supported by the Dedicated Host. -/ + instanceType : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyHostsRequest where + schema := .struct "ModifyHostsRequest" [({ name := "AutoPlacement", xmlName := some "autoPlacement", queryName := some "AutoPlacement" }, (Shape.schema AutoPlacement)), + ({ name := "HostIds", required := true, xmlName := some "hostId", queryName := some "HostId" }, (.list .string "item")), + ({ name := "HostMaintenance" }, (Shape.schema HostMaintenance)), + ({ name := "HostRecovery" }, (Shape.schema HostRecovery)), + ({ name := "InstanceFamily" }, .string), + ({ name := "InstanceType" }, .string)] + toValue x := record [putOpt "AutoPlacement" x.autoPlacement, put "HostIds" x.hostIds, putOpt "HostMaintenance" x.hostMaintenance, putOpt "HostRecovery" x.hostRecovery, putOpt "InstanceFamily" x.instanceFamily, putOpt "InstanceType" x.instanceType] + ofValue v := do + let autoPlacement ← v.opt "AutoPlacement" + let hostIds ← v.req "HostIds" + let hostMaintenance ← v.opt "HostMaintenance" + let hostRecovery ← v.opt "HostRecovery" + let instanceFamily ← v.opt "InstanceFamily" + let instanceType ← v.opt "InstanceType" + return { autoPlacement, hostIds, hostMaintenance, hostRecovery, instanceFamily, instanceType } + +structure ModifyInstanceConnectEndpointRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the EC2 Instance Connect Endpoint to modify. -/ + instanceConnectEndpointId : String + /-- The new IP address type for the EC2 Instance Connect Endpoint. -/ + ipAddressType : Option IpAddressType := none + /-- Indicates whether the client IP address is preserved as the source when you connect to a resource. -/ + preserveClientIp : Option Bool := none + /-- Changes the security groups for the EC2 Instance Connect Endpoint. -/ + securityGroupIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceConnectEndpointRequest where + schema := .struct "ModifyInstanceConnectEndpointRequest" [({ name := "DryRun" }, .bool), + ({ name := "InstanceConnectEndpointId", required := true }, .string), + ({ name := "IpAddressType" }, (Shape.schema IpAddressType)), + ({ name := "PreserveClientIp" }, .bool), + ({ name := "SecurityGroupIds", xmlName := some "SecurityGroupId" }, (.list .string "SecurityGroupId"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceConnectEndpointId" x.instanceConnectEndpointId, putOpt "IpAddressType" x.ipAddressType, putOpt "PreserveClientIp" x.preserveClientIp, putOpt "SecurityGroupIds" x.securityGroupIds] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceConnectEndpointId ← v.req "InstanceConnectEndpointId" + let ipAddressType ← v.opt "IpAddressType" + let preserveClientIp ← v.opt "PreserveClientIp" + let securityGroupIds ← v.opt "SecurityGroupIds" + return { dryRun, instanceConnectEndpointId, ipAddressType, preserveClientIp, securityGroupIds } + +structure ModifyInstanceCpuOptionsRequest where + /-- The number of CPU cores to activate for the specified instance. -/ + coreCount : Option Int := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the instance to update. -/ + instanceId : String + /-- Indicates whether to enable or disable nested virtualization for the instance. -/ + nestedVirtualization : Option NestedVirtualizationSpecification := none + /-- The number of threads to run for each CPU core. -/ + threadsPerCore : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceCpuOptionsRequest where + schema := .struct "ModifyInstanceCpuOptionsRequest" [({ name := "CoreCount" }, .int), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceId", required := true }, .string), + ({ name := "NestedVirtualization" }, (Shape.schema NestedVirtualizationSpecification)), + ({ name := "ThreadsPerCore" }, .int)] + toValue x := record [putOpt "CoreCount" x.coreCount, putOpt "DryRun" x.dryRun, put "InstanceId" x.instanceId, putOpt "NestedVirtualization" x.nestedVirtualization, putOpt "ThreadsPerCore" x.threadsPerCore] + ofValue v := do + let coreCount ← v.opt "CoreCount" + let dryRun ← v.opt "DryRun" + let instanceId ← v.req "InstanceId" + let nestedVirtualization ← v.opt "NestedVirtualization" + let threadsPerCore ← v.opt "ThreadsPerCore" + return { coreCount, dryRun, instanceId, nestedVirtualization, threadsPerCore } + +structure ModifyInstanceCpuOptionsResult where + /-- The number of CPU cores that are running for the specified instance after the update. -/ + coreCount : Option Int := none + /-- The ID of the instance that was updated. -/ + instanceId : Option String := none + /-- Indicates whether nested virtualization has been enabled or disabled. -/ + nestedVirtualization : Option NestedVirtualizationSpecification := none + /-- The number of threads that are running per CPU core for the specified instance after the update. -/ + threadsPerCore : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceCpuOptionsResult where + schema := .struct "ModifyInstanceCpuOptionsResult" [({ name := "CoreCount", xmlName := some "coreCount", queryName := some "CoreCount" }, .int), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "NestedVirtualization", xmlName := some "nestedVirtualization", queryName := some "NestedVirtualization" }, (Shape.schema NestedVirtualizationSpecification)), + ({ name := "ThreadsPerCore", xmlName := some "threadsPerCore", queryName := some "ThreadsPerCore" }, .int)] + toValue x := record [putOpt "CoreCount" x.coreCount, putOpt "InstanceId" x.instanceId, putOpt "NestedVirtualization" x.nestedVirtualization, putOpt "ThreadsPerCore" x.threadsPerCore] + ofValue v := do + let coreCount ← v.opt "CoreCount" + let instanceId ← v.opt "InstanceId" + let nestedVirtualization ← v.opt "NestedVirtualization" + let threadsPerCore ← v.opt "ThreadsPerCore" + return { coreCount, instanceId, nestedVirtualization, threadsPerCore } + +structure ModifyInstanceCreditSpecificationRequest where + /-- A unique, case-sensitive token that you provide to ensure idempotency of your modification request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Information about the credit option for CPU usage. -/ + instanceCreditSpecifications : (List InstanceCreditSpecificationRequest) +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceCreditSpecificationRequest where + schema := .struct "ModifyInstanceCreditSpecificationRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceCreditSpecifications", required := true, xmlName := some "InstanceCreditSpecification" }, (.list (Shape.schema InstanceCreditSpecificationRequest) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "InstanceCreditSpecifications" x.instanceCreditSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let instanceCreditSpecifications ← v.req "InstanceCreditSpecifications" + return { clientToken, dryRun, instanceCreditSpecifications } + +structure ModifyInstanceMaintenanceOptionsRequest where + /-- Disables the automatic recovery behavior of your instance or sets it to default. -/ + autoRecovery : Option InstanceAutoRecoveryState := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the instance. -/ + instanceId : String + /-- Specifies whether to attempt reboot migration during a user-initiated reboot of an instance that has a scheduled system-reboot event: default - Amazon EC2 attempts to migrate the instance to new hardware (reboot migration). -/ + rebootMigration : Option InstanceRebootMigrationState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceMaintenanceOptionsRequest where + schema := .struct "ModifyInstanceMaintenanceOptionsRequest" [({ name := "AutoRecovery" }, (Shape.schema InstanceAutoRecoveryState)), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceId", required := true }, .string), + ({ name := "RebootMigration" }, (Shape.schema InstanceRebootMigrationState))] + toValue x := record [putOpt "AutoRecovery" x.autoRecovery, putOpt "DryRun" x.dryRun, put "InstanceId" x.instanceId, putOpt "RebootMigration" x.rebootMigration] + ofValue v := do + let autoRecovery ← v.opt "AutoRecovery" + let dryRun ← v.opt "DryRun" + let instanceId ← v.req "InstanceId" + let rebootMigration ← v.opt "RebootMigration" + return { autoRecovery, dryRun, instanceId, rebootMigration } + +structure ModifyInstanceMaintenanceOptionsResult where + /-- Provides information on the current automatic recovery behavior of your instance. -/ + autoRecovery : Option InstanceAutoRecoveryState := none + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- Specifies whether to attempt reboot migration during a user-initiated reboot of an instance that has a scheduled system-reboot event: default - Amazon EC2 attempts to migrate the instance to new hardware (reboot migration). -/ + rebootMigration : Option InstanceRebootMigrationState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceMaintenanceOptionsResult where + schema := .struct "ModifyInstanceMaintenanceOptionsResult" [({ name := "AutoRecovery", xmlName := some "autoRecovery", queryName := some "AutoRecovery" }, (Shape.schema InstanceAutoRecoveryState)), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "RebootMigration", xmlName := some "rebootMigration", queryName := some "RebootMigration" }, (Shape.schema InstanceRebootMigrationState))] + toValue x := record [putOpt "AutoRecovery" x.autoRecovery, putOpt "InstanceId" x.instanceId, putOpt "RebootMigration" x.rebootMigration] + ofValue v := do + let autoRecovery ← v.opt "AutoRecovery" + let instanceId ← v.opt "InstanceId" + let rebootMigration ← v.opt "RebootMigration" + return { autoRecovery, instanceId, rebootMigration } + +structure ModifyInstanceMetadataDefaultsRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Enables or disables the IMDS endpoint on an instance. -/ + httpEndpoint : Option DefaultInstanceMetadataEndpointState := none + /-- The maximum number of hops that the metadata token can travel. -/ + httpPutResponseHopLimit : Option Int := none + /-- Indicates whether IMDSv2 is required. -/ + httpTokens : Option MetadataDefaultHttpTokensState := none + /-- Specifies whether to enforce the requirement of IMDSv2 on an instance at the time of launch. -/ + httpTokensEnforced : Option DefaultHttpTokensEnforcedState := none + /-- Enables or disables access to an instance's tags from the instance metadata. -/ + instanceMetadataTags : Option DefaultInstanceMetadataTagsState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceMetadataDefaultsRequest where + schema := .struct "ModifyInstanceMetadataDefaultsRequest" [({ name := "DryRun" }, .bool), + ({ name := "HttpEndpoint" }, (Shape.schema DefaultInstanceMetadataEndpointState)), + ({ name := "HttpPutResponseHopLimit" }, .int), + ({ name := "HttpTokens" }, (Shape.schema MetadataDefaultHttpTokensState)), + ({ name := "HttpTokensEnforced" }, (Shape.schema DefaultHttpTokensEnforcedState)), + ({ name := "InstanceMetadataTags" }, (Shape.schema DefaultInstanceMetadataTagsState))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "HttpEndpoint" x.httpEndpoint, putOpt "HttpPutResponseHopLimit" x.httpPutResponseHopLimit, putOpt "HttpTokens" x.httpTokens, putOpt "HttpTokensEnforced" x.httpTokensEnforced, putOpt "InstanceMetadataTags" x.instanceMetadataTags] + ofValue v := do + let dryRun ← v.opt "DryRun" + let httpEndpoint ← v.opt "HttpEndpoint" + let httpPutResponseHopLimit ← v.opt "HttpPutResponseHopLimit" + let httpTokens ← v.opt "HttpTokens" + let httpTokensEnforced ← v.opt "HttpTokensEnforced" + let instanceMetadataTags ← v.opt "InstanceMetadataTags" + return { dryRun, httpEndpoint, httpPutResponseHopLimit, httpTokens, httpTokensEnforced, instanceMetadataTags } + +structure ModifyInstanceMetadataOptionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Enables or disables the HTTP metadata endpoint on your instances. -/ + httpEndpoint : Option InstanceMetadataEndpointState := none + /-- Enables or disables the IPv6 endpoint for the instance metadata service. -/ + httpProtocolIpv6 : Option InstanceMetadataProtocolState := none + /-- The desired HTTP PUT response hop limit for instance metadata requests. -/ + httpPutResponseHopLimit : Option Int := none + /-- Indicates whether IMDSv2 is required. -/ + httpTokens : Option HttpTokensState := none + /-- The ID of the instance. -/ + instanceId : String + /-- Set to enabled to allow access to instance tags from the instance metadata. -/ + instanceMetadataTags : Option InstanceMetadataTagsState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceMetadataOptionsRequest where + schema := .struct "ModifyInstanceMetadataOptionsRequest" [({ name := "DryRun" }, .bool), + ({ name := "HttpEndpoint" }, (Shape.schema InstanceMetadataEndpointState)), + ({ name := "HttpProtocolIpv6" }, (Shape.schema InstanceMetadataProtocolState)), + ({ name := "HttpPutResponseHopLimit" }, .int), + ({ name := "HttpTokens" }, (Shape.schema HttpTokensState)), + ({ name := "InstanceId", required := true }, .string), + ({ name := "InstanceMetadataTags" }, (Shape.schema InstanceMetadataTagsState))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "HttpEndpoint" x.httpEndpoint, putOpt "HttpProtocolIpv6" x.httpProtocolIpv6, putOpt "HttpPutResponseHopLimit" x.httpPutResponseHopLimit, putOpt "HttpTokens" x.httpTokens, put "InstanceId" x.instanceId, putOpt "InstanceMetadataTags" x.instanceMetadataTags] + ofValue v := do + let dryRun ← v.opt "DryRun" + let httpEndpoint ← v.opt "HttpEndpoint" + let httpProtocolIpv6 ← v.opt "HttpProtocolIpv6" + let httpPutResponseHopLimit ← v.opt "HttpPutResponseHopLimit" + let httpTokens ← v.opt "HttpTokens" + let instanceId ← v.req "InstanceId" + let instanceMetadataTags ← v.opt "InstanceMetadataTags" + return { dryRun, httpEndpoint, httpProtocolIpv6, httpPutResponseHopLimit, httpTokens, instanceId, instanceMetadataTags } + +structure ModifyInstanceNetworkPerformanceRequest where + /-- Specify the bandwidth weighting option to boost the associated type of baseline bandwidth, as follows: default This option uses the standard bandwidth configuration for your instance type. -/ + bandwidthWeighting : InstanceBandwidthWeighting + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the instance to update. -/ + instanceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceNetworkPerformanceRequest where + schema := .struct "ModifyInstanceNetworkPerformanceRequest" [({ name := "BandwidthWeighting", required := true }, (Shape.schema InstanceBandwidthWeighting)), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceId", required := true }, .string)] + toValue x := record [put "BandwidthWeighting" x.bandwidthWeighting, putOpt "DryRun" x.dryRun, put "InstanceId" x.instanceId] + ofValue v := do + let bandwidthWeighting ← v.req "BandwidthWeighting" + let dryRun ← v.opt "DryRun" + let instanceId ← v.req "InstanceId" + return { bandwidthWeighting, dryRun, instanceId } + +structure ModifyInstanceNetworkPerformanceResult where + /-- Contains the updated configuration for bandwidth weighting on the specified instance. -/ + bandwidthWeighting : Option InstanceBandwidthWeighting := none + /-- The instance ID that was updated. -/ + instanceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceNetworkPerformanceResult where + schema := .struct "ModifyInstanceNetworkPerformanceResult" [({ name := "BandwidthWeighting", xmlName := some "bandwidthWeighting", queryName := some "BandwidthWeighting" }, (Shape.schema InstanceBandwidthWeighting)), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string)] + toValue x := record [putOpt "BandwidthWeighting" x.bandwidthWeighting, putOpt "InstanceId" x.instanceId] + ofValue v := do + let bandwidthWeighting ← v.opt "BandwidthWeighting" + let instanceId ← v.opt "InstanceId" + return { bandwidthWeighting, instanceId } + +structure ModifyInstancePlacementRequest where + /-- The affinity setting for the instance. -/ + affinity : Option Affinity := none + /-- The Group Id of a placement group. -/ + groupId : Option String := none + /-- The name of the placement group in which to place the instance. -/ + groupName : Option String := none + /-- The ID of the Dedicated Host with which to associate the instance. -/ + hostId : Option String := none + /-- The ARN of the host resource group in which to place the instance. -/ + hostResourceGroupArn : Option String := none + /-- The ID of the instance that you are modifying. -/ + instanceId : String + /-- The number of the partition in which to place the instance. -/ + partitionNumber : Option Int := none + /-- The tenancy for the instance. -/ + tenancy : Option HostTenancy := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstancePlacementRequest where + schema := .struct "ModifyInstancePlacementRequest" [({ name := "Affinity", xmlName := some "affinity", queryName := some "Affinity" }, (Shape.schema Affinity)), + ({ name := "GroupId" }, .string), + ({ name := "GroupName" }, .string), + ({ name := "HostId", xmlName := some "hostId", queryName := some "HostId" }, .string), + ({ name := "HostResourceGroupArn" }, .string), + ({ name := "InstanceId", required := true, xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "PartitionNumber" }, .int), + ({ name := "Tenancy", xmlName := some "tenancy", queryName := some "Tenancy" }, (Shape.schema HostTenancy))] + toValue x := record [putOpt "Affinity" x.affinity, putOpt "GroupId" x.groupId, putOpt "GroupName" x.groupName, putOpt "HostId" x.hostId, putOpt "HostResourceGroupArn" x.hostResourceGroupArn, put "InstanceId" x.instanceId, putOpt "PartitionNumber" x.partitionNumber, putOpt "Tenancy" x.tenancy] + ofValue v := do + let affinity ← v.opt "Affinity" + let groupId ← v.opt "GroupId" + let groupName ← v.opt "GroupName" + let hostId ← v.opt "HostId" + let hostResourceGroupArn ← v.opt "HostResourceGroupArn" + let instanceId ← v.req "InstanceId" + let partitionNumber ← v.opt "PartitionNumber" + let tenancy ← v.opt "Tenancy" + return { affinity, groupId, groupName, hostId, hostResourceGroupArn, instanceId, partitionNumber, tenancy } + +structure ModifyIpamPolicyAllocationRulesRequest where + /-- The new allocation rules to apply to the IPAM policy. -/ + allocationRules : Option (List IpamPolicyAllocationRuleRequest) := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM policy whose allocation rules you want to modify. -/ + ipamPolicyId : String + /-- The locale for which to modify the allocation rules. -/ + locale : String + /-- The resource type for which to modify the allocation rules. -/ + resourceType : IpamPolicyResourceType +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIpamPolicyAllocationRulesRequest where + schema := .struct "ModifyIpamPolicyAllocationRulesRequest" [({ name := "AllocationRules", xmlName := some "AllocationRule" }, (.list (Shape.schema IpamPolicyAllocationRuleRequest) "item")), + ({ name := "DryRun" }, .bool), + ({ name := "IpamPolicyId", required := true }, .string), + ({ name := "Locale", required := true }, .string), + ({ name := "ResourceType", required := true }, (Shape.schema IpamPolicyResourceType))] + toValue x := record [putOpt "AllocationRules" x.allocationRules, putOpt "DryRun" x.dryRun, put "IpamPolicyId" x.ipamPolicyId, put "Locale" x.locale, put "ResourceType" x.resourceType] + ofValue v := do + let allocationRules ← v.opt "AllocationRules" + let dryRun ← v.opt "DryRun" + let ipamPolicyId ← v.req "IpamPolicyId" + let locale ← v.req "Locale" + let resourceType ← v.req "ResourceType" + return { allocationRules, dryRun, ipamPolicyId, locale, resourceType } + +structure ModifyIpamPoolRequest where + /-- Add tag allocation rules to a pool. -/ + addAllocationResourceTags : Option (List RequestIpamResourceTag) := none + /-- The default netmask length for allocations added to this pool. -/ + allocationDefaultNetmaskLength : Option Int := none + /-- The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant. -/ + allocationMaxNetmaskLength : Option Int := none + /-- The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant. -/ + allocationMinNetmaskLength : Option Int := none + /-- If true, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM. -/ + autoImport : Option Bool := none + /-- Clear the default netmask length allocation rule for this pool. -/ + clearAllocationDefaultNetmaskLength : Option Bool := none + /-- The description of the IPAM pool you want to modify. -/ + description : Option String := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM pool you want to modify. -/ + ipamPoolId : String + /-- Remove tag allocation rules from a pool. -/ + removeAllocationResourceTags : Option (List RequestIpamResourceTag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIpamPoolRequest where + schema := .struct "ModifyIpamPoolRequest" [({ name := "AddAllocationResourceTags", xmlName := some "AddAllocationResourceTag" }, (.list (Shape.schema RequestIpamResourceTag) "item")), + ({ name := "AllocationDefaultNetmaskLength" }, .int), + ({ name := "AllocationMaxNetmaskLength" }, .int), + ({ name := "AllocationMinNetmaskLength" }, .int), + ({ name := "AutoImport" }, .bool), + ({ name := "ClearAllocationDefaultNetmaskLength" }, .bool), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "IpamPoolId", required := true }, .string), + ({ name := "RemoveAllocationResourceTags", xmlName := some "RemoveAllocationResourceTag" }, (.list (Shape.schema RequestIpamResourceTag) "item"))] + toValue x := record [putOpt "AddAllocationResourceTags" x.addAllocationResourceTags, putOpt "AllocationDefaultNetmaskLength" x.allocationDefaultNetmaskLength, putOpt "AllocationMaxNetmaskLength" x.allocationMaxNetmaskLength, putOpt "AllocationMinNetmaskLength" x.allocationMinNetmaskLength, putOpt "AutoImport" x.autoImport, putOpt "ClearAllocationDefaultNetmaskLength" x.clearAllocationDefaultNetmaskLength, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, put "IpamPoolId" x.ipamPoolId, putOpt "RemoveAllocationResourceTags" x.removeAllocationResourceTags] + ofValue v := do + let addAllocationResourceTags ← v.opt "AddAllocationResourceTags" + let allocationDefaultNetmaskLength ← v.opt "AllocationDefaultNetmaskLength" + let allocationMaxNetmaskLength ← v.opt "AllocationMaxNetmaskLength" + let allocationMinNetmaskLength ← v.opt "AllocationMinNetmaskLength" + let autoImport ← v.opt "AutoImport" + let clearAllocationDefaultNetmaskLength ← v.opt "ClearAllocationDefaultNetmaskLength" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let ipamPoolId ← v.req "IpamPoolId" + let removeAllocationResourceTags ← v.opt "RemoveAllocationResourceTags" + return { addAllocationResourceTags, allocationDefaultNetmaskLength, allocationMaxNetmaskLength, allocationMinNetmaskLength, autoImport, clearAllocationDefaultNetmaskLength, description, dryRun, ipamPoolId, removeAllocationResourceTags } + +structure ModifyIpamRequest where + /-- Choose the operating Regions for the IPAM. -/ + addOperatingRegions : Option (List AddIpamOperatingRegion) := none + /-- The description of the IPAM you want to modify. -/ + description : Option String := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- Enable this option to use your own GUA ranges as private IPv6 addresses. -/ + enablePrivateGua : Option Bool := none + /-- The ID of the IPAM you want to modify. -/ + ipamId : String + /-- A metered account is an Amazon Web Services account that is charged for active IP addresses managed in IPAM. -/ + meteredAccount : Option IpamMeteredAccount := none + /-- The operating Regions to remove. -/ + removeOperatingRegions : Option (List RemoveIpamOperatingRegion) := none + /-- IPAM is offered in a Free Tier and an Advanced Tier. -/ + tier : Option IpamTier := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIpamRequest where + schema := .struct "ModifyIpamRequest" [({ name := "AddOperatingRegions", xmlName := some "AddOperatingRegion" }, (.list (Shape.schema AddIpamOperatingRegion) "member")), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "EnablePrivateGua" }, .bool), + ({ name := "IpamId", required := true }, .string), + ({ name := "MeteredAccount" }, (Shape.schema IpamMeteredAccount)), + ({ name := "RemoveOperatingRegions", xmlName := some "RemoveOperatingRegion" }, (.list (Shape.schema RemoveIpamOperatingRegion) "member")), + ({ name := "Tier" }, (Shape.schema IpamTier))] + toValue x := record [putOpt "AddOperatingRegions" x.addOperatingRegions, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "EnablePrivateGua" x.enablePrivateGua, put "IpamId" x.ipamId, putOpt "MeteredAccount" x.meteredAccount, putOpt "RemoveOperatingRegions" x.removeOperatingRegions, putOpt "Tier" x.tier] + ofValue v := do + let addOperatingRegions ← v.opt "AddOperatingRegions" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let enablePrivateGua ← v.opt "EnablePrivateGua" + let ipamId ← v.req "IpamId" + let meteredAccount ← v.opt "MeteredAccount" + let removeOperatingRegions ← v.opt "RemoveOperatingRegions" + let tier ← v.opt "Tier" + return { addOperatingRegions, description, dryRun, enablePrivateGua, ipamId, meteredAccount, removeOperatingRegions, tier } + +structure ModifyIpamResourceDiscoveryRequest where + /-- Add operating Regions to the resource discovery. -/ + addOperatingRegions : Option (List AddIpamOperatingRegion) := none + /-- Add an Organizational Unit (OU) exclusion to your IPAM. -/ + addOrganizationalUnitExclusions : Option (List AddIpamOrganizationalUnitExclusion) := none + /-- A resource discovery description. -/ + description : Option String := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- A resource discovery ID. -/ + ipamResourceDiscoveryId : String + /-- Remove operating Regions. -/ + removeOperatingRegions : Option (List RemoveIpamOperatingRegion) := none + /-- Remove an Organizational Unit (OU) exclusion to your IPAM. -/ + removeOrganizationalUnitExclusions : Option (List RemoveIpamOrganizationalUnitExclusion) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIpamResourceDiscoveryRequest where + schema := .struct "ModifyIpamResourceDiscoveryRequest" [({ name := "AddOperatingRegions", xmlName := some "AddOperatingRegion" }, (.list (Shape.schema AddIpamOperatingRegion) "member")), + ({ name := "AddOrganizationalUnitExclusions", xmlName := some "AddOrganizationalUnitExclusion" }, (.list (Shape.schema AddIpamOrganizationalUnitExclusion) "member")), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "IpamResourceDiscoveryId", required := true }, .string), + ({ name := "RemoveOperatingRegions", xmlName := some "RemoveOperatingRegion" }, (.list (Shape.schema RemoveIpamOperatingRegion) "member")), + ({ name := "RemoveOrganizationalUnitExclusions", xmlName := some "RemoveOrganizationalUnitExclusion" }, (.list (Shape.schema RemoveIpamOrganizationalUnitExclusion) "member"))] + toValue x := record [putOpt "AddOperatingRegions" x.addOperatingRegions, putOpt "AddOrganizationalUnitExclusions" x.addOrganizationalUnitExclusions, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, put "IpamResourceDiscoveryId" x.ipamResourceDiscoveryId, putOpt "RemoveOperatingRegions" x.removeOperatingRegions, putOpt "RemoveOrganizationalUnitExclusions" x.removeOrganizationalUnitExclusions] + ofValue v := do + let addOperatingRegions ← v.opt "AddOperatingRegions" + let addOrganizationalUnitExclusions ← v.opt "AddOrganizationalUnitExclusions" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let ipamResourceDiscoveryId ← v.req "IpamResourceDiscoveryId" + let removeOperatingRegions ← v.opt "RemoveOperatingRegions" + let removeOrganizationalUnitExclusions ← v.opt "RemoveOrganizationalUnitExclusions" + return { addOperatingRegions, addOrganizationalUnitExclusions, description, dryRun, ipamResourceDiscoveryId, removeOperatingRegions, removeOrganizationalUnitExclusions } + +structure ModifyManagedPrefixListRequest where + /-- One or more entries to add to the prefix list. -/ + addEntries : Option (List AddPrefixListEntry) := none + /-- The current version of the prefix list. -/ + currentVersion : Option Int := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Indicates whether synchronization with an IPAM prefix list resolver should be enabled for this managed prefix list. -/ + ipamPrefixListResolverSyncEnabled : Option Bool := none + /-- The maximum number of entries for the prefix list. -/ + maxEntries : Option Int := none + /-- The ID of the prefix list. -/ + prefixListId : String + /-- A name for the prefix list. -/ + prefixListName : Option String := none + /-- One or more entries to remove from the prefix list. -/ + removeEntries : Option (List RemovePrefixListEntry) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyManagedPrefixListRequest where + schema := .struct "ModifyManagedPrefixListRequest" [({ name := "AddEntries", xmlName := some "AddEntry" }, (.list (Shape.schema AddPrefixListEntry) "member")), + ({ name := "CurrentVersion" }, .int), + ({ name := "DryRun" }, .bool), + ({ name := "IpamPrefixListResolverSyncEnabled" }, .bool), + ({ name := "MaxEntries" }, .int), + ({ name := "PrefixListId", required := true }, .string), + ({ name := "PrefixListName" }, .string), + ({ name := "RemoveEntries", xmlName := some "RemoveEntry" }, (.list (Shape.schema RemovePrefixListEntry) "member"))] + toValue x := record [putOpt "AddEntries" x.addEntries, putOpt "CurrentVersion" x.currentVersion, putOpt "DryRun" x.dryRun, putOpt "IpamPrefixListResolverSyncEnabled" x.ipamPrefixListResolverSyncEnabled, putOpt "MaxEntries" x.maxEntries, put "PrefixListId" x.prefixListId, putOpt "PrefixListName" x.prefixListName, putOpt "RemoveEntries" x.removeEntries] + ofValue v := do + let addEntries ← v.opt "AddEntries" + let currentVersion ← v.opt "CurrentVersion" + let dryRun ← v.opt "DryRun" + let ipamPrefixListResolverSyncEnabled ← v.opt "IpamPrefixListResolverSyncEnabled" + let maxEntries ← v.opt "MaxEntries" + let prefixListId ← v.req "PrefixListId" + let prefixListName ← v.opt "PrefixListName" + let removeEntries ← v.opt "RemoveEntries" + return { addEntries, currentVersion, dryRun, ipamPrefixListResolverSyncEnabled, maxEntries, prefixListId, prefixListName, removeEntries } + +structure ModifyManagedResourceVisibilityRequest where + /-- The default visibility setting for managed resources. -/ + defaultVisibility : ManagedResourceDefaultVisibility + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyManagedResourceVisibilityRequest where + schema := .struct "ModifyManagedResourceVisibilityRequest" [({ name := "DefaultVisibility", required := true }, (Shape.schema ManagedResourceDefaultVisibility)), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "DefaultVisibility" x.defaultVisibility, putOpt "DryRun" x.dryRun] + ofValue v := do + let defaultVisibility ← v.req "DefaultVisibility" + let dryRun ← v.opt "DryRun" + return { defaultVisibility, dryRun } + +structure ModifyPrivateDnsNameOptionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. -/ + enableResourceNameDnsAAAARecord : Option Bool := none + /-- Indicates whether to respond to DNS queries for instance hostnames with DNS A records. -/ + enableResourceNameDnsARecord : Option Bool := none + /-- The ID of the instance. -/ + instanceId : String + /-- The type of hostname for EC2 instances. -/ + privateDnsHostnameType : Option HostnameType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyPrivateDnsNameOptionsRequest where + schema := .struct "ModifyPrivateDnsNameOptionsRequest" [({ name := "DryRun" }, .bool), + ({ name := "EnableResourceNameDnsAAAARecord" }, .bool), + ({ name := "EnableResourceNameDnsARecord" }, .bool), + ({ name := "InstanceId", required := true }, .string), + ({ name := "PrivateDnsHostnameType" }, (Shape.schema HostnameType))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "EnableResourceNameDnsAAAARecord" x.enableResourceNameDnsAAAARecord, putOpt "EnableResourceNameDnsARecord" x.enableResourceNameDnsARecord, put "InstanceId" x.instanceId, putOpt "PrivateDnsHostnameType" x.privateDnsHostnameType] + ofValue v := do + let dryRun ← v.opt "DryRun" + let enableResourceNameDnsAAAARecord ← v.opt "EnableResourceNameDnsAAAARecord" + let enableResourceNameDnsARecord ← v.opt "EnableResourceNameDnsARecord" + let instanceId ← v.req "InstanceId" + let privateDnsHostnameType ← v.opt "PrivateDnsHostnameType" + return { dryRun, enableResourceNameDnsAAAARecord, enableResourceNameDnsARecord, instanceId, privateDnsHostnameType } + +structure ModifyPublicIpDnsNameOptionsRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The public hostname type. -/ + hostnameType : PublicIpDnsOption + /-- A network interface ID. -/ + networkInterfaceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyPublicIpDnsNameOptionsRequest where + schema := .struct "ModifyPublicIpDnsNameOptionsRequest" [({ name := "DryRun" }, .bool), + ({ name := "HostnameType", required := true }, (Shape.schema PublicIpDnsOption)), + ({ name := "NetworkInterfaceId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "HostnameType" x.hostnameType, put "NetworkInterfaceId" x.networkInterfaceId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let hostnameType ← v.req "HostnameType" + let networkInterfaceId ← v.req "NetworkInterfaceId" + return { dryRun, hostnameType, networkInterfaceId } + +structure ModifyRouteServerRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- Specifies whether to persist routes after all BGP sessions are terminated. -/ + persistRoutes : Option RouteServerPersistRoutesAction := none + /-- The number of minutes a route server will wait after BGP is re-established to unpersist the routes in the FIB and RIB. -/ + persistRoutesDuration : Option Int := none + /-- The ID of the route server to modify. -/ + routeServerId : String + /-- Specifies whether to enable SNS notifications for route server events. -/ + snsNotificationsEnabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyRouteServerRequest where + schema := .struct "ModifyRouteServerRequest" [({ name := "DryRun" }, .bool), + ({ name := "PersistRoutes" }, (Shape.schema RouteServerPersistRoutesAction)), + ({ name := "PersistRoutesDuration" }, .int), + ({ name := "RouteServerId", required := true }, .string), + ({ name := "SnsNotificationsEnabled" }, .bool)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "PersistRoutes" x.persistRoutes, putOpt "PersistRoutesDuration" x.persistRoutesDuration, put "RouteServerId" x.routeServerId, putOpt "SnsNotificationsEnabled" x.snsNotificationsEnabled] + ofValue v := do + let dryRun ← v.opt "DryRun" + let persistRoutes ← v.opt "PersistRoutes" + let persistRoutesDuration ← v.opt "PersistRoutesDuration" + let routeServerId ← v.req "RouteServerId" + let snsNotificationsEnabled ← v.opt "SnsNotificationsEnabled" + return { dryRun, persistRoutes, persistRoutesDuration, routeServerId, snsNotificationsEnabled } + +structure ModifySnapshotTierRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the snapshot. -/ + snapshotId : String + /-- The name of the storage tier. -/ + storageTier : Option TargetStorageTier := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifySnapshotTierRequest where + schema := .struct "ModifySnapshotTierRequest" [({ name := "DryRun" }, .bool), + ({ name := "SnapshotId", required := true }, .string), + ({ name := "StorageTier" }, (Shape.schema TargetStorageTier))] + toValue x := record [putOpt "DryRun" x.dryRun, put "SnapshotId" x.snapshotId, putOpt "StorageTier" x.storageTier] + ofValue v := do + let dryRun ← v.opt "DryRun" + let snapshotId ← v.req "SnapshotId" + let storageTier ← v.opt "StorageTier" + return { dryRun, snapshotId, storageTier } + +structure ModifySubnetAttributeRequest where + /-- Specify true to indicate that network interfaces created in the specified subnet should be assigned an IPv6 address. -/ + assignIpv6AddressOnCreation : Option AttributeBooleanValue := none + /-- The customer-owned IPv4 address pool associated with the subnet. -/ + customerOwnedIpv4Pool : Option String := none + /-- Specify true to indicate that local network interfaces at the current position should be disabled. -/ + disableLniAtDeviceIndex : Option AttributeBooleanValue := none + /-- Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations. -/ + enableDns64 : Option AttributeBooleanValue := none + /-- Indicates the device position for local network interfaces in this subnet. -/ + enableLniAtDeviceIndex : Option Int := none + /-- Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. -/ + enableResourceNameDnsAAAARecordOnLaunch : Option AttributeBooleanValue := none + /-- Indicates whether to respond to DNS queries for instance hostnames with DNS A records. -/ + enableResourceNameDnsARecordOnLaunch : Option AttributeBooleanValue := none + /-- Specify true to indicate that network interfaces attached to instances created in the specified subnet should be assigned a customer-owned IPv4 address. -/ + mapCustomerOwnedIpOnLaunch : Option AttributeBooleanValue := none + /-- Specify true to indicate that network interfaces attached to instances created in the specified subnet should be assigned a public IPv4 address. -/ + mapPublicIpOnLaunch : Option AttributeBooleanValue := none + /-- The type of hostname to assign to instances in the subnet at launch. -/ + privateDnsHostnameTypeOnLaunch : Option HostnameType := none + /-- The ID of the subnet. -/ + subnetId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifySubnetAttributeRequest where + schema := .struct "ModifySubnetAttributeRequest" [({ name := "AssignIpv6AddressOnCreation" }, (Shape.schema AttributeBooleanValue)), + ({ name := "CustomerOwnedIpv4Pool" }, .string), + ({ name := "DisableLniAtDeviceIndex" }, (Shape.schema AttributeBooleanValue)), + ({ name := "EnableDns64" }, (Shape.schema AttributeBooleanValue)), + ({ name := "EnableLniAtDeviceIndex" }, .int), + ({ name := "EnableResourceNameDnsAAAARecordOnLaunch" }, (Shape.schema AttributeBooleanValue)), + ({ name := "EnableResourceNameDnsARecordOnLaunch" }, (Shape.schema AttributeBooleanValue)), + ({ name := "MapCustomerOwnedIpOnLaunch" }, (Shape.schema AttributeBooleanValue)), + ({ name := "MapPublicIpOnLaunch" }, (Shape.schema AttributeBooleanValue)), + ({ name := "PrivateDnsHostnameTypeOnLaunch" }, (Shape.schema HostnameType)), + ({ name := "SubnetId", required := true, xmlName := some "subnetId", queryName := some "SubnetId" }, .string)] + toValue x := record [putOpt "AssignIpv6AddressOnCreation" x.assignIpv6AddressOnCreation, putOpt "CustomerOwnedIpv4Pool" x.customerOwnedIpv4Pool, putOpt "DisableLniAtDeviceIndex" x.disableLniAtDeviceIndex, putOpt "EnableDns64" x.enableDns64, putOpt "EnableLniAtDeviceIndex" x.enableLniAtDeviceIndex, putOpt "EnableResourceNameDnsAAAARecordOnLaunch" x.enableResourceNameDnsAAAARecordOnLaunch, putOpt "EnableResourceNameDnsARecordOnLaunch" x.enableResourceNameDnsARecordOnLaunch, putOpt "MapCustomerOwnedIpOnLaunch" x.mapCustomerOwnedIpOnLaunch, putOpt "MapPublicIpOnLaunch" x.mapPublicIpOnLaunch, putOpt "PrivateDnsHostnameTypeOnLaunch" x.privateDnsHostnameTypeOnLaunch, put "SubnetId" x.subnetId] + ofValue v := do + let assignIpv6AddressOnCreation ← v.opt "AssignIpv6AddressOnCreation" + let customerOwnedIpv4Pool ← v.opt "CustomerOwnedIpv4Pool" + let disableLniAtDeviceIndex ← v.opt "DisableLniAtDeviceIndex" + let enableDns64 ← v.opt "EnableDns64" + let enableLniAtDeviceIndex ← v.opt "EnableLniAtDeviceIndex" + let enableResourceNameDnsAAAARecordOnLaunch ← v.opt "EnableResourceNameDnsAAAARecordOnLaunch" + let enableResourceNameDnsARecordOnLaunch ← v.opt "EnableResourceNameDnsARecordOnLaunch" + let mapCustomerOwnedIpOnLaunch ← v.opt "MapCustomerOwnedIpOnLaunch" + let mapPublicIpOnLaunch ← v.opt "MapPublicIpOnLaunch" + let privateDnsHostnameTypeOnLaunch ← v.opt "PrivateDnsHostnameTypeOnLaunch" + let subnetId ← v.req "SubnetId" + return { assignIpv6AddressOnCreation, customerOwnedIpv4Pool, disableLniAtDeviceIndex, enableDns64, enableLniAtDeviceIndex, enableResourceNameDnsAAAARecordOnLaunch, enableResourceNameDnsARecordOnLaunch, mapCustomerOwnedIpOnLaunch, mapPublicIpOnLaunch, privateDnsHostnameTypeOnLaunch, subnetId } + +structure ModifyTrafficMirrorFilterNetworkServicesRequest where + /-- The network service, for example Amazon DNS, that you want to mirror. -/ + addNetworkServices : Option (List TrafficMirrorNetworkService) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The network service, for example Amazon DNS, that you no longer want to mirror. -/ + removeNetworkServices : Option (List TrafficMirrorNetworkService) := none + /-- The ID of the Traffic Mirror filter. -/ + trafficMirrorFilterId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTrafficMirrorFilterNetworkServicesRequest where + schema := .struct "ModifyTrafficMirrorFilterNetworkServicesRequest" [({ name := "AddNetworkServices", xmlName := some "AddNetworkService" }, (.list (Shape.schema TrafficMirrorNetworkService) "item")), + ({ name := "DryRun" }, .bool), + ({ name := "RemoveNetworkServices", xmlName := some "RemoveNetworkService" }, (.list (Shape.schema TrafficMirrorNetworkService) "item")), + ({ name := "TrafficMirrorFilterId", required := true }, .string)] + toValue x := record [putOpt "AddNetworkServices" x.addNetworkServices, putOpt "DryRun" x.dryRun, putOpt "RemoveNetworkServices" x.removeNetworkServices, put "TrafficMirrorFilterId" x.trafficMirrorFilterId] + ofValue v := do + let addNetworkServices ← v.opt "AddNetworkServices" + let dryRun ← v.opt "DryRun" + let removeNetworkServices ← v.opt "RemoveNetworkServices" + let trafficMirrorFilterId ← v.req "TrafficMirrorFilterId" + return { addNetworkServices, dryRun, removeNetworkServices, trafficMirrorFilterId } + +structure ModifyTrafficMirrorFilterRuleRequest where + /-- The description to assign to the Traffic Mirror rule. -/ + description : Option String := none + /-- The destination CIDR block to assign to the Traffic Mirror rule. -/ + destinationCidrBlock : Option String := none + /-- The destination ports that are associated with the Traffic Mirror rule. -/ + destinationPortRange : Option TrafficMirrorPortRangeRequest := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The protocol, for example TCP, to assign to the Traffic Mirror rule. -/ + protocol : Option Int := none + /-- The properties that you want to remove from the Traffic Mirror filter rule. -/ + removeFields : Option (List TrafficMirrorFilterRuleField) := none + /-- The action to assign to the rule. -/ + ruleAction : Option TrafficMirrorRuleAction := none + /-- The number of the Traffic Mirror rule. -/ + ruleNumber : Option Int := none + /-- The source CIDR block to assign to the Traffic Mirror rule. -/ + sourceCidrBlock : Option String := none + /-- The port range to assign to the Traffic Mirror rule. -/ + sourcePortRange : Option TrafficMirrorPortRangeRequest := none + /-- The type of traffic to assign to the rule. -/ + trafficDirection : Option TrafficDirection := none + /-- The ID of the Traffic Mirror rule. -/ + trafficMirrorFilterRuleId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTrafficMirrorFilterRuleRequest where + schema := .struct "ModifyTrafficMirrorFilterRuleRequest" [({ name := "Description" }, .string), + ({ name := "DestinationCidrBlock" }, .string), + ({ name := "DestinationPortRange" }, (Shape.schema TrafficMirrorPortRangeRequest)), + ({ name := "DryRun" }, .bool), + ({ name := "Protocol" }, .int), + ({ name := "RemoveFields", xmlName := some "RemoveField" }, (.list (Shape.schema TrafficMirrorFilterRuleField) "member")), + ({ name := "RuleAction" }, (Shape.schema TrafficMirrorRuleAction)), + ({ name := "RuleNumber" }, .int), + ({ name := "SourceCidrBlock" }, .string), + ({ name := "SourcePortRange" }, (Shape.schema TrafficMirrorPortRangeRequest)), + ({ name := "TrafficDirection" }, (Shape.schema TrafficDirection)), + ({ name := "TrafficMirrorFilterRuleId", required := true }, .string)] + toValue x := record [putOpt "Description" x.description, putOpt "DestinationCidrBlock" x.destinationCidrBlock, putOpt "DestinationPortRange" x.destinationPortRange, putOpt "DryRun" x.dryRun, putOpt "Protocol" x.protocol, putOpt "RemoveFields" x.removeFields, putOpt "RuleAction" x.ruleAction, putOpt "RuleNumber" x.ruleNumber, putOpt "SourceCidrBlock" x.sourceCidrBlock, putOpt "SourcePortRange" x.sourcePortRange, putOpt "TrafficDirection" x.trafficDirection, put "TrafficMirrorFilterRuleId" x.trafficMirrorFilterRuleId] + ofValue v := do + let description ← v.opt "Description" + let destinationCidrBlock ← v.opt "DestinationCidrBlock" + let destinationPortRange ← v.opt "DestinationPortRange" + let dryRun ← v.opt "DryRun" + let protocol ← v.opt "Protocol" + let removeFields ← v.opt "RemoveFields" + let ruleAction ← v.opt "RuleAction" + let ruleNumber ← v.opt "RuleNumber" + let sourceCidrBlock ← v.opt "SourceCidrBlock" + let sourcePortRange ← v.opt "SourcePortRange" + let trafficDirection ← v.opt "TrafficDirection" + let trafficMirrorFilterRuleId ← v.req "TrafficMirrorFilterRuleId" + return { description, destinationCidrBlock, destinationPortRange, dryRun, protocol, removeFields, ruleAction, ruleNumber, sourceCidrBlock, sourcePortRange, trafficDirection, trafficMirrorFilterRuleId } + +structure ModifyTrafficMirrorSessionRequest where + /-- The description to assign to the Traffic Mirror session. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The number of bytes in each packet to mirror. -/ + packetLength : Option Int := none + /-- The properties that you want to remove from the Traffic Mirror session. -/ + removeFields : Option (List TrafficMirrorSessionField) := none + /-- The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. -/ + sessionNumber : Option Int := none + /-- The ID of the Traffic Mirror filter. -/ + trafficMirrorFilterId : Option String := none + /-- The ID of the Traffic Mirror session. -/ + trafficMirrorSessionId : String + /-- The Traffic Mirror target. -/ + trafficMirrorTargetId : Option String := none + /-- The virtual network ID of the Traffic Mirror session. -/ + virtualNetworkId : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTrafficMirrorSessionRequest where + schema := .struct "ModifyTrafficMirrorSessionRequest" [({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "PacketLength" }, .int), + ({ name := "RemoveFields", xmlName := some "RemoveField" }, (.list (Shape.schema TrafficMirrorSessionField) "member")), + ({ name := "SessionNumber" }, .int), + ({ name := "TrafficMirrorFilterId" }, .string), + ({ name := "TrafficMirrorSessionId", required := true }, .string), + ({ name := "TrafficMirrorTargetId" }, .string), + ({ name := "VirtualNetworkId" }, .int)] + toValue x := record [putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "PacketLength" x.packetLength, putOpt "RemoveFields" x.removeFields, putOpt "SessionNumber" x.sessionNumber, putOpt "TrafficMirrorFilterId" x.trafficMirrorFilterId, put "TrafficMirrorSessionId" x.trafficMirrorSessionId, putOpt "TrafficMirrorTargetId" x.trafficMirrorTargetId, putOpt "VirtualNetworkId" x.virtualNetworkId] + ofValue v := do + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let packetLength ← v.opt "PacketLength" + let removeFields ← v.opt "RemoveFields" + let sessionNumber ← v.opt "SessionNumber" + let trafficMirrorFilterId ← v.opt "TrafficMirrorFilterId" + let trafficMirrorSessionId ← v.req "TrafficMirrorSessionId" + let trafficMirrorTargetId ← v.opt "TrafficMirrorTargetId" + let virtualNetworkId ← v.opt "VirtualNetworkId" + return { description, dryRun, packetLength, removeFields, sessionNumber, trafficMirrorFilterId, trafficMirrorSessionId, trafficMirrorTargetId, virtualNetworkId } + +structure ModifyTransitGatewayAttachmentNatConfigurationRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The NAT gateway rules for the attachment. -/ + natGatewayRules : Option (List TransitGatewayNatRuleRequest) := none + /-- Specifies whether to enable or disable NAT gateway support for the attachment. -/ + natGatewaySupport : Option TransitGatewayAttachmentNatGatewaySupportValue := none + /-- Specifies whether the transit gateway installs routes for the NAT CIDRs in the route tables to which the attachment propagates. -/ + natSystemRouteSupport : Option TransitGatewayAttachmentNatSystemRouteSupportValue := none + /-- Specifies whether to remove all NAT gateway rules from the attachment. -/ + resetNatGatewayRules : Option Bool := none + /-- The ID of the transit gateway attachment. -/ + transitGatewayAttachmentId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTransitGatewayAttachmentNatConfigurationRequest where + schema := .struct "ModifyTransitGatewayAttachmentNatConfigurationRequest" [({ name := "DryRun" }, .bool), + ({ name := "NatGatewayRules", xmlName := some "NatGatewayRule" }, (.list (Shape.schema TransitGatewayNatRuleRequest) "item")), + ({ name := "NatGatewaySupport" }, (Shape.schema TransitGatewayAttachmentNatGatewaySupportValue)), + ({ name := "NatSystemRouteSupport" }, (Shape.schema TransitGatewayAttachmentNatSystemRouteSupportValue)), + ({ name := "ResetNatGatewayRules" }, .bool), + ({ name := "TransitGatewayAttachmentId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "NatGatewayRules" x.natGatewayRules, putOpt "NatGatewaySupport" x.natGatewaySupport, putOpt "NatSystemRouteSupport" x.natSystemRouteSupport, putOpt "ResetNatGatewayRules" x.resetNatGatewayRules, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let natGatewayRules ← v.opt "NatGatewayRules" + let natGatewaySupport ← v.opt "NatGatewaySupport" + let natSystemRouteSupport ← v.opt "NatSystemRouteSupport" + let resetNatGatewayRules ← v.opt "ResetNatGatewayRules" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + return { dryRun, natGatewayRules, natGatewaySupport, natSystemRouteSupport, resetNatGatewayRules, transitGatewayAttachmentId } + +/-- The transit gateway options. -/ +structure ModifyTransitGatewayOptions where + /-- Adds IPv4 or IPv6 CIDR blocks for the transit gateway. -/ + addTransitGatewayCidrBlocks : Option (List String) := none + /-- A private Autonomous System Number (ASN) for the Amazon side of a BGP session. -/ + amazonSideAsn : Option Int := none + /-- The ID of the default association route table. -/ + associationDefaultRouteTableId : Option String := none + /-- Enable or disable automatic acceptance of attachment requests. -/ + autoAcceptSharedAttachments : Option AutoAcceptSharedAttachmentsValue := none + /-- Enable or disable automatic association with the default association route table. -/ + defaultRouteTableAssociation : Option DefaultRouteTableAssociationValue := none + /-- Indicates whether resource attachments automatically propagate routes to the default propagation route table. -/ + defaultRouteTablePropagation : Option DefaultRouteTablePropagationValue := none + /-- Enable or disable DNS support. -/ + dnsSupport : Option DnsSupportValue := none + /-- Enable or disable encryption support for VPC Encryption Control. -/ + encryptionSupport : Option EncryptionSupportOptionValue := none + /-- The ID of the default propagation route table. -/ + propagationDefaultRouteTableId : Option String := none + /-- Removes CIDR blocks for the transit gateway. -/ + removeTransitGatewayCidrBlocks : Option (List String) := none + /-- Enables you to reference a security group across VPCs attached to a transit gateway to simplify security group management. -/ + securityGroupReferencingSupport : Option SecurityGroupReferencingSupportValue := none + /-- Enable or disable Equal Cost Multipath Protocol support. -/ + vpnEcmpSupport : Option VpnEcmpSupportValue := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTransitGatewayOptions where + schema := .struct "ModifyTransitGatewayOptions" [({ name := "AddTransitGatewayCidrBlocks" }, (.list .string "item")), + ({ name := "AmazonSideAsn" }, .int), + ({ name := "AssociationDefaultRouteTableId" }, .string), + ({ name := "AutoAcceptSharedAttachments" }, (Shape.schema AutoAcceptSharedAttachmentsValue)), + ({ name := "DefaultRouteTableAssociation" }, (Shape.schema DefaultRouteTableAssociationValue)), + ({ name := "DefaultRouteTablePropagation" }, (Shape.schema DefaultRouteTablePropagationValue)), + ({ name := "DnsSupport" }, (Shape.schema DnsSupportValue)), + ({ name := "EncryptionSupport" }, (Shape.schema EncryptionSupportOptionValue)), + ({ name := "PropagationDefaultRouteTableId" }, .string), + ({ name := "RemoveTransitGatewayCidrBlocks" }, (.list .string "item")), + ({ name := "SecurityGroupReferencingSupport" }, (Shape.schema SecurityGroupReferencingSupportValue)), + ({ name := "VpnEcmpSupport" }, (Shape.schema VpnEcmpSupportValue))] + toValue x := record [putOpt "AddTransitGatewayCidrBlocks" x.addTransitGatewayCidrBlocks, putOpt "AmazonSideAsn" x.amazonSideAsn, putOpt "AssociationDefaultRouteTableId" x.associationDefaultRouteTableId, putOpt "AutoAcceptSharedAttachments" x.autoAcceptSharedAttachments, putOpt "DefaultRouteTableAssociation" x.defaultRouteTableAssociation, putOpt "DefaultRouteTablePropagation" x.defaultRouteTablePropagation, putOpt "DnsSupport" x.dnsSupport, putOpt "EncryptionSupport" x.encryptionSupport, putOpt "PropagationDefaultRouteTableId" x.propagationDefaultRouteTableId, putOpt "RemoveTransitGatewayCidrBlocks" x.removeTransitGatewayCidrBlocks, putOpt "SecurityGroupReferencingSupport" x.securityGroupReferencingSupport, putOpt "VpnEcmpSupport" x.vpnEcmpSupport] + ofValue v := do + let addTransitGatewayCidrBlocks ← v.opt "AddTransitGatewayCidrBlocks" + let amazonSideAsn ← v.opt "AmazonSideAsn" + let associationDefaultRouteTableId ← v.opt "AssociationDefaultRouteTableId" + let autoAcceptSharedAttachments ← v.opt "AutoAcceptSharedAttachments" + let defaultRouteTableAssociation ← v.opt "DefaultRouteTableAssociation" + let defaultRouteTablePropagation ← v.opt "DefaultRouteTablePropagation" + let dnsSupport ← v.opt "DnsSupport" + let encryptionSupport ← v.opt "EncryptionSupport" + let propagationDefaultRouteTableId ← v.opt "PropagationDefaultRouteTableId" + let removeTransitGatewayCidrBlocks ← v.opt "RemoveTransitGatewayCidrBlocks" + let securityGroupReferencingSupport ← v.opt "SecurityGroupReferencingSupport" + let vpnEcmpSupport ← v.opt "VpnEcmpSupport" + return { addTransitGatewayCidrBlocks, amazonSideAsn, associationDefaultRouteTableId, autoAcceptSharedAttachments, defaultRouteTableAssociation, defaultRouteTablePropagation, dnsSupport, encryptionSupport, propagationDefaultRouteTableId, removeTransitGatewayCidrBlocks, securityGroupReferencingSupport, vpnEcmpSupport } + +/-- Contains the options to modify for a transit gateway peering attachment, including multipath resilience settings. -/ +structure ModifyTransitGatewayPeeringAttachmentRequestOptions where + /-- Specifies whether you allow multipath resilience for your side of the transit gateway peering attachment. -/ + allowMultipathResilience : Option Bool := none + /-- The multipath resilience mode. -/ + multipathResilienceMode : Option TransitGatewayPeeringAttachmentMultipathResilienceMode := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTransitGatewayPeeringAttachmentRequestOptions where + schema := .struct "ModifyTransitGatewayPeeringAttachmentRequestOptions" [({ name := "AllowMultipathResilience" }, .bool), + ({ name := "MultipathResilienceMode" }, (Shape.schema TransitGatewayPeeringAttachmentMultipathResilienceMode))] + toValue x := record [putOpt "AllowMultipathResilience" x.allowMultipathResilience, putOpt "MultipathResilienceMode" x.multipathResilienceMode] + ofValue v := do + let allowMultipathResilience ← v.opt "AllowMultipathResilience" + let multipathResilienceMode ← v.opt "MultipathResilienceMode" + return { allowMultipathResilience, multipathResilienceMode } + +/-- Describes the options for a VPC attachment. -/ +structure ModifyTransitGatewayVpcAttachmentRequestOptions where + /-- Enable or disable support for appliance mode. -/ + applianceModeSupport : Option ApplianceModeSupportValue := none + /-- Enable or disable DNS support. -/ + dnsSupport : Option DnsSupportValue := none + /-- Specifies whether IPv6 support is enabled for the attachment. -/ + ipv6Support : Option Ipv6SupportValue := none + /-- Enables you to reference a security group across VPCs attached to a transit gateway to simplify security group management. -/ + securityGroupReferencingSupport : Option SecurityGroupReferencingSupportValue := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTransitGatewayVpcAttachmentRequestOptions where + schema := .struct "ModifyTransitGatewayVpcAttachmentRequestOptions" [({ name := "ApplianceModeSupport" }, (Shape.schema ApplianceModeSupportValue)), + ({ name := "DnsSupport" }, (Shape.schema DnsSupportValue)), + ({ name := "Ipv6Support" }, (Shape.schema Ipv6SupportValue)), + ({ name := "SecurityGroupReferencingSupport" }, (Shape.schema SecurityGroupReferencingSupportValue))] + toValue x := record [putOpt "ApplianceModeSupport" x.applianceModeSupport, putOpt "DnsSupport" x.dnsSupport, putOpt "Ipv6Support" x.ipv6Support, putOpt "SecurityGroupReferencingSupport" x.securityGroupReferencingSupport] + ofValue v := do + let applianceModeSupport ← v.opt "ApplianceModeSupport" + let dnsSupport ← v.opt "DnsSupport" + let ipv6Support ← v.opt "Ipv6Support" + let securityGroupReferencingSupport ← v.opt "SecurityGroupReferencingSupport" + return { applianceModeSupport, dnsSupport, ipv6Support, securityGroupReferencingSupport } + +/-- The CIDR options for a Verified Access endpoint. -/ +structure ModifyVerifiedAccessEndpointCidrOptions where + /-- The port ranges. -/ + portRanges : Option (List ModifyVerifiedAccessEndpointPortRange) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessEndpointCidrOptions where + schema := .struct "ModifyVerifiedAccessEndpointCidrOptions" [({ name := "PortRanges", xmlName := some "PortRange" }, (.list (Shape.schema ModifyVerifiedAccessEndpointPortRange) "item"))] + toValue x := record [putOpt "PortRanges" x.portRanges] + ofValue v := do + let portRanges ← v.opt "PortRanges" + return { portRanges } + +/-- Describes the options when modifying a Verified Access endpoint with the network-interface type. -/ +structure ModifyVerifiedAccessEndpointEniOptions where + /-- The IP port number. -/ + port : Option Int := none + /-- The port ranges. -/ + portRanges : Option (List ModifyVerifiedAccessEndpointPortRange) := none + /-- The IP protocol. -/ + protocol : Option VerifiedAccessEndpointProtocol := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessEndpointEniOptions where + schema := .struct "ModifyVerifiedAccessEndpointEniOptions" [({ name := "Port" }, .int), + ({ name := "PortRanges", xmlName := some "PortRange" }, (.list (Shape.schema ModifyVerifiedAccessEndpointPortRange) "item")), + ({ name := "Protocol" }, (Shape.schema VerifiedAccessEndpointProtocol))] + toValue x := record [putOpt "Port" x.port, putOpt "PortRanges" x.portRanges, putOpt "Protocol" x.protocol] + ofValue v := do + let port ← v.opt "Port" + let portRanges ← v.opt "PortRanges" + let protocol ← v.opt "Protocol" + return { port, portRanges, protocol } + +/-- Describes a load balancer when creating an Amazon Web Services Verified Access endpoint using the load-balancer type. -/ +structure ModifyVerifiedAccessEndpointLoadBalancerOptions where + /-- The IP port number. -/ + port : Option Int := none + /-- The port ranges. -/ + portRanges : Option (List ModifyVerifiedAccessEndpointPortRange) := none + /-- The IP protocol. -/ + protocol : Option VerifiedAccessEndpointProtocol := none + /-- The IDs of the subnets. -/ + subnetIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessEndpointLoadBalancerOptions where + schema := .struct "ModifyVerifiedAccessEndpointLoadBalancerOptions" [({ name := "Port" }, .int), + ({ name := "PortRanges", xmlName := some "PortRange" }, (.list (Shape.schema ModifyVerifiedAccessEndpointPortRange) "item")), + ({ name := "Protocol" }, (Shape.schema VerifiedAccessEndpointProtocol)), + ({ name := "SubnetIds", xmlName := some "SubnetId" }, (.list .string "item"))] + toValue x := record [putOpt "Port" x.port, putOpt "PortRanges" x.portRanges, putOpt "Protocol" x.protocol, putOpt "SubnetIds" x.subnetIds] + ofValue v := do + let port ← v.opt "Port" + let portRanges ← v.opt "PortRanges" + let protocol ← v.opt "Protocol" + let subnetIds ← v.opt "SubnetIds" + return { port, portRanges, protocol, subnetIds } + +structure ModifyVerifiedAccessEndpointPolicyRequest where + /-- A unique, case-sensitive token that you provide to ensure idempotency of your modification request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The Verified Access policy document. -/ + policyDocument : Option String := none + /-- The status of the Verified Access policy. -/ + policyEnabled : Option Bool := none + /-- The options for server side encryption. -/ + sseSpecification : Option VerifiedAccessSseSpecificationRequest := none + /-- The ID of the Verified Access endpoint. -/ + verifiedAccessEndpointId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessEndpointPolicyRequest where + schema := .struct "ModifyVerifiedAccessEndpointPolicyRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "PolicyDocument" }, .string), + ({ name := "PolicyEnabled" }, .bool), + ({ name := "SseSpecification" }, (Shape.schema VerifiedAccessSseSpecificationRequest)), + ({ name := "VerifiedAccessEndpointId", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "PolicyDocument" x.policyDocument, putOpt "PolicyEnabled" x.policyEnabled, putOpt "SseSpecification" x.sseSpecification, put "VerifiedAccessEndpointId" x.verifiedAccessEndpointId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let policyDocument ← v.opt "PolicyDocument" + let policyEnabled ← v.opt "PolicyEnabled" + let sseSpecification ← v.opt "SseSpecification" + let verifiedAccessEndpointId ← v.req "VerifiedAccessEndpointId" + return { clientToken, dryRun, policyDocument, policyEnabled, sseSpecification, verifiedAccessEndpointId } + +structure ModifyVerifiedAccessEndpointPolicyResult where + /-- The Verified Access policy document. -/ + policyDocument : Option String := none + /-- The status of the Verified Access policy. -/ + policyEnabled : Option Bool := none + /-- The options in use for server side encryption. -/ + sseSpecification : Option VerifiedAccessSseSpecificationResponse := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessEndpointPolicyResult where + schema := .struct "ModifyVerifiedAccessEndpointPolicyResult" [({ name := "PolicyDocument", xmlName := some "policyDocument", queryName := some "PolicyDocument" }, .string), + ({ name := "PolicyEnabled", xmlName := some "policyEnabled", queryName := some "PolicyEnabled" }, .bool), + ({ name := "SseSpecification", xmlName := some "sseSpecification", queryName := some "SseSpecification" }, (Shape.schema VerifiedAccessSseSpecificationResponse))] + toValue x := record [putOpt "PolicyDocument" x.policyDocument, putOpt "PolicyEnabled" x.policyEnabled, putOpt "SseSpecification" x.sseSpecification] + ofValue v := do + let policyDocument ← v.opt "PolicyDocument" + let policyEnabled ← v.opt "PolicyEnabled" + let sseSpecification ← v.opt "SseSpecification" + return { policyDocument, policyEnabled, sseSpecification } + +structure ModifyVerifiedAccessGroupPolicyRequest where + /-- A unique, case-sensitive token that you provide to ensure idempotency of your modification request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The Verified Access policy document. -/ + policyDocument : Option String := none + /-- The status of the Verified Access policy. -/ + policyEnabled : Option Bool := none + /-- The options for server side encryption. -/ + sseSpecification : Option VerifiedAccessSseSpecificationRequest := none + /-- The ID of the Verified Access group. -/ + verifiedAccessGroupId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessGroupPolicyRequest where + schema := .struct "ModifyVerifiedAccessGroupPolicyRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "PolicyDocument" }, .string), + ({ name := "PolicyEnabled" }, .bool), + ({ name := "SseSpecification" }, (Shape.schema VerifiedAccessSseSpecificationRequest)), + ({ name := "VerifiedAccessGroupId", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "PolicyDocument" x.policyDocument, putOpt "PolicyEnabled" x.policyEnabled, putOpt "SseSpecification" x.sseSpecification, put "VerifiedAccessGroupId" x.verifiedAccessGroupId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let policyDocument ← v.opt "PolicyDocument" + let policyEnabled ← v.opt "PolicyEnabled" + let sseSpecification ← v.opt "SseSpecification" + let verifiedAccessGroupId ← v.req "VerifiedAccessGroupId" + return { clientToken, dryRun, policyDocument, policyEnabled, sseSpecification, verifiedAccessGroupId } + +structure ModifyVerifiedAccessGroupPolicyResult where + /-- The Verified Access policy document. -/ + policyDocument : Option String := none + /-- The status of the Verified Access policy. -/ + policyEnabled : Option Bool := none + /-- The options in use for server side encryption. -/ + sseSpecification : Option VerifiedAccessSseSpecificationResponse := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessGroupPolicyResult where + schema := .struct "ModifyVerifiedAccessGroupPolicyResult" [({ name := "PolicyDocument", xmlName := some "policyDocument", queryName := some "PolicyDocument" }, .string), + ({ name := "PolicyEnabled", xmlName := some "policyEnabled", queryName := some "PolicyEnabled" }, .bool), + ({ name := "SseSpecification", xmlName := some "sseSpecification", queryName := some "SseSpecification" }, (Shape.schema VerifiedAccessSseSpecificationResponse))] + toValue x := record [putOpt "PolicyDocument" x.policyDocument, putOpt "PolicyEnabled" x.policyEnabled, putOpt "SseSpecification" x.sseSpecification] + ofValue v := do + let policyDocument ← v.opt "PolicyDocument" + let policyEnabled ← v.opt "PolicyEnabled" + let sseSpecification ← v.opt "SseSpecification" + return { policyDocument, policyEnabled, sseSpecification } + +structure ModifyVerifiedAccessTrustProviderRequest where + /-- A unique, case-sensitive token that you provide to ensure idempotency of your modification request. -/ + clientToken : Option String := none + /-- A description for the Verified Access trust provider. -/ + description : Option String := none + /-- The options for a device-based trust provider. -/ + deviceOptions : Option ModifyVerifiedAccessTrustProviderDeviceOptions := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The OpenID Connect (OIDC) options. -/ + nativeApplicationOidcOptions : Option ModifyVerifiedAccessNativeApplicationOidcOptions := none + /-- The options for an OpenID Connect-compatible user-identity trust provider. -/ + oidcOptions : Option ModifyVerifiedAccessTrustProviderOidcOptions := none + /-- The options for server side encryption. -/ + sseSpecification : Option VerifiedAccessSseSpecificationRequest := none + /-- The ID of the Verified Access trust provider. -/ + verifiedAccessTrustProviderId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessTrustProviderRequest where + schema := .struct "ModifyVerifiedAccessTrustProviderRequest" [({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DeviceOptions" }, (Shape.schema ModifyVerifiedAccessTrustProviderDeviceOptions)), + ({ name := "DryRun" }, .bool), + ({ name := "NativeApplicationOidcOptions" }, (Shape.schema ModifyVerifiedAccessNativeApplicationOidcOptions)), + ({ name := "OidcOptions" }, (Shape.schema ModifyVerifiedAccessTrustProviderOidcOptions)), + ({ name := "SseSpecification" }, (Shape.schema VerifiedAccessSseSpecificationRequest)), + ({ name := "VerifiedAccessTrustProviderId", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DeviceOptions" x.deviceOptions, putOpt "DryRun" x.dryRun, putOpt "NativeApplicationOidcOptions" x.nativeApplicationOidcOptions, putOpt "OidcOptions" x.oidcOptions, putOpt "SseSpecification" x.sseSpecification, put "VerifiedAccessTrustProviderId" x.verifiedAccessTrustProviderId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let deviceOptions ← v.opt "DeviceOptions" + let dryRun ← v.opt "DryRun" + let nativeApplicationOidcOptions ← v.opt "NativeApplicationOidcOptions" + let oidcOptions ← v.opt "OidcOptions" + let sseSpecification ← v.opt "SseSpecification" + let verifiedAccessTrustProviderId ← v.req "VerifiedAccessTrustProviderId" + return { clientToken, description, deviceOptions, dryRun, nativeApplicationOidcOptions, oidcOptions, sseSpecification, verifiedAccessTrustProviderId } + +structure ModifyVolumeAttributeRequest where + /-- Indicates whether the volume should be auto-enabled for I/O operations. -/ + autoEnableIO : Option AttributeBooleanValue := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the volume. -/ + volumeId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVolumeAttributeRequest where + schema := .struct "ModifyVolumeAttributeRequest" [({ name := "AutoEnableIO" }, (Shape.schema AttributeBooleanValue)), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "VolumeId", required := true }, .string)] + toValue x := record [putOpt "AutoEnableIO" x.autoEnableIO, putOpt "DryRun" x.dryRun, put "VolumeId" x.volumeId] + ofValue v := do + let autoEnableIO ← v.opt "AutoEnableIO" + let dryRun ← v.opt "DryRun" + let volumeId ← v.req "VolumeId" + return { autoEnableIO, dryRun, volumeId } + +structure ModifyVolumeRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The target IOPS rate of the volume. -/ + iops : Option Int := none + /-- Specifies whether to enable Amazon EBS Multi-Attach. -/ + multiAttachEnabled : Option Bool := none + /-- The target size of the volume, in GiB. -/ + size : Option Int := none + /-- The target throughput of the volume, in MiB/s. -/ + throughput : Option Int := none + /-- The ID of the volume. -/ + volumeId : String + /-- The target EBS volume type of the volume. -/ + volumeType : Option VolumeType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVolumeRequest where + schema := .struct "ModifyVolumeRequest" [({ name := "DryRun" }, .bool), + ({ name := "Iops" }, .int), + ({ name := "MultiAttachEnabled" }, .bool), + ({ name := "Size" }, .int), + ({ name := "Throughput" }, .int), + ({ name := "VolumeId", required := true }, .string), + ({ name := "VolumeType" }, (Shape.schema VolumeType))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Iops" x.iops, putOpt "MultiAttachEnabled" x.multiAttachEnabled, putOpt "Size" x.size, putOpt "Throughput" x.throughput, put "VolumeId" x.volumeId, putOpt "VolumeType" x.volumeType] + ofValue v := do + let dryRun ← v.opt "DryRun" + let iops ← v.opt "Iops" + let multiAttachEnabled ← v.opt "MultiAttachEnabled" + let size ← v.opt "Size" + let throughput ← v.opt "Throughput" + let volumeId ← v.req "VolumeId" + let volumeType ← v.opt "VolumeType" + return { dryRun, iops, multiAttachEnabled, size, throughput, volumeId, volumeType } + +structure ModifyVpcAttributeRequest where + /-- Indicates whether the instances launched in the VPC get DNS hostnames. -/ + enableDnsHostnames : Option AttributeBooleanValue := none + /-- Indicates whether the DNS resolution is supported for the VPC. -/ + enableDnsSupport : Option AttributeBooleanValue := none + /-- Indicates whether Network Address Usage metrics are enabled for your VPC. -/ + enableNetworkAddressUsageMetrics : Option AttributeBooleanValue := none + /-- The ID of the VPC. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcAttributeRequest where + schema := .struct "ModifyVpcAttributeRequest" [({ name := "EnableDnsHostnames" }, (Shape.schema AttributeBooleanValue)), + ({ name := "EnableDnsSupport" }, (Shape.schema AttributeBooleanValue)), + ({ name := "EnableNetworkAddressUsageMetrics" }, (Shape.schema AttributeBooleanValue)), + ({ name := "VpcId", required := true, xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "EnableDnsHostnames" x.enableDnsHostnames, putOpt "EnableDnsSupport" x.enableDnsSupport, putOpt "EnableNetworkAddressUsageMetrics" x.enableNetworkAddressUsageMetrics, put "VpcId" x.vpcId] + ofValue v := do + let enableDnsHostnames ← v.opt "EnableDnsHostnames" + let enableDnsSupport ← v.opt "EnableDnsSupport" + let enableNetworkAddressUsageMetrics ← v.opt "EnableNetworkAddressUsageMetrics" + let vpcId ← v.req "VpcId" + return { enableDnsHostnames, enableDnsSupport, enableNetworkAddressUsageMetrics, vpcId } + +structure ModifyVpcBlockPublicAccessExclusionRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of an exclusion. -/ + exclusionId : String + /-- The exclusion mode for internet gateway traffic. -/ + internetGatewayExclusionMode : InternetGatewayExclusionMode +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcBlockPublicAccessExclusionRequest where + schema := .struct "ModifyVpcBlockPublicAccessExclusionRequest" [({ name := "DryRun" }, .bool), + ({ name := "ExclusionId", required := true }, .string), + ({ name := "InternetGatewayExclusionMode", required := true }, (Shape.schema InternetGatewayExclusionMode))] + toValue x := record [putOpt "DryRun" x.dryRun, put "ExclusionId" x.exclusionId, put "InternetGatewayExclusionMode" x.internetGatewayExclusionMode] + ofValue v := do + let dryRun ← v.opt "DryRun" + let exclusionId ← v.req "ExclusionId" + let internetGatewayExclusionMode ← v.req "InternetGatewayExclusionMode" + return { dryRun, exclusionId, internetGatewayExclusionMode } + +structure ModifyVpcBlockPublicAccessOptionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The mode of VPC BPA. -/ + internetGatewayBlockMode : InternetGatewayBlockMode +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcBlockPublicAccessOptionsRequest where + schema := .struct "ModifyVpcBlockPublicAccessOptionsRequest" [({ name := "DryRun" }, .bool), + ({ name := "InternetGatewayBlockMode", required := true }, (Shape.schema InternetGatewayBlockMode))] + toValue x := record [putOpt "DryRun" x.dryRun, put "InternetGatewayBlockMode" x.internetGatewayBlockMode] + ofValue v := do + let dryRun ← v.opt "DryRun" + let internetGatewayBlockMode ← v.req "InternetGatewayBlockMode" + return { dryRun, internetGatewayBlockMode } + +structure ModifyVpcEncryptionControlRequest where + /-- Specifies whether to exclude Amazon API Gateway V2 traffic from encryption enforcement. -/ + apiGatewayV2Exclusion : Option VpcEncryptionControlExclusionStateInput := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Specifies whether to exclude egress-only internet gateway traffic from encryption enforcement. -/ + egressOnlyInternetGatewayExclusion : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude Elastic File System traffic from encryption enforcement. -/ + elasticFileSystemExclusion : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude Amazon Web Services Global Accelerator traffic from encryption enforcement. -/ + globalAcceleratorExclusion : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude internet gateway traffic from encryption enforcement. -/ + internetGatewayExclusion : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude Lambda function traffic from encryption enforcement. -/ + lambdaExclusion : Option VpcEncryptionControlExclusionStateInput := none + /-- The encryption mode for the VPC Encryption Control configuration. -/ + mode : Option VpcEncryptionControlMode := none + /-- Specifies whether to exclude NAT gateway traffic from encryption enforcement. -/ + natGatewayExclusion : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude virtual private gateway traffic from encryption enforcement. -/ + virtualPrivateGatewayExclusion : Option VpcEncryptionControlExclusionStateInput := none + /-- The ID of the VPC Encryption Control resource to modify. -/ + vpcEncryptionControlId : String + /-- Specifies whether to exclude VPC Lattice traffic from encryption enforcement. -/ + vpcLatticeExclusion : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude VPC peering connection traffic from encryption enforcement. -/ + vpcPeeringExclusion : Option VpcEncryptionControlExclusionStateInput := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcEncryptionControlRequest where + schema := .struct "ModifyVpcEncryptionControlRequest" [({ name := "ApiGatewayV2Exclusion" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "DryRun" }, .bool), + ({ name := "EgressOnlyInternetGatewayExclusion" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "ElasticFileSystemExclusion" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "GlobalAcceleratorExclusion" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "InternetGatewayExclusion" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "LambdaExclusion" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "Mode" }, (Shape.schema VpcEncryptionControlMode)), + ({ name := "NatGatewayExclusion" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "VirtualPrivateGatewayExclusion" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "VpcEncryptionControlId", required := true }, .string), + ({ name := "VpcLatticeExclusion" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "VpcPeeringExclusion" }, (Shape.schema VpcEncryptionControlExclusionStateInput))] + toValue x := record [putOpt "ApiGatewayV2Exclusion" x.apiGatewayV2Exclusion, putOpt "DryRun" x.dryRun, putOpt "EgressOnlyInternetGatewayExclusion" x.egressOnlyInternetGatewayExclusion, putOpt "ElasticFileSystemExclusion" x.elasticFileSystemExclusion, putOpt "GlobalAcceleratorExclusion" x.globalAcceleratorExclusion, putOpt "InternetGatewayExclusion" x.internetGatewayExclusion, putOpt "LambdaExclusion" x.lambdaExclusion, putOpt "Mode" x.mode, putOpt "NatGatewayExclusion" x.natGatewayExclusion, putOpt "VirtualPrivateGatewayExclusion" x.virtualPrivateGatewayExclusion, put "VpcEncryptionControlId" x.vpcEncryptionControlId, putOpt "VpcLatticeExclusion" x.vpcLatticeExclusion, putOpt "VpcPeeringExclusion" x.vpcPeeringExclusion] + ofValue v := do + let apiGatewayV2Exclusion ← v.opt "ApiGatewayV2Exclusion" + let dryRun ← v.opt "DryRun" + let egressOnlyInternetGatewayExclusion ← v.opt "EgressOnlyInternetGatewayExclusion" + let elasticFileSystemExclusion ← v.opt "ElasticFileSystemExclusion" + let globalAcceleratorExclusion ← v.opt "GlobalAcceleratorExclusion" + let internetGatewayExclusion ← v.opt "InternetGatewayExclusion" + let lambdaExclusion ← v.opt "LambdaExclusion" + let mode ← v.opt "Mode" + let natGatewayExclusion ← v.opt "NatGatewayExclusion" + let virtualPrivateGatewayExclusion ← v.opt "VirtualPrivateGatewayExclusion" + let vpcEncryptionControlId ← v.req "VpcEncryptionControlId" + let vpcLatticeExclusion ← v.opt "VpcLatticeExclusion" + let vpcPeeringExclusion ← v.opt "VpcPeeringExclusion" + return { apiGatewayV2Exclusion, dryRun, egressOnlyInternetGatewayExclusion, elasticFileSystemExclusion, globalAcceleratorExclusion, internetGatewayExclusion, lambdaExclusion, mode, natGatewayExclusion, virtualPrivateGatewayExclusion, vpcEncryptionControlId, vpcLatticeExclusion, vpcPeeringExclusion } + +structure ModifyVpcEndpointPayerResponsibilityRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The Amazon Web Services account to which the usage of VPC endpoint is charged. -/ + payerResponsibility : PayerResponsibilityType + /-- The scope of usage/charges for which the billing account is being modified. -/ + scope : PayerResponsibilityScope + /-- The ID of the VPC endpoint service. -/ + serviceId : Option String := none + /-- The ID of the VPC endpoint. -/ + vpcEndpointId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcEndpointPayerResponsibilityRequest where + schema := .struct "ModifyVpcEndpointPayerResponsibilityRequest" [({ name := "DryRun" }, .bool), + ({ name := "PayerResponsibility", required := true }, (Shape.schema PayerResponsibilityType)), + ({ name := "Scope", required := true }, (Shape.schema PayerResponsibilityScope)), + ({ name := "ServiceId" }, .string), + ({ name := "VpcEndpointId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "PayerResponsibility" x.payerResponsibility, put "Scope" x.scope, putOpt "ServiceId" x.serviceId, put "VpcEndpointId" x.vpcEndpointId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let payerResponsibility ← v.req "PayerResponsibility" + let scope ← v.req "Scope" + let serviceId ← v.opt "ServiceId" + let vpcEndpointId ← v.req "VpcEndpointId" + return { dryRun, payerResponsibility, scope, serviceId, vpcEndpointId } + +structure ModifyVpcEndpointServicePayerResponsibilityRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The entity that is responsible for the endpoint costs. -/ + payerResponsibility : PayerResponsibility + /-- The ID of the service. -/ + serviceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcEndpointServicePayerResponsibilityRequest where + schema := .struct "ModifyVpcEndpointServicePayerResponsibilityRequest" [({ name := "DryRun" }, .bool), + ({ name := "PayerResponsibility", required := true }, (Shape.schema PayerResponsibility)), + ({ name := "ServiceId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "PayerResponsibility" x.payerResponsibility, put "ServiceId" x.serviceId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let payerResponsibility ← v.req "PayerResponsibility" + let serviceId ← v.req "ServiceId" + return { dryRun, payerResponsibility, serviceId } + +structure ModifyVpcEndpointServicePermissionsRequest where + /-- The Amazon Resource Names (ARN) of the principals. -/ + addAllowedPrincipals : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The type of permission to add or remove. -/ + permissionType : Option PermissionType := none + /-- The Amazon Resource Names (ARN) of the principals. -/ + removeAllowedPrincipals : Option (List String) := none + /-- The ID of the service. -/ + serviceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcEndpointServicePermissionsRequest where + schema := .struct "ModifyVpcEndpointServicePermissionsRequest" [({ name := "AddAllowedPrincipals" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "PermissionType" }, (Shape.schema PermissionType)), + ({ name := "RemoveAllowedPrincipals" }, (.list .string "item")), + ({ name := "ServiceId", required := true }, .string)] + toValue x := record [putOpt "AddAllowedPrincipals" x.addAllowedPrincipals, putOpt "DryRun" x.dryRun, putOpt "PermissionType" x.permissionType, putOpt "RemoveAllowedPrincipals" x.removeAllowedPrincipals, put "ServiceId" x.serviceId] + ofValue v := do + let addAllowedPrincipals ← v.opt "AddAllowedPrincipals" + let dryRun ← v.opt "DryRun" + let permissionType ← v.opt "PermissionType" + let removeAllowedPrincipals ← v.opt "RemoveAllowedPrincipals" + let serviceId ← v.req "ServiceId" + return { addAllowedPrincipals, dryRun, permissionType, removeAllowedPrincipals, serviceId } + +structure ModifyVpcTenancyRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The instance tenancy attribute for the VPC. -/ + instanceTenancy : VpcTenancy + /-- The ID of the VPC. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcTenancyRequest where + schema := .struct "ModifyVpcTenancyRequest" [({ name := "DryRun" }, .bool), + ({ name := "InstanceTenancy", required := true }, (Shape.schema VpcTenancy)), + ({ name := "VpcId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceTenancy" x.instanceTenancy, put "VpcId" x.vpcId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceTenancy ← v.req "InstanceTenancy" + let vpcId ← v.req "VpcId" + return { dryRun, instanceTenancy, vpcId } + +structure ModifyVpnConnectionOptionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. -/ + localIpv4NetworkCidr : Option String := none + /-- The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. -/ + localIpv6NetworkCidr : Option String := none + /-- The IPv4 CIDR on the Amazon Web Services side of the VPN connection. -/ + remoteIpv4NetworkCidr : Option String := none + /-- The IPv6 CIDR on the Amazon Web Services side of the VPN connection. -/ + remoteIpv6NetworkCidr : Option String := none + /-- The desired bandwidth specification for the VPN connection. -/ + tunnelBandwidth : Option VpnTunnelBandwidth := none + /-- The ID of the Site-to-Site VPN connection. -/ + vpnConnectionId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpnConnectionOptionsRequest where + schema := .struct "ModifyVpnConnectionOptionsRequest" [({ name := "DryRun" }, .bool), + ({ name := "LocalIpv4NetworkCidr" }, .string), + ({ name := "LocalIpv6NetworkCidr" }, .string), + ({ name := "RemoteIpv4NetworkCidr" }, .string), + ({ name := "RemoteIpv6NetworkCidr" }, .string), + ({ name := "TunnelBandwidth" }, (Shape.schema VpnTunnelBandwidth)), + ({ name := "VpnConnectionId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "LocalIpv4NetworkCidr" x.localIpv4NetworkCidr, putOpt "LocalIpv6NetworkCidr" x.localIpv6NetworkCidr, putOpt "RemoteIpv4NetworkCidr" x.remoteIpv4NetworkCidr, putOpt "RemoteIpv6NetworkCidr" x.remoteIpv6NetworkCidr, putOpt "TunnelBandwidth" x.tunnelBandwidth, put "VpnConnectionId" x.vpnConnectionId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let localIpv4NetworkCidr ← v.opt "LocalIpv4NetworkCidr" + let localIpv6NetworkCidr ← v.opt "LocalIpv6NetworkCidr" + let remoteIpv4NetworkCidr ← v.opt "RemoteIpv4NetworkCidr" + let remoteIpv6NetworkCidr ← v.opt "RemoteIpv6NetworkCidr" + let tunnelBandwidth ← v.opt "TunnelBandwidth" + let vpnConnectionId ← v.req "VpnConnectionId" + return { dryRun, localIpv4NetworkCidr, localIpv6NetworkCidr, remoteIpv4NetworkCidr, remoteIpv6NetworkCidr, tunnelBandwidth, vpnConnectionId } + +/-- Describes the monitoring of an instance. -/ +structure Monitoring where + /-- The IDs of the metric categories that are associated with the instance. -/ + metricCategoryIds : Option (List String) := none + /-- Indicates whether detailed monitoring is enabled. -/ + state : Option MonitoringState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Monitoring where + schema := .struct "Monitoring" [({ name := "MetricCategoryIds", xmlName := some "metricCategoryIdSet", queryName := some "MetricCategoryIdSet" }, (.list .string "item")), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema MonitoringState))] + toValue x := record [putOpt "MetricCategoryIds" x.metricCategoryIds, putOpt "State" x.state] + ofValue v := do + let metricCategoryIds ← v.opt "MetricCategoryIds" + let state ← v.opt "State" + return { metricCategoryIds, state } + +structure MoveAddressToVpcResult where + /-- The allocation ID for the Elastic IP address. -/ + allocationId : Option String := none + /-- The status of the move of the IP address. -/ + status : Option Status := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MoveAddressToVpcResult where + schema := .struct "MoveAddressToVpcResult" [({ name := "AllocationId", xmlName := some "allocationId", queryName := some "AllocationId" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema Status))] + toValue x := record [putOpt "AllocationId" x.allocationId, putOpt "Status" x.status] + ofValue v := do + let allocationId ← v.opt "AllocationId" + let status ← v.opt "Status" + return { allocationId, status } + +/-- This action is deprecated. -/ +structure MovingAddressStatus where + /-- The status of the Elastic IP address that's being moved or restored. -/ + moveStatus : Option MoveStatus := none + /-- The Elastic IP address. -/ + publicIp : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MovingAddressStatus where + schema := .struct "MovingAddressStatus" [({ name := "MoveStatus", xmlName := some "moveStatus", queryName := some "MoveStatus" }, (Shape.schema MoveStatus)), + ({ name := "PublicIp", xmlName := some "publicIp", queryName := some "PublicIp" }, .string)] + toValue x := record [putOpt "MoveStatus" x.moveStatus, putOpt "PublicIp" x.publicIp] + ofValue v := do + let moveStatus ← v.opt "MoveStatus" + let publicIp ← v.opt "PublicIp" + return { moveStatus, publicIp } + +/-- Describes the IP addresses and network interface associated with a NAT gateway. -/ +structure NatGatewayAddress where + /-- [Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway. -/ + allocationId : Option String := none + /-- [Public NAT gateway only] The association ID of the Elastic IP address that's associated with the NAT gateway. -/ + associationId : Option String := none + /-- The Availability Zone where this Elastic IP address (EIP) is being used to handle outbound NAT traffic. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone where this Elastic IP address (EIP) is being used to handle outbound NAT traffic. -/ + availabilityZoneId : Option String := none + /-- The address failure message. -/ + failureMessage : Option String := none + /-- Defines if the IP address is the primary address. -/ + isPrimary : Option Bool := none + /-- The ID of the network interface associated with the NAT gateway. -/ + networkInterfaceId : Option String := none + /-- The private IP address associated with the NAT gateway. -/ + privateIp : Option String := none + /-- [Public NAT gateway only] The Elastic IP address associated with the NAT gateway. -/ + publicIp : Option String := none + /-- The address status. -/ + status : Option NatGatewayAddressStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NatGatewayAddress where + schema := .struct "NatGatewayAddress" [({ name := "AllocationId", xmlName := some "allocationId", queryName := some "AllocationId" }, .string), + ({ name := "AssociationId", xmlName := some "associationId", queryName := some "AssociationId" }, .string), + ({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "FailureMessage", xmlName := some "failureMessage", queryName := some "FailureMessage" }, .string), + ({ name := "IsPrimary", xmlName := some "isPrimary", queryName := some "IsPrimary" }, .bool), + ({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "PrivateIp", xmlName := some "privateIp", queryName := some "PrivateIp" }, .string), + ({ name := "PublicIp", xmlName := some "publicIp", queryName := some "PublicIp" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema NatGatewayAddressStatus))] + toValue x := record [putOpt "AllocationId" x.allocationId, putOpt "AssociationId" x.associationId, putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "FailureMessage" x.failureMessage, putOpt "IsPrimary" x.isPrimary, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "PrivateIp" x.privateIp, putOpt "PublicIp" x.publicIp, putOpt "Status" x.status] + ofValue v := do + let allocationId ← v.opt "AllocationId" + let associationId ← v.opt "AssociationId" + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let failureMessage ← v.opt "FailureMessage" + let isPrimary ← v.opt "IsPrimary" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let privateIp ← v.opt "PrivateIp" + let publicIp ← v.opt "PublicIp" + let status ← v.opt "Status" + return { allocationId, associationId, availabilityZone, availabilityZoneId, failureMessage, isPrimary, networkInterfaceId, privateIp, publicIp, status } + +/-- Information about an appliance attached to a NAT Gateway, providing managed security solutions for traffic filtering and inspection. -/ +structure NatGatewayAttachedAppliance where + /-- The Amazon Resource Name (ARN) of the attached appliance, identifying the specific proxy or security appliance resource. -/ + applianceArn : Option String := none + /-- The current attachment state of the appliance. -/ + attachmentState : Option NatGatewayApplianceState := none + /-- The failure code if the appliance attachment or modification operation failed. -/ + failureCode : Option String := none + /-- A descriptive message explaining the failure if the appliance attachment or modification operation failed. -/ + failureMessage : Option String := none + /-- The current modification state of the appliance. -/ + modificationState : Option NatGatewayApplianceModifyState := none + /-- The type of appliance attached to the NAT Gateway. -/ + type : Option NatGatewayApplianceType := none + /-- The VPC endpoint ID used to route traffic from application VPCs to the proxy for inspection and filtering. -/ + vpcEndpointId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NatGatewayAttachedAppliance where + schema := .struct "NatGatewayAttachedAppliance" [({ name := "ApplianceArn", xmlName := some "applianceArn", queryName := some "ApplianceArn" }, .string), + ({ name := "AttachmentState", xmlName := some "attachmentState", queryName := some "AttachmentState" }, (Shape.schema NatGatewayApplianceState)), + ({ name := "FailureCode", xmlName := some "failureCode", queryName := some "FailureCode" }, .string), + ({ name := "FailureMessage", xmlName := some "failureMessage", queryName := some "FailureMessage" }, .string), + ({ name := "ModificationState", xmlName := some "modificationState", queryName := some "ModificationState" }, (Shape.schema NatGatewayApplianceModifyState)), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, (Shape.schema NatGatewayApplianceType)), + ({ name := "VpcEndpointId", xmlName := some "vpcEndpointId", queryName := some "VpcEndpointId" }, .string)] + toValue x := record [putOpt "ApplianceArn" x.applianceArn, putOpt "AttachmentState" x.attachmentState, putOpt "FailureCode" x.failureCode, putOpt "FailureMessage" x.failureMessage, putOpt "ModificationState" x.modificationState, putOpt "Type" x.type, putOpt "VpcEndpointId" x.vpcEndpointId] + ofValue v := do + let applianceArn ← v.opt "ApplianceArn" + let attachmentState ← v.opt "AttachmentState" + let failureCode ← v.opt "FailureCode" + let failureMessage ← v.opt "FailureMessage" + let modificationState ← v.opt "ModificationState" + let type ← v.opt "Type" + let vpcEndpointId ← v.opt "VpcEndpointId" + return { applianceArn, attachmentState, failureCode, failureMessage, modificationState, type, vpcEndpointId } + +/-- Describes an entry in a network ACL. -/ +structure NetworkAclEntry where + /-- The IPv4 network range to allow or deny, in CIDR notation. -/ + cidrBlock : Option String := none + /-- Indicates whether the rule is an egress rule (applied to traffic leaving the subnet). -/ + egress : Option Bool := none + /-- ICMP protocol: The ICMP type and code. -/ + icmpTypeCode : Option IcmpTypeCode := none + /-- The IPv6 network range to allow or deny, in CIDR notation. -/ + ipv6CidrBlock : Option String := none + /-- TCP or UDP protocols: The range of ports the rule applies to. -/ + portRange : Option PortRange := none + /-- The protocol number. -/ + protocol : Option String := none + /-- Indicates whether to allow or deny the traffic that matches the rule. -/ + ruleAction : Option RuleAction := none + /-- The rule number for the entry. -/ + ruleNumber : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkAclEntry where + schema := .struct "NetworkAclEntry" [({ name := "CidrBlock", xmlName := some "cidrBlock", queryName := some "CidrBlock" }, .string), + ({ name := "Egress", xmlName := some "egress", queryName := some "Egress" }, .bool), + ({ name := "IcmpTypeCode", xmlName := some "icmpTypeCode", queryName := some "IcmpTypeCode" }, (Shape.schema IcmpTypeCode)), + ({ name := "Ipv6CidrBlock", xmlName := some "ipv6CidrBlock", queryName := some "Ipv6CidrBlock" }, .string), + ({ name := "PortRange", xmlName := some "portRange", queryName := some "PortRange" }, (Shape.schema PortRange)), + ({ name := "Protocol", xmlName := some "protocol", queryName := some "Protocol" }, .string), + ({ name := "RuleAction", xmlName := some "ruleAction", queryName := some "RuleAction" }, (Shape.schema RuleAction)), + ({ name := "RuleNumber", xmlName := some "ruleNumber", queryName := some "RuleNumber" }, .int)] + toValue x := record [putOpt "CidrBlock" x.cidrBlock, putOpt "Egress" x.egress, putOpt "IcmpTypeCode" x.icmpTypeCode, putOpt "Ipv6CidrBlock" x.ipv6CidrBlock, putOpt "PortRange" x.portRange, putOpt "Protocol" x.protocol, putOpt "RuleAction" x.ruleAction, putOpt "RuleNumber" x.ruleNumber] + ofValue v := do + let cidrBlock ← v.opt "CidrBlock" + let egress ← v.opt "Egress" + let icmpTypeCode ← v.opt "IcmpTypeCode" + let ipv6CidrBlock ← v.opt "Ipv6CidrBlock" + let portRange ← v.opt "PortRange" + let protocol ← v.opt "Protocol" + let ruleAction ← v.opt "RuleAction" + let ruleNumber ← v.opt "RuleNumber" + return { cidrBlock, egress, icmpTypeCode, ipv6CidrBlock, portRange, protocol, ruleAction, ruleNumber } + +/-- Describes the network card support of the instance type. -/ +structure NetworkCardInfo where + /-- The number of additional network interfaces that can be attached to an instance when using flexible Elastic Network Adapter (ENA) queues. -/ + additionalFlexibleNetworkInterfaces : Option Int := none + /-- The baseline network performance of the network card, in Gbps. -/ + baselineBandwidthInGbps : Option JsonNumber := none + /-- The default number of the ENA queues for each interface. -/ + defaultEnaQueueCountPerInterface : Option Int := none + /-- The supported interface types for the network card. -/ + interfaceTypes : Option (List NetworkCardInterfaceType) := none + /-- The maximum number of the ENA queues. -/ + maximumEnaQueueCount : Option Int := none + /-- The maximum number of the ENA queues for each interface. -/ + maximumEnaQueueCountPerInterface : Option Int := none + /-- The maximum number of network interfaces for the network card. -/ + maximumNetworkInterfaces : Option Int := none + /-- The index of the network card. -/ + networkCardIndex : Option Int := none + /-- The network performance of the network card. -/ + networkPerformance : Option String := none + /-- The peak (burst) network performance of the network card, in Gbps. -/ + peakBandwidthInGbps : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkCardInfo where + schema := .struct "NetworkCardInfo" [({ name := "AdditionalFlexibleNetworkInterfaces", xmlName := some "additionalFlexibleNetworkInterfaces", queryName := some "AdditionalFlexibleNetworkInterfaces" }, .int), + ({ name := "BaselineBandwidthInGbps", xmlName := some "baselineBandwidthInGbps", queryName := some "BaselineBandwidthInGbps" }, .number), + ({ name := "DefaultEnaQueueCountPerInterface", xmlName := some "defaultEnaQueueCountPerInterface", queryName := some "DefaultEnaQueueCountPerInterface" }, .int), + ({ name := "InterfaceTypes", xmlName := some "interfaceTypeSet", queryName := some "InterfaceTypeSet" }, (.list (Shape.schema NetworkCardInterfaceType) "item")), + ({ name := "MaximumEnaQueueCount", xmlName := some "maximumEnaQueueCount", queryName := some "MaximumEnaQueueCount" }, .int), + ({ name := "MaximumEnaQueueCountPerInterface", xmlName := some "maximumEnaQueueCountPerInterface", queryName := some "MaximumEnaQueueCountPerInterface" }, .int), + ({ name := "MaximumNetworkInterfaces", xmlName := some "maximumNetworkInterfaces", queryName := some "MaximumNetworkInterfaces" }, .int), + ({ name := "NetworkCardIndex", xmlName := some "networkCardIndex", queryName := some "NetworkCardIndex" }, .int), + ({ name := "NetworkPerformance", xmlName := some "networkPerformance", queryName := some "NetworkPerformance" }, .string), + ({ name := "PeakBandwidthInGbps", xmlName := some "peakBandwidthInGbps", queryName := some "PeakBandwidthInGbps" }, .number)] + toValue x := record [putOpt "AdditionalFlexibleNetworkInterfaces" x.additionalFlexibleNetworkInterfaces, putOpt "BaselineBandwidthInGbps" x.baselineBandwidthInGbps, putOpt "DefaultEnaQueueCountPerInterface" x.defaultEnaQueueCountPerInterface, putOpt "InterfaceTypes" x.interfaceTypes, putOpt "MaximumEnaQueueCount" x.maximumEnaQueueCount, putOpt "MaximumEnaQueueCountPerInterface" x.maximumEnaQueueCountPerInterface, putOpt "MaximumNetworkInterfaces" x.maximumNetworkInterfaces, putOpt "NetworkCardIndex" x.networkCardIndex, putOpt "NetworkPerformance" x.networkPerformance, putOpt "PeakBandwidthInGbps" x.peakBandwidthInGbps] + ofValue v := do + let additionalFlexibleNetworkInterfaces ← v.opt "AdditionalFlexibleNetworkInterfaces" + let baselineBandwidthInGbps ← v.opt "BaselineBandwidthInGbps" + let defaultEnaQueueCountPerInterface ← v.opt "DefaultEnaQueueCountPerInterface" + let interfaceTypes ← v.opt "InterfaceTypes" + let maximumEnaQueueCount ← v.opt "MaximumEnaQueueCount" + let maximumEnaQueueCountPerInterface ← v.opt "MaximumEnaQueueCountPerInterface" + let maximumNetworkInterfaces ← v.opt "MaximumNetworkInterfaces" + let networkCardIndex ← v.opt "NetworkCardIndex" + let networkPerformance ← v.opt "NetworkPerformance" + let peakBandwidthInGbps ← v.opt "PeakBandwidthInGbps" + return { additionalFlexibleNetworkInterfaces, baselineBandwidthInGbps, defaultEnaQueueCountPerInterface, interfaceTypes, maximumEnaQueueCount, maximumEnaQueueCountPerInterface, maximumNetworkInterfaces, networkCardIndex, networkPerformance, peakBandwidthInGbps } + +/-- Describes a Network Access Scope. -/ +structure NetworkInsightsAccessScope where + /-- The creation date. -/ + createdDate : Option Timestamp := none + /-- The Amazon Resource Name (ARN) of the Network Access Scope. -/ + networkInsightsAccessScopeArn : Option String := none + /-- The ID of the Network Access Scope. -/ + networkInsightsAccessScopeId : Option String := none + /-- The tags. -/ + tags : Option (List Tag) := none + /-- The last updated date. -/ + updatedDate : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkInsightsAccessScope where + schema := .struct "NetworkInsightsAccessScope" [({ name := "CreatedDate", xmlName := some "createdDate", queryName := some "CreatedDate" }, (.time none)), + ({ name := "NetworkInsightsAccessScopeArn", xmlName := some "networkInsightsAccessScopeArn", queryName := some "NetworkInsightsAccessScopeArn" }, .string), + ({ name := "NetworkInsightsAccessScopeId", xmlName := some "networkInsightsAccessScopeId", queryName := some "NetworkInsightsAccessScopeId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "UpdatedDate", xmlName := some "updatedDate", queryName := some "UpdatedDate" }, (.time none))] + toValue x := record [putOpt "CreatedDate" x.createdDate, putOpt "NetworkInsightsAccessScopeArn" x.networkInsightsAccessScopeArn, putOpt "NetworkInsightsAccessScopeId" x.networkInsightsAccessScopeId, putOpt "Tags" x.tags, putOpt "UpdatedDate" x.updatedDate] + ofValue v := do + let createdDate ← v.opt "CreatedDate" + let networkInsightsAccessScopeArn ← v.opt "NetworkInsightsAccessScopeArn" + let networkInsightsAccessScopeId ← v.opt "NetworkInsightsAccessScopeId" + let tags ← v.opt "Tags" + let updatedDate ← v.opt "UpdatedDate" + return { createdDate, networkInsightsAccessScopeArn, networkInsightsAccessScopeId, tags, updatedDate } + +/-- Describes a Network Access Scope analysis. -/ +structure NetworkInsightsAccessScopeAnalysis where + /-- The number of network interfaces analyzed. -/ + analyzedEniCount : Option Int := none + /-- The analysis end date. -/ + endDate : Option Timestamp := none + /-- Indicates whether there are findings. -/ + findingsFound : Option FindingsFound := none + /-- The Amazon Resource Name (ARN) of the Network Access Scope analysis. -/ + networkInsightsAccessScopeAnalysisArn : Option String := none + /-- The ID of the Network Access Scope analysis. -/ + networkInsightsAccessScopeAnalysisId : Option String := none + /-- The ID of the Network Access Scope. -/ + networkInsightsAccessScopeId : Option String := none + /-- The analysis start date. -/ + startDate : Option Timestamp := none + /-- The status. -/ + status : Option AnalysisStatus := none + /-- The status message. -/ + statusMessage : Option String := none + /-- The tags. -/ + tags : Option (List Tag) := none + /-- The warning message. -/ + warningMessage : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkInsightsAccessScopeAnalysis where + schema := .struct "NetworkInsightsAccessScopeAnalysis" [({ name := "AnalyzedEniCount", xmlName := some "analyzedEniCount", queryName := some "AnalyzedEniCount" }, .int), + ({ name := "EndDate", xmlName := some "endDate", queryName := some "EndDate" }, (.time none)), + ({ name := "FindingsFound", xmlName := some "findingsFound", queryName := some "FindingsFound" }, (Shape.schema FindingsFound)), + ({ name := "NetworkInsightsAccessScopeAnalysisArn", xmlName := some "networkInsightsAccessScopeAnalysisArn", queryName := some "NetworkInsightsAccessScopeAnalysisArn" }, .string), + ({ name := "NetworkInsightsAccessScopeAnalysisId", xmlName := some "networkInsightsAccessScopeAnalysisId", queryName := some "NetworkInsightsAccessScopeAnalysisId" }, .string), + ({ name := "NetworkInsightsAccessScopeId", xmlName := some "networkInsightsAccessScopeId", queryName := some "NetworkInsightsAccessScopeId" }, .string), + ({ name := "StartDate", xmlName := some "startDate", queryName := some "StartDate" }, (.time none)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema AnalysisStatus)), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "WarningMessage", xmlName := some "warningMessage", queryName := some "WarningMessage" }, .string)] + toValue x := record [putOpt "AnalyzedEniCount" x.analyzedEniCount, putOpt "EndDate" x.endDate, putOpt "FindingsFound" x.findingsFound, putOpt "NetworkInsightsAccessScopeAnalysisArn" x.networkInsightsAccessScopeAnalysisArn, putOpt "NetworkInsightsAccessScopeAnalysisId" x.networkInsightsAccessScopeAnalysisId, putOpt "NetworkInsightsAccessScopeId" x.networkInsightsAccessScopeId, putOpt "StartDate" x.startDate, putOpt "Status" x.status, putOpt "StatusMessage" x.statusMessage, putOpt "Tags" x.tags, putOpt "WarningMessage" x.warningMessage] + ofValue v := do + let analyzedEniCount ← v.opt "AnalyzedEniCount" + let endDate ← v.opt "EndDate" + let findingsFound ← v.opt "FindingsFound" + let networkInsightsAccessScopeAnalysisArn ← v.opt "NetworkInsightsAccessScopeAnalysisArn" + let networkInsightsAccessScopeAnalysisId ← v.opt "NetworkInsightsAccessScopeAnalysisId" + let networkInsightsAccessScopeId ← v.opt "NetworkInsightsAccessScopeId" + let startDate ← v.opt "StartDate" + let status ← v.opt "Status" + let statusMessage ← v.opt "StatusMessage" + let tags ← v.opt "Tags" + let warningMessage ← v.opt "WarningMessage" + return { analyzedEniCount, endDate, findingsFound, networkInsightsAccessScopeAnalysisArn, networkInsightsAccessScopeAnalysisId, networkInsightsAccessScopeId, startDate, status, statusMessage, tags, warningMessage } + +/-- Describes the state of a network interface permission. -/ +structure NetworkInterfacePermissionState where + /-- The state of the permission. -/ + state : Option NetworkInterfacePermissionStateCode := none + /-- A status message, if applicable. -/ + statusMessage : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkInterfacePermissionState where + schema := .struct "NetworkInterfacePermissionState" [({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema NetworkInterfacePermissionStateCode)), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string)] + toValue x := record [putOpt "State" x.state, putOpt "StatusMessage" x.statusMessage] + ofValue v := do + let state ← v.opt "State" + let statusMessage ← v.opt "StatusMessage" + return { state, statusMessage } + +/-- Describes the private IPv4 address of a network interface. -/ +structure NetworkInterfacePrivateIpAddress where + /-- The association information for an Elastic IP address (IPv4) associated with the network interface. -/ + association : Option NetworkInterfaceAssociation := none + /-- Indicates whether this IPv4 address is the primary private IPv4 address of the network interface. -/ + primary : Option Bool := none + /-- The private DNS name. -/ + privateDnsName : Option String := none + /-- The private IPv4 address. -/ + privateIpAddress : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkInterfacePrivateIpAddress where + schema := .struct "NetworkInterfacePrivateIpAddress" [({ name := "Association", xmlName := some "association", queryName := some "Association" }, (Shape.schema NetworkInterfaceAssociation)), + ({ name := "Primary", xmlName := some "primary", queryName := some "Primary" }, .bool), + ({ name := "PrivateDnsName", xmlName := some "privateDnsName", queryName := some "PrivateDnsName" }, .string), + ({ name := "PrivateIpAddress", xmlName := some "privateIpAddress", queryName := some "PrivateIpAddress" }, .string)] + toValue x := record [putOpt "Association" x.association, putOpt "Primary" x.primary, putOpt "PrivateDnsName" x.privateDnsName, putOpt "PrivateIpAddress" x.privateIpAddress] + ofValue v := do + let association ← v.opt "Association" + let primary ← v.opt "Primary" + let privateDnsName ← v.opt "PrivateDnsName" + let privateIpAddress ← v.opt "PrivateIpAddress" + return { association, primary, privateDnsName, privateIpAddress } + +/-- Describes the neuron accelerators for the instance type. -/ +structure NeuronDeviceInfo where + /-- Describes the cores available to each neuron accelerator. -/ + coreInfo : Option NeuronDeviceCoreInfo := none + /-- The number of neuron accelerators for the instance type. -/ + count : Option Int := none + /-- Describes the memory available to each neuron accelerator. -/ + memoryInfo : Option NeuronDeviceMemoryInfo := none + /-- The name of the neuron accelerator. -/ + name : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NeuronDeviceInfo where + schema := .struct "NeuronDeviceInfo" [({ name := "CoreInfo", xmlName := some "coreInfo", queryName := some "CoreInfo" }, (Shape.schema NeuronDeviceCoreInfo)), + ({ name := "Count", xmlName := some "count", queryName := some "Count" }, .int), + ({ name := "MemoryInfo", xmlName := some "memoryInfo", queryName := some "MemoryInfo" }, (Shape.schema NeuronDeviceMemoryInfo)), + ({ name := "Name", xmlName := some "name", queryName := some "Name" }, .string)] + toValue x := record [putOpt "CoreInfo" x.coreInfo, putOpt "Count" x.count, putOpt "MemoryInfo" x.memoryInfo, putOpt "Name" x.name] + ofValue v := do + let coreInfo ← v.opt "CoreInfo" + let count ← v.opt "Count" + let memoryInfo ← v.opt "MemoryInfo" + let name ← v.opt "Name" + return { coreInfo, count, memoryInfo, name } + +/-- Describes an Outpost link aggregation group (LAG). -/ +structure OutpostLag where + /-- The IDs of the local gateway virtual interfaces associated with the Outpost LAG. -/ + localGatewayVirtualInterfaceIds : Option (List String) := none + /-- The Amazon Resource Number (ARN) of the Outpost LAG. -/ + outpostArn : Option String := none + /-- The ID of the Outpost LAG. -/ + outpostLagId : Option String := none + /-- The ID of the Outpost LAG owner. -/ + ownerId : Option String := none + /-- The service link virtual interface IDs associated with the Outpost LAG. -/ + serviceLinkVirtualInterfaceIds : Option (List String) := none + /-- The current state of the Outpost LAG. -/ + state : Option String := none + /-- The tags associated with the Outpost LAG. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape OutpostLag where + schema := .struct "OutpostLag" [({ name := "LocalGatewayVirtualInterfaceIds", xmlName := some "localGatewayVirtualInterfaceIdSet", queryName := some "LocalGatewayVirtualInterfaceIdSet" }, (.list .string "item")), + ({ name := "OutpostArn", xmlName := some "outpostArn", queryName := some "OutpostArn" }, .string), + ({ name := "OutpostLagId", xmlName := some "outpostLagId", queryName := some "OutpostLagId" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "ServiceLinkVirtualInterfaceIds", xmlName := some "serviceLinkVirtualInterfaceIdSet", queryName := some "ServiceLinkVirtualInterfaceIdSet" }, (.list .string "item")), + ({ name := "State", xmlName := some "state", queryName := some "State" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "LocalGatewayVirtualInterfaceIds" x.localGatewayVirtualInterfaceIds, putOpt "OutpostArn" x.outpostArn, putOpt "OutpostLagId" x.outpostLagId, putOpt "OwnerId" x.ownerId, putOpt "ServiceLinkVirtualInterfaceIds" x.serviceLinkVirtualInterfaceIds, putOpt "State" x.state, putOpt "Tags" x.tags] + ofValue v := do + let localGatewayVirtualInterfaceIds ← v.opt "LocalGatewayVirtualInterfaceIds" + let outpostArn ← v.opt "OutpostArn" + let outpostLagId ← v.opt "OutpostLagId" + let ownerId ← v.opt "OwnerId" + let serviceLinkVirtualInterfaceIds ← v.opt "ServiceLinkVirtualInterfaceIds" + let state ← v.opt "State" + let tags ← v.opt "Tags" + return { localGatewayVirtualInterfaceIds, outpostArn, outpostLagId, ownerId, serviceLinkVirtualInterfaceIds, state, tags } + +/-- Describes a packet header statement. -/ +structure PacketHeaderStatement where + /-- The destination addresses. -/ + destinationAddresses : Option (List String) := none + /-- The destination ports. -/ + destinationPorts : Option (List String) := none + /-- The destination prefix lists. -/ + destinationPrefixLists : Option (List String) := none + /-- The protocols. -/ + protocols : Option (List Protocol_) := none + /-- The source addresses. -/ + sourceAddresses : Option (List String) := none + /-- The source ports. -/ + sourcePorts : Option (List String) := none + /-- The source prefix lists. -/ + sourcePrefixLists : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PacketHeaderStatement where + schema := .struct "PacketHeaderStatement" [({ name := "DestinationAddresses", xmlName := some "destinationAddressSet", queryName := some "DestinationAddressSet" }, (.list .string "item")), + ({ name := "DestinationPorts", xmlName := some "destinationPortSet", queryName := some "DestinationPortSet" }, (.list .string "item")), + ({ name := "DestinationPrefixLists", xmlName := some "destinationPrefixListSet", queryName := some "DestinationPrefixListSet" }, (.list .string "item")), + ({ name := "Protocols", xmlName := some "protocolSet", queryName := some "ProtocolSet" }, (.list (Shape.schema Protocol_) "item")), + ({ name := "SourceAddresses", xmlName := some "sourceAddressSet", queryName := some "SourceAddressSet" }, (.list .string "item")), + ({ name := "SourcePorts", xmlName := some "sourcePortSet", queryName := some "SourcePortSet" }, (.list .string "item")), + ({ name := "SourcePrefixLists", xmlName := some "sourcePrefixListSet", queryName := some "SourcePrefixListSet" }, (.list .string "item"))] + toValue x := record [putOpt "DestinationAddresses" x.destinationAddresses, putOpt "DestinationPorts" x.destinationPorts, putOpt "DestinationPrefixLists" x.destinationPrefixLists, putOpt "Protocols" x.protocols, putOpt "SourceAddresses" x.sourceAddresses, putOpt "SourcePorts" x.sourcePorts, putOpt "SourcePrefixLists" x.sourcePrefixLists] + ofValue v := do + let destinationAddresses ← v.opt "DestinationAddresses" + let destinationPorts ← v.opt "DestinationPorts" + let destinationPrefixLists ← v.opt "DestinationPrefixLists" + let protocols ← v.opt "Protocols" + let sourceAddresses ← v.opt "SourceAddresses" + let sourcePorts ← v.opt "SourcePorts" + let sourcePrefixLists ← v.opt "SourcePrefixLists" + return { destinationAddresses, destinationPorts, destinationPrefixLists, protocols, sourceAddresses, sourcePorts, sourcePrefixLists } + +/-- Describes a packet header statement. -/ +structure PacketHeaderStatementRequest where + /-- The destination addresses. -/ + destinationAddresses : Option (List String) := none + /-- The destination ports. -/ + destinationPorts : Option (List String) := none + /-- The destination prefix lists. -/ + destinationPrefixLists : Option (List String) := none + /-- The protocols. -/ + protocols : Option (List Protocol_) := none + /-- The source addresses. -/ + sourceAddresses : Option (List String) := none + /-- The source ports. -/ + sourcePorts : Option (List String) := none + /-- The source prefix lists. -/ + sourcePrefixLists : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PacketHeaderStatementRequest where + schema := .struct "PacketHeaderStatementRequest" [({ name := "DestinationAddresses", xmlName := some "DestinationAddress" }, (.list .string "item")), + ({ name := "DestinationPorts", xmlName := some "DestinationPort" }, (.list .string "item")), + ({ name := "DestinationPrefixLists", xmlName := some "DestinationPrefixList" }, (.list .string "item")), + ({ name := "Protocols", xmlName := some "Protocol" }, (.list (Shape.schema Protocol_) "item")), + ({ name := "SourceAddresses", xmlName := some "SourceAddress" }, (.list .string "item")), + ({ name := "SourcePorts", xmlName := some "SourcePort" }, (.list .string "item")), + ({ name := "SourcePrefixLists", xmlName := some "SourcePrefixList" }, (.list .string "item"))] + toValue x := record [putOpt "DestinationAddresses" x.destinationAddresses, putOpt "DestinationPorts" x.destinationPorts, putOpt "DestinationPrefixLists" x.destinationPrefixLists, putOpt "Protocols" x.protocols, putOpt "SourceAddresses" x.sourceAddresses, putOpt "SourcePorts" x.sourcePorts, putOpt "SourcePrefixLists" x.sourcePrefixLists] + ofValue v := do + let destinationAddresses ← v.opt "DestinationAddresses" + let destinationPorts ← v.opt "DestinationPorts" + let destinationPrefixLists ← v.opt "DestinationPrefixLists" + let protocols ← v.opt "Protocols" + let sourceAddresses ← v.opt "SourceAddresses" + let sourcePorts ← v.opt "SourcePorts" + let sourcePrefixLists ← v.opt "SourcePrefixLists" + return { destinationAddresses, destinationPorts, destinationPrefixLists, protocols, sourceAddresses, sourcePorts, sourcePrefixLists } + +/-- Describes a set of filters for a path analysis. -/ +structure PathFilter where + /-- The destination IPv4 address. -/ + destinationAddress : Option String := none + /-- The destination port range. -/ + destinationPortRange : Option FilterPortRange := none + /-- The source IPv4 address. -/ + sourceAddress : Option String := none + /-- The source port range. -/ + sourcePortRange : Option FilterPortRange := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PathFilter where + schema := .struct "PathFilter" [({ name := "DestinationAddress", xmlName := some "destinationAddress", queryName := some "DestinationAddress" }, .string), + ({ name := "DestinationPortRange", xmlName := some "destinationPortRange", queryName := some "DestinationPortRange" }, (Shape.schema FilterPortRange)), + ({ name := "SourceAddress", xmlName := some "sourceAddress", queryName := some "SourceAddress" }, .string), + ({ name := "SourcePortRange", xmlName := some "sourcePortRange", queryName := some "SourcePortRange" }, (Shape.schema FilterPortRange))] + toValue x := record [putOpt "DestinationAddress" x.destinationAddress, putOpt "DestinationPortRange" x.destinationPortRange, putOpt "SourceAddress" x.sourceAddress, putOpt "SourcePortRange" x.sourcePortRange] + ofValue v := do + let destinationAddress ← v.opt "DestinationAddress" + let destinationPortRange ← v.opt "DestinationPortRange" + let sourceAddress ← v.opt "SourceAddress" + let sourcePortRange ← v.opt "SourcePortRange" + return { destinationAddress, destinationPortRange, sourceAddress, sourcePortRange } + +/-- Describes a set of filters for a path analysis. -/ +structure PathRequestFilter where + /-- The destination IPv4 address. -/ + destinationAddress : Option String := none + /-- The destination port range. -/ + destinationPortRange : Option RequestFilterPortRange := none + /-- The source IPv4 address. -/ + sourceAddress : Option String := none + /-- The source port range. -/ + sourcePortRange : Option RequestFilterPortRange := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PathRequestFilter where + schema := .struct "PathRequestFilter" [({ name := "DestinationAddress" }, .string), + ({ name := "DestinationPortRange" }, (Shape.schema RequestFilterPortRange)), + ({ name := "SourceAddress" }, .string), + ({ name := "SourcePortRange" }, (Shape.schema RequestFilterPortRange))] + toValue x := record [putOpt "DestinationAddress" x.destinationAddress, putOpt "DestinationPortRange" x.destinationPortRange, putOpt "SourceAddress" x.sourceAddress, putOpt "SourcePortRange" x.sourcePortRange] + ofValue v := do + let destinationAddress ← v.opt "DestinationAddress" + let destinationPortRange ← v.opt "DestinationPortRange" + let sourceAddress ← v.opt "SourceAddress" + let sourcePortRange ← v.opt "SourcePortRange" + return { destinationAddress, destinationPortRange, sourceAddress, sourcePortRange } + +/-- Describes a payer responsibility setting for a VPC endpoint. -/ +structure PayerResponsibilityEntry where + /-- The Amazon Web Services account to which the usage is charged. -/ + payerResponsibilityType : Option PayerResponsibilityType := none + /-- The scope of usage/charges. -/ + scope : Option PayerResponsibilityScope := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PayerResponsibilityEntry where + schema := .struct "PayerResponsibilityEntry" [({ name := "PayerResponsibilityType", xmlName := some "payerResponsibilityType", queryName := some "PayerResponsibilityType" }, (Shape.schema PayerResponsibilityType)), + ({ name := "Scope", xmlName := some "scope", queryName := some "Scope" }, (Shape.schema PayerResponsibilityScope))] + toValue x := record [putOpt "PayerResponsibilityType" x.payerResponsibilityType, putOpt "Scope" x.scope] + ofValue v := do + let payerResponsibilityType ← v.opt "PayerResponsibilityType" + let scope ← v.opt "Scope" + return { payerResponsibilityType, scope } + +/-- Describes the VPC peering connection options. -/ +structure PeeringConnectionOptions where + /-- If true, the public DNS hostnames of instances in the specified VPC resolve to private IP addresses when queried from instances in the peer VPC. -/ + allowDnsResolutionFromRemoteVpc : Option Bool := none + /-- Deprecated. -/ + allowEgressFromLocalClassicLinkToRemoteVpc : Option Bool := none + /-- Deprecated. -/ + allowEgressFromLocalVpcToRemoteClassicLink : Option Bool := none + /-- Indicates whether this side of the VPC peering connection allows multipath resilience. -/ + allowMultipathResilience : Option Bool := none + /-- The multipath resilience mode for this side of the VPC peering connection. -/ + multipathResilienceMode : Option MultipathResilienceMode := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PeeringConnectionOptions where + schema := .struct "PeeringConnectionOptions" [({ name := "AllowDnsResolutionFromRemoteVpc", xmlName := some "allowDnsResolutionFromRemoteVpc", queryName := some "AllowDnsResolutionFromRemoteVpc" }, .bool), + ({ name := "AllowEgressFromLocalClassicLinkToRemoteVpc", xmlName := some "allowEgressFromLocalClassicLinkToRemoteVpc", queryName := some "AllowEgressFromLocalClassicLinkToRemoteVpc" }, .bool), + ({ name := "AllowEgressFromLocalVpcToRemoteClassicLink", xmlName := some "allowEgressFromLocalVpcToRemoteClassicLink", queryName := some "AllowEgressFromLocalVpcToRemoteClassicLink" }, .bool), + ({ name := "AllowMultipathResilience", xmlName := some "allowMultipathResilience", queryName := some "AllowMultipathResilience" }, .bool), + ({ name := "MultipathResilienceMode", xmlName := some "multipathResilienceMode", queryName := some "MultipathResilienceMode" }, (Shape.schema MultipathResilienceMode))] + toValue x := record [putOpt "AllowDnsResolutionFromRemoteVpc" x.allowDnsResolutionFromRemoteVpc, putOpt "AllowEgressFromLocalClassicLinkToRemoteVpc" x.allowEgressFromLocalClassicLinkToRemoteVpc, putOpt "AllowEgressFromLocalVpcToRemoteClassicLink" x.allowEgressFromLocalVpcToRemoteClassicLink, putOpt "AllowMultipathResilience" x.allowMultipathResilience, putOpt "MultipathResilienceMode" x.multipathResilienceMode] + ofValue v := do + let allowDnsResolutionFromRemoteVpc ← v.opt "AllowDnsResolutionFromRemoteVpc" + let allowEgressFromLocalClassicLinkToRemoteVpc ← v.opt "AllowEgressFromLocalClassicLinkToRemoteVpc" + let allowEgressFromLocalVpcToRemoteClassicLink ← v.opt "AllowEgressFromLocalVpcToRemoteClassicLink" + let allowMultipathResilience ← v.opt "AllowMultipathResilience" + let multipathResilienceMode ← v.opt "MultipathResilienceMode" + return { allowDnsResolutionFromRemoteVpc, allowEgressFromLocalClassicLinkToRemoteVpc, allowEgressFromLocalVpcToRemoteClassicLink, allowMultipathResilience, multipathResilienceMode } + +/-- The VPC peering connection options. -/ +structure PeeringConnectionOptionsRequest where + /-- If true, enables a local VPC to resolve public DNS hostnames to private IP addresses when queried from instances in the peer VPC. -/ + allowDnsResolutionFromRemoteVpc : Option Bool := none + /-- Deprecated. -/ + allowEgressFromLocalClassicLinkToRemoteVpc : Option Bool := none + /-- Deprecated. -/ + allowEgressFromLocalVpcToRemoteClassicLink : Option Bool := none + /-- Specifies whether you allow multipath resilience for this side of the VPC peering connection. -/ + allowMultipathResilience : Option Bool := none + /-- The multipath resilience mode. -/ + multipathResilienceMode : Option MultipathResilienceMode := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PeeringConnectionOptionsRequest where + schema := .struct "PeeringConnectionOptionsRequest" [({ name := "AllowDnsResolutionFromRemoteVpc" }, .bool), + ({ name := "AllowEgressFromLocalClassicLinkToRemoteVpc" }, .bool), + ({ name := "AllowEgressFromLocalVpcToRemoteClassicLink" }, .bool), + ({ name := "AllowMultipathResilience" }, .bool), + ({ name := "MultipathResilienceMode" }, (Shape.schema MultipathResilienceMode))] + toValue x := record [putOpt "AllowDnsResolutionFromRemoteVpc" x.allowDnsResolutionFromRemoteVpc, putOpt "AllowEgressFromLocalClassicLinkToRemoteVpc" x.allowEgressFromLocalClassicLinkToRemoteVpc, putOpt "AllowEgressFromLocalVpcToRemoteClassicLink" x.allowEgressFromLocalVpcToRemoteClassicLink, putOpt "AllowMultipathResilience" x.allowMultipathResilience, putOpt "MultipathResilienceMode" x.multipathResilienceMode] + ofValue v := do + let allowDnsResolutionFromRemoteVpc ← v.opt "AllowDnsResolutionFromRemoteVpc" + let allowEgressFromLocalClassicLinkToRemoteVpc ← v.opt "AllowEgressFromLocalClassicLinkToRemoteVpc" + let allowEgressFromLocalVpcToRemoteClassicLink ← v.opt "AllowEgressFromLocalVpcToRemoteClassicLink" + let allowMultipathResilience ← v.opt "AllowMultipathResilience" + let multipathResilienceMode ← v.opt "MultipathResilienceMode" + return { allowDnsResolutionFromRemoteVpc, allowEgressFromLocalClassicLinkToRemoteVpc, allowEgressFromLocalVpcToRemoteClassicLink, allowMultipathResilience, multipathResilienceMode } + +/-- Provides a summary of the performance status check results for an instance. -/ +structure PerformanceStatusSummary where + /-- The date and time when the performance status became impaired. -/ + impairedSince : Option Timestamp := none + /-- The recommended action to remediate the impaired instance, if one is available. -/ + remediation : Option String := none + /-- The current status. -/ + status : Option SummaryStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PerformanceStatusSummary where + schema := .struct "PerformanceStatusSummary" [({ name := "ImpairedSince", xmlName := some "impairedSince", queryName := some "ImpairedSince" }, (.time none)), + ({ name := "Remediation", xmlName := some "remediation", queryName := some "Remediation" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema SummaryStatus))] + toValue x := record [putOpt "ImpairedSince" x.impairedSince, putOpt "Remediation" x.remediation, putOpt "Status" x.status] + ofValue v := do + let impairedSince ← v.opt "ImpairedSince" + let remediation ← v.opt "Remediation" + let status ← v.opt "Status" + return { impairedSince, remediation, status } + +/-- Describes the placement of an instance. -/ +structure Placement where + /-- The affinity setting for the instance on the Dedicated Host. -/ + affinity : Option String := none + /-- The Availability Zone of the instance. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone of the instance. -/ + availabilityZoneId : Option String := none + /-- The ID of the placement group that the instance is in. -/ + groupId : Option String := none + /-- The name of the placement group that the instance is in. -/ + groupName : Option String := none + /-- The ID of the Dedicated Host on which the instance resides. -/ + hostId : Option String := none + /-- The ARN of the host resource group in which to launch the instances. -/ + hostResourceGroupArn : Option String := none + /-- The number of the partition that the instance is in. -/ + partitionNumber : Option Int := none + /-- Reserved for future use. -/ + spreadDomain : Option String := none + /-- The tenancy of the instance. -/ + tenancy : Option Tenancy := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Placement where + schema := .struct "Placement" [({ name := "Affinity", xmlName := some "affinity", queryName := some "Affinity" }, .string), + ({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "GroupId", xmlName := some "groupId", queryName := some "GroupId" }, .string), + ({ name := "GroupName", xmlName := some "groupName", queryName := some "GroupName" }, .string), + ({ name := "HostId", xmlName := some "hostId", queryName := some "HostId" }, .string), + ({ name := "HostResourceGroupArn", xmlName := some "hostResourceGroupArn", queryName := some "HostResourceGroupArn" }, .string), + ({ name := "PartitionNumber", xmlName := some "partitionNumber", queryName := some "PartitionNumber" }, .int), + ({ name := "SpreadDomain", xmlName := some "spreadDomain", queryName := some "SpreadDomain" }, .string), + ({ name := "Tenancy", xmlName := some "tenancy", queryName := some "Tenancy" }, (Shape.schema Tenancy))] + toValue x := record [putOpt "Affinity" x.affinity, putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "GroupId" x.groupId, putOpt "GroupName" x.groupName, putOpt "HostId" x.hostId, putOpt "HostResourceGroupArn" x.hostResourceGroupArn, putOpt "PartitionNumber" x.partitionNumber, putOpt "SpreadDomain" x.spreadDomain, putOpt "Tenancy" x.tenancy] + ofValue v := do + let affinity ← v.opt "Affinity" + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let groupId ← v.opt "GroupId" + let groupName ← v.opt "GroupName" + let hostId ← v.opt "HostId" + let hostResourceGroupArn ← v.opt "HostResourceGroupArn" + let partitionNumber ← v.opt "PartitionNumber" + let spreadDomain ← v.opt "SpreadDomain" + let tenancy ← v.opt "Tenancy" + return { affinity, availabilityZone, availabilityZoneId, groupId, groupName, hostId, hostResourceGroupArn, partitionNumber, spreadDomain, tenancy } + +/-- Describes a placement group. -/ +structure PlacementGroup where + /-- The Amazon Resource Name (ARN) of the placement group. -/ + groupArn : Option String := none + /-- The ID of the placement group. -/ + groupId : Option String := none + /-- The name of the placement group. -/ + groupName : Option String := none + /-- Reserved for future use. -/ + linkedGroupId : Option String := none + /-- The service provider that manages the Placement Group. -/ + operator : Option OperatorResponse := none + /-- The ID of the parent placement group. -/ + parentGroupId : Option String := none + /-- The number of partitions. -/ + partitionCount : Option Int := none + /-- The spread level for the placement group. -/ + spreadLevel : Option SpreadLevel := none + /-- The state of the placement group. -/ + state : Option PlacementGroupState := none + /-- The placement strategy. -/ + strategy : Option PlacementStrategy := none + /-- Any tags applied to the placement group. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PlacementGroup where + schema := .struct "PlacementGroup" [({ name := "GroupArn", xmlName := some "groupArn", queryName := some "GroupArn" }, .string), + ({ name := "GroupId", xmlName := some "groupId", queryName := some "GroupId" }, .string), + ({ name := "GroupName", xmlName := some "groupName", queryName := some "GroupName" }, .string), + ({ name := "LinkedGroupId", xmlName := some "linkedGroupId", queryName := some "LinkedGroupId" }, .string), + ({ name := "Operator", xmlName := some "operator", queryName := some "Operator" }, (Shape.schema OperatorResponse)), + ({ name := "ParentGroupId", xmlName := some "parentGroupId", queryName := some "ParentGroupId" }, .string), + ({ name := "PartitionCount", xmlName := some "partitionCount", queryName := some "PartitionCount" }, .int), + ({ name := "SpreadLevel", xmlName := some "spreadLevel", queryName := some "SpreadLevel" }, (Shape.schema SpreadLevel)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema PlacementGroupState)), + ({ name := "Strategy", xmlName := some "strategy", queryName := some "Strategy" }, (Shape.schema PlacementStrategy)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "GroupArn" x.groupArn, putOpt "GroupId" x.groupId, putOpt "GroupName" x.groupName, putOpt "LinkedGroupId" x.linkedGroupId, putOpt "Operator" x.operator, putOpt "ParentGroupId" x.parentGroupId, putOpt "PartitionCount" x.partitionCount, putOpt "SpreadLevel" x.spreadLevel, putOpt "State" x.state, putOpt "Strategy" x.strategy, putOpt "Tags" x.tags] + ofValue v := do + let groupArn ← v.opt "GroupArn" + let groupId ← v.opt "GroupId" + let groupName ← v.opt "GroupName" + let linkedGroupId ← v.opt "LinkedGroupId" + let operator ← v.opt "Operator" + let parentGroupId ← v.opt "ParentGroupId" + let partitionCount ← v.opt "PartitionCount" + let spreadLevel ← v.opt "SpreadLevel" + let state ← v.opt "State" + let strategy ← v.opt "Strategy" + let tags ← v.opt "Tags" + return { groupArn, groupId, groupName, linkedGroupId, operator, parentGroupId, partitionCount, spreadLevel, state, strategy, tags } + +/-- Describes the placement group support of the instance type. -/ +structure PlacementGroupInfo where + /-- The supported placement group types. -/ + supportedStrategies : Option (List PlacementGroupStrategy) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PlacementGroupInfo where + schema := .struct "PlacementGroupInfo" [({ name := "SupportedStrategies", xmlName := some "supportedStrategies", queryName := some "SupportedStrategies" }, (.list (Shape.schema PlacementGroupStrategy) "item"))] + toValue x := record [putOpt "SupportedStrategies" x.supportedStrategies] + ofValue v := do + let supportedStrategies ← v.opt "SupportedStrategies" + return { supportedStrategies } + +/-- Describes the price for a Reserved Instance. -/ +structure PriceSchedule where + /-- The current price schedule, as determined by the term remaining for the Reserved Instance in the listing. -/ + active : Option Bool := none + /-- The currency for transacting the Reserved Instance resale. -/ + currencyCode : Option CurrencyCodeValues := none + /-- The fixed price for the term. -/ + price : Option JsonNumber := none + /-- The number of months remaining in the reservation. -/ + term : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PriceSchedule where + schema := .struct "PriceSchedule" [({ name := "Active", xmlName := some "active", queryName := some "Active" }, .bool), + ({ name := "CurrencyCode", xmlName := some "currencyCode", queryName := some "CurrencyCode" }, (Shape.schema CurrencyCodeValues)), + ({ name := "Price", xmlName := some "price", queryName := some "Price" }, .number), + ({ name := "Term", xmlName := some "term", queryName := some "Term" }, .int)] + toValue x := record [putOpt "Active" x.active, putOpt "CurrencyCode" x.currencyCode, putOpt "Price" x.price, putOpt "Term" x.term] + ofValue v := do + let active ← v.opt "Active" + let currencyCode ← v.opt "CurrencyCode" + let price ← v.opt "Price" + let term ← v.opt "Term" + return { active, currencyCode, price, term } + +/-- Describes the price for a Reserved Instance. -/ +structure PriceScheduleSpecification where + /-- The currency for transacting the Reserved Instance resale. -/ + currencyCode : Option CurrencyCodeValues := none + /-- The fixed price for the term. -/ + price : Option JsonNumber := none + /-- The number of months remaining in the reservation. -/ + term : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PriceScheduleSpecification where + schema := .struct "PriceScheduleSpecification" [({ name := "CurrencyCode", xmlName := some "currencyCode", queryName := some "CurrencyCode" }, (Shape.schema CurrencyCodeValues)), + ({ name := "Price", xmlName := some "price", queryName := some "Price" }, .number), + ({ name := "Term", xmlName := some "term", queryName := some "Term" }, .int)] + toValue x := record [putOpt "CurrencyCode" x.currencyCode, putOpt "Price" x.price, putOpt "Term" x.term] + ofValue v := do + let currencyCode ← v.opt "CurrencyCode" + let price ← v.opt "Price" + let term ← v.opt "Term" + return { currencyCode, price, term } + +/-- PrincipalIdFormat description. -/ +structure PrincipalIdFormat where + /-- PrincipalIdFormatARN description. -/ + arn : Option String := none + /-- PrincipalIdFormatStatuses description. -/ + statuses : Option (List IdFormat) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PrincipalIdFormat where + schema := .struct "PrincipalIdFormat" [({ name := "Arn", xmlName := some "arn", queryName := some "Arn" }, .string), + ({ name := "Statuses", xmlName := some "statusSet", queryName := some "StatusSet" }, (.list (Shape.schema IdFormat) "item"))] + toValue x := record [putOpt "Arn" x.arn, putOpt "Statuses" x.statuses] + ofValue v := do + let arn ← v.opt "Arn" + let statuses ← v.opt "Statuses" + return { arn, statuses } + +/-- Information about the private DNS name for the service endpoint. -/ +structure PrivateDnsNameConfiguration where + /-- The name of the record subdomain the service provider needs to create. -/ + name : Option String := none + /-- The verification state of the VPC endpoint service. -/ + state : Option DnsNameState := none + /-- The endpoint service verification type, for example TXT. -/ + type : Option String := none + /-- The value the service provider adds to the private DNS name domain record before verification. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PrivateDnsNameConfiguration where + schema := .struct "PrivateDnsNameConfiguration" [({ name := "Name", xmlName := some "name", queryName := some "Name" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema DnsNameState)), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, .string), + ({ name := "Value", xmlName := some "value", queryName := some "Value" }, .string)] + toValue x := record [putOpt "Name" x.name, putOpt "State" x.state, putOpt "Type" x.type, putOpt "Value" x.value] + ofValue v := do + let name ← v.opt "Name" + let state ← v.opt "State" + let type ← v.opt "Type" + let value ← v.opt "Value" + return { name, state, type, value } + +/-- Describes the options for instance hostnames. -/ +structure PrivateDnsNameOptionsOnLaunch where + /-- Indicates whether to respond to DNS queries for instance hostname with DNS AAAA records. -/ + enableResourceNameDnsAAAARecord : Option Bool := none + /-- Indicates whether to respond to DNS queries for instance hostnames with DNS A records. -/ + enableResourceNameDnsARecord : Option Bool := none + /-- The type of hostname for EC2 instances. -/ + hostnameType : Option HostnameType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PrivateDnsNameOptionsOnLaunch where + schema := .struct "PrivateDnsNameOptionsOnLaunch" [({ name := "EnableResourceNameDnsAAAARecord", xmlName := some "enableResourceNameDnsAAAARecord", queryName := some "EnableResourceNameDnsAAAARecord" }, .bool), + ({ name := "EnableResourceNameDnsARecord", xmlName := some "enableResourceNameDnsARecord", queryName := some "EnableResourceNameDnsARecord" }, .bool), + ({ name := "HostnameType", xmlName := some "hostnameType", queryName := some "HostnameType" }, (Shape.schema HostnameType))] + toValue x := record [putOpt "EnableResourceNameDnsAAAARecord" x.enableResourceNameDnsAAAARecord, putOpt "EnableResourceNameDnsARecord" x.enableResourceNameDnsARecord, putOpt "HostnameType" x.hostnameType] + ofValue v := do + let enableResourceNameDnsAAAARecord ← v.opt "EnableResourceNameDnsAAAARecord" + let enableResourceNameDnsARecord ← v.opt "EnableResourceNameDnsARecord" + let hostnameType ← v.opt "HostnameType" + return { enableResourceNameDnsAAAARecord, enableResourceNameDnsARecord, hostnameType } + +/-- Describes the options for instance hostnames. -/ +structure PrivateDnsNameOptionsRequest where + /-- Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. -/ + enableResourceNameDnsAAAARecord : Option Bool := none + /-- Indicates whether to respond to DNS queries for instance hostnames with DNS A records. -/ + enableResourceNameDnsARecord : Option Bool := none + /-- The type of hostname for EC2 instances. -/ + hostnameType : Option HostnameType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PrivateDnsNameOptionsRequest where + schema := .struct "PrivateDnsNameOptionsRequest" [({ name := "EnableResourceNameDnsAAAARecord" }, .bool), + ({ name := "EnableResourceNameDnsARecord" }, .bool), + ({ name := "HostnameType" }, (Shape.schema HostnameType))] + toValue x := record [putOpt "EnableResourceNameDnsAAAARecord" x.enableResourceNameDnsAAAARecord, putOpt "EnableResourceNameDnsARecord" x.enableResourceNameDnsARecord, putOpt "HostnameType" x.hostnameType] + ofValue v := do + let enableResourceNameDnsAAAARecord ← v.opt "EnableResourceNameDnsAAAARecord" + let enableResourceNameDnsARecord ← v.opt "EnableResourceNameDnsARecord" + let hostnameType ← v.opt "HostnameType" + return { enableResourceNameDnsAAAARecord, enableResourceNameDnsARecord, hostnameType } + +/-- Describes the options for instance hostnames. -/ +structure PrivateDnsNameOptionsResponse where + /-- Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. -/ + enableResourceNameDnsAAAARecord : Option Bool := none + /-- Indicates whether to respond to DNS queries for instance hostnames with DNS A records. -/ + enableResourceNameDnsARecord : Option Bool := none + /-- The type of hostname to assign to an instance. -/ + hostnameType : Option HostnameType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PrivateDnsNameOptionsResponse where + schema := .struct "PrivateDnsNameOptionsResponse" [({ name := "EnableResourceNameDnsAAAARecord", xmlName := some "enableResourceNameDnsAAAARecord", queryName := some "EnableResourceNameDnsAAAARecord" }, .bool), + ({ name := "EnableResourceNameDnsARecord", xmlName := some "enableResourceNameDnsARecord", queryName := some "EnableResourceNameDnsARecord" }, .bool), + ({ name := "HostnameType", xmlName := some "hostnameType", queryName := some "HostnameType" }, (Shape.schema HostnameType))] + toValue x := record [putOpt "EnableResourceNameDnsAAAARecord" x.enableResourceNameDnsAAAARecord, putOpt "EnableResourceNameDnsARecord" x.enableResourceNameDnsARecord, putOpt "HostnameType" x.hostnameType] + ofValue v := do + let enableResourceNameDnsAAAARecord ← v.opt "EnableResourceNameDnsAAAARecord" + let enableResourceNameDnsARecord ← v.opt "EnableResourceNameDnsARecord" + let hostnameType ← v.opt "HostnameType" + return { enableResourceNameDnsAAAARecord, enableResourceNameDnsARecord, hostnameType } + +/-- Describes the processor used by the instance type. -/ +structure ProcessorInfo where + /-- The manufacturer of the processor. -/ + manufacturer : Option String := none + /-- The architectures supported by the instance type. -/ + supportedArchitectures : Option (List ArchitectureType) := none + /-- Indicates whether the instance type supports AMD SEV-SNP. -/ + supportedFeatures : Option (List SupportedAdditionalProcessorFeature) := none + /-- The speed of the processor, in GHz. -/ + sustainedClockSpeedInGhz : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ProcessorInfo where + schema := .struct "ProcessorInfo" [({ name := "Manufacturer", xmlName := some "manufacturer", queryName := some "Manufacturer" }, .string), + ({ name := "SupportedArchitectures", xmlName := some "supportedArchitectures", queryName := some "SupportedArchitectures" }, (.list (Shape.schema ArchitectureType) "item")), + ({ name := "SupportedFeatures", xmlName := some "supportedFeatures", queryName := some "SupportedFeatures" }, (.list (Shape.schema SupportedAdditionalProcessorFeature) "item")), + ({ name := "SustainedClockSpeedInGhz", xmlName := some "sustainedClockSpeedInGhz", queryName := some "SustainedClockSpeedInGhz" }, .number)] + toValue x := record [putOpt "Manufacturer" x.manufacturer, putOpt "SupportedArchitectures" x.supportedArchitectures, putOpt "SupportedFeatures" x.supportedFeatures, putOpt "SustainedClockSpeedInGhz" x.sustainedClockSpeedInGhz] + ofValue v := do + let manufacturer ← v.opt "Manufacturer" + let supportedArchitectures ← v.opt "SupportedArchitectures" + let supportedFeatures ← v.opt "SupportedFeatures" + let sustainedClockSpeedInGhz ← v.opt "SustainedClockSpeedInGhz" + return { manufacturer, supportedArchitectures, supportedFeatures, sustainedClockSpeedInGhz } + +/-- Describes a product code. -/ +structure ProductCode where + /-- The product code. -/ + productCodeId : Option String := none + /-- The type of product code. -/ + productCodeType : Option ProductCodeValues := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ProductCode where + schema := .struct "ProductCode" [({ name := "ProductCodeId", xmlName := some "productCode", queryName := some "ProductCode" }, .string), + ({ name := "ProductCodeType", xmlName := some "type", queryName := some "Type" }, (Shape.schema ProductCodeValues))] + toValue x := record [putOpt "ProductCodeId" x.productCodeId, putOpt "ProductCodeType" x.productCodeType] + ofValue v := do + let productCodeId ← v.opt "ProductCodeId" + let productCodeType ← v.opt "ProductCodeType" + return { productCodeId, productCodeType } + +structure ProvisionIpamByoasnRequest where + /-- A public 2-byte or 4-byte ASN. -/ + asn : String + /-- An ASN authorization context. -/ + asnAuthorizationContext : AsnAuthorizationContext + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- An IPAM ID. -/ + ipamId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ProvisionIpamByoasnRequest where + schema := .struct "ProvisionIpamByoasnRequest" [({ name := "Asn", required := true }, .string), + ({ name := "AsnAuthorizationContext", required := true }, (Shape.schema AsnAuthorizationContext)), + ({ name := "DryRun" }, .bool), + ({ name := "IpamId", required := true }, .string)] + toValue x := record [put "Asn" x.asn, put "AsnAuthorizationContext" x.asnAuthorizationContext, putOpt "DryRun" x.dryRun, put "IpamId" x.ipamId] + ofValue v := do + let asn ← v.req "Asn" + let asnAuthorizationContext ← v.req "AsnAuthorizationContext" + let dryRun ← v.opt "DryRun" + let ipamId ← v.req "IpamId" + return { asn, asnAuthorizationContext, dryRun, ipamId } + +structure ProvisionIpamPoolCidrRequest where + /-- The CIDR you want to assign to the IPAM pool. -/ + cidr : Option String := none + /-- A signed document that proves that you are authorized to bring a specified IP address range to Amazon using BYOIP. -/ + cidrAuthorizationContext : Option IpamCidrAuthorizationContext := none + /-- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- Verification token ID. -/ + ipamExternalResourceVerificationTokenId : Option String := none + /-- The ID of the IPAM pool to which you want to assign a CIDR. -/ + ipamPoolId : String + /-- The netmask length of the CIDR you'd like to provision to a pool. -/ + netmaskLength : Option Int := none + /-- The method for verifying control of a public IP address range. -/ + verificationMethod : Option VerificationMethod := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ProvisionIpamPoolCidrRequest where + schema := .struct "ProvisionIpamPoolCidrRequest" [({ name := "Cidr" }, .string), + ({ name := "CidrAuthorizationContext" }, (Shape.schema IpamCidrAuthorizationContext)), + ({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "IpamExternalResourceVerificationTokenId" }, .string), + ({ name := "IpamPoolId", required := true }, .string), + ({ name := "NetmaskLength" }, .int), + ({ name := "VerificationMethod" }, (Shape.schema VerificationMethod))] + toValue x := record [putOpt "Cidr" x.cidr, putOpt "CidrAuthorizationContext" x.cidrAuthorizationContext, putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "IpamExternalResourceVerificationTokenId" x.ipamExternalResourceVerificationTokenId, put "IpamPoolId" x.ipamPoolId, putOpt "NetmaskLength" x.netmaskLength, putOpt "VerificationMethod" x.verificationMethod] + ofValue v := do + let cidr ← v.opt "Cidr" + let cidrAuthorizationContext ← v.opt "CidrAuthorizationContext" + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let ipamExternalResourceVerificationTokenId ← v.opt "IpamExternalResourceVerificationTokenId" + let ipamPoolId ← v.req "IpamPoolId" + let netmaskLength ← v.opt "NetmaskLength" + let verificationMethod ← v.opt "VerificationMethod" + return { cidr, cidrAuthorizationContext, clientToken, dryRun, ipamExternalResourceVerificationTokenId, ipamPoolId, netmaskLength, verificationMethod } + +structure ProvisionPublicIpv4PoolCidrResult where + /-- Information about the address range of the public IPv4 pool. -/ + poolAddressRange : Option PublicIpv4PoolRange := none + /-- The ID of the pool that you want to provision the CIDR to. -/ + poolId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ProvisionPublicIpv4PoolCidrResult where + schema := .struct "ProvisionPublicIpv4PoolCidrResult" [({ name := "PoolAddressRange", xmlName := some "poolAddressRange", queryName := some "PoolAddressRange" }, (Shape.schema PublicIpv4PoolRange)), + ({ name := "PoolId", xmlName := some "poolId", queryName := some "PoolId" }, .string)] + toValue x := record [putOpt "PoolAddressRange" x.poolAddressRange, putOpt "PoolId" x.poolId] + ofValue v := do + let poolAddressRange ← v.opt "PoolAddressRange" + let poolId ← v.opt "PoolId" + return { poolAddressRange, poolId } + +/-- Describes an IPv4 address pool. -/ +structure PublicIpv4Pool where + /-- A description of the address pool. -/ + description : Option String := none + /-- The name of the location from which the address pool is advertised. -/ + networkBorderGroup : Option String := none + /-- The address ranges. -/ + poolAddressRanges : Option (List PublicIpv4PoolRange) := none + /-- The ID of the address pool. -/ + poolId : Option String := none + /-- Any tags for the address pool. -/ + tags : Option (List Tag) := none + /-- The total number of addresses. -/ + totalAddressCount : Option Int := none + /-- The total number of available addresses. -/ + totalAvailableAddressCount : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PublicIpv4Pool where + schema := .struct "PublicIpv4Pool" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "NetworkBorderGroup", xmlName := some "networkBorderGroup", queryName := some "NetworkBorderGroup" }, .string), + ({ name := "PoolAddressRanges", xmlName := some "poolAddressRangeSet", queryName := some "PoolAddressRangeSet" }, (.list (Shape.schema PublicIpv4PoolRange) "item")), + ({ name := "PoolId", xmlName := some "poolId", queryName := some "PoolId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TotalAddressCount", xmlName := some "totalAddressCount", queryName := some "TotalAddressCount" }, .int), + ({ name := "TotalAvailableAddressCount", xmlName := some "totalAvailableAddressCount", queryName := some "TotalAvailableAddressCount" }, .int)] + toValue x := record [putOpt "Description" x.description, putOpt "NetworkBorderGroup" x.networkBorderGroup, putOpt "PoolAddressRanges" x.poolAddressRanges, putOpt "PoolId" x.poolId, putOpt "Tags" x.tags, putOpt "TotalAddressCount" x.totalAddressCount, putOpt "TotalAvailableAddressCount" x.totalAvailableAddressCount] + ofValue v := do + let description ← v.opt "Description" + let networkBorderGroup ← v.opt "NetworkBorderGroup" + let poolAddressRanges ← v.opt "PoolAddressRanges" + let poolId ← v.opt "PoolId" + let tags ← v.opt "Tags" + let totalAddressCount ← v.opt "TotalAddressCount" + let totalAvailableAddressCount ← v.opt "TotalAvailableAddressCount" + return { description, networkBorderGroup, poolAddressRanges, poolId, tags, totalAddressCount, totalAvailableAddressCount } + +/-- Describes the result of the purchase. -/ +structure Purchase where + /-- The currency in which the UpfrontPrice and HourlyPrice amounts are specified. -/ + currencyCode : Option CurrencyCodeValues := none + /-- The duration of the reservation's term in seconds. -/ + duration : Option Int := none + /-- The IDs of the Dedicated Hosts associated with the reservation. -/ + hostIdSet : Option (List String) := none + /-- The ID of the reservation. -/ + hostReservationId : Option String := none + /-- The hourly price of the reservation per hour. -/ + hourlyPrice : Option String := none + /-- The instance family on the Dedicated Host that the reservation can be associated with. -/ + instanceFamily : Option String := none + /-- The payment option for the reservation. -/ + paymentOption : Option PaymentOption := none + /-- The upfront price of the reservation. -/ + upfrontPrice : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Purchase where + schema := .struct "Purchase" [({ name := "CurrencyCode", xmlName := some "currencyCode", queryName := some "CurrencyCode" }, (Shape.schema CurrencyCodeValues)), + ({ name := "Duration", xmlName := some "duration", queryName := some "Duration" }, .int), + ({ name := "HostIdSet", xmlName := some "hostIdSet", queryName := some "HostIdSet" }, (.list .string "item")), + ({ name := "HostReservationId", xmlName := some "hostReservationId", queryName := some "HostReservationId" }, .string), + ({ name := "HourlyPrice", xmlName := some "hourlyPrice", queryName := some "HourlyPrice" }, .string), + ({ name := "InstanceFamily", xmlName := some "instanceFamily", queryName := some "InstanceFamily" }, .string), + ({ name := "PaymentOption", xmlName := some "paymentOption", queryName := some "PaymentOption" }, (Shape.schema PaymentOption)), + ({ name := "UpfrontPrice", xmlName := some "upfrontPrice", queryName := some "UpfrontPrice" }, .string)] + toValue x := record [putOpt "CurrencyCode" x.currencyCode, putOpt "Duration" x.duration, putOpt "HostIdSet" x.hostIdSet, putOpt "HostReservationId" x.hostReservationId, putOpt "HourlyPrice" x.hourlyPrice, putOpt "InstanceFamily" x.instanceFamily, putOpt "PaymentOption" x.paymentOption, putOpt "UpfrontPrice" x.upfrontPrice] + ofValue v := do + let currencyCode ← v.opt "CurrencyCode" + let duration ← v.opt "Duration" + let hostIdSet ← v.opt "HostIdSet" + let hostReservationId ← v.opt "HostReservationId" + let hourlyPrice ← v.opt "HourlyPrice" + let instanceFamily ← v.opt "InstanceFamily" + let paymentOption ← v.opt "PaymentOption" + let upfrontPrice ← v.opt "UpfrontPrice" + return { currencyCode, duration, hostIdSet, hostReservationId, hourlyPrice, instanceFamily, paymentOption, upfrontPrice } + +/-- Contains the parameters for PurchaseScheduledInstances. -/ +structure PurchaseScheduledInstancesRequest where + /-- Unique, case-sensitive identifier that ensures the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The purchase requests. -/ + purchaseRequests : (List PurchaseRequest) +deriving DecidableEq, Repr, Inhabited + +instance : Shape PurchaseScheduledInstancesRequest where + schema := .struct "PurchaseScheduledInstancesRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "PurchaseRequests", required := true, xmlName := some "PurchaseRequest" }, (.list (Shape.schema PurchaseRequest) "PurchaseRequest"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "PurchaseRequests" x.purchaseRequests] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let purchaseRequests ← v.req "PurchaseRequests" + return { clientToken, dryRun, purchaseRequests } + +/-- Describes a recurring charge. -/ +structure RecurringCharge where + /-- The amount of the recurring charge. -/ + amount : Option JsonNumber := none + /-- The frequency of the recurring charge. -/ + frequency : Option RecurringChargeFrequency := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RecurringCharge where + schema := .struct "RecurringCharge" [({ name := "Amount", xmlName := some "amount", queryName := some "Amount" }, .number), + ({ name := "Frequency", xmlName := some "frequency", queryName := some "Frequency" }, (Shape.schema RecurringChargeFrequency))] + toValue x := record [putOpt "Amount" x.amount, putOpt "Frequency" x.frequency] + ofValue v := do + let amount ← v.opt "Amount" + let frequency ← v.opt "Frequency" + return { amount, frequency } + +/-- Describes a Region. -/ +structure Region where + /-- The Region service endpoint. -/ + endpoint : Option String := none + /-- The geography information for the Region. -/ + geography : Option (List RegionGeography) := none + /-- The Region opt-in status. -/ + optInStatus : Option String := none + /-- The name of the Region. -/ + regionName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Region where + schema := .struct "Region" [({ name := "Endpoint", xmlName := some "regionEndpoint", queryName := some "RegionEndpoint" }, .string), + ({ name := "Geography", xmlName := some "geographySet", queryName := some "GeographySet" }, (.list (Shape.schema RegionGeography) "item")), + ({ name := "OptInStatus", xmlName := some "optInStatus", queryName := some "OptInStatus" }, .string), + ({ name := "RegionName", xmlName := some "regionName", queryName := some "RegionName" }, .string)] + toValue x := record [putOpt "Endpoint" x.endpoint, putOpt "Geography" x.geography, putOpt "OptInStatus" x.optInStatus, putOpt "RegionName" x.regionName] + ofValue v := do + let endpoint ← v.opt "Endpoint" + let geography ← v.opt "Geography" + let optInStatus ← v.opt "OptInStatus" + let regionName ← v.opt "RegionName" + return { endpoint, geography, optInStatus, regionName } + +structure RegisterInstanceEventNotificationAttributesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Information about the tag keys to register. -/ + instanceTagAttribute : RegisterInstanceTagAttributeRequest +deriving DecidableEq, Repr, Inhabited + +instance : Shape RegisterInstanceEventNotificationAttributesRequest where + schema := .struct "RegisterInstanceEventNotificationAttributesRequest" [({ name := "DryRun" }, .bool), + ({ name := "InstanceTagAttribute", required := true }, (Shape.schema RegisterInstanceTagAttributeRequest))] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceTagAttribute" x.instanceTagAttribute] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceTagAttribute ← v.req "InstanceTagAttribute" + return { dryRun, instanceTagAttribute } + +structure RegisterInstanceEventNotificationAttributesResult where + /-- The resulting set of tag keys. -/ + instanceTagAttribute : Option InstanceTagNotificationAttribute := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RegisterInstanceEventNotificationAttributesResult where + schema := .struct "RegisterInstanceEventNotificationAttributesResult" [({ name := "InstanceTagAttribute", xmlName := some "instanceTagAttribute", queryName := some "InstanceTagAttribute" }, (Shape.schema InstanceTagNotificationAttribute))] + toValue x := record [putOpt "InstanceTagAttribute" x.instanceTagAttribute] + ofValue v := do + let instanceTagAttribute ← v.opt "InstanceTagAttribute" + return { instanceTagAttribute } + +structure RegisterTransitGatewayMulticastGroupMembersResult where + /-- Information about the registered transit gateway multicast group members. -/ + registeredMulticastGroupMembers : Option TransitGatewayMulticastRegisteredGroupMembers := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RegisterTransitGatewayMulticastGroupMembersResult where + schema := .struct "RegisterTransitGatewayMulticastGroupMembersResult" [({ name := "RegisteredMulticastGroupMembers", xmlName := some "registeredMulticastGroupMembers", queryName := some "RegisteredMulticastGroupMembers" }, (Shape.schema TransitGatewayMulticastRegisteredGroupMembers))] + toValue x := record [putOpt "RegisteredMulticastGroupMembers" x.registeredMulticastGroupMembers] + ofValue v := do + let registeredMulticastGroupMembers ← v.opt "RegisteredMulticastGroupMembers" + return { registeredMulticastGroupMembers } + +structure RegisterTransitGatewayMulticastGroupSourcesResult where + /-- Information about the transit gateway multicast group sources. -/ + registeredMulticastGroupSources : Option TransitGatewayMulticastRegisteredGroupSources := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RegisterTransitGatewayMulticastGroupSourcesResult where + schema := .struct "RegisterTransitGatewayMulticastGroupSourcesResult" [({ name := "RegisteredMulticastGroupSources", xmlName := some "registeredMulticastGroupSources", queryName := some "RegisteredMulticastGroupSources" }, (Shape.schema TransitGatewayMulticastRegisteredGroupSources))] + toValue x := record [putOpt "RegisteredMulticastGroupSources" x.registeredMulticastGroupSources] + ofValue v := do + let registeredMulticastGroupSources ← v.opt "RegisteredMulticastGroupSources" + return { registeredMulticastGroupSources } + +/-- Describes an Amazon EC2 instance that is enabled for SQL Server High Availability standby detection monitoring. -/ +structure RegisteredInstance where + /-- The SQL Server High Availability status of the instance. -/ + haStatus : Option HaStatus := none + /-- The ID of the SQL Server High Availability instance. -/ + instanceId : Option String := none + /-- The date and time when the instance's SQL Server High Availability status was last updated, in the ISO 8601 format in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ ). -/ + lastUpdatedTime : Option Timestamp := none + /-- A brief description of the SQL Server High Availability status. -/ + processingStatus : Option String := none + /-- The ARN of the Secrets Manager secret containing the SQL Server access credentials for the SQL Server High Availability instance. -/ + sqlServerCredentials : Option String := none + /-- The license type for the SQL Server license. -/ + sqlServerLicenseUsage : Option SqlServerLicenseUsage := none + /-- The tags assigned to the SQL Server High Availability instance. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RegisteredInstance where + schema := .struct "RegisteredInstance" [({ name := "HaStatus", xmlName := some "haStatus", queryName := some "HaStatus" }, (Shape.schema HaStatus)), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "LastUpdatedTime", xmlName := some "lastUpdatedTime", queryName := some "LastUpdatedTime" }, (.time none)), + ({ name := "ProcessingStatus", xmlName := some "processingStatus", queryName := some "ProcessingStatus" }, .string), + ({ name := "SqlServerCredentials", xmlName := some "sqlServerCredentials", queryName := some "SqlServerCredentials" }, .string), + ({ name := "SqlServerLicenseUsage", xmlName := some "sqlServerLicenseUsage", queryName := some "SqlServerLicenseUsage" }, (Shape.schema SqlServerLicenseUsage)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "HaStatus" x.haStatus, putOpt "InstanceId" x.instanceId, putOpt "LastUpdatedTime" x.lastUpdatedTime, putOpt "ProcessingStatus" x.processingStatus, putOpt "SqlServerCredentials" x.sqlServerCredentials, putOpt "SqlServerLicenseUsage" x.sqlServerLicenseUsage, putOpt "Tags" x.tags] + ofValue v := do + let haStatus ← v.opt "HaStatus" + let instanceId ← v.opt "InstanceId" + let lastUpdatedTime ← v.opt "LastUpdatedTime" + let processingStatus ← v.opt "ProcessingStatus" + let sqlServerCredentials ← v.opt "SqlServerCredentials" + let sqlServerLicenseUsage ← v.opt "SqlServerLicenseUsage" + let tags ← v.opt "Tags" + return { haStatus, instanceId, lastUpdatedTime, processingStatus, sqlServerCredentials, sqlServerLicenseUsage, tags } + +structure ReplaceIamInstanceProfileAssociationRequest where + /-- The ID of the existing IAM instance profile association. -/ + associationId : String + /-- The IAM instance profile. -/ + iamInstanceProfile : IamInstanceProfileSpecification +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplaceIamInstanceProfileAssociationRequest where + schema := .struct "ReplaceIamInstanceProfileAssociationRequest" [({ name := "AssociationId", required := true }, .string), + ({ name := "IamInstanceProfile", required := true }, (Shape.schema IamInstanceProfileSpecification))] + toValue x := record [put "AssociationId" x.associationId, put "IamInstanceProfile" x.iamInstanceProfile] + ofValue v := do + let associationId ← v.req "AssociationId" + let iamInstanceProfile ← v.req "IamInstanceProfile" + return { associationId, iamInstanceProfile } + +structure ReplaceImageInstanceTypeSpecificationRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AMI. -/ + imageId : String + /-- The instance type specification to set on the AMI. -/ + instanceTypeSpecification : Option InstanceTypeSpecificationRequest := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplaceImageInstanceTypeSpecificationRequest where + schema := .struct "ReplaceImageInstanceTypeSpecificationRequest" [({ name := "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string), + ({ name := "InstanceTypeSpecification" }, (Shape.schema InstanceTypeSpecificationRequest))] + toValue x := record [putOpt "DryRun" x.dryRun, put "ImageId" x.imageId, putOpt "InstanceTypeSpecification" x.instanceTypeSpecification] + ofValue v := do + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + let instanceTypeSpecification ← v.opt "InstanceTypeSpecification" + return { dryRun, imageId, instanceTypeSpecification } + +structure ReplaceNetworkAclEntryRequest where + /-- The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24 ). -/ + cidrBlock : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Indicates whether to replace the egress rule. -/ + egress : Bool + /-- ICMP protocol: The ICMP or ICMPv6 type and code. -/ + icmpTypeCode : Option IcmpTypeCode := none + /-- The IPv6 network range to allow or deny, in CIDR notation (for example 2001:bd8:1234:1a00::/64 ). -/ + ipv6CidrBlock : Option String := none + /-- The ID of the ACL. -/ + networkAclId : String + /-- TCP or UDP protocols: The range of ports the rule applies to. -/ + portRange : Option PortRange := none + /-- The protocol number. -/ + protocol : String + /-- Indicates whether to allow or deny the traffic that matches the rule. -/ + ruleAction : RuleAction + /-- The rule number of the entry to replace. -/ + ruleNumber : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplaceNetworkAclEntryRequest where + schema := .struct "ReplaceNetworkAclEntryRequest" [({ name := "CidrBlock", xmlName := some "cidrBlock", queryName := some "CidrBlock" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Egress", required := true, xmlName := some "egress", queryName := some "Egress" }, .bool), + ({ name := "IcmpTypeCode", xmlName := some "Icmp" }, (Shape.schema IcmpTypeCode)), + ({ name := "Ipv6CidrBlock", xmlName := some "ipv6CidrBlock", queryName := some "Ipv6CidrBlock" }, .string), + ({ name := "NetworkAclId", required := true, xmlName := some "networkAclId", queryName := some "NetworkAclId" }, .string), + ({ name := "PortRange", xmlName := some "portRange", queryName := some "PortRange" }, (Shape.schema PortRange)), + ({ name := "Protocol", required := true, xmlName := some "protocol", queryName := some "Protocol" }, .string), + ({ name := "RuleAction", required := true, xmlName := some "ruleAction", queryName := some "RuleAction" }, (Shape.schema RuleAction)), + ({ name := "RuleNumber", required := true, xmlName := some "ruleNumber", queryName := some "RuleNumber" }, .int)] + toValue x := record [putOpt "CidrBlock" x.cidrBlock, putOpt "DryRun" x.dryRun, put "Egress" x.egress, putOpt "IcmpTypeCode" x.icmpTypeCode, putOpt "Ipv6CidrBlock" x.ipv6CidrBlock, put "NetworkAclId" x.networkAclId, putOpt "PortRange" x.portRange, put "Protocol" x.protocol, put "RuleAction" x.ruleAction, put "RuleNumber" x.ruleNumber] + ofValue v := do + let cidrBlock ← v.opt "CidrBlock" + let dryRun ← v.opt "DryRun" + let egress ← v.req "Egress" + let icmpTypeCode ← v.opt "IcmpTypeCode" + let ipv6CidrBlock ← v.opt "Ipv6CidrBlock" + let networkAclId ← v.req "NetworkAclId" + let portRange ← v.opt "PortRange" + let protocol ← v.req "Protocol" + let ruleAction ← v.req "RuleAction" + let ruleNumber ← v.req "RuleNumber" + return { cidrBlock, dryRun, egress, icmpTypeCode, ipv6CidrBlock, networkAclId, portRange, protocol, ruleAction, ruleNumber } + +/-- Information about a root volume replacement task. -/ +structure ReplaceRootVolumeTask where + /-- The time the task completed. -/ + completeTime : Option String := none + /-- Indicates whether the original root volume is to be deleted after the root volume replacement task completes. -/ + deleteReplacedRootVolume : Option Bool := none + /-- The ID of the AMI used to create the replacement root volume. -/ + imageId : Option String := none + /-- The ID of the instance for which the root volume replacement task was created. -/ + instanceId : Option String := none + /-- The ID of the root volume replacement task. -/ + replaceRootVolumeTaskId : Option String := none + /-- The ID of the snapshot used to create the replacement root volume. -/ + snapshotId : Option String := none + /-- The time the task was started. -/ + startTime : Option String := none + /-- The tags assigned to the task. -/ + tags : Option (List Tag) := none + /-- The state of the task. -/ + taskState : Option ReplaceRootVolumeTaskState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplaceRootVolumeTask where + schema := .struct "ReplaceRootVolumeTask" [({ name := "CompleteTime", xmlName := some "completeTime", queryName := some "CompleteTime" }, .string), + ({ name := "DeleteReplacedRootVolume", xmlName := some "deleteReplacedRootVolume", queryName := some "DeleteReplacedRootVolume" }, .bool), + ({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "ReplaceRootVolumeTaskId", xmlName := some "replaceRootVolumeTaskId", queryName := some "ReplaceRootVolumeTaskId" }, .string), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string), + ({ name := "StartTime", xmlName := some "startTime", queryName := some "StartTime" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TaskState", xmlName := some "taskState", queryName := some "TaskState" }, (Shape.schema ReplaceRootVolumeTaskState))] + toValue x := record [putOpt "CompleteTime" x.completeTime, putOpt "DeleteReplacedRootVolume" x.deleteReplacedRootVolume, putOpt "ImageId" x.imageId, putOpt "InstanceId" x.instanceId, putOpt "ReplaceRootVolumeTaskId" x.replaceRootVolumeTaskId, putOpt "SnapshotId" x.snapshotId, putOpt "StartTime" x.startTime, putOpt "Tags" x.tags, putOpt "TaskState" x.taskState] + ofValue v := do + let completeTime ← v.opt "CompleteTime" + let deleteReplacedRootVolume ← v.opt "DeleteReplacedRootVolume" + let imageId ← v.opt "ImageId" + let instanceId ← v.opt "InstanceId" + let replaceRootVolumeTaskId ← v.opt "ReplaceRootVolumeTaskId" + let snapshotId ← v.opt "SnapshotId" + let startTime ← v.opt "StartTime" + let tags ← v.opt "Tags" + let taskState ← v.opt "TaskState" + return { completeTime, deleteReplacedRootVolume, imageId, instanceId, replaceRootVolumeTaskId, snapshotId, startTime, tags, taskState } + +structure ReportInstanceStatusRequest where + /-- Descriptive text about the health state of your instance. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The time at which the reported instance health state ended. -/ + endTime : Option Timestamp := none + /-- The instances. -/ + instances : (List String) + /-- The reason codes that describe the health state of your instance. -/ + reasonCodes : (List ReportInstanceReasonCodes) + /-- The time at which the reported instance health state began. -/ + startTime : Option Timestamp := none + /-- The status of all instances listed. -/ + status : ReportStatusType +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReportInstanceStatusRequest where + schema := .struct "ReportInstanceStatusRequest" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "EndTime", xmlName := some "endTime", queryName := some "EndTime" }, (.time none)), + ({ name := "Instances", required := true, xmlName := some "instanceId", queryName := some "InstanceId" }, (.list .string "InstanceId")), + ({ name := "ReasonCodes", required := true, xmlName := some "reasonCode", queryName := some "ReasonCode" }, (.list (Shape.schema ReportInstanceReasonCodes) "item")), + ({ name := "StartTime", xmlName := some "startTime", queryName := some "StartTime" }, (.time none)), + ({ name := "Status", required := true, xmlName := some "status", queryName := some "Status" }, (Shape.schema ReportStatusType))] + toValue x := record [putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "EndTime" x.endTime, put "Instances" x.instances, put "ReasonCodes" x.reasonCodes, putOpt "StartTime" x.startTime, put "Status" x.status] + ofValue v := do + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let endTime ← v.opt "EndTime" + let instances ← v.req "Instances" + let reasonCodes ← v.req "ReasonCodes" + let startTime ← v.opt "StartTime" + let status ← v.req "Status" + return { description, dryRun, endTime, instances, reasonCodes, startTime, status } + +/-- Information about an instance type to use in a Capacity Reservation Fleet. -/ +structure ReservationFleetInstanceSpecification where + /-- The Availability Zone in which the Capacity Reservation Fleet reserves the capacity. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone in which the Capacity Reservation Fleet reserves the capacity. -/ + availabilityZoneId : Option String := none + /-- Indicates whether the Capacity Reservation Fleet supports EBS-optimized instances types. -/ + ebsOptimized : Option Bool := none + /-- The type of operating system for which the Capacity Reservation Fleet reserves capacity. -/ + instancePlatform : Option CapacityReservationInstancePlatform := none + /-- The instance type for which the Capacity Reservation Fleet reserves capacity. -/ + instanceType : Option InstanceType := none + /-- The priority to assign to the instance type. -/ + priority : Option Int := none + /-- The number of capacity units provided by the specified instance type. -/ + weight : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReservationFleetInstanceSpecification where + schema := .struct "ReservationFleetInstanceSpecification" [({ name := "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId" }, .string), + ({ name := "EbsOptimized" }, .bool), + ({ name := "InstancePlatform" }, (Shape.schema CapacityReservationInstancePlatform)), + ({ name := "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "Priority" }, .int), + ({ name := "Weight" }, .number)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "EbsOptimized" x.ebsOptimized, putOpt "InstancePlatform" x.instancePlatform, putOpt "InstanceType" x.instanceType, putOpt "Priority" x.priority, putOpt "Weight" x.weight] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let ebsOptimized ← v.opt "EbsOptimized" + let instancePlatform ← v.opt "InstancePlatform" + let instanceType ← v.opt "InstanceType" + let priority ← v.opt "Priority" + let weight ← v.opt "Weight" + return { availabilityZone, availabilityZoneId, ebsOptimized, instancePlatform, instanceType, priority, weight } + +/-- Describes the fallback behavior for an EC2 Fleet that uses reserved capacity when the reserved capacity is not enough to meet the target capacity. -/ +structure ReservedCapacityFallbackOptions where + /-- The instance purchasing options to fall back to when the reserved capacity is not enough to meet the target capacity. -/ + marketTypes : Option (List ReservedCapacityFallbackMarketType) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReservedCapacityFallbackOptions where + schema := .struct "ReservedCapacityFallbackOptions" [({ name := "MarketTypes", xmlName := some "marketTypeSet", queryName := some "MarketTypeSet" }, (.list (Shape.schema ReservedCapacityFallbackMarketType) "item"))] + toValue x := record [putOpt "MarketTypes" x.marketTypes] + ofValue v := do + let marketTypes ← v.opt "MarketTypes" + return { marketTypes } + +/-- Describes the fallback behavior for an EC2 Fleet that uses reserved capacity when the reserved capacity is not enough to meet the target capacity. -/ +structure ReservedCapacityFallbackOptionsRequest where + /-- The instance purchasing options to fall back to when the reserved capacity is not enough to meet the target capacity. -/ + marketTypes : Option (List ReservedCapacityFallbackMarketType) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReservedCapacityFallbackOptionsRequest where + schema := .struct "ReservedCapacityFallbackOptionsRequest" [({ name := "MarketTypes", xmlName := some "MarketType" }, (.list (Shape.schema ReservedCapacityFallbackMarketType) "item"))] + toValue x := record [putOpt "MarketTypes" x.marketTypes] + ofValue v := do + let marketTypes ← v.opt "MarketTypes" + return { marketTypes } + +/-- Describes the limit price of a Reserved Instance offering. -/ +structure ReservedInstanceLimitPrice where + /-- Used for Reserved Instance Marketplace offerings. -/ + amount : Option JsonNumber := none + /-- The currency in which the limitPrice amount is specified. -/ + currencyCode : Option CurrencyCodeValues := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReservedInstanceLimitPrice where + schema := .struct "ReservedInstanceLimitPrice" [({ name := "Amount", xmlName := some "amount", queryName := some "Amount" }, .number), + ({ name := "CurrencyCode", xmlName := some "currencyCode", queryName := some "CurrencyCode" }, (Shape.schema CurrencyCodeValues))] + toValue x := record [putOpt "Amount" x.amount, putOpt "CurrencyCode" x.currencyCode] + ofValue v := do + let amount ← v.opt "Amount" + let currencyCode ← v.opt "CurrencyCode" + return { amount, currencyCode } + +/-- The total value of the Convertible Reserved Instance. -/ +structure ReservedInstanceReservationValue where + /-- The total value of the Convertible Reserved Instance that you are exchanging. -/ + reservationValue : Option ReservationValue := none + /-- The ID of the Convertible Reserved Instance that you are exchanging. -/ + reservedInstanceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReservedInstanceReservationValue where + schema := .struct "ReservedInstanceReservationValue" [({ name := "ReservationValue", xmlName := some "reservationValue", queryName := some "ReservationValue" }, (Shape.schema ReservationValue)), + ({ name := "ReservedInstanceId", xmlName := some "reservedInstanceId", queryName := some "ReservedInstanceId" }, .string)] + toValue x := record [putOpt "ReservationValue" x.reservationValue, putOpt "ReservedInstanceId" x.reservedInstanceId] + ofValue v := do + let reservationValue ← v.opt "ReservationValue" + let reservedInstanceId ← v.opt "ReservedInstanceId" + return { reservationValue, reservedInstanceId } + +/-- Describes the configuration settings for the modified Reserved Instances. -/ +structure ReservedInstancesConfiguration where + /-- The Availability Zone for the modified Reserved Instances. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone. -/ + availabilityZoneId : Option String := none + /-- The number of modified Reserved Instances. -/ + instanceCount : Option Int := none + /-- The instance type for the modified Reserved Instances. -/ + instanceType : Option InstanceType := none + /-- The network platform of the modified Reserved Instances. -/ + platform : Option String := none + /-- Whether the Reserved Instance is applied to instances in a Region or instances in a specific Availability Zone. -/ + scope : Option scope := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReservedInstancesConfiguration where + schema := .struct "ReservedInstancesConfiguration" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "InstanceCount", xmlName := some "instanceCount", queryName := some "InstanceCount" }, .int), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "Platform", xmlName := some "platform", queryName := some "Platform" }, .string), + ({ name := "Scope", xmlName := some "scope", queryName := some "Scope" }, (Shape.schema scope))] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "InstanceCount" x.instanceCount, putOpt "InstanceType" x.instanceType, putOpt "Platform" x.platform, putOpt "Scope" x.scope] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let instanceCount ← v.opt "InstanceCount" + let instanceType ← v.opt "InstanceType" + let platform ← v.opt "Platform" + let scope ← v.opt "Scope" + return { availabilityZone, availabilityZoneId, instanceCount, instanceType, platform, scope } + +structure ResetAddressAttributeRequest where + /-- [EC2-VPC] The allocation ID. -/ + allocationId : String + /-- The attribute of the IP address. -/ + «attribute» : AddressAttributeName + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResetAddressAttributeRequest where + schema := .struct "ResetAddressAttributeRequest" [({ name := "AllocationId", required := true }, .string), + ({ name := "Attribute", required := true }, (Shape.schema AddressAttributeName)), + ({ name := "DryRun" }, .bool)] + toValue x := record [put "AllocationId" x.allocationId, put "Attribute" x.«attribute», putOpt "DryRun" x.dryRun] + ofValue v := do + let allocationId ← v.req "AllocationId" + let «attribute» ← v.req "Attribute" + let dryRun ← v.opt "DryRun" + return { allocationId, «attribute», dryRun } + +structure ResetFpgaImageAttributeRequest where + /-- The attribute. -/ + «attribute» : Option ResetFpgaImageAttributeName := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AFI. -/ + fpgaImageId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResetFpgaImageAttributeRequest where + schema := .struct "ResetFpgaImageAttributeRequest" [({ name := "Attribute" }, (Shape.schema ResetFpgaImageAttributeName)), + ({ name := "DryRun" }, .bool), + ({ name := "FpgaImageId", required := true }, .string)] + toValue x := record [putOpt "Attribute" x.«attribute», putOpt "DryRun" x.dryRun, put "FpgaImageId" x.fpgaImageId] + ofValue v := do + let «attribute» ← v.opt "Attribute" + let dryRun ← v.opt "DryRun" + let fpgaImageId ← v.req "FpgaImageId" + return { «attribute», dryRun, fpgaImageId } + +/-- Contains the parameters for ResetImageAttribute. -/ +structure ResetImageAttributeRequest where + /-- The attribute to reset (currently you can only reset the launch permission attribute). -/ + «attribute» : ResetImageAttributeName + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AMI. -/ + imageId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResetImageAttributeRequest where + schema := .struct "ResetImageAttributeRequest" [({ name := "Attribute", required := true }, (Shape.schema ResetImageAttributeName)), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string)] + toValue x := record [put "Attribute" x.«attribute», putOpt "DryRun" x.dryRun, put "ImageId" x.imageId] + ofValue v := do + let «attribute» ← v.req "Attribute" + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + return { «attribute», dryRun, imageId } + +structure ResetInstanceAttributeRequest where + /-- The attribute to reset. -/ + «attribute» : InstanceAttributeName + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the instance. -/ + instanceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResetInstanceAttributeRequest where + schema := .struct "ResetInstanceAttributeRequest" [({ name := "Attribute", required := true, xmlName := some "attribute", queryName := some "Attribute" }, (Shape.schema InstanceAttributeName)), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "InstanceId", required := true, xmlName := some "instanceId", queryName := some "InstanceId" }, .string)] + toValue x := record [put "Attribute" x.«attribute», putOpt "DryRun" x.dryRun, put "InstanceId" x.instanceId] + ofValue v := do + let «attribute» ← v.req "Attribute" + let dryRun ← v.opt "DryRun" + let instanceId ← v.req "InstanceId" + return { «attribute», dryRun, instanceId } + +structure ResetSnapshotAttributeRequest where + /-- The attribute to reset. -/ + «attribute» : SnapshotAttributeName + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the snapshot. -/ + snapshotId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResetSnapshotAttributeRequest where + schema := .struct "ResetSnapshotAttributeRequest" [({ name := "Attribute", required := true }, (Shape.schema SnapshotAttributeName)), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "SnapshotId", required := true }, .string)] + toValue x := record [put "Attribute" x.«attribute», putOpt "DryRun" x.dryRun, put "SnapshotId" x.snapshotId] + ofValue v := do + let «attribute» ← v.req "Attribute" + let dryRun ← v.opt "DryRun" + let snapshotId ← v.req "SnapshotId" + return { «attribute», dryRun, snapshotId } + +/-- The options that affect the scope of the response. -/ +structure ResourceTypeOption where + /-- The name of the option. -/ + optionName : Option ImageReferenceOptionName := none + /-- A value for the specified option. -/ + optionValues : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResourceTypeOption where + schema := .struct "ResourceTypeOption" [({ name := "OptionName" }, (Shape.schema ImageReferenceOptionName)), + ({ name := "OptionValues", xmlName := some "OptionValue" }, (.list .string "member"))] + toValue x := record [putOpt "OptionName" x.optionName, putOpt "OptionValues" x.optionValues] + ofValue v := do + let optionName ← v.opt "OptionName" + let optionValues ← v.opt "OptionValues" + return { optionName, optionValues } + +/-- Describes the error that's returned when you cannot delete a launch template version. -/ +structure ResponseError where + /-- The error code. -/ + code : Option LaunchTemplateErrorCode := none + /-- The error message, if applicable. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResponseError where + schema := .struct "ResponseError" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, (Shape.schema LaunchTemplateErrorCode)), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +structure RestoreAddressToClassicResult where + /-- The Elastic IP address. -/ + publicIp : Option String := none + /-- The move status for the IP address. -/ + status : Option Status := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreAddressToClassicResult where + schema := .struct "RestoreAddressToClassicResult" [({ name := "PublicIp", xmlName := some "publicIp", queryName := some "PublicIp" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema Status))] + toValue x := record [putOpt "PublicIp" x.publicIp, putOpt "Status" x.status] + ofValue v := do + let publicIp ← v.opt "PublicIp" + let status ← v.opt "Status" + return { publicIp, status } + +structure RestoreSnapshotFromRecycleBinResult where + /-- The description for the snapshot. -/ + description : Option String := none + /-- Indicates whether the snapshot is encrypted. -/ + encrypted : Option Bool := none + /-- The ARN of the Outpost on which the snapshot is stored. -/ + outpostArn : Option String := none + /-- The ID of the Amazon Web Services account that owns the EBS snapshot. -/ + ownerId : Option String := none + /-- The progress of the snapshot, as a percentage. -/ + progress : Option String := none + /-- The ID of the snapshot. -/ + snapshotId : Option String := none + /-- Reserved for future use. -/ + sseType : Option SSEType := none + /-- The time stamp when the snapshot was initiated. -/ + startTime : Option Timestamp := none + /-- The state of the snapshot. -/ + state : Option SnapshotState := none + /-- The ID of the volume that was used to create the snapshot. -/ + volumeId : Option String := none + /-- The size of the volume, in GiB. -/ + volumeSize : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreSnapshotFromRecycleBinResult where + schema := .struct "RestoreSnapshotFromRecycleBinResult" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "Encrypted", xmlName := some "encrypted", queryName := some "Encrypted" }, .bool), + ({ name := "OutpostArn", xmlName := some "outpostArn", queryName := some "OutpostArn" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "Progress", xmlName := some "progress", queryName := some "Progress" }, .string), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string), + ({ name := "SseType", xmlName := some "sseType", queryName := some "SseType" }, (Shape.schema SSEType)), + ({ name := "StartTime", xmlName := some "startTime", queryName := some "StartTime" }, (.time none)), + ({ name := "State", xmlName := some "status", queryName := some "Status" }, (Shape.schema SnapshotState)), + ({ name := "VolumeId", xmlName := some "volumeId", queryName := some "VolumeId" }, .string), + ({ name := "VolumeSize", xmlName := some "volumeSize", queryName := some "VolumeSize" }, .int)] + toValue x := record [putOpt "Description" x.description, putOpt "Encrypted" x.encrypted, putOpt "OutpostArn" x.outpostArn, putOpt "OwnerId" x.ownerId, putOpt "Progress" x.progress, putOpt "SnapshotId" x.snapshotId, putOpt "SseType" x.sseType, putOpt "StartTime" x.startTime, putOpt "State" x.state, putOpt "VolumeId" x.volumeId, putOpt "VolumeSize" x.volumeSize] + ofValue v := do + let description ← v.opt "Description" + let encrypted ← v.opt "Encrypted" + let outpostArn ← v.opt "OutpostArn" + let ownerId ← v.opt "OwnerId" + let progress ← v.opt "Progress" + let snapshotId ← v.opt "SnapshotId" + let sseType ← v.opt "SseType" + let startTime ← v.opt "StartTime" + let state ← v.opt "State" + let volumeId ← v.opt "VolumeId" + let volumeSize ← v.opt "VolumeSize" + return { description, encrypted, outpostArn, ownerId, progress, snapshotId, sseType, startTime, state, volumeId, volumeSize } + +/-- Describes a route in a route table. -/ +structure Route where + /-- The ID of the carrier gateway. -/ + carrierGatewayId : Option String := none + /-- The Amazon Resource Name (ARN) of the core network. -/ + coreNetworkArn : Option String := none + /-- The IPv4 CIDR block used for the destination match. -/ + destinationCidrBlock : Option String := none + /-- The IPv6 CIDR block used for the destination match. -/ + destinationIpv6CidrBlock : Option String := none + /-- The prefix of the Amazon Web Services service. -/ + destinationPrefixListId : Option String := none + /-- The ID of the egress-only internet gateway. -/ + egressOnlyInternetGatewayId : Option String := none + /-- The ID of a gateway attached to your VPC. -/ + gatewayId : Option String := none + /-- The ID of a NAT instance in your VPC. -/ + instanceId : Option String := none + /-- The ID of Amazon Web Services account that owns the instance. -/ + instanceOwnerId : Option String := none + /-- The next hop IP address for routes propagated by VPC Route Server into VPC route tables. -/ + ipAddress : Option String := none + /-- The ID of the local gateway. -/ + localGatewayId : Option String := none + /-- The ID of a NAT gateway. -/ + natGatewayId : Option String := none + /-- The ID of the network interface. -/ + networkInterfaceId : Option String := none + /-- The Amazon Resource Name (ARN) of the ODB network. -/ + odbNetworkArn : Option String := none + /-- Describes how the route was created. -/ + origin : Option RouteOrigin := none + /-- The state of the route. -/ + state : Option RouteState := none + /-- The ID of a transit gateway. -/ + transitGatewayId : Option String := none + /-- The ID of a VPC peering connection. -/ + vpcPeeringConnectionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Route where + schema := .struct "Route" [({ name := "CarrierGatewayId", xmlName := some "carrierGatewayId", queryName := some "CarrierGatewayId" }, .string), + ({ name := "CoreNetworkArn", xmlName := some "coreNetworkArn", queryName := some "CoreNetworkArn" }, .string), + ({ name := "DestinationCidrBlock", xmlName := some "destinationCidrBlock", queryName := some "DestinationCidrBlock" }, .string), + ({ name := "DestinationIpv6CidrBlock", xmlName := some "destinationIpv6CidrBlock", queryName := some "DestinationIpv6CidrBlock" }, .string), + ({ name := "DestinationPrefixListId", xmlName := some "destinationPrefixListId", queryName := some "DestinationPrefixListId" }, .string), + ({ name := "EgressOnlyInternetGatewayId", xmlName := some "egressOnlyInternetGatewayId", queryName := some "EgressOnlyInternetGatewayId" }, .string), + ({ name := "GatewayId", xmlName := some "gatewayId", queryName := some "GatewayId" }, .string), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "InstanceOwnerId", xmlName := some "instanceOwnerId", queryName := some "InstanceOwnerId" }, .string), + ({ name := "IpAddress", xmlName := some "ipAddress", queryName := some "IpAddress" }, .string), + ({ name := "LocalGatewayId", xmlName := some "localGatewayId", queryName := some "LocalGatewayId" }, .string), + ({ name := "NatGatewayId", xmlName := some "natGatewayId", queryName := some "NatGatewayId" }, .string), + ({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "OdbNetworkArn", xmlName := some "odbNetworkArn", queryName := some "OdbNetworkArn" }, .string), + ({ name := "Origin", xmlName := some "origin", queryName := some "Origin" }, (Shape.schema RouteOrigin)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema RouteState)), + ({ name := "TransitGatewayId", xmlName := some "transitGatewayId", queryName := some "TransitGatewayId" }, .string), + ({ name := "VpcPeeringConnectionId", xmlName := some "vpcPeeringConnectionId", queryName := some "VpcPeeringConnectionId" }, .string)] + toValue x := record [putOpt "CarrierGatewayId" x.carrierGatewayId, putOpt "CoreNetworkArn" x.coreNetworkArn, putOpt "DestinationCidrBlock" x.destinationCidrBlock, putOpt "DestinationIpv6CidrBlock" x.destinationIpv6CidrBlock, putOpt "DestinationPrefixListId" x.destinationPrefixListId, putOpt "EgressOnlyInternetGatewayId" x.egressOnlyInternetGatewayId, putOpt "GatewayId" x.gatewayId, putOpt "InstanceId" x.instanceId, putOpt "InstanceOwnerId" x.instanceOwnerId, putOpt "IpAddress" x.ipAddress, putOpt "LocalGatewayId" x.localGatewayId, putOpt "NatGatewayId" x.natGatewayId, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "OdbNetworkArn" x.odbNetworkArn, putOpt "Origin" x.origin, putOpt "State" x.state, putOpt "TransitGatewayId" x.transitGatewayId, putOpt "VpcPeeringConnectionId" x.vpcPeeringConnectionId] + ofValue v := do + let carrierGatewayId ← v.opt "CarrierGatewayId" + let coreNetworkArn ← v.opt "CoreNetworkArn" + let destinationCidrBlock ← v.opt "DestinationCidrBlock" + let destinationIpv6CidrBlock ← v.opt "DestinationIpv6CidrBlock" + let destinationPrefixListId ← v.opt "DestinationPrefixListId" + let egressOnlyInternetGatewayId ← v.opt "EgressOnlyInternetGatewayId" + let gatewayId ← v.opt "GatewayId" + let instanceId ← v.opt "InstanceId" + let instanceOwnerId ← v.opt "InstanceOwnerId" + let ipAddress ← v.opt "IpAddress" + let localGatewayId ← v.opt "LocalGatewayId" + let natGatewayId ← v.opt "NatGatewayId" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let odbNetworkArn ← v.opt "OdbNetworkArn" + let origin ← v.opt "Origin" + let state ← v.opt "State" + let transitGatewayId ← v.opt "TransitGatewayId" + let vpcPeeringConnectionId ← v.opt "VpcPeeringConnectionId" + return { carrierGatewayId, coreNetworkArn, destinationCidrBlock, destinationIpv6CidrBlock, destinationPrefixListId, egressOnlyInternetGatewayId, gatewayId, instanceId, instanceOwnerId, ipAddress, localGatewayId, natGatewayId, networkInterfaceId, odbNetworkArn, origin, state, transitGatewayId, vpcPeeringConnectionId } + +/-- Describes a route server and its configuration. -/ +structure RouteServer where + /-- The Border Gateway Protocol (BGP) Autonomous System Number (ASN) for the appliance. -/ + amazonSideAsn : Option Int := none + /-- The number of minutes a route server will wait after BGP is re-established to unpersist the routes in the FIB and RIB. -/ + persistRoutesDuration : Option Int := none + /-- The current state of route persistence for the route server. -/ + persistRoutesState : Option RouteServerPersistRoutesState := none + /-- The unique identifier of the route server. -/ + routeServerId : Option String := none + /-- Indicates whether SNS notifications are enabled for the route server. -/ + snsNotificationsEnabled : Option Bool := none + /-- The ARN of the SNS topic where notifications are published. -/ + snsTopicArn : Option String := none + /-- The current state of the route server. -/ + state : Option RouteServerState := none + /-- Any tags assigned to the route server. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RouteServer where + schema := .struct "RouteServer" [({ name := "AmazonSideAsn", xmlName := some "amazonSideAsn", queryName := some "AmazonSideAsn" }, .int), + ({ name := "PersistRoutesDuration", xmlName := some "persistRoutesDuration", queryName := some "PersistRoutesDuration" }, .int), + ({ name := "PersistRoutesState", xmlName := some "persistRoutesState", queryName := some "PersistRoutesState" }, (Shape.schema RouteServerPersistRoutesState)), + ({ name := "RouteServerId", xmlName := some "routeServerId", queryName := some "RouteServerId" }, .string), + ({ name := "SnsNotificationsEnabled", xmlName := some "snsNotificationsEnabled", queryName := some "SnsNotificationsEnabled" }, .bool), + ({ name := "SnsTopicArn", xmlName := some "snsTopicArn", queryName := some "SnsTopicArn" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema RouteServerState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "AmazonSideAsn" x.amazonSideAsn, putOpt "PersistRoutesDuration" x.persistRoutesDuration, putOpt "PersistRoutesState" x.persistRoutesState, putOpt "RouteServerId" x.routeServerId, putOpt "SnsNotificationsEnabled" x.snsNotificationsEnabled, putOpt "SnsTopicArn" x.snsTopicArn, putOpt "State" x.state, putOpt "Tags" x.tags] + ofValue v := do + let amazonSideAsn ← v.opt "AmazonSideAsn" + let persistRoutesDuration ← v.opt "PersistRoutesDuration" + let persistRoutesState ← v.opt "PersistRoutesState" + let routeServerId ← v.opt "RouteServerId" + let snsNotificationsEnabled ← v.opt "SnsNotificationsEnabled" + let snsTopicArn ← v.opt "SnsTopicArn" + let state ← v.opt "State" + let tags ← v.opt "Tags" + return { amazonSideAsn, persistRoutesDuration, persistRoutesState, routeServerId, snsNotificationsEnabled, snsTopicArn, state, tags } + +/-- Describes the association between a route server and a VPC. -/ +structure RouteServerAssociation where + /-- The ID of the associated route server. -/ + routeServerId : Option String := none + /-- The current state of the association. -/ + state : Option RouteServerAssociationState := none + /-- The ID of the associated VPC. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RouteServerAssociation where + schema := .struct "RouteServerAssociation" [({ name := "RouteServerId", xmlName := some "routeServerId", queryName := some "RouteServerId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema RouteServerAssociationState)), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "RouteServerId" x.routeServerId, putOpt "State" x.state, putOpt "VpcId" x.vpcId] + ofValue v := do + let routeServerId ← v.opt "RouteServerId" + let state ← v.opt "State" + let vpcId ← v.opt "VpcId" + return { routeServerId, state, vpcId } + +/-- The current status of Bidirectional Forwarding Detection (BFD) for a BGP session. -/ +structure RouteServerBfdStatus where + /-- The operational status of the BFD session. -/ + status : Option RouteServerBfdState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RouteServerBfdStatus where + schema := .struct "RouteServerBfdStatus" [({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema RouteServerBfdState))] + toValue x := record [putOpt "Status" x.status] + ofValue v := do + let status ← v.opt "Status" + return { status } + +/-- The BGP configuration options for a route server peer. -/ +structure RouteServerBgpOptions where + /-- The Border Gateway Protocol (BGP) Autonomous System Number (ASN) for the appliance. -/ + peerAsn : Option Int := none + /-- The liveness detection protocol used for the BGP peer. -/ + peerLivenessDetection : Option RouteServerPeerLivenessMode := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RouteServerBgpOptions where + schema := .struct "RouteServerBgpOptions" [({ name := "PeerAsn", xmlName := some "peerAsn", queryName := some "PeerAsn" }, .int), + ({ name := "PeerLivenessDetection", xmlName := some "peerLivenessDetection", queryName := some "PeerLivenessDetection" }, (Shape.schema RouteServerPeerLivenessMode))] + toValue x := record [putOpt "PeerAsn" x.peerAsn, putOpt "PeerLivenessDetection" x.peerLivenessDetection] + ofValue v := do + let peerAsn ← v.opt "PeerAsn" + let peerLivenessDetection ← v.opt "PeerLivenessDetection" + return { peerAsn, peerLivenessDetection } + +/-- The BGP configuration options requested for a route server peer. -/ +structure RouteServerBgpOptionsRequest where + /-- The Border Gateway Protocol (BGP) Autonomous System Number (ASN) for the appliance. -/ + peerAsn : Int + /-- The requested liveness detection protocol for the BGP peer. -/ + peerLivenessDetection : Option RouteServerPeerLivenessMode := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RouteServerBgpOptionsRequest where + schema := .struct "RouteServerBgpOptionsRequest" [({ name := "PeerAsn", required := true }, .int), + ({ name := "PeerLivenessDetection" }, (Shape.schema RouteServerPeerLivenessMode))] + toValue x := record [put "PeerAsn" x.peerAsn, putOpt "PeerLivenessDetection" x.peerLivenessDetection] + ofValue v := do + let peerAsn ← v.req "PeerAsn" + let peerLivenessDetection ← v.opt "PeerLivenessDetection" + return { peerAsn, peerLivenessDetection } + +/-- The current status of a BGP session. -/ +structure RouteServerBgpStatus where + /-- The operational status of the BGP session. -/ + status : Option RouteServerBgpState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RouteServerBgpStatus where + schema := .struct "RouteServerBgpStatus" [({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema RouteServerBgpState))] + toValue x := record [putOpt "Status" x.status] + ofValue v := do + let status ← v.opt "Status" + return { status } + +/-- Describes a route server endpoint and its properties. -/ +structure RouteServerEndpoint where + /-- The IP address of the Elastic network interface for the endpoint. -/ + eniAddress : Option String := none + /-- The ID of the Elastic network interface for the endpoint. -/ + eniId : Option String := none + /-- The reason for any failure in endpoint creation or operation. -/ + failureReason : Option String := none + /-- The unique identifier of the route server endpoint. -/ + routeServerEndpointId : Option String := none + /-- The ID of the route server associated with this endpoint. -/ + routeServerId : Option String := none + /-- The current state of the route server endpoint. -/ + state : Option RouteServerEndpointState := none + /-- The ID of the subnet to place the route server endpoint into. -/ + subnetId : Option String := none + /-- Any tags assigned to the route server endpoint. -/ + tags : Option (List Tag) := none + /-- The ID of the VPC containing the endpoint. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RouteServerEndpoint where + schema := .struct "RouteServerEndpoint" [({ name := "EniAddress", xmlName := some "eniAddress", queryName := some "EniAddress" }, .string), + ({ name := "EniId", xmlName := some "eniId", queryName := some "EniId" }, .string), + ({ name := "FailureReason", xmlName := some "failureReason", queryName := some "FailureReason" }, .string), + ({ name := "RouteServerEndpointId", xmlName := some "routeServerEndpointId", queryName := some "RouteServerEndpointId" }, .string), + ({ name := "RouteServerId", xmlName := some "routeServerId", queryName := some "RouteServerId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema RouteServerEndpointState)), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "EniAddress" x.eniAddress, putOpt "EniId" x.eniId, putOpt "FailureReason" x.failureReason, putOpt "RouteServerEndpointId" x.routeServerEndpointId, putOpt "RouteServerId" x.routeServerId, putOpt "State" x.state, putOpt "SubnetId" x.subnetId, putOpt "Tags" x.tags, putOpt "VpcId" x.vpcId] + ofValue v := do + let eniAddress ← v.opt "EniAddress" + let eniId ← v.opt "EniId" + let failureReason ← v.opt "FailureReason" + let routeServerEndpointId ← v.opt "RouteServerEndpointId" + let routeServerId ← v.opt "RouteServerId" + let state ← v.opt "State" + let subnetId ← v.opt "SubnetId" + let tags ← v.opt "Tags" + let vpcId ← v.opt "VpcId" + return { eniAddress, eniId, failureReason, routeServerEndpointId, routeServerId, state, subnetId, tags, vpcId } + +/-- Describes the route propagation configuration between a route server and a route table. -/ +structure RouteServerPropagation where + /-- The ID of the route server configured for route propagation. -/ + routeServerId : Option String := none + /-- The ID of the route table configured for route server propagation. -/ + routeTableId : Option String := none + /-- The current state of route propagation. -/ + state : Option RouteServerPropagationState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RouteServerPropagation where + schema := .struct "RouteServerPropagation" [({ name := "RouteServerId", xmlName := some "routeServerId", queryName := some "RouteServerId" }, .string), + ({ name := "RouteTableId", xmlName := some "routeTableId", queryName := some "RouteTableId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema RouteServerPropagationState))] + toValue x := record [putOpt "RouteServerId" x.routeServerId, putOpt "RouteTableId" x.routeTableId, putOpt "State" x.state] + ofValue v := do + let routeServerId ← v.opt "RouteServerId" + let routeTableId ← v.opt "RouteTableId" + let state ← v.opt "State" + return { routeServerId, routeTableId, state } + +/-- Describes the installation status of a route in a route table. -/ +structure RouteServerRouteInstallationDetail where + /-- The current installation status of the route in the route table. -/ + routeInstallationStatus : Option RouteServerRouteInstallationStatus := none + /-- The reason for the current installation status of the route. -/ + routeInstallationStatusReason : Option String := none + /-- The ID of the route table where the route is being installed. -/ + routeTableId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RouteServerRouteInstallationDetail where + schema := .struct "RouteServerRouteInstallationDetail" [({ name := "RouteInstallationStatus", xmlName := some "routeInstallationStatus", queryName := some "RouteInstallationStatus" }, (Shape.schema RouteServerRouteInstallationStatus)), + ({ name := "RouteInstallationStatusReason", xmlName := some "routeInstallationStatusReason", queryName := some "RouteInstallationStatusReason" }, .string), + ({ name := "RouteTableId", xmlName := some "routeTableId", queryName := some "RouteTableId" }, .string)] + toValue x := record [putOpt "RouteInstallationStatus" x.routeInstallationStatus, putOpt "RouteInstallationStatusReason" x.routeInstallationStatusReason, putOpt "RouteTableId" x.routeTableId] + ofValue v := do + let routeInstallationStatus ← v.opt "RouteInstallationStatus" + let routeInstallationStatusReason ← v.opt "RouteInstallationStatusReason" + let routeTableId ← v.opt "RouteTableId" + return { routeInstallationStatus, routeInstallationStatusReason, routeTableId } + +/-- Describes the state of an association between a route table and a subnet or gateway. -/ +structure RouteTableAssociationState where + /-- The state of the association. -/ + state : Option RouteTableAssociationStateCode := none + /-- The status message, if applicable. -/ + statusMessage : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RouteTableAssociationState where + schema := .struct "RouteTableAssociationState" [({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema RouteTableAssociationStateCode)), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string)] + toValue x := record [putOpt "State" x.state, putOpt "StatusMessage" x.statusMessage] + ofValue v := do + let state ← v.opt "State" + let statusMessage ← v.opt "StatusMessage" + return { state, statusMessage } + +/-- Describes the rule options for a stateful rule group. -/ +structure RuleGroupRuleOptionsPair where + /-- The ARN of the rule group. -/ + ruleGroupArn : Option String := none + /-- The rule options. -/ + ruleOptions : Option (List RuleOption) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RuleGroupRuleOptionsPair where + schema := .struct "RuleGroupRuleOptionsPair" [({ name := "RuleGroupArn", xmlName := some "ruleGroupArn", queryName := some "RuleGroupArn" }, .string), + ({ name := "RuleOptions", xmlName := some "ruleOptionSet", queryName := some "RuleOptionSet" }, (.list (Shape.schema RuleOption) "item"))] + toValue x := record [putOpt "RuleGroupArn" x.ruleGroupArn, putOpt "RuleOptions" x.ruleOptions] + ofValue v := do + let ruleGroupArn ← v.opt "RuleGroupArn" + let ruleOptions ← v.opt "RuleOptions" + return { ruleGroupArn, ruleOptions } + +/-- The Amazon Inspector scan-result criteria that an AMI must meet to be allowed. -/ +structure ScanResultCondition where + /-- The maximum number of days since Amazon Inspector reported a fix as available for a critical severity finding on the AMI. -/ + maxDaysSinceCriticalFixAvailable : Option Int := none + /-- The maximum number of days since Amazon Inspector reported a fix as available for a high severity finding on the AMI. -/ + maxDaysSinceHighFixAvailable : Option Int := none + /-- The maximum number of days since Amazon Inspector reported a fix as available for an informational severity finding on the AMI. -/ + maxDaysSinceInformationalFixAvailable : Option Int := none + /-- The maximum number of days that have elapsed since Amazon Inspector last scanned the AMI. -/ + maxDaysSinceLastFindingScan : Option Int := none + /-- The maximum number of days since Amazon Inspector reported a fix as available for a low severity finding on the AMI. -/ + maxDaysSinceLowFixAvailable : Option Int := none + /-- The maximum number of days since Amazon Inspector reported a fix as available for a medium severity finding on the AMI. -/ + maxDaysSinceMediumFixAvailable : Option Int := none + /-- The maximum severity that an AMI's Amazon Inspector findings can have for the AMI to be allowed. -/ + maximumSeverityLabel : Option SeverityLabel := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ScanResultCondition where + schema := .struct "ScanResultCondition" [({ name := "MaxDaysSinceCriticalFixAvailable", xmlName := some "maxDaysSinceCriticalFixAvailable", queryName := some "MaxDaysSinceCriticalFixAvailable" }, .int), + ({ name := "MaxDaysSinceHighFixAvailable", xmlName := some "maxDaysSinceHighFixAvailable", queryName := some "MaxDaysSinceHighFixAvailable" }, .int), + ({ name := "MaxDaysSinceInformationalFixAvailable", xmlName := some "maxDaysSinceInformationalFixAvailable", queryName := some "MaxDaysSinceInformationalFixAvailable" }, .int), + ({ name := "MaxDaysSinceLastFindingScan", xmlName := some "maxDaysSinceLastFindingScan", queryName := some "MaxDaysSinceLastFindingScan" }, .int), + ({ name := "MaxDaysSinceLowFixAvailable", xmlName := some "maxDaysSinceLowFixAvailable", queryName := some "MaxDaysSinceLowFixAvailable" }, .int), + ({ name := "MaxDaysSinceMediumFixAvailable", xmlName := some "maxDaysSinceMediumFixAvailable", queryName := some "MaxDaysSinceMediumFixAvailable" }, .int), + ({ name := "MaximumSeverityLabel", xmlName := some "maximumSeverityLabel", queryName := some "MaximumSeverityLabel" }, (Shape.schema SeverityLabel))] + toValue x := record [putOpt "MaxDaysSinceCriticalFixAvailable" x.maxDaysSinceCriticalFixAvailable, putOpt "MaxDaysSinceHighFixAvailable" x.maxDaysSinceHighFixAvailable, putOpt "MaxDaysSinceInformationalFixAvailable" x.maxDaysSinceInformationalFixAvailable, putOpt "MaxDaysSinceLastFindingScan" x.maxDaysSinceLastFindingScan, putOpt "MaxDaysSinceLowFixAvailable" x.maxDaysSinceLowFixAvailable, putOpt "MaxDaysSinceMediumFixAvailable" x.maxDaysSinceMediumFixAvailable, putOpt "MaximumSeverityLabel" x.maximumSeverityLabel] + ofValue v := do + let maxDaysSinceCriticalFixAvailable ← v.opt "MaxDaysSinceCriticalFixAvailable" + let maxDaysSinceHighFixAvailable ← v.opt "MaxDaysSinceHighFixAvailable" + let maxDaysSinceInformationalFixAvailable ← v.opt "MaxDaysSinceInformationalFixAvailable" + let maxDaysSinceLastFindingScan ← v.opt "MaxDaysSinceLastFindingScan" + let maxDaysSinceLowFixAvailable ← v.opt "MaxDaysSinceLowFixAvailable" + let maxDaysSinceMediumFixAvailable ← v.opt "MaxDaysSinceMediumFixAvailable" + let maximumSeverityLabel ← v.opt "MaximumSeverityLabel" + return { maxDaysSinceCriticalFixAvailable, maxDaysSinceHighFixAvailable, maxDaysSinceInformationalFixAvailable, maxDaysSinceLastFindingScan, maxDaysSinceLowFixAvailable, maxDaysSinceMediumFixAvailable, maximumSeverityLabel } + +/-- The Amazon Inspector scan-result criteria that an AMI must meet to be allowed. -/ +structure ScanResultConditionRequest where + /-- The maximum number of days since Amazon Inspector reported a fix as available for a critical severity finding on the AMI. -/ + maxDaysSinceCriticalFixAvailable : Option Int := none + /-- The maximum number of days since Amazon Inspector reported a fix as available for a high severity finding on the AMI. -/ + maxDaysSinceHighFixAvailable : Option Int := none + /-- The maximum number of days since Amazon Inspector reported a fix as available for an informational severity finding on the AMI. -/ + maxDaysSinceInformationalFixAvailable : Option Int := none + /-- The maximum number of days that have elapsed since Amazon Inspector last scanned the AMI. -/ + maxDaysSinceLastFindingScan : Option Int := none + /-- The maximum number of days since Amazon Inspector reported a fix as available for a low severity finding on the AMI. -/ + maxDaysSinceLowFixAvailable : Option Int := none + /-- The maximum number of days since Amazon Inspector reported a fix as available for a medium severity finding on the AMI. -/ + maxDaysSinceMediumFixAvailable : Option Int := none + /-- The maximum severity that an AMI's Amazon Inspector findings can have for the AMI to be allowed. -/ + maximumSeverityLabel : Option SeverityLabel := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ScanResultConditionRequest where + schema := .struct "ScanResultConditionRequest" [({ name := "MaxDaysSinceCriticalFixAvailable" }, .int), + ({ name := "MaxDaysSinceHighFixAvailable" }, .int), + ({ name := "MaxDaysSinceInformationalFixAvailable" }, .int), + ({ name := "MaxDaysSinceLastFindingScan" }, .int), + ({ name := "MaxDaysSinceLowFixAvailable" }, .int), + ({ name := "MaxDaysSinceMediumFixAvailable" }, .int), + ({ name := "MaximumSeverityLabel" }, (Shape.schema SeverityLabel))] + toValue x := record [putOpt "MaxDaysSinceCriticalFixAvailable" x.maxDaysSinceCriticalFixAvailable, putOpt "MaxDaysSinceHighFixAvailable" x.maxDaysSinceHighFixAvailable, putOpt "MaxDaysSinceInformationalFixAvailable" x.maxDaysSinceInformationalFixAvailable, putOpt "MaxDaysSinceLastFindingScan" x.maxDaysSinceLastFindingScan, putOpt "MaxDaysSinceLowFixAvailable" x.maxDaysSinceLowFixAvailable, putOpt "MaxDaysSinceMediumFixAvailable" x.maxDaysSinceMediumFixAvailable, putOpt "MaximumSeverityLabel" x.maximumSeverityLabel] + ofValue v := do + let maxDaysSinceCriticalFixAvailable ← v.opt "MaxDaysSinceCriticalFixAvailable" + let maxDaysSinceHighFixAvailable ← v.opt "MaxDaysSinceHighFixAvailable" + let maxDaysSinceInformationalFixAvailable ← v.opt "MaxDaysSinceInformationalFixAvailable" + let maxDaysSinceLastFindingScan ← v.opt "MaxDaysSinceLastFindingScan" + let maxDaysSinceLowFixAvailable ← v.opt "MaxDaysSinceLowFixAvailable" + let maxDaysSinceMediumFixAvailable ← v.opt "MaxDaysSinceMediumFixAvailable" + let maximumSeverityLabel ← v.opt "MaximumSeverityLabel" + return { maxDaysSinceCriticalFixAvailable, maxDaysSinceHighFixAvailable, maxDaysSinceInformationalFixAvailable, maxDaysSinceLastFindingScan, maxDaysSinceLowFixAvailable, maxDaysSinceMediumFixAvailable, maximumSeverityLabel } + +/-- The Amazon Inspector scan results for an AMI. -/ +structure ScanResults where + /-- The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for a critical severity finding on the AMI. -/ + criticalFixAvailableSince : Option Timestamp := none + /-- The date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), of the most recent Amazon Inspector scan of the AMI. -/ + findingScanDate : Option Timestamp := none + /-- The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for a high severity finding on the AMI. -/ + highFixAvailableSince : Option Timestamp := none + /-- The highest severity among the AMI's Amazon Inspector findings, whether or not a fix is available. -/ + highestFindingSeverityLabel : Option SeverityLabel := none + /-- The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for an informational severity finding on the AMI. -/ + informationalFixAvailableSince : Option Timestamp := none + /-- The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for a low severity finding on the AMI. -/ + lowFixAvailableSince : Option Timestamp := none + /-- The earliest date and time, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix as available for a medium severity finding on the AMI. -/ + mediumFixAvailableSince : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ScanResults where + schema := .struct "ScanResults" [({ name := "CriticalFixAvailableSince", xmlName := some "criticalFixAvailableSince", queryName := some "CriticalFixAvailableSince" }, (.time none)), + ({ name := "FindingScanDate", xmlName := some "findingScanDate", queryName := some "FindingScanDate" }, (.time none)), + ({ name := "HighFixAvailableSince", xmlName := some "highFixAvailableSince", queryName := some "HighFixAvailableSince" }, (.time none)), + ({ name := "HighestFindingSeverityLabel", xmlName := some "highestFindingSeverityLabel", queryName := some "HighestFindingSeverityLabel" }, (Shape.schema SeverityLabel)), + ({ name := "InformationalFixAvailableSince", xmlName := some "informationalFixAvailableSince", queryName := some "InformationalFixAvailableSince" }, (.time none)), + ({ name := "LowFixAvailableSince", xmlName := some "lowFixAvailableSince", queryName := some "LowFixAvailableSince" }, (.time none)), + ({ name := "MediumFixAvailableSince", xmlName := some "mediumFixAvailableSince", queryName := some "MediumFixAvailableSince" }, (.time none))] + toValue x := record [putOpt "CriticalFixAvailableSince" x.criticalFixAvailableSince, putOpt "FindingScanDate" x.findingScanDate, putOpt "HighFixAvailableSince" x.highFixAvailableSince, putOpt "HighestFindingSeverityLabel" x.highestFindingSeverityLabel, putOpt "InformationalFixAvailableSince" x.informationalFixAvailableSince, putOpt "LowFixAvailableSince" x.lowFixAvailableSince, putOpt "MediumFixAvailableSince" x.mediumFixAvailableSince] + ofValue v := do + let criticalFixAvailableSince ← v.opt "CriticalFixAvailableSince" + let findingScanDate ← v.opt "FindingScanDate" + let highFixAvailableSince ← v.opt "HighFixAvailableSince" + let highestFindingSeverityLabel ← v.opt "HighestFindingSeverityLabel" + let informationalFixAvailableSince ← v.opt "InformationalFixAvailableSince" + let lowFixAvailableSince ← v.opt "LowFixAvailableSince" + let mediumFixAvailableSince ← v.opt "MediumFixAvailableSince" + return { criticalFixAvailableSince, findingScanDate, highFixAvailableSince, highestFindingSeverityLabel, informationalFixAvailableSince, lowFixAvailableSince, mediumFixAvailableSince } + +/-- Describes a Scheduled Instance. -/ +structure ScheduledInstance where + /-- The Availability Zone. -/ + availabilityZone : Option String := none + /-- The date when the Scheduled Instance was purchased. -/ + createDate : Option Timestamp := none + /-- The hourly price for a single instance. -/ + hourlyPrice : Option String := none + /-- The number of instances. -/ + instanceCount : Option Int := none + /-- The instance type. -/ + instanceType : Option String := none + /-- The network platform. -/ + networkPlatform : Option String := none + /-- The time for the next schedule to start. -/ + nextSlotStartTime : Option Timestamp := none + /-- The platform ( Linux/UNIX or Windows ). -/ + platform : Option String := none + /-- The time that the previous schedule ended or will end. -/ + previousSlotEndTime : Option Timestamp := none + /-- The schedule recurrence. -/ + recurrence : Option ScheduledInstanceRecurrence := none + /-- The Scheduled Instance ID. -/ + scheduledInstanceId : Option String := none + /-- The number of hours in the schedule. -/ + slotDurationInHours : Option Int := none + /-- The end date for the Scheduled Instance. -/ + termEndDate : Option Timestamp := none + /-- The start date for the Scheduled Instance. -/ + termStartDate : Option Timestamp := none + /-- The total number of hours for a single instance for the entire term. -/ + totalScheduledInstanceHours : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ScheduledInstance where + schema := .struct "ScheduledInstance" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "CreateDate", xmlName := some "createDate", queryName := some "CreateDate" }, (.time none)), + ({ name := "HourlyPrice", xmlName := some "hourlyPrice", queryName := some "HourlyPrice" }, .string), + ({ name := "InstanceCount", xmlName := some "instanceCount", queryName := some "InstanceCount" }, .int), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, .string), + ({ name := "NetworkPlatform", xmlName := some "networkPlatform", queryName := some "NetworkPlatform" }, .string), + ({ name := "NextSlotStartTime", xmlName := some "nextSlotStartTime", queryName := some "NextSlotStartTime" }, (.time none)), + ({ name := "Platform", xmlName := some "platform", queryName := some "Platform" }, .string), + ({ name := "PreviousSlotEndTime", xmlName := some "previousSlotEndTime", queryName := some "PreviousSlotEndTime" }, (.time none)), + ({ name := "Recurrence", xmlName := some "recurrence", queryName := some "Recurrence" }, (Shape.schema ScheduledInstanceRecurrence)), + ({ name := "ScheduledInstanceId", xmlName := some "scheduledInstanceId", queryName := some "ScheduledInstanceId" }, .string), + ({ name := "SlotDurationInHours", xmlName := some "slotDurationInHours", queryName := some "SlotDurationInHours" }, .int), + ({ name := "TermEndDate", xmlName := some "termEndDate", queryName := some "TermEndDate" }, (.time none)), + ({ name := "TermStartDate", xmlName := some "termStartDate", queryName := some "TermStartDate" }, (.time none)), + ({ name := "TotalScheduledInstanceHours", xmlName := some "totalScheduledInstanceHours", queryName := some "TotalScheduledInstanceHours" }, .int)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "CreateDate" x.createDate, putOpt "HourlyPrice" x.hourlyPrice, putOpt "InstanceCount" x.instanceCount, putOpt "InstanceType" x.instanceType, putOpt "NetworkPlatform" x.networkPlatform, putOpt "NextSlotStartTime" x.nextSlotStartTime, putOpt "Platform" x.platform, putOpt "PreviousSlotEndTime" x.previousSlotEndTime, putOpt "Recurrence" x.recurrence, putOpt "ScheduledInstanceId" x.scheduledInstanceId, putOpt "SlotDurationInHours" x.slotDurationInHours, putOpt "TermEndDate" x.termEndDate, putOpt "TermStartDate" x.termStartDate, putOpt "TotalScheduledInstanceHours" x.totalScheduledInstanceHours] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let createDate ← v.opt "CreateDate" + let hourlyPrice ← v.opt "HourlyPrice" + let instanceCount ← v.opt "InstanceCount" + let instanceType ← v.opt "InstanceType" + let networkPlatform ← v.opt "NetworkPlatform" + let nextSlotStartTime ← v.opt "NextSlotStartTime" + let platform ← v.opt "Platform" + let previousSlotEndTime ← v.opt "PreviousSlotEndTime" + let recurrence ← v.opt "Recurrence" + let scheduledInstanceId ← v.opt "ScheduledInstanceId" + let slotDurationInHours ← v.opt "SlotDurationInHours" + let termEndDate ← v.opt "TermEndDate" + let termStartDate ← v.opt "TermStartDate" + let totalScheduledInstanceHours ← v.opt "TotalScheduledInstanceHours" + return { availabilityZone, createDate, hourlyPrice, instanceCount, instanceType, networkPlatform, nextSlotStartTime, platform, previousSlotEndTime, recurrence, scheduledInstanceId, slotDurationInHours, termEndDate, termStartDate, totalScheduledInstanceHours } + +/-- Describes a schedule that is available for your Scheduled Instances. -/ +structure ScheduledInstanceAvailability where + /-- The Availability Zone. -/ + availabilityZone : Option String := none + /-- The number of available instances. -/ + availableInstanceCount : Option Int := none + /-- The time period for the first schedule to start. -/ + firstSlotStartTime : Option Timestamp := none + /-- The hourly price for a single instance. -/ + hourlyPrice : Option String := none + /-- The instance type. -/ + instanceType : Option String := none + /-- The maximum term. -/ + maxTermDurationInDays : Option Int := none + /-- The minimum term. -/ + minTermDurationInDays : Option Int := none + /-- The network platform. -/ + networkPlatform : Option String := none + /-- The platform ( Linux/UNIX or Windows ). -/ + platform : Option String := none + /-- The purchase token. -/ + purchaseToken : Option String := none + /-- The schedule recurrence. -/ + recurrence : Option ScheduledInstanceRecurrence := none + /-- The number of hours in the schedule. -/ + slotDurationInHours : Option Int := none + /-- The total number of hours for a single instance for the entire term. -/ + totalScheduledInstanceHours : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ScheduledInstanceAvailability where + schema := .struct "ScheduledInstanceAvailability" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailableInstanceCount", xmlName := some "availableInstanceCount", queryName := some "AvailableInstanceCount" }, .int), + ({ name := "FirstSlotStartTime", xmlName := some "firstSlotStartTime", queryName := some "FirstSlotStartTime" }, (.time none)), + ({ name := "HourlyPrice", xmlName := some "hourlyPrice", queryName := some "HourlyPrice" }, .string), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, .string), + ({ name := "MaxTermDurationInDays", xmlName := some "maxTermDurationInDays", queryName := some "MaxTermDurationInDays" }, .int), + ({ name := "MinTermDurationInDays", xmlName := some "minTermDurationInDays", queryName := some "MinTermDurationInDays" }, .int), + ({ name := "NetworkPlatform", xmlName := some "networkPlatform", queryName := some "NetworkPlatform" }, .string), + ({ name := "Platform", xmlName := some "platform", queryName := some "Platform" }, .string), + ({ name := "PurchaseToken", xmlName := some "purchaseToken", queryName := some "PurchaseToken" }, .string), + ({ name := "Recurrence", xmlName := some "recurrence", queryName := some "Recurrence" }, (Shape.schema ScheduledInstanceRecurrence)), + ({ name := "SlotDurationInHours", xmlName := some "slotDurationInHours", queryName := some "SlotDurationInHours" }, .int), + ({ name := "TotalScheduledInstanceHours", xmlName := some "totalScheduledInstanceHours", queryName := some "TotalScheduledInstanceHours" }, .int)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailableInstanceCount" x.availableInstanceCount, putOpt "FirstSlotStartTime" x.firstSlotStartTime, putOpt "HourlyPrice" x.hourlyPrice, putOpt "InstanceType" x.instanceType, putOpt "MaxTermDurationInDays" x.maxTermDurationInDays, putOpt "MinTermDurationInDays" x.minTermDurationInDays, putOpt "NetworkPlatform" x.networkPlatform, putOpt "Platform" x.platform, putOpt "PurchaseToken" x.purchaseToken, putOpt "Recurrence" x.recurrence, putOpt "SlotDurationInHours" x.slotDurationInHours, putOpt "TotalScheduledInstanceHours" x.totalScheduledInstanceHours] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availableInstanceCount ← v.opt "AvailableInstanceCount" + let firstSlotStartTime ← v.opt "FirstSlotStartTime" + let hourlyPrice ← v.opt "HourlyPrice" + let instanceType ← v.opt "InstanceType" + let maxTermDurationInDays ← v.opt "MaxTermDurationInDays" + let minTermDurationInDays ← v.opt "MinTermDurationInDays" + let networkPlatform ← v.opt "NetworkPlatform" + let platform ← v.opt "Platform" + let purchaseToken ← v.opt "PurchaseToken" + let recurrence ← v.opt "Recurrence" + let slotDurationInHours ← v.opt "SlotDurationInHours" + let totalScheduledInstanceHours ← v.opt "TotalScheduledInstanceHours" + return { availabilityZone, availableInstanceCount, firstSlotStartTime, hourlyPrice, instanceType, maxTermDurationInDays, minTermDurationInDays, networkPlatform, platform, purchaseToken, recurrence, slotDurationInHours, totalScheduledInstanceHours } + +/-- Describes a block device mapping for a Scheduled Instance. -/ +structure ScheduledInstancesBlockDeviceMapping where + /-- The device name (for example, /dev/sdh or xvdh ). -/ + deviceName : Option String := none + /-- Parameters used to set up EBS volumes automatically when the instance is launched. -/ + ebs : Option ScheduledInstancesEbs := none + /-- To omit the device from the block device mapping, specify an empty string. -/ + noDevice : Option String := none + /-- The virtual device name ( ephemeral N). -/ + virtualName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ScheduledInstancesBlockDeviceMapping where + schema := .struct "ScheduledInstancesBlockDeviceMapping" [({ name := "DeviceName" }, .string), + ({ name := "Ebs" }, (Shape.schema ScheduledInstancesEbs)), + ({ name := "NoDevice" }, .string), + ({ name := "VirtualName" }, .string)] + toValue x := record [putOpt "DeviceName" x.deviceName, putOpt "Ebs" x.ebs, putOpt "NoDevice" x.noDevice, putOpt "VirtualName" x.virtualName] + ofValue v := do + let deviceName ← v.opt "DeviceName" + let ebs ← v.opt "Ebs" + let noDevice ← v.opt "NoDevice" + let virtualName ← v.opt "VirtualName" + return { deviceName, ebs, noDevice, virtualName } + +/-- Describes a network interface for a Scheduled Instance. -/ +structure ScheduledInstancesNetworkInterface where + /-- Indicates whether to assign a public IPv4 address to instances launched in a VPC. -/ + associatePublicIpAddress : Option Bool := none + /-- Indicates whether to delete the interface when the instance is terminated. -/ + deleteOnTermination : Option Bool := none + /-- The description. -/ + description : Option String := none + /-- The index of the device for the network interface attachment. -/ + deviceIndex : Option Int := none + /-- The IDs of the security groups. -/ + groups : Option (List String) := none + /-- The number of IPv6 addresses to assign to the network interface. -/ + ipv6AddressCount : Option Int := none + /-- The specific IPv6 addresses from the subnet range. -/ + ipv6Addresses : Option (List ScheduledInstancesIpv6Address) := none + /-- The ID of the network interface. -/ + networkInterfaceId : Option String := none + /-- The IPv4 address of the network interface within the subnet. -/ + privateIpAddress : Option String := none + /-- The private IPv4 addresses. -/ + privateIpAddressConfigs : Option (List ScheduledInstancesPrivateIpAddressConfig) := none + /-- The number of secondary private IPv4 addresses. -/ + secondaryPrivateIpAddressCount : Option Int := none + /-- The ID of the subnet. -/ + subnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ScheduledInstancesNetworkInterface where + schema := .struct "ScheduledInstancesNetworkInterface" [({ name := "AssociatePublicIpAddress" }, .bool), + ({ name := "DeleteOnTermination" }, .bool), + ({ name := "Description" }, .string), + ({ name := "DeviceIndex" }, .int), + ({ name := "Groups", xmlName := some "Group" }, (.list .string "SecurityGroupId")), + ({ name := "Ipv6AddressCount" }, .int), + ({ name := "Ipv6Addresses", xmlName := some "Ipv6Address" }, (.list (Shape.schema ScheduledInstancesIpv6Address) "Ipv6Address")), + ({ name := "NetworkInterfaceId" }, .string), + ({ name := "PrivateIpAddress" }, .string), + ({ name := "PrivateIpAddressConfigs", xmlName := some "PrivateIpAddressConfig" }, (.list (Shape.schema ScheduledInstancesPrivateIpAddressConfig) "PrivateIpAddressConfigSet")), + ({ name := "SecondaryPrivateIpAddressCount" }, .int), + ({ name := "SubnetId" }, .string)] + toValue x := record [putOpt "AssociatePublicIpAddress" x.associatePublicIpAddress, putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "Description" x.description, putOpt "DeviceIndex" x.deviceIndex, putOpt "Groups" x.groups, putOpt "Ipv6AddressCount" x.ipv6AddressCount, putOpt "Ipv6Addresses" x.ipv6Addresses, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "PrivateIpAddress" x.privateIpAddress, putOpt "PrivateIpAddressConfigs" x.privateIpAddressConfigs, putOpt "SecondaryPrivateIpAddressCount" x.secondaryPrivateIpAddressCount, putOpt "SubnetId" x.subnetId] + ofValue v := do + let associatePublicIpAddress ← v.opt "AssociatePublicIpAddress" + let deleteOnTermination ← v.opt "DeleteOnTermination" + let description ← v.opt "Description" + let deviceIndex ← v.opt "DeviceIndex" + let groups ← v.opt "Groups" + let ipv6AddressCount ← v.opt "Ipv6AddressCount" + let ipv6Addresses ← v.opt "Ipv6Addresses" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let privateIpAddress ← v.opt "PrivateIpAddress" + let privateIpAddressConfigs ← v.opt "PrivateIpAddressConfigs" + let secondaryPrivateIpAddressCount ← v.opt "SecondaryPrivateIpAddressCount" + let subnetId ← v.opt "SubnetId" + return { associatePublicIpAddress, deleteOnTermination, description, deviceIndex, groups, ipv6AddressCount, ipv6Addresses, networkInterfaceId, privateIpAddress, privateIpAddressConfigs, secondaryPrivateIpAddressCount, subnetId } + +structure SearchLocalGatewayRoutesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The ID of the local gateway route table. -/ + localGatewayRouteTableId : String + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SearchLocalGatewayRoutesRequest where + schema := .struct "SearchLocalGatewayRoutesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "LocalGatewayRouteTableId", required := true }, .string), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, put "LocalGatewayRouteTableId" x.localGatewayRouteTableId, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let localGatewayRouteTableId ← v.req "LocalGatewayRouteTableId" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { dryRun, filters, localGatewayRouteTableId, maxResults, nextToken } + +structure SearchTransitGatewayMulticastGroupsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : Option (List Filter) := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the transit gateway multicast domain. -/ + transitGatewayMulticastDomainId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape SearchTransitGatewayMulticastGroupsRequest where + schema := .struct "SearchTransitGatewayMulticastGroupsRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayMulticastDomainId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "TransitGatewayMulticastDomainId" x.transitGatewayMulticastDomainId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.opt "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayMulticastDomainId ← v.req "TransitGatewayMulticastDomainId" + return { dryRun, filters, maxResults, nextToken, transitGatewayMulticastDomainId } + +structure SearchTransitGatewayRoutesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more filters. -/ + filters : (List Filter) + /-- The maximum number of routes to return. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The ID of the transit gateway route table. -/ + transitGatewayRouteTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape SearchTransitGatewayRoutesRequest where + schema := .struct "SearchTransitGatewayRoutesRequest" [({ name := "DryRun" }, .bool), + ({ name := "Filters", required := true, xmlName := some "Filter" }, (.list (Shape.schema Filter) "Filter")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "TransitGatewayRouteTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "Filters" x.filters, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let filters ← v.req "Filters" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let transitGatewayRouteTableId ← v.req "TransitGatewayRouteTableId" + return { dryRun, filters, maxResults, nextToken, transitGatewayRouteTableId } + +/-- Describes the attachment of a secondary interface to an instance. -/ +structure SecondaryInterfaceAttachment where + /-- The timestamp when the attachment was created. -/ + attachTime : Option Timestamp := none + /-- The ID of the attachment. -/ + attachmentId : Option String := none + /-- Indicates whether the secondary interface is deleted when the instance is terminated. -/ + deleteOnTermination : Option Bool := none + /-- The device index of the secondary interface. -/ + deviceIndex : Option Int := none + /-- The ID of the instance to which the secondary interface is attached. -/ + instanceId : Option String := none + /-- The Amazon Web Services account ID of the owner of the instance. -/ + instanceOwnerId : Option String := none + /-- The index of the network card. -/ + networkCardIndex : Option Int := none + /-- The attachment state. -/ + status : Option AttachmentStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SecondaryInterfaceAttachment where + schema := .struct "SecondaryInterfaceAttachment" [({ name := "AttachTime", xmlName := some "attachTime", queryName := some "AttachTime" }, (.time none)), + ({ name := "AttachmentId", xmlName := some "attachmentId", queryName := some "AttachmentId" }, .string), + ({ name := "DeleteOnTermination", xmlName := some "deleteOnTermination", queryName := some "DeleteOnTermination" }, .bool), + ({ name := "DeviceIndex", xmlName := some "deviceIndex", queryName := some "DeviceIndex" }, .int), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "InstanceOwnerId", xmlName := some "instanceOwnerId", queryName := some "InstanceOwnerId" }, .string), + ({ name := "NetworkCardIndex", xmlName := some "networkCardIndex", queryName := some "NetworkCardIndex" }, .int), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema AttachmentStatus))] + toValue x := record [putOpt "AttachTime" x.attachTime, putOpt "AttachmentId" x.attachmentId, putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "DeviceIndex" x.deviceIndex, putOpt "InstanceId" x.instanceId, putOpt "InstanceOwnerId" x.instanceOwnerId, putOpt "NetworkCardIndex" x.networkCardIndex, putOpt "Status" x.status] + ofValue v := do + let attachTime ← v.opt "AttachTime" + let attachmentId ← v.opt "AttachmentId" + let deleteOnTermination ← v.opt "DeleteOnTermination" + let deviceIndex ← v.opt "DeviceIndex" + let instanceId ← v.opt "InstanceId" + let instanceOwnerId ← v.opt "InstanceOwnerId" + let networkCardIndex ← v.opt "NetworkCardIndex" + let status ← v.opt "Status" + return { attachTime, attachmentId, deleteOnTermination, deviceIndex, instanceId, instanceOwnerId, networkCardIndex, status } + +/-- Describes an IPv4 CIDR block associated with a secondary network. -/ +structure SecondaryNetworkIpv4CidrBlockAssociation where + /-- The association ID for the IPv4 CIDR block. -/ + associationId : Option String := none + /-- The IPv4 CIDR block. -/ + cidrBlock : Option String := none + /-- The state of the CIDR block association. -/ + state : Option SecondaryNetworkCidrBlockAssociationState := none + /-- The reason for the current state of the CIDR block association. -/ + stateReason : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SecondaryNetworkIpv4CidrBlockAssociation where + schema := .struct "SecondaryNetworkIpv4CidrBlockAssociation" [({ name := "AssociationId", xmlName := some "associationId", queryName := some "AssociationId" }, .string), + ({ name := "CidrBlock", xmlName := some "cidrBlock", queryName := some "CidrBlock" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema SecondaryNetworkCidrBlockAssociationState)), + ({ name := "StateReason", xmlName := some "stateReason", queryName := some "StateReason" }, .string)] + toValue x := record [putOpt "AssociationId" x.associationId, putOpt "CidrBlock" x.cidrBlock, putOpt "State" x.state, putOpt "StateReason" x.stateReason] + ofValue v := do + let associationId ← v.opt "AssociationId" + let cidrBlock ← v.opt "CidrBlock" + let state ← v.opt "State" + let stateReason ← v.opt "StateReason" + return { associationId, cidrBlock, state, stateReason } + +/-- Describes an IPv4 CIDR block associated with a secondary subnet. -/ +structure SecondarySubnetIpv4CidrBlockAssociation where + /-- The association ID for the IPv4 CIDR block. -/ + associationId : Option String := none + /-- The IPv4 CIDR block. -/ + cidrBlock : Option String := none + /-- The state of the CIDR block association. -/ + state : Option SecondarySubnetCidrBlockAssociationState := none + /-- The reason for the current state of the CIDR block association. -/ + stateReason : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SecondarySubnetIpv4CidrBlockAssociation where + schema := .struct "SecondarySubnetIpv4CidrBlockAssociation" [({ name := "AssociationId", xmlName := some "associationId", queryName := some "AssociationId" }, .string), + ({ name := "CidrBlock", xmlName := some "cidrBlock", queryName := some "CidrBlock" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema SecondarySubnetCidrBlockAssociationState)), + ({ name := "StateReason", xmlName := some "stateReason", queryName := some "StateReason" }, .string)] + toValue x := record [putOpt "AssociationId" x.associationId, putOpt "CidrBlock" x.cidrBlock, putOpt "State" x.state, putOpt "StateReason" x.stateReason] + ofValue v := do + let associationId ← v.opt "AssociationId" + let cidrBlock ← v.opt "CidrBlock" + let state ← v.opt "State" + let stateReason ← v.opt "StateReason" + return { associationId, cidrBlock, state, stateReason } + +/-- A security group that can be used by interfaces in the VPC. -/ +structure SecurityGroupForVpc where + /-- The security group's description. -/ + description : Option String := none + /-- The security group ID. -/ + groupId : Option String := none + /-- The security group name. -/ + groupName : Option String := none + /-- The security group owner ID. -/ + ownerId : Option String := none + /-- The VPC ID in which the security group was created. -/ + primaryVpcId : Option String := none + /-- The security group tags. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SecurityGroupForVpc where + schema := .struct "SecurityGroupForVpc" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "GroupId", xmlName := some "groupId", queryName := some "GroupId" }, .string), + ({ name := "GroupName", xmlName := some "groupName", queryName := some "GroupName" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "PrimaryVpcId", xmlName := some "primaryVpcId", queryName := some "PrimaryVpcId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "Description" x.description, putOpt "GroupId" x.groupId, putOpt "GroupName" x.groupName, putOpt "OwnerId" x.ownerId, putOpt "PrimaryVpcId" x.primaryVpcId, putOpt "Tags" x.tags] + ofValue v := do + let description ← v.opt "Description" + let groupId ← v.opt "GroupId" + let groupName ← v.opt "GroupName" + let ownerId ← v.opt "OwnerId" + let primaryVpcId ← v.opt "PrimaryVpcId" + let tags ← v.opt "Tags" + return { description, groupId, groupName, ownerId, primaryVpcId, tags } + +/-- Describes a security group rule. -/ +structure SecurityGroupRule where + /-- The IPv4 CIDR range. -/ + cidrIpv4 : Option String := none + /-- The IPv6 CIDR range. -/ + cidrIpv6 : Option String := none + /-- The security group rule description. -/ + description : Option String := none + /-- If the protocol is TCP or UDP, this is the start of the port range. -/ + fromPort : Option Int := none + /-- The ID of the security group. -/ + groupId : Option String := none + /-- The ID of the Amazon Web Services account that owns the security group. -/ + groupOwnerId : Option String := none + /-- The IP protocol name ( tcp , udp , icmp , icmpv6 ) or number (see Protocol Numbers ). -/ + ipProtocol : Option String := none + /-- Indicates whether the security group rule is an outbound rule. -/ + isEgress : Option Bool := none + /-- The ID of the prefix list. -/ + prefixListId : Option String := none + /-- Describes the security group that is referenced in the rule. -/ + referencedGroupInfo : Option ReferencedSecurityGroup := none + /-- The ARN of the security group rule. -/ + securityGroupRuleArn : Option String := none + /-- The ID of the security group rule. -/ + securityGroupRuleId : Option String := none + /-- The tags applied to the security group rule. -/ + tags : Option (List Tag) := none + /-- If the protocol is TCP or UDP, this is the end of the port range. -/ + toPort : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SecurityGroupRule where + schema := .struct "SecurityGroupRule" [({ name := "CidrIpv4", xmlName := some "cidrIpv4", queryName := some "CidrIpv4" }, .string), + ({ name := "CidrIpv6", xmlName := some "cidrIpv6", queryName := some "CidrIpv6" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "FromPort", xmlName := some "fromPort", queryName := some "FromPort" }, .int), + ({ name := "GroupId", xmlName := some "groupId", queryName := some "GroupId" }, .string), + ({ name := "GroupOwnerId", xmlName := some "groupOwnerId", queryName := some "GroupOwnerId" }, .string), + ({ name := "IpProtocol", xmlName := some "ipProtocol", queryName := some "IpProtocol" }, .string), + ({ name := "IsEgress", xmlName := some "isEgress", queryName := some "IsEgress" }, .bool), + ({ name := "PrefixListId", xmlName := some "prefixListId", queryName := some "PrefixListId" }, .string), + ({ name := "ReferencedGroupInfo", xmlName := some "referencedGroupInfo", queryName := some "ReferencedGroupInfo" }, (Shape.schema ReferencedSecurityGroup)), + ({ name := "SecurityGroupRuleArn", xmlName := some "securityGroupRuleArn", queryName := some "SecurityGroupRuleArn" }, .string), + ({ name := "SecurityGroupRuleId", xmlName := some "securityGroupRuleId", queryName := some "SecurityGroupRuleId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "ToPort", xmlName := some "toPort", queryName := some "ToPort" }, .int)] + toValue x := record [putOpt "CidrIpv4" x.cidrIpv4, putOpt "CidrIpv6" x.cidrIpv6, putOpt "Description" x.description, putOpt "FromPort" x.fromPort, putOpt "GroupId" x.groupId, putOpt "GroupOwnerId" x.groupOwnerId, putOpt "IpProtocol" x.ipProtocol, putOpt "IsEgress" x.isEgress, putOpt "PrefixListId" x.prefixListId, putOpt "ReferencedGroupInfo" x.referencedGroupInfo, putOpt "SecurityGroupRuleArn" x.securityGroupRuleArn, putOpt "SecurityGroupRuleId" x.securityGroupRuleId, putOpt "Tags" x.tags, putOpt "ToPort" x.toPort] + ofValue v := do + let cidrIpv4 ← v.opt "CidrIpv4" + let cidrIpv6 ← v.opt "CidrIpv6" + let description ← v.opt "Description" + let fromPort ← v.opt "FromPort" + let groupId ← v.opt "GroupId" + let groupOwnerId ← v.opt "GroupOwnerId" + let ipProtocol ← v.opt "IpProtocol" + let isEgress ← v.opt "IsEgress" + let prefixListId ← v.opt "PrefixListId" + let referencedGroupInfo ← v.opt "ReferencedGroupInfo" + let securityGroupRuleArn ← v.opt "SecurityGroupRuleArn" + let securityGroupRuleId ← v.opt "SecurityGroupRuleId" + let tags ← v.opt "Tags" + let toPort ← v.opt "ToPort" + return { cidrIpv4, cidrIpv6, description, fromPort, groupId, groupOwnerId, ipProtocol, isEgress, prefixListId, referencedGroupInfo, securityGroupRuleArn, securityGroupRuleId, tags, toPort } + +/-- Describes an update to a security group rule. -/ +structure SecurityGroupRuleUpdate where + /-- Information about the security group rule. -/ + securityGroupRule : Option SecurityGroupRuleRequest := none + /-- The ID of the security group rule. -/ + securityGroupRuleId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape SecurityGroupRuleUpdate where + schema := .struct "SecurityGroupRuleUpdate" [({ name := "SecurityGroupRule" }, (Shape.schema SecurityGroupRuleRequest)), + ({ name := "SecurityGroupRuleId", required := true }, .string)] + toValue x := record [putOpt "SecurityGroupRule" x.securityGroupRule, put "SecurityGroupRuleId" x.securityGroupRuleId] + ofValue v := do + let securityGroupRule ← v.opt "SecurityGroupRule" + let securityGroupRuleId ← v.req "SecurityGroupRuleId" + return { securityGroupRule, securityGroupRuleId } + +/-- A security group association with a VPC that you made with AssociateSecurityGroupVpc . -/ +structure SecurityGroupVpcAssociation where + /-- The association's security group ID. -/ + groupId : Option String := none + /-- The Amazon Web Services account ID of the owner of the security group. -/ + groupOwnerId : Option String := none + /-- The association's state. -/ + state : Option SecurityGroupVpcAssociationState := none + /-- The association's state reason. -/ + stateReason : Option String := none + /-- The association's VPC ID. -/ + vpcId : Option String := none + /-- The Amazon Web Services account ID of the owner of the VPC. -/ + vpcOwnerId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SecurityGroupVpcAssociation where + schema := .struct "SecurityGroupVpcAssociation" [({ name := "GroupId", xmlName := some "groupId", queryName := some "GroupId" }, .string), + ({ name := "GroupOwnerId", xmlName := some "groupOwnerId", queryName := some "GroupOwnerId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema SecurityGroupVpcAssociationState)), + ({ name := "StateReason", xmlName := some "stateReason", queryName := some "StateReason" }, .string), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string), + ({ name := "VpcOwnerId", xmlName := some "vpcOwnerId", queryName := some "VpcOwnerId" }, .string)] + toValue x := record [putOpt "GroupId" x.groupId, putOpt "GroupOwnerId" x.groupOwnerId, putOpt "State" x.state, putOpt "StateReason" x.stateReason, putOpt "VpcId" x.vpcId, putOpt "VpcOwnerId" x.vpcOwnerId] + ofValue v := do + let groupId ← v.opt "GroupId" + let groupOwnerId ← v.opt "GroupOwnerId" + let state ← v.opt "State" + let stateReason ← v.opt "StateReason" + let vpcId ← v.opt "VpcId" + let vpcOwnerId ← v.opt "VpcOwnerId" + return { groupId, groupOwnerId, state, stateReason, vpcId, vpcOwnerId } + +/-- Describes the service link virtual interfaces that establish connectivity between Amazon Web Services Outpost and on-premises networks. -/ +structure ServiceLinkVirtualInterface where + /-- The current state of the service link virtual interface. -/ + configurationState : Option ServiceLinkVirtualInterfaceConfigurationState := none + /-- The IPv4 address assigned to the local gateway virtual interface on the Outpost side. -/ + localAddress : Option String := none + /-- The Outpost Amazon Resource Number (ARN) for the service link virtual interface. -/ + outpostArn : Option String := none + /-- The Outpost ID for the service link virtual interface. -/ + outpostId : Option String := none + /-- The link aggregation group (LAG) ID for the service link virtual interface. -/ + outpostLagId : Option String := none + /-- The ID of the Amazon Web Services account that owns the service link virtual interface.. -/ + ownerId : Option String := none + /-- The IPv4 peer address for the service link virtual interface. -/ + peerAddress : Option String := none + /-- The ASN for the Border Gateway Protocol (BGP) associated with the service link virtual interface. -/ + peerBgpAsn : Option Int := none + /-- The Amazon Resource Number (ARN) for the service link virtual interface. -/ + serviceLinkVirtualInterfaceArn : Option String := none + /-- The ID of the service link virtual interface. -/ + serviceLinkVirtualInterfaceId : Option String := none + /-- The tags associated with the service link virtual interface. -/ + tags : Option (List Tag) := none + /-- The virtual local area network for the service link virtual interface. -/ + vlan : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ServiceLinkVirtualInterface where + schema := .struct "ServiceLinkVirtualInterface" [({ name := "ConfigurationState", xmlName := some "configurationState", queryName := some "ConfigurationState" }, (Shape.schema ServiceLinkVirtualInterfaceConfigurationState)), + ({ name := "LocalAddress", xmlName := some "localAddress", queryName := some "LocalAddress" }, .string), + ({ name := "OutpostArn", xmlName := some "outpostArn", queryName := some "OutpostArn" }, .string), + ({ name := "OutpostId", xmlName := some "outpostId", queryName := some "OutpostId" }, .string), + ({ name := "OutpostLagId", xmlName := some "outpostLagId", queryName := some "OutpostLagId" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "PeerAddress", xmlName := some "peerAddress", queryName := some "PeerAddress" }, .string), + ({ name := "PeerBgpAsn", xmlName := some "peerBgpAsn", queryName := some "PeerBgpAsn" }, .int), + ({ name := "ServiceLinkVirtualInterfaceArn", xmlName := some "serviceLinkVirtualInterfaceArn", queryName := some "ServiceLinkVirtualInterfaceArn" }, .string), + ({ name := "ServiceLinkVirtualInterfaceId", xmlName := some "serviceLinkVirtualInterfaceId", queryName := some "ServiceLinkVirtualInterfaceId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "Vlan", xmlName := some "vlan", queryName := some "Vlan" }, .int)] + toValue x := record [putOpt "ConfigurationState" x.configurationState, putOpt "LocalAddress" x.localAddress, putOpt "OutpostArn" x.outpostArn, putOpt "OutpostId" x.outpostId, putOpt "OutpostLagId" x.outpostLagId, putOpt "OwnerId" x.ownerId, putOpt "PeerAddress" x.peerAddress, putOpt "PeerBgpAsn" x.peerBgpAsn, putOpt "ServiceLinkVirtualInterfaceArn" x.serviceLinkVirtualInterfaceArn, putOpt "ServiceLinkVirtualInterfaceId" x.serviceLinkVirtualInterfaceId, putOpt "Tags" x.tags, putOpt "Vlan" x.vlan] + ofValue v := do + let configurationState ← v.opt "ConfigurationState" + let localAddress ← v.opt "LocalAddress" + let outpostArn ← v.opt "OutpostArn" + let outpostId ← v.opt "OutpostId" + let outpostLagId ← v.opt "OutpostLagId" + let ownerId ← v.opt "OwnerId" + let peerAddress ← v.opt "PeerAddress" + let peerBgpAsn ← v.opt "PeerBgpAsn" + let serviceLinkVirtualInterfaceArn ← v.opt "ServiceLinkVirtualInterfaceArn" + let serviceLinkVirtualInterfaceId ← v.opt "ServiceLinkVirtualInterfaceId" + let tags ← v.opt "Tags" + let vlan ← v.opt "Vlan" + return { configurationState, localAddress, outpostArn, outpostId, outpostLagId, ownerId, peerAddress, peerBgpAsn, serviceLinkVirtualInterfaceArn, serviceLinkVirtualInterfaceId, tags, vlan } + +/-- Describes the type of service for a VPC endpoint. -/ +structure ServiceTypeDetail where + /-- The type of service. -/ + serviceType : Option ServiceType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ServiceTypeDetail where + schema := .struct "ServiceTypeDetail" [({ name := "ServiceType", xmlName := some "serviceType", queryName := some "ServiceType" }, (Shape.schema ServiceType))] + toValue x := record [putOpt "ServiceType" x.serviceType] + ofValue v := do + let serviceType ← v.opt "ServiceType" + return { serviceType } + +/-- Describes a snapshot. -/ +structure Snapshot where + /-- The additional KMS keys that are associated with the snapshot. -/ + associatedKmsKeys : Option (List AssociatedKmsKey) := none + /-- The Availability Zone or Local Zone of the snapshot. -/ + availabilityZone : Option String := none + /-- Only for snapshot copies created with time-based snapshot copy operations. -/ + completionDurationMinutes : Option Int := none + /-- The time stamp when the snapshot was completed. -/ + completionTime : Option Timestamp := none + /-- The data encryption key identifier for the snapshot. -/ + dataEncryptionKeyId : Option String := none + /-- The description for the snapshot. -/ + description : Option String := none + /-- Indicates whether the snapshot is encrypted. -/ + encrypted : Option Bool := none + /-- The full size of the snapshot, in bytes. -/ + fullSnapshotSizeInBytes : Option Int := none + /-- The Amazon Resource Name (ARN) of the KMS key that was used to protect the volume encryption key for the parent volume. -/ + kmsKeyId : Option String := none + /-- The ARN of the Outpost on which the snapshot is stored. -/ + outpostArn : Option String := none + /-- The Amazon Web Services owner alias, from an Amazon-maintained list ( amazon ). -/ + ownerAlias : Option String := none + /-- The ID of the Amazon Web Services account that owns the EBS snapshot. -/ + ownerId : Option String := none + /-- The progress of the snapshot, as a percentage. -/ + progress : Option String := none + /-- Only for archived snapshots that are temporarily restored. -/ + restoreExpiryTime : Option Timestamp := none + /-- The ID of the snapshot. -/ + snapshotId : Option String := none + /-- Reserved for future use. -/ + sseType : Option SSEType := none + /-- The time stamp when the snapshot was initiated. -/ + startTime : Option Timestamp := none + /-- The snapshot state. -/ + state : Option SnapshotState := none + /-- Encrypted Amazon EBS snapshots are copied asynchronously. -/ + stateMessage : Option String := none + /-- The storage tier in which the snapshot is stored. -/ + storageTier : Option StorageTier := none + /-- Any tags assigned to the snapshot. -/ + tags : Option (List Tag) := none + /-- Only for snapshot copies. -/ + transferType : Option TransferType := none + /-- The ID of the volume that was used to create the snapshot. -/ + volumeId : Option String := none + /-- The size of the volume, in GiB. -/ + volumeSize : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Snapshot where + schema := .struct "Snapshot" [({ name := "AssociatedKmsKeys", xmlName := some "associatedKmsKeySet", queryName := some "AssociatedKmsKeySet" }, (.list (Shape.schema AssociatedKmsKey) "item")), + ({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "CompletionDurationMinutes", xmlName := some "completionDurationMinutes", queryName := some "CompletionDurationMinutes" }, .int), + ({ name := "CompletionTime", xmlName := some "completionTime", queryName := some "CompletionTime" }, (.time none)), + ({ name := "DataEncryptionKeyId", xmlName := some "dataEncryptionKeyId", queryName := some "DataEncryptionKeyId" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "Encrypted", xmlName := some "encrypted", queryName := some "Encrypted" }, .bool), + ({ name := "FullSnapshotSizeInBytes", xmlName := some "fullSnapshotSizeInBytes", queryName := some "FullSnapshotSizeInBytes" }, .int), + ({ name := "KmsKeyId", xmlName := some "kmsKeyId", queryName := some "KmsKeyId" }, .string), + ({ name := "OutpostArn", xmlName := some "outpostArn", queryName := some "OutpostArn" }, .string), + ({ name := "OwnerAlias", xmlName := some "ownerAlias", queryName := some "OwnerAlias" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "Progress", xmlName := some "progress", queryName := some "Progress" }, .string), + ({ name := "RestoreExpiryTime", xmlName := some "restoreExpiryTime", queryName := some "RestoreExpiryTime" }, (.time none)), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string), + ({ name := "SseType", xmlName := some "sseType", queryName := some "SseType" }, (Shape.schema SSEType)), + ({ name := "StartTime", xmlName := some "startTime", queryName := some "StartTime" }, (.time none)), + ({ name := "State", xmlName := some "status", queryName := some "Status" }, (Shape.schema SnapshotState)), + ({ name := "StateMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string), + ({ name := "StorageTier", xmlName := some "storageTier", queryName := some "StorageTier" }, (Shape.schema StorageTier)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TransferType", xmlName := some "transferType", queryName := some "TransferType" }, (Shape.schema TransferType)), + ({ name := "VolumeId", xmlName := some "volumeId", queryName := some "VolumeId" }, .string), + ({ name := "VolumeSize", xmlName := some "volumeSize", queryName := some "VolumeSize" }, .int)] + toValue x := record [putOpt "AssociatedKmsKeys" x.associatedKmsKeys, putOpt "AvailabilityZone" x.availabilityZone, putOpt "CompletionDurationMinutes" x.completionDurationMinutes, putOpt "CompletionTime" x.completionTime, putOpt "DataEncryptionKeyId" x.dataEncryptionKeyId, putOpt "Description" x.description, putOpt "Encrypted" x.encrypted, putOpt "FullSnapshotSizeInBytes" x.fullSnapshotSizeInBytes, putOpt "KmsKeyId" x.kmsKeyId, putOpt "OutpostArn" x.outpostArn, putOpt "OwnerAlias" x.ownerAlias, putOpt "OwnerId" x.ownerId, putOpt "Progress" x.progress, putOpt "RestoreExpiryTime" x.restoreExpiryTime, putOpt "SnapshotId" x.snapshotId, putOpt "SseType" x.sseType, putOpt "StartTime" x.startTime, putOpt "State" x.state, putOpt "StateMessage" x.stateMessage, putOpt "StorageTier" x.storageTier, putOpt "Tags" x.tags, putOpt "TransferType" x.transferType, putOpt "VolumeId" x.volumeId, putOpt "VolumeSize" x.volumeSize] + ofValue v := do + let associatedKmsKeys ← v.opt "AssociatedKmsKeys" + let availabilityZone ← v.opt "AvailabilityZone" + let completionDurationMinutes ← v.opt "CompletionDurationMinutes" + let completionTime ← v.opt "CompletionTime" + let dataEncryptionKeyId ← v.opt "DataEncryptionKeyId" + let description ← v.opt "Description" + let encrypted ← v.opt "Encrypted" + let fullSnapshotSizeInBytes ← v.opt "FullSnapshotSizeInBytes" + let kmsKeyId ← v.opt "KmsKeyId" + let outpostArn ← v.opt "OutpostArn" + let ownerAlias ← v.opt "OwnerAlias" + let ownerId ← v.opt "OwnerId" + let progress ← v.opt "Progress" + let restoreExpiryTime ← v.opt "RestoreExpiryTime" + let snapshotId ← v.opt "SnapshotId" + let sseType ← v.opt "SseType" + let startTime ← v.opt "StartTime" + let state ← v.opt "State" + let stateMessage ← v.opt "StateMessage" + let storageTier ← v.opt "StorageTier" + let tags ← v.opt "Tags" + let transferType ← v.opt "TransferType" + let volumeId ← v.opt "VolumeId" + let volumeSize ← v.opt "VolumeSize" + return { associatedKmsKeys, availabilityZone, completionDurationMinutes, completionTime, dataEncryptionKeyId, description, encrypted, fullSnapshotSizeInBytes, kmsKeyId, outpostArn, ownerAlias, ownerId, progress, restoreExpiryTime, snapshotId, sseType, startTime, state, stateMessage, storageTier, tags, transferType, volumeId, volumeSize } + +/-- Describes the snapshot created from the imported disk. -/ +structure SnapshotDetail where + /-- A description for the snapshot. -/ + description : Option String := none + /-- The block device mapping for the snapshot. -/ + deviceName : Option String := none + /-- The size of the disk in the snapshot, in GiB. -/ + diskImageSize : Option JsonNumber := none + /-- The format of the disk image from which the snapshot is created. -/ + format : Option String := none + /-- The percentage of progress for the task. -/ + progress : Option String := none + /-- The snapshot ID of the disk being imported. -/ + snapshotId : Option String := none + /-- A brief status of the snapshot creation. -/ + status : Option String := none + /-- A detailed status message for the snapshot creation. -/ + statusMessage : Option String := none + /-- The URL used to access the disk image. -/ + url : Option String := none + /-- The Amazon S3 bucket for the disk image. -/ + userBucket : Option UserBucketDetails := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SnapshotDetail where + schema := .struct "SnapshotDetail" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "DeviceName", xmlName := some "deviceName", queryName := some "DeviceName" }, .string), + ({ name := "DiskImageSize", xmlName := some "diskImageSize", queryName := some "DiskImageSize" }, .number), + ({ name := "Format", xmlName := some "format", queryName := some "Format" }, .string), + ({ name := "Progress", xmlName := some "progress", queryName := some "Progress" }, .string), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, .string), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string), + ({ name := "Url", xmlName := some "url", queryName := some "Url" }, .string), + ({ name := "UserBucket", xmlName := some "userBucket", queryName := some "UserBucket" }, (Shape.schema UserBucketDetails))] + toValue x := record [putOpt "Description" x.description, putOpt "DeviceName" x.deviceName, putOpt "DiskImageSize" x.diskImageSize, putOpt "Format" x.format, putOpt "Progress" x.progress, putOpt "SnapshotId" x.snapshotId, putOpt "Status" x.status, putOpt "StatusMessage" x.statusMessage, putOpt "Url" x.url, putOpt "UserBucket" x.userBucket] + ofValue v := do + let description ← v.opt "Description" + let deviceName ← v.opt "DeviceName" + let diskImageSize ← v.opt "DiskImageSize" + let format ← v.opt "Format" + let progress ← v.opt "Progress" + let snapshotId ← v.opt "SnapshotId" + let status ← v.opt "Status" + let statusMessage ← v.opt "StatusMessage" + let url ← v.opt "Url" + let userBucket ← v.opt "UserBucket" + return { description, deviceName, diskImageSize, format, progress, snapshotId, status, statusMessage, url, userBucket } + +/-- The disk container object for the import snapshot request. -/ +structure SnapshotDiskContainer where + /-- The description of the disk image being imported. -/ + description : Option String := none + /-- The format of the disk image being imported. -/ + format : Option String := none + /-- The URL to the Amazon S3-based disk image being imported. -/ + url : Option String := none + /-- The Amazon S3 bucket for the disk image. -/ + userBucket : Option UserBucket := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SnapshotDiskContainer where + schema := .struct "SnapshotDiskContainer" [({ name := "Description" }, .string), + ({ name := "Format" }, .string), + ({ name := "Url" }, .string), + ({ name := "UserBucket" }, (Shape.schema UserBucket))] + toValue x := record [putOpt "Description" x.description, putOpt "Format" x.format, putOpt "Url" x.url, putOpt "UserBucket" x.userBucket] + ofValue v := do + let description ← v.opt "Description" + let format ← v.opt "Format" + let url ← v.opt "Url" + let userBucket ← v.opt "UserBucket" + return { description, format, url, userBucket } + +/-- Information about a snapshot. -/ +structure SnapshotInfo where + /-- The Availability Zone or Local Zone of the snapshots. -/ + availabilityZone : Option String := none + /-- Description specified by the CreateSnapshotRequest that has been applied to all snapshots. -/ + description : Option String := none + /-- Indicates whether the snapshot is encrypted. -/ + encrypted : Option Bool := none + /-- The ARN of the Outpost on which the snapshot is stored. -/ + outpostArn : Option String := none + /-- Account id used when creating this snapshot. -/ + ownerId : Option String := none + /-- Progress this snapshot has made towards completing. -/ + progress : Option String := none + /-- Snapshot id that can be used to describe this snapshot. -/ + snapshotId : Option String := none + /-- Reserved for future use. -/ + sseType : Option SSEType := none + /-- Time this snapshot was started. -/ + startTime : Option Timestamp := none + /-- Current state of the snapshot. -/ + state : Option SnapshotState := none + /-- Tags associated with this snapshot. -/ + tags : Option (List Tag) := none + /-- Source volume from which this snapshot was created. -/ + volumeId : Option String := none + /-- Size of the volume from which this snapshot was created. -/ + volumeSize : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SnapshotInfo where + schema := .struct "SnapshotInfo" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "Encrypted", xmlName := some "encrypted", queryName := some "Encrypted" }, .bool), + ({ name := "OutpostArn", xmlName := some "outpostArn", queryName := some "OutpostArn" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "Progress", xmlName := some "progress", queryName := some "Progress" }, .string), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string), + ({ name := "SseType", xmlName := some "sseType", queryName := some "SseType" }, (Shape.schema SSEType)), + ({ name := "StartTime", xmlName := some "startTime", queryName := some "StartTime" }, (.time none)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema SnapshotState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VolumeId", xmlName := some "volumeId", queryName := some "VolumeId" }, .string), + ({ name := "VolumeSize", xmlName := some "volumeSize", queryName := some "VolumeSize" }, .int)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "Description" x.description, putOpt "Encrypted" x.encrypted, putOpt "OutpostArn" x.outpostArn, putOpt "OwnerId" x.ownerId, putOpt "Progress" x.progress, putOpt "SnapshotId" x.snapshotId, putOpt "SseType" x.sseType, putOpt "StartTime" x.startTime, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "VolumeId" x.volumeId, putOpt "VolumeSize" x.volumeSize] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let description ← v.opt "Description" + let encrypted ← v.opt "Encrypted" + let outpostArn ← v.opt "OutpostArn" + let ownerId ← v.opt "OwnerId" + let progress ← v.opt "Progress" + let snapshotId ← v.opt "SnapshotId" + let sseType ← v.opt "SseType" + let startTime ← v.opt "StartTime" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let volumeId ← v.opt "VolumeId" + let volumeSize ← v.opt "VolumeSize" + return { availabilityZone, description, encrypted, outpostArn, ownerId, progress, snapshotId, sseType, startTime, state, tags, volumeId, volumeSize } + +/-- Details about the import snapshot task. -/ +structure SnapshotTaskDetail where + /-- The description of the disk image being imported. -/ + description : Option String := none + /-- The size of the disk in the snapshot, in GiB. -/ + diskImageSize : Option JsonNumber := none + /-- Indicates whether the snapshot is encrypted. -/ + encrypted : Option Bool := none + /-- The format of the disk image from which the snapshot is created. -/ + format : Option String := none + /-- The identifier for the KMS key that was used to create the encrypted snapshot. -/ + kmsKeyId : Option String := none + /-- The percentage of completion for the import snapshot task. -/ + progress : Option String := none + /-- The snapshot ID of the disk being imported. -/ + snapshotId : Option String := none + /-- A brief status for the import snapshot task. -/ + status : Option String := none + /-- A detailed status message for the import snapshot task. -/ + statusMessage : Option String := none + /-- The URL of the disk image from which the snapshot is created. -/ + url : Option String := none + /-- The Amazon S3 bucket for the disk image. -/ + userBucket : Option UserBucketDetails := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SnapshotTaskDetail where + schema := .struct "SnapshotTaskDetail" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "DiskImageSize", xmlName := some "diskImageSize", queryName := some "DiskImageSize" }, .number), + ({ name := "Encrypted", xmlName := some "encrypted", queryName := some "Encrypted" }, .bool), + ({ name := "Format", xmlName := some "format", queryName := some "Format" }, .string), + ({ name := "KmsKeyId", xmlName := some "kmsKeyId", queryName := some "KmsKeyId" }, .string), + ({ name := "Progress", xmlName := some "progress", queryName := some "Progress" }, .string), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, .string), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string), + ({ name := "Url", xmlName := some "url", queryName := some "Url" }, .string), + ({ name := "UserBucket", xmlName := some "userBucket", queryName := some "UserBucket" }, (Shape.schema UserBucketDetails))] + toValue x := record [putOpt "Description" x.description, putOpt "DiskImageSize" x.diskImageSize, putOpt "Encrypted" x.encrypted, putOpt "Format" x.format, putOpt "KmsKeyId" x.kmsKeyId, putOpt "Progress" x.progress, putOpt "SnapshotId" x.snapshotId, putOpt "Status" x.status, putOpt "StatusMessage" x.statusMessage, putOpt "Url" x.url, putOpt "UserBucket" x.userBucket] + ofValue v := do + let description ← v.opt "Description" + let diskImageSize ← v.opt "DiskImageSize" + let encrypted ← v.opt "Encrypted" + let format ← v.opt "Format" + let kmsKeyId ← v.opt "KmsKeyId" + let progress ← v.opt "Progress" + let snapshotId ← v.opt "SnapshotId" + let status ← v.opt "Status" + let statusMessage ← v.opt "StatusMessage" + let url ← v.opt "Url" + let userBucket ← v.opt "UserBucket" + return { description, diskImageSize, encrypted, format, kmsKeyId, progress, snapshotId, status, statusMessage, url, userBucket } + +/-- Provides information about a snapshot's storage tier. -/ +structure SnapshotTierStatus where + /-- The date and time when the last archive process was completed. -/ + archivalCompleteTime : Option Timestamp := none + /-- The status of the last archive or restore process. -/ + lastTieringOperationStatus : Option TieringOperationStatus := none + /-- A message describing the status of the last archive or restore process. -/ + lastTieringOperationStatusDetail : Option String := none + /-- The progress of the last archive or restore process, as a percentage. -/ + lastTieringProgress : Option Int := none + /-- The date and time when the last archive or restore process was started. -/ + lastTieringStartTime : Option Timestamp := none + /-- The ID of the Amazon Web Services account that owns the snapshot. -/ + ownerId : Option String := none + /-- Only for archived snapshots that are temporarily restored. -/ + restoreExpiryTime : Option Timestamp := none + /-- The ID of the snapshot. -/ + snapshotId : Option String := none + /-- The state of the snapshot. -/ + status : Option SnapshotState := none + /-- The storage tier in which the snapshot is stored. -/ + storageTier : Option StorageTier := none + /-- The tags that are assigned to the snapshot. -/ + tags : Option (List Tag) := none + /-- The ID of the volume from which the snapshot was created. -/ + volumeId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SnapshotTierStatus where + schema := .struct "SnapshotTierStatus" [({ name := "ArchivalCompleteTime", xmlName := some "archivalCompleteTime", queryName := some "ArchivalCompleteTime" }, (.time none)), + ({ name := "LastTieringOperationStatus", xmlName := some "lastTieringOperationStatus", queryName := some "LastTieringOperationStatus" }, (Shape.schema TieringOperationStatus)), + ({ name := "LastTieringOperationStatusDetail", xmlName := some "lastTieringOperationStatusDetail", queryName := some "LastTieringOperationStatusDetail" }, .string), + ({ name := "LastTieringProgress", xmlName := some "lastTieringProgress", queryName := some "LastTieringProgress" }, .int), + ({ name := "LastTieringStartTime", xmlName := some "lastTieringStartTime", queryName := some "LastTieringStartTime" }, (.time none)), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "RestoreExpiryTime", xmlName := some "restoreExpiryTime", queryName := some "RestoreExpiryTime" }, (.time none)), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema SnapshotState)), + ({ name := "StorageTier", xmlName := some "storageTier", queryName := some "StorageTier" }, (Shape.schema StorageTier)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VolumeId", xmlName := some "volumeId", queryName := some "VolumeId" }, .string)] + toValue x := record [putOpt "ArchivalCompleteTime" x.archivalCompleteTime, putOpt "LastTieringOperationStatus" x.lastTieringOperationStatus, putOpt "LastTieringOperationStatusDetail" x.lastTieringOperationStatusDetail, putOpt "LastTieringProgress" x.lastTieringProgress, putOpt "LastTieringStartTime" x.lastTieringStartTime, putOpt "OwnerId" x.ownerId, putOpt "RestoreExpiryTime" x.restoreExpiryTime, putOpt "SnapshotId" x.snapshotId, putOpt "Status" x.status, putOpt "StorageTier" x.storageTier, putOpt "Tags" x.tags, putOpt "VolumeId" x.volumeId] + ofValue v := do + let archivalCompleteTime ← v.opt "ArchivalCompleteTime" + let lastTieringOperationStatus ← v.opt "LastTieringOperationStatus" + let lastTieringOperationStatusDetail ← v.opt "LastTieringOperationStatusDetail" + let lastTieringProgress ← v.opt "LastTieringProgress" + let lastTieringStartTime ← v.opt "LastTieringStartTime" + let ownerId ← v.opt "OwnerId" + let restoreExpiryTime ← v.opt "RestoreExpiryTime" + let snapshotId ← v.opt "SnapshotId" + let status ← v.opt "Status" + let storageTier ← v.opt "StorageTier" + let tags ← v.opt "Tags" + let volumeId ← v.opt "VolumeId" + return { archivalCompleteTime, lastTieringOperationStatus, lastTieringOperationStatusDetail, lastTieringProgress, lastTieringStartTime, ownerId, restoreExpiryTime, snapshotId, status, storageTier, tags, volumeId } + +/-- The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. -/ +structure SpotCapacityRebalance where + /-- The replacement strategy to use. -/ + replacementStrategy : Option ReplacementStrategy := none + /-- The amount of time (in seconds) that Amazon EC2 waits before terminating the old Spot Instance after launching a new replacement Spot Instance. -/ + terminationDelay : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SpotCapacityRebalance where + schema := .struct "SpotCapacityRebalance" [({ name := "ReplacementStrategy", xmlName := some "replacementStrategy", queryName := some "ReplacementStrategy" }, (Shape.schema ReplacementStrategy)), + ({ name := "TerminationDelay", xmlName := some "terminationDelay", queryName := some "TerminationDelay" }, .int)] + toValue x := record [putOpt "ReplacementStrategy" x.replacementStrategy, putOpt "TerminationDelay" x.terminationDelay] + ofValue v := do + let replacementStrategy ← v.opt "ReplacementStrategy" + let terminationDelay ← v.opt "TerminationDelay" + return { replacementStrategy, terminationDelay } + +/-- Describes the data feed for a Spot Instance. -/ +structure SpotDatafeedSubscription where + /-- The name of the Amazon S3 bucket where the Spot Instance data feed is located. -/ + bucket : Option String := none + /-- The fault codes for the Spot Instance request, if any. -/ + fault : Option SpotInstanceStateFault := none + /-- The Amazon Web Services account ID of the account. -/ + ownerId : Option String := none + /-- The prefix for the data feed files. -/ + «prefix» : Option String := none + /-- The state of the Spot Instance data feed subscription. -/ + state : Option DatafeedSubscriptionState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SpotDatafeedSubscription where + schema := .struct "SpotDatafeedSubscription" [({ name := "Bucket", xmlName := some "bucket", queryName := some "Bucket" }, .string), + ({ name := "Fault", xmlName := some "fault", queryName := some "Fault" }, (Shape.schema SpotInstanceStateFault)), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "Prefix", xmlName := some "prefix", queryName := some "Prefix" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema DatafeedSubscriptionState))] + toValue x := record [putOpt "Bucket" x.bucket, putOpt "Fault" x.fault, putOpt "OwnerId" x.ownerId, putOpt "Prefix" x.«prefix», putOpt "State" x.state] + ofValue v := do + let bucket ← v.opt "Bucket" + let fault ← v.opt "Fault" + let ownerId ← v.opt "OwnerId" + let «prefix» ← v.opt "Prefix" + let state ← v.opt "State" + return { bucket, fault, ownerId, «prefix», state } + +/-- The tags for a Spot Fleet resource. -/ +structure SpotFleetTagSpecification where + /-- The type of resource. -/ + resourceType : Option ResourceType := none + /-- The tags. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SpotFleetTagSpecification where + schema := .struct "SpotFleetTagSpecification" [({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema ResourceType)), + ({ name := "Tags", xmlName := some "tag", queryName := some "Tag" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "ResourceType" x.resourceType, putOpt "Tags" x.tags] + ofValue v := do + let resourceType ← v.opt "ResourceType" + let tags ← v.opt "Tags" + return { resourceType, tags } + +/-- The options for Spot Instances. -/ +structure SpotMarketOptions where + /-- Deprecated. -/ + blockDurationMinutes : Option Int := none + /-- The behavior when a Spot Instance is interrupted. -/ + instanceInterruptionBehavior : Option InstanceInterruptionBehavior := none + /-- The maximum hourly price that you're willing to pay for a Spot Instance. -/ + maxPrice : Option String := none + /-- The Spot Instance request type. -/ + spotInstanceType : Option SpotInstanceType := none + /-- The end date of the request, in UTC format ( YYYY - MM - DD T HH : MM : SS Z). -/ + validUntil : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SpotMarketOptions where + schema := .struct "SpotMarketOptions" [({ name := "BlockDurationMinutes" }, .int), + ({ name := "InstanceInterruptionBehavior" }, (Shape.schema InstanceInterruptionBehavior)), + ({ name := "MaxPrice" }, .string), + ({ name := "SpotInstanceType" }, (Shape.schema SpotInstanceType)), + ({ name := "ValidUntil" }, (.time none))] + toValue x := record [putOpt "BlockDurationMinutes" x.blockDurationMinutes, putOpt "InstanceInterruptionBehavior" x.instanceInterruptionBehavior, putOpt "MaxPrice" x.maxPrice, putOpt "SpotInstanceType" x.spotInstanceType, putOpt "ValidUntil" x.validUntil] + ofValue v := do + let blockDurationMinutes ← v.opt "BlockDurationMinutes" + let instanceInterruptionBehavior ← v.opt "InstanceInterruptionBehavior" + let maxPrice ← v.opt "MaxPrice" + let spotInstanceType ← v.opt "SpotInstanceType" + let validUntil ← v.opt "ValidUntil" + return { blockDurationMinutes, instanceInterruptionBehavior, maxPrice, spotInstanceType, validUntil } + +/-- Describes Spot Instance placement. -/ +structure SpotPlacement where + /-- The Availability Zone. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone. -/ + availabilityZoneId : Option String := none + /-- The name of the placement group. -/ + groupName : Option String := none + /-- The tenancy of the instance (if the instance is running in a VPC). -/ + tenancy : Option Tenancy := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SpotPlacement where + schema := .struct "SpotPlacement" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "GroupName", xmlName := some "groupName", queryName := some "GroupName" }, .string), + ({ name := "Tenancy", xmlName := some "tenancy", queryName := some "Tenancy" }, (Shape.schema Tenancy))] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "GroupName" x.groupName, putOpt "Tenancy" x.tenancy] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let groupName ← v.opt "GroupName" + let tenancy ← v.opt "Tenancy" + return { availabilityZone, availabilityZoneId, groupName, tenancy } + +/-- The maximum price per unit hour that you are willing to pay for a Spot Instance. -/ +structure SpotPrice where + /-- The Availability Zone. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone. -/ + availabilityZoneId : Option String := none + /-- The instance type. -/ + instanceType : Option InstanceType := none + /-- A general description of the AMI. -/ + productDescription : Option RIProductDescription := none + /-- The maximum price per unit hour that you are willing to pay for a Spot Instance. -/ + spotPrice : Option String := none + /-- The date and time the request was created, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). -/ + timestamp : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SpotPrice where + schema := .struct "SpotPrice" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "ProductDescription", xmlName := some "productDescription", queryName := some "ProductDescription" }, (Shape.schema RIProductDescription)), + ({ name := "SpotPrice", xmlName := some "spotPrice", queryName := some "SpotPrice" }, .string), + ({ name := "Timestamp", xmlName := some "timestamp", queryName := some "Timestamp" }, (.time none))] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "InstanceType" x.instanceType, putOpt "ProductDescription" x.productDescription, putOpt "SpotPrice" x.spotPrice, putOpt "Timestamp" x.timestamp] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let instanceType ← v.opt "InstanceType" + let productDescription ← v.opt "ProductDescription" + let spotPrice ← v.opt "SpotPrice" + let timestamp ← v.opt "Timestamp" + return { availabilityZone, availabilityZoneId, instanceType, productDescription, spotPrice, timestamp } + +/-- Describes a stale rule in a security group. -/ +structure StaleIpPermission where + /-- If the protocol is TCP or UDP, this is the start of the port range. -/ + fromPort : Option Int := none + /-- The IP protocol name ( tcp , udp , icmp , icmpv6 ) or number (see Protocol Numbers) . -/ + ipProtocol : Option String := none + /-- The IP ranges. -/ + ipRanges : Option (List String) := none + /-- The prefix list IDs. -/ + prefixListIds : Option (List String) := none + /-- If the protocol is TCP or UDP, this is the end of the port range. -/ + toPort : Option Int := none + /-- The security group pairs. -/ + userIdGroupPairs : Option (List UserIdGroupPair) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StaleIpPermission where + schema := .struct "StaleIpPermission" [({ name := "FromPort", xmlName := some "fromPort", queryName := some "FromPort" }, .int), + ({ name := "IpProtocol", xmlName := some "ipProtocol", queryName := some "IpProtocol" }, .string), + ({ name := "IpRanges", xmlName := some "ipRanges", queryName := some "IpRanges" }, (.list .string "item")), + ({ name := "PrefixListIds", xmlName := some "prefixListIds", queryName := some "PrefixListIds" }, (.list .string "item")), + ({ name := "ToPort", xmlName := some "toPort", queryName := some "ToPort" }, .int), + ({ name := "UserIdGroupPairs", xmlName := some "groups", queryName := some "Groups" }, (.list (Shape.schema UserIdGroupPair) "item"))] + toValue x := record [putOpt "FromPort" x.fromPort, putOpt "IpProtocol" x.ipProtocol, putOpt "IpRanges" x.ipRanges, putOpt "PrefixListIds" x.prefixListIds, putOpt "ToPort" x.toPort, putOpt "UserIdGroupPairs" x.userIdGroupPairs] + ofValue v := do + let fromPort ← v.opt "FromPort" + let ipProtocol ← v.opt "IpProtocol" + let ipRanges ← v.opt "IpRanges" + let prefixListIds ← v.opt "PrefixListIds" + let toPort ← v.opt "ToPort" + let userIdGroupPairs ← v.opt "UserIdGroupPairs" + return { fromPort, ipProtocol, ipRanges, prefixListIds, toPort, userIdGroupPairs } + +/-- Describes the storage location for an instance store-backed AMI. -/ +structure Storage where + /-- An Amazon S3 storage location. -/ + s3 : Option S3Storage := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Storage where + schema := .struct "Storage" [({ name := "S3", xmlName := some "S3" }, (Shape.schema S3Storage))] + toValue x := record [putOpt "S3" x.s3] + ofValue v := do + let s3 ← v.opt "S3" + return { s3 } + +/-- Describes the subnet association with the transit gateway multicast domain. -/ +structure SubnetAssociation where + /-- The state of the subnet association. -/ + state : Option TransitGatewayMulitcastDomainAssociationState := none + /-- The ID of the subnet. -/ + subnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SubnetAssociation where + schema := .struct "SubnetAssociation" [({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayMulitcastDomainAssociationState)), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string)] + toValue x := record [putOpt "State" x.state, putOpt "SubnetId" x.subnetId] + ofValue v := do + let state ← v.opt "State" + let subnetId ← v.opt "SubnetId" + return { state, subnetId } + +/-- Describes the state of a CIDR block. -/ +structure SubnetCidrBlockState where + /-- The state of a CIDR block. -/ + state : Option SubnetCidrBlockStateCode := none + /-- A message about the status of the CIDR block, if applicable. -/ + statusMessage : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SubnetCidrBlockState where + schema := .struct "SubnetCidrBlockState" [({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema SubnetCidrBlockStateCode)), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string)] + toValue x := record [putOpt "State" x.state, putOpt "StatusMessage" x.statusMessage] + ofValue v := do + let state ← v.opt "State" + let statusMessage ← v.opt "StatusMessage" + return { state, statusMessage } + +/-- Describes a subnet CIDR reservation. -/ +structure SubnetCidrReservation where + /-- The CIDR that has been reserved. -/ + cidr : Option String := none + /-- The description assigned to the subnet CIDR reservation. -/ + description : Option String := none + /-- The ID of the account that owns the subnet CIDR reservation. -/ + ownerId : Option String := none + /-- The type of reservation. -/ + reservationType : Option SubnetCidrReservationType := none + /-- The ID of the subnet CIDR reservation. -/ + subnetCidrReservationId : Option String := none + /-- The ID of the subnet. -/ + subnetId : Option String := none + /-- The tags assigned to the subnet CIDR reservation. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SubnetCidrReservation where + schema := .struct "SubnetCidrReservation" [({ name := "Cidr", xmlName := some "cidr", queryName := some "Cidr" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "ReservationType", xmlName := some "reservationType", queryName := some "ReservationType" }, (Shape.schema SubnetCidrReservationType)), + ({ name := "SubnetCidrReservationId", xmlName := some "subnetCidrReservationId", queryName := some "SubnetCidrReservationId" }, .string), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "Cidr" x.cidr, putOpt "Description" x.description, putOpt "OwnerId" x.ownerId, putOpt "ReservationType" x.reservationType, putOpt "SubnetCidrReservationId" x.subnetCidrReservationId, putOpt "SubnetId" x.subnetId, putOpt "Tags" x.tags] + ofValue v := do + let cidr ← v.opt "Cidr" + let description ← v.opt "Description" + let ownerId ← v.opt "OwnerId" + let reservationType ← v.opt "ReservationType" + let subnetCidrReservationId ← v.opt "SubnetCidrReservationId" + let subnetId ← v.opt "SubnetId" + let tags ← v.opt "Tags" + return { cidr, description, ownerId, reservationType, subnetCidrReservationId, subnetId, tags } + +/-- Describes an Infrastructure Performance subscription. -/ +structure Subscription where + /-- The Region or Availability Zone that's the target for the subscription. -/ + destination : Option String := none + /-- The metric used for the subscription. -/ + metric : Option MetricType := none + /-- The data aggregation time for the subscription. -/ + period : Option PeriodType := none + /-- The Region or Availability Zone that's the source for the subscription. -/ + source : Option String := none + /-- The statistic used for the subscription. -/ + statistic : Option StatisticType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Subscription where + schema := .struct "Subscription" [({ name := "Destination", xmlName := some "destination", queryName := some "Destination" }, .string), + ({ name := "Metric", xmlName := some "metric", queryName := some "Metric" }, (Shape.schema MetricType)), + ({ name := "Period", xmlName := some "period", queryName := some "Period" }, (Shape.schema PeriodType)), + ({ name := "Source", xmlName := some "source", queryName := some "Source" }, .string), + ({ name := "Statistic", xmlName := some "statistic", queryName := some "Statistic" }, (Shape.schema StatisticType))] + toValue x := record [putOpt "Destination" x.destination, putOpt "Metric" x.metric, putOpt "Period" x.period, putOpt "Source" x.source, putOpt "Statistic" x.statistic] + ofValue v := do + let destination ← v.opt "Destination" + let metric ← v.opt "Metric" + let period ← v.opt "Period" + let source ← v.opt "Source" + let statistic ← v.opt "Statistic" + return { destination, metric, period, source, statistic } + +/-- Describes a tag. -/ +structure TagDescription where + /-- The tag key. -/ + key : Option String := none + /-- The ID of the resource. -/ + resourceId : Option String := none + /-- The resource type. -/ + resourceType : Option ResourceType := none + /-- The tag value. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TagDescription where + schema := .struct "TagDescription" [({ name := "Key", xmlName := some "key", queryName := some "Key" }, .string), + ({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema ResourceType)), + ({ name := "Value", xmlName := some "value", queryName := some "Value" }, .string)] + toValue x := record [putOpt "Key" x.key, putOpt "ResourceId" x.resourceId, putOpt "ResourceType" x.resourceType, putOpt "Value" x.value] + ofValue v := do + let key ← v.opt "Key" + let resourceId ← v.opt "ResourceId" + let resourceType ← v.opt "ResourceType" + let value ← v.opt "Value" + return { key, resourceId, resourceType, value } + +/-- A single resource's tag configuration associated with the Flow Logs Amazon EC2 Tags feature fields in your custom log format. -/ +structure TagFieldSpecificationRequest where + /-- The resource type for the tag keys associated with the Flow Logs Amazon EC2 Tags feature fields in your custom log format. -/ + resourceType : Option TaggableResourceType := none + /-- The tag keys on your tagged resources to be displayed by the Flow Logs Amazon EC2 Tags feature fields in your custom log format. -/ + tagKeys : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TagFieldSpecificationRequest where + schema := .struct "TagFieldSpecificationRequest" [({ name := "ResourceType" }, (Shape.schema TaggableResourceType)), + ({ name := "TagKeys", xmlName := some "TagKey" }, (.list .string "item"))] + toValue x := record [putOpt "ResourceType" x.resourceType, putOpt "TagKeys" x.tagKeys] + ofValue v := do + let resourceType ← v.opt "ResourceType" + let tagKeys ← v.opt "TagKeys" + return { resourceType, tagKeys } + +/-- A single resource's tag configuration associated with the Flow Logs Amazon EC2 Tags feature fields in your custom log format. -/ +structure TagFieldSpecificationResponse where + /-- The resource type for the tag keys associated with the Flow Logs Amazon EC2 Tags feature fields in your custom log format. -/ + resourceType : Option TaggableResourceType := none + /-- The tag keys on your tagged resources to be displayed by the Flow Logs Amazon EC2 Tags feature fields in your custom log format. -/ + tagKeys : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TagFieldSpecificationResponse where + schema := .struct "TagFieldSpecificationResponse" [({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema TaggableResourceType)), + ({ name := "TagKeys", xmlName := some "tagKeySet", queryName := some "TagKeySet" }, (.list .string "item"))] + toValue x := record [putOpt "ResourceType" x.resourceType, putOpt "TagKeys" x.tagKeys] + ofValue v := do + let resourceType ← v.opt "ResourceType" + let tagKeys ← v.opt "TagKeys" + return { resourceType, tagKeys } + +/-- The tags to apply to a resource when the resource is being created. -/ +structure TagSpecification where + /-- The type of resource to tag on creation. -/ + resourceType : Option ResourceType := none + /-- The tags to apply to the resource. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TagSpecification where + schema := .struct "TagSpecification" [({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema ResourceType)), + ({ name := "Tags", xmlName := some "Tag" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "ResourceType" x.resourceType, putOpt "Tags" x.tags] + ofValue v := do + let resourceType ← v.opt "ResourceType" + let tags ← v.opt "Tags" + return { resourceType, tags } + +/-- The number of units to request. -/ +structure TargetCapacitySpecification where + /-- The default target capacity type. -/ + defaultTargetCapacityType : Option DefaultTargetCapacityType := none + /-- The number of On-Demand units to request. -/ + onDemandTargetCapacity : Option Int := none + /-- The maximum number of Spot units to launch. -/ + spotTargetCapacity : Option Int := none + /-- The unit for the target capacity. -/ + targetCapacityUnitType : Option TargetCapacityUnitType := none + /-- The number of units to request, filled the default target capacity type. -/ + totalTargetCapacity : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TargetCapacitySpecification where + schema := .struct "TargetCapacitySpecification" [({ name := "DefaultTargetCapacityType", xmlName := some "defaultTargetCapacityType", queryName := some "DefaultTargetCapacityType" }, (Shape.schema DefaultTargetCapacityType)), + ({ name := "OnDemandTargetCapacity", xmlName := some "onDemandTargetCapacity", queryName := some "OnDemandTargetCapacity" }, .int), + ({ name := "SpotTargetCapacity", xmlName := some "spotTargetCapacity", queryName := some "SpotTargetCapacity" }, .int), + ({ name := "TargetCapacityUnitType", xmlName := some "targetCapacityUnitType", queryName := some "TargetCapacityUnitType" }, (Shape.schema TargetCapacityUnitType)), + ({ name := "TotalTargetCapacity", xmlName := some "totalTargetCapacity", queryName := some "TotalTargetCapacity" }, .int)] + toValue x := record [putOpt "DefaultTargetCapacityType" x.defaultTargetCapacityType, putOpt "OnDemandTargetCapacity" x.onDemandTargetCapacity, putOpt "SpotTargetCapacity" x.spotTargetCapacity, putOpt "TargetCapacityUnitType" x.targetCapacityUnitType, putOpt "TotalTargetCapacity" x.totalTargetCapacity] + ofValue v := do + let defaultTargetCapacityType ← v.opt "DefaultTargetCapacityType" + let onDemandTargetCapacity ← v.opt "OnDemandTargetCapacity" + let spotTargetCapacity ← v.opt "SpotTargetCapacity" + let targetCapacityUnitType ← v.opt "TargetCapacityUnitType" + let totalTargetCapacity ← v.opt "TotalTargetCapacity" + return { defaultTargetCapacityType, onDemandTargetCapacity, spotTargetCapacity, targetCapacityUnitType, totalTargetCapacity } + +/-- The number of units to request. -/ +structure TargetCapacitySpecificationRequest where + /-- The default target capacity type. -/ + defaultTargetCapacityType : Option DefaultTargetCapacityType := none + /-- The number of On-Demand units to request. -/ + onDemandTargetCapacity : Option Int := none + /-- The number of Spot units to request. -/ + spotTargetCapacity : Option Int := none + /-- The unit for the target capacity. -/ + targetCapacityUnitType : Option TargetCapacityUnitType := none + /-- The number of units to request, filled using the default target capacity type. -/ + totalTargetCapacity : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape TargetCapacitySpecificationRequest where + schema := .struct "TargetCapacitySpecificationRequest" [({ name := "DefaultTargetCapacityType" }, (Shape.schema DefaultTargetCapacityType)), + ({ name := "OnDemandTargetCapacity" }, .int), + ({ name := "SpotTargetCapacity" }, .int), + ({ name := "TargetCapacityUnitType" }, (Shape.schema TargetCapacityUnitType)), + ({ name := "TotalTargetCapacity", required := true }, .int)] + toValue x := record [putOpt "DefaultTargetCapacityType" x.defaultTargetCapacityType, putOpt "OnDemandTargetCapacity" x.onDemandTargetCapacity, putOpt "SpotTargetCapacity" x.spotTargetCapacity, putOpt "TargetCapacityUnitType" x.targetCapacityUnitType, put "TotalTargetCapacity" x.totalTargetCapacity] + ofValue v := do + let defaultTargetCapacityType ← v.opt "DefaultTargetCapacityType" + let onDemandTargetCapacity ← v.opt "OnDemandTargetCapacity" + let spotTargetCapacity ← v.opt "SpotTargetCapacity" + let targetCapacityUnitType ← v.opt "TargetCapacityUnitType" + let totalTargetCapacity ← v.req "TotalTargetCapacity" + return { defaultTargetCapacityType, onDemandTargetCapacity, spotTargetCapacity, targetCapacityUnitType, totalTargetCapacity } + +/-- Describes the target groups to attach to a Spot Fleet. -/ +structure TargetGroupsConfig where + /-- One or more target groups. -/ + targetGroups : Option (List TargetGroup) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TargetGroupsConfig where + schema := .struct "TargetGroupsConfig" [({ name := "TargetGroups", xmlName := some "targetGroups", queryName := some "TargetGroups" }, (.list (Shape.schema TargetGroup) "item"))] + toValue x := record [putOpt "TargetGroups" x.targetGroups] + ofValue v := do + let targetGroups ← v.opt "TargetGroups" + return { targetGroups } + +/-- The total value of the new Convertible Reserved Instances. -/ +structure TargetReservationValue where + /-- The total value of the Convertible Reserved Instances that make up the exchange. -/ + reservationValue : Option ReservationValue := none + /-- The configuration of the Convertible Reserved Instances that make up the exchange. -/ + targetConfiguration : Option TargetConfiguration := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TargetReservationValue where + schema := .struct "TargetReservationValue" [({ name := "ReservationValue", xmlName := some "reservationValue", queryName := some "ReservationValue" }, (Shape.schema ReservationValue)), + ({ name := "TargetConfiguration", xmlName := some "targetConfiguration", queryName := some "TargetConfiguration" }, (Shape.schema TargetConfiguration))] + toValue x := record [putOpt "ReservationValue" x.reservationValue, putOpt "TargetConfiguration" x.targetConfiguration] + ofValue v := do + let reservationValue ← v.opt "ReservationValue" + let targetConfiguration ← v.opt "TargetConfiguration" + return { reservationValue, targetConfiguration } + +/-- Describes a through resource statement. -/ +structure ThroughResourcesStatement where + /-- The resource statement. -/ + resourceStatement : Option ResourceStatement := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ThroughResourcesStatement where + schema := .struct "ThroughResourcesStatement" [({ name := "ResourceStatement", xmlName := some "resourceStatement", queryName := some "ResourceStatement" }, (Shape.schema ResourceStatement))] + toValue x := record [putOpt "ResourceStatement" x.resourceStatement] + ofValue v := do + let resourceStatement ← v.opt "ResourceStatement" + return { resourceStatement } + +/-- Describes a through resource statement. -/ +structure ThroughResourcesStatementRequest where + /-- The resource statement. -/ + resourceStatement : Option ResourceStatementRequest := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ThroughResourcesStatementRequest where + schema := .struct "ThroughResourcesStatementRequest" [({ name := "ResourceStatement" }, (Shape.schema ResourceStatementRequest))] + toValue x := record [putOpt "ResourceStatement" x.resourceStatement] + ofValue v := do + let resourceStatement ← v.opt "ResourceStatement" + return { resourceStatement } + +/-- Describes the Traffic Mirror rule. -/ +structure TrafficMirrorFilterRule where + /-- The description of the Traffic Mirror rule. -/ + description : Option String := none + /-- The destination CIDR block assigned to the Traffic Mirror rule. -/ + destinationCidrBlock : Option String := none + /-- The destination port range assigned to the Traffic Mirror rule. -/ + destinationPortRange : Option TrafficMirrorPortRange := none + /-- The protocol assigned to the Traffic Mirror rule. -/ + protocol : Option Int := none + /-- The action assigned to the Traffic Mirror rule. -/ + ruleAction : Option TrafficMirrorRuleAction := none + /-- The rule number of the Traffic Mirror rule. -/ + ruleNumber : Option Int := none + /-- The source CIDR block assigned to the Traffic Mirror rule. -/ + sourceCidrBlock : Option String := none + /-- The source port range assigned to the Traffic Mirror rule. -/ + sourcePortRange : Option TrafficMirrorPortRange := none + /-- Tags on Traffic Mirroring filter rules. -/ + tags : Option (List Tag) := none + /-- The traffic direction assigned to the Traffic Mirror rule. -/ + trafficDirection : Option TrafficDirection := none + /-- The ID of the Traffic Mirror filter that the rule is associated with. -/ + trafficMirrorFilterId : Option String := none + /-- The ID of the Traffic Mirror rule. -/ + trafficMirrorFilterRuleId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TrafficMirrorFilterRule where + schema := .struct "TrafficMirrorFilterRule" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "DestinationCidrBlock", xmlName := some "destinationCidrBlock", queryName := some "DestinationCidrBlock" }, .string), + ({ name := "DestinationPortRange", xmlName := some "destinationPortRange", queryName := some "DestinationPortRange" }, (Shape.schema TrafficMirrorPortRange)), + ({ name := "Protocol", xmlName := some "protocol", queryName := some "Protocol" }, .int), + ({ name := "RuleAction", xmlName := some "ruleAction", queryName := some "RuleAction" }, (Shape.schema TrafficMirrorRuleAction)), + ({ name := "RuleNumber", xmlName := some "ruleNumber", queryName := some "RuleNumber" }, .int), + ({ name := "SourceCidrBlock", xmlName := some "sourceCidrBlock", queryName := some "SourceCidrBlock" }, .string), + ({ name := "SourcePortRange", xmlName := some "sourcePortRange", queryName := some "SourcePortRange" }, (Shape.schema TrafficMirrorPortRange)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TrafficDirection", xmlName := some "trafficDirection", queryName := some "TrafficDirection" }, (Shape.schema TrafficDirection)), + ({ name := "TrafficMirrorFilterId", xmlName := some "trafficMirrorFilterId", queryName := some "TrafficMirrorFilterId" }, .string), + ({ name := "TrafficMirrorFilterRuleId", xmlName := some "trafficMirrorFilterRuleId", queryName := some "TrafficMirrorFilterRuleId" }, .string)] + toValue x := record [putOpt "Description" x.description, putOpt "DestinationCidrBlock" x.destinationCidrBlock, putOpt "DestinationPortRange" x.destinationPortRange, putOpt "Protocol" x.protocol, putOpt "RuleAction" x.ruleAction, putOpt "RuleNumber" x.ruleNumber, putOpt "SourceCidrBlock" x.sourceCidrBlock, putOpt "SourcePortRange" x.sourcePortRange, putOpt "Tags" x.tags, putOpt "TrafficDirection" x.trafficDirection, putOpt "TrafficMirrorFilterId" x.trafficMirrorFilterId, putOpt "TrafficMirrorFilterRuleId" x.trafficMirrorFilterRuleId] + ofValue v := do + let description ← v.opt "Description" + let destinationCidrBlock ← v.opt "DestinationCidrBlock" + let destinationPortRange ← v.opt "DestinationPortRange" + let protocol ← v.opt "Protocol" + let ruleAction ← v.opt "RuleAction" + let ruleNumber ← v.opt "RuleNumber" + let sourceCidrBlock ← v.opt "SourceCidrBlock" + let sourcePortRange ← v.opt "SourcePortRange" + let tags ← v.opt "Tags" + let trafficDirection ← v.opt "TrafficDirection" + let trafficMirrorFilterId ← v.opt "TrafficMirrorFilterId" + let trafficMirrorFilterRuleId ← v.opt "TrafficMirrorFilterRuleId" + return { description, destinationCidrBlock, destinationPortRange, protocol, ruleAction, ruleNumber, sourceCidrBlock, sourcePortRange, tags, trafficDirection, trafficMirrorFilterId, trafficMirrorFilterRuleId } + +/-- Describes a Traffic Mirror session. -/ +structure TrafficMirrorSession where + /-- The description of the Traffic Mirror session. -/ + description : Option String := none + /-- The ID of the Traffic Mirror session's network interface. -/ + networkInterfaceId : Option String := none + /-- The ID of the account that owns the Traffic Mirror session. -/ + ownerId : Option String := none + /-- The number of bytes in each packet to mirror. -/ + packetLength : Option Int := none + /-- The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. -/ + sessionNumber : Option Int := none + /-- The tags assigned to the Traffic Mirror session. -/ + tags : Option (List Tag) := none + /-- The ID of the Traffic Mirror filter. -/ + trafficMirrorFilterId : Option String := none + /-- The ID for the Traffic Mirror session. -/ + trafficMirrorSessionId : Option String := none + /-- The ID of the Traffic Mirror target. -/ + trafficMirrorTargetId : Option String := none + /-- The virtual network ID associated with the Traffic Mirror session. -/ + virtualNetworkId : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TrafficMirrorSession where + schema := .struct "TrafficMirrorSession" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "PacketLength", xmlName := some "packetLength", queryName := some "PacketLength" }, .int), + ({ name := "SessionNumber", xmlName := some "sessionNumber", queryName := some "SessionNumber" }, .int), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TrafficMirrorFilterId", xmlName := some "trafficMirrorFilterId", queryName := some "TrafficMirrorFilterId" }, .string), + ({ name := "TrafficMirrorSessionId", xmlName := some "trafficMirrorSessionId", queryName := some "TrafficMirrorSessionId" }, .string), + ({ name := "TrafficMirrorTargetId", xmlName := some "trafficMirrorTargetId", queryName := some "TrafficMirrorTargetId" }, .string), + ({ name := "VirtualNetworkId", xmlName := some "virtualNetworkId", queryName := some "VirtualNetworkId" }, .int)] + toValue x := record [putOpt "Description" x.description, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "OwnerId" x.ownerId, putOpt "PacketLength" x.packetLength, putOpt "SessionNumber" x.sessionNumber, putOpt "Tags" x.tags, putOpt "TrafficMirrorFilterId" x.trafficMirrorFilterId, putOpt "TrafficMirrorSessionId" x.trafficMirrorSessionId, putOpt "TrafficMirrorTargetId" x.trafficMirrorTargetId, putOpt "VirtualNetworkId" x.virtualNetworkId] + ofValue v := do + let description ← v.opt "Description" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let ownerId ← v.opt "OwnerId" + let packetLength ← v.opt "PacketLength" + let sessionNumber ← v.opt "SessionNumber" + let tags ← v.opt "Tags" + let trafficMirrorFilterId ← v.opt "TrafficMirrorFilterId" + let trafficMirrorSessionId ← v.opt "TrafficMirrorSessionId" + let trafficMirrorTargetId ← v.opt "TrafficMirrorTargetId" + let virtualNetworkId ← v.opt "VirtualNetworkId" + return { description, networkInterfaceId, ownerId, packetLength, sessionNumber, tags, trafficMirrorFilterId, trafficMirrorSessionId, trafficMirrorTargetId, virtualNetworkId } + +/-- Describes a Traffic Mirror target. -/ +structure TrafficMirrorTarget where + /-- Information about the Traffic Mirror target. -/ + description : Option String := none + /-- The ID of the Gateway Load Balancer endpoint. -/ + gatewayLoadBalancerEndpointId : Option String := none + /-- The network interface ID that is attached to the target. -/ + networkInterfaceId : Option String := none + /-- The Amazon Resource Name (ARN) of the Network Load Balancer. -/ + networkLoadBalancerArn : Option String := none + /-- The ID of the account that owns the Traffic Mirror target. -/ + ownerId : Option String := none + /-- The tags assigned to the Traffic Mirror target. -/ + tags : Option (List Tag) := none + /-- The ID of the Traffic Mirror target. -/ + trafficMirrorTargetId : Option String := none + /-- The type of Traffic Mirror target. -/ + type : Option TrafficMirrorTargetType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TrafficMirrorTarget where + schema := .struct "TrafficMirrorTarget" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "GatewayLoadBalancerEndpointId", xmlName := some "gatewayLoadBalancerEndpointId", queryName := some "GatewayLoadBalancerEndpointId" }, .string), + ({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "NetworkLoadBalancerArn", xmlName := some "networkLoadBalancerArn", queryName := some "NetworkLoadBalancerArn" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TrafficMirrorTargetId", xmlName := some "trafficMirrorTargetId", queryName := some "TrafficMirrorTargetId" }, .string), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, (Shape.schema TrafficMirrorTargetType))] + toValue x := record [putOpt "Description" x.description, putOpt "GatewayLoadBalancerEndpointId" x.gatewayLoadBalancerEndpointId, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "NetworkLoadBalancerArn" x.networkLoadBalancerArn, putOpt "OwnerId" x.ownerId, putOpt "Tags" x.tags, putOpt "TrafficMirrorTargetId" x.trafficMirrorTargetId, putOpt "Type" x.type] + ofValue v := do + let description ← v.opt "Description" + let gatewayLoadBalancerEndpointId ← v.opt "GatewayLoadBalancerEndpointId" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let networkLoadBalancerArn ← v.opt "NetworkLoadBalancerArn" + let ownerId ← v.opt "OwnerId" + let tags ← v.opt "Tags" + let trafficMirrorTargetId ← v.opt "TrafficMirrorTargetId" + let type ← v.opt "Type" + return { description, gatewayLoadBalancerEndpointId, networkInterfaceId, networkLoadBalancerArn, ownerId, tags, trafficMirrorTargetId, type } + +/-- Describes an association between a resource attachment and a transit gateway route table. -/ +structure TransitGatewayAssociation where + /-- The ID of the resource. -/ + resourceId : Option String := none + /-- The resource type. -/ + resourceType : Option TransitGatewayAttachmentResourceType := none + /-- The state of the association. -/ + state : Option TransitGatewayAssociationState := none + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the transit gateway route table. -/ + transitGatewayRouteTableId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayAssociation where + schema := .struct "TransitGatewayAssociation" [({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema TransitGatewayAttachmentResourceType)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayAssociationState)), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayRouteTableId", xmlName := some "transitGatewayRouteTableId", queryName := some "TransitGatewayRouteTableId" }, .string)] + toValue x := record [putOpt "ResourceId" x.resourceId, putOpt "ResourceType" x.resourceType, putOpt "State" x.state, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, putOpt "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let resourceId ← v.opt "ResourceId" + let resourceType ← v.opt "ResourceType" + let state ← v.opt "State" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayRouteTableId ← v.opt "TransitGatewayRouteTableId" + return { resourceId, resourceType, state, transitGatewayAttachmentId, transitGatewayRouteTableId } + +/-- Describes an association. -/ +structure TransitGatewayAttachmentAssociation where + /-- The state of the association. -/ + state : Option TransitGatewayAssociationState := none + /-- The ID of the transit gateway policy table associated with the attachment. -/ + transitGatewayPolicyTableId : Option String := none + /-- The ID of the route table for the transit gateway. -/ + transitGatewayRouteTableId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayAttachmentAssociation where + schema := .struct "TransitGatewayAttachmentAssociation" [({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayAssociationState)), + ({ name := "TransitGatewayPolicyTableId", xmlName := some "transitGatewayPolicyTableId", queryName := some "TransitGatewayPolicyTableId" }, .string), + ({ name := "TransitGatewayRouteTableId", xmlName := some "transitGatewayRouteTableId", queryName := some "TransitGatewayRouteTableId" }, .string)] + toValue x := record [putOpt "State" x.state, putOpt "TransitGatewayPolicyTableId" x.transitGatewayPolicyTableId, putOpt "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let state ← v.opt "State" + let transitGatewayPolicyTableId ← v.opt "TransitGatewayPolicyTableId" + let transitGatewayRouteTableId ← v.opt "TransitGatewayRouteTableId" + return { state, transitGatewayPolicyTableId, transitGatewayRouteTableId } + +/-- The BGP configuration information. -/ +structure TransitGatewayAttachmentBgpConfiguration where + /-- The BGP status. -/ + bgpStatus : Option BgpStatus := none + /-- The interior BGP peer IP address for the appliance. -/ + peerAddress : Option String := none + /-- The peer Autonomous System Number (ASN). -/ + peerAsn : Option Int := none + /-- The interior BGP peer IP address for the transit gateway. -/ + transitGatewayAddress : Option String := none + /-- The transit gateway Autonomous System Number (ASN). -/ + transitGatewayAsn : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayAttachmentBgpConfiguration where + schema := .struct "TransitGatewayAttachmentBgpConfiguration" [({ name := "BgpStatus", xmlName := some "bgpStatus", queryName := some "BgpStatus" }, (Shape.schema BgpStatus)), + ({ name := "PeerAddress", xmlName := some "peerAddress", queryName := some "PeerAddress" }, .string), + ({ name := "PeerAsn", xmlName := some "peerAsn", queryName := some "PeerAsn" }, .int), + ({ name := "TransitGatewayAddress", xmlName := some "transitGatewayAddress", queryName := some "TransitGatewayAddress" }, .string), + ({ name := "TransitGatewayAsn", xmlName := some "transitGatewayAsn", queryName := some "TransitGatewayAsn" }, .int)] + toValue x := record [putOpt "BgpStatus" x.bgpStatus, putOpt "PeerAddress" x.peerAddress, putOpt "PeerAsn" x.peerAsn, putOpt "TransitGatewayAddress" x.transitGatewayAddress, putOpt "TransitGatewayAsn" x.transitGatewayAsn] + ofValue v := do + let bgpStatus ← v.opt "BgpStatus" + let peerAddress ← v.opt "PeerAddress" + let peerAsn ← v.opt "PeerAsn" + let transitGatewayAddress ← v.opt "TransitGatewayAddress" + let transitGatewayAsn ← v.opt "TransitGatewayAsn" + return { bgpStatus, peerAddress, peerAsn, transitGatewayAddress, transitGatewayAsn } + +/-- Describes a propagation route table. -/ +structure TransitGatewayAttachmentPropagation where + /-- The state of the propagation route table. -/ + state : Option TransitGatewayPropagationState := none + /-- The ID of the propagation route table. -/ + transitGatewayRouteTableId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayAttachmentPropagation where + schema := .struct "TransitGatewayAttachmentPropagation" [({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayPropagationState)), + ({ name := "TransitGatewayRouteTableId", xmlName := some "transitGatewayRouteTableId", queryName := some "TransitGatewayRouteTableId" }, .string)] + toValue x := record [putOpt "State" x.state, putOpt "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let state ← v.opt "State" + let transitGatewayRouteTableId ← v.opt "TransitGatewayRouteTableId" + return { state, transitGatewayRouteTableId } + +/-- Describes a Transit Gateway attachment for a Client VPN endpoint. -/ +structure TransitGatewayClientVpnAttachment where + /-- The ID of the Client VPN endpoint. -/ + clientVpnEndpointId : Option String := none + /-- The ID of the Amazon Web Services account that owns the Client VPN endpoint. -/ + clientVpnOwnerId : Option String := none + /-- The date and time the Transit Gateway attachment was created. -/ + creationTime : Option String := none + /-- The state of the Transit Gateway attachment. -/ + state : Option TransitGatewayAttachmentStatusType := none + /-- The ID of the Transit Gateway attachment. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the Transit Gateway. -/ + transitGatewayId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayClientVpnAttachment where + schema := .struct "TransitGatewayClientVpnAttachment" [({ name := "ClientVpnEndpointId", xmlName := some "clientVpnEndpointId", queryName := some "ClientVpnEndpointId" }, .string), + ({ name := "ClientVpnOwnerId", xmlName := some "clientVpnOwnerId", queryName := some "ClientVpnOwnerId" }, .string), + ({ name := "CreationTime", xmlName := some "creationTime", queryName := some "CreationTime" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayAttachmentStatusType)), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayId", xmlName := some "transitGatewayId", queryName := some "TransitGatewayId" }, .string)] + toValue x := record [putOpt "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "ClientVpnOwnerId" x.clientVpnOwnerId, putOpt "CreationTime" x.creationTime, putOpt "State" x.state, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, putOpt "TransitGatewayId" x.transitGatewayId] + ofValue v := do + let clientVpnEndpointId ← v.opt "ClientVpnEndpointId" + let clientVpnOwnerId ← v.opt "ClientVpnOwnerId" + let creationTime ← v.opt "CreationTime" + let state ← v.opt "State" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayId ← v.opt "TransitGatewayId" + return { clientVpnEndpointId, clientVpnOwnerId, creationTime, state, transitGatewayAttachmentId, transitGatewayId } + +/-- Describes the Connect attachment options. -/ +structure TransitGatewayConnectOptions where + /-- The tunnel protocol. -/ + protocol : Option ProtocolValue := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayConnectOptions where + schema := .struct "TransitGatewayConnectOptions" [({ name := "Protocol", xmlName := some "protocol", queryName := some "Protocol" }, (Shape.schema ProtocolValue))] + toValue x := record [putOpt "Protocol" x.protocol] + ofValue v := do + let protocol ← v.opt "Protocol" + return { protocol } + +/-- Describes a transit gateway metering policy. -/ +structure TransitGatewayMeteringPolicy where + /-- The IDs of the middlebox attachments associated with the metering policy. -/ + middleboxAttachmentIds : Option (List String) := none + /-- The state of the transit gateway metering policy. -/ + state : Option TransitGatewayMeteringPolicyState := none + /-- The tags assigned to the transit gateway metering policy. -/ + tags : Option (List Tag) := none + /-- The ID of the transit gateway associated with the metering policy. -/ + transitGatewayId : Option String := none + /-- The ID of the transit gateway metering policy. -/ + transitGatewayMeteringPolicyId : Option String := none + /-- The date and time when the metering policy update becomes effective. -/ + updateEffectiveAt : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayMeteringPolicy where + schema := .struct "TransitGatewayMeteringPolicy" [({ name := "MiddleboxAttachmentIds", xmlName := some "middleboxAttachmentIdSet", queryName := some "MiddleboxAttachmentIdSet" }, (.list .string "item")), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayMeteringPolicyState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TransitGatewayId", xmlName := some "transitGatewayId", queryName := some "TransitGatewayId" }, .string), + ({ name := "TransitGatewayMeteringPolicyId", xmlName := some "transitGatewayMeteringPolicyId", queryName := some "TransitGatewayMeteringPolicyId" }, .string), + ({ name := "UpdateEffectiveAt", xmlName := some "updateEffectiveAt", queryName := some "UpdateEffectiveAt" }, (.time none))] + toValue x := record [putOpt "MiddleboxAttachmentIds" x.middleboxAttachmentIds, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "TransitGatewayId" x.transitGatewayId, putOpt "TransitGatewayMeteringPolicyId" x.transitGatewayMeteringPolicyId, putOpt "UpdateEffectiveAt" x.updateEffectiveAt] + ofValue v := do + let middleboxAttachmentIds ← v.opt "MiddleboxAttachmentIds" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let transitGatewayId ← v.opt "TransitGatewayId" + let transitGatewayMeteringPolicyId ← v.opt "TransitGatewayMeteringPolicyId" + let updateEffectiveAt ← v.opt "UpdateEffectiveAt" + return { middleboxAttachmentIds, state, tags, transitGatewayId, transitGatewayMeteringPolicyId, updateEffectiveAt } + +/-- Describes the traffic matching criteria for a transit gateway metering policy rule. -/ +structure TransitGatewayMeteringPolicyRule where + /-- The destination CIDR block for the rule. -/ + destinationCidrBlock : Option String := none + /-- The destination port range for the rule. -/ + destinationPortRange : Option String := none + /-- The ID of the destination transit gateway attachment. -/ + destinationTransitGatewayAttachmentId : Option String := none + /-- The type of the destination transit gateway attachment. -/ + destinationTransitGatewayAttachmentType : Option TransitGatewayAttachmentResourceType := none + /-- The protocol for the rule (1, 6, 17, etc.). -/ + protocol : Option String := none + /-- The source CIDR block for the rule. -/ + sourceCidrBlock : Option String := none + /-- The source port range for the rule. -/ + sourcePortRange : Option String := none + /-- The ID of the source transit gateway attachment. -/ + sourceTransitGatewayAttachmentId : Option String := none + /-- The type of the source transit gateway attachment. -/ + sourceTransitGatewayAttachmentType : Option TransitGatewayAttachmentResourceType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayMeteringPolicyRule where + schema := .struct "TransitGatewayMeteringPolicyRule" [({ name := "DestinationCidrBlock", xmlName := some "destinationCidrBlock", queryName := some "DestinationCidrBlock" }, .string), + ({ name := "DestinationPortRange", xmlName := some "destinationPortRange", queryName := some "DestinationPortRange" }, .string), + ({ name := "DestinationTransitGatewayAttachmentId", xmlName := some "destinationTransitGatewayAttachmentId", queryName := some "DestinationTransitGatewayAttachmentId" }, .string), + ({ name := "DestinationTransitGatewayAttachmentType", xmlName := some "destinationTransitGatewayAttachmentType", queryName := some "DestinationTransitGatewayAttachmentType" }, (Shape.schema TransitGatewayAttachmentResourceType)), + ({ name := "Protocol", xmlName := some "protocol", queryName := some "Protocol" }, .string), + ({ name := "SourceCidrBlock", xmlName := some "sourceCidrBlock", queryName := some "SourceCidrBlock" }, .string), + ({ name := "SourcePortRange", xmlName := some "sourcePortRange", queryName := some "SourcePortRange" }, .string), + ({ name := "SourceTransitGatewayAttachmentId", xmlName := some "sourceTransitGatewayAttachmentId", queryName := some "SourceTransitGatewayAttachmentId" }, .string), + ({ name := "SourceTransitGatewayAttachmentType", xmlName := some "sourceTransitGatewayAttachmentType", queryName := some "SourceTransitGatewayAttachmentType" }, (Shape.schema TransitGatewayAttachmentResourceType))] + toValue x := record [putOpt "DestinationCidrBlock" x.destinationCidrBlock, putOpt "DestinationPortRange" x.destinationPortRange, putOpt "DestinationTransitGatewayAttachmentId" x.destinationTransitGatewayAttachmentId, putOpt "DestinationTransitGatewayAttachmentType" x.destinationTransitGatewayAttachmentType, putOpt "Protocol" x.protocol, putOpt "SourceCidrBlock" x.sourceCidrBlock, putOpt "SourcePortRange" x.sourcePortRange, putOpt "SourceTransitGatewayAttachmentId" x.sourceTransitGatewayAttachmentId, putOpt "SourceTransitGatewayAttachmentType" x.sourceTransitGatewayAttachmentType] + ofValue v := do + let destinationCidrBlock ← v.opt "DestinationCidrBlock" + let destinationPortRange ← v.opt "DestinationPortRange" + let destinationTransitGatewayAttachmentId ← v.opt "DestinationTransitGatewayAttachmentId" + let destinationTransitGatewayAttachmentType ← v.opt "DestinationTransitGatewayAttachmentType" + let protocol ← v.opt "Protocol" + let sourceCidrBlock ← v.opt "SourceCidrBlock" + let sourcePortRange ← v.opt "SourcePortRange" + let sourceTransitGatewayAttachmentId ← v.opt "SourceTransitGatewayAttachmentId" + let sourceTransitGatewayAttachmentType ← v.opt "SourceTransitGatewayAttachmentType" + return { destinationCidrBlock, destinationPortRange, destinationTransitGatewayAttachmentId, destinationTransitGatewayAttachmentType, protocol, sourceCidrBlock, sourcePortRange, sourceTransitGatewayAttachmentId, sourceTransitGatewayAttachmentType } + +/-- Describes the options for a transit gateway multicast domain. -/ +structure TransitGatewayMulticastDomainOptions where + /-- Indicates whether to automatically cross-account subnet associations that are associated with the transit gateway multicast domain. -/ + autoAcceptSharedAssociations : Option AutoAcceptSharedAssociationsValue := none + /-- Indicates whether Internet Group Management Protocol (IGMP) version 2 is turned on for the transit gateway multicast domain. -/ + igmpv2Support : Option Igmpv2SupportValue := none + /-- Indicates whether support for statically configuring transit gateway multicast group sources is turned on. -/ + staticSourcesSupport : Option StaticSourcesSupportValue := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayMulticastDomainOptions where + schema := .struct "TransitGatewayMulticastDomainOptions" [({ name := "AutoAcceptSharedAssociations", xmlName := some "autoAcceptSharedAssociations", queryName := some "AutoAcceptSharedAssociations" }, (Shape.schema AutoAcceptSharedAssociationsValue)), + ({ name := "Igmpv2Support", xmlName := some "igmpv2Support", queryName := some "Igmpv2Support" }, (Shape.schema Igmpv2SupportValue)), + ({ name := "StaticSourcesSupport", xmlName := some "staticSourcesSupport", queryName := some "StaticSourcesSupport" }, (Shape.schema StaticSourcesSupportValue))] + toValue x := record [putOpt "AutoAcceptSharedAssociations" x.autoAcceptSharedAssociations, putOpt "Igmpv2Support" x.igmpv2Support, putOpt "StaticSourcesSupport" x.staticSourcesSupport] + ofValue v := do + let autoAcceptSharedAssociations ← v.opt "AutoAcceptSharedAssociations" + let igmpv2Support ← v.opt "Igmpv2Support" + let staticSourcesSupport ← v.opt "StaticSourcesSupport" + return { autoAcceptSharedAssociations, igmpv2Support, staticSourcesSupport } + +/-- Describes the transit gateway multicast group resources. -/ +structure TransitGatewayMulticastGroup where + /-- The IP address assigned to the transit gateway multicast group. -/ + groupIpAddress : Option String := none + /-- Indicates that the resource is a transit gateway multicast group member. -/ + groupMember : Option Bool := none + /-- Indicates that the resource is a transit gateway multicast group member. -/ + groupSource : Option Bool := none + /-- The member type (for example, static ). -/ + memberType : Option MembershipType := none + /-- The ID of the transit gateway attachment. -/ + networkInterfaceId : Option String := none + /-- The ID of the resource. -/ + resourceId : Option String := none + /-- The ID of the Amazon Web Services account that owns the transit gateway multicast domain group resource. -/ + resourceOwnerId : Option String := none + /-- The type of resource, for example a VPC attachment. -/ + resourceType : Option TransitGatewayAttachmentResourceType := none + /-- The source type. -/ + sourceType : Option MembershipType := none + /-- The ID of the subnet. -/ + subnetId : Option String := none + /-- The ID of the transit gateway attachment. -/ + transitGatewayAttachmentId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayMulticastGroup where + schema := .struct "TransitGatewayMulticastGroup" [({ name := "GroupIpAddress", xmlName := some "groupIpAddress", queryName := some "GroupIpAddress" }, .string), + ({ name := "GroupMember", xmlName := some "groupMember", queryName := some "GroupMember" }, .bool), + ({ name := "GroupSource", xmlName := some "groupSource", queryName := some "GroupSource" }, .bool), + ({ name := "MemberType", xmlName := some "memberType", queryName := some "MemberType" }, (Shape.schema MembershipType)), + ({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceOwnerId", xmlName := some "resourceOwnerId", queryName := some "ResourceOwnerId" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema TransitGatewayAttachmentResourceType)), + ({ name := "SourceType", xmlName := some "sourceType", queryName := some "SourceType" }, (Shape.schema MembershipType)), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string)] + toValue x := record [putOpt "GroupIpAddress" x.groupIpAddress, putOpt "GroupMember" x.groupMember, putOpt "GroupSource" x.groupSource, putOpt "MemberType" x.memberType, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "ResourceId" x.resourceId, putOpt "ResourceOwnerId" x.resourceOwnerId, putOpt "ResourceType" x.resourceType, putOpt "SourceType" x.sourceType, putOpt "SubnetId" x.subnetId, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let groupIpAddress ← v.opt "GroupIpAddress" + let groupMember ← v.opt "GroupMember" + let groupSource ← v.opt "GroupSource" + let memberType ← v.opt "MemberType" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let resourceId ← v.opt "ResourceId" + let resourceOwnerId ← v.opt "ResourceOwnerId" + let resourceType ← v.opt "ResourceType" + let sourceType ← v.opt "SourceType" + let subnetId ← v.opt "SubnetId" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + return { groupIpAddress, groupMember, groupSource, memberType, networkInterfaceId, resourceId, resourceOwnerId, resourceType, sourceType, subnetId, transitGatewayAttachmentId } + +/-- Contains information about a NAT gateway rule for a transit gateway attachment, including the rule number, the source CIDR block, the translated CIDR block, and the state of the rule. -/ +structure TransitGatewayNatRule where + /-- The IPv4 CIDR block of the source addresses to translate. -/ + matchSourceCidr : Option String := none + /-- The IPv4 CIDR block that the transit gateway translates the source addresses to. -/ + natCidr : Option String := none + /-- The rule number. -/ + ruleNumber : Option Int := none + /-- The state of the NAT gateway rule. -/ + state : Option TransitGatewayNatRuleState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayNatRule where + schema := .struct "TransitGatewayNatRule" [({ name := "MatchSourceCidr", xmlName := some "matchSourceCidr", queryName := some "MatchSourceCidr" }, .string), + ({ name := "NatCidr", xmlName := some "natCidr", queryName := some "NatCidr" }, .string), + ({ name := "RuleNumber", xmlName := some "ruleNumber", queryName := some "RuleNumber" }, .int), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayNatRuleState))] + toValue x := record [putOpt "MatchSourceCidr" x.matchSourceCidr, putOpt "NatCidr" x.natCidr, putOpt "RuleNumber" x.ruleNumber, putOpt "State" x.state] + ofValue v := do + let matchSourceCidr ← v.opt "MatchSourceCidr" + let natCidr ← v.opt "NatCidr" + let ruleNumber ← v.opt "RuleNumber" + let state ← v.opt "State" + return { matchSourceCidr, natCidr, ruleNumber, state } + +/-- Contains information about a transit gateway network function attachment, including the attachment ID, the transit gateway, the endpoint service, the Availability Zones, and the state of the attachment. -/ +structure TransitGatewayNetworkFunctionAttachment where + /-- The IDs of the Availability Zones for the attachment. -/ + availabilityZoneIds : Option (List String) := none + /-- The names of the Availability Zones for the attachment. -/ + availabilityZones : Option (List String) := none + /-- The date and time the attachment was created. -/ + creationTime : Option Timestamp := none + /-- The name of the Gateway Load Balancer endpoint service. -/ + resourceId : Option String := none + /-- The ID of the Amazon Web Services account that owns the attachment. -/ + resourceOwnerId : Option String := none + /-- The state of the attachment. -/ + state : Option TransitGatewayAttachmentState := none + /-- The tags for the attachment. -/ + tags : Option (List Tag) := none + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the transit gateway. -/ + transitGatewayId : Option String := none + /-- The ID of the Amazon Web Services account that owns the transit gateway. -/ + transitGatewayOwnerId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayNetworkFunctionAttachment where + schema := .struct "TransitGatewayNetworkFunctionAttachment" [({ name := "AvailabilityZoneIds", xmlName := some "availabilityZoneIdSet", queryName := some "AvailabilityZoneIdSet" }, (.list .string "item")), + ({ name := "AvailabilityZones", xmlName := some "availabilityZoneSet", queryName := some "AvailabilityZoneSet" }, (.list .string "item")), + ({ name := "CreationTime", xmlName := some "creationTime", queryName := some "CreationTime" }, (.time none)), + ({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceOwnerId", xmlName := some "resourceOwnerId", queryName := some "ResourceOwnerId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayAttachmentState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayId", xmlName := some "transitGatewayId", queryName := some "TransitGatewayId" }, .string), + ({ name := "TransitGatewayOwnerId", xmlName := some "transitGatewayOwnerId", queryName := some "TransitGatewayOwnerId" }, .string)] + toValue x := record [putOpt "AvailabilityZoneIds" x.availabilityZoneIds, putOpt "AvailabilityZones" x.availabilityZones, putOpt "CreationTime" x.creationTime, putOpt "ResourceId" x.resourceId, putOpt "ResourceOwnerId" x.resourceOwnerId, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, putOpt "TransitGatewayId" x.transitGatewayId, putOpt "TransitGatewayOwnerId" x.transitGatewayOwnerId] + ofValue v := do + let availabilityZoneIds ← v.opt "AvailabilityZoneIds" + let availabilityZones ← v.opt "AvailabilityZones" + let creationTime ← v.opt "CreationTime" + let resourceId ← v.opt "ResourceId" + let resourceOwnerId ← v.opt "ResourceOwnerId" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayId ← v.opt "TransitGatewayId" + let transitGatewayOwnerId ← v.opt "TransitGatewayOwnerId" + return { availabilityZoneIds, availabilityZones, creationTime, resourceId, resourceOwnerId, state, tags, transitGatewayAttachmentId, transitGatewayId, transitGatewayOwnerId } + +/-- Describes dynamic routing for the transit gateway peering attachment. -/ +structure TransitGatewayPeeringAttachmentOptions where + /-- Indicates whether the accepter allows multipath resilience for the transit gateway peering attachment. -/ + accepterAllowMultipathResilience : Option Bool := none + /-- The multipath resilience mode for the accepter. -/ + accepterMultipathResilienceMode : Option TransitGatewayPeeringAttachmentMultipathResilienceMode := none + /-- Describes whether dynamic routing is enabled or disabled for the transit gateway peering attachment. -/ + dynamicRouting : Option DynamicRoutingValue := none + /-- The multipath resilience status of the transit gateway peering attachment. -/ + multipathResilienceStatus : Option TransitGatewayPeeringAttachmentMultipathResilienceStatus := none + /-- Indicates whether the requester allows multipath resilience for the transit gateway peering attachment. -/ + requesterAllowMultipathResilience : Option Bool := none + /-- The multipath resilience mode for the requester. -/ + requesterMultipathResilienceMode : Option TransitGatewayPeeringAttachmentMultipathResilienceMode := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayPeeringAttachmentOptions where + schema := .struct "TransitGatewayPeeringAttachmentOptions" [({ name := "AccepterAllowMultipathResilience", xmlName := some "accepterAllowMultipathResilience", queryName := some "AccepterAllowMultipathResilience" }, .bool), + ({ name := "AccepterMultipathResilienceMode", xmlName := some "accepterMultipathResilienceMode", queryName := some "AccepterMultipathResilienceMode" }, (Shape.schema TransitGatewayPeeringAttachmentMultipathResilienceMode)), + ({ name := "DynamicRouting", xmlName := some "dynamicRouting", queryName := some "DynamicRouting" }, (Shape.schema DynamicRoutingValue)), + ({ name := "MultipathResilienceStatus", xmlName := some "multipathResilienceStatus", queryName := some "MultipathResilienceStatus" }, (Shape.schema TransitGatewayPeeringAttachmentMultipathResilienceStatus)), + ({ name := "RequesterAllowMultipathResilience", xmlName := some "requesterAllowMultipathResilience", queryName := some "RequesterAllowMultipathResilience" }, .bool), + ({ name := "RequesterMultipathResilienceMode", xmlName := some "requesterMultipathResilienceMode", queryName := some "RequesterMultipathResilienceMode" }, (Shape.schema TransitGatewayPeeringAttachmentMultipathResilienceMode))] + toValue x := record [putOpt "AccepterAllowMultipathResilience" x.accepterAllowMultipathResilience, putOpt "AccepterMultipathResilienceMode" x.accepterMultipathResilienceMode, putOpt "DynamicRouting" x.dynamicRouting, putOpt "MultipathResilienceStatus" x.multipathResilienceStatus, putOpt "RequesterAllowMultipathResilience" x.requesterAllowMultipathResilience, putOpt "RequesterMultipathResilienceMode" x.requesterMultipathResilienceMode] + ofValue v := do + let accepterAllowMultipathResilience ← v.opt "AccepterAllowMultipathResilience" + let accepterMultipathResilienceMode ← v.opt "AccepterMultipathResilienceMode" + let dynamicRouting ← v.opt "DynamicRouting" + let multipathResilienceStatus ← v.opt "MultipathResilienceStatus" + let requesterAllowMultipathResilience ← v.opt "RequesterAllowMultipathResilience" + let requesterMultipathResilienceMode ← v.opt "RequesterMultipathResilienceMode" + return { accepterAllowMultipathResilience, accepterMultipathResilienceMode, dynamicRouting, multipathResilienceStatus, requesterAllowMultipathResilience, requesterMultipathResilienceMode } + +/-- Describes a rule associated with a transit gateway policy. -/ +structure TransitGatewayPolicyRule where + /-- The destination CIDR block for the transit gateway policy rule. -/ + destinationCidrBlock : Option String := none + /-- The destination port or port range for the transit gateway policy rule. -/ + destinationPortRange : Option String := none + /-- The meta data tags used for the transit gateway policy rule. -/ + metaData : Option TransitGatewayPolicyRuleMetaData := none + /-- The protocol used by the transit gateway policy rule. -/ + protocol : Option String := none + /-- The source CIDR block for the transit gateway policy rule. -/ + sourceCidrBlock : Option String := none + /-- The source port or port range for the transit gateway policy rule. -/ + sourcePortRange : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayPolicyRule where + schema := .struct "TransitGatewayPolicyRule" [({ name := "DestinationCidrBlock", xmlName := some "destinationCidrBlock", queryName := some "DestinationCidrBlock" }, .string), + ({ name := "DestinationPortRange", xmlName := some "destinationPortRange", queryName := some "DestinationPortRange" }, .string), + ({ name := "MetaData", xmlName := some "metaData", queryName := some "MetaData" }, (Shape.schema TransitGatewayPolicyRuleMetaData)), + ({ name := "Protocol", xmlName := some "protocol", queryName := some "Protocol" }, .string), + ({ name := "SourceCidrBlock", xmlName := some "sourceCidrBlock", queryName := some "SourceCidrBlock" }, .string), + ({ name := "SourcePortRange", xmlName := some "sourcePortRange", queryName := some "SourcePortRange" }, .string)] + toValue x := record [putOpt "DestinationCidrBlock" x.destinationCidrBlock, putOpt "DestinationPortRange" x.destinationPortRange, putOpt "MetaData" x.metaData, putOpt "Protocol" x.protocol, putOpt "SourceCidrBlock" x.sourceCidrBlock, putOpt "SourcePortRange" x.sourcePortRange] + ofValue v := do + let destinationCidrBlock ← v.opt "DestinationCidrBlock" + let destinationPortRange ← v.opt "DestinationPortRange" + let metaData ← v.opt "MetaData" + let protocol ← v.opt "Protocol" + let sourceCidrBlock ← v.opt "SourceCidrBlock" + let sourcePortRange ← v.opt "SourcePortRange" + return { destinationCidrBlock, destinationPortRange, metaData, protocol, sourceCidrBlock, sourcePortRange } + +/-- Describes a transit gateway policy table. -/ +structure TransitGatewayPolicyTable where + /-- The timestamp when the transit gateway policy table was created. -/ + creationTime : Option Timestamp := none + /-- The state of the transit gateway policy table. -/ + state : Option TransitGatewayPolicyTableState := none + /-- he key-value pairs associated with the transit gateway policy table. -/ + tags : Option (List Tag) := none + /-- The ID of the transit gateway. -/ + transitGatewayId : Option String := none + /-- The ID of the transit gateway policy table. -/ + transitGatewayPolicyTableId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayPolicyTable where + schema := .struct "TransitGatewayPolicyTable" [({ name := "CreationTime", xmlName := some "creationTime", queryName := some "CreationTime" }, (.time none)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayPolicyTableState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TransitGatewayId", xmlName := some "transitGatewayId", queryName := some "TransitGatewayId" }, .string), + ({ name := "TransitGatewayPolicyTableId", xmlName := some "transitGatewayPolicyTableId", queryName := some "TransitGatewayPolicyTableId" }, .string)] + toValue x := record [putOpt "CreationTime" x.creationTime, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "TransitGatewayId" x.transitGatewayId, putOpt "TransitGatewayPolicyTableId" x.transitGatewayPolicyTableId] + ofValue v := do + let creationTime ← v.opt "CreationTime" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let transitGatewayId ← v.opt "TransitGatewayId" + let transitGatewayPolicyTableId ← v.opt "TransitGatewayPolicyTableId" + return { creationTime, state, tags, transitGatewayId, transitGatewayPolicyTableId } + +/-- Describes a transit gateway policy table association. -/ +structure TransitGatewayPolicyTableAssociation where + /-- The resource ID of the transit gateway attachment. -/ + resourceId : Option String := none + /-- The resource type for the transit gateway policy table association. -/ + resourceType : Option TransitGatewayAttachmentResourceType := none + /-- The state of the transit gateway policy table association. -/ + state : Option TransitGatewayAssociationState := none + /-- The ID of the transit gateway attachment. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the transit gateway policy table. -/ + transitGatewayPolicyTableId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayPolicyTableAssociation where + schema := .struct "TransitGatewayPolicyTableAssociation" [({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema TransitGatewayAttachmentResourceType)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayAssociationState)), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayPolicyTableId", xmlName := some "transitGatewayPolicyTableId", queryName := some "TransitGatewayPolicyTableId" }, .string)] + toValue x := record [putOpt "ResourceId" x.resourceId, putOpt "ResourceType" x.resourceType, putOpt "State" x.state, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, putOpt "TransitGatewayPolicyTableId" x.transitGatewayPolicyTableId] + ofValue v := do + let resourceId ← v.opt "ResourceId" + let resourceType ← v.opt "ResourceType" + let state ← v.opt "State" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayPolicyTableId ← v.opt "TransitGatewayPolicyTableId" + return { resourceId, resourceType, state, transitGatewayAttachmentId, transitGatewayPolicyTableId } + +/-- Describes a transit gateway prefix list attachment. -/ +structure TransitGatewayPrefixListAttachment where + /-- The ID of the resource. -/ + resourceId : Option String := none + /-- The resource type. -/ + resourceType : Option TransitGatewayAttachmentResourceType := none + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayPrefixListAttachment where + schema := .struct "TransitGatewayPrefixListAttachment" [({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema TransitGatewayAttachmentResourceType)), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string)] + toValue x := record [putOpt "ResourceId" x.resourceId, putOpt "ResourceType" x.resourceType, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let resourceId ← v.opt "ResourceId" + let resourceType ← v.opt "ResourceType" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + return { resourceId, resourceType, transitGatewayAttachmentId } + +/-- Describes route propagation. -/ +structure TransitGatewayPropagation where + /-- The ID of the resource. -/ + resourceId : Option String := none + /-- The resource type. -/ + resourceType : Option TransitGatewayAttachmentResourceType := none + /-- The state. -/ + state : Option TransitGatewayPropagationState := none + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the transit gateway route table announcement. -/ + transitGatewayRouteTableAnnouncementId : Option String := none + /-- The ID of the transit gateway route table. -/ + transitGatewayRouteTableId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayPropagation where + schema := .struct "TransitGatewayPropagation" [({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema TransitGatewayAttachmentResourceType)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayPropagationState)), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayRouteTableAnnouncementId", xmlName := some "transitGatewayRouteTableAnnouncementId", queryName := some "TransitGatewayRouteTableAnnouncementId" }, .string), + ({ name := "TransitGatewayRouteTableId", xmlName := some "transitGatewayRouteTableId", queryName := some "TransitGatewayRouteTableId" }, .string)] + toValue x := record [putOpt "ResourceId" x.resourceId, putOpt "ResourceType" x.resourceType, putOpt "State" x.state, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, putOpt "TransitGatewayRouteTableAnnouncementId" x.transitGatewayRouteTableAnnouncementId, putOpt "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let resourceId ← v.opt "ResourceId" + let resourceType ← v.opt "ResourceType" + let state ← v.opt "State" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayRouteTableAnnouncementId ← v.opt "TransitGatewayRouteTableAnnouncementId" + let transitGatewayRouteTableId ← v.opt "TransitGatewayRouteTableId" + return { resourceId, resourceType, state, transitGatewayAttachmentId, transitGatewayRouteTableAnnouncementId, transitGatewayRouteTableId } + +/-- Describes the options for a transit gateway. -/ +structure TransitGatewayRequestOptions where + /-- A private Autonomous System Number (ASN) for the Amazon side of a BGP session. -/ + amazonSideAsn : Option Int := none + /-- Enable or disable automatic acceptance of attachment requests. -/ + autoAcceptSharedAttachments : Option AutoAcceptSharedAttachmentsValue := none + /-- Enable or disable automatic association with the default association route table. -/ + defaultRouteTableAssociation : Option DefaultRouteTableAssociationValue := none + /-- Enable or disable automatic propagation of routes to the default propagation route table. -/ + defaultRouteTablePropagation : Option DefaultRouteTablePropagationValue := none + /-- Enable or disable DNS support. -/ + dnsSupport : Option DnsSupportValue := none + /-- Indicates whether multicast is enabled on the transit gateway. -/ + multicastSupport : Option MulticastSupportValue := none + /-- Enables you to reference a security group across VPCs attached to a transit gateway to simplify security group management. -/ + securityGroupReferencingSupport : Option SecurityGroupReferencingSupportValue := none + /-- One or more IPv4 or IPv6 CIDR blocks for the transit gateway. -/ + transitGatewayCidrBlocks : Option (List String) := none + /-- Enable or disable Equal Cost Multipath Protocol support. -/ + vpnEcmpSupport : Option VpnEcmpSupportValue := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayRequestOptions where + schema := .struct "TransitGatewayRequestOptions" [({ name := "AmazonSideAsn" }, .int), + ({ name := "AutoAcceptSharedAttachments" }, (Shape.schema AutoAcceptSharedAttachmentsValue)), + ({ name := "DefaultRouteTableAssociation" }, (Shape.schema DefaultRouteTableAssociationValue)), + ({ name := "DefaultRouteTablePropagation" }, (Shape.schema DefaultRouteTablePropagationValue)), + ({ name := "DnsSupport" }, (Shape.schema DnsSupportValue)), + ({ name := "MulticastSupport" }, (Shape.schema MulticastSupportValue)), + ({ name := "SecurityGroupReferencingSupport" }, (Shape.schema SecurityGroupReferencingSupportValue)), + ({ name := "TransitGatewayCidrBlocks" }, (.list .string "item")), + ({ name := "VpnEcmpSupport" }, (Shape.schema VpnEcmpSupportValue))] + toValue x := record [putOpt "AmazonSideAsn" x.amazonSideAsn, putOpt "AutoAcceptSharedAttachments" x.autoAcceptSharedAttachments, putOpt "DefaultRouteTableAssociation" x.defaultRouteTableAssociation, putOpt "DefaultRouteTablePropagation" x.defaultRouteTablePropagation, putOpt "DnsSupport" x.dnsSupport, putOpt "MulticastSupport" x.multicastSupport, putOpt "SecurityGroupReferencingSupport" x.securityGroupReferencingSupport, putOpt "TransitGatewayCidrBlocks" x.transitGatewayCidrBlocks, putOpt "VpnEcmpSupport" x.vpnEcmpSupport] + ofValue v := do + let amazonSideAsn ← v.opt "AmazonSideAsn" + let autoAcceptSharedAttachments ← v.opt "AutoAcceptSharedAttachments" + let defaultRouteTableAssociation ← v.opt "DefaultRouteTableAssociation" + let defaultRouteTablePropagation ← v.opt "DefaultRouteTablePropagation" + let dnsSupport ← v.opt "DnsSupport" + let multicastSupport ← v.opt "MulticastSupport" + let securityGroupReferencingSupport ← v.opt "SecurityGroupReferencingSupport" + let transitGatewayCidrBlocks ← v.opt "TransitGatewayCidrBlocks" + let vpnEcmpSupport ← v.opt "VpnEcmpSupport" + return { amazonSideAsn, autoAcceptSharedAttachments, defaultRouteTableAssociation, defaultRouteTablePropagation, dnsSupport, multicastSupport, securityGroupReferencingSupport, transitGatewayCidrBlocks, vpnEcmpSupport } + +/-- The matching criteria for a transit gateway policy table entry. -/ +structure TransitGatewayRequestPolicyRule where + /-- The destination CIDR block for the policy rule. -/ + destinationCidrBlock : Option String := none + /-- The destination port or port range for the policy rule. -/ + destinationPortRange : Option String := none + /-- The metadata key-value pair for the policy rule. -/ + metaData : Option TransitGatewayRequestPolicyRuleMetaData := none + /-- The protocol for the policy rule. -/ + protocol : Option String := none + /-- The source CIDR block for the policy rule. -/ + sourceCidrBlock : Option String := none + /-- The source port or port range for the policy rule. -/ + sourcePortRange : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayRequestPolicyRule where + schema := .struct "TransitGatewayRequestPolicyRule" [({ name := "DestinationCidrBlock" }, .string), + ({ name := "DestinationPortRange" }, .string), + ({ name := "MetaData" }, (Shape.schema TransitGatewayRequestPolicyRuleMetaData)), + ({ name := "Protocol" }, .string), + ({ name := "SourceCidrBlock" }, .string), + ({ name := "SourcePortRange" }, .string)] + toValue x := record [putOpt "DestinationCidrBlock" x.destinationCidrBlock, putOpt "DestinationPortRange" x.destinationPortRange, putOpt "MetaData" x.metaData, putOpt "Protocol" x.protocol, putOpt "SourceCidrBlock" x.sourceCidrBlock, putOpt "SourcePortRange" x.sourcePortRange] + ofValue v := do + let destinationCidrBlock ← v.opt "DestinationCidrBlock" + let destinationPortRange ← v.opt "DestinationPortRange" + let metaData ← v.opt "MetaData" + let protocol ← v.opt "Protocol" + let sourceCidrBlock ← v.opt "SourceCidrBlock" + let sourcePortRange ← v.opt "SourcePortRange" + return { destinationCidrBlock, destinationPortRange, metaData, protocol, sourceCidrBlock, sourcePortRange } + +/-- Describes a route attachment. -/ +structure TransitGatewayRouteAttachment where + /-- The ID of the resource. -/ + resourceId : Option String := none + /-- The resource type. -/ + resourceType : Option TransitGatewayAttachmentResourceType := none + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayRouteAttachment where + schema := .struct "TransitGatewayRouteAttachment" [({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema TransitGatewayAttachmentResourceType)), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string)] + toValue x := record [putOpt "ResourceId" x.resourceId, putOpt "ResourceType" x.resourceType, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let resourceId ← v.opt "ResourceId" + let resourceType ← v.opt "ResourceType" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + return { resourceId, resourceType, transitGatewayAttachmentId } + +/-- Describes a transit gateway route table. -/ +structure TransitGatewayRouteTable where + /-- The creation time. -/ + creationTime : Option Timestamp := none + /-- Indicates whether this is the default association route table for the transit gateway. -/ + defaultAssociationRouteTable : Option Bool := none + /-- Indicates whether this is the default propagation route table for the transit gateway. -/ + defaultPropagationRouteTable : Option Bool := none + /-- The state of the transit gateway route table. -/ + state : Option TransitGatewayRouteTableState := none + /-- Any tags assigned to the route table. -/ + tags : Option (List Tag) := none + /-- The ID of the transit gateway. -/ + transitGatewayId : Option String := none + /-- The ID of the transit gateway route table. -/ + transitGatewayRouteTableId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayRouteTable where + schema := .struct "TransitGatewayRouteTable" [({ name := "CreationTime", xmlName := some "creationTime", queryName := some "CreationTime" }, (.time none)), + ({ name := "DefaultAssociationRouteTable", xmlName := some "defaultAssociationRouteTable", queryName := some "DefaultAssociationRouteTable" }, .bool), + ({ name := "DefaultPropagationRouteTable", xmlName := some "defaultPropagationRouteTable", queryName := some "DefaultPropagationRouteTable" }, .bool), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayRouteTableState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TransitGatewayId", xmlName := some "transitGatewayId", queryName := some "TransitGatewayId" }, .string), + ({ name := "TransitGatewayRouteTableId", xmlName := some "transitGatewayRouteTableId", queryName := some "TransitGatewayRouteTableId" }, .string)] + toValue x := record [putOpt "CreationTime" x.creationTime, putOpt "DefaultAssociationRouteTable" x.defaultAssociationRouteTable, putOpt "DefaultPropagationRouteTable" x.defaultPropagationRouteTable, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "TransitGatewayId" x.transitGatewayId, putOpt "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let creationTime ← v.opt "CreationTime" + let defaultAssociationRouteTable ← v.opt "DefaultAssociationRouteTable" + let defaultPropagationRouteTable ← v.opt "DefaultPropagationRouteTable" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let transitGatewayId ← v.opt "TransitGatewayId" + let transitGatewayRouteTableId ← v.opt "TransitGatewayRouteTableId" + return { creationTime, defaultAssociationRouteTable, defaultPropagationRouteTable, state, tags, transitGatewayId, transitGatewayRouteTableId } + +/-- Describes a transit gateway route table announcement. -/ +structure TransitGatewayRouteTableAnnouncement where + /-- The direction for the route table announcement. -/ + announcementDirection : Option TransitGatewayRouteTableAnnouncementDirection := none + /-- The ID of the core network for the transit gateway route table announcement. -/ + coreNetworkId : Option String := none + /-- The timestamp when the transit gateway route table announcement was created. -/ + creationTime : Option Timestamp := none + /-- The ID of the core network ID for the peer. -/ + peerCoreNetworkId : Option String := none + /-- The ID of the peer transit gateway. -/ + peerTransitGatewayId : Option String := none + /-- The ID of the peering attachment. -/ + peeringAttachmentId : Option String := none + /-- The state of the transit gateway announcement. -/ + state : Option TransitGatewayRouteTableAnnouncementState := none + /-- The key-value pairs associated with the route table announcement. -/ + tags : Option (List Tag) := none + /-- The ID of the transit gateway. -/ + transitGatewayId : Option String := none + /-- The ID of the transit gateway route table announcement. -/ + transitGatewayRouteTableAnnouncementId : Option String := none + /-- The ID of the transit gateway route table. -/ + transitGatewayRouteTableId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayRouteTableAnnouncement where + schema := .struct "TransitGatewayRouteTableAnnouncement" [({ name := "AnnouncementDirection", xmlName := some "announcementDirection", queryName := some "AnnouncementDirection" }, (Shape.schema TransitGatewayRouteTableAnnouncementDirection)), + ({ name := "CoreNetworkId", xmlName := some "coreNetworkId", queryName := some "CoreNetworkId" }, .string), + ({ name := "CreationTime", xmlName := some "creationTime", queryName := some "CreationTime" }, (.time none)), + ({ name := "PeerCoreNetworkId", xmlName := some "peerCoreNetworkId", queryName := some "PeerCoreNetworkId" }, .string), + ({ name := "PeerTransitGatewayId", xmlName := some "peerTransitGatewayId", queryName := some "PeerTransitGatewayId" }, .string), + ({ name := "PeeringAttachmentId", xmlName := some "peeringAttachmentId", queryName := some "PeeringAttachmentId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayRouteTableAnnouncementState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TransitGatewayId", xmlName := some "transitGatewayId", queryName := some "TransitGatewayId" }, .string), + ({ name := "TransitGatewayRouteTableAnnouncementId", xmlName := some "transitGatewayRouteTableAnnouncementId", queryName := some "TransitGatewayRouteTableAnnouncementId" }, .string), + ({ name := "TransitGatewayRouteTableId", xmlName := some "transitGatewayRouteTableId", queryName := some "TransitGatewayRouteTableId" }, .string)] + toValue x := record [putOpt "AnnouncementDirection" x.announcementDirection, putOpt "CoreNetworkId" x.coreNetworkId, putOpt "CreationTime" x.creationTime, putOpt "PeerCoreNetworkId" x.peerCoreNetworkId, putOpt "PeerTransitGatewayId" x.peerTransitGatewayId, putOpt "PeeringAttachmentId" x.peeringAttachmentId, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "TransitGatewayId" x.transitGatewayId, putOpt "TransitGatewayRouteTableAnnouncementId" x.transitGatewayRouteTableAnnouncementId, putOpt "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let announcementDirection ← v.opt "AnnouncementDirection" + let coreNetworkId ← v.opt "CoreNetworkId" + let creationTime ← v.opt "CreationTime" + let peerCoreNetworkId ← v.opt "PeerCoreNetworkId" + let peerTransitGatewayId ← v.opt "PeerTransitGatewayId" + let peeringAttachmentId ← v.opt "PeeringAttachmentId" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let transitGatewayId ← v.opt "TransitGatewayId" + let transitGatewayRouteTableAnnouncementId ← v.opt "TransitGatewayRouteTableAnnouncementId" + let transitGatewayRouteTableId ← v.opt "TransitGatewayRouteTableId" + return { announcementDirection, coreNetworkId, creationTime, peerCoreNetworkId, peerTransitGatewayId, peeringAttachmentId, state, tags, transitGatewayId, transitGatewayRouteTableAnnouncementId, transitGatewayRouteTableId } + +/-- Describes an association between a route table and a resource attachment. -/ +structure TransitGatewayRouteTableAssociation where + /-- The ID of the resource. -/ + resourceId : Option String := none + /-- The resource type. -/ + resourceType : Option TransitGatewayAttachmentResourceType := none + /-- The state of the association. -/ + state : Option TransitGatewayAssociationState := none + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayRouteTableAssociation where + schema := .struct "TransitGatewayRouteTableAssociation" [({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema TransitGatewayAttachmentResourceType)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayAssociationState)), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string)] + toValue x := record [putOpt "ResourceId" x.resourceId, putOpt "ResourceType" x.resourceType, putOpt "State" x.state, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let resourceId ← v.opt "ResourceId" + let resourceType ← v.opt "ResourceType" + let state ← v.opt "State" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + return { resourceId, resourceType, state, transitGatewayAttachmentId } + +/-- Describes a route table propagation. -/ +structure TransitGatewayRouteTablePropagation where + /-- The ID of the resource. -/ + resourceId : Option String := none + /-- The type of resource. -/ + resourceType : Option TransitGatewayAttachmentResourceType := none + /-- The state of the resource. -/ + state : Option TransitGatewayPropagationState := none + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the transit gateway route table announcement. -/ + transitGatewayRouteTableAnnouncementId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayRouteTablePropagation where + schema := .struct "TransitGatewayRouteTablePropagation" [({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema TransitGatewayAttachmentResourceType)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayPropagationState)), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayRouteTableAnnouncementId", xmlName := some "transitGatewayRouteTableAnnouncementId", queryName := some "TransitGatewayRouteTableAnnouncementId" }, .string)] + toValue x := record [putOpt "ResourceId" x.resourceId, putOpt "ResourceType" x.resourceType, putOpt "State" x.state, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, putOpt "TransitGatewayRouteTableAnnouncementId" x.transitGatewayRouteTableAnnouncementId] + ofValue v := do + let resourceId ← v.opt "ResourceId" + let resourceType ← v.opt "ResourceType" + let state ← v.opt "State" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayRouteTableAnnouncementId ← v.opt "TransitGatewayRouteTableAnnouncementId" + return { resourceId, resourceType, state, transitGatewayAttachmentId, transitGatewayRouteTableAnnouncementId } + +/-- Describes the VPC attachment options. -/ +structure TransitGatewayVpcAttachmentOptions where + /-- Indicates whether appliance mode support is enabled. -/ + applianceModeSupport : Option ApplianceModeSupportValue := none + /-- Indicates whether DNS support is enabled. -/ + dnsSupport : Option DnsSupportValue := none + /-- Indicates whether IPv6 support is disabled. -/ + ipv6Support : Option Ipv6SupportValue := none + /-- Enables you to reference a security group across VPCs attached to a transit gateway to simplify security group management. -/ + securityGroupReferencingSupport : Option SecurityGroupReferencingSupportValue := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayVpcAttachmentOptions where + schema := .struct "TransitGatewayVpcAttachmentOptions" [({ name := "ApplianceModeSupport", xmlName := some "applianceModeSupport", queryName := some "ApplianceModeSupport" }, (Shape.schema ApplianceModeSupportValue)), + ({ name := "DnsSupport", xmlName := some "dnsSupport", queryName := some "DnsSupport" }, (Shape.schema DnsSupportValue)), + ({ name := "Ipv6Support", xmlName := some "ipv6Support", queryName := some "Ipv6Support" }, (Shape.schema Ipv6SupportValue)), + ({ name := "SecurityGroupReferencingSupport", xmlName := some "securityGroupReferencingSupport", queryName := some "SecurityGroupReferencingSupport" }, (Shape.schema SecurityGroupReferencingSupportValue))] + toValue x := record [putOpt "ApplianceModeSupport" x.applianceModeSupport, putOpt "DnsSupport" x.dnsSupport, putOpt "Ipv6Support" x.ipv6Support, putOpt "SecurityGroupReferencingSupport" x.securityGroupReferencingSupport] + ofValue v := do + let applianceModeSupport ← v.opt "ApplianceModeSupport" + let dnsSupport ← v.opt "DnsSupport" + let ipv6Support ← v.opt "Ipv6Support" + let securityGroupReferencingSupport ← v.opt "SecurityGroupReferencingSupport" + return { applianceModeSupport, dnsSupport, ipv6Support, securityGroupReferencingSupport } + +/-- Information about an association between a branch network interface with a trunk network interface. -/ +structure TrunkInterfaceAssociation where + /-- The ID of the association. -/ + associationId : Option String := none + /-- The ID of the branch network interface. -/ + branchInterfaceId : Option String := none + /-- The application key when you use the GRE protocol. -/ + greKey : Option Int := none + /-- The interface protocol. -/ + interfaceProtocol : Option InterfaceProtocolType := none + /-- The tags for the trunk interface association. -/ + tags : Option (List Tag) := none + /-- The ID of the trunk network interface. -/ + trunkInterfaceId : Option String := none + /-- The ID of the VLAN when you use the VLAN protocol. -/ + vlanId : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TrunkInterfaceAssociation where + schema := .struct "TrunkInterfaceAssociation" [({ name := "AssociationId", xmlName := some "associationId", queryName := some "AssociationId" }, .string), + ({ name := "BranchInterfaceId", xmlName := some "branchInterfaceId", queryName := some "BranchInterfaceId" }, .string), + ({ name := "GreKey", xmlName := some "greKey", queryName := some "GreKey" }, .int), + ({ name := "InterfaceProtocol", xmlName := some "interfaceProtocol", queryName := some "InterfaceProtocol" }, (Shape.schema InterfaceProtocolType)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TrunkInterfaceId", xmlName := some "trunkInterfaceId", queryName := some "TrunkInterfaceId" }, .string), + ({ name := "VlanId", xmlName := some "vlanId", queryName := some "VlanId" }, .int)] + toValue x := record [putOpt "AssociationId" x.associationId, putOpt "BranchInterfaceId" x.branchInterfaceId, putOpt "GreKey" x.greKey, putOpt "InterfaceProtocol" x.interfaceProtocol, putOpt "Tags" x.tags, putOpt "TrunkInterfaceId" x.trunkInterfaceId, putOpt "VlanId" x.vlanId] + ofValue v := do + let associationId ← v.opt "AssociationId" + let branchInterfaceId ← v.opt "BranchInterfaceId" + let greKey ← v.opt "GreKey" + let interfaceProtocol ← v.opt "InterfaceProtocol" + let tags ← v.opt "Tags" + let trunkInterfaceId ← v.opt "TrunkInterfaceId" + let vlanId ← v.opt "VlanId" + return { associationId, branchInterfaceId, greKey, interfaceProtocol, tags, trunkInterfaceId, vlanId } + +/-- Information about the error for the burstable performance instance whose credit option for CPU usage was not modified. -/ +structure UnsuccessfulInstanceCreditSpecificationItemError where + /-- The error code. -/ + code : Option UnsuccessfulInstanceCreditSpecificationErrorCode := none + /-- The applicable error message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UnsuccessfulInstanceCreditSpecificationItemError where + schema := .struct "UnsuccessfulInstanceCreditSpecificationItemError" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, (Shape.schema UnsuccessfulInstanceCreditSpecificationErrorCode)), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +/-- Information about items that were not successfully processed in a batch call. -/ +structure UnsuccessfulItem where + /-- Information about the error. -/ + error : Option UnsuccessfulItemError := none + /-- The ID of the resource. -/ + resourceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UnsuccessfulItem where + schema := .struct "UnsuccessfulItem" [({ name := "Error", xmlName := some "error", queryName := some "Error" }, (Shape.schema UnsuccessfulItemError)), + ({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string)] + toValue x := record [putOpt "Error" x.error, putOpt "ResourceId" x.resourceId] + ofValue v := do + let error ← v.opt "Error" + let resourceId ← v.opt "ResourceId" + return { error, resourceId } + +structure UpdateCapacityManagerOrganizationsAccessResult where + /-- The current status of Capacity Manager after the update operation. -/ + capacityManagerStatus : Option CapacityManagerStatus := none + /-- The updated Organizations access setting indicating whether cross-account data aggregation is enabled. -/ + organizationsAccess : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateCapacityManagerOrganizationsAccessResult where + schema := .struct "UpdateCapacityManagerOrganizationsAccessResult" [({ name := "CapacityManagerStatus", xmlName := some "capacityManagerStatus", queryName := some "CapacityManagerStatus" }, (Shape.schema CapacityManagerStatus)), + ({ name := "OrganizationsAccess", xmlName := some "organizationsAccess", queryName := some "OrganizationsAccess" }, .bool)] + toValue x := record [putOpt "CapacityManagerStatus" x.capacityManagerStatus, putOpt "OrganizationsAccess" x.organizationsAccess] + ofValue v := do + let capacityManagerStatus ← v.opt "CapacityManagerStatus" + let organizationsAccess ← v.opt "OrganizationsAccess" + return { capacityManagerStatus, organizationsAccess } + +structure UpdateInterruptibleCapacityReservationAllocationRequest where + /-- The ID of the source Capacity Reservation containing the interruptible allocation to modify. -/ + capacityReservationId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The new number of instances to allocate. -/ + targetInstanceCount : Option Int := none + /-- Specifies the updated behavior for the interruptible Capacity Reservation when you reduce its allocation to zero instances. -/ + zeroSizePreference : Option ZeroSizePreference := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateInterruptibleCapacityReservationAllocationRequest where + schema := .struct "UpdateInterruptibleCapacityReservationAllocationRequest" [({ name := "CapacityReservationId", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "TargetInstanceCount" }, .int), + ({ name := "ZeroSizePreference" }, (Shape.schema ZeroSizePreference))] + toValue x := record [put "CapacityReservationId" x.capacityReservationId, putOpt "DryRun" x.dryRun, putOpt "TargetInstanceCount" x.targetInstanceCount, putOpt "ZeroSizePreference" x.zeroSizePreference] + ofValue v := do + let capacityReservationId ← v.req "CapacityReservationId" + let dryRun ← v.opt "DryRun" + let targetInstanceCount ← v.opt "TargetInstanceCount" + let zeroSizePreference ← v.opt "ZeroSizePreference" + return { capacityReservationId, dryRun, targetInstanceCount, zeroSizePreference } + +structure UpdateInterruptibleCapacityReservationAllocationResult where + /-- The current number of instances allocated to the interruptible reservation. -/ + instanceCount : Option Int := none + /-- The ID of the interruptible Capacity Reservation that was modified. -/ + interruptibleCapacityReservationId : Option String := none + /-- The interruption type for the interruptible reservation. -/ + interruptionType : Option InterruptionType := none + /-- The ID of the source Capacity Reservation to which capacity was reclaimed or from which capacity was allocated. -/ + sourceCapacityReservationId : Option String := none + /-- The current status of the allocation (updating during reclamation, active when complete). -/ + status : Option InterruptibleCapacityReservationAllocationStatus := none + /-- The requested number of instances for the interruptible Capacity Reservation. -/ + targetInstanceCount : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateInterruptibleCapacityReservationAllocationResult where + schema := .struct "UpdateInterruptibleCapacityReservationAllocationResult" [({ name := "InstanceCount", xmlName := some "instanceCount", queryName := some "InstanceCount" }, .int), + ({ name := "InterruptibleCapacityReservationId", xmlName := some "interruptibleCapacityReservationId", queryName := some "InterruptibleCapacityReservationId" }, .string), + ({ name := "InterruptionType", xmlName := some "interruptionType", queryName := some "InterruptionType" }, (Shape.schema InterruptionType)), + ({ name := "SourceCapacityReservationId", xmlName := some "sourceCapacityReservationId", queryName := some "SourceCapacityReservationId" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema InterruptibleCapacityReservationAllocationStatus)), + ({ name := "TargetInstanceCount", xmlName := some "targetInstanceCount", queryName := some "TargetInstanceCount" }, .int)] + toValue x := record [putOpt "InstanceCount" x.instanceCount, putOpt "InterruptibleCapacityReservationId" x.interruptibleCapacityReservationId, putOpt "InterruptionType" x.interruptionType, putOpt "SourceCapacityReservationId" x.sourceCapacityReservationId, putOpt "Status" x.status, putOpt "TargetInstanceCount" x.targetInstanceCount] + ofValue v := do + let instanceCount ← v.opt "InstanceCount" + let interruptibleCapacityReservationId ← v.opt "InterruptibleCapacityReservationId" + let interruptionType ← v.opt "InterruptionType" + let sourceCapacityReservationId ← v.opt "SourceCapacityReservationId" + let status ← v.opt "Status" + let targetInstanceCount ← v.opt "TargetInstanceCount" + return { instanceCount, interruptibleCapacityReservationId, interruptionType, sourceCapacityReservationId, status, targetInstanceCount } + +/-- The error codes and error messages that are returned for the parameters or parameter combinations that are not valid when a new launch template or new version of a launch template is created. -/ +structure ValidationWarning where + /-- The error codes and error messages. -/ + errors : Option (List ValidationError) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ValidationWarning where + schema := .struct "ValidationWarning" [({ name := "Errors", xmlName := some "errorSet", queryName := some "ErrorSet" }, (.list (Shape.schema ValidationError) "item"))] + toValue x := record [putOpt "Errors" x.errors] + ofValue v := do + let errors ← v.opt "Errors" + return { errors } + +/-- Describes the CIDR options for a Verified Access endpoint. -/ +structure VerifiedAccessEndpointCidrOptions where + /-- The CIDR. -/ + cidr : Option String := none + /-- The port ranges. -/ + portRanges : Option (List VerifiedAccessEndpointPortRange) := none + /-- The protocol. -/ + protocol : Option VerifiedAccessEndpointProtocol := none + /-- The IDs of the subnets. -/ + subnetIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessEndpointCidrOptions where + schema := .struct "VerifiedAccessEndpointCidrOptions" [({ name := "Cidr", xmlName := some "cidr", queryName := some "Cidr" }, .string), + ({ name := "PortRanges", xmlName := some "portRangeSet", queryName := some "PortRangeSet" }, (.list (Shape.schema VerifiedAccessEndpointPortRange) "item")), + ({ name := "Protocol", xmlName := some "protocol", queryName := some "Protocol" }, (Shape.schema VerifiedAccessEndpointProtocol)), + ({ name := "SubnetIds", xmlName := some "subnetIdSet", queryName := some "SubnetIdSet" }, (.list .string "item"))] + toValue x := record [putOpt "Cidr" x.cidr, putOpt "PortRanges" x.portRanges, putOpt "Protocol" x.protocol, putOpt "SubnetIds" x.subnetIds] + ofValue v := do + let cidr ← v.opt "Cidr" + let portRanges ← v.opt "PortRanges" + let protocol ← v.opt "Protocol" + let subnetIds ← v.opt "SubnetIds" + return { cidr, portRanges, protocol, subnetIds } + +/-- Options for a network-interface type endpoint. -/ +structure VerifiedAccessEndpointEniOptions where + /-- The ID of the network interface. -/ + networkInterfaceId : Option String := none + /-- The IP port number. -/ + port : Option Int := none + /-- The port ranges. -/ + portRanges : Option (List VerifiedAccessEndpointPortRange) := none + /-- The IP protocol. -/ + protocol : Option VerifiedAccessEndpointProtocol := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessEndpointEniOptions where + schema := .struct "VerifiedAccessEndpointEniOptions" [({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "Port", xmlName := some "port", queryName := some "Port" }, .int), + ({ name := "PortRanges", xmlName := some "portRangeSet", queryName := some "PortRangeSet" }, (.list (Shape.schema VerifiedAccessEndpointPortRange) "item")), + ({ name := "Protocol", xmlName := some "protocol", queryName := some "Protocol" }, (Shape.schema VerifiedAccessEndpointProtocol))] + toValue x := record [putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "Port" x.port, putOpt "PortRanges" x.portRanges, putOpt "Protocol" x.protocol] + ofValue v := do + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let port ← v.opt "Port" + let portRanges ← v.opt "PortRanges" + let protocol ← v.opt "Protocol" + return { networkInterfaceId, port, portRanges, protocol } + +/-- Describes a load balancer when creating an Amazon Web Services Verified Access endpoint using the load-balancer type. -/ +structure VerifiedAccessEndpointLoadBalancerOptions where + /-- The ARN of the load balancer. -/ + loadBalancerArn : Option String := none + /-- The IP port number. -/ + port : Option Int := none + /-- The port ranges. -/ + portRanges : Option (List VerifiedAccessEndpointPortRange) := none + /-- The IP protocol. -/ + protocol : Option VerifiedAccessEndpointProtocol := none + /-- The IDs of the subnets. -/ + subnetIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessEndpointLoadBalancerOptions where + schema := .struct "VerifiedAccessEndpointLoadBalancerOptions" [({ name := "LoadBalancerArn", xmlName := some "loadBalancerArn", queryName := some "LoadBalancerArn" }, .string), + ({ name := "Port", xmlName := some "port", queryName := some "Port" }, .int), + ({ name := "PortRanges", xmlName := some "portRangeSet", queryName := some "PortRangeSet" }, (.list (Shape.schema VerifiedAccessEndpointPortRange) "item")), + ({ name := "Protocol", xmlName := some "protocol", queryName := some "Protocol" }, (Shape.schema VerifiedAccessEndpointProtocol)), + ({ name := "SubnetIds", xmlName := some "subnetIdSet", queryName := some "SubnetIdSet" }, (.list .string "item"))] + toValue x := record [putOpt "LoadBalancerArn" x.loadBalancerArn, putOpt "Port" x.port, putOpt "PortRanges" x.portRanges, putOpt "Protocol" x.protocol, putOpt "SubnetIds" x.subnetIds] + ofValue v := do + let loadBalancerArn ← v.opt "LoadBalancerArn" + let port ← v.opt "Port" + let portRanges ← v.opt "PortRanges" + let protocol ← v.opt "Protocol" + let subnetIds ← v.opt "SubnetIds" + return { loadBalancerArn, port, portRanges, protocol, subnetIds } + +/-- Describes the RDS options for a Verified Access endpoint. -/ +structure VerifiedAccessEndpointRdsOptions where + /-- The port. -/ + port : Option Int := none + /-- The protocol. -/ + protocol : Option VerifiedAccessEndpointProtocol := none + /-- The ARN of the DB cluster. -/ + rdsDbClusterArn : Option String := none + /-- The ARN of the RDS instance. -/ + rdsDbInstanceArn : Option String := none + /-- The ARN of the RDS proxy. -/ + rdsDbProxyArn : Option String := none + /-- The RDS endpoint. -/ + rdsEndpoint : Option String := none + /-- The IDs of the subnets. -/ + subnetIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessEndpointRdsOptions where + schema := .struct "VerifiedAccessEndpointRdsOptions" [({ name := "Port", xmlName := some "port", queryName := some "Port" }, .int), + ({ name := "Protocol", xmlName := some "protocol", queryName := some "Protocol" }, (Shape.schema VerifiedAccessEndpointProtocol)), + ({ name := "RdsDbClusterArn", xmlName := some "rdsDbClusterArn", queryName := some "RdsDbClusterArn" }, .string), + ({ name := "RdsDbInstanceArn", xmlName := some "rdsDbInstanceArn", queryName := some "RdsDbInstanceArn" }, .string), + ({ name := "RdsDbProxyArn", xmlName := some "rdsDbProxyArn", queryName := some "RdsDbProxyArn" }, .string), + ({ name := "RdsEndpoint", xmlName := some "rdsEndpoint", queryName := some "RdsEndpoint" }, .string), + ({ name := "SubnetIds", xmlName := some "subnetIdSet", queryName := some "SubnetIdSet" }, (.list .string "item"))] + toValue x := record [putOpt "Port" x.port, putOpt "Protocol" x.protocol, putOpt "RdsDbClusterArn" x.rdsDbClusterArn, putOpt "RdsDbInstanceArn" x.rdsDbInstanceArn, putOpt "RdsDbProxyArn" x.rdsDbProxyArn, putOpt "RdsEndpoint" x.rdsEndpoint, putOpt "SubnetIds" x.subnetIds] + ofValue v := do + let port ← v.opt "Port" + let protocol ← v.opt "Protocol" + let rdsDbClusterArn ← v.opt "RdsDbClusterArn" + let rdsDbInstanceArn ← v.opt "RdsDbInstanceArn" + let rdsDbProxyArn ← v.opt "RdsDbProxyArn" + let rdsEndpoint ← v.opt "RdsEndpoint" + let subnetIds ← v.opt "SubnetIds" + return { port, protocol, rdsDbClusterArn, rdsDbInstanceArn, rdsDbProxyArn, rdsEndpoint, subnetIds } + +/-- Describes the status of a Verified Access endpoint. -/ +structure VerifiedAccessEndpointStatus where + /-- The status code of the Verified Access endpoint. -/ + code : Option VerifiedAccessEndpointStatusCode := none + /-- The status message of the Verified Access endpoint. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessEndpointStatus where + schema := .struct "VerifiedAccessEndpointStatus" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, (Shape.schema VerifiedAccessEndpointStatusCode)), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +/-- Describes a Verified Access group. -/ +structure VerifiedAccessGroup where + /-- The creation time. -/ + creationTime : Option String := none + /-- The deletion time. -/ + deletionTime : Option String := none + /-- A description for the Amazon Web Services Verified Access group. -/ + description : Option String := none + /-- The last updated time. -/ + lastUpdatedTime : Option String := none + /-- The Amazon Web Services account number that owns the group. -/ + owner : Option String := none + /-- The options in use for server side encryption. -/ + sseSpecification : Option VerifiedAccessSseSpecificationResponse := none + /-- The tags. -/ + tags : Option (List Tag) := none + /-- The ARN of the Verified Access group. -/ + verifiedAccessGroupArn : Option String := none + /-- The ID of the Verified Access group. -/ + verifiedAccessGroupId : Option String := none + /-- The ID of the Amazon Web Services Verified Access instance. -/ + verifiedAccessInstanceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessGroup where + schema := .struct "VerifiedAccessGroup" [({ name := "CreationTime", xmlName := some "creationTime", queryName := some "CreationTime" }, .string), + ({ name := "DeletionTime", xmlName := some "deletionTime", queryName := some "DeletionTime" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "LastUpdatedTime", xmlName := some "lastUpdatedTime", queryName := some "LastUpdatedTime" }, .string), + ({ name := "Owner", xmlName := some "owner", queryName := some "Owner" }, .string), + ({ name := "SseSpecification", xmlName := some "sseSpecification", queryName := some "SseSpecification" }, (Shape.schema VerifiedAccessSseSpecificationResponse)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VerifiedAccessGroupArn", xmlName := some "verifiedAccessGroupArn", queryName := some "VerifiedAccessGroupArn" }, .string), + ({ name := "VerifiedAccessGroupId", xmlName := some "verifiedAccessGroupId", queryName := some "VerifiedAccessGroupId" }, .string), + ({ name := "VerifiedAccessInstanceId", xmlName := some "verifiedAccessInstanceId", queryName := some "VerifiedAccessInstanceId" }, .string)] + toValue x := record [putOpt "CreationTime" x.creationTime, putOpt "DeletionTime" x.deletionTime, putOpt "Description" x.description, putOpt "LastUpdatedTime" x.lastUpdatedTime, putOpt "Owner" x.owner, putOpt "SseSpecification" x.sseSpecification, putOpt "Tags" x.tags, putOpt "VerifiedAccessGroupArn" x.verifiedAccessGroupArn, putOpt "VerifiedAccessGroupId" x.verifiedAccessGroupId, putOpt "VerifiedAccessInstanceId" x.verifiedAccessInstanceId] + ofValue v := do + let creationTime ← v.opt "CreationTime" + let deletionTime ← v.opt "DeletionTime" + let description ← v.opt "Description" + let lastUpdatedTime ← v.opt "LastUpdatedTime" + let owner ← v.opt "Owner" + let sseSpecification ← v.opt "SseSpecification" + let tags ← v.opt "Tags" + let verifiedAccessGroupArn ← v.opt "VerifiedAccessGroupArn" + let verifiedAccessGroupId ← v.opt "VerifiedAccessGroupId" + let verifiedAccessInstanceId ← v.opt "VerifiedAccessInstanceId" + return { creationTime, deletionTime, description, lastUpdatedTime, owner, sseSpecification, tags, verifiedAccessGroupArn, verifiedAccessGroupId, verifiedAccessInstanceId } + +/-- Describes a set of routes. -/ +structure VerifiedAccessInstanceOpenVpnClientConfiguration where + /-- The base64-encoded Open VPN client configuration. -/ + config : Option String := none + /-- The routes. -/ + routes : Option (List VerifiedAccessInstanceOpenVpnClientConfigurationRoute) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessInstanceOpenVpnClientConfiguration where + schema := .struct "VerifiedAccessInstanceOpenVpnClientConfiguration" [({ name := "Config", xmlName := some "config", queryName := some "Config" }, .string), + ({ name := "Routes", xmlName := some "routeSet", queryName := some "RouteSet" }, (.list (Shape.schema VerifiedAccessInstanceOpenVpnClientConfigurationRoute) "item"))] + toValue x := record [putOpt "Config" x.config, putOpt "Routes" x.routes] + ofValue v := do + let config ← v.opt "Config" + let routes ← v.opt "Routes" + return { config, routes } + +/-- Describes the trust provider. -/ +structure VerifiedAccessInstanceUserTrustProviderClientConfiguration where + /-- The authorization endpoint of the IdP. -/ + authorizationEndpoint : Option String := none + /-- The OAuth 2.0 client identifier. -/ + clientId : Option String := none + /-- The OAuth 2.0 client secret. -/ + clientSecret : Option String := none + /-- The OIDC issuer identifier of the IdP. -/ + issuer : Option String := none + /-- Indicates whether Proof of Key Code Exchange (PKCE) is enabled. -/ + pkceEnabled : Option Bool := none + /-- The public signing key endpoint. -/ + publicSigningKeyEndpoint : Option String := none + /-- The set of user claims to be requested from the IdP. -/ + scopes : Option String := none + /-- The token endpoint of the IdP. -/ + tokenEndpoint : Option String := none + /-- The trust provider type. -/ + type : Option UserTrustProviderType := none + /-- The user info endpoint of the IdP. -/ + userInfoEndpoint : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessInstanceUserTrustProviderClientConfiguration where + schema := .struct "VerifiedAccessInstanceUserTrustProviderClientConfiguration" [({ name := "AuthorizationEndpoint", xmlName := some "authorizationEndpoint", queryName := some "AuthorizationEndpoint" }, .string), + ({ name := "ClientId", xmlName := some "clientId", queryName := some "ClientId" }, .string), + ({ name := "ClientSecret", xmlName := some "clientSecret", queryName := some "ClientSecret" }, .string), + ({ name := "Issuer", xmlName := some "issuer", queryName := some "Issuer" }, .string), + ({ name := "PkceEnabled", xmlName := some "pkceEnabled", queryName := some "PkceEnabled" }, .bool), + ({ name := "PublicSigningKeyEndpoint", xmlName := some "publicSigningKeyEndpoint", queryName := some "PublicSigningKeyEndpoint" }, .string), + ({ name := "Scopes", xmlName := some "scopes", queryName := some "Scopes" }, .string), + ({ name := "TokenEndpoint", xmlName := some "tokenEndpoint", queryName := some "TokenEndpoint" }, .string), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, (Shape.schema UserTrustProviderType)), + ({ name := "UserInfoEndpoint", xmlName := some "userInfoEndpoint", queryName := some "UserInfoEndpoint" }, .string)] + toValue x := record [putOpt "AuthorizationEndpoint" x.authorizationEndpoint, putOpt "ClientId" x.clientId, putOpt "ClientSecret" x.clientSecret, putOpt "Issuer" x.issuer, putOpt "PkceEnabled" x.pkceEnabled, putOpt "PublicSigningKeyEndpoint" x.publicSigningKeyEndpoint, putOpt "Scopes" x.scopes, putOpt "TokenEndpoint" x.tokenEndpoint, putOpt "Type" x.type, putOpt "UserInfoEndpoint" x.userInfoEndpoint] + ofValue v := do + let authorizationEndpoint ← v.opt "AuthorizationEndpoint" + let clientId ← v.opt "ClientId" + let clientSecret ← v.opt "ClientSecret" + let issuer ← v.opt "Issuer" + let pkceEnabled ← v.opt "PkceEnabled" + let publicSigningKeyEndpoint ← v.opt "PublicSigningKeyEndpoint" + let scopes ← v.opt "Scopes" + let tokenEndpoint ← v.opt "TokenEndpoint" + let type ← v.opt "Type" + let userInfoEndpoint ← v.opt "UserInfoEndpoint" + return { authorizationEndpoint, clientId, clientSecret, issuer, pkceEnabled, publicSigningKeyEndpoint, scopes, tokenEndpoint, type, userInfoEndpoint } + +/-- Describes a log delivery status. -/ +structure VerifiedAccessLogDeliveryStatus where + /-- The status code. -/ + code : Option VerifiedAccessLogDeliveryStatusCode := none + /-- The status message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessLogDeliveryStatus where + schema := .struct "VerifiedAccessLogDeliveryStatus" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, (Shape.schema VerifiedAccessLogDeliveryStatusCode)), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +/-- Options for Verified Access logs. -/ +structure VerifiedAccessLogOptions where + /-- Sends Verified Access logs to CloudWatch Logs. -/ + cloudWatchLogs : Option VerifiedAccessLogCloudWatchLogsDestinationOptions := none + /-- Indicates whether to include trust data sent by trust providers in the logs. -/ + includeTrustContext : Option Bool := none + /-- Sends Verified Access logs to Kinesis. -/ + kinesisDataFirehose : Option VerifiedAccessLogKinesisDataFirehoseDestinationOptions := none + /-- The logging version. -/ + logVersion : Option String := none + /-- Sends Verified Access logs to Amazon S3. -/ + s3 : Option VerifiedAccessLogS3DestinationOptions := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessLogOptions where + schema := .struct "VerifiedAccessLogOptions" [({ name := "CloudWatchLogs" }, (Shape.schema VerifiedAccessLogCloudWatchLogsDestinationOptions)), + ({ name := "IncludeTrustContext" }, .bool), + ({ name := "KinesisDataFirehose" }, (Shape.schema VerifiedAccessLogKinesisDataFirehoseDestinationOptions)), + ({ name := "LogVersion" }, .string), + ({ name := "S3" }, (Shape.schema VerifiedAccessLogS3DestinationOptions))] + toValue x := record [putOpt "CloudWatchLogs" x.cloudWatchLogs, putOpt "IncludeTrustContext" x.includeTrustContext, putOpt "KinesisDataFirehose" x.kinesisDataFirehose, putOpt "LogVersion" x.logVersion, putOpt "S3" x.s3] + ofValue v := do + let cloudWatchLogs ← v.opt "CloudWatchLogs" + let includeTrustContext ← v.opt "IncludeTrustContext" + let kinesisDataFirehose ← v.opt "KinesisDataFirehose" + let logVersion ← v.opt "LogVersion" + let s3 ← v.opt "S3" + return { cloudWatchLogs, includeTrustContext, kinesisDataFirehose, logVersion, s3 } + +/-- Describes a Verified Access trust provider. -/ +structure VerifiedAccessTrustProvider where + /-- The creation time. -/ + creationTime : Option String := none + /-- A description for the Amazon Web Services Verified Access trust provider. -/ + description : Option String := none + /-- The options for device-identity trust provider. -/ + deviceOptions : Option DeviceOptions := none + /-- The type of device-based trust provider. -/ + deviceTrustProviderType : Option DeviceTrustProviderType := none + /-- The last updated time. -/ + lastUpdatedTime : Option String := none + /-- The OpenID Connect (OIDC) options. -/ + nativeApplicationOidcOptions : Option NativeApplicationOidcOptions := none + /-- The options for an OpenID Connect-compatible user-identity trust provider. -/ + oidcOptions : Option OidcOptions := none + /-- The identifier to be used when working with policy rules. -/ + policyReferenceName : Option String := none + /-- The options in use for server side encryption. -/ + sseSpecification : Option VerifiedAccessSseSpecificationResponse := none + /-- The tags. -/ + tags : Option (List Tag) := none + /-- The type of Verified Access trust provider. -/ + trustProviderType : Option TrustProviderType := none + /-- The type of user-based trust provider. -/ + userTrustProviderType : Option UserTrustProviderType := none + /-- The ID of the Amazon Web Services Verified Access trust provider. -/ + verifiedAccessTrustProviderId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessTrustProvider where + schema := .struct "VerifiedAccessTrustProvider" [({ name := "CreationTime", xmlName := some "creationTime", queryName := some "CreationTime" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "DeviceOptions", xmlName := some "deviceOptions", queryName := some "DeviceOptions" }, (Shape.schema DeviceOptions)), + ({ name := "DeviceTrustProviderType", xmlName := some "deviceTrustProviderType", queryName := some "DeviceTrustProviderType" }, (Shape.schema DeviceTrustProviderType)), + ({ name := "LastUpdatedTime", xmlName := some "lastUpdatedTime", queryName := some "LastUpdatedTime" }, .string), + ({ name := "NativeApplicationOidcOptions", xmlName := some "nativeApplicationOidcOptions", queryName := some "NativeApplicationOidcOptions" }, (Shape.schema NativeApplicationOidcOptions)), + ({ name := "OidcOptions", xmlName := some "oidcOptions", queryName := some "OidcOptions" }, (Shape.schema OidcOptions)), + ({ name := "PolicyReferenceName", xmlName := some "policyReferenceName", queryName := some "PolicyReferenceName" }, .string), + ({ name := "SseSpecification", xmlName := some "sseSpecification", queryName := some "SseSpecification" }, (Shape.schema VerifiedAccessSseSpecificationResponse)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TrustProviderType", xmlName := some "trustProviderType", queryName := some "TrustProviderType" }, (Shape.schema TrustProviderType)), + ({ name := "UserTrustProviderType", xmlName := some "userTrustProviderType", queryName := some "UserTrustProviderType" }, (Shape.schema UserTrustProviderType)), + ({ name := "VerifiedAccessTrustProviderId", xmlName := some "verifiedAccessTrustProviderId", queryName := some "VerifiedAccessTrustProviderId" }, .string)] + toValue x := record [putOpt "CreationTime" x.creationTime, putOpt "Description" x.description, putOpt "DeviceOptions" x.deviceOptions, putOpt "DeviceTrustProviderType" x.deviceTrustProviderType, putOpt "LastUpdatedTime" x.lastUpdatedTime, putOpt "NativeApplicationOidcOptions" x.nativeApplicationOidcOptions, putOpt "OidcOptions" x.oidcOptions, putOpt "PolicyReferenceName" x.policyReferenceName, putOpt "SseSpecification" x.sseSpecification, putOpt "Tags" x.tags, putOpt "TrustProviderType" x.trustProviderType, putOpt "UserTrustProviderType" x.userTrustProviderType, putOpt "VerifiedAccessTrustProviderId" x.verifiedAccessTrustProviderId] + ofValue v := do + let creationTime ← v.opt "CreationTime" + let description ← v.opt "Description" + let deviceOptions ← v.opt "DeviceOptions" + let deviceTrustProviderType ← v.opt "DeviceTrustProviderType" + let lastUpdatedTime ← v.opt "LastUpdatedTime" + let nativeApplicationOidcOptions ← v.opt "NativeApplicationOidcOptions" + let oidcOptions ← v.opt "OidcOptions" + let policyReferenceName ← v.opt "PolicyReferenceName" + let sseSpecification ← v.opt "SseSpecification" + let tags ← v.opt "Tags" + let trustProviderType ← v.opt "TrustProviderType" + let userTrustProviderType ← v.opt "UserTrustProviderType" + let verifiedAccessTrustProviderId ← v.opt "VerifiedAccessTrustProviderId" + return { creationTime, description, deviceOptions, deviceTrustProviderType, lastUpdatedTime, nativeApplicationOidcOptions, oidcOptions, policyReferenceName, sseSpecification, tags, trustProviderType, userTrustProviderType, verifiedAccessTrustProviderId } + +/-- Condensed information about a trust provider. -/ +structure VerifiedAccessTrustProviderCondensed where + /-- The description of trust provider. -/ + description : Option String := none + /-- The type of device-based trust provider. -/ + deviceTrustProviderType : Option DeviceTrustProviderType := none + /-- The type of trust provider (user- or device-based). -/ + trustProviderType : Option TrustProviderType := none + /-- The type of user-based trust provider. -/ + userTrustProviderType : Option UserTrustProviderType := none + /-- The ID of the trust provider. -/ + verifiedAccessTrustProviderId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessTrustProviderCondensed where + schema := .struct "VerifiedAccessTrustProviderCondensed" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "DeviceTrustProviderType", xmlName := some "deviceTrustProviderType", queryName := some "DeviceTrustProviderType" }, (Shape.schema DeviceTrustProviderType)), + ({ name := "TrustProviderType", xmlName := some "trustProviderType", queryName := some "TrustProviderType" }, (Shape.schema TrustProviderType)), + ({ name := "UserTrustProviderType", xmlName := some "userTrustProviderType", queryName := some "UserTrustProviderType" }, (Shape.schema UserTrustProviderType)), + ({ name := "VerifiedAccessTrustProviderId", xmlName := some "verifiedAccessTrustProviderId", queryName := some "VerifiedAccessTrustProviderId" }, .string)] + toValue x := record [putOpt "Description" x.description, putOpt "DeviceTrustProviderType" x.deviceTrustProviderType, putOpt "TrustProviderType" x.trustProviderType, putOpt "UserTrustProviderType" x.userTrustProviderType, putOpt "VerifiedAccessTrustProviderId" x.verifiedAccessTrustProviderId] + ofValue v := do + let description ← v.opt "Description" + let deviceTrustProviderType ← v.opt "DeviceTrustProviderType" + let trustProviderType ← v.opt "TrustProviderType" + let userTrustProviderType ← v.opt "UserTrustProviderType" + let verifiedAccessTrustProviderId ← v.opt "VerifiedAccessTrustProviderId" + return { description, deviceTrustProviderType, trustProviderType, userTrustProviderType, verifiedAccessTrustProviderId } + +/-- Describes telemetry for a VPN tunnel. -/ +structure VgwTelemetry where + /-- The number of accepted routes. -/ + acceptedRouteCount : Option Int := none + /-- The Amazon Resource Name (ARN) of the VPN tunnel endpoint certificate. -/ + certificateArn : Option String := none + /-- The date and time of the last change in status. -/ + lastStatusChange : Option Timestamp := none + /-- The Internet-routable IP address of the virtual private gateway's outside interface. -/ + outsideIpAddress : Option String := none + /-- The status of the VPN tunnel. -/ + status : Option TelemetryStatus := none + /-- If an error occurs, a description of the error. -/ + statusMessage : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VgwTelemetry where + schema := .struct "VgwTelemetry" [({ name := "AcceptedRouteCount", xmlName := some "acceptedRouteCount", queryName := some "AcceptedRouteCount" }, .int), + ({ name := "CertificateArn", xmlName := some "certificateArn", queryName := some "CertificateArn" }, .string), + ({ name := "LastStatusChange", xmlName := some "lastStatusChange", queryName := some "LastStatusChange" }, (.time none)), + ({ name := "OutsideIpAddress", xmlName := some "outsideIpAddress", queryName := some "OutsideIpAddress" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema TelemetryStatus)), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string)] + toValue x := record [putOpt "AcceptedRouteCount" x.acceptedRouteCount, putOpt "CertificateArn" x.certificateArn, putOpt "LastStatusChange" x.lastStatusChange, putOpt "OutsideIpAddress" x.outsideIpAddress, putOpt "Status" x.status, putOpt "StatusMessage" x.statusMessage] + ofValue v := do + let acceptedRouteCount ← v.opt "AcceptedRouteCount" + let certificateArn ← v.opt "CertificateArn" + let lastStatusChange ← v.opt "LastStatusChange" + let outsideIpAddress ← v.opt "OutsideIpAddress" + let status ← v.opt "Status" + let statusMessage ← v.opt "StatusMessage" + return { acceptedRouteCount, certificateArn, lastStatusChange, outsideIpAddress, status, statusMessage } + +/-- Describes volume attachment details. -/ +structure VolumeAttachment where + /-- The ARN of the Amazon Web Services-managed resource to which the volume is attached. -/ + associatedResource : Option String := none + /-- The time stamp when the attachment initiated. -/ + attachTime : Option Timestamp := none + /-- Indicates whether the EBS volume is deleted on instance termination. -/ + deleteOnTermination : Option Bool := none + /-- The device name. -/ + device : Option String := none + /-- The index of the EBS card. -/ + ebsCardIndex : Option Int := none + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- The service principal of the Amazon Web Services service that owns the underlying resource to which the volume is attached. -/ + instanceOwningService : Option String := none + /-- The attachment state of the volume. -/ + state : Option VolumeAttachmentState := none + /-- The ID of the volume. -/ + volumeId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VolumeAttachment where + schema := .struct "VolumeAttachment" [({ name := "AssociatedResource", xmlName := some "associatedResource", queryName := some "AssociatedResource" }, .string), + ({ name := "AttachTime", xmlName := some "attachTime", queryName := some "AttachTime" }, (.time none)), + ({ name := "DeleteOnTermination", xmlName := some "deleteOnTermination", queryName := some "DeleteOnTermination" }, .bool), + ({ name := "Device", xmlName := some "device", queryName := some "Device" }, .string), + ({ name := "EbsCardIndex", xmlName := some "ebsCardIndex", queryName := some "EbsCardIndex" }, .int), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "InstanceOwningService", xmlName := some "instanceOwningService", queryName := some "InstanceOwningService" }, .string), + ({ name := "State", xmlName := some "status", queryName := some "Status" }, (Shape.schema VolumeAttachmentState)), + ({ name := "VolumeId", xmlName := some "volumeId", queryName := some "VolumeId" }, .string)] + toValue x := record [putOpt "AssociatedResource" x.associatedResource, putOpt "AttachTime" x.attachTime, putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "Device" x.device, putOpt "EbsCardIndex" x.ebsCardIndex, putOpt "InstanceId" x.instanceId, putOpt "InstanceOwningService" x.instanceOwningService, putOpt "State" x.state, putOpt "VolumeId" x.volumeId] + ofValue v := do + let associatedResource ← v.opt "AssociatedResource" + let attachTime ← v.opt "AttachTime" + let deleteOnTermination ← v.opt "DeleteOnTermination" + let device ← v.opt "Device" + let ebsCardIndex ← v.opt "EbsCardIndex" + let instanceId ← v.opt "InstanceId" + let instanceOwningService ← v.opt "InstanceOwningService" + let state ← v.opt "State" + let volumeId ← v.opt "VolumeId" + return { associatedResource, attachTime, deleteOnTermination, device, ebsCardIndex, instanceId, instanceOwningService, state, volumeId } + +/-- Describes the modification status of an EBS volume. -/ +structure VolumeModification where + /-- The modification completion or failure time. -/ + endTime : Option Timestamp := none + /-- The current modification state. -/ + modificationState : Option VolumeModificationState := none + /-- The service provider that manages the resource. -/ + operator : Option OperatorResponse := none + /-- The original IOPS rate of the volume. -/ + originalIops : Option Int := none + /-- The original setting for Amazon EBS Multi-Attach. -/ + originalMultiAttachEnabled : Option Bool := none + /-- The original size of the volume, in GiB. -/ + originalSize : Option Int := none + /-- The original throughput of the volume, in MiB/s. -/ + originalThroughput : Option Int := none + /-- The original EBS volume type of the volume. -/ + originalVolumeType : Option VolumeType := none + /-- The modification progress, from 0 to 100 percent complete. -/ + progress : Option Int := none + /-- The modification start time. -/ + startTime : Option Timestamp := none + /-- A status message about the modification progress or failure. -/ + statusMessage : Option String := none + /-- The target IOPS rate of the volume. -/ + targetIops : Option Int := none + /-- The target setting for Amazon EBS Multi-Attach. -/ + targetMultiAttachEnabled : Option Bool := none + /-- The target size of the volume, in GiB. -/ + targetSize : Option Int := none + /-- The target throughput of the volume, in MiB/s. -/ + targetThroughput : Option Int := none + /-- The target EBS volume type of the volume. -/ + targetVolumeType : Option VolumeType := none + /-- The ID of the volume. -/ + volumeId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VolumeModification where + schema := .struct "VolumeModification" [({ name := "EndTime", xmlName := some "endTime", queryName := some "EndTime" }, (.time none)), + ({ name := "ModificationState", xmlName := some "modificationState", queryName := some "ModificationState" }, (Shape.schema VolumeModificationState)), + ({ name := "Operator", xmlName := some "operator", queryName := some "Operator" }, (Shape.schema OperatorResponse)), + ({ name := "OriginalIops", xmlName := some "originalIops", queryName := some "OriginalIops" }, .int), + ({ name := "OriginalMultiAttachEnabled", xmlName := some "originalMultiAttachEnabled", queryName := some "OriginalMultiAttachEnabled" }, .bool), + ({ name := "OriginalSize", xmlName := some "originalSize", queryName := some "OriginalSize" }, .int), + ({ name := "OriginalThroughput", xmlName := some "originalThroughput", queryName := some "OriginalThroughput" }, .int), + ({ name := "OriginalVolumeType", xmlName := some "originalVolumeType", queryName := some "OriginalVolumeType" }, (Shape.schema VolumeType)), + ({ name := "Progress", xmlName := some "progress", queryName := some "Progress" }, .int), + ({ name := "StartTime", xmlName := some "startTime", queryName := some "StartTime" }, (.time none)), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string), + ({ name := "TargetIops", xmlName := some "targetIops", queryName := some "TargetIops" }, .int), + ({ name := "TargetMultiAttachEnabled", xmlName := some "targetMultiAttachEnabled", queryName := some "TargetMultiAttachEnabled" }, .bool), + ({ name := "TargetSize", xmlName := some "targetSize", queryName := some "TargetSize" }, .int), + ({ name := "TargetThroughput", xmlName := some "targetThroughput", queryName := some "TargetThroughput" }, .int), + ({ name := "TargetVolumeType", xmlName := some "targetVolumeType", queryName := some "TargetVolumeType" }, (Shape.schema VolumeType)), + ({ name := "VolumeId", xmlName := some "volumeId", queryName := some "VolumeId" }, .string)] + toValue x := record [putOpt "EndTime" x.endTime, putOpt "ModificationState" x.modificationState, putOpt "Operator" x.operator, putOpt "OriginalIops" x.originalIops, putOpt "OriginalMultiAttachEnabled" x.originalMultiAttachEnabled, putOpt "OriginalSize" x.originalSize, putOpt "OriginalThroughput" x.originalThroughput, putOpt "OriginalVolumeType" x.originalVolumeType, putOpt "Progress" x.progress, putOpt "StartTime" x.startTime, putOpt "StatusMessage" x.statusMessage, putOpt "TargetIops" x.targetIops, putOpt "TargetMultiAttachEnabled" x.targetMultiAttachEnabled, putOpt "TargetSize" x.targetSize, putOpt "TargetThroughput" x.targetThroughput, putOpt "TargetVolumeType" x.targetVolumeType, putOpt "VolumeId" x.volumeId] + ofValue v := do + let endTime ← v.opt "EndTime" + let modificationState ← v.opt "ModificationState" + let operator ← v.opt "Operator" + let originalIops ← v.opt "OriginalIops" + let originalMultiAttachEnabled ← v.opt "OriginalMultiAttachEnabled" + let originalSize ← v.opt "OriginalSize" + let originalThroughput ← v.opt "OriginalThroughput" + let originalVolumeType ← v.opt "OriginalVolumeType" + let progress ← v.opt "Progress" + let startTime ← v.opt "StartTime" + let statusMessage ← v.opt "StatusMessage" + let targetIops ← v.opt "TargetIops" + let targetMultiAttachEnabled ← v.opt "TargetMultiAttachEnabled" + let targetSize ← v.opt "TargetSize" + let targetThroughput ← v.opt "TargetThroughput" + let targetVolumeType ← v.opt "TargetVolumeType" + let volumeId ← v.opt "VolumeId" + return { endTime, modificationState, operator, originalIops, originalMultiAttachEnabled, originalSize, originalThroughput, originalVolumeType, progress, startTime, statusMessage, targetIops, targetMultiAttachEnabled, targetSize, targetThroughput, targetVolumeType, volumeId } + +/-- Information about a volume that is currently in the Recycle Bin. -/ +structure VolumeRecycleBinInfo where + /-- The Availability Zone for the volume. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone for the volume. -/ + availabilityZoneId : Option String := none + /-- The time stamp when volume creation was initiated. -/ + createTime : Option Timestamp := none + /-- The number of I/O operations per second (IOPS) for the volume. -/ + iops : Option Int := none + /-- The service provider that manages the volume. -/ + operator : Option OperatorResponse := none + /-- The ARN of the Outpost on which the volume is stored. -/ + outpostArn : Option String := none + /-- The date and time when the volume entered the Recycle Bin. -/ + recycleBinEnterTime : Option Timestamp := none + /-- The date and time when the volume is to be permanently deleted from the Recycle Bin. -/ + recycleBinExitTime : Option Timestamp := none + /-- The size of the volume, in GiB. -/ + size : Option Int := none + /-- The snapshot from which the volume was created, if applicable. -/ + snapshotId : Option String := none + /-- The ID of the source volume. -/ + sourceVolumeId : Option String := none + /-- The state of the volume. -/ + state : Option VolumeState := none + /-- The throughput that the volume supports, in MiB/s. -/ + throughput : Option Int := none + /-- The ID of the volume. -/ + volumeId : Option String := none + /-- The volume type. -/ + volumeType : Option VolumeType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VolumeRecycleBinInfo where + schema := .struct "VolumeRecycleBinInfo" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "CreateTime", xmlName := some "createTime", queryName := some "CreateTime" }, (.time none)), + ({ name := "Iops", xmlName := some "iops", queryName := some "Iops" }, .int), + ({ name := "Operator", xmlName := some "operator", queryName := some "Operator" }, (Shape.schema OperatorResponse)), + ({ name := "OutpostArn", xmlName := some "outpostArn", queryName := some "OutpostArn" }, .string), + ({ name := "RecycleBinEnterTime", xmlName := some "recycleBinEnterTime", queryName := some "RecycleBinEnterTime" }, (.time none)), + ({ name := "RecycleBinExitTime", xmlName := some "recycleBinExitTime", queryName := some "RecycleBinExitTime" }, (.time none)), + ({ name := "Size", xmlName := some "size", queryName := some "Size" }, .int), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string), + ({ name := "SourceVolumeId", xmlName := some "sourceVolumeId", queryName := some "SourceVolumeId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema VolumeState)), + ({ name := "Throughput", xmlName := some "throughput", queryName := some "Throughput" }, .int), + ({ name := "VolumeId", xmlName := some "volumeId", queryName := some "VolumeId" }, .string), + ({ name := "VolumeType", xmlName := some "volumeType", queryName := some "VolumeType" }, (Shape.schema VolumeType))] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "CreateTime" x.createTime, putOpt "Iops" x.iops, putOpt "Operator" x.operator, putOpt "OutpostArn" x.outpostArn, putOpt "RecycleBinEnterTime" x.recycleBinEnterTime, putOpt "RecycleBinExitTime" x.recycleBinExitTime, putOpt "Size" x.size, putOpt "SnapshotId" x.snapshotId, putOpt "SourceVolumeId" x.sourceVolumeId, putOpt "State" x.state, putOpt "Throughput" x.throughput, putOpt "VolumeId" x.volumeId, putOpt "VolumeType" x.volumeType] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let createTime ← v.opt "CreateTime" + let iops ← v.opt "Iops" + let operator ← v.opt "Operator" + let outpostArn ← v.opt "OutpostArn" + let recycleBinEnterTime ← v.opt "RecycleBinEnterTime" + let recycleBinExitTime ← v.opt "RecycleBinExitTime" + let size ← v.opt "Size" + let snapshotId ← v.opt "SnapshotId" + let sourceVolumeId ← v.opt "SourceVolumeId" + let state ← v.opt "State" + let throughput ← v.opt "Throughput" + let volumeId ← v.opt "VolumeId" + let volumeType ← v.opt "VolumeType" + return { availabilityZone, availabilityZoneId, createTime, iops, operator, outpostArn, recycleBinEnterTime, recycleBinExitTime, size, snapshotId, sourceVolumeId, state, throughput, volumeId, volumeType } + +/-- Describes a volume status. -/ +structure VolumeStatusDetails where + /-- The name of the volume status. -/ + name : Option VolumeStatusName := none + /-- The intended status of the volume status. -/ + status : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VolumeStatusDetails where + schema := .struct "VolumeStatusDetails" [({ name := "Name", xmlName := some "name", queryName := some "Name" }, (Shape.schema VolumeStatusName)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, .string)] + toValue x := record [putOpt "Name" x.name, putOpt "Status" x.status] + ofValue v := do + let name ← v.opt "Name" + let status ← v.opt "Status" + return { name, status } + +/-- Describes an attachment between a virtual private gateway and a VPC. -/ +structure VpcAttachment where + /-- The current state of the attachment. -/ + state : Option AttachmentStatus := none + /-- The ID of the VPC. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcAttachment where + schema := .struct "VpcAttachment" [({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema AttachmentStatus)), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "State" x.state, putOpt "VpcId" x.vpcId] + ofValue v := do + let state ← v.opt "State" + let vpcId ← v.opt "VpcId" + return { state, vpcId } + +/-- A VPC BPA exclusion is a mode that can be applied to a single VPC or subnet that exempts it from the account’s BPA mode and will allow bidirectional or egress-only access. -/ +structure VpcBlockPublicAccessExclusion where + /-- When the exclusion was created. -/ + creationTimestamp : Option Timestamp := none + /-- When the exclusion was deleted. -/ + deletionTimestamp : Option Timestamp := none + /-- The ID of the exclusion. -/ + exclusionId : Option String := none + /-- The exclusion mode for internet gateway traffic. -/ + internetGatewayExclusionMode : Option InternetGatewayExclusionMode := none + /-- When the exclusion was last updated. -/ + lastUpdateTimestamp : Option Timestamp := none + /-- The reason for the current exclusion state. -/ + reason : Option String := none + /-- The ARN of the exclusion. -/ + resourceArn : Option String := none + /-- The state of the exclusion. -/ + state : Option VpcBlockPublicAccessExclusionState := none + /-- tag - The key/value combination of a tag assigned to the resource. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcBlockPublicAccessExclusion where + schema := .struct "VpcBlockPublicAccessExclusion" [({ name := "CreationTimestamp", xmlName := some "creationTimestamp", queryName := some "CreationTimestamp" }, (.time none)), + ({ name := "DeletionTimestamp", xmlName := some "deletionTimestamp", queryName := some "DeletionTimestamp" }, (.time none)), + ({ name := "ExclusionId", xmlName := some "exclusionId", queryName := some "ExclusionId" }, .string), + ({ name := "InternetGatewayExclusionMode", xmlName := some "internetGatewayExclusionMode", queryName := some "InternetGatewayExclusionMode" }, (Shape.schema InternetGatewayExclusionMode)), + ({ name := "LastUpdateTimestamp", xmlName := some "lastUpdateTimestamp", queryName := some "LastUpdateTimestamp" }, (.time none)), + ({ name := "Reason", xmlName := some "reason", queryName := some "Reason" }, .string), + ({ name := "ResourceArn", xmlName := some "resourceArn", queryName := some "ResourceArn" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema VpcBlockPublicAccessExclusionState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "CreationTimestamp" x.creationTimestamp, putOpt "DeletionTimestamp" x.deletionTimestamp, putOpt "ExclusionId" x.exclusionId, putOpt "InternetGatewayExclusionMode" x.internetGatewayExclusionMode, putOpt "LastUpdateTimestamp" x.lastUpdateTimestamp, putOpt "Reason" x.reason, putOpt "ResourceArn" x.resourceArn, putOpt "State" x.state, putOpt "Tags" x.tags] + ofValue v := do + let creationTimestamp ← v.opt "CreationTimestamp" + let deletionTimestamp ← v.opt "DeletionTimestamp" + let exclusionId ← v.opt "ExclusionId" + let internetGatewayExclusionMode ← v.opt "InternetGatewayExclusionMode" + let lastUpdateTimestamp ← v.opt "LastUpdateTimestamp" + let reason ← v.opt "Reason" + let resourceArn ← v.opt "ResourceArn" + let state ← v.opt "State" + let tags ← v.opt "Tags" + return { creationTimestamp, deletionTimestamp, exclusionId, internetGatewayExclusionMode, lastUpdateTimestamp, reason, resourceArn, state, tags } + +/-- VPC Block Public Access (BPA) enables you to block resources in VPCs and subnets that you own in a Region from reaching or being reached from the internet through internet gateways and egress-only internet gateways. -/ +structure VpcBlockPublicAccessOptions where + /-- An Amazon Web Services account ID. -/ + awsAccountId : Option String := none + /-- An Amazon Web Services Region. -/ + awsRegion : Option String := none + /-- Determines if exclusions are allowed. -/ + exclusionsAllowed : Option VpcBlockPublicAccessExclusionsAllowed := none + /-- The current mode of VPC BPA. -/ + internetGatewayBlockMode : Option InternetGatewayBlockMode := none + /-- The last time the VPC BPA mode was updated. -/ + lastUpdateTimestamp : Option Timestamp := none + /-- The entity that manages the state of VPC BPA. -/ + managedBy : Option ManagedBy := none + /-- The reason for the current state. -/ + reason : Option String := none + /-- The current state of VPC BPA. -/ + state : Option VpcBlockPublicAccessState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcBlockPublicAccessOptions where + schema := .struct "VpcBlockPublicAccessOptions" [({ name := "AwsAccountId", xmlName := some "awsAccountId", queryName := some "AwsAccountId" }, .string), + ({ name := "AwsRegion", xmlName := some "awsRegion", queryName := some "AwsRegion" }, .string), + ({ name := "ExclusionsAllowed", xmlName := some "exclusionsAllowed", queryName := some "ExclusionsAllowed" }, (Shape.schema VpcBlockPublicAccessExclusionsAllowed)), + ({ name := "InternetGatewayBlockMode", xmlName := some "internetGatewayBlockMode", queryName := some "InternetGatewayBlockMode" }, (Shape.schema InternetGatewayBlockMode)), + ({ name := "LastUpdateTimestamp", xmlName := some "lastUpdateTimestamp", queryName := some "LastUpdateTimestamp" }, (.time none)), + ({ name := "ManagedBy", xmlName := some "managedBy", queryName := some "ManagedBy" }, (Shape.schema ManagedBy)), + ({ name := "Reason", xmlName := some "reason", queryName := some "Reason" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema VpcBlockPublicAccessState))] + toValue x := record [putOpt "AwsAccountId" x.awsAccountId, putOpt "AwsRegion" x.awsRegion, putOpt "ExclusionsAllowed" x.exclusionsAllowed, putOpt "InternetGatewayBlockMode" x.internetGatewayBlockMode, putOpt "LastUpdateTimestamp" x.lastUpdateTimestamp, putOpt "ManagedBy" x.managedBy, putOpt "Reason" x.reason, putOpt "State" x.state] + ofValue v := do + let awsAccountId ← v.opt "AwsAccountId" + let awsRegion ← v.opt "AwsRegion" + let exclusionsAllowed ← v.opt "ExclusionsAllowed" + let internetGatewayBlockMode ← v.opt "InternetGatewayBlockMode" + let lastUpdateTimestamp ← v.opt "LastUpdateTimestamp" + let managedBy ← v.opt "ManagedBy" + let reason ← v.opt "Reason" + let state ← v.opt "State" + return { awsAccountId, awsRegion, exclusionsAllowed, internetGatewayBlockMode, lastUpdateTimestamp, managedBy, reason, state } + +/-- Describes the state of a CIDR block. -/ +structure VpcCidrBlockState where + /-- The state of the CIDR block. -/ + state : Option VpcCidrBlockStateCode := none + /-- A message about the status of the CIDR block, if applicable. -/ + statusMessage : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcCidrBlockState where + schema := .struct "VpcCidrBlockState" [({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema VpcCidrBlockStateCode)), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string)] + toValue x := record [putOpt "State" x.state, putOpt "StatusMessage" x.statusMessage] + ofValue v := do + let state ← v.opt "State" + let statusMessage ← v.opt "StatusMessage" + return { state, statusMessage } + +/-- Deprecated. -/ +structure VpcClassicLink where + /-- Indicates whether the VPC is enabled for ClassicLink. -/ + classicLinkEnabled : Option Bool := none + /-- Any tags assigned to the VPC. -/ + tags : Option (List Tag) := none + /-- The ID of the VPC. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcClassicLink where + schema := .struct "VpcClassicLink" [({ name := "ClassicLinkEnabled", xmlName := some "classicLinkEnabled", queryName := some "ClassicLinkEnabled" }, .bool), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "ClassicLinkEnabled" x.classicLinkEnabled, putOpt "Tags" x.tags, putOpt "VpcId" x.vpcId] + ofValue v := do + let classicLinkEnabled ← v.opt "ClassicLinkEnabled" + let tags ← v.opt "Tags" + let vpcId ← v.opt "VpcId" + return { classicLinkEnabled, tags, vpcId } + +/-- Describes the configuration settings for VPC Encryption Control. -/ +structure VpcEncryptionControlConfiguration where + /-- Specifies whether to exclude Amazon API Gateway V2 traffic from encryption enforcement. -/ + apiGatewayV2Exclusion : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude egress-only internet gateway traffic from encryption enforcement. -/ + egressOnlyInternetGatewayExclusion : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude Elastic File System traffic from encryption enforcement. -/ + elasticFileSystemExclusion : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude Amazon Web Services Global Accelerator traffic from encryption enforcement. -/ + globalAcceleratorExclusion : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude internet gateway traffic from encryption enforcement. -/ + internetGatewayExclusion : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude Lambda function traffic from encryption enforcement. -/ + lambdaExclusion : Option VpcEncryptionControlExclusionStateInput := none + /-- The encryption mode for the VPC Encryption Control configuration. -/ + mode : VpcEncryptionControlMode + /-- Specifies whether to exclude NAT gateway traffic from encryption enforcement. -/ + natGatewayExclusion : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude virtual private gateway traffic from encryption enforcement. -/ + virtualPrivateGatewayExclusion : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude VPC Lattice traffic from encryption enforcement. -/ + vpcLatticeExclusion : Option VpcEncryptionControlExclusionStateInput := none + /-- Specifies whether to exclude VPC peering connection traffic from encryption enforcement. -/ + vpcPeeringExclusion : Option VpcEncryptionControlExclusionStateInput := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcEncryptionControlConfiguration where + schema := .struct "VpcEncryptionControlConfiguration" [({ name := "ApiGatewayV2Exclusion" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "EgressOnlyInternetGatewayExclusion" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "ElasticFileSystemExclusion" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "GlobalAcceleratorExclusion" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "InternetGatewayExclusion" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "LambdaExclusion" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "Mode", required := true }, (Shape.schema VpcEncryptionControlMode)), + ({ name := "NatGatewayExclusion" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "VirtualPrivateGatewayExclusion" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "VpcLatticeExclusion" }, (Shape.schema VpcEncryptionControlExclusionStateInput)), + ({ name := "VpcPeeringExclusion" }, (Shape.schema VpcEncryptionControlExclusionStateInput))] + toValue x := record [putOpt "ApiGatewayV2Exclusion" x.apiGatewayV2Exclusion, putOpt "EgressOnlyInternetGatewayExclusion" x.egressOnlyInternetGatewayExclusion, putOpt "ElasticFileSystemExclusion" x.elasticFileSystemExclusion, putOpt "GlobalAcceleratorExclusion" x.globalAcceleratorExclusion, putOpt "InternetGatewayExclusion" x.internetGatewayExclusion, putOpt "LambdaExclusion" x.lambdaExclusion, put "Mode" x.mode, putOpt "NatGatewayExclusion" x.natGatewayExclusion, putOpt "VirtualPrivateGatewayExclusion" x.virtualPrivateGatewayExclusion, putOpt "VpcLatticeExclusion" x.vpcLatticeExclusion, putOpt "VpcPeeringExclusion" x.vpcPeeringExclusion] + ofValue v := do + let apiGatewayV2Exclusion ← v.opt "ApiGatewayV2Exclusion" + let egressOnlyInternetGatewayExclusion ← v.opt "EgressOnlyInternetGatewayExclusion" + let elasticFileSystemExclusion ← v.opt "ElasticFileSystemExclusion" + let globalAcceleratorExclusion ← v.opt "GlobalAcceleratorExclusion" + let internetGatewayExclusion ← v.opt "InternetGatewayExclusion" + let lambdaExclusion ← v.opt "LambdaExclusion" + let mode ← v.req "Mode" + let natGatewayExclusion ← v.opt "NatGatewayExclusion" + let virtualPrivateGatewayExclusion ← v.opt "VirtualPrivateGatewayExclusion" + let vpcLatticeExclusion ← v.opt "VpcLatticeExclusion" + let vpcPeeringExclusion ← v.opt "VpcPeeringExclusion" + return { apiGatewayV2Exclusion, egressOnlyInternetGatewayExclusion, elasticFileSystemExclusion, globalAcceleratorExclusion, internetGatewayExclusion, lambdaExclusion, mode, natGatewayExclusion, virtualPrivateGatewayExclusion, vpcLatticeExclusion, vpcPeeringExclusion } + +/-- Describes an exclusion configuration for VPC Encryption Control. -/ +structure VpcEncryptionControlExclusion where + /-- The current state of the exclusion configuration. -/ + state : Option VpcEncryptionControlExclusionState := none + /-- A message providing additional information about the exclusion state. -/ + stateMessage : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcEncryptionControlExclusion where + schema := .struct "VpcEncryptionControlExclusion" [({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema VpcEncryptionControlExclusionState)), + ({ name := "StateMessage", xmlName := some "stateMessage", queryName := some "StateMessage" }, .string)] + toValue x := record [putOpt "State" x.state, putOpt "StateMessage" x.stateMessage] + ofValue v := do + let state ← v.opt "State" + let stateMessage ← v.opt "StateMessage" + return { state, stateMessage } + +/-- Describes the VPC resources, VPC endpoint services, Lattice services, or service networks associated with the VPC endpoint. -/ +structure VpcEndpointAssociation where + /-- The connectivity status of the resources associated to a VPC endpoint. -/ + associatedResourceAccessibility : Option String := none + /-- The Amazon Resource Name (ARN) of the associated resource. -/ + associatedResourceArn : Option String := none + /-- The DNS entry of the VPC endpoint association. -/ + dnsEntry : Option DnsEntry := none + /-- An error code related to why an VPC endpoint association failed. -/ + failureCode : Option String := none + /-- A message related to why an VPC endpoint association failed. -/ + failureReason : Option String := none + /-- The ID of the VPC endpoint association. -/ + id : Option String := none + /-- The private DNS entry of the VPC endpoint association. -/ + privateDnsEntry : Option DnsEntry := none + /-- The Amazon Resource Name (ARN) of the resource configuration group. -/ + resourceConfigurationGroupArn : Option String := none + /-- The Amazon Resource Name (ARN) of the service network. -/ + serviceNetworkArn : Option String := none + /-- The name of the service network. -/ + serviceNetworkName : Option String := none + /-- The tags to apply to the VPC endpoint association. -/ + tags : Option (List Tag) := none + /-- The ID of the VPC endpoint. -/ + vpcEndpointId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcEndpointAssociation where + schema := .struct "VpcEndpointAssociation" [({ name := "AssociatedResourceAccessibility", xmlName := some "associatedResourceAccessibility", queryName := some "AssociatedResourceAccessibility" }, .string), + ({ name := "AssociatedResourceArn", xmlName := some "associatedResourceArn", queryName := some "AssociatedResourceArn" }, .string), + ({ name := "DnsEntry", xmlName := some "dnsEntry", queryName := some "DnsEntry" }, (Shape.schema DnsEntry)), + ({ name := "FailureCode", xmlName := some "failureCode", queryName := some "FailureCode" }, .string), + ({ name := "FailureReason", xmlName := some "failureReason", queryName := some "FailureReason" }, .string), + ({ name := "Id", xmlName := some "id", queryName := some "Id" }, .string), + ({ name := "PrivateDnsEntry", xmlName := some "privateDnsEntry", queryName := some "PrivateDnsEntry" }, (Shape.schema DnsEntry)), + ({ name := "ResourceConfigurationGroupArn", xmlName := some "resourceConfigurationGroupArn", queryName := some "ResourceConfigurationGroupArn" }, .string), + ({ name := "ServiceNetworkArn", xmlName := some "serviceNetworkArn", queryName := some "ServiceNetworkArn" }, .string), + ({ name := "ServiceNetworkName", xmlName := some "serviceNetworkName", queryName := some "ServiceNetworkName" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VpcEndpointId", xmlName := some "vpcEndpointId", queryName := some "VpcEndpointId" }, .string)] + toValue x := record [putOpt "AssociatedResourceAccessibility" x.associatedResourceAccessibility, putOpt "AssociatedResourceArn" x.associatedResourceArn, putOpt "DnsEntry" x.dnsEntry, putOpt "FailureCode" x.failureCode, putOpt "FailureReason" x.failureReason, putOpt "Id" x.id, putOpt "PrivateDnsEntry" x.privateDnsEntry, putOpt "ResourceConfigurationGroupArn" x.resourceConfigurationGroupArn, putOpt "ServiceNetworkArn" x.serviceNetworkArn, putOpt "ServiceNetworkName" x.serviceNetworkName, putOpt "Tags" x.tags, putOpt "VpcEndpointId" x.vpcEndpointId] + ofValue v := do + let associatedResourceAccessibility ← v.opt "AssociatedResourceAccessibility" + let associatedResourceArn ← v.opt "AssociatedResourceArn" + let dnsEntry ← v.opt "DnsEntry" + let failureCode ← v.opt "FailureCode" + let failureReason ← v.opt "FailureReason" + let id ← v.opt "Id" + let privateDnsEntry ← v.opt "PrivateDnsEntry" + let resourceConfigurationGroupArn ← v.opt "ResourceConfigurationGroupArn" + let serviceNetworkArn ← v.opt "ServiceNetworkArn" + let serviceNetworkName ← v.opt "ServiceNetworkName" + let tags ← v.opt "Tags" + let vpcEndpointId ← v.opt "VpcEndpointId" + return { associatedResourceAccessibility, associatedResourceArn, dnsEntry, failureCode, failureReason, id, privateDnsEntry, resourceConfigurationGroupArn, serviceNetworkArn, serviceNetworkName, tags, vpcEndpointId } + +/-- Describes the VPC peering connection options. -/ +structure VpcPeeringConnectionOptionsDescription where + /-- Indicates whether a local VPC can resolve public DNS hostnames to private IP addresses when queried from instances in a peer VPC. -/ + allowDnsResolutionFromRemoteVpc : Option Bool := none + /-- Deprecated. -/ + allowEgressFromLocalClassicLinkToRemoteVpc : Option Bool := none + /-- Deprecated. -/ + allowEgressFromLocalVpcToRemoteClassicLink : Option Bool := none + /-- Indicates whether this side of the VPC peering connection allows multipath resilience. -/ + allowMultipathResilience : Option Bool := none + /-- The multipath resilience mode for this side of the VPC peering connection. -/ + multipathResilienceMode : Option MultipathResilienceMode := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcPeeringConnectionOptionsDescription where + schema := .struct "VpcPeeringConnectionOptionsDescription" [({ name := "AllowDnsResolutionFromRemoteVpc", xmlName := some "allowDnsResolutionFromRemoteVpc", queryName := some "AllowDnsResolutionFromRemoteVpc" }, .bool), + ({ name := "AllowEgressFromLocalClassicLinkToRemoteVpc", xmlName := some "allowEgressFromLocalClassicLinkToRemoteVpc", queryName := some "AllowEgressFromLocalClassicLinkToRemoteVpc" }, .bool), + ({ name := "AllowEgressFromLocalVpcToRemoteClassicLink", xmlName := some "allowEgressFromLocalVpcToRemoteClassicLink", queryName := some "AllowEgressFromLocalVpcToRemoteClassicLink" }, .bool), + ({ name := "AllowMultipathResilience", xmlName := some "allowMultipathResilience", queryName := some "AllowMultipathResilience" }, .bool), + ({ name := "MultipathResilienceMode", xmlName := some "multipathResilienceMode", queryName := some "MultipathResilienceMode" }, (Shape.schema MultipathResilienceMode))] + toValue x := record [putOpt "AllowDnsResolutionFromRemoteVpc" x.allowDnsResolutionFromRemoteVpc, putOpt "AllowEgressFromLocalClassicLinkToRemoteVpc" x.allowEgressFromLocalClassicLinkToRemoteVpc, putOpt "AllowEgressFromLocalVpcToRemoteClassicLink" x.allowEgressFromLocalVpcToRemoteClassicLink, putOpt "AllowMultipathResilience" x.allowMultipathResilience, putOpt "MultipathResilienceMode" x.multipathResilienceMode] + ofValue v := do + let allowDnsResolutionFromRemoteVpc ← v.opt "AllowDnsResolutionFromRemoteVpc" + let allowEgressFromLocalClassicLinkToRemoteVpc ← v.opt "AllowEgressFromLocalClassicLinkToRemoteVpc" + let allowEgressFromLocalVpcToRemoteClassicLink ← v.opt "AllowEgressFromLocalVpcToRemoteClassicLink" + let allowMultipathResilience ← v.opt "AllowMultipathResilience" + let multipathResilienceMode ← v.opt "MultipathResilienceMode" + return { allowDnsResolutionFromRemoteVpc, allowEgressFromLocalClassicLinkToRemoteVpc, allowEgressFromLocalVpcToRemoteClassicLink, allowMultipathResilience, multipathResilienceMode } + +/-- Describes the status of a VPC peering connection. -/ +structure VpcPeeringConnectionStateReason where + /-- The status of the VPC peering connection. -/ + code : Option VpcPeeringConnectionStateReasonCode := none + /-- A message that provides more information about the status, if applicable. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcPeeringConnectionStateReason where + schema := .struct "VpcPeeringConnectionStateReason" [({ name := "Code", xmlName := some "code", queryName := some "Code" }, (Shape.schema VpcPeeringConnectionStateReasonCode)), + ({ name := "Message", xmlName := some "message", queryName := some "Message" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Message" x.message] + ofValue v := do + let code ← v.opt "Code" + let message ← v.opt "Message" + return { code, message } + +/-- Describes an additional key exchange round that is permitted for the VPN tunnel. -/ +structure VpnAdditionalKeyExchange where + /-- The additional key exchange round number. -/ + additionalKeyExchangeRound : Option Int := none + /-- The key exchange method numbers permitted for this round. -/ + keyExchangeMethods : Option (List AdditionalKeyExchangeMethodsListValue) := none + /-- Indicates whether this round is mandatory. -/ + requirement : Option AdditionalKeyExchangeRequirement := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpnAdditionalKeyExchange where + schema := .struct "VpnAdditionalKeyExchange" [({ name := "AdditionalKeyExchangeRound", xmlName := some "additionalKeyExchangeRound", queryName := some "AdditionalKeyExchangeRound" }, .int), + ({ name := "KeyExchangeMethods", xmlName := some "keyExchangeMethodSet", queryName := some "KeyExchangeMethodSet" }, (.list (Shape.schema AdditionalKeyExchangeMethodsListValue) "item")), + ({ name := "Requirement", xmlName := some "requirement", queryName := some "Requirement" }, (Shape.schema AdditionalKeyExchangeRequirement))] + toValue x := record [putOpt "AdditionalKeyExchangeRound" x.additionalKeyExchangeRound, putOpt "KeyExchangeMethods" x.keyExchangeMethods, putOpt "Requirement" x.requirement] + ofValue v := do + let additionalKeyExchangeRound ← v.opt "AdditionalKeyExchangeRound" + let keyExchangeMethods ← v.opt "KeyExchangeMethods" + let requirement ← v.opt "Requirement" + return { additionalKeyExchangeRound, keyExchangeMethods, requirement } + +/-- Specifies an additional key exchange round for the VPN tunnel, as defined in RFC 9370. -/ +structure VpnAdditionalKeyExchangeRequest where + /-- The additional key exchange round number. -/ + additionalKeyExchangeRound : Int + /-- The key exchange method numbers that are permitted for this round. -/ + keyExchangeMethods : Option (List AdditionalKeyExchangeMethodsRequestListValue) := none + /-- Indicates whether this round is mandatory. -/ + requirement : Option AdditionalKeyExchangeRequirement := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpnAdditionalKeyExchangeRequest where + schema := .struct "VpnAdditionalKeyExchangeRequest" [({ name := "AdditionalKeyExchangeRound", required := true }, .int), + ({ name := "KeyExchangeMethods", xmlName := some "KeyExchangeMethod" }, (.list (Shape.schema AdditionalKeyExchangeMethodsRequestListValue) "item")), + ({ name := "Requirement" }, (Shape.schema AdditionalKeyExchangeRequirement))] + toValue x := record [put "AdditionalKeyExchangeRound" x.additionalKeyExchangeRound, putOpt "KeyExchangeMethods" x.keyExchangeMethods, putOpt "Requirement" x.requirement] + ofValue v := do + let additionalKeyExchangeRound ← v.req "AdditionalKeyExchangeRound" + let keyExchangeMethods ← v.opt "KeyExchangeMethods" + let requirement ← v.opt "Requirement" + return { additionalKeyExchangeRound, keyExchangeMethods, requirement } + +/-- Describes a VPN concentrator. -/ +structure VpnConcentrator where + /-- The current state of the VPN concentrator. -/ + state : Option String := none + /-- Any tags assigned to the VPN concentrator. -/ + tags : Option (List Tag) := none + /-- The ID of the transit gateway attachment for the VPN concentrator. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the transit gateway associated with the VPN concentrator. -/ + transitGatewayId : Option String := none + /-- The type of VPN concentrator. -/ + type : Option String := none + /-- The ID of the VPN concentrator. -/ + vpnConcentratorId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpnConcentrator where + schema := .struct "VpnConcentrator" [({ name := "State", xmlName := some "state", queryName := some "State" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayId", xmlName := some "transitGatewayId", queryName := some "TransitGatewayId" }, .string), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, .string), + ({ name := "VpnConcentratorId", xmlName := some "vpnConcentratorId", queryName := some "VpnConcentratorId" }, .string)] + toValue x := record [putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, putOpt "TransitGatewayId" x.transitGatewayId, putOpt "Type" x.type, putOpt "VpnConcentratorId" x.vpnConcentratorId] + ofValue v := do + let state ← v.opt "State" + let tags ← v.opt "Tags" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayId ← v.opt "TransitGatewayId" + let type ← v.opt "Type" + let vpnConcentratorId ← v.opt "VpnConcentratorId" + return { state, tags, transitGatewayAttachmentId, transitGatewayId, type, vpnConcentratorId } + +/-- Describes a static route for a VPN connection. -/ +structure VpnStaticRoute where + /-- The CIDR block associated with the local subnet of the customer data center. -/ + destinationCidrBlock : Option String := none + /-- Indicates how the routes were provided. -/ + source : Option VpnStaticRouteSource := none + /-- The current state of the static route. -/ + state : Option VpnState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpnStaticRoute where + schema := .struct "VpnStaticRoute" [({ name := "DestinationCidrBlock", xmlName := some "destinationCidrBlock", queryName := some "DestinationCidrBlock" }, .string), + ({ name := "Source", xmlName := some "source", queryName := some "Source" }, (Shape.schema VpnStaticRouteSource)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema VpnState))] + toValue x := record [putOpt "DestinationCidrBlock" x.destinationCidrBlock, putOpt "Source" x.source, putOpt "State" x.state] + ofValue v := do + let destinationCidrBlock ← v.opt "DestinationCidrBlock" + let source ← v.opt "Source" + let state ← v.opt "State" + return { destinationCidrBlock, source, state } + +/-- Options for logging VPN tunnel activity. -/ +structure VpnTunnelLogOptions where + /-- Options for sending VPN tunnel logs to CloudWatch. -/ + cloudWatchLogOptions : Option CloudWatchLogOptions := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpnTunnelLogOptions where + schema := .struct "VpnTunnelLogOptions" [({ name := "CloudWatchLogOptions", xmlName := some "cloudWatchLogOptions", queryName := some "CloudWatchLogOptions" }, (Shape.schema CloudWatchLogOptions))] + toValue x := record [putOpt "CloudWatchLogOptions" x.cloudWatchLogOptions] + ofValue v := do + let cloudWatchLogOptions ← v.opt "CloudWatchLogOptions" + return { cloudWatchLogOptions } + +/-- Options for logging VPN tunnel activity. -/ +structure VpnTunnelLogOptionsSpecification where + /-- Options for sending VPN tunnel logs to CloudWatch. -/ + cloudWatchLogOptions : Option CloudWatchLogOptionsSpecification := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpnTunnelLogOptionsSpecification where + schema := .struct "VpnTunnelLogOptionsSpecification" [({ name := "CloudWatchLogOptions" }, (Shape.schema CloudWatchLogOptionsSpecification))] + toValue x := record [putOpt "CloudWatchLogOptions" x.cloudWatchLogOptions] + ofValue v := do + let cloudWatchLogOptions ← v.opt "CloudWatchLogOptions" + return { cloudWatchLogOptions } + +structure AcceptAddressTransferRequest where + /-- The Elastic IP address you are accepting for transfer. -/ + address : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- tag : - The key/value combination of a tag assigned to the resource. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceptAddressTransferRequest where + schema := .struct "AcceptAddressTransferRequest" [({ name := "Address", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [put "Address" x.address, putOpt "DryRun" x.dryRun, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let address ← v.req "Address" + let dryRun ← v.opt "DryRun" + let tagSpecifications ← v.opt "TagSpecifications" + return { address, dryRun, tagSpecifications } + +structure AcceptAddressTransferResult where + /-- An Elastic IP address transfer. -/ + addressTransfer : Option AddressTransfer := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceptAddressTransferResult where + schema := .struct "AcceptAddressTransferResult" [({ name := "AddressTransfer", xmlName := some "addressTransfer", queryName := some "AddressTransfer" }, (Shape.schema AddressTransfer))] + toValue x := record [putOpt "AddressTransfer" x.addressTransfer] + ofValue v := do + let addressTransfer ← v.opt "AddressTransfer" + return { addressTransfer } + +structure AcceptTransitGatewayClientVpnAttachmentResult where + /-- Information about the Transit Gateway Client VPN attachment. -/ + transitGatewayClientVpnAttachment : Option TransitGatewayClientVpnAttachment := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceptTransitGatewayClientVpnAttachmentResult where + schema := .struct "AcceptTransitGatewayClientVpnAttachmentResult" [({ name := "TransitGatewayClientVpnAttachment", xmlName := some "transitGatewayClientVpnAttachment", queryName := some "TransitGatewayClientVpnAttachment" }, (Shape.schema TransitGatewayClientVpnAttachment))] + toValue x := record [putOpt "TransitGatewayClientVpnAttachment" x.transitGatewayClientVpnAttachment] + ofValue v := do + let transitGatewayClientVpnAttachment ← v.opt "TransitGatewayClientVpnAttachment" + return { transitGatewayClientVpnAttachment } + +structure AcceptVpcEndpointConnectionsResult where + /-- Information about the interface endpoints that were not accepted, if applicable. -/ + unsuccessful : Option (List UnsuccessfulItem) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceptVpcEndpointConnectionsResult where + schema := .struct "AcceptVpcEndpointConnectionsResult" [({ name := "Unsuccessful", xmlName := some "unsuccessful", queryName := some "Unsuccessful" }, (.list (Shape.schema UnsuccessfulItem) "item"))] + toValue x := record [putOpt "Unsuccessful" x.unsuccessful] + ofValue v := do + let unsuccessful ← v.opt "Unsuccessful" + return { unsuccessful } + +/-- Describes the account-level VPC Encryption Control configuration, including its mode, state, and exclusions. -/ +structure AccountVpcEncryptionControl where + /-- Information about the traffic exclusions for the account-level VPC Encryption Control configuration. -/ + exclusions : Option AccountVpcEncryptionControlExclusions := none + /-- The date and time when the account-level VPC Encryption Control configuration was last updated. -/ + lastUpdateTimestamp : Option Timestamp := none + /-- The entity that manages the account-level VPC Encryption Control configuration. -/ + managedBy : Option ManagedBy := none + /-- The encryption mode for the account-level VPC Encryption Control configuration. -/ + mode : Option AccountVpcEncryptionControlMode := none + /-- The current state of the account-level VPC Encryption Control configuration. -/ + state : Option AccountVpcEncryptionControlState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AccountVpcEncryptionControl where + schema := .struct "AccountVpcEncryptionControl" [({ name := "Exclusions", xmlName := some "exclusions", queryName := some "Exclusions" }, (Shape.schema AccountVpcEncryptionControlExclusions)), + ({ name := "LastUpdateTimestamp", xmlName := some "lastUpdateTimestamp", queryName := some "LastUpdateTimestamp" }, (.time none)), + ({ name := "ManagedBy", xmlName := some "managedBy", queryName := some "ManagedBy" }, (Shape.schema ManagedBy)), + ({ name := "Mode", xmlName := some "mode", queryName := some "Mode" }, (Shape.schema AccountVpcEncryptionControlMode)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema AccountVpcEncryptionControlState))] + toValue x := record [putOpt "Exclusions" x.exclusions, putOpt "LastUpdateTimestamp" x.lastUpdateTimestamp, putOpt "ManagedBy" x.managedBy, putOpt "Mode" x.mode, putOpt "State" x.state] + ofValue v := do + let exclusions ← v.opt "Exclusions" + let lastUpdateTimestamp ← v.opt "LastUpdateTimestamp" + let managedBy ← v.opt "ManagedBy" + let mode ← v.opt "Mode" + let state ← v.opt "State" + return { exclusions, lastUpdateTimestamp, managedBy, mode, state } + +/-- Describes an additional detail for a path analysis. -/ +structure AdditionalDetail where + /-- The additional detail code. -/ + additionalDetailType : Option String := none + /-- The path component. -/ + component : Option AnalysisComponent := none + /-- The load balancers. -/ + loadBalancers : Option (List AnalysisComponent) := none + /-- The rule options. -/ + ruleGroupRuleOptionsPairs : Option (List RuleGroupRuleOptionsPair) := none + /-- The rule group type. -/ + ruleGroupTypePairs : Option (List RuleGroupTypePair) := none + /-- The rule options. -/ + ruleOptions : Option (List RuleOption) := none + /-- The name of the VPC endpoint service. -/ + serviceName : Option String := none + /-- The VPC endpoint service. -/ + vpcEndpointService : Option AnalysisComponent := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AdditionalDetail where + schema := .struct "AdditionalDetail" [({ name := "AdditionalDetailType", xmlName := some "additionalDetailType", queryName := some "AdditionalDetailType" }, .string), + ({ name := "Component", xmlName := some "component", queryName := some "Component" }, (Shape.schema AnalysisComponent)), + ({ name := "LoadBalancers", xmlName := some "loadBalancerSet", queryName := some "LoadBalancerSet" }, (.list (Shape.schema AnalysisComponent) "item")), + ({ name := "RuleGroupRuleOptionsPairs", xmlName := some "ruleGroupRuleOptionsPairSet", queryName := some "RuleGroupRuleOptionsPairSet" }, (.list (Shape.schema RuleGroupRuleOptionsPair) "item")), + ({ name := "RuleGroupTypePairs", xmlName := some "ruleGroupTypePairSet", queryName := some "RuleGroupTypePairSet" }, (.list (Shape.schema RuleGroupTypePair) "item")), + ({ name := "RuleOptions", xmlName := some "ruleOptionSet", queryName := some "RuleOptionSet" }, (.list (Shape.schema RuleOption) "item")), + ({ name := "ServiceName", xmlName := some "serviceName", queryName := some "ServiceName" }, .string), + ({ name := "VpcEndpointService", xmlName := some "vpcEndpointService", queryName := some "VpcEndpointService" }, (Shape.schema AnalysisComponent))] + toValue x := record [putOpt "AdditionalDetailType" x.additionalDetailType, putOpt "Component" x.component, putOpt "LoadBalancers" x.loadBalancers, putOpt "RuleGroupRuleOptionsPairs" x.ruleGroupRuleOptionsPairs, putOpt "RuleGroupTypePairs" x.ruleGroupTypePairs, putOpt "RuleOptions" x.ruleOptions, putOpt "ServiceName" x.serviceName, putOpt "VpcEndpointService" x.vpcEndpointService] + ofValue v := do + let additionalDetailType ← v.opt "AdditionalDetailType" + let component ← v.opt "Component" + let loadBalancers ← v.opt "LoadBalancers" + let ruleGroupRuleOptionsPairs ← v.opt "RuleGroupRuleOptionsPairs" + let ruleGroupTypePairs ← v.opt "RuleGroupTypePairs" + let ruleOptions ← v.opt "RuleOptions" + let serviceName ← v.opt "ServiceName" + let vpcEndpointService ← v.opt "VpcEndpointService" + return { additionalDetailType, component, loadBalancers, ruleGroupRuleOptionsPairs, ruleGroupTypePairs, ruleOptions, serviceName, vpcEndpointService } + +structure AllocateAddressRequest where + /-- The Elastic IP address to recover or an IPv4 address from an address pool. -/ + address : Option String := none + /-- The ID of a customer-owned address pool. -/ + customerOwnedIpv4Pool : Option String := none + /-- The network ( vpc ). -/ + domain : Option DomainType := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it. -/ + ipamPoolId : Option String := none + /-- A unique set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises IP addresses. -/ + networkBorderGroup : Option String := none + /-- The ID of an address pool that you own. -/ + publicIpv4Pool : Option String := none + /-- The tags to assign to the Elastic IP address. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AllocateAddressRequest where + schema := .struct "AllocateAddressRequest" [({ name := "Address" }, .string), + ({ name := "CustomerOwnedIpv4Pool" }, .string), + ({ name := "Domain" }, (Shape.schema DomainType)), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "IpamPoolId" }, .string), + ({ name := "NetworkBorderGroup" }, .string), + ({ name := "PublicIpv4Pool" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "Address" x.address, putOpt "CustomerOwnedIpv4Pool" x.customerOwnedIpv4Pool, putOpt "Domain" x.domain, putOpt "DryRun" x.dryRun, putOpt "IpamPoolId" x.ipamPoolId, putOpt "NetworkBorderGroup" x.networkBorderGroup, putOpt "PublicIpv4Pool" x.publicIpv4Pool, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let address ← v.opt "Address" + let customerOwnedIpv4Pool ← v.opt "CustomerOwnedIpv4Pool" + let domain ← v.opt "Domain" + let dryRun ← v.opt "DryRun" + let ipamPoolId ← v.opt "IpamPoolId" + let networkBorderGroup ← v.opt "NetworkBorderGroup" + let publicIpv4Pool ← v.opt "PublicIpv4Pool" + let tagSpecifications ← v.opt "TagSpecifications" + return { address, customerOwnedIpv4Pool, domain, dryRun, ipamPoolId, networkBorderGroup, publicIpv4Pool, tagSpecifications } + +structure AllocateHostsRequest where + /-- The IDs of the Outpost hardware assets on which to allocate the Dedicated Hosts. -/ + assetIds : Option (List String) := none + /-- Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. -/ + autoPlacement : Option AutoPlacement := none + /-- The Availability Zone in which to allocate the Dedicated Host. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone. -/ + availabilityZoneId : Option String := none + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The CPU configuration options to apply to the Dedicated Host. -/ + cpuOptions : Option HostCpuOptionsRequest := none + /-- Indicates whether to enable or disable host maintenance for the Dedicated Host. -/ + hostMaintenance : Option HostMaintenance := none + /-- Indicates whether to enable or disable host recovery for the Dedicated Host. -/ + hostRecovery : Option HostRecovery := none + /-- Specifies the instance family to be supported by the Dedicated Hosts. -/ + instanceFamily : Option String := none + /-- Specifies the instance type to be supported by the Dedicated Hosts. -/ + instanceType : Option String := none + /-- The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which to allocate the Dedicated Host. -/ + outpostArn : Option String := none + /-- The number of Dedicated Hosts to allocate to your account with these parameters. -/ + quantity : Option Int := none + /-- The tags to apply to the Dedicated Host during creation. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AllocateHostsRequest where + schema := .struct "AllocateHostsRequest" [({ name := "AssetIds", xmlName := some "AssetId" }, (.list .string "member")), + ({ name := "AutoPlacement", xmlName := some "autoPlacement", queryName := some "AutoPlacement" }, (Shape.schema AutoPlacement)), + ({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId" }, .string), + ({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "CpuOptions" }, (Shape.schema HostCpuOptionsRequest)), + ({ name := "HostMaintenance" }, (Shape.schema HostMaintenance)), + ({ name := "HostRecovery" }, (Shape.schema HostRecovery)), + ({ name := "InstanceFamily" }, .string), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, .string), + ({ name := "OutpostArn" }, .string), + ({ name := "Quantity", xmlName := some "quantity", queryName := some "Quantity" }, .int), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "AssetIds" x.assetIds, putOpt "AutoPlacement" x.autoPlacement, putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "ClientToken" x.clientToken, putOpt "CpuOptions" x.cpuOptions, putOpt "HostMaintenance" x.hostMaintenance, putOpt "HostRecovery" x.hostRecovery, putOpt "InstanceFamily" x.instanceFamily, putOpt "InstanceType" x.instanceType, putOpt "OutpostArn" x.outpostArn, putOpt "Quantity" x.quantity, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let assetIds ← v.opt "AssetIds" + let autoPlacement ← v.opt "AutoPlacement" + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let clientToken ← v.opt "ClientToken" + let cpuOptions ← v.opt "CpuOptions" + let hostMaintenance ← v.opt "HostMaintenance" + let hostRecovery ← v.opt "HostRecovery" + let instanceFamily ← v.opt "InstanceFamily" + let instanceType ← v.opt "InstanceType" + let outpostArn ← v.opt "OutpostArn" + let quantity ← v.opt "Quantity" + let tagSpecifications ← v.opt "TagSpecifications" + return { assetIds, autoPlacement, availabilityZone, availabilityZoneId, clientToken, cpuOptions, hostMaintenance, hostRecovery, instanceFamily, instanceType, outpostArn, quantity, tagSpecifications } + +structure AllocateIpamPoolCidrRequest where + /-- Include a particular CIDR range that can be returned by the pool. -/ + allowedCidrs : Option (List String) := none + /-- The CIDR you would like to allocate from the IPAM pool. -/ + cidr : Option String := none + /-- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- A description for the allocation. -/ + description : Option String := none + /-- Exclude a particular CIDR range from being returned by the pool. -/ + disallowedCidrs : Option (List String) := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM pool from which you would like to allocate a CIDR. -/ + ipamPoolId : String + /-- The netmask length of the CIDR you would like to allocate from the IPAM pool. -/ + netmaskLength : Option Int := none + /-- A preview of the next available CIDR in a pool. -/ + previewNextCidr : Option Bool := none + /-- The key/value combination of a tag assigned to the resource. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AllocateIpamPoolCidrRequest where + schema := .struct "AllocateIpamPoolCidrRequest" [({ name := "AllowedCidrs", xmlName := some "AllowedCidr" }, (.list .string "item")), + ({ name := "Cidr" }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DisallowedCidrs", xmlName := some "DisallowedCidr" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "IpamPoolId", required := true }, .string), + ({ name := "NetmaskLength" }, .int), + ({ name := "PreviewNextCidr" }, .bool), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "AllowedCidrs" x.allowedCidrs, putOpt "Cidr" x.cidr, putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DisallowedCidrs" x.disallowedCidrs, putOpt "DryRun" x.dryRun, put "IpamPoolId" x.ipamPoolId, putOpt "NetmaskLength" x.netmaskLength, putOpt "PreviewNextCidr" x.previewNextCidr, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let allowedCidrs ← v.opt "AllowedCidrs" + let cidr ← v.opt "Cidr" + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let disallowedCidrs ← v.opt "DisallowedCidrs" + let dryRun ← v.opt "DryRun" + let ipamPoolId ← v.req "IpamPoolId" + let netmaskLength ← v.opt "NetmaskLength" + let previewNextCidr ← v.opt "PreviewNextCidr" + let tagSpecifications ← v.opt "TagSpecifications" + return { allowedCidrs, cidr, clientToken, description, disallowedCidrs, dryRun, ipamPoolId, netmaskLength, previewNextCidr, tagSpecifications } + +structure AllocateIpamPoolCidrResult where + /-- Information about the allocation created. -/ + ipamPoolAllocation : Option IpamPoolAllocation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AllocateIpamPoolCidrResult where + schema := .struct "AllocateIpamPoolCidrResult" [({ name := "IpamPoolAllocation", xmlName := some "ipamPoolAllocation", queryName := some "IpamPoolAllocation" }, (Shape.schema IpamPoolAllocation))] + toValue x := record [putOpt "IpamPoolAllocation" x.ipamPoolAllocation] + ofValue v := do + let ipamPoolAllocation ← v.opt "IpamPoolAllocation" + return { ipamPoolAllocation } + +/-- Describes the application-level health status for an instance. -/ +structure ApplicationStatus where + /-- Details about the application status checks for the instance. -/ + details : Option (List ApplicationStatusDetail) := none + /-- The date and time when application status reporting resumes after suppression. -/ + resumeAt : Option Timestamp := none + /-- The current instance-level application status. -/ + status : Option ApplicationStatusEnum := none + /-- The date and time when the current status started. -/ + statusSince : Option Timestamp := none + /-- The date and time of the last status update. -/ + statusTimeStamp : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ApplicationStatus where + schema := .struct "ApplicationStatus" [({ name := "Details", xmlName := some "detailSet", queryName := some "DetailSet" }, (.list (Shape.schema ApplicationStatusDetail) "item")), + ({ name := "ResumeAt", xmlName := some "resumeAt", queryName := some "ResumeAt" }, (.time none)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema ApplicationStatusEnum)), + ({ name := "StatusSince", xmlName := some "statusSince", queryName := some "StatusSince" }, (.time none)), + ({ name := "StatusTimeStamp", xmlName := some "statusTimeStamp", queryName := some "StatusTimeStamp" }, (.time none))] + toValue x := record [putOpt "Details" x.details, putOpt "ResumeAt" x.resumeAt, putOpt "Status" x.status, putOpt "StatusSince" x.statusSince, putOpt "StatusTimeStamp" x.statusTimeStamp] + ofValue v := do + let details ← v.opt "Details" + let resumeAt ← v.opt "ResumeAt" + let status ← v.opt "Status" + let statusSince ← v.opt "StatusSince" + let statusTimeStamp ← v.opt "StatusTimeStamp" + return { details, resumeAt, status, statusSince, statusTimeStamp } + +/-- Describes an application status check. -/ +structure ApplicationStatusCheckResponseObject where + /-- The aggregation setting for the application status check. -/ + aggregation : Option AggregationStatusEnum := none + /-- The ID of the application status check. -/ + applicationStatusCheckId : Option String := none + /-- The date and time when the application status check was created. -/ + creationTime : Option Timestamp := none + /-- The date and time when the application status check was deleted. -/ + deletionTime : Option Timestamp := none + /-- The index of the network device used for the health check. -/ + deviceIndex : Option Int := none + /-- The number of consecutive failed health checks before the application status is considered impaired. -/ + failureThreshold : Option Int := none + /-- The health check paths for the application status check. -/ + healthCheckPaths : Option (List HealthCheckPathResponseObject) := none + /-- The number of seconds to wait before starting health checks after an instance is launched. -/ + initializationGracePeriodSeconds : Option Int := none + /-- The interval, in seconds, between health checks. -/ + interval : Option Int := none + /-- The IP scope used for the health check. -/ + ipScope : Option IpScopeEnum := none + /-- The IP version used for the health check. -/ + ipVersion : Option IpVersionEnum := none + /-- The date and time when the application status check was last updated. -/ + lastUpdatedAt : Option Timestamp := none + /-- The date and time when the application status check was last modified. -/ + modifyTime : Option Timestamp := none + /-- The URL path used for the health check HTTP request. -/ + path : Option String := none + /-- The port used for the health check. -/ + port : Option Int := none + /-- The protocol used for the health check. -/ + protocol : Option NetworkProtocolEnum := none + /-- The comma-separated list of individual HTTP status codes or ranges that indicate a successful health check response. -/ + statusCodeMatcher : Option String := none + /-- The number of consecutive successful health checks before the application status is considered healthy. -/ + successThreshold : Option Int := none + /-- The tags assigned to the application status check. -/ + tags : Option (List Tag) := none + /-- The tags associated with the application status check. -/ + targetTagAssociations : Option (List CustomTagKeyValueResponsePair) := none + /-- The amount of time, in seconds, to wait for a health check response. -/ + timeout : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ApplicationStatusCheckResponseObject where + schema := .struct "ApplicationStatusCheckResponseObject" [({ name := "Aggregation", xmlName := some "aggregation", queryName := some "Aggregation" }, (Shape.schema AggregationStatusEnum)), + ({ name := "ApplicationStatusCheckId", xmlName := some "applicationStatusCheckId", queryName := some "ApplicationStatusCheckId" }, .string), + ({ name := "CreationTime", xmlName := some "creationTime", queryName := some "CreationTime" }, (.time none)), + ({ name := "DeletionTime", xmlName := some "deletionTime", queryName := some "DeletionTime" }, (.time none)), + ({ name := "DeviceIndex", xmlName := some "deviceIndex", queryName := some "DeviceIndex" }, .int), + ({ name := "FailureThreshold", xmlName := some "failureThreshold", queryName := some "FailureThreshold" }, .int), + ({ name := "HealthCheckPaths", xmlName := some "healthCheckPathSet", queryName := some "HealthCheckPathSet" }, (.list (Shape.schema HealthCheckPathResponseObject) "item")), + ({ name := "InitializationGracePeriodSeconds", xmlName := some "initializationGracePeriodSeconds", queryName := some "InitializationGracePeriodSeconds" }, .int), + ({ name := "Interval", xmlName := some "interval", queryName := some "Interval" }, .int), + ({ name := "IpScope", xmlName := some "ipScope", queryName := some "IpScope" }, (Shape.schema IpScopeEnum)), + ({ name := "IpVersion", xmlName := some "ipVersion", queryName := some "IpVersion" }, (Shape.schema IpVersionEnum)), + ({ name := "LastUpdatedAt", xmlName := some "lastUpdatedAt", queryName := some "LastUpdatedAt" }, (.time none)), + ({ name := "ModifyTime", xmlName := some "modifyTime", queryName := some "ModifyTime" }, (.time none)), + ({ name := "Path", xmlName := some "path", queryName := some "Path" }, .string), + ({ name := "Port", xmlName := some "port", queryName := some "Port" }, .int), + ({ name := "Protocol", xmlName := some "protocol", queryName := some "Protocol" }, (Shape.schema NetworkProtocolEnum)), + ({ name := "StatusCodeMatcher", xmlName := some "statusCodeMatcher", queryName := some "StatusCodeMatcher" }, .string), + ({ name := "SuccessThreshold", xmlName := some "successThreshold", queryName := some "SuccessThreshold" }, .int), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TargetTagAssociations", xmlName := some "targetTagAssociationSet", queryName := some "TargetTagAssociationSet" }, (.list (Shape.schema CustomTagKeyValueResponsePair) "item")), + ({ name := "Timeout", xmlName := some "timeout", queryName := some "Timeout" }, .int)] + toValue x := record [putOpt "Aggregation" x.aggregation, putOpt "ApplicationStatusCheckId" x.applicationStatusCheckId, putOpt "CreationTime" x.creationTime, putOpt "DeletionTime" x.deletionTime, putOpt "DeviceIndex" x.deviceIndex, putOpt "FailureThreshold" x.failureThreshold, putOpt "HealthCheckPaths" x.healthCheckPaths, putOpt "InitializationGracePeriodSeconds" x.initializationGracePeriodSeconds, putOpt "Interval" x.interval, putOpt "IpScope" x.ipScope, putOpt "IpVersion" x.ipVersion, putOpt "LastUpdatedAt" x.lastUpdatedAt, putOpt "ModifyTime" x.modifyTime, putOpt "Path" x.path, putOpt "Port" x.port, putOpt "Protocol" x.protocol, putOpt "StatusCodeMatcher" x.statusCodeMatcher, putOpt "SuccessThreshold" x.successThreshold, putOpt "Tags" x.tags, putOpt "TargetTagAssociations" x.targetTagAssociations, putOpt "Timeout" x.timeout] + ofValue v := do + let aggregation ← v.opt "Aggregation" + let applicationStatusCheckId ← v.opt "ApplicationStatusCheckId" + let creationTime ← v.opt "CreationTime" + let deletionTime ← v.opt "DeletionTime" + let deviceIndex ← v.opt "DeviceIndex" + let failureThreshold ← v.opt "FailureThreshold" + let healthCheckPaths ← v.opt "HealthCheckPaths" + let initializationGracePeriodSeconds ← v.opt "InitializationGracePeriodSeconds" + let interval ← v.opt "Interval" + let ipScope ← v.opt "IpScope" + let ipVersion ← v.opt "IpVersion" + let lastUpdatedAt ← v.opt "LastUpdatedAt" + let modifyTime ← v.opt "ModifyTime" + let path ← v.opt "Path" + let port ← v.opt "Port" + let protocol ← v.opt "Protocol" + let statusCodeMatcher ← v.opt "StatusCodeMatcher" + let successThreshold ← v.opt "SuccessThreshold" + let tags ← v.opt "Tags" + let targetTagAssociations ← v.opt "TargetTagAssociations" + let timeout ← v.opt "Timeout" + return { aggregation, applicationStatusCheckId, creationTime, deletionTime, deviceIndex, failureThreshold, healthCheckPaths, initializationGracePeriodSeconds, interval, ipScope, ipVersion, lastUpdatedAt, modifyTime, path, port, protocol, statusCodeMatcher, successThreshold, tags, targetTagAssociations, timeout } + +structure AssignPrivateNatGatewayAddressResult where + /-- NAT gateway IP addresses. -/ + natGatewayAddresses : Option (List NatGatewayAddress) := none + /-- The ID of the NAT gateway. -/ + natGatewayId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssignPrivateNatGatewayAddressResult where + schema := .struct "AssignPrivateNatGatewayAddressResult" [({ name := "NatGatewayAddresses", xmlName := some "natGatewayAddressSet", queryName := some "NatGatewayAddressSet" }, (.list (Shape.schema NatGatewayAddress) "item")), + ({ name := "NatGatewayId", xmlName := some "natGatewayId", queryName := some "NatGatewayId" }, .string)] + toValue x := record [putOpt "NatGatewayAddresses" x.natGatewayAddresses, putOpt "NatGatewayId" x.natGatewayId] + ofValue v := do + let natGatewayAddresses ← v.opt "NatGatewayAddresses" + let natGatewayId ← v.opt "NatGatewayId" + return { natGatewayAddresses, natGatewayId } + +structure AssociateClientVpnTargetNetworkResult where + /-- The unique ID of the target network association. -/ + associationId : Option String := none + /-- The current state of the target network association. -/ + status : Option AssociationStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateClientVpnTargetNetworkResult where + schema := .struct "AssociateClientVpnTargetNetworkResult" [({ name := "AssociationId", xmlName := some "associationId", queryName := some "AssociationId" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema AssociationStatus))] + toValue x := record [putOpt "AssociationId" x.associationId, putOpt "Status" x.status] + ofValue v := do + let associationId ← v.opt "AssociationId" + let status ← v.opt "Status" + return { associationId, status } + +structure AssociateIamInstanceProfileResult where + /-- Information about the IAM instance profile association. -/ + iamInstanceProfileAssociation : Option IamInstanceProfileAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateIamInstanceProfileResult where + schema := .struct "AssociateIamInstanceProfileResult" [({ name := "IamInstanceProfileAssociation", xmlName := some "iamInstanceProfileAssociation", queryName := some "IamInstanceProfileAssociation" }, (Shape.schema IamInstanceProfileAssociation))] + toValue x := record [putOpt "IamInstanceProfileAssociation" x.iamInstanceProfileAssociation] + ofValue v := do + let iamInstanceProfileAssociation ← v.opt "IamInstanceProfileAssociation" + return { iamInstanceProfileAssociation } + +structure AssociateInstanceEventWindowRequest where + /-- One or more targets associated with the specified event window. -/ + associationTarget : InstanceEventWindowAssociationRequest + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the event window. -/ + instanceEventWindowId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateInstanceEventWindowRequest where + schema := .struct "AssociateInstanceEventWindowRequest" [({ name := "AssociationTarget", required := true }, (Shape.schema InstanceEventWindowAssociationRequest)), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceEventWindowId", required := true }, .string)] + toValue x := record [put "AssociationTarget" x.associationTarget, putOpt "DryRun" x.dryRun, put "InstanceEventWindowId" x.instanceEventWindowId] + ofValue v := do + let associationTarget ← v.req "AssociationTarget" + let dryRun ← v.opt "DryRun" + let instanceEventWindowId ← v.req "InstanceEventWindowId" + return { associationTarget, dryRun, instanceEventWindowId } + +structure AssociateIpamByoasnResult where + /-- The ASN and BYOIP CIDR association. -/ + asnAssociation : Option AsnAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateIpamByoasnResult where + schema := .struct "AssociateIpamByoasnResult" [({ name := "AsnAssociation", xmlName := some "asnAssociation", queryName := some "AsnAssociation" }, (Shape.schema AsnAssociation))] + toValue x := record [putOpt "AsnAssociation" x.asnAssociation] + ofValue v := do + let asnAssociation ← v.opt "AsnAssociation" + return { asnAssociation } + +structure AssociateIpamResourceDiscoveryRequest where + /-- A client token. -/ + clientToken : Option String := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- An IPAM ID. -/ + ipamId : String + /-- A resource discovery ID. -/ + ipamResourceDiscoveryId : String + /-- Tag specifications. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateIpamResourceDiscoveryRequest where + schema := .struct "AssociateIpamResourceDiscoveryRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "IpamId", required := true }, .string), + ({ name := "IpamResourceDiscoveryId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "IpamId" x.ipamId, put "IpamResourceDiscoveryId" x.ipamResourceDiscoveryId, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let ipamId ← v.req "IpamId" + let ipamResourceDiscoveryId ← v.req "IpamResourceDiscoveryId" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, dryRun, ipamId, ipamResourceDiscoveryId, tagSpecifications } + +structure AssociateIpamResourceDiscoveryResult where + /-- A resource discovery association. -/ + ipamResourceDiscoveryAssociation : Option IpamResourceDiscoveryAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateIpamResourceDiscoveryResult where + schema := .struct "AssociateIpamResourceDiscoveryResult" [({ name := "IpamResourceDiscoveryAssociation", xmlName := some "ipamResourceDiscoveryAssociation", queryName := some "IpamResourceDiscoveryAssociation" }, (Shape.schema IpamResourceDiscoveryAssociation))] + toValue x := record [putOpt "IpamResourceDiscoveryAssociation" x.ipamResourceDiscoveryAssociation] + ofValue v := do + let ipamResourceDiscoveryAssociation ← v.opt "IpamResourceDiscoveryAssociation" + return { ipamResourceDiscoveryAssociation } + +structure AssociateNatGatewayAddressResult where + /-- The IP addresses. -/ + natGatewayAddresses : Option (List NatGatewayAddress) := none + /-- The ID of the NAT gateway. -/ + natGatewayId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateNatGatewayAddressResult where + schema := .struct "AssociateNatGatewayAddressResult" [({ name := "NatGatewayAddresses", xmlName := some "natGatewayAddressSet", queryName := some "NatGatewayAddressSet" }, (.list (Shape.schema NatGatewayAddress) "item")), + ({ name := "NatGatewayId", xmlName := some "natGatewayId", queryName := some "NatGatewayId" }, .string)] + toValue x := record [putOpt "NatGatewayAddresses" x.natGatewayAddresses, putOpt "NatGatewayId" x.natGatewayId] + ofValue v := do + let natGatewayAddresses ← v.opt "NatGatewayAddresses" + let natGatewayId ← v.opt "NatGatewayId" + return { natGatewayAddresses, natGatewayId } + +structure AssociateNetworkingFlexCostAllocationPolicyRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the flex cost allocation policy to associate. -/ + fcaPolicyId : String + /-- The IDs of the network resources to associate with the policy. -/ + networkResourceIds : Option (List String) := none + /-- The scope of network resources to associate with the policy. -/ + networkResourceScope : Option FlexCostAllocationNetworkResourceScope := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateNetworkingFlexCostAllocationPolicyRequest where + schema := .struct "AssociateNetworkingFlexCostAllocationPolicyRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "FcaPolicyId", required := true }, .string), + ({ name := "NetworkResourceIds" }, (.list .string "item")), + ({ name := "NetworkResourceScope" }, (Shape.schema FlexCostAllocationNetworkResourceScope))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "FcaPolicyId" x.fcaPolicyId, putOpt "NetworkResourceIds" x.networkResourceIds, putOpt "NetworkResourceScope" x.networkResourceScope] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let fcaPolicyId ← v.req "FcaPolicyId" + let networkResourceIds ← v.opt "NetworkResourceIds" + let networkResourceScope ← v.opt "NetworkResourceScope" + return { clientToken, dryRun, fcaPolicyId, networkResourceIds, networkResourceScope } + +structure AssociateNetworkingFlexCostAllocationPolicyResult where + /-- Information about the network resources that could not be associated with the policy. -/ + fcaPolicyAssociationFailures : Option (List FlexCostAllocationOperationFailure) := none + /-- Information about the policy associations that were created. -/ + fcaPolicyAssociations : Option (List FlexCostAllocationPolicyAssociationDescription) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateNetworkingFlexCostAllocationPolicyResult where + schema := .struct "AssociateNetworkingFlexCostAllocationPolicyResult" [({ name := "FcaPolicyAssociationFailures", xmlName := some "fcaPolicyAssociationFailures", queryName := some "FcaPolicyAssociationFailures" }, (.list (Shape.schema FlexCostAllocationOperationFailure) "item")), + ({ name := "FcaPolicyAssociations", xmlName := some "fcaPolicyAssociations", queryName := some "FcaPolicyAssociations" }, (.list (Shape.schema FlexCostAllocationPolicyAssociationDescription) "item"))] + toValue x := record [putOpt "FcaPolicyAssociationFailures" x.fcaPolicyAssociationFailures, putOpt "FcaPolicyAssociations" x.fcaPolicyAssociations] + ofValue v := do + let fcaPolicyAssociationFailures ← v.opt "FcaPolicyAssociationFailures" + let fcaPolicyAssociations ← v.opt "FcaPolicyAssociations" + return { fcaPolicyAssociationFailures, fcaPolicyAssociations } + +structure AssociateRouteServerResult where + /-- Information about the association between the route server and the VPC. -/ + routeServerAssociation : Option RouteServerAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateRouteServerResult where + schema := .struct "AssociateRouteServerResult" [({ name := "RouteServerAssociation", xmlName := some "routeServerAssociation", queryName := some "RouteServerAssociation" }, (Shape.schema RouteServerAssociation))] + toValue x := record [putOpt "RouteServerAssociation" x.routeServerAssociation] + ofValue v := do + let routeServerAssociation ← v.opt "RouteServerAssociation" + return { routeServerAssociation } + +structure AssociateRouteTableResult where + /-- The route table association ID. -/ + associationId : Option String := none + /-- The state of the association. -/ + associationState : Option RouteTableAssociationState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateRouteTableResult where + schema := .struct "AssociateRouteTableResult" [({ name := "AssociationId", xmlName := some "associationId", queryName := some "AssociationId" }, .string), + ({ name := "AssociationState", xmlName := some "associationState", queryName := some "AssociationState" }, (Shape.schema RouteTableAssociationState))] + toValue x := record [putOpt "AssociationId" x.associationId, putOpt "AssociationState" x.associationState] + ofValue v := do + let associationId ← v.opt "AssociationId" + let associationState ← v.opt "AssociationState" + return { associationId, associationState } + +structure AssociateTransitGatewayPolicyTableResult where + /-- Describes the association of a transit gateway and a transit gateway policy table. -/ + association : Option TransitGatewayPolicyTableAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateTransitGatewayPolicyTableResult where + schema := .struct "AssociateTransitGatewayPolicyTableResult" [({ name := "Association", xmlName := some "association", queryName := some "Association" }, (Shape.schema TransitGatewayPolicyTableAssociation))] + toValue x := record [putOpt "Association" x.association] + ofValue v := do + let association ← v.opt "Association" + return { association } + +structure AssociateTransitGatewayRouteTableResult where + /-- The ID of the association. -/ + association : Option TransitGatewayAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateTransitGatewayRouteTableResult where + schema := .struct "AssociateTransitGatewayRouteTableResult" [({ name := "Association", xmlName := some "association", queryName := some "Association" }, (Shape.schema TransitGatewayAssociation))] + toValue x := record [putOpt "Association" x.association] + ofValue v := do + let association ← v.opt "Association" + return { association } + +structure AssociateTrunkInterfaceResult where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Information about the association between the trunk network interface and branch network interface. -/ + interfaceAssociation : Option TrunkInterfaceAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateTrunkInterfaceResult where + schema := .struct "AssociateTrunkInterfaceResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "InterfaceAssociation", xmlName := some "interfaceAssociation", queryName := some "InterfaceAssociation" }, (Shape.schema TrunkInterfaceAssociation))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "InterfaceAssociation" x.interfaceAssociation] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let interfaceAssociation ← v.opt "InterfaceAssociation" + return { clientToken, interfaceAssociation } + +/-- Contains the parameters for AttachNetworkInterface. -/ +structure AttachNetworkInterfaceRequest where + /-- The index of the device for the network interface attachment. -/ + deviceIndex : Int + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The number of ENA queues to be created with the instance. -/ + enaQueueCount : Option Int := none + /-- Configures ENA Express for the network interface that this action attaches to the instance. -/ + enaSrdSpecification : Option EnaSrdSpecification := none + /-- The ID of the instance. -/ + instanceId : String + /-- The index of the network card. -/ + networkCardIndex : Option Int := none + /-- The ID of the network interface. -/ + networkInterfaceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AttachNetworkInterfaceRequest where + schema := .struct "AttachNetworkInterfaceRequest" [({ name := "DeviceIndex", required := true, xmlName := some "deviceIndex", queryName := some "DeviceIndex" }, .int), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "EnaQueueCount" }, .int), + ({ name := "EnaSrdSpecification" }, (Shape.schema EnaSrdSpecification)), + ({ name := "InstanceId", required := true, xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "NetworkCardIndex" }, .int), + ({ name := "NetworkInterfaceId", required := true, xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string)] + toValue x := record [put "DeviceIndex" x.deviceIndex, putOpt "DryRun" x.dryRun, putOpt "EnaQueueCount" x.enaQueueCount, putOpt "EnaSrdSpecification" x.enaSrdSpecification, put "InstanceId" x.instanceId, putOpt "NetworkCardIndex" x.networkCardIndex, put "NetworkInterfaceId" x.networkInterfaceId] + ofValue v := do + let deviceIndex ← v.req "DeviceIndex" + let dryRun ← v.opt "DryRun" + let enaQueueCount ← v.opt "EnaQueueCount" + let enaSrdSpecification ← v.opt "EnaSrdSpecification" + let instanceId ← v.req "InstanceId" + let networkCardIndex ← v.opt "NetworkCardIndex" + let networkInterfaceId ← v.req "NetworkInterfaceId" + return { deviceIndex, dryRun, enaQueueCount, enaSrdSpecification, instanceId, networkCardIndex, networkInterfaceId } + +/-- Contains the output of AttachVpnGateway. -/ +structure AttachVpnGatewayResult where + /-- Information about the attachment. -/ + vpcAttachment : Option VpcAttachment := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AttachVpnGatewayResult where + schema := .struct "AttachVpnGatewayResult" [({ name := "VpcAttachment", xmlName := some "attachment", queryName := some "Attachment" }, (Shape.schema VpcAttachment))] + toValue x := record [putOpt "VpcAttachment" x.vpcAttachment] + ofValue v := do + let vpcAttachment ← v.opt "VpcAttachment" + return { vpcAttachment } + +/-- Information about an authorization rule. -/ +structure AuthorizationRule where + /-- Indicates whether the authorization rule grants access to all clients. -/ + accessAll : Option Bool := none + /-- The ID of the Client VPN endpoint with which the authorization rule is associated. -/ + clientVpnEndpointId : Option String := none + /-- A brief description of the authorization rule. -/ + description : Option String := none + /-- The IPv4 address range, in CIDR notation, of the network to which the authorization rule applies. -/ + destinationCidr : Option String := none + /-- The ID of the Active Directory group to which the authorization rule grants access. -/ + groupId : Option String := none + /-- The current state of the authorization rule. -/ + status : Option ClientVpnAuthorizationRuleStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AuthorizationRule where + schema := .struct "AuthorizationRule" [({ name := "AccessAll", xmlName := some "accessAll", queryName := some "AccessAll" }, .bool), + ({ name := "ClientVpnEndpointId", xmlName := some "clientVpnEndpointId", queryName := some "ClientVpnEndpointId" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "DestinationCidr", xmlName := some "destinationCidr", queryName := some "DestinationCidr" }, .string), + ({ name := "GroupId", xmlName := some "groupId", queryName := some "GroupId" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema ClientVpnAuthorizationRuleStatus))] + toValue x := record [putOpt "AccessAll" x.accessAll, putOpt "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "Description" x.description, putOpt "DestinationCidr" x.destinationCidr, putOpt "GroupId" x.groupId, putOpt "Status" x.status] + ofValue v := do + let accessAll ← v.opt "AccessAll" + let clientVpnEndpointId ← v.opt "ClientVpnEndpointId" + let description ← v.opt "Description" + let destinationCidr ← v.opt "DestinationCidr" + let groupId ← v.opt "GroupId" + let status ← v.opt "Status" + return { accessAll, clientVpnEndpointId, description, destinationCidr, groupId, status } + +structure AuthorizeClientVpnIngressResult where + /-- The current state of the authorization rule. -/ + status : Option ClientVpnAuthorizationRuleStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AuthorizeClientVpnIngressResult where + schema := .struct "AuthorizeClientVpnIngressResult" [({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema ClientVpnAuthorizationRuleStatus))] + toValue x := record [putOpt "Status" x.status] + ofValue v := do + let status ← v.opt "Status" + return { status } + +structure AuthorizeSecurityGroupEgressRequest where + /-- Not supported. -/ + cidrIp : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Not supported. -/ + fromPort : Option Int := none + /-- The ID of the security group. -/ + groupId : String + /-- The permissions for the security group rules. -/ + ipPermissions : Option (List IpPermission) := none + /-- Not supported. -/ + ipProtocol : Option String := none + /-- Not supported. -/ + sourceSecurityGroupName : Option String := none + /-- Not supported. -/ + sourceSecurityGroupOwnerId : Option String := none + /-- The tags applied to the security group rule. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- Not supported. -/ + toPort : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AuthorizeSecurityGroupEgressRequest where + schema := .struct "AuthorizeSecurityGroupEgressRequest" [({ name := "CidrIp", xmlName := some "cidrIp", queryName := some "CidrIp" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "FromPort", xmlName := some "fromPort", queryName := some "FromPort" }, .int), + ({ name := "GroupId", required := true, xmlName := some "groupId", queryName := some "GroupId" }, .string), + ({ name := "IpPermissions", xmlName := some "ipPermissions", queryName := some "IpPermissions" }, (.list (Shape.schema IpPermission) "item")), + ({ name := "IpProtocol", xmlName := some "ipProtocol", queryName := some "IpProtocol" }, .string), + ({ name := "SourceSecurityGroupName", xmlName := some "sourceSecurityGroupName", queryName := some "SourceSecurityGroupName" }, .string), + ({ name := "SourceSecurityGroupOwnerId", xmlName := some "sourceSecurityGroupOwnerId", queryName := some "SourceSecurityGroupOwnerId" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "ToPort", xmlName := some "toPort", queryName := some "ToPort" }, .int)] + toValue x := record [putOpt "CidrIp" x.cidrIp, putOpt "DryRun" x.dryRun, putOpt "FromPort" x.fromPort, put "GroupId" x.groupId, putOpt "IpPermissions" x.ipPermissions, putOpt "IpProtocol" x.ipProtocol, putOpt "SourceSecurityGroupName" x.sourceSecurityGroupName, putOpt "SourceSecurityGroupOwnerId" x.sourceSecurityGroupOwnerId, putOpt "TagSpecifications" x.tagSpecifications, putOpt "ToPort" x.toPort] + ofValue v := do + let cidrIp ← v.opt "CidrIp" + let dryRun ← v.opt "DryRun" + let fromPort ← v.opt "FromPort" + let groupId ← v.req "GroupId" + let ipPermissions ← v.opt "IpPermissions" + let ipProtocol ← v.opt "IpProtocol" + let sourceSecurityGroupName ← v.opt "SourceSecurityGroupName" + let sourceSecurityGroupOwnerId ← v.opt "SourceSecurityGroupOwnerId" + let tagSpecifications ← v.opt "TagSpecifications" + let toPort ← v.opt "ToPort" + return { cidrIp, dryRun, fromPort, groupId, ipPermissions, ipProtocol, sourceSecurityGroupName, sourceSecurityGroupOwnerId, tagSpecifications, toPort } + +structure AuthorizeSecurityGroupEgressResult where + /-- Returns true if the request succeeds; otherwise, returns an error. -/ + «return» : Option Bool := none + /-- Information about the outbound (egress) security group rules that were added. -/ + securityGroupRules : Option (List SecurityGroupRule) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AuthorizeSecurityGroupEgressResult where + schema := .struct "AuthorizeSecurityGroupEgressResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool), + ({ name := "SecurityGroupRules", xmlName := some "securityGroupRuleSet", queryName := some "SecurityGroupRuleSet" }, (.list (Shape.schema SecurityGroupRule) "item"))] + toValue x := record [putOpt "Return" x.«return», putOpt "SecurityGroupRules" x.securityGroupRules] + ofValue v := do + let «return» ← v.opt "Return" + let securityGroupRules ← v.opt "SecurityGroupRules" + return { «return», securityGroupRules } + +structure AuthorizeSecurityGroupIngressRequest where + /-- The IPv4 address range, in CIDR format. -/ + cidrIp : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- If the protocol is TCP or UDP, this is the start of the port range. -/ + fromPort : Option Int := none + /-- The ID of the security group. -/ + groupId : Option String := none + /-- [Default VPC] The name of the security group. -/ + groupName : Option String := none + /-- The permissions for the security group rules. -/ + ipPermissions : Option (List IpPermission) := none + /-- The IP protocol name ( tcp , udp , icmp ) or number (see Protocol Numbers ). -/ + ipProtocol : Option String := none + /-- [Default VPC] The name of the source security group. -/ + sourceSecurityGroupName : Option String := none + /-- The Amazon Web Services account ID for the source security group, if the source security group is in a different account. -/ + sourceSecurityGroupOwnerId : Option String := none + /-- The tags applied to the security group rule. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- If the protocol is TCP or UDP, this is the end of the port range. -/ + toPort : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AuthorizeSecurityGroupIngressRequest where + schema := .struct "AuthorizeSecurityGroupIngressRequest" [({ name := "CidrIp" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "FromPort" }, .int), + ({ name := "GroupId" }, .string), + ({ name := "GroupName" }, .string), + ({ name := "IpPermissions" }, (.list (Shape.schema IpPermission) "item")), + ({ name := "IpProtocol" }, .string), + ({ name := "SourceSecurityGroupName" }, .string), + ({ name := "SourceSecurityGroupOwnerId" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "ToPort" }, .int)] + toValue x := record [putOpt "CidrIp" x.cidrIp, putOpt "DryRun" x.dryRun, putOpt "FromPort" x.fromPort, putOpt "GroupId" x.groupId, putOpt "GroupName" x.groupName, putOpt "IpPermissions" x.ipPermissions, putOpt "IpProtocol" x.ipProtocol, putOpt "SourceSecurityGroupName" x.sourceSecurityGroupName, putOpt "SourceSecurityGroupOwnerId" x.sourceSecurityGroupOwnerId, putOpt "TagSpecifications" x.tagSpecifications, putOpt "ToPort" x.toPort] + ofValue v := do + let cidrIp ← v.opt "CidrIp" + let dryRun ← v.opt "DryRun" + let fromPort ← v.opt "FromPort" + let groupId ← v.opt "GroupId" + let groupName ← v.opt "GroupName" + let ipPermissions ← v.opt "IpPermissions" + let ipProtocol ← v.opt "IpProtocol" + let sourceSecurityGroupName ← v.opt "SourceSecurityGroupName" + let sourceSecurityGroupOwnerId ← v.opt "SourceSecurityGroupOwnerId" + let tagSpecifications ← v.opt "TagSpecifications" + let toPort ← v.opt "ToPort" + return { cidrIp, dryRun, fromPort, groupId, groupName, ipPermissions, ipProtocol, sourceSecurityGroupName, sourceSecurityGroupOwnerId, tagSpecifications, toPort } + +structure AuthorizeSecurityGroupIngressResult where + /-- Returns true if the request succeeds; otherwise, returns an error. -/ + «return» : Option Bool := none + /-- Information about the inbound (ingress) security group rules that were added. -/ + securityGroupRules : Option (List SecurityGroupRule) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AuthorizeSecurityGroupIngressResult where + schema := .struct "AuthorizeSecurityGroupIngressResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool), + ({ name := "SecurityGroupRules", xmlName := some "securityGroupRuleSet", queryName := some "SecurityGroupRuleSet" }, (.list (Shape.schema SecurityGroupRule) "item"))] + toValue x := record [putOpt "Return" x.«return», putOpt "SecurityGroupRules" x.securityGroupRules] + ofValue v := do + let «return» ← v.opt "Return" + let securityGroupRules ← v.opt "SecurityGroupRules" + return { «return», securityGroupRules } + +/-- The baseline performance to consider, using an instance family as a baseline reference. -/ +structure BaselinePerformanceFactors where + /-- The CPU performance to consider, using an instance family as the baseline reference. -/ + cpu : Option CpuPerformanceFactor := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BaselinePerformanceFactors where + schema := .struct "BaselinePerformanceFactors" [({ name := "Cpu", xmlName := some "cpu", queryName := some "Cpu" }, (Shape.schema CpuPerformanceFactor))] + toValue x := record [putOpt "Cpu" x.cpu] + ofValue v := do + let cpu ← v.opt "Cpu" + return { cpu } + +/-- The baseline performance to consider, using an instance family as a baseline reference. -/ +structure BaselinePerformanceFactorsRequest where + /-- The CPU performance to consider, using an instance family as the baseline reference. -/ + cpu : Option CpuPerformanceFactorRequest := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BaselinePerformanceFactorsRequest where + schema := .struct "BaselinePerformanceFactorsRequest" [({ name := "Cpu" }, (Shape.schema CpuPerformanceFactorRequest))] + toValue x := record [putOpt "Cpu" x.cpu] + ofValue v := do + let cpu ← v.opt "Cpu" + return { cpu } + +structure BatchModifyIpamRoutingPolicyRegistrationsResult where + /-- Information about the routing policy registration delta created by this batch operation. -/ + ipamRoutingPolicyRegistrationDelta : Option IpamRoutingPolicyRegistrationDelta := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BatchModifyIpamRoutingPolicyRegistrationsResult where + schema := .struct "BatchModifyIpamRoutingPolicyRegistrationsResult" [({ name := "IpamRoutingPolicyRegistrationDelta", xmlName := some "ipamRoutingPolicyRegistrationDelta", queryName := some "IpamRoutingPolicyRegistrationDelta" }, (Shape.schema IpamRoutingPolicyRegistrationDelta))] + toValue x := record [putOpt "IpamRoutingPolicyRegistrationDelta" x.ipamRoutingPolicyRegistrationDelta] + ofValue v := do + let ipamRoutingPolicyRegistrationDelta ← v.opt "IpamRoutingPolicyRegistrationDelta" + return { ipamRoutingPolicyRegistrationDelta } + +/-- Describes a block device mapping, which defines the EBS volumes and instance store volumes to attach to an instance at launch. -/ +structure BlockDeviceMapping where + /-- The device name. -/ + deviceName : Option String := none + /-- Parameters used to automatically set up EBS volumes when the instance is launched. -/ + ebs : Option EbsBlockDevice := none + /-- To omit the device from the block device mapping, specify an empty string. -/ + noDevice : Option String := none + /-- The virtual device name ( ephemeral N). -/ + virtualName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BlockDeviceMapping where + schema := .struct "BlockDeviceMapping" [({ name := "DeviceName", xmlName := some "deviceName", queryName := some "DeviceName" }, .string), + ({ name := "Ebs", xmlName := some "ebs", queryName := some "Ebs" }, (Shape.schema EbsBlockDevice)), + ({ name := "NoDevice", xmlName := some "noDevice", queryName := some "NoDevice" }, .string), + ({ name := "VirtualName", xmlName := some "virtualName", queryName := some "VirtualName" }, .string)] + toValue x := record [putOpt "DeviceName" x.deviceName, putOpt "Ebs" x.ebs, putOpt "NoDevice" x.noDevice, putOpt "VirtualName" x.virtualName] + ofValue v := do + let deviceName ← v.opt "DeviceName" + let ebs ← v.opt "Ebs" + let noDevice ← v.opt "NoDevice" + let virtualName ← v.opt "VirtualName" + return { deviceName, ebs, noDevice, virtualName } + +/-- Describes a block device mapping, which defines the EBS volumes and instance store volumes to attach to an instance at launch. -/ +structure BlockDeviceMappingResponse where + /-- The device name (for example, /dev/sdh or xvdh ). -/ + deviceName : Option String := none + /-- Parameters used to automatically set up EBS volumes when the instance is launched. -/ + ebs : Option EbsBlockDeviceResponse := none + /-- Suppresses the specified device included in the block device mapping. -/ + noDevice : Option String := none + /-- The virtual device name. -/ + virtualName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BlockDeviceMappingResponse where + schema := .struct "BlockDeviceMappingResponse" [({ name := "DeviceName", xmlName := some "deviceName", queryName := some "DeviceName" }, .string), + ({ name := "Ebs", xmlName := some "ebs", queryName := some "Ebs" }, (Shape.schema EbsBlockDeviceResponse)), + ({ name := "NoDevice", xmlName := some "noDevice", queryName := some "NoDevice" }, .string), + ({ name := "VirtualName", xmlName := some "virtualName", queryName := some "VirtualName" }, .string)] + toValue x := record [putOpt "DeviceName" x.deviceName, putOpt "Ebs" x.ebs, putOpt "NoDevice" x.noDevice, putOpt "VirtualName" x.virtualName] + ofValue v := do + let deviceName ← v.opt "DeviceName" + let ebs ← v.opt "Ebs" + let noDevice ← v.opt "NoDevice" + let virtualName ← v.opt "VirtualName" + return { deviceName, ebs, noDevice, virtualName } + +/-- Contains the parameters for BundleInstance. -/ +structure BundleInstanceRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the instance to bundle. -/ + instanceId : String + /-- The bucket in which to store the AMI. -/ + storage : Storage +deriving DecidableEq, Repr, Inhabited + +instance : Shape BundleInstanceRequest where + schema := .struct "BundleInstanceRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "InstanceId", required := true }, .string), + ({ name := "Storage", required := true }, (Shape.schema Storage))] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceId" x.instanceId, put "Storage" x.storage] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceId ← v.req "InstanceId" + let storage ← v.req "Storage" + return { dryRun, instanceId, storage } + +/-- Describes a bundle task. -/ +structure BundleTask where + /-- The ID of the bundle task. -/ + bundleId : Option String := none + /-- If the task fails, a description of the error. -/ + bundleTaskError : Option BundleTaskError := none + /-- The ID of the instance associated with this bundle task. -/ + instanceId : Option String := none + /-- The level of task completion, as a percent (for example, 20%). -/ + progress : Option String := none + /-- The time this task started. -/ + startTime : Option Timestamp := none + /-- The state of the task. -/ + state : Option BundleTaskState := none + /-- The Amazon S3 storage locations. -/ + storage : Option Storage := none + /-- The time of the most recent update for the task. -/ + updateTime : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BundleTask where + schema := .struct "BundleTask" [({ name := "BundleId", xmlName := some "bundleId", queryName := some "BundleId" }, .string), + ({ name := "BundleTaskError", xmlName := some "error", queryName := some "Error" }, (Shape.schema BundleTaskError)), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "Progress", xmlName := some "progress", queryName := some "Progress" }, .string), + ({ name := "StartTime", xmlName := some "startTime", queryName := some "StartTime" }, (.time none)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema BundleTaskState)), + ({ name := "Storage", xmlName := some "storage", queryName := some "Storage" }, (Shape.schema Storage)), + ({ name := "UpdateTime", xmlName := some "updateTime", queryName := some "UpdateTime" }, (.time none))] + toValue x := record [putOpt "BundleId" x.bundleId, putOpt "BundleTaskError" x.bundleTaskError, putOpt "InstanceId" x.instanceId, putOpt "Progress" x.progress, putOpt "StartTime" x.startTime, putOpt "State" x.state, putOpt "Storage" x.storage, putOpt "UpdateTime" x.updateTime] + ofValue v := do + let bundleId ← v.opt "BundleId" + let bundleTaskError ← v.opt "BundleTaskError" + let instanceId ← v.opt "InstanceId" + let progress ← v.opt "Progress" + let startTime ← v.opt "StartTime" + let state ← v.opt "State" + let storage ← v.opt "Storage" + let updateTime ← v.opt "UpdateTime" + return { bundleId, bundleTaskError, instanceId, progress, startTime, state, storage, updateTime } + +/-- Information about an address range that is provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP). -/ +structure ByoipCidr where + /-- Specifies the advertisement method for the BYOIP CIDR. -/ + advertisementType : Option String := none + /-- The BYOIP CIDR associations with ASNs. -/ + asnAssociations : Option (List AsnAssociation) := none + /-- The address range, in CIDR notation. -/ + cidr : Option String := none + /-- The description of the address range. -/ + description : Option String := none + /-- The ID of the IPAM pool associated with the CIDR. -/ + ipamPoolId : Option String := none + /-- If you have Local Zones enabled, you can choose a network border group for Local Zones when you provision and advertise a BYOIPv4 CIDR. -/ + networkBorderGroup : Option String := none + /-- The ID of the address pool associated with the CIDR. -/ + poolId : Option String := none + /-- The state of the address range. -/ + state : Option ByoipCidrState := none + /-- Upon success, contains the ID of the address pool. -/ + statusMessage : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ByoipCidr where + schema := .struct "ByoipCidr" [({ name := "AdvertisementType", xmlName := some "advertisementType", queryName := some "AdvertisementType" }, .string), + ({ name := "AsnAssociations", xmlName := some "asnAssociationSet", queryName := some "AsnAssociationSet" }, (.list (Shape.schema AsnAssociation) "item")), + ({ name := "Cidr", xmlName := some "cidr", queryName := some "Cidr" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "IpamPoolId", xmlName := some "ipamPoolId", queryName := some "IpamPoolId" }, .string), + ({ name := "NetworkBorderGroup", xmlName := some "networkBorderGroup", queryName := some "NetworkBorderGroup" }, .string), + ({ name := "PoolId", xmlName := some "poolId", queryName := some "PoolId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema ByoipCidrState)), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string)] + toValue x := record [putOpt "AdvertisementType" x.advertisementType, putOpt "AsnAssociations" x.asnAssociations, putOpt "Cidr" x.cidr, putOpt "Description" x.description, putOpt "IpamPoolId" x.ipamPoolId, putOpt "NetworkBorderGroup" x.networkBorderGroup, putOpt "PoolId" x.poolId, putOpt "State" x.state, putOpt "StatusMessage" x.statusMessage] + ofValue v := do + let advertisementType ← v.opt "AdvertisementType" + let asnAssociations ← v.opt "AsnAssociations" + let cidr ← v.opt "Cidr" + let description ← v.opt "Description" + let ipamPoolId ← v.opt "IpamPoolId" + let networkBorderGroup ← v.opt "NetworkBorderGroup" + let poolId ← v.opt "PoolId" + let state ← v.opt "State" + let statusMessage ← v.opt "StatusMessage" + return { advertisementType, asnAssociations, cidr, description, ipamPoolId, networkBorderGroup, poolId, state, statusMessage } + +structure CancelCapacityReservationFleetsResult where + /-- Information about the Capacity Reservation Fleets that could not be cancelled. -/ + failedFleetCancellations : Option (List FailedCapacityReservationFleetCancellationResult) := none + /-- Information about the Capacity Reservation Fleets that were successfully cancelled. -/ + successfulFleetCancellations : Option (List CapacityReservationFleetCancellationState) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelCapacityReservationFleetsResult where + schema := .struct "CancelCapacityReservationFleetsResult" [({ name := "FailedFleetCancellations", xmlName := some "failedFleetCancellationSet", queryName := some "FailedFleetCancellationSet" }, (.list (Shape.schema FailedCapacityReservationFleetCancellationResult) "item")), + ({ name := "SuccessfulFleetCancellations", xmlName := some "successfulFleetCancellationSet", queryName := some "SuccessfulFleetCancellationSet" }, (.list (Shape.schema CapacityReservationFleetCancellationState) "item"))] + toValue x := record [putOpt "FailedFleetCancellations" x.failedFleetCancellations, putOpt "SuccessfulFleetCancellations" x.successfulFleetCancellations] + ofValue v := do + let failedFleetCancellations ← v.opt "FailedFleetCancellations" + let successfulFleetCancellations ← v.opt "SuccessfulFleetCancellations" + return { failedFleetCancellations, successfulFleetCancellations } + +/-- Describes a Spot Fleet request that was not successfully canceled. -/ +structure CancelSpotFleetRequestsErrorItem where + /-- The error. -/ + error : Option CancelSpotFleetRequestsError := none + /-- The ID of the Spot Fleet request. -/ + spotFleetRequestId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelSpotFleetRequestsErrorItem where + schema := .struct "CancelSpotFleetRequestsErrorItem" [({ name := "Error", xmlName := some "error", queryName := some "Error" }, (Shape.schema CancelSpotFleetRequestsError)), + ({ name := "SpotFleetRequestId", xmlName := some "spotFleetRequestId", queryName := some "SpotFleetRequestId" }, .string)] + toValue x := record [putOpt "Error" x.error, putOpt "SpotFleetRequestId" x.spotFleetRequestId] + ofValue v := do + let error ← v.opt "Error" + let spotFleetRequestId ← v.opt "SpotFleetRequestId" + return { error, spotFleetRequestId } + +/-- Contains the output of CancelSpotInstanceRequests. -/ +structure CancelSpotInstanceRequestsResult where + /-- The Spot Instance requests. -/ + cancelledSpotInstanceRequests : Option (List CancelledSpotInstanceRequest) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelSpotInstanceRequestsResult where + schema := .struct "CancelSpotInstanceRequestsResult" [({ name := "CancelledSpotInstanceRequests", xmlName := some "spotInstanceRequestSet", queryName := some "SpotInstanceRequestSet" }, (.list (Shape.schema CancelledSpotInstanceRequest) "item"))] + toValue x := record [putOpt "CancelledSpotInstanceRequests" x.cancelledSpotInstanceRequests] + ofValue v := do + let cancelledSpotInstanceRequests ← v.opt "CancelledSpotInstanceRequests" + return { cancelledSpotInstanceRequests } + +/-- Represents a filter condition for Capacity Manager queries. -/ +structure CapacityManagerCondition where + /-- The dimension-based condition that specifies how to filter the data based on dimension values. -/ + dimensionCondition : Option DimensionCondition := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityManagerCondition where + schema := .struct "CapacityManagerCondition" [({ name := "DimensionCondition" }, (Shape.schema DimensionCondition))] + toValue x := record [putOpt "DimensionCondition" x.dimensionCondition] + ofValue v := do + let dimensionCondition ← v.opt "DimensionCondition" + return { dimensionCondition } + +/-- Describes a Capacity Reservation. -/ +structure CapacityReservation where + /-- The configuration that the Capacity Reservation will have after the requested adjustment is applied. -/ + adjustmentDetails : Option CapacityReservationAdjustmentDetails := none + /-- The status of the most recent modification to the Capacity Reservation. -/ + adjustmentStatus : Option CapacityReservationAdjustmentStatus := none + /-- The Availability Zone in which the capacity is reserved. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone in which the capacity is reserved. -/ + availabilityZoneId : Option String := none + /-- The remaining capacity. -/ + availableInstanceCount : Option Int := none + /-- Information about instance capacity usage. -/ + capacityAllocations : Option (List CapacityAllocation) := none + /-- The ID of the Capacity Block. -/ + capacityBlockId : Option String := none + /-- The Amazon Resource Name (ARN) of the Capacity Reservation. -/ + capacityReservationArn : Option String := none + /-- The ID of the Capacity Reservation Fleet to which the Capacity Reservation belongs. -/ + capacityReservationFleetId : Option String := none + /-- The ID of the Capacity Reservation. -/ + capacityReservationId : Option String := none + /-- Information about your commitment for a future-dated Capacity Reservation. -/ + commitmentInfo : Option CapacityReservationCommitmentInfo := none + /-- The date and time the Capacity Reservation was created. -/ + createDate : Option Timestamp := none + /-- The delivery method for a future-dated Capacity Reservation. -/ + deliveryPreference : Option CapacityReservationDeliveryPreference := none + /-- Indicates whether the Capacity Reservation supports EBS-optimized instances. -/ + ebsOptimized : Option Bool := none + /-- The date and time the Capacity Reservation expires. -/ + endDate : Option Timestamp := none + /-- Indicates the way in which the Capacity Reservation ends. -/ + endDateType : Option EndDateType := none + /-- Deprecated. -/ + ephemeralStorage : Option Bool := none + /-- Indicates the type of instance launches that the Capacity Reservation accepts. -/ + instanceMatchCriteria : Option InstanceMatchCriteria := none + /-- The type of operating system for which the Capacity Reservation reserves capacity. -/ + instancePlatform : Option CapacityReservationInstancePlatform := none + /-- The type of instance for which the Capacity Reservation reserves capacity. -/ + instanceType : Option String := none + /-- Indicates whether this Capacity Reservation is interruptible, meaning instances may be terminated when the owner reclaims capacity. -/ + interruptible : Option Bool := none + /-- Contains allocation details for interruptible reservations, including current allocated instances and target instance counts within the interruptibleCapacityAllocation object. -/ + interruptibleCapacityAllocation : Option InterruptibleCapacityAllocation := none + /-- Information about the interruption configuration and association with the source reservation for interruptible Capacity Reservations. -/ + interruptionInfo : Option InterruptionInfo := none + /-- Only supported for UltraServers. -/ + launchStatus : Option CapacityReservationLaunchStatus := none + /-- The start date that you originally requested for the Capacity Reservation, in the ISO8601 format in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ ). -/ + originalStartDate : Option Timestamp := none + /-- The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created. -/ + outpostArn : Option String := none + /-- The ID of the Amazon Web Services account that owns the Capacity Reservation. -/ + ownerId : Option String := none + /-- The Amazon Resource Name (ARN) of the cluster placement group in which the Capacity Reservation was created. -/ + placementGroupArn : Option String := none + /-- The type of Capacity Reservation. -/ + reservationType : Option CapacityReservationType := none + /-- The date and time the Capacity Reservation was started. -/ + startDate : Option Timestamp := none + /-- The current state of the Capacity Reservation. -/ + state : Option CapacityReservationState := none + /-- Any tags assigned to the Capacity Reservation. -/ + tags : Option (List Tag) := none + /-- Indicates the tenancy of the Capacity Reservation. -/ + tenancy : Option CapacityReservationTenancy := none + /-- The total number of instances for which the Capacity Reservation reserves capacity. -/ + totalInstanceCount : Option Int := none + /-- The ID of the Amazon Web Services account to which billing of the unused capacity of the Capacity Reservation is assigned. -/ + unusedReservationBillingOwnerId : Option String := none + /-- The zero-size preference configured for the interruptible Capacity Reservation. -/ + zeroSizePreference : Option ZeroSizePreference := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityReservation where + schema := .struct "CapacityReservation" [({ name := "AdjustmentDetails", xmlName := some "adjustmentDetails", queryName := some "AdjustmentDetails" }, (Shape.schema CapacityReservationAdjustmentDetails)), + ({ name := "AdjustmentStatus", xmlName := some "adjustmentStatus", queryName := some "AdjustmentStatus" }, (Shape.schema CapacityReservationAdjustmentStatus)), + ({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "AvailableInstanceCount", xmlName := some "availableInstanceCount", queryName := some "AvailableInstanceCount" }, .int), + ({ name := "CapacityAllocations", xmlName := some "capacityAllocationSet", queryName := some "CapacityAllocationSet" }, (.list (Shape.schema CapacityAllocation) "item")), + ({ name := "CapacityBlockId", xmlName := some "capacityBlockId", queryName := some "CapacityBlockId" }, .string), + ({ name := "CapacityReservationArn", xmlName := some "capacityReservationArn", queryName := some "CapacityReservationArn" }, .string), + ({ name := "CapacityReservationFleetId", xmlName := some "capacityReservationFleetId", queryName := some "CapacityReservationFleetId" }, .string), + ({ name := "CapacityReservationId", xmlName := some "capacityReservationId", queryName := some "CapacityReservationId" }, .string), + ({ name := "CommitmentInfo", xmlName := some "commitmentInfo", queryName := some "CommitmentInfo" }, (Shape.schema CapacityReservationCommitmentInfo)), + ({ name := "CreateDate", xmlName := some "createDate", queryName := some "CreateDate" }, (.time none)), + ({ name := "DeliveryPreference", xmlName := some "deliveryPreference", queryName := some "DeliveryPreference" }, (Shape.schema CapacityReservationDeliveryPreference)), + ({ name := "EbsOptimized", xmlName := some "ebsOptimized", queryName := some "EbsOptimized" }, .bool), + ({ name := "EndDate", xmlName := some "endDate", queryName := some "EndDate" }, (.time none)), + ({ name := "EndDateType", xmlName := some "endDateType", queryName := some "EndDateType" }, (Shape.schema EndDateType)), + ({ name := "EphemeralStorage", xmlName := some "ephemeralStorage", queryName := some "EphemeralStorage" }, .bool), + ({ name := "InstanceMatchCriteria", xmlName := some "instanceMatchCriteria", queryName := some "InstanceMatchCriteria" }, (Shape.schema InstanceMatchCriteria)), + ({ name := "InstancePlatform", xmlName := some "instancePlatform", queryName := some "InstancePlatform" }, (Shape.schema CapacityReservationInstancePlatform)), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, .string), + ({ name := "Interruptible", xmlName := some "interruptible", queryName := some "Interruptible" }, .bool), + ({ name := "InterruptibleCapacityAllocation", xmlName := some "interruptibleCapacityAllocation", queryName := some "InterruptibleCapacityAllocation" }, (Shape.schema InterruptibleCapacityAllocation)), + ({ name := "InterruptionInfo", xmlName := some "interruptionInfo", queryName := some "InterruptionInfo" }, (Shape.schema InterruptionInfo)), + ({ name := "LaunchStatus", xmlName := some "launchStatus", queryName := some "LaunchStatus" }, (Shape.schema CapacityReservationLaunchStatus)), + ({ name := "OriginalStartDate", xmlName := some "originalStartDate", queryName := some "OriginalStartDate" }, (.time none)), + ({ name := "OutpostArn", xmlName := some "outpostArn", queryName := some "OutpostArn" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "PlacementGroupArn", xmlName := some "placementGroupArn", queryName := some "PlacementGroupArn" }, .string), + ({ name := "ReservationType", xmlName := some "reservationType", queryName := some "ReservationType" }, (Shape.schema CapacityReservationType)), + ({ name := "StartDate", xmlName := some "startDate", queryName := some "StartDate" }, (.time none)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema CapacityReservationState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "Tenancy", xmlName := some "tenancy", queryName := some "Tenancy" }, (Shape.schema CapacityReservationTenancy)), + ({ name := "TotalInstanceCount", xmlName := some "totalInstanceCount", queryName := some "TotalInstanceCount" }, .int), + ({ name := "UnusedReservationBillingOwnerId", xmlName := some "unusedReservationBillingOwnerId", queryName := some "UnusedReservationBillingOwnerId" }, .string), + ({ name := "ZeroSizePreference", xmlName := some "zeroSizePreference", queryName := some "ZeroSizePreference" }, (Shape.schema ZeroSizePreference))] + toValue x := record [putOpt "AdjustmentDetails" x.adjustmentDetails, putOpt "AdjustmentStatus" x.adjustmentStatus, putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "AvailableInstanceCount" x.availableInstanceCount, putOpt "CapacityAllocations" x.capacityAllocations, putOpt "CapacityBlockId" x.capacityBlockId, putOpt "CapacityReservationArn" x.capacityReservationArn, putOpt "CapacityReservationFleetId" x.capacityReservationFleetId, putOpt "CapacityReservationId" x.capacityReservationId, putOpt "CommitmentInfo" x.commitmentInfo, putOpt "CreateDate" x.createDate, putOpt "DeliveryPreference" x.deliveryPreference, putOpt "EbsOptimized" x.ebsOptimized, putOpt "EndDate" x.endDate, putOpt "EndDateType" x.endDateType, putOpt "EphemeralStorage" x.ephemeralStorage, putOpt "InstanceMatchCriteria" x.instanceMatchCriteria, putOpt "InstancePlatform" x.instancePlatform, putOpt "InstanceType" x.instanceType, putOpt "Interruptible" x.interruptible, putOpt "InterruptibleCapacityAllocation" x.interruptibleCapacityAllocation, putOpt "InterruptionInfo" x.interruptionInfo, putOpt "LaunchStatus" x.launchStatus, putOpt "OriginalStartDate" x.originalStartDate, putOpt "OutpostArn" x.outpostArn, putOpt "OwnerId" x.ownerId, putOpt "PlacementGroupArn" x.placementGroupArn, putOpt "ReservationType" x.reservationType, putOpt "StartDate" x.startDate, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "Tenancy" x.tenancy, putOpt "TotalInstanceCount" x.totalInstanceCount, putOpt "UnusedReservationBillingOwnerId" x.unusedReservationBillingOwnerId, putOpt "ZeroSizePreference" x.zeroSizePreference] + ofValue v := do + let adjustmentDetails ← v.opt "AdjustmentDetails" + let adjustmentStatus ← v.opt "AdjustmentStatus" + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let availableInstanceCount ← v.opt "AvailableInstanceCount" + let capacityAllocations ← v.opt "CapacityAllocations" + let capacityBlockId ← v.opt "CapacityBlockId" + let capacityReservationArn ← v.opt "CapacityReservationArn" + let capacityReservationFleetId ← v.opt "CapacityReservationFleetId" + let capacityReservationId ← v.opt "CapacityReservationId" + let commitmentInfo ← v.opt "CommitmentInfo" + let createDate ← v.opt "CreateDate" + let deliveryPreference ← v.opt "DeliveryPreference" + let ebsOptimized ← v.opt "EbsOptimized" + let endDate ← v.opt "EndDate" + let endDateType ← v.opt "EndDateType" + let ephemeralStorage ← v.opt "EphemeralStorage" + let instanceMatchCriteria ← v.opt "InstanceMatchCriteria" + let instancePlatform ← v.opt "InstancePlatform" + let instanceType ← v.opt "InstanceType" + let interruptible ← v.opt "Interruptible" + let interruptibleCapacityAllocation ← v.opt "InterruptibleCapacityAllocation" + let interruptionInfo ← v.opt "InterruptionInfo" + let launchStatus ← v.opt "LaunchStatus" + let originalStartDate ← v.opt "OriginalStartDate" + let outpostArn ← v.opt "OutpostArn" + let ownerId ← v.opt "OwnerId" + let placementGroupArn ← v.opt "PlacementGroupArn" + let reservationType ← v.opt "ReservationType" + let startDate ← v.opt "StartDate" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let tenancy ← v.opt "Tenancy" + let totalInstanceCount ← v.opt "TotalInstanceCount" + let unusedReservationBillingOwnerId ← v.opt "UnusedReservationBillingOwnerId" + let zeroSizePreference ← v.opt "ZeroSizePreference" + return { adjustmentDetails, adjustmentStatus, availabilityZone, availabilityZoneId, availableInstanceCount, capacityAllocations, capacityBlockId, capacityReservationArn, capacityReservationFleetId, capacityReservationId, commitmentInfo, createDate, deliveryPreference, ebsOptimized, endDate, endDateType, ephemeralStorage, instanceMatchCriteria, instancePlatform, instanceType, interruptible, interruptibleCapacityAllocation, interruptionInfo, launchStatus, originalStartDate, outpostArn, ownerId, placementGroupArn, reservationType, startDate, state, tags, tenancy, totalInstanceCount, unusedReservationBillingOwnerId, zeroSizePreference } + +/-- Information about a request to assign billing of the unused capacity of a Capacity Reservation. -/ +structure CapacityReservationBillingRequest where + /-- The ID of the Capacity Reservation. -/ + capacityReservationId : Option String := none + /-- Information about the Capacity Reservation. -/ + capacityReservationInfo : Option CapacityReservationInfo := none + /-- The date and time, in UTC time format, at which the request was initiated. -/ + lastUpdateTime : Option Timestamp := none + /-- The ID of the Amazon Web Services account that initiated the request. -/ + requestedBy : Option String := none + /-- The status of the request. -/ + status : Option CapacityReservationBillingRequestStatus := none + /-- Information about the status. -/ + statusMessage : Option String := none + /-- The ID of the Amazon Web Services account to which the request was sent. -/ + unusedReservationBillingOwnerId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityReservationBillingRequest where + schema := .struct "CapacityReservationBillingRequest" [({ name := "CapacityReservationId", xmlName := some "capacityReservationId", queryName := some "CapacityReservationId" }, .string), + ({ name := "CapacityReservationInfo", xmlName := some "capacityReservationInfo", queryName := some "CapacityReservationInfo" }, (Shape.schema CapacityReservationInfo)), + ({ name := "LastUpdateTime", xmlName := some "lastUpdateTime", queryName := some "LastUpdateTime" }, (.time none)), + ({ name := "RequestedBy", xmlName := some "requestedBy", queryName := some "RequestedBy" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema CapacityReservationBillingRequestStatus)), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string), + ({ name := "UnusedReservationBillingOwnerId", xmlName := some "unusedReservationBillingOwnerId", queryName := some "UnusedReservationBillingOwnerId" }, .string)] + toValue x := record [putOpt "CapacityReservationId" x.capacityReservationId, putOpt "CapacityReservationInfo" x.capacityReservationInfo, putOpt "LastUpdateTime" x.lastUpdateTime, putOpt "RequestedBy" x.requestedBy, putOpt "Status" x.status, putOpt "StatusMessage" x.statusMessage, putOpt "UnusedReservationBillingOwnerId" x.unusedReservationBillingOwnerId] + ofValue v := do + let capacityReservationId ← v.opt "CapacityReservationId" + let capacityReservationInfo ← v.opt "CapacityReservationInfo" + let lastUpdateTime ← v.opt "LastUpdateTime" + let requestedBy ← v.opt "RequestedBy" + let status ← v.opt "Status" + let statusMessage ← v.opt "StatusMessage" + let unusedReservationBillingOwnerId ← v.opt "UnusedReservationBillingOwnerId" + return { capacityReservationId, capacityReservationInfo, lastUpdateTime, requestedBy, status, statusMessage, unusedReservationBillingOwnerId } + +/-- Describes a Capacity Reservation cancellation quote, which provides the cancellation terms for cancelling a future-dated Capacity Reservation during its commitment duration. -/ +structure CapacityReservationCancellationQuote where + /-- The cancellation terms associated with the quote, including the fee type and charge details. -/ + cancellationTerms : Option (List CancellationTerms) := none + /-- The ID of the cancellation quote. -/ + capacityReservationCancellationQuoteId : Option String := none + /-- The ID of the Capacity Reservation associated with the cancellation quote. -/ + capacityReservationId : Option String := none + /-- The date and time at which the cancellation quote was created. -/ + createTime : Option Timestamp := none + /-- The current configuration of the Capacity Reservation. -/ + currentConfiguration : Option CapacityReservationConfiguration := none + /-- The date and time at which the cancellation quote expires. -/ + expirationTime : Option Timestamp := none + /-- The state of the cancellation quote. -/ + quoteState : Option CapacityReservationCancellationQuoteState := none + /-- The tags assigned to the cancellation quote. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityReservationCancellationQuote where + schema := .struct "CapacityReservationCancellationQuote" [({ name := "CancellationTerms", xmlName := some "cancellationTermSet", queryName := some "CancellationTermSet" }, (.list (Shape.schema CancellationTerms) "item")), + ({ name := "CapacityReservationCancellationQuoteId", xmlName := some "capacityReservationCancellationQuoteId", queryName := some "CapacityReservationCancellationQuoteId" }, .string), + ({ name := "CapacityReservationId", xmlName := some "capacityReservationId", queryName := some "CapacityReservationId" }, .string), + ({ name := "CreateTime", xmlName := some "createTime", queryName := some "CreateTime" }, (.time none)), + ({ name := "CurrentConfiguration", xmlName := some "currentConfiguration", queryName := some "CurrentConfiguration" }, (Shape.schema CapacityReservationConfiguration)), + ({ name := "ExpirationTime", xmlName := some "expirationTime", queryName := some "ExpirationTime" }, (.time none)), + ({ name := "QuoteState", xmlName := some "quoteState", queryName := some "QuoteState" }, (Shape.schema CapacityReservationCancellationQuoteState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "CancellationTerms" x.cancellationTerms, putOpt "CapacityReservationCancellationQuoteId" x.capacityReservationCancellationQuoteId, putOpt "CapacityReservationId" x.capacityReservationId, putOpt "CreateTime" x.createTime, putOpt "CurrentConfiguration" x.currentConfiguration, putOpt "ExpirationTime" x.expirationTime, putOpt "QuoteState" x.quoteState, putOpt "Tags" x.tags] + ofValue v := do + let cancellationTerms ← v.opt "CancellationTerms" + let capacityReservationCancellationQuoteId ← v.opt "CapacityReservationCancellationQuoteId" + let capacityReservationId ← v.opt "CapacityReservationId" + let createTime ← v.opt "CreateTime" + let currentConfiguration ← v.opt "CurrentConfiguration" + let expirationTime ← v.opt "ExpirationTime" + let quoteState ← v.opt "QuoteState" + let tags ← v.opt "Tags" + return { cancellationTerms, capacityReservationCancellationQuoteId, capacityReservationId, createTime, currentConfiguration, expirationTime, quoteState, tags } + +/-- Describes a Capacity Reservation modification quote, which provides the terms for changing the start date or the commitment of a future-dated Capacity Reservation. -/ +structure CapacityReservationModificationQuote where + /-- The ID of the Capacity Reservation associated with the modification quote. -/ + capacityReservationId : Option String := none + /-- The ID of the modification quote. -/ + capacityReservationModificationQuoteId : Option String := none + /-- The date and time at which the modification quote was created. -/ + createTime : Option Timestamp := none + /-- The configuration that the Capacity Reservation has at the time the quote was generated. -/ + currentConfiguration : Option ModificationQuoteCurrentConfiguration := none + /-- The date and time at which the modification quote expires. -/ + expirationTime : Option Timestamp := none + /-- The terms of the modification, including the configuration that the Capacity Reservation will have if you accept them by using ModifyCapacityReservation . -/ + modificationTerms : Option ModificationTerms := none + /-- The state of the modification quote itself. -/ + quoteState : Option CapacityReservationModificationQuoteState := none + /-- The tags assigned to the modification quote. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityReservationModificationQuote where + schema := .struct "CapacityReservationModificationQuote" [({ name := "CapacityReservationId", xmlName := some "capacityReservationId", queryName := some "CapacityReservationId" }, .string), + ({ name := "CapacityReservationModificationQuoteId", xmlName := some "capacityReservationModificationQuoteId", queryName := some "CapacityReservationModificationQuoteId" }, .string), + ({ name := "CreateTime", xmlName := some "createTime", queryName := some "CreateTime" }, (.time none)), + ({ name := "CurrentConfiguration", xmlName := some "currentConfiguration", queryName := some "CurrentConfiguration" }, (Shape.schema ModificationQuoteCurrentConfiguration)), + ({ name := "ExpirationTime", xmlName := some "expirationTime", queryName := some "ExpirationTime" }, (.time none)), + ({ name := "ModificationTerms", xmlName := some "modificationTerms", queryName := some "ModificationTerms" }, (Shape.schema ModificationTerms)), + ({ name := "QuoteState", xmlName := some "quoteState", queryName := some "QuoteState" }, (Shape.schema CapacityReservationModificationQuoteState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "CapacityReservationId" x.capacityReservationId, putOpt "CapacityReservationModificationQuoteId" x.capacityReservationModificationQuoteId, putOpt "CreateTime" x.createTime, putOpt "CurrentConfiguration" x.currentConfiguration, putOpt "ExpirationTime" x.expirationTime, putOpt "ModificationTerms" x.modificationTerms, putOpt "QuoteState" x.quoteState, putOpt "Tags" x.tags] + ofValue v := do + let capacityReservationId ← v.opt "CapacityReservationId" + let capacityReservationModificationQuoteId ← v.opt "CapacityReservationModificationQuoteId" + let createTime ← v.opt "CreateTime" + let currentConfiguration ← v.opt "CurrentConfiguration" + let expirationTime ← v.opt "ExpirationTime" + let modificationTerms ← v.opt "ModificationTerms" + let quoteState ← v.opt "QuoteState" + let tags ← v.opt "Tags" + return { capacityReservationId, capacityReservationModificationQuoteId, createTime, currentConfiguration, expirationTime, modificationTerms, quoteState, tags } + +/-- The options for managing connection authorization for new client connections. -/ +structure ClientConnectResponseOptions where + /-- Indicates whether client connect options are enabled. -/ + enabled : Option Bool := none + /-- The Amazon Resource Name (ARN) of the Lambda function used for connection authorization. -/ + lambdaFunctionArn : Option String := none + /-- The status of any updates to the client connect options. -/ + status : Option ClientVpnEndpointAttributeStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClientConnectResponseOptions where + schema := .struct "ClientConnectResponseOptions" [({ name := "Enabled", xmlName := some "enabled", queryName := some "Enabled" }, .bool), + ({ name := "LambdaFunctionArn", xmlName := some "lambdaFunctionArn", queryName := some "LambdaFunctionArn" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema ClientVpnEndpointAttributeStatus))] + toValue x := record [putOpt "Enabled" x.enabled, putOpt "LambdaFunctionArn" x.lambdaFunctionArn, putOpt "Status" x.status] + ofValue v := do + let enabled ← v.opt "Enabled" + let lambdaFunctionArn ← v.opt "LambdaFunctionArn" + let status ← v.opt "Status" + return { enabled, lambdaFunctionArn, status } + +/-- Describes a client connection. -/ +structure ClientVpnConnection where + /-- The date and time the authorization policy was last evaluated for the client connection, if applicable. -/ + authorizationPolicyLastEvaluatedTime : Option String := none + /-- The IP address of the client. -/ + clientIp : Option String := none + /-- The IPv6 address assigned to the client connection when using a dual-stack Client VPN endpoint. -/ + clientIpv6Address : Option String := none + /-- The ID of the Client VPN endpoint to which the client is connected. -/ + clientVpnEndpointId : Option String := none + /-- The common name associated with the client. -/ + commonName : Option String := none + /-- The date and time the client connection was terminated. -/ + connectionEndTime : Option String := none + /-- The date and time the client connection was established. -/ + connectionEstablishedTime : Option String := none + /-- The ID of the client connection. -/ + connectionId : Option String := none + /-- The number of bytes received by the client. -/ + egressBytes : Option String := none + /-- The number of packets received by the client. -/ + egressPackets : Option String := none + /-- The number of bytes sent by the client. -/ + ingressBytes : Option String := none + /-- The number of packets sent by the client. -/ + ingressPackets : Option String := none + /-- The statuses returned by the client connect handler for posture compliance, if applicable. -/ + postureComplianceStatuses : Option (List String) := none + /-- The current state of the client connection. -/ + status : Option ClientVpnConnectionStatus := none + /-- The current date and time. -/ + timestamp : Option String := none + /-- The username of the client who established the client connection. -/ + username : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClientVpnConnection where + schema := .struct "ClientVpnConnection" [({ name := "AuthorizationPolicyLastEvaluatedTime", xmlName := some "authorizationPolicyLastEvaluatedTime", queryName := some "AuthorizationPolicyLastEvaluatedTime" }, .string), + ({ name := "ClientIp", xmlName := some "clientIp", queryName := some "ClientIp" }, .string), + ({ name := "ClientIpv6Address", xmlName := some "clientIpv6Address", queryName := some "ClientIpv6Address" }, .string), + ({ name := "ClientVpnEndpointId", xmlName := some "clientVpnEndpointId", queryName := some "ClientVpnEndpointId" }, .string), + ({ name := "CommonName", xmlName := some "commonName", queryName := some "CommonName" }, .string), + ({ name := "ConnectionEndTime", xmlName := some "connectionEndTime", queryName := some "ConnectionEndTime" }, .string), + ({ name := "ConnectionEstablishedTime", xmlName := some "connectionEstablishedTime", queryName := some "ConnectionEstablishedTime" }, .string), + ({ name := "ConnectionId", xmlName := some "connectionId", queryName := some "ConnectionId" }, .string), + ({ name := "EgressBytes", xmlName := some "egressBytes", queryName := some "EgressBytes" }, .string), + ({ name := "EgressPackets", xmlName := some "egressPackets", queryName := some "EgressPackets" }, .string), + ({ name := "IngressBytes", xmlName := some "ingressBytes", queryName := some "IngressBytes" }, .string), + ({ name := "IngressPackets", xmlName := some "ingressPackets", queryName := some "IngressPackets" }, .string), + ({ name := "PostureComplianceStatuses", xmlName := some "postureComplianceStatusSet", queryName := some "PostureComplianceStatusSet" }, (.list .string "item")), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema ClientVpnConnectionStatus)), + ({ name := "Timestamp", xmlName := some "timestamp", queryName := some "Timestamp" }, .string), + ({ name := "Username", xmlName := some "username", queryName := some "Username" }, .string)] + toValue x := record [putOpt "AuthorizationPolicyLastEvaluatedTime" x.authorizationPolicyLastEvaluatedTime, putOpt "ClientIp" x.clientIp, putOpt "ClientIpv6Address" x.clientIpv6Address, putOpt "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "CommonName" x.commonName, putOpt "ConnectionEndTime" x.connectionEndTime, putOpt "ConnectionEstablishedTime" x.connectionEstablishedTime, putOpt "ConnectionId" x.connectionId, putOpt "EgressBytes" x.egressBytes, putOpt "EgressPackets" x.egressPackets, putOpt "IngressBytes" x.ingressBytes, putOpt "IngressPackets" x.ingressPackets, putOpt "PostureComplianceStatuses" x.postureComplianceStatuses, putOpt "Status" x.status, putOpt "Timestamp" x.timestamp, putOpt "Username" x.username] + ofValue v := do + let authorizationPolicyLastEvaluatedTime ← v.opt "AuthorizationPolicyLastEvaluatedTime" + let clientIp ← v.opt "ClientIp" + let clientIpv6Address ← v.opt "ClientIpv6Address" + let clientVpnEndpointId ← v.opt "ClientVpnEndpointId" + let commonName ← v.opt "CommonName" + let connectionEndTime ← v.opt "ConnectionEndTime" + let connectionEstablishedTime ← v.opt "ConnectionEstablishedTime" + let connectionId ← v.opt "ConnectionId" + let egressBytes ← v.opt "EgressBytes" + let egressPackets ← v.opt "EgressPackets" + let ingressBytes ← v.opt "IngressBytes" + let ingressPackets ← v.opt "IngressPackets" + let postureComplianceStatuses ← v.opt "PostureComplianceStatuses" + let status ← v.opt "Status" + let timestamp ← v.opt "Timestamp" + let username ← v.opt "Username" + return { authorizationPolicyLastEvaluatedTime, clientIp, clientIpv6Address, clientVpnEndpointId, commonName, connectionEndTime, connectionEstablishedTime, connectionId, egressBytes, egressPackets, ingressBytes, ingressPackets, postureComplianceStatuses, status, timestamp, username } + +/-- Information about a Client VPN endpoint route. -/ +structure ClientVpnRoute where + /-- The ID of the Client VPN endpoint with which the route is associated. -/ + clientVpnEndpointId : Option String := none + /-- A brief description of the route. -/ + description : Option String := none + /-- The IPv4 address range, in CIDR notation, of the route destination. -/ + destinationCidr : Option String := none + /-- Indicates how the route was associated with the Client VPN endpoint. -/ + origin : Option String := none + /-- The current state of the route. -/ + status : Option ClientVpnRouteStatus := none + /-- The ID of the subnet through which traffic is routed. -/ + targetSubnet : Option String := none + /-- The ID of the Transit Gateway attachment, if the route targets a Transit Gateway. -/ + transitGatewayAttachmentId : Option String := none + /-- The route type. -/ + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClientVpnRoute where + schema := .struct "ClientVpnRoute" [({ name := "ClientVpnEndpointId", xmlName := some "clientVpnEndpointId", queryName := some "ClientVpnEndpointId" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "DestinationCidr", xmlName := some "destinationCidr", queryName := some "DestinationCidr" }, .string), + ({ name := "Origin", xmlName := some "origin", queryName := some "Origin" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema ClientVpnRouteStatus)), + ({ name := "TargetSubnet", xmlName := some "targetSubnet", queryName := some "TargetSubnet" }, .string), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, .string)] + toValue x := record [putOpt "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "Description" x.description, putOpt "DestinationCidr" x.destinationCidr, putOpt "Origin" x.origin, putOpt "Status" x.status, putOpt "TargetSubnet" x.targetSubnet, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, putOpt "Type" x.type] + ofValue v := do + let clientVpnEndpointId ← v.opt "ClientVpnEndpointId" + let description ← v.opt "Description" + let destinationCidr ← v.opt "DestinationCidr" + let origin ← v.opt "Origin" + let status ← v.opt "Status" + let targetSubnet ← v.opt "TargetSubnet" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let type ← v.opt "Type" + return { clientVpnEndpointId, description, destinationCidr, origin, status, targetSubnet, transitGatewayAttachmentId, type } + +/-- Contains the parameters for CopyImage. -/ +structure CopyImageRequest where + /-- Unique, case-sensitive identifier you provide to ensure idempotency of the request. -/ + clientToken : Option String := none + /-- Specifies whether to copy your user-defined AMI tags to the new AMI. -/ + copyImageTags : Option Bool := none + /-- A description for the new AMI. -/ + description : Option String := none + /-- The Local Zone for the new AMI (for example, cn-north-1-pkx-1a ). -/ + destinationAvailabilityZone : Option String := none + /-- The ID of the Local Zone for the new AMI (for example, cnn1-pkx1-az1 ). -/ + destinationAvailabilityZoneId : Option String := none + /-- The Amazon Resource Name (ARN) of the Outpost for the new AMI. -/ + destinationOutpostArn : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Specifies whether to encrypt the snapshots of the copied image. -/ + encrypted : Option Bool := none + /-- The identifier of the symmetric Key Management Service (KMS) KMS key to use when creating encrypted volumes. -/ + kmsKeyId : Option String := none + /-- The name of the new AMI. -/ + name : String + /-- Specify a completion duration, in 15 minute increments, to initiate a time-based AMI copy. -/ + snapshotCopyCompletionDurationMinutes : Option Int := none + /-- The ID of the AMI to copy. -/ + sourceImageId : String + /-- The name of the Region that contains the AMI to copy. -/ + sourceRegion : String + /-- The tags to apply to the new AMI and new snapshots. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CopyImageRequest where + schema := .struct "CopyImageRequest" [({ name := "ClientToken" }, .string), + ({ name := "CopyImageTags" }, .bool), + ({ name := "Description" }, .string), + ({ name := "DestinationAvailabilityZone" }, .string), + ({ name := "DestinationAvailabilityZoneId" }, .string), + ({ name := "DestinationOutpostArn" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Encrypted", xmlName := some "encrypted", queryName := some "Encrypted" }, .bool), + ({ name := "KmsKeyId", xmlName := some "kmsKeyId", queryName := some "KmsKeyId" }, .string), + ({ name := "Name", required := true }, .string), + ({ name := "SnapshotCopyCompletionDurationMinutes" }, .int), + ({ name := "SourceImageId", required := true }, .string), + ({ name := "SourceRegion", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "CopyImageTags" x.copyImageTags, putOpt "Description" x.description, putOpt "DestinationAvailabilityZone" x.destinationAvailabilityZone, putOpt "DestinationAvailabilityZoneId" x.destinationAvailabilityZoneId, putOpt "DestinationOutpostArn" x.destinationOutpostArn, putOpt "DryRun" x.dryRun, putOpt "Encrypted" x.encrypted, putOpt "KmsKeyId" x.kmsKeyId, put "Name" x.name, putOpt "SnapshotCopyCompletionDurationMinutes" x.snapshotCopyCompletionDurationMinutes, put "SourceImageId" x.sourceImageId, put "SourceRegion" x.sourceRegion, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let copyImageTags ← v.opt "CopyImageTags" + let description ← v.opt "Description" + let destinationAvailabilityZone ← v.opt "DestinationAvailabilityZone" + let destinationAvailabilityZoneId ← v.opt "DestinationAvailabilityZoneId" + let destinationOutpostArn ← v.opt "DestinationOutpostArn" + let dryRun ← v.opt "DryRun" + let encrypted ← v.opt "Encrypted" + let kmsKeyId ← v.opt "KmsKeyId" + let name ← v.req "Name" + let snapshotCopyCompletionDurationMinutes ← v.opt "SnapshotCopyCompletionDurationMinutes" + let sourceImageId ← v.req "SourceImageId" + let sourceRegion ← v.req "SourceRegion" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, copyImageTags, description, destinationAvailabilityZone, destinationAvailabilityZoneId, destinationOutpostArn, dryRun, encrypted, kmsKeyId, name, snapshotCopyCompletionDurationMinutes, sourceImageId, sourceRegion, tagSpecifications } + +structure CopySnapshotRequest where + /-- Not supported when copying snapshots to or from Local Zones or Outposts. -/ + completionDurationMinutes : Option Int := none + /-- A description for the EBS snapshot. -/ + description : Option String := none + /-- The Local Zone, for example, cn-north-1-pkx-1a to which to copy the snapshot. -/ + destinationAvailabilityZone : Option String := none + /-- The Amazon Resource Name (ARN) of the Outpost to which to copy the snapshot. -/ + destinationOutpostArn : Option String := none + /-- Deprecated. -/ + destinationRegion : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using this parameter. -/ + encrypted : Option Bool := none + /-- The identifier of the KMS key to use for Amazon EBS encryption. -/ + kmsKeyId : Option String := none + /-- Deprecated. -/ + presignedUrl : Option String := none + /-- The ID of the Region that contains the snapshot to be copied. -/ + sourceRegion : String + /-- The ID of the EBS snapshot to copy. -/ + sourceSnapshotId : String + /-- The tags to apply to the new snapshot. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CopySnapshotRequest where + schema := .struct "CopySnapshotRequest" [({ name := "CompletionDurationMinutes" }, .int), + ({ name := "Description" }, .string), + ({ name := "DestinationAvailabilityZone" }, .string), + ({ name := "DestinationOutpostArn" }, .string), + ({ name := "DestinationRegion", xmlName := some "destinationRegion", queryName := some "DestinationRegion" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Encrypted", xmlName := some "encrypted", queryName := some "Encrypted" }, .bool), + ({ name := "KmsKeyId", xmlName := some "kmsKeyId", queryName := some "KmsKeyId" }, .string), + ({ name := "PresignedUrl", xmlName := some "presignedUrl", queryName := some "PresignedUrl" }, .string), + ({ name := "SourceRegion", required := true }, .string), + ({ name := "SourceSnapshotId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "CompletionDurationMinutes" x.completionDurationMinutes, putOpt "Description" x.description, putOpt "DestinationAvailabilityZone" x.destinationAvailabilityZone, putOpt "DestinationOutpostArn" x.destinationOutpostArn, putOpt "DestinationRegion" x.destinationRegion, putOpt "DryRun" x.dryRun, putOpt "Encrypted" x.encrypted, putOpt "KmsKeyId" x.kmsKeyId, putOpt "PresignedUrl" x.presignedUrl, put "SourceRegion" x.sourceRegion, put "SourceSnapshotId" x.sourceSnapshotId, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let completionDurationMinutes ← v.opt "CompletionDurationMinutes" + let description ← v.opt "Description" + let destinationAvailabilityZone ← v.opt "DestinationAvailabilityZone" + let destinationOutpostArn ← v.opt "DestinationOutpostArn" + let destinationRegion ← v.opt "DestinationRegion" + let dryRun ← v.opt "DryRun" + let encrypted ← v.opt "Encrypted" + let kmsKeyId ← v.opt "KmsKeyId" + let presignedUrl ← v.opt "PresignedUrl" + let sourceRegion ← v.req "SourceRegion" + let sourceSnapshotId ← v.req "SourceSnapshotId" + let tagSpecifications ← v.opt "TagSpecifications" + return { completionDurationMinutes, description, destinationAvailabilityZone, destinationOutpostArn, destinationRegion, dryRun, encrypted, kmsKeyId, presignedUrl, sourceRegion, sourceSnapshotId, tagSpecifications } + +structure CopyVolumesRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Indicates whether to encrypt the volume copy. -/ + encrypted : Option Bool := none + /-- The number of I/O operations per second (IOPS) to provision for the volume copy. -/ + iops : Option Int := none + /-- The identifier of the KMS key to use for encryption of the volume copy. -/ + kmsKeyId : Option String := none + /-- Indicates whether to enable Amazon EBS Multi-Attach for the volume copy. -/ + multiAttachEnabled : Option Bool := none + /-- The size of the volume copy, in GiBs. -/ + size : Option Int := none + /-- The ID of the source EBS volume to copy. -/ + sourceVolumeId : String + /-- The tags to apply to the volume copy during creation. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The throughput to provision for the volume copy, in MiB/s. -/ + throughput : Option Int := none + /-- The volume type for the volume copy. -/ + volumeType : Option VolumeType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CopyVolumesRequest where + schema := .struct "CopyVolumesRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Encrypted" }, .bool), + ({ name := "Iops" }, .int), + ({ name := "KmsKeyId" }, .string), + ({ name := "MultiAttachEnabled" }, .bool), + ({ name := "Size" }, .int), + ({ name := "SourceVolumeId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "Throughput" }, .int), + ({ name := "VolumeType" }, (Shape.schema VolumeType))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "Encrypted" x.encrypted, putOpt "Iops" x.iops, putOpt "KmsKeyId" x.kmsKeyId, putOpt "MultiAttachEnabled" x.multiAttachEnabled, putOpt "Size" x.size, put "SourceVolumeId" x.sourceVolumeId, putOpt "TagSpecifications" x.tagSpecifications, putOpt "Throughput" x.throughput, putOpt "VolumeType" x.volumeType] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let encrypted ← v.opt "Encrypted" + let iops ← v.opt "Iops" + let kmsKeyId ← v.opt "KmsKeyId" + let multiAttachEnabled ← v.opt "MultiAttachEnabled" + let size ← v.opt "Size" + let sourceVolumeId ← v.req "SourceVolumeId" + let tagSpecifications ← v.opt "TagSpecifications" + let throughput ← v.opt "Throughput" + let volumeType ← v.opt "VolumeType" + return { clientToken, dryRun, encrypted, iops, kmsKeyId, multiAttachEnabled, size, sourceVolumeId, tagSpecifications, throughput, volumeType } + +structure CreateApplicationStatusCheckRequest where + /-- The aggregation setting for the application status check. -/ + aggregation : Option AggregationStatusEnum := none + /-- A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. -/ + clientToken : Option String := none + /-- The index of the network device to use for the health check. -/ + deviceIndex : Option Int := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The number of consecutive failed health checks before the application status is considered impaired. -/ + failureThreshold : Option Int := none + /-- The health check paths to use for the application status check. -/ + healthCheckPaths : Option (List HealthCheckPathRequestObject) := none + /-- The number of seconds to wait before starting health checks after an instance is launched. -/ + initializationGracePeriodSeconds : Option Int := none + /-- The interval, in seconds, between health checks. -/ + interval : Option Int := none + /-- The IP scope to use for the health check. -/ + ipScope : Option IpScopeEnum := none + /-- The IP version to use for the health check. -/ + ipVersion : Option IpVersionEnum := none + /-- The URL path to use for the health check HTTP request (for example, /health or /status ). -/ + path : Option String := none + /-- The port to use for the health check. -/ + port : Int + /-- The protocol to use for the health check. -/ + protocol : NetworkProtocolEnum + /-- The HTTP status codes that indicate a successful health check response. -/ + statusCodeMatcher : Option String := none + /-- The number of consecutive successful health checks before the application status is considered healthy. -/ + successThreshold : Option Int := none + /-- The tags to apply to the application status check. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The amount of time, in seconds, to wait for a health check response before considering it failed. -/ + timeout : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateApplicationStatusCheckRequest where + schema := .struct "CreateApplicationStatusCheckRequest" [({ name := "Aggregation" }, (Shape.schema AggregationStatusEnum)), + ({ name := "ClientToken" }, .string), + ({ name := "DeviceIndex" }, .int), + ({ name := "DryRun" }, .bool), + ({ name := "FailureThreshold" }, .int), + ({ name := "HealthCheckPaths", xmlName := some "HealthCheckPath" }, (.list (Shape.schema HealthCheckPathRequestObject) "item")), + ({ name := "InitializationGracePeriodSeconds" }, .int), + ({ name := "Interval" }, .int), + ({ name := "IpScope" }, (Shape.schema IpScopeEnum)), + ({ name := "IpVersion" }, (Shape.schema IpVersionEnum)), + ({ name := "Path" }, .string), + ({ name := "Port", required := true }, .int), + ({ name := "Protocol", required := true }, (Shape.schema NetworkProtocolEnum)), + ({ name := "StatusCodeMatcher" }, .string), + ({ name := "SuccessThreshold" }, .int), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "Timeout" }, .int)] + toValue x := record [putOpt "Aggregation" x.aggregation, putOpt "ClientToken" x.clientToken, putOpt "DeviceIndex" x.deviceIndex, putOpt "DryRun" x.dryRun, putOpt "FailureThreshold" x.failureThreshold, putOpt "HealthCheckPaths" x.healthCheckPaths, putOpt "InitializationGracePeriodSeconds" x.initializationGracePeriodSeconds, putOpt "Interval" x.interval, putOpt "IpScope" x.ipScope, putOpt "IpVersion" x.ipVersion, putOpt "Path" x.path, put "Port" x.port, put "Protocol" x.protocol, putOpt "StatusCodeMatcher" x.statusCodeMatcher, putOpt "SuccessThreshold" x.successThreshold, putOpt "TagSpecifications" x.tagSpecifications, putOpt "Timeout" x.timeout] + ofValue v := do + let aggregation ← v.opt "Aggregation" + let clientToken ← v.opt "ClientToken" + let deviceIndex ← v.opt "DeviceIndex" + let dryRun ← v.opt "DryRun" + let failureThreshold ← v.opt "FailureThreshold" + let healthCheckPaths ← v.opt "HealthCheckPaths" + let initializationGracePeriodSeconds ← v.opt "InitializationGracePeriodSeconds" + let interval ← v.opt "Interval" + let ipScope ← v.opt "IpScope" + let ipVersion ← v.opt "IpVersion" + let path ← v.opt "Path" + let port ← v.req "Port" + let protocol ← v.req "Protocol" + let statusCodeMatcher ← v.opt "StatusCodeMatcher" + let successThreshold ← v.opt "SuccessThreshold" + let tagSpecifications ← v.opt "TagSpecifications" + let timeout ← v.opt "Timeout" + return { aggregation, clientToken, deviceIndex, dryRun, failureThreshold, healthCheckPaths, initializationGracePeriodSeconds, interval, ipScope, ipVersion, path, port, protocol, statusCodeMatcher, successThreshold, tagSpecifications, timeout } + +structure CreateCapacityManagerDataExportRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The file format for the exported data. -/ + outputFormat : OutputFormat + /-- The name of the S3 bucket where the capacity data export files will be delivered. -/ + s3BucketName : String + /-- The S3 key prefix for the exported data files. -/ + s3BucketPrefix : Option String := none + /-- The frequency at which data exports are generated. -/ + schedule : Schedule + /-- The tags to apply to the data export configuration. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCapacityManagerDataExportRequest where + schema := .struct "CreateCapacityManagerDataExportRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "OutputFormat", required := true }, (Shape.schema OutputFormat)), + ({ name := "S3BucketName", required := true }, .string), + ({ name := "S3BucketPrefix" }, .string), + ({ name := "Schedule", required := true }, (Shape.schema Schedule)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "OutputFormat" x.outputFormat, put "S3BucketName" x.s3BucketName, putOpt "S3BucketPrefix" x.s3BucketPrefix, put "Schedule" x.schedule, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let outputFormat ← v.req "OutputFormat" + let s3BucketName ← v.req "S3BucketName" + let s3BucketPrefix ← v.opt "S3BucketPrefix" + let schedule ← v.req "Schedule" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, dryRun, outputFormat, s3BucketName, s3BucketPrefix, schedule, tagSpecifications } + +structure CreateCapacityReservationBySplittingRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The number of instances to split from the source Capacity Reservation. -/ + instanceCount : Int + /-- The ID of the Capacity Reservation from which you want to split the capacity. -/ + sourceCapacityReservationId : String + /-- The tags to apply to the new Capacity Reservation. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCapacityReservationBySplittingRequest where + schema := .struct "CreateCapacityReservationBySplittingRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceCount", required := true }, .int), + ({ name := "SourceCapacityReservationId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "InstanceCount" x.instanceCount, put "SourceCapacityReservationId" x.sourceCapacityReservationId, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let instanceCount ← v.req "InstanceCount" + let sourceCapacityReservationId ← v.req "SourceCapacityReservationId" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, dryRun, instanceCount, sourceCapacityReservationId, tagSpecifications } + +structure CreateCapacityReservationCancellationQuoteRequest where + /-- The ID of the Capacity Reservation. -/ + capacityReservationId : String + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The tags to apply to the cancellation quote. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCapacityReservationCancellationQuoteRequest where + schema := .struct "CreateCapacityReservationCancellationQuoteRequest" [({ name := "CapacityReservationId", required := true }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [put "CapacityReservationId" x.capacityReservationId, putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let capacityReservationId ← v.req "CapacityReservationId" + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let tagSpecifications ← v.opt "TagSpecifications" + return { capacityReservationId, clientToken, dryRun, tagSpecifications } + +structure CreateCapacityReservationDateChangeQuoteRequest where + /-- The ID of the Capacity Reservation. -/ + capacityReservationId : String + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The requested new start date for the Capacity Reservation, in the ISO8601 format in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ ). -/ + newStartDate : Timestamp + /-- The tags to apply to the date change quote. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCapacityReservationDateChangeQuoteRequest where + schema := .struct "CreateCapacityReservationDateChangeQuoteRequest" [({ name := "CapacityReservationId", required := true }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "NewStartDate", required := true }, (.time none)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [put "CapacityReservationId" x.capacityReservationId, putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "NewStartDate" x.newStartDate, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let capacityReservationId ← v.req "CapacityReservationId" + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let newStartDate ← v.req "NewStartDate" + let tagSpecifications ← v.opt "TagSpecifications" + return { capacityReservationId, clientToken, dryRun, newStartDate, tagSpecifications } + +structure CreateCapacityReservationFleetResult where + /-- The allocation strategy used by the Capacity Reservation Fleet. -/ + allocationStrategy : Option String := none + /-- The ID of the Capacity Reservation Fleet. -/ + capacityReservationFleetId : Option String := none + /-- The date and time at which the Capacity Reservation Fleet was created. -/ + createTime : Option Timestamp := none + /-- The date and time at which the Capacity Reservation Fleet expires. -/ + endDate : Option Timestamp := none + /-- Information about the individual Capacity Reservations in the Capacity Reservation Fleet. -/ + fleetCapacityReservations : Option (List FleetCapacityReservation) := none + /-- The instance matching criteria for the Capacity Reservation Fleet. -/ + instanceMatchCriteria : Option FleetInstanceMatchCriteria := none + /-- The status of the Capacity Reservation Fleet. -/ + state : Option CapacityReservationFleetState := none + /-- The tags assigned to the Capacity Reservation Fleet. -/ + tags : Option (List Tag) := none + /-- Indicates the tenancy of Capacity Reservation Fleet. -/ + tenancy : Option FleetCapacityReservationTenancy := none + /-- The requested capacity units that have been successfully reserved. -/ + totalFulfilledCapacity : Option JsonNumber := none + /-- The total number of capacity units for which the Capacity Reservation Fleet reserves capacity. -/ + totalTargetCapacity : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCapacityReservationFleetResult where + schema := .struct "CreateCapacityReservationFleetResult" [({ name := "AllocationStrategy", xmlName := some "allocationStrategy", queryName := some "AllocationStrategy" }, .string), + ({ name := "CapacityReservationFleetId", xmlName := some "capacityReservationFleetId", queryName := some "CapacityReservationFleetId" }, .string), + ({ name := "CreateTime", xmlName := some "createTime", queryName := some "CreateTime" }, (.time none)), + ({ name := "EndDate", xmlName := some "endDate", queryName := some "EndDate" }, (.time none)), + ({ name := "FleetCapacityReservations", xmlName := some "fleetCapacityReservationSet", queryName := some "FleetCapacityReservationSet" }, (.list (Shape.schema FleetCapacityReservation) "item")), + ({ name := "InstanceMatchCriteria", xmlName := some "instanceMatchCriteria", queryName := some "InstanceMatchCriteria" }, (Shape.schema FleetInstanceMatchCriteria)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema CapacityReservationFleetState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "Tenancy", xmlName := some "tenancy", queryName := some "Tenancy" }, (Shape.schema FleetCapacityReservationTenancy)), + ({ name := "TotalFulfilledCapacity", xmlName := some "totalFulfilledCapacity", queryName := some "TotalFulfilledCapacity" }, .number), + ({ name := "TotalTargetCapacity", xmlName := some "totalTargetCapacity", queryName := some "TotalTargetCapacity" }, .int)] + toValue x := record [putOpt "AllocationStrategy" x.allocationStrategy, putOpt "CapacityReservationFleetId" x.capacityReservationFleetId, putOpt "CreateTime" x.createTime, putOpt "EndDate" x.endDate, putOpt "FleetCapacityReservations" x.fleetCapacityReservations, putOpt "InstanceMatchCriteria" x.instanceMatchCriteria, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "Tenancy" x.tenancy, putOpt "TotalFulfilledCapacity" x.totalFulfilledCapacity, putOpt "TotalTargetCapacity" x.totalTargetCapacity] + ofValue v := do + let allocationStrategy ← v.opt "AllocationStrategy" + let capacityReservationFleetId ← v.opt "CapacityReservationFleetId" + let createTime ← v.opt "CreateTime" + let endDate ← v.opt "EndDate" + let fleetCapacityReservations ← v.opt "FleetCapacityReservations" + let instanceMatchCriteria ← v.opt "InstanceMatchCriteria" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let tenancy ← v.opt "Tenancy" + let totalFulfilledCapacity ← v.opt "TotalFulfilledCapacity" + let totalTargetCapacity ← v.opt "TotalTargetCapacity" + return { allocationStrategy, capacityReservationFleetId, createTime, endDate, fleetCapacityReservations, instanceMatchCriteria, state, tags, tenancy, totalFulfilledCapacity, totalTargetCapacity } + +structure CreateCapacityReservationRequest where + /-- The Availability Zone in which to create the Capacity Reservation. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone in which to create the Capacity Reservation. -/ + availabilityZoneId : Option String := none + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Required for future-dated Capacity Reservations only. -/ + commitmentDuration : Option Int := none + /-- Required for future-dated Capacity Reservations only. -/ + deliveryPreference : Option CapacityReservationDeliveryPreference := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Indicates whether the Capacity Reservation supports EBS-optimized instances. -/ + ebsOptimized : Option Bool := none + /-- The date and time at which the Capacity Reservation expires. -/ + endDate : Option Timestamp := none + /-- Indicates the way in which the Capacity Reservation ends. -/ + endDateType : Option EndDateType := none + /-- Deprecated. -/ + ephemeralStorage : Option Bool := none + /-- The number of instances for which to reserve capacity. -/ + instanceCount : Int + /-- Indicates the type of instance launches that the Capacity Reservation accepts. -/ + instanceMatchCriteria : Option InstanceMatchCriteria := none + /-- The type of operating system for which to reserve capacity. -/ + instancePlatform : CapacityReservationInstancePlatform + /-- The instance type for which to reserve capacity. -/ + instanceType : String + /-- Not supported for future-dated Capacity Reservations. -/ + outpostArn : Option String := none + /-- Not supported for future-dated Capacity Reservations. -/ + placementGroupArn : Option String := none + /-- Required for future-dated Capacity Reservations only. -/ + startDate : Option Timestamp := none + /-- The tags to apply to the Capacity Reservation during launch. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- Indicates the tenancy of the Capacity Reservation. -/ + tenancy : Option CapacityReservationTenancy := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCapacityReservationRequest where + schema := .struct "CreateCapacityReservationRequest" [({ name := "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId" }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "CommitmentDuration" }, .int), + ({ name := "DeliveryPreference" }, (Shape.schema CapacityReservationDeliveryPreference)), + ({ name := "DryRun" }, .bool), + ({ name := "EbsOptimized" }, .bool), + ({ name := "EndDate" }, (.time none)), + ({ name := "EndDateType" }, (Shape.schema EndDateType)), + ({ name := "EphemeralStorage" }, .bool), + ({ name := "InstanceCount", required := true }, .int), + ({ name := "InstanceMatchCriteria" }, (Shape.schema InstanceMatchCriteria)), + ({ name := "InstancePlatform", required := true }, (Shape.schema CapacityReservationInstancePlatform)), + ({ name := "InstanceType", required := true }, .string), + ({ name := "OutpostArn" }, .string), + ({ name := "PlacementGroupArn" }, .string), + ({ name := "StartDate" }, (.time none)), + ({ name := "TagSpecifications" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "Tenancy" }, (Shape.schema CapacityReservationTenancy))] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "ClientToken" x.clientToken, putOpt "CommitmentDuration" x.commitmentDuration, putOpt "DeliveryPreference" x.deliveryPreference, putOpt "DryRun" x.dryRun, putOpt "EbsOptimized" x.ebsOptimized, putOpt "EndDate" x.endDate, putOpt "EndDateType" x.endDateType, putOpt "EphemeralStorage" x.ephemeralStorage, put "InstanceCount" x.instanceCount, putOpt "InstanceMatchCriteria" x.instanceMatchCriteria, put "InstancePlatform" x.instancePlatform, put "InstanceType" x.instanceType, putOpt "OutpostArn" x.outpostArn, putOpt "PlacementGroupArn" x.placementGroupArn, putOpt "StartDate" x.startDate, putOpt "TagSpecifications" x.tagSpecifications, putOpt "Tenancy" x.tenancy] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let clientToken ← v.opt "ClientToken" + let commitmentDuration ← v.opt "CommitmentDuration" + let deliveryPreference ← v.opt "DeliveryPreference" + let dryRun ← v.opt "DryRun" + let ebsOptimized ← v.opt "EbsOptimized" + let endDate ← v.opt "EndDate" + let endDateType ← v.opt "EndDateType" + let ephemeralStorage ← v.opt "EphemeralStorage" + let instanceCount ← v.req "InstanceCount" + let instanceMatchCriteria ← v.opt "InstanceMatchCriteria" + let instancePlatform ← v.req "InstancePlatform" + let instanceType ← v.req "InstanceType" + let outpostArn ← v.opt "OutpostArn" + let placementGroupArn ← v.opt "PlacementGroupArn" + let startDate ← v.opt "StartDate" + let tagSpecifications ← v.opt "TagSpecifications" + let tenancy ← v.opt "Tenancy" + return { availabilityZone, availabilityZoneId, clientToken, commitmentDuration, deliveryPreference, dryRun, ebsOptimized, endDate, endDateType, ephemeralStorage, instanceCount, instanceMatchCriteria, instancePlatform, instanceType, outpostArn, placementGroupArn, startDate, tagSpecifications, tenancy } + +structure CreateCarrierGatewayRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The tags to associate with the carrier gateway. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the VPC to associate with the carrier gateway. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCarrierGatewayRequest where + schema := .struct "CreateCarrierGatewayRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "VpcId", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "TagSpecifications" x.tagSpecifications, put "VpcId" x.vpcId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let tagSpecifications ← v.opt "TagSpecifications" + let vpcId ← v.req "VpcId" + return { clientToken, dryRun, tagSpecifications, vpcId } + +structure CreateCarrierGatewayResult where + /-- Information about the carrier gateway. -/ + carrierGateway : Option CarrierGateway := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCarrierGatewayResult where + schema := .struct "CreateCarrierGatewayResult" [({ name := "CarrierGateway", xmlName := some "carrierGateway", queryName := some "CarrierGateway" }, (Shape.schema CarrierGateway))] + toValue x := record [putOpt "CarrierGateway" x.carrierGateway] + ofValue v := do + let carrierGateway ← v.opt "CarrierGateway" + return { carrierGateway } + +structure CreateClientVpnEndpointResult where + /-- The ID of the Client VPN endpoint. -/ + clientVpnEndpointId : Option String := none + /-- The DNS name to be used by clients when establishing their VPN session. -/ + dnsName : Option String := none + /-- The current state of the Client VPN endpoint. -/ + status : Option ClientVpnEndpointStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateClientVpnEndpointResult where + schema := .struct "CreateClientVpnEndpointResult" [({ name := "ClientVpnEndpointId", xmlName := some "clientVpnEndpointId", queryName := some "ClientVpnEndpointId" }, .string), + ({ name := "DnsName", xmlName := some "dnsName", queryName := some "DnsName" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema ClientVpnEndpointStatus))] + toValue x := record [putOpt "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "DnsName" x.dnsName, putOpt "Status" x.status] + ofValue v := do + let clientVpnEndpointId ← v.opt "ClientVpnEndpointId" + let dnsName ← v.opt "DnsName" + let status ← v.opt "Status" + return { clientVpnEndpointId, dnsName, status } + +structure CreateClientVpnRouteResult where + /-- The current state of the route. -/ + status : Option ClientVpnRouteStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateClientVpnRouteResult where + schema := .struct "CreateClientVpnRouteResult" [({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema ClientVpnRouteStatus))] + toValue x := record [putOpt "Status" x.status] + ofValue v := do + let status ← v.opt "Status" + return { status } + +structure CreateCoipPoolRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the local gateway route table. -/ + localGatewayRouteTableId : String + /-- The tags to assign to the CoIP address pool. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCoipPoolRequest where + schema := .struct "CreateCoipPoolRequest" [({ name := "DryRun" }, .bool), + ({ name := "LocalGatewayRouteTableId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "LocalGatewayRouteTableId" x.localGatewayRouteTableId, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let dryRun ← v.opt "DryRun" + let localGatewayRouteTableId ← v.req "LocalGatewayRouteTableId" + let tagSpecifications ← v.opt "TagSpecifications" + return { dryRun, localGatewayRouteTableId, tagSpecifications } + +structure CreateCoipPoolResult where + /-- Information about the CoIP address pool. -/ + coipPool : Option CoipPool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCoipPoolResult where + schema := .struct "CreateCoipPoolResult" [({ name := "CoipPool", xmlName := some "coipPool", queryName := some "CoipPool" }, (Shape.schema CoipPool))] + toValue x := record [putOpt "CoipPool" x.coipPool] + ofValue v := do + let coipPool ← v.opt "CoipPool" + return { coipPool } + +/-- Contains the parameters for CreateCustomerGateway. -/ +structure CreateCustomerGatewayRequest where + /-- For customer gateway devices that support BGP, specify the device's ASN. -/ + bgpAsn : Option Int := none + /-- For customer gateway devices that support BGP, specify the device's ASN. -/ + bgpAsnExtended : Option Int := none + /-- The Amazon Resource Name (ARN) for the customer gateway certificate. -/ + certificateArn : Option String := none + /-- A name for the customer gateway device. -/ + deviceName : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IP address for the customer gateway device's outside interface. -/ + ipAddress : Option String := none + /-- This member has been deprecated. -/ + publicIp : Option String := none + /-- The tags to apply to the customer gateway. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The type of VPN connection that this customer gateway supports ( ipsec.1 ). -/ + type : GatewayType +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCustomerGatewayRequest where + schema := .struct "CreateCustomerGatewayRequest" [({ name := "BgpAsn" }, .int), + ({ name := "BgpAsnExtended" }, .int), + ({ name := "CertificateArn" }, .string), + ({ name := "DeviceName" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "IpAddress" }, .string), + ({ name := "PublicIp" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "Type", required := true }, (Shape.schema GatewayType))] + toValue x := record [putOpt "BgpAsn" x.bgpAsn, putOpt "BgpAsnExtended" x.bgpAsnExtended, putOpt "CertificateArn" x.certificateArn, putOpt "DeviceName" x.deviceName, putOpt "DryRun" x.dryRun, putOpt "IpAddress" x.ipAddress, putOpt "PublicIp" x.publicIp, putOpt "TagSpecifications" x.tagSpecifications, put "Type" x.type] + ofValue v := do + let bgpAsn ← v.opt "BgpAsn" + let bgpAsnExtended ← v.opt "BgpAsnExtended" + let certificateArn ← v.opt "CertificateArn" + let deviceName ← v.opt "DeviceName" + let dryRun ← v.opt "DryRun" + let ipAddress ← v.opt "IpAddress" + let publicIp ← v.opt "PublicIp" + let tagSpecifications ← v.opt "TagSpecifications" + let type ← v.req "Type" + return { bgpAsn, bgpAsnExtended, certificateArn, deviceName, dryRun, ipAddress, publicIp, tagSpecifications, type } + +/-- Contains the output of CreateCustomerGateway. -/ +structure CreateCustomerGatewayResult where + /-- Information about the customer gateway. -/ + customerGateway : Option CustomerGateway := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCustomerGatewayResult where + schema := .struct "CreateCustomerGatewayResult" [({ name := "CustomerGateway", xmlName := some "customerGateway", queryName := some "CustomerGateway" }, (Shape.schema CustomerGateway))] + toValue x := record [putOpt "CustomerGateway" x.customerGateway] + ofValue v := do + let customerGateway ← v.opt "CustomerGateway" + return { customerGateway } + +structure CreateDelegateMacVolumeOwnershipTaskRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Amazon EC2 Mac instance. -/ + instanceId : String + /-- Specifies the following credentials: Internal disk administrative user Username - Only the default administrative user ( aws-managed-user ) is supported and it is used by default. -/ + macCredentials : String + /-- The tags to assign to the volume ownership delegation task. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateDelegateMacVolumeOwnershipTaskRequest where + schema := .struct "CreateDelegateMacVolumeOwnershipTaskRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceId", required := true }, .string), + ({ name := "MacCredentials", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "InstanceId" x.instanceId, put "MacCredentials" x.macCredentials, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let instanceId ← v.req "InstanceId" + let macCredentials ← v.req "MacCredentials" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, dryRun, instanceId, macCredentials, tagSpecifications } + +structure CreateDhcpOptionsRequest where + /-- A DHCP configuration option. -/ + dhcpConfigurations : (List NewDhcpConfiguration) + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The tags to assign to the DHCP option. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateDhcpOptionsRequest where + schema := .struct "CreateDhcpOptionsRequest" [({ name := "DhcpConfigurations", required := true, xmlName := some "dhcpConfiguration", queryName := some "DhcpConfiguration" }, (.list (Shape.schema NewDhcpConfiguration) "item")), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [put "DhcpConfigurations" x.dhcpConfigurations, putOpt "DryRun" x.dryRun, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let dhcpConfigurations ← v.req "DhcpConfigurations" + let dryRun ← v.opt "DryRun" + let tagSpecifications ← v.opt "TagSpecifications" + return { dhcpConfigurations, dryRun, tagSpecifications } + +structure CreateEgressOnlyInternetGatewayRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The tags to assign to the egress-only internet gateway. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the VPC for which to create the egress-only internet gateway. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateEgressOnlyInternetGatewayRequest where + schema := .struct "CreateEgressOnlyInternetGatewayRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "VpcId", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "TagSpecifications" x.tagSpecifications, put "VpcId" x.vpcId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let tagSpecifications ← v.opt "TagSpecifications" + let vpcId ← v.req "VpcId" + return { clientToken, dryRun, tagSpecifications, vpcId } + +structure CreateFlowLogsRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The ARN of the IAM role that allows Amazon EC2 to publish flow logs across accounts. -/ + deliverCrossAccountRole : Option String := none + /-- The ARN of the IAM role that allows Amazon EC2 to publish flow logs to the log destination. -/ + deliverLogsPermissionArn : Option String := none + /-- The destination options. -/ + destinationOptions : Option DestinationOptionsRequest := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The destination for the flow log data. -/ + logDestination : Option String := none + /-- The type of destination for the flow log data. -/ + logDestinationType : Option LogDestinationType := none + /-- The fields to include in the flow log record. -/ + logFormat : Option String := none + /-- The name of a new or existing CloudWatch Logs log group where Amazon EC2 publishes your flow logs. -/ + logGroupName : Option String := none + /-- The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record. -/ + maxAggregationInterval : Option Int := none + /-- The IDs of the resources to monitor. -/ + resourceIds : (List String) + /-- The type of resource to monitor. -/ + resourceType : FlowLogsResourceType + /-- The tag configuration associated with the Flow Logs Amazon EC2 Tags feature fields in your custom log format. -/ + tagFieldSpecifications : Option (List TagFieldSpecificationRequest) := none + /-- The tags to apply to the flow logs. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The type of traffic to monitor (accepted traffic, rejected traffic, or all traffic). -/ + trafficType : Option TrafficType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateFlowLogsRequest where + schema := .struct "CreateFlowLogsRequest" [({ name := "ClientToken" }, .string), + ({ name := "DeliverCrossAccountRole" }, .string), + ({ name := "DeliverLogsPermissionArn" }, .string), + ({ name := "DestinationOptions" }, (Shape.schema DestinationOptionsRequest)), + ({ name := "DryRun" }, .bool), + ({ name := "LogDestination" }, .string), + ({ name := "LogDestinationType" }, (Shape.schema LogDestinationType)), + ({ name := "LogFormat" }, .string), + ({ name := "LogGroupName" }, .string), + ({ name := "MaxAggregationInterval" }, .int), + ({ name := "ResourceIds", required := true, xmlName := some "ResourceId" }, (.list .string "item")), + ({ name := "ResourceType", required := true }, (Shape.schema FlowLogsResourceType)), + ({ name := "TagFieldSpecifications", xmlName := some "TagFieldSpecification" }, (.list (Shape.schema TagFieldSpecificationRequest) "item")), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TrafficType" }, (Shape.schema TrafficType))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DeliverCrossAccountRole" x.deliverCrossAccountRole, putOpt "DeliverLogsPermissionArn" x.deliverLogsPermissionArn, putOpt "DestinationOptions" x.destinationOptions, putOpt "DryRun" x.dryRun, putOpt "LogDestination" x.logDestination, putOpt "LogDestinationType" x.logDestinationType, putOpt "LogFormat" x.logFormat, putOpt "LogGroupName" x.logGroupName, putOpt "MaxAggregationInterval" x.maxAggregationInterval, put "ResourceIds" x.resourceIds, put "ResourceType" x.resourceType, putOpt "TagFieldSpecifications" x.tagFieldSpecifications, putOpt "TagSpecifications" x.tagSpecifications, putOpt "TrafficType" x.trafficType] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let deliverCrossAccountRole ← v.opt "DeliverCrossAccountRole" + let deliverLogsPermissionArn ← v.opt "DeliverLogsPermissionArn" + let destinationOptions ← v.opt "DestinationOptions" + let dryRun ← v.opt "DryRun" + let logDestination ← v.opt "LogDestination" + let logDestinationType ← v.opt "LogDestinationType" + let logFormat ← v.opt "LogFormat" + let logGroupName ← v.opt "LogGroupName" + let maxAggregationInterval ← v.opt "MaxAggregationInterval" + let resourceIds ← v.req "ResourceIds" + let resourceType ← v.req "ResourceType" + let tagFieldSpecifications ← v.opt "TagFieldSpecifications" + let tagSpecifications ← v.opt "TagSpecifications" + let trafficType ← v.opt "TrafficType" + return { clientToken, deliverCrossAccountRole, deliverLogsPermissionArn, destinationOptions, dryRun, logDestination, logDestinationType, logFormat, logGroupName, maxAggregationInterval, resourceIds, resourceType, tagFieldSpecifications, tagSpecifications, trafficType } + +structure CreateFlowLogsResult where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The IDs of the flow logs. -/ + flowLogIds : Option (List String) := none + /-- Information about the flow logs that could not be created successfully. -/ + unsuccessful : Option (List UnsuccessfulItem) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateFlowLogsResult where + schema := .struct "CreateFlowLogsResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "FlowLogIds", xmlName := some "flowLogIdSet", queryName := some "FlowLogIdSet" }, (.list .string "item")), + ({ name := "Unsuccessful", xmlName := some "unsuccessful", queryName := some "Unsuccessful" }, (.list (Shape.schema UnsuccessfulItem) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "FlowLogIds" x.flowLogIds, putOpt "Unsuccessful" x.unsuccessful] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let flowLogIds ← v.opt "FlowLogIds" + let unsuccessful ← v.opt "Unsuccessful" + return { clientToken, flowLogIds, unsuccessful } + +structure CreateFpgaImageRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- A description for the AFI. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The location of the encrypted design checkpoint in Amazon S3. -/ + inputStorageLocation : StorageLocation + /-- The location in Amazon S3 for the output logs. -/ + logsStorageLocation : Option StorageLocation := none + /-- A name for the AFI. -/ + name : Option String := none + /-- The tags to apply to the FPGA image during creation. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateFpgaImageRequest where + schema := .struct "CreateFpgaImageRequest" [({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "InputStorageLocation", required := true }, (Shape.schema StorageLocation)), + ({ name := "LogsStorageLocation" }, (Shape.schema StorageLocation)), + ({ name := "Name" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, put "InputStorageLocation" x.inputStorageLocation, putOpt "LogsStorageLocation" x.logsStorageLocation, putOpt "Name" x.name, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let inputStorageLocation ← v.req "InputStorageLocation" + let logsStorageLocation ← v.opt "LogsStorageLocation" + let name ← v.opt "Name" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, description, dryRun, inputStorageLocation, logsStorageLocation, name, tagSpecifications } + +structure CreateImageUsageReportRequest where + /-- The Amazon Web Services account IDs to include in the report. -/ + accountIds : Option (List String) := none + /-- A unique, case-sensitive identifier that you provide to ensure idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the image to report on. -/ + imageId : String + /-- The resource types to include in the report. -/ + resourceTypes : (List ImageUsageResourceTypeRequest) + /-- The tags to apply to the report on creation. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateImageUsageReportRequest where + schema := .struct "CreateImageUsageReportRequest" [({ name := "AccountIds", xmlName := some "AccountId" }, (.list .string "UserId")), + ({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string), + ({ name := "ResourceTypes", required := true, xmlName := some "ResourceType" }, (.list (Shape.schema ImageUsageResourceTypeRequest) "member")), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "AccountIds" x.accountIds, putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "ImageId" x.imageId, put "ResourceTypes" x.resourceTypes, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let accountIds ← v.opt "AccountIds" + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + let resourceTypes ← v.req "ResourceTypes" + let tagSpecifications ← v.opt "TagSpecifications" + return { accountIds, clientToken, dryRun, imageId, resourceTypes, tagSpecifications } + +structure CreateInstanceConnectEndpointRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IP address type of the endpoint. -/ + ipAddressType : Option IpAddressType := none + /-- Indicates whether the client IP address is preserved as the source. -/ + preserveClientIp : Option Bool := none + /-- One or more security groups to associate with the endpoint. -/ + securityGroupIds : Option (List String) := none + /-- The ID of the subnet in which to create the EC2 Instance Connect Endpoint. -/ + subnetId : String + /-- The tags to apply to the EC2 Instance Connect Endpoint during creation. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateInstanceConnectEndpointRequest where + schema := .struct "CreateInstanceConnectEndpointRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "IpAddressType" }, (Shape.schema IpAddressType)), + ({ name := "PreserveClientIp" }, .bool), + ({ name := "SecurityGroupIds", xmlName := some "SecurityGroupId" }, (.list .string "SecurityGroupId")), + ({ name := "SubnetId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "IpAddressType" x.ipAddressType, putOpt "PreserveClientIp" x.preserveClientIp, putOpt "SecurityGroupIds" x.securityGroupIds, put "SubnetId" x.subnetId, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let ipAddressType ← v.opt "IpAddressType" + let preserveClientIp ← v.opt "PreserveClientIp" + let securityGroupIds ← v.opt "SecurityGroupIds" + let subnetId ← v.req "SubnetId" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, dryRun, ipAddressType, preserveClientIp, securityGroupIds, subnetId, tagSpecifications } + +structure CreateInstanceEventWindowRequest where + /-- The cron expression for the event window, for example, * 0-4,20-23 * * 1,5 . -/ + cronExpression : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The name of the event window. -/ + name : Option String := none + /-- The tags to apply to the event window. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The time range for the event window. -/ + timeRanges : Option (List InstanceEventWindowTimeRangeRequest) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateInstanceEventWindowRequest where + schema := .struct "CreateInstanceEventWindowRequest" [({ name := "CronExpression" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Name" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TimeRanges", xmlName := some "TimeRange" }, (.list (Shape.schema InstanceEventWindowTimeRangeRequest) "member"))] + toValue x := record [putOpt "CronExpression" x.cronExpression, putOpt "DryRun" x.dryRun, putOpt "Name" x.name, putOpt "TagSpecifications" x.tagSpecifications, putOpt "TimeRanges" x.timeRanges] + ofValue v := do + let cronExpression ← v.opt "CronExpression" + let dryRun ← v.opt "DryRun" + let name ← v.opt "Name" + let tagSpecifications ← v.opt "TagSpecifications" + let timeRanges ← v.opt "TimeRanges" + return { cronExpression, dryRun, name, tagSpecifications, timeRanges } + +structure CreateInstanceExportTaskRequest where + /-- A description for the conversion task or the resource being exported. -/ + description : Option String := none + /-- The format and location for an export instance task. -/ + exportToS3Task : ExportToS3TaskSpecification + /-- The ID of the instance. -/ + instanceId : String + /-- The tags to apply to the export instance task during creation. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The target virtualization environment. -/ + targetEnvironment : ExportEnvironment +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateInstanceExportTaskRequest where + schema := .struct "CreateInstanceExportTaskRequest" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "ExportToS3Task", required := true, xmlName := some "exportToS3", queryName := some "ExportToS3" }, (Shape.schema ExportToS3TaskSpecification)), + ({ name := "InstanceId", required := true, xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TargetEnvironment", required := true, xmlName := some "targetEnvironment", queryName := some "TargetEnvironment" }, (Shape.schema ExportEnvironment))] + toValue x := record [putOpt "Description" x.description, put "ExportToS3Task" x.exportToS3Task, put "InstanceId" x.instanceId, putOpt "TagSpecifications" x.tagSpecifications, put "TargetEnvironment" x.targetEnvironment] + ofValue v := do + let description ← v.opt "Description" + let exportToS3Task ← v.req "ExportToS3Task" + let instanceId ← v.req "InstanceId" + let tagSpecifications ← v.opt "TagSpecifications" + let targetEnvironment ← v.req "TargetEnvironment" + return { description, exportToS3Task, instanceId, tagSpecifications, targetEnvironment } + +structure CreateInternetGatewayRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The tags to assign to the internet gateway. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateInternetGatewayRequest where + schema := .struct "CreateInternetGatewayRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let dryRun ← v.opt "DryRun" + let tagSpecifications ← v.opt "TagSpecifications" + return { dryRun, tagSpecifications } + +structure CreateInterruptibleCapacityReservationAllocationRequest where + /-- The ID of the source Capacity Reservation from which to create the interruptible Capacity Reservation. -/ + capacityReservationId : String + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The number of instances to allocate from your source reservation. -/ + instanceCount : Int + /-- The tags to apply to the interruptible Capacity Reservation during creation. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- Specifies the behavior for the interruptible Capacity Reservation when you reduce its allocation to zero instances. -/ + zeroSizePreference : Option ZeroSizePreference := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateInterruptibleCapacityReservationAllocationRequest where + schema := .struct "CreateInterruptibleCapacityReservationAllocationRequest" [({ name := "CapacityReservationId", required := true }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceCount", required := true }, .int), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "ZeroSizePreference" }, (Shape.schema ZeroSizePreference))] + toValue x := record [put "CapacityReservationId" x.capacityReservationId, putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "InstanceCount" x.instanceCount, putOpt "TagSpecifications" x.tagSpecifications, putOpt "ZeroSizePreference" x.zeroSizePreference] + ofValue v := do + let capacityReservationId ← v.req "CapacityReservationId" + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let instanceCount ← v.req "InstanceCount" + let tagSpecifications ← v.opt "TagSpecifications" + let zeroSizePreference ← v.opt "ZeroSizePreference" + return { capacityReservationId, clientToken, dryRun, instanceCount, tagSpecifications, zeroSizePreference } + +structure CreateIpamExternalResourceVerificationTokenRequest where + /-- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM that will create the token. -/ + ipamId : String + /-- Token tags. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateIpamExternalResourceVerificationTokenRequest where + schema := .struct "CreateIpamExternalResourceVerificationTokenRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "IpamId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "IpamId" x.ipamId, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let ipamId ← v.req "IpamId" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, dryRun, ipamId, tagSpecifications } + +structure CreateIpamExternalResourceVerificationTokenResult where + /-- The verification token. -/ + ipamExternalResourceVerificationToken : Option IpamExternalResourceVerificationToken := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateIpamExternalResourceVerificationTokenResult where + schema := .struct "CreateIpamExternalResourceVerificationTokenResult" [({ name := "IpamExternalResourceVerificationToken", xmlName := some "ipamExternalResourceVerificationToken", queryName := some "IpamExternalResourceVerificationToken" }, (Shape.schema IpamExternalResourceVerificationToken))] + toValue x := record [putOpt "IpamExternalResourceVerificationToken" x.ipamExternalResourceVerificationToken] + ofValue v := do + let ipamExternalResourceVerificationToken ← v.opt "IpamExternalResourceVerificationToken" + return { ipamExternalResourceVerificationToken } + +structure CreateIpamInternetRegistryAssociationRequest where + /-- A unique, case-sensitive identifier to ensure that the operation completes no more than one time. -/ + clientToken : Option String := none + /-- A description for the internet registry association. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM to associate with the internet registry. -/ + ipamId : String + /-- The organization handle at the internet registry (for example, a RIPE NCC organization ID or ARIN Org ID). -/ + organizationHandle : String + /-- The internet registry to associate with. -/ + rir : Rir + /-- The tags to assign to the internet registry association. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateIpamInternetRegistryAssociationRequest where + schema := .struct "CreateIpamInternetRegistryAssociationRequest" [({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "IpamId", required := true }, .string), + ({ name := "OrganizationHandle", required := true }, .string), + ({ name := "Rir", required := true }, (Shape.schema Rir)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, put "IpamId" x.ipamId, put "OrganizationHandle" x.organizationHandle, put "Rir" x.rir, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let ipamId ← v.req "IpamId" + let organizationHandle ← v.req "OrganizationHandle" + let rir ← v.req "Rir" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, description, dryRun, ipamId, organizationHandle, rir, tagSpecifications } + +structure CreateIpamInternetRegistryAssociationResult where + /-- Information about the internet registry association. -/ + ipamInternetRegistryAssociation : Option IpamInternetRegistryAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateIpamInternetRegistryAssociationResult where + schema := .struct "CreateIpamInternetRegistryAssociationResult" [({ name := "IpamInternetRegistryAssociation", xmlName := some "ipamInternetRegistryAssociation", queryName := some "IpamInternetRegistryAssociation" }, (Shape.schema IpamInternetRegistryAssociation))] + toValue x := record [putOpt "IpamInternetRegistryAssociation" x.ipamInternetRegistryAssociation] + ofValue v := do + let ipamInternetRegistryAssociation ← v.opt "IpamInternetRegistryAssociation" + return { ipamInternetRegistryAssociation } + +structure CreateIpamPolicyRequest where + /-- A unique, case-sensitive identifier to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM for which you're creating the policy. -/ + ipamId : String + /-- The tags to assign to the IPAM policy. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateIpamPolicyRequest where + schema := .struct "CreateIpamPolicyRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "IpamId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "IpamId" x.ipamId, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let ipamId ← v.req "IpamId" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, dryRun, ipamId, tagSpecifications } + +structure CreateIpamPolicyResult where + /-- Information about the created IPAM policy. -/ + ipamPolicy : Option IpamPolicy := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateIpamPolicyResult where + schema := .struct "CreateIpamPolicyResult" [({ name := "IpamPolicy", xmlName := some "ipamPolicy", queryName := some "IpamPolicy" }, (Shape.schema IpamPolicy))] + toValue x := record [putOpt "IpamPolicy" x.ipamPolicy] + ofValue v := do + let ipamPolicy ← v.opt "IpamPolicy" + return { ipamPolicy } + +structure CreateIpamPoolRequest where + /-- The IP protocol assigned to this IPAM pool. -/ + addressFamily : AddressFamily + /-- The default netmask length for allocations added to this pool. -/ + allocationDefaultNetmaskLength : Option Int := none + /-- The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant. -/ + allocationMaxNetmaskLength : Option Int := none + /-- The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant. -/ + allocationMinNetmaskLength : Option Int := none + /-- Tags that are required for resources that use CIDRs from this IPAM pool. -/ + allocationResourceTags : Option (List RequestIpamResourceTag) := none + /-- If selected, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM. -/ + autoImport : Option Bool := none + /-- Limits which service in Amazon Web Services that the pool can be used in. -/ + awsService : Option IpamPoolAwsService := none + /-- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- A description for the IPAM pool. -/ + description : Option String := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the scope in which you would like to create the IPAM pool. -/ + ipamScopeId : String + /-- The locale for the pool should be one of the following: An Amazon Web Services Region where you want this IPAM pool to be available for allocations. -/ + locale : Option String := none + /-- The IP address source for pools in the public scope. -/ + publicIpSource : Option IpamPoolPublicIpSource := none + /-- Determines if the pool is publicly advertisable. -/ + publiclyAdvertisable : Option Bool := none + /-- The ID of the source IPAM pool. -/ + sourceIpamPoolId : Option String := none + /-- The resource used to provision CIDRs to a resource planning pool. -/ + sourceResource : Option IpamPoolSourceResourceRequest := none + /-- The key/value combination of a tag assigned to the resource. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateIpamPoolRequest where + schema := .struct "CreateIpamPoolRequest" [({ name := "AddressFamily", required := true }, (Shape.schema AddressFamily)), + ({ name := "AllocationDefaultNetmaskLength" }, .int), + ({ name := "AllocationMaxNetmaskLength" }, .int), + ({ name := "AllocationMinNetmaskLength" }, .int), + ({ name := "AllocationResourceTags", xmlName := some "AllocationResourceTag" }, (.list (Shape.schema RequestIpamResourceTag) "item")), + ({ name := "AutoImport" }, .bool), + ({ name := "AwsService" }, (Shape.schema IpamPoolAwsService)), + ({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "IpamScopeId", required := true }, .string), + ({ name := "Locale" }, .string), + ({ name := "PublicIpSource" }, (Shape.schema IpamPoolPublicIpSource)), + ({ name := "PubliclyAdvertisable" }, .bool), + ({ name := "SourceIpamPoolId" }, .string), + ({ name := "SourceResource" }, (Shape.schema IpamPoolSourceResourceRequest)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [put "AddressFamily" x.addressFamily, putOpt "AllocationDefaultNetmaskLength" x.allocationDefaultNetmaskLength, putOpt "AllocationMaxNetmaskLength" x.allocationMaxNetmaskLength, putOpt "AllocationMinNetmaskLength" x.allocationMinNetmaskLength, putOpt "AllocationResourceTags" x.allocationResourceTags, putOpt "AutoImport" x.autoImport, putOpt "AwsService" x.awsService, putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, put "IpamScopeId" x.ipamScopeId, putOpt "Locale" x.locale, putOpt "PublicIpSource" x.publicIpSource, putOpt "PubliclyAdvertisable" x.publiclyAdvertisable, putOpt "SourceIpamPoolId" x.sourceIpamPoolId, putOpt "SourceResource" x.sourceResource, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let addressFamily ← v.req "AddressFamily" + let allocationDefaultNetmaskLength ← v.opt "AllocationDefaultNetmaskLength" + let allocationMaxNetmaskLength ← v.opt "AllocationMaxNetmaskLength" + let allocationMinNetmaskLength ← v.opt "AllocationMinNetmaskLength" + let allocationResourceTags ← v.opt "AllocationResourceTags" + let autoImport ← v.opt "AutoImport" + let awsService ← v.opt "AwsService" + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let ipamScopeId ← v.req "IpamScopeId" + let locale ← v.opt "Locale" + let publicIpSource ← v.opt "PublicIpSource" + let publiclyAdvertisable ← v.opt "PubliclyAdvertisable" + let sourceIpamPoolId ← v.opt "SourceIpamPoolId" + let sourceResource ← v.opt "SourceResource" + let tagSpecifications ← v.opt "TagSpecifications" + return { addressFamily, allocationDefaultNetmaskLength, allocationMaxNetmaskLength, allocationMinNetmaskLength, allocationResourceTags, autoImport, awsService, clientToken, description, dryRun, ipamScopeId, locale, publicIpSource, publiclyAdvertisable, sourceIpamPoolId, sourceResource, tagSpecifications } + +structure CreateIpamPrefixListResolverResult where + /-- Information about the IPAM prefix list resolver that was created. -/ + ipamPrefixListResolver : Option IpamPrefixListResolver := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateIpamPrefixListResolverResult where + schema := .struct "CreateIpamPrefixListResolverResult" [({ name := "IpamPrefixListResolver", xmlName := some "ipamPrefixListResolver", queryName := some "IpamPrefixListResolver" }, (Shape.schema IpamPrefixListResolver))] + toValue x := record [putOpt "IpamPrefixListResolver" x.ipamPrefixListResolver] + ofValue v := do + let ipamPrefixListResolver ← v.opt "IpamPrefixListResolver" + return { ipamPrefixListResolver } + +structure CreateIpamPrefixListResolverTargetRequest where + /-- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The specific version of the prefix list to target. -/ + desiredVersion : Option Int := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM prefix list resolver that will manage the synchronization of CIDRs to the target prefix list. -/ + ipamPrefixListResolverId : String + /-- The ID of the managed prefix list that will be synchronized with CIDRs selected by the IPAM prefix list resolver. -/ + prefixListId : String + /-- The Amazon Web Services Region where the prefix list is located. -/ + prefixListRegion : String + /-- The tags to apply to the IPAM prefix list resolver target during creation. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- Indicates whether the resolver target should automatically track the latest version of the prefix list. -/ + trackLatestVersion : Bool +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateIpamPrefixListResolverTargetRequest where + schema := .struct "CreateIpamPrefixListResolverTargetRequest" [({ name := "ClientToken" }, .string), + ({ name := "DesiredVersion" }, .int), + ({ name := "DryRun" }, .bool), + ({ name := "IpamPrefixListResolverId", required := true }, .string), + ({ name := "PrefixListId", required := true }, .string), + ({ name := "PrefixListRegion", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TrackLatestVersion", required := true }, .bool)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DesiredVersion" x.desiredVersion, putOpt "DryRun" x.dryRun, put "IpamPrefixListResolverId" x.ipamPrefixListResolverId, put "PrefixListId" x.prefixListId, put "PrefixListRegion" x.prefixListRegion, putOpt "TagSpecifications" x.tagSpecifications, put "TrackLatestVersion" x.trackLatestVersion] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let desiredVersion ← v.opt "DesiredVersion" + let dryRun ← v.opt "DryRun" + let ipamPrefixListResolverId ← v.req "IpamPrefixListResolverId" + let prefixListId ← v.req "PrefixListId" + let prefixListRegion ← v.req "PrefixListRegion" + let tagSpecifications ← v.opt "TagSpecifications" + let trackLatestVersion ← v.req "TrackLatestVersion" + return { clientToken, desiredVersion, dryRun, ipamPrefixListResolverId, prefixListId, prefixListRegion, tagSpecifications, trackLatestVersion } + +structure CreateIpamPrefixListResolverTargetResult where + /-- Information about the IPAM prefix list resolver target that was created. -/ + ipamPrefixListResolverTarget : Option IpamPrefixListResolverTarget := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateIpamPrefixListResolverTargetResult where + schema := .struct "CreateIpamPrefixListResolverTargetResult" [({ name := "IpamPrefixListResolverTarget", xmlName := some "ipamPrefixListResolverTarget", queryName := some "IpamPrefixListResolverTarget" }, (Shape.schema IpamPrefixListResolverTarget))] + toValue x := record [putOpt "IpamPrefixListResolverTarget" x.ipamPrefixListResolverTarget] + ofValue v := do + let ipamPrefixListResolverTarget ← v.opt "IpamPrefixListResolverTarget" + return { ipamPrefixListResolverTarget } + +structure CreateIpamRequest where + /-- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- A description for the IPAM. -/ + description : Option String := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- Enable this option to use your own GUA ranges as private IPv6 addresses. -/ + enablePrivateGua : Option Bool := none + /-- A metered account is an Amazon Web Services account that is charged for active IP addresses managed in IPAM. -/ + meteredAccount : Option IpamMeteredAccount := none + /-- The operating Regions for the IPAM. -/ + operatingRegions : Option (List AddIpamOperatingRegion) := none + /-- The key/value combination of a tag assigned to the resource. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- IPAM is offered in a Free Tier and an Advanced Tier. -/ + tier : Option IpamTier := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateIpamRequest where + schema := .struct "CreateIpamRequest" [({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "EnablePrivateGua" }, .bool), + ({ name := "MeteredAccount" }, (Shape.schema IpamMeteredAccount)), + ({ name := "OperatingRegions", xmlName := some "OperatingRegion" }, (.list (Shape.schema AddIpamOperatingRegion) "member")), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "Tier" }, (Shape.schema IpamTier))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "EnablePrivateGua" x.enablePrivateGua, putOpt "MeteredAccount" x.meteredAccount, putOpt "OperatingRegions" x.operatingRegions, putOpt "TagSpecifications" x.tagSpecifications, putOpt "Tier" x.tier] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let enablePrivateGua ← v.opt "EnablePrivateGua" + let meteredAccount ← v.opt "MeteredAccount" + let operatingRegions ← v.opt "OperatingRegions" + let tagSpecifications ← v.opt "TagSpecifications" + let tier ← v.opt "Tier" + return { clientToken, description, dryRun, enablePrivateGua, meteredAccount, operatingRegions, tagSpecifications, tier } + +structure CreateIpamResourceDiscoveryRequest where + /-- A client token for the IPAM resource discovery. -/ + clientToken : Option String := none + /-- A description for the IPAM resource discovery. -/ + description : Option String := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- Operating Regions for the IPAM resource discovery. -/ + operatingRegions : Option (List AddIpamOperatingRegion) := none + /-- Tag specifications for the IPAM resource discovery. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateIpamResourceDiscoveryRequest where + schema := .struct "CreateIpamResourceDiscoveryRequest" [({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "OperatingRegions", xmlName := some "OperatingRegion" }, (.list (Shape.schema AddIpamOperatingRegion) "member")), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "OperatingRegions" x.operatingRegions, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let operatingRegions ← v.opt "OperatingRegions" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, description, dryRun, operatingRegions, tagSpecifications } + +structure CreateIpamResourceDiscoveryResult where + /-- An IPAM resource discovery. -/ + ipamResourceDiscovery : Option IpamResourceDiscovery := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateIpamResourceDiscoveryResult where + schema := .struct "CreateIpamResourceDiscoveryResult" [({ name := "IpamResourceDiscovery", xmlName := some "ipamResourceDiscovery", queryName := some "IpamResourceDiscovery" }, (Shape.schema IpamResourceDiscovery))] + toValue x := record [putOpt "IpamResourceDiscovery" x.ipamResourceDiscovery] + ofValue v := do + let ipamResourceDiscovery ← v.opt "IpamResourceDiscovery" + return { ipamResourceDiscovery } + +structure CreateIpamResult where + /-- Information about the IPAM created. -/ + ipam : Option Ipam := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateIpamResult where + schema := .struct "CreateIpamResult" [({ name := "Ipam", xmlName := some "ipam", queryName := some "Ipam" }, (Shape.schema Ipam))] + toValue x := record [putOpt "Ipam" x.ipam] + ofValue v := do + let ipam ← v.opt "Ipam" + return { ipam } + +structure CreateIpamRoutingPolicyRegistrationResult where + /-- Information about the routing policy registration delta created by this operation. -/ + ipamRoutingPolicyRegistrationDelta : Option IpamRoutingPolicyRegistrationDelta := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateIpamRoutingPolicyRegistrationResult where + schema := .struct "CreateIpamRoutingPolicyRegistrationResult" [({ name := "IpamRoutingPolicyRegistrationDelta", xmlName := some "ipamRoutingPolicyRegistrationDelta", queryName := some "IpamRoutingPolicyRegistrationDelta" }, (Shape.schema IpamRoutingPolicyRegistrationDelta))] + toValue x := record [putOpt "IpamRoutingPolicyRegistrationDelta" x.ipamRoutingPolicyRegistrationDelta] + ofValue v := do + let ipamRoutingPolicyRegistrationDelta ← v.opt "IpamRoutingPolicyRegistrationDelta" + return { ipamRoutingPolicyRegistrationDelta } + +structure CreateIpamScopeRequest where + /-- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- A description for the scope you're creating. -/ + description : Option String := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The configuration that links an Amazon VPC IPAM scope to an external authority system. -/ + externalAuthorityConfiguration : Option ExternalAuthorityConfiguration := none + /-- The ID of the IPAM for which you're creating this scope. -/ + ipamId : String + /-- The key/value combination of a tag assigned to the resource. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateIpamScopeRequest where + schema := .struct "CreateIpamScopeRequest" [({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "ExternalAuthorityConfiguration" }, (Shape.schema ExternalAuthorityConfiguration)), + ({ name := "IpamId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "ExternalAuthorityConfiguration" x.externalAuthorityConfiguration, put "IpamId" x.ipamId, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let externalAuthorityConfiguration ← v.opt "ExternalAuthorityConfiguration" + let ipamId ← v.req "IpamId" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, description, dryRun, externalAuthorityConfiguration, ipamId, tagSpecifications } + +structure CreateKeyPairRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The format of the key pair. -/ + keyFormat : Option KeyFormat := none + /-- A unique name for the key pair. -/ + keyName : String + /-- The type of key pair. -/ + keyType : Option KeyType := none + /-- The tags to apply to the new key pair. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateKeyPairRequest where + schema := .struct "CreateKeyPairRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "KeyFormat" }, (Shape.schema KeyFormat)), + ({ name := "KeyName", required := true }, .string), + ({ name := "KeyType" }, (Shape.schema KeyType)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "KeyFormat" x.keyFormat, put "KeyName" x.keyName, putOpt "KeyType" x.keyType, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let dryRun ← v.opt "DryRun" + let keyFormat ← v.opt "KeyFormat" + let keyName ← v.req "KeyName" + let keyType ← v.opt "KeyType" + let tagSpecifications ← v.opt "TagSpecifications" + return { dryRun, keyFormat, keyName, keyType, tagSpecifications } + +structure CreateLaunchTemplateResult where + /-- Information about the launch template. -/ + launchTemplate : Option LaunchTemplate := none + /-- If the launch template contains parameters or parameter combinations that are not valid, an error code and an error message are returned for each issue that's found. -/ + warning : Option ValidationWarning := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateLaunchTemplateResult where + schema := .struct "CreateLaunchTemplateResult" [({ name := "LaunchTemplate", xmlName := some "launchTemplate", queryName := some "LaunchTemplate" }, (Shape.schema LaunchTemplate)), + ({ name := "Warning", xmlName := some "warning", queryName := some "Warning" }, (Shape.schema ValidationWarning))] + toValue x := record [putOpt "LaunchTemplate" x.launchTemplate, putOpt "Warning" x.warning] + ofValue v := do + let launchTemplate ← v.opt "LaunchTemplate" + let warning ← v.opt "Warning" + return { launchTemplate, warning } + +structure CreateLocalGatewayRouteResult where + /-- Information about the route. -/ + route : Option LocalGatewayRoute := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateLocalGatewayRouteResult where + schema := .struct "CreateLocalGatewayRouteResult" [({ name := "Route", xmlName := some "route", queryName := some "Route" }, (Shape.schema LocalGatewayRoute))] + toValue x := record [putOpt "Route" x.route] + ofValue v := do + let route ← v.opt "Route" + return { route } + +structure CreateLocalGatewayRouteTableRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the local gateway. -/ + localGatewayId : String + /-- The mode of the local gateway route table. -/ + mode : Option LocalGatewayRouteTableMode := none + /-- The tags assigned to the local gateway route table. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateLocalGatewayRouteTableRequest where + schema := .struct "CreateLocalGatewayRouteTableRequest" [({ name := "DryRun" }, .bool), + ({ name := "LocalGatewayId", required := true }, .string), + ({ name := "Mode" }, (Shape.schema LocalGatewayRouteTableMode)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "LocalGatewayId" x.localGatewayId, putOpt "Mode" x.mode, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let dryRun ← v.opt "DryRun" + let localGatewayId ← v.req "LocalGatewayId" + let mode ← v.opt "Mode" + let tagSpecifications ← v.opt "TagSpecifications" + return { dryRun, localGatewayId, mode, tagSpecifications } + +structure CreateLocalGatewayRouteTableResult where + /-- Information about the local gateway route table. -/ + localGatewayRouteTable : Option LocalGatewayRouteTable := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateLocalGatewayRouteTableResult where + schema := .struct "CreateLocalGatewayRouteTableResult" [({ name := "LocalGatewayRouteTable", xmlName := some "localGatewayRouteTable", queryName := some "LocalGatewayRouteTable" }, (Shape.schema LocalGatewayRouteTable))] + toValue x := record [putOpt "LocalGatewayRouteTable" x.localGatewayRouteTable] + ofValue v := do + let localGatewayRouteTable ← v.opt "LocalGatewayRouteTable" + return { localGatewayRouteTable } + +structure CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the local gateway route table. -/ + localGatewayRouteTableId : String + /-- The ID of the local gateway route table virtual interface group association. -/ + localGatewayVirtualInterfaceGroupId : String + /-- The tags assigned to the local gateway route table virtual interface group association. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest where + schema := .struct "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest" [({ name := "DryRun" }, .bool), + ({ name := "LocalGatewayRouteTableId", required := true }, .string), + ({ name := "LocalGatewayVirtualInterfaceGroupId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "LocalGatewayRouteTableId" x.localGatewayRouteTableId, put "LocalGatewayVirtualInterfaceGroupId" x.localGatewayVirtualInterfaceGroupId, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let dryRun ← v.opt "DryRun" + let localGatewayRouteTableId ← v.req "LocalGatewayRouteTableId" + let localGatewayVirtualInterfaceGroupId ← v.req "LocalGatewayVirtualInterfaceGroupId" + let tagSpecifications ← v.opt "TagSpecifications" + return { dryRun, localGatewayRouteTableId, localGatewayVirtualInterfaceGroupId, tagSpecifications } + +structure CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult where + /-- Information about the local gateway route table virtual interface group association. -/ + localGatewayRouteTableVirtualInterfaceGroupAssociation : Option LocalGatewayRouteTableVirtualInterfaceGroupAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult where + schema := .struct "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult" [({ name := "LocalGatewayRouteTableVirtualInterfaceGroupAssociation", xmlName := some "localGatewayRouteTableVirtualInterfaceGroupAssociation", queryName := some "LocalGatewayRouteTableVirtualInterfaceGroupAssociation" }, (Shape.schema LocalGatewayRouteTableVirtualInterfaceGroupAssociation))] + toValue x := record [putOpt "LocalGatewayRouteTableVirtualInterfaceGroupAssociation" x.localGatewayRouteTableVirtualInterfaceGroupAssociation] + ofValue v := do + let localGatewayRouteTableVirtualInterfaceGroupAssociation ← v.opt "LocalGatewayRouteTableVirtualInterfaceGroupAssociation" + return { localGatewayRouteTableVirtualInterfaceGroupAssociation } + +structure CreateLocalGatewayRouteTableVpcAssociationRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the local gateway route table. -/ + localGatewayRouteTableId : String + /-- The tags to assign to the local gateway route table VPC association. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the VPC. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateLocalGatewayRouteTableVpcAssociationRequest where + schema := .struct "CreateLocalGatewayRouteTableVpcAssociationRequest" [({ name := "DryRun" }, .bool), + ({ name := "LocalGatewayRouteTableId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "VpcId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "LocalGatewayRouteTableId" x.localGatewayRouteTableId, putOpt "TagSpecifications" x.tagSpecifications, put "VpcId" x.vpcId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let localGatewayRouteTableId ← v.req "LocalGatewayRouteTableId" + let tagSpecifications ← v.opt "TagSpecifications" + let vpcId ← v.req "VpcId" + return { dryRun, localGatewayRouteTableId, tagSpecifications, vpcId } + +structure CreateLocalGatewayRouteTableVpcAssociationResult where + /-- Information about the association. -/ + localGatewayRouteTableVpcAssociation : Option LocalGatewayRouteTableVpcAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateLocalGatewayRouteTableVpcAssociationResult where + schema := .struct "CreateLocalGatewayRouteTableVpcAssociationResult" [({ name := "LocalGatewayRouteTableVpcAssociation", xmlName := some "localGatewayRouteTableVpcAssociation", queryName := some "LocalGatewayRouteTableVpcAssociation" }, (Shape.schema LocalGatewayRouteTableVpcAssociation))] + toValue x := record [putOpt "LocalGatewayRouteTableVpcAssociation" x.localGatewayRouteTableVpcAssociation] + ofValue v := do + let localGatewayRouteTableVpcAssociation ← v.opt "LocalGatewayRouteTableVpcAssociation" + return { localGatewayRouteTableVpcAssociation } + +structure CreateLocalGatewayVirtualInterfaceGroupRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The Autonomous System Number(ASN) for the local Border Gateway Protocol (BGP). -/ + localBgpAsn : Option Int := none + /-- The extended 32-bit ASN for the local BGP configuration. -/ + localBgpAsnExtended : Option Int := none + /-- The ID of the local gateway. -/ + localGatewayId : String + /-- The tags to apply to the local gateway virtual interface group when the resource is being created. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateLocalGatewayVirtualInterfaceGroupRequest where + schema := .struct "CreateLocalGatewayVirtualInterfaceGroupRequest" [({ name := "DryRun" }, .bool), + ({ name := "LocalBgpAsn" }, .int), + ({ name := "LocalBgpAsnExtended" }, .int), + ({ name := "LocalGatewayId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "LocalBgpAsn" x.localBgpAsn, putOpt "LocalBgpAsnExtended" x.localBgpAsnExtended, put "LocalGatewayId" x.localGatewayId, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let dryRun ← v.opt "DryRun" + let localBgpAsn ← v.opt "LocalBgpAsn" + let localBgpAsnExtended ← v.opt "LocalBgpAsnExtended" + let localGatewayId ← v.req "LocalGatewayId" + let tagSpecifications ← v.opt "TagSpecifications" + return { dryRun, localBgpAsn, localBgpAsnExtended, localGatewayId, tagSpecifications } + +structure CreateLocalGatewayVirtualInterfaceGroupResult where + /-- Information about the created local gateway virtual interface group. -/ + localGatewayVirtualInterfaceGroup : Option LocalGatewayVirtualInterfaceGroup := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateLocalGatewayVirtualInterfaceGroupResult where + schema := .struct "CreateLocalGatewayVirtualInterfaceGroupResult" [({ name := "LocalGatewayVirtualInterfaceGroup", xmlName := some "localGatewayVirtualInterfaceGroup", queryName := some "LocalGatewayVirtualInterfaceGroup" }, (Shape.schema LocalGatewayVirtualInterfaceGroup))] + toValue x := record [putOpt "LocalGatewayVirtualInterfaceGroup" x.localGatewayVirtualInterfaceGroup] + ofValue v := do + let localGatewayVirtualInterfaceGroup ← v.opt "LocalGatewayVirtualInterfaceGroup" + return { localGatewayVirtualInterfaceGroup } + +structure CreateLocalGatewayVirtualInterfaceRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IP address assigned to the local gateway virtual interface on the Outpost side. -/ + localAddress : String + /-- The ID of the local gateway virtual interface group. -/ + localGatewayVirtualInterfaceGroupId : String + /-- References the Link Aggregation Group (LAG) that connects the Outpost to on-premises network devices. -/ + outpostLagId : String + /-- The peer IP address for the local gateway virtual interface. -/ + peerAddress : String + /-- The Autonomous System Number (ASN) of the Border Gateway Protocol (BGP) peer. -/ + peerBgpAsn : Option Int := none + /-- The extended 32-bit ASN of the BGP peer for use with larger ASN values. -/ + peerBgpAsnExtended : Option Int := none + /-- The tags to apply to a resource when the local gateway virtual interface is being created. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The virtual local area network (VLAN) used for the local gateway virtual interface. -/ + vlan : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateLocalGatewayVirtualInterfaceRequest where + schema := .struct "CreateLocalGatewayVirtualInterfaceRequest" [({ name := "DryRun" }, .bool), + ({ name := "LocalAddress", required := true }, .string), + ({ name := "LocalGatewayVirtualInterfaceGroupId", required := true }, .string), + ({ name := "OutpostLagId", required := true }, .string), + ({ name := "PeerAddress", required := true }, .string), + ({ name := "PeerBgpAsn" }, .int), + ({ name := "PeerBgpAsnExtended" }, .int), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "Vlan", required := true }, .int)] + toValue x := record [putOpt "DryRun" x.dryRun, put "LocalAddress" x.localAddress, put "LocalGatewayVirtualInterfaceGroupId" x.localGatewayVirtualInterfaceGroupId, put "OutpostLagId" x.outpostLagId, put "PeerAddress" x.peerAddress, putOpt "PeerBgpAsn" x.peerBgpAsn, putOpt "PeerBgpAsnExtended" x.peerBgpAsnExtended, putOpt "TagSpecifications" x.tagSpecifications, put "Vlan" x.vlan] + ofValue v := do + let dryRun ← v.opt "DryRun" + let localAddress ← v.req "LocalAddress" + let localGatewayVirtualInterfaceGroupId ← v.req "LocalGatewayVirtualInterfaceGroupId" + let outpostLagId ← v.req "OutpostLagId" + let peerAddress ← v.req "PeerAddress" + let peerBgpAsn ← v.opt "PeerBgpAsn" + let peerBgpAsnExtended ← v.opt "PeerBgpAsnExtended" + let tagSpecifications ← v.opt "TagSpecifications" + let vlan ← v.req "Vlan" + return { dryRun, localAddress, localGatewayVirtualInterfaceGroupId, outpostLagId, peerAddress, peerBgpAsn, peerBgpAsnExtended, tagSpecifications, vlan } + +structure CreateLocalGatewayVirtualInterfaceResult where + /-- Information about the local gateway virtual interface. -/ + localGatewayVirtualInterface : Option LocalGatewayVirtualInterface := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateLocalGatewayVirtualInterfaceResult where + schema := .struct "CreateLocalGatewayVirtualInterfaceResult" [({ name := "LocalGatewayVirtualInterface", xmlName := some "localGatewayVirtualInterface", queryName := some "LocalGatewayVirtualInterface" }, (Shape.schema LocalGatewayVirtualInterface))] + toValue x := record [putOpt "LocalGatewayVirtualInterface" x.localGatewayVirtualInterface] + ofValue v := do + let localGatewayVirtualInterface ← v.opt "LocalGatewayVirtualInterface" + return { localGatewayVirtualInterface } + +structure CreateMacSystemIntegrityProtectionModificationTaskRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Amazon EC2 Mac instance. -/ + instanceId : String + /-- [Apple silicon Mac instances only] Specifies the following credentials: Internal disk administrative user Username - Only the default administrative user ( aws-managed-user ) is supported and it is used by default. -/ + macCredentials : Option String := none + /-- Specifies the overrides to selectively enable or disable individual SIP settings. -/ + macSystemIntegrityProtectionConfiguration : Option MacSystemIntegrityProtectionConfigurationRequest := none + /-- Specifies the overall SIP status for the instance. -/ + macSystemIntegrityProtectionStatus : MacSystemIntegrityProtectionSettingStatus + /-- Specifies tags to apply to the SIP modification task. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateMacSystemIntegrityProtectionModificationTaskRequest where + schema := .struct "CreateMacSystemIntegrityProtectionModificationTaskRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceId", required := true }, .string), + ({ name := "MacCredentials" }, .string), + ({ name := "MacSystemIntegrityProtectionConfiguration" }, (Shape.schema MacSystemIntegrityProtectionConfigurationRequest)), + ({ name := "MacSystemIntegrityProtectionStatus", required := true }, (Shape.schema MacSystemIntegrityProtectionSettingStatus)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "InstanceId" x.instanceId, putOpt "MacCredentials" x.macCredentials, putOpt "MacSystemIntegrityProtectionConfiguration" x.macSystemIntegrityProtectionConfiguration, put "MacSystemIntegrityProtectionStatus" x.macSystemIntegrityProtectionStatus, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let instanceId ← v.req "InstanceId" + let macCredentials ← v.opt "MacCredentials" + let macSystemIntegrityProtectionConfiguration ← v.opt "MacSystemIntegrityProtectionConfiguration" + let macSystemIntegrityProtectionStatus ← v.req "MacSystemIntegrityProtectionStatus" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, dryRun, instanceId, macCredentials, macSystemIntegrityProtectionConfiguration, macSystemIntegrityProtectionStatus, tagSpecifications } + +structure CreateManagedPrefixListRequest where + /-- The IP address type. -/ + addressFamily : String + /-- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- One or more entries for the prefix list. -/ + entries : Option (List AddPrefixListEntry) := none + /-- The maximum number of entries for the prefix list. -/ + maxEntries : Int + /-- A name for the prefix list. -/ + prefixListName : String + /-- The tags to apply to the prefix list during creation. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateManagedPrefixListRequest where + schema := .struct "CreateManagedPrefixListRequest" [({ name := "AddressFamily", required := true }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Entries", xmlName := some "Entry" }, (.list (Shape.schema AddPrefixListEntry) "member")), + ({ name := "MaxEntries", required := true }, .int), + ({ name := "PrefixListName", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [put "AddressFamily" x.addressFamily, putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "Entries" x.entries, put "MaxEntries" x.maxEntries, put "PrefixListName" x.prefixListName, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let addressFamily ← v.req "AddressFamily" + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let entries ← v.opt "Entries" + let maxEntries ← v.req "MaxEntries" + let prefixListName ← v.req "PrefixListName" + let tagSpecifications ← v.opt "TagSpecifications" + return { addressFamily, clientToken, dryRun, entries, maxEntries, prefixListName, tagSpecifications } + +structure CreateManagedPrefixListResult where + /-- Information about the prefix list. -/ + prefixList : Option ManagedPrefixList := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateManagedPrefixListResult where + schema := .struct "CreateManagedPrefixListResult" [({ name := "PrefixList", xmlName := some "prefixList", queryName := some "PrefixList" }, (Shape.schema ManagedPrefixList))] + toValue x := record [putOpt "PrefixList" x.prefixList] + ofValue v := do + let prefixList ← v.opt "PrefixList" + return { prefixList } + +structure CreateMetricCategoryRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The names of the metrics to include in the metric category. -/ + metrics : (List String) + /-- The tags to apply to the metric category during creation. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateMetricCategoryRequest where + schema := .struct "CreateMetricCategoryRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Metrics", required := true, xmlName := some "Metric" }, (.list .string "item")), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "Metrics" x.metrics, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let metrics ← v.req "Metrics" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, dryRun, metrics, tagSpecifications } + +structure CreateMetricCategoryResult where + /-- Information about the metric category. -/ + metricCategory : Option MetricCategory := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateMetricCategoryResult where + schema := .struct "CreateMetricCategoryResult" [({ name := "MetricCategory", xmlName := some "metricCategory", queryName := some "MetricCategory" }, (Shape.schema MetricCategory))] + toValue x := record [putOpt "MetricCategory" x.metricCategory] + ofValue v := do + let metricCategory ← v.opt "MetricCategory" + return { metricCategory } + +structure CreateNatGatewayRequest where + /-- [Public NAT gateways only] The allocation ID of an Elastic IP address to associate with the NAT gateway. -/ + allocationId : Option String := none + /-- Specifies whether to create a zonal (single-AZ) or regional (multi-AZ) NAT gateway. -/ + availabilityMode : Option AvailabilityMode := none + /-- For regional NAT gateways only: Specifies which Availability Zones you want the NAT gateway to support and the Elastic IP addresses (EIPs) to use in each AZ. -/ + availabilityZoneAddresses : Option (List AvailabilityZoneAddress) := none + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Indicates whether the NAT gateway supports public or private connectivity. -/ + connectivityType : Option ConnectivityType := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The private IPv4 address to assign to the NAT gateway. -/ + privateIpAddress : Option String := none + /-- Secondary EIP allocation IDs. -/ + secondaryAllocationIds : Option (List String) := none + /-- [Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway. -/ + secondaryPrivateIpAddressCount : Option Int := none + /-- Secondary private IPv4 addresses. -/ + secondaryPrivateIpAddresses : Option (List String) := none + /-- The ID of the subnet in which to create the NAT gateway. -/ + subnetId : Option String := none + /-- The tags to assign to the NAT gateway. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the VPC where you want to create a regional NAT gateway. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateNatGatewayRequest where + schema := .struct "CreateNatGatewayRequest" [({ name := "AllocationId" }, .string), + ({ name := "AvailabilityMode" }, (Shape.schema AvailabilityMode)), + ({ name := "AvailabilityZoneAddresses", xmlName := some "AvailabilityZoneAddress" }, (.list (Shape.schema AvailabilityZoneAddress) "AvailabilityZoneAddress")), + ({ name := "ClientToken" }, .string), + ({ name := "ConnectivityType" }, (Shape.schema ConnectivityType)), + ({ name := "DryRun" }, .bool), + ({ name := "PrivateIpAddress" }, .string), + ({ name := "SecondaryAllocationIds", xmlName := some "SecondaryAllocationId" }, (.list .string "AllocationId")), + ({ name := "SecondaryPrivateIpAddressCount" }, .int), + ({ name := "SecondaryPrivateIpAddresses", xmlName := some "SecondaryPrivateIpAddress" }, (.list .string "item")), + ({ name := "SubnetId" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "VpcId" }, .string)] + toValue x := record [putOpt "AllocationId" x.allocationId, putOpt "AvailabilityMode" x.availabilityMode, putOpt "AvailabilityZoneAddresses" x.availabilityZoneAddresses, putOpt "ClientToken" x.clientToken, putOpt "ConnectivityType" x.connectivityType, putOpt "DryRun" x.dryRun, putOpt "PrivateIpAddress" x.privateIpAddress, putOpt "SecondaryAllocationIds" x.secondaryAllocationIds, putOpt "SecondaryPrivateIpAddressCount" x.secondaryPrivateIpAddressCount, putOpt "SecondaryPrivateIpAddresses" x.secondaryPrivateIpAddresses, putOpt "SubnetId" x.subnetId, putOpt "TagSpecifications" x.tagSpecifications, putOpt "VpcId" x.vpcId] + ofValue v := do + let allocationId ← v.opt "AllocationId" + let availabilityMode ← v.opt "AvailabilityMode" + let availabilityZoneAddresses ← v.opt "AvailabilityZoneAddresses" + let clientToken ← v.opt "ClientToken" + let connectivityType ← v.opt "ConnectivityType" + let dryRun ← v.opt "DryRun" + let privateIpAddress ← v.opt "PrivateIpAddress" + let secondaryAllocationIds ← v.opt "SecondaryAllocationIds" + let secondaryPrivateIpAddressCount ← v.opt "SecondaryPrivateIpAddressCount" + let secondaryPrivateIpAddresses ← v.opt "SecondaryPrivateIpAddresses" + let subnetId ← v.opt "SubnetId" + let tagSpecifications ← v.opt "TagSpecifications" + let vpcId ← v.opt "VpcId" + return { allocationId, availabilityMode, availabilityZoneAddresses, clientToken, connectivityType, dryRun, privateIpAddress, secondaryAllocationIds, secondaryPrivateIpAddressCount, secondaryPrivateIpAddresses, subnetId, tagSpecifications, vpcId } + +structure CreateNetworkAclRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The tags to assign to the network ACL. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the VPC. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateNetworkAclRequest where + schema := .struct "CreateNetworkAclRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "VpcId", required := true, xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "TagSpecifications" x.tagSpecifications, put "VpcId" x.vpcId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let tagSpecifications ← v.opt "TagSpecifications" + let vpcId ← v.req "VpcId" + return { clientToken, dryRun, tagSpecifications, vpcId } + +structure CreateNetworkInsightsPathRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : String + /-- The ID or ARN of the destination. -/ + destination : Option String := none + /-- The IP address of the destination. -/ + destinationIp : Option String := none + /-- The destination port. -/ + destinationPort : Option Int := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Scopes the analysis to network paths that match specific filters at the destination. -/ + filterAtDestination : Option PathRequestFilter := none + /-- Scopes the analysis to network paths that match specific filters at the source. -/ + filterAtSource : Option PathRequestFilter := none + /-- The protocol. -/ + protocol : Protocol_ + /-- The ID or ARN of the source. -/ + source : String + /-- The IP address of the source. -/ + sourceIp : Option String := none + /-- The tags to add to the path. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateNetworkInsightsPathRequest where + schema := .struct "CreateNetworkInsightsPathRequest" [({ name := "ClientToken", required := true }, .string), + ({ name := "Destination" }, .string), + ({ name := "DestinationIp" }, .string), + ({ name := "DestinationPort" }, .int), + ({ name := "DryRun" }, .bool), + ({ name := "FilterAtDestination" }, (Shape.schema PathRequestFilter)), + ({ name := "FilterAtSource" }, (Shape.schema PathRequestFilter)), + ({ name := "Protocol", required := true }, (Shape.schema Protocol_)), + ({ name := "Source", required := true }, .string), + ({ name := "SourceIp" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [put "ClientToken" x.clientToken, putOpt "Destination" x.destination, putOpt "DestinationIp" x.destinationIp, putOpt "DestinationPort" x.destinationPort, putOpt "DryRun" x.dryRun, putOpt "FilterAtDestination" x.filterAtDestination, putOpt "FilterAtSource" x.filterAtSource, put "Protocol" x.protocol, put "Source" x.source, putOpt "SourceIp" x.sourceIp, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.req "ClientToken" + let destination ← v.opt "Destination" + let destinationIp ← v.opt "DestinationIp" + let destinationPort ← v.opt "DestinationPort" + let dryRun ← v.opt "DryRun" + let filterAtDestination ← v.opt "FilterAtDestination" + let filterAtSource ← v.opt "FilterAtSource" + let protocol ← v.req "Protocol" + let source ← v.req "Source" + let sourceIp ← v.opt "SourceIp" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, destination, destinationIp, destinationPort, dryRun, filterAtDestination, filterAtSource, protocol, source, sourceIp, tagSpecifications } + +structure CreateNetworkInterfaceRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- A connection tracking specification for the network interface. -/ + connectionTrackingSpecification : Option ConnectionTrackingSpecificationRequest := none + /-- A description for the network interface. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- If you’re creating a network interface in a dual-stack or IPv6-only subnet, you have the option to assign a primary IPv6 IP address. -/ + enablePrimaryIpv6 : Option Bool := none + /-- The IDs of the security groups. -/ + groups : Option (List String) := none + /-- The type of network interface. -/ + interfaceType : Option NetworkInterfaceCreationType := none + /-- The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface. -/ + ipv4PrefixCount : Option Int := none + /-- The IPv4 prefixes assigned to the network interface. -/ + ipv4Prefixes : Option (List Ipv4PrefixSpecificationRequest) := none + /-- The number of IPv6 addresses to assign to a network interface. -/ + ipv6AddressCount : Option Int := none + /-- The IPv6 addresses from the IPv6 CIDR block range of your subnet. -/ + ipv6Addresses : Option (List InstanceIpv6Address) := none + /-- The number of IPv6 prefixes that Amazon Web Services automatically assigns to the network interface. -/ + ipv6PrefixCount : Option Int := none + /-- The IPv6 prefixes assigned to the network interface. -/ + ipv6Prefixes : Option (List Ipv6PrefixSpecificationRequest) := none + /-- Reserved for internal use. -/ + operator : Option OperatorRequest := none + /-- The primary private IPv4 address of the network interface. -/ + privateIpAddress : Option String := none + /-- The private IPv4 addresses. -/ + privateIpAddresses : Option (List PrivateIpAddressSpecification) := none + /-- The number of secondary private IPv4 addresses to assign to a network interface. -/ + secondaryPrivateIpAddressCount : Option Int := none + /-- The ID of the subnet to associate with the network interface. -/ + subnetId : String + /-- The tags to apply to the new network interface. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateNetworkInterfaceRequest where + schema := .struct "CreateNetworkInterfaceRequest" [({ name := "ClientToken" }, .string), + ({ name := "ConnectionTrackingSpecification" }, (Shape.schema ConnectionTrackingSpecificationRequest)), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "EnablePrimaryIpv6" }, .bool), + ({ name := "Groups", xmlName := some "SecurityGroupId" }, (.list .string "SecurityGroupId")), + ({ name := "InterfaceType" }, (Shape.schema NetworkInterfaceCreationType)), + ({ name := "Ipv4PrefixCount" }, .int), + ({ name := "Ipv4Prefixes", xmlName := some "Ipv4Prefix" }, (.list (Shape.schema Ipv4PrefixSpecificationRequest) "item")), + ({ name := "Ipv6AddressCount", xmlName := some "ipv6AddressCount", queryName := some "Ipv6AddressCount" }, .int), + ({ name := "Ipv6Addresses", xmlName := some "ipv6Addresses", queryName := some "Ipv6Addresses" }, (.list (Shape.schema InstanceIpv6Address) "item")), + ({ name := "Ipv6PrefixCount" }, .int), + ({ name := "Ipv6Prefixes", xmlName := some "Ipv6Prefix" }, (.list (Shape.schema Ipv6PrefixSpecificationRequest) "item")), + ({ name := "Operator" }, (Shape.schema OperatorRequest)), + ({ name := "PrivateIpAddress", xmlName := some "privateIpAddress", queryName := some "PrivateIpAddress" }, .string), + ({ name := "PrivateIpAddresses", xmlName := some "privateIpAddresses", queryName := some "PrivateIpAddresses" }, (.list (Shape.schema PrivateIpAddressSpecification) "item")), + ({ name := "SecondaryPrivateIpAddressCount", xmlName := some "secondaryPrivateIpAddressCount", queryName := some "SecondaryPrivateIpAddressCount" }, .int), + ({ name := "SubnetId", required := true, xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "ConnectionTrackingSpecification" x.connectionTrackingSpecification, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "EnablePrimaryIpv6" x.enablePrimaryIpv6, putOpt "Groups" x.groups, putOpt "InterfaceType" x.interfaceType, putOpt "Ipv4PrefixCount" x.ipv4PrefixCount, putOpt "Ipv4Prefixes" x.ipv4Prefixes, putOpt "Ipv6AddressCount" x.ipv6AddressCount, putOpt "Ipv6Addresses" x.ipv6Addresses, putOpt "Ipv6PrefixCount" x.ipv6PrefixCount, putOpt "Ipv6Prefixes" x.ipv6Prefixes, putOpt "Operator" x.operator, putOpt "PrivateIpAddress" x.privateIpAddress, putOpt "PrivateIpAddresses" x.privateIpAddresses, putOpt "SecondaryPrivateIpAddressCount" x.secondaryPrivateIpAddressCount, put "SubnetId" x.subnetId, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let connectionTrackingSpecification ← v.opt "ConnectionTrackingSpecification" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let enablePrimaryIpv6 ← v.opt "EnablePrimaryIpv6" + let groups ← v.opt "Groups" + let interfaceType ← v.opt "InterfaceType" + let ipv4PrefixCount ← v.opt "Ipv4PrefixCount" + let ipv4Prefixes ← v.opt "Ipv4Prefixes" + let ipv6AddressCount ← v.opt "Ipv6AddressCount" + let ipv6Addresses ← v.opt "Ipv6Addresses" + let ipv6PrefixCount ← v.opt "Ipv6PrefixCount" + let ipv6Prefixes ← v.opt "Ipv6Prefixes" + let operator ← v.opt "Operator" + let privateIpAddress ← v.opt "PrivateIpAddress" + let privateIpAddresses ← v.opt "PrivateIpAddresses" + let secondaryPrivateIpAddressCount ← v.opt "SecondaryPrivateIpAddressCount" + let subnetId ← v.req "SubnetId" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, connectionTrackingSpecification, description, dryRun, enablePrimaryIpv6, groups, interfaceType, ipv4PrefixCount, ipv4Prefixes, ipv6AddressCount, ipv6Addresses, ipv6PrefixCount, ipv6Prefixes, operator, privateIpAddress, privateIpAddresses, secondaryPrivateIpAddressCount, subnetId, tagSpecifications } + +structure CreatePlacementGroupRequest where + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- A name for the placement group. -/ + groupName : Option String := none + /-- Reserved for future use. -/ + linkedGroupId : Option String := none + /-- Reserved for internal use. -/ + operator : Option OperatorRequest := none + /-- The ID of a parent placement group. -/ + parentGroupId : Option String := none + /-- The number of partitions. -/ + partitionCount : Option Int := none + /-- Determines how placement groups spread instances. -/ + spreadLevel : Option SpreadLevel := none + /-- The placement strategy. -/ + strategy : Option PlacementStrategy := none + /-- The tags to apply to the new placement group. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreatePlacementGroupRequest where + schema := .struct "CreatePlacementGroupRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "GroupName", xmlName := some "groupName", queryName := some "GroupName" }, .string), + ({ name := "LinkedGroupId" }, .string), + ({ name := "Operator" }, (Shape.schema OperatorRequest)), + ({ name := "ParentGroupId" }, .string), + ({ name := "PartitionCount" }, .int), + ({ name := "SpreadLevel" }, (Shape.schema SpreadLevel)), + ({ name := "Strategy", xmlName := some "strategy", queryName := some "Strategy" }, (Shape.schema PlacementStrategy)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "GroupName" x.groupName, putOpt "LinkedGroupId" x.linkedGroupId, putOpt "Operator" x.operator, putOpt "ParentGroupId" x.parentGroupId, putOpt "PartitionCount" x.partitionCount, putOpt "SpreadLevel" x.spreadLevel, putOpt "Strategy" x.strategy, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let dryRun ← v.opt "DryRun" + let groupName ← v.opt "GroupName" + let linkedGroupId ← v.opt "LinkedGroupId" + let operator ← v.opt "Operator" + let parentGroupId ← v.opt "ParentGroupId" + let partitionCount ← v.opt "PartitionCount" + let spreadLevel ← v.opt "SpreadLevel" + let strategy ← v.opt "Strategy" + let tagSpecifications ← v.opt "TagSpecifications" + return { dryRun, groupName, linkedGroupId, operator, parentGroupId, partitionCount, spreadLevel, strategy, tagSpecifications } + +structure CreatePlacementGroupResult where + /-- Information about the placement group. -/ + placementGroup : Option PlacementGroup := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreatePlacementGroupResult where + schema := .struct "CreatePlacementGroupResult" [({ name := "PlacementGroup", xmlName := some "placementGroup", queryName := some "PlacementGroup" }, (Shape.schema PlacementGroup))] + toValue x := record [putOpt "PlacementGroup" x.placementGroup] + ofValue v := do + let placementGroup ← v.opt "PlacementGroup" + return { placementGroup } + +structure CreatePublicIpv4PoolRequest where + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The Availability Zone (AZ) or Local Zone (LZ) network border group that the resource that the IP address is assigned to is in. -/ + networkBorderGroup : Option String := none + /-- The key/value combination of a tag assigned to the resource. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreatePublicIpv4PoolRequest where + schema := .struct "CreatePublicIpv4PoolRequest" [({ name := "DryRun" }, .bool), + ({ name := "NetworkBorderGroup" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "NetworkBorderGroup" x.networkBorderGroup, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let dryRun ← v.opt "DryRun" + let networkBorderGroup ← v.opt "NetworkBorderGroup" + let tagSpecifications ← v.opt "TagSpecifications" + return { dryRun, networkBorderGroup, tagSpecifications } + +structure CreateReplaceRootVolumeTaskRequest where + /-- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Indicates whether to automatically delete the original root volume after the root volume replacement task completes. -/ + deleteReplacedRootVolume : Option Bool := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AMI to use to restore the root volume. -/ + imageId : Option String := none + /-- The ID of the instance for which to replace the root volume. -/ + instanceId : String + /-- The ID of the snapshot from which to restore the replacement root volume. -/ + snapshotId : Option String := none + /-- The tags to apply to the root volume replacement task. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the volume to use as the replacement root volume. -/ + volumeId : Option String := none + /-- Specifies the Amazon EBS Provisioned Rate for Volume Initialization (volume initialization rate), in MiB/s, at which to download the snapshot blocks from Amazon S3 to the replacement root volume. -/ + volumeInitializationRate : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateReplaceRootVolumeTaskRequest where + schema := .struct "CreateReplaceRootVolumeTaskRequest" [({ name := "ClientToken" }, .string), + ({ name := "DeleteReplacedRootVolume" }, .bool), + ({ name := "DryRun" }, .bool), + ({ name := "ImageId" }, .string), + ({ name := "InstanceId", required := true }, .string), + ({ name := "SnapshotId" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "VolumeId" }, .string), + ({ name := "VolumeInitializationRate" }, .int)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DeleteReplacedRootVolume" x.deleteReplacedRootVolume, putOpt "DryRun" x.dryRun, putOpt "ImageId" x.imageId, put "InstanceId" x.instanceId, putOpt "SnapshotId" x.snapshotId, putOpt "TagSpecifications" x.tagSpecifications, putOpt "VolumeId" x.volumeId, putOpt "VolumeInitializationRate" x.volumeInitializationRate] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let deleteReplacedRootVolume ← v.opt "DeleteReplacedRootVolume" + let dryRun ← v.opt "DryRun" + let imageId ← v.opt "ImageId" + let instanceId ← v.req "InstanceId" + let snapshotId ← v.opt "SnapshotId" + let tagSpecifications ← v.opt "TagSpecifications" + let volumeId ← v.opt "VolumeId" + let volumeInitializationRate ← v.opt "VolumeInitializationRate" + return { clientToken, deleteReplacedRootVolume, dryRun, imageId, instanceId, snapshotId, tagSpecifications, volumeId, volumeInitializationRate } + +structure CreateReplaceRootVolumeTaskResult where + /-- Information about the root volume replacement task. -/ + replaceRootVolumeTask : Option ReplaceRootVolumeTask := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateReplaceRootVolumeTaskResult where + schema := .struct "CreateReplaceRootVolumeTaskResult" [({ name := "ReplaceRootVolumeTask", xmlName := some "replaceRootVolumeTask", queryName := some "ReplaceRootVolumeTask" }, (Shape.schema ReplaceRootVolumeTask))] + toValue x := record [putOpt "ReplaceRootVolumeTask" x.replaceRootVolumeTask] + ofValue v := do + let replaceRootVolumeTask ← v.opt "ReplaceRootVolumeTask" + return { replaceRootVolumeTask } + +/-- Contains the parameters for CreateReservedInstancesListing. -/ +structure CreateReservedInstancesListingRequest where + /-- Unique, case-sensitive identifier you provide to ensure idempotency of your listings. -/ + clientToken : String + /-- The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace. -/ + instanceCount : Int + /-- A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term. -/ + priceSchedules : (List PriceScheduleSpecification) + /-- The ID of the active Standard Reserved Instance. -/ + reservedInstancesId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateReservedInstancesListingRequest where + schema := .struct "CreateReservedInstancesListingRequest" [({ name := "ClientToken", required := true, xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "InstanceCount", required := true, xmlName := some "instanceCount", queryName := some "InstanceCount" }, .int), + ({ name := "PriceSchedules", required := true, xmlName := some "priceSchedules", queryName := some "PriceSchedules" }, (.list (Shape.schema PriceScheduleSpecification) "item")), + ({ name := "ReservedInstancesId", required := true, xmlName := some "reservedInstancesId", queryName := some "ReservedInstancesId" }, .string)] + toValue x := record [put "ClientToken" x.clientToken, put "InstanceCount" x.instanceCount, put "PriceSchedules" x.priceSchedules, put "ReservedInstancesId" x.reservedInstancesId] + ofValue v := do + let clientToken ← v.req "ClientToken" + let instanceCount ← v.req "InstanceCount" + let priceSchedules ← v.req "PriceSchedules" + let reservedInstancesId ← v.req "ReservedInstancesId" + return { clientToken, instanceCount, priceSchedules, reservedInstancesId } + +structure CreateRestoreImageTaskRequest where + /-- The name of the Amazon S3 bucket that contains the stored AMI object. -/ + bucket : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The name for the restored AMI. -/ + name : Option String := none + /-- The name of the stored AMI object in the bucket. -/ + objectKey : String + /-- The tags to apply to the AMI and snapshots on restoration. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateRestoreImageTaskRequest where + schema := .struct "CreateRestoreImageTaskRequest" [({ name := "Bucket", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Name" }, .string), + ({ name := "ObjectKey", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [put "Bucket" x.bucket, putOpt "DryRun" x.dryRun, putOpt "Name" x.name, put "ObjectKey" x.objectKey, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let bucket ← v.req "Bucket" + let dryRun ← v.opt "DryRun" + let name ← v.opt "Name" + let objectKey ← v.req "ObjectKey" + let tagSpecifications ← v.opt "TagSpecifications" + return { bucket, dryRun, name, objectKey, tagSpecifications } + +structure CreateRouteServerEndpointRequest where + /-- Unique, case-sensitive identifier to ensure idempotency of the request. -/ + clientToken : Option String := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the route server for which to create an endpoint. -/ + routeServerId : String + /-- The ID of the subnet in which to create the route server endpoint. -/ + subnetId : String + /-- The tags to apply to the route server endpoint during creation. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateRouteServerEndpointRequest where + schema := .struct "CreateRouteServerEndpointRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "RouteServerId", required := true }, .string), + ({ name := "SubnetId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "RouteServerId" x.routeServerId, put "SubnetId" x.subnetId, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let routeServerId ← v.req "RouteServerId" + let subnetId ← v.req "SubnetId" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, dryRun, routeServerId, subnetId, tagSpecifications } + +structure CreateRouteServerEndpointResult where + /-- Information about the created route server endpoint. -/ + routeServerEndpoint : Option RouteServerEndpoint := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateRouteServerEndpointResult where + schema := .struct "CreateRouteServerEndpointResult" [({ name := "RouteServerEndpoint", xmlName := some "routeServerEndpoint", queryName := some "RouteServerEndpoint" }, (Shape.schema RouteServerEndpoint))] + toValue x := record [putOpt "RouteServerEndpoint" x.routeServerEndpoint] + ofValue v := do + let routeServerEndpoint ← v.opt "RouteServerEndpoint" + return { routeServerEndpoint } + +structure CreateRouteServerPeerRequest where + /-- The BGP options for the peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings. -/ + bgpOptions : RouteServerBgpOptionsRequest + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The IPv4 address of the peer device. -/ + peerAddress : String + /-- The ID of the route server endpoint for which to create a peer. -/ + routeServerEndpointId : String + /-- The tags to apply to the route server peer during creation. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateRouteServerPeerRequest where + schema := .struct "CreateRouteServerPeerRequest" [({ name := "BgpOptions", required := true }, (Shape.schema RouteServerBgpOptionsRequest)), + ({ name := "DryRun" }, .bool), + ({ name := "PeerAddress", required := true }, .string), + ({ name := "RouteServerEndpointId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [put "BgpOptions" x.bgpOptions, putOpt "DryRun" x.dryRun, put "PeerAddress" x.peerAddress, put "RouteServerEndpointId" x.routeServerEndpointId, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let bgpOptions ← v.req "BgpOptions" + let dryRun ← v.opt "DryRun" + let peerAddress ← v.req "PeerAddress" + let routeServerEndpointId ← v.req "RouteServerEndpointId" + let tagSpecifications ← v.opt "TagSpecifications" + return { bgpOptions, dryRun, peerAddress, routeServerEndpointId, tagSpecifications } + +structure CreateRouteServerRequest where + /-- The private Autonomous System Number (ASN) for the Amazon side of the BGP session. -/ + amazonSideAsn : Int + /-- Unique, case-sensitive identifier to ensure idempotency of the request. -/ + clientToken : Option String := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- Indicates whether routes should be persisted after all BGP sessions are terminated. -/ + persistRoutes : Option RouteServerPersistRoutesAction := none + /-- The number of minutes a route server will wait after BGP is re-established to unpersist the routes in the FIB and RIB. -/ + persistRoutesDuration : Option Int := none + /-- Indicates whether SNS notifications should be enabled for route server events. -/ + snsNotificationsEnabled : Option Bool := none + /-- The tags to apply to the route server during creation. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateRouteServerRequest where + schema := .struct "CreateRouteServerRequest" [({ name := "AmazonSideAsn", required := true }, .int), + ({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "PersistRoutes" }, (Shape.schema RouteServerPersistRoutesAction)), + ({ name := "PersistRoutesDuration" }, .int), + ({ name := "SnsNotificationsEnabled" }, .bool), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [put "AmazonSideAsn" x.amazonSideAsn, putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "PersistRoutes" x.persistRoutes, putOpt "PersistRoutesDuration" x.persistRoutesDuration, putOpt "SnsNotificationsEnabled" x.snsNotificationsEnabled, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let amazonSideAsn ← v.req "AmazonSideAsn" + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let persistRoutes ← v.opt "PersistRoutes" + let persistRoutesDuration ← v.opt "PersistRoutesDuration" + let snsNotificationsEnabled ← v.opt "SnsNotificationsEnabled" + let tagSpecifications ← v.opt "TagSpecifications" + return { amazonSideAsn, clientToken, dryRun, persistRoutes, persistRoutesDuration, snsNotificationsEnabled, tagSpecifications } + +structure CreateRouteServerResult where + /-- Information about the created route server. -/ + routeServer : Option RouteServer := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateRouteServerResult where + schema := .struct "CreateRouteServerResult" [({ name := "RouteServer", xmlName := some "routeServer", queryName := some "RouteServer" }, (Shape.schema RouteServer))] + toValue x := record [putOpt "RouteServer" x.routeServer] + ofValue v := do + let routeServer ← v.opt "RouteServer" + return { routeServer } + +structure CreateRouteTableRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The tags to assign to the route table. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the VPC. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateRouteTableRequest where + schema := .struct "CreateRouteTableRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "VpcId", required := true, xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "TagSpecifications" x.tagSpecifications, put "VpcId" x.vpcId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let tagSpecifications ← v.opt "TagSpecifications" + let vpcId ← v.req "VpcId" + return { clientToken, dryRun, tagSpecifications, vpcId } + +structure CreateSecondaryNetworkRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IPv4 CIDR block for the secondary network. -/ + ipv4CidrBlock : String + /-- The type of secondary network. -/ + networkType : SecondaryNetworkType + /-- The tags to assign to the secondary network. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateSecondaryNetworkRequest where + schema := .struct "CreateSecondaryNetworkRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Ipv4CidrBlock", required := true }, .string), + ({ name := "NetworkType", required := true }, (Shape.schema SecondaryNetworkType)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "Ipv4CidrBlock" x.ipv4CidrBlock, put "NetworkType" x.networkType, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let ipv4CidrBlock ← v.req "Ipv4CidrBlock" + let networkType ← v.req "NetworkType" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, dryRun, ipv4CidrBlock, networkType, tagSpecifications } + +structure CreateSecondarySubnetRequest where + /-- The Availability Zone for the secondary subnet. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone for the secondary subnet. -/ + availabilityZoneId : Option String := none + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IPv4 CIDR block for the secondary subnet. -/ + ipv4CidrBlock : String + /-- The ID of the secondary network in which to create the secondary subnet. -/ + secondaryNetworkId : String + /-- The tags to assign to the secondary subnet. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateSecondarySubnetRequest where + schema := .struct "CreateSecondarySubnetRequest" [({ name := "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId" }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Ipv4CidrBlock", required := true }, .string), + ({ name := "SecondaryNetworkId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "Ipv4CidrBlock" x.ipv4CidrBlock, put "SecondaryNetworkId" x.secondaryNetworkId, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let ipv4CidrBlock ← v.req "Ipv4CidrBlock" + let secondaryNetworkId ← v.req "SecondaryNetworkId" + let tagSpecifications ← v.opt "TagSpecifications" + return { availabilityZone, availabilityZoneId, clientToken, dryRun, ipv4CidrBlock, secondaryNetworkId, tagSpecifications } + +structure CreateSecurityGroupRequest where + /-- A description for the security group. -/ + description : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The name of the security group. -/ + groupName : String + /-- The tags to assign to the security group. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the VPC. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateSecurityGroupRequest where + schema := .struct "CreateSecurityGroupRequest" [({ name := "Description", required := true, xmlName := some "GroupDescription" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "GroupName", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "VpcId" }, .string)] + toValue x := record [put "Description" x.description, putOpt "DryRun" x.dryRun, put "GroupName" x.groupName, putOpt "TagSpecifications" x.tagSpecifications, putOpt "VpcId" x.vpcId] + ofValue v := do + let description ← v.req "Description" + let dryRun ← v.opt "DryRun" + let groupName ← v.req "GroupName" + let tagSpecifications ← v.opt "TagSpecifications" + let vpcId ← v.opt "VpcId" + return { description, dryRun, groupName, tagSpecifications, vpcId } + +structure CreateSnapshotRequest where + /-- A description for the snapshot. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Only supported for volumes in Local Zones. -/ + location : Option SnapshotLocationEnum := none + /-- Only supported for volumes on Outposts. -/ + outpostArn : Option String := none + /-- The tags to apply to the snapshot during creation. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the Amazon EBS volume. -/ + volumeId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateSnapshotRequest where + schema := .struct "CreateSnapshotRequest" [({ name := "Description" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Location" }, (Shape.schema SnapshotLocationEnum)), + ({ name := "OutpostArn" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "VolumeId", required := true }, .string)] + toValue x := record [putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "Location" x.location, putOpt "OutpostArn" x.outpostArn, putOpt "TagSpecifications" x.tagSpecifications, put "VolumeId" x.volumeId] + ofValue v := do + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let location ← v.opt "Location" + let outpostArn ← v.opt "OutpostArn" + let tagSpecifications ← v.opt "TagSpecifications" + let volumeId ← v.req "VolumeId" + return { description, dryRun, location, outpostArn, tagSpecifications, volumeId } + +structure CreateSnapshotsRequest where + /-- Copies the tags from the specified volume to corresponding snapshot. -/ + copyTagsFromSource : Option CopyTagsFromSource := none + /-- A description propagated to every snapshot specified by the instance. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The instance to specify which volumes should be included in the snapshots. -/ + instanceSpecification : InstanceSpecification + /-- Only supported for instances in Local Zones. -/ + location : Option SnapshotLocationEnum := none + /-- Only supported for instances on Outposts. -/ + outpostArn : Option String := none + /-- Tags to apply to every snapshot specified by the instance. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateSnapshotsRequest where + schema := .struct "CreateSnapshotsRequest" [({ name := "CopyTagsFromSource" }, (Shape.schema CopyTagsFromSource)), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceSpecification", required := true }, (Shape.schema InstanceSpecification)), + ({ name := "Location" }, (Shape.schema SnapshotLocationEnum)), + ({ name := "OutpostArn" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "CopyTagsFromSource" x.copyTagsFromSource, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, put "InstanceSpecification" x.instanceSpecification, putOpt "Location" x.location, putOpt "OutpostArn" x.outpostArn, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let copyTagsFromSource ← v.opt "CopyTagsFromSource" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let instanceSpecification ← v.req "InstanceSpecification" + let location ← v.opt "Location" + let outpostArn ← v.opt "OutpostArn" + let tagSpecifications ← v.opt "TagSpecifications" + return { copyTagsFromSource, description, dryRun, instanceSpecification, location, outpostArn, tagSpecifications } + +structure CreateSnapshotsResult where + /-- List of snapshots. -/ + snapshots : Option (List SnapshotInfo) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateSnapshotsResult where + schema := .struct "CreateSnapshotsResult" [({ name := "Snapshots", xmlName := some "snapshotSet", queryName := some "SnapshotSet" }, (.list (Shape.schema SnapshotInfo) "item"))] + toValue x := record [putOpt "Snapshots" x.snapshots] + ofValue v := do + let snapshots ← v.opt "Snapshots" + return { snapshots } + +/-- Contains the output of CreateSpotDatafeedSubscription. -/ +structure CreateSpotDatafeedSubscriptionResult where + /-- The Spot Instance data feed subscription. -/ + spotDatafeedSubscription : Option SpotDatafeedSubscription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateSpotDatafeedSubscriptionResult where + schema := .struct "CreateSpotDatafeedSubscriptionResult" [({ name := "SpotDatafeedSubscription", xmlName := some "spotDatafeedSubscription", queryName := some "SpotDatafeedSubscription" }, (Shape.schema SpotDatafeedSubscription))] + toValue x := record [putOpt "SpotDatafeedSubscription" x.spotDatafeedSubscription] + ofValue v := do + let spotDatafeedSubscription ← v.opt "SpotDatafeedSubscription" + return { spotDatafeedSubscription } + +structure CreateSubnetCidrReservationRequest where + /-- The IPv4 or IPV6 CIDR range to reserve. -/ + cidr : String + /-- The description to assign to the subnet CIDR reservation. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The type of reservation. -/ + reservationType : SubnetCidrReservationType + /-- The ID of the subnet. -/ + subnetId : String + /-- The tags to assign to the subnet CIDR reservation. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateSubnetCidrReservationRequest where + schema := .struct "CreateSubnetCidrReservationRequest" [({ name := "Cidr", required := true }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "ReservationType", required := true }, (Shape.schema SubnetCidrReservationType)), + ({ name := "SubnetId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [put "Cidr" x.cidr, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, put "ReservationType" x.reservationType, put "SubnetId" x.subnetId, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let cidr ← v.req "Cidr" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let reservationType ← v.req "ReservationType" + let subnetId ← v.req "SubnetId" + let tagSpecifications ← v.opt "TagSpecifications" + return { cidr, description, dryRun, reservationType, subnetId, tagSpecifications } + +structure CreateSubnetCidrReservationResult where + /-- Information about the created subnet CIDR reservation. -/ + subnetCidrReservation : Option SubnetCidrReservation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateSubnetCidrReservationResult where + schema := .struct "CreateSubnetCidrReservationResult" [({ name := "SubnetCidrReservation", xmlName := some "subnetCidrReservation", queryName := some "SubnetCidrReservation" }, (Shape.schema SubnetCidrReservation))] + toValue x := record [putOpt "SubnetCidrReservation" x.subnetCidrReservation] + ofValue v := do + let subnetCidrReservation ← v.opt "SubnetCidrReservation" + return { subnetCidrReservation } + +structure CreateSubnetRequest where + /-- The Availability Zone or Local Zone for the subnet. -/ + availabilityZone : Option String := none + /-- The AZ ID or the Local Zone ID of the subnet. -/ + availabilityZoneId : Option String := none + /-- The IPv4 network range for the subnet, in CIDR notation. -/ + cidrBlock : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- An IPv4 IPAM pool ID for the subnet. -/ + ipv4IpamPoolId : Option String := none + /-- An IPv4 netmask length for the subnet. -/ + ipv4NetmaskLength : Option Int := none + /-- The IPv6 network range for the subnet, in CIDR notation. -/ + ipv6CidrBlock : Option String := none + /-- An IPv6 IPAM pool ID for the subnet. -/ + ipv6IpamPoolId : Option String := none + /-- Indicates whether to create an IPv6 only subnet. -/ + ipv6Native : Option Bool := none + /-- An IPv6 netmask length for the subnet. -/ + ipv6NetmaskLength : Option Int := none + /-- The Amazon Resource Name (ARN) of the Outpost. -/ + outpostArn : Option String := none + /-- The tags to assign to the subnet. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the VPC. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateSubnetRequest where + schema := .struct "CreateSubnetRequest" [({ name := "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId" }, .string), + ({ name := "CidrBlock" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Ipv4IpamPoolId" }, .string), + ({ name := "Ipv4NetmaskLength" }, .int), + ({ name := "Ipv6CidrBlock" }, .string), + ({ name := "Ipv6IpamPoolId" }, .string), + ({ name := "Ipv6Native" }, .bool), + ({ name := "Ipv6NetmaskLength" }, .int), + ({ name := "OutpostArn" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "VpcId", required := true }, .string)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "CidrBlock" x.cidrBlock, putOpt "DryRun" x.dryRun, putOpt "Ipv4IpamPoolId" x.ipv4IpamPoolId, putOpt "Ipv4NetmaskLength" x.ipv4NetmaskLength, putOpt "Ipv6CidrBlock" x.ipv6CidrBlock, putOpt "Ipv6IpamPoolId" x.ipv6IpamPoolId, putOpt "Ipv6Native" x.ipv6Native, putOpt "Ipv6NetmaskLength" x.ipv6NetmaskLength, putOpt "OutpostArn" x.outpostArn, putOpt "TagSpecifications" x.tagSpecifications, put "VpcId" x.vpcId] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let cidrBlock ← v.opt "CidrBlock" + let dryRun ← v.opt "DryRun" + let ipv4IpamPoolId ← v.opt "Ipv4IpamPoolId" + let ipv4NetmaskLength ← v.opt "Ipv4NetmaskLength" + let ipv6CidrBlock ← v.opt "Ipv6CidrBlock" + let ipv6IpamPoolId ← v.opt "Ipv6IpamPoolId" + let ipv6Native ← v.opt "Ipv6Native" + let ipv6NetmaskLength ← v.opt "Ipv6NetmaskLength" + let outpostArn ← v.opt "OutpostArn" + let tagSpecifications ← v.opt "TagSpecifications" + let vpcId ← v.req "VpcId" + return { availabilityZone, availabilityZoneId, cidrBlock, dryRun, ipv4IpamPoolId, ipv4NetmaskLength, ipv6CidrBlock, ipv6IpamPoolId, ipv6Native, ipv6NetmaskLength, outpostArn, tagSpecifications, vpcId } + +structure CreateTrafficMirrorFilterRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The description of the Traffic Mirror filter. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The tags to assign to a Traffic Mirror filter. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTrafficMirrorFilterRequest where + schema := .struct "CreateTrafficMirrorFilterRequest" [({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, description, dryRun, tagSpecifications } + +structure CreateTrafficMirrorFilterRuleRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The description of the Traffic Mirror rule. -/ + description : Option String := none + /-- The destination CIDR block to assign to the Traffic Mirror rule. -/ + destinationCidrBlock : String + /-- The destination port range. -/ + destinationPortRange : Option TrafficMirrorPortRangeRequest := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The protocol, for example UDP, to assign to the Traffic Mirror rule. -/ + protocol : Option Int := none + /-- The action to take on the filtered traffic. -/ + ruleAction : TrafficMirrorRuleAction + /-- The number of the Traffic Mirror rule. -/ + ruleNumber : Int + /-- The source CIDR block to assign to the Traffic Mirror rule. -/ + sourceCidrBlock : String + /-- The source port range. -/ + sourcePortRange : Option TrafficMirrorPortRangeRequest := none + /-- Traffic Mirroring tags specifications. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The type of traffic. -/ + trafficDirection : TrafficDirection + /-- The ID of the filter that this rule is associated with. -/ + trafficMirrorFilterId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTrafficMirrorFilterRuleRequest where + schema := .struct "CreateTrafficMirrorFilterRuleRequest" [({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DestinationCidrBlock", required := true }, .string), + ({ name := "DestinationPortRange" }, (Shape.schema TrafficMirrorPortRangeRequest)), + ({ name := "DryRun" }, .bool), + ({ name := "Protocol" }, .int), + ({ name := "RuleAction", required := true }, (Shape.schema TrafficMirrorRuleAction)), + ({ name := "RuleNumber", required := true }, .int), + ({ name := "SourceCidrBlock", required := true }, .string), + ({ name := "SourcePortRange" }, (Shape.schema TrafficMirrorPortRangeRequest)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TrafficDirection", required := true }, (Shape.schema TrafficDirection)), + ({ name := "TrafficMirrorFilterId", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, put "DestinationCidrBlock" x.destinationCidrBlock, putOpt "DestinationPortRange" x.destinationPortRange, putOpt "DryRun" x.dryRun, putOpt "Protocol" x.protocol, put "RuleAction" x.ruleAction, put "RuleNumber" x.ruleNumber, put "SourceCidrBlock" x.sourceCidrBlock, putOpt "SourcePortRange" x.sourcePortRange, putOpt "TagSpecifications" x.tagSpecifications, put "TrafficDirection" x.trafficDirection, put "TrafficMirrorFilterId" x.trafficMirrorFilterId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let destinationCidrBlock ← v.req "DestinationCidrBlock" + let destinationPortRange ← v.opt "DestinationPortRange" + let dryRun ← v.opt "DryRun" + let protocol ← v.opt "Protocol" + let ruleAction ← v.req "RuleAction" + let ruleNumber ← v.req "RuleNumber" + let sourceCidrBlock ← v.req "SourceCidrBlock" + let sourcePortRange ← v.opt "SourcePortRange" + let tagSpecifications ← v.opt "TagSpecifications" + let trafficDirection ← v.req "TrafficDirection" + let trafficMirrorFilterId ← v.req "TrafficMirrorFilterId" + return { clientToken, description, destinationCidrBlock, destinationPortRange, dryRun, protocol, ruleAction, ruleNumber, sourceCidrBlock, sourcePortRange, tagSpecifications, trafficDirection, trafficMirrorFilterId } + +structure CreateTrafficMirrorFilterRuleResult where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The Traffic Mirror rule. -/ + trafficMirrorFilterRule : Option TrafficMirrorFilterRule := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTrafficMirrorFilterRuleResult where + schema := .struct "CreateTrafficMirrorFilterRuleResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "TrafficMirrorFilterRule", xmlName := some "trafficMirrorFilterRule", queryName := some "TrafficMirrorFilterRule" }, (Shape.schema TrafficMirrorFilterRule))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "TrafficMirrorFilterRule" x.trafficMirrorFilterRule] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let trafficMirrorFilterRule ← v.opt "TrafficMirrorFilterRule" + return { clientToken, trafficMirrorFilterRule } + +structure CreateTrafficMirrorSessionRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The description of the Traffic Mirror session. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the source network interface. -/ + networkInterfaceId : String + /-- The number of bytes in each packet to mirror. -/ + packetLength : Option Int := none + /-- The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. -/ + sessionNumber : Int + /-- The tags to assign to a Traffic Mirror session. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the Traffic Mirror filter. -/ + trafficMirrorFilterId : String + /-- The ID of the Traffic Mirror target. -/ + trafficMirrorTargetId : String + /-- The VXLAN ID for the Traffic Mirror session. -/ + virtualNetworkId : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTrafficMirrorSessionRequest where + schema := .struct "CreateTrafficMirrorSessionRequest" [({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "NetworkInterfaceId", required := true }, .string), + ({ name := "PacketLength" }, .int), + ({ name := "SessionNumber", required := true }, .int), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TrafficMirrorFilterId", required := true }, .string), + ({ name := "TrafficMirrorTargetId", required := true }, .string), + ({ name := "VirtualNetworkId" }, .int)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, put "NetworkInterfaceId" x.networkInterfaceId, putOpt "PacketLength" x.packetLength, put "SessionNumber" x.sessionNumber, putOpt "TagSpecifications" x.tagSpecifications, put "TrafficMirrorFilterId" x.trafficMirrorFilterId, put "TrafficMirrorTargetId" x.trafficMirrorTargetId, putOpt "VirtualNetworkId" x.virtualNetworkId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let networkInterfaceId ← v.req "NetworkInterfaceId" + let packetLength ← v.opt "PacketLength" + let sessionNumber ← v.req "SessionNumber" + let tagSpecifications ← v.opt "TagSpecifications" + let trafficMirrorFilterId ← v.req "TrafficMirrorFilterId" + let trafficMirrorTargetId ← v.req "TrafficMirrorTargetId" + let virtualNetworkId ← v.opt "VirtualNetworkId" + return { clientToken, description, dryRun, networkInterfaceId, packetLength, sessionNumber, tagSpecifications, trafficMirrorFilterId, trafficMirrorTargetId, virtualNetworkId } + +structure CreateTrafficMirrorSessionResult where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Information about the Traffic Mirror session. -/ + trafficMirrorSession : Option TrafficMirrorSession := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTrafficMirrorSessionResult where + schema := .struct "CreateTrafficMirrorSessionResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "TrafficMirrorSession", xmlName := some "trafficMirrorSession", queryName := some "TrafficMirrorSession" }, (Shape.schema TrafficMirrorSession))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "TrafficMirrorSession" x.trafficMirrorSession] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let trafficMirrorSession ← v.opt "TrafficMirrorSession" + return { clientToken, trafficMirrorSession } + +structure CreateTrafficMirrorTargetRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The description of the Traffic Mirror target. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Gateway Load Balancer endpoint. -/ + gatewayLoadBalancerEndpointId : Option String := none + /-- The network interface ID that is associated with the target. -/ + networkInterfaceId : Option String := none + /-- The Amazon Resource Name (ARN) of the Network Load Balancer that is associated with the target. -/ + networkLoadBalancerArn : Option String := none + /-- The tags to assign to the Traffic Mirror target. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTrafficMirrorTargetRequest where + schema := .struct "CreateTrafficMirrorTargetRequest" [({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "GatewayLoadBalancerEndpointId" }, .string), + ({ name := "NetworkInterfaceId" }, .string), + ({ name := "NetworkLoadBalancerArn" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "GatewayLoadBalancerEndpointId" x.gatewayLoadBalancerEndpointId, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "NetworkLoadBalancerArn" x.networkLoadBalancerArn, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let gatewayLoadBalancerEndpointId ← v.opt "GatewayLoadBalancerEndpointId" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let networkLoadBalancerArn ← v.opt "NetworkLoadBalancerArn" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, description, dryRun, gatewayLoadBalancerEndpointId, networkInterfaceId, networkLoadBalancerArn, tagSpecifications } + +structure CreateTrafficMirrorTargetResult where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Information about the Traffic Mirror target. -/ + trafficMirrorTarget : Option TrafficMirrorTarget := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTrafficMirrorTargetResult where + schema := .struct "CreateTrafficMirrorTargetResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "TrafficMirrorTarget", xmlName := some "trafficMirrorTarget", queryName := some "TrafficMirrorTarget" }, (Shape.schema TrafficMirrorTarget))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "TrafficMirrorTarget" x.trafficMirrorTarget] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let trafficMirrorTarget ← v.opt "TrafficMirrorTarget" + return { clientToken, trafficMirrorTarget } + +structure CreateTransitGatewayConnectPeerRequest where + /-- The BGP options for the Connect peer. -/ + bgpOptions : Option TransitGatewayConnectRequestBgpOptions := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The range of inside IP addresses that are used for BGP peering. -/ + insideCidrBlocks : (List String) + /-- The peer IP address (GRE outer IP address) on the appliance side of the Connect peer. -/ + peerAddress : String + /-- The tags to apply to the Connect peer. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The peer IP address (GRE outer IP address) on the transit gateway side of the Connect peer, which must be specified from a transit gateway CIDR block. -/ + transitGatewayAddress : Option String := none + /-- The ID of the Connect attachment. -/ + transitGatewayAttachmentId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayConnectPeerRequest where + schema := .struct "CreateTransitGatewayConnectPeerRequest" [({ name := "BgpOptions" }, (Shape.schema TransitGatewayConnectRequestBgpOptions)), + ({ name := "DryRun" }, .bool), + ({ name := "InsideCidrBlocks", required := true }, (.list .string "item")), + ({ name := "PeerAddress", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TransitGatewayAddress" }, .string), + ({ name := "TransitGatewayAttachmentId", required := true }, .string)] + toValue x := record [putOpt "BgpOptions" x.bgpOptions, putOpt "DryRun" x.dryRun, put "InsideCidrBlocks" x.insideCidrBlocks, put "PeerAddress" x.peerAddress, putOpt "TagSpecifications" x.tagSpecifications, putOpt "TransitGatewayAddress" x.transitGatewayAddress, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let bgpOptions ← v.opt "BgpOptions" + let dryRun ← v.opt "DryRun" + let insideCidrBlocks ← v.req "InsideCidrBlocks" + let peerAddress ← v.req "PeerAddress" + let tagSpecifications ← v.opt "TagSpecifications" + let transitGatewayAddress ← v.opt "TransitGatewayAddress" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + return { bgpOptions, dryRun, insideCidrBlocks, peerAddress, tagSpecifications, transitGatewayAddress, transitGatewayAttachmentId } + +structure CreateTransitGatewayConnectRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The Connect attachment options. -/ + options : CreateTransitGatewayConnectRequestOptions + /-- The tags to apply to the Connect attachment. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the transit gateway attachment. -/ + transportTransitGatewayAttachmentId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayConnectRequest where + schema := .struct "CreateTransitGatewayConnectRequest" [({ name := "DryRun" }, .bool), + ({ name := "Options", required := true }, (Shape.schema CreateTransitGatewayConnectRequestOptions)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TransportTransitGatewayAttachmentId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "Options" x.options, putOpt "TagSpecifications" x.tagSpecifications, put "TransportTransitGatewayAttachmentId" x.transportTransitGatewayAttachmentId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let options ← v.req "Options" + let tagSpecifications ← v.opt "TagSpecifications" + let transportTransitGatewayAttachmentId ← v.req "TransportTransitGatewayAttachmentId" + return { dryRun, options, tagSpecifications, transportTransitGatewayAttachmentId } + +structure CreateTransitGatewayMeteringPolicyRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the middlebox attachments to include in the metering policy. -/ + middleboxAttachmentIds : Option (List String) := none + /-- The tags to assign to the metering policy. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the transit gateway for which to create the metering policy. -/ + transitGatewayId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayMeteringPolicyRequest where + schema := .struct "CreateTransitGatewayMeteringPolicyRequest" [({ name := "DryRun" }, .bool), + ({ name := "MiddleboxAttachmentIds", xmlName := some "MiddleboxAttachmentId" }, (.list .string "member")), + ({ name := "TagSpecifications" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TransitGatewayId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "MiddleboxAttachmentIds" x.middleboxAttachmentIds, putOpt "TagSpecifications" x.tagSpecifications, put "TransitGatewayId" x.transitGatewayId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let middleboxAttachmentIds ← v.opt "MiddleboxAttachmentIds" + let tagSpecifications ← v.opt "TagSpecifications" + let transitGatewayId ← v.req "TransitGatewayId" + return { dryRun, middleboxAttachmentIds, tagSpecifications, transitGatewayId } + +structure CreateTransitGatewayMeteringPolicyResult where + /-- Information about the created transit gateway metering policy. -/ + transitGatewayMeteringPolicy : Option TransitGatewayMeteringPolicy := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayMeteringPolicyResult where + schema := .struct "CreateTransitGatewayMeteringPolicyResult" [({ name := "TransitGatewayMeteringPolicy", xmlName := some "transitGatewayMeteringPolicy", queryName := some "TransitGatewayMeteringPolicy" }, (Shape.schema TransitGatewayMeteringPolicy))] + toValue x := record [putOpt "TransitGatewayMeteringPolicy" x.transitGatewayMeteringPolicy] + ofValue v := do + let transitGatewayMeteringPolicy ← v.opt "TransitGatewayMeteringPolicy" + return { transitGatewayMeteringPolicy } + +structure CreateTransitGatewayMulticastDomainRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The options for the transit gateway multicast domain. -/ + options : Option CreateTransitGatewayMulticastDomainRequestOptions := none + /-- The tags for the transit gateway multicast domain. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the transit gateway. -/ + transitGatewayId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayMulticastDomainRequest where + schema := .struct "CreateTransitGatewayMulticastDomainRequest" [({ name := "DryRun" }, .bool), + ({ name := "Options" }, (Shape.schema CreateTransitGatewayMulticastDomainRequestOptions)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TransitGatewayId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Options" x.options, putOpt "TagSpecifications" x.tagSpecifications, put "TransitGatewayId" x.transitGatewayId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let options ← v.opt "Options" + let tagSpecifications ← v.opt "TagSpecifications" + let transitGatewayId ← v.req "TransitGatewayId" + return { dryRun, options, tagSpecifications, transitGatewayId } + +structure CreateTransitGatewayNetworkFunctionAttachmentRequest where + /-- The IDs of the Availability Zones for the attachment. -/ + availabilityZoneIds : Option (List String) := none + /-- The names of the Availability Zones for the attachment. -/ + availabilityZones : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The name of the Gateway Load Balancer endpoint service. -/ + serviceName : String + /-- The tags to apply to the network function attachment. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the transit gateway. -/ + transitGatewayId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayNetworkFunctionAttachmentRequest where + schema := .struct "CreateTransitGatewayNetworkFunctionAttachmentRequest" [({ name := "AvailabilityZoneIds", xmlName := some "AvailabilityZoneId" }, (.list .string "item")), + ({ name := "AvailabilityZones", xmlName := some "AvailabilityZone" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "ServiceName", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TransitGatewayId", required := true }, .string)] + toValue x := record [putOpt "AvailabilityZoneIds" x.availabilityZoneIds, putOpt "AvailabilityZones" x.availabilityZones, putOpt "DryRun" x.dryRun, put "ServiceName" x.serviceName, putOpt "TagSpecifications" x.tagSpecifications, put "TransitGatewayId" x.transitGatewayId] + ofValue v := do + let availabilityZoneIds ← v.opt "AvailabilityZoneIds" + let availabilityZones ← v.opt "AvailabilityZones" + let dryRun ← v.opt "DryRun" + let serviceName ← v.req "ServiceName" + let tagSpecifications ← v.opt "TagSpecifications" + let transitGatewayId ← v.req "TransitGatewayId" + return { availabilityZoneIds, availabilityZones, dryRun, serviceName, tagSpecifications, transitGatewayId } + +structure CreateTransitGatewayNetworkFunctionAttachmentResult where + /-- Information about the network function attachment. -/ + transitGatewayNetworkFunctionAttachment : Option TransitGatewayNetworkFunctionAttachment := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayNetworkFunctionAttachmentResult where + schema := .struct "CreateTransitGatewayNetworkFunctionAttachmentResult" [({ name := "TransitGatewayNetworkFunctionAttachment", xmlName := some "transitGatewayNetworkFunctionAttachment", queryName := some "TransitGatewayNetworkFunctionAttachment" }, (Shape.schema TransitGatewayNetworkFunctionAttachment))] + toValue x := record [putOpt "TransitGatewayNetworkFunctionAttachment" x.transitGatewayNetworkFunctionAttachment] + ofValue v := do + let transitGatewayNetworkFunctionAttachment ← v.opt "TransitGatewayNetworkFunctionAttachment" + return { transitGatewayNetworkFunctionAttachment } + +structure CreateTransitGatewayPeeringAttachmentRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Requests a transit gateway peering attachment. -/ + options : Option CreateTransitGatewayPeeringAttachmentRequestOptions := none + /-- The ID of the Amazon Web Services account that owns the peer transit gateway. -/ + peerAccountId : String + /-- The Region where the peer transit gateway is located. -/ + peerRegion : String + /-- The ID of the peer transit gateway with which to create the peering attachment. -/ + peerTransitGatewayId : String + /-- The tags to apply to the transit gateway peering attachment. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the transit gateway. -/ + transitGatewayId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayPeeringAttachmentRequest where + schema := .struct "CreateTransitGatewayPeeringAttachmentRequest" [({ name := "DryRun" }, .bool), + ({ name := "Options" }, (Shape.schema CreateTransitGatewayPeeringAttachmentRequestOptions)), + ({ name := "PeerAccountId", required := true }, .string), + ({ name := "PeerRegion", required := true }, .string), + ({ name := "PeerTransitGatewayId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TransitGatewayId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Options" x.options, put "PeerAccountId" x.peerAccountId, put "PeerRegion" x.peerRegion, put "PeerTransitGatewayId" x.peerTransitGatewayId, putOpt "TagSpecifications" x.tagSpecifications, put "TransitGatewayId" x.transitGatewayId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let options ← v.opt "Options" + let peerAccountId ← v.req "PeerAccountId" + let peerRegion ← v.req "PeerRegion" + let peerTransitGatewayId ← v.req "PeerTransitGatewayId" + let tagSpecifications ← v.opt "TagSpecifications" + let transitGatewayId ← v.req "TransitGatewayId" + return { dryRun, options, peerAccountId, peerRegion, peerTransitGatewayId, tagSpecifications, transitGatewayId } + +structure CreateTransitGatewayPolicyTableEntryRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The matching criteria for the policy table entry. -/ + policyRule : Option TransitGatewayRequestPolicyRule := none + /-- The rule number for the policy table entry. -/ + policyRuleNumber : String + /-- The ID of the transit gateway route table to use for traffic matching this rule. -/ + targetRouteTableId : String + /-- The ID of the transit gateway policy table. -/ + transitGatewayPolicyTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayPolicyTableEntryRequest where + schema := .struct "CreateTransitGatewayPolicyTableEntryRequest" [({ name := "DryRun" }, .bool), + ({ name := "PolicyRule" }, (Shape.schema TransitGatewayRequestPolicyRule)), + ({ name := "PolicyRuleNumber", required := true }, .string), + ({ name := "TargetRouteTableId", required := true }, .string), + ({ name := "TransitGatewayPolicyTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "PolicyRule" x.policyRule, put "PolicyRuleNumber" x.policyRuleNumber, put "TargetRouteTableId" x.targetRouteTableId, put "TransitGatewayPolicyTableId" x.transitGatewayPolicyTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let policyRule ← v.opt "PolicyRule" + let policyRuleNumber ← v.req "PolicyRuleNumber" + let targetRouteTableId ← v.req "TargetRouteTableId" + let transitGatewayPolicyTableId ← v.req "TransitGatewayPolicyTableId" + return { dryRun, policyRule, policyRuleNumber, targetRouteTableId, transitGatewayPolicyTableId } + +structure CreateTransitGatewayPolicyTableRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The tags specification for the transit gateway policy table created during the request. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the transit gateway used for the policy table. -/ + transitGatewayId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayPolicyTableRequest where + schema := .struct "CreateTransitGatewayPolicyTableRequest" [({ name := "DryRun" }, .bool), + ({ name := "TagSpecifications" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TransitGatewayId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "TagSpecifications" x.tagSpecifications, put "TransitGatewayId" x.transitGatewayId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let tagSpecifications ← v.opt "TagSpecifications" + let transitGatewayId ← v.req "TransitGatewayId" + return { dryRun, tagSpecifications, transitGatewayId } + +structure CreateTransitGatewayPolicyTableResult where + /-- Describes the created transit gateway policy table. -/ + transitGatewayPolicyTable : Option TransitGatewayPolicyTable := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayPolicyTableResult where + schema := .struct "CreateTransitGatewayPolicyTableResult" [({ name := "TransitGatewayPolicyTable", xmlName := some "transitGatewayPolicyTable", queryName := some "TransitGatewayPolicyTable" }, (Shape.schema TransitGatewayPolicyTable))] + toValue x := record [putOpt "TransitGatewayPolicyTable" x.transitGatewayPolicyTable] + ofValue v := do + let transitGatewayPolicyTable ← v.opt "TransitGatewayPolicyTable" + return { transitGatewayPolicyTable } + +structure CreateTransitGatewayRequest where + /-- A description of the transit gateway. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The transit gateway options. -/ + options : Option TransitGatewayRequestOptions := none + /-- The tags to apply to the transit gateway. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayRequest where + schema := .struct "CreateTransitGatewayRequest" [({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Options" }, (Shape.schema TransitGatewayRequestOptions)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "Options" x.options, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let options ← v.opt "Options" + let tagSpecifications ← v.opt "TagSpecifications" + return { description, dryRun, options, tagSpecifications } + +structure CreateTransitGatewayRouteTableAnnouncementRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the peering attachment. -/ + peeringAttachmentId : String + /-- The tags specifications applied to the transit gateway route table announcement. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the transit gateway route table. -/ + transitGatewayRouteTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayRouteTableAnnouncementRequest where + schema := .struct "CreateTransitGatewayRouteTableAnnouncementRequest" [({ name := "DryRun" }, .bool), + ({ name := "PeeringAttachmentId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TransitGatewayRouteTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "PeeringAttachmentId" x.peeringAttachmentId, putOpt "TagSpecifications" x.tagSpecifications, put "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let peeringAttachmentId ← v.req "PeeringAttachmentId" + let tagSpecifications ← v.opt "TagSpecifications" + let transitGatewayRouteTableId ← v.req "TransitGatewayRouteTableId" + return { dryRun, peeringAttachmentId, tagSpecifications, transitGatewayRouteTableId } + +structure CreateTransitGatewayRouteTableAnnouncementResult where + /-- Provides details about the transit gateway route table announcement. -/ + transitGatewayRouteTableAnnouncement : Option TransitGatewayRouteTableAnnouncement := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayRouteTableAnnouncementResult where + schema := .struct "CreateTransitGatewayRouteTableAnnouncementResult" [({ name := "TransitGatewayRouteTableAnnouncement", xmlName := some "transitGatewayRouteTableAnnouncement", queryName := some "TransitGatewayRouteTableAnnouncement" }, (Shape.schema TransitGatewayRouteTableAnnouncement))] + toValue x := record [putOpt "TransitGatewayRouteTableAnnouncement" x.transitGatewayRouteTableAnnouncement] + ofValue v := do + let transitGatewayRouteTableAnnouncement ← v.opt "TransitGatewayRouteTableAnnouncement" + return { transitGatewayRouteTableAnnouncement } + +structure CreateTransitGatewayRouteTableRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The tags to apply to the transit gateway route table. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the transit gateway. -/ + transitGatewayId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayRouteTableRequest where + schema := .struct "CreateTransitGatewayRouteTableRequest" [({ name := "DryRun" }, .bool), + ({ name := "TagSpecifications" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TransitGatewayId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "TagSpecifications" x.tagSpecifications, put "TransitGatewayId" x.transitGatewayId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let tagSpecifications ← v.opt "TagSpecifications" + let transitGatewayId ← v.req "TransitGatewayId" + return { dryRun, tagSpecifications, transitGatewayId } + +structure CreateTransitGatewayRouteTableResult where + /-- Information about the transit gateway route table. -/ + transitGatewayRouteTable : Option TransitGatewayRouteTable := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayRouteTableResult where + schema := .struct "CreateTransitGatewayRouteTableResult" [({ name := "TransitGatewayRouteTable", xmlName := some "transitGatewayRouteTable", queryName := some "TransitGatewayRouteTable" }, (Shape.schema TransitGatewayRouteTable))] + toValue x := record [putOpt "TransitGatewayRouteTable" x.transitGatewayRouteTable] + ofValue v := do + let transitGatewayRouteTable ← v.opt "TransitGatewayRouteTable" + return { transitGatewayRouteTable } + +structure CreateTransitGatewayVpcAttachmentRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The VPC attachment options. -/ + options : Option CreateTransitGatewayVpcAttachmentRequestOptions := none + /-- The IDs of one or more subnets. -/ + subnetIds : (List String) + /-- The tags to apply to the VPC attachment. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the transit gateway. -/ + transitGatewayId : String + /-- The ID of the VPC. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayVpcAttachmentRequest where + schema := .struct "CreateTransitGatewayVpcAttachmentRequest" [({ name := "DryRun" }, .bool), + ({ name := "Options" }, (Shape.schema CreateTransitGatewayVpcAttachmentRequestOptions)), + ({ name := "SubnetIds", required := true }, (.list .string "item")), + ({ name := "TagSpecifications" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TransitGatewayId", required := true }, .string), + ({ name := "VpcId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Options" x.options, put "SubnetIds" x.subnetIds, putOpt "TagSpecifications" x.tagSpecifications, put "TransitGatewayId" x.transitGatewayId, put "VpcId" x.vpcId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let options ← v.opt "Options" + let subnetIds ← v.req "SubnetIds" + let tagSpecifications ← v.opt "TagSpecifications" + let transitGatewayId ← v.req "TransitGatewayId" + let vpcId ← v.req "VpcId" + return { dryRun, options, subnetIds, tagSpecifications, transitGatewayId, vpcId } + +structure CreateVerifiedAccessEndpointRequest where + /-- The DNS name for users to reach your application. -/ + applicationDomain : Option String := none + /-- The type of attachment. -/ + attachmentType : VerifiedAccessEndpointAttachmentType + /-- The CIDR options. -/ + cidrOptions : Option CreateVerifiedAccessEndpointCidrOptions := none + /-- A unique, case-sensitive token that you provide to ensure idempotency of your modification request. -/ + clientToken : Option String := none + /-- A description for the Verified Access endpoint. -/ + description : Option String := none + /-- The ARN of the public TLS/SSL certificate in Amazon Web Services Certificate Manager to associate with the endpoint. -/ + domainCertificateArn : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- A custom identifier that is prepended to the DNS name that is generated for the endpoint. -/ + endpointDomainPrefix : Option String := none + /-- The type of Verified Access endpoint to create. -/ + endpointType : VerifiedAccessEndpointType + /-- The load balancer details. -/ + loadBalancerOptions : Option CreateVerifiedAccessEndpointLoadBalancerOptions := none + /-- The network interface details. -/ + networkInterfaceOptions : Option CreateVerifiedAccessEndpointEniOptions := none + /-- The Verified Access policy document. -/ + policyDocument : Option String := none + /-- The RDS details. -/ + rdsOptions : Option CreateVerifiedAccessEndpointRdsOptions := none + /-- The IDs of the security groups to associate with the Verified Access endpoint. -/ + securityGroupIds : Option (List String) := none + /-- The options for server side encryption. -/ + sseSpecification : Option VerifiedAccessSseSpecificationRequest := none + /-- The tags to assign to the Verified Access endpoint. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the Verified Access group to associate the endpoint with. -/ + verifiedAccessGroupId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVerifiedAccessEndpointRequest where + schema := .struct "CreateVerifiedAccessEndpointRequest" [({ name := "ApplicationDomain" }, .string), + ({ name := "AttachmentType", required := true }, (Shape.schema VerifiedAccessEndpointAttachmentType)), + ({ name := "CidrOptions" }, (Shape.schema CreateVerifiedAccessEndpointCidrOptions)), + ({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DomainCertificateArn" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "EndpointDomainPrefix" }, .string), + ({ name := "EndpointType", required := true }, (Shape.schema VerifiedAccessEndpointType)), + ({ name := "LoadBalancerOptions" }, (Shape.schema CreateVerifiedAccessEndpointLoadBalancerOptions)), + ({ name := "NetworkInterfaceOptions" }, (Shape.schema CreateVerifiedAccessEndpointEniOptions)), + ({ name := "PolicyDocument" }, .string), + ({ name := "RdsOptions" }, (Shape.schema CreateVerifiedAccessEndpointRdsOptions)), + ({ name := "SecurityGroupIds", xmlName := some "SecurityGroupId" }, (.list .string "item")), + ({ name := "SseSpecification" }, (Shape.schema VerifiedAccessSseSpecificationRequest)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "VerifiedAccessGroupId", required := true }, .string)] + toValue x := record [putOpt "ApplicationDomain" x.applicationDomain, put "AttachmentType" x.attachmentType, putOpt "CidrOptions" x.cidrOptions, putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DomainCertificateArn" x.domainCertificateArn, putOpt "DryRun" x.dryRun, putOpt "EndpointDomainPrefix" x.endpointDomainPrefix, put "EndpointType" x.endpointType, putOpt "LoadBalancerOptions" x.loadBalancerOptions, putOpt "NetworkInterfaceOptions" x.networkInterfaceOptions, putOpt "PolicyDocument" x.policyDocument, putOpt "RdsOptions" x.rdsOptions, putOpt "SecurityGroupIds" x.securityGroupIds, putOpt "SseSpecification" x.sseSpecification, putOpt "TagSpecifications" x.tagSpecifications, put "VerifiedAccessGroupId" x.verifiedAccessGroupId] + ofValue v := do + let applicationDomain ← v.opt "ApplicationDomain" + let attachmentType ← v.req "AttachmentType" + let cidrOptions ← v.opt "CidrOptions" + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let domainCertificateArn ← v.opt "DomainCertificateArn" + let dryRun ← v.opt "DryRun" + let endpointDomainPrefix ← v.opt "EndpointDomainPrefix" + let endpointType ← v.req "EndpointType" + let loadBalancerOptions ← v.opt "LoadBalancerOptions" + let networkInterfaceOptions ← v.opt "NetworkInterfaceOptions" + let policyDocument ← v.opt "PolicyDocument" + let rdsOptions ← v.opt "RdsOptions" + let securityGroupIds ← v.opt "SecurityGroupIds" + let sseSpecification ← v.opt "SseSpecification" + let tagSpecifications ← v.opt "TagSpecifications" + let verifiedAccessGroupId ← v.req "VerifiedAccessGroupId" + return { applicationDomain, attachmentType, cidrOptions, clientToken, description, domainCertificateArn, dryRun, endpointDomainPrefix, endpointType, loadBalancerOptions, networkInterfaceOptions, policyDocument, rdsOptions, securityGroupIds, sseSpecification, tagSpecifications, verifiedAccessGroupId } + +structure CreateVerifiedAccessGroupRequest where + /-- A unique, case-sensitive token that you provide to ensure idempotency of your modification request. -/ + clientToken : Option String := none + /-- A description for the Verified Access group. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The Verified Access policy document. -/ + policyDocument : Option String := none + /-- The options for server side encryption. -/ + sseSpecification : Option VerifiedAccessSseSpecificationRequest := none + /-- The tags to assign to the Verified Access group. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the Verified Access instance. -/ + verifiedAccessInstanceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVerifiedAccessGroupRequest where + schema := .struct "CreateVerifiedAccessGroupRequest" [({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "PolicyDocument" }, .string), + ({ name := "SseSpecification" }, (Shape.schema VerifiedAccessSseSpecificationRequest)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "VerifiedAccessInstanceId", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "PolicyDocument" x.policyDocument, putOpt "SseSpecification" x.sseSpecification, putOpt "TagSpecifications" x.tagSpecifications, put "VerifiedAccessInstanceId" x.verifiedAccessInstanceId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let policyDocument ← v.opt "PolicyDocument" + let sseSpecification ← v.opt "SseSpecification" + let tagSpecifications ← v.opt "TagSpecifications" + let verifiedAccessInstanceId ← v.req "VerifiedAccessInstanceId" + return { clientToken, description, dryRun, policyDocument, sseSpecification, tagSpecifications, verifiedAccessInstanceId } + +structure CreateVerifiedAccessGroupResult where + /-- Details about the Verified Access group. -/ + verifiedAccessGroup : Option VerifiedAccessGroup := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVerifiedAccessGroupResult where + schema := .struct "CreateVerifiedAccessGroupResult" [({ name := "VerifiedAccessGroup", xmlName := some "verifiedAccessGroup", queryName := some "VerifiedAccessGroup" }, (Shape.schema VerifiedAccessGroup))] + toValue x := record [putOpt "VerifiedAccessGroup" x.verifiedAccessGroup] + ofValue v := do + let verifiedAccessGroup ← v.opt "VerifiedAccessGroup" + return { verifiedAccessGroup } + +structure CreateVerifiedAccessInstanceRequest where + /-- The custom subdomain. -/ + cidrEndpointsCustomSubDomain : Option String := none + /-- A unique, case-sensitive token that you provide to ensure idempotency of your modification request. -/ + clientToken : Option String := none + /-- A description for the Verified Access instance. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Enable or disable support for Federal Information Processing Standards (FIPS) on the instance. -/ + fipsEnabled : Option Bool := none + /-- The tags to assign to the Verified Access instance. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVerifiedAccessInstanceRequest where + schema := .struct "CreateVerifiedAccessInstanceRequest" [({ name := "CidrEndpointsCustomSubDomain" }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "FIPSEnabled" }, .bool), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "CidrEndpointsCustomSubDomain" x.cidrEndpointsCustomSubDomain, putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "FIPSEnabled" x.fipsEnabled, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let cidrEndpointsCustomSubDomain ← v.opt "CidrEndpointsCustomSubDomain" + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let fipsEnabled ← v.opt "FIPSEnabled" + let tagSpecifications ← v.opt "TagSpecifications" + return { cidrEndpointsCustomSubDomain, clientToken, description, dryRun, fipsEnabled, tagSpecifications } + +structure CreateVerifiedAccessTrustProviderRequest where + /-- A unique, case-sensitive token that you provide to ensure idempotency of your modification request. -/ + clientToken : Option String := none + /-- A description for the Verified Access trust provider. -/ + description : Option String := none + /-- The options for a device-based trust provider. -/ + deviceOptions : Option CreateVerifiedAccessTrustProviderDeviceOptions := none + /-- The type of device-based trust provider. -/ + deviceTrustProviderType : Option DeviceTrustProviderType := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The OpenID Connect (OIDC) options. -/ + nativeApplicationOidcOptions : Option CreateVerifiedAccessNativeApplicationOidcOptions := none + /-- The options for a OpenID Connect-compatible user-identity trust provider. -/ + oidcOptions : Option CreateVerifiedAccessTrustProviderOidcOptions := none + /-- The identifier to be used when working with policy rules. -/ + policyReferenceName : String + /-- The options for server side encryption. -/ + sseSpecification : Option VerifiedAccessSseSpecificationRequest := none + /-- The tags to assign to the Verified Access trust provider. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The type of trust provider. -/ + trustProviderType : TrustProviderType + /-- The type of user-based trust provider. -/ + userTrustProviderType : Option UserTrustProviderType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVerifiedAccessTrustProviderRequest where + schema := .struct "CreateVerifiedAccessTrustProviderRequest" [({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DeviceOptions" }, (Shape.schema CreateVerifiedAccessTrustProviderDeviceOptions)), + ({ name := "DeviceTrustProviderType" }, (Shape.schema DeviceTrustProviderType)), + ({ name := "DryRun" }, .bool), + ({ name := "NativeApplicationOidcOptions" }, (Shape.schema CreateVerifiedAccessNativeApplicationOidcOptions)), + ({ name := "OidcOptions" }, (Shape.schema CreateVerifiedAccessTrustProviderOidcOptions)), + ({ name := "PolicyReferenceName", required := true }, .string), + ({ name := "SseSpecification" }, (Shape.schema VerifiedAccessSseSpecificationRequest)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TrustProviderType", required := true }, (Shape.schema TrustProviderType)), + ({ name := "UserTrustProviderType" }, (Shape.schema UserTrustProviderType))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DeviceOptions" x.deviceOptions, putOpt "DeviceTrustProviderType" x.deviceTrustProviderType, putOpt "DryRun" x.dryRun, putOpt "NativeApplicationOidcOptions" x.nativeApplicationOidcOptions, putOpt "OidcOptions" x.oidcOptions, put "PolicyReferenceName" x.policyReferenceName, putOpt "SseSpecification" x.sseSpecification, putOpt "TagSpecifications" x.tagSpecifications, put "TrustProviderType" x.trustProviderType, putOpt "UserTrustProviderType" x.userTrustProviderType] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let deviceOptions ← v.opt "DeviceOptions" + let deviceTrustProviderType ← v.opt "DeviceTrustProviderType" + let dryRun ← v.opt "DryRun" + let nativeApplicationOidcOptions ← v.opt "NativeApplicationOidcOptions" + let oidcOptions ← v.opt "OidcOptions" + let policyReferenceName ← v.req "PolicyReferenceName" + let sseSpecification ← v.opt "SseSpecification" + let tagSpecifications ← v.opt "TagSpecifications" + let trustProviderType ← v.req "TrustProviderType" + let userTrustProviderType ← v.opt "UserTrustProviderType" + return { clientToken, description, deviceOptions, deviceTrustProviderType, dryRun, nativeApplicationOidcOptions, oidcOptions, policyReferenceName, sseSpecification, tagSpecifications, trustProviderType, userTrustProviderType } + +structure CreateVerifiedAccessTrustProviderResult where + /-- Details about the Verified Access trust provider. -/ + verifiedAccessTrustProvider : Option VerifiedAccessTrustProvider := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVerifiedAccessTrustProviderResult where + schema := .struct "CreateVerifiedAccessTrustProviderResult" [({ name := "VerifiedAccessTrustProvider", xmlName := some "verifiedAccessTrustProvider", queryName := some "VerifiedAccessTrustProvider" }, (Shape.schema VerifiedAccessTrustProvider))] + toValue x := record [putOpt "VerifiedAccessTrustProvider" x.verifiedAccessTrustProvider] + ofValue v := do + let verifiedAccessTrustProvider ← v.opt "VerifiedAccessTrustProvider" + return { verifiedAccessTrustProvider } + +/-- Describes modifications to the list of create volume permissions for a volume. -/ +structure CreateVolumePermissionModifications where + /-- Adds the specified Amazon Web Services account ID or group to the list. -/ + add : Option (List CreateVolumePermission) := none + /-- Removes the specified Amazon Web Services account ID or group from the list. -/ + remove : Option (List CreateVolumePermission) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVolumePermissionModifications where + schema := .struct "CreateVolumePermissionModifications" [({ name := "Add" }, (.list (Shape.schema CreateVolumePermission) "item")), + ({ name := "Remove" }, (.list (Shape.schema CreateVolumePermission) "item"))] + toValue x := record [putOpt "Add" x.add, putOpt "Remove" x.remove] + ofValue v := do + let add ← v.opt "Add" + let remove ← v.opt "Remove" + return { add, remove } + +structure CreateVolumeRequest where + /-- The ID of the Availability Zone in which to create the volume. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone in which to create the volume. -/ + availabilityZoneId : Option String := none + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Indicates whether the volume should be encrypted. -/ + encrypted : Option Bool := none + /-- The number of I/O operations per second (IOPS) to provision for the volume. -/ + iops : Option Int := none + /-- The identifier of the KMS key to use for Amazon EBS encryption. -/ + kmsKeyId : Option String := none + /-- Indicates whether to enable Amazon EBS Multi-Attach. -/ + multiAttachEnabled : Option Bool := none + /-- Reserved for internal use. -/ + operator : Option OperatorRequest := none + /-- The Amazon Resource Name (ARN) of the Outpost on which to create the volume. -/ + outpostArn : Option String := none + /-- The size of the volume, in GiBs. -/ + size : Option Int := none + /-- The snapshot from which to create the volume. -/ + snapshotId : Option String := none + /-- The tags to apply to the volume during creation. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The throughput to provision for the volume, in MiB/s. -/ + throughput : Option Int := none + /-- Specifies the Amazon EBS Provisioned Rate for Volume Initialization (volume initialization rate), in MiB/s, at which to download the snapshot blocks from Amazon S3 to the volume. -/ + volumeInitializationRate : Option Int := none + /-- The volume type. -/ + volumeType : Option VolumeType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVolumeRequest where + schema := .struct "CreateVolumeRequest" [({ name := "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId" }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Encrypted", xmlName := some "encrypted", queryName := some "Encrypted" }, .bool), + ({ name := "Iops" }, .int), + ({ name := "KmsKeyId" }, .string), + ({ name := "MultiAttachEnabled" }, .bool), + ({ name := "Operator" }, (Shape.schema OperatorRequest)), + ({ name := "OutpostArn" }, .string), + ({ name := "Size" }, .int), + ({ name := "SnapshotId" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "Throughput" }, .int), + ({ name := "VolumeInitializationRate" }, .int), + ({ name := "VolumeType" }, (Shape.schema VolumeType))] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "Encrypted" x.encrypted, putOpt "Iops" x.iops, putOpt "KmsKeyId" x.kmsKeyId, putOpt "MultiAttachEnabled" x.multiAttachEnabled, putOpt "Operator" x.operator, putOpt "OutpostArn" x.outpostArn, putOpt "Size" x.size, putOpt "SnapshotId" x.snapshotId, putOpt "TagSpecifications" x.tagSpecifications, putOpt "Throughput" x.throughput, putOpt "VolumeInitializationRate" x.volumeInitializationRate, putOpt "VolumeType" x.volumeType] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let encrypted ← v.opt "Encrypted" + let iops ← v.opt "Iops" + let kmsKeyId ← v.opt "KmsKeyId" + let multiAttachEnabled ← v.opt "MultiAttachEnabled" + let operator ← v.opt "Operator" + let outpostArn ← v.opt "OutpostArn" + let size ← v.opt "Size" + let snapshotId ← v.opt "SnapshotId" + let tagSpecifications ← v.opt "TagSpecifications" + let throughput ← v.opt "Throughput" + let volumeInitializationRate ← v.opt "VolumeInitializationRate" + let volumeType ← v.opt "VolumeType" + return { availabilityZone, availabilityZoneId, clientToken, dryRun, encrypted, iops, kmsKeyId, multiAttachEnabled, operator, outpostArn, size, snapshotId, tagSpecifications, throughput, volumeInitializationRate, volumeType } + +structure CreateVpcBlockPublicAccessExclusionRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The exclusion mode for internet gateway traffic. -/ + internetGatewayExclusionMode : InternetGatewayExclusionMode + /-- A subnet ID. -/ + subnetId : Option String := none + /-- tag - The key/value combination of a tag assigned to the resource. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- A VPC ID. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpcBlockPublicAccessExclusionRequest where + schema := .struct "CreateVpcBlockPublicAccessExclusionRequest" [({ name := "DryRun" }, .bool), + ({ name := "InternetGatewayExclusionMode", required := true }, (Shape.schema InternetGatewayExclusionMode)), + ({ name := "SubnetId" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "VpcId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "InternetGatewayExclusionMode" x.internetGatewayExclusionMode, putOpt "SubnetId" x.subnetId, putOpt "TagSpecifications" x.tagSpecifications, putOpt "VpcId" x.vpcId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let internetGatewayExclusionMode ← v.req "InternetGatewayExclusionMode" + let subnetId ← v.opt "SubnetId" + let tagSpecifications ← v.opt "TagSpecifications" + let vpcId ← v.opt "VpcId" + return { dryRun, internetGatewayExclusionMode, subnetId, tagSpecifications, vpcId } + +structure CreateVpcBlockPublicAccessExclusionResult where + /-- Details about an exclusion. -/ + vpcBlockPublicAccessExclusion : Option VpcBlockPublicAccessExclusion := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpcBlockPublicAccessExclusionResult where + schema := .struct "CreateVpcBlockPublicAccessExclusionResult" [({ name := "VpcBlockPublicAccessExclusion", xmlName := some "vpcBlockPublicAccessExclusion", queryName := some "VpcBlockPublicAccessExclusion" }, (Shape.schema VpcBlockPublicAccessExclusion))] + toValue x := record [putOpt "VpcBlockPublicAccessExclusion" x.vpcBlockPublicAccessExclusion] + ofValue v := do + let vpcBlockPublicAccessExclusion ← v.opt "VpcBlockPublicAccessExclusion" + return { vpcBlockPublicAccessExclusion } + +structure CreateVpcEncryptionControlRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The tags to apply to the VPC Encryption Control resource. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the VPC for which to create the encryption control configuration. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpcEncryptionControlRequest where + schema := .struct "CreateVpcEncryptionControlRequest" [({ name := "DryRun" }, .bool), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "VpcId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "TagSpecifications" x.tagSpecifications, put "VpcId" x.vpcId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let tagSpecifications ← v.opt "TagSpecifications" + let vpcId ← v.req "VpcId" + return { dryRun, tagSpecifications, vpcId } + +structure CreateVpcEndpointConnectionNotificationResult where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Information about the notification. -/ + connectionNotification : Option ConnectionNotification := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpcEndpointConnectionNotificationResult where + schema := .struct "CreateVpcEndpointConnectionNotificationResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "ConnectionNotification", xmlName := some "connectionNotification", queryName := some "ConnectionNotification" }, (Shape.schema ConnectionNotification))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "ConnectionNotification" x.connectionNotification] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let connectionNotification ← v.opt "ConnectionNotification" + return { clientToken, connectionNotification } + +structure CreateVpcEndpointRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The DNS options for the endpoint. -/ + dnsOptions : Option DnsOptionsSpecification := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IP address type for the endpoint. -/ + ipAddressType : Option IpAddressType := none + /-- (Interface and gateway endpoints) A policy to attach to the endpoint that controls access to the service. -/ + policyDocument : Option String := none + /-- (Interface endpoint) Indicates whether to associate a private hosted zone with the specified VPC. -/ + privateDnsEnabled : Option Bool := none + /-- (Resource and Tunnel endpoints only) The Amazon Resource Name (ARN) of a resource configuration associated with the VPC endpoint. -/ + resourceConfigurationArn : Option String := none + /-- (Gateway endpoint) The route table IDs. -/ + routeTableIds : Option (List String) := none + /-- (Interface, Resource, ServiceNetwork, and Tunnel endpoints only) The IDs of the security groups to associate with the endpoint network interfaces. -/ + securityGroupIds : Option (List String) := none + /-- The name of the endpoint service. -/ + serviceName : Option String := none + /-- The Amazon Resource Name (ARN) of a service network that will be associated with the VPC endpoint of type service-network. -/ + serviceNetworkArn : Option String := none + /-- The Region where the service is hosted. -/ + serviceRegion : Option String := none + /-- The subnet configurations for the endpoint. -/ + subnetConfigurations : Option (List SubnetConfiguration) := none + /-- (Interface, Gateway Load Balancer endpoints, Resource, ServiceNetwork, and Tunnel endpoints only) The IDs of the subnets in which to create endpoint network interfaces. -/ + subnetIds : Option (List String) := none + /-- The tags to associate with the endpoint. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The type of endpoint. -/ + vpcEndpointType : Option VpcEndpointType := none + /-- The ID of the VPC. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpcEndpointRequest where + schema := .struct "CreateVpcEndpointRequest" [({ name := "ClientToken" }, .string), + ({ name := "DnsOptions" }, (Shape.schema DnsOptionsSpecification)), + ({ name := "DryRun" }, .bool), + ({ name := "IpAddressType" }, (Shape.schema IpAddressType)), + ({ name := "PolicyDocument" }, .string), + ({ name := "PrivateDnsEnabled" }, .bool), + ({ name := "ResourceConfigurationArn" }, .string), + ({ name := "RouteTableIds", xmlName := some "RouteTableId" }, (.list .string "item")), + ({ name := "SecurityGroupIds", xmlName := some "SecurityGroupId" }, (.list .string "item")), + ({ name := "ServiceName" }, .string), + ({ name := "ServiceNetworkArn" }, .string), + ({ name := "ServiceRegion" }, .string), + ({ name := "SubnetConfigurations", xmlName := some "SubnetConfiguration" }, (.list (Shape.schema SubnetConfiguration) "item")), + ({ name := "SubnetIds", xmlName := some "SubnetId" }, (.list .string "item")), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "VpcEndpointType" }, (Shape.schema VpcEndpointType)), + ({ name := "VpcId", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DnsOptions" x.dnsOptions, putOpt "DryRun" x.dryRun, putOpt "IpAddressType" x.ipAddressType, putOpt "PolicyDocument" x.policyDocument, putOpt "PrivateDnsEnabled" x.privateDnsEnabled, putOpt "ResourceConfigurationArn" x.resourceConfigurationArn, putOpt "RouteTableIds" x.routeTableIds, putOpt "SecurityGroupIds" x.securityGroupIds, putOpt "ServiceName" x.serviceName, putOpt "ServiceNetworkArn" x.serviceNetworkArn, putOpt "ServiceRegion" x.serviceRegion, putOpt "SubnetConfigurations" x.subnetConfigurations, putOpt "SubnetIds" x.subnetIds, putOpt "TagSpecifications" x.tagSpecifications, putOpt "VpcEndpointType" x.vpcEndpointType, put "VpcId" x.vpcId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dnsOptions ← v.opt "DnsOptions" + let dryRun ← v.opt "DryRun" + let ipAddressType ← v.opt "IpAddressType" + let policyDocument ← v.opt "PolicyDocument" + let privateDnsEnabled ← v.opt "PrivateDnsEnabled" + let resourceConfigurationArn ← v.opt "ResourceConfigurationArn" + let routeTableIds ← v.opt "RouteTableIds" + let securityGroupIds ← v.opt "SecurityGroupIds" + let serviceName ← v.opt "ServiceName" + let serviceNetworkArn ← v.opt "ServiceNetworkArn" + let serviceRegion ← v.opt "ServiceRegion" + let subnetConfigurations ← v.opt "SubnetConfigurations" + let subnetIds ← v.opt "SubnetIds" + let tagSpecifications ← v.opt "TagSpecifications" + let vpcEndpointType ← v.opt "VpcEndpointType" + let vpcId ← v.req "VpcId" + return { clientToken, dnsOptions, dryRun, ipAddressType, policyDocument, privateDnsEnabled, resourceConfigurationArn, routeTableIds, securityGroupIds, serviceName, serviceNetworkArn, serviceRegion, subnetConfigurations, subnetIds, tagSpecifications, vpcEndpointType, vpcId } + +structure CreateVpcEndpointServiceConfigurationRequest where + /-- Indicates whether requests from service consumers to create an endpoint to your service must be accepted manually. -/ + acceptanceRequired : Option Bool := none + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The Amazon Resource Names (ARNs) of the Gateway Load Balancers. -/ + gatewayLoadBalancerArns : Option (List String) := none + /-- The Amazon Resource Names (ARNs) of the Network Load Balancers. -/ + networkLoadBalancerArns : Option (List String) := none + /-- (Interface endpoint configuration) The private DNS name to assign to the VPC endpoint service. -/ + privateDnsName : Option String := none + /-- The supported IP address types. -/ + supportedIpAddressTypes : Option (List String) := none + /-- The Regions from which service consumers can access the service. -/ + supportedRegions : Option (List String) := none + /-- The tags to associate with the service. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpcEndpointServiceConfigurationRequest where + schema := .struct "CreateVpcEndpointServiceConfigurationRequest" [({ name := "AcceptanceRequired" }, .bool), + ({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "GatewayLoadBalancerArns", xmlName := some "GatewayLoadBalancerArn" }, (.list .string "item")), + ({ name := "NetworkLoadBalancerArns", xmlName := some "NetworkLoadBalancerArn" }, (.list .string "item")), + ({ name := "PrivateDnsName" }, .string), + ({ name := "SupportedIpAddressTypes", xmlName := some "SupportedIpAddressType" }, (.list .string "item")), + ({ name := "SupportedRegions", xmlName := some "SupportedRegion" }, (.list .string "item")), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "AcceptanceRequired" x.acceptanceRequired, putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "GatewayLoadBalancerArns" x.gatewayLoadBalancerArns, putOpt "NetworkLoadBalancerArns" x.networkLoadBalancerArns, putOpt "PrivateDnsName" x.privateDnsName, putOpt "SupportedIpAddressTypes" x.supportedIpAddressTypes, putOpt "SupportedRegions" x.supportedRegions, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let acceptanceRequired ← v.opt "AcceptanceRequired" + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let gatewayLoadBalancerArns ← v.opt "GatewayLoadBalancerArns" + let networkLoadBalancerArns ← v.opt "NetworkLoadBalancerArns" + let privateDnsName ← v.opt "PrivateDnsName" + let supportedIpAddressTypes ← v.opt "SupportedIpAddressTypes" + let supportedRegions ← v.opt "SupportedRegions" + let tagSpecifications ← v.opt "TagSpecifications" + return { acceptanceRequired, clientToken, dryRun, gatewayLoadBalancerArns, networkLoadBalancerArns, privateDnsName, supportedIpAddressTypes, supportedRegions, tagSpecifications } + +structure CreateVpcPeeringConnectionRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The Amazon Web Services account ID of the owner of the accepter VPC. -/ + peerOwnerId : Option String := none + /-- The Region code for the accepter VPC, if the accepter VPC is located in a Region other than the Region in which you make the request. -/ + peerRegion : Option String := none + /-- The ID of the VPC with which you are creating the VPC peering connection. -/ + peerVpcId : Option String := none + /-- The VPC peering connection options to apply to the requester VPC. -/ + requesterPeeringConnectionOptions : Option CreatePeeringConnectionOptionsRequest := none + /-- The tags to assign to the peering connection. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the requester VPC. -/ + vpcId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpcPeeringConnectionRequest where + schema := .struct "CreateVpcPeeringConnectionRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "PeerOwnerId", xmlName := some "peerOwnerId", queryName := some "PeerOwnerId" }, .string), + ({ name := "PeerRegion" }, .string), + ({ name := "PeerVpcId", xmlName := some "peerVpcId", queryName := some "PeerVpcId" }, .string), + ({ name := "RequesterPeeringConnectionOptions" }, (Shape.schema CreatePeeringConnectionOptionsRequest)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "VpcId", required := true, xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "PeerOwnerId" x.peerOwnerId, putOpt "PeerRegion" x.peerRegion, putOpt "PeerVpcId" x.peerVpcId, putOpt "RequesterPeeringConnectionOptions" x.requesterPeeringConnectionOptions, putOpt "TagSpecifications" x.tagSpecifications, put "VpcId" x.vpcId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let peerOwnerId ← v.opt "PeerOwnerId" + let peerRegion ← v.opt "PeerRegion" + let peerVpcId ← v.opt "PeerVpcId" + let requesterPeeringConnectionOptions ← v.opt "RequesterPeeringConnectionOptions" + let tagSpecifications ← v.opt "TagSpecifications" + let vpcId ← v.req "VpcId" + return { dryRun, peerOwnerId, peerRegion, peerVpcId, requesterPeeringConnectionOptions, tagSpecifications, vpcId } + +structure CreateVpcRequest where + /-- Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. -/ + amazonProvidedIpv6CidrBlock : Option Bool := none + /-- The IPv4 network range for the VPC, in CIDR notation. -/ + cidrBlock : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The tenancy options for instances launched into the VPC. -/ + instanceTenancy : Option Tenancy := none + /-- The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. -/ + ipv4IpamPoolId : Option String := none + /-- The netmask length of the IPv4 CIDR you want to allocate to this VPC from an Amazon VPC IP Address Manager (IPAM) pool. -/ + ipv4NetmaskLength : Option Int := none + /-- The IPv6 CIDR block from the IPv6 address pool. -/ + ipv6CidrBlock : Option String := none + /-- The name of the location from which we advertise the IPV6 CIDR block. -/ + ipv6CidrBlockNetworkBorderGroup : Option String := none + /-- The ID of an IPv6 IPAM pool which will be used to allocate this VPC an IPv6 CIDR. -/ + ipv6IpamPoolId : Option String := none + /-- The netmask length of the IPv6 CIDR you want to allocate to this VPC from an Amazon VPC IP Address Manager (IPAM) pool. -/ + ipv6NetmaskLength : Option Int := none + /-- The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. -/ + ipv6Pool : Option String := none + /-- The tags to assign to the VPC. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- Specifies the encryption control configuration to apply to the VPC during creation. -/ + vpcEncryptionControl : Option VpcEncryptionControlConfiguration := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpcRequest where + schema := .struct "CreateVpcRequest" [({ name := "AmazonProvidedIpv6CidrBlock", xmlName := some "amazonProvidedIpv6CidrBlock", queryName := some "AmazonProvidedIpv6CidrBlock" }, .bool), + ({ name := "CidrBlock" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "InstanceTenancy", xmlName := some "instanceTenancy", queryName := some "InstanceTenancy" }, (Shape.schema Tenancy)), + ({ name := "Ipv4IpamPoolId" }, .string), + ({ name := "Ipv4NetmaskLength" }, .int), + ({ name := "Ipv6CidrBlock" }, .string), + ({ name := "Ipv6CidrBlockNetworkBorderGroup" }, .string), + ({ name := "Ipv6IpamPoolId" }, .string), + ({ name := "Ipv6NetmaskLength" }, .int), + ({ name := "Ipv6Pool" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "VpcEncryptionControl" }, (Shape.schema VpcEncryptionControlConfiguration))] + toValue x := record [putOpt "AmazonProvidedIpv6CidrBlock" x.amazonProvidedIpv6CidrBlock, putOpt "CidrBlock" x.cidrBlock, putOpt "DryRun" x.dryRun, putOpt "InstanceTenancy" x.instanceTenancy, putOpt "Ipv4IpamPoolId" x.ipv4IpamPoolId, putOpt "Ipv4NetmaskLength" x.ipv4NetmaskLength, putOpt "Ipv6CidrBlock" x.ipv6CidrBlock, putOpt "Ipv6CidrBlockNetworkBorderGroup" x.ipv6CidrBlockNetworkBorderGroup, putOpt "Ipv6IpamPoolId" x.ipv6IpamPoolId, putOpt "Ipv6NetmaskLength" x.ipv6NetmaskLength, putOpt "Ipv6Pool" x.ipv6Pool, putOpt "TagSpecifications" x.tagSpecifications, putOpt "VpcEncryptionControl" x.vpcEncryptionControl] + ofValue v := do + let amazonProvidedIpv6CidrBlock ← v.opt "AmazonProvidedIpv6CidrBlock" + let cidrBlock ← v.opt "CidrBlock" + let dryRun ← v.opt "DryRun" + let instanceTenancy ← v.opt "InstanceTenancy" + let ipv4IpamPoolId ← v.opt "Ipv4IpamPoolId" + let ipv4NetmaskLength ← v.opt "Ipv4NetmaskLength" + let ipv6CidrBlock ← v.opt "Ipv6CidrBlock" + let ipv6CidrBlockNetworkBorderGroup ← v.opt "Ipv6CidrBlockNetworkBorderGroup" + let ipv6IpamPoolId ← v.opt "Ipv6IpamPoolId" + let ipv6NetmaskLength ← v.opt "Ipv6NetmaskLength" + let ipv6Pool ← v.opt "Ipv6Pool" + let tagSpecifications ← v.opt "TagSpecifications" + let vpcEncryptionControl ← v.opt "VpcEncryptionControl" + return { amazonProvidedIpv6CidrBlock, cidrBlock, dryRun, instanceTenancy, ipv4IpamPoolId, ipv4NetmaskLength, ipv6CidrBlock, ipv6CidrBlockNetworkBorderGroup, ipv6IpamPoolId, ipv6NetmaskLength, ipv6Pool, tagSpecifications, vpcEncryptionControl } + +structure CreateVpnConcentratorRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The tags to apply to the VPN concentrator during creation. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the transit gateway to attach the VPN concentrator to. -/ + transitGatewayId : Option String := none + /-- The type of VPN concentrator to create. -/ + type : VpnConcentratorType +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpnConcentratorRequest where + schema := .struct "CreateVpnConcentratorRequest" [({ name := "DryRun" }, .bool), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TransitGatewayId" }, .string), + ({ name := "Type", required := true }, (Shape.schema VpnConcentratorType))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "TagSpecifications" x.tagSpecifications, putOpt "TransitGatewayId" x.transitGatewayId, put "Type" x.type] + ofValue v := do + let dryRun ← v.opt "DryRun" + let tagSpecifications ← v.opt "TagSpecifications" + let transitGatewayId ← v.opt "TransitGatewayId" + let type ← v.req "Type" + return { dryRun, tagSpecifications, transitGatewayId, type } + +structure CreateVpnConcentratorResult where + /-- Information about the VPN concentrator. -/ + vpnConcentrator : Option VpnConcentrator := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpnConcentratorResult where + schema := .struct "CreateVpnConcentratorResult" [({ name := "VpnConcentrator", xmlName := some "vpnConcentrator", queryName := some "VpnConcentrator" }, (Shape.schema VpnConcentrator))] + toValue x := record [putOpt "VpnConcentrator" x.vpnConcentrator] + ofValue v := do + let vpnConcentrator ← v.opt "VpnConcentrator" + return { vpnConcentrator } + +/-- Contains the parameters for CreateVpnGateway. -/ +structure CreateVpnGatewayRequest where + /-- A private Autonomous System Number (ASN) for the Amazon side of a BGP session. -/ + amazonSideAsn : Option Int := none + /-- The Availability Zone for the virtual private gateway. -/ + availabilityZone : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The tags to apply to the virtual private gateway. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The type of VPN connection this virtual private gateway supports. -/ + type : GatewayType +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpnGatewayRequest where + schema := .struct "CreateVpnGatewayRequest" [({ name := "AmazonSideAsn" }, .int), + ({ name := "AvailabilityZone" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "Type", required := true }, (Shape.schema GatewayType))] + toValue x := record [putOpt "AmazonSideAsn" x.amazonSideAsn, putOpt "AvailabilityZone" x.availabilityZone, putOpt "DryRun" x.dryRun, putOpt "TagSpecifications" x.tagSpecifications, put "Type" x.type] + ofValue v := do + let amazonSideAsn ← v.opt "AmazonSideAsn" + let availabilityZone ← v.opt "AvailabilityZone" + let dryRun ← v.opt "DryRun" + let tagSpecifications ← v.opt "TagSpecifications" + let type ← v.req "Type" + return { amazonSideAsn, availabilityZone, dryRun, tagSpecifications, type } + +structure DeleteCarrierGatewayResult where + /-- Information about the carrier gateway. -/ + carrierGateway : Option CarrierGateway := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteCarrierGatewayResult where + schema := .struct "DeleteCarrierGatewayResult" [({ name := "CarrierGateway", xmlName := some "carrierGateway", queryName := some "CarrierGateway" }, (Shape.schema CarrierGateway))] + toValue x := record [putOpt "CarrierGateway" x.carrierGateway] + ofValue v := do + let carrierGateway ← v.opt "CarrierGateway" + return { carrierGateway } + +structure DeleteClientVpnEndpointResult where + /-- The current state of the Client VPN endpoint. -/ + status : Option ClientVpnEndpointStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteClientVpnEndpointResult where + schema := .struct "DeleteClientVpnEndpointResult" [({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema ClientVpnEndpointStatus))] + toValue x := record [putOpt "Status" x.status] + ofValue v := do + let status ← v.opt "Status" + return { status } + +structure DeleteClientVpnRouteResult where + /-- The current state of the route. -/ + status : Option ClientVpnRouteStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteClientVpnRouteResult where + schema := .struct "DeleteClientVpnRouteResult" [({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema ClientVpnRouteStatus))] + toValue x := record [putOpt "Status" x.status] + ofValue v := do + let status ← v.opt "Status" + return { status } + +structure DeleteCoipPoolResult where + /-- Information about the CoIP address pool. -/ + coipPool : Option CoipPool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteCoipPoolResult where + schema := .struct "DeleteCoipPoolResult" [({ name := "CoipPool", xmlName := some "coipPool", queryName := some "CoipPool" }, (Shape.schema CoipPool))] + toValue x := record [putOpt "CoipPool" x.coipPool] + ofValue v := do + let coipPool ← v.opt "CoipPool" + return { coipPool } + +/-- Describes an EC2 Fleet that was not successfully deleted. -/ +structure DeleteFleetErrorItem where + /-- The error. -/ + error : Option DeleteFleetError := none + /-- The ID of the EC2 Fleet. -/ + fleetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteFleetErrorItem where + schema := .struct "DeleteFleetErrorItem" [({ name := "Error", xmlName := some "error", queryName := some "Error" }, (Shape.schema DeleteFleetError)), + ({ name := "FleetId", xmlName := some "fleetId", queryName := some "FleetId" }, .string)] + toValue x := record [putOpt "Error" x.error, putOpt "FleetId" x.fleetId] + ofValue v := do + let error ← v.opt "Error" + let fleetId ← v.opt "FleetId" + return { error, fleetId } + +structure DeleteFlowLogsResult where + /-- Information about the flow logs that could not be deleted successfully. -/ + unsuccessful : Option (List UnsuccessfulItem) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteFlowLogsResult where + schema := .struct "DeleteFlowLogsResult" [({ name := "Unsuccessful", xmlName := some "unsuccessful", queryName := some "Unsuccessful" }, (.list (Shape.schema UnsuccessfulItem) "item"))] + toValue x := record [putOpt "Unsuccessful" x.unsuccessful] + ofValue v := do + let unsuccessful ← v.opt "Unsuccessful" + return { unsuccessful } + +structure DeleteInstanceEventWindowResult where + /-- The state of the event window. -/ + instanceEventWindowState : Option InstanceEventWindowStateChange := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteInstanceEventWindowResult where + schema := .struct "DeleteInstanceEventWindowResult" [({ name := "InstanceEventWindowState", xmlName := some "instanceEventWindowState", queryName := some "InstanceEventWindowState" }, (Shape.schema InstanceEventWindowStateChange))] + toValue x := record [putOpt "InstanceEventWindowState" x.instanceEventWindowState] + ofValue v := do + let instanceEventWindowState ← v.opt "InstanceEventWindowState" + return { instanceEventWindowState } + +structure DeleteIpamExternalResourceVerificationTokenResult where + /-- The verification token. -/ + ipamExternalResourceVerificationToken : Option IpamExternalResourceVerificationToken := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteIpamExternalResourceVerificationTokenResult where + schema := .struct "DeleteIpamExternalResourceVerificationTokenResult" [({ name := "IpamExternalResourceVerificationToken", xmlName := some "ipamExternalResourceVerificationToken", queryName := some "IpamExternalResourceVerificationToken" }, (Shape.schema IpamExternalResourceVerificationToken))] + toValue x := record [putOpt "IpamExternalResourceVerificationToken" x.ipamExternalResourceVerificationToken] + ofValue v := do + let ipamExternalResourceVerificationToken ← v.opt "IpamExternalResourceVerificationToken" + return { ipamExternalResourceVerificationToken } + +structure DeleteIpamInternetRegistryAssociationResult where + /-- Information about the deleted internet registry association. -/ + ipamInternetRegistryAssociation : Option IpamInternetRegistryAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteIpamInternetRegistryAssociationResult where + schema := .struct "DeleteIpamInternetRegistryAssociationResult" [({ name := "IpamInternetRegistryAssociation", xmlName := some "ipamInternetRegistryAssociation", queryName := some "IpamInternetRegistryAssociation" }, (Shape.schema IpamInternetRegistryAssociation))] + toValue x := record [putOpt "IpamInternetRegistryAssociation" x.ipamInternetRegistryAssociation] + ofValue v := do + let ipamInternetRegistryAssociation ← v.opt "IpamInternetRegistryAssociation" + return { ipamInternetRegistryAssociation } + +structure DeleteIpamPolicyResult where + /-- Information about the deleted IPAM policy. -/ + ipamPolicy : Option IpamPolicy := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteIpamPolicyResult where + schema := .struct "DeleteIpamPolicyResult" [({ name := "IpamPolicy", xmlName := some "ipamPolicy", queryName := some "IpamPolicy" }, (Shape.schema IpamPolicy))] + toValue x := record [putOpt "IpamPolicy" x.ipamPolicy] + ofValue v := do + let ipamPolicy ← v.opt "IpamPolicy" + return { ipamPolicy } + +structure DeleteIpamPrefixListResolverResult where + /-- Information about the IPAM prefix list resolver that was deleted. -/ + ipamPrefixListResolver : Option IpamPrefixListResolver := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteIpamPrefixListResolverResult where + schema := .struct "DeleteIpamPrefixListResolverResult" [({ name := "IpamPrefixListResolver", xmlName := some "ipamPrefixListResolver", queryName := some "IpamPrefixListResolver" }, (Shape.schema IpamPrefixListResolver))] + toValue x := record [putOpt "IpamPrefixListResolver" x.ipamPrefixListResolver] + ofValue v := do + let ipamPrefixListResolver ← v.opt "IpamPrefixListResolver" + return { ipamPrefixListResolver } + +structure DeleteIpamPrefixListResolverTargetResult where + /-- Information about the IPAM prefix list resolver target that was deleted. -/ + ipamPrefixListResolverTarget : Option IpamPrefixListResolverTarget := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteIpamPrefixListResolverTargetResult where + schema := .struct "DeleteIpamPrefixListResolverTargetResult" [({ name := "IpamPrefixListResolverTarget", xmlName := some "ipamPrefixListResolverTarget", queryName := some "IpamPrefixListResolverTarget" }, (Shape.schema IpamPrefixListResolverTarget))] + toValue x := record [putOpt "IpamPrefixListResolverTarget" x.ipamPrefixListResolverTarget] + ofValue v := do + let ipamPrefixListResolverTarget ← v.opt "IpamPrefixListResolverTarget" + return { ipamPrefixListResolverTarget } + +structure DeleteIpamResourceDiscoveryResult where + /-- The IPAM resource discovery. -/ + ipamResourceDiscovery : Option IpamResourceDiscovery := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteIpamResourceDiscoveryResult where + schema := .struct "DeleteIpamResourceDiscoveryResult" [({ name := "IpamResourceDiscovery", xmlName := some "ipamResourceDiscovery", queryName := some "IpamResourceDiscovery" }, (Shape.schema IpamResourceDiscovery))] + toValue x := record [putOpt "IpamResourceDiscovery" x.ipamResourceDiscovery] + ofValue v := do + let ipamResourceDiscovery ← v.opt "IpamResourceDiscovery" + return { ipamResourceDiscovery } + +structure DeleteIpamResult where + /-- Information about the results of the deletion. -/ + ipam : Option Ipam := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteIpamResult where + schema := .struct "DeleteIpamResult" [({ name := "Ipam", xmlName := some "ipam", queryName := some "Ipam" }, (Shape.schema Ipam))] + toValue x := record [putOpt "Ipam" x.ipam] + ofValue v := do + let ipam ← v.opt "Ipam" + return { ipam } + +structure DeleteIpamRoutingPolicyRegistrationResult where + /-- Information about the routing policy registration delta created by this deletion. -/ + ipamRoutingPolicyRegistrationDelta : Option IpamRoutingPolicyRegistrationDelta := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteIpamRoutingPolicyRegistrationResult where + schema := .struct "DeleteIpamRoutingPolicyRegistrationResult" [({ name := "IpamRoutingPolicyRegistrationDelta", xmlName := some "ipamRoutingPolicyRegistrationDelta", queryName := some "IpamRoutingPolicyRegistrationDelta" }, (Shape.schema IpamRoutingPolicyRegistrationDelta))] + toValue x := record [putOpt "IpamRoutingPolicyRegistrationDelta" x.ipamRoutingPolicyRegistrationDelta] + ofValue v := do + let ipamRoutingPolicyRegistrationDelta ← v.opt "IpamRoutingPolicyRegistrationDelta" + return { ipamRoutingPolicyRegistrationDelta } + +structure DeleteLaunchTemplateResult where + /-- Information about the launch template. -/ + launchTemplate : Option LaunchTemplate := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteLaunchTemplateResult where + schema := .struct "DeleteLaunchTemplateResult" [({ name := "LaunchTemplate", xmlName := some "launchTemplate", queryName := some "LaunchTemplate" }, (Shape.schema LaunchTemplate))] + toValue x := record [putOpt "LaunchTemplate" x.launchTemplate] + ofValue v := do + let launchTemplate ← v.opt "LaunchTemplate" + return { launchTemplate } + +/-- Describes a launch template version that could not be deleted. -/ +structure DeleteLaunchTemplateVersionsResponseErrorItem where + /-- The ID of the launch template. -/ + launchTemplateId : Option String := none + /-- The name of the launch template. -/ + launchTemplateName : Option String := none + /-- Information about the error. -/ + responseError : Option ResponseError := none + /-- The version number of the launch template. -/ + versionNumber : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteLaunchTemplateVersionsResponseErrorItem where + schema := .struct "DeleteLaunchTemplateVersionsResponseErrorItem" [({ name := "LaunchTemplateId", xmlName := some "launchTemplateId", queryName := some "LaunchTemplateId" }, .string), + ({ name := "LaunchTemplateName", xmlName := some "launchTemplateName", queryName := some "LaunchTemplateName" }, .string), + ({ name := "ResponseError", xmlName := some "responseError", queryName := some "ResponseError" }, (Shape.schema ResponseError)), + ({ name := "VersionNumber", xmlName := some "versionNumber", queryName := some "VersionNumber" }, .int)] + toValue x := record [putOpt "LaunchTemplateId" x.launchTemplateId, putOpt "LaunchTemplateName" x.launchTemplateName, putOpt "ResponseError" x.responseError, putOpt "VersionNumber" x.versionNumber] + ofValue v := do + let launchTemplateId ← v.opt "LaunchTemplateId" + let launchTemplateName ← v.opt "LaunchTemplateName" + let responseError ← v.opt "ResponseError" + let versionNumber ← v.opt "VersionNumber" + return { launchTemplateId, launchTemplateName, responseError, versionNumber } + +structure DeleteLocalGatewayRouteResult where + /-- Information about the route. -/ + route : Option LocalGatewayRoute := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteLocalGatewayRouteResult where + schema := .struct "DeleteLocalGatewayRouteResult" [({ name := "Route", xmlName := some "route", queryName := some "Route" }, (Shape.schema LocalGatewayRoute))] + toValue x := record [putOpt "Route" x.route] + ofValue v := do + let route ← v.opt "Route" + return { route } + +structure DeleteLocalGatewayRouteTableResult where + /-- Information about the local gateway route table. -/ + localGatewayRouteTable : Option LocalGatewayRouteTable := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteLocalGatewayRouteTableResult where + schema := .struct "DeleteLocalGatewayRouteTableResult" [({ name := "LocalGatewayRouteTable", xmlName := some "localGatewayRouteTable", queryName := some "LocalGatewayRouteTable" }, (Shape.schema LocalGatewayRouteTable))] + toValue x := record [putOpt "LocalGatewayRouteTable" x.localGatewayRouteTable] + ofValue v := do + let localGatewayRouteTable ← v.opt "LocalGatewayRouteTable" + return { localGatewayRouteTable } + +structure DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult where + /-- Information about the association. -/ + localGatewayRouteTableVirtualInterfaceGroupAssociation : Option LocalGatewayRouteTableVirtualInterfaceGroupAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult where + schema := .struct "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult" [({ name := "LocalGatewayRouteTableVirtualInterfaceGroupAssociation", xmlName := some "localGatewayRouteTableVirtualInterfaceGroupAssociation", queryName := some "LocalGatewayRouteTableVirtualInterfaceGroupAssociation" }, (Shape.schema LocalGatewayRouteTableVirtualInterfaceGroupAssociation))] + toValue x := record [putOpt "LocalGatewayRouteTableVirtualInterfaceGroupAssociation" x.localGatewayRouteTableVirtualInterfaceGroupAssociation] + ofValue v := do + let localGatewayRouteTableVirtualInterfaceGroupAssociation ← v.opt "LocalGatewayRouteTableVirtualInterfaceGroupAssociation" + return { localGatewayRouteTableVirtualInterfaceGroupAssociation } + +structure DeleteLocalGatewayRouteTableVpcAssociationResult where + /-- Information about the association. -/ + localGatewayRouteTableVpcAssociation : Option LocalGatewayRouteTableVpcAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteLocalGatewayRouteTableVpcAssociationResult where + schema := .struct "DeleteLocalGatewayRouteTableVpcAssociationResult" [({ name := "LocalGatewayRouteTableVpcAssociation", xmlName := some "localGatewayRouteTableVpcAssociation", queryName := some "LocalGatewayRouteTableVpcAssociation" }, (Shape.schema LocalGatewayRouteTableVpcAssociation))] + toValue x := record [putOpt "LocalGatewayRouteTableVpcAssociation" x.localGatewayRouteTableVpcAssociation] + ofValue v := do + let localGatewayRouteTableVpcAssociation ← v.opt "LocalGatewayRouteTableVpcAssociation" + return { localGatewayRouteTableVpcAssociation } + +structure DeleteLocalGatewayVirtualInterfaceGroupResult where + /-- Information about the deleted local gateway virtual interface group. -/ + localGatewayVirtualInterfaceGroup : Option LocalGatewayVirtualInterfaceGroup := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteLocalGatewayVirtualInterfaceGroupResult where + schema := .struct "DeleteLocalGatewayVirtualInterfaceGroupResult" [({ name := "LocalGatewayVirtualInterfaceGroup", xmlName := some "localGatewayVirtualInterfaceGroup", queryName := some "LocalGatewayVirtualInterfaceGroup" }, (Shape.schema LocalGatewayVirtualInterfaceGroup))] + toValue x := record [putOpt "LocalGatewayVirtualInterfaceGroup" x.localGatewayVirtualInterfaceGroup] + ofValue v := do + let localGatewayVirtualInterfaceGroup ← v.opt "LocalGatewayVirtualInterfaceGroup" + return { localGatewayVirtualInterfaceGroup } + +structure DeleteLocalGatewayVirtualInterfaceResult where + /-- Information about the deleted local gateway virtual interface. -/ + localGatewayVirtualInterface : Option LocalGatewayVirtualInterface := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteLocalGatewayVirtualInterfaceResult where + schema := .struct "DeleteLocalGatewayVirtualInterfaceResult" [({ name := "LocalGatewayVirtualInterface", xmlName := some "localGatewayVirtualInterface", queryName := some "LocalGatewayVirtualInterface" }, (Shape.schema LocalGatewayVirtualInterface))] + toValue x := record [putOpt "LocalGatewayVirtualInterface" x.localGatewayVirtualInterface] + ofValue v := do + let localGatewayVirtualInterface ← v.opt "LocalGatewayVirtualInterface" + return { localGatewayVirtualInterface } + +structure DeleteManagedPrefixListResult where + /-- Information about the prefix list. -/ + prefixList : Option ManagedPrefixList := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteManagedPrefixListResult where + schema := .struct "DeleteManagedPrefixListResult" [({ name := "PrefixList", xmlName := some "prefixList", queryName := some "PrefixList" }, (Shape.schema ManagedPrefixList))] + toValue x := record [putOpt "PrefixList" x.prefixList] + ofValue v := do + let prefixList ← v.opt "PrefixList" + return { prefixList } + +structure DeleteRouteServerEndpointResult where + /-- Information about the deleted route server endpoint. -/ + routeServerEndpoint : Option RouteServerEndpoint := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteRouteServerEndpointResult where + schema := .struct "DeleteRouteServerEndpointResult" [({ name := "RouteServerEndpoint", xmlName := some "routeServerEndpoint", queryName := some "RouteServerEndpoint" }, (Shape.schema RouteServerEndpoint))] + toValue x := record [putOpt "RouteServerEndpoint" x.routeServerEndpoint] + ofValue v := do + let routeServerEndpoint ← v.opt "RouteServerEndpoint" + return { routeServerEndpoint } + +structure DeleteRouteServerResult where + /-- Information about the deleted route server. -/ + routeServer : Option RouteServer := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteRouteServerResult where + schema := .struct "DeleteRouteServerResult" [({ name := "RouteServer", xmlName := some "routeServer", queryName := some "RouteServer" }, (Shape.schema RouteServer))] + toValue x := record [putOpt "RouteServer" x.routeServer] + ofValue v := do + let routeServer ← v.opt "RouteServer" + return { routeServer } + +structure DeleteSubnetCidrReservationResult where + /-- Information about the deleted subnet CIDR reservation. -/ + deletedSubnetCidrReservation : Option SubnetCidrReservation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteSubnetCidrReservationResult where + schema := .struct "DeleteSubnetCidrReservationResult" [({ name := "DeletedSubnetCidrReservation", xmlName := some "deletedSubnetCidrReservation", queryName := some "DeletedSubnetCidrReservation" }, (Shape.schema SubnetCidrReservation))] + toValue x := record [putOpt "DeletedSubnetCidrReservation" x.deletedSubnetCidrReservation] + ofValue v := do + let deletedSubnetCidrReservation ← v.opt "DeletedSubnetCidrReservation" + return { deletedSubnetCidrReservation } + +structure DeleteTransitGatewayClientVpnAttachmentResult where + /-- Information about the Transit Gateway Client VPN attachment. -/ + transitGatewayClientVpnAttachment : Option TransitGatewayClientVpnAttachment := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayClientVpnAttachmentResult where + schema := .struct "DeleteTransitGatewayClientVpnAttachmentResult" [({ name := "TransitGatewayClientVpnAttachment", xmlName := some "transitGatewayClientVpnAttachment", queryName := some "TransitGatewayClientVpnAttachment" }, (Shape.schema TransitGatewayClientVpnAttachment))] + toValue x := record [putOpt "TransitGatewayClientVpnAttachment" x.transitGatewayClientVpnAttachment] + ofValue v := do + let transitGatewayClientVpnAttachment ← v.opt "TransitGatewayClientVpnAttachment" + return { transitGatewayClientVpnAttachment } + +structure DeleteTransitGatewayMeteringPolicyResult where + /-- Information about the deleted transit gateway metering policy. -/ + transitGatewayMeteringPolicy : Option TransitGatewayMeteringPolicy := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayMeteringPolicyResult where + schema := .struct "DeleteTransitGatewayMeteringPolicyResult" [({ name := "TransitGatewayMeteringPolicy", xmlName := some "transitGatewayMeteringPolicy", queryName := some "TransitGatewayMeteringPolicy" }, (Shape.schema TransitGatewayMeteringPolicy))] + toValue x := record [putOpt "TransitGatewayMeteringPolicy" x.transitGatewayMeteringPolicy] + ofValue v := do + let transitGatewayMeteringPolicy ← v.opt "TransitGatewayMeteringPolicy" + return { transitGatewayMeteringPolicy } + +structure DeleteTransitGatewayNetworkFunctionAttachmentResult where + /-- Information about the deleted network function attachment. -/ + transitGatewayNetworkFunctionAttachment : Option TransitGatewayNetworkFunctionAttachment := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayNetworkFunctionAttachmentResult where + schema := .struct "DeleteTransitGatewayNetworkFunctionAttachmentResult" [({ name := "TransitGatewayNetworkFunctionAttachment", xmlName := some "transitGatewayNetworkFunctionAttachment", queryName := some "TransitGatewayNetworkFunctionAttachment" }, (Shape.schema TransitGatewayNetworkFunctionAttachment))] + toValue x := record [putOpt "TransitGatewayNetworkFunctionAttachment" x.transitGatewayNetworkFunctionAttachment] + ofValue v := do + let transitGatewayNetworkFunctionAttachment ← v.opt "TransitGatewayNetworkFunctionAttachment" + return { transitGatewayNetworkFunctionAttachment } + +structure DeleteTransitGatewayPolicyTableResult where + /-- Provides details about the deleted transit gateway policy table. -/ + transitGatewayPolicyTable : Option TransitGatewayPolicyTable := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayPolicyTableResult where + schema := .struct "DeleteTransitGatewayPolicyTableResult" [({ name := "TransitGatewayPolicyTable", xmlName := some "transitGatewayPolicyTable", queryName := some "TransitGatewayPolicyTable" }, (Shape.schema TransitGatewayPolicyTable))] + toValue x := record [putOpt "TransitGatewayPolicyTable" x.transitGatewayPolicyTable] + ofValue v := do + let transitGatewayPolicyTable ← v.opt "TransitGatewayPolicyTable" + return { transitGatewayPolicyTable } + +structure DeleteTransitGatewayRouteTableAnnouncementResult where + /-- Provides details about a deleted transit gateway route table. -/ + transitGatewayRouteTableAnnouncement : Option TransitGatewayRouteTableAnnouncement := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayRouteTableAnnouncementResult where + schema := .struct "DeleteTransitGatewayRouteTableAnnouncementResult" [({ name := "TransitGatewayRouteTableAnnouncement", xmlName := some "transitGatewayRouteTableAnnouncement", queryName := some "TransitGatewayRouteTableAnnouncement" }, (Shape.schema TransitGatewayRouteTableAnnouncement))] + toValue x := record [putOpt "TransitGatewayRouteTableAnnouncement" x.transitGatewayRouteTableAnnouncement] + ofValue v := do + let transitGatewayRouteTableAnnouncement ← v.opt "TransitGatewayRouteTableAnnouncement" + return { transitGatewayRouteTableAnnouncement } + +structure DeleteTransitGatewayRouteTableResult where + /-- Information about the deleted transit gateway route table. -/ + transitGatewayRouteTable : Option TransitGatewayRouteTable := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayRouteTableResult where + schema := .struct "DeleteTransitGatewayRouteTableResult" [({ name := "TransitGatewayRouteTable", xmlName := some "transitGatewayRouteTable", queryName := some "TransitGatewayRouteTable" }, (Shape.schema TransitGatewayRouteTable))] + toValue x := record [putOpt "TransitGatewayRouteTable" x.transitGatewayRouteTable] + ofValue v := do + let transitGatewayRouteTable ← v.opt "TransitGatewayRouteTable" + return { transitGatewayRouteTable } + +structure DeleteVerifiedAccessGroupResult where + /-- Details about the Verified Access group. -/ + verifiedAccessGroup : Option VerifiedAccessGroup := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVerifiedAccessGroupResult where + schema := .struct "DeleteVerifiedAccessGroupResult" [({ name := "VerifiedAccessGroup", xmlName := some "verifiedAccessGroup", queryName := some "VerifiedAccessGroup" }, (Shape.schema VerifiedAccessGroup))] + toValue x := record [putOpt "VerifiedAccessGroup" x.verifiedAccessGroup] + ofValue v := do + let verifiedAccessGroup ← v.opt "VerifiedAccessGroup" + return { verifiedAccessGroup } + +structure DeleteVerifiedAccessTrustProviderResult where + /-- Details about the Verified Access trust provider. -/ + verifiedAccessTrustProvider : Option VerifiedAccessTrustProvider := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVerifiedAccessTrustProviderResult where + schema := .struct "DeleteVerifiedAccessTrustProviderResult" [({ name := "VerifiedAccessTrustProvider", xmlName := some "verifiedAccessTrustProvider", queryName := some "VerifiedAccessTrustProvider" }, (Shape.schema VerifiedAccessTrustProvider))] + toValue x := record [putOpt "VerifiedAccessTrustProvider" x.verifiedAccessTrustProvider] + ofValue v := do + let verifiedAccessTrustProvider ← v.opt "VerifiedAccessTrustProvider" + return { verifiedAccessTrustProvider } + +structure DeleteVpcBlockPublicAccessExclusionResult where + /-- Details about an exclusion. -/ + vpcBlockPublicAccessExclusion : Option VpcBlockPublicAccessExclusion := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVpcBlockPublicAccessExclusionResult where + schema := .struct "DeleteVpcBlockPublicAccessExclusionResult" [({ name := "VpcBlockPublicAccessExclusion", xmlName := some "vpcBlockPublicAccessExclusion", queryName := some "VpcBlockPublicAccessExclusion" }, (Shape.schema VpcBlockPublicAccessExclusion))] + toValue x := record [putOpt "VpcBlockPublicAccessExclusion" x.vpcBlockPublicAccessExclusion] + ofValue v := do + let vpcBlockPublicAccessExclusion ← v.opt "VpcBlockPublicAccessExclusion" + return { vpcBlockPublicAccessExclusion } + +structure DeleteVpcEndpointConnectionNotificationsResult where + /-- Information about the notifications that could not be deleted successfully. -/ + unsuccessful : Option (List UnsuccessfulItem) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVpcEndpointConnectionNotificationsResult where + schema := .struct "DeleteVpcEndpointConnectionNotificationsResult" [({ name := "Unsuccessful", xmlName := some "unsuccessful", queryName := some "Unsuccessful" }, (.list (Shape.schema UnsuccessfulItem) "item"))] + toValue x := record [putOpt "Unsuccessful" x.unsuccessful] + ofValue v := do + let unsuccessful ← v.opt "Unsuccessful" + return { unsuccessful } + +structure DeleteVpcEndpointServiceConfigurationsResult where + /-- Information about the service configurations that were not deleted, if applicable. -/ + unsuccessful : Option (List UnsuccessfulItem) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVpcEndpointServiceConfigurationsResult where + schema := .struct "DeleteVpcEndpointServiceConfigurationsResult" [({ name := "Unsuccessful", xmlName := some "unsuccessful", queryName := some "Unsuccessful" }, (.list (Shape.schema UnsuccessfulItem) "item"))] + toValue x := record [putOpt "Unsuccessful" x.unsuccessful] + ofValue v := do + let unsuccessful ← v.opt "Unsuccessful" + return { unsuccessful } + +structure DeleteVpcEndpointsResult where + /-- Information about the VPC endpoints that were not successfully deleted. -/ + unsuccessful : Option (List UnsuccessfulItem) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVpcEndpointsResult where + schema := .struct "DeleteVpcEndpointsResult" [({ name := "Unsuccessful", xmlName := some "unsuccessful", queryName := some "Unsuccessful" }, (.list (Shape.schema UnsuccessfulItem) "item"))] + toValue x := record [putOpt "Unsuccessful" x.unsuccessful] + ofValue v := do + let unsuccessful ← v.opt "Unsuccessful" + return { unsuccessful } + +structure DeprovisionIpamByoasnResult where + /-- An ASN and BYOIP CIDR association. -/ + byoasn : Option Byoasn := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeprovisionIpamByoasnResult where + schema := .struct "DeprovisionIpamByoasnResult" [({ name := "Byoasn", xmlName := some "byoasn", queryName := some "Byoasn" }, (Shape.schema Byoasn))] + toValue x := record [putOpt "Byoasn" x.byoasn] + ofValue v := do + let byoasn ← v.opt "Byoasn" + return { byoasn } + +structure DeregisterImageResult where + /-- The deletion result for each snapshot associated with the AMI, including the snapshot ID and its success or error code. -/ + deleteSnapshotResults : Option (List DeleteSnapshotReturnCode) := none + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + «return» : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeregisterImageResult where + schema := .struct "DeregisterImageResult" [({ name := "DeleteSnapshotResults", xmlName := some "deleteSnapshotResultSet", queryName := some "DeleteSnapshotResultSet" }, (.list (Shape.schema DeleteSnapshotReturnCode) "item")), + ({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "DeleteSnapshotResults" x.deleteSnapshotResults, putOpt "Return" x.«return»] + ofValue v := do + let deleteSnapshotResults ← v.opt "DeleteSnapshotResults" + let «return» ← v.opt "Return" + return { deleteSnapshotResults, «return» } + +structure DescribeAccountAttributesResult where + /-- Information about the account attributes. -/ + accountAttributes : Option (List AccountAttribute) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeAccountAttributesResult where + schema := .struct "DescribeAccountAttributesResult" [({ name := "AccountAttributes", xmlName := some "accountAttributeSet", queryName := some "AccountAttributeSet" }, (.list (Shape.schema AccountAttribute) "item"))] + toValue x := record [putOpt "AccountAttributes" x.accountAttributes] + ofValue v := do + let accountAttributes ← v.opt "AccountAttributes" + return { accountAttributes } + +structure DescribeAddressTransfersResult where + /-- The Elastic IP address transfer. -/ + addressTransfers : Option (List AddressTransfer) := none + /-- Specify the pagination token from a previous request to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeAddressTransfersResult where + schema := .struct "DescribeAddressTransfersResult" [({ name := "AddressTransfers", xmlName := some "addressTransferSet", queryName := some "AddressTransferSet" }, (.list (Shape.schema AddressTransfer) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "AddressTransfers" x.addressTransfers, putOpt "NextToken" x.nextToken] + ofValue v := do + let addressTransfers ← v.opt "AddressTransfers" + let nextToken ← v.opt "NextToken" + return { addressTransfers, nextToken } + +structure DescribeAddressesAttributeResult where + /-- Information about the IP addresses. -/ + addresses : Option (List AddressAttribute) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeAddressesAttributeResult where + schema := .struct "DescribeAddressesAttributeResult" [({ name := "Addresses", xmlName := some "addressSet", queryName := some "AddressSet" }, (.list (Shape.schema AddressAttribute) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "Addresses" x.addresses, putOpt "NextToken" x.nextToken] + ofValue v := do + let addresses ← v.opt "Addresses" + let nextToken ← v.opt "NextToken" + return { addresses, nextToken } + +structure DescribeAddressesResult where + /-- Information about the Elastic IP addresses. -/ + addresses : Option (List Address) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeAddressesResult where + schema := .struct "DescribeAddressesResult" [({ name := "Addresses", xmlName := some "addressesSet", queryName := some "AddressesSet" }, (.list (Shape.schema Address) "item"))] + toValue x := record [putOpt "Addresses" x.addresses] + ofValue v := do + let addresses ← v.opt "Addresses" + return { addresses } + +structure DescribeApplicationStatusCheckAssociationsResult where + /-- The associations for the specified application status checks. -/ + associations : Option (List ApplicationStatusCheckAssociationObject) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- The tags associated with the application status checks. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeApplicationStatusCheckAssociationsResult where + schema := .struct "DescribeApplicationStatusCheckAssociationsResult" [({ name := "Associations", xmlName := some "associationSet", queryName := some "AssociationSet" }, (.list (Shape.schema ApplicationStatusCheckAssociationObject) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "Associations" x.associations, putOpt "NextToken" x.nextToken, putOpt "Tags" x.tags] + ofValue v := do + let associations ← v.opt "Associations" + let nextToken ← v.opt "NextToken" + let tags ← v.opt "Tags" + return { associations, nextToken, tags } + +structure DescribeAvailabilityZonesResult where + /-- Information about the Availability Zones, Local Zones, and Wavelength Zones. -/ + availabilityZones : Option (List AvailabilityZone) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeAvailabilityZonesResult where + schema := .struct "DescribeAvailabilityZonesResult" [({ name := "AvailabilityZones", xmlName := some "availabilityZoneInfo", queryName := some "AvailabilityZoneInfo" }, (.list (Shape.schema AvailabilityZone) "item"))] + toValue x := record [putOpt "AvailabilityZones" x.availabilityZones] + ofValue v := do + let availabilityZones ← v.opt "AvailabilityZones" + return { availabilityZones } + +structure DescribeAwsNetworkPerformanceMetricSubscriptionsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Describes the current Infrastructure Performance subscriptions. -/ + subscriptions : Option (List Subscription) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeAwsNetworkPerformanceMetricSubscriptionsResult where + schema := .struct "DescribeAwsNetworkPerformanceMetricSubscriptionsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "Subscriptions", xmlName := some "subscriptionSet", queryName := some "SubscriptionSet" }, (.list (Shape.schema Subscription) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "Subscriptions" x.subscriptions] + ofValue v := do + let nextToken ← v.opt "NextToken" + let subscriptions ← v.opt "Subscriptions" + return { nextToken, subscriptions } + +structure DescribeCapacityBlockExtensionHistoryResult where + /-- Describes one or more of your Capacity Block extensions. -/ + capacityBlockExtensions : Option (List CapacityBlockExtension) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityBlockExtensionHistoryResult where + schema := .struct "DescribeCapacityBlockExtensionHistoryResult" [({ name := "CapacityBlockExtensions", xmlName := some "capacityBlockExtensionSet", queryName := some "CapacityBlockExtensionSet" }, (.list (Shape.schema CapacityBlockExtension) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "CapacityBlockExtensions" x.capacityBlockExtensions, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityBlockExtensions ← v.opt "CapacityBlockExtensions" + let nextToken ← v.opt "NextToken" + return { capacityBlockExtensions, nextToken } + +structure DescribeCapacityBlockExtensionOfferingsResult where + /-- The recommended Capacity Block extension offerings for the dates specified. -/ + capacityBlockExtensionOfferings : Option (List CapacityBlockExtensionOffering) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityBlockExtensionOfferingsResult where + schema := .struct "DescribeCapacityBlockExtensionOfferingsResult" [({ name := "CapacityBlockExtensionOfferings", xmlName := some "capacityBlockExtensionOfferingSet", queryName := some "CapacityBlockExtensionOfferingSet" }, (.list (Shape.schema CapacityBlockExtensionOffering) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "CapacityBlockExtensionOfferings" x.capacityBlockExtensionOfferings, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityBlockExtensionOfferings ← v.opt "CapacityBlockExtensionOfferings" + let nextToken ← v.opt "NextToken" + return { capacityBlockExtensionOfferings, nextToken } + +structure DescribeCapacityBlockOfferingsResult where + /-- The recommended Capacity Block offering for the dates specified. -/ + capacityBlockOfferings : Option (List CapacityBlockOffering) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityBlockOfferingsResult where + schema := .struct "DescribeCapacityBlockOfferingsResult" [({ name := "CapacityBlockOfferings", xmlName := some "capacityBlockOfferingSet", queryName := some "CapacityBlockOfferingSet" }, (.list (Shape.schema CapacityBlockOffering) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "CapacityBlockOfferings" x.capacityBlockOfferings, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityBlockOfferings ← v.opt "CapacityBlockOfferings" + let nextToken ← v.opt "NextToken" + return { capacityBlockOfferings, nextToken } + +structure DescribeCapacityBlockStatusResult where + /-- The availability of capacity for a Capacity Block. -/ + capacityBlockStatuses : Option (List CapacityBlockStatus) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityBlockStatusResult where + schema := .struct "DescribeCapacityBlockStatusResult" [({ name := "CapacityBlockStatuses", xmlName := some "capacityBlockStatusSet", queryName := some "CapacityBlockStatusSet" }, (.list (Shape.schema CapacityBlockStatus) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "CapacityBlockStatuses" x.capacityBlockStatuses, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityBlockStatuses ← v.opt "CapacityBlockStatuses" + let nextToken ← v.opt "NextToken" + return { capacityBlockStatuses, nextToken } + +structure DescribeCapacityBlocksResult where + /-- The Capacity Blocks. -/ + capacityBlocks : Option (List CapacityBlock) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityBlocksResult where + schema := .struct "DescribeCapacityBlocksResult" [({ name := "CapacityBlocks", xmlName := some "capacityBlockSet", queryName := some "CapacityBlockSet" }, (.list (Shape.schema CapacityBlock) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "CapacityBlocks" x.capacityBlocks, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityBlocks ← v.opt "CapacityBlocks" + let nextToken ← v.opt "NextToken" + return { capacityBlocks, nextToken } + +structure DescribeCapacityManagerDataExportsResult where + /-- Information about the data export configurations, including export settings, delivery status, and recent activity. -/ + capacityManagerDataExports : Option (List CapacityManagerDataExportResponse) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityManagerDataExportsResult where + schema := .struct "DescribeCapacityManagerDataExportsResult" [({ name := "CapacityManagerDataExports", xmlName := some "capacityManagerDataExportSet", queryName := some "CapacityManagerDataExportSet" }, (.list (Shape.schema CapacityManagerDataExportResponse) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "CapacityManagerDataExports" x.capacityManagerDataExports, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityManagerDataExports ← v.opt "CapacityManagerDataExports" + let nextToken ← v.opt "NextToken" + return { capacityManagerDataExports, nextToken } + +structure DescribeCarrierGatewaysResult where + /-- Information about the carrier gateway. -/ + carrierGateways : Option (List CarrierGateway) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCarrierGatewaysResult where + schema := .struct "DescribeCarrierGatewaysResult" [({ name := "CarrierGateways", xmlName := some "carrierGatewaySet", queryName := some "CarrierGatewaySet" }, (.list (Shape.schema CarrierGateway) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "CarrierGateways" x.carrierGateways, putOpt "NextToken" x.nextToken] + ofValue v := do + let carrierGateways ← v.opt "CarrierGateways" + let nextToken ← v.opt "NextToken" + return { carrierGateways, nextToken } + +structure DescribeClassicLinkInstancesResult where + /-- Information about one or more linked EC2-Classic instances. -/ + instances : Option (List ClassicLinkInstance) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeClassicLinkInstancesResult where + schema := .struct "DescribeClassicLinkInstancesResult" [({ name := "Instances", xmlName := some "instancesSet", queryName := some "InstancesSet" }, (.list (Shape.schema ClassicLinkInstance) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "Instances" x.instances, putOpt "NextToken" x.nextToken] + ofValue v := do + let instances ← v.opt "Instances" + let nextToken ← v.opt "NextToken" + return { instances, nextToken } + +structure DescribeCoipPoolsResult where + /-- Information about the address pools. -/ + coipPools : Option (List CoipPool) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCoipPoolsResult where + schema := .struct "DescribeCoipPoolsResult" [({ name := "CoipPools", xmlName := some "coipPoolSet", queryName := some "CoipPoolSet" }, (.list (Shape.schema CoipPool) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "CoipPools" x.coipPools, putOpt "NextToken" x.nextToken] + ofValue v := do + let coipPools ← v.opt "CoipPools" + let nextToken ← v.opt "NextToken" + return { coipPools, nextToken } + +/-- Contains the output of DescribeCustomerGateways. -/ +structure DescribeCustomerGatewaysResult where + /-- Information about one or more customer gateways. -/ + customerGateways : Option (List CustomerGateway) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCustomerGatewaysResult where + schema := .struct "DescribeCustomerGatewaysResult" [({ name := "CustomerGateways", xmlName := some "customerGatewaySet", queryName := some "CustomerGatewaySet" }, (.list (Shape.schema CustomerGateway) "item"))] + toValue x := record [putOpt "CustomerGateways" x.customerGateways] + ofValue v := do + let customerGateways ← v.opt "CustomerGateways" + return { customerGateways } + +structure DescribeDeclarativePoliciesReportsResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- The report metadata. -/ + reports : Option (List DeclarativePoliciesReport) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeDeclarativePoliciesReportsResult where + schema := .struct "DescribeDeclarativePoliciesReportsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "Reports", xmlName := some "reportSet", queryName := some "ReportSet" }, (.list (Shape.schema DeclarativePoliciesReport) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "Reports" x.reports] + ofValue v := do + let nextToken ← v.opt "NextToken" + let reports ← v.opt "Reports" + return { nextToken, reports } + +structure DescribeExportImageTasksResult where + /-- Information about the export image tasks. -/ + exportImageTasks : Option (List ExportImageTask) := none + /-- The token to use to get the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeExportImageTasksResult where + schema := .struct "DescribeExportImageTasksResult" [({ name := "ExportImageTasks", xmlName := some "exportImageTaskSet", queryName := some "ExportImageTaskSet" }, (.list (Shape.schema ExportImageTask) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "ExportImageTasks" x.exportImageTasks, putOpt "NextToken" x.nextToken] + ofValue v := do + let exportImageTasks ← v.opt "ExportImageTasks" + let nextToken ← v.opt "NextToken" + return { exportImageTasks, nextToken } + +structure DescribeFastLaunchImagesResult where + /-- A collection of details about the fast-launch enabled Windows images that meet the requested criteria. -/ + fastLaunchImages : Option (List DescribeFastLaunchImagesSuccessItem) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeFastLaunchImagesResult where + schema := .struct "DescribeFastLaunchImagesResult" [({ name := "FastLaunchImages", xmlName := some "fastLaunchImageSet", queryName := some "FastLaunchImageSet" }, (.list (Shape.schema DescribeFastLaunchImagesSuccessItem) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "FastLaunchImages" x.fastLaunchImages, putOpt "NextToken" x.nextToken] + ofValue v := do + let fastLaunchImages ← v.opt "FastLaunchImages" + let nextToken ← v.opt "NextToken" + return { fastLaunchImages, nextToken } + +structure DescribeFastSnapshotRestoresResult where + /-- Information about the state of fast snapshot restores. -/ + fastSnapshotRestores : Option (List DescribeFastSnapshotRestoreSuccessItem) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeFastSnapshotRestoresResult where + schema := .struct "DescribeFastSnapshotRestoresResult" [({ name := "FastSnapshotRestores", xmlName := some "fastSnapshotRestoreSet", queryName := some "FastSnapshotRestoreSet" }, (.list (Shape.schema DescribeFastSnapshotRestoreSuccessItem) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "FastSnapshotRestores" x.fastSnapshotRestores, putOpt "NextToken" x.nextToken] + ofValue v := do + let fastSnapshotRestores ← v.opt "FastSnapshotRestores" + let nextToken ← v.opt "NextToken" + return { fastSnapshotRestores, nextToken } + +structure DescribeFleetHistoryResult where + /-- The ID of the EC Fleet. -/ + fleetId : Option String := none + /-- Information about the events in the history of the EC2 Fleet. -/ + historyRecords : Option (List HistoryRecordEntry) := none + /-- The last date and time for the events, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). -/ + lastEvaluatedTime : Option Timestamp := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- The start date and time for the events, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). -/ + startTime : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeFleetHistoryResult where + schema := .struct "DescribeFleetHistoryResult" [({ name := "FleetId", xmlName := some "fleetId", queryName := some "FleetId" }, .string), + ({ name := "HistoryRecords", xmlName := some "historyRecordSet", queryName := some "HistoryRecordSet" }, (.list (Shape.schema HistoryRecordEntry) "item")), + ({ name := "LastEvaluatedTime", xmlName := some "lastEvaluatedTime", queryName := some "LastEvaluatedTime" }, (.time none)), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "StartTime", xmlName := some "startTime", queryName := some "StartTime" }, (.time none))] + toValue x := record [putOpt "FleetId" x.fleetId, putOpt "HistoryRecords" x.historyRecords, putOpt "LastEvaluatedTime" x.lastEvaluatedTime, putOpt "NextToken" x.nextToken, putOpt "StartTime" x.startTime] + ofValue v := do + let fleetId ← v.opt "FleetId" + let historyRecords ← v.opt "HistoryRecords" + let lastEvaluatedTime ← v.opt "LastEvaluatedTime" + let nextToken ← v.opt "NextToken" + let startTime ← v.opt "StartTime" + return { fleetId, historyRecords, lastEvaluatedTime, nextToken, startTime } + +structure DescribeFleetInstancesResult where + /-- The running instances. -/ + activeInstances : Option (List ActiveInstance) := none + /-- The ID of the EC2 Fleet. -/ + fleetId : Option String := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeFleetInstancesResult where + schema := .struct "DescribeFleetInstancesResult" [({ name := "ActiveInstances", xmlName := some "activeInstanceSet", queryName := some "ActiveInstanceSet" }, (.list (Shape.schema ActiveInstance) "item")), + ({ name := "FleetId", xmlName := some "fleetId", queryName := some "FleetId" }, .string), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "ActiveInstances" x.activeInstances, putOpt "FleetId" x.fleetId, putOpt "NextToken" x.nextToken] + ofValue v := do + let activeInstances ← v.opt "ActiveInstances" + let fleetId ← v.opt "FleetId" + let nextToken ← v.opt "NextToken" + return { activeInstances, fleetId, nextToken } + +structure DescribeHostReservationOfferingsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the offerings. -/ + offeringSet : Option (List HostOffering) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeHostReservationOfferingsResult where + schema := .struct "DescribeHostReservationOfferingsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "OfferingSet", xmlName := some "offeringSet", queryName := some "OfferingSet" }, (.list (Shape.schema HostOffering) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "OfferingSet" x.offeringSet] + ofValue v := do + let nextToken ← v.opt "NextToken" + let offeringSet ← v.opt "OfferingSet" + return { nextToken, offeringSet } + +structure DescribeHostReservationsResult where + /-- Details about the reservation's configuration. -/ + hostReservationSet : Option (List HostReservation) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeHostReservationsResult where + schema := .struct "DescribeHostReservationsResult" [({ name := "HostReservationSet", xmlName := some "hostReservationSet", queryName := some "HostReservationSet" }, (.list (Shape.schema HostReservation) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "HostReservationSet" x.hostReservationSet, putOpt "NextToken" x.nextToken] + ofValue v := do + let hostReservationSet ← v.opt "HostReservationSet" + let nextToken ← v.opt "NextToken" + return { hostReservationSet, nextToken } + +structure DescribeIamInstanceProfileAssociationsResult where + /-- Information about the IAM instance profile associations. -/ + iamInstanceProfileAssociations : Option (List IamInstanceProfileAssociation) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIamInstanceProfileAssociationsResult where + schema := .struct "DescribeIamInstanceProfileAssociationsResult" [({ name := "IamInstanceProfileAssociations", xmlName := some "iamInstanceProfileAssociationSet", queryName := some "IamInstanceProfileAssociationSet" }, (.list (Shape.schema IamInstanceProfileAssociation) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IamInstanceProfileAssociations" x.iamInstanceProfileAssociations, putOpt "NextToken" x.nextToken] + ofValue v := do + let iamInstanceProfileAssociations ← v.opt "IamInstanceProfileAssociations" + let nextToken ← v.opt "NextToken" + return { iamInstanceProfileAssociations, nextToken } + +structure DescribeImageReferencesResult where + /-- The resources that are referencing the specified images. -/ + imageReferences : Option (List ImageReference) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeImageReferencesResult where + schema := .struct "DescribeImageReferencesResult" [({ name := "ImageReferences", xmlName := some "imageReferenceSet", queryName := some "ImageReferenceSet" }, (.list (Shape.schema ImageReference) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "ImageReferences" x.imageReferences, putOpt "NextToken" x.nextToken] + ofValue v := do + let imageReferences ← v.opt "ImageReferences" + let nextToken ← v.opt "NextToken" + return { imageReferences, nextToken } + +structure DescribeInstanceSqlHaHistoryStatesResult where + /-- Information about the historical SQL Server High Availability states of the SQL Server High Availability instances. -/ + instances : Option (List RegisteredInstance) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceSqlHaHistoryStatesResult where + schema := .struct "DescribeInstanceSqlHaHistoryStatesResult" [({ name := "Instances", xmlName := some "instanceSet", queryName := some "InstanceSet" }, (.list (Shape.schema RegisteredInstance) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "Instances" x.instances, putOpt "NextToken" x.nextToken] + ofValue v := do + let instances ← v.opt "Instances" + let nextToken ← v.opt "NextToken" + return { instances, nextToken } + +structure DescribeInstanceSqlHaStatesResult where + /-- Information about the SQL Server High Availability instances. -/ + instances : Option (List RegisteredInstance) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceSqlHaStatesResult where + schema := .struct "DescribeInstanceSqlHaStatesResult" [({ name := "Instances", xmlName := some "instanceSet", queryName := some "InstanceSet" }, (.list (Shape.schema RegisteredInstance) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "Instances" x.instances, putOpt "NextToken" x.nextToken] + ofValue v := do + let instances ← v.opt "Instances" + let nextToken ← v.opt "NextToken" + return { instances, nextToken } + +structure DescribeInstanceTypeOfferingsResult where + /-- The instance types offered in the location. -/ + instanceTypeOfferings : Option (List InstanceTypeOffering) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceTypeOfferingsResult where + schema := .struct "DescribeInstanceTypeOfferingsResult" [({ name := "InstanceTypeOfferings", xmlName := some "instanceTypeOfferingSet", queryName := some "InstanceTypeOfferingSet" }, (.list (Shape.schema InstanceTypeOffering) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "InstanceTypeOfferings" x.instanceTypeOfferings, putOpt "NextToken" x.nextToken] + ofValue v := do + let instanceTypeOfferings ← v.opt "InstanceTypeOfferings" + let nextToken ← v.opt "NextToken" + return { instanceTypeOfferings, nextToken } + +structure DescribeIpamByoasnResult where + /-- ASN and BYOIP CIDR associations. -/ + byoasns : Option (List Byoasn) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamByoasnResult where + schema := .struct "DescribeIpamByoasnResult" [({ name := "Byoasns", xmlName := some "byoasnSet", queryName := some "ByoasnSet" }, (.list (Shape.schema Byoasn) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "Byoasns" x.byoasns, putOpt "NextToken" x.nextToken] + ofValue v := do + let byoasns ← v.opt "Byoasns" + let nextToken ← v.opt "NextToken" + return { byoasns, nextToken } + +structure DescribeIpamExternalResourceVerificationTokensResult where + /-- Verification tokens. -/ + ipamExternalResourceVerificationTokens : Option (List IpamExternalResourceVerificationToken) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamExternalResourceVerificationTokensResult where + schema := .struct "DescribeIpamExternalResourceVerificationTokensResult" [({ name := "IpamExternalResourceVerificationTokens", xmlName := some "ipamExternalResourceVerificationTokenSet", queryName := some "IpamExternalResourceVerificationTokenSet" }, (.list (Shape.schema IpamExternalResourceVerificationToken) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamExternalResourceVerificationTokens" x.ipamExternalResourceVerificationTokens, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamExternalResourceVerificationTokens ← v.opt "IpamExternalResourceVerificationTokens" + let nextToken ← v.opt "NextToken" + return { ipamExternalResourceVerificationTokens, nextToken } + +structure DescribeIpamInternetRegistryAssociationsResult where + /-- The internet registry associations. -/ + ipamInternetRegistryAssociations : Option (List IpamInternetRegistryAssociation) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamInternetRegistryAssociationsResult where + schema := .struct "DescribeIpamInternetRegistryAssociationsResult" [({ name := "IpamInternetRegistryAssociations", xmlName := some "ipamInternetRegistryAssociationSet", queryName := some "IpamInternetRegistryAssociationSet" }, (.list (Shape.schema IpamInternetRegistryAssociation) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamInternetRegistryAssociations" x.ipamInternetRegistryAssociations, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamInternetRegistryAssociations ← v.opt "IpamInternetRegistryAssociations" + let nextToken ← v.opt "NextToken" + return { ipamInternetRegistryAssociations, nextToken } + +structure DescribeIpamPoliciesResult where + /-- Information about the IPAM policies. -/ + ipamPolicies : Option (List IpamPolicy) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamPoliciesResult where + schema := .struct "DescribeIpamPoliciesResult" [({ name := "IpamPolicies", xmlName := some "ipamPolicySet", queryName := some "IpamPolicySet" }, (.list (Shape.schema IpamPolicy) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamPolicies" x.ipamPolicies, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamPolicies ← v.opt "IpamPolicies" + let nextToken ← v.opt "NextToken" + return { ipamPolicies, nextToken } + +structure DescribeIpamPoolAllocationsResult where + /-- Information about the IPAM pool allocations. -/ + ipamPoolAllocations : Option (List IpamPoolAllocation) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamPoolAllocationsResult where + schema := .struct "DescribeIpamPoolAllocationsResult" [({ name := "IpamPoolAllocations", xmlName := some "ipamPoolAllocationSet", queryName := some "IpamPoolAllocationSet" }, (.list (Shape.schema IpamPoolAllocation) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamPoolAllocations" x.ipamPoolAllocations, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamPoolAllocations ← v.opt "IpamPoolAllocations" + let nextToken ← v.opt "NextToken" + return { ipamPoolAllocations, nextToken } + +structure DescribeIpamPrefixListResolverTargetsResult where + /-- Information about the IPAM prefix list resolver Targets. -/ + ipamPrefixListResolverTargets : Option (List IpamPrefixListResolverTarget) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamPrefixListResolverTargetsResult where + schema := .struct "DescribeIpamPrefixListResolverTargetsResult" [({ name := "IpamPrefixListResolverTargets", xmlName := some "ipamPrefixListResolverTargetSet", queryName := some "IpamPrefixListResolverTargetSet" }, (.list (Shape.schema IpamPrefixListResolverTarget) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamPrefixListResolverTargets" x.ipamPrefixListResolverTargets, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamPrefixListResolverTargets ← v.opt "IpamPrefixListResolverTargets" + let nextToken ← v.opt "NextToken" + return { ipamPrefixListResolverTargets, nextToken } + +structure DescribeIpamPrefixListResolversResult where + /-- Information about the IPAM prefix list resolvers. -/ + ipamPrefixListResolvers : Option (List IpamPrefixListResolver) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamPrefixListResolversResult where + schema := .struct "DescribeIpamPrefixListResolversResult" [({ name := "IpamPrefixListResolvers", xmlName := some "ipamPrefixListResolverSet", queryName := some "IpamPrefixListResolverSet" }, (.list (Shape.schema IpamPrefixListResolver) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamPrefixListResolvers" x.ipamPrefixListResolvers, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamPrefixListResolvers ← v.opt "IpamPrefixListResolvers" + let nextToken ← v.opt "NextToken" + return { ipamPrefixListResolvers, nextToken } + +structure DescribeIpamResourceDiscoveriesResult where + /-- The resource discoveries. -/ + ipamResourceDiscoveries : Option (List IpamResourceDiscovery) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamResourceDiscoveriesResult where + schema := .struct "DescribeIpamResourceDiscoveriesResult" [({ name := "IpamResourceDiscoveries", xmlName := some "ipamResourceDiscoverySet", queryName := some "IpamResourceDiscoverySet" }, (.list (Shape.schema IpamResourceDiscovery) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamResourceDiscoveries" x.ipamResourceDiscoveries, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamResourceDiscoveries ← v.opt "IpamResourceDiscoveries" + let nextToken ← v.opt "NextToken" + return { ipamResourceDiscoveries, nextToken } + +structure DescribeIpamResourceDiscoveryAssociationsResult where + /-- The resource discovery associations. -/ + ipamResourceDiscoveryAssociations : Option (List IpamResourceDiscoveryAssociation) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamResourceDiscoveryAssociationsResult where + schema := .struct "DescribeIpamResourceDiscoveryAssociationsResult" [({ name := "IpamResourceDiscoveryAssociations", xmlName := some "ipamResourceDiscoveryAssociationSet", queryName := some "IpamResourceDiscoveryAssociationSet" }, (.list (Shape.schema IpamResourceDiscoveryAssociation) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamResourceDiscoveryAssociations" x.ipamResourceDiscoveryAssociations, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamResourceDiscoveryAssociations ← v.opt "IpamResourceDiscoveryAssociations" + let nextToken ← v.opt "NextToken" + return { ipamResourceDiscoveryAssociations, nextToken } + +structure DescribeIpamsResult where + /-- Information about the IPAMs. -/ + ipams : Option (List Ipam) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamsResult where + schema := .struct "DescribeIpamsResult" [({ name := "Ipams", xmlName := some "ipamSet", queryName := some "IpamSet" }, (.list (Shape.schema Ipam) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "Ipams" x.ipams, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipams ← v.opt "Ipams" + let nextToken ← v.opt "NextToken" + return { ipams, nextToken } + +structure DescribeIpv6PoolsResult where + /-- Information about the IPv6 address pools. -/ + ipv6Pools : Option (List Ipv6Pool) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpv6PoolsResult where + schema := .struct "DescribeIpv6PoolsResult" [({ name := "Ipv6Pools", xmlName := some "ipv6PoolSet", queryName := some "Ipv6PoolSet" }, (.list (Shape.schema Ipv6Pool) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "Ipv6Pools" x.ipv6Pools, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipv6Pools ← v.opt "Ipv6Pools" + let nextToken ← v.opt "NextToken" + return { ipv6Pools, nextToken } + +structure DescribeKeyPairsResult where + /-- Information about the key pairs. -/ + keyPairs : Option (List KeyPairInfo) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeKeyPairsResult where + schema := .struct "DescribeKeyPairsResult" [({ name := "KeyPairs", xmlName := some "keySet", queryName := some "KeySet" }, (.list (Shape.schema KeyPairInfo) "item"))] + toValue x := record [putOpt "KeyPairs" x.keyPairs] + ofValue v := do + let keyPairs ← v.opt "KeyPairs" + return { keyPairs } + +structure DescribeLaunchTemplatesResult where + /-- Information about the launch templates. -/ + launchTemplates : Option (List LaunchTemplate) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeLaunchTemplatesResult where + schema := .struct "DescribeLaunchTemplatesResult" [({ name := "LaunchTemplates", xmlName := some "launchTemplates", queryName := some "LaunchTemplates" }, (.list (Shape.schema LaunchTemplate) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "LaunchTemplates" x.launchTemplates, putOpt "NextToken" x.nextToken] + ofValue v := do + let launchTemplates ← v.opt "LaunchTemplates" + let nextToken ← v.opt "NextToken" + return { launchTemplates, nextToken } + +structure DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult where + /-- Information about the associations. -/ + localGatewayRouteTableVirtualInterfaceGroupAssociations : Option (List LocalGatewayRouteTableVirtualInterfaceGroupAssociation) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult where + schema := .struct "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult" [({ name := "LocalGatewayRouteTableVirtualInterfaceGroupAssociations", xmlName := some "localGatewayRouteTableVirtualInterfaceGroupAssociationSet", queryName := some "LocalGatewayRouteTableVirtualInterfaceGroupAssociationSet" }, (.list (Shape.schema LocalGatewayRouteTableVirtualInterfaceGroupAssociation) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "LocalGatewayRouteTableVirtualInterfaceGroupAssociations" x.localGatewayRouteTableVirtualInterfaceGroupAssociations, putOpt "NextToken" x.nextToken] + ofValue v := do + let localGatewayRouteTableVirtualInterfaceGroupAssociations ← v.opt "LocalGatewayRouteTableVirtualInterfaceGroupAssociations" + let nextToken ← v.opt "NextToken" + return { localGatewayRouteTableVirtualInterfaceGroupAssociations, nextToken } + +structure DescribeLocalGatewayRouteTableVpcAssociationsResult where + /-- Information about the associations. -/ + localGatewayRouteTableVpcAssociations : Option (List LocalGatewayRouteTableVpcAssociation) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeLocalGatewayRouteTableVpcAssociationsResult where + schema := .struct "DescribeLocalGatewayRouteTableVpcAssociationsResult" [({ name := "LocalGatewayRouteTableVpcAssociations", xmlName := some "localGatewayRouteTableVpcAssociationSet", queryName := some "LocalGatewayRouteTableVpcAssociationSet" }, (.list (Shape.schema LocalGatewayRouteTableVpcAssociation) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "LocalGatewayRouteTableVpcAssociations" x.localGatewayRouteTableVpcAssociations, putOpt "NextToken" x.nextToken] + ofValue v := do + let localGatewayRouteTableVpcAssociations ← v.opt "LocalGatewayRouteTableVpcAssociations" + let nextToken ← v.opt "NextToken" + return { localGatewayRouteTableVpcAssociations, nextToken } + +structure DescribeLocalGatewayRouteTablesResult where + /-- Information about the local gateway route tables. -/ + localGatewayRouteTables : Option (List LocalGatewayRouteTable) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeLocalGatewayRouteTablesResult where + schema := .struct "DescribeLocalGatewayRouteTablesResult" [({ name := "LocalGatewayRouteTables", xmlName := some "localGatewayRouteTableSet", queryName := some "LocalGatewayRouteTableSet" }, (.list (Shape.schema LocalGatewayRouteTable) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "LocalGatewayRouteTables" x.localGatewayRouteTables, putOpt "NextToken" x.nextToken] + ofValue v := do + let localGatewayRouteTables ← v.opt "LocalGatewayRouteTables" + let nextToken ← v.opt "NextToken" + return { localGatewayRouteTables, nextToken } + +structure DescribeLocalGatewayVirtualInterfaceGroupsResult where + /-- The virtual interface groups. -/ + localGatewayVirtualInterfaceGroups : Option (List LocalGatewayVirtualInterfaceGroup) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeLocalGatewayVirtualInterfaceGroupsResult where + schema := .struct "DescribeLocalGatewayVirtualInterfaceGroupsResult" [({ name := "LocalGatewayVirtualInterfaceGroups", xmlName := some "localGatewayVirtualInterfaceGroupSet", queryName := some "LocalGatewayVirtualInterfaceGroupSet" }, (.list (Shape.schema LocalGatewayVirtualInterfaceGroup) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "LocalGatewayVirtualInterfaceGroups" x.localGatewayVirtualInterfaceGroups, putOpt "NextToken" x.nextToken] + ofValue v := do + let localGatewayVirtualInterfaceGroups ← v.opt "LocalGatewayVirtualInterfaceGroups" + let nextToken ← v.opt "NextToken" + return { localGatewayVirtualInterfaceGroups, nextToken } + +structure DescribeLocalGatewayVirtualInterfacesResult where + /-- Information about the virtual interfaces. -/ + localGatewayVirtualInterfaces : Option (List LocalGatewayVirtualInterface) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeLocalGatewayVirtualInterfacesResult where + schema := .struct "DescribeLocalGatewayVirtualInterfacesResult" [({ name := "LocalGatewayVirtualInterfaces", xmlName := some "localGatewayVirtualInterfaceSet", queryName := some "LocalGatewayVirtualInterfaceSet" }, (.list (Shape.schema LocalGatewayVirtualInterface) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "LocalGatewayVirtualInterfaces" x.localGatewayVirtualInterfaces, putOpt "NextToken" x.nextToken] + ofValue v := do + let localGatewayVirtualInterfaces ← v.opt "LocalGatewayVirtualInterfaces" + let nextToken ← v.opt "NextToken" + return { localGatewayVirtualInterfaces, nextToken } + +structure DescribeLocalGatewaysResult where + /-- Information about the local gateways. -/ + localGateways : Option (List LocalGateway) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeLocalGatewaysResult where + schema := .struct "DescribeLocalGatewaysResult" [({ name := "LocalGateways", xmlName := some "localGatewaySet", queryName := some "LocalGatewaySet" }, (.list (Shape.schema LocalGateway) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "LocalGateways" x.localGateways, putOpt "NextToken" x.nextToken] + ofValue v := do + let localGateways ← v.opt "LocalGateways" + let nextToken ← v.opt "NextToken" + return { localGateways, nextToken } + +structure DescribeLockedSnapshotsResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about the snapshots. -/ + snapshots : Option (List LockedSnapshotsInfo) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeLockedSnapshotsResult where + schema := .struct "DescribeLockedSnapshotsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "Snapshots", xmlName := some "snapshotSet", queryName := some "SnapshotSet" }, (.list (Shape.schema LockedSnapshotsInfo) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "Snapshots" x.snapshots] + ofValue v := do + let nextToken ← v.opt "NextToken" + let snapshots ← v.opt "Snapshots" + return { nextToken, snapshots } + +structure DescribeManagedPrefixListsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the prefix lists. -/ + prefixLists : Option (List ManagedPrefixList) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeManagedPrefixListsResult where + schema := .struct "DescribeManagedPrefixListsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "PrefixLists", xmlName := some "prefixListSet", queryName := some "PrefixListSet" }, (.list (Shape.schema ManagedPrefixList) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "PrefixLists" x.prefixLists] + ofValue v := do + let nextToken ← v.opt "NextToken" + let prefixLists ← v.opt "PrefixLists" + return { nextToken, prefixLists } + +structure DescribeMetricCategoriesResult where + /-- Information about the metric categories. -/ + metricCategories : Option (List MetricCategory) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeMetricCategoriesResult where + schema := .struct "DescribeMetricCategoriesResult" [({ name := "MetricCategories", xmlName := some "metricCategorySet", queryName := some "MetricCategorySet" }, (.list (Shape.schema MetricCategory) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "MetricCategories" x.metricCategories, putOpt "NextToken" x.nextToken] + ofValue v := do + let metricCategories ← v.opt "MetricCategories" + let nextToken ← v.opt "NextToken" + return { metricCategories, nextToken } + +structure DescribeMovingAddressesResult where + /-- The status for each Elastic IP address. -/ + movingAddressStatuses : Option (List MovingAddressStatus) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeMovingAddressesResult where + schema := .struct "DescribeMovingAddressesResult" [({ name := "MovingAddressStatuses", xmlName := some "movingAddressStatusSet", queryName := some "MovingAddressStatusSet" }, (.list (Shape.schema MovingAddressStatus) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "MovingAddressStatuses" x.movingAddressStatuses, putOpt "NextToken" x.nextToken] + ofValue v := do + let movingAddressStatuses ← v.opt "MovingAddressStatuses" + let nextToken ← v.opt "NextToken" + return { movingAddressStatuses, nextToken } + +structure DescribeNetworkInsightsAccessScopeAnalysesResult where + /-- The Network Access Scope analyses. -/ + networkInsightsAccessScopeAnalyses : Option (List NetworkInsightsAccessScopeAnalysis) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNetworkInsightsAccessScopeAnalysesResult where + schema := .struct "DescribeNetworkInsightsAccessScopeAnalysesResult" [({ name := "NetworkInsightsAccessScopeAnalyses", xmlName := some "networkInsightsAccessScopeAnalysisSet", queryName := some "NetworkInsightsAccessScopeAnalysisSet" }, (.list (Shape.schema NetworkInsightsAccessScopeAnalysis) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "NetworkInsightsAccessScopeAnalyses" x.networkInsightsAccessScopeAnalyses, putOpt "NextToken" x.nextToken] + ofValue v := do + let networkInsightsAccessScopeAnalyses ← v.opt "NetworkInsightsAccessScopeAnalyses" + let nextToken ← v.opt "NextToken" + return { networkInsightsAccessScopeAnalyses, nextToken } + +structure DescribeNetworkInsightsAccessScopesResult where + /-- The Network Access Scopes. -/ + networkInsightsAccessScopes : Option (List NetworkInsightsAccessScope) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNetworkInsightsAccessScopesResult where + schema := .struct "DescribeNetworkInsightsAccessScopesResult" [({ name := "NetworkInsightsAccessScopes", xmlName := some "networkInsightsAccessScopeSet", queryName := some "NetworkInsightsAccessScopeSet" }, (.list (Shape.schema NetworkInsightsAccessScope) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "NetworkInsightsAccessScopes" x.networkInsightsAccessScopes, putOpt "NextToken" x.nextToken] + ofValue v := do + let networkInsightsAccessScopes ← v.opt "NetworkInsightsAccessScopes" + let nextToken ← v.opt "NextToken" + return { networkInsightsAccessScopes, nextToken } + +structure DescribeNetworkingFlexCostAllocationPolicyAssociationsResult where + /-- Information about the policy associations. -/ + fcaPolicyAssociations : Option (List FlexCostAllocationPolicyAssociationDescription) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNetworkingFlexCostAllocationPolicyAssociationsResult where + schema := .struct "DescribeNetworkingFlexCostAllocationPolicyAssociationsResult" [({ name := "FcaPolicyAssociations", xmlName := some "fcaPolicyAssociations", queryName := some "FcaPolicyAssociations" }, (.list (Shape.schema FlexCostAllocationPolicyAssociationDescription) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "FcaPolicyAssociations" x.fcaPolicyAssociations, putOpt "NextToken" x.nextToken] + ofValue v := do + let fcaPolicyAssociations ← v.opt "FcaPolicyAssociations" + let nextToken ← v.opt "NextToken" + return { fcaPolicyAssociations, nextToken } + +structure DescribeOutpostLagsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- The Outpost LAGs. -/ + outpostLags : Option (List OutpostLag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeOutpostLagsResult where + schema := .struct "DescribeOutpostLagsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "OutpostLags", xmlName := some "outpostLagSet", queryName := some "OutpostLagSet" }, (.list (Shape.schema OutpostLag) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "OutpostLags" x.outpostLags] + ofValue v := do + let nextToken ← v.opt "NextToken" + let outpostLags ← v.opt "OutpostLags" + return { nextToken, outpostLags } + +structure DescribePlacementGroupsResult where + /-- Information about the placement groups. -/ + placementGroups : Option (List PlacementGroup) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribePlacementGroupsResult where + schema := .struct "DescribePlacementGroupsResult" [({ name := "PlacementGroups", xmlName := some "placementGroupSet", queryName := some "PlacementGroupSet" }, (.list (Shape.schema PlacementGroup) "item"))] + toValue x := record [putOpt "PlacementGroups" x.placementGroups] + ofValue v := do + let placementGroups ← v.opt "PlacementGroups" + return { placementGroups } + +structure DescribePrincipalIdFormatResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the ID format settings for the ARN. -/ + principals : Option (List PrincipalIdFormat) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribePrincipalIdFormatResult where + schema := .struct "DescribePrincipalIdFormatResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "Principals", xmlName := some "principalSet", queryName := some "PrincipalSet" }, (.list (Shape.schema PrincipalIdFormat) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "Principals" x.principals] + ofValue v := do + let nextToken ← v.opt "NextToken" + let principals ← v.opt "Principals" + return { nextToken, principals } + +structure DescribePublicIpv4PoolsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the address pools. -/ + publicIpv4Pools : Option (List PublicIpv4Pool) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribePublicIpv4PoolsResult where + schema := .struct "DescribePublicIpv4PoolsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "PublicIpv4Pools", xmlName := some "publicIpv4PoolSet", queryName := some "PublicIpv4PoolSet" }, (.list (Shape.schema PublicIpv4Pool) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "PublicIpv4Pools" x.publicIpv4Pools] + ofValue v := do + let nextToken ← v.opt "NextToken" + let publicIpv4Pools ← v.opt "PublicIpv4Pools" + return { nextToken, publicIpv4Pools } + +structure DescribeRegionsResult where + /-- Information about the Regions. -/ + regions : Option (List Region) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeRegionsResult where + schema := .struct "DescribeRegionsResult" [({ name := "Regions", xmlName := some "regionInfo", queryName := some "RegionInfo" }, (.list (Shape.schema Region) "item"))] + toValue x := record [putOpt "Regions" x.regions] + ofValue v := do + let regions ← v.opt "Regions" + return { regions } + +structure DescribeReplaceRootVolumeTasksResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about the root volume replacement task. -/ + replaceRootVolumeTasks : Option (List ReplaceRootVolumeTask) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeReplaceRootVolumeTasksResult where + schema := .struct "DescribeReplaceRootVolumeTasksResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "ReplaceRootVolumeTasks", xmlName := some "replaceRootVolumeTaskSet", queryName := some "ReplaceRootVolumeTaskSet" }, (.list (Shape.schema ReplaceRootVolumeTask) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "ReplaceRootVolumeTasks" x.replaceRootVolumeTasks] + ofValue v := do + let nextToken ← v.opt "NextToken" + let replaceRootVolumeTasks ← v.opt "ReplaceRootVolumeTasks" + return { nextToken, replaceRootVolumeTasks } + +structure DescribeRouteServerEndpointsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the described route server endpoints. -/ + routeServerEndpoints : Option (List RouteServerEndpoint) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeRouteServerEndpointsResult where + schema := .struct "DescribeRouteServerEndpointsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "RouteServerEndpoints", xmlName := some "routeServerEndpointSet", queryName := some "RouteServerEndpointSet" }, (.list (Shape.schema RouteServerEndpoint) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "RouteServerEndpoints" x.routeServerEndpoints] + ofValue v := do + let nextToken ← v.opt "NextToken" + let routeServerEndpoints ← v.opt "RouteServerEndpoints" + return { nextToken, routeServerEndpoints } + +structure DescribeRouteServersResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the described route servers. -/ + routeServers : Option (List RouteServer) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeRouteServersResult where + schema := .struct "DescribeRouteServersResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "RouteServers", xmlName := some "routeServerSet", queryName := some "RouteServerSet" }, (.list (Shape.schema RouteServer) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "RouteServers" x.routeServers] + ofValue v := do + let nextToken ← v.opt "NextToken" + let routeServers ← v.opt "RouteServers" + return { nextToken, routeServers } + +/-- Contains the output of DescribeScheduledInstanceAvailability. -/ +structure DescribeScheduledInstanceAvailabilityResult where + /-- The token required to retrieve the next set of results. -/ + nextToken : Option String := none + /-- Information about the available Scheduled Instances. -/ + scheduledInstanceAvailabilitySet : Option (List ScheduledInstanceAvailability) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeScheduledInstanceAvailabilityResult where + schema := .struct "DescribeScheduledInstanceAvailabilityResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "ScheduledInstanceAvailabilitySet", xmlName := some "scheduledInstanceAvailabilitySet", queryName := some "ScheduledInstanceAvailabilitySet" }, (.list (Shape.schema ScheduledInstanceAvailability) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "ScheduledInstanceAvailabilitySet" x.scheduledInstanceAvailabilitySet] + ofValue v := do + let nextToken ← v.opt "NextToken" + let scheduledInstanceAvailabilitySet ← v.opt "ScheduledInstanceAvailabilitySet" + return { nextToken, scheduledInstanceAvailabilitySet } + +/-- Contains the output of DescribeScheduledInstances. -/ +structure DescribeScheduledInstancesResult where + /-- The token required to retrieve the next set of results. -/ + nextToken : Option String := none + /-- Information about the Scheduled Instances. -/ + scheduledInstanceSet : Option (List ScheduledInstance) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeScheduledInstancesResult where + schema := .struct "DescribeScheduledInstancesResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "ScheduledInstanceSet", xmlName := some "scheduledInstanceSet", queryName := some "ScheduledInstanceSet" }, (.list (Shape.schema ScheduledInstance) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "ScheduledInstanceSet" x.scheduledInstanceSet] + ofValue v := do + let nextToken ← v.opt "NextToken" + let scheduledInstanceSet ← v.opt "ScheduledInstanceSet" + return { nextToken, scheduledInstanceSet } + +structure DescribeSecurityGroupRulesResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about security group rules. -/ + securityGroupRules : Option (List SecurityGroupRule) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSecurityGroupRulesResult where + schema := .struct "DescribeSecurityGroupRulesResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "SecurityGroupRules", xmlName := some "securityGroupRuleSet", queryName := some "SecurityGroupRuleSet" }, (.list (Shape.schema SecurityGroupRule) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "SecurityGroupRules" x.securityGroupRules] + ofValue v := do + let nextToken ← v.opt "NextToken" + let securityGroupRules ← v.opt "SecurityGroupRules" + return { nextToken, securityGroupRules } + +structure DescribeSecurityGroupVpcAssociationsResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- The security group VPC associations. -/ + securityGroupVpcAssociations : Option (List SecurityGroupVpcAssociation) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSecurityGroupVpcAssociationsResult where + schema := .struct "DescribeSecurityGroupVpcAssociationsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "SecurityGroupVpcAssociations", xmlName := some "securityGroupVpcAssociationSet", queryName := some "SecurityGroupVpcAssociationSet" }, (.list (Shape.schema SecurityGroupVpcAssociation) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "SecurityGroupVpcAssociations" x.securityGroupVpcAssociations] + ofValue v := do + let nextToken ← v.opt "NextToken" + let securityGroupVpcAssociations ← v.opt "SecurityGroupVpcAssociations" + return { nextToken, securityGroupVpcAssociations } + +structure DescribeServiceLinkVirtualInterfacesResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Describes the service link virtual interfaces. -/ + serviceLinkVirtualInterfaces : Option (List ServiceLinkVirtualInterface) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeServiceLinkVirtualInterfacesResult where + schema := .struct "DescribeServiceLinkVirtualInterfacesResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "ServiceLinkVirtualInterfaces", xmlName := some "serviceLinkVirtualInterfaceSet", queryName := some "ServiceLinkVirtualInterfaceSet" }, (.list (Shape.schema ServiceLinkVirtualInterface) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "ServiceLinkVirtualInterfaces" x.serviceLinkVirtualInterfaces] + ofValue v := do + let nextToken ← v.opt "NextToken" + let serviceLinkVirtualInterfaces ← v.opt "ServiceLinkVirtualInterfaces" + return { nextToken, serviceLinkVirtualInterfaces } + +structure DescribeSnapshotAttributeResult where + /-- The users and groups that have the permissions for creating volumes from the snapshot. -/ + createVolumePermissions : Option (List CreateVolumePermission) := none + /-- The product codes. -/ + productCodes : Option (List ProductCode) := none + /-- The ID of the EBS snapshot. -/ + snapshotId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSnapshotAttributeResult where + schema := .struct "DescribeSnapshotAttributeResult" [({ name := "CreateVolumePermissions", xmlName := some "createVolumePermission", queryName := some "CreateVolumePermission" }, (.list (Shape.schema CreateVolumePermission) "item")), + ({ name := "ProductCodes", xmlName := some "productCodes", queryName := some "ProductCodes" }, (.list (Shape.schema ProductCode) "item")), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string)] + toValue x := record [putOpt "CreateVolumePermissions" x.createVolumePermissions, putOpt "ProductCodes" x.productCodes, putOpt "SnapshotId" x.snapshotId] + ofValue v := do + let createVolumePermissions ← v.opt "CreateVolumePermissions" + let productCodes ← v.opt "ProductCodes" + let snapshotId ← v.opt "SnapshotId" + return { createVolumePermissions, productCodes, snapshotId } + +structure DescribeSnapshotTierStatusResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about the snapshot's storage tier. -/ + snapshotTierStatuses : Option (List SnapshotTierStatus) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSnapshotTierStatusResult where + schema := .struct "DescribeSnapshotTierStatusResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "SnapshotTierStatuses", xmlName := some "snapshotTierStatusSet", queryName := some "SnapshotTierStatusSet" }, (.list (Shape.schema SnapshotTierStatus) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "SnapshotTierStatuses" x.snapshotTierStatuses] + ofValue v := do + let nextToken ← v.opt "NextToken" + let snapshotTierStatuses ← v.opt "SnapshotTierStatuses" + return { nextToken, snapshotTierStatuses } + +structure DescribeSnapshotsResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about the snapshots. -/ + snapshots : Option (List Snapshot) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSnapshotsResult where + schema := .struct "DescribeSnapshotsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "Snapshots", xmlName := some "snapshotSet", queryName := some "SnapshotSet" }, (.list (Shape.schema Snapshot) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "Snapshots" x.snapshots] + ofValue v := do + let nextToken ← v.opt "NextToken" + let snapshots ← v.opt "Snapshots" + return { nextToken, snapshots } + +/-- Contains the output of DescribeSpotDatafeedSubscription. -/ +structure DescribeSpotDatafeedSubscriptionResult where + /-- The Spot Instance data feed subscription. -/ + spotDatafeedSubscription : Option SpotDatafeedSubscription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSpotDatafeedSubscriptionResult where + schema := .struct "DescribeSpotDatafeedSubscriptionResult" [({ name := "SpotDatafeedSubscription", xmlName := some "spotDatafeedSubscription", queryName := some "SpotDatafeedSubscription" }, (Shape.schema SpotDatafeedSubscription))] + toValue x := record [putOpt "SpotDatafeedSubscription" x.spotDatafeedSubscription] + ofValue v := do + let spotDatafeedSubscription ← v.opt "SpotDatafeedSubscription" + return { spotDatafeedSubscription } + +/-- Contains the output of DescribeSpotFleetInstances. -/ +structure DescribeSpotFleetInstancesResponse where + /-- The running instances. -/ + activeInstances : Option (List ActiveInstance) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- The ID of the Spot Fleet request. -/ + spotFleetRequestId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSpotFleetInstancesResponse where + schema := .struct "DescribeSpotFleetInstancesResponse" [({ name := "ActiveInstances", xmlName := some "activeInstanceSet", queryName := some "ActiveInstanceSet" }, (.list (Shape.schema ActiveInstance) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "SpotFleetRequestId", xmlName := some "spotFleetRequestId", queryName := some "SpotFleetRequestId" }, .string)] + toValue x := record [putOpt "ActiveInstances" x.activeInstances, putOpt "NextToken" x.nextToken, putOpt "SpotFleetRequestId" x.spotFleetRequestId] + ofValue v := do + let activeInstances ← v.opt "ActiveInstances" + let nextToken ← v.opt "NextToken" + let spotFleetRequestId ← v.opt "SpotFleetRequestId" + return { activeInstances, nextToken, spotFleetRequestId } + +/-- Contains the output of DescribeSpotFleetRequestHistory. -/ +structure DescribeSpotFleetRequestHistoryResponse where + /-- Information about the events in the history of the Spot Fleet request. -/ + historyRecords : Option (List HistoryRecord) := none + /-- The last date and time for the events, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). -/ + lastEvaluatedTime : Option Timestamp := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- The ID of the Spot Fleet request. -/ + spotFleetRequestId : Option String := none + /-- The starting date and time for the events, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). -/ + startTime : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSpotFleetRequestHistoryResponse where + schema := .struct "DescribeSpotFleetRequestHistoryResponse" [({ name := "HistoryRecords", xmlName := some "historyRecordSet", queryName := some "HistoryRecordSet" }, (.list (Shape.schema HistoryRecord) "item")), + ({ name := "LastEvaluatedTime", xmlName := some "lastEvaluatedTime", queryName := some "LastEvaluatedTime" }, (.time none)), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "SpotFleetRequestId", xmlName := some "spotFleetRequestId", queryName := some "SpotFleetRequestId" }, .string), + ({ name := "StartTime", xmlName := some "startTime", queryName := some "StartTime" }, (.time none))] + toValue x := record [putOpt "HistoryRecords" x.historyRecords, putOpt "LastEvaluatedTime" x.lastEvaluatedTime, putOpt "NextToken" x.nextToken, putOpt "SpotFleetRequestId" x.spotFleetRequestId, putOpt "StartTime" x.startTime] + ofValue v := do + let historyRecords ← v.opt "HistoryRecords" + let lastEvaluatedTime ← v.opt "LastEvaluatedTime" + let nextToken ← v.opt "NextToken" + let spotFleetRequestId ← v.opt "SpotFleetRequestId" + let startTime ← v.opt "StartTime" + return { historyRecords, lastEvaluatedTime, nextToken, spotFleetRequestId, startTime } + +/-- Contains the output of DescribeSpotPriceHistory. -/ +structure DescribeSpotPriceHistoryResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- The historical Spot prices. -/ + spotPriceHistory : Option (List SpotPrice) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSpotPriceHistoryResult where + schema := .struct "DescribeSpotPriceHistoryResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "SpotPriceHistory", xmlName := some "spotPriceHistorySet", queryName := some "SpotPriceHistorySet" }, (.list (Shape.schema SpotPrice) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "SpotPriceHistory" x.spotPriceHistory] + ofValue v := do + let nextToken ← v.opt "NextToken" + let spotPriceHistory ← v.opt "SpotPriceHistory" + return { nextToken, spotPriceHistory } + +structure DescribeTagsResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- The tags. -/ + tags : Option (List TagDescription) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTagsResult where + schema := .struct "DescribeTagsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema TagDescription) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "Tags" x.tags] + ofValue v := do + let nextToken ← v.opt "NextToken" + let tags ← v.opt "Tags" + return { nextToken, tags } + +structure DescribeTrafficMirrorFilterRulesResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Traffic mirror rules. -/ + trafficMirrorFilterRules : Option (List TrafficMirrorFilterRule) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTrafficMirrorFilterRulesResult where + schema := .struct "DescribeTrafficMirrorFilterRulesResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TrafficMirrorFilterRules", xmlName := some "trafficMirrorFilterRuleSet", queryName := some "TrafficMirrorFilterRuleSet" }, (.list (Shape.schema TrafficMirrorFilterRule) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TrafficMirrorFilterRules" x.trafficMirrorFilterRules] + ofValue v := do + let nextToken ← v.opt "NextToken" + let trafficMirrorFilterRules ← v.opt "TrafficMirrorFilterRules" + return { nextToken, trafficMirrorFilterRules } + +structure DescribeTrafficMirrorSessionsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Describes one or more Traffic Mirror sessions. -/ + trafficMirrorSessions : Option (List TrafficMirrorSession) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTrafficMirrorSessionsResult where + schema := .struct "DescribeTrafficMirrorSessionsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TrafficMirrorSessions", xmlName := some "trafficMirrorSessionSet", queryName := some "TrafficMirrorSessionSet" }, (.list (Shape.schema TrafficMirrorSession) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TrafficMirrorSessions" x.trafficMirrorSessions] + ofValue v := do + let nextToken ← v.opt "NextToken" + let trafficMirrorSessions ← v.opt "TrafficMirrorSessions" + return { nextToken, trafficMirrorSessions } + +structure DescribeTrafficMirrorTargetsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about one or more Traffic Mirror targets. -/ + trafficMirrorTargets : Option (List TrafficMirrorTarget) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTrafficMirrorTargetsResult where + schema := .struct "DescribeTrafficMirrorTargetsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TrafficMirrorTargets", xmlName := some "trafficMirrorTargetSet", queryName := some "TrafficMirrorTargetSet" }, (.list (Shape.schema TrafficMirrorTarget) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TrafficMirrorTargets" x.trafficMirrorTargets] + ofValue v := do + let nextToken ← v.opt "NextToken" + let trafficMirrorTargets ← v.opt "TrafficMirrorTargets" + return { nextToken, trafficMirrorTargets } + +structure DescribeTransitGatewayMeteringPoliciesResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the transit gateway metering policies. -/ + transitGatewayMeteringPolicies : Option (List TransitGatewayMeteringPolicy) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayMeteringPoliciesResult where + schema := .struct "DescribeTransitGatewayMeteringPoliciesResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TransitGatewayMeteringPolicies", xmlName := some "transitGatewayMeteringPolicies", queryName := some "TransitGatewayMeteringPolicies" }, (.list (Shape.schema TransitGatewayMeteringPolicy) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TransitGatewayMeteringPolicies" x.transitGatewayMeteringPolicies] + ofValue v := do + let nextToken ← v.opt "NextToken" + let transitGatewayMeteringPolicies ← v.opt "TransitGatewayMeteringPolicies" + return { nextToken, transitGatewayMeteringPolicies } + +structure DescribeTransitGatewayNetworkFunctionAttachmentsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the network function attachments. -/ + transitGatewayNetworkFunctionAttachments : Option (List TransitGatewayNetworkFunctionAttachment) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayNetworkFunctionAttachmentsResult where + schema := .struct "DescribeTransitGatewayNetworkFunctionAttachmentsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TransitGatewayNetworkFunctionAttachments", xmlName := some "transitGatewayNetworkFunctionAttachmentSet", queryName := some "TransitGatewayNetworkFunctionAttachmentSet" }, (.list (Shape.schema TransitGatewayNetworkFunctionAttachment) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TransitGatewayNetworkFunctionAttachments" x.transitGatewayNetworkFunctionAttachments] + ofValue v := do + let nextToken ← v.opt "NextToken" + let transitGatewayNetworkFunctionAttachments ← v.opt "TransitGatewayNetworkFunctionAttachments" + return { nextToken, transitGatewayNetworkFunctionAttachments } + +structure DescribeTransitGatewayPolicyTablesResult where + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- Describes the transit gateway policy tables. -/ + transitGatewayPolicyTables : Option (List TransitGatewayPolicyTable) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayPolicyTablesResult where + schema := .struct "DescribeTransitGatewayPolicyTablesResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TransitGatewayPolicyTables", xmlName := some "transitGatewayPolicyTables", queryName := some "TransitGatewayPolicyTables" }, (.list (Shape.schema TransitGatewayPolicyTable) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TransitGatewayPolicyTables" x.transitGatewayPolicyTables] + ofValue v := do + let nextToken ← v.opt "NextToken" + let transitGatewayPolicyTables ← v.opt "TransitGatewayPolicyTables" + return { nextToken, transitGatewayPolicyTables } + +structure DescribeTransitGatewayRouteTableAnnouncementsResult where + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- Describes the transit gateway route table announcement. -/ + transitGatewayRouteTableAnnouncements : Option (List TransitGatewayRouteTableAnnouncement) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayRouteTableAnnouncementsResult where + schema := .struct "DescribeTransitGatewayRouteTableAnnouncementsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TransitGatewayRouteTableAnnouncements", xmlName := some "transitGatewayRouteTableAnnouncements", queryName := some "TransitGatewayRouteTableAnnouncements" }, (.list (Shape.schema TransitGatewayRouteTableAnnouncement) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TransitGatewayRouteTableAnnouncements" x.transitGatewayRouteTableAnnouncements] + ofValue v := do + let nextToken ← v.opt "NextToken" + let transitGatewayRouteTableAnnouncements ← v.opt "TransitGatewayRouteTableAnnouncements" + return { nextToken, transitGatewayRouteTableAnnouncements } + +structure DescribeTransitGatewayRouteTablesResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the transit gateway route tables. -/ + transitGatewayRouteTables : Option (List TransitGatewayRouteTable) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayRouteTablesResult where + schema := .struct "DescribeTransitGatewayRouteTablesResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TransitGatewayRouteTables", xmlName := some "transitGatewayRouteTables", queryName := some "TransitGatewayRouteTables" }, (.list (Shape.schema TransitGatewayRouteTable) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TransitGatewayRouteTables" x.transitGatewayRouteTables] + ofValue v := do + let nextToken ← v.opt "NextToken" + let transitGatewayRouteTables ← v.opt "TransitGatewayRouteTables" + return { nextToken, transitGatewayRouteTables } + +structure DescribeTrunkInterfaceAssociationsResult where + /-- Information about the trunk associations. -/ + interfaceAssociations : Option (List TrunkInterfaceAssociation) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTrunkInterfaceAssociationsResult where + schema := .struct "DescribeTrunkInterfaceAssociationsResult" [({ name := "InterfaceAssociations", xmlName := some "interfaceAssociationSet", queryName := some "InterfaceAssociationSet" }, (.list (Shape.schema TrunkInterfaceAssociation) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "InterfaceAssociations" x.interfaceAssociations, putOpt "NextToken" x.nextToken] + ofValue v := do + let interfaceAssociations ← v.opt "InterfaceAssociations" + let nextToken ← v.opt "NextToken" + return { interfaceAssociations, nextToken } + +structure DescribeVerifiedAccessGroupsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Details about the Verified Access groups. -/ + verifiedAccessGroups : Option (List VerifiedAccessGroup) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVerifiedAccessGroupsResult where + schema := .struct "DescribeVerifiedAccessGroupsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "VerifiedAccessGroups", xmlName := some "verifiedAccessGroupSet", queryName := some "VerifiedAccessGroupSet" }, (.list (Shape.schema VerifiedAccessGroup) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "VerifiedAccessGroups" x.verifiedAccessGroups] + ofValue v := do + let nextToken ← v.opt "NextToken" + let verifiedAccessGroups ← v.opt "VerifiedAccessGroups" + return { nextToken, verifiedAccessGroups } + +structure DescribeVerifiedAccessTrustProvidersResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Details about the Verified Access trust providers. -/ + verifiedAccessTrustProviders : Option (List VerifiedAccessTrustProvider) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVerifiedAccessTrustProvidersResult where + schema := .struct "DescribeVerifiedAccessTrustProvidersResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "VerifiedAccessTrustProviders", xmlName := some "verifiedAccessTrustProviderSet", queryName := some "VerifiedAccessTrustProviderSet" }, (.list (Shape.schema VerifiedAccessTrustProvider) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "VerifiedAccessTrustProviders" x.verifiedAccessTrustProviders] + ofValue v := do + let nextToken ← v.opt "NextToken" + let verifiedAccessTrustProviders ← v.opt "VerifiedAccessTrustProviders" + return { nextToken, verifiedAccessTrustProviders } + +structure DescribeVolumeAttributeResult where + /-- The state of autoEnableIO attribute. -/ + autoEnableIO : Option AttributeBooleanValue := none + /-- A list of product codes. -/ + productCodes : Option (List ProductCode) := none + /-- The ID of the volume. -/ + volumeId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVolumeAttributeResult where + schema := .struct "DescribeVolumeAttributeResult" [({ name := "AutoEnableIO", xmlName := some "autoEnableIO", queryName := some "AutoEnableIO" }, (Shape.schema AttributeBooleanValue)), + ({ name := "ProductCodes", xmlName := some "productCodes", queryName := some "ProductCodes" }, (.list (Shape.schema ProductCode) "item")), + ({ name := "VolumeId", xmlName := some "volumeId", queryName := some "VolumeId" }, .string)] + toValue x := record [putOpt "AutoEnableIO" x.autoEnableIO, putOpt "ProductCodes" x.productCodes, putOpt "VolumeId" x.volumeId] + ofValue v := do + let autoEnableIO ← v.opt "AutoEnableIO" + let productCodes ← v.opt "ProductCodes" + let volumeId ← v.opt "VolumeId" + return { autoEnableIO, productCodes, volumeId } + +structure DescribeVolumesModificationsResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about the volume modifications. -/ + volumesModifications : Option (List VolumeModification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVolumesModificationsResult where + schema := .struct "DescribeVolumesModificationsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "VolumesModifications", xmlName := some "volumeModificationSet", queryName := some "VolumeModificationSet" }, (.list (Shape.schema VolumeModification) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "VolumesModifications" x.volumesModifications] + ofValue v := do + let nextToken ← v.opt "NextToken" + let volumesModifications ← v.opt "VolumesModifications" + return { nextToken, volumesModifications } + +structure DescribeVpcBlockPublicAccessExclusionsResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Details related to the exclusions. -/ + vpcBlockPublicAccessExclusions : Option (List VpcBlockPublicAccessExclusion) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcBlockPublicAccessExclusionsResult where + schema := .struct "DescribeVpcBlockPublicAccessExclusionsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "VpcBlockPublicAccessExclusions", xmlName := some "vpcBlockPublicAccessExclusionSet", queryName := some "VpcBlockPublicAccessExclusionSet" }, (.list (Shape.schema VpcBlockPublicAccessExclusion) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "VpcBlockPublicAccessExclusions" x.vpcBlockPublicAccessExclusions] + ofValue v := do + let nextToken ← v.opt "NextToken" + let vpcBlockPublicAccessExclusions ← v.opt "VpcBlockPublicAccessExclusions" + return { nextToken, vpcBlockPublicAccessExclusions } + +structure DescribeVpcBlockPublicAccessOptionsResult where + /-- Details related to the options. -/ + vpcBlockPublicAccessOptions : Option VpcBlockPublicAccessOptions := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcBlockPublicAccessOptionsResult where + schema := .struct "DescribeVpcBlockPublicAccessOptionsResult" [({ name := "VpcBlockPublicAccessOptions", xmlName := some "vpcBlockPublicAccessOptions", queryName := some "VpcBlockPublicAccessOptions" }, (Shape.schema VpcBlockPublicAccessOptions))] + toValue x := record [putOpt "VpcBlockPublicAccessOptions" x.vpcBlockPublicAccessOptions] + ofValue v := do + let vpcBlockPublicAccessOptions ← v.opt "VpcBlockPublicAccessOptions" + return { vpcBlockPublicAccessOptions } + +structure DescribeVpcClassicLinkResult where + /-- The ClassicLink status of the VPCs. -/ + vpcs : Option (List VpcClassicLink) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcClassicLinkResult where + schema := .struct "DescribeVpcClassicLinkResult" [({ name := "Vpcs", xmlName := some "vpcSet", queryName := some "VpcSet" }, (.list (Shape.schema VpcClassicLink) "item"))] + toValue x := record [putOpt "Vpcs" x.vpcs] + ofValue v := do + let vpcs ← v.opt "Vpcs" + return { vpcs } + +structure DescribeVpcEndpointAssociationsResult where + /-- The pagination token. -/ + nextToken : Option String := none + /-- Details of the endpoint associations. -/ + vpcEndpointAssociations : Option (List VpcEndpointAssociation) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcEndpointAssociationsResult where + schema := .struct "DescribeVpcEndpointAssociationsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "VpcEndpointAssociations", xmlName := some "vpcEndpointAssociationSet", queryName := some "VpcEndpointAssociationSet" }, (.list (Shape.schema VpcEndpointAssociation) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "VpcEndpointAssociations" x.vpcEndpointAssociations] + ofValue v := do + let nextToken ← v.opt "NextToken" + let vpcEndpointAssociations ← v.opt "VpcEndpointAssociations" + return { nextToken, vpcEndpointAssociations } + +structure DescribeVpcEndpointConnectionNotificationsResult where + /-- The notifications. -/ + connectionNotificationSet : Option (List ConnectionNotification) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcEndpointConnectionNotificationsResult where + schema := .struct "DescribeVpcEndpointConnectionNotificationsResult" [({ name := "ConnectionNotificationSet", xmlName := some "connectionNotificationSet", queryName := some "ConnectionNotificationSet" }, (.list (Shape.schema ConnectionNotification) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "ConnectionNotificationSet" x.connectionNotificationSet, putOpt "NextToken" x.nextToken] + ofValue v := do + let connectionNotificationSet ← v.opt "ConnectionNotificationSet" + let nextToken ← v.opt "NextToken" + return { connectionNotificationSet, nextToken } + +structure DescribeVpcEndpointServicePermissionsResult where + /-- Information about the allowed principals. -/ + allowedPrincipals : Option (List AllowedPrincipal) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcEndpointServicePermissionsResult where + schema := .struct "DescribeVpcEndpointServicePermissionsResult" [({ name := "AllowedPrincipals", xmlName := some "allowedPrincipals", queryName := some "AllowedPrincipals" }, (.list (Shape.schema AllowedPrincipal) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "AllowedPrincipals" x.allowedPrincipals, putOpt "NextToken" x.nextToken] + ofValue v := do + let allowedPrincipals ← v.opt "AllowedPrincipals" + let nextToken ← v.opt "NextToken" + return { allowedPrincipals, nextToken } + +structure DescribeVpnConcentratorsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the VPN concentrators. -/ + vpnConcentrators : Option (List VpnConcentrator) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpnConcentratorsResult where + schema := .struct "DescribeVpnConcentratorsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "VpnConcentrators", xmlName := some "vpnConcentratorSet", queryName := some "VpnConcentratorSet" }, (.list (Shape.schema VpnConcentrator) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "VpnConcentrators" x.vpnConcentrators] + ofValue v := do + let nextToken ← v.opt "NextToken" + let vpnConcentrators ← v.opt "VpnConcentrators" + return { nextToken, vpnConcentrators } + +/-- Describes the device posture options for a Client VPN endpoint. -/ +structure DevicePostureOptions where + /-- Indicates whether device posture evaluation is enabled for the Client VPN endpoint. -/ + enabled : Option Bool := none + /-- The device trust providers to configure for the Client VPN endpoint. -/ + trustProviders : Option (List ClientVpnTrustProviderRequest) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DevicePostureOptions where + schema := .struct "DevicePostureOptions" [({ name := "Enabled" }, .bool), + ({ name := "TrustProviders", xmlName := some "TrustProvider" }, (.list (Shape.schema ClientVpnTrustProviderRequest) "item"))] + toValue x := record [putOpt "Enabled" x.enabled, putOpt "TrustProviders" x.trustProviders] + ofValue v := do + let enabled ← v.opt "Enabled" + let trustProviders ← v.opt "TrustProviders" + return { enabled, trustProviders } + +/-- Information about the device posture options for a Client VPN endpoint. -/ +structure DevicePostureResponseOptions where + /-- The device trust providers configured for the Client VPN endpoint. -/ + trustProviders : Option (List ClientVpnTrustProvider) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DevicePostureResponseOptions where + schema := .struct "DevicePostureResponseOptions" [({ name := "TrustProviders", xmlName := some "trustProviderSet", queryName := some "TrustProviderSet" }, (.list (Shape.schema ClientVpnTrustProvider) "item"))] + toValue x := record [putOpt "TrustProviders" x.trustProviders] + ofValue v := do + let trustProviders ← v.opt "TrustProviders" + return { trustProviders } + +/-- The set of DHCP options. -/ +structure DhcpOptions where + /-- The DHCP options in the set. -/ + dhcpConfigurations : Option (List DhcpConfiguration) := none + /-- The ID of the set of DHCP options. -/ + dhcpOptionsId : Option String := none + /-- The ID of the Amazon Web Services account that owns the DHCP options set. -/ + ownerId : Option String := none + /-- Any tags assigned to the DHCP options set. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DhcpOptions where + schema := .struct "DhcpOptions" [({ name := "DhcpConfigurations", xmlName := some "dhcpConfigurationSet", queryName := some "DhcpConfigurationSet" }, (.list (Shape.schema DhcpConfiguration) "item")), + ({ name := "DhcpOptionsId", xmlName := some "dhcpOptionsId", queryName := some "DhcpOptionsId" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "DhcpConfigurations" x.dhcpConfigurations, putOpt "DhcpOptionsId" x.dhcpOptionsId, putOpt "OwnerId" x.ownerId, putOpt "Tags" x.tags] + ofValue v := do + let dhcpConfigurations ← v.opt "DhcpConfigurations" + let dhcpOptionsId ← v.opt "DhcpOptionsId" + let ownerId ← v.opt "OwnerId" + let tags ← v.opt "Tags" + return { dhcpConfigurations, dhcpOptionsId, ownerId, tags } + +structure DisableAddressTransferResult where + /-- An Elastic IP address transfer. -/ + addressTransfer : Option AddressTransfer := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableAddressTransferResult where + schema := .struct "DisableAddressTransferResult" [({ name := "AddressTransfer", xmlName := some "addressTransfer", queryName := some "AddressTransfer" }, (Shape.schema AddressTransfer))] + toValue x := record [putOpt "AddressTransfer" x.addressTransfer] + ofValue v := do + let addressTransfer ← v.opt "AddressTransfer" + return { addressTransfer } + +/-- Contains information about the errors that occurred when disabling fast snapshot restores. -/ +structure DisableFastSnapshotRestoreErrorItem where + /-- The errors. -/ + fastSnapshotRestoreStateErrors : Option (List DisableFastSnapshotRestoreStateErrorItem) := none + /-- The ID of the snapshot. -/ + snapshotId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableFastSnapshotRestoreErrorItem where + schema := .struct "DisableFastSnapshotRestoreErrorItem" [({ name := "FastSnapshotRestoreStateErrors", xmlName := some "fastSnapshotRestoreStateErrorSet", queryName := some "FastSnapshotRestoreStateErrorSet" }, (.list (Shape.schema DisableFastSnapshotRestoreStateErrorItem) "item")), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string)] + toValue x := record [putOpt "FastSnapshotRestoreStateErrors" x.fastSnapshotRestoreStateErrors, putOpt "SnapshotId" x.snapshotId] + ofValue v := do + let fastSnapshotRestoreStateErrors ← v.opt "FastSnapshotRestoreStateErrors" + let snapshotId ← v.opt "SnapshotId" + return { fastSnapshotRestoreStateErrors, snapshotId } + +structure DisableInstanceSqlHaStandbyDetectionsResult where + /-- Information about the instances that were disabled from SQL Server High Availability standby detection monitoring. -/ + instances : Option (List RegisteredInstance) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableInstanceSqlHaStandbyDetectionsResult where + schema := .struct "DisableInstanceSqlHaStandbyDetectionsResult" [({ name := "Instances", xmlName := some "instanceSet", queryName := some "InstanceSet" }, (.list (Shape.schema RegisteredInstance) "item"))] + toValue x := record [putOpt "Instances" x.instances] + ofValue v := do + let instances ← v.opt "Instances" + return { instances } + +structure DisableRouteServerPropagationResult where + /-- Information about the disabled route server propagation. -/ + routeServerPropagation : Option RouteServerPropagation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableRouteServerPropagationResult where + schema := .struct "DisableRouteServerPropagationResult" [({ name := "RouteServerPropagation", xmlName := some "routeServerPropagation", queryName := some "RouteServerPropagation" }, (Shape.schema RouteServerPropagation))] + toValue x := record [putOpt "RouteServerPropagation" x.routeServerPropagation] + ofValue v := do + let routeServerPropagation ← v.opt "RouteServerPropagation" + return { routeServerPropagation } + +structure DisableTransitGatewayRouteTablePropagationResult where + /-- Information about route propagation. -/ + propagation : Option TransitGatewayPropagation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableTransitGatewayRouteTablePropagationResult where + schema := .struct "DisableTransitGatewayRouteTablePropagationResult" [({ name := "Propagation", xmlName := some "propagation", queryName := some "Propagation" }, (Shape.schema TransitGatewayPropagation))] + toValue x := record [putOpt "Propagation" x.propagation] + ofValue v := do + let propagation ← v.opt "Propagation" + return { propagation } + +structure DisassociateClientVpnTargetNetworkResult where + /-- The ID of the target network association. -/ + associationId : Option String := none + /-- The current state of the target network association. -/ + status : Option AssociationStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateClientVpnTargetNetworkResult where + schema := .struct "DisassociateClientVpnTargetNetworkResult" [({ name := "AssociationId", xmlName := some "associationId", queryName := some "AssociationId" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema AssociationStatus))] + toValue x := record [putOpt "AssociationId" x.associationId, putOpt "Status" x.status] + ofValue v := do + let associationId ← v.opt "AssociationId" + let status ← v.opt "Status" + return { associationId, status } + +structure DisassociateIamInstanceProfileResult where + /-- Information about the IAM instance profile association. -/ + iamInstanceProfileAssociation : Option IamInstanceProfileAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateIamInstanceProfileResult where + schema := .struct "DisassociateIamInstanceProfileResult" [({ name := "IamInstanceProfileAssociation", xmlName := some "iamInstanceProfileAssociation", queryName := some "IamInstanceProfileAssociation" }, (Shape.schema IamInstanceProfileAssociation))] + toValue x := record [putOpt "IamInstanceProfileAssociation" x.iamInstanceProfileAssociation] + ofValue v := do + let iamInstanceProfileAssociation ← v.opt "IamInstanceProfileAssociation" + return { iamInstanceProfileAssociation } + +structure DisassociateInstanceEventWindowRequest where + /-- One or more targets to disassociate from the specified event window. -/ + associationTarget : InstanceEventWindowDisassociationRequest + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the event window. -/ + instanceEventWindowId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateInstanceEventWindowRequest where + schema := .struct "DisassociateInstanceEventWindowRequest" [({ name := "AssociationTarget", required := true }, (Shape.schema InstanceEventWindowDisassociationRequest)), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceEventWindowId", required := true }, .string)] + toValue x := record [put "AssociationTarget" x.associationTarget, putOpt "DryRun" x.dryRun, put "InstanceEventWindowId" x.instanceEventWindowId] + ofValue v := do + let associationTarget ← v.req "AssociationTarget" + let dryRun ← v.opt "DryRun" + let instanceEventWindowId ← v.req "InstanceEventWindowId" + return { associationTarget, dryRun, instanceEventWindowId } + +structure DisassociateIpamByoasnResult where + /-- An ASN and BYOIP CIDR association. -/ + asnAssociation : Option AsnAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateIpamByoasnResult where + schema := .struct "DisassociateIpamByoasnResult" [({ name := "AsnAssociation", xmlName := some "asnAssociation", queryName := some "AsnAssociation" }, (Shape.schema AsnAssociation))] + toValue x := record [putOpt "AsnAssociation" x.asnAssociation] + ofValue v := do + let asnAssociation ← v.opt "AsnAssociation" + return { asnAssociation } + +structure DisassociateIpamResourceDiscoveryResult where + /-- A resource discovery association. -/ + ipamResourceDiscoveryAssociation : Option IpamResourceDiscoveryAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateIpamResourceDiscoveryResult where + schema := .struct "DisassociateIpamResourceDiscoveryResult" [({ name := "IpamResourceDiscoveryAssociation", xmlName := some "ipamResourceDiscoveryAssociation", queryName := some "IpamResourceDiscoveryAssociation" }, (Shape.schema IpamResourceDiscoveryAssociation))] + toValue x := record [putOpt "IpamResourceDiscoveryAssociation" x.ipamResourceDiscoveryAssociation] + ofValue v := do + let ipamResourceDiscoveryAssociation ← v.opt "IpamResourceDiscoveryAssociation" + return { ipamResourceDiscoveryAssociation } + +structure DisassociateNatGatewayAddressResult where + /-- Information about the NAT gateway IP addresses. -/ + natGatewayAddresses : Option (List NatGatewayAddress) := none + /-- The ID of the NAT gateway. -/ + natGatewayId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateNatGatewayAddressResult where + schema := .struct "DisassociateNatGatewayAddressResult" [({ name := "NatGatewayAddresses", xmlName := some "natGatewayAddressSet", queryName := some "NatGatewayAddressSet" }, (.list (Shape.schema NatGatewayAddress) "item")), + ({ name := "NatGatewayId", xmlName := some "natGatewayId", queryName := some "NatGatewayId" }, .string)] + toValue x := record [putOpt "NatGatewayAddresses" x.natGatewayAddresses, putOpt "NatGatewayId" x.natGatewayId] + ofValue v := do + let natGatewayAddresses ← v.opt "NatGatewayAddresses" + let natGatewayId ← v.opt "NatGatewayId" + return { natGatewayAddresses, natGatewayId } + +structure DisassociateRouteServerResult where + /-- Information about the disassociated route server. -/ + routeServerAssociation : Option RouteServerAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateRouteServerResult where + schema := .struct "DisassociateRouteServerResult" [({ name := "RouteServerAssociation", xmlName := some "routeServerAssociation", queryName := some "RouteServerAssociation" }, (Shape.schema RouteServerAssociation))] + toValue x := record [putOpt "RouteServerAssociation" x.routeServerAssociation] + ofValue v := do + let routeServerAssociation ← v.opt "RouteServerAssociation" + return { routeServerAssociation } + +structure DisassociateTransitGatewayPolicyTableResult where + /-- Returns details about the transit gateway policy table disassociation. -/ + association : Option TransitGatewayPolicyTableAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateTransitGatewayPolicyTableResult where + schema := .struct "DisassociateTransitGatewayPolicyTableResult" [({ name := "Association", xmlName := some "association", queryName := some "Association" }, (Shape.schema TransitGatewayPolicyTableAssociation))] + toValue x := record [putOpt "Association" x.association] + ofValue v := do + let association ← v.opt "Association" + return { association } + +structure DisassociateTransitGatewayRouteTableResult where + /-- Information about the association. -/ + association : Option TransitGatewayAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateTransitGatewayRouteTableResult where + schema := .struct "DisassociateTransitGatewayRouteTableResult" [({ name := "Association", xmlName := some "association", queryName := some "Association" }, (Shape.schema TransitGatewayAssociation))] + toValue x := record [putOpt "Association" x.association] + ofValue v := do + let association ← v.opt "Association" + return { association } + +/-- Describes a disk image. -/ +structure DiskImage where + /-- A description of the disk image. -/ + description : Option String := none + /-- Information about the disk image. -/ + image : Option DiskImageDetail := none + /-- Information about the volume. -/ + volume : Option VolumeDetail := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DiskImage where + schema := .struct "DiskImage" [({ name := "Description" }, .string), + ({ name := "Image" }, (Shape.schema DiskImageDetail)), + ({ name := "Volume" }, (Shape.schema VolumeDetail))] + toValue x := record [putOpt "Description" x.description, putOpt "Image" x.image, putOpt "Volume" x.volume] + ofValue v := do + let description ← v.opt "Description" + let image ← v.opt "Image" + let volume ← v.opt "Volume" + return { description, image, volume } + +/-- Provides a summary of the attached EBS volume status for an instance. -/ +structure EbsStatusSummary where + /-- Details about the attached EBS status check for an instance. -/ + details : Option (List EbsStatusDetails) := none + /-- The current status. -/ + status : Option SummaryStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EbsStatusSummary where + schema := .struct "EbsStatusSummary" [({ name := "Details", xmlName := some "details", queryName := some "Details" }, (.list (Shape.schema EbsStatusDetails) "item")), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema SummaryStatus))] + toValue x := record [putOpt "Details" x.details, putOpt "Status" x.status] + ofValue v := do + let details ← v.opt "Details" + let status ← v.opt "Status" + return { details, status } + +/-- Describes an EC2 Instance Connect Endpoint. -/ +structure Ec2InstanceConnectEndpoint where + /-- The Availability Zone of the EC2 Instance Connect Endpoint. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone of the EC2 Instance Connect Endpoint. -/ + availabilityZoneId : Option String := none + /-- The date and time that the EC2 Instance Connect Endpoint was created. -/ + createdAt : Option Timestamp := none + /-- The DNS name of the EC2 Instance Connect Endpoint. -/ + dnsName : Option String := none + /-- The Federal Information Processing Standards (FIPS) compliant DNS name of the EC2 Instance Connect Endpoint. -/ + fipsDnsName : Option String := none + /-- The Amazon Resource Name (ARN) of the EC2 Instance Connect Endpoint. -/ + instanceConnectEndpointArn : Option String := none + /-- The ID of the EC2 Instance Connect Endpoint. -/ + instanceConnectEndpointId : Option String := none + /-- The IP address type of the endpoint. -/ + ipAddressType : Option IpAddressType := none + /-- The ID of the elastic network interface that Amazon EC2 automatically created when creating the EC2 Instance Connect Endpoint. -/ + networkInterfaceIds : Option (List String) := none + /-- The ID of the Amazon Web Services account that created the EC2 Instance Connect Endpoint. -/ + ownerId : Option String := none + /-- Indicates whether your client's IP address is preserved as the source when you connect to a resource. -/ + preserveClientIp : Option Bool := none + /-- The public DNS names of the endpoint. -/ + publicDnsNames : Option InstanceConnectEndpointPublicDnsNames := none + /-- The security groups associated with the endpoint. -/ + securityGroupIds : Option (List String) := none + /-- The current state of the EC2 Instance Connect Endpoint. -/ + state : Option Ec2InstanceConnectEndpointState := none + /-- The message for the current state of the EC2 Instance Connect Endpoint. -/ + stateMessage : Option String := none + /-- The ID of the subnet in which the EC2 Instance Connect Endpoint was created. -/ + subnetId : Option String := none + /-- The tags assigned to the EC2 Instance Connect Endpoint. -/ + tags : Option (List Tag) := none + /-- The ID of the VPC in which the EC2 Instance Connect Endpoint was created. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Ec2InstanceConnectEndpoint where + schema := .struct "Ec2InstanceConnectEndpoint" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "CreatedAt", xmlName := some "createdAt", queryName := some "CreatedAt" }, (.time none)), + ({ name := "DnsName", xmlName := some "dnsName", queryName := some "DnsName" }, .string), + ({ name := "FipsDnsName", xmlName := some "fipsDnsName", queryName := some "FipsDnsName" }, .string), + ({ name := "InstanceConnectEndpointArn", xmlName := some "instanceConnectEndpointArn", queryName := some "InstanceConnectEndpointArn" }, .string), + ({ name := "InstanceConnectEndpointId", xmlName := some "instanceConnectEndpointId", queryName := some "InstanceConnectEndpointId" }, .string), + ({ name := "IpAddressType", xmlName := some "ipAddressType", queryName := some "IpAddressType" }, (Shape.schema IpAddressType)), + ({ name := "NetworkInterfaceIds", xmlName := some "networkInterfaceIdSet", queryName := some "NetworkInterfaceIdSet" }, (.list .string "item")), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "PreserveClientIp", xmlName := some "preserveClientIp", queryName := some "PreserveClientIp" }, .bool), + ({ name := "PublicDnsNames", xmlName := some "publicDnsNames", queryName := some "PublicDnsNames" }, (Shape.schema InstanceConnectEndpointPublicDnsNames)), + ({ name := "SecurityGroupIds", xmlName := some "securityGroupIdSet", queryName := some "SecurityGroupIdSet" }, (.list .string "item")), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema Ec2InstanceConnectEndpointState)), + ({ name := "StateMessage", xmlName := some "stateMessage", queryName := some "StateMessage" }, .string), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "CreatedAt" x.createdAt, putOpt "DnsName" x.dnsName, putOpt "FipsDnsName" x.fipsDnsName, putOpt "InstanceConnectEndpointArn" x.instanceConnectEndpointArn, putOpt "InstanceConnectEndpointId" x.instanceConnectEndpointId, putOpt "IpAddressType" x.ipAddressType, putOpt "NetworkInterfaceIds" x.networkInterfaceIds, putOpt "OwnerId" x.ownerId, putOpt "PreserveClientIp" x.preserveClientIp, putOpt "PublicDnsNames" x.publicDnsNames, putOpt "SecurityGroupIds" x.securityGroupIds, putOpt "State" x.state, putOpt "StateMessage" x.stateMessage, putOpt "SubnetId" x.subnetId, putOpt "Tags" x.tags, putOpt "VpcId" x.vpcId] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let createdAt ← v.opt "CreatedAt" + let dnsName ← v.opt "DnsName" + let fipsDnsName ← v.opt "FipsDnsName" + let instanceConnectEndpointArn ← v.opt "InstanceConnectEndpointArn" + let instanceConnectEndpointId ← v.opt "InstanceConnectEndpointId" + let ipAddressType ← v.opt "IpAddressType" + let networkInterfaceIds ← v.opt "NetworkInterfaceIds" + let ownerId ← v.opt "OwnerId" + let preserveClientIp ← v.opt "PreserveClientIp" + let publicDnsNames ← v.opt "PublicDnsNames" + let securityGroupIds ← v.opt "SecurityGroupIds" + let state ← v.opt "State" + let stateMessage ← v.opt "StateMessage" + let subnetId ← v.opt "SubnetId" + let tags ← v.opt "Tags" + let vpcId ← v.opt "VpcId" + return { availabilityZone, availabilityZoneId, createdAt, dnsName, fipsDnsName, instanceConnectEndpointArn, instanceConnectEndpointId, ipAddressType, networkInterfaceIds, ownerId, preserveClientIp, publicDnsNames, securityGroupIds, state, stateMessage, subnetId, tags, vpcId } + +/-- Describes an egress-only internet gateway. -/ +structure EgressOnlyInternetGateway where + /-- Information about the attachment of the egress-only internet gateway. -/ + attachments : Option (List InternetGatewayAttachment) := none + /-- The ID of the egress-only internet gateway. -/ + egressOnlyInternetGatewayId : Option String := none + /-- The tags assigned to the egress-only internet gateway. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EgressOnlyInternetGateway where + schema := .struct "EgressOnlyInternetGateway" [({ name := "Attachments", xmlName := some "attachmentSet", queryName := some "AttachmentSet" }, (.list (Shape.schema InternetGatewayAttachment) "item")), + ({ name := "EgressOnlyInternetGatewayId", xmlName := some "egressOnlyInternetGatewayId", queryName := some "EgressOnlyInternetGatewayId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "Attachments" x.attachments, putOpt "EgressOnlyInternetGatewayId" x.egressOnlyInternetGatewayId, putOpt "Tags" x.tags] + ofValue v := do + let attachments ← v.opt "Attachments" + let egressOnlyInternetGatewayId ← v.opt "EgressOnlyInternetGatewayId" + let tags ← v.opt "Tags" + return { attachments, egressOnlyInternetGatewayId, tags } + +/-- Amazon Elastic Graphics reached end of life on January 8, 2024. -/ +structure ElasticGpus where + /-- The Availability Zone in the which the Elastic Graphics accelerator resides. -/ + availabilityZone : Option String := none + /-- The status of the Elastic Graphics accelerator. -/ + elasticGpuHealth : Option ElasticGpuHealth := none + /-- The ID of the Elastic Graphics accelerator. -/ + elasticGpuId : Option String := none + /-- The state of the Elastic Graphics accelerator. -/ + elasticGpuState : Option ElasticGpuState := none + /-- The type of Elastic Graphics accelerator. -/ + elasticGpuType : Option String := none + /-- The ID of the instance to which the Elastic Graphics accelerator is attached. -/ + instanceId : Option String := none + /-- The tags assigned to the Elastic Graphics accelerator. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ElasticGpus where + schema := .struct "ElasticGpus" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "ElasticGpuHealth", xmlName := some "elasticGpuHealth", queryName := some "ElasticGpuHealth" }, (Shape.schema ElasticGpuHealth)), + ({ name := "ElasticGpuId", xmlName := some "elasticGpuId", queryName := some "ElasticGpuId" }, .string), + ({ name := "ElasticGpuState", xmlName := some "elasticGpuState", queryName := some "ElasticGpuState" }, (Shape.schema ElasticGpuState)), + ({ name := "ElasticGpuType", xmlName := some "elasticGpuType", queryName := some "ElasticGpuType" }, .string), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "ElasticGpuHealth" x.elasticGpuHealth, putOpt "ElasticGpuId" x.elasticGpuId, putOpt "ElasticGpuState" x.elasticGpuState, putOpt "ElasticGpuType" x.elasticGpuType, putOpt "InstanceId" x.instanceId, putOpt "Tags" x.tags] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let elasticGpuHealth ← v.opt "ElasticGpuHealth" + let elasticGpuId ← v.opt "ElasticGpuId" + let elasticGpuState ← v.opt "ElasticGpuState" + let elasticGpuType ← v.opt "ElasticGpuType" + let instanceId ← v.opt "InstanceId" + let tags ← v.opt "Tags" + return { availabilityZone, elasticGpuHealth, elasticGpuId, elasticGpuState, elasticGpuType, instanceId, tags } + +structure EnableAddressTransferResult where + /-- An Elastic IP address transfer. -/ + addressTransfer : Option AddressTransfer := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableAddressTransferResult where + schema := .struct "EnableAddressTransferResult" [({ name := "AddressTransfer", xmlName := some "addressTransfer", queryName := some "AddressTransfer" }, (Shape.schema AddressTransfer))] + toValue x := record [putOpt "AddressTransfer" x.addressTransfer] + ofValue v := do + let addressTransfer ← v.opt "AddressTransfer" + return { addressTransfer } + +/-- Contains information about the errors that occurred when enabling fast snapshot restores. -/ +structure EnableFastSnapshotRestoreErrorItem where + /-- The errors. -/ + fastSnapshotRestoreStateErrors : Option (List EnableFastSnapshotRestoreStateErrorItem) := none + /-- The ID of the snapshot. -/ + snapshotId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableFastSnapshotRestoreErrorItem where + schema := .struct "EnableFastSnapshotRestoreErrorItem" [({ name := "FastSnapshotRestoreStateErrors", xmlName := some "fastSnapshotRestoreStateErrorSet", queryName := some "FastSnapshotRestoreStateErrorSet" }, (.list (Shape.schema EnableFastSnapshotRestoreStateErrorItem) "item")), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string)] + toValue x := record [putOpt "FastSnapshotRestoreStateErrors" x.fastSnapshotRestoreStateErrors, putOpt "SnapshotId" x.snapshotId] + ofValue v := do + let fastSnapshotRestoreStateErrors ← v.opt "FastSnapshotRestoreStateErrors" + let snapshotId ← v.opt "SnapshotId" + return { fastSnapshotRestoreStateErrors, snapshotId } + +structure EnableInstanceSqlHaStandbyDetectionsResult where + /-- Information about the instances that were enabled for SQL Server High Availability standby detection monitoring. -/ + instances : Option (List RegisteredInstance) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableInstanceSqlHaStandbyDetectionsResult where + schema := .struct "EnableInstanceSqlHaStandbyDetectionsResult" [({ name := "Instances", xmlName := some "instanceSet", queryName := some "InstanceSet" }, (.list (Shape.schema RegisteredInstance) "item"))] + toValue x := record [putOpt "Instances" x.instances] + ofValue v := do + let instances ← v.opt "Instances" + return { instances } + +structure EnableIpamInternetRegistryAssociationResult where + /-- Information about the enabled internet registry association. -/ + ipamInternetRegistryAssociation : Option IpamInternetRegistryAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableIpamInternetRegistryAssociationResult where + schema := .struct "EnableIpamInternetRegistryAssociationResult" [({ name := "IpamInternetRegistryAssociation", xmlName := some "ipamInternetRegistryAssociation", queryName := some "IpamInternetRegistryAssociation" }, (Shape.schema IpamInternetRegistryAssociation))] + toValue x := record [putOpt "IpamInternetRegistryAssociation" x.ipamInternetRegistryAssociation] + ofValue v := do + let ipamInternetRegistryAssociation ← v.opt "IpamInternetRegistryAssociation" + return { ipamInternetRegistryAssociation } + +structure EnableRouteServerPropagationResult where + /-- Information about the enabled route server propagation. -/ + routeServerPropagation : Option RouteServerPropagation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableRouteServerPropagationResult where + schema := .struct "EnableRouteServerPropagationResult" [({ name := "RouteServerPropagation", xmlName := some "routeServerPropagation", queryName := some "RouteServerPropagation" }, (Shape.schema RouteServerPropagation))] + toValue x := record [putOpt "RouteServerPropagation" x.routeServerPropagation] + ofValue v := do + let routeServerPropagation ← v.opt "RouteServerPropagation" + return { routeServerPropagation } + +structure EnableTransitGatewayRouteTablePropagationResult where + /-- Information about route propagation. -/ + propagation : Option TransitGatewayPropagation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableTransitGatewayRouteTablePropagationResult where + schema := .struct "EnableTransitGatewayRouteTablePropagationResult" [({ name := "Propagation", xmlName := some "propagation", queryName := some "Propagation" }, (Shape.schema TransitGatewayPropagation))] + toValue x := record [putOpt "Propagation" x.propagation] + ofValue v := do + let propagation ← v.opt "Propagation" + return { propagation } + +/-- Describes an explanation code for an unreachable path. -/ +structure Explanation where + /-- The network ACL. -/ + acl : Option AnalysisComponent := none + /-- The network ACL rule. -/ + aclRule : Option AnalysisAclRule := none + /-- The IPv4 address, in CIDR notation. -/ + address : Option String := none + /-- The IPv4 addresses, in CIDR notation. -/ + addresses : Option (List String) := none + /-- The resource to which the component is attached. -/ + attachedTo : Option AnalysisComponent := none + /-- The IDs of the Availability Zones. -/ + availabilityZoneIds : Option (List String) := none + /-- The Availability Zones. -/ + availabilityZones : Option (List String) := none + /-- The CIDR ranges. -/ + cidrs : Option (List String) := none + /-- The listener for a Classic Load Balancer. -/ + classicLoadBalancerListener : Option AnalysisLoadBalancerListener := none + /-- The component. -/ + component : Option AnalysisComponent := none + /-- The Amazon Web Services account for the component. -/ + componentAccount : Option String := none + /-- The Region for the component. -/ + componentRegion : Option String := none + /-- The customer gateway. -/ + customerGateway : Option AnalysisComponent := none + /-- The destination. -/ + destination : Option AnalysisComponent := none + /-- The destination VPC. -/ + destinationVpc : Option AnalysisComponent := none + /-- The direction. -/ + direction : Option String := none + /-- The load balancer listener. -/ + elasticLoadBalancerListener : Option AnalysisComponent := none + /-- The explanation code. -/ + explanationCode : Option String := none + /-- The Network Firewall stateful rule. -/ + firewallStatefulRule : Option FirewallStatefulRule := none + /-- The Network Firewall stateless rule. -/ + firewallStatelessRule : Option FirewallStatelessRule := none + /-- The route table. -/ + ingressRouteTable : Option AnalysisComponent := none + /-- The internet gateway. -/ + internetGateway : Option AnalysisComponent := none + /-- The Amazon Resource Name (ARN) of the load balancer. -/ + loadBalancerArn : Option String := none + /-- The listener port of the load balancer. -/ + loadBalancerListenerPort : Option Int := none + /-- The target. -/ + loadBalancerTarget : Option AnalysisLoadBalancerTarget := none + /-- The target group. -/ + loadBalancerTargetGroup : Option AnalysisComponent := none + /-- The target groups. -/ + loadBalancerTargetGroups : Option (List AnalysisComponent) := none + /-- The target port. -/ + loadBalancerTargetPort : Option Int := none + /-- The missing component. -/ + missingComponent : Option String := none + /-- The NAT gateway. -/ + natGateway : Option AnalysisComponent := none + /-- The network interface. -/ + networkInterface : Option AnalysisComponent := none + /-- The packet field. -/ + packetField : Option String := none + /-- The port. -/ + port : Option Int := none + /-- The port ranges. -/ + portRanges : Option (List PortRange) := none + /-- The prefix list. -/ + prefixList : Option AnalysisComponent := none + /-- The protocols. -/ + protocols : Option (List String) := none + /-- The route table. -/ + routeTable : Option AnalysisComponent := none + /-- The route table route. -/ + routeTableRoute : Option AnalysisRouteTableRoute := none + /-- The security group. -/ + securityGroup : Option AnalysisComponent := none + /-- The security group rule. -/ + securityGroupRule : Option AnalysisSecurityGroupRule := none + /-- The security groups. -/ + securityGroups : Option (List AnalysisComponent) := none + /-- The source VPC. -/ + sourceVpc : Option AnalysisComponent := none + /-- The state. -/ + state : Option String := none + /-- The subnet. -/ + subnet : Option AnalysisComponent := none + /-- The route table for the subnet. -/ + subnetRouteTable : Option AnalysisComponent := none + /-- The transit gateway. -/ + transitGateway : Option AnalysisComponent := none + /-- The transit gateway attachment. -/ + transitGatewayAttachment : Option AnalysisComponent := none + /-- The transit gateway policy table. -/ + transitGatewayPolicyTable : Option AnalysisComponent := none + /-- The transit gateway policy table entry. -/ + transitGatewayPolicyTableEntry : Option AnalysisTransitGatewayPolicyTableEntry := none + /-- The transit gateway route table. -/ + transitGatewayRouteTable : Option AnalysisComponent := none + /-- The transit gateway route table route. -/ + transitGatewayRouteTableRoute : Option TransitGatewayRouteTableRoute := none + /-- The component VPC. -/ + vpc : Option AnalysisComponent := none + /-- The VPC endpoint. -/ + vpcEndpoint : Option AnalysisComponent := none + /-- The VPC peering connection. -/ + vpcPeeringConnection : Option AnalysisComponent := none + /-- The VPN connection. -/ + vpnConnection : Option AnalysisComponent := none + /-- The VPN gateway. -/ + vpnGateway : Option AnalysisComponent := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Explanation where + schema := .struct "Explanation" [({ name := "Acl", xmlName := some "acl", queryName := some "Acl" }, (Shape.schema AnalysisComponent)), + ({ name := "AclRule", xmlName := some "aclRule", queryName := some "AclRule" }, (Shape.schema AnalysisAclRule)), + ({ name := "Address", xmlName := some "address", queryName := some "Address" }, .string), + ({ name := "Addresses", xmlName := some "addressSet", queryName := some "AddressSet" }, (.list .string "item")), + ({ name := "AttachedTo", xmlName := some "attachedTo", queryName := some "AttachedTo" }, (Shape.schema AnalysisComponent)), + ({ name := "AvailabilityZoneIds", xmlName := some "availabilityZoneIdSet", queryName := some "AvailabilityZoneIdSet" }, (.list .string "item")), + ({ name := "AvailabilityZones", xmlName := some "availabilityZoneSet", queryName := some "AvailabilityZoneSet" }, (.list .string "item")), + ({ name := "Cidrs", xmlName := some "cidrSet", queryName := some "CidrSet" }, (.list .string "item")), + ({ name := "ClassicLoadBalancerListener", xmlName := some "classicLoadBalancerListener", queryName := some "ClassicLoadBalancerListener" }, (Shape.schema AnalysisLoadBalancerListener)), + ({ name := "Component", xmlName := some "component", queryName := some "Component" }, (Shape.schema AnalysisComponent)), + ({ name := "ComponentAccount", xmlName := some "componentAccount", queryName := some "ComponentAccount" }, .string), + ({ name := "ComponentRegion", xmlName := some "componentRegion", queryName := some "ComponentRegion" }, .string), + ({ name := "CustomerGateway", xmlName := some "customerGateway", queryName := some "CustomerGateway" }, (Shape.schema AnalysisComponent)), + ({ name := "Destination", xmlName := some "destination", queryName := some "Destination" }, (Shape.schema AnalysisComponent)), + ({ name := "DestinationVpc", xmlName := some "destinationVpc", queryName := some "DestinationVpc" }, (Shape.schema AnalysisComponent)), + ({ name := "Direction", xmlName := some "direction", queryName := some "Direction" }, .string), + ({ name := "ElasticLoadBalancerListener", xmlName := some "elasticLoadBalancerListener", queryName := some "ElasticLoadBalancerListener" }, (Shape.schema AnalysisComponent)), + ({ name := "ExplanationCode", xmlName := some "explanationCode", queryName := some "ExplanationCode" }, .string), + ({ name := "FirewallStatefulRule", xmlName := some "firewallStatefulRule", queryName := some "FirewallStatefulRule" }, (Shape.schema FirewallStatefulRule)), + ({ name := "FirewallStatelessRule", xmlName := some "firewallStatelessRule", queryName := some "FirewallStatelessRule" }, (Shape.schema FirewallStatelessRule)), + ({ name := "IngressRouteTable", xmlName := some "ingressRouteTable", queryName := some "IngressRouteTable" }, (Shape.schema AnalysisComponent)), + ({ name := "InternetGateway", xmlName := some "internetGateway", queryName := some "InternetGateway" }, (Shape.schema AnalysisComponent)), + ({ name := "LoadBalancerArn", xmlName := some "loadBalancerArn", queryName := some "LoadBalancerArn" }, .string), + ({ name := "LoadBalancerListenerPort", xmlName := some "loadBalancerListenerPort", queryName := some "LoadBalancerListenerPort" }, .int), + ({ name := "LoadBalancerTarget", xmlName := some "loadBalancerTarget", queryName := some "LoadBalancerTarget" }, (Shape.schema AnalysisLoadBalancerTarget)), + ({ name := "LoadBalancerTargetGroup", xmlName := some "loadBalancerTargetGroup", queryName := some "LoadBalancerTargetGroup" }, (Shape.schema AnalysisComponent)), + ({ name := "LoadBalancerTargetGroups", xmlName := some "loadBalancerTargetGroupSet", queryName := some "LoadBalancerTargetGroupSet" }, (.list (Shape.schema AnalysisComponent) "item")), + ({ name := "LoadBalancerTargetPort", xmlName := some "loadBalancerTargetPort", queryName := some "LoadBalancerTargetPort" }, .int), + ({ name := "MissingComponent", xmlName := some "missingComponent", queryName := some "MissingComponent" }, .string), + ({ name := "NatGateway", xmlName := some "natGateway", queryName := some "NatGateway" }, (Shape.schema AnalysisComponent)), + ({ name := "NetworkInterface", xmlName := some "networkInterface", queryName := some "NetworkInterface" }, (Shape.schema AnalysisComponent)), + ({ name := "PacketField", xmlName := some "packetField", queryName := some "PacketField" }, .string), + ({ name := "Port", xmlName := some "port", queryName := some "Port" }, .int), + ({ name := "PortRanges", xmlName := some "portRangeSet", queryName := some "PortRangeSet" }, (.list (Shape.schema PortRange) "item")), + ({ name := "PrefixList", xmlName := some "prefixList", queryName := some "PrefixList" }, (Shape.schema AnalysisComponent)), + ({ name := "Protocols", xmlName := some "protocolSet", queryName := some "ProtocolSet" }, (.list .string "item")), + ({ name := "RouteTable", xmlName := some "routeTable", queryName := some "RouteTable" }, (Shape.schema AnalysisComponent)), + ({ name := "RouteTableRoute", xmlName := some "routeTableRoute", queryName := some "RouteTableRoute" }, (Shape.schema AnalysisRouteTableRoute)), + ({ name := "SecurityGroup", xmlName := some "securityGroup", queryName := some "SecurityGroup" }, (Shape.schema AnalysisComponent)), + ({ name := "SecurityGroupRule", xmlName := some "securityGroupRule", queryName := some "SecurityGroupRule" }, (Shape.schema AnalysisSecurityGroupRule)), + ({ name := "SecurityGroups", xmlName := some "securityGroupSet", queryName := some "SecurityGroupSet" }, (.list (Shape.schema AnalysisComponent) "item")), + ({ name := "SourceVpc", xmlName := some "sourceVpc", queryName := some "SourceVpc" }, (Shape.schema AnalysisComponent)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, .string), + ({ name := "Subnet", xmlName := some "subnet", queryName := some "Subnet" }, (Shape.schema AnalysisComponent)), + ({ name := "SubnetRouteTable", xmlName := some "subnetRouteTable", queryName := some "SubnetRouteTable" }, (Shape.schema AnalysisComponent)), + ({ name := "TransitGateway", xmlName := some "transitGateway", queryName := some "TransitGateway" }, (Shape.schema AnalysisComponent)), + ({ name := "TransitGatewayAttachment", xmlName := some "transitGatewayAttachment", queryName := some "TransitGatewayAttachment" }, (Shape.schema AnalysisComponent)), + ({ name := "TransitGatewayPolicyTable", xmlName := some "transitGatewayPolicyTable", queryName := some "TransitGatewayPolicyTable" }, (Shape.schema AnalysisComponent)), + ({ name := "TransitGatewayPolicyTableEntry", xmlName := some "transitGatewayPolicyTableEntry", queryName := some "TransitGatewayPolicyTableEntry" }, (Shape.schema AnalysisTransitGatewayPolicyTableEntry)), + ({ name := "TransitGatewayRouteTable", xmlName := some "transitGatewayRouteTable", queryName := some "TransitGatewayRouteTable" }, (Shape.schema AnalysisComponent)), + ({ name := "TransitGatewayRouteTableRoute", xmlName := some "transitGatewayRouteTableRoute", queryName := some "TransitGatewayRouteTableRoute" }, (Shape.schema TransitGatewayRouteTableRoute)), + ({ name := "Vpc", xmlName := some "vpc", queryName := some "Vpc" }, (Shape.schema AnalysisComponent)), + ({ name := "VpcEndpoint", xmlName := some "vpcEndpoint", queryName := some "VpcEndpoint" }, (Shape.schema AnalysisComponent)), + ({ name := "VpcPeeringConnection", xmlName := some "vpcPeeringConnection", queryName := some "VpcPeeringConnection" }, (Shape.schema AnalysisComponent)), + ({ name := "VpnConnection", xmlName := some "vpnConnection", queryName := some "VpnConnection" }, (Shape.schema AnalysisComponent)), + ({ name := "VpnGateway", xmlName := some "vpnGateway", queryName := some "VpnGateway" }, (Shape.schema AnalysisComponent))] + toValue x := record [putOpt "Acl" x.acl, putOpt "AclRule" x.aclRule, putOpt "Address" x.address, putOpt "Addresses" x.addresses, putOpt "AttachedTo" x.attachedTo, putOpt "AvailabilityZoneIds" x.availabilityZoneIds, putOpt "AvailabilityZones" x.availabilityZones, putOpt "Cidrs" x.cidrs, putOpt "ClassicLoadBalancerListener" x.classicLoadBalancerListener, putOpt "Component" x.component, putOpt "ComponentAccount" x.componentAccount, putOpt "ComponentRegion" x.componentRegion, putOpt "CustomerGateway" x.customerGateway, putOpt "Destination" x.destination, putOpt "DestinationVpc" x.destinationVpc, putOpt "Direction" x.direction, putOpt "ElasticLoadBalancerListener" x.elasticLoadBalancerListener, putOpt "ExplanationCode" x.explanationCode, putOpt "FirewallStatefulRule" x.firewallStatefulRule, putOpt "FirewallStatelessRule" x.firewallStatelessRule, putOpt "IngressRouteTable" x.ingressRouteTable, putOpt "InternetGateway" x.internetGateway, putOpt "LoadBalancerArn" x.loadBalancerArn, putOpt "LoadBalancerListenerPort" x.loadBalancerListenerPort, putOpt "LoadBalancerTarget" x.loadBalancerTarget, putOpt "LoadBalancerTargetGroup" x.loadBalancerTargetGroup, putOpt "LoadBalancerTargetGroups" x.loadBalancerTargetGroups, putOpt "LoadBalancerTargetPort" x.loadBalancerTargetPort, putOpt "MissingComponent" x.missingComponent, putOpt "NatGateway" x.natGateway, putOpt "NetworkInterface" x.networkInterface, putOpt "PacketField" x.packetField, putOpt "Port" x.port, putOpt "PortRanges" x.portRanges, putOpt "PrefixList" x.prefixList, putOpt "Protocols" x.protocols, putOpt "RouteTable" x.routeTable, putOpt "RouteTableRoute" x.routeTableRoute, putOpt "SecurityGroup" x.securityGroup, putOpt "SecurityGroupRule" x.securityGroupRule, putOpt "SecurityGroups" x.securityGroups, putOpt "SourceVpc" x.sourceVpc, putOpt "State" x.state, putOpt "Subnet" x.subnet, putOpt "SubnetRouteTable" x.subnetRouteTable, putOpt "TransitGateway" x.transitGateway, putOpt "TransitGatewayAttachment" x.transitGatewayAttachment, putOpt "TransitGatewayPolicyTable" x.transitGatewayPolicyTable, putOpt "TransitGatewayPolicyTableEntry" x.transitGatewayPolicyTableEntry, putOpt "TransitGatewayRouteTable" x.transitGatewayRouteTable, putOpt "TransitGatewayRouteTableRoute" x.transitGatewayRouteTableRoute, putOpt "Vpc" x.vpc, putOpt "VpcEndpoint" x.vpcEndpoint, putOpt "VpcPeeringConnection" x.vpcPeeringConnection, putOpt "VpnConnection" x.vpnConnection, putOpt "VpnGateway" x.vpnGateway] + ofValue v := do + let acl ← v.opt "Acl" + let aclRule ← v.opt "AclRule" + let address ← v.opt "Address" + let addresses ← v.opt "Addresses" + let attachedTo ← v.opt "AttachedTo" + let availabilityZoneIds ← v.opt "AvailabilityZoneIds" + let availabilityZones ← v.opt "AvailabilityZones" + let cidrs ← v.opt "Cidrs" + let classicLoadBalancerListener ← v.opt "ClassicLoadBalancerListener" + let component ← v.opt "Component" + let componentAccount ← v.opt "ComponentAccount" + let componentRegion ← v.opt "ComponentRegion" + let customerGateway ← v.opt "CustomerGateway" + let destination ← v.opt "Destination" + let destinationVpc ← v.opt "DestinationVpc" + let direction ← v.opt "Direction" + let elasticLoadBalancerListener ← v.opt "ElasticLoadBalancerListener" + let explanationCode ← v.opt "ExplanationCode" + let firewallStatefulRule ← v.opt "FirewallStatefulRule" + let firewallStatelessRule ← v.opt "FirewallStatelessRule" + let ingressRouteTable ← v.opt "IngressRouteTable" + let internetGateway ← v.opt "InternetGateway" + let loadBalancerArn ← v.opt "LoadBalancerArn" + let loadBalancerListenerPort ← v.opt "LoadBalancerListenerPort" + let loadBalancerTarget ← v.opt "LoadBalancerTarget" + let loadBalancerTargetGroup ← v.opt "LoadBalancerTargetGroup" + let loadBalancerTargetGroups ← v.opt "LoadBalancerTargetGroups" + let loadBalancerTargetPort ← v.opt "LoadBalancerTargetPort" + let missingComponent ← v.opt "MissingComponent" + let natGateway ← v.opt "NatGateway" + let networkInterface ← v.opt "NetworkInterface" + let packetField ← v.opt "PacketField" + let port ← v.opt "Port" + let portRanges ← v.opt "PortRanges" + let prefixList ← v.opt "PrefixList" + let protocols ← v.opt "Protocols" + let routeTable ← v.opt "RouteTable" + let routeTableRoute ← v.opt "RouteTableRoute" + let securityGroup ← v.opt "SecurityGroup" + let securityGroupRule ← v.opt "SecurityGroupRule" + let securityGroups ← v.opt "SecurityGroups" + let sourceVpc ← v.opt "SourceVpc" + let state ← v.opt "State" + let subnet ← v.opt "Subnet" + let subnetRouteTable ← v.opt "SubnetRouteTable" + let transitGateway ← v.opt "TransitGateway" + let transitGatewayAttachment ← v.opt "TransitGatewayAttachment" + let transitGatewayPolicyTable ← v.opt "TransitGatewayPolicyTable" + let transitGatewayPolicyTableEntry ← v.opt "TransitGatewayPolicyTableEntry" + let transitGatewayRouteTable ← v.opt "TransitGatewayRouteTable" + let transitGatewayRouteTableRoute ← v.opt "TransitGatewayRouteTableRoute" + let vpc ← v.opt "Vpc" + let vpcEndpoint ← v.opt "VpcEndpoint" + let vpcPeeringConnection ← v.opt "VpcPeeringConnection" + let vpnConnection ← v.opt "VpnConnection" + let vpnGateway ← v.opt "VpnGateway" + return { acl, aclRule, address, addresses, attachedTo, availabilityZoneIds, availabilityZones, cidrs, classicLoadBalancerListener, component, componentAccount, componentRegion, customerGateway, destination, destinationVpc, direction, elasticLoadBalancerListener, explanationCode, firewallStatefulRule, firewallStatelessRule, ingressRouteTable, internetGateway, loadBalancerArn, loadBalancerListenerPort, loadBalancerTarget, loadBalancerTargetGroup, loadBalancerTargetGroups, loadBalancerTargetPort, missingComponent, natGateway, networkInterface, packetField, port, portRanges, prefixList, protocols, routeTable, routeTableRoute, securityGroup, securityGroupRule, securityGroups, sourceVpc, state, subnet, subnetRouteTable, transitGateway, transitGatewayAttachment, transitGatewayPolicyTable, transitGatewayPolicyTableEntry, transitGatewayRouteTable, transitGatewayRouteTableRoute, vpc, vpcEndpoint, vpcPeeringConnection, vpnConnection, vpnGateway } + +structure ExportClientVpnClientCertificateRevocationListResult where + /-- Information about the client certificate revocation list. -/ + certificateRevocationList : Option String := none + /-- The current state of the client certificate revocation list. -/ + status : Option ClientCertificateRevocationListStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExportClientVpnClientCertificateRevocationListResult where + schema := .struct "ExportClientVpnClientCertificateRevocationListResult" [({ name := "CertificateRevocationList", xmlName := some "certificateRevocationList", queryName := some "CertificateRevocationList" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema ClientCertificateRevocationListStatus))] + toValue x := record [putOpt "CertificateRevocationList" x.certificateRevocationList, putOpt "Status" x.status] + ofValue v := do + let certificateRevocationList ← v.opt "CertificateRevocationList" + let status ← v.opt "Status" + return { certificateRevocationList, status } + +structure ExportImageRequest where + /-- Token to enable idempotency for export image requests. -/ + clientToken : Option String := none + /-- A description of the image being exported. -/ + description : Option String := none + /-- The disk image format. -/ + diskImageFormat : DiskImageFormat + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the image. -/ + imageId : String + /-- The name of the role that grants VM Import/Export permission to export images to your Amazon S3 bucket. -/ + roleName : Option String := none + /-- The Amazon S3 bucket for the destination image. -/ + s3ExportLocation : ExportTaskS3LocationRequest + /-- The tags to apply to the export image task during creation. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExportImageRequest where + schema := .struct "ExportImageRequest" [({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DiskImageFormat", required := true }, (Shape.schema DiskImageFormat)), + ({ name := "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string), + ({ name := "RoleName" }, .string), + ({ name := "S3ExportLocation", required := true }, (Shape.schema ExportTaskS3LocationRequest)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, put "DiskImageFormat" x.diskImageFormat, putOpt "DryRun" x.dryRun, put "ImageId" x.imageId, putOpt "RoleName" x.roleName, put "S3ExportLocation" x.s3ExportLocation, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let diskImageFormat ← v.req "DiskImageFormat" + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + let roleName ← v.opt "RoleName" + let s3ExportLocation ← v.req "S3ExportLocation" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, description, diskImageFormat, dryRun, imageId, roleName, s3ExportLocation, tagSpecifications } + +/-- Describes an export instance task. -/ +structure ExportTask where + /-- A description of the resource being exported. -/ + description : Option String := none + /-- The ID of the export task. -/ + exportTaskId : Option String := none + /-- Information about the export task. -/ + exportToS3Task : Option ExportToS3Task := none + /-- Information about the instance to export. -/ + instanceExportDetails : Option InstanceExportDetails := none + /-- The state of the export task. -/ + state : Option ExportTaskState := none + /-- The status message related to the export task. -/ + statusMessage : Option String := none + /-- The tags for the export task. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExportTask where + schema := .struct "ExportTask" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "ExportTaskId", xmlName := some "exportTaskId", queryName := some "ExportTaskId" }, .string), + ({ name := "ExportToS3Task", xmlName := some "exportToS3", queryName := some "ExportToS3" }, (Shape.schema ExportToS3Task)), + ({ name := "InstanceExportDetails", xmlName := some "instanceExport", queryName := some "InstanceExport" }, (Shape.schema InstanceExportDetails)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema ExportTaskState)), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "Description" x.description, putOpt "ExportTaskId" x.exportTaskId, putOpt "ExportToS3Task" x.exportToS3Task, putOpt "InstanceExportDetails" x.instanceExportDetails, putOpt "State" x.state, putOpt "StatusMessage" x.statusMessage, putOpt "Tags" x.tags] + ofValue v := do + let description ← v.opt "Description" + let exportTaskId ← v.opt "ExportTaskId" + let exportToS3Task ← v.opt "ExportToS3Task" + let instanceExportDetails ← v.opt "InstanceExportDetails" + let state ← v.opt "State" + let statusMessage ← v.opt "StatusMessage" + let tags ← v.opt "Tags" + return { description, exportTaskId, exportToS3Task, instanceExportDetails, state, statusMessage, tags } + +structure ExportVerifiedAccessInstanceClientConfigurationResult where + /-- The device trust providers. -/ + deviceTrustProviders : Option (List DeviceTrustProviderType) := none + /-- The Open VPN configuration. -/ + openVpnConfigurations : Option (List VerifiedAccessInstanceOpenVpnClientConfiguration) := none + /-- The Region. -/ + region : Option String := none + /-- The user identity trust provider. -/ + userTrustProvider : Option VerifiedAccessInstanceUserTrustProviderClientConfiguration := none + /-- The ID of the Verified Access instance. -/ + verifiedAccessInstanceId : Option String := none + /-- The version. -/ + version : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExportVerifiedAccessInstanceClientConfigurationResult where + schema := .struct "ExportVerifiedAccessInstanceClientConfigurationResult" [({ name := "DeviceTrustProviders", xmlName := some "deviceTrustProviderSet", queryName := some "DeviceTrustProviderSet" }, (.list (Shape.schema DeviceTrustProviderType) "item")), + ({ name := "OpenVpnConfigurations", xmlName := some "openVpnConfigurationSet", queryName := some "OpenVpnConfigurationSet" }, (.list (Shape.schema VerifiedAccessInstanceOpenVpnClientConfiguration) "item")), + ({ name := "Region", xmlName := some "region", queryName := some "Region" }, .string), + ({ name := "UserTrustProvider", xmlName := some "userTrustProvider", queryName := some "UserTrustProvider" }, (Shape.schema VerifiedAccessInstanceUserTrustProviderClientConfiguration)), + ({ name := "VerifiedAccessInstanceId", xmlName := some "verifiedAccessInstanceId", queryName := some "VerifiedAccessInstanceId" }, .string), + ({ name := "Version", xmlName := some "version", queryName := some "Version" }, .string)] + toValue x := record [putOpt "DeviceTrustProviders" x.deviceTrustProviders, putOpt "OpenVpnConfigurations" x.openVpnConfigurations, putOpt "Region" x.region, putOpt "UserTrustProvider" x.userTrustProvider, putOpt "VerifiedAccessInstanceId" x.verifiedAccessInstanceId, putOpt "Version" x.version] + ofValue v := do + let deviceTrustProviders ← v.opt "DeviceTrustProviders" + let openVpnConfigurations ← v.opt "OpenVpnConfigurations" + let region ← v.opt "Region" + let userTrustProvider ← v.opt "UserTrustProvider" + let verifiedAccessInstanceId ← v.opt "VerifiedAccessInstanceId" + let version ← v.opt "Version" + return { deviceTrustProviders, openVpnConfigurations, region, userTrustProvider, verifiedAccessInstanceId, version } + +/-- Describes a Reserved Instance whose queued purchase was not deleted. -/ +structure FailedQueuedPurchaseDeletion where + /-- The error. -/ + error : Option DeleteQueuedReservedInstancesError := none + /-- The ID of the Reserved Instance. -/ + reservedInstancesId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FailedQueuedPurchaseDeletion where + schema := .struct "FailedQueuedPurchaseDeletion" [({ name := "Error", xmlName := some "error", queryName := some "Error" }, (Shape.schema DeleteQueuedReservedInstancesError)), + ({ name := "ReservedInstancesId", xmlName := some "reservedInstancesId", queryName := some "ReservedInstancesId" }, .string)] + toValue x := record [putOpt "Error" x.error, putOpt "ReservedInstancesId" x.reservedInstancesId] + ofValue v := do + let error ← v.opt "Error" + let reservedInstancesId ← v.opt "ReservedInstancesId" + return { error, reservedInstancesId } + +/-- Describes a block device mapping, which defines the EBS volumes and instance store volumes to attach to an instance at launch. -/ +structure FleetBlockDeviceMappingRequest where + /-- The device name (for example, /dev/sdh or xvdh ). -/ + deviceName : Option String := none + /-- Parameters used to automatically set up EBS volumes when the instance is launched. -/ + ebs : Option FleetEbsBlockDeviceRequest := none + /-- To omit the device from the block device mapping, specify an empty string. -/ + noDevice : Option String := none + /-- The virtual device name ( ephemeralN ). -/ + virtualName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FleetBlockDeviceMappingRequest where + schema := .struct "FleetBlockDeviceMappingRequest" [({ name := "DeviceName" }, .string), + ({ name := "Ebs" }, (Shape.schema FleetEbsBlockDeviceRequest)), + ({ name := "NoDevice" }, .string), + ({ name := "VirtualName" }, .string)] + toValue x := record [putOpt "DeviceName" x.deviceName, putOpt "Ebs" x.ebs, putOpt "NoDevice" x.noDevice, putOpt "VirtualName" x.virtualName] + ofValue v := do + let deviceName ← v.opt "DeviceName" + let ebs ← v.opt "Ebs" + let noDevice ← v.opt "NoDevice" + let virtualName ← v.opt "VirtualName" + return { deviceName, ebs, noDevice, virtualName } + +/-- The strategies for managing your Spot Instances that are at an elevated risk of being interrupted. -/ +structure FleetSpotMaintenanceStrategies where + /-- The strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. -/ + capacityRebalance : Option FleetSpotCapacityRebalance := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FleetSpotMaintenanceStrategies where + schema := .struct "FleetSpotMaintenanceStrategies" [({ name := "CapacityRebalance", xmlName := some "capacityRebalance", queryName := some "CapacityRebalance" }, (Shape.schema FleetSpotCapacityRebalance))] + toValue x := record [putOpt "CapacityRebalance" x.capacityRebalance] + ofValue v := do + let capacityRebalance ← v.opt "CapacityRebalance" + return { capacityRebalance } + +/-- The strategies for managing your Spot Instances that are at an elevated risk of being interrupted. -/ +structure FleetSpotMaintenanceStrategiesRequest where + /-- The strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. -/ + capacityRebalance : Option FleetSpotCapacityRebalanceRequest := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FleetSpotMaintenanceStrategiesRequest where + schema := .struct "FleetSpotMaintenanceStrategiesRequest" [({ name := "CapacityRebalance" }, (Shape.schema FleetSpotCapacityRebalanceRequest))] + toValue x := record [putOpt "CapacityRebalance" x.capacityRebalance] + ofValue v := do + let capacityRebalance ← v.opt "CapacityRebalance" + return { capacityRebalance } + +/-- Describes a flow log. -/ +structure FlowLog where + /-- The date and time the flow log was created. -/ + creationTime : Option Timestamp := none + /-- The ARN of the IAM role that allows the service to publish flow logs across accounts. -/ + deliverCrossAccountRole : Option String := none + /-- Information about the error that occurred. -/ + deliverLogsErrorMessage : Option String := none + /-- The ARN of the IAM role allows the service to publish logs to CloudWatch Logs. -/ + deliverLogsPermissionArn : Option String := none + /-- The status of the logs delivery ( SUCCESS | FAILED ). -/ + deliverLogsStatus : Option String := none + /-- The destination options. -/ + destinationOptions : Option DestinationOptionsResponse := none + /-- The ID of the flow log. -/ + flowLogId : Option String := none + /-- The status of the flow log ( ACTIVE ). -/ + flowLogStatus : Option String := none + /-- The Amazon Resource Name (ARN) of the destination for the flow log data. -/ + logDestination : Option String := none + /-- The type of destination for the flow log data. -/ + logDestinationType : Option LogDestinationType := none + /-- The format of the flow log record. -/ + logFormat : Option String := none + /-- The name of the flow log group. -/ + logGroupName : Option String := none + /-- The maximum interval of time, in seconds, during which a flow of packets is captured and aggregated into a flow log record. -/ + maxAggregationInterval : Option Int := none + /-- The ID of the resource being monitored. -/ + resourceId : Option String := none + /-- The tag configuration associated with the Flow Logs Amazon EC2 Tags feature fields in your custom log format. -/ + tagFieldSpecifications : Option (List TagFieldSpecificationResponse) := none + /-- The tags for the flow log. -/ + tags : Option (List Tag) := none + /-- The type of traffic captured for the flow log. -/ + trafficType : Option TrafficType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FlowLog where + schema := .struct "FlowLog" [({ name := "CreationTime", xmlName := some "creationTime", queryName := some "CreationTime" }, (.time none)), + ({ name := "DeliverCrossAccountRole", xmlName := some "deliverCrossAccountRole", queryName := some "DeliverCrossAccountRole" }, .string), + ({ name := "DeliverLogsErrorMessage", xmlName := some "deliverLogsErrorMessage", queryName := some "DeliverLogsErrorMessage" }, .string), + ({ name := "DeliverLogsPermissionArn", xmlName := some "deliverLogsPermissionArn", queryName := some "DeliverLogsPermissionArn" }, .string), + ({ name := "DeliverLogsStatus", xmlName := some "deliverLogsStatus", queryName := some "DeliverLogsStatus" }, .string), + ({ name := "DestinationOptions", xmlName := some "destinationOptions", queryName := some "DestinationOptions" }, (Shape.schema DestinationOptionsResponse)), + ({ name := "FlowLogId", xmlName := some "flowLogId", queryName := some "FlowLogId" }, .string), + ({ name := "FlowLogStatus", xmlName := some "flowLogStatus", queryName := some "FlowLogStatus" }, .string), + ({ name := "LogDestination", xmlName := some "logDestination", queryName := some "LogDestination" }, .string), + ({ name := "LogDestinationType", xmlName := some "logDestinationType", queryName := some "LogDestinationType" }, (Shape.schema LogDestinationType)), + ({ name := "LogFormat", xmlName := some "logFormat", queryName := some "LogFormat" }, .string), + ({ name := "LogGroupName", xmlName := some "logGroupName", queryName := some "LogGroupName" }, .string), + ({ name := "MaxAggregationInterval", xmlName := some "maxAggregationInterval", queryName := some "MaxAggregationInterval" }, .int), + ({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "TagFieldSpecifications", xmlName := some "tagFieldSpecificationSet", queryName := some "TagFieldSpecificationSet" }, (.list (Shape.schema TagFieldSpecificationResponse) "item")), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TrafficType", xmlName := some "trafficType", queryName := some "TrafficType" }, (Shape.schema TrafficType))] + toValue x := record [putOpt "CreationTime" x.creationTime, putOpt "DeliverCrossAccountRole" x.deliverCrossAccountRole, putOpt "DeliverLogsErrorMessage" x.deliverLogsErrorMessage, putOpt "DeliverLogsPermissionArn" x.deliverLogsPermissionArn, putOpt "DeliverLogsStatus" x.deliverLogsStatus, putOpt "DestinationOptions" x.destinationOptions, putOpt "FlowLogId" x.flowLogId, putOpt "FlowLogStatus" x.flowLogStatus, putOpt "LogDestination" x.logDestination, putOpt "LogDestinationType" x.logDestinationType, putOpt "LogFormat" x.logFormat, putOpt "LogGroupName" x.logGroupName, putOpt "MaxAggregationInterval" x.maxAggregationInterval, putOpt "ResourceId" x.resourceId, putOpt "TagFieldSpecifications" x.tagFieldSpecifications, putOpt "Tags" x.tags, putOpt "TrafficType" x.trafficType] + ofValue v := do + let creationTime ← v.opt "CreationTime" + let deliverCrossAccountRole ← v.opt "DeliverCrossAccountRole" + let deliverLogsErrorMessage ← v.opt "DeliverLogsErrorMessage" + let deliverLogsPermissionArn ← v.opt "DeliverLogsPermissionArn" + let deliverLogsStatus ← v.opt "DeliverLogsStatus" + let destinationOptions ← v.opt "DestinationOptions" + let flowLogId ← v.opt "FlowLogId" + let flowLogStatus ← v.opt "FlowLogStatus" + let logDestination ← v.opt "LogDestination" + let logDestinationType ← v.opt "LogDestinationType" + let logFormat ← v.opt "LogFormat" + let logGroupName ← v.opt "LogGroupName" + let maxAggregationInterval ← v.opt "MaxAggregationInterval" + let resourceId ← v.opt "ResourceId" + let tagFieldSpecifications ← v.opt "TagFieldSpecifications" + let tags ← v.opt "Tags" + let trafficType ← v.opt "TrafficType" + return { creationTime, deliverCrossAccountRole, deliverLogsErrorMessage, deliverLogsPermissionArn, deliverLogsStatus, destinationOptions, flowLogId, flowLogStatus, logDestination, logDestinationType, logFormat, logGroupName, maxAggregationInterval, resourceId, tagFieldSpecifications, tags, trafficType } + +/-- Describes an Amazon FPGA image (AFI). -/ +structure FpgaImage where + /-- The date and time the AFI was created. -/ + createTime : Option Timestamp := none + /-- Indicates whether data retention support is enabled for the AFI. -/ + dataRetentionSupport : Option Bool := none + /-- The description of the AFI. -/ + description : Option String := none + /-- The global FPGA image identifier (AGFI ID). -/ + fpgaImageGlobalId : Option String := none + /-- The FPGA image identifier (AFI ID). -/ + fpgaImageId : Option String := none + /-- The instance types supported by the AFI. -/ + instanceTypes : Option (List String) := none + /-- The name of the AFI. -/ + name : Option String := none + /-- The alias of the AFI owner. -/ + ownerAlias : Option String := none + /-- The ID of the Amazon Web Services account that owns the AFI. -/ + ownerId : Option String := none + /-- Information about the PCI bus. -/ + pciId : Option PciId := none + /-- The product codes for the AFI. -/ + productCodes : Option (List ProductCode) := none + /-- Indicates whether the AFI is public. -/ + «public» : Option Bool := none + /-- The version of the Amazon Web Services Shell that was used to create the bitstream. -/ + shellVersion : Option String := none + /-- Information about the state of the AFI. -/ + state : Option FpgaImageState := none + /-- Any tags assigned to the AFI. -/ + tags : Option (List Tag) := none + /-- The time of the most recent update to the AFI. -/ + updateTime : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FpgaImage where + schema := .struct "FpgaImage" [({ name := "CreateTime", xmlName := some "createTime", queryName := some "CreateTime" }, (.time none)), + ({ name := "DataRetentionSupport", xmlName := some "dataRetentionSupport", queryName := some "DataRetentionSupport" }, .bool), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "FpgaImageGlobalId", xmlName := some "fpgaImageGlobalId", queryName := some "FpgaImageGlobalId" }, .string), + ({ name := "FpgaImageId", xmlName := some "fpgaImageId", queryName := some "FpgaImageId" }, .string), + ({ name := "InstanceTypes", xmlName := some "instanceTypes", queryName := some "InstanceTypes" }, (.list .string "item")), + ({ name := "Name", xmlName := some "name", queryName := some "Name" }, .string), + ({ name := "OwnerAlias", xmlName := some "ownerAlias", queryName := some "OwnerAlias" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "PciId", xmlName := some "pciId", queryName := some "PciId" }, (Shape.schema PciId)), + ({ name := "ProductCodes", xmlName := some "productCodes", queryName := some "ProductCodes" }, (.list (Shape.schema ProductCode) "item")), + ({ name := "Public", xmlName := some "public", queryName := some "Public" }, .bool), + ({ name := "ShellVersion", xmlName := some "shellVersion", queryName := some "ShellVersion" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema FpgaImageState)), + ({ name := "Tags", xmlName := some "tags", queryName := some "Tags" }, (.list (Shape.schema Tag) "item")), + ({ name := "UpdateTime", xmlName := some "updateTime", queryName := some "UpdateTime" }, (.time none))] + toValue x := record [putOpt "CreateTime" x.createTime, putOpt "DataRetentionSupport" x.dataRetentionSupport, putOpt "Description" x.description, putOpt "FpgaImageGlobalId" x.fpgaImageGlobalId, putOpt "FpgaImageId" x.fpgaImageId, putOpt "InstanceTypes" x.instanceTypes, putOpt "Name" x.name, putOpt "OwnerAlias" x.ownerAlias, putOpt "OwnerId" x.ownerId, putOpt "PciId" x.pciId, putOpt "ProductCodes" x.productCodes, putOpt "Public" x.«public», putOpt "ShellVersion" x.shellVersion, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "UpdateTime" x.updateTime] + ofValue v := do + let createTime ← v.opt "CreateTime" + let dataRetentionSupport ← v.opt "DataRetentionSupport" + let description ← v.opt "Description" + let fpgaImageGlobalId ← v.opt "FpgaImageGlobalId" + let fpgaImageId ← v.opt "FpgaImageId" + let instanceTypes ← v.opt "InstanceTypes" + let name ← v.opt "Name" + let ownerAlias ← v.opt "OwnerAlias" + let ownerId ← v.opt "OwnerId" + let pciId ← v.opt "PciId" + let productCodes ← v.opt "ProductCodes" + let «public» ← v.opt "Public" + let shellVersion ← v.opt "ShellVersion" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let updateTime ← v.opt "UpdateTime" + return { createTime, dataRetentionSupport, description, fpgaImageGlobalId, fpgaImageId, instanceTypes, name, ownerAlias, ownerId, pciId, productCodes, «public», shellVersion, state, tags, updateTime } + +/-- Describes an Amazon FPGA image (AFI) attribute. -/ +structure FpgaImageAttribute where + /-- The description of the AFI. -/ + description : Option String := none + /-- The ID of the AFI. -/ + fpgaImageId : Option String := none + /-- The load permissions. -/ + loadPermissions : Option (List LoadPermission) := none + /-- The name of the AFI. -/ + name : Option String := none + /-- The product codes. -/ + productCodes : Option (List ProductCode) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FpgaImageAttribute where + schema := .struct "FpgaImageAttribute" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "FpgaImageId", xmlName := some "fpgaImageId", queryName := some "FpgaImageId" }, .string), + ({ name := "LoadPermissions", xmlName := some "loadPermissions", queryName := some "LoadPermissions" }, (.list (Shape.schema LoadPermission) "item")), + ({ name := "Name", xmlName := some "name", queryName := some "Name" }, .string), + ({ name := "ProductCodes", xmlName := some "productCodes", queryName := some "ProductCodes" }, (.list (Shape.schema ProductCode) "item"))] + toValue x := record [putOpt "Description" x.description, putOpt "FpgaImageId" x.fpgaImageId, putOpt "LoadPermissions" x.loadPermissions, putOpt "Name" x.name, putOpt "ProductCodes" x.productCodes] + ofValue v := do + let description ← v.opt "Description" + let fpgaImageId ← v.opt "FpgaImageId" + let loadPermissions ← v.opt "LoadPermissions" + let name ← v.opt "Name" + let productCodes ← v.opt "ProductCodes" + return { description, fpgaImageId, loadPermissions, name, productCodes } + +/-- Describes the FPGAs for the instance type. -/ +structure FpgaInfo where + /-- Describes the FPGAs for the instance type. -/ + fpgas : Option (List FpgaDeviceInfo) := none + /-- The total memory of all FPGA accelerators for the instance type. -/ + totalFpgaMemoryInMiB : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FpgaInfo where + schema := .struct "FpgaInfo" [({ name := "Fpgas", xmlName := some "fpgas", queryName := some "Fpgas" }, (.list (Shape.schema FpgaDeviceInfo) "item")), + ({ name := "TotalFpgaMemoryInMiB", xmlName := some "totalFpgaMemoryInMiB", queryName := some "TotalFpgaMemoryInMiB" }, .int)] + toValue x := record [putOpt "Fpgas" x.fpgas, putOpt "TotalFpgaMemoryInMiB" x.totalFpgaMemoryInMiB] + ofValue v := do + let fpgas ← v.opt "Fpgas" + let totalFpgaMemoryInMiB ← v.opt "TotalFpgaMemoryInMiB" + return { fpgas, totalFpgaMemoryInMiB } + +structure GetActiveVpnTunnelStatusResult where + /-- Information about the current security configuration of the VPN tunnel. -/ + activeVpnTunnelStatus : Option ActiveVpnTunnelStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetActiveVpnTunnelStatusResult where + schema := .struct "GetActiveVpnTunnelStatusResult" [({ name := "ActiveVpnTunnelStatus", xmlName := some "activeVpnTunnelStatus", queryName := some "ActiveVpnTunnelStatus" }, (Shape.schema ActiveVpnTunnelStatus))] + toValue x := record [putOpt "ActiveVpnTunnelStatus" x.activeVpnTunnelStatus] + ofValue v := do + let activeVpnTunnelStatus ← v.opt "ActiveVpnTunnelStatus" + return { activeVpnTunnelStatus } + +structure GetAwsNetworkPerformanceDataRequest where + /-- A list of network performance data queries. -/ + dataQueries : Option (List DataQuery) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ending time for the performance data request. -/ + endTime : Option Timestamp := none + /-- The maximum number of results to return with a single call. -/ + maxResults : Option Int := none + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The starting time for the performance data request. -/ + startTime : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetAwsNetworkPerformanceDataRequest where + schema := .struct "GetAwsNetworkPerformanceDataRequest" [({ name := "DataQueries", xmlName := some "DataQuery" }, (.list (Shape.schema DataQuery) "member")), + ({ name := "DryRun" }, .bool), + ({ name := "EndTime" }, (.time none)), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "StartTime" }, (.time none))] + toValue x := record [putOpt "DataQueries" x.dataQueries, putOpt "DryRun" x.dryRun, putOpt "EndTime" x.endTime, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "StartTime" x.startTime] + ofValue v := do + let dataQueries ← v.opt "DataQueries" + let dryRun ← v.opt "DryRun" + let endTime ← v.opt "EndTime" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let startTime ← v.opt "StartTime" + return { dataQueries, dryRun, endTime, maxResults, nextToken, startTime } + +structure GetAwsNetworkPerformanceDataResult where + /-- The list of data responses. -/ + dataResponses : Option (List DataResponse) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetAwsNetworkPerformanceDataResult where + schema := .struct "GetAwsNetworkPerformanceDataResult" [({ name := "DataResponses", xmlName := some "dataResponseSet", queryName := some "DataResponseSet" }, (.list (Shape.schema DataResponse) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "DataResponses" x.dataResponses, putOpt "NextToken" x.nextToken] + ofValue v := do + let dataResponses ← v.opt "DataResponses" + let nextToken ← v.opt "NextToken" + return { dataResponses, nextToken } + +structure GetCapacityManagerMetricDimensionsResult where + /-- The available dimension combinations that have data within the specified time range and filters. -/ + metricDimensionResults : Option (List CapacityManagerDimension) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetCapacityManagerMetricDimensionsResult where + schema := .struct "GetCapacityManagerMetricDimensionsResult" [({ name := "MetricDimensionResults", xmlName := some "metricDimensionResultSet", queryName := some "MetricDimensionResultSet" }, (.list (Shape.schema CapacityManagerDimension) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "MetricDimensionResults" x.metricDimensionResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let metricDimensionResults ← v.opt "MetricDimensionResults" + let nextToken ← v.opt "NextToken" + return { metricDimensionResults, nextToken } + +structure GetCapacityManagerMonitoredTagKeysResult where + /-- The list of tag keys being monitored by Capacity Manager, including their current status and metadata. -/ + capacityManagerTagKeys : Option (List CapacityManagerMonitoredTagKey) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetCapacityManagerMonitoredTagKeysResult where + schema := .struct "GetCapacityManagerMonitoredTagKeysResult" [({ name := "CapacityManagerTagKeys", xmlName := some "capacityManagerTagKeySet", queryName := some "CapacityManagerTagKeySet" }, (.list (Shape.schema CapacityManagerMonitoredTagKey) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "CapacityManagerTagKeys" x.capacityManagerTagKeys, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityManagerTagKeys ← v.opt "CapacityManagerTagKeys" + let nextToken ← v.opt "NextToken" + return { capacityManagerTagKeys, nextToken } + +structure GetCapacityManagerSupportabilityScoresResult where + /-- The score for all instance type and Availability Zone combinations in the request together. -/ + aggregateScore : Option SupportabilityScore := none + /-- The score for each instance type and Availability Zone combination in the request. -/ + capacityManagerSupportabilityScores : Option (List CapacityManagerSupportabilityScore) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetCapacityManagerSupportabilityScoresResult where + schema := .struct "GetCapacityManagerSupportabilityScoresResult" [({ name := "AggregateScore", xmlName := some "aggregateScore", queryName := some "AggregateScore" }, (Shape.schema SupportabilityScore)), + ({ name := "CapacityManagerSupportabilityScores", xmlName := some "capacityManagerSupportabilityScoreSet", queryName := some "CapacityManagerSupportabilityScoreSet" }, (.list (Shape.schema CapacityManagerSupportabilityScore) "item"))] + toValue x := record [putOpt "AggregateScore" x.aggregateScore, putOpt "CapacityManagerSupportabilityScores" x.capacityManagerSupportabilityScores] + ofValue v := do + let aggregateScore ← v.opt "AggregateScore" + let capacityManagerSupportabilityScores ← v.opt "CapacityManagerSupportabilityScores" + return { aggregateScore, capacityManagerSupportabilityScores } + +structure GetCapacityReservationUsageResult where + /-- The remaining capacity. -/ + availableInstanceCount : Option Int := none + /-- The ID of the Capacity Reservation. -/ + capacityReservationId : Option String := none + /-- The type of instance for which the Capacity Reservation reserves capacity. -/ + instanceType : Option String := none + /-- Information about the Capacity Reservation usage. -/ + instanceUsages : Option (List InstanceUsage) := none + /-- Indicates whether the Capacity Reservation is interruptible, meaning instances may be terminated when the owner reclaims capacity. -/ + interruptible : Option Bool := none + /-- Information about the capacity allocated to the interruptible Capacity Reservation, including instance counts and allocation status. -/ + interruptibleCapacityAllocation : Option InterruptibleCapacityAllocation := none + /-- Details about the interruption configuration and source reservation for interruptible Capacity Reservations. -/ + interruptionInfo : Option InterruptionInfo := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- The current state of the Capacity Reservation. -/ + state : Option CapacityReservationState := none + /-- The number of instances for which the Capacity Reservation reserves capacity. -/ + totalInstanceCount : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetCapacityReservationUsageResult where + schema := .struct "GetCapacityReservationUsageResult" [({ name := "AvailableInstanceCount", xmlName := some "availableInstanceCount", queryName := some "AvailableInstanceCount" }, .int), + ({ name := "CapacityReservationId", xmlName := some "capacityReservationId", queryName := some "CapacityReservationId" }, .string), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, .string), + ({ name := "InstanceUsages", xmlName := some "instanceUsageSet", queryName := some "InstanceUsageSet" }, (.list (Shape.schema InstanceUsage) "item")), + ({ name := "Interruptible", xmlName := some "interruptible", queryName := some "Interruptible" }, .bool), + ({ name := "InterruptibleCapacityAllocation", xmlName := some "interruptibleCapacityAllocation", queryName := some "InterruptibleCapacityAllocation" }, (Shape.schema InterruptibleCapacityAllocation)), + ({ name := "InterruptionInfo", xmlName := some "interruptionInfo", queryName := some "InterruptionInfo" }, (Shape.schema InterruptionInfo)), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema CapacityReservationState)), + ({ name := "TotalInstanceCount", xmlName := some "totalInstanceCount", queryName := some "TotalInstanceCount" }, .int)] + toValue x := record [putOpt "AvailableInstanceCount" x.availableInstanceCount, putOpt "CapacityReservationId" x.capacityReservationId, putOpt "InstanceType" x.instanceType, putOpt "InstanceUsages" x.instanceUsages, putOpt "Interruptible" x.interruptible, putOpt "InterruptibleCapacityAllocation" x.interruptibleCapacityAllocation, putOpt "InterruptionInfo" x.interruptionInfo, putOpt "NextToken" x.nextToken, putOpt "State" x.state, putOpt "TotalInstanceCount" x.totalInstanceCount] + ofValue v := do + let availableInstanceCount ← v.opt "AvailableInstanceCount" + let capacityReservationId ← v.opt "CapacityReservationId" + let instanceType ← v.opt "InstanceType" + let instanceUsages ← v.opt "InstanceUsages" + let interruptible ← v.opt "Interruptible" + let interruptibleCapacityAllocation ← v.opt "InterruptibleCapacityAllocation" + let interruptionInfo ← v.opt "InterruptionInfo" + let nextToken ← v.opt "NextToken" + let state ← v.opt "State" + let totalInstanceCount ← v.opt "TotalInstanceCount" + return { availableInstanceCount, capacityReservationId, instanceType, instanceUsages, interruptible, interruptibleCapacityAllocation, interruptionInfo, nextToken, state, totalInstanceCount } + +structure GetDeclarativePoliciesReportSummaryResult where + /-- The attributes described in the report. -/ + attributeSummaries : Option (List AttributeSummary) := none + /-- The time when the report generation ended. -/ + endTime : Option Timestamp := none + /-- The total number of accounts associated with the specified targetId . -/ + numberOfAccounts : Option Int := none + /-- The number of accounts where attributes could not be retrieved in any Region. -/ + numberOfFailedAccounts : Option Int := none + /-- The ID of the report. -/ + reportId : Option String := none + /-- The name of the Amazon S3 bucket where the report is located. -/ + s3Bucket : Option String := none + /-- The prefix for your S3 object. -/ + s3Prefix : Option String := none + /-- The time when the report generation started. -/ + startTime : Option Timestamp := none + /-- The root ID, organizational unit ID, or account ID. -/ + targetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetDeclarativePoliciesReportSummaryResult where + schema := .struct "GetDeclarativePoliciesReportSummaryResult" [({ name := "AttributeSummaries", xmlName := some "attributeSummarySet", queryName := some "AttributeSummarySet" }, (.list (Shape.schema AttributeSummary) "item")), + ({ name := "EndTime", xmlName := some "endTime", queryName := some "EndTime" }, (.time none)), + ({ name := "NumberOfAccounts", xmlName := some "numberOfAccounts", queryName := some "NumberOfAccounts" }, .int), + ({ name := "NumberOfFailedAccounts", xmlName := some "numberOfFailedAccounts", queryName := some "NumberOfFailedAccounts" }, .int), + ({ name := "ReportId", xmlName := some "reportId", queryName := some "ReportId" }, .string), + ({ name := "S3Bucket", xmlName := some "s3Bucket", queryName := some "S3Bucket" }, .string), + ({ name := "S3Prefix", xmlName := some "s3Prefix", queryName := some "S3Prefix" }, .string), + ({ name := "StartTime", xmlName := some "startTime", queryName := some "StartTime" }, (.time none)), + ({ name := "TargetId", xmlName := some "targetId", queryName := some "TargetId" }, .string)] + toValue x := record [putOpt "AttributeSummaries" x.attributeSummaries, putOpt "EndTime" x.endTime, putOpt "NumberOfAccounts" x.numberOfAccounts, putOpt "NumberOfFailedAccounts" x.numberOfFailedAccounts, putOpt "ReportId" x.reportId, putOpt "S3Bucket" x.s3Bucket, putOpt "S3Prefix" x.s3Prefix, putOpt "StartTime" x.startTime, putOpt "TargetId" x.targetId] + ofValue v := do + let attributeSummaries ← v.opt "AttributeSummaries" + let endTime ← v.opt "EndTime" + let numberOfAccounts ← v.opt "NumberOfAccounts" + let numberOfFailedAccounts ← v.opt "NumberOfFailedAccounts" + let reportId ← v.opt "ReportId" + let s3Bucket ← v.opt "S3Bucket" + let s3Prefix ← v.opt "S3Prefix" + let startTime ← v.opt "StartTime" + let targetId ← v.opt "TargetId" + return { attributeSummaries, endTime, numberOfAccounts, numberOfFailedAccounts, reportId, s3Bucket, s3Prefix, startTime, targetId } + +structure GetDefaultCreditSpecificationResult where + /-- The default credit option for CPU usage of the instance family. -/ + instanceFamilyCreditSpecification : Option InstanceFamilyCreditSpecification := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetDefaultCreditSpecificationResult where + schema := .struct "GetDefaultCreditSpecificationResult" [({ name := "InstanceFamilyCreditSpecification", xmlName := some "instanceFamilyCreditSpecification", queryName := some "InstanceFamilyCreditSpecification" }, (Shape.schema InstanceFamilyCreditSpecification))] + toValue x := record [putOpt "InstanceFamilyCreditSpecification" x.instanceFamilyCreditSpecification] + ofValue v := do + let instanceFamilyCreditSpecification ← v.opt "InstanceFamilyCreditSpecification" + return { instanceFamilyCreditSpecification } + +structure GetHostReservationPurchasePreviewResult where + /-- The currency in which the totalUpfrontPrice and totalHourlyPrice amounts are specified. -/ + currencyCode : Option CurrencyCodeValues := none + /-- The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it. -/ + purchase : Option (List Purchase) := none + /-- The potential total hourly price of the reservation per hour. -/ + totalHourlyPrice : Option String := none + /-- The potential total upfront price. -/ + totalUpfrontPrice : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetHostReservationPurchasePreviewResult where + schema := .struct "GetHostReservationPurchasePreviewResult" [({ name := "CurrencyCode", xmlName := some "currencyCode", queryName := some "CurrencyCode" }, (Shape.schema CurrencyCodeValues)), + ({ name := "Purchase", xmlName := some "purchase", queryName := some "Purchase" }, (.list (Shape.schema Purchase) "item")), + ({ name := "TotalHourlyPrice", xmlName := some "totalHourlyPrice", queryName := some "TotalHourlyPrice" }, .string), + ({ name := "TotalUpfrontPrice", xmlName := some "totalUpfrontPrice", queryName := some "TotalUpfrontPrice" }, .string)] + toValue x := record [putOpt "CurrencyCode" x.currencyCode, putOpt "Purchase" x.purchase, putOpt "TotalHourlyPrice" x.totalHourlyPrice, putOpt "TotalUpfrontPrice" x.totalUpfrontPrice] + ofValue v := do + let currencyCode ← v.opt "CurrencyCode" + let purchase ← v.opt "Purchase" + let totalHourlyPrice ← v.opt "TotalHourlyPrice" + let totalUpfrontPrice ← v.opt "TotalUpfrontPrice" + return { currencyCode, purchase, totalHourlyPrice, totalUpfrontPrice } + +structure GetImageFindingsResult where + /-- The Amazon Inspector findings for the AMI. -/ + imageFindings : Option (List ImageFinding) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetImageFindingsResult where + schema := .struct "GetImageFindingsResult" [({ name := "ImageFindings", xmlName := some "imageFindingSet", queryName := some "ImageFindingSet" }, (.list (Shape.schema ImageFinding) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "ImageFindings" x.imageFindings, putOpt "NextToken" x.nextToken] + ofValue v := do + let imageFindings ← v.opt "ImageFindings" + let nextToken ← v.opt "NextToken" + return { imageFindings, nextToken } + +structure GetInstanceMetadataDefaultsResult where + /-- The account-level default IMDS settings. -/ + accountLevel : Option InstanceMetadataDefaultsResponse := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetInstanceMetadataDefaultsResult where + schema := .struct "GetInstanceMetadataDefaultsResult" [({ name := "AccountLevel", xmlName := some "accountLevel", queryName := some "AccountLevel" }, (Shape.schema InstanceMetadataDefaultsResponse))] + toValue x := record [putOpt "AccountLevel" x.accountLevel] + ofValue v := do + let accountLevel ← v.opt "AccountLevel" + return { accountLevel } + +structure GetIpamAddressHistoryResult where + /-- A historical record for a CIDR within an IPAM scope. -/ + historyRecords : Option (List IpamAddressHistoryRecord) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamAddressHistoryResult where + schema := .struct "GetIpamAddressHistoryResult" [({ name := "HistoryRecords", xmlName := some "historyRecordSet", queryName := some "HistoryRecordSet" }, (.list (Shape.schema IpamAddressHistoryRecord) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "HistoryRecords" x.historyRecords, putOpt "NextToken" x.nextToken] + ofValue v := do + let historyRecords ← v.opt "HistoryRecords" + let nextToken ← v.opt "NextToken" + return { historyRecords, nextToken } + +structure GetIpamDiscoveredResourceCidrsResult where + /-- Discovered resource CIDRs. -/ + ipamDiscoveredResourceCidrs : Option (List IpamDiscoveredResourceCidr) := none + /-- Specify the pagination token from a previous request to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamDiscoveredResourceCidrsResult where + schema := .struct "GetIpamDiscoveredResourceCidrsResult" [({ name := "IpamDiscoveredResourceCidrs", xmlName := some "ipamDiscoveredResourceCidrSet", queryName := some "IpamDiscoveredResourceCidrSet" }, (.list (Shape.schema IpamDiscoveredResourceCidr) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamDiscoveredResourceCidrs" x.ipamDiscoveredResourceCidrs, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamDiscoveredResourceCidrs ← v.opt "IpamDiscoveredResourceCidrs" + let nextToken ← v.opt "NextToken" + return { ipamDiscoveredResourceCidrs, nextToken } + +structure GetIpamDiscoveredRoutesResult where + /-- The discovered BGP routes. -/ + ipamDiscoveredRoutes : Option (List IpamDiscoveredRoute) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamDiscoveredRoutesResult where + schema := .struct "GetIpamDiscoveredRoutesResult" [({ name := "IpamDiscoveredRoutes", xmlName := some "ipamDiscoveredRouteSet", queryName := some "IpamDiscoveredRouteSet" }, (.list (Shape.schema IpamDiscoveredRoute) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamDiscoveredRoutes" x.ipamDiscoveredRoutes, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamDiscoveredRoutes ← v.opt "IpamDiscoveredRoutes" + let nextToken ← v.opt "NextToken" + return { ipamDiscoveredRoutes, nextToken } + +structure GetIpamPolicyAllocationRulesResult where + /-- The IPAM policy documents containing the allocation rules. -/ + ipamPolicyDocuments : Option (List IpamPolicyDocument) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamPolicyAllocationRulesResult where + schema := .struct "GetIpamPolicyAllocationRulesResult" [({ name := "IpamPolicyDocuments", xmlName := some "ipamPolicyDocumentSet", queryName := some "IpamPolicyDocumentSet" }, (.list (Shape.schema IpamPolicyDocument) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamPolicyDocuments" x.ipamPolicyDocuments, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamPolicyDocuments ← v.opt "IpamPolicyDocuments" + let nextToken ← v.opt "NextToken" + return { ipamPolicyDocuments, nextToken } + +structure GetIpamPoolAllocationsResult where + /-- The IPAM pool allocations you want information on. -/ + ipamPoolAllocations : Option (List IpamPoolAllocation) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamPoolAllocationsResult where + schema := .struct "GetIpamPoolAllocationsResult" [({ name := "IpamPoolAllocations", xmlName := some "ipamPoolAllocationSet", queryName := some "IpamPoolAllocationSet" }, (.list (Shape.schema IpamPoolAllocation) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamPoolAllocations" x.ipamPoolAllocations, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamPoolAllocations ← v.opt "IpamPoolAllocations" + let nextToken ← v.opt "NextToken" + return { ipamPoolAllocations, nextToken } + +structure GetIpamResourceCidrsResult where + /-- The resource CIDRs. -/ + ipamResourceCidrs : Option (List IpamResourceCidr) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamResourceCidrsResult where + schema := .struct "GetIpamResourceCidrsResult" [({ name := "IpamResourceCidrs", xmlName := some "ipamResourceCidrSet", queryName := some "IpamResourceCidrSet" }, (.list (Shape.schema IpamResourceCidr) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamResourceCidrs" x.ipamResourceCidrs, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamResourceCidrs ← v.opt "IpamResourceCidrs" + let nextToken ← v.opt "NextToken" + return { ipamResourceCidrs, nextToken } + +structure GetIpamRouteProtectionFindingsResult where + /-- The ID of the IPAM. -/ + ipamId : Option String := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- The route protection findings. -/ + routeProtectionFindings : Option (List IpamRouteProtectionFinding) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamRouteProtectionFindingsResult where + schema := .struct "GetIpamRouteProtectionFindingsResult" [({ name := "IpamId", xmlName := some "ipamId", queryName := some "IpamId" }, .string), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "RouteProtectionFindings", xmlName := some "routeProtectionFindingSet", queryName := some "RouteProtectionFindingSet" }, (.list (Shape.schema IpamRouteProtectionFinding) "item"))] + toValue x := record [putOpt "IpamId" x.ipamId, putOpt "NextToken" x.nextToken, putOpt "RouteProtectionFindings" x.routeProtectionFindings] + ofValue v := do + let ipamId ← v.opt "IpamId" + let nextToken ← v.opt "NextToken" + let routeProtectionFindings ← v.opt "RouteProtectionFindings" + return { ipamId, nextToken, routeProtectionFindings } + +structure GetIpamRoutingPolicyRegistrationDeltasResult where + /-- The routing policy registration deltas. -/ + ipamRoutingPolicyRegistrationDeltas : Option (List IpamRoutingPolicyRegistrationDelta) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamRoutingPolicyRegistrationDeltasResult where + schema := .struct "GetIpamRoutingPolicyRegistrationDeltasResult" [({ name := "IpamRoutingPolicyRegistrationDeltas", xmlName := some "ipamRoutingPolicyRegistrationDeltaSet", queryName := some "IpamRoutingPolicyRegistrationDeltaSet" }, (.list (Shape.schema IpamRoutingPolicyRegistrationDelta) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamRoutingPolicyRegistrationDeltas" x.ipamRoutingPolicyRegistrationDeltas, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamRoutingPolicyRegistrationDeltas ← v.opt "IpamRoutingPolicyRegistrationDeltas" + let nextToken ← v.opt "NextToken" + return { ipamRoutingPolicyRegistrationDeltas, nextToken } + +structure GetIpamRoutingPolicyRegistrationsResult where + /-- The routing policy registrations. -/ + ipamRoutingPolicyRegistrations : Option (List IpamRoutingPolicyRegistration) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamRoutingPolicyRegistrationsResult where + schema := .struct "GetIpamRoutingPolicyRegistrationsResult" [({ name := "IpamRoutingPolicyRegistrations", xmlName := some "ipamRoutingPolicyRegistrationSet", queryName := some "IpamRoutingPolicyRegistrationSet" }, (.list (Shape.schema IpamRoutingPolicyRegistration) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamRoutingPolicyRegistrations" x.ipamRoutingPolicyRegistrations, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamRoutingPolicyRegistrations ← v.opt "IpamRoutingPolicyRegistrations" + let nextToken ← v.opt "NextToken" + return { ipamRoutingPolicyRegistrations, nextToken } + +structure GetManagedResourceVisibilityResult where + /-- The managed resource visibility settings for the account. -/ + visibility : Option ManagedResourceVisibilitySettings := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetManagedResourceVisibilityResult where + schema := .struct "GetManagedResourceVisibilityResult" [({ name := "Visibility", xmlName := some "visibility", queryName := some "Visibility" }, (Shape.schema ManagedResourceVisibilitySettings))] + toValue x := record [putOpt "Visibility" x.visibility] + ofValue v := do + let visibility ← v.opt "Visibility" + return { visibility } + +/-- Contains the output of GetReservedInstancesExchangeQuote. -/ +structure GetReservedInstancesExchangeQuoteResult where + /-- The currency of the transaction. -/ + currencyCode : Option String := none + /-- If true , the exchange is valid. -/ + isValidExchange : Option Bool := none + /-- The new end date of the reservation term. -/ + outputReservedInstancesWillExpireAt : Option Timestamp := none + /-- The total true upfront charge for the exchange. -/ + paymentDue : Option String := none + /-- The cost associated with the Reserved Instance. -/ + reservedInstanceValueRollup : Option ReservationValue := none + /-- The configuration of your Convertible Reserved Instances. -/ + reservedInstanceValueSet : Option (List ReservedInstanceReservationValue) := none + /-- The cost associated with the Reserved Instance. -/ + targetConfigurationValueRollup : Option ReservationValue := none + /-- The values of the target Convertible Reserved Instances. -/ + targetConfigurationValueSet : Option (List TargetReservationValue) := none + /-- Describes the reason why the exchange cannot be completed. -/ + validationFailureReason : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetReservedInstancesExchangeQuoteResult where + schema := .struct "GetReservedInstancesExchangeQuoteResult" [({ name := "CurrencyCode", xmlName := some "currencyCode", queryName := some "CurrencyCode" }, .string), + ({ name := "IsValidExchange", xmlName := some "isValidExchange", queryName := some "IsValidExchange" }, .bool), + ({ name := "OutputReservedInstancesWillExpireAt", xmlName := some "outputReservedInstancesWillExpireAt", queryName := some "OutputReservedInstancesWillExpireAt" }, (.time none)), + ({ name := "PaymentDue", xmlName := some "paymentDue", queryName := some "PaymentDue" }, .string), + ({ name := "ReservedInstanceValueRollup", xmlName := some "reservedInstanceValueRollup", queryName := some "ReservedInstanceValueRollup" }, (Shape.schema ReservationValue)), + ({ name := "ReservedInstanceValueSet", xmlName := some "reservedInstanceValueSet", queryName := some "ReservedInstanceValueSet" }, (.list (Shape.schema ReservedInstanceReservationValue) "item")), + ({ name := "TargetConfigurationValueRollup", xmlName := some "targetConfigurationValueRollup", queryName := some "TargetConfigurationValueRollup" }, (Shape.schema ReservationValue)), + ({ name := "TargetConfigurationValueSet", xmlName := some "targetConfigurationValueSet", queryName := some "TargetConfigurationValueSet" }, (.list (Shape.schema TargetReservationValue) "item")), + ({ name := "ValidationFailureReason", xmlName := some "validationFailureReason", queryName := some "ValidationFailureReason" }, .string)] + toValue x := record [putOpt "CurrencyCode" x.currencyCode, putOpt "IsValidExchange" x.isValidExchange, putOpt "OutputReservedInstancesWillExpireAt" x.outputReservedInstancesWillExpireAt, putOpt "PaymentDue" x.paymentDue, putOpt "ReservedInstanceValueRollup" x.reservedInstanceValueRollup, putOpt "ReservedInstanceValueSet" x.reservedInstanceValueSet, putOpt "TargetConfigurationValueRollup" x.targetConfigurationValueRollup, putOpt "TargetConfigurationValueSet" x.targetConfigurationValueSet, putOpt "ValidationFailureReason" x.validationFailureReason] + ofValue v := do + let currencyCode ← v.opt "CurrencyCode" + let isValidExchange ← v.opt "IsValidExchange" + let outputReservedInstancesWillExpireAt ← v.opt "OutputReservedInstancesWillExpireAt" + let paymentDue ← v.opt "PaymentDue" + let reservedInstanceValueRollup ← v.opt "ReservedInstanceValueRollup" + let reservedInstanceValueSet ← v.opt "ReservedInstanceValueSet" + let targetConfigurationValueRollup ← v.opt "TargetConfigurationValueRollup" + let targetConfigurationValueSet ← v.opt "TargetConfigurationValueSet" + let validationFailureReason ← v.opt "ValidationFailureReason" + return { currencyCode, isValidExchange, outputReservedInstancesWillExpireAt, paymentDue, reservedInstanceValueRollup, reservedInstanceValueSet, targetConfigurationValueRollup, targetConfigurationValueSet, validationFailureReason } + +structure GetRouteServerAssociationsResult where + /-- Information about the associations for the specified route server. -/ + routeServerAssociations : Option (List RouteServerAssociation) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetRouteServerAssociationsResult where + schema := .struct "GetRouteServerAssociationsResult" [({ name := "RouteServerAssociations", xmlName := some "routeServerAssociationSet", queryName := some "RouteServerAssociationSet" }, (.list (Shape.schema RouteServerAssociation) "item"))] + toValue x := record [putOpt "RouteServerAssociations" x.routeServerAssociations] + ofValue v := do + let routeServerAssociations ← v.opt "RouteServerAssociations" + return { routeServerAssociations } + +structure GetRouteServerPropagationsResult where + /-- Information about the route propagations for the specified route server. -/ + routeServerPropagations : Option (List RouteServerPropagation) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetRouteServerPropagationsResult where + schema := .struct "GetRouteServerPropagationsResult" [({ name := "RouteServerPropagations", xmlName := some "routeServerPropagationSet", queryName := some "RouteServerPropagationSet" }, (.list (Shape.schema RouteServerPropagation) "item"))] + toValue x := record [putOpt "RouteServerPropagations" x.routeServerPropagations] + ofValue v := do + let routeServerPropagations ← v.opt "RouteServerPropagations" + return { routeServerPropagations } + +structure GetSecurityGroupsForVpcResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- The security group that can be used by interfaces in the VPC. -/ + securityGroupForVpcs : Option (List SecurityGroupForVpc) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetSecurityGroupsForVpcResult where + schema := .struct "GetSecurityGroupsForVpcResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "SecurityGroupForVpcs", xmlName := some "securityGroupForVpcSet", queryName := some "SecurityGroupForVpcSet" }, (.list (Shape.schema SecurityGroupForVpc) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "SecurityGroupForVpcs" x.securityGroupForVpcs] + ofValue v := do + let nextToken ← v.opt "NextToken" + let securityGroupForVpcs ← v.opt "SecurityGroupForVpcs" + return { nextToken, securityGroupForVpcs } + +structure GetSubnetCidrReservationsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the IPv4 subnet CIDR reservations. -/ + subnetIpv4CidrReservations : Option (List SubnetCidrReservation) := none + /-- Information about the IPv6 subnet CIDR reservations. -/ + subnetIpv6CidrReservations : Option (List SubnetCidrReservation) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetSubnetCidrReservationsResult where + schema := .struct "GetSubnetCidrReservationsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "SubnetIpv4CidrReservations", xmlName := some "subnetIpv4CidrReservationSet", queryName := some "SubnetIpv4CidrReservationSet" }, (.list (Shape.schema SubnetCidrReservation) "item")), + ({ name := "SubnetIpv6CidrReservations", xmlName := some "subnetIpv6CidrReservationSet", queryName := some "SubnetIpv6CidrReservationSet" }, (.list (Shape.schema SubnetCidrReservation) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "SubnetIpv4CidrReservations" x.subnetIpv4CidrReservations, putOpt "SubnetIpv6CidrReservations" x.subnetIpv6CidrReservations] + ofValue v := do + let nextToken ← v.opt "NextToken" + let subnetIpv4CidrReservations ← v.opt "SubnetIpv4CidrReservations" + let subnetIpv6CidrReservations ← v.opt "SubnetIpv6CidrReservations" + return { nextToken, subnetIpv4CidrReservations, subnetIpv6CidrReservations } + +structure GetTransitGatewayAttachmentNatConfigurationResult where + /-- The NAT gateway rules for the attachment. -/ + natGatewayRules : Option (List TransitGatewayNatRule) := none + /-- The state of NAT gateway support for the attachment. -/ + natGatewaySupport : Option TransitGatewayAttachmentNatGatewaySupportState := none + /-- Specifies whether the transit gateway installs routes for the NAT CIDRs in the route tables to which the attachment propagates. -/ + natSystemRouteSupport : Option TransitGatewayAttachmentNatSystemRouteSupportValue := none + /-- The ID of the transit gateway attachment. -/ + transitGatewayAttachmentId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetTransitGatewayAttachmentNatConfigurationResult where + schema := .struct "GetTransitGatewayAttachmentNatConfigurationResult" [({ name := "NatGatewayRules", xmlName := some "natGatewayRuleSet", queryName := some "NatGatewayRuleSet" }, (.list (Shape.schema TransitGatewayNatRule) "item")), + ({ name := "NatGatewaySupport", xmlName := some "natGatewaySupport", queryName := some "NatGatewaySupport" }, (Shape.schema TransitGatewayAttachmentNatGatewaySupportState)), + ({ name := "NatSystemRouteSupport", xmlName := some "natSystemRouteSupport", queryName := some "NatSystemRouteSupport" }, (Shape.schema TransitGatewayAttachmentNatSystemRouteSupportValue)), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string)] + toValue x := record [putOpt "NatGatewayRules" x.natGatewayRules, putOpt "NatGatewaySupport" x.natGatewaySupport, putOpt "NatSystemRouteSupport" x.natSystemRouteSupport, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let natGatewayRules ← v.opt "NatGatewayRules" + let natGatewaySupport ← v.opt "NatGatewaySupport" + let natSystemRouteSupport ← v.opt "NatSystemRouteSupport" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + return { natGatewayRules, natGatewaySupport, natSystemRouteSupport, transitGatewayAttachmentId } + +structure GetTransitGatewayAttachmentPropagationsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the propagation route tables. -/ + transitGatewayAttachmentPropagations : Option (List TransitGatewayAttachmentPropagation) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetTransitGatewayAttachmentPropagationsResult where + schema := .struct "GetTransitGatewayAttachmentPropagationsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TransitGatewayAttachmentPropagations", xmlName := some "transitGatewayAttachmentPropagations", queryName := some "TransitGatewayAttachmentPropagations" }, (.list (Shape.schema TransitGatewayAttachmentPropagation) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TransitGatewayAttachmentPropagations" x.transitGatewayAttachmentPropagations] + ofValue v := do + let nextToken ← v.opt "NextToken" + let transitGatewayAttachmentPropagations ← v.opt "TransitGatewayAttachmentPropagations" + return { nextToken, transitGatewayAttachmentPropagations } + +structure GetTransitGatewayPolicyTableAssociationsResult where + /-- Returns details about the transit gateway policy table association. -/ + associations : Option (List TransitGatewayPolicyTableAssociation) := none + /-- The token for the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetTransitGatewayPolicyTableAssociationsResult where + schema := .struct "GetTransitGatewayPolicyTableAssociationsResult" [({ name := "Associations", xmlName := some "associations", queryName := some "Associations" }, (.list (Shape.schema TransitGatewayPolicyTableAssociation) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "Associations" x.associations, putOpt "NextToken" x.nextToken] + ofValue v := do + let associations ← v.opt "Associations" + let nextToken ← v.opt "NextToken" + return { associations, nextToken } + +structure GetTransitGatewayRouteTableAssociationsResult where + /-- Information about the associations. -/ + associations : Option (List TransitGatewayRouteTableAssociation) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetTransitGatewayRouteTableAssociationsResult where + schema := .struct "GetTransitGatewayRouteTableAssociationsResult" [({ name := "Associations", xmlName := some "associations", queryName := some "Associations" }, (.list (Shape.schema TransitGatewayRouteTableAssociation) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "Associations" x.associations, putOpt "NextToken" x.nextToken] + ofValue v := do + let associations ← v.opt "Associations" + let nextToken ← v.opt "NextToken" + return { associations, nextToken } + +structure GetTransitGatewayRouteTablePropagationsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the route table propagations. -/ + transitGatewayRouteTablePropagations : Option (List TransitGatewayRouteTablePropagation) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetTransitGatewayRouteTablePropagationsResult where + schema := .struct "GetTransitGatewayRouteTablePropagationsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TransitGatewayRouteTablePropagations", xmlName := some "transitGatewayRouteTablePropagations", queryName := some "TransitGatewayRouteTablePropagations" }, (.list (Shape.schema TransitGatewayRouteTablePropagation) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TransitGatewayRouteTablePropagations" x.transitGatewayRouteTablePropagations] + ofValue v := do + let nextToken ← v.opt "NextToken" + let transitGatewayRouteTablePropagations ← v.opt "TransitGatewayRouteTablePropagations" + return { nextToken, transitGatewayRouteTablePropagations } + +/-- Describes the GPU accelerators for the instance type. -/ +structure GpuInfo where + /-- Describes the GPU accelerators for the instance type. -/ + gpus : Option (List GpuDeviceInfo) := none + /-- The total size of the memory for the GPU accelerators for the instance type, in MiB. -/ + totalGpuMemoryInMiB : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GpuInfo where + schema := .struct "GpuInfo" [({ name := "Gpus", xmlName := some "gpus", queryName := some "Gpus" }, (.list (Shape.schema GpuDeviceInfo) "item")), + ({ name := "TotalGpuMemoryInMiB", xmlName := some "totalGpuMemoryInMiB", queryName := some "TotalGpuMemoryInMiB" }, .int)] + toValue x := record [putOpt "Gpus" x.gpus, putOpt "TotalGpuMemoryInMiB" x.totalGpuMemoryInMiB] + ofValue v := do + let gpus ← v.opt "Gpus" + let totalGpuMemoryInMiB ← v.opt "TotalGpuMemoryInMiB" + return { gpus, totalGpuMemoryInMiB } + +/-- Describes the properties of the Dedicated Host. -/ +structure Host where + /-- The time that the Dedicated Host was allocated. -/ + allocationTime : Option Timestamp := none + /-- Indicates whether the Dedicated Host supports multiple instance types of the same instance family. -/ + allowsMultipleInstanceTypes : Option AllowsMultipleInstanceTypes := none + /-- The ID of the Outpost hardware asset on which the Dedicated Host is allocated. -/ + assetId : Option String := none + /-- Whether auto-placement is on or off. -/ + autoPlacement : Option AutoPlacement := none + /-- The Availability Zone of the Dedicated Host. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone in which the Dedicated Host is allocated. -/ + availabilityZoneId : Option String := none + /-- Information about the instances running on the Dedicated Host. -/ + availableCapacity : Option AvailableCapacity := none + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The CPU options for the Dedicated Host, including AMD Secure Encrypted Virtualization-Secure Nested Paging (AMD SEV-SNP) settings. -/ + cpuOptions : Option HostCpuOptions := none + /-- The ID of the Dedicated Host. -/ + hostId : Option String := none + /-- Indicates whether host maintenance is enabled or disabled for the Dedicated Host. -/ + hostMaintenance : Option HostMaintenance := none + /-- The hardware specifications of the Dedicated Host. -/ + hostProperties : Option HostProperties := none + /-- Indicates whether host recovery is enabled or disabled for the Dedicated Host. -/ + hostRecovery : Option HostRecovery := none + /-- The reservation ID of the Dedicated Host. -/ + hostReservationId : Option String := none + /-- The IDs and instance type that are currently running on the Dedicated Host. -/ + instances : Option (List HostInstance) := none + /-- Indicates whether the Dedicated Host is in a host resource group. -/ + memberOfServiceLinkedResourceGroup : Option Bool := none + /-- The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which the Dedicated Host is allocated. -/ + outpostArn : Option String := none + /-- The ID of the Amazon Web Services account that owns the Dedicated Host. -/ + ownerId : Option String := none + /-- The time that the Dedicated Host was released. -/ + releaseTime : Option Timestamp := none + /-- The Dedicated Host's state. -/ + state : Option AllocationState := none + /-- Any tags assigned to the Dedicated Host. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Host where + schema := .struct "Host" [({ name := "AllocationTime", xmlName := some "allocationTime", queryName := some "AllocationTime" }, (.time none)), + ({ name := "AllowsMultipleInstanceTypes", xmlName := some "allowsMultipleInstanceTypes", queryName := some "AllowsMultipleInstanceTypes" }, (Shape.schema AllowsMultipleInstanceTypes)), + ({ name := "AssetId", xmlName := some "assetId", queryName := some "AssetId" }, .string), + ({ name := "AutoPlacement", xmlName := some "autoPlacement", queryName := some "AutoPlacement" }, (Shape.schema AutoPlacement)), + ({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "AvailableCapacity", xmlName := some "availableCapacity", queryName := some "AvailableCapacity" }, (Shape.schema AvailableCapacity)), + ({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "CpuOptions", xmlName := some "cpuOptions", queryName := some "CpuOptions" }, (Shape.schema HostCpuOptions)), + ({ name := "HostId", xmlName := some "hostId", queryName := some "HostId" }, .string), + ({ name := "HostMaintenance", xmlName := some "hostMaintenance", queryName := some "HostMaintenance" }, (Shape.schema HostMaintenance)), + ({ name := "HostProperties", xmlName := some "hostProperties", queryName := some "HostProperties" }, (Shape.schema HostProperties)), + ({ name := "HostRecovery", xmlName := some "hostRecovery", queryName := some "HostRecovery" }, (Shape.schema HostRecovery)), + ({ name := "HostReservationId", xmlName := some "hostReservationId", queryName := some "HostReservationId" }, .string), + ({ name := "Instances", xmlName := some "instances", queryName := some "Instances" }, (.list (Shape.schema HostInstance) "item")), + ({ name := "MemberOfServiceLinkedResourceGroup", xmlName := some "memberOfServiceLinkedResourceGroup", queryName := some "MemberOfServiceLinkedResourceGroup" }, .bool), + ({ name := "OutpostArn", xmlName := some "outpostArn", queryName := some "OutpostArn" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "ReleaseTime", xmlName := some "releaseTime", queryName := some "ReleaseTime" }, (.time none)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema AllocationState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "AllocationTime" x.allocationTime, putOpt "AllowsMultipleInstanceTypes" x.allowsMultipleInstanceTypes, putOpt "AssetId" x.assetId, putOpt "AutoPlacement" x.autoPlacement, putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "AvailableCapacity" x.availableCapacity, putOpt "ClientToken" x.clientToken, putOpt "CpuOptions" x.cpuOptions, putOpt "HostId" x.hostId, putOpt "HostMaintenance" x.hostMaintenance, putOpt "HostProperties" x.hostProperties, putOpt "HostRecovery" x.hostRecovery, putOpt "HostReservationId" x.hostReservationId, putOpt "Instances" x.instances, putOpt "MemberOfServiceLinkedResourceGroup" x.memberOfServiceLinkedResourceGroup, putOpt "OutpostArn" x.outpostArn, putOpt "OwnerId" x.ownerId, putOpt "ReleaseTime" x.releaseTime, putOpt "State" x.state, putOpt "Tags" x.tags] + ofValue v := do + let allocationTime ← v.opt "AllocationTime" + let allowsMultipleInstanceTypes ← v.opt "AllowsMultipleInstanceTypes" + let assetId ← v.opt "AssetId" + let autoPlacement ← v.opt "AutoPlacement" + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let availableCapacity ← v.opt "AvailableCapacity" + let clientToken ← v.opt "ClientToken" + let cpuOptions ← v.opt "CpuOptions" + let hostId ← v.opt "HostId" + let hostMaintenance ← v.opt "HostMaintenance" + let hostProperties ← v.opt "HostProperties" + let hostRecovery ← v.opt "HostRecovery" + let hostReservationId ← v.opt "HostReservationId" + let instances ← v.opt "Instances" + let memberOfServiceLinkedResourceGroup ← v.opt "MemberOfServiceLinkedResourceGroup" + let outpostArn ← v.opt "OutpostArn" + let ownerId ← v.opt "OwnerId" + let releaseTime ← v.opt "ReleaseTime" + let state ← v.opt "State" + let tags ← v.opt "Tags" + return { allocationTime, allowsMultipleInstanceTypes, assetId, autoPlacement, availabilityZone, availabilityZoneId, availableCapacity, clientToken, cpuOptions, hostId, hostMaintenance, hostProperties, hostRecovery, hostReservationId, instances, memberOfServiceLinkedResourceGroup, outpostArn, ownerId, releaseTime, state, tags } + +/-- The criteria that are evaluated to determine which AMIs are discoverable and usable in your account for the specified Amazon Web Services Region. -/ +structure ImageCriterion where + /-- The maximum age for allowed images. -/ + creationDateCondition : Option CreationDateCondition := none + /-- The maximum period since deprecation for allowed images. -/ + deprecationTimeCondition : Option DeprecationTimeCondition := none + /-- The names of allowed images. -/ + imageNames : Option (List String) := none + /-- The image providers whose images are allowed. -/ + imageProviders : Option (List String) := none + /-- The watermark criteria that an AMI must match to be allowed. -/ + imageWatermarks : Option (List ImageWatermarkFilterResponse) := none + /-- The Amazon Web Services Marketplace product codes for allowed images. -/ + marketplaceProductCodes : Option (List String) := none + /-- The Amazon Inspector scan-result criteria that an AMI must meet to be allowed. -/ + scanResultCondition : Option ScanResultCondition := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageCriterion where + schema := .struct "ImageCriterion" [({ name := "CreationDateCondition", xmlName := some "creationDateCondition", queryName := some "CreationDateCondition" }, (Shape.schema CreationDateCondition)), + ({ name := "DeprecationTimeCondition", xmlName := some "deprecationTimeCondition", queryName := some "DeprecationTimeCondition" }, (Shape.schema DeprecationTimeCondition)), + ({ name := "ImageNames", xmlName := some "imageNameSet", queryName := some "ImageNameSet" }, (.list .string "item")), + ({ name := "ImageProviders", xmlName := some "imageProviderSet", queryName := some "ImageProviderSet" }, (.list .string "item")), + ({ name := "ImageWatermarks", xmlName := some "imageWatermarkSet", queryName := some "ImageWatermarkSet" }, (.list (Shape.schema ImageWatermarkFilterResponse) "item")), + ({ name := "MarketplaceProductCodes", xmlName := some "marketplaceProductCodeSet", queryName := some "MarketplaceProductCodeSet" }, (.list .string "item")), + ({ name := "ScanResultCondition", xmlName := some "scanResultCondition", queryName := some "ScanResultCondition" }, (Shape.schema ScanResultCondition))] + toValue x := record [putOpt "CreationDateCondition" x.creationDateCondition, putOpt "DeprecationTimeCondition" x.deprecationTimeCondition, putOpt "ImageNames" x.imageNames, putOpt "ImageProviders" x.imageProviders, putOpt "ImageWatermarks" x.imageWatermarks, putOpt "MarketplaceProductCodes" x.marketplaceProductCodes, putOpt "ScanResultCondition" x.scanResultCondition] + ofValue v := do + let creationDateCondition ← v.opt "CreationDateCondition" + let deprecationTimeCondition ← v.opt "DeprecationTimeCondition" + let imageNames ← v.opt "ImageNames" + let imageProviders ← v.opt "ImageProviders" + let imageWatermarks ← v.opt "ImageWatermarks" + let marketplaceProductCodes ← v.opt "MarketplaceProductCodes" + let scanResultCondition ← v.opt "ScanResultCondition" + return { creationDateCondition, deprecationTimeCondition, imageNames, imageProviders, imageWatermarks, marketplaceProductCodes, scanResultCondition } + +/-- The criteria that are evaluated to determine which AMIs are discoverable and usable in your account for the specified Amazon Web Services Region. -/ +structure ImageCriterionRequest where + /-- The maximum age for allowed images. -/ + creationDateCondition : Option CreationDateConditionRequest := none + /-- The maximum period since deprecation for allowed images. -/ + deprecationTimeCondition : Option DeprecationTimeConditionRequest := none + /-- The names of allowed images. -/ + imageNames : Option (List String) := none + /-- The image providers whose images are allowed. -/ + imageProviders : Option (List String) := none + /-- The watermark criteria that an AMI must match to be allowed. -/ + imageWatermarks : Option (List ImageWatermarkFilterRequest) := none + /-- The Amazon Web Services Marketplace product codes for allowed images. -/ + marketplaceProductCodes : Option (List String) := none + /-- The Amazon Inspector scan-result criteria that an AMI must meet to be allowed. -/ + scanResultCondition : Option ScanResultConditionRequest := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageCriterionRequest where + schema := .struct "ImageCriterionRequest" [({ name := "CreationDateCondition" }, (Shape.schema CreationDateConditionRequest)), + ({ name := "DeprecationTimeCondition" }, (Shape.schema DeprecationTimeConditionRequest)), + ({ name := "ImageNames", xmlName := some "ImageName" }, (.list .string "item")), + ({ name := "ImageProviders", xmlName := some "ImageProvider" }, (.list .string "item")), + ({ name := "ImageWatermarks", xmlName := some "ImageWatermark" }, (.list (Shape.schema ImageWatermarkFilterRequest) "item")), + ({ name := "MarketplaceProductCodes", xmlName := some "MarketplaceProductCode" }, (.list .string "item")), + ({ name := "ScanResultCondition" }, (Shape.schema ScanResultConditionRequest))] + toValue x := record [putOpt "CreationDateCondition" x.creationDateCondition, putOpt "DeprecationTimeCondition" x.deprecationTimeCondition, putOpt "ImageNames" x.imageNames, putOpt "ImageProviders" x.imageProviders, putOpt "ImageWatermarks" x.imageWatermarks, putOpt "MarketplaceProductCodes" x.marketplaceProductCodes, putOpt "ScanResultCondition" x.scanResultCondition] + ofValue v := do + let creationDateCondition ← v.opt "CreationDateCondition" + let deprecationTimeCondition ← v.opt "DeprecationTimeCondition" + let imageNames ← v.opt "ImageNames" + let imageProviders ← v.opt "ImageProviders" + let imageWatermarks ← v.opt "ImageWatermarks" + let marketplaceProductCodes ← v.opt "MarketplaceProductCodes" + let scanResultCondition ← v.opt "ScanResultCondition" + return { creationDateCondition, deprecationTimeCondition, imageNames, imageProviders, imageWatermarks, marketplaceProductCodes, scanResultCondition } + +/-- The configuration and status of an image usage report. -/ +structure ImageUsageReport where + /-- The IDs of the Amazon Web Services accounts that were specified when the report was created. -/ + accountIds : Option (List String) := none + /-- The date and time when the report was created. -/ + creationTime : Option Timestamp := none + /-- The date and time when Amazon EC2 will delete the report (30 days after the report was created). -/ + expirationTime : Option Timestamp := none + /-- The ID of the image that was specified when the report was created. -/ + imageId : Option String := none + /-- The ID of the report. -/ + reportId : Option String := none + /-- The resource types that were specified when the report was created. -/ + resourceTypes : Option (List ImageUsageResourceType) := none + /-- The current state of the report. -/ + state : Option String := none + /-- Provides additional details when the report is in an error state. -/ + stateReason : Option String := none + /-- Any tags assigned to the report. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageUsageReport where + schema := .struct "ImageUsageReport" [({ name := "AccountIds", xmlName := some "accountIdSet", queryName := some "AccountIdSet" }, (.list .string "item")), + ({ name := "CreationTime", xmlName := some "creationTime", queryName := some "CreationTime" }, (.time none)), + ({ name := "ExpirationTime", xmlName := some "expirationTime", queryName := some "ExpirationTime" }, (.time none)), + ({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "ReportId", xmlName := some "reportId", queryName := some "ReportId" }, .string), + ({ name := "ResourceTypes", xmlName := some "resourceTypeSet", queryName := some "ResourceTypeSet" }, (.list (Shape.schema ImageUsageResourceType) "item")), + ({ name := "State", xmlName := some "state", queryName := some "State" }, .string), + ({ name := "StateReason", xmlName := some "stateReason", queryName := some "StateReason" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "AccountIds" x.accountIds, putOpt "CreationTime" x.creationTime, putOpt "ExpirationTime" x.expirationTime, putOpt "ImageId" x.imageId, putOpt "ReportId" x.reportId, putOpt "ResourceTypes" x.resourceTypes, putOpt "State" x.state, putOpt "StateReason" x.stateReason, putOpt "Tags" x.tags] + ofValue v := do + let accountIds ← v.opt "AccountIds" + let creationTime ← v.opt "CreationTime" + let expirationTime ← v.opt "ExpirationTime" + let imageId ← v.opt "ImageId" + let reportId ← v.opt "ReportId" + let resourceTypes ← v.opt "ResourceTypes" + let state ← v.opt "State" + let stateReason ← v.opt "StateReason" + let tags ← v.opt "Tags" + return { accountIds, creationTime, expirationTime, imageId, reportId, resourceTypes, state, stateReason, tags } + +structure ImportImageRequest where + /-- The architecture of the virtual machine. -/ + architecture : Option String := none + /-- The boot mode of the virtual machine. -/ + bootMode : Option BootModeValues := none + /-- The client-specific data. -/ + clientData : Option ClientData := none + /-- The token to enable idempotency for VM import requests. -/ + clientToken : Option String := none + /-- A description string for the import image task. -/ + description : Option String := none + /-- Information about the disk containers. -/ + diskContainers : Option (List ImageDiskContainer) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Specifies whether the destination AMI of the imported image should be encrypted. -/ + encrypted : Option Bool := none + /-- The target hypervisor platform. -/ + hypervisor : Option String := none + /-- An identifier for the symmetric KMS key to use when creating the encrypted AMI. -/ + kmsKeyId : Option String := none + /-- The ARNs of the license configurations. -/ + licenseSpecifications : Option (List ImportImageLicenseConfigurationRequest) := none + /-- The license type to be used for the Amazon Machine Image (AMI) after importing. -/ + licenseType : Option String := none + /-- The operating system of the virtual machine. -/ + platform : Option String := none + /-- The name of the role to use when not using the default role, 'vmimport'. -/ + roleName : Option String := none + /-- The tags to apply to the import image task during creation. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The usage operation value. -/ + usageOperation : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportImageRequest where + schema := .struct "ImportImageRequest" [({ name := "Architecture" }, .string), + ({ name := "BootMode" }, (Shape.schema BootModeValues)), + ({ name := "ClientData" }, (Shape.schema ClientData)), + ({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DiskContainers", xmlName := some "DiskContainer" }, (.list (Shape.schema ImageDiskContainer) "item")), + ({ name := "DryRun" }, .bool), + ({ name := "Encrypted" }, .bool), + ({ name := "Hypervisor" }, .string), + ({ name := "KmsKeyId" }, .string), + ({ name := "LicenseSpecifications" }, (.list (Shape.schema ImportImageLicenseConfigurationRequest) "item")), + ({ name := "LicenseType" }, .string), + ({ name := "Platform" }, .string), + ({ name := "RoleName" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "UsageOperation" }, .string)] + toValue x := record [putOpt "Architecture" x.architecture, putOpt "BootMode" x.bootMode, putOpt "ClientData" x.clientData, putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DiskContainers" x.diskContainers, putOpt "DryRun" x.dryRun, putOpt "Encrypted" x.encrypted, putOpt "Hypervisor" x.hypervisor, putOpt "KmsKeyId" x.kmsKeyId, putOpt "LicenseSpecifications" x.licenseSpecifications, putOpt "LicenseType" x.licenseType, putOpt "Platform" x.platform, putOpt "RoleName" x.roleName, putOpt "TagSpecifications" x.tagSpecifications, putOpt "UsageOperation" x.usageOperation] + ofValue v := do + let architecture ← v.opt "Architecture" + let bootMode ← v.opt "BootMode" + let clientData ← v.opt "ClientData" + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let diskContainers ← v.opt "DiskContainers" + let dryRun ← v.opt "DryRun" + let encrypted ← v.opt "Encrypted" + let hypervisor ← v.opt "Hypervisor" + let kmsKeyId ← v.opt "KmsKeyId" + let licenseSpecifications ← v.opt "LicenseSpecifications" + let licenseType ← v.opt "LicenseType" + let platform ← v.opt "Platform" + let roleName ← v.opt "RoleName" + let tagSpecifications ← v.opt "TagSpecifications" + let usageOperation ← v.opt "UsageOperation" + return { architecture, bootMode, clientData, clientToken, description, diskContainers, dryRun, encrypted, hypervisor, kmsKeyId, licenseSpecifications, licenseType, platform, roleName, tagSpecifications, usageOperation } + +structure ImportImageResult where + /-- The architecture of the virtual machine. -/ + architecture : Option String := none + /-- A description of the import task. -/ + description : Option String := none + /-- Indicates whether the AMI is encrypted. -/ + encrypted : Option Bool := none + /-- The target hypervisor of the import task. -/ + hypervisor : Option String := none + /-- The ID of the Amazon Machine Image (AMI) created by the import task. -/ + imageId : Option String := none + /-- The task ID of the import image task. -/ + importTaskId : Option String := none + /-- The identifier for the symmetric KMS key that was used to create the encrypted AMI. -/ + kmsKeyId : Option String := none + /-- The ARNs of the license configurations. -/ + licenseSpecifications : Option (List ImportImageLicenseConfigurationResponse) := none + /-- The license type of the virtual machine. -/ + licenseType : Option String := none + /-- The operating system of the virtual machine. -/ + platform : Option String := none + /-- The progress of the task. -/ + progress : Option String := none + /-- Information about the snapshots. -/ + snapshotDetails : Option (List SnapshotDetail) := none + /-- A brief status of the task. -/ + status : Option String := none + /-- A detailed status message of the import task. -/ + statusMessage : Option String := none + /-- Any tags assigned to the import image task. -/ + tags : Option (List Tag) := none + /-- The usage operation value. -/ + usageOperation : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportImageResult where + schema := .struct "ImportImageResult" [({ name := "Architecture", xmlName := some "architecture", queryName := some "Architecture" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "Encrypted", xmlName := some "encrypted", queryName := some "Encrypted" }, .bool), + ({ name := "Hypervisor", xmlName := some "hypervisor", queryName := some "Hypervisor" }, .string), + ({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "ImportTaskId", xmlName := some "importTaskId", queryName := some "ImportTaskId" }, .string), + ({ name := "KmsKeyId", xmlName := some "kmsKeyId", queryName := some "KmsKeyId" }, .string), + ({ name := "LicenseSpecifications", xmlName := some "licenseSpecifications", queryName := some "LicenseSpecifications" }, (.list (Shape.schema ImportImageLicenseConfigurationResponse) "item")), + ({ name := "LicenseType", xmlName := some "licenseType", queryName := some "LicenseType" }, .string), + ({ name := "Platform", xmlName := some "platform", queryName := some "Platform" }, .string), + ({ name := "Progress", xmlName := some "progress", queryName := some "Progress" }, .string), + ({ name := "SnapshotDetails", xmlName := some "snapshotDetailSet", queryName := some "SnapshotDetailSet" }, (.list (Shape.schema SnapshotDetail) "item")), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, .string), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "UsageOperation", xmlName := some "usageOperation", queryName := some "UsageOperation" }, .string)] + toValue x := record [putOpt "Architecture" x.architecture, putOpt "Description" x.description, putOpt "Encrypted" x.encrypted, putOpt "Hypervisor" x.hypervisor, putOpt "ImageId" x.imageId, putOpt "ImportTaskId" x.importTaskId, putOpt "KmsKeyId" x.kmsKeyId, putOpt "LicenseSpecifications" x.licenseSpecifications, putOpt "LicenseType" x.licenseType, putOpt "Platform" x.platform, putOpt "Progress" x.progress, putOpt "SnapshotDetails" x.snapshotDetails, putOpt "Status" x.status, putOpt "StatusMessage" x.statusMessage, putOpt "Tags" x.tags, putOpt "UsageOperation" x.usageOperation] + ofValue v := do + let architecture ← v.opt "Architecture" + let description ← v.opt "Description" + let encrypted ← v.opt "Encrypted" + let hypervisor ← v.opt "Hypervisor" + let imageId ← v.opt "ImageId" + let importTaskId ← v.opt "ImportTaskId" + let kmsKeyId ← v.opt "KmsKeyId" + let licenseSpecifications ← v.opt "LicenseSpecifications" + let licenseType ← v.opt "LicenseType" + let platform ← v.opt "Platform" + let progress ← v.opt "Progress" + let snapshotDetails ← v.opt "SnapshotDetails" + let status ← v.opt "Status" + let statusMessage ← v.opt "StatusMessage" + let tags ← v.opt "Tags" + let usageOperation ← v.opt "UsageOperation" + return { architecture, description, encrypted, hypervisor, imageId, importTaskId, kmsKeyId, licenseSpecifications, licenseType, platform, progress, snapshotDetails, status, statusMessage, tags, usageOperation } + +/-- Describes an import image task. -/ +structure ImportImageTask where + /-- The architecture of the virtual machine. -/ + architecture : Option String := none + /-- The boot mode of the virtual machine. -/ + bootMode : Option BootModeValues := none + /-- A description of the import task. -/ + description : Option String := none + /-- Indicates whether the image is encrypted. -/ + encrypted : Option Bool := none + /-- The target hypervisor for the import task. -/ + hypervisor : Option String := none + /-- The ID of the Amazon Machine Image (AMI) of the imported virtual machine. -/ + imageId : Option String := none + /-- The ID of the import image task. -/ + importTaskId : Option String := none + /-- The identifier for the KMS key that was used to create the encrypted image. -/ + kmsKeyId : Option String := none + /-- The ARNs of the license configurations that are associated with the import image task. -/ + licenseSpecifications : Option (List ImportImageLicenseConfigurationResponse) := none + /-- The license type of the virtual machine. -/ + licenseType : Option String := none + /-- The description string for the import image task. -/ + platform : Option String := none + /-- The percentage of progress of the import image task. -/ + progress : Option String := none + /-- Information about the snapshots. -/ + snapshotDetails : Option (List SnapshotDetail) := none + /-- A brief status for the import image task. -/ + status : Option String := none + /-- A descriptive status message for the import image task. -/ + statusMessage : Option String := none + /-- The tags for the import image task. -/ + tags : Option (List Tag) := none + /-- The usage operation value. -/ + usageOperation : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportImageTask where + schema := .struct "ImportImageTask" [({ name := "Architecture", xmlName := some "architecture", queryName := some "Architecture" }, .string), + ({ name := "BootMode", xmlName := some "bootMode", queryName := some "BootMode" }, (Shape.schema BootModeValues)), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "Encrypted", xmlName := some "encrypted", queryName := some "Encrypted" }, .bool), + ({ name := "Hypervisor", xmlName := some "hypervisor", queryName := some "Hypervisor" }, .string), + ({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "ImportTaskId", xmlName := some "importTaskId", queryName := some "ImportTaskId" }, .string), + ({ name := "KmsKeyId", xmlName := some "kmsKeyId", queryName := some "KmsKeyId" }, .string), + ({ name := "LicenseSpecifications", xmlName := some "licenseSpecifications", queryName := some "LicenseSpecifications" }, (.list (Shape.schema ImportImageLicenseConfigurationResponse) "item")), + ({ name := "LicenseType", xmlName := some "licenseType", queryName := some "LicenseType" }, .string), + ({ name := "Platform", xmlName := some "platform", queryName := some "Platform" }, .string), + ({ name := "Progress", xmlName := some "progress", queryName := some "Progress" }, .string), + ({ name := "SnapshotDetails", xmlName := some "snapshotDetailSet", queryName := some "SnapshotDetailSet" }, (.list (Shape.schema SnapshotDetail) "item")), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, .string), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "UsageOperation", xmlName := some "usageOperation", queryName := some "UsageOperation" }, .string)] + toValue x := record [putOpt "Architecture" x.architecture, putOpt "BootMode" x.bootMode, putOpt "Description" x.description, putOpt "Encrypted" x.encrypted, putOpt "Hypervisor" x.hypervisor, putOpt "ImageId" x.imageId, putOpt "ImportTaskId" x.importTaskId, putOpt "KmsKeyId" x.kmsKeyId, putOpt "LicenseSpecifications" x.licenseSpecifications, putOpt "LicenseType" x.licenseType, putOpt "Platform" x.platform, putOpt "Progress" x.progress, putOpt "SnapshotDetails" x.snapshotDetails, putOpt "Status" x.status, putOpt "StatusMessage" x.statusMessage, putOpt "Tags" x.tags, putOpt "UsageOperation" x.usageOperation] + ofValue v := do + let architecture ← v.opt "Architecture" + let bootMode ← v.opt "BootMode" + let description ← v.opt "Description" + let encrypted ← v.opt "Encrypted" + let hypervisor ← v.opt "Hypervisor" + let imageId ← v.opt "ImageId" + let importTaskId ← v.opt "ImportTaskId" + let kmsKeyId ← v.opt "KmsKeyId" + let licenseSpecifications ← v.opt "LicenseSpecifications" + let licenseType ← v.opt "LicenseType" + let platform ← v.opt "Platform" + let progress ← v.opt "Progress" + let snapshotDetails ← v.opt "SnapshotDetails" + let status ← v.opt "Status" + let statusMessage ← v.opt "StatusMessage" + let tags ← v.opt "Tags" + let usageOperation ← v.opt "UsageOperation" + return { architecture, bootMode, description, encrypted, hypervisor, imageId, importTaskId, kmsKeyId, licenseSpecifications, licenseType, platform, progress, snapshotDetails, status, statusMessage, tags, usageOperation } + +/-- Describes the launch specification for VM import. -/ +structure ImportInstanceLaunchSpecification where + /-- Reserved. -/ + additionalInfo : Option String := none + /-- The architecture of the instance. -/ + architecture : Option ArchitectureValues := none + /-- The security group IDs. -/ + groupIds : Option (List String) := none + /-- The security group names. -/ + groupNames : Option (List String) := none + /-- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown). -/ + instanceInitiatedShutdownBehavior : Option ShutdownBehavior := none + /-- The instance type. -/ + instanceType : Option InstanceType := none + /-- Indicates whether monitoring is enabled. -/ + monitoring : Option Bool := none + /-- The placement information for the instance. -/ + placement : Option Placement := none + /-- [EC2-VPC] An available IP address from the IP address range of the subnet. -/ + privateIpAddress : Option String := none + /-- [EC2-VPC] The ID of the subnet in which to launch the instance. -/ + subnetId : Option String := none + /-- The Base64-encoded user data to make available to the instance. -/ + userData : Option UserData := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportInstanceLaunchSpecification where + schema := .struct "ImportInstanceLaunchSpecification" [({ name := "AdditionalInfo", xmlName := some "additionalInfo", queryName := some "AdditionalInfo" }, .string), + ({ name := "Architecture", xmlName := some "architecture", queryName := some "Architecture" }, (Shape.schema ArchitectureValues)), + ({ name := "GroupIds", xmlName := some "GroupId" }, (.list .string "SecurityGroupId")), + ({ name := "GroupNames", xmlName := some "GroupName" }, (.list .string "SecurityGroup")), + ({ name := "InstanceInitiatedShutdownBehavior", xmlName := some "instanceInitiatedShutdownBehavior", queryName := some "InstanceInitiatedShutdownBehavior" }, (Shape.schema ShutdownBehavior)), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "Monitoring", xmlName := some "monitoring", queryName := some "Monitoring" }, .bool), + ({ name := "Placement", xmlName := some "placement", queryName := some "Placement" }, (Shape.schema Placement)), + ({ name := "PrivateIpAddress", xmlName := some "privateIpAddress", queryName := some "PrivateIpAddress" }, .string), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "UserData", xmlName := some "userData", queryName := some "UserData" }, (Shape.schema UserData))] + toValue x := record [putOpt "AdditionalInfo" x.additionalInfo, putOpt "Architecture" x.architecture, putOpt "GroupIds" x.groupIds, putOpt "GroupNames" x.groupNames, putOpt "InstanceInitiatedShutdownBehavior" x.instanceInitiatedShutdownBehavior, putOpt "InstanceType" x.instanceType, putOpt "Monitoring" x.monitoring, putOpt "Placement" x.placement, putOpt "PrivateIpAddress" x.privateIpAddress, putOpt "SubnetId" x.subnetId, putOpt "UserData" x.userData] + ofValue v := do + let additionalInfo ← v.opt "AdditionalInfo" + let architecture ← v.opt "Architecture" + let groupIds ← v.opt "GroupIds" + let groupNames ← v.opt "GroupNames" + let instanceInitiatedShutdownBehavior ← v.opt "InstanceInitiatedShutdownBehavior" + let instanceType ← v.opt "InstanceType" + let monitoring ← v.opt "Monitoring" + let placement ← v.opt "Placement" + let privateIpAddress ← v.opt "PrivateIpAddress" + let subnetId ← v.opt "SubnetId" + let userData ← v.opt "UserData" + return { additionalInfo, architecture, groupIds, groupNames, instanceInitiatedShutdownBehavior, instanceType, monitoring, placement, privateIpAddress, subnetId, userData } + +/-- Describes an import volume task. -/ +structure ImportInstanceVolumeDetailItem where + /-- The Availability Zone where the resulting instance will reside. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone where the resulting instance will reside. -/ + availabilityZoneId : Option String := none + /-- The number of bytes converted so far. -/ + bytesConverted : Option Int := none + /-- A description of the task. -/ + description : Option String := none + /-- The image. -/ + image : Option DiskImageDescription := none + /-- The status of the import of this particular disk image. -/ + status : Option String := none + /-- The status information or errors related to the disk image. -/ + statusMessage : Option String := none + /-- The volume. -/ + volume : Option DiskImageVolumeDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportInstanceVolumeDetailItem where + schema := .struct "ImportInstanceVolumeDetailItem" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "BytesConverted", xmlName := some "bytesConverted", queryName := some "BytesConverted" }, .int), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "Image", xmlName := some "image", queryName := some "Image" }, (Shape.schema DiskImageDescription)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, .string), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string), + ({ name := "Volume", xmlName := some "volume", queryName := some "Volume" }, (Shape.schema DiskImageVolumeDescription))] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "BytesConverted" x.bytesConverted, putOpt "Description" x.description, putOpt "Image" x.image, putOpt "Status" x.status, putOpt "StatusMessage" x.statusMessage, putOpt "Volume" x.volume] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let bytesConverted ← v.opt "BytesConverted" + let description ← v.opt "Description" + let image ← v.opt "Image" + let status ← v.opt "Status" + let statusMessage ← v.opt "StatusMessage" + let volume ← v.opt "Volume" + return { availabilityZone, availabilityZoneId, bytesConverted, description, image, status, statusMessage, volume } + +structure ImportKeyPairRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- A unique name for the key pair. -/ + keyName : String + /-- The public key. -/ + publicKeyMaterial : Blob + /-- The tags to apply to the imported key pair. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportKeyPairRequest where + schema := .struct "ImportKeyPairRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "KeyName", required := true, xmlName := some "keyName", queryName := some "KeyName" }, .string), + ({ name := "PublicKeyMaterial", required := true, xmlName := some "publicKeyMaterial", queryName := some "PublicKeyMaterial" }, .blob), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "KeyName" x.keyName, put "PublicKeyMaterial" x.publicKeyMaterial, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let dryRun ← v.opt "DryRun" + let keyName ← v.req "KeyName" + let publicKeyMaterial ← v.req "PublicKeyMaterial" + let tagSpecifications ← v.opt "TagSpecifications" + return { dryRun, keyName, publicKeyMaterial, tagSpecifications } + +structure ImportSnapshotRequest where + /-- The client-specific data. -/ + clientData : Option ClientData := none + /-- Token to enable idempotency for VM import requests. -/ + clientToken : Option String := none + /-- The description string for the import snapshot task. -/ + description : Option String := none + /-- Information about the disk container. -/ + diskContainer : Option SnapshotDiskContainer := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Specifies whether the destination snapshot of the imported image should be encrypted. -/ + encrypted : Option Bool := none + /-- An identifier for the symmetric KMS key to use when creating the encrypted snapshot. -/ + kmsKeyId : Option String := none + /-- The name of the role to use when not using the default role, 'vmimport'. -/ + roleName : Option String := none + /-- The tags to apply to the import snapshot task during creation. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportSnapshotRequest where + schema := .struct "ImportSnapshotRequest" [({ name := "ClientData" }, (Shape.schema ClientData)), + ({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DiskContainer" }, (Shape.schema SnapshotDiskContainer)), + ({ name := "DryRun" }, .bool), + ({ name := "Encrypted" }, .bool), + ({ name := "KmsKeyId" }, .string), + ({ name := "RoleName" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientData" x.clientData, putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DiskContainer" x.diskContainer, putOpt "DryRun" x.dryRun, putOpt "Encrypted" x.encrypted, putOpt "KmsKeyId" x.kmsKeyId, putOpt "RoleName" x.roleName, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientData ← v.opt "ClientData" + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let diskContainer ← v.opt "DiskContainer" + let dryRun ← v.opt "DryRun" + let encrypted ← v.opt "Encrypted" + let kmsKeyId ← v.opt "KmsKeyId" + let roleName ← v.opt "RoleName" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientData, clientToken, description, diskContainer, dryRun, encrypted, kmsKeyId, roleName, tagSpecifications } + +structure ImportSnapshotResult where + /-- A description of the import snapshot task. -/ + description : Option String := none + /-- The ID of the import snapshot task. -/ + importTaskId : Option String := none + /-- Information about the import snapshot task. -/ + snapshotTaskDetail : Option SnapshotTaskDetail := none + /-- Any tags assigned to the import snapshot task. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportSnapshotResult where + schema := .struct "ImportSnapshotResult" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "ImportTaskId", xmlName := some "importTaskId", queryName := some "ImportTaskId" }, .string), + ({ name := "SnapshotTaskDetail", xmlName := some "snapshotTaskDetail", queryName := some "SnapshotTaskDetail" }, (Shape.schema SnapshotTaskDetail)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "Description" x.description, putOpt "ImportTaskId" x.importTaskId, putOpt "SnapshotTaskDetail" x.snapshotTaskDetail, putOpt "Tags" x.tags] + ofValue v := do + let description ← v.opt "Description" + let importTaskId ← v.opt "ImportTaskId" + let snapshotTaskDetail ← v.opt "SnapshotTaskDetail" + let tags ← v.opt "Tags" + return { description, importTaskId, snapshotTaskDetail, tags } + +/-- Describes an import snapshot task. -/ +structure ImportSnapshotTask where + /-- A description of the import snapshot task. -/ + description : Option String := none + /-- The ID of the import snapshot task. -/ + importTaskId : Option String := none + /-- Describes an import snapshot task. -/ + snapshotTaskDetail : Option SnapshotTaskDetail := none + /-- The tags for the import snapshot task. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportSnapshotTask where + schema := .struct "ImportSnapshotTask" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "ImportTaskId", xmlName := some "importTaskId", queryName := some "ImportTaskId" }, .string), + ({ name := "SnapshotTaskDetail", xmlName := some "snapshotTaskDetail", queryName := some "SnapshotTaskDetail" }, (Shape.schema SnapshotTaskDetail)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "Description" x.description, putOpt "ImportTaskId" x.importTaskId, putOpt "SnapshotTaskDetail" x.snapshotTaskDetail, putOpt "Tags" x.tags] + ofValue v := do + let description ← v.opt "Description" + let importTaskId ← v.opt "ImportTaskId" + let snapshotTaskDetail ← v.opt "SnapshotTaskDetail" + let tags ← v.opt "Tags" + return { description, importTaskId, snapshotTaskDetail, tags } + +structure ImportVolumeRequest where + /-- The Availability Zone for the resulting EBS volume. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone for the resulting EBS volume. -/ + availabilityZoneId : Option String := none + /-- A description of the volume. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The disk image. -/ + image : DiskImageDetail + /-- The volume size. -/ + volume : VolumeDetail +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportVolumeRequest where + schema := .struct "ImportVolumeRequest" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Image", required := true, xmlName := some "image", queryName := some "Image" }, (Shape.schema DiskImageDetail)), + ({ name := "Volume", required := true, xmlName := some "volume", queryName := some "Volume" }, (Shape.schema VolumeDetail))] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, put "Image" x.image, put "Volume" x.volume] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let image ← v.req "Image" + let volume ← v.req "Volume" + return { availabilityZone, availabilityZoneId, description, dryRun, image, volume } + +/-- Describes an import volume task. -/ +structure ImportVolumeTaskDetails where + /-- The Availability Zone where the resulting volume will reside. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone where the resulting volume will reside. -/ + availabilityZoneId : Option String := none + /-- The number of bytes converted so far. -/ + bytesConverted : Option Int := none + /-- The description you provided when starting the import volume task. -/ + description : Option String := none + /-- The image. -/ + image : Option DiskImageDescription := none + /-- The volume. -/ + volume : Option DiskImageVolumeDescription := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportVolumeTaskDetails where + schema := .struct "ImportVolumeTaskDetails" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "BytesConverted", xmlName := some "bytesConverted", queryName := some "BytesConverted" }, .int), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "Image", xmlName := some "image", queryName := some "Image" }, (Shape.schema DiskImageDescription)), + ({ name := "Volume", xmlName := some "volume", queryName := some "Volume" }, (Shape.schema DiskImageVolumeDescription))] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "BytesConverted" x.bytesConverted, putOpt "Description" x.description, putOpt "Image" x.image, putOpt "Volume" x.volume] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let bytesConverted ← v.opt "BytesConverted" + let description ← v.opt "Description" + let image ← v.opt "Image" + let volume ← v.opt "Volume" + return { availabilityZone, availabilityZoneId, bytesConverted, description, image, volume } + +/-- Amazon Elastic Inference is no longer available. -/ +structure InferenceAcceleratorInfo where + /-- Describes the Inference accelerators for the instance type. -/ + accelerators : Option (List InferenceDeviceInfo) := none + /-- The total size of the memory for the inference accelerators for the instance type, in MiB. -/ + totalInferenceMemoryInMiB : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InferenceAcceleratorInfo where + schema := .struct "InferenceAcceleratorInfo" [({ name := "Accelerators", xmlName := some "accelerators", queryName := some "Accelerators" }, (.list (Shape.schema InferenceDeviceInfo) "member")), + ({ name := "TotalInferenceMemoryInMiB", xmlName := some "totalInferenceMemoryInMiB", queryName := some "TotalInferenceMemoryInMiB" }, .int)] + toValue x := record [putOpt "Accelerators" x.accelerators, putOpt "TotalInferenceMemoryInMiB" x.totalInferenceMemoryInMiB] + ofValue v := do + let accelerators ← v.opt "Accelerators" + let totalInferenceMemoryInMiB ← v.opt "TotalInferenceMemoryInMiB" + return { accelerators, totalInferenceMemoryInMiB } + +/-- Describes a block device mapping. -/ +structure InstanceBlockDeviceMapping where + /-- The device name. -/ + deviceName : Option String := none + /-- Parameters used to automatically set up EBS volumes when the instance is launched. -/ + ebs : Option EbsInstanceBlockDevice := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceBlockDeviceMapping where + schema := .struct "InstanceBlockDeviceMapping" [({ name := "DeviceName", xmlName := some "deviceName", queryName := some "DeviceName" }, .string), + ({ name := "Ebs", xmlName := some "ebs", queryName := some "Ebs" }, (Shape.schema EbsInstanceBlockDevice))] + toValue x := record [putOpt "DeviceName" x.deviceName, putOpt "Ebs" x.ebs] + ofValue v := do + let deviceName ← v.opt "DeviceName" + let ebs ← v.opt "Ebs" + return { deviceName, ebs } + +/-- The event window. -/ +structure InstanceEventWindow where + /-- One or more targets associated with the event window. -/ + associationTarget : Option InstanceEventWindowAssociationTarget := none + /-- The cron expression defined for the event window. -/ + cronExpression : Option String := none + /-- The ID of the event window. -/ + instanceEventWindowId : Option String := none + /-- The name of the event window. -/ + name : Option String := none + /-- The current state of the event window. -/ + state : Option InstanceEventWindowState := none + /-- The instance tags associated with the event window. -/ + tags : Option (List Tag) := none + /-- One or more time ranges defined for the event window. -/ + timeRanges : Option (List InstanceEventWindowTimeRange) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceEventWindow where + schema := .struct "InstanceEventWindow" [({ name := "AssociationTarget", xmlName := some "associationTarget", queryName := some "AssociationTarget" }, (Shape.schema InstanceEventWindowAssociationTarget)), + ({ name := "CronExpression", xmlName := some "cronExpression", queryName := some "CronExpression" }, .string), + ({ name := "InstanceEventWindowId", xmlName := some "instanceEventWindowId", queryName := some "InstanceEventWindowId" }, .string), + ({ name := "Name", xmlName := some "name", queryName := some "Name" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema InstanceEventWindowState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TimeRanges", xmlName := some "timeRangeSet", queryName := some "TimeRangeSet" }, (.list (Shape.schema InstanceEventWindowTimeRange) "item"))] + toValue x := record [putOpt "AssociationTarget" x.associationTarget, putOpt "CronExpression" x.cronExpression, putOpt "InstanceEventWindowId" x.instanceEventWindowId, putOpt "Name" x.name, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "TimeRanges" x.timeRanges] + ofValue v := do + let associationTarget ← v.opt "AssociationTarget" + let cronExpression ← v.opt "CronExpression" + let instanceEventWindowId ← v.opt "InstanceEventWindowId" + let name ← v.opt "Name" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let timeRanges ← v.opt "TimeRanges" + return { associationTarget, cronExpression, instanceEventWindowId, name, state, tags, timeRanges } + +/-- Describes the cost allocation policy document for EC2 instances. -/ +structure InstanceFlexCostAllocationPolicyDocument where + /-- The CIDR range mappings to use for cost allocation. -/ + cidrRangeSpecifications : Option FlexCostAllocationCidrRangeSpecifications := none + /-- The cost dimensions to report. -/ + dimensions : (List FlexCostAllocationCostDimension) + /-- The resource granularity level at which networking costs are allocated. -/ + reportingGranularity : (List FlexCostAllocationReportingGranularity) +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceFlexCostAllocationPolicyDocument where + schema := .struct "InstanceFlexCostAllocationPolicyDocument" [({ name := "CidrRangeSpecifications" }, (Shape.schema FlexCostAllocationCidrRangeSpecifications)), + ({ name := "Dimensions", required := true }, (.list (Shape.schema FlexCostAllocationCostDimension) "item")), + ({ name := "ReportingGranularity", required := true }, (.list (Shape.schema FlexCostAllocationReportingGranularity) "item"))] + toValue x := record [putOpt "CidrRangeSpecifications" x.cidrRangeSpecifications, put "Dimensions" x.dimensions, put "ReportingGranularity" x.reportingGranularity] + ofValue v := do + let cidrRangeSpecifications ← v.opt "CidrRangeSpecifications" + let dimensions ← v.req "Dimensions" + let reportingGranularity ← v.req "ReportingGranularity" + return { cidrRangeSpecifications, dimensions, reportingGranularity } + +/-- Information about the instance and the AMI used to launch the instance. -/ +structure InstanceImageMetadata where + /-- The Availability Zone or Local Zone of the instance. -/ + availabilityZone : Option String := none + /-- Information about the AMI used to launch the instance. -/ + imageMetadata : Option ImageMetadata := none + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- The instance type. -/ + instanceType : Option InstanceType := none + /-- The time the instance was launched. -/ + launchTime : Option Timestamp := none + /-- The entity that manages the instance. -/ + operator : Option OperatorResponse := none + /-- The ID of the Amazon Web Services account that owns the instance. -/ + ownerId : Option String := none + /-- The current state of the instance. -/ + state : Option InstanceState := none + /-- Any tags assigned to the instance. -/ + tags : Option (List Tag) := none + /-- The ID of the Availability Zone or Local Zone of the instance. -/ + zoneId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceImageMetadata where + schema := .struct "InstanceImageMetadata" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "ImageMetadata", xmlName := some "imageMetadata", queryName := some "ImageMetadata" }, (Shape.schema ImageMetadata)), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "LaunchTime", xmlName := some "launchTime", queryName := some "LaunchTime" }, (.time none)), + ({ name := "Operator", xmlName := some "operator", queryName := some "Operator" }, (Shape.schema OperatorResponse)), + ({ name := "OwnerId", xmlName := some "instanceOwnerId", queryName := some "InstanceOwnerId" }, .string), + ({ name := "State", xmlName := some "instanceState", queryName := some "InstanceState" }, (Shape.schema InstanceState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "ZoneId", xmlName := some "zoneId", queryName := some "ZoneId" }, .string)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "ImageMetadata" x.imageMetadata, putOpt "InstanceId" x.instanceId, putOpt "InstanceType" x.instanceType, putOpt "LaunchTime" x.launchTime, putOpt "Operator" x.operator, putOpt "OwnerId" x.ownerId, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "ZoneId" x.zoneId] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let imageMetadata ← v.opt "ImageMetadata" + let instanceId ← v.opt "InstanceId" + let instanceType ← v.opt "InstanceType" + let launchTime ← v.opt "LaunchTime" + let operator ← v.opt "Operator" + let ownerId ← v.opt "OwnerId" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let zoneId ← v.opt "ZoneId" + return { availabilityZone, imageMetadata, instanceId, instanceType, launchTime, operator, ownerId, state, tags, zoneId } + +/-- Describes the market (purchasing) option for the instances. -/ +structure InstanceMarketOptionsRequest where + /-- The market type. -/ + marketType : Option MarketType := none + /-- The options for Spot Instances. -/ + spotOptions : Option SpotMarketOptions := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceMarketOptionsRequest where + schema := .struct "InstanceMarketOptionsRequest" [({ name := "MarketType" }, (Shape.schema MarketType)), + ({ name := "SpotOptions" }, (Shape.schema SpotMarketOptions))] + toValue x := record [putOpt "MarketType" x.marketType, putOpt "SpotOptions" x.spotOptions] + ofValue v := do + let marketType ← v.opt "MarketType" + let spotOptions ← v.opt "SpotOptions" + return { marketType, spotOptions } + +/-- Describes the monitoring of an instance. -/ +structure InstanceMonitoring where + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- The monitoring for the instance. -/ + monitoring : Option Monitoring := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceMonitoring where + schema := .struct "InstanceMonitoring" [({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "Monitoring", xmlName := some "monitoring", queryName := some "Monitoring" }, (Shape.schema Monitoring))] + toValue x := record [putOpt "InstanceId" x.instanceId, putOpt "Monitoring" x.monitoring] + ofValue v := do + let instanceId ← v.opt "InstanceId" + let monitoring ← v.opt "Monitoring" + return { instanceId, monitoring } + +/-- Describes a network interface attachment. -/ +structure InstanceNetworkInterfaceAttachment where + /-- The time stamp when the attachment initiated. -/ + attachTime : Option Timestamp := none + /-- The ID of the network interface attachment. -/ + attachmentId : Option String := none + /-- Indicates whether the network interface is deleted when the instance is terminated. -/ + deleteOnTermination : Option Bool := none + /-- The index of the device on the instance for the network interface attachment. -/ + deviceIndex : Option Int := none + /-- The number of ENA queues created with the instance. -/ + enaQueueCount : Option Int := none + /-- Contains the ENA Express settings for the network interface that's attached to the instance. -/ + enaSrdSpecification : Option InstanceAttachmentEnaSrdSpecification := none + /-- The index of the network card. -/ + networkCardIndex : Option Int := none + /-- The attachment state. -/ + status : Option AttachmentStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceNetworkInterfaceAttachment where + schema := .struct "InstanceNetworkInterfaceAttachment" [({ name := "AttachTime", xmlName := some "attachTime", queryName := some "AttachTime" }, (.time none)), + ({ name := "AttachmentId", xmlName := some "attachmentId", queryName := some "AttachmentId" }, .string), + ({ name := "DeleteOnTermination", xmlName := some "deleteOnTermination", queryName := some "DeleteOnTermination" }, .bool), + ({ name := "DeviceIndex", xmlName := some "deviceIndex", queryName := some "DeviceIndex" }, .int), + ({ name := "EnaQueueCount", xmlName := some "enaQueueCount", queryName := some "EnaQueueCount" }, .int), + ({ name := "EnaSrdSpecification", xmlName := some "enaSrdSpecification", queryName := some "EnaSrdSpecification" }, (Shape.schema InstanceAttachmentEnaSrdSpecification)), + ({ name := "NetworkCardIndex", xmlName := some "networkCardIndex", queryName := some "NetworkCardIndex" }, .int), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema AttachmentStatus))] + toValue x := record [putOpt "AttachTime" x.attachTime, putOpt "AttachmentId" x.attachmentId, putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "DeviceIndex" x.deviceIndex, putOpt "EnaQueueCount" x.enaQueueCount, putOpt "EnaSrdSpecification" x.enaSrdSpecification, putOpt "NetworkCardIndex" x.networkCardIndex, putOpt "Status" x.status] + ofValue v := do + let attachTime ← v.opt "AttachTime" + let attachmentId ← v.opt "AttachmentId" + let deleteOnTermination ← v.opt "DeleteOnTermination" + let deviceIndex ← v.opt "DeviceIndex" + let enaQueueCount ← v.opt "EnaQueueCount" + let enaSrdSpecification ← v.opt "EnaSrdSpecification" + let networkCardIndex ← v.opt "NetworkCardIndex" + let status ← v.opt "Status" + return { attachTime, attachmentId, deleteOnTermination, deviceIndex, enaQueueCount, enaSrdSpecification, networkCardIndex, status } + +/-- Describes a network interface. -/ +structure InstanceNetworkInterfaceSpecification where + /-- Indicates whether to assign a carrier IP address to the network interface. -/ + associateCarrierIpAddress : Option Bool := none + /-- Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. -/ + associatePublicIpAddress : Option Bool := none + /-- A security group connection tracking specification that enables you to set the timeout for connection tracking on an Elastic network interface. -/ + connectionTrackingSpecification : Option ConnectionTrackingSpecificationRequest := none + /-- If set to true , the interface is deleted when the instance is terminated. -/ + deleteOnTermination : Option Bool := none + /-- The description of the network interface. -/ + description : Option String := none + /-- The position of the network interface in the attachment order. -/ + deviceIndex : Option Int := none + /-- The number of ENA queues to be created with the instance. -/ + enaQueueCount : Option Int := none + /-- Specifies the ENA Express settings for the network interface that's attached to the instance. -/ + enaSrdSpecification : Option EnaSrdSpecificationRequest := none + /-- The IDs of the security groups for the network interface. -/ + groups : Option (List String) := none + /-- The type of network interface. -/ + interfaceType : Option String := none + /-- The number of IPv4 delegated prefixes to be automatically assigned to the network interface. -/ + ipv4PrefixCount : Option Int := none + /-- The IPv4 delegated prefixes to be assigned to the network interface. -/ + ipv4Prefixes : Option (List Ipv4PrefixSpecificationRequest) := none + /-- A number of IPv6 addresses to assign to the network interface. -/ + ipv6AddressCount : Option Int := none + /-- The IPv6 addresses to assign to the network interface. -/ + ipv6Addresses : Option (List InstanceIpv6Address) := none + /-- The number of IPv6 delegated prefixes to be automatically assigned to the network interface. -/ + ipv6PrefixCount : Option Int := none + /-- The IPv6 delegated prefixes to be assigned to the network interface. -/ + ipv6Prefixes : Option (List Ipv6PrefixSpecificationRequest) := none + /-- The index of the network card. -/ + networkCardIndex : Option Int := none + /-- The ID of the network interface. -/ + networkInterfaceId : Option String := none + /-- The primary IPv6 address of the network interface. -/ + primaryIpv6 : Option Bool := none + /-- The private IPv4 address of the network interface. -/ + privateIpAddress : Option String := none + /-- The private IPv4 addresses to assign to the network interface. -/ + privateIpAddresses : Option (List PrivateIpAddressSpecification) := none + /-- The number of secondary private IPv4 addresses. -/ + secondaryPrivateIpAddressCount : Option Int := none + /-- The ID of the subnet associated with the network interface. -/ + subnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceNetworkInterfaceSpecification where + schema := .struct "InstanceNetworkInterfaceSpecification" [({ name := "AssociateCarrierIpAddress" }, .bool), + ({ name := "AssociatePublicIpAddress", xmlName := some "associatePublicIpAddress", queryName := some "AssociatePublicIpAddress" }, .bool), + ({ name := "ConnectionTrackingSpecification" }, (Shape.schema ConnectionTrackingSpecificationRequest)), + ({ name := "DeleteOnTermination", xmlName := some "deleteOnTermination", queryName := some "DeleteOnTermination" }, .bool), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "DeviceIndex", xmlName := some "deviceIndex", queryName := some "DeviceIndex" }, .int), + ({ name := "EnaQueueCount" }, .int), + ({ name := "EnaSrdSpecification" }, (Shape.schema EnaSrdSpecificationRequest)), + ({ name := "Groups", xmlName := some "SecurityGroupId" }, (.list .string "SecurityGroupId")), + ({ name := "InterfaceType" }, .string), + ({ name := "Ipv4PrefixCount" }, .int), + ({ name := "Ipv4Prefixes", xmlName := some "Ipv4Prefix" }, (.list (Shape.schema Ipv4PrefixSpecificationRequest) "item")), + ({ name := "Ipv6AddressCount", xmlName := some "ipv6AddressCount", queryName := some "Ipv6AddressCount" }, .int), + ({ name := "Ipv6Addresses", xmlName := some "ipv6AddressesSet", queryName := some "Ipv6Addresses" }, (.list (Shape.schema InstanceIpv6Address) "item")), + ({ name := "Ipv6PrefixCount" }, .int), + ({ name := "Ipv6Prefixes", xmlName := some "Ipv6Prefix" }, (.list (Shape.schema Ipv6PrefixSpecificationRequest) "item")), + ({ name := "NetworkCardIndex" }, .int), + ({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "PrimaryIpv6" }, .bool), + ({ name := "PrivateIpAddress", xmlName := some "privateIpAddress", queryName := some "PrivateIpAddress" }, .string), + ({ name := "PrivateIpAddresses", xmlName := some "privateIpAddressesSet", queryName := some "PrivateIpAddresses" }, (.list (Shape.schema PrivateIpAddressSpecification) "item")), + ({ name := "SecondaryPrivateIpAddressCount", xmlName := some "secondaryPrivateIpAddressCount", queryName := some "SecondaryPrivateIpAddressCount" }, .int), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string)] + toValue x := record [putOpt "AssociateCarrierIpAddress" x.associateCarrierIpAddress, putOpt "AssociatePublicIpAddress" x.associatePublicIpAddress, putOpt "ConnectionTrackingSpecification" x.connectionTrackingSpecification, putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "Description" x.description, putOpt "DeviceIndex" x.deviceIndex, putOpt "EnaQueueCount" x.enaQueueCount, putOpt "EnaSrdSpecification" x.enaSrdSpecification, putOpt "Groups" x.groups, putOpt "InterfaceType" x.interfaceType, putOpt "Ipv4PrefixCount" x.ipv4PrefixCount, putOpt "Ipv4Prefixes" x.ipv4Prefixes, putOpt "Ipv6AddressCount" x.ipv6AddressCount, putOpt "Ipv6Addresses" x.ipv6Addresses, putOpt "Ipv6PrefixCount" x.ipv6PrefixCount, putOpt "Ipv6Prefixes" x.ipv6Prefixes, putOpt "NetworkCardIndex" x.networkCardIndex, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "PrimaryIpv6" x.primaryIpv6, putOpt "PrivateIpAddress" x.privateIpAddress, putOpt "PrivateIpAddresses" x.privateIpAddresses, putOpt "SecondaryPrivateIpAddressCount" x.secondaryPrivateIpAddressCount, putOpt "SubnetId" x.subnetId] + ofValue v := do + let associateCarrierIpAddress ← v.opt "AssociateCarrierIpAddress" + let associatePublicIpAddress ← v.opt "AssociatePublicIpAddress" + let connectionTrackingSpecification ← v.opt "ConnectionTrackingSpecification" + let deleteOnTermination ← v.opt "DeleteOnTermination" + let description ← v.opt "Description" + let deviceIndex ← v.opt "DeviceIndex" + let enaQueueCount ← v.opt "EnaQueueCount" + let enaSrdSpecification ← v.opt "EnaSrdSpecification" + let groups ← v.opt "Groups" + let interfaceType ← v.opt "InterfaceType" + let ipv4PrefixCount ← v.opt "Ipv4PrefixCount" + let ipv4Prefixes ← v.opt "Ipv4Prefixes" + let ipv6AddressCount ← v.opt "Ipv6AddressCount" + let ipv6Addresses ← v.opt "Ipv6Addresses" + let ipv6PrefixCount ← v.opt "Ipv6PrefixCount" + let ipv6Prefixes ← v.opt "Ipv6Prefixes" + let networkCardIndex ← v.opt "NetworkCardIndex" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let primaryIpv6 ← v.opt "PrimaryIpv6" + let privateIpAddress ← v.opt "PrivateIpAddress" + let privateIpAddresses ← v.opt "PrivateIpAddresses" + let secondaryPrivateIpAddressCount ← v.opt "SecondaryPrivateIpAddressCount" + let subnetId ← v.opt "SubnetId" + return { associateCarrierIpAddress, associatePublicIpAddress, connectionTrackingSpecification, deleteOnTermination, description, deviceIndex, enaQueueCount, enaSrdSpecification, groups, interfaceType, ipv4PrefixCount, ipv4Prefixes, ipv6AddressCount, ipv6Addresses, ipv6PrefixCount, ipv6Prefixes, networkCardIndex, networkInterfaceId, primaryIpv6, privateIpAddress, privateIpAddresses, secondaryPrivateIpAddressCount, subnetId } + +/-- Describes a secondary interface attached to an instance. -/ +structure InstanceSecondaryInterface where + /-- The attachment information for the secondary interface. -/ + attachment : Option InstanceSecondaryInterfaceAttachment := none + /-- The type of secondary interface. -/ + interfaceType : Option SecondaryInterfaceType := none + /-- The MAC address of the secondary interface. -/ + macAddress : Option String := none + /-- The Amazon Web Services account ID of the owner of the secondary interface. -/ + ownerId : Option String := none + /-- The private IPv4 addresses associated with the secondary interface. -/ + privateIpAddresses : Option (List InstanceSecondaryInterfacePrivateIpAddress) := none + /-- The ID of the secondary interface. -/ + secondaryInterfaceId : Option String := none + /-- The ID of the secondary network. -/ + secondaryNetworkId : Option String := none + /-- The ID of the secondary subnet. -/ + secondarySubnetId : Option String := none + /-- Indicates whether source/destination checking is enabled. -/ + sourceDestCheck : Option Bool := none + /-- The status of the secondary interface. -/ + status : Option SecondaryInterfaceStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceSecondaryInterface where + schema := .struct "InstanceSecondaryInterface" [({ name := "Attachment", xmlName := some "attachment", queryName := some "Attachment" }, (Shape.schema InstanceSecondaryInterfaceAttachment)), + ({ name := "InterfaceType", xmlName := some "interfaceType", queryName := some "InterfaceType" }, (Shape.schema SecondaryInterfaceType)), + ({ name := "MacAddress", xmlName := some "macAddress", queryName := some "MacAddress" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "PrivateIpAddresses", xmlName := some "privateIpAddressSet", queryName := some "PrivateIpAddressSet" }, (.list (Shape.schema InstanceSecondaryInterfacePrivateIpAddress) "item")), + ({ name := "SecondaryInterfaceId", xmlName := some "secondaryInterfaceId", queryName := some "SecondaryInterfaceId" }, .string), + ({ name := "SecondaryNetworkId", xmlName := some "secondaryNetworkId", queryName := some "SecondaryNetworkId" }, .string), + ({ name := "SecondarySubnetId", xmlName := some "secondarySubnetId", queryName := some "SecondarySubnetId" }, .string), + ({ name := "SourceDestCheck", xmlName := some "sourceDestCheck", queryName := some "SourceDestCheck" }, .bool), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema SecondaryInterfaceStatus))] + toValue x := record [putOpt "Attachment" x.attachment, putOpt "InterfaceType" x.interfaceType, putOpt "MacAddress" x.macAddress, putOpt "OwnerId" x.ownerId, putOpt "PrivateIpAddresses" x.privateIpAddresses, putOpt "SecondaryInterfaceId" x.secondaryInterfaceId, putOpt "SecondaryNetworkId" x.secondaryNetworkId, putOpt "SecondarySubnetId" x.secondarySubnetId, putOpt "SourceDestCheck" x.sourceDestCheck, putOpt "Status" x.status] + ofValue v := do + let attachment ← v.opt "Attachment" + let interfaceType ← v.opt "InterfaceType" + let macAddress ← v.opt "MacAddress" + let ownerId ← v.opt "OwnerId" + let privateIpAddresses ← v.opt "PrivateIpAddresses" + let secondaryInterfaceId ← v.opt "SecondaryInterfaceId" + let secondaryNetworkId ← v.opt "SecondaryNetworkId" + let secondarySubnetId ← v.opt "SecondarySubnetId" + let sourceDestCheck ← v.opt "SourceDestCheck" + let status ← v.opt "Status" + return { attachment, interfaceType, macAddress, ownerId, privateIpAddresses, secondaryInterfaceId, secondaryNetworkId, secondarySubnetId, sourceDestCheck, status } + +/-- Describes an instance state change. -/ +structure InstanceStateChange where + /-- The current state of the instance. -/ + currentState : Option InstanceState := none + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- The previous state of the instance. -/ + previousState : Option InstanceState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceStateChange where + schema := .struct "InstanceStateChange" [({ name := "CurrentState", xmlName := some "currentState", queryName := some "CurrentState" }, (Shape.schema InstanceState)), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "PreviousState", xmlName := some "previousState", queryName := some "PreviousState" }, (Shape.schema InstanceState))] + toValue x := record [putOpt "CurrentState" x.currentState, putOpt "InstanceId" x.instanceId, putOpt "PreviousState" x.previousState] + ofValue v := do + let currentState ← v.opt "CurrentState" + let instanceId ← v.opt "InstanceId" + let previousState ← v.opt "PreviousState" + return { currentState, instanceId, previousState } + +/-- Describes the status of an instance. -/ +structure InstanceStatusSummary where + /-- The system instance health or application instance health. -/ + details : Option (List InstanceStatusDetails) := none + /-- The status. -/ + status : Option SummaryStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceStatusSummary where + schema := .struct "InstanceStatusSummary" [({ name := "Details", xmlName := some "details", queryName := some "Details" }, (.list (Shape.schema InstanceStatusDetails) "item")), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema SummaryStatus))] + toValue x := record [putOpt "Details" x.details, putOpt "Status" x.status] + ofValue v := do + let details ← v.opt "Details" + let status ← v.opt "Status" + return { details, status } + +/-- Describes the instance store features that are supported by the instance type. -/ +structure InstanceStorageInfo where + /-- Describes the disks that are available for the instance type. -/ + disks : Option (List DiskInfo) := none + /-- Indicates whether data is encrypted at rest. -/ + encryptionSupport : Option InstanceStorageEncryptionSupport := none + /-- Indicates whether non-volatile memory express (NVMe) is supported. -/ + nvmeSupport : Option EphemeralNvmeSupport := none + /-- The total size of the disks, in GB. -/ + totalSizeInGB : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceStorageInfo where + schema := .struct "InstanceStorageInfo" [({ name := "Disks", xmlName := some "disks", queryName := some "Disks" }, (.list (Shape.schema DiskInfo) "item")), + ({ name := "EncryptionSupport", xmlName := some "encryptionSupport", queryName := some "EncryptionSupport" }, (Shape.schema InstanceStorageEncryptionSupport)), + ({ name := "NvmeSupport", xmlName := some "nvmeSupport", queryName := some "NvmeSupport" }, (Shape.schema EphemeralNvmeSupport)), + ({ name := "TotalSizeInGB", xmlName := some "totalSizeInGB", queryName := some "TotalSizeInGB" }, .int)] + toValue x := record [putOpt "Disks" x.disks, putOpt "EncryptionSupport" x.encryptionSupport, putOpt "NvmeSupport" x.nvmeSupport, putOpt "TotalSizeInGB" x.totalSizeInGB] + ofValue v := do + let disks ← v.opt "Disks" + let encryptionSupport ← v.opt "EncryptionSupport" + let nvmeSupport ← v.opt "NvmeSupport" + let totalSizeInGB ← v.opt "TotalSizeInGB" + return { disks, encryptionSupport, nvmeSupport, totalSizeInGB } + +/-- Describes service integrations with VPC Flow logs. -/ +structure IntegrateServices where + /-- Information about the integration with Amazon Athena. -/ + athenaIntegrations : Option (List AthenaIntegration) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IntegrateServices where + schema := .struct "IntegrateServices" [({ name := "AthenaIntegrations", xmlName := some "AthenaIntegration" }, (.list (Shape.schema AthenaIntegration) "item"))] + toValue x := record [putOpt "AthenaIntegrations" x.athenaIntegrations] + ofValue v := do + let athenaIntegrations ← v.opt "AthenaIntegrations" + return { athenaIntegrations } + +/-- Describes an internet gateway. -/ +structure InternetGateway where + /-- Any VPCs attached to the internet gateway. -/ + attachments : Option (List InternetGatewayAttachment) := none + /-- The ID of the internet gateway. -/ + internetGatewayId : Option String := none + /-- The ID of the Amazon Web Services account that owns the internet gateway. -/ + ownerId : Option String := none + /-- Any tags assigned to the internet gateway. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InternetGateway where + schema := .struct "InternetGateway" [({ name := "Attachments", xmlName := some "attachmentSet", queryName := some "AttachmentSet" }, (.list (Shape.schema InternetGatewayAttachment) "item")), + ({ name := "InternetGatewayId", xmlName := some "internetGatewayId", queryName := some "InternetGatewayId" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "Attachments" x.attachments, putOpt "InternetGatewayId" x.internetGatewayId, putOpt "OwnerId" x.ownerId, putOpt "Tags" x.tags] + ofValue v := do + let attachments ← v.opt "Attachments" + let internetGatewayId ← v.opt "InternetGatewayId" + let ownerId ← v.opt "OwnerId" + let tags ← v.opt "Tags" + return { attachments, internetGatewayId, ownerId, tags } + +/-- An IPAM discovered account. -/ +structure IpamDiscoveredAccount where + /-- The account ID. -/ + accountId : Option String := none + /-- The Amazon Web Services Region that the account information is returned from. -/ + discoveryRegion : Option String := none + /-- The resource discovery failure reason. -/ + failureReason : Option IpamDiscoveryFailureReason := none + /-- The last attempted resource discovery time. -/ + lastAttemptedDiscoveryTime : Option Timestamp := none + /-- The last successful resource discovery time. -/ + lastSuccessfulDiscoveryTime : Option Timestamp := none + /-- The ID of an Organizational Unit in Amazon Web Services Organizations. -/ + organizationalUnitId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamDiscoveredAccount where + schema := .struct "IpamDiscoveredAccount" [({ name := "AccountId", xmlName := some "accountId", queryName := some "AccountId" }, .string), + ({ name := "DiscoveryRegion", xmlName := some "discoveryRegion", queryName := some "DiscoveryRegion" }, .string), + ({ name := "FailureReason", xmlName := some "failureReason", queryName := some "FailureReason" }, (Shape.schema IpamDiscoveryFailureReason)), + ({ name := "LastAttemptedDiscoveryTime", xmlName := some "lastAttemptedDiscoveryTime", queryName := some "LastAttemptedDiscoveryTime" }, (.time none)), + ({ name := "LastSuccessfulDiscoveryTime", xmlName := some "lastSuccessfulDiscoveryTime", queryName := some "LastSuccessfulDiscoveryTime" }, (.time none)), + ({ name := "OrganizationalUnitId", xmlName := some "organizationalUnitId", queryName := some "OrganizationalUnitId" }, .string)] + toValue x := record [putOpt "AccountId" x.accountId, putOpt "DiscoveryRegion" x.discoveryRegion, putOpt "FailureReason" x.failureReason, putOpt "LastAttemptedDiscoveryTime" x.lastAttemptedDiscoveryTime, putOpt "LastSuccessfulDiscoveryTime" x.lastSuccessfulDiscoveryTime, putOpt "OrganizationalUnitId" x.organizationalUnitId] + ofValue v := do + let accountId ← v.opt "AccountId" + let discoveryRegion ← v.opt "DiscoveryRegion" + let failureReason ← v.opt "FailureReason" + let lastAttemptedDiscoveryTime ← v.opt "LastAttemptedDiscoveryTime" + let lastSuccessfulDiscoveryTime ← v.opt "LastSuccessfulDiscoveryTime" + let organizationalUnitId ← v.opt "OrganizationalUnitId" + return { accountId, discoveryRegion, failureReason, lastAttemptedDiscoveryTime, lastSuccessfulDiscoveryTime, organizationalUnitId } + +/-- A public IP Address discovered by IPAM. -/ +structure IpamDiscoveredPublicAddress where + /-- The IP address. -/ + address : Option String := none + /-- The allocation ID of the resource the IP address is assigned to. -/ + addressAllocationId : Option String := none + /-- The ID of the owner of the resource the IP address is assigned to. -/ + addressOwnerId : Option String := none + /-- The Region of the resource the IP address is assigned to. -/ + addressRegion : Option String := none + /-- The IP address type. -/ + addressType : Option IpamPublicAddressType := none + /-- The association status. -/ + associationStatus : Option IpamPublicAddressAssociationStatus := none + /-- The instance ID of the instance the assigned IP address is assigned to. -/ + instanceId : Option String := none + /-- The resource discovery ID. -/ + ipamResourceDiscoveryId : Option String := none + /-- The Availability Zone (AZ) or Local Zone (LZ) network border group that the resource that the IP address is assigned to is in. -/ + networkBorderGroup : Option String := none + /-- The description of the network interface that IP address is assigned to. -/ + networkInterfaceDescription : Option String := none + /-- The network interface ID of the resource with the assigned IP address. -/ + networkInterfaceId : Option String := none + /-- The ID of the public IPv4 pool that the resource with the assigned IP address is from. -/ + publicIpv4PoolId : Option String := none + /-- The last successful resource discovery time. -/ + sampleTime : Option Timestamp := none + /-- Security groups associated with the resource that the IP address is assigned to. -/ + securityGroups : Option (List IpamPublicAddressSecurityGroup) := none + /-- The Amazon Web Services service associated with the IP address. -/ + service : Option IpamPublicAddressAwsService := none + /-- The resource ARN or ID. -/ + serviceResource : Option String := none + /-- The ID of the subnet that the resource with the assigned IP address is in. -/ + subnetId : Option String := none + /-- Tags associated with the IP address. -/ + tags : Option IpamPublicAddressTags := none + /-- The ID of the VPC that the resource with the assigned IP address is in. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamDiscoveredPublicAddress where + schema := .struct "IpamDiscoveredPublicAddress" [({ name := "Address", xmlName := some "address", queryName := some "Address" }, .string), + ({ name := "AddressAllocationId", xmlName := some "addressAllocationId", queryName := some "AddressAllocationId" }, .string), + ({ name := "AddressOwnerId", xmlName := some "addressOwnerId", queryName := some "AddressOwnerId" }, .string), + ({ name := "AddressRegion", xmlName := some "addressRegion", queryName := some "AddressRegion" }, .string), + ({ name := "AddressType", xmlName := some "addressType", queryName := some "AddressType" }, (Shape.schema IpamPublicAddressType)), + ({ name := "AssociationStatus", xmlName := some "associationStatus", queryName := some "AssociationStatus" }, (Shape.schema IpamPublicAddressAssociationStatus)), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "IpamResourceDiscoveryId", xmlName := some "ipamResourceDiscoveryId", queryName := some "IpamResourceDiscoveryId" }, .string), + ({ name := "NetworkBorderGroup", xmlName := some "networkBorderGroup", queryName := some "NetworkBorderGroup" }, .string), + ({ name := "NetworkInterfaceDescription", xmlName := some "networkInterfaceDescription", queryName := some "NetworkInterfaceDescription" }, .string), + ({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "PublicIpv4PoolId", xmlName := some "publicIpv4PoolId", queryName := some "PublicIpv4PoolId" }, .string), + ({ name := "SampleTime", xmlName := some "sampleTime", queryName := some "SampleTime" }, (.time none)), + ({ name := "SecurityGroups", xmlName := some "securityGroupSet", queryName := some "SecurityGroupSet" }, (.list (Shape.schema IpamPublicAddressSecurityGroup) "item")), + ({ name := "Service", xmlName := some "service", queryName := some "Service" }, (Shape.schema IpamPublicAddressAwsService)), + ({ name := "ServiceResource", xmlName := some "serviceResource", queryName := some "ServiceResource" }, .string), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "Tags", xmlName := some "tags", queryName := some "Tags" }, (Shape.schema IpamPublicAddressTags)), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "Address" x.address, putOpt "AddressAllocationId" x.addressAllocationId, putOpt "AddressOwnerId" x.addressOwnerId, putOpt "AddressRegion" x.addressRegion, putOpt "AddressType" x.addressType, putOpt "AssociationStatus" x.associationStatus, putOpt "InstanceId" x.instanceId, putOpt "IpamResourceDiscoveryId" x.ipamResourceDiscoveryId, putOpt "NetworkBorderGroup" x.networkBorderGroup, putOpt "NetworkInterfaceDescription" x.networkInterfaceDescription, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "PublicIpv4PoolId" x.publicIpv4PoolId, putOpt "SampleTime" x.sampleTime, putOpt "SecurityGroups" x.securityGroups, putOpt "Service" x.service, putOpt "ServiceResource" x.serviceResource, putOpt "SubnetId" x.subnetId, putOpt "Tags" x.tags, putOpt "VpcId" x.vpcId] + ofValue v := do + let address ← v.opt "Address" + let addressAllocationId ← v.opt "AddressAllocationId" + let addressOwnerId ← v.opt "AddressOwnerId" + let addressRegion ← v.opt "AddressRegion" + let addressType ← v.opt "AddressType" + let associationStatus ← v.opt "AssociationStatus" + let instanceId ← v.opt "InstanceId" + let ipamResourceDiscoveryId ← v.opt "IpamResourceDiscoveryId" + let networkBorderGroup ← v.opt "NetworkBorderGroup" + let networkInterfaceDescription ← v.opt "NetworkInterfaceDescription" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let publicIpv4PoolId ← v.opt "PublicIpv4PoolId" + let sampleTime ← v.opt "SampleTime" + let securityGroups ← v.opt "SecurityGroups" + let service ← v.opt "Service" + let serviceResource ← v.opt "ServiceResource" + let subnetId ← v.opt "SubnetId" + let tags ← v.opt "Tags" + let vpcId ← v.opt "VpcId" + return { address, addressAllocationId, addressOwnerId, addressRegion, addressType, associationStatus, instanceId, ipamResourceDiscoveryId, networkBorderGroup, networkInterfaceDescription, networkInterfaceId, publicIpv4PoolId, sampleTime, securityGroups, service, serviceResource, subnetId, tags, vpcId } + +/-- In IPAM, a pool is a collection of contiguous IP addresses CIDRs. -/ +structure IpamPool where + /-- The address family of the pool. -/ + addressFamily : Option AddressFamily := none + /-- The default netmask length for allocations added to this pool. -/ + allocationDefaultNetmaskLength : Option Int := none + /-- The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant. -/ + allocationMaxNetmaskLength : Option Int := none + /-- The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant. -/ + allocationMinNetmaskLength : Option Int := none + /-- Tags that are required for resources that use CIDRs from this IPAM pool. -/ + allocationResourceTags : Option (List IpamResourceTag) := none + /-- If selected, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM. -/ + autoImport : Option Bool := none + /-- Limits which service in Amazon Web Services that the pool can be used in. -/ + awsService : Option IpamPoolAwsService := none + /-- The description of the IPAM pool. -/ + description : Option String := none + /-- The ARN of the IPAM. -/ + ipamArn : Option String := none + /-- The Amazon Resource Name (ARN) of the IPAM pool. -/ + ipamPoolArn : Option String := none + /-- The ID of the IPAM pool. -/ + ipamPoolId : Option String := none + /-- The Amazon Web Services Region of the IPAM pool. -/ + ipamRegion : Option String := none + /-- The ARN of the scope of the IPAM pool. -/ + ipamScopeArn : Option String := none + /-- In IPAM, a scope is the highest-level container within IPAM. -/ + ipamScopeType : Option IpamScopeType := none + /-- The locale of the IPAM pool. -/ + locale : Option String := none + /-- The Amazon Web Services account ID of the owner of the IPAM pool. -/ + ownerId : Option String := none + /-- The depth of pools in your IPAM pool. -/ + poolDepth : Option Int := none + /-- The IP address source for pools in the public scope. -/ + publicIpSource : Option IpamPoolPublicIpSource := none + /-- Determines if a pool is publicly advertisable. -/ + publiclyAdvertisable : Option Bool := none + /-- The ID of the source IPAM pool. -/ + sourceIpamPoolId : Option String := none + /-- The resource used to provision CIDRs to a resource planning pool. -/ + sourceResource : Option IpamPoolSourceResource := none + /-- The state of the IPAM pool. -/ + state : Option IpamPoolState := none + /-- The state message. -/ + stateMessage : Option String := none + /-- The key/value combination of a tag assigned to the resource. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPool where + schema := .struct "IpamPool" [({ name := "AddressFamily", xmlName := some "addressFamily", queryName := some "AddressFamily" }, (Shape.schema AddressFamily)), + ({ name := "AllocationDefaultNetmaskLength", xmlName := some "allocationDefaultNetmaskLength", queryName := some "AllocationDefaultNetmaskLength" }, .int), + ({ name := "AllocationMaxNetmaskLength", xmlName := some "allocationMaxNetmaskLength", queryName := some "AllocationMaxNetmaskLength" }, .int), + ({ name := "AllocationMinNetmaskLength", xmlName := some "allocationMinNetmaskLength", queryName := some "AllocationMinNetmaskLength" }, .int), + ({ name := "AllocationResourceTags", xmlName := some "allocationResourceTagSet", queryName := some "AllocationResourceTagSet" }, (.list (Shape.schema IpamResourceTag) "item")), + ({ name := "AutoImport", xmlName := some "autoImport", queryName := some "AutoImport" }, .bool), + ({ name := "AwsService", xmlName := some "awsService", queryName := some "AwsService" }, (Shape.schema IpamPoolAwsService)), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "IpamArn", xmlName := some "ipamArn", queryName := some "IpamArn" }, .string), + ({ name := "IpamPoolArn", xmlName := some "ipamPoolArn", queryName := some "IpamPoolArn" }, .string), + ({ name := "IpamPoolId", xmlName := some "ipamPoolId", queryName := some "IpamPoolId" }, .string), + ({ name := "IpamRegion", xmlName := some "ipamRegion", queryName := some "IpamRegion" }, .string), + ({ name := "IpamScopeArn", xmlName := some "ipamScopeArn", queryName := some "IpamScopeArn" }, .string), + ({ name := "IpamScopeType", xmlName := some "ipamScopeType", queryName := some "IpamScopeType" }, (Shape.schema IpamScopeType)), + ({ name := "Locale", xmlName := some "locale", queryName := some "Locale" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "PoolDepth", xmlName := some "poolDepth", queryName := some "PoolDepth" }, .int), + ({ name := "PublicIpSource", xmlName := some "publicIpSource", queryName := some "PublicIpSource" }, (Shape.schema IpamPoolPublicIpSource)), + ({ name := "PubliclyAdvertisable", xmlName := some "publiclyAdvertisable", queryName := some "PubliclyAdvertisable" }, .bool), + ({ name := "SourceIpamPoolId", xmlName := some "sourceIpamPoolId", queryName := some "SourceIpamPoolId" }, .string), + ({ name := "SourceResource", xmlName := some "sourceResource", queryName := some "SourceResource" }, (Shape.schema IpamPoolSourceResource)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema IpamPoolState)), + ({ name := "StateMessage", xmlName := some "stateMessage", queryName := some "StateMessage" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "AddressFamily" x.addressFamily, putOpt "AllocationDefaultNetmaskLength" x.allocationDefaultNetmaskLength, putOpt "AllocationMaxNetmaskLength" x.allocationMaxNetmaskLength, putOpt "AllocationMinNetmaskLength" x.allocationMinNetmaskLength, putOpt "AllocationResourceTags" x.allocationResourceTags, putOpt "AutoImport" x.autoImport, putOpt "AwsService" x.awsService, putOpt "Description" x.description, putOpt "IpamArn" x.ipamArn, putOpt "IpamPoolArn" x.ipamPoolArn, putOpt "IpamPoolId" x.ipamPoolId, putOpt "IpamRegion" x.ipamRegion, putOpt "IpamScopeArn" x.ipamScopeArn, putOpt "IpamScopeType" x.ipamScopeType, putOpt "Locale" x.locale, putOpt "OwnerId" x.ownerId, putOpt "PoolDepth" x.poolDepth, putOpt "PublicIpSource" x.publicIpSource, putOpt "PubliclyAdvertisable" x.publiclyAdvertisable, putOpt "SourceIpamPoolId" x.sourceIpamPoolId, putOpt "SourceResource" x.sourceResource, putOpt "State" x.state, putOpt "StateMessage" x.stateMessage, putOpt "Tags" x.tags] + ofValue v := do + let addressFamily ← v.opt "AddressFamily" + let allocationDefaultNetmaskLength ← v.opt "AllocationDefaultNetmaskLength" + let allocationMaxNetmaskLength ← v.opt "AllocationMaxNetmaskLength" + let allocationMinNetmaskLength ← v.opt "AllocationMinNetmaskLength" + let allocationResourceTags ← v.opt "AllocationResourceTags" + let autoImport ← v.opt "AutoImport" + let awsService ← v.opt "AwsService" + let description ← v.opt "Description" + let ipamArn ← v.opt "IpamArn" + let ipamPoolArn ← v.opt "IpamPoolArn" + let ipamPoolId ← v.opt "IpamPoolId" + let ipamRegion ← v.opt "IpamRegion" + let ipamScopeArn ← v.opt "IpamScopeArn" + let ipamScopeType ← v.opt "IpamScopeType" + let locale ← v.opt "Locale" + let ownerId ← v.opt "OwnerId" + let poolDepth ← v.opt "PoolDepth" + let publicIpSource ← v.opt "PublicIpSource" + let publiclyAdvertisable ← v.opt "PubliclyAdvertisable" + let sourceIpamPoolId ← v.opt "SourceIpamPoolId" + let sourceResource ← v.opt "SourceResource" + let state ← v.opt "State" + let stateMessage ← v.opt "StateMessage" + let tags ← v.opt "Tags" + return { addressFamily, allocationDefaultNetmaskLength, allocationMaxNetmaskLength, allocationMinNetmaskLength, allocationResourceTags, autoImport, awsService, description, ipamArn, ipamPoolArn, ipamPoolId, ipamRegion, ipamScopeArn, ipamScopeType, locale, ownerId, poolDepth, publicIpSource, publiclyAdvertisable, sourceIpamPoolId, sourceResource, state, stateMessage, tags } + +/-- A CIDR provisioned to an IPAM pool. -/ +structure IpamPoolCidr where + /-- The CIDR provisioned to the IPAM pool. -/ + cidr : Option String := none + /-- Details related to why an IPAM pool CIDR failed to be provisioned. -/ + failureReason : Option IpamPoolCidrFailureReason := none + /-- The IPAM pool CIDR ID. -/ + ipamPoolCidrId : Option String := none + /-- The netmask length of the CIDR you'd like to provision to a pool. -/ + netmaskLength : Option Int := none + /-- The state of the CIDR. -/ + state : Option IpamPoolCidrState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPoolCidr where + schema := .struct "IpamPoolCidr" [({ name := "Cidr", xmlName := some "cidr", queryName := some "Cidr" }, .string), + ({ name := "FailureReason", xmlName := some "failureReason", queryName := some "FailureReason" }, (Shape.schema IpamPoolCidrFailureReason)), + ({ name := "IpamPoolCidrId", xmlName := some "ipamPoolCidrId", queryName := some "IpamPoolCidrId" }, .string), + ({ name := "NetmaskLength", xmlName := some "netmaskLength", queryName := some "NetmaskLength" }, .int), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema IpamPoolCidrState))] + toValue x := record [putOpt "Cidr" x.cidr, putOpt "FailureReason" x.failureReason, putOpt "IpamPoolCidrId" x.ipamPoolCidrId, putOpt "NetmaskLength" x.netmaskLength, putOpt "State" x.state] + ofValue v := do + let cidr ← v.opt "Cidr" + let failureReason ← v.opt "FailureReason" + let ipamPoolCidrId ← v.opt "IpamPoolCidrId" + let netmaskLength ← v.opt "NetmaskLength" + let state ← v.opt "State" + return { cidr, failureReason, ipamPoolCidrId, netmaskLength, state } + +/-- Describes a CIDR selection rule. -/ +structure IpamPrefixListResolverRule where + /-- The conditions that determine which CIDRs are selected by this rule. -/ + conditions : Option (List IpamPrefixListResolverRuleCondition) := none + /-- The ID of the IPAM scope from which to select CIDRs. -/ + ipamScopeId : Option String := none + /-- For rules of type ipam-resource-cidr , this is the resource type. -/ + resourceType : Option IpamResourceType := none + /-- The type of CIDR selection rule. -/ + ruleType : Option IpamPrefixListResolverRuleType := none + /-- A fixed list of CIDRs that do not change (like a manual list replicated across Regions). -/ + staticCidr : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPrefixListResolverRule where + schema := .struct "IpamPrefixListResolverRule" [({ name := "Conditions", xmlName := some "conditionSet", queryName := some "ConditionSet" }, (.list (Shape.schema IpamPrefixListResolverRuleCondition) "item")), + ({ name := "IpamScopeId", xmlName := some "ipamScopeId", queryName := some "IpamScopeId" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema IpamResourceType)), + ({ name := "RuleType", xmlName := some "ruleType", queryName := some "RuleType" }, (Shape.schema IpamPrefixListResolverRuleType)), + ({ name := "StaticCidr", xmlName := some "staticCidr", queryName := some "StaticCidr" }, .string)] + toValue x := record [putOpt "Conditions" x.conditions, putOpt "IpamScopeId" x.ipamScopeId, putOpt "ResourceType" x.resourceType, putOpt "RuleType" x.ruleType, putOpt "StaticCidr" x.staticCidr] + ofValue v := do + let conditions ← v.opt "Conditions" + let ipamScopeId ← v.opt "IpamScopeId" + let resourceType ← v.opt "ResourceType" + let ruleType ← v.opt "RuleType" + let staticCidr ← v.opt "StaticCidr" + return { conditions, ipamScopeId, resourceType, ruleType, staticCidr } + +/-- Describes a CIDR selection rule to include in a request. -/ +structure IpamPrefixListResolverRuleRequest where + /-- The conditions that determine which CIDRs are selected by this rule. -/ + conditions : Option (List IpamPrefixListResolverRuleConditionRequest) := none + /-- The ID of the IPAM scope from which to select CIDRs. -/ + ipamScopeId : Option String := none + /-- For rules of type ipam-resource-cidr , this is the resource type. -/ + resourceType : Option IpamResourceType := none + /-- The type of CIDR selection rule. -/ + ruleType : IpamPrefixListResolverRuleType + /-- A fixed list of CIDRs that do not change (like a manual list replicated across Regions). -/ + staticCidr : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamPrefixListResolverRuleRequest where + schema := .struct "IpamPrefixListResolverRuleRequest" [({ name := "Conditions", xmlName := some "Condition" }, (.list (Shape.schema IpamPrefixListResolverRuleConditionRequest) "Condition")), + ({ name := "IpamScopeId" }, .string), + ({ name := "ResourceType" }, (Shape.schema IpamResourceType)), + ({ name := "RuleType", required := true }, (Shape.schema IpamPrefixListResolverRuleType)), + ({ name := "StaticCidr" }, .string)] + toValue x := record [putOpt "Conditions" x.conditions, putOpt "IpamScopeId" x.ipamScopeId, putOpt "ResourceType" x.resourceType, put "RuleType" x.ruleType, putOpt "StaticCidr" x.staticCidr] + ofValue v := do + let conditions ← v.opt "Conditions" + let ipamScopeId ← v.opt "IpamScopeId" + let resourceType ← v.opt "ResourceType" + let ruleType ← v.req "RuleType" + let staticCidr ← v.opt "StaticCidr" + return { conditions, ipamScopeId, resourceType, ruleType, staticCidr } + +/-- In IPAM, a scope is the highest-level container within IPAM. -/ +structure IpamScope where + /-- The description of the scope. -/ + description : Option String := none + /-- The external authority configuration for this IPAM scope, if configured. -/ + externalAuthorityConfiguration : Option IpamScopeExternalAuthorityConfiguration := none + /-- The ARN of the IPAM. -/ + ipamArn : Option String := none + /-- The Amazon Web Services Region of the IPAM scope. -/ + ipamRegion : Option String := none + /-- The Amazon Resource Name (ARN) of the scope. -/ + ipamScopeArn : Option String := none + /-- The ID of the scope. -/ + ipamScopeId : Option String := none + /-- The type of the scope. -/ + ipamScopeType : Option IpamScopeType := none + /-- Defines if the scope is the default scope or not. -/ + isDefault : Option Bool := none + /-- The Amazon Web Services account ID of the owner of the scope. -/ + ownerId : Option String := none + /-- The number of pools in the scope. -/ + poolCount : Option Int := none + /-- The state of the IPAM scope. -/ + state : Option IpamScopeState := none + /-- The key/value combination of a tag assigned to the resource. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IpamScope where + schema := .struct "IpamScope" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "ExternalAuthorityConfiguration", xmlName := some "externalAuthorityConfiguration", queryName := some "ExternalAuthorityConfiguration" }, (Shape.schema IpamScopeExternalAuthorityConfiguration)), + ({ name := "IpamArn", xmlName := some "ipamArn", queryName := some "IpamArn" }, .string), + ({ name := "IpamRegion", xmlName := some "ipamRegion", queryName := some "IpamRegion" }, .string), + ({ name := "IpamScopeArn", xmlName := some "ipamScopeArn", queryName := some "IpamScopeArn" }, .string), + ({ name := "IpamScopeId", xmlName := some "ipamScopeId", queryName := some "IpamScopeId" }, .string), + ({ name := "IpamScopeType", xmlName := some "ipamScopeType", queryName := some "IpamScopeType" }, (Shape.schema IpamScopeType)), + ({ name := "IsDefault", xmlName := some "isDefault", queryName := some "IsDefault" }, .bool), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "PoolCount", xmlName := some "poolCount", queryName := some "PoolCount" }, .int), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema IpamScopeState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "Description" x.description, putOpt "ExternalAuthorityConfiguration" x.externalAuthorityConfiguration, putOpt "IpamArn" x.ipamArn, putOpt "IpamRegion" x.ipamRegion, putOpt "IpamScopeArn" x.ipamScopeArn, putOpt "IpamScopeId" x.ipamScopeId, putOpt "IpamScopeType" x.ipamScopeType, putOpt "IsDefault" x.isDefault, putOpt "OwnerId" x.ownerId, putOpt "PoolCount" x.poolCount, putOpt "State" x.state, putOpt "Tags" x.tags] + ofValue v := do + let description ← v.opt "Description" + let externalAuthorityConfiguration ← v.opt "ExternalAuthorityConfiguration" + let ipamArn ← v.opt "IpamArn" + let ipamRegion ← v.opt "IpamRegion" + let ipamScopeArn ← v.opt "IpamScopeArn" + let ipamScopeId ← v.opt "IpamScopeId" + let ipamScopeType ← v.opt "IpamScopeType" + let isDefault ← v.opt "IsDefault" + let ownerId ← v.opt "OwnerId" + let poolCount ← v.opt "PoolCount" + let state ← v.opt "State" + let tags ← v.opt "Tags" + return { description, externalAuthorityConfiguration, ipamArn, ipamRegion, ipamScopeArn, ipamScopeId, ipamScopeType, isDefault, ownerId, poolCount, state, tags } + +/-- Describes a launch permission modification. -/ +structure LaunchPermissionModifications where + /-- The Amazon Web Services account ID, organization ARN, or OU ARN to add to the list of launch permissions for the AMI. -/ + add : Option (List LaunchPermission) := none + /-- The Amazon Web Services account ID, organization ARN, or OU ARN to remove from the list of launch permissions for the AMI. -/ + remove : Option (List LaunchPermission) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchPermissionModifications where + schema := .struct "LaunchPermissionModifications" [({ name := "Add" }, (.list (Shape.schema LaunchPermission) "item")), + ({ name := "Remove" }, (.list (Shape.schema LaunchPermission) "item"))] + toValue x := record [putOpt "Add" x.add, putOpt "Remove" x.remove] + ofValue v := do + let add ← v.opt "Add" + let remove ← v.opt "Remove" + return { add, remove } + +/-- Describes a block device mapping. -/ +structure LaunchTemplateBlockDeviceMapping where + /-- The device name. -/ + deviceName : Option String := none + /-- Information about the block device for an EBS volume. -/ + ebs : Option LaunchTemplateEbsBlockDevice := none + /-- To omit the device from the block device mapping, specify an empty string. -/ + noDevice : Option String := none + /-- The virtual device name (ephemeralN). -/ + virtualName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateBlockDeviceMapping where + schema := .struct "LaunchTemplateBlockDeviceMapping" [({ name := "DeviceName", xmlName := some "deviceName", queryName := some "DeviceName" }, .string), + ({ name := "Ebs", xmlName := some "ebs", queryName := some "Ebs" }, (Shape.schema LaunchTemplateEbsBlockDevice)), + ({ name := "NoDevice", xmlName := some "noDevice", queryName := some "NoDevice" }, .string), + ({ name := "VirtualName", xmlName := some "virtualName", queryName := some "VirtualName" }, .string)] + toValue x := record [putOpt "DeviceName" x.deviceName, putOpt "Ebs" x.ebs, putOpt "NoDevice" x.noDevice, putOpt "VirtualName" x.virtualName] + ofValue v := do + let deviceName ← v.opt "DeviceName" + let ebs ← v.opt "Ebs" + let noDevice ← v.opt "NoDevice" + let virtualName ← v.opt "VirtualName" + return { deviceName, ebs, noDevice, virtualName } + +/-- Describes a block device mapping. -/ +structure LaunchTemplateBlockDeviceMappingRequest where + /-- The device name (for example, /dev/sdh or xvdh). -/ + deviceName : Option String := none + /-- Parameters used to automatically set up EBS volumes when the instance is launched. -/ + ebs : Option LaunchTemplateEbsBlockDeviceRequest := none + /-- To omit the device from the block device mapping, specify an empty string. -/ + noDevice : Option String := none + /-- The virtual device name (ephemeralN). -/ + virtualName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateBlockDeviceMappingRequest where + schema := .struct "LaunchTemplateBlockDeviceMappingRequest" [({ name := "DeviceName" }, .string), + ({ name := "Ebs" }, (Shape.schema LaunchTemplateEbsBlockDeviceRequest)), + ({ name := "NoDevice" }, .string), + ({ name := "VirtualName" }, .string)] + toValue x := record [putOpt "DeviceName" x.deviceName, putOpt "Ebs" x.ebs, putOpt "NoDevice" x.noDevice, putOpt "VirtualName" x.virtualName] + ofValue v := do + let deviceName ← v.opt "DeviceName" + let ebs ← v.opt "Ebs" + let noDevice ← v.opt "NoDevice" + let virtualName ← v.opt "VirtualName" + return { deviceName, ebs, noDevice, virtualName } + +/-- The market (purchasing) option for the instances. -/ +structure LaunchTemplateInstanceMarketOptions where + /-- The market type. -/ + marketType : Option MarketType := none + /-- The options for Spot Instances. -/ + spotOptions : Option LaunchTemplateSpotMarketOptions := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateInstanceMarketOptions where + schema := .struct "LaunchTemplateInstanceMarketOptions" [({ name := "MarketType", xmlName := some "marketType", queryName := some "MarketType" }, (Shape.schema MarketType)), + ({ name := "SpotOptions", xmlName := some "spotOptions", queryName := some "SpotOptions" }, (Shape.schema LaunchTemplateSpotMarketOptions))] + toValue x := record [putOpt "MarketType" x.marketType, putOpt "SpotOptions" x.spotOptions] + ofValue v := do + let marketType ← v.opt "MarketType" + let spotOptions ← v.opt "SpotOptions" + return { marketType, spotOptions } + +/-- The market (purchasing) option for the instances. -/ +structure LaunchTemplateInstanceMarketOptionsRequest where + /-- The market type. -/ + marketType : Option MarketType := none + /-- The options for Spot Instances. -/ + spotOptions : Option LaunchTemplateSpotMarketOptionsRequest := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateInstanceMarketOptionsRequest where + schema := .struct "LaunchTemplateInstanceMarketOptionsRequest" [({ name := "MarketType" }, (Shape.schema MarketType)), + ({ name := "SpotOptions" }, (Shape.schema LaunchTemplateSpotMarketOptionsRequest))] + toValue x := record [putOpt "MarketType" x.marketType, putOpt "SpotOptions" x.spotOptions] + ofValue v := do + let marketType ← v.opt "MarketType" + let spotOptions ← v.opt "SpotOptions" + return { marketType, spotOptions } + +/-- Describes a network interface. -/ +structure LaunchTemplateInstanceNetworkInterfaceSpecification where + /-- Indicates whether to associate a Carrier IP address with eth0 for a new network interface. -/ + associateCarrierIpAddress : Option Bool := none + /-- Indicates whether to associate a public IPv4 address with eth0 for a new network interface. -/ + associatePublicIpAddress : Option Bool := none + /-- A security group connection tracking specification that enables you to set the timeout for connection tracking on an Elastic network interface. -/ + connectionTrackingSpecification : Option ConnectionTrackingSpecification := none + /-- Indicates whether the network interface is deleted when the instance is terminated. -/ + deleteOnTermination : Option Bool := none + /-- A description for the network interface. -/ + description : Option String := none + /-- The device index for the network interface attachment. -/ + deviceIndex : Option Int := none + /-- The number of ENA queues created with the instance. -/ + enaQueueCount : Option Int := none + /-- Contains the ENA Express settings for instances launched from your launch template. -/ + enaSrdSpecification : Option LaunchTemplateEnaSrdSpecification := none + /-- The IDs of one or more security groups. -/ + groups : Option (List String) := none + /-- The type of network interface. -/ + interfaceType : Option String := none + /-- The number of IPv4 prefixes that Amazon Web Services automatically assigned to the network interface. -/ + ipv4PrefixCount : Option Int := none + /-- One or more IPv4 prefixes assigned to the network interface. -/ + ipv4Prefixes : Option (List Ipv4PrefixSpecificationResponse) := none + /-- The number of IPv6 addresses for the network interface. -/ + ipv6AddressCount : Option Int := none + /-- The IPv6 addresses for the network interface. -/ + ipv6Addresses : Option (List InstanceIpv6Address) := none + /-- The number of IPv6 prefixes that Amazon Web Services automatically assigned to the network interface. -/ + ipv6PrefixCount : Option Int := none + /-- One or more IPv6 prefixes assigned to the network interface. -/ + ipv6Prefixes : Option (List Ipv6PrefixSpecificationResponse) := none + /-- The index of the network card. -/ + networkCardIndex : Option Int := none + /-- The ID of the network interface. -/ + networkInterfaceId : Option String := none + /-- The primary IPv6 address of the network interface. -/ + primaryIpv6 : Option Bool := none + /-- The primary private IPv4 address of the network interface. -/ + privateIpAddress : Option String := none + /-- One or more private IPv4 addresses. -/ + privateIpAddresses : Option (List PrivateIpAddressSpecification) := none + /-- The number of secondary private IPv4 addresses for the network interface. -/ + secondaryPrivateIpAddressCount : Option Int := none + /-- The ID of the subnet for the network interface. -/ + subnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateInstanceNetworkInterfaceSpecification where + schema := .struct "LaunchTemplateInstanceNetworkInterfaceSpecification" [({ name := "AssociateCarrierIpAddress", xmlName := some "associateCarrierIpAddress", queryName := some "AssociateCarrierIpAddress" }, .bool), + ({ name := "AssociatePublicIpAddress", xmlName := some "associatePublicIpAddress", queryName := some "AssociatePublicIpAddress" }, .bool), + ({ name := "ConnectionTrackingSpecification", xmlName := some "connectionTrackingSpecification", queryName := some "ConnectionTrackingSpecification" }, (Shape.schema ConnectionTrackingSpecification)), + ({ name := "DeleteOnTermination", xmlName := some "deleteOnTermination", queryName := some "DeleteOnTermination" }, .bool), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "DeviceIndex", xmlName := some "deviceIndex", queryName := some "DeviceIndex" }, .int), + ({ name := "EnaQueueCount", xmlName := some "enaQueueCount", queryName := some "EnaQueueCount" }, .int), + ({ name := "EnaSrdSpecification", xmlName := some "enaSrdSpecification", queryName := some "EnaSrdSpecification" }, (Shape.schema LaunchTemplateEnaSrdSpecification)), + ({ name := "Groups", xmlName := some "groupSet", queryName := some "GroupSet" }, (.list .string "groupId")), + ({ name := "InterfaceType", xmlName := some "interfaceType", queryName := some "InterfaceType" }, .string), + ({ name := "Ipv4PrefixCount", xmlName := some "ipv4PrefixCount", queryName := some "Ipv4PrefixCount" }, .int), + ({ name := "Ipv4Prefixes", xmlName := some "ipv4PrefixSet", queryName := some "Ipv4PrefixSet" }, (.list (Shape.schema Ipv4PrefixSpecificationResponse) "item")), + ({ name := "Ipv6AddressCount", xmlName := some "ipv6AddressCount", queryName := some "Ipv6AddressCount" }, .int), + ({ name := "Ipv6Addresses", xmlName := some "ipv6AddressesSet", queryName := some "Ipv6AddressesSet" }, (.list (Shape.schema InstanceIpv6Address) "item")), + ({ name := "Ipv6PrefixCount", xmlName := some "ipv6PrefixCount", queryName := some "Ipv6PrefixCount" }, .int), + ({ name := "Ipv6Prefixes", xmlName := some "ipv6PrefixSet", queryName := some "Ipv6PrefixSet" }, (.list (Shape.schema Ipv6PrefixSpecificationResponse) "item")), + ({ name := "NetworkCardIndex", xmlName := some "networkCardIndex", queryName := some "NetworkCardIndex" }, .int), + ({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "PrimaryIpv6", xmlName := some "primaryIpv6", queryName := some "PrimaryIpv6" }, .bool), + ({ name := "PrivateIpAddress", xmlName := some "privateIpAddress", queryName := some "PrivateIpAddress" }, .string), + ({ name := "PrivateIpAddresses", xmlName := some "privateIpAddressesSet", queryName := some "PrivateIpAddressesSet" }, (.list (Shape.schema PrivateIpAddressSpecification) "item")), + ({ name := "SecondaryPrivateIpAddressCount", xmlName := some "secondaryPrivateIpAddressCount", queryName := some "SecondaryPrivateIpAddressCount" }, .int), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string)] + toValue x := record [putOpt "AssociateCarrierIpAddress" x.associateCarrierIpAddress, putOpt "AssociatePublicIpAddress" x.associatePublicIpAddress, putOpt "ConnectionTrackingSpecification" x.connectionTrackingSpecification, putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "Description" x.description, putOpt "DeviceIndex" x.deviceIndex, putOpt "EnaQueueCount" x.enaQueueCount, putOpt "EnaSrdSpecification" x.enaSrdSpecification, putOpt "Groups" x.groups, putOpt "InterfaceType" x.interfaceType, putOpt "Ipv4PrefixCount" x.ipv4PrefixCount, putOpt "Ipv4Prefixes" x.ipv4Prefixes, putOpt "Ipv6AddressCount" x.ipv6AddressCount, putOpt "Ipv6Addresses" x.ipv6Addresses, putOpt "Ipv6PrefixCount" x.ipv6PrefixCount, putOpt "Ipv6Prefixes" x.ipv6Prefixes, putOpt "NetworkCardIndex" x.networkCardIndex, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "PrimaryIpv6" x.primaryIpv6, putOpt "PrivateIpAddress" x.privateIpAddress, putOpt "PrivateIpAddresses" x.privateIpAddresses, putOpt "SecondaryPrivateIpAddressCount" x.secondaryPrivateIpAddressCount, putOpt "SubnetId" x.subnetId] + ofValue v := do + let associateCarrierIpAddress ← v.opt "AssociateCarrierIpAddress" + let associatePublicIpAddress ← v.opt "AssociatePublicIpAddress" + let connectionTrackingSpecification ← v.opt "ConnectionTrackingSpecification" + let deleteOnTermination ← v.opt "DeleteOnTermination" + let description ← v.opt "Description" + let deviceIndex ← v.opt "DeviceIndex" + let enaQueueCount ← v.opt "EnaQueueCount" + let enaSrdSpecification ← v.opt "EnaSrdSpecification" + let groups ← v.opt "Groups" + let interfaceType ← v.opt "InterfaceType" + let ipv4PrefixCount ← v.opt "Ipv4PrefixCount" + let ipv4Prefixes ← v.opt "Ipv4Prefixes" + let ipv6AddressCount ← v.opt "Ipv6AddressCount" + let ipv6Addresses ← v.opt "Ipv6Addresses" + let ipv6PrefixCount ← v.opt "Ipv6PrefixCount" + let ipv6Prefixes ← v.opt "Ipv6Prefixes" + let networkCardIndex ← v.opt "NetworkCardIndex" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let primaryIpv6 ← v.opt "PrimaryIpv6" + let privateIpAddress ← v.opt "PrivateIpAddress" + let privateIpAddresses ← v.opt "PrivateIpAddresses" + let secondaryPrivateIpAddressCount ← v.opt "SecondaryPrivateIpAddressCount" + let subnetId ← v.opt "SubnetId" + return { associateCarrierIpAddress, associatePublicIpAddress, connectionTrackingSpecification, deleteOnTermination, description, deviceIndex, enaQueueCount, enaSrdSpecification, groups, interfaceType, ipv4PrefixCount, ipv4Prefixes, ipv6AddressCount, ipv6Addresses, ipv6PrefixCount, ipv6Prefixes, networkCardIndex, networkInterfaceId, primaryIpv6, privateIpAddress, privateIpAddresses, secondaryPrivateIpAddressCount, subnetId } + +/-- The parameters for a network interface. -/ +structure LaunchTemplateInstanceNetworkInterfaceSpecificationRequest where + /-- Associates a Carrier IP address with eth0 for a new network interface. -/ + associateCarrierIpAddress : Option Bool := none + /-- Associates a public IPv4 address with eth0 for a new network interface. -/ + associatePublicIpAddress : Option Bool := none + /-- A security group connection tracking specification that enables you to set the timeout for connection tracking on an Elastic network interface. -/ + connectionTrackingSpecification : Option ConnectionTrackingSpecificationRequest := none + /-- Indicates whether the network interface is deleted when the instance is terminated. -/ + deleteOnTermination : Option Bool := none + /-- A description for the network interface. -/ + description : Option String := none + /-- The device index for the network interface attachment. -/ + deviceIndex : Option Int := none + /-- The number of ENA queues to be created with the instance. -/ + enaQueueCount : Option Int := none + /-- Configure ENA Express settings for your launch template. -/ + enaSrdSpecification : Option EnaSrdSpecificationRequest := none + /-- The IDs of one or more security groups. -/ + groups : Option (List String) := none + /-- The type of network interface. -/ + interfaceType : Option String := none + /-- The number of IPv4 prefixes to be automatically assigned to the network interface. -/ + ipv4PrefixCount : Option Int := none + /-- One or more IPv4 prefixes to be assigned to the network interface. -/ + ipv4Prefixes : Option (List Ipv4PrefixSpecificationRequest) := none + /-- The number of IPv6 addresses to assign to a network interface. -/ + ipv6AddressCount : Option Int := none + /-- One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. -/ + ipv6Addresses : Option (List InstanceIpv6AddressRequest) := none + /-- The number of IPv6 prefixes to be automatically assigned to the network interface. -/ + ipv6PrefixCount : Option Int := none + /-- One or more IPv6 prefixes to be assigned to the network interface. -/ + ipv6Prefixes : Option (List Ipv6PrefixSpecificationRequest) := none + /-- The index of the network card. -/ + networkCardIndex : Option Int := none + /-- The ID of the network interface. -/ + networkInterfaceId : Option String := none + /-- The primary IPv6 address of the network interface. -/ + primaryIpv6 : Option Bool := none + /-- The primary private IPv4 address of the network interface. -/ + privateIpAddress : Option String := none + /-- One or more private IPv4 addresses. -/ + privateIpAddresses : Option (List PrivateIpAddressSpecification) := none + /-- The number of secondary private IPv4 addresses to assign to a network interface. -/ + secondaryPrivateIpAddressCount : Option Int := none + /-- The ID of the subnet for the network interface. -/ + subnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateInstanceNetworkInterfaceSpecificationRequest where + schema := .struct "LaunchTemplateInstanceNetworkInterfaceSpecificationRequest" [({ name := "AssociateCarrierIpAddress" }, .bool), + ({ name := "AssociatePublicIpAddress" }, .bool), + ({ name := "ConnectionTrackingSpecification" }, (Shape.schema ConnectionTrackingSpecificationRequest)), + ({ name := "DeleteOnTermination" }, .bool), + ({ name := "Description" }, .string), + ({ name := "DeviceIndex" }, .int), + ({ name := "EnaQueueCount" }, .int), + ({ name := "EnaSrdSpecification" }, (Shape.schema EnaSrdSpecificationRequest)), + ({ name := "Groups", xmlName := some "SecurityGroupId" }, (.list .string "SecurityGroupId")), + ({ name := "InterfaceType" }, .string), + ({ name := "Ipv4PrefixCount" }, .int), + ({ name := "Ipv4Prefixes", xmlName := some "Ipv4Prefix" }, (.list (Shape.schema Ipv4PrefixSpecificationRequest) "item")), + ({ name := "Ipv6AddressCount" }, .int), + ({ name := "Ipv6Addresses" }, (.list (Shape.schema InstanceIpv6AddressRequest) "InstanceIpv6Address")), + ({ name := "Ipv6PrefixCount" }, .int), + ({ name := "Ipv6Prefixes", xmlName := some "Ipv6Prefix" }, (.list (Shape.schema Ipv6PrefixSpecificationRequest) "item")), + ({ name := "NetworkCardIndex" }, .int), + ({ name := "NetworkInterfaceId" }, .string), + ({ name := "PrimaryIpv6" }, .bool), + ({ name := "PrivateIpAddress" }, .string), + ({ name := "PrivateIpAddresses" }, (.list (Shape.schema PrivateIpAddressSpecification) "item")), + ({ name := "SecondaryPrivateIpAddressCount" }, .int), + ({ name := "SubnetId" }, .string)] + toValue x := record [putOpt "AssociateCarrierIpAddress" x.associateCarrierIpAddress, putOpt "AssociatePublicIpAddress" x.associatePublicIpAddress, putOpt "ConnectionTrackingSpecification" x.connectionTrackingSpecification, putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "Description" x.description, putOpt "DeviceIndex" x.deviceIndex, putOpt "EnaQueueCount" x.enaQueueCount, putOpt "EnaSrdSpecification" x.enaSrdSpecification, putOpt "Groups" x.groups, putOpt "InterfaceType" x.interfaceType, putOpt "Ipv4PrefixCount" x.ipv4PrefixCount, putOpt "Ipv4Prefixes" x.ipv4Prefixes, putOpt "Ipv6AddressCount" x.ipv6AddressCount, putOpt "Ipv6Addresses" x.ipv6Addresses, putOpt "Ipv6PrefixCount" x.ipv6PrefixCount, putOpt "Ipv6Prefixes" x.ipv6Prefixes, putOpt "NetworkCardIndex" x.networkCardIndex, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "PrimaryIpv6" x.primaryIpv6, putOpt "PrivateIpAddress" x.privateIpAddress, putOpt "PrivateIpAddresses" x.privateIpAddresses, putOpt "SecondaryPrivateIpAddressCount" x.secondaryPrivateIpAddressCount, putOpt "SubnetId" x.subnetId] + ofValue v := do + let associateCarrierIpAddress ← v.opt "AssociateCarrierIpAddress" + let associatePublicIpAddress ← v.opt "AssociatePublicIpAddress" + let connectionTrackingSpecification ← v.opt "ConnectionTrackingSpecification" + let deleteOnTermination ← v.opt "DeleteOnTermination" + let description ← v.opt "Description" + let deviceIndex ← v.opt "DeviceIndex" + let enaQueueCount ← v.opt "EnaQueueCount" + let enaSrdSpecification ← v.opt "EnaSrdSpecification" + let groups ← v.opt "Groups" + let interfaceType ← v.opt "InterfaceType" + let ipv4PrefixCount ← v.opt "Ipv4PrefixCount" + let ipv4Prefixes ← v.opt "Ipv4Prefixes" + let ipv6AddressCount ← v.opt "Ipv6AddressCount" + let ipv6Addresses ← v.opt "Ipv6Addresses" + let ipv6PrefixCount ← v.opt "Ipv6PrefixCount" + let ipv6Prefixes ← v.opt "Ipv6Prefixes" + let networkCardIndex ← v.opt "NetworkCardIndex" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let primaryIpv6 ← v.opt "PrimaryIpv6" + let privateIpAddress ← v.opt "PrivateIpAddress" + let privateIpAddresses ← v.opt "PrivateIpAddresses" + let secondaryPrivateIpAddressCount ← v.opt "SecondaryPrivateIpAddressCount" + let subnetId ← v.opt "SubnetId" + return { associateCarrierIpAddress, associatePublicIpAddress, connectionTrackingSpecification, deleteOnTermination, description, deviceIndex, enaQueueCount, enaSrdSpecification, groups, interfaceType, ipv4PrefixCount, ipv4Prefixes, ipv6AddressCount, ipv6Addresses, ipv6PrefixCount, ipv6Prefixes, networkCardIndex, networkInterfaceId, primaryIpv6, privateIpAddress, privateIpAddresses, secondaryPrivateIpAddressCount, subnetId } + +structure ListVolumesInRecycleBinResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about the volumes. -/ + volumes : Option (List VolumeRecycleBinInfo) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListVolumesInRecycleBinResult where + schema := .struct "ListVolumesInRecycleBinResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "Volumes", xmlName := some "volumeSet", queryName := some "VolumeSet" }, (.list (Shape.schema VolumeRecycleBinInfo) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "Volumes" x.volumes] + ofValue v := do + let nextToken ← v.opt "NextToken" + let volumes ← v.opt "Volumes" + return { nextToken, volumes } + +/-- Describes the Classic Load Balancers and target groups to attach to a Spot Fleet request. -/ +structure LoadBalancersConfig where + /-- The Classic Load Balancers. -/ + classicLoadBalancersConfig : Option ClassicLoadBalancersConfig := none + /-- The target groups. -/ + targetGroupsConfig : Option TargetGroupsConfig := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LoadBalancersConfig where + schema := .struct "LoadBalancersConfig" [({ name := "ClassicLoadBalancersConfig", xmlName := some "classicLoadBalancersConfig", queryName := some "ClassicLoadBalancersConfig" }, (Shape.schema ClassicLoadBalancersConfig)), + ({ name := "TargetGroupsConfig", xmlName := some "targetGroupsConfig", queryName := some "TargetGroupsConfig" }, (Shape.schema TargetGroupsConfig))] + toValue x := record [putOpt "ClassicLoadBalancersConfig" x.classicLoadBalancersConfig, putOpt "TargetGroupsConfig" x.targetGroupsConfig] + ofValue v := do + let classicLoadBalancersConfig ← v.opt "ClassicLoadBalancersConfig" + let targetGroupsConfig ← v.opt "TargetGroupsConfig" + return { classicLoadBalancersConfig, targetGroupsConfig } + +/-- Describes modifications to the load permissions of an Amazon FPGA image (AFI). -/ +structure LoadPermissionModifications where + /-- The load permissions to add. -/ + add : Option (List LoadPermissionRequest) := none + /-- The load permissions to remove. -/ + remove : Option (List LoadPermissionRequest) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LoadPermissionModifications where + schema := .struct "LoadPermissionModifications" [({ name := "Add" }, (.list (Shape.schema LoadPermissionRequest) "item")), + ({ name := "Remove" }, (.list (Shape.schema LoadPermissionRequest) "item"))] + toValue x := record [putOpt "Add" x.add, putOpt "Remove" x.remove] + ofValue v := do + let add ← v.opt "Add" + let remove ← v.opt "Remove" + return { add, remove } + +/-- Information about a System Integrity Protection (SIP) modification task or volume ownership delegation task for an Amazon EC2 Mac instance. -/ +structure MacModificationTask where + /-- The ID of the Amazon EC2 Mac instance. -/ + instanceId : Option String := none + /-- The ID of task. -/ + macModificationTaskId : Option String := none + /-- [SIP modification tasks only] Information about the SIP configuration. -/ + macSystemIntegrityProtectionConfig : Option MacSystemIntegrityProtectionConfiguration := none + /-- The date and time the task was created, in the UTC timezone ( YYYY-MM-DDThh:mm:ss.sssZ ). -/ + startTime : Option Timestamp := none + /-- The tags assigned to the task. -/ + tags : Option (List Tag) := none + /-- The state of the task. -/ + taskState : Option MacModificationTaskState := none + /-- The type of task. -/ + taskType : Option MacModificationTaskType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MacModificationTask where + schema := .struct "MacModificationTask" [({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "MacModificationTaskId", xmlName := some "macModificationTaskId", queryName := some "MacModificationTaskId" }, .string), + ({ name := "MacSystemIntegrityProtectionConfig", xmlName := some "macSystemIntegrityProtectionConfig", queryName := some "MacSystemIntegrityProtectionConfig" }, (Shape.schema MacSystemIntegrityProtectionConfiguration)), + ({ name := "StartTime", xmlName := some "startTime", queryName := some "StartTime" }, (.time none)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TaskState", xmlName := some "taskState", queryName := some "TaskState" }, (Shape.schema MacModificationTaskState)), + ({ name := "TaskType", xmlName := some "taskType", queryName := some "TaskType" }, (Shape.schema MacModificationTaskType))] + toValue x := record [putOpt "InstanceId" x.instanceId, putOpt "MacModificationTaskId" x.macModificationTaskId, putOpt "MacSystemIntegrityProtectionConfig" x.macSystemIntegrityProtectionConfig, putOpt "StartTime" x.startTime, putOpt "Tags" x.tags, putOpt "TaskState" x.taskState, putOpt "TaskType" x.taskType] + ofValue v := do + let instanceId ← v.opt "InstanceId" + let macModificationTaskId ← v.opt "MacModificationTaskId" + let macSystemIntegrityProtectionConfig ← v.opt "MacSystemIntegrityProtectionConfig" + let startTime ← v.opt "StartTime" + let tags ← v.opt "Tags" + let taskState ← v.opt "TaskState" + let taskType ← v.opt "TaskType" + return { instanceId, macModificationTaskId, macSystemIntegrityProtectionConfig, startTime, tags, taskState, taskType } + +/-- Describes the media accelerators for the instance type. -/ +structure MediaAcceleratorInfo where + /-- Describes the media accelerators for the instance type. -/ + accelerators : Option (List MediaDeviceInfo) := none + /-- The total size of the memory for the media accelerators for the instance type, in MiB. -/ + totalMediaMemoryInMiB : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MediaAcceleratorInfo where + schema := .struct "MediaAcceleratorInfo" [({ name := "Accelerators", xmlName := some "accelerators", queryName := some "Accelerators" }, (.list (Shape.schema MediaDeviceInfo) "item")), + ({ name := "TotalMediaMemoryInMiB", xmlName := some "totalMediaMemoryInMiB", queryName := some "TotalMediaMemoryInMiB" }, .int)] + toValue x := record [putOpt "Accelerators" x.accelerators, putOpt "TotalMediaMemoryInMiB" x.totalMediaMemoryInMiB] + ofValue v := do + let accelerators ← v.opt "Accelerators" + let totalMediaMemoryInMiB ← v.opt "TotalMediaMemoryInMiB" + return { accelerators, totalMediaMemoryInMiB } + +/-- Contains a single data point from a capacity metrics query, including the dimension values, timestamp, and metric values for that specific combination. -/ +structure MetricDataResult where + /-- The dimension values that identify this specific data point, such as account ID, region, and instance family. -/ + dimension : Option CapacityManagerDimension := none + /-- The metric values and statistics for this data point, containing the actual capacity usage numbers. -/ + metricValues : Option (List MetricValue) := none + /-- The timestamp for this data point, indicating when the capacity usage occurred. -/ + timestamp : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MetricDataResult where + schema := .struct "MetricDataResult" [({ name := "Dimension", xmlName := some "dimension", queryName := some "Dimension" }, (Shape.schema CapacityManagerDimension)), + ({ name := "MetricValues", xmlName := some "metricValueSet", queryName := some "MetricValueSet" }, (.list (Shape.schema MetricValue) "item")), + ({ name := "Timestamp", xmlName := some "timestamp", queryName := some "Timestamp" }, (.time none))] + toValue x := record [putOpt "Dimension" x.dimension, putOpt "MetricValues" x.metricValues, putOpt "Timestamp" x.timestamp] + ofValue v := do + let dimension ← v.opt "Dimension" + let metricValues ← v.opt "MetricValues" + let timestamp ← v.opt "Timestamp" + return { dimension, metricValues, timestamp } + +structure ModifyAddressAttributeResult where + /-- Information about the Elastic IP address. -/ + address : Option AddressAttribute := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyAddressAttributeResult where + schema := .struct "ModifyAddressAttributeResult" [({ name := "Address", xmlName := some "address", queryName := some "Address" }, (Shape.schema AddressAttribute))] + toValue x := record [putOpt "Address" x.address] + ofValue v := do + let address ← v.opt "Address" + return { address } + +structure ModifyApplicationStatusCheckRequest where + /-- The aggregation setting for the application status check. -/ + aggregation : Option AggregationStatusEnum := none + /-- The ID of the application status check to modify. -/ + applicationStatusCheckId : String + /-- A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. -/ + clientToken : Option String := none + /-- The index of the network device to use for the health check. -/ + deviceIndex : Option Int := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The number of consecutive failed health checks before the application status is considered impaired. -/ + failureThreshold : Option Int := none + /-- The health check paths to use for the application status check. -/ + healthCheckPaths : Option (List HealthCheckPathRequestObject) := none + /-- The number of seconds to wait before starting health checks after an instance is launched. -/ + initializationGracePeriodSeconds : Option Int := none + /-- The interval, in seconds, between health checks. -/ + interval : Option Int := none + /-- The IP scope to use for the health check. -/ + ipScope : Option IpScopeEnum := none + /-- The IP version to use for the health check. -/ + ipVersion : Option IpVersionEnum := none + /-- The URL path to use for the health check HTTP request (for example, /health or /status ). -/ + path : Option String := none + /-- The port to use for the health check. -/ + port : Option Int := none + /-- The protocol to use for the health check. -/ + protocol : Option NetworkProtocolEnum := none + /-- The HTTP status codes that indicate a successful health check response. -/ + statusCodeMatcher : Option String := none + /-- The number of consecutive successful health checks before the application status is considered healthy. -/ + successThreshold : Option Int := none + /-- The amount of time, in seconds, to wait for a health check response before considering it failed. -/ + timeout : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyApplicationStatusCheckRequest where + schema := .struct "ModifyApplicationStatusCheckRequest" [({ name := "Aggregation" }, (Shape.schema AggregationStatusEnum)), + ({ name := "ApplicationStatusCheckId", required := true }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "DeviceIndex" }, .int), + ({ name := "DryRun" }, .bool), + ({ name := "FailureThreshold" }, .int), + ({ name := "HealthCheckPaths", xmlName := some "HealthCheckPath" }, (.list (Shape.schema HealthCheckPathRequestObject) "item")), + ({ name := "InitializationGracePeriodSeconds" }, .int), + ({ name := "Interval" }, .int), + ({ name := "IpScope" }, (Shape.schema IpScopeEnum)), + ({ name := "IpVersion" }, (Shape.schema IpVersionEnum)), + ({ name := "Path" }, .string), + ({ name := "Port" }, .int), + ({ name := "Protocol" }, (Shape.schema NetworkProtocolEnum)), + ({ name := "StatusCodeMatcher" }, .string), + ({ name := "SuccessThreshold" }, .int), + ({ name := "Timeout" }, .int)] + toValue x := record [putOpt "Aggregation" x.aggregation, put "ApplicationStatusCheckId" x.applicationStatusCheckId, putOpt "ClientToken" x.clientToken, putOpt "DeviceIndex" x.deviceIndex, putOpt "DryRun" x.dryRun, putOpt "FailureThreshold" x.failureThreshold, putOpt "HealthCheckPaths" x.healthCheckPaths, putOpt "InitializationGracePeriodSeconds" x.initializationGracePeriodSeconds, putOpt "Interval" x.interval, putOpt "IpScope" x.ipScope, putOpt "IpVersion" x.ipVersion, putOpt "Path" x.path, putOpt "Port" x.port, putOpt "Protocol" x.protocol, putOpt "StatusCodeMatcher" x.statusCodeMatcher, putOpt "SuccessThreshold" x.successThreshold, putOpt "Timeout" x.timeout] + ofValue v := do + let aggregation ← v.opt "Aggregation" + let applicationStatusCheckId ← v.req "ApplicationStatusCheckId" + let clientToken ← v.opt "ClientToken" + let deviceIndex ← v.opt "DeviceIndex" + let dryRun ← v.opt "DryRun" + let failureThreshold ← v.opt "FailureThreshold" + let healthCheckPaths ← v.opt "HealthCheckPaths" + let initializationGracePeriodSeconds ← v.opt "InitializationGracePeriodSeconds" + let interval ← v.opt "Interval" + let ipScope ← v.opt "IpScope" + let ipVersion ← v.opt "IpVersion" + let path ← v.opt "Path" + let port ← v.opt "Port" + let protocol ← v.opt "Protocol" + let statusCodeMatcher ← v.opt "StatusCodeMatcher" + let successThreshold ← v.opt "SuccessThreshold" + let timeout ← v.opt "Timeout" + return { aggregation, applicationStatusCheckId, clientToken, deviceIndex, dryRun, failureThreshold, healthCheckPaths, initializationGracePeriodSeconds, interval, ipScope, ipVersion, path, port, protocol, statusCodeMatcher, successThreshold, timeout } + +structure ModifyDefaultCreditSpecificationResult where + /-- The default credit option for CPU usage of the instance family. -/ + instanceFamilyCreditSpecification : Option InstanceFamilyCreditSpecification := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyDefaultCreditSpecificationResult where + schema := .struct "ModifyDefaultCreditSpecificationResult" [({ name := "InstanceFamilyCreditSpecification", xmlName := some "instanceFamilyCreditSpecification", queryName := some "InstanceFamilyCreditSpecification" }, (Shape.schema InstanceFamilyCreditSpecification))] + toValue x := record [putOpt "InstanceFamilyCreditSpecification" x.instanceFamilyCreditSpecification] + ofValue v := do + let instanceFamilyCreditSpecification ← v.opt "InstanceFamilyCreditSpecification" + return { instanceFamilyCreditSpecification } + +structure ModifyHostsResult where + /-- The IDs of the Dedicated Hosts that were successfully modified. -/ + successful : Option (List String) := none + /-- The IDs of the Dedicated Hosts that could not be modified. -/ + unsuccessful : Option (List UnsuccessfulItem) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyHostsResult where + schema := .struct "ModifyHostsResult" [({ name := "Successful", xmlName := some "successful", queryName := some "Successful" }, (.list .string "item")), + ({ name := "Unsuccessful", xmlName := some "unsuccessful", queryName := some "Unsuccessful" }, (.list (Shape.schema UnsuccessfulItem) "item"))] + toValue x := record [putOpt "Successful" x.successful, putOpt "Unsuccessful" x.unsuccessful] + ofValue v := do + let successful ← v.opt "Successful" + let unsuccessful ← v.opt "Unsuccessful" + return { successful, unsuccessful } + +structure ModifyInstanceAttributeRequest where + /-- The name of the attribute to modify. -/ + «attribute» : Option InstanceAttributeName := none + /-- Modifies the DeleteOnTermination attribute for volumes that are currently attached. -/ + blockDeviceMappings : Option (List InstanceBlockDeviceMappingSpecification) := none + /-- Indicates whether an instance is enabled for stop protection. -/ + disableApiStop : Option AttributeBooleanValue := none + /-- Enable or disable termination protection for the instance. -/ + disableApiTermination : Option AttributeBooleanValue := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Specifies whether the instance is optimized for Amazon EBS I/O. -/ + ebsOptimized : Option AttributeBooleanValue := none + /-- Set to true to enable enhanced networking with ENA for the instance. -/ + enaSupport : Option AttributeBooleanValue := none + /-- Enables or disables the instance for Amazon Web Services Nitro Enclaves. -/ + enclaveOptions : Option EnclaveOptionsRequest := none + /-- Replaces the security groups of the instance with the specified security groups. -/ + groups : Option (List String) := none + /-- The ID of the instance. -/ + instanceId : String + /-- Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown). -/ + instanceInitiatedShutdownBehavior : Option AttributeValue := none + /-- Changes the instance type to the specified value. -/ + instanceType : Option AttributeValue := none + /-- Changes the instance's kernel to the specified value. -/ + kernel : Option AttributeValue := none + /-- Changes the instance's RAM disk to the specified value. -/ + ramdisk : Option AttributeValue := none + /-- Enable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives. -/ + sourceDestCheck : Option AttributeBooleanValue := none + /-- Set to simple to enable enhanced networking with the Intel 82599 Virtual Function interface for the instance. -/ + sriovNetSupport : Option AttributeValue := none + /-- Changes the instance's user data to the specified value. -/ + userData : Option SecureBlobAttributeValue := none + /-- A new value for the attribute. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceAttributeRequest where + schema := .struct "ModifyInstanceAttributeRequest" [({ name := "Attribute", xmlName := some "attribute", queryName := some "Attribute" }, (Shape.schema InstanceAttributeName)), + ({ name := "BlockDeviceMappings", xmlName := some "blockDeviceMapping", queryName := some "BlockDeviceMapping" }, (.list (Shape.schema InstanceBlockDeviceMappingSpecification) "item")), + ({ name := "DisableApiStop" }, (Shape.schema AttributeBooleanValue)), + ({ name := "DisableApiTermination", xmlName := some "disableApiTermination", queryName := some "DisableApiTermination" }, (Shape.schema AttributeBooleanValue)), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "EbsOptimized", xmlName := some "ebsOptimized", queryName := some "EbsOptimized" }, (Shape.schema AttributeBooleanValue)), + ({ name := "EnaSupport", xmlName := some "enaSupport", queryName := some "EnaSupport" }, (Shape.schema AttributeBooleanValue)), + ({ name := "EnclaveOptions" }, (Shape.schema EnclaveOptionsRequest)), + ({ name := "Groups", xmlName := some "GroupId" }, (.list .string "groupId")), + ({ name := "InstanceId", required := true, xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "InstanceInitiatedShutdownBehavior", xmlName := some "instanceInitiatedShutdownBehavior", queryName := some "InstanceInitiatedShutdownBehavior" }, (Shape.schema AttributeValue)), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, (Shape.schema AttributeValue)), + ({ name := "Kernel", xmlName := some "kernel", queryName := some "Kernel" }, (Shape.schema AttributeValue)), + ({ name := "Ramdisk", xmlName := some "ramdisk", queryName := some "Ramdisk" }, (Shape.schema AttributeValue)), + ({ name := "SourceDestCheck" }, (Shape.schema AttributeBooleanValue)), + ({ name := "SriovNetSupport", xmlName := some "sriovNetSupport", queryName := some "SriovNetSupport" }, (Shape.schema AttributeValue)), + ({ name := "UserData", xmlName := some "userData", queryName := some "UserData" }, (Shape.schema SecureBlobAttributeValue)), + ({ name := "Value", xmlName := some "value", queryName := some "Value" }, .string)] + toValue x := record [putOpt "Attribute" x.«attribute», putOpt "BlockDeviceMappings" x.blockDeviceMappings, putOpt "DisableApiStop" x.disableApiStop, putOpt "DisableApiTermination" x.disableApiTermination, putOpt "DryRun" x.dryRun, putOpt "EbsOptimized" x.ebsOptimized, putOpt "EnaSupport" x.enaSupport, putOpt "EnclaveOptions" x.enclaveOptions, putOpt "Groups" x.groups, put "InstanceId" x.instanceId, putOpt "InstanceInitiatedShutdownBehavior" x.instanceInitiatedShutdownBehavior, putOpt "InstanceType" x.instanceType, putOpt "Kernel" x.kernel, putOpt "Ramdisk" x.ramdisk, putOpt "SourceDestCheck" x.sourceDestCheck, putOpt "SriovNetSupport" x.sriovNetSupport, putOpt "UserData" x.userData, putOpt "Value" x.value] + ofValue v := do + let «attribute» ← v.opt "Attribute" + let blockDeviceMappings ← v.opt "BlockDeviceMappings" + let disableApiStop ← v.opt "DisableApiStop" + let disableApiTermination ← v.opt "DisableApiTermination" + let dryRun ← v.opt "DryRun" + let ebsOptimized ← v.opt "EbsOptimized" + let enaSupport ← v.opt "EnaSupport" + let enclaveOptions ← v.opt "EnclaveOptions" + let groups ← v.opt "Groups" + let instanceId ← v.req "InstanceId" + let instanceInitiatedShutdownBehavior ← v.opt "InstanceInitiatedShutdownBehavior" + let instanceType ← v.opt "InstanceType" + let kernel ← v.opt "Kernel" + let ramdisk ← v.opt "Ramdisk" + let sourceDestCheck ← v.opt "SourceDestCheck" + let sriovNetSupport ← v.opt "SriovNetSupport" + let userData ← v.opt "UserData" + let value ← v.opt "Value" + return { «attribute», blockDeviceMappings, disableApiStop, disableApiTermination, dryRun, ebsOptimized, enaSupport, enclaveOptions, groups, instanceId, instanceInitiatedShutdownBehavior, instanceType, kernel, ramdisk, sourceDestCheck, sriovNetSupport, userData, value } + +structure ModifyInstanceCapacityReservationAttributesRequest where + /-- Information about the Capacity Reservation targeting option. -/ + capacityReservationSpecification : CapacityReservationSpecification + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the instance to be modified. -/ + instanceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceCapacityReservationAttributesRequest where + schema := .struct "ModifyInstanceCapacityReservationAttributesRequest" [({ name := "CapacityReservationSpecification", required := true }, (Shape.schema CapacityReservationSpecification)), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceId", required := true }, .string)] + toValue x := record [put "CapacityReservationSpecification" x.capacityReservationSpecification, putOpt "DryRun" x.dryRun, put "InstanceId" x.instanceId] + ofValue v := do + let capacityReservationSpecification ← v.req "CapacityReservationSpecification" + let dryRun ← v.opt "DryRun" + let instanceId ← v.req "InstanceId" + return { capacityReservationSpecification, dryRun, instanceId } + +structure ModifyInstanceEventStartTimeResult where + /-- Information about the event. -/ + event : Option InstanceStatusEvent := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceEventStartTimeResult where + schema := .struct "ModifyInstanceEventStartTimeResult" [({ name := "Event", xmlName := some "event", queryName := some "Event" }, (Shape.schema InstanceStatusEvent))] + toValue x := record [putOpt "Event" x.event] + ofValue v := do + let event ← v.opt "Event" + return { event } + +structure ModifyInstanceEventWindowRequest where + /-- The cron expression of the event window, for example, * 0-4,20-23 * * 1,5 . -/ + cronExpression : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the event window. -/ + instanceEventWindowId : String + /-- The name of the event window. -/ + name : Option String := none + /-- The time ranges of the event window. -/ + timeRanges : Option (List InstanceEventWindowTimeRangeRequest) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceEventWindowRequest where + schema := .struct "ModifyInstanceEventWindowRequest" [({ name := "CronExpression" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceEventWindowId", required := true }, .string), + ({ name := "Name" }, .string), + ({ name := "TimeRanges", xmlName := some "TimeRange" }, (.list (Shape.schema InstanceEventWindowTimeRangeRequest) "member"))] + toValue x := record [putOpt "CronExpression" x.cronExpression, putOpt "DryRun" x.dryRun, put "InstanceEventWindowId" x.instanceEventWindowId, putOpt "Name" x.name, putOpt "TimeRanges" x.timeRanges] + ofValue v := do + let cronExpression ← v.opt "CronExpression" + let dryRun ← v.opt "DryRun" + let instanceEventWindowId ← v.req "InstanceEventWindowId" + let name ← v.opt "Name" + let timeRanges ← v.opt "TimeRanges" + return { cronExpression, dryRun, instanceEventWindowId, name, timeRanges } + +structure ModifyInstanceMetadataOptionsResult where + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- The metadata options for the instance. -/ + instanceMetadataOptions : Option InstanceMetadataOptionsResponse := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceMetadataOptionsResult where + schema := .struct "ModifyInstanceMetadataOptionsResult" [({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "InstanceMetadataOptions", xmlName := some "instanceMetadataOptions", queryName := some "InstanceMetadataOptions" }, (Shape.schema InstanceMetadataOptionsResponse))] + toValue x := record [putOpt "InstanceId" x.instanceId, putOpt "InstanceMetadataOptions" x.instanceMetadataOptions] + ofValue v := do + let instanceId ← v.opt "InstanceId" + let instanceMetadataOptions ← v.opt "InstanceMetadataOptions" + return { instanceId, instanceMetadataOptions } + +structure ModifyIpamPolicyAllocationRulesResult where + /-- The modified IPAM policy containing the updated allocation rules. -/ + ipamPolicyDocument : Option IpamPolicyDocument := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIpamPolicyAllocationRulesResult where + schema := .struct "ModifyIpamPolicyAllocationRulesResult" [({ name := "IpamPolicyDocument", xmlName := some "ipamPolicyDocument", queryName := some "IpamPolicyDocument" }, (Shape.schema IpamPolicyDocument))] + toValue x := record [putOpt "IpamPolicyDocument" x.ipamPolicyDocument] + ofValue v := do + let ipamPolicyDocument ← v.opt "IpamPolicyDocument" + return { ipamPolicyDocument } + +structure ModifyIpamPoolAllocationResult where + /-- The modified IPAM pool allocation. -/ + ipamPoolAllocation : Option IpamPoolAllocation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIpamPoolAllocationResult where + schema := .struct "ModifyIpamPoolAllocationResult" [({ name := "IpamPoolAllocation", xmlName := some "ipamPoolAllocation", queryName := some "IpamPoolAllocation" }, (Shape.schema IpamPoolAllocation))] + toValue x := record [putOpt "IpamPoolAllocation" x.ipamPoolAllocation] + ofValue v := do + let ipamPoolAllocation ← v.opt "IpamPoolAllocation" + return { ipamPoolAllocation } + +structure ModifyIpamPrefixListResolverResult where + /-- Information about the modified IPAM prefix list resolver. -/ + ipamPrefixListResolver : Option IpamPrefixListResolver := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIpamPrefixListResolverResult where + schema := .struct "ModifyIpamPrefixListResolverResult" [({ name := "IpamPrefixListResolver", xmlName := some "ipamPrefixListResolver", queryName := some "IpamPrefixListResolver" }, (Shape.schema IpamPrefixListResolver))] + toValue x := record [putOpt "IpamPrefixListResolver" x.ipamPrefixListResolver] + ofValue v := do + let ipamPrefixListResolver ← v.opt "IpamPrefixListResolver" + return { ipamPrefixListResolver } + +structure ModifyIpamPrefixListResolverTargetResult where + /-- Information about the modified IPAM prefix list resolver target. -/ + ipamPrefixListResolverTarget : Option IpamPrefixListResolverTarget := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIpamPrefixListResolverTargetResult where + schema := .struct "ModifyIpamPrefixListResolverTargetResult" [({ name := "IpamPrefixListResolverTarget", xmlName := some "ipamPrefixListResolverTarget", queryName := some "IpamPrefixListResolverTarget" }, (Shape.schema IpamPrefixListResolverTarget))] + toValue x := record [putOpt "IpamPrefixListResolverTarget" x.ipamPrefixListResolverTarget] + ofValue v := do + let ipamPrefixListResolverTarget ← v.opt "IpamPrefixListResolverTarget" + return { ipamPrefixListResolverTarget } + +structure ModifyIpamResourceCidrResult where + /-- The CIDR of the resource. -/ + ipamResourceCidr : Option IpamResourceCidr := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIpamResourceCidrResult where + schema := .struct "ModifyIpamResourceCidrResult" [({ name := "IpamResourceCidr", xmlName := some "ipamResourceCidr", queryName := some "IpamResourceCidr" }, (Shape.schema IpamResourceCidr))] + toValue x := record [putOpt "IpamResourceCidr" x.ipamResourceCidr] + ofValue v := do + let ipamResourceCidr ← v.opt "IpamResourceCidr" + return { ipamResourceCidr } + +structure ModifyIpamResourceDiscoveryResult where + /-- A resource discovery. -/ + ipamResourceDiscovery : Option IpamResourceDiscovery := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIpamResourceDiscoveryResult where + schema := .struct "ModifyIpamResourceDiscoveryResult" [({ name := "IpamResourceDiscovery", xmlName := some "ipamResourceDiscovery", queryName := some "IpamResourceDiscovery" }, (Shape.schema IpamResourceDiscovery))] + toValue x := record [putOpt "IpamResourceDiscovery" x.ipamResourceDiscovery] + ofValue v := do + let ipamResourceDiscovery ← v.opt "IpamResourceDiscovery" + return { ipamResourceDiscovery } + +structure ModifyIpamResult where + /-- The results of the modification. -/ + ipam : Option Ipam := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIpamResult where + schema := .struct "ModifyIpamResult" [({ name := "Ipam", xmlName := some "ipam", queryName := some "Ipam" }, (Shape.schema Ipam))] + toValue x := record [putOpt "Ipam" x.ipam] + ofValue v := do + let ipam ← v.opt "Ipam" + return { ipam } + +structure ModifyIpamRoutingPolicyRegistrationResult where + /-- Information about the routing policy registration delta created by this modification. -/ + ipamRoutingPolicyRegistrationDelta : Option IpamRoutingPolicyRegistrationDelta := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIpamRoutingPolicyRegistrationResult where + schema := .struct "ModifyIpamRoutingPolicyRegistrationResult" [({ name := "IpamRoutingPolicyRegistrationDelta", xmlName := some "ipamRoutingPolicyRegistrationDelta", queryName := some "IpamRoutingPolicyRegistrationDelta" }, (Shape.schema IpamRoutingPolicyRegistrationDelta))] + toValue x := record [putOpt "IpamRoutingPolicyRegistrationDelta" x.ipamRoutingPolicyRegistrationDelta] + ofValue v := do + let ipamRoutingPolicyRegistrationDelta ← v.opt "IpamRoutingPolicyRegistrationDelta" + return { ipamRoutingPolicyRegistrationDelta } + +structure ModifyIpamScopeRequest where + /-- The description of the scope you want to modify. -/ + description : Option String := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The configuration that links an Amazon VPC IPAM scope to an external authority system. -/ + externalAuthorityConfiguration : Option ExternalAuthorityConfiguration := none + /-- The ID of the scope you want to modify. -/ + ipamScopeId : String + /-- Remove the external authority configuration. -/ + removeExternalAuthorityConfiguration : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIpamScopeRequest where + schema := .struct "ModifyIpamScopeRequest" [({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "ExternalAuthorityConfiguration" }, (Shape.schema ExternalAuthorityConfiguration)), + ({ name := "IpamScopeId", required := true }, .string), + ({ name := "RemoveExternalAuthorityConfiguration" }, .bool)] + toValue x := record [putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "ExternalAuthorityConfiguration" x.externalAuthorityConfiguration, put "IpamScopeId" x.ipamScopeId, putOpt "RemoveExternalAuthorityConfiguration" x.removeExternalAuthorityConfiguration] + ofValue v := do + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let externalAuthorityConfiguration ← v.opt "ExternalAuthorityConfiguration" + let ipamScopeId ← v.req "IpamScopeId" + let removeExternalAuthorityConfiguration ← v.opt "RemoveExternalAuthorityConfiguration" + return { description, dryRun, externalAuthorityConfiguration, ipamScopeId, removeExternalAuthorityConfiguration } + +structure ModifyLaunchTemplateResult where + /-- Information about the launch template. -/ + launchTemplate : Option LaunchTemplate := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyLaunchTemplateResult where + schema := .struct "ModifyLaunchTemplateResult" [({ name := "LaunchTemplate", xmlName := some "launchTemplate", queryName := some "LaunchTemplate" }, (Shape.schema LaunchTemplate))] + toValue x := record [putOpt "LaunchTemplate" x.launchTemplate] + ofValue v := do + let launchTemplate ← v.opt "LaunchTemplate" + return { launchTemplate } + +structure ModifyLocalGatewayRouteResult where + /-- Information about the local gateway route table. -/ + route : Option LocalGatewayRoute := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyLocalGatewayRouteResult where + schema := .struct "ModifyLocalGatewayRouteResult" [({ name := "Route", xmlName := some "route", queryName := some "Route" }, (Shape.schema LocalGatewayRoute))] + toValue x := record [putOpt "Route" x.route] + ofValue v := do + let route ← v.opt "Route" + return { route } + +structure ModifyManagedPrefixListResult where + /-- Information about the prefix list. -/ + prefixList : Option ManagedPrefixList := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyManagedPrefixListResult where + schema := .struct "ModifyManagedPrefixListResult" [({ name := "PrefixList", xmlName := some "prefixList", queryName := some "PrefixList" }, (Shape.schema ManagedPrefixList))] + toValue x := record [putOpt "PrefixList" x.prefixList] + ofValue v := do + let prefixList ← v.opt "PrefixList" + return { prefixList } + +structure ModifyManagedResourceVisibilityResult where + /-- The updated managed resource visibility settings for the account. -/ + visibility : Option ManagedResourceVisibilitySettings := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyManagedResourceVisibilityResult where + schema := .struct "ModifyManagedResourceVisibilityResult" [({ name := "Visibility", xmlName := some "visibility", queryName := some "Visibility" }, (Shape.schema ManagedResourceVisibilitySettings))] + toValue x := record [putOpt "Visibility" x.visibility] + ofValue v := do + let visibility ← v.opt "Visibility" + return { visibility } + +structure ModifyMetricCategoryResult where + /-- Information about the metric category. -/ + metricCategory : Option MetricCategory := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyMetricCategoryResult where + schema := .struct "ModifyMetricCategoryResult" [({ name := "MetricCategory", xmlName := some "metricCategory", queryName := some "MetricCategory" }, (Shape.schema MetricCategory))] + toValue x := record [putOpt "MetricCategory" x.metricCategory] + ofValue v := do + let metricCategory ← v.opt "MetricCategory" + return { metricCategory } + +/-- Contains the parameters for ModifyNetworkInterfaceAttribute. -/ +structure ModifyNetworkInterfaceAttributeRequest where + /-- Indicates whether to assign a public IPv4 address to a network interface. -/ + associatePublicIpAddress : Option Bool := none + /-- A list of subnet IDs to associate with the network interface. -/ + associatedSubnetIds : Option (List String) := none + /-- Information about the interface attachment. -/ + attachment : Option NetworkInterfaceAttachmentChanges := none + /-- A connection tracking specification. -/ + connectionTrackingSpecification : Option ConnectionTrackingSpecificationRequest := none + /-- A description for the network interface. -/ + description : Option AttributeValue := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Updates the ENA Express configuration for the network interface that’s attached to the instance. -/ + enaSrdSpecification : Option EnaSrdSpecification := none + /-- If you’re modifying a network interface in a dual-stack or IPv6-only subnet, you have the option to assign a primary IPv6 IP address. -/ + enablePrimaryIpv6 : Option Bool := none + /-- Changes the security groups for the network interface. -/ + groups : Option (List String) := none + /-- The ID of the network interface. -/ + networkInterfaceId : String + /-- Enable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives. -/ + sourceDestCheck : Option AttributeBooleanValue := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyNetworkInterfaceAttributeRequest where + schema := .struct "ModifyNetworkInterfaceAttributeRequest" [({ name := "AssociatePublicIpAddress" }, .bool), + ({ name := "AssociatedSubnetIds", xmlName := some "AssociatedSubnetId" }, (.list .string "AssociatedSubnetId")), + ({ name := "Attachment", xmlName := some "attachment", queryName := some "Attachment" }, (Shape.schema NetworkInterfaceAttachmentChanges)), + ({ name := "ConnectionTrackingSpecification" }, (Shape.schema ConnectionTrackingSpecificationRequest)), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, (Shape.schema AttributeValue)), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "EnaSrdSpecification" }, (Shape.schema EnaSrdSpecification)), + ({ name := "EnablePrimaryIpv6" }, .bool), + ({ name := "Groups", xmlName := some "SecurityGroupId" }, (.list .string "SecurityGroupId")), + ({ name := "NetworkInterfaceId", required := true, xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "SourceDestCheck", xmlName := some "sourceDestCheck", queryName := some "SourceDestCheck" }, (Shape.schema AttributeBooleanValue))] + toValue x := record [putOpt "AssociatePublicIpAddress" x.associatePublicIpAddress, putOpt "AssociatedSubnetIds" x.associatedSubnetIds, putOpt "Attachment" x.attachment, putOpt "ConnectionTrackingSpecification" x.connectionTrackingSpecification, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "EnaSrdSpecification" x.enaSrdSpecification, putOpt "EnablePrimaryIpv6" x.enablePrimaryIpv6, putOpt "Groups" x.groups, put "NetworkInterfaceId" x.networkInterfaceId, putOpt "SourceDestCheck" x.sourceDestCheck] + ofValue v := do + let associatePublicIpAddress ← v.opt "AssociatePublicIpAddress" + let associatedSubnetIds ← v.opt "AssociatedSubnetIds" + let attachment ← v.opt "Attachment" + let connectionTrackingSpecification ← v.opt "ConnectionTrackingSpecification" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let enaSrdSpecification ← v.opt "EnaSrdSpecification" + let enablePrimaryIpv6 ← v.opt "EnablePrimaryIpv6" + let groups ← v.opt "Groups" + let networkInterfaceId ← v.req "NetworkInterfaceId" + let sourceDestCheck ← v.opt "SourceDestCheck" + return { associatePublicIpAddress, associatedSubnetIds, attachment, connectionTrackingSpecification, description, dryRun, enaSrdSpecification, enablePrimaryIpv6, groups, networkInterfaceId, sourceDestCheck } + +/-- Contains the parameters for ModifyReservedInstances. -/ +structure ModifyReservedInstancesRequest where + /-- A unique, case-sensitive token you provide to ensure idempotency of your modification request. -/ + clientToken : Option String := none + /-- The IDs of the Reserved Instances to modify. -/ + reservedInstancesIds : (List String) + /-- The configuration settings for the Reserved Instances to modify. -/ + targetConfigurations : (List ReservedInstancesConfiguration) +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyReservedInstancesRequest where + schema := .struct "ModifyReservedInstancesRequest" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "ReservedInstancesIds", required := true, xmlName := some "ReservedInstancesId" }, (.list .string "ReservedInstancesId")), + ({ name := "TargetConfigurations", required := true, xmlName := some "ReservedInstancesConfigurationSetItemType" }, (.list (Shape.schema ReservedInstancesConfiguration) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, put "ReservedInstancesIds" x.reservedInstancesIds, put "TargetConfigurations" x.targetConfigurations] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let reservedInstancesIds ← v.req "ReservedInstancesIds" + let targetConfigurations ← v.req "TargetConfigurations" + return { clientToken, reservedInstancesIds, targetConfigurations } + +structure ModifyRouteServerResult where + /-- Information about the modified route server. -/ + routeServer : Option RouteServer := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyRouteServerResult where + schema := .struct "ModifyRouteServerResult" [({ name := "RouteServer", xmlName := some "routeServer", queryName := some "RouteServer" }, (Shape.schema RouteServer))] + toValue x := record [putOpt "RouteServer" x.routeServer] + ofValue v := do + let routeServer ← v.opt "RouteServer" + return { routeServer } + +structure ModifySecurityGroupRulesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the security group. -/ + groupId : String + /-- Information about the security group properties to update. -/ + securityGroupRules : (List SecurityGroupRuleUpdate) +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifySecurityGroupRulesRequest where + schema := .struct "ModifySecurityGroupRulesRequest" [({ name := "DryRun" }, .bool), + ({ name := "GroupId", required := true }, .string), + ({ name := "SecurityGroupRules", required := true, xmlName := some "SecurityGroupRule" }, (.list (Shape.schema SecurityGroupRuleUpdate) "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "GroupId" x.groupId, put "SecurityGroupRules" x.securityGroupRules] + ofValue v := do + let dryRun ← v.opt "DryRun" + let groupId ← v.req "GroupId" + let securityGroupRules ← v.req "SecurityGroupRules" + return { dryRun, groupId, securityGroupRules } + +structure ModifyTrafficMirrorFilterRuleResult where + /-- Tags are not returned for ModifyTrafficMirrorFilterRule. -/ + trafficMirrorFilterRule : Option TrafficMirrorFilterRule := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTrafficMirrorFilterRuleResult where + schema := .struct "ModifyTrafficMirrorFilterRuleResult" [({ name := "TrafficMirrorFilterRule", xmlName := some "trafficMirrorFilterRule", queryName := some "TrafficMirrorFilterRule" }, (Shape.schema TrafficMirrorFilterRule))] + toValue x := record [putOpt "TrafficMirrorFilterRule" x.trafficMirrorFilterRule] + ofValue v := do + let trafficMirrorFilterRule ← v.opt "TrafficMirrorFilterRule" + return { trafficMirrorFilterRule } + +structure ModifyTrafficMirrorSessionResult where + /-- Information about the Traffic Mirror session. -/ + trafficMirrorSession : Option TrafficMirrorSession := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTrafficMirrorSessionResult where + schema := .struct "ModifyTrafficMirrorSessionResult" [({ name := "TrafficMirrorSession", xmlName := some "trafficMirrorSession", queryName := some "TrafficMirrorSession" }, (Shape.schema TrafficMirrorSession))] + toValue x := record [putOpt "TrafficMirrorSession" x.trafficMirrorSession] + ofValue v := do + let trafficMirrorSession ← v.opt "TrafficMirrorSession" + return { trafficMirrorSession } + +structure ModifyTransitGatewayAttachmentNatConfigurationResult where + /-- The NAT gateway rules for the attachment. -/ + natGatewayRules : Option (List TransitGatewayNatRule) := none + /-- The state of NAT gateway support for the attachment. -/ + natGatewaySupport : Option TransitGatewayAttachmentNatGatewaySupportState := none + /-- Specifies whether the transit gateway installs routes for the NAT CIDRs in the route tables to which the attachment propagates. -/ + natSystemRouteSupport : Option TransitGatewayAttachmentNatSystemRouteSupportValue := none + /-- The ID of the transit gateway attachment. -/ + transitGatewayAttachmentId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTransitGatewayAttachmentNatConfigurationResult where + schema := .struct "ModifyTransitGatewayAttachmentNatConfigurationResult" [({ name := "NatGatewayRules", xmlName := some "natGatewayRuleSet", queryName := some "NatGatewayRuleSet" }, (.list (Shape.schema TransitGatewayNatRule) "item")), + ({ name := "NatGatewaySupport", xmlName := some "natGatewaySupport", queryName := some "NatGatewaySupport" }, (Shape.schema TransitGatewayAttachmentNatGatewaySupportState)), + ({ name := "NatSystemRouteSupport", xmlName := some "natSystemRouteSupport", queryName := some "NatSystemRouteSupport" }, (Shape.schema TransitGatewayAttachmentNatSystemRouteSupportValue)), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string)] + toValue x := record [putOpt "NatGatewayRules" x.natGatewayRules, putOpt "NatGatewaySupport" x.natGatewaySupport, putOpt "NatSystemRouteSupport" x.natSystemRouteSupport, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let natGatewayRules ← v.opt "NatGatewayRules" + let natGatewaySupport ← v.opt "NatGatewaySupport" + let natSystemRouteSupport ← v.opt "NatSystemRouteSupport" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + return { natGatewayRules, natGatewaySupport, natSystemRouteSupport, transitGatewayAttachmentId } + +structure ModifyTransitGatewayMeteringPolicyResult where + /-- Information about the modified transit gateway metering policy. -/ + transitGatewayMeteringPolicy : Option TransitGatewayMeteringPolicy := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTransitGatewayMeteringPolicyResult where + schema := .struct "ModifyTransitGatewayMeteringPolicyResult" [({ name := "TransitGatewayMeteringPolicy", xmlName := some "transitGatewayMeteringPolicy", queryName := some "TransitGatewayMeteringPolicy" }, (Shape.schema TransitGatewayMeteringPolicy))] + toValue x := record [putOpt "TransitGatewayMeteringPolicy" x.transitGatewayMeteringPolicy] + ofValue v := do + let transitGatewayMeteringPolicy ← v.opt "TransitGatewayMeteringPolicy" + return { transitGatewayMeteringPolicy } + +structure ModifyTransitGatewayNetworkFunctionAttachmentResult where + /-- Information about the network function attachment. -/ + transitGatewayNetworkFunctionAttachment : Option TransitGatewayNetworkFunctionAttachment := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTransitGatewayNetworkFunctionAttachmentResult where + schema := .struct "ModifyTransitGatewayNetworkFunctionAttachmentResult" [({ name := "TransitGatewayNetworkFunctionAttachment", xmlName := some "transitGatewayNetworkFunctionAttachment", queryName := some "TransitGatewayNetworkFunctionAttachment" }, (Shape.schema TransitGatewayNetworkFunctionAttachment))] + toValue x := record [putOpt "TransitGatewayNetworkFunctionAttachment" x.transitGatewayNetworkFunctionAttachment] + ofValue v := do + let transitGatewayNetworkFunctionAttachment ← v.opt "TransitGatewayNetworkFunctionAttachment" + return { transitGatewayNetworkFunctionAttachment } + +structure ModifyTransitGatewayPeeringAttachmentRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The options to modify for the transit gateway peering attachment. -/ + options : Option ModifyTransitGatewayPeeringAttachmentRequestOptions := none + /-- The ID of the transit gateway peering attachment. -/ + transitGatewayAttachmentId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTransitGatewayPeeringAttachmentRequest where + schema := .struct "ModifyTransitGatewayPeeringAttachmentRequest" [({ name := "DryRun" }, .bool), + ({ name := "Options" }, (Shape.schema ModifyTransitGatewayPeeringAttachmentRequestOptions)), + ({ name := "TransitGatewayAttachmentId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "Options" x.options, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let options ← v.opt "Options" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + return { dryRun, options, transitGatewayAttachmentId } + +structure ModifyTransitGatewayPolicyTableEntryRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The updated matching criteria for the policy table entry. -/ + policyRule : Option TransitGatewayRequestPolicyRule := none + /-- The rule number of the policy table entry to modify. -/ + policyRuleNumber : String + /-- The ID of the transit gateway route table to use for traffic matching this rule. -/ + targetRouteTableId : Option String := none + /-- The ID of the transit gateway policy table. -/ + transitGatewayPolicyTableId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTransitGatewayPolicyTableEntryRequest where + schema := .struct "ModifyTransitGatewayPolicyTableEntryRequest" [({ name := "DryRun" }, .bool), + ({ name := "PolicyRule" }, (Shape.schema TransitGatewayRequestPolicyRule)), + ({ name := "PolicyRuleNumber", required := true }, .string), + ({ name := "TargetRouteTableId" }, .string), + ({ name := "TransitGatewayPolicyTableId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "PolicyRule" x.policyRule, put "PolicyRuleNumber" x.policyRuleNumber, putOpt "TargetRouteTableId" x.targetRouteTableId, put "TransitGatewayPolicyTableId" x.transitGatewayPolicyTableId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let policyRule ← v.opt "PolicyRule" + let policyRuleNumber ← v.req "PolicyRuleNumber" + let targetRouteTableId ← v.opt "TargetRouteTableId" + let transitGatewayPolicyTableId ← v.req "TransitGatewayPolicyTableId" + return { dryRun, policyRule, policyRuleNumber, targetRouteTableId, transitGatewayPolicyTableId } + +structure ModifyTransitGatewayRequest where + /-- The description for the transit gateway. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The options to modify. -/ + options : Option ModifyTransitGatewayOptions := none + /-- The ID of the transit gateway. -/ + transitGatewayId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTransitGatewayRequest where + schema := .struct "ModifyTransitGatewayRequest" [({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "Options" }, (Shape.schema ModifyTransitGatewayOptions)), + ({ name := "TransitGatewayId", required := true }, .string)] + toValue x := record [putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "Options" x.options, put "TransitGatewayId" x.transitGatewayId] + ofValue v := do + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let options ← v.opt "Options" + let transitGatewayId ← v.req "TransitGatewayId" + return { description, dryRun, options, transitGatewayId } + +structure ModifyTransitGatewayVpcAttachmentRequest where + /-- The IDs of one or more subnets to add. -/ + addSubnetIds : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The new VPC attachment options. -/ + options : Option ModifyTransitGatewayVpcAttachmentRequestOptions := none + /-- The IDs of one or more subnets to remove. -/ + removeSubnetIds : Option (List String) := none + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTransitGatewayVpcAttachmentRequest where + schema := .struct "ModifyTransitGatewayVpcAttachmentRequest" [({ name := "AddSubnetIds" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "Options" }, (Shape.schema ModifyTransitGatewayVpcAttachmentRequestOptions)), + ({ name := "RemoveSubnetIds" }, (.list .string "item")), + ({ name := "TransitGatewayAttachmentId", required := true }, .string)] + toValue x := record [putOpt "AddSubnetIds" x.addSubnetIds, putOpt "DryRun" x.dryRun, putOpt "Options" x.options, putOpt "RemoveSubnetIds" x.removeSubnetIds, put "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let addSubnetIds ← v.opt "AddSubnetIds" + let dryRun ← v.opt "DryRun" + let options ← v.opt "Options" + let removeSubnetIds ← v.opt "RemoveSubnetIds" + let transitGatewayAttachmentId ← v.req "TransitGatewayAttachmentId" + return { addSubnetIds, dryRun, options, removeSubnetIds, transitGatewayAttachmentId } + +structure ModifyVerifiedAccessEndpointRequest where + /-- The CIDR options. -/ + cidrOptions : Option ModifyVerifiedAccessEndpointCidrOptions := none + /-- A unique, case-sensitive token that you provide to ensure idempotency of your modification request. -/ + clientToken : Option String := none + /-- A description for the Verified Access endpoint. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The load balancer details if creating the Verified Access endpoint as load-balancer type. -/ + loadBalancerOptions : Option ModifyVerifiedAccessEndpointLoadBalancerOptions := none + /-- The network interface options. -/ + networkInterfaceOptions : Option ModifyVerifiedAccessEndpointEniOptions := none + /-- The RDS options. -/ + rdsOptions : Option ModifyVerifiedAccessEndpointRdsOptions := none + /-- The ID of the Verified Access endpoint. -/ + verifiedAccessEndpointId : String + /-- The ID of the Verified Access group. -/ + verifiedAccessGroupId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessEndpointRequest where + schema := .struct "ModifyVerifiedAccessEndpointRequest" [({ name := "CidrOptions" }, (Shape.schema ModifyVerifiedAccessEndpointCidrOptions)), + ({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "LoadBalancerOptions" }, (Shape.schema ModifyVerifiedAccessEndpointLoadBalancerOptions)), + ({ name := "NetworkInterfaceOptions" }, (Shape.schema ModifyVerifiedAccessEndpointEniOptions)), + ({ name := "RdsOptions" }, (Shape.schema ModifyVerifiedAccessEndpointRdsOptions)), + ({ name := "VerifiedAccessEndpointId", required := true }, .string), + ({ name := "VerifiedAccessGroupId" }, .string)] + toValue x := record [putOpt "CidrOptions" x.cidrOptions, putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "LoadBalancerOptions" x.loadBalancerOptions, putOpt "NetworkInterfaceOptions" x.networkInterfaceOptions, putOpt "RdsOptions" x.rdsOptions, put "VerifiedAccessEndpointId" x.verifiedAccessEndpointId, putOpt "VerifiedAccessGroupId" x.verifiedAccessGroupId] + ofValue v := do + let cidrOptions ← v.opt "CidrOptions" + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let loadBalancerOptions ← v.opt "LoadBalancerOptions" + let networkInterfaceOptions ← v.opt "NetworkInterfaceOptions" + let rdsOptions ← v.opt "RdsOptions" + let verifiedAccessEndpointId ← v.req "VerifiedAccessEndpointId" + let verifiedAccessGroupId ← v.opt "VerifiedAccessGroupId" + return { cidrOptions, clientToken, description, dryRun, loadBalancerOptions, networkInterfaceOptions, rdsOptions, verifiedAccessEndpointId, verifiedAccessGroupId } + +structure ModifyVerifiedAccessGroupResult where + /-- Details about the Verified Access group. -/ + verifiedAccessGroup : Option VerifiedAccessGroup := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessGroupResult where + schema := .struct "ModifyVerifiedAccessGroupResult" [({ name := "VerifiedAccessGroup", xmlName := some "verifiedAccessGroup", queryName := some "VerifiedAccessGroup" }, (Shape.schema VerifiedAccessGroup))] + toValue x := record [putOpt "VerifiedAccessGroup" x.verifiedAccessGroup] + ofValue v := do + let verifiedAccessGroup ← v.opt "VerifiedAccessGroup" + return { verifiedAccessGroup } + +structure ModifyVerifiedAccessInstanceLoggingConfigurationRequest where + /-- The configuration options for Verified Access instances. -/ + accessLogs : VerifiedAccessLogOptions + /-- A unique, case-sensitive token that you provide to ensure idempotency of your modification request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Verified Access instance. -/ + verifiedAccessInstanceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessInstanceLoggingConfigurationRequest where + schema := .struct "ModifyVerifiedAccessInstanceLoggingConfigurationRequest" [({ name := "AccessLogs", required := true }, (Shape.schema VerifiedAccessLogOptions)), + ({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "VerifiedAccessInstanceId", required := true }, .string)] + toValue x := record [put "AccessLogs" x.accessLogs, putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "VerifiedAccessInstanceId" x.verifiedAccessInstanceId] + ofValue v := do + let accessLogs ← v.req "AccessLogs" + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let verifiedAccessInstanceId ← v.req "VerifiedAccessInstanceId" + return { accessLogs, clientToken, dryRun, verifiedAccessInstanceId } + +structure ModifyVerifiedAccessTrustProviderResult where + /-- Details about the Verified Access trust provider. -/ + verifiedAccessTrustProvider : Option VerifiedAccessTrustProvider := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessTrustProviderResult where + schema := .struct "ModifyVerifiedAccessTrustProviderResult" [({ name := "VerifiedAccessTrustProvider", xmlName := some "verifiedAccessTrustProvider", queryName := some "VerifiedAccessTrustProvider" }, (Shape.schema VerifiedAccessTrustProvider))] + toValue x := record [putOpt "VerifiedAccessTrustProvider" x.verifiedAccessTrustProvider] + ofValue v := do + let verifiedAccessTrustProvider ← v.opt "VerifiedAccessTrustProvider" + return { verifiedAccessTrustProvider } + +structure ModifyVolumeResult where + /-- Information about the volume modification. -/ + volumeModification : Option VolumeModification := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVolumeResult where + schema := .struct "ModifyVolumeResult" [({ name := "VolumeModification", xmlName := some "volumeModification", queryName := some "VolumeModification" }, (Shape.schema VolumeModification))] + toValue x := record [putOpt "VolumeModification" x.volumeModification] + ofValue v := do + let volumeModification ← v.opt "VolumeModification" + return { volumeModification } + +structure ModifyVpcBlockPublicAccessExclusionResult where + /-- Details related to the exclusion. -/ + vpcBlockPublicAccessExclusion : Option VpcBlockPublicAccessExclusion := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcBlockPublicAccessExclusionResult where + schema := .struct "ModifyVpcBlockPublicAccessExclusionResult" [({ name := "VpcBlockPublicAccessExclusion", xmlName := some "vpcBlockPublicAccessExclusion", queryName := some "VpcBlockPublicAccessExclusion" }, (Shape.schema VpcBlockPublicAccessExclusion))] + toValue x := record [putOpt "VpcBlockPublicAccessExclusion" x.vpcBlockPublicAccessExclusion] + ofValue v := do + let vpcBlockPublicAccessExclusion ← v.opt "VpcBlockPublicAccessExclusion" + return { vpcBlockPublicAccessExclusion } + +structure ModifyVpcBlockPublicAccessOptionsResult where + /-- Details related to the VPC Block Public Access (BPA) options. -/ + vpcBlockPublicAccessOptions : Option VpcBlockPublicAccessOptions := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcBlockPublicAccessOptionsResult where + schema := .struct "ModifyVpcBlockPublicAccessOptionsResult" [({ name := "VpcBlockPublicAccessOptions", xmlName := some "vpcBlockPublicAccessOptions", queryName := some "VpcBlockPublicAccessOptions" }, (Shape.schema VpcBlockPublicAccessOptions))] + toValue x := record [putOpt "VpcBlockPublicAccessOptions" x.vpcBlockPublicAccessOptions] + ofValue v := do + let vpcBlockPublicAccessOptions ← v.opt "VpcBlockPublicAccessOptions" + return { vpcBlockPublicAccessOptions } + +structure ModifyVpcEndpointPayerResponsibilityResult where + /-- The payer responsibility settings for the VPC endpoint. -/ + payerResponsibilities : Option (List PayerResponsibilityEntry) := none + /-- The ID of the VPC endpoint. -/ + vpcEndpointId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcEndpointPayerResponsibilityResult where + schema := .struct "ModifyVpcEndpointPayerResponsibilityResult" [({ name := "PayerResponsibilities", xmlName := some "payerResponsibilitySet", queryName := some "PayerResponsibilitySet" }, (.list (Shape.schema PayerResponsibilityEntry) "item")), + ({ name := "VpcEndpointId", xmlName := some "vpcEndpointId", queryName := some "VpcEndpointId" }, .string)] + toValue x := record [putOpt "PayerResponsibilities" x.payerResponsibilities, putOpt "VpcEndpointId" x.vpcEndpointId] + ofValue v := do + let payerResponsibilities ← v.opt "PayerResponsibilities" + let vpcEndpointId ← v.opt "VpcEndpointId" + return { payerResponsibilities, vpcEndpointId } + +structure ModifyVpcEndpointRequest where + /-- (Gateway endpoint) The IDs of the route tables to associate with the endpoint. -/ + addRouteTableIds : Option (List String) := none + /-- (Interface endpoint) The IDs of the security groups to associate with the endpoint network interfaces. -/ + addSecurityGroupIds : Option (List String) := none + /-- (Interface and Gateway Load Balancer endpoints) The IDs of the subnets in which to serve the endpoint. -/ + addSubnetIds : Option (List String) := none + /-- The DNS options for the endpoint. -/ + dnsOptions : Option DnsOptionsSpecification := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IP address type for the endpoint. -/ + ipAddressType : Option IpAddressType := none + /-- (Interface and gateway endpoints) A policy to attach to the endpoint that controls access to the service. -/ + policyDocument : Option String := none + /-- (Interface endpoint) Indicates whether a private hosted zone is associated with the VPC. -/ + privateDnsEnabled : Option Bool := none + /-- (Gateway endpoint) The IDs of the route tables to disassociate from the endpoint. -/ + removeRouteTableIds : Option (List String) := none + /-- (Interface endpoint) The IDs of the security groups to disassociate from the endpoint network interfaces. -/ + removeSecurityGroupIds : Option (List String) := none + /-- (Interface endpoint) The IDs of the subnets from which to remove the endpoint. -/ + removeSubnetIds : Option (List String) := none + /-- (Gateway endpoint) Specify true to reset the policy document to the default policy. -/ + resetPolicy : Option Bool := none + /-- The subnet configurations for the endpoint. -/ + subnetConfigurations : Option (List SubnetConfiguration) := none + /-- The ID of the endpoint. -/ + vpcEndpointId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcEndpointRequest where + schema := .struct "ModifyVpcEndpointRequest" [({ name := "AddRouteTableIds", xmlName := some "AddRouteTableId" }, (.list .string "item")), + ({ name := "AddSecurityGroupIds", xmlName := some "AddSecurityGroupId" }, (.list .string "item")), + ({ name := "AddSubnetIds", xmlName := some "AddSubnetId" }, (.list .string "item")), + ({ name := "DnsOptions" }, (Shape.schema DnsOptionsSpecification)), + ({ name := "DryRun" }, .bool), + ({ name := "IpAddressType" }, (Shape.schema IpAddressType)), + ({ name := "PolicyDocument" }, .string), + ({ name := "PrivateDnsEnabled" }, .bool), + ({ name := "RemoveRouteTableIds", xmlName := some "RemoveRouteTableId" }, (.list .string "item")), + ({ name := "RemoveSecurityGroupIds", xmlName := some "RemoveSecurityGroupId" }, (.list .string "item")), + ({ name := "RemoveSubnetIds", xmlName := some "RemoveSubnetId" }, (.list .string "item")), + ({ name := "ResetPolicy" }, .bool), + ({ name := "SubnetConfigurations", xmlName := some "SubnetConfiguration" }, (.list (Shape.schema SubnetConfiguration) "item")), + ({ name := "VpcEndpointId", required := true }, .string)] + toValue x := record [putOpt "AddRouteTableIds" x.addRouteTableIds, putOpt "AddSecurityGroupIds" x.addSecurityGroupIds, putOpt "AddSubnetIds" x.addSubnetIds, putOpt "DnsOptions" x.dnsOptions, putOpt "DryRun" x.dryRun, putOpt "IpAddressType" x.ipAddressType, putOpt "PolicyDocument" x.policyDocument, putOpt "PrivateDnsEnabled" x.privateDnsEnabled, putOpt "RemoveRouteTableIds" x.removeRouteTableIds, putOpt "RemoveSecurityGroupIds" x.removeSecurityGroupIds, putOpt "RemoveSubnetIds" x.removeSubnetIds, putOpt "ResetPolicy" x.resetPolicy, putOpt "SubnetConfigurations" x.subnetConfigurations, put "VpcEndpointId" x.vpcEndpointId] + ofValue v := do + let addRouteTableIds ← v.opt "AddRouteTableIds" + let addSecurityGroupIds ← v.opt "AddSecurityGroupIds" + let addSubnetIds ← v.opt "AddSubnetIds" + let dnsOptions ← v.opt "DnsOptions" + let dryRun ← v.opt "DryRun" + let ipAddressType ← v.opt "IpAddressType" + let policyDocument ← v.opt "PolicyDocument" + let privateDnsEnabled ← v.opt "PrivateDnsEnabled" + let removeRouteTableIds ← v.opt "RemoveRouteTableIds" + let removeSecurityGroupIds ← v.opt "RemoveSecurityGroupIds" + let removeSubnetIds ← v.opt "RemoveSubnetIds" + let resetPolicy ← v.opt "ResetPolicy" + let subnetConfigurations ← v.opt "SubnetConfigurations" + let vpcEndpointId ← v.req "VpcEndpointId" + return { addRouteTableIds, addSecurityGroupIds, addSubnetIds, dnsOptions, dryRun, ipAddressType, policyDocument, privateDnsEnabled, removeRouteTableIds, removeSecurityGroupIds, removeSubnetIds, resetPolicy, subnetConfigurations, vpcEndpointId } + +structure ModifyVpcEndpointServicePermissionsResult where + /-- Information about the added principals. -/ + addedPrincipals : Option (List AddedPrincipal) := none + /-- Returns true if the request succeeds; otherwise, it returns an error. -/ + returnValue : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcEndpointServicePermissionsResult where + schema := .struct "ModifyVpcEndpointServicePermissionsResult" [({ name := "AddedPrincipals", xmlName := some "addedPrincipalSet", queryName := some "AddedPrincipalSet" }, (.list (Shape.schema AddedPrincipal) "item")), + ({ name := "ReturnValue", xmlName := some "return", queryName := some "Return" }, .bool)] + toValue x := record [putOpt "AddedPrincipals" x.addedPrincipals, putOpt "ReturnValue" x.returnValue] + ofValue v := do + let addedPrincipals ← v.opt "AddedPrincipals" + let returnValue ← v.opt "ReturnValue" + return { addedPrincipals, returnValue } + +structure ModifyVpcPeeringConnectionOptionsRequest where + /-- The VPC peering connection options for the accepter VPC. -/ + accepterPeeringConnectionOptions : Option PeeringConnectionOptionsRequest := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The VPC peering connection options for the requester VPC. -/ + requesterPeeringConnectionOptions : Option PeeringConnectionOptionsRequest := none + /-- The ID of the VPC peering connection. -/ + vpcPeeringConnectionId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcPeeringConnectionOptionsRequest where + schema := .struct "ModifyVpcPeeringConnectionOptionsRequest" [({ name := "AccepterPeeringConnectionOptions" }, (Shape.schema PeeringConnectionOptionsRequest)), + ({ name := "DryRun" }, .bool), + ({ name := "RequesterPeeringConnectionOptions" }, (Shape.schema PeeringConnectionOptionsRequest)), + ({ name := "VpcPeeringConnectionId", required := true }, .string)] + toValue x := record [putOpt "AccepterPeeringConnectionOptions" x.accepterPeeringConnectionOptions, putOpt "DryRun" x.dryRun, putOpt "RequesterPeeringConnectionOptions" x.requesterPeeringConnectionOptions, put "VpcPeeringConnectionId" x.vpcPeeringConnectionId] + ofValue v := do + let accepterPeeringConnectionOptions ← v.opt "AccepterPeeringConnectionOptions" + let dryRun ← v.opt "DryRun" + let requesterPeeringConnectionOptions ← v.opt "RequesterPeeringConnectionOptions" + let vpcPeeringConnectionId ← v.req "VpcPeeringConnectionId" + return { accepterPeeringConnectionOptions, dryRun, requesterPeeringConnectionOptions, vpcPeeringConnectionId } + +structure ModifyVpcPeeringConnectionOptionsResult where + /-- Information about the VPC peering connection options for the accepter VPC. -/ + accepterPeeringConnectionOptions : Option PeeringConnectionOptions := none + /-- Information about the VPC peering connection options for the requester VPC. -/ + requesterPeeringConnectionOptions : Option PeeringConnectionOptions := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcPeeringConnectionOptionsResult where + schema := .struct "ModifyVpcPeeringConnectionOptionsResult" [({ name := "AccepterPeeringConnectionOptions", xmlName := some "accepterPeeringConnectionOptions", queryName := some "AccepterPeeringConnectionOptions" }, (Shape.schema PeeringConnectionOptions)), + ({ name := "RequesterPeeringConnectionOptions", xmlName := some "requesterPeeringConnectionOptions", queryName := some "RequesterPeeringConnectionOptions" }, (Shape.schema PeeringConnectionOptions))] + toValue x := record [putOpt "AccepterPeeringConnectionOptions" x.accepterPeeringConnectionOptions, putOpt "RequesterPeeringConnectionOptions" x.requesterPeeringConnectionOptions] + ofValue v := do + let accepterPeeringConnectionOptions ← v.opt "AccepterPeeringConnectionOptions" + let requesterPeeringConnectionOptions ← v.opt "RequesterPeeringConnectionOptions" + return { accepterPeeringConnectionOptions, requesterPeeringConnectionOptions } + +/-- The Amazon Web Services Site-to-Site VPN tunnel options to modify. -/ +structure ModifyVpnTunnelOptionsSpecification where + /-- The action to take after DPD timeout occurs. -/ + dpdTimeoutAction : Option String := none + /-- The number of seconds after which a DPD timeout occurs. -/ + dpdTimeoutSeconds : Option Int := none + /-- Turn on or off tunnel endpoint lifecycle control feature. -/ + enableTunnelLifecycleControl : Option Bool := none + /-- The IKE versions that are permitted for the VPN tunnel. -/ + ikeVersions : Option (List IKEVersionsRequestListValue) := none + /-- Options for logging VPN tunnel activity. -/ + logOptions : Option VpnTunnelLogOptionsSpecification := none + /-- One or more additional key exchange rounds that are permitted for the VPN tunnel for phase 1 IKE negotiations. -/ + phase1AdditionalKeyExchanges : Option (List VpnAdditionalKeyExchangeRequest) := none + /-- One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 1 IKE negotiations. -/ + phase1DHGroupNumbers : Option (List Phase1DHGroupNumbersRequestListValue) := none + /-- One or more encryption algorithms that are permitted for the VPN tunnel for phase 1 IKE negotiations. -/ + phase1EncryptionAlgorithms : Option (List Phase1EncryptionAlgorithmsRequestListValue) := none + /-- One or more integrity algorithms that are permitted for the VPN tunnel for phase 1 IKE negotiations. -/ + phase1IntegrityAlgorithms : Option (List Phase1IntegrityAlgorithmsRequestListValue) := none + /-- The lifetime for phase 1 of the IKE negotiation, in seconds. -/ + phase1LifetimeSeconds : Option Int := none + /-- One or more additional key exchange rounds that are permitted for the VPN tunnel for phase 2 IKE negotiations. -/ + phase2AdditionalKeyExchanges : Option (List VpnAdditionalKeyExchangeRequest) := none + /-- One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 2 IKE negotiations. -/ + phase2DHGroupNumbers : Option (List Phase2DHGroupNumbersRequestListValue) := none + /-- One or more encryption algorithms that are permitted for the VPN tunnel for phase 2 IKE negotiations. -/ + phase2EncryptionAlgorithms : Option (List Phase2EncryptionAlgorithmsRequestListValue) := none + /-- One or more integrity algorithms that are permitted for the VPN tunnel for phase 2 IKE negotiations. -/ + phase2IntegrityAlgorithms : Option (List Phase2IntegrityAlgorithmsRequestListValue) := none + /-- The lifetime for phase 2 of the IKE negotiation, in seconds. -/ + phase2LifetimeSeconds : Option Int := none + /-- The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and the customer gateway. -/ + preSharedKey : Option String := none + /-- The percentage of the rekey window (determined by RekeyMarginTimeSeconds ) during which the rekey time is randomly selected. -/ + rekeyFuzzPercentage : Option Int := none + /-- The margin time, in seconds, before the phase 2 lifetime expires, during which the Amazon Web Services side of the VPN connection performs an IKE rekey. -/ + rekeyMarginTimeSeconds : Option Int := none + /-- The number of packets in an IKE replay window. -/ + replayWindowSize : Option Int := none + /-- The action to take when the establishing the tunnel for the VPN connection. -/ + startupAction : Option String := none + /-- The range of inside IPv4 addresses for the tunnel. -/ + tunnelInsideCidr : Option String := none + /-- The range of inside IPv6 addresses for the tunnel. -/ + tunnelInsideIpv6Cidr : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpnTunnelOptionsSpecification where + schema := .struct "ModifyVpnTunnelOptionsSpecification" [({ name := "DPDTimeoutAction" }, .string), + ({ name := "DPDTimeoutSeconds" }, .int), + ({ name := "EnableTunnelLifecycleControl" }, .bool), + ({ name := "IKEVersions", xmlName := some "IKEVersion" }, (.list (Shape.schema IKEVersionsRequestListValue) "item")), + ({ name := "LogOptions" }, (Shape.schema VpnTunnelLogOptionsSpecification)), + ({ name := "Phase1AdditionalKeyExchanges", xmlName := some "Phase1AdditionalKeyExchange" }, (.list (Shape.schema VpnAdditionalKeyExchangeRequest) "item")), + ({ name := "Phase1DHGroupNumbers", xmlName := some "Phase1DHGroupNumber" }, (.list (Shape.schema Phase1DHGroupNumbersRequestListValue) "item")), + ({ name := "Phase1EncryptionAlgorithms", xmlName := some "Phase1EncryptionAlgorithm" }, (.list (Shape.schema Phase1EncryptionAlgorithmsRequestListValue) "item")), + ({ name := "Phase1IntegrityAlgorithms", xmlName := some "Phase1IntegrityAlgorithm" }, (.list (Shape.schema Phase1IntegrityAlgorithmsRequestListValue) "item")), + ({ name := "Phase1LifetimeSeconds" }, .int), + ({ name := "Phase2AdditionalKeyExchanges", xmlName := some "Phase2AdditionalKeyExchange" }, (.list (Shape.schema VpnAdditionalKeyExchangeRequest) "item")), + ({ name := "Phase2DHGroupNumbers", xmlName := some "Phase2DHGroupNumber" }, (.list (Shape.schema Phase2DHGroupNumbersRequestListValue) "item")), + ({ name := "Phase2EncryptionAlgorithms", xmlName := some "Phase2EncryptionAlgorithm" }, (.list (Shape.schema Phase2EncryptionAlgorithmsRequestListValue) "item")), + ({ name := "Phase2IntegrityAlgorithms", xmlName := some "Phase2IntegrityAlgorithm" }, (.list (Shape.schema Phase2IntegrityAlgorithmsRequestListValue) "item")), + ({ name := "Phase2LifetimeSeconds" }, .int), + ({ name := "PreSharedKey" }, .string), + ({ name := "RekeyFuzzPercentage" }, .int), + ({ name := "RekeyMarginTimeSeconds" }, .int), + ({ name := "ReplayWindowSize" }, .int), + ({ name := "StartupAction" }, .string), + ({ name := "TunnelInsideCidr" }, .string), + ({ name := "TunnelInsideIpv6Cidr" }, .string)] + toValue x := record [putOpt "DPDTimeoutAction" x.dpdTimeoutAction, putOpt "DPDTimeoutSeconds" x.dpdTimeoutSeconds, putOpt "EnableTunnelLifecycleControl" x.enableTunnelLifecycleControl, putOpt "IKEVersions" x.ikeVersions, putOpt "LogOptions" x.logOptions, putOpt "Phase1AdditionalKeyExchanges" x.phase1AdditionalKeyExchanges, putOpt "Phase1DHGroupNumbers" x.phase1DHGroupNumbers, putOpt "Phase1EncryptionAlgorithms" x.phase1EncryptionAlgorithms, putOpt "Phase1IntegrityAlgorithms" x.phase1IntegrityAlgorithms, putOpt "Phase1LifetimeSeconds" x.phase1LifetimeSeconds, putOpt "Phase2AdditionalKeyExchanges" x.phase2AdditionalKeyExchanges, putOpt "Phase2DHGroupNumbers" x.phase2DHGroupNumbers, putOpt "Phase2EncryptionAlgorithms" x.phase2EncryptionAlgorithms, putOpt "Phase2IntegrityAlgorithms" x.phase2IntegrityAlgorithms, putOpt "Phase2LifetimeSeconds" x.phase2LifetimeSeconds, putOpt "PreSharedKey" x.preSharedKey, putOpt "RekeyFuzzPercentage" x.rekeyFuzzPercentage, putOpt "RekeyMarginTimeSeconds" x.rekeyMarginTimeSeconds, putOpt "ReplayWindowSize" x.replayWindowSize, putOpt "StartupAction" x.startupAction, putOpt "TunnelInsideCidr" x.tunnelInsideCidr, putOpt "TunnelInsideIpv6Cidr" x.tunnelInsideIpv6Cidr] + ofValue v := do + let dpdTimeoutAction ← v.opt "DPDTimeoutAction" + let dpdTimeoutSeconds ← v.opt "DPDTimeoutSeconds" + let enableTunnelLifecycleControl ← v.opt "EnableTunnelLifecycleControl" + let ikeVersions ← v.opt "IKEVersions" + let logOptions ← v.opt "LogOptions" + let phase1AdditionalKeyExchanges ← v.opt "Phase1AdditionalKeyExchanges" + let phase1DHGroupNumbers ← v.opt "Phase1DHGroupNumbers" + let phase1EncryptionAlgorithms ← v.opt "Phase1EncryptionAlgorithms" + let phase1IntegrityAlgorithms ← v.opt "Phase1IntegrityAlgorithms" + let phase1LifetimeSeconds ← v.opt "Phase1LifetimeSeconds" + let phase2AdditionalKeyExchanges ← v.opt "Phase2AdditionalKeyExchanges" + let phase2DHGroupNumbers ← v.opt "Phase2DHGroupNumbers" + let phase2EncryptionAlgorithms ← v.opt "Phase2EncryptionAlgorithms" + let phase2IntegrityAlgorithms ← v.opt "Phase2IntegrityAlgorithms" + let phase2LifetimeSeconds ← v.opt "Phase2LifetimeSeconds" + let preSharedKey ← v.opt "PreSharedKey" + let rekeyFuzzPercentage ← v.opt "RekeyFuzzPercentage" + let rekeyMarginTimeSeconds ← v.opt "RekeyMarginTimeSeconds" + let replayWindowSize ← v.opt "ReplayWindowSize" + let startupAction ← v.opt "StartupAction" + let tunnelInsideCidr ← v.opt "TunnelInsideCidr" + let tunnelInsideIpv6Cidr ← v.opt "TunnelInsideIpv6Cidr" + return { dpdTimeoutAction, dpdTimeoutSeconds, enableTunnelLifecycleControl, ikeVersions, logOptions, phase1AdditionalKeyExchanges, phase1DHGroupNumbers, phase1EncryptionAlgorithms, phase1IntegrityAlgorithms, phase1LifetimeSeconds, phase2AdditionalKeyExchanges, phase2DHGroupNumbers, phase2EncryptionAlgorithms, phase2IntegrityAlgorithms, phase2LifetimeSeconds, preSharedKey, rekeyFuzzPercentage, rekeyMarginTimeSeconds, replayWindowSize, startupAction, tunnelInsideCidr, tunnelInsideIpv6Cidr } + +/-- Describes the cost allocation policy document for NAT gateways. -/ +structure NatFlexCostAllocationPolicyDocument where + /-- The CIDR range mappings to use for cost allocation. -/ + cidrRangeSpecifications : Option FlexCostAllocationCidrRangeSpecifications := none + /-- The cost dimensions to report. -/ + dimensions : (List FlexCostAllocationCostDimension) + /-- The resource granularity level at which networking costs are allocated. -/ + reportingGranularity : (List FlexCostAllocationReportingGranularity) +deriving DecidableEq, Repr, Inhabited + +instance : Shape NatFlexCostAllocationPolicyDocument where + schema := .struct "NatFlexCostAllocationPolicyDocument" [({ name := "CidrRangeSpecifications" }, (Shape.schema FlexCostAllocationCidrRangeSpecifications)), + ({ name := "Dimensions", required := true }, (.list (Shape.schema FlexCostAllocationCostDimension) "item")), + ({ name := "ReportingGranularity", required := true }, (.list (Shape.schema FlexCostAllocationReportingGranularity) "item"))] + toValue x := record [putOpt "CidrRangeSpecifications" x.cidrRangeSpecifications, put "Dimensions" x.dimensions, put "ReportingGranularity" x.reportingGranularity] + ofValue v := do + let cidrRangeSpecifications ← v.opt "CidrRangeSpecifications" + let dimensions ← v.req "Dimensions" + let reportingGranularity ← v.req "ReportingGranularity" + return { cidrRangeSpecifications, dimensions, reportingGranularity } + +/-- Describes a NAT gateway. -/ +structure NatGateway where + /-- The proxy appliances attached to the NAT Gateway for filtering and inspecting traffic to prevent data exfiltration. -/ + attachedAppliances : Option (List NatGatewayAttachedAppliance) := none + /-- For regional NAT gateways only: Indicates whether Amazon Web Services automatically manages AZ coverage. -/ + autoProvisionZones : Option AutoProvisionZonesState := none + /-- For regional NAT gateways only: Indicates whether Amazon Web Services automatically allocates additional Elastic IP addresses (EIPs) in an AZ when the NAT gateway needs more ports due to increased concurrent connections to a single destinat -/ + autoScalingIps : Option AutoScalingIpsState := none + /-- Indicates whether this is a zonal (single-AZ) or regional (multi-AZ) NAT gateway. -/ + availabilityMode : Option AvailabilityMode := none + /-- Indicates whether the NAT gateway supports public or private connectivity. -/ + connectivityType : Option ConnectivityType := none + /-- The date and time the NAT gateway was created. -/ + createTime : Option Timestamp := none + /-- The date and time the NAT gateway was deleted, if applicable. -/ + deleteTime : Option Timestamp := none + /-- If the NAT gateway could not be created, specifies the error code for the failure. -/ + failureCode : Option String := none + /-- If the NAT gateway could not be created, specifies the error message for the failure, that corresponds to the error code. -/ + failureMessage : Option String := none + /-- Information about the IP addresses and network interface associated with the NAT gateway. -/ + natGatewayAddresses : Option (List NatGatewayAddress) := none + /-- The ID of the NAT gateway. -/ + natGatewayId : Option String := none + /-- Reserved. -/ + provisionedBandwidth : Option ProvisionedBandwidth := none + /-- For regional NAT gateways only, this is the ID of the NAT gateway. -/ + routeTableId : Option String := none + /-- The state of the NAT gateway. -/ + state : Option NatGatewayState := none + /-- The ID of the subnet in which the NAT gateway is located. -/ + subnetId : Option String := none + /-- The tags for the NAT gateway. -/ + tags : Option (List Tag) := none + /-- The ID of the VPC in which the NAT gateway is located. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NatGateway where + schema := .struct "NatGateway" [({ name := "AttachedAppliances", xmlName := some "attachedApplianceSet", queryName := some "AttachedApplianceSet" }, (.list (Shape.schema NatGatewayAttachedAppliance) "item")), + ({ name := "AutoProvisionZones", xmlName := some "autoProvisionZones", queryName := some "AutoProvisionZones" }, (Shape.schema AutoProvisionZonesState)), + ({ name := "AutoScalingIps", xmlName := some "autoScalingIps", queryName := some "AutoScalingIps" }, (Shape.schema AutoScalingIpsState)), + ({ name := "AvailabilityMode", xmlName := some "availabilityMode", queryName := some "AvailabilityMode" }, (Shape.schema AvailabilityMode)), + ({ name := "ConnectivityType", xmlName := some "connectivityType", queryName := some "ConnectivityType" }, (Shape.schema ConnectivityType)), + ({ name := "CreateTime", xmlName := some "createTime", queryName := some "CreateTime" }, (.time none)), + ({ name := "DeleteTime", xmlName := some "deleteTime", queryName := some "DeleteTime" }, (.time none)), + ({ name := "FailureCode", xmlName := some "failureCode", queryName := some "FailureCode" }, .string), + ({ name := "FailureMessage", xmlName := some "failureMessage", queryName := some "FailureMessage" }, .string), + ({ name := "NatGatewayAddresses", xmlName := some "natGatewayAddressSet", queryName := some "NatGatewayAddressSet" }, (.list (Shape.schema NatGatewayAddress) "item")), + ({ name := "NatGatewayId", xmlName := some "natGatewayId", queryName := some "NatGatewayId" }, .string), + ({ name := "ProvisionedBandwidth", xmlName := some "provisionedBandwidth", queryName := some "ProvisionedBandwidth" }, (Shape.schema ProvisionedBandwidth)), + ({ name := "RouteTableId", xmlName := some "routeTableId", queryName := some "RouteTableId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema NatGatewayState)), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "AttachedAppliances" x.attachedAppliances, putOpt "AutoProvisionZones" x.autoProvisionZones, putOpt "AutoScalingIps" x.autoScalingIps, putOpt "AvailabilityMode" x.availabilityMode, putOpt "ConnectivityType" x.connectivityType, putOpt "CreateTime" x.createTime, putOpt "DeleteTime" x.deleteTime, putOpt "FailureCode" x.failureCode, putOpt "FailureMessage" x.failureMessage, putOpt "NatGatewayAddresses" x.natGatewayAddresses, putOpt "NatGatewayId" x.natGatewayId, putOpt "ProvisionedBandwidth" x.provisionedBandwidth, putOpt "RouteTableId" x.routeTableId, putOpt "State" x.state, putOpt "SubnetId" x.subnetId, putOpt "Tags" x.tags, putOpt "VpcId" x.vpcId] + ofValue v := do + let attachedAppliances ← v.opt "AttachedAppliances" + let autoProvisionZones ← v.opt "AutoProvisionZones" + let autoScalingIps ← v.opt "AutoScalingIps" + let availabilityMode ← v.opt "AvailabilityMode" + let connectivityType ← v.opt "ConnectivityType" + let createTime ← v.opt "CreateTime" + let deleteTime ← v.opt "DeleteTime" + let failureCode ← v.opt "FailureCode" + let failureMessage ← v.opt "FailureMessage" + let natGatewayAddresses ← v.opt "NatGatewayAddresses" + let natGatewayId ← v.opt "NatGatewayId" + let provisionedBandwidth ← v.opt "ProvisionedBandwidth" + let routeTableId ← v.opt "RouteTableId" + let state ← v.opt "State" + let subnetId ← v.opt "SubnetId" + let tags ← v.opt "Tags" + let vpcId ← v.opt "VpcId" + return { attachedAppliances, autoProvisionZones, autoScalingIps, availabilityMode, connectivityType, createTime, deleteTime, failureCode, failureMessage, natGatewayAddresses, natGatewayId, provisionedBandwidth, routeTableId, state, subnetId, tags, vpcId } + +/-- Describes a network ACL. -/ +structure NetworkAcl where + /-- Any associations between the network ACL and your subnets. -/ + associations : Option (List NetworkAclAssociation) := none + /-- The entries (rules) in the network ACL. -/ + entries : Option (List NetworkAclEntry) := none + /-- Indicates whether this is the default network ACL for the VPC. -/ + isDefault : Option Bool := none + /-- The ID of the network ACL. -/ + networkAclId : Option String := none + /-- The ID of the Amazon Web Services account that owns the network ACL. -/ + ownerId : Option String := none + /-- Any tags assigned to the network ACL. -/ + tags : Option (List Tag) := none + /-- The ID of the VPC for the network ACL. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkAcl where + schema := .struct "NetworkAcl" [({ name := "Associations", xmlName := some "associationSet", queryName := some "AssociationSet" }, (.list (Shape.schema NetworkAclAssociation) "item")), + ({ name := "Entries", xmlName := some "entrySet", queryName := some "EntrySet" }, (.list (Shape.schema NetworkAclEntry) "item")), + ({ name := "IsDefault", xmlName := some "default", queryName := some "Default" }, .bool), + ({ name := "NetworkAclId", xmlName := some "networkAclId", queryName := some "NetworkAclId" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "Associations" x.associations, putOpt "Entries" x.entries, putOpt "IsDefault" x.isDefault, putOpt "NetworkAclId" x.networkAclId, putOpt "OwnerId" x.ownerId, putOpt "Tags" x.tags, putOpt "VpcId" x.vpcId] + ofValue v := do + let associations ← v.opt "Associations" + let entries ← v.opt "Entries" + let isDefault ← v.opt "IsDefault" + let networkAclId ← v.opt "NetworkAclId" + let ownerId ← v.opt "OwnerId" + let tags ← v.opt "Tags" + let vpcId ← v.opt "VpcId" + return { associations, entries, isDefault, networkAclId, ownerId, tags, vpcId } + +/-- Describes the networking features of the instance type. -/ +structure NetworkInfo where + /-- A list of valid settings for configurable bandwidth weighting for the instance type, if supported. -/ + bandwidthWeightings : Option (List BandwidthWeightingType) := none + /-- Indicates conntrack information for the instance type. -/ + connectionTrackingConfiguration : Option DefaultConnectionTrackingConfiguration := none + /-- The index of the default network card, starting at 0. -/ + defaultNetworkCardIndex : Option Int := none + /-- Describes the Elastic Fabric Adapters for the instance type. -/ + efaInfo : Option EfaInfo := none + /-- Indicates whether Elastic Fabric Adapter (EFA) is supported. -/ + efaSupported : Option Bool := none + /-- Indicates whether the instance type supports ENA Express. -/ + enaSrdSupported : Option Bool := none + /-- Indicates whether Elastic Network Adapter (ENA) is supported. -/ + enaSupport : Option EnaSupport := none + /-- Indicates whether the instance type automatically encrypts in-transit traffic between instances. -/ + encryptionInTransitSupported : Option Bool := none + /-- Indicates whether changing the number of ENA queues is supported. -/ + flexibleEnaQueuesSupport : Option FlexibleEnaQueuesSupport := none + /-- The maximum number of IPv4 addresses per network interface. -/ + ipv4AddressesPerInterface : Option Int := none + /-- The maximum number of IPv4 addresses per secondary interface. -/ + ipv4AddressesPerSecondaryInterface : Option Int := none + /-- The maximum number of IPv6 addresses per network interface. -/ + ipv6AddressesPerInterface : Option Int := none + /-- Indicates whether IPv6 is supported. -/ + ipv6Supported : Option Bool := none + /-- The maximum number of physical network cards that can be allocated to the instance. -/ + maximumNetworkCards : Option Int := none + /-- The maximum number of network interfaces for the instance type. -/ + maximumNetworkInterfaces : Option Int := none + /-- The maximum number of secondary interfaces for the instance type. -/ + maximumSecondaryNetworkInterfaces : Option Int := none + /-- Describes the network cards for the instance type. -/ + networkCards : Option (List NetworkCardInfo) := none + /-- The network performance. -/ + networkPerformance : Option String := none + /-- Indicates whether secondary interface attachments from secondary network are supported. -/ + secondaryNetworkSupported : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkInfo where + schema := .struct "NetworkInfo" [({ name := "BandwidthWeightings", xmlName := some "bandwidthWeightings", queryName := some "BandwidthWeightings" }, (.list (Shape.schema BandwidthWeightingType) "item")), + ({ name := "ConnectionTrackingConfiguration", xmlName := some "connectionTrackingConfiguration", queryName := some "ConnectionTrackingConfiguration" }, (Shape.schema DefaultConnectionTrackingConfiguration)), + ({ name := "DefaultNetworkCardIndex", xmlName := some "defaultNetworkCardIndex", queryName := some "DefaultNetworkCardIndex" }, .int), + ({ name := "EfaInfo", xmlName := some "efaInfo", queryName := some "EfaInfo" }, (Shape.schema EfaInfo)), + ({ name := "EfaSupported", xmlName := some "efaSupported", queryName := some "EfaSupported" }, .bool), + ({ name := "EnaSrdSupported", xmlName := some "enaSrdSupported", queryName := some "EnaSrdSupported" }, .bool), + ({ name := "EnaSupport", xmlName := some "enaSupport", queryName := some "EnaSupport" }, (Shape.schema EnaSupport)), + ({ name := "EncryptionInTransitSupported", xmlName := some "encryptionInTransitSupported", queryName := some "EncryptionInTransitSupported" }, .bool), + ({ name := "FlexibleEnaQueuesSupport", xmlName := some "flexibleEnaQueuesSupport", queryName := some "FlexibleEnaQueuesSupport" }, (Shape.schema FlexibleEnaQueuesSupport)), + ({ name := "Ipv4AddressesPerInterface", xmlName := some "ipv4AddressesPerInterface", queryName := some "Ipv4AddressesPerInterface" }, .int), + ({ name := "Ipv4AddressesPerSecondaryInterface", xmlName := some "ipv4AddressesPerSecondaryInterface", queryName := some "Ipv4AddressesPerSecondaryInterface" }, .int), + ({ name := "Ipv6AddressesPerInterface", xmlName := some "ipv6AddressesPerInterface", queryName := some "Ipv6AddressesPerInterface" }, .int), + ({ name := "Ipv6Supported", xmlName := some "ipv6Supported", queryName := some "Ipv6Supported" }, .bool), + ({ name := "MaximumNetworkCards", xmlName := some "maximumNetworkCards", queryName := some "MaximumNetworkCards" }, .int), + ({ name := "MaximumNetworkInterfaces", xmlName := some "maximumNetworkInterfaces", queryName := some "MaximumNetworkInterfaces" }, .int), + ({ name := "MaximumSecondaryNetworkInterfaces", xmlName := some "maximumSecondaryNetworkInterfaces", queryName := some "MaximumSecondaryNetworkInterfaces" }, .int), + ({ name := "NetworkCards", xmlName := some "networkCards", queryName := some "NetworkCards" }, (.list (Shape.schema NetworkCardInfo) "item")), + ({ name := "NetworkPerformance", xmlName := some "networkPerformance", queryName := some "NetworkPerformance" }, .string), + ({ name := "SecondaryNetworkSupported", xmlName := some "secondaryNetworkSupported", queryName := some "SecondaryNetworkSupported" }, .bool)] + toValue x := record [putOpt "BandwidthWeightings" x.bandwidthWeightings, putOpt "ConnectionTrackingConfiguration" x.connectionTrackingConfiguration, putOpt "DefaultNetworkCardIndex" x.defaultNetworkCardIndex, putOpt "EfaInfo" x.efaInfo, putOpt "EfaSupported" x.efaSupported, putOpt "EnaSrdSupported" x.enaSrdSupported, putOpt "EnaSupport" x.enaSupport, putOpt "EncryptionInTransitSupported" x.encryptionInTransitSupported, putOpt "FlexibleEnaQueuesSupport" x.flexibleEnaQueuesSupport, putOpt "Ipv4AddressesPerInterface" x.ipv4AddressesPerInterface, putOpt "Ipv4AddressesPerSecondaryInterface" x.ipv4AddressesPerSecondaryInterface, putOpt "Ipv6AddressesPerInterface" x.ipv6AddressesPerInterface, putOpt "Ipv6Supported" x.ipv6Supported, putOpt "MaximumNetworkCards" x.maximumNetworkCards, putOpt "MaximumNetworkInterfaces" x.maximumNetworkInterfaces, putOpt "MaximumSecondaryNetworkInterfaces" x.maximumSecondaryNetworkInterfaces, putOpt "NetworkCards" x.networkCards, putOpt "NetworkPerformance" x.networkPerformance, putOpt "SecondaryNetworkSupported" x.secondaryNetworkSupported] + ofValue v := do + let bandwidthWeightings ← v.opt "BandwidthWeightings" + let connectionTrackingConfiguration ← v.opt "ConnectionTrackingConfiguration" + let defaultNetworkCardIndex ← v.opt "DefaultNetworkCardIndex" + let efaInfo ← v.opt "EfaInfo" + let efaSupported ← v.opt "EfaSupported" + let enaSrdSupported ← v.opt "EnaSrdSupported" + let enaSupport ← v.opt "EnaSupport" + let encryptionInTransitSupported ← v.opt "EncryptionInTransitSupported" + let flexibleEnaQueuesSupport ← v.opt "FlexibleEnaQueuesSupport" + let ipv4AddressesPerInterface ← v.opt "Ipv4AddressesPerInterface" + let ipv4AddressesPerSecondaryInterface ← v.opt "Ipv4AddressesPerSecondaryInterface" + let ipv6AddressesPerInterface ← v.opt "Ipv6AddressesPerInterface" + let ipv6Supported ← v.opt "Ipv6Supported" + let maximumNetworkCards ← v.opt "MaximumNetworkCards" + let maximumNetworkInterfaces ← v.opt "MaximumNetworkInterfaces" + let maximumSecondaryNetworkInterfaces ← v.opt "MaximumSecondaryNetworkInterfaces" + let networkCards ← v.opt "NetworkCards" + let networkPerformance ← v.opt "NetworkPerformance" + let secondaryNetworkSupported ← v.opt "SecondaryNetworkSupported" + return { bandwidthWeightings, connectionTrackingConfiguration, defaultNetworkCardIndex, efaInfo, efaSupported, enaSrdSupported, enaSupport, encryptionInTransitSupported, flexibleEnaQueuesSupport, ipv4AddressesPerInterface, ipv4AddressesPerSecondaryInterface, ipv6AddressesPerInterface, ipv6Supported, maximumNetworkCards, maximumNetworkInterfaces, maximumSecondaryNetworkInterfaces, networkCards, networkPerformance, secondaryNetworkSupported } + +/-- Describes a path. -/ +structure NetworkInsightsPath where + /-- The time stamp when the path was created. -/ + createdDate : Option Timestamp := none + /-- The ID of the destination. -/ + destination : Option String := none + /-- The Amazon Resource Name (ARN) of the destination. -/ + destinationArn : Option String := none + /-- The IP address of the destination. -/ + destinationIp : Option String := none + /-- The destination port. -/ + destinationPort : Option Int := none + /-- Scopes the analysis to network paths that match specific filters at the destination. -/ + filterAtDestination : Option PathFilter := none + /-- Scopes the analysis to network paths that match specific filters at the source. -/ + filterAtSource : Option PathFilter := none + /-- The Amazon Resource Name (ARN) of the path. -/ + networkInsightsPathArn : Option String := none + /-- The ID of the path. -/ + networkInsightsPathId : Option String := none + /-- The protocol. -/ + protocol : Option Protocol_ := none + /-- The ID of the source. -/ + source : Option String := none + /-- The Amazon Resource Name (ARN) of the source. -/ + sourceArn : Option String := none + /-- The IP address of the source. -/ + sourceIp : Option String := none + /-- The tags associated with the path. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkInsightsPath where + schema := .struct "NetworkInsightsPath" [({ name := "CreatedDate", xmlName := some "createdDate", queryName := some "CreatedDate" }, (.time none)), + ({ name := "Destination", xmlName := some "destination", queryName := some "Destination" }, .string), + ({ name := "DestinationArn", xmlName := some "destinationArn", queryName := some "DestinationArn" }, .string), + ({ name := "DestinationIp", xmlName := some "destinationIp", queryName := some "DestinationIp" }, .string), + ({ name := "DestinationPort", xmlName := some "destinationPort", queryName := some "DestinationPort" }, .int), + ({ name := "FilterAtDestination", xmlName := some "filterAtDestination", queryName := some "FilterAtDestination" }, (Shape.schema PathFilter)), + ({ name := "FilterAtSource", xmlName := some "filterAtSource", queryName := some "FilterAtSource" }, (Shape.schema PathFilter)), + ({ name := "NetworkInsightsPathArn", xmlName := some "networkInsightsPathArn", queryName := some "NetworkInsightsPathArn" }, .string), + ({ name := "NetworkInsightsPathId", xmlName := some "networkInsightsPathId", queryName := some "NetworkInsightsPathId" }, .string), + ({ name := "Protocol", xmlName := some "protocol", queryName := some "Protocol" }, (Shape.schema Protocol_)), + ({ name := "Source", xmlName := some "source", queryName := some "Source" }, .string), + ({ name := "SourceArn", xmlName := some "sourceArn", queryName := some "SourceArn" }, .string), + ({ name := "SourceIp", xmlName := some "sourceIp", queryName := some "SourceIp" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "CreatedDate" x.createdDate, putOpt "Destination" x.destination, putOpt "DestinationArn" x.destinationArn, putOpt "DestinationIp" x.destinationIp, putOpt "DestinationPort" x.destinationPort, putOpt "FilterAtDestination" x.filterAtDestination, putOpt "FilterAtSource" x.filterAtSource, putOpt "NetworkInsightsPathArn" x.networkInsightsPathArn, putOpt "NetworkInsightsPathId" x.networkInsightsPathId, putOpt "Protocol" x.protocol, putOpt "Source" x.source, putOpt "SourceArn" x.sourceArn, putOpt "SourceIp" x.sourceIp, putOpt "Tags" x.tags] + ofValue v := do + let createdDate ← v.opt "CreatedDate" + let destination ← v.opt "Destination" + let destinationArn ← v.opt "DestinationArn" + let destinationIp ← v.opt "DestinationIp" + let destinationPort ← v.opt "DestinationPort" + let filterAtDestination ← v.opt "FilterAtDestination" + let filterAtSource ← v.opt "FilterAtSource" + let networkInsightsPathArn ← v.opt "NetworkInsightsPathArn" + let networkInsightsPathId ← v.opt "NetworkInsightsPathId" + let protocol ← v.opt "Protocol" + let source ← v.opt "Source" + let sourceArn ← v.opt "SourceArn" + let sourceIp ← v.opt "SourceIp" + let tags ← v.opt "Tags" + return { createdDate, destination, destinationArn, destinationIp, destinationPort, filterAtDestination, filterAtSource, networkInsightsPathArn, networkInsightsPathId, protocol, source, sourceArn, sourceIp, tags } + +/-- Describes a network interface attachment. -/ +structure NetworkInterfaceAttachment where + /-- The timestamp indicating when the attachment initiated. -/ + attachTime : Option Timestamp := none + /-- The ID of the network interface attachment. -/ + attachmentId : Option String := none + /-- Indicates whether the network interface is deleted when the instance is terminated. -/ + deleteOnTermination : Option Bool := none + /-- The device index of the network interface attachment on the instance. -/ + deviceIndex : Option Int := none + /-- The number of ENA queues created with the instance. -/ + enaQueueCount : Option Int := none + /-- Configures ENA Express for the network interface that this action attaches to the instance. -/ + enaSrdSpecification : Option AttachmentEnaSrdSpecification := none + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- The Amazon Web Services account ID of the owner of the instance. -/ + instanceOwnerId : Option String := none + /-- The index of the network card. -/ + networkCardIndex : Option Int := none + /-- The attachment state. -/ + status : Option AttachmentStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkInterfaceAttachment where + schema := .struct "NetworkInterfaceAttachment" [({ name := "AttachTime", xmlName := some "attachTime", queryName := some "AttachTime" }, (.time none)), + ({ name := "AttachmentId", xmlName := some "attachmentId", queryName := some "AttachmentId" }, .string), + ({ name := "DeleteOnTermination", xmlName := some "deleteOnTermination", queryName := some "DeleteOnTermination" }, .bool), + ({ name := "DeviceIndex", xmlName := some "deviceIndex", queryName := some "DeviceIndex" }, .int), + ({ name := "EnaQueueCount", xmlName := some "enaQueueCount", queryName := some "EnaQueueCount" }, .int), + ({ name := "EnaSrdSpecification", xmlName := some "enaSrdSpecification", queryName := some "EnaSrdSpecification" }, (Shape.schema AttachmentEnaSrdSpecification)), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "InstanceOwnerId", xmlName := some "instanceOwnerId", queryName := some "InstanceOwnerId" }, .string), + ({ name := "NetworkCardIndex", xmlName := some "networkCardIndex", queryName := some "NetworkCardIndex" }, .int), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema AttachmentStatus))] + toValue x := record [putOpt "AttachTime" x.attachTime, putOpt "AttachmentId" x.attachmentId, putOpt "DeleteOnTermination" x.deleteOnTermination, putOpt "DeviceIndex" x.deviceIndex, putOpt "EnaQueueCount" x.enaQueueCount, putOpt "EnaSrdSpecification" x.enaSrdSpecification, putOpt "InstanceId" x.instanceId, putOpt "InstanceOwnerId" x.instanceOwnerId, putOpt "NetworkCardIndex" x.networkCardIndex, putOpt "Status" x.status] + ofValue v := do + let attachTime ← v.opt "AttachTime" + let attachmentId ← v.opt "AttachmentId" + let deleteOnTermination ← v.opt "DeleteOnTermination" + let deviceIndex ← v.opt "DeviceIndex" + let enaQueueCount ← v.opt "EnaQueueCount" + let enaSrdSpecification ← v.opt "EnaSrdSpecification" + let instanceId ← v.opt "InstanceId" + let instanceOwnerId ← v.opt "InstanceOwnerId" + let networkCardIndex ← v.opt "NetworkCardIndex" + let status ← v.opt "Status" + return { attachTime, attachmentId, deleteOnTermination, deviceIndex, enaQueueCount, enaSrdSpecification, instanceId, instanceOwnerId, networkCardIndex, status } + +/-- Describes a permission for a network interface. -/ +structure NetworkInterfacePermission where + /-- The Amazon Web Services account ID. -/ + awsAccountId : Option String := none + /-- The Amazon Web Services service. -/ + awsService : Option String := none + /-- The ID of the network interface. -/ + networkInterfaceId : Option String := none + /-- The ID of the network interface permission. -/ + networkInterfacePermissionId : Option String := none + /-- The type of permission. -/ + permission : Option InterfacePermissionType := none + /-- Information about the state of the permission. -/ + permissionState : Option NetworkInterfacePermissionState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkInterfacePermission where + schema := .struct "NetworkInterfacePermission" [({ name := "AwsAccountId", xmlName := some "awsAccountId", queryName := some "AwsAccountId" }, .string), + ({ name := "AwsService", xmlName := some "awsService", queryName := some "AwsService" }, .string), + ({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "NetworkInterfacePermissionId", xmlName := some "networkInterfacePermissionId", queryName := some "NetworkInterfacePermissionId" }, .string), + ({ name := "Permission", xmlName := some "permission", queryName := some "Permission" }, (Shape.schema InterfacePermissionType)), + ({ name := "PermissionState", xmlName := some "permissionState", queryName := some "PermissionState" }, (Shape.schema NetworkInterfacePermissionState))] + toValue x := record [putOpt "AwsAccountId" x.awsAccountId, putOpt "AwsService" x.awsService, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "NetworkInterfacePermissionId" x.networkInterfacePermissionId, putOpt "Permission" x.permission, putOpt "PermissionState" x.permissionState] + ofValue v := do + let awsAccountId ← v.opt "AwsAccountId" + let awsService ← v.opt "AwsService" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let networkInterfacePermissionId ← v.opt "NetworkInterfacePermissionId" + let permission ← v.opt "Permission" + let permissionState ← v.opt "PermissionState" + return { awsAccountId, awsService, networkInterfaceId, networkInterfacePermissionId, permission, permissionState } + +/-- Describes the neuron accelerators for the instance type. -/ +structure NeuronInfo where + /-- Describes the neuron accelerators for the instance type. -/ + neuronDevices : Option (List NeuronDeviceInfo) := none + /-- The total size of the memory for the neuron accelerators for the instance type, in MiB. -/ + totalNeuronDeviceMemoryInMiB : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NeuronInfo where + schema := .struct "NeuronInfo" [({ name := "NeuronDevices", xmlName := some "neuronDevices", queryName := some "NeuronDevices" }, (.list (Shape.schema NeuronDeviceInfo) "item")), + ({ name := "TotalNeuronDeviceMemoryInMiB", xmlName := some "totalNeuronDeviceMemoryInMiB", queryName := some "TotalNeuronDeviceMemoryInMiB" }, .int)] + toValue x := record [putOpt "NeuronDevices" x.neuronDevices, putOpt "TotalNeuronDeviceMemoryInMiB" x.totalNeuronDeviceMemoryInMiB] + ofValue v := do + let neuronDevices ← v.opt "NeuronDevices" + let totalNeuronDeviceMemoryInMiB ← v.opt "TotalNeuronDeviceMemoryInMiB" + return { neuronDevices, totalNeuronDeviceMemoryInMiB } + +/-- Describes the configuration of On-Demand Instances in an EC2 Fleet. -/ +structure OnDemandOptions where + /-- The strategy that determines the order of the launch template overrides to use in fulfilling On-Demand capacity. -/ + allocationStrategy : Option FleetOnDemandAllocationStrategy := none + /-- The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. -/ + capacityReservationOptions : Option CapacityReservationOptions := none + /-- The maximum amount per hour for On-Demand Instances that you're willing to pay. -/ + maxTotalPrice : Option String := none + /-- The minimum target capacity for On-Demand Instances in the fleet. -/ + minTargetCapacity : Option Int := none + /-- Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. -/ + singleAvailabilityZone : Option Bool := none + /-- Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet. -/ + singleInstanceType : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape OnDemandOptions where + schema := .struct "OnDemandOptions" [({ name := "AllocationStrategy", xmlName := some "allocationStrategy", queryName := some "AllocationStrategy" }, (Shape.schema FleetOnDemandAllocationStrategy)), + ({ name := "CapacityReservationOptions", xmlName := some "capacityReservationOptions", queryName := some "CapacityReservationOptions" }, (Shape.schema CapacityReservationOptions)), + ({ name := "MaxTotalPrice", xmlName := some "maxTotalPrice", queryName := some "MaxTotalPrice" }, .string), + ({ name := "MinTargetCapacity", xmlName := some "minTargetCapacity", queryName := some "MinTargetCapacity" }, .int), + ({ name := "SingleAvailabilityZone", xmlName := some "singleAvailabilityZone", queryName := some "SingleAvailabilityZone" }, .bool), + ({ name := "SingleInstanceType", xmlName := some "singleInstanceType", queryName := some "SingleInstanceType" }, .bool)] + toValue x := record [putOpt "AllocationStrategy" x.allocationStrategy, putOpt "CapacityReservationOptions" x.capacityReservationOptions, putOpt "MaxTotalPrice" x.maxTotalPrice, putOpt "MinTargetCapacity" x.minTargetCapacity, putOpt "SingleAvailabilityZone" x.singleAvailabilityZone, putOpt "SingleInstanceType" x.singleInstanceType] + ofValue v := do + let allocationStrategy ← v.opt "AllocationStrategy" + let capacityReservationOptions ← v.opt "CapacityReservationOptions" + let maxTotalPrice ← v.opt "MaxTotalPrice" + let minTargetCapacity ← v.opt "MinTargetCapacity" + let singleAvailabilityZone ← v.opt "SingleAvailabilityZone" + let singleInstanceType ← v.opt "SingleInstanceType" + return { allocationStrategy, capacityReservationOptions, maxTotalPrice, minTargetCapacity, singleAvailabilityZone, singleInstanceType } + +/-- Describes the configuration of On-Demand Instances in an EC2 Fleet. -/ +structure OnDemandOptionsRequest where + /-- The strategy that determines the order of the launch template overrides to use in fulfilling On-Demand capacity. -/ + allocationStrategy : Option FleetOnDemandAllocationStrategy := none + /-- The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. -/ + capacityReservationOptions : Option CapacityReservationOptionsRequest := none + /-- The maximum amount per hour for On-Demand Instances that you're willing to pay. -/ + maxTotalPrice : Option String := none + /-- The minimum target capacity for On-Demand Instances in the fleet. -/ + minTargetCapacity : Option Int := none + /-- Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. -/ + singleAvailabilityZone : Option Bool := none + /-- Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet. -/ + singleInstanceType : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape OnDemandOptionsRequest where + schema := .struct "OnDemandOptionsRequest" [({ name := "AllocationStrategy" }, (Shape.schema FleetOnDemandAllocationStrategy)), + ({ name := "CapacityReservationOptions" }, (Shape.schema CapacityReservationOptionsRequest)), + ({ name := "MaxTotalPrice" }, .string), + ({ name := "MinTargetCapacity" }, .int), + ({ name := "SingleAvailabilityZone" }, .bool), + ({ name := "SingleInstanceType" }, .bool)] + toValue x := record [putOpt "AllocationStrategy" x.allocationStrategy, putOpt "CapacityReservationOptions" x.capacityReservationOptions, putOpt "MaxTotalPrice" x.maxTotalPrice, putOpt "MinTargetCapacity" x.minTargetCapacity, putOpt "SingleAvailabilityZone" x.singleAvailabilityZone, putOpt "SingleInstanceType" x.singleInstanceType] + ofValue v := do + let allocationStrategy ← v.opt "AllocationStrategy" + let capacityReservationOptions ← v.opt "CapacityReservationOptions" + let maxTotalPrice ← v.opt "MaxTotalPrice" + let minTargetCapacity ← v.opt "MinTargetCapacity" + let singleAvailabilityZone ← v.opt "SingleAvailabilityZone" + let singleInstanceType ← v.opt "SingleInstanceType" + return { allocationStrategy, capacityReservationOptions, maxTotalPrice, minTargetCapacity, singleAvailabilityZone, singleInstanceType } + +/-- Describes a path statement. -/ +structure PathStatement where + /-- The packet header statement. -/ + packetHeaderStatement : Option PacketHeaderStatement := none + /-- The resource statement. -/ + resourceStatement : Option ResourceStatement := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PathStatement where + schema := .struct "PathStatement" [({ name := "PacketHeaderStatement", xmlName := some "packetHeaderStatement", queryName := some "PacketHeaderStatement" }, (Shape.schema PacketHeaderStatement)), + ({ name := "ResourceStatement", xmlName := some "resourceStatement", queryName := some "ResourceStatement" }, (Shape.schema ResourceStatement))] + toValue x := record [putOpt "PacketHeaderStatement" x.packetHeaderStatement, putOpt "ResourceStatement" x.resourceStatement] + ofValue v := do + let packetHeaderStatement ← v.opt "PacketHeaderStatement" + let resourceStatement ← v.opt "ResourceStatement" + return { packetHeaderStatement, resourceStatement } + +/-- Describes a path statement. -/ +structure PathStatementRequest where + /-- The packet header statement. -/ + packetHeaderStatement : Option PacketHeaderStatementRequest := none + /-- The resource statement. -/ + resourceStatement : Option ResourceStatementRequest := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PathStatementRequest where + schema := .struct "PathStatementRequest" [({ name := "PacketHeaderStatement" }, (Shape.schema PacketHeaderStatementRequest)), + ({ name := "ResourceStatement" }, (Shape.schema ResourceStatementRequest))] + toValue x := record [putOpt "PacketHeaderStatement" x.packetHeaderStatement, putOpt "ResourceStatement" x.resourceStatement] + ofValue v := do + let packetHeaderStatement ← v.opt "PacketHeaderStatement" + let resourceStatement ← v.opt "ResourceStatement" + return { packetHeaderStatement, resourceStatement } + +/-- Describes the cost allocation policy document for Amazon VPC peering connections. -/ +structure PcxFlexCostAllocationPolicyDocument where + /-- The CIDR range mappings to use for cost allocation. -/ + cidrRangeSpecifications : Option FlexCostAllocationCidrRangeSpecifications := none + /-- The cost dimensions to report. -/ + dimensions : (List FlexCostAllocationCostDimension) + /-- The resource granularity level at which networking costs are allocated. -/ + reportingGranularity : (List FlexCostAllocationReportingGranularity) +deriving DecidableEq, Repr, Inhabited + +instance : Shape PcxFlexCostAllocationPolicyDocument where + schema := .struct "PcxFlexCostAllocationPolicyDocument" [({ name := "CidrRangeSpecifications" }, (Shape.schema FlexCostAllocationCidrRangeSpecifications)), + ({ name := "Dimensions", required := true }, (.list (Shape.schema FlexCostAllocationCostDimension) "item")), + ({ name := "ReportingGranularity", required := true }, (.list (Shape.schema FlexCostAllocationReportingGranularity) "item"))] + toValue x := record [putOpt "CidrRangeSpecifications" x.cidrRangeSpecifications, put "Dimensions" x.dimensions, put "ReportingGranularity" x.reportingGranularity] + ofValue v := do + let cidrRangeSpecifications ← v.opt "CidrRangeSpecifications" + let dimensions ← v.req "Dimensions" + let reportingGranularity ← v.req "ReportingGranularity" + return { cidrRangeSpecifications, dimensions, reportingGranularity } + +structure ProvisionByoipCidrRequest where + /-- The public IPv4 or IPv6 address range, in CIDR notation. -/ + cidr : String + /-- A signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP. -/ + cidrAuthorizationContext : Option CidrAuthorizationContext := none + /-- A description for the address range and the address pool. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Reserved. -/ + multiRegion : Option Bool := none + /-- If you have Local Zones enabled, you can choose a network border group for Local Zones when you provision and advertise a BYOIPv4 CIDR. -/ + networkBorderGroup : Option String := none + /-- The tags to apply to the address pool. -/ + poolTagSpecifications : Option (List TagSpecification) := none + /-- (IPv6 only) Indicate whether the address range will be publicly advertised to the internet. -/ + publiclyAdvertisable : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ProvisionByoipCidrRequest where + schema := .struct "ProvisionByoipCidrRequest" [({ name := "Cidr", required := true }, .string), + ({ name := "CidrAuthorizationContext" }, (Shape.schema CidrAuthorizationContext)), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "MultiRegion" }, .bool), + ({ name := "NetworkBorderGroup" }, .string), + ({ name := "PoolTagSpecifications", xmlName := some "PoolTagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "PubliclyAdvertisable" }, .bool)] + toValue x := record [put "Cidr" x.cidr, putOpt "CidrAuthorizationContext" x.cidrAuthorizationContext, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "MultiRegion" x.multiRegion, putOpt "NetworkBorderGroup" x.networkBorderGroup, putOpt "PoolTagSpecifications" x.poolTagSpecifications, putOpt "PubliclyAdvertisable" x.publiclyAdvertisable] + ofValue v := do + let cidr ← v.req "Cidr" + let cidrAuthorizationContext ← v.opt "CidrAuthorizationContext" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let multiRegion ← v.opt "MultiRegion" + let networkBorderGroup ← v.opt "NetworkBorderGroup" + let poolTagSpecifications ← v.opt "PoolTagSpecifications" + let publiclyAdvertisable ← v.opt "PubliclyAdvertisable" + return { cidr, cidrAuthorizationContext, description, dryRun, multiRegion, networkBorderGroup, poolTagSpecifications, publiclyAdvertisable } + +structure ProvisionIpamByoasnResult where + /-- An ASN and BYOIP CIDR association. -/ + byoasn : Option Byoasn := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ProvisionIpamByoasnResult where + schema := .struct "ProvisionIpamByoasnResult" [({ name := "Byoasn", xmlName := some "byoasn", queryName := some "Byoasn" }, (Shape.schema Byoasn))] + toValue x := record [putOpt "Byoasn" x.byoasn] + ofValue v := do + let byoasn ← v.opt "Byoasn" + return { byoasn } + +structure PurchaseCapacityBlockExtensionResult where + /-- The purchased Capacity Block extensions. -/ + capacityBlockExtensions : Option (List CapacityBlockExtension) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PurchaseCapacityBlockExtensionResult where + schema := .struct "PurchaseCapacityBlockExtensionResult" [({ name := "CapacityBlockExtensions", xmlName := some "capacityBlockExtensionSet", queryName := some "CapacityBlockExtensionSet" }, (.list (Shape.schema CapacityBlockExtension) "item"))] + toValue x := record [putOpt "CapacityBlockExtensions" x.capacityBlockExtensions] + ofValue v := do + let capacityBlockExtensions ← v.opt "CapacityBlockExtensions" + return { capacityBlockExtensions } + +structure PurchaseCapacityBlockRequest where + /-- The ID of the Capacity Block offering. -/ + capacityBlockOfferingId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The type of operating system for which to reserve capacity. -/ + instancePlatform : CapacityReservationInstancePlatform + /-- The tags to apply to the Capacity Block during launch. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PurchaseCapacityBlockRequest where + schema := .struct "PurchaseCapacityBlockRequest" [({ name := "CapacityBlockOfferingId", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "InstancePlatform", required := true }, (Shape.schema CapacityReservationInstancePlatform)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [put "CapacityBlockOfferingId" x.capacityBlockOfferingId, putOpt "DryRun" x.dryRun, put "InstancePlatform" x.instancePlatform, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let capacityBlockOfferingId ← v.req "CapacityBlockOfferingId" + let dryRun ← v.opt "DryRun" + let instancePlatform ← v.req "InstancePlatform" + let tagSpecifications ← v.opt "TagSpecifications" + return { capacityBlockOfferingId, dryRun, instancePlatform, tagSpecifications } + +structure PurchaseHostReservationRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The currency in which the totalUpfrontPrice , LimitPrice , and totalHourlyPrice amounts are specified. -/ + currencyCode : Option CurrencyCodeValues := none + /-- The IDs of the Dedicated Hosts with which the reservation will be associated. -/ + hostIdSet : (List String) + /-- The specified limit is checked against the total upfront cost of the reservation (calculated as the offering's upfront cost multiplied by the host count). -/ + limitPrice : Option String := none + /-- The ID of the offering. -/ + offeringId : String + /-- The tags to apply to the Dedicated Host Reservation during purchase. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PurchaseHostReservationRequest where + schema := .struct "PurchaseHostReservationRequest" [({ name := "ClientToken" }, .string), + ({ name := "CurrencyCode" }, (Shape.schema CurrencyCodeValues)), + ({ name := "HostIdSet", required := true }, (.list .string "item")), + ({ name := "LimitPrice" }, .string), + ({ name := "OfferingId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "CurrencyCode" x.currencyCode, put "HostIdSet" x.hostIdSet, putOpt "LimitPrice" x.limitPrice, put "OfferingId" x.offeringId, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let currencyCode ← v.opt "CurrencyCode" + let hostIdSet ← v.req "HostIdSet" + let limitPrice ← v.opt "LimitPrice" + let offeringId ← v.req "OfferingId" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, currencyCode, hostIdSet, limitPrice, offeringId, tagSpecifications } + +structure PurchaseHostReservationResult where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The currency in which the totalUpfrontPrice and totalHourlyPrice amounts are specified. -/ + currencyCode : Option CurrencyCodeValues := none + /-- Describes the details of the purchase. -/ + purchase : Option (List Purchase) := none + /-- The total hourly price of the reservation calculated per hour. -/ + totalHourlyPrice : Option String := none + /-- The total amount charged to your account when you purchase the reservation. -/ + totalUpfrontPrice : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PurchaseHostReservationResult where + schema := .struct "PurchaseHostReservationResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "CurrencyCode", xmlName := some "currencyCode", queryName := some "CurrencyCode" }, (Shape.schema CurrencyCodeValues)), + ({ name := "Purchase", xmlName := some "purchase", queryName := some "Purchase" }, (.list (Shape.schema Purchase) "item")), + ({ name := "TotalHourlyPrice", xmlName := some "totalHourlyPrice", queryName := some "TotalHourlyPrice" }, .string), + ({ name := "TotalUpfrontPrice", xmlName := some "totalUpfrontPrice", queryName := some "TotalUpfrontPrice" }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "CurrencyCode" x.currencyCode, putOpt "Purchase" x.purchase, putOpt "TotalHourlyPrice" x.totalHourlyPrice, putOpt "TotalUpfrontPrice" x.totalUpfrontPrice] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let currencyCode ← v.opt "CurrencyCode" + let purchase ← v.opt "Purchase" + let totalHourlyPrice ← v.opt "TotalHourlyPrice" + let totalUpfrontPrice ← v.opt "TotalUpfrontPrice" + return { clientToken, currencyCode, purchase, totalHourlyPrice, totalUpfrontPrice } + +/-- Contains the parameters for PurchaseReservedInstancesOffering. -/ +structure PurchaseReservedInstancesOfferingRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The number of Reserved Instances to purchase. -/ + instanceCount : Int + /-- Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices. -/ + limitPrice : Option ReservedInstanceLimitPrice := none + /-- The time at which to purchase the Reserved Instance, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). -/ + purchaseTime : Option Timestamp := none + /-- The ID of the Reserved Instance offering to purchase. -/ + reservedInstancesOfferingId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape PurchaseReservedInstancesOfferingRequest where + schema := .struct "PurchaseReservedInstancesOfferingRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "InstanceCount", required := true }, .int), + ({ name := "LimitPrice", xmlName := some "limitPrice", queryName := some "LimitPrice" }, (Shape.schema ReservedInstanceLimitPrice)), + ({ name := "PurchaseTime" }, (.time none)), + ({ name := "ReservedInstancesOfferingId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "InstanceCount" x.instanceCount, putOpt "LimitPrice" x.limitPrice, putOpt "PurchaseTime" x.purchaseTime, put "ReservedInstancesOfferingId" x.reservedInstancesOfferingId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let instanceCount ← v.req "InstanceCount" + let limitPrice ← v.opt "LimitPrice" + let purchaseTime ← v.opt "PurchaseTime" + let reservedInstancesOfferingId ← v.req "ReservedInstancesOfferingId" + return { dryRun, instanceCount, limitPrice, purchaseTime, reservedInstancesOfferingId } + +/-- Contains the output of PurchaseScheduledInstances. -/ +structure PurchaseScheduledInstancesResult where + /-- Information about the Scheduled Instances. -/ + scheduledInstanceSet : Option (List ScheduledInstance) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PurchaseScheduledInstancesResult where + schema := .struct "PurchaseScheduledInstancesResult" [({ name := "ScheduledInstanceSet", xmlName := some "scheduledInstanceSet", queryName := some "ScheduledInstanceSet" }, (.list (Shape.schema ScheduledInstance) "item"))] + toValue x := record [putOpt "ScheduledInstanceSet" x.scheduledInstanceSet] + ofValue v := do + let scheduledInstanceSet ← v.opt "ScheduledInstanceSet" + return { scheduledInstanceSet } + +structure RejectTransitGatewayClientVpnAttachmentResult where + /-- Information about the Transit Gateway Client VPN attachment. -/ + transitGatewayClientVpnAttachment : Option TransitGatewayClientVpnAttachment := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RejectTransitGatewayClientVpnAttachmentResult where + schema := .struct "RejectTransitGatewayClientVpnAttachmentResult" [({ name := "TransitGatewayClientVpnAttachment", xmlName := some "transitGatewayClientVpnAttachment", queryName := some "TransitGatewayClientVpnAttachment" }, (Shape.schema TransitGatewayClientVpnAttachment))] + toValue x := record [putOpt "TransitGatewayClientVpnAttachment" x.transitGatewayClientVpnAttachment] + ofValue v := do + let transitGatewayClientVpnAttachment ← v.opt "TransitGatewayClientVpnAttachment" + return { transitGatewayClientVpnAttachment } + +structure RejectVpcEndpointConnectionsResult where + /-- Information about the endpoints that were not rejected, if applicable. -/ + unsuccessful : Option (List UnsuccessfulItem) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RejectVpcEndpointConnectionsResult where + schema := .struct "RejectVpcEndpointConnectionsResult" [({ name := "Unsuccessful", xmlName := some "unsuccessful", queryName := some "Unsuccessful" }, (.list (Shape.schema UnsuccessfulItem) "item"))] + toValue x := record [putOpt "Unsuccessful" x.unsuccessful] + ofValue v := do + let unsuccessful ← v.opt "Unsuccessful" + return { unsuccessful } + +structure ReleaseHostsResult where + /-- The IDs of the Dedicated Hosts that were successfully released. -/ + successful : Option (List String) := none + /-- The IDs of the Dedicated Hosts that could not be released, including an error message. -/ + unsuccessful : Option (List UnsuccessfulItem) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReleaseHostsResult where + schema := .struct "ReleaseHostsResult" [({ name := "Successful", xmlName := some "successful", queryName := some "Successful" }, (.list .string "item")), + ({ name := "Unsuccessful", xmlName := some "unsuccessful", queryName := some "Unsuccessful" }, (.list (Shape.schema UnsuccessfulItem) "item"))] + toValue x := record [putOpt "Successful" x.successful, putOpt "Unsuccessful" x.unsuccessful] + ofValue v := do + let successful ← v.opt "Successful" + let unsuccessful ← v.opt "Unsuccessful" + return { successful, unsuccessful } + +structure ReplaceIamInstanceProfileAssociationResult where + /-- Information about the IAM instance profile association. -/ + iamInstanceProfileAssociation : Option IamInstanceProfileAssociation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplaceIamInstanceProfileAssociationResult where + schema := .struct "ReplaceIamInstanceProfileAssociationResult" [({ name := "IamInstanceProfileAssociation", xmlName := some "iamInstanceProfileAssociation", queryName := some "IamInstanceProfileAssociation" }, (Shape.schema IamInstanceProfileAssociation))] + toValue x := record [putOpt "IamInstanceProfileAssociation" x.iamInstanceProfileAssociation] + ofValue v := do + let iamInstanceProfileAssociation ← v.opt "IamInstanceProfileAssociation" + return { iamInstanceProfileAssociation } + +structure ReplaceRouteTableAssociationResult where + /-- The state of the association. -/ + associationState : Option RouteTableAssociationState := none + /-- The ID of the new association. -/ + newAssociationId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplaceRouteTableAssociationResult where + schema := .struct "ReplaceRouteTableAssociationResult" [({ name := "AssociationState", xmlName := some "associationState", queryName := some "AssociationState" }, (Shape.schema RouteTableAssociationState)), + ({ name := "NewAssociationId", xmlName := some "newAssociationId", queryName := some "NewAssociationId" }, .string)] + toValue x := record [putOpt "AssociationState" x.associationState, putOpt "NewAssociationId" x.newAssociationId] + ofValue v := do + let associationState ← v.opt "AssociationState" + let newAssociationId ← v.opt "NewAssociationId" + return { associationState, newAssociationId } + +/-- Defines EC2 Fleet preferences for utilizing reserved capacity when DefaultTargetCapacityType is set to reserved-capacity . -/ +structure ReservedCapacityOptions where + /-- The strategy that determines the order in which EC2 Fleet launches instances across the reservation types that you specify. -/ + allocationStrategy : Option ReservedCapacityAllocationStrategy := none + /-- The types of Capacity Reservations used for fulfilling the EC2 Fleet request. -/ + reservationTypes : Option (List FleetReservationType) := none + /-- The fallback behavior for the EC2 Fleet when there is not enough reserved capacity available to meet the target capacity. -/ + reservedCapacityFallbackOptions : Option ReservedCapacityFallbackOptions := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReservedCapacityOptions where + schema := .struct "ReservedCapacityOptions" [({ name := "AllocationStrategy", xmlName := some "allocationStrategy", queryName := some "AllocationStrategy" }, (Shape.schema ReservedCapacityAllocationStrategy)), + ({ name := "ReservationTypes", xmlName := some "reservationTypeSet", queryName := some "ReservationTypeSet" }, (.list (Shape.schema FleetReservationType) "item")), + ({ name := "ReservedCapacityFallbackOptions", xmlName := some "reservedCapacityFallbackOptions", queryName := some "ReservedCapacityFallbackOptions" }, (Shape.schema ReservedCapacityFallbackOptions))] + toValue x := record [putOpt "AllocationStrategy" x.allocationStrategy, putOpt "ReservationTypes" x.reservationTypes, putOpt "ReservedCapacityFallbackOptions" x.reservedCapacityFallbackOptions] + ofValue v := do + let allocationStrategy ← v.opt "AllocationStrategy" + let reservationTypes ← v.opt "ReservationTypes" + let reservedCapacityFallbackOptions ← v.opt "ReservedCapacityFallbackOptions" + return { allocationStrategy, reservationTypes, reservedCapacityFallbackOptions } + +/-- Defines EC2 Fleet preferences for utilizing reserved capacity when DefaultTargetCapacityType is set to reserved-capacity . -/ +structure ReservedCapacityOptionsRequest where + /-- The strategy that determines the order in which EC2 Fleet launches instances across the reservation types that you specify. -/ + allocationStrategy : Option ReservedCapacityAllocationStrategy := none + /-- The Capacity Reservations or Capacity Reservation Resource Groups to use for fulfilling the EC2 Fleet request. -/ + capacityReservationTarget : Option FleetCapacityReservationTargetRequest := none + /-- The types of Capacity Reservations to use for fulfilling the EC2 Fleet request. -/ + reservationTypes : Option (List FleetReservationType) := none + /-- The fallback behavior for the EC2 Fleet when there is not enough reserved capacity available to meet the target capacity. -/ + reservedCapacityFallbackOptions : Option ReservedCapacityFallbackOptionsRequest := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReservedCapacityOptionsRequest where + schema := .struct "ReservedCapacityOptionsRequest" [({ name := "AllocationStrategy" }, (Shape.schema ReservedCapacityAllocationStrategy)), + ({ name := "CapacityReservationTarget" }, (Shape.schema FleetCapacityReservationTargetRequest)), + ({ name := "ReservationTypes", xmlName := some "ReservationType" }, (.list (Shape.schema FleetReservationType) "ReservationType")), + ({ name := "ReservedCapacityFallbackOptions" }, (Shape.schema ReservedCapacityFallbackOptionsRequest))] + toValue x := record [putOpt "AllocationStrategy" x.allocationStrategy, putOpt "CapacityReservationTarget" x.capacityReservationTarget, putOpt "ReservationTypes" x.reservationTypes, putOpt "ReservedCapacityFallbackOptions" x.reservedCapacityFallbackOptions] + ofValue v := do + let allocationStrategy ← v.opt "AllocationStrategy" + let capacityReservationTarget ← v.opt "CapacityReservationTarget" + let reservationTypes ← v.opt "ReservationTypes" + let reservedCapacityFallbackOptions ← v.opt "ReservedCapacityFallbackOptions" + return { allocationStrategy, capacityReservationTarget, reservationTypes, reservedCapacityFallbackOptions } + +/-- Describes a Reserved Instance. -/ +structure ReservedInstances where + /-- The Availability Zone in which the Reserved Instance can be used. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone. -/ + availabilityZoneId : Option String := none + /-- The currency of the Reserved Instance. -/ + currencyCode : Option CurrencyCodeValues := none + /-- The duration of the Reserved Instance, in seconds. -/ + duration : Option Int := none + /-- The time when the Reserved Instance expires. -/ + «end» : Option Timestamp := none + /-- The purchase price of the Reserved Instance. -/ + fixedPrice : Option JsonNumber := none + /-- The number of reservations purchased. -/ + instanceCount : Option Int := none + /-- The tenancy of the instance. -/ + instanceTenancy : Option Tenancy := none + /-- The instance type on which the Reserved Instance can be used. -/ + instanceType : Option InstanceType := none + /-- The offering class of the Reserved Instance. -/ + offeringClass : Option OfferingClassType := none + /-- The Reserved Instance offering type. -/ + offeringType : Option OfferingTypeValues := none + /-- The Reserved Instance product platform description. -/ + productDescription : Option RIProductDescription := none + /-- The recurring charge tag assigned to the resource. -/ + recurringCharges : Option (List RecurringCharge) := none + /-- The ID of the Reserved Instance. -/ + reservedInstancesId : Option String := none + /-- The scope of the Reserved Instance. -/ + scope : Option scope := none + /-- The date and time the Reserved Instance started. -/ + start : Option Timestamp := none + /-- The state of the Reserved Instance purchase. -/ + state : Option ReservedInstanceState := none + /-- Any tags assigned to the resource. -/ + tags : Option (List Tag) := none + /-- The usage price of the Reserved Instance, per hour. -/ + usagePrice : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReservedInstances where + schema := .struct "ReservedInstances" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "CurrencyCode", xmlName := some "currencyCode", queryName := some "CurrencyCode" }, (Shape.schema CurrencyCodeValues)), + ({ name := "Duration", xmlName := some "duration", queryName := some "Duration" }, .int), + ({ name := "End", xmlName := some "end", queryName := some "End" }, (.time none)), + ({ name := "FixedPrice", xmlName := some "fixedPrice", queryName := some "FixedPrice" }, .number), + ({ name := "InstanceCount", xmlName := some "instanceCount", queryName := some "InstanceCount" }, .int), + ({ name := "InstanceTenancy", xmlName := some "instanceTenancy", queryName := some "InstanceTenancy" }, (Shape.schema Tenancy)), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "OfferingClass", xmlName := some "offeringClass", queryName := some "OfferingClass" }, (Shape.schema OfferingClassType)), + ({ name := "OfferingType", xmlName := some "offeringType", queryName := some "OfferingType" }, (Shape.schema OfferingTypeValues)), + ({ name := "ProductDescription", xmlName := some "productDescription", queryName := some "ProductDescription" }, (Shape.schema RIProductDescription)), + ({ name := "RecurringCharges", xmlName := some "recurringCharges", queryName := some "RecurringCharges" }, (.list (Shape.schema RecurringCharge) "item")), + ({ name := "ReservedInstancesId", xmlName := some "reservedInstancesId", queryName := some "ReservedInstancesId" }, .string), + ({ name := "Scope", xmlName := some "scope", queryName := some "Scope" }, (Shape.schema scope)), + ({ name := "Start", xmlName := some "start", queryName := some "Start" }, (.time none)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema ReservedInstanceState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "UsagePrice", xmlName := some "usagePrice", queryName := some "UsagePrice" }, .number)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "CurrencyCode" x.currencyCode, putOpt "Duration" x.duration, putOpt "End" x.«end», putOpt "FixedPrice" x.fixedPrice, putOpt "InstanceCount" x.instanceCount, putOpt "InstanceTenancy" x.instanceTenancy, putOpt "InstanceType" x.instanceType, putOpt "OfferingClass" x.offeringClass, putOpt "OfferingType" x.offeringType, putOpt "ProductDescription" x.productDescription, putOpt "RecurringCharges" x.recurringCharges, putOpt "ReservedInstancesId" x.reservedInstancesId, putOpt "Scope" x.scope, putOpt "Start" x.start, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "UsagePrice" x.usagePrice] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let currencyCode ← v.opt "CurrencyCode" + let duration ← v.opt "Duration" + let «end» ← v.opt "End" + let fixedPrice ← v.opt "FixedPrice" + let instanceCount ← v.opt "InstanceCount" + let instanceTenancy ← v.opt "InstanceTenancy" + let instanceType ← v.opt "InstanceType" + let offeringClass ← v.opt "OfferingClass" + let offeringType ← v.opt "OfferingType" + let productDescription ← v.opt "ProductDescription" + let recurringCharges ← v.opt "RecurringCharges" + let reservedInstancesId ← v.opt "ReservedInstancesId" + let scope ← v.opt "Scope" + let start ← v.opt "Start" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let usagePrice ← v.opt "UsagePrice" + return { availabilityZone, availabilityZoneId, currencyCode, duration, «end», fixedPrice, instanceCount, instanceTenancy, instanceType, offeringClass, offeringType, productDescription, recurringCharges, reservedInstancesId, scope, start, state, tags, usagePrice } + +/-- Describes a Reserved Instance listing. -/ +structure ReservedInstancesListing where + /-- A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. -/ + clientToken : Option String := none + /-- The time the listing was created. -/ + createDate : Option Timestamp := none + /-- The number of instances in this state. -/ + instanceCounts : Option (List InstanceCount) := none + /-- The price of the Reserved Instance listing. -/ + priceSchedules : Option (List PriceSchedule) := none + /-- The ID of the Reserved Instance. -/ + reservedInstancesId : Option String := none + /-- The ID of the Reserved Instance listing. -/ + reservedInstancesListingId : Option String := none + /-- The status of the Reserved Instance listing. -/ + status : Option ListingStatus := none + /-- The reason for the current status of the Reserved Instance listing. -/ + statusMessage : Option String := none + /-- Any tags assigned to the resource. -/ + tags : Option (List Tag) := none + /-- The last modified timestamp of the listing. -/ + updateDate : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReservedInstancesListing where + schema := .struct "ReservedInstancesListing" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "CreateDate", xmlName := some "createDate", queryName := some "CreateDate" }, (.time none)), + ({ name := "InstanceCounts", xmlName := some "instanceCounts", queryName := some "InstanceCounts" }, (.list (Shape.schema InstanceCount) "item")), + ({ name := "PriceSchedules", xmlName := some "priceSchedules", queryName := some "PriceSchedules" }, (.list (Shape.schema PriceSchedule) "item")), + ({ name := "ReservedInstancesId", xmlName := some "reservedInstancesId", queryName := some "ReservedInstancesId" }, .string), + ({ name := "ReservedInstancesListingId", xmlName := some "reservedInstancesListingId", queryName := some "ReservedInstancesListingId" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema ListingStatus)), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "UpdateDate", xmlName := some "updateDate", queryName := some "UpdateDate" }, (.time none))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "CreateDate" x.createDate, putOpt "InstanceCounts" x.instanceCounts, putOpt "PriceSchedules" x.priceSchedules, putOpt "ReservedInstancesId" x.reservedInstancesId, putOpt "ReservedInstancesListingId" x.reservedInstancesListingId, putOpt "Status" x.status, putOpt "StatusMessage" x.statusMessage, putOpt "Tags" x.tags, putOpt "UpdateDate" x.updateDate] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let createDate ← v.opt "CreateDate" + let instanceCounts ← v.opt "InstanceCounts" + let priceSchedules ← v.opt "PriceSchedules" + let reservedInstancesId ← v.opt "ReservedInstancesId" + let reservedInstancesListingId ← v.opt "ReservedInstancesListingId" + let status ← v.opt "Status" + let statusMessage ← v.opt "StatusMessage" + let tags ← v.opt "Tags" + let updateDate ← v.opt "UpdateDate" + return { clientToken, createDate, instanceCounts, priceSchedules, reservedInstancesId, reservedInstancesListingId, status, statusMessage, tags, updateDate } + +/-- Describes the modification request/s. -/ +structure ReservedInstancesModificationResult where + /-- The ID for the Reserved Instances that were created as part of the modification request. -/ + reservedInstancesId : Option String := none + /-- The target Reserved Instances configurations supplied as part of the modification request. -/ + targetConfiguration : Option ReservedInstancesConfiguration := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReservedInstancesModificationResult where + schema := .struct "ReservedInstancesModificationResult" [({ name := "ReservedInstancesId", xmlName := some "reservedInstancesId", queryName := some "ReservedInstancesId" }, .string), + ({ name := "TargetConfiguration", xmlName := some "targetConfiguration", queryName := some "TargetConfiguration" }, (Shape.schema ReservedInstancesConfiguration))] + toValue x := record [putOpt "ReservedInstancesId" x.reservedInstancesId, putOpt "TargetConfiguration" x.targetConfiguration] + ofValue v := do + let reservedInstancesId ← v.opt "ReservedInstancesId" + let targetConfiguration ← v.opt "TargetConfiguration" + return { reservedInstancesId, targetConfiguration } + +/-- Describes a Reserved Instance offering. -/ +structure ReservedInstancesOffering where + /-- The Availability Zone in which the Reserved Instance can be used. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone. -/ + availabilityZoneId : Option String := none + /-- The currency of the Reserved Instance offering you are purchasing. -/ + currencyCode : Option CurrencyCodeValues := none + /-- The duration of the Reserved Instance, in seconds. -/ + duration : Option Int := none + /-- The purchase price of the Reserved Instance. -/ + fixedPrice : Option JsonNumber := none + /-- The tenancy of the instance. -/ + instanceTenancy : Option Tenancy := none + /-- The instance type on which the Reserved Instance can be used. -/ + instanceType : Option InstanceType := none + /-- Indicates whether the offering is available through the Reserved Instance Marketplace (resale) or Amazon Web Services. -/ + marketplace : Option Bool := none + /-- If convertible it can be exchanged for Reserved Instances of the same or higher monetary value, with different configurations. -/ + offeringClass : Option OfferingClassType := none + /-- The Reserved Instance offering type. -/ + offeringType : Option OfferingTypeValues := none + /-- The pricing details of the Reserved Instance offering. -/ + pricingDetails : Option (List PricingDetail) := none + /-- The Reserved Instance product platform description. -/ + productDescription : Option RIProductDescription := none + /-- The recurring charge tag assigned to the resource. -/ + recurringCharges : Option (List RecurringCharge) := none + /-- The ID of the Reserved Instance offering. -/ + reservedInstancesOfferingId : Option String := none + /-- Whether the Reserved Instance is applied to instances in a Region or an Availability Zone. -/ + scope : Option scope := none + /-- The usage price of the Reserved Instance, per hour. -/ + usagePrice : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReservedInstancesOffering where + schema := .struct "ReservedInstancesOffering" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "CurrencyCode", xmlName := some "currencyCode", queryName := some "CurrencyCode" }, (Shape.schema CurrencyCodeValues)), + ({ name := "Duration", xmlName := some "duration", queryName := some "Duration" }, .int), + ({ name := "FixedPrice", xmlName := some "fixedPrice", queryName := some "FixedPrice" }, .number), + ({ name := "InstanceTenancy", xmlName := some "instanceTenancy", queryName := some "InstanceTenancy" }, (Shape.schema Tenancy)), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "Marketplace", xmlName := some "marketplace", queryName := some "Marketplace" }, .bool), + ({ name := "OfferingClass", xmlName := some "offeringClass", queryName := some "OfferingClass" }, (Shape.schema OfferingClassType)), + ({ name := "OfferingType", xmlName := some "offeringType", queryName := some "OfferingType" }, (Shape.schema OfferingTypeValues)), + ({ name := "PricingDetails", xmlName := some "pricingDetailsSet", queryName := some "PricingDetailsSet" }, (.list (Shape.schema PricingDetail) "item")), + ({ name := "ProductDescription", xmlName := some "productDescription", queryName := some "ProductDescription" }, (Shape.schema RIProductDescription)), + ({ name := "RecurringCharges", xmlName := some "recurringCharges", queryName := some "RecurringCharges" }, (.list (Shape.schema RecurringCharge) "item")), + ({ name := "ReservedInstancesOfferingId", xmlName := some "reservedInstancesOfferingId", queryName := some "ReservedInstancesOfferingId" }, .string), + ({ name := "Scope", xmlName := some "scope", queryName := some "Scope" }, (Shape.schema scope)), + ({ name := "UsagePrice", xmlName := some "usagePrice", queryName := some "UsagePrice" }, .number)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "CurrencyCode" x.currencyCode, putOpt "Duration" x.duration, putOpt "FixedPrice" x.fixedPrice, putOpt "InstanceTenancy" x.instanceTenancy, putOpt "InstanceType" x.instanceType, putOpt "Marketplace" x.marketplace, putOpt "OfferingClass" x.offeringClass, putOpt "OfferingType" x.offeringType, putOpt "PricingDetails" x.pricingDetails, putOpt "ProductDescription" x.productDescription, putOpt "RecurringCharges" x.recurringCharges, putOpt "ReservedInstancesOfferingId" x.reservedInstancesOfferingId, putOpt "Scope" x.scope, putOpt "UsagePrice" x.usagePrice] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let currencyCode ← v.opt "CurrencyCode" + let duration ← v.opt "Duration" + let fixedPrice ← v.opt "FixedPrice" + let instanceTenancy ← v.opt "InstanceTenancy" + let instanceType ← v.opt "InstanceType" + let marketplace ← v.opt "Marketplace" + let offeringClass ← v.opt "OfferingClass" + let offeringType ← v.opt "OfferingType" + let pricingDetails ← v.opt "PricingDetails" + let productDescription ← v.opt "ProductDescription" + let recurringCharges ← v.opt "RecurringCharges" + let reservedInstancesOfferingId ← v.opt "ReservedInstancesOfferingId" + let scope ← v.opt "Scope" + let usagePrice ← v.opt "UsagePrice" + return { availabilityZone, availabilityZoneId, currencyCode, duration, fixedPrice, instanceTenancy, instanceType, marketplace, offeringClass, offeringType, pricingDetails, productDescription, recurringCharges, reservedInstancesOfferingId, scope, usagePrice } + +structure ResetAddressAttributeResult where + /-- Information about the IP address. -/ + address : Option AddressAttribute := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResetAddressAttributeResult where + schema := .struct "ResetAddressAttributeResult" [({ name := "Address", xmlName := some "address", queryName := some "Address" }, (Shape.schema AddressAttribute))] + toValue x := record [putOpt "Address" x.address] + ofValue v := do + let address ← v.opt "Address" + return { address } + +/-- A resource type to check for image references. -/ +structure ResourceTypeRequest where + /-- The resource type. -/ + resourceType : Option ImageReferenceResourceType := none + /-- The options that affect the scope of the response. -/ + resourceTypeOptions : Option (List ResourceTypeOption) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResourceTypeRequest where + schema := .struct "ResourceTypeRequest" [({ name := "ResourceType" }, (Shape.schema ImageReferenceResourceType)), + ({ name := "ResourceTypeOptions", xmlName := some "ResourceTypeOption" }, (.list (Shape.schema ResourceTypeOption) "member"))] + toValue x := record [putOpt "ResourceType" x.resourceType, putOpt "ResourceTypeOptions" x.resourceTypeOptions] + ofValue v := do + let resourceType ← v.opt "ResourceType" + let resourceTypeOptions ← v.opt "ResourceTypeOptions" + return { resourceType, resourceTypeOptions } + +structure RestoreManagedPrefixListVersionResult where + /-- Information about the prefix list. -/ + prefixList : Option ManagedPrefixList := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreManagedPrefixListVersionResult where + schema := .struct "RestoreManagedPrefixListVersionResult" [({ name := "PrefixList", xmlName := some "prefixList", queryName := some "PrefixList" }, (Shape.schema ManagedPrefixList))] + toValue x := record [putOpt "PrefixList" x.prefixList] + ofValue v := do + let prefixList ← v.opt "PrefixList" + return { prefixList } + +structure RevokeClientVpnIngressResult where + /-- The current state of the authorization rule. -/ + status : Option ClientVpnAuthorizationRuleStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RevokeClientVpnIngressResult where + schema := .struct "RevokeClientVpnIngressResult" [({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema ClientVpnAuthorizationRuleStatus))] + toValue x := record [putOpt "Status" x.status] + ofValue v := do + let status ← v.opt "Status" + return { status } + +structure RevokeSecurityGroupEgressRequest where + /-- Not supported. -/ + cidrIp : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Not supported. -/ + fromPort : Option Int := none + /-- The ID of the security group. -/ + groupId : String + /-- The sets of IP permissions. -/ + ipPermissions : Option (List IpPermission) := none + /-- Not supported. -/ + ipProtocol : Option String := none + /-- The IDs of the security group rules. -/ + securityGroupRuleIds : Option (List String) := none + /-- Not supported. -/ + sourceSecurityGroupName : Option String := none + /-- Not supported. -/ + sourceSecurityGroupOwnerId : Option String := none + /-- Not supported. -/ + toPort : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RevokeSecurityGroupEgressRequest where + schema := .struct "RevokeSecurityGroupEgressRequest" [({ name := "CidrIp", xmlName := some "cidrIp", queryName := some "CidrIp" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "FromPort", xmlName := some "fromPort", queryName := some "FromPort" }, .int), + ({ name := "GroupId", required := true, xmlName := some "groupId", queryName := some "GroupId" }, .string), + ({ name := "IpPermissions", xmlName := some "ipPermissions", queryName := some "IpPermissions" }, (.list (Shape.schema IpPermission) "item")), + ({ name := "IpProtocol", xmlName := some "ipProtocol", queryName := some "IpProtocol" }, .string), + ({ name := "SecurityGroupRuleIds", xmlName := some "SecurityGroupRuleId" }, (.list .string "item")), + ({ name := "SourceSecurityGroupName", xmlName := some "sourceSecurityGroupName", queryName := some "SourceSecurityGroupName" }, .string), + ({ name := "SourceSecurityGroupOwnerId", xmlName := some "sourceSecurityGroupOwnerId", queryName := some "SourceSecurityGroupOwnerId" }, .string), + ({ name := "ToPort", xmlName := some "toPort", queryName := some "ToPort" }, .int)] + toValue x := record [putOpt "CidrIp" x.cidrIp, putOpt "DryRun" x.dryRun, putOpt "FromPort" x.fromPort, put "GroupId" x.groupId, putOpt "IpPermissions" x.ipPermissions, putOpt "IpProtocol" x.ipProtocol, putOpt "SecurityGroupRuleIds" x.securityGroupRuleIds, putOpt "SourceSecurityGroupName" x.sourceSecurityGroupName, putOpt "SourceSecurityGroupOwnerId" x.sourceSecurityGroupOwnerId, putOpt "ToPort" x.toPort] + ofValue v := do + let cidrIp ← v.opt "CidrIp" + let dryRun ← v.opt "DryRun" + let fromPort ← v.opt "FromPort" + let groupId ← v.req "GroupId" + let ipPermissions ← v.opt "IpPermissions" + let ipProtocol ← v.opt "IpProtocol" + let securityGroupRuleIds ← v.opt "SecurityGroupRuleIds" + let sourceSecurityGroupName ← v.opt "SourceSecurityGroupName" + let sourceSecurityGroupOwnerId ← v.opt "SourceSecurityGroupOwnerId" + let toPort ← v.opt "ToPort" + return { cidrIp, dryRun, fromPort, groupId, ipPermissions, ipProtocol, securityGroupRuleIds, sourceSecurityGroupName, sourceSecurityGroupOwnerId, toPort } + +structure RevokeSecurityGroupEgressResult where + /-- Returns true if the request succeeds; otherwise, returns an error. -/ + «return» : Option Bool := none + /-- Details about the revoked security group rules. -/ + revokedSecurityGroupRules : Option (List RevokedSecurityGroupRule) := none + /-- The outbound rules that were unknown to the service. -/ + unknownIpPermissions : Option (List IpPermission) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RevokeSecurityGroupEgressResult where + schema := .struct "RevokeSecurityGroupEgressResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool), + ({ name := "RevokedSecurityGroupRules", xmlName := some "revokedSecurityGroupRuleSet", queryName := some "RevokedSecurityGroupRuleSet" }, (.list (Shape.schema RevokedSecurityGroupRule) "item")), + ({ name := "UnknownIpPermissions", xmlName := some "unknownIpPermissionSet", queryName := some "UnknownIpPermissionSet" }, (.list (Shape.schema IpPermission) "item"))] + toValue x := record [putOpt "Return" x.«return», putOpt "RevokedSecurityGroupRules" x.revokedSecurityGroupRules, putOpt "UnknownIpPermissions" x.unknownIpPermissions] + ofValue v := do + let «return» ← v.opt "Return" + let revokedSecurityGroupRules ← v.opt "RevokedSecurityGroupRules" + let unknownIpPermissions ← v.opt "UnknownIpPermissions" + return { «return», revokedSecurityGroupRules, unknownIpPermissions } + +structure RevokeSecurityGroupIngressRequest where + /-- The CIDR IP address range. -/ + cidrIp : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- If the protocol is TCP or UDP, this is the start of the port range. -/ + fromPort : Option Int := none + /-- The ID of the security group. -/ + groupId : Option String := none + /-- [Default VPC] The name of the security group. -/ + groupName : Option String := none + /-- The sets of IP permissions. -/ + ipPermissions : Option (List IpPermission) := none + /-- The IP protocol name ( tcp , udp , icmp ) or number (see Protocol Numbers ). -/ + ipProtocol : Option String := none + /-- The IDs of the security group rules. -/ + securityGroupRuleIds : Option (List String) := none + /-- [Default VPC] The name of the source security group. -/ + sourceSecurityGroupName : Option String := none + /-- Not supported. -/ + sourceSecurityGroupOwnerId : Option String := none + /-- If the protocol is TCP or UDP, this is the end of the port range. -/ + toPort : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RevokeSecurityGroupIngressRequest where + schema := .struct "RevokeSecurityGroupIngressRequest" [({ name := "CidrIp" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "FromPort" }, .int), + ({ name := "GroupId" }, .string), + ({ name := "GroupName" }, .string), + ({ name := "IpPermissions" }, (.list (Shape.schema IpPermission) "item")), + ({ name := "IpProtocol" }, .string), + ({ name := "SecurityGroupRuleIds", xmlName := some "SecurityGroupRuleId" }, (.list .string "item")), + ({ name := "SourceSecurityGroupName" }, .string), + ({ name := "SourceSecurityGroupOwnerId" }, .string), + ({ name := "ToPort" }, .int)] + toValue x := record [putOpt "CidrIp" x.cidrIp, putOpt "DryRun" x.dryRun, putOpt "FromPort" x.fromPort, putOpt "GroupId" x.groupId, putOpt "GroupName" x.groupName, putOpt "IpPermissions" x.ipPermissions, putOpt "IpProtocol" x.ipProtocol, putOpt "SecurityGroupRuleIds" x.securityGroupRuleIds, putOpt "SourceSecurityGroupName" x.sourceSecurityGroupName, putOpt "SourceSecurityGroupOwnerId" x.sourceSecurityGroupOwnerId, putOpt "ToPort" x.toPort] + ofValue v := do + let cidrIp ← v.opt "CidrIp" + let dryRun ← v.opt "DryRun" + let fromPort ← v.opt "FromPort" + let groupId ← v.opt "GroupId" + let groupName ← v.opt "GroupName" + let ipPermissions ← v.opt "IpPermissions" + let ipProtocol ← v.opt "IpProtocol" + let securityGroupRuleIds ← v.opt "SecurityGroupRuleIds" + let sourceSecurityGroupName ← v.opt "SourceSecurityGroupName" + let sourceSecurityGroupOwnerId ← v.opt "SourceSecurityGroupOwnerId" + let toPort ← v.opt "ToPort" + return { cidrIp, dryRun, fromPort, groupId, groupName, ipPermissions, ipProtocol, securityGroupRuleIds, sourceSecurityGroupName, sourceSecurityGroupOwnerId, toPort } + +structure RevokeSecurityGroupIngressResult where + /-- Returns true if the request succeeds; otherwise, returns an error. -/ + «return» : Option Bool := none + /-- Details about the revoked security group rules. -/ + revokedSecurityGroupRules : Option (List RevokedSecurityGroupRule) := none + /-- The inbound rules that were unknown to the service. -/ + unknownIpPermissions : Option (List IpPermission) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RevokeSecurityGroupIngressResult where + schema := .struct "RevokeSecurityGroupIngressResult" [({ name := "Return", xmlName := some "return", queryName := some "Return" }, .bool), + ({ name := "RevokedSecurityGroupRules", xmlName := some "revokedSecurityGroupRuleSet", queryName := some "RevokedSecurityGroupRuleSet" }, (.list (Shape.schema RevokedSecurityGroupRule) "item")), + ({ name := "UnknownIpPermissions", xmlName := some "unknownIpPermissionSet", queryName := some "UnknownIpPermissionSet" }, (.list (Shape.schema IpPermission) "item"))] + toValue x := record [putOpt "Return" x.«return», putOpt "RevokedSecurityGroupRules" x.revokedSecurityGroupRules, putOpt "UnknownIpPermissions" x.unknownIpPermissions] + ofValue v := do + let «return» ← v.opt "Return" + let revokedSecurityGroupRules ← v.opt "RevokedSecurityGroupRules" + let unknownIpPermissions ← v.opt "UnknownIpPermissions" + return { «return», revokedSecurityGroupRules, unknownIpPermissions } + +/-- Describes a BGP peer configuration for a route server endpoint. -/ +structure RouteServerPeer where + /-- The current status of the BFD session with this peer. -/ + bfdStatus : Option RouteServerBfdStatus := none + /-- The BGP configuration options for this peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings. -/ + bgpOptions : Option RouteServerBgpOptions := none + /-- The current status of the BGP session with this peer. -/ + bgpStatus : Option RouteServerBgpStatus := none + /-- The IP address of the Elastic network interface for the route server endpoint. -/ + endpointEniAddress : Option String := none + /-- The ID of the Elastic network interface for the route server endpoint. -/ + endpointEniId : Option String := none + /-- The reason for any failure in peer creation or operation. -/ + failureReason : Option String := none + /-- The IPv4 address of the peer device. -/ + peerAddress : Option String := none + /-- The ID of the route server endpoint associated with this peer. -/ + routeServerEndpointId : Option String := none + /-- The ID of the route server associated with this peer. -/ + routeServerId : Option String := none + /-- The unique identifier of the route server peer. -/ + routeServerPeerId : Option String := none + /-- The current state of the route server peer. -/ + state : Option RouteServerPeerState := none + /-- The ID of the subnet containing the route server peer. -/ + subnetId : Option String := none + /-- Any tags assigned to the route server peer. -/ + tags : Option (List Tag) := none + /-- The ID of the VPC containing the route server peer. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RouteServerPeer where + schema := .struct "RouteServerPeer" [({ name := "BfdStatus", xmlName := some "bfdStatus", queryName := some "BfdStatus" }, (Shape.schema RouteServerBfdStatus)), + ({ name := "BgpOptions", xmlName := some "bgpOptions", queryName := some "BgpOptions" }, (Shape.schema RouteServerBgpOptions)), + ({ name := "BgpStatus", xmlName := some "bgpStatus", queryName := some "BgpStatus" }, (Shape.schema RouteServerBgpStatus)), + ({ name := "EndpointEniAddress", xmlName := some "endpointEniAddress", queryName := some "EndpointEniAddress" }, .string), + ({ name := "EndpointEniId", xmlName := some "endpointEniId", queryName := some "EndpointEniId" }, .string), + ({ name := "FailureReason", xmlName := some "failureReason", queryName := some "FailureReason" }, .string), + ({ name := "PeerAddress", xmlName := some "peerAddress", queryName := some "PeerAddress" }, .string), + ({ name := "RouteServerEndpointId", xmlName := some "routeServerEndpointId", queryName := some "RouteServerEndpointId" }, .string), + ({ name := "RouteServerId", xmlName := some "routeServerId", queryName := some "RouteServerId" }, .string), + ({ name := "RouteServerPeerId", xmlName := some "routeServerPeerId", queryName := some "RouteServerPeerId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema RouteServerPeerState)), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "BfdStatus" x.bfdStatus, putOpt "BgpOptions" x.bgpOptions, putOpt "BgpStatus" x.bgpStatus, putOpt "EndpointEniAddress" x.endpointEniAddress, putOpt "EndpointEniId" x.endpointEniId, putOpt "FailureReason" x.failureReason, putOpt "PeerAddress" x.peerAddress, putOpt "RouteServerEndpointId" x.routeServerEndpointId, putOpt "RouteServerId" x.routeServerId, putOpt "RouteServerPeerId" x.routeServerPeerId, putOpt "State" x.state, putOpt "SubnetId" x.subnetId, putOpt "Tags" x.tags, putOpt "VpcId" x.vpcId] + ofValue v := do + let bfdStatus ← v.opt "BfdStatus" + let bgpOptions ← v.opt "BgpOptions" + let bgpStatus ← v.opt "BgpStatus" + let endpointEniAddress ← v.opt "EndpointEniAddress" + let endpointEniId ← v.opt "EndpointEniId" + let failureReason ← v.opt "FailureReason" + let peerAddress ← v.opt "PeerAddress" + let routeServerEndpointId ← v.opt "RouteServerEndpointId" + let routeServerId ← v.opt "RouteServerId" + let routeServerPeerId ← v.opt "RouteServerPeerId" + let state ← v.opt "State" + let subnetId ← v.opt "SubnetId" + let tags ← v.opt "Tags" + let vpcId ← v.opt "VpcId" + return { bfdStatus, bgpOptions, bgpStatus, endpointEniAddress, endpointEniId, failureReason, peerAddress, routeServerEndpointId, routeServerId, routeServerPeerId, state, subnetId, tags, vpcId } + +/-- Describes a route in the route server's routing database. -/ +structure RouteServerRoute where + /-- The AS path attributes of the BGP route. -/ + asPaths : Option (List String) := none + /-- The Multi-Exit Discriminator (MED) value of the BGP route. -/ + med : Option Int := none + /-- The IP address for the next hop. -/ + nextHopIp : Option String := none + /-- The destination CIDR block of the route. -/ + «prefix» : Option String := none + /-- Details about the installation status of this route in route tables. -/ + routeInstallationDetails : Option (List RouteServerRouteInstallationDetail) := none + /-- The ID of the route server endpoint that received this route. -/ + routeServerEndpointId : Option String := none + /-- The ID of the route server peer that advertised this route. -/ + routeServerPeerId : Option String := none + /-- The current status of the route in the routing database. -/ + routeStatus : Option RouteServerRouteStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RouteServerRoute where + schema := .struct "RouteServerRoute" [({ name := "AsPaths", xmlName := some "asPathSet", queryName := some "AsPathSet" }, (.list .string "item")), + ({ name := "Med", xmlName := some "med", queryName := some "Med" }, .int), + ({ name := "NextHopIp", xmlName := some "nextHopIp", queryName := some "NextHopIp" }, .string), + ({ name := "Prefix", xmlName := some "prefix", queryName := some "Prefix" }, .string), + ({ name := "RouteInstallationDetails", xmlName := some "routeInstallationDetailSet", queryName := some "RouteInstallationDetailSet" }, (.list (Shape.schema RouteServerRouteInstallationDetail) "item")), + ({ name := "RouteServerEndpointId", xmlName := some "routeServerEndpointId", queryName := some "RouteServerEndpointId" }, .string), + ({ name := "RouteServerPeerId", xmlName := some "routeServerPeerId", queryName := some "RouteServerPeerId" }, .string), + ({ name := "RouteStatus", xmlName := some "routeStatus", queryName := some "RouteStatus" }, (Shape.schema RouteServerRouteStatus))] + toValue x := record [putOpt "AsPaths" x.asPaths, putOpt "Med" x.med, putOpt "NextHopIp" x.nextHopIp, putOpt "Prefix" x.«prefix», putOpt "RouteInstallationDetails" x.routeInstallationDetails, putOpt "RouteServerEndpointId" x.routeServerEndpointId, putOpt "RouteServerPeerId" x.routeServerPeerId, putOpt "RouteStatus" x.routeStatus] + ofValue v := do + let asPaths ← v.opt "AsPaths" + let med ← v.opt "Med" + let nextHopIp ← v.opt "NextHopIp" + let «prefix» ← v.opt "Prefix" + let routeInstallationDetails ← v.opt "RouteInstallationDetails" + let routeServerEndpointId ← v.opt "RouteServerEndpointId" + let routeServerPeerId ← v.opt "RouteServerPeerId" + let routeStatus ← v.opt "RouteStatus" + return { asPaths, med, nextHopIp, «prefix», routeInstallationDetails, routeServerEndpointId, routeServerPeerId, routeStatus } + +/-- Describes an association between a route table and a subnet or gateway. -/ +structure RouteTableAssociation where + /-- The state of the association. -/ + associationState : Option RouteTableAssociationState := none + /-- The ID of the internet gateway or virtual private gateway. -/ + gatewayId : Option String := none + /-- Indicates whether this is the main route table. -/ + main : Option Bool := none + /-- The ID of a public IPv4 pool. -/ + publicIpv4Pool : Option String := none + /-- The ID of the association. -/ + routeTableAssociationId : Option String := none + /-- The ID of the route table. -/ + routeTableId : Option String := none + /-- The ID of the subnet. -/ + subnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RouteTableAssociation where + schema := .struct "RouteTableAssociation" [({ name := "AssociationState", xmlName := some "associationState", queryName := some "AssociationState" }, (Shape.schema RouteTableAssociationState)), + ({ name := "GatewayId", xmlName := some "gatewayId", queryName := some "GatewayId" }, .string), + ({ name := "Main", xmlName := some "main", queryName := some "Main" }, .bool), + ({ name := "PublicIpv4Pool", xmlName := some "publicIpv4Pool", queryName := some "PublicIpv4Pool" }, .string), + ({ name := "RouteTableAssociationId", xmlName := some "routeTableAssociationId", queryName := some "RouteTableAssociationId" }, .string), + ({ name := "RouteTableId", xmlName := some "routeTableId", queryName := some "RouteTableId" }, .string), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string)] + toValue x := record [putOpt "AssociationState" x.associationState, putOpt "GatewayId" x.gatewayId, putOpt "Main" x.main, putOpt "PublicIpv4Pool" x.publicIpv4Pool, putOpt "RouteTableAssociationId" x.routeTableAssociationId, putOpt "RouteTableId" x.routeTableId, putOpt "SubnetId" x.subnetId] + ofValue v := do + let associationState ← v.opt "AssociationState" + let gatewayId ← v.opt "GatewayId" + let main ← v.opt "Main" + let publicIpv4Pool ← v.opt "PublicIpv4Pool" + let routeTableAssociationId ← v.opt "RouteTableAssociationId" + let routeTableId ← v.opt "RouteTableId" + let subnetId ← v.opt "SubnetId" + return { associationState, gatewayId, main, publicIpv4Pool, routeTableAssociationId, routeTableId, subnetId } + +/-- Describes the launch specification for a Scheduled Instance. -/ +structure ScheduledInstancesLaunchSpecification where + /-- The block device mapping entries. -/ + blockDeviceMappings : Option (List ScheduledInstancesBlockDeviceMapping) := none + /-- Indicates whether the instances are optimized for EBS I/O. -/ + ebsOptimized : Option Bool := none + /-- The IAM instance profile. -/ + iamInstanceProfile : Option ScheduledInstancesIamInstanceProfile := none + /-- The ID of the Amazon Machine Image (AMI). -/ + imageId : String + /-- The instance type. -/ + instanceType : Option String := none + /-- The ID of the kernel. -/ + kernelId : Option String := none + /-- The name of the key pair. -/ + keyName : Option String := none + /-- Enable or disable monitoring for the instances. -/ + monitoring : Option ScheduledInstancesMonitoring := none + /-- The network interfaces. -/ + networkInterfaces : Option (List ScheduledInstancesNetworkInterface) := none + /-- The placement information. -/ + placement : Option ScheduledInstancesPlacement := none + /-- The ID of the RAM disk. -/ + ramdiskId : Option String := none + /-- The IDs of the security groups. -/ + securityGroupIds : Option (List String) := none + /-- The ID of the subnet in which to launch the instances. -/ + subnetId : Option String := none + /-- The base64-encoded MIME user data. -/ + userData : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ScheduledInstancesLaunchSpecification where + schema := .struct "ScheduledInstancesLaunchSpecification" [({ name := "BlockDeviceMappings", xmlName := some "BlockDeviceMapping" }, (.list (Shape.schema ScheduledInstancesBlockDeviceMapping) "BlockDeviceMapping")), + ({ name := "EbsOptimized" }, .bool), + ({ name := "IamInstanceProfile" }, (Shape.schema ScheduledInstancesIamInstanceProfile)), + ({ name := "ImageId", required := true }, .string), + ({ name := "InstanceType" }, .string), + ({ name := "KernelId" }, .string), + ({ name := "KeyName" }, .string), + ({ name := "Monitoring" }, (Shape.schema ScheduledInstancesMonitoring)), + ({ name := "NetworkInterfaces", xmlName := some "NetworkInterface" }, (.list (Shape.schema ScheduledInstancesNetworkInterface) "NetworkInterface")), + ({ name := "Placement" }, (Shape.schema ScheduledInstancesPlacement)), + ({ name := "RamdiskId" }, .string), + ({ name := "SecurityGroupIds", xmlName := some "SecurityGroupId" }, (.list .string "SecurityGroupId")), + ({ name := "SubnetId" }, .string), + ({ name := "UserData" }, .string)] + toValue x := record [putOpt "BlockDeviceMappings" x.blockDeviceMappings, putOpt "EbsOptimized" x.ebsOptimized, putOpt "IamInstanceProfile" x.iamInstanceProfile, put "ImageId" x.imageId, putOpt "InstanceType" x.instanceType, putOpt "KernelId" x.kernelId, putOpt "KeyName" x.keyName, putOpt "Monitoring" x.monitoring, putOpt "NetworkInterfaces" x.networkInterfaces, putOpt "Placement" x.placement, putOpt "RamdiskId" x.ramdiskId, putOpt "SecurityGroupIds" x.securityGroupIds, putOpt "SubnetId" x.subnetId, putOpt "UserData" x.userData] + ofValue v := do + let blockDeviceMappings ← v.opt "BlockDeviceMappings" + let ebsOptimized ← v.opt "EbsOptimized" + let iamInstanceProfile ← v.opt "IamInstanceProfile" + let imageId ← v.req "ImageId" + let instanceType ← v.opt "InstanceType" + let kernelId ← v.opt "KernelId" + let keyName ← v.opt "KeyName" + let monitoring ← v.opt "Monitoring" + let networkInterfaces ← v.opt "NetworkInterfaces" + let placement ← v.opt "Placement" + let ramdiskId ← v.opt "RamdiskId" + let securityGroupIds ← v.opt "SecurityGroupIds" + let subnetId ← v.opt "SubnetId" + let userData ← v.opt "UserData" + return { blockDeviceMappings, ebsOptimized, iamInstanceProfile, imageId, instanceType, kernelId, keyName, monitoring, networkInterfaces, placement, ramdiskId, securityGroupIds, subnetId, userData } + +structure SearchLocalGatewayRoutesResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the routes. -/ + routes : Option (List LocalGatewayRoute) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SearchLocalGatewayRoutesResult where + schema := .struct "SearchLocalGatewayRoutesResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "Routes", xmlName := some "routeSet", queryName := some "RouteSet" }, (.list (Shape.schema LocalGatewayRoute) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "Routes" x.routes] + ofValue v := do + let nextToken ← v.opt "NextToken" + let routes ← v.opt "Routes" + return { nextToken, routes } + +structure SearchTransitGatewayMulticastGroupsResult where + /-- Information about the transit gateway multicast group. -/ + multicastGroups : Option (List TransitGatewayMulticastGroup) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SearchTransitGatewayMulticastGroupsResult where + schema := .struct "SearchTransitGatewayMulticastGroupsResult" [({ name := "MulticastGroups", xmlName := some "multicastGroups", queryName := some "MulticastGroups" }, (.list (Shape.schema TransitGatewayMulticastGroup) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "MulticastGroups" x.multicastGroups, putOpt "NextToken" x.nextToken] + ofValue v := do + let multicastGroups ← v.opt "MulticastGroups" + let nextToken ← v.opt "NextToken" + return { multicastGroups, nextToken } + +/-- Describes a secondary interface. -/ +structure SecondaryInterface where + /-- The attachment information for the secondary interface. -/ + attachment : Option SecondaryInterfaceAttachment := none + /-- The Availability Zone of the secondary interface. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone of the secondary interface. -/ + availabilityZoneId : Option String := none + /-- The MAC address of the secondary interface. -/ + macAddress : Option String := none + /-- The ID of the Amazon Web Services account that owns the secondary interface. -/ + ownerId : Option String := none + /-- The private IPv4 addresses associated with the secondary interface. -/ + privateIpv4Addresses : Option (List SecondaryInterfaceIpv4Address) := none + /-- The Amazon Resource Name (ARN) of the secondary interface. -/ + secondaryInterfaceArn : Option String := none + /-- The ID of the secondary interface. -/ + secondaryInterfaceId : Option String := none + /-- The type of secondary interface. -/ + secondaryInterfaceType : Option SecondaryInterfaceType := none + /-- The ID of the secondary network. -/ + secondaryNetworkId : Option String := none + /-- The type of the secondary network. -/ + secondaryNetworkType : Option SecondaryNetworkType := none + /-- The ID of the secondary subnet. -/ + secondarySubnetId : Option String := none + /-- Indicates whether source/destination checking is enabled. -/ + sourceDestCheck : Option Bool := none + /-- The status of the secondary interface. -/ + status : Option SecondaryInterfaceStatus := none + /-- The tags assigned to the secondary interface. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SecondaryInterface where + schema := .struct "SecondaryInterface" [({ name := "Attachment", xmlName := some "attachment", queryName := some "Attachment" }, (Shape.schema SecondaryInterfaceAttachment)), + ({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "MacAddress", xmlName := some "macAddress", queryName := some "MacAddress" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "PrivateIpv4Addresses", xmlName := some "privateIpv4AddressSet", queryName := some "PrivateIpv4AddressSet" }, (.list (Shape.schema SecondaryInterfaceIpv4Address) "item")), + ({ name := "SecondaryInterfaceArn", xmlName := some "secondaryInterfaceArn", queryName := some "SecondaryInterfaceArn" }, .string), + ({ name := "SecondaryInterfaceId", xmlName := some "secondaryInterfaceId", queryName := some "SecondaryInterfaceId" }, .string), + ({ name := "SecondaryInterfaceType", xmlName := some "secondaryInterfaceType", queryName := some "SecondaryInterfaceType" }, (Shape.schema SecondaryInterfaceType)), + ({ name := "SecondaryNetworkId", xmlName := some "secondaryNetworkId", queryName := some "SecondaryNetworkId" }, .string), + ({ name := "SecondaryNetworkType", xmlName := some "secondaryNetworkType", queryName := some "SecondaryNetworkType" }, (Shape.schema SecondaryNetworkType)), + ({ name := "SecondarySubnetId", xmlName := some "secondarySubnetId", queryName := some "SecondarySubnetId" }, .string), + ({ name := "SourceDestCheck", xmlName := some "sourceDestCheck", queryName := some "SourceDestCheck" }, .bool), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema SecondaryInterfaceStatus)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "Attachment" x.attachment, putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "MacAddress" x.macAddress, putOpt "OwnerId" x.ownerId, putOpt "PrivateIpv4Addresses" x.privateIpv4Addresses, putOpt "SecondaryInterfaceArn" x.secondaryInterfaceArn, putOpt "SecondaryInterfaceId" x.secondaryInterfaceId, putOpt "SecondaryInterfaceType" x.secondaryInterfaceType, putOpt "SecondaryNetworkId" x.secondaryNetworkId, putOpt "SecondaryNetworkType" x.secondaryNetworkType, putOpt "SecondarySubnetId" x.secondarySubnetId, putOpt "SourceDestCheck" x.sourceDestCheck, putOpt "Status" x.status, putOpt "Tags" x.tags] + ofValue v := do + let attachment ← v.opt "Attachment" + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let macAddress ← v.opt "MacAddress" + let ownerId ← v.opt "OwnerId" + let privateIpv4Addresses ← v.opt "PrivateIpv4Addresses" + let secondaryInterfaceArn ← v.opt "SecondaryInterfaceArn" + let secondaryInterfaceId ← v.opt "SecondaryInterfaceId" + let secondaryInterfaceType ← v.opt "SecondaryInterfaceType" + let secondaryNetworkId ← v.opt "SecondaryNetworkId" + let secondaryNetworkType ← v.opt "SecondaryNetworkType" + let secondarySubnetId ← v.opt "SecondarySubnetId" + let sourceDestCheck ← v.opt "SourceDestCheck" + let status ← v.opt "Status" + let tags ← v.opt "Tags" + return { attachment, availabilityZone, availabilityZoneId, macAddress, ownerId, privateIpv4Addresses, secondaryInterfaceArn, secondaryInterfaceId, secondaryInterfaceType, secondaryNetworkId, secondaryNetworkType, secondarySubnetId, sourceDestCheck, status, tags } + +/-- Describes a secondary network. -/ +structure SecondaryNetwork where + /-- Information about the IPv4 CIDR blocks associated with the secondary network. -/ + ipv4CidrBlockAssociations : Option (List SecondaryNetworkIpv4CidrBlockAssociation) := none + /-- The ID of the Amazon Web Services account that owns the secondary network. -/ + ownerId : Option String := none + /-- The Amazon Resource Name (ARN) of the secondary network. -/ + secondaryNetworkArn : Option String := none + /-- The ID of the secondary network. -/ + secondaryNetworkId : Option String := none + /-- The state of the secondary network. -/ + state : Option SecondaryNetworkState := none + /-- The reason for the current state of the secondary network. -/ + stateReason : Option String := none + /-- The tags assigned to the secondary network. -/ + tags : Option (List Tag) := none + /-- The type of the secondary network. -/ + type : Option SecondaryNetworkType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SecondaryNetwork where + schema := .struct "SecondaryNetwork" [({ name := "Ipv4CidrBlockAssociations", xmlName := some "ipv4CidrBlockAssociationSet", queryName := some "Ipv4CidrBlockAssociationSet" }, (.list (Shape.schema SecondaryNetworkIpv4CidrBlockAssociation) "item")), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "SecondaryNetworkArn", xmlName := some "secondaryNetworkArn", queryName := some "SecondaryNetworkArn" }, .string), + ({ name := "SecondaryNetworkId", xmlName := some "secondaryNetworkId", queryName := some "SecondaryNetworkId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema SecondaryNetworkState)), + ({ name := "StateReason", xmlName := some "stateReason", queryName := some "StateReason" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, (Shape.schema SecondaryNetworkType))] + toValue x := record [putOpt "Ipv4CidrBlockAssociations" x.ipv4CidrBlockAssociations, putOpt "OwnerId" x.ownerId, putOpt "SecondaryNetworkArn" x.secondaryNetworkArn, putOpt "SecondaryNetworkId" x.secondaryNetworkId, putOpt "State" x.state, putOpt "StateReason" x.stateReason, putOpt "Tags" x.tags, putOpt "Type" x.type] + ofValue v := do + let ipv4CidrBlockAssociations ← v.opt "Ipv4CidrBlockAssociations" + let ownerId ← v.opt "OwnerId" + let secondaryNetworkArn ← v.opt "SecondaryNetworkArn" + let secondaryNetworkId ← v.opt "SecondaryNetworkId" + let state ← v.opt "State" + let stateReason ← v.opt "StateReason" + let tags ← v.opt "Tags" + let type ← v.opt "Type" + return { ipv4CidrBlockAssociations, ownerId, secondaryNetworkArn, secondaryNetworkId, state, stateReason, tags, type } + +/-- Describes a secondary subnet. -/ +structure SecondarySubnet where + /-- The Availability Zone of the secondary subnet. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone of the secondary subnet. -/ + availabilityZoneId : Option String := none + /-- Information about the IPv4 CIDR blocks associated with the secondary subnet. -/ + ipv4CidrBlockAssociations : Option (List SecondarySubnetIpv4CidrBlockAssociation) := none + /-- The ID of the Amazon Web Services account that owns the secondary subnet. -/ + ownerId : Option String := none + /-- The ID of the secondary network. -/ + secondaryNetworkId : Option String := none + /-- The type of the secondary network. -/ + secondaryNetworkType : Option SecondaryNetworkType := none + /-- The Amazon Resource Name (ARN) of the secondary subnet. -/ + secondarySubnetArn : Option String := none + /-- The ID of the secondary subnet. -/ + secondarySubnetId : Option String := none + /-- The state of the secondary subnet. -/ + state : Option SecondarySubnetState := none + /-- The reason for the current state of the secondary subnet. -/ + stateReason : Option String := none + /-- The tags assigned to the secondary subnet. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SecondarySubnet where + schema := .struct "SecondarySubnet" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "Ipv4CidrBlockAssociations", xmlName := some "ipv4CidrBlockAssociationSet", queryName := some "Ipv4CidrBlockAssociationSet" }, (.list (Shape.schema SecondarySubnetIpv4CidrBlockAssociation) "item")), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "SecondaryNetworkId", xmlName := some "secondaryNetworkId", queryName := some "SecondaryNetworkId" }, .string), + ({ name := "SecondaryNetworkType", xmlName := some "secondaryNetworkType", queryName := some "SecondaryNetworkType" }, (Shape.schema SecondaryNetworkType)), + ({ name := "SecondarySubnetArn", xmlName := some "secondarySubnetArn", queryName := some "SecondarySubnetArn" }, .string), + ({ name := "SecondarySubnetId", xmlName := some "secondarySubnetId", queryName := some "SecondarySubnetId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema SecondarySubnetState)), + ({ name := "StateReason", xmlName := some "stateReason", queryName := some "StateReason" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "Ipv4CidrBlockAssociations" x.ipv4CidrBlockAssociations, putOpt "OwnerId" x.ownerId, putOpt "SecondaryNetworkId" x.secondaryNetworkId, putOpt "SecondaryNetworkType" x.secondaryNetworkType, putOpt "SecondarySubnetArn" x.secondarySubnetArn, putOpt "SecondarySubnetId" x.secondarySubnetId, putOpt "State" x.state, putOpt "StateReason" x.stateReason, putOpt "Tags" x.tags] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let ipv4CidrBlockAssociations ← v.opt "Ipv4CidrBlockAssociations" + let ownerId ← v.opt "OwnerId" + let secondaryNetworkId ← v.opt "SecondaryNetworkId" + let secondaryNetworkType ← v.opt "SecondaryNetworkType" + let secondarySubnetArn ← v.opt "SecondarySubnetArn" + let secondarySubnetId ← v.opt "SecondarySubnetId" + let state ← v.opt "State" + let stateReason ← v.opt "StateReason" + let tags ← v.opt "Tags" + return { availabilityZone, availabilityZoneId, ipv4CidrBlockAssociations, ownerId, secondaryNetworkId, secondaryNetworkType, secondarySubnetArn, secondarySubnetId, state, stateReason, tags } + +/-- Describes a security group. -/ +structure SecurityGroup where + /-- A description of the security group. -/ + description : Option String := none + /-- The ID of the security group. -/ + groupId : Option String := none + /-- The name of the security group. -/ + groupName : Option String := none + /-- The inbound rules associated with the security group. -/ + ipPermissions : Option (List IpPermission) := none + /-- The outbound rules associated with the security group. -/ + ipPermissionsEgress : Option (List IpPermission) := none + /-- The Amazon Web Services account ID of the owner of the security group. -/ + ownerId : Option String := none + /-- The ARN of the security group. -/ + securityGroupArn : Option String := none + /-- Any tags assigned to the security group. -/ + tags : Option (List Tag) := none + /-- The ID of the VPC for the security group. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SecurityGroup where + schema := .struct "SecurityGroup" [({ name := "Description", xmlName := some "groupDescription", queryName := some "GroupDescription" }, .string), + ({ name := "GroupId", xmlName := some "groupId", queryName := some "GroupId" }, .string), + ({ name := "GroupName", xmlName := some "groupName", queryName := some "GroupName" }, .string), + ({ name := "IpPermissions", xmlName := some "ipPermissions", queryName := some "IpPermissions" }, (.list (Shape.schema IpPermission) "item")), + ({ name := "IpPermissionsEgress", xmlName := some "ipPermissionsEgress", queryName := some "IpPermissionsEgress" }, (.list (Shape.schema IpPermission) "item")), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "SecurityGroupArn", xmlName := some "securityGroupArn", queryName := some "SecurityGroupArn" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "Description" x.description, putOpt "GroupId" x.groupId, putOpt "GroupName" x.groupName, putOpt "IpPermissions" x.ipPermissions, putOpt "IpPermissionsEgress" x.ipPermissionsEgress, putOpt "OwnerId" x.ownerId, putOpt "SecurityGroupArn" x.securityGroupArn, putOpt "Tags" x.tags, putOpt "VpcId" x.vpcId] + ofValue v := do + let description ← v.opt "Description" + let groupId ← v.opt "GroupId" + let groupName ← v.opt "GroupName" + let ipPermissions ← v.opt "IpPermissions" + let ipPermissionsEgress ← v.opt "IpPermissionsEgress" + let ownerId ← v.opt "OwnerId" + let securityGroupArn ← v.opt "SecurityGroupArn" + let tags ← v.opt "Tags" + let vpcId ← v.opt "VpcId" + return { description, groupId, groupName, ipPermissions, ipPermissionsEgress, ownerId, securityGroupArn, tags, vpcId } + +/-- Describes a service configuration for a VPC endpoint service. -/ +structure ServiceConfiguration where + /-- Indicates whether requests from other Amazon Web Services accounts to create an endpoint to the service must first be accepted. -/ + acceptanceRequired : Option Bool := none + /-- The IDs of the Availability Zones in which the service is available. -/ + availabilityZoneIds : Option (List String) := none + /-- The Availability Zones in which the service is available. -/ + availabilityZones : Option (List String) := none + /-- The DNS names for the service. -/ + baseEndpointDnsNames : Option (List String) := none + /-- The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the service. -/ + gatewayLoadBalancerArns : Option (List String) := none + /-- Indicates whether the service manages its VPC endpoints. -/ + managesVpcEndpoints : Option Bool := none + /-- The Amazon Resource Names (ARNs) of the Network Load Balancers for the service. -/ + networkLoadBalancerArns : Option (List String) := none + /-- The payer responsibility. -/ + payerResponsibility : Option PayerResponsibility := none + /-- The private DNS name for the service. -/ + privateDnsName : Option String := none + /-- Information about the endpoint service private DNS name configuration. -/ + privateDnsNameConfiguration : Option PrivateDnsNameConfiguration := none + /-- Indicates whether consumers can access the service from a Region other than the Region where the service is hosted. -/ + remoteAccessEnabled : Option Bool := none + /-- The ID of the service. -/ + serviceId : Option String := none + /-- The name of the service. -/ + serviceName : Option String := none + /-- The service state. -/ + serviceState : Option ServiceState := none + /-- The type of service. -/ + serviceType : Option (List ServiceTypeDetail) := none + /-- The supported IP address types. -/ + supportedIpAddressTypes : Option (List ServiceConnectivityType) := none + /-- The supported Regions. -/ + supportedRegions : Option (List SupportedRegionDetail) := none + /-- The tags assigned to the service. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ServiceConfiguration where + schema := .struct "ServiceConfiguration" [({ name := "AcceptanceRequired", xmlName := some "acceptanceRequired", queryName := some "AcceptanceRequired" }, .bool), + ({ name := "AvailabilityZoneIds", xmlName := some "availabilityZoneIdSet", queryName := some "AvailabilityZoneIdSet" }, (.list .string "item")), + ({ name := "AvailabilityZones", xmlName := some "availabilityZoneSet", queryName := some "AvailabilityZoneSet" }, (.list .string "item")), + ({ name := "BaseEndpointDnsNames", xmlName := some "baseEndpointDnsNameSet", queryName := some "BaseEndpointDnsNameSet" }, (.list .string "item")), + ({ name := "GatewayLoadBalancerArns", xmlName := some "gatewayLoadBalancerArnSet", queryName := some "GatewayLoadBalancerArnSet" }, (.list .string "item")), + ({ name := "ManagesVpcEndpoints", xmlName := some "managesVpcEndpoints", queryName := some "ManagesVpcEndpoints" }, .bool), + ({ name := "NetworkLoadBalancerArns", xmlName := some "networkLoadBalancerArnSet", queryName := some "NetworkLoadBalancerArnSet" }, (.list .string "item")), + ({ name := "PayerResponsibility", xmlName := some "payerResponsibility", queryName := some "PayerResponsibility" }, (Shape.schema PayerResponsibility)), + ({ name := "PrivateDnsName", xmlName := some "privateDnsName", queryName := some "PrivateDnsName" }, .string), + ({ name := "PrivateDnsNameConfiguration", xmlName := some "privateDnsNameConfiguration", queryName := some "PrivateDnsNameConfiguration" }, (Shape.schema PrivateDnsNameConfiguration)), + ({ name := "RemoteAccessEnabled", xmlName := some "remoteAccessEnabled", queryName := some "RemoteAccessEnabled" }, .bool), + ({ name := "ServiceId", xmlName := some "serviceId", queryName := some "ServiceId" }, .string), + ({ name := "ServiceName", xmlName := some "serviceName", queryName := some "ServiceName" }, .string), + ({ name := "ServiceState", xmlName := some "serviceState", queryName := some "ServiceState" }, (Shape.schema ServiceState)), + ({ name := "ServiceType", xmlName := some "serviceType", queryName := some "ServiceType" }, (.list (Shape.schema ServiceTypeDetail) "item")), + ({ name := "SupportedIpAddressTypes", xmlName := some "supportedIpAddressTypeSet", queryName := some "SupportedIpAddressTypeSet" }, (.list (Shape.schema ServiceConnectivityType) "item")), + ({ name := "SupportedRegions", xmlName := some "supportedRegionSet", queryName := some "SupportedRegionSet" }, (.list (Shape.schema SupportedRegionDetail) "item")), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "AcceptanceRequired" x.acceptanceRequired, putOpt "AvailabilityZoneIds" x.availabilityZoneIds, putOpt "AvailabilityZones" x.availabilityZones, putOpt "BaseEndpointDnsNames" x.baseEndpointDnsNames, putOpt "GatewayLoadBalancerArns" x.gatewayLoadBalancerArns, putOpt "ManagesVpcEndpoints" x.managesVpcEndpoints, putOpt "NetworkLoadBalancerArns" x.networkLoadBalancerArns, putOpt "PayerResponsibility" x.payerResponsibility, putOpt "PrivateDnsName" x.privateDnsName, putOpt "PrivateDnsNameConfiguration" x.privateDnsNameConfiguration, putOpt "RemoteAccessEnabled" x.remoteAccessEnabled, putOpt "ServiceId" x.serviceId, putOpt "ServiceName" x.serviceName, putOpt "ServiceState" x.serviceState, putOpt "ServiceType" x.serviceType, putOpt "SupportedIpAddressTypes" x.supportedIpAddressTypes, putOpt "SupportedRegions" x.supportedRegions, putOpt "Tags" x.tags] + ofValue v := do + let acceptanceRequired ← v.opt "AcceptanceRequired" + let availabilityZoneIds ← v.opt "AvailabilityZoneIds" + let availabilityZones ← v.opt "AvailabilityZones" + let baseEndpointDnsNames ← v.opt "BaseEndpointDnsNames" + let gatewayLoadBalancerArns ← v.opt "GatewayLoadBalancerArns" + let managesVpcEndpoints ← v.opt "ManagesVpcEndpoints" + let networkLoadBalancerArns ← v.opt "NetworkLoadBalancerArns" + let payerResponsibility ← v.opt "PayerResponsibility" + let privateDnsName ← v.opt "PrivateDnsName" + let privateDnsNameConfiguration ← v.opt "PrivateDnsNameConfiguration" + let remoteAccessEnabled ← v.opt "RemoteAccessEnabled" + let serviceId ← v.opt "ServiceId" + let serviceName ← v.opt "ServiceName" + let serviceState ← v.opt "ServiceState" + let serviceType ← v.opt "ServiceType" + let supportedIpAddressTypes ← v.opt "SupportedIpAddressTypes" + let supportedRegions ← v.opt "SupportedRegions" + let tags ← v.opt "Tags" + return { acceptanceRequired, availabilityZoneIds, availabilityZones, baseEndpointDnsNames, gatewayLoadBalancerArns, managesVpcEndpoints, networkLoadBalancerArns, payerResponsibility, privateDnsName, privateDnsNameConfiguration, remoteAccessEnabled, serviceId, serviceName, serviceState, serviceType, supportedIpAddressTypes, supportedRegions, tags } + +/-- Describes a VPC endpoint service. -/ +structure ServiceDetail where + /-- Indicates whether VPC endpoint connection requests to the service must be accepted by the service owner. -/ + acceptanceRequired : Option Bool := none + /-- The IDs of the Availability Zones in which the service is available. -/ + availabilityZoneIds : Option (List String) := none + /-- The Availability Zones in which the service is available. -/ + availabilityZones : Option (List String) := none + /-- The DNS names for the service. -/ + baseEndpointDnsNames : Option (List String) := none + /-- Indicates whether the service manages its VPC endpoints. -/ + managesVpcEndpoints : Option Bool := none + /-- The Amazon Web Services account ID of the service owner. -/ + owner : Option String := none + /-- The payer responsibility. -/ + payerResponsibility : Option PayerResponsibility := none + /-- The private DNS name for the service. -/ + privateDnsName : Option String := none + /-- The verification state of the VPC endpoint service. -/ + privateDnsNameVerificationState : Option DnsNameState := none + /-- The private DNS names assigned to the VPC endpoint service. -/ + privateDnsNames : Option (List PrivateDnsDetails) := none + /-- The ID of the endpoint service. -/ + serviceId : Option String := none + /-- The name of the service. -/ + serviceName : Option String := none + /-- The Region where the service is hosted. -/ + serviceRegion : Option String := none + /-- The type of service. -/ + serviceType : Option (List ServiceTypeDetail) := none + /-- The supported IP address types. -/ + supportedIpAddressTypes : Option (List ServiceConnectivityType) := none + /-- The tags assigned to the service. -/ + tags : Option (List Tag) := none + /-- Indicates whether the service supports endpoint policies. -/ + vpcEndpointPolicySupported : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ServiceDetail where + schema := .struct "ServiceDetail" [({ name := "AcceptanceRequired", xmlName := some "acceptanceRequired", queryName := some "AcceptanceRequired" }, .bool), + ({ name := "AvailabilityZoneIds", xmlName := some "availabilityZoneIdSet", queryName := some "AvailabilityZoneIdSet" }, (.list .string "item")), + ({ name := "AvailabilityZones", xmlName := some "availabilityZoneSet", queryName := some "AvailabilityZoneSet" }, (.list .string "item")), + ({ name := "BaseEndpointDnsNames", xmlName := some "baseEndpointDnsNameSet", queryName := some "BaseEndpointDnsNameSet" }, (.list .string "item")), + ({ name := "ManagesVpcEndpoints", xmlName := some "managesVpcEndpoints", queryName := some "ManagesVpcEndpoints" }, .bool), + ({ name := "Owner", xmlName := some "owner", queryName := some "Owner" }, .string), + ({ name := "PayerResponsibility", xmlName := some "payerResponsibility", queryName := some "PayerResponsibility" }, (Shape.schema PayerResponsibility)), + ({ name := "PrivateDnsName", xmlName := some "privateDnsName", queryName := some "PrivateDnsName" }, .string), + ({ name := "PrivateDnsNameVerificationState", xmlName := some "privateDnsNameVerificationState", queryName := some "PrivateDnsNameVerificationState" }, (Shape.schema DnsNameState)), + ({ name := "PrivateDnsNames", xmlName := some "privateDnsNameSet", queryName := some "PrivateDnsNameSet" }, (.list (Shape.schema PrivateDnsDetails) "item")), + ({ name := "ServiceId", xmlName := some "serviceId", queryName := some "ServiceId" }, .string), + ({ name := "ServiceName", xmlName := some "serviceName", queryName := some "ServiceName" }, .string), + ({ name := "ServiceRegion", xmlName := some "serviceRegion", queryName := some "ServiceRegion" }, .string), + ({ name := "ServiceType", xmlName := some "serviceType", queryName := some "ServiceType" }, (.list (Shape.schema ServiceTypeDetail) "item")), + ({ name := "SupportedIpAddressTypes", xmlName := some "supportedIpAddressTypeSet", queryName := some "SupportedIpAddressTypeSet" }, (.list (Shape.schema ServiceConnectivityType) "item")), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VpcEndpointPolicySupported", xmlName := some "vpcEndpointPolicySupported", queryName := some "VpcEndpointPolicySupported" }, .bool)] + toValue x := record [putOpt "AcceptanceRequired" x.acceptanceRequired, putOpt "AvailabilityZoneIds" x.availabilityZoneIds, putOpt "AvailabilityZones" x.availabilityZones, putOpt "BaseEndpointDnsNames" x.baseEndpointDnsNames, putOpt "ManagesVpcEndpoints" x.managesVpcEndpoints, putOpt "Owner" x.owner, putOpt "PayerResponsibility" x.payerResponsibility, putOpt "PrivateDnsName" x.privateDnsName, putOpt "PrivateDnsNameVerificationState" x.privateDnsNameVerificationState, putOpt "PrivateDnsNames" x.privateDnsNames, putOpt "ServiceId" x.serviceId, putOpt "ServiceName" x.serviceName, putOpt "ServiceRegion" x.serviceRegion, putOpt "ServiceType" x.serviceType, putOpt "SupportedIpAddressTypes" x.supportedIpAddressTypes, putOpt "Tags" x.tags, putOpt "VpcEndpointPolicySupported" x.vpcEndpointPolicySupported] + ofValue v := do + let acceptanceRequired ← v.opt "AcceptanceRequired" + let availabilityZoneIds ← v.opt "AvailabilityZoneIds" + let availabilityZones ← v.opt "AvailabilityZones" + let baseEndpointDnsNames ← v.opt "BaseEndpointDnsNames" + let managesVpcEndpoints ← v.opt "ManagesVpcEndpoints" + let owner ← v.opt "Owner" + let payerResponsibility ← v.opt "PayerResponsibility" + let privateDnsName ← v.opt "PrivateDnsName" + let privateDnsNameVerificationState ← v.opt "PrivateDnsNameVerificationState" + let privateDnsNames ← v.opt "PrivateDnsNames" + let serviceId ← v.opt "ServiceId" + let serviceName ← v.opt "ServiceName" + let serviceRegion ← v.opt "ServiceRegion" + let serviceType ← v.opt "ServiceType" + let supportedIpAddressTypes ← v.opt "SupportedIpAddressTypes" + let tags ← v.opt "Tags" + let vpcEndpointPolicySupported ← v.opt "VpcEndpointPolicySupported" + return { acceptanceRequired, availabilityZoneIds, availabilityZones, baseEndpointDnsNames, managesVpcEndpoints, owner, payerResponsibility, privateDnsName, privateDnsNameVerificationState, privateDnsNames, serviceId, serviceName, serviceRegion, serviceType, supportedIpAddressTypes, tags, vpcEndpointPolicySupported } + +/-- The strategies for managing your Spot Instances that are at an elevated risk of being interrupted. -/ +structure SpotMaintenanceStrategies where + /-- The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. -/ + capacityRebalance : Option SpotCapacityRebalance := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SpotMaintenanceStrategies where + schema := .struct "SpotMaintenanceStrategies" [({ name := "CapacityRebalance", xmlName := some "capacityRebalance", queryName := some "CapacityRebalance" }, (Shape.schema SpotCapacityRebalance))] + toValue x := record [putOpt "CapacityRebalance" x.capacityRebalance] + ofValue v := do + let capacityRebalance ← v.opt "CapacityRebalance" + return { capacityRebalance } + +/-- Describes a stale security group (a security group that contains stale rules). -/ +structure StaleSecurityGroup where + /-- The description of the security group. -/ + description : Option String := none + /-- The ID of the security group. -/ + groupId : Option String := none + /-- The name of the security group. -/ + groupName : Option String := none + /-- Information about the stale inbound rules in the security group. -/ + staleIpPermissions : Option (List StaleIpPermission) := none + /-- Information about the stale outbound rules in the security group. -/ + staleIpPermissionsEgress : Option (List StaleIpPermission) := none + /-- The ID of the VPC for the security group. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StaleSecurityGroup where + schema := .struct "StaleSecurityGroup" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "GroupId", xmlName := some "groupId", queryName := some "GroupId" }, .string), + ({ name := "GroupName", xmlName := some "groupName", queryName := some "GroupName" }, .string), + ({ name := "StaleIpPermissions", xmlName := some "staleIpPermissions", queryName := some "StaleIpPermissions" }, (.list (Shape.schema StaleIpPermission) "item")), + ({ name := "StaleIpPermissionsEgress", xmlName := some "staleIpPermissionsEgress", queryName := some "StaleIpPermissionsEgress" }, (.list (Shape.schema StaleIpPermission) "item")), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "Description" x.description, putOpt "GroupId" x.groupId, putOpt "GroupName" x.groupName, putOpt "StaleIpPermissions" x.staleIpPermissions, putOpt "StaleIpPermissionsEgress" x.staleIpPermissionsEgress, putOpt "VpcId" x.vpcId] + ofValue v := do + let description ← v.opt "Description" + let groupId ← v.opt "GroupId" + let groupName ← v.opt "GroupName" + let staleIpPermissions ← v.opt "StaleIpPermissions" + let staleIpPermissionsEgress ← v.opt "StaleIpPermissionsEgress" + let vpcId ← v.opt "VpcId" + return { description, groupId, groupName, staleIpPermissions, staleIpPermissionsEgress, vpcId } + +structure StartDeclarativePoliciesReportRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The name of the S3 bucket where the report will be saved. -/ + s3Bucket : String + /-- The prefix for your S3 object. -/ + s3Prefix : Option String := none + /-- The tags to apply. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The root ID, organizational unit ID, or account ID. -/ + targetId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape StartDeclarativePoliciesReportRequest where + schema := .struct "StartDeclarativePoliciesReportRequest" [({ name := "DryRun" }, .bool), + ({ name := "S3Bucket", required := true }, .string), + ({ name := "S3Prefix" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TargetId", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, put "S3Bucket" x.s3Bucket, putOpt "S3Prefix" x.s3Prefix, putOpt "TagSpecifications" x.tagSpecifications, put "TargetId" x.targetId] + ofValue v := do + let dryRun ← v.opt "DryRun" + let s3Bucket ← v.req "S3Bucket" + let s3Prefix ← v.opt "S3Prefix" + let tagSpecifications ← v.opt "TagSpecifications" + let targetId ← v.req "TargetId" + return { dryRun, s3Bucket, s3Prefix, tagSpecifications, targetId } + +structure StartNetworkInsightsAccessScopeAnalysisRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the Network Access Scope. -/ + networkInsightsAccessScopeId : String + /-- The tags to apply. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StartNetworkInsightsAccessScopeAnalysisRequest where + schema := .struct "StartNetworkInsightsAccessScopeAnalysisRequest" [({ name := "ClientToken", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "NetworkInsightsAccessScopeId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [put "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "NetworkInsightsAccessScopeId" x.networkInsightsAccessScopeId, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.req "ClientToken" + let dryRun ← v.opt "DryRun" + let networkInsightsAccessScopeId ← v.req "NetworkInsightsAccessScopeId" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, dryRun, networkInsightsAccessScopeId, tagSpecifications } + +structure StartNetworkInsightsAccessScopeAnalysisResult where + /-- The Network Access Scope analysis. -/ + networkInsightsAccessScopeAnalysis : Option NetworkInsightsAccessScopeAnalysis := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StartNetworkInsightsAccessScopeAnalysisResult where + schema := .struct "StartNetworkInsightsAccessScopeAnalysisResult" [({ name := "NetworkInsightsAccessScopeAnalysis", xmlName := some "networkInsightsAccessScopeAnalysis", queryName := some "NetworkInsightsAccessScopeAnalysis" }, (Shape.schema NetworkInsightsAccessScopeAnalysis))] + toValue x := record [putOpt "NetworkInsightsAccessScopeAnalysis" x.networkInsightsAccessScopeAnalysis] + ofValue v := do + let networkInsightsAccessScopeAnalysis ← v.opt "NetworkInsightsAccessScopeAnalysis" + return { networkInsightsAccessScopeAnalysis } + +structure StartNetworkInsightsAnalysisRequest where + /-- The member accounts that contain resources that the path can traverse. -/ + additionalAccounts : Option (List String) := none + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The Amazon Resource Names (ARN) of the resources that the path must traverse. -/ + filterInArns : Option (List String) := none + /-- The Amazon Resource Names (ARN) of the resources that the path will ignore. -/ + filterOutArns : Option (List String) := none + /-- The ID of the path. -/ + networkInsightsPathId : String + /-- The tags to apply. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StartNetworkInsightsAnalysisRequest where + schema := .struct "StartNetworkInsightsAnalysisRequest" [({ name := "AdditionalAccounts", xmlName := some "AdditionalAccount" }, (.list .string "item")), + ({ name := "ClientToken", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "FilterInArns", xmlName := some "FilterInArn" }, (.list .string "item")), + ({ name := "FilterOutArns", xmlName := some "FilterOutArn" }, (.list .string "item")), + ({ name := "NetworkInsightsPathId", required := true }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "AdditionalAccounts" x.additionalAccounts, put "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "FilterInArns" x.filterInArns, putOpt "FilterOutArns" x.filterOutArns, put "NetworkInsightsPathId" x.networkInsightsPathId, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let additionalAccounts ← v.opt "AdditionalAccounts" + let clientToken ← v.req "ClientToken" + let dryRun ← v.opt "DryRun" + let filterInArns ← v.opt "FilterInArns" + let filterOutArns ← v.opt "FilterOutArns" + let networkInsightsPathId ← v.req "NetworkInsightsPathId" + let tagSpecifications ← v.opt "TagSpecifications" + return { additionalAccounts, clientToken, dryRun, filterInArns, filterOutArns, networkInsightsPathId, tagSpecifications } + +/-- Describes an association between a subnet and an IPv6 CIDR block. -/ +structure SubnetIpv6CidrBlockAssociation where + /-- The ID of the association. -/ + associationId : Option String := none + /-- The source that allocated the IP address space. -/ + ipSource : Option IpSource := none + /-- Public IPv6 addresses are those advertised on the internet from Amazon Web Services. -/ + ipv6AddressAttribute : Option Ipv6AddressAttribute := none + /-- The IPv6 CIDR block. -/ + ipv6CidrBlock : Option String := none + /-- The state of the CIDR block. -/ + ipv6CidrBlockState : Option SubnetCidrBlockState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SubnetIpv6CidrBlockAssociation where + schema := .struct "SubnetIpv6CidrBlockAssociation" [({ name := "AssociationId", xmlName := some "associationId", queryName := some "AssociationId" }, .string), + ({ name := "IpSource", xmlName := some "ipSource", queryName := some "IpSource" }, (Shape.schema IpSource)), + ({ name := "Ipv6AddressAttribute", xmlName := some "ipv6AddressAttribute", queryName := some "Ipv6AddressAttribute" }, (Shape.schema Ipv6AddressAttribute)), + ({ name := "Ipv6CidrBlock", xmlName := some "ipv6CidrBlock", queryName := some "Ipv6CidrBlock" }, .string), + ({ name := "Ipv6CidrBlockState", xmlName := some "ipv6CidrBlockState", queryName := some "Ipv6CidrBlockState" }, (Shape.schema SubnetCidrBlockState))] + toValue x := record [putOpt "AssociationId" x.associationId, putOpt "IpSource" x.ipSource, putOpt "Ipv6AddressAttribute" x.ipv6AddressAttribute, putOpt "Ipv6CidrBlock" x.ipv6CidrBlock, putOpt "Ipv6CidrBlockState" x.ipv6CidrBlockState] + ofValue v := do + let associationId ← v.opt "AssociationId" + let ipSource ← v.opt "IpSource" + let ipv6AddressAttribute ← v.opt "Ipv6AddressAttribute" + let ipv6CidrBlock ← v.opt "Ipv6CidrBlock" + let ipv6CidrBlockState ← v.opt "Ipv6CidrBlockState" + return { associationId, ipSource, ipv6AddressAttribute, ipv6CidrBlock, ipv6CidrBlockState } + +/-- Describes a target network associated with a Client VPN endpoint. -/ +structure TargetNetwork where + /-- The ID of the association. -/ + associationId : Option String := none + /-- The Availability Zone IDs for the target network association, if the Client VPN endpoint uses a Transit Gateway. -/ + availabilityZoneIds : Option (List String) := none + /-- The Availability Zone names for the target network association, if the Client VPN endpoint uses a Transit Gateway. -/ + availabilityZones : Option (List String) := none + /-- The ID of the Client VPN endpoint with which the target network is associated. -/ + clientVpnEndpointId : Option String := none + /-- The IDs of the security groups applied to the target network association. -/ + securityGroups : Option (List String) := none + /-- The current state of the target network association. -/ + status : Option AssociationStatus := none + /-- The ID of the subnet specified as the target network. -/ + targetNetworkId : Option String := none + /-- The ID of the VPC in which the target network (subnet) is located. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TargetNetwork where + schema := .struct "TargetNetwork" [({ name := "AssociationId", xmlName := some "associationId", queryName := some "AssociationId" }, .string), + ({ name := "AvailabilityZoneIds", xmlName := some "availabilityZoneIdSet", queryName := some "AvailabilityZoneIdSet" }, (.list .string "item")), + ({ name := "AvailabilityZones", xmlName := some "availabilityZoneSet", queryName := some "AvailabilityZoneSet" }, (.list .string "item")), + ({ name := "ClientVpnEndpointId", xmlName := some "clientVpnEndpointId", queryName := some "ClientVpnEndpointId" }, .string), + ({ name := "SecurityGroups", xmlName := some "securityGroups", queryName := some "SecurityGroups" }, (.list .string "item")), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema AssociationStatus)), + ({ name := "TargetNetworkId", xmlName := some "targetNetworkId", queryName := some "TargetNetworkId" }, .string), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "AssociationId" x.associationId, putOpt "AvailabilityZoneIds" x.availabilityZoneIds, putOpt "AvailabilityZones" x.availabilityZones, putOpt "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "SecurityGroups" x.securityGroups, putOpt "Status" x.status, putOpt "TargetNetworkId" x.targetNetworkId, putOpt "VpcId" x.vpcId] + ofValue v := do + let associationId ← v.opt "AssociationId" + let availabilityZoneIds ← v.opt "AvailabilityZoneIds" + let availabilityZones ← v.opt "AvailabilityZones" + let clientVpnEndpointId ← v.opt "ClientVpnEndpointId" + let securityGroups ← v.opt "SecurityGroups" + let status ← v.opt "Status" + let targetNetworkId ← v.opt "TargetNetworkId" + let vpcId ← v.opt "VpcId" + return { associationId, availabilityZoneIds, availabilityZones, clientVpnEndpointId, securityGroups, status, targetNetworkId, vpcId } + +/-- Information about a terminated Client VPN endpoint client connection. -/ +structure TerminateConnectionStatus where + /-- The ID of the client connection. -/ + connectionId : Option String := none + /-- A message about the status of the client connection, if applicable. -/ + currentStatus : Option ClientVpnConnectionStatus := none + /-- The state of the client connection. -/ + previousStatus : Option ClientVpnConnectionStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TerminateConnectionStatus where + schema := .struct "TerminateConnectionStatus" [({ name := "ConnectionId", xmlName := some "connectionId", queryName := some "ConnectionId" }, .string), + ({ name := "CurrentStatus", xmlName := some "currentStatus", queryName := some "CurrentStatus" }, (Shape.schema ClientVpnConnectionStatus)), + ({ name := "PreviousStatus", xmlName := some "previousStatus", queryName := some "PreviousStatus" }, (Shape.schema ClientVpnConnectionStatus))] + toValue x := record [putOpt "ConnectionId" x.connectionId, putOpt "CurrentStatus" x.currentStatus, putOpt "PreviousStatus" x.previousStatus] + ofValue v := do + let connectionId ← v.opt "ConnectionId" + let currentStatus ← v.opt "CurrentStatus" + let previousStatus ← v.opt "PreviousStatus" + return { connectionId, currentStatus, previousStatus } + +/-- Describes the Traffic Mirror filter. -/ +structure TrafficMirrorFilter where + /-- The description of the Traffic Mirror filter. -/ + description : Option String := none + /-- Information about the egress rules that are associated with the Traffic Mirror filter. -/ + egressFilterRules : Option (List TrafficMirrorFilterRule) := none + /-- Information about the ingress rules that are associated with the Traffic Mirror filter. -/ + ingressFilterRules : Option (List TrafficMirrorFilterRule) := none + /-- The network service traffic that is associated with the Traffic Mirror filter. -/ + networkServices : Option (List TrafficMirrorNetworkService) := none + /-- The tags assigned to the Traffic Mirror filter. -/ + tags : Option (List Tag) := none + /-- The ID of the Traffic Mirror filter. -/ + trafficMirrorFilterId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TrafficMirrorFilter where + schema := .struct "TrafficMirrorFilter" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "EgressFilterRules", xmlName := some "egressFilterRuleSet", queryName := some "EgressFilterRuleSet" }, (.list (Shape.schema TrafficMirrorFilterRule) "item")), + ({ name := "IngressFilterRules", xmlName := some "ingressFilterRuleSet", queryName := some "IngressFilterRuleSet" }, (.list (Shape.schema TrafficMirrorFilterRule) "item")), + ({ name := "NetworkServices", xmlName := some "networkServiceSet", queryName := some "NetworkServiceSet" }, (.list (Shape.schema TrafficMirrorNetworkService) "item")), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TrafficMirrorFilterId", xmlName := some "trafficMirrorFilterId", queryName := some "TrafficMirrorFilterId" }, .string)] + toValue x := record [putOpt "Description" x.description, putOpt "EgressFilterRules" x.egressFilterRules, putOpt "IngressFilterRules" x.ingressFilterRules, putOpt "NetworkServices" x.networkServices, putOpt "Tags" x.tags, putOpt "TrafficMirrorFilterId" x.trafficMirrorFilterId] + ofValue v := do + let description ← v.opt "Description" + let egressFilterRules ← v.opt "EgressFilterRules" + let ingressFilterRules ← v.opt "IngressFilterRules" + let networkServices ← v.opt "NetworkServices" + let tags ← v.opt "Tags" + let trafficMirrorFilterId ← v.opt "TrafficMirrorFilterId" + return { description, egressFilterRules, ingressFilterRules, networkServices, tags, trafficMirrorFilterId } + +/-- Describes an attachment between a resource and a transit gateway. -/ +structure TransitGatewayAttachment where + /-- The association. -/ + association : Option TransitGatewayAttachmentAssociation := none + /-- The creation time. -/ + creationTime : Option Timestamp := none + /-- The state of NAT gateway support for the attachment. -/ + natGatewaySupport : Option TransitGatewayAttachmentNatGatewaySupportState := none + /-- The ID of the resource. -/ + resourceId : Option String := none + /-- The ID of the Amazon Web Services account that owns the resource. -/ + resourceOwnerId : Option String := none + /-- The resource type. -/ + resourceType : Option TransitGatewayAttachmentResourceType := none + /-- The attachment state. -/ + state : Option TransitGatewayAttachmentState := none + /-- The tags for the attachment. -/ + tags : Option (List Tag) := none + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the transit gateway. -/ + transitGatewayId : Option String := none + /-- The ID of the Amazon Web Services account that owns the transit gateway. -/ + transitGatewayOwnerId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayAttachment where + schema := .struct "TransitGatewayAttachment" [({ name := "Association", xmlName := some "association", queryName := some "Association" }, (Shape.schema TransitGatewayAttachmentAssociation)), + ({ name := "CreationTime", xmlName := some "creationTime", queryName := some "CreationTime" }, (.time none)), + ({ name := "NatGatewaySupport", xmlName := some "natGatewaySupport", queryName := some "NatGatewaySupport" }, (Shape.schema TransitGatewayAttachmentNatGatewaySupportState)), + ({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceOwnerId", xmlName := some "resourceOwnerId", queryName := some "ResourceOwnerId" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema TransitGatewayAttachmentResourceType)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayAttachmentState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayId", xmlName := some "transitGatewayId", queryName := some "TransitGatewayId" }, .string), + ({ name := "TransitGatewayOwnerId", xmlName := some "transitGatewayOwnerId", queryName := some "TransitGatewayOwnerId" }, .string)] + toValue x := record [putOpt "Association" x.association, putOpt "CreationTime" x.creationTime, putOpt "NatGatewaySupport" x.natGatewaySupport, putOpt "ResourceId" x.resourceId, putOpt "ResourceOwnerId" x.resourceOwnerId, putOpt "ResourceType" x.resourceType, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, putOpt "TransitGatewayId" x.transitGatewayId, putOpt "TransitGatewayOwnerId" x.transitGatewayOwnerId] + ofValue v := do + let association ← v.opt "Association" + let creationTime ← v.opt "CreationTime" + let natGatewaySupport ← v.opt "NatGatewaySupport" + let resourceId ← v.opt "ResourceId" + let resourceOwnerId ← v.opt "ResourceOwnerId" + let resourceType ← v.opt "ResourceType" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayId ← v.opt "TransitGatewayId" + let transitGatewayOwnerId ← v.opt "TransitGatewayOwnerId" + return { association, creationTime, natGatewaySupport, resourceId, resourceOwnerId, resourceType, state, tags, transitGatewayAttachmentId, transitGatewayId, transitGatewayOwnerId } + +/-- Describes a transit gateway Connect attachment. -/ +structure TransitGatewayConnect where + /-- The creation time. -/ + creationTime : Option Timestamp := none + /-- The Connect attachment options. -/ + options : Option TransitGatewayConnectOptions := none + /-- The state of the attachment. -/ + state : Option TransitGatewayAttachmentState := none + /-- The tags for the attachment. -/ + tags : Option (List Tag) := none + /-- The ID of the Connect attachment. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the transit gateway. -/ + transitGatewayId : Option String := none + /-- The ID of the attachment from which the Connect attachment was created. -/ + transportTransitGatewayAttachmentId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayConnect where + schema := .struct "TransitGatewayConnect" [({ name := "CreationTime", xmlName := some "creationTime", queryName := some "CreationTime" }, (.time none)), + ({ name := "Options", xmlName := some "options", queryName := some "Options" }, (Shape.schema TransitGatewayConnectOptions)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayAttachmentState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayId", xmlName := some "transitGatewayId", queryName := some "TransitGatewayId" }, .string), + ({ name := "TransportTransitGatewayAttachmentId", xmlName := some "transportTransitGatewayAttachmentId", queryName := some "TransportTransitGatewayAttachmentId" }, .string)] + toValue x := record [putOpt "CreationTime" x.creationTime, putOpt "Options" x.options, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, putOpt "TransitGatewayId" x.transitGatewayId, putOpt "TransportTransitGatewayAttachmentId" x.transportTransitGatewayAttachmentId] + ofValue v := do + let creationTime ← v.opt "CreationTime" + let options ← v.opt "Options" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayId ← v.opt "TransitGatewayId" + let transportTransitGatewayAttachmentId ← v.opt "TransportTransitGatewayAttachmentId" + return { creationTime, options, state, tags, transitGatewayAttachmentId, transitGatewayId, transportTransitGatewayAttachmentId } + +/-- Describes the Connect peer details. -/ +structure TransitGatewayConnectPeerConfiguration where + /-- The BGP configuration details. -/ + bgpConfigurations : Option (List TransitGatewayAttachmentBgpConfiguration) := none + /-- The range of interior BGP peer IP addresses. -/ + insideCidrBlocks : Option (List String) := none + /-- The Connect peer IP address on the appliance side of the tunnel. -/ + peerAddress : Option String := none + /-- The tunnel protocol. -/ + protocol : Option ProtocolValue := none + /-- The Connect peer IP address on the transit gateway side of the tunnel. -/ + transitGatewayAddress : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayConnectPeerConfiguration where + schema := .struct "TransitGatewayConnectPeerConfiguration" [({ name := "BgpConfigurations", xmlName := some "bgpConfigurations", queryName := some "BgpConfigurations" }, (.list (Shape.schema TransitGatewayAttachmentBgpConfiguration) "item")), + ({ name := "InsideCidrBlocks", xmlName := some "insideCidrBlocks", queryName := some "InsideCidrBlocks" }, (.list .string "item")), + ({ name := "PeerAddress", xmlName := some "peerAddress", queryName := some "PeerAddress" }, .string), + ({ name := "Protocol", xmlName := some "protocol", queryName := some "Protocol" }, (Shape.schema ProtocolValue)), + ({ name := "TransitGatewayAddress", xmlName := some "transitGatewayAddress", queryName := some "TransitGatewayAddress" }, .string)] + toValue x := record [putOpt "BgpConfigurations" x.bgpConfigurations, putOpt "InsideCidrBlocks" x.insideCidrBlocks, putOpt "PeerAddress" x.peerAddress, putOpt "Protocol" x.protocol, putOpt "TransitGatewayAddress" x.transitGatewayAddress] + ofValue v := do + let bgpConfigurations ← v.opt "BgpConfigurations" + let insideCidrBlocks ← v.opt "InsideCidrBlocks" + let peerAddress ← v.opt "PeerAddress" + let protocol ← v.opt "Protocol" + let transitGatewayAddress ← v.opt "TransitGatewayAddress" + return { bgpConfigurations, insideCidrBlocks, peerAddress, protocol, transitGatewayAddress } + +/-- Describes an entry in a transit gateway metering policy. -/ +structure TransitGatewayMeteringPolicyEntry where + /-- The Amazon Web Services account ID to which the metered traffic is attributed. -/ + meteredAccount : Option TransitGatewayMeteringPayerType := none + /-- The metering policy rule that defines traffic matching criteria. -/ + meteringPolicyRule : Option TransitGatewayMeteringPolicyRule := none + /-- The rule number of the metering policy entry. -/ + policyRuleNumber : Option String := none + /-- The state of the metering policy entry. -/ + state : Option TransitGatewayMeteringPolicyEntryState := none + /-- The date and time when the metering policy entry update becomes effective. -/ + updateEffectiveAt : Option Timestamp := none + /-- The date and time when the metering policy entry was last updated. -/ + updatedAt : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayMeteringPolicyEntry where + schema := .struct "TransitGatewayMeteringPolicyEntry" [({ name := "MeteredAccount", xmlName := some "meteredAccount", queryName := some "MeteredAccount" }, (Shape.schema TransitGatewayMeteringPayerType)), + ({ name := "MeteringPolicyRule", xmlName := some "meteringPolicyRule", queryName := some "MeteringPolicyRule" }, (Shape.schema TransitGatewayMeteringPolicyRule)), + ({ name := "PolicyRuleNumber", xmlName := some "policyRuleNumber", queryName := some "PolicyRuleNumber" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayMeteringPolicyEntryState)), + ({ name := "UpdateEffectiveAt", xmlName := some "updateEffectiveAt", queryName := some "UpdateEffectiveAt" }, (.time none)), + ({ name := "UpdatedAt", xmlName := some "updatedAt", queryName := some "UpdatedAt" }, (.time none))] + toValue x := record [putOpt "MeteredAccount" x.meteredAccount, putOpt "MeteringPolicyRule" x.meteringPolicyRule, putOpt "PolicyRuleNumber" x.policyRuleNumber, putOpt "State" x.state, putOpt "UpdateEffectiveAt" x.updateEffectiveAt, putOpt "UpdatedAt" x.updatedAt] + ofValue v := do + let meteredAccount ← v.opt "MeteredAccount" + let meteringPolicyRule ← v.opt "MeteringPolicyRule" + let policyRuleNumber ← v.opt "PolicyRuleNumber" + let state ← v.opt "State" + let updateEffectiveAt ← v.opt "UpdateEffectiveAt" + let updatedAt ← v.opt "UpdatedAt" + return { meteredAccount, meteringPolicyRule, policyRuleNumber, state, updateEffectiveAt, updatedAt } + +/-- Describes the transit gateway multicast domain. -/ +structure TransitGatewayMulticastDomain where + /-- The time the transit gateway multicast domain was created. -/ + creationTime : Option Timestamp := none + /-- The options for the transit gateway multicast domain. -/ + options : Option TransitGatewayMulticastDomainOptions := none + /-- The ID of the Amazon Web Services account that owns the transit gateway multicast domain. -/ + ownerId : Option String := none + /-- The state of the transit gateway multicast domain. -/ + state : Option TransitGatewayMulticastDomainState := none + /-- The tags for the transit gateway multicast domain. -/ + tags : Option (List Tag) := none + /-- The ID of the transit gateway. -/ + transitGatewayId : Option String := none + /-- The Amazon Resource Name (ARN) of the transit gateway multicast domain. -/ + transitGatewayMulticastDomainArn : Option String := none + /-- The ID of the transit gateway multicast domain. -/ + transitGatewayMulticastDomainId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayMulticastDomain where + schema := .struct "TransitGatewayMulticastDomain" [({ name := "CreationTime", xmlName := some "creationTime", queryName := some "CreationTime" }, (.time none)), + ({ name := "Options", xmlName := some "options", queryName := some "Options" }, (Shape.schema TransitGatewayMulticastDomainOptions)), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayMulticastDomainState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TransitGatewayId", xmlName := some "transitGatewayId", queryName := some "TransitGatewayId" }, .string), + ({ name := "TransitGatewayMulticastDomainArn", xmlName := some "transitGatewayMulticastDomainArn", queryName := some "TransitGatewayMulticastDomainArn" }, .string), + ({ name := "TransitGatewayMulticastDomainId", xmlName := some "transitGatewayMulticastDomainId", queryName := some "TransitGatewayMulticastDomainId" }, .string)] + toValue x := record [putOpt "CreationTime" x.creationTime, putOpt "Options" x.options, putOpt "OwnerId" x.ownerId, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "TransitGatewayId" x.transitGatewayId, putOpt "TransitGatewayMulticastDomainArn" x.transitGatewayMulticastDomainArn, putOpt "TransitGatewayMulticastDomainId" x.transitGatewayMulticastDomainId] + ofValue v := do + let creationTime ← v.opt "CreationTime" + let options ← v.opt "Options" + let ownerId ← v.opt "OwnerId" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let transitGatewayId ← v.opt "TransitGatewayId" + let transitGatewayMulticastDomainArn ← v.opt "TransitGatewayMulticastDomainArn" + let transitGatewayMulticastDomainId ← v.opt "TransitGatewayMulticastDomainId" + return { creationTime, options, ownerId, state, tags, transitGatewayId, transitGatewayMulticastDomainArn, transitGatewayMulticastDomainId } + +/-- Describes the resources associated with the transit gateway multicast domain. -/ +structure TransitGatewayMulticastDomainAssociation where + /-- The ID of the resource. -/ + resourceId : Option String := none + /-- The ID of the Amazon Web Services account that owns the transit gateway multicast domain association resource. -/ + resourceOwnerId : Option String := none + /-- The type of resource, for example a VPC attachment. -/ + resourceType : Option TransitGatewayAttachmentResourceType := none + /-- The subnet associated with the transit gateway multicast domain. -/ + subnet : Option SubnetAssociation := none + /-- The ID of the transit gateway attachment. -/ + transitGatewayAttachmentId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayMulticastDomainAssociation where + schema := .struct "TransitGatewayMulticastDomainAssociation" [({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceOwnerId", xmlName := some "resourceOwnerId", queryName := some "ResourceOwnerId" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema TransitGatewayAttachmentResourceType)), + ({ name := "Subnet", xmlName := some "subnet", queryName := some "Subnet" }, (Shape.schema SubnetAssociation)), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string)] + toValue x := record [putOpt "ResourceId" x.resourceId, putOpt "ResourceOwnerId" x.resourceOwnerId, putOpt "ResourceType" x.resourceType, putOpt "Subnet" x.subnet, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let resourceId ← v.opt "ResourceId" + let resourceOwnerId ← v.opt "ResourceOwnerId" + let resourceType ← v.opt "ResourceType" + let subnet ← v.opt "Subnet" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + return { resourceId, resourceOwnerId, resourceType, subnet, transitGatewayAttachmentId } + +/-- Describes the multicast domain associations. -/ +structure TransitGatewayMulticastDomainAssociations where + /-- The ID of the resource. -/ + resourceId : Option String := none + /-- The ID of the Amazon Web Services account that owns the resource. -/ + resourceOwnerId : Option String := none + /-- The type of resource, for example a VPC attachment. -/ + resourceType : Option TransitGatewayAttachmentResourceType := none + /-- The subnets associated with the multicast domain. -/ + subnets : Option (List SubnetAssociation) := none + /-- The ID of the transit gateway attachment. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the transit gateway multicast domain. -/ + transitGatewayMulticastDomainId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayMulticastDomainAssociations where + schema := .struct "TransitGatewayMulticastDomainAssociations" [({ name := "ResourceId", xmlName := some "resourceId", queryName := some "ResourceId" }, .string), + ({ name := "ResourceOwnerId", xmlName := some "resourceOwnerId", queryName := some "ResourceOwnerId" }, .string), + ({ name := "ResourceType", xmlName := some "resourceType", queryName := some "ResourceType" }, (Shape.schema TransitGatewayAttachmentResourceType)), + ({ name := "Subnets", xmlName := some "subnets", queryName := some "Subnets" }, (.list (Shape.schema SubnetAssociation) "item")), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayMulticastDomainId", xmlName := some "transitGatewayMulticastDomainId", queryName := some "TransitGatewayMulticastDomainId" }, .string)] + toValue x := record [putOpt "ResourceId" x.resourceId, putOpt "ResourceOwnerId" x.resourceOwnerId, putOpt "ResourceType" x.resourceType, putOpt "Subnets" x.subnets, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, putOpt "TransitGatewayMulticastDomainId" x.transitGatewayMulticastDomainId] + ofValue v := do + let resourceId ← v.opt "ResourceId" + let resourceOwnerId ← v.opt "ResourceOwnerId" + let resourceType ← v.opt "ResourceType" + let subnets ← v.opt "Subnets" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayMulticastDomainId ← v.opt "TransitGatewayMulticastDomainId" + return { resourceId, resourceOwnerId, resourceType, subnets, transitGatewayAttachmentId, transitGatewayMulticastDomainId } + +/-- Describes the options for a transit gateway. -/ +structure TransitGatewayOptions where + /-- A private Autonomous System Number (ASN) for the Amazon side of a BGP session. -/ + amazonSideAsn : Option Int := none + /-- The ID of the default association route table. -/ + associationDefaultRouteTableId : Option String := none + /-- Indicates whether attachment requests are automatically accepted. -/ + autoAcceptSharedAttachments : Option AutoAcceptSharedAttachmentsValue := none + /-- Indicates whether resource attachments are automatically associated with the default association route table. -/ + defaultRouteTableAssociation : Option DefaultRouteTableAssociationValue := none + /-- Indicates whether resource attachments automatically propagate routes to the default propagation route table. -/ + defaultRouteTablePropagation : Option DefaultRouteTablePropagationValue := none + /-- Indicates whether DNS support is enabled. -/ + dnsSupport : Option DnsSupportValue := none + /-- Defines if the Transit Gateway supports VPC Encryption Control. -/ + encryptionSupport : Option EncryptionSupport := none + /-- Indicates whether multicast is enabled on the transit gateway. -/ + multicastSupport : Option MulticastSupportValue := none + /-- The ID of the default propagation route table. -/ + propagationDefaultRouteTableId : Option String := none + /-- Enables you to reference a security group across VPCs attached to a transit gateway to simplify security group management. -/ + securityGroupReferencingSupport : Option SecurityGroupReferencingSupportValue := none + /-- The transit gateway CIDR blocks. -/ + transitGatewayCidrBlocks : Option (List String) := none + /-- Indicates whether Equal Cost Multipath Protocol support is enabled. -/ + vpnEcmpSupport : Option VpnEcmpSupportValue := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayOptions where + schema := .struct "TransitGatewayOptions" [({ name := "AmazonSideAsn", xmlName := some "amazonSideAsn", queryName := some "AmazonSideAsn" }, .int), + ({ name := "AssociationDefaultRouteTableId", xmlName := some "associationDefaultRouteTableId", queryName := some "AssociationDefaultRouteTableId" }, .string), + ({ name := "AutoAcceptSharedAttachments", xmlName := some "autoAcceptSharedAttachments", queryName := some "AutoAcceptSharedAttachments" }, (Shape.schema AutoAcceptSharedAttachmentsValue)), + ({ name := "DefaultRouteTableAssociation", xmlName := some "defaultRouteTableAssociation", queryName := some "DefaultRouteTableAssociation" }, (Shape.schema DefaultRouteTableAssociationValue)), + ({ name := "DefaultRouteTablePropagation", xmlName := some "defaultRouteTablePropagation", queryName := some "DefaultRouteTablePropagation" }, (Shape.schema DefaultRouteTablePropagationValue)), + ({ name := "DnsSupport", xmlName := some "dnsSupport", queryName := some "DnsSupport" }, (Shape.schema DnsSupportValue)), + ({ name := "EncryptionSupport", xmlName := some "encryptionSupport", queryName := some "EncryptionSupport" }, (Shape.schema EncryptionSupport)), + ({ name := "MulticastSupport", xmlName := some "multicastSupport", queryName := some "MulticastSupport" }, (Shape.schema MulticastSupportValue)), + ({ name := "PropagationDefaultRouteTableId", xmlName := some "propagationDefaultRouteTableId", queryName := some "PropagationDefaultRouteTableId" }, .string), + ({ name := "SecurityGroupReferencingSupport", xmlName := some "securityGroupReferencingSupport", queryName := some "SecurityGroupReferencingSupport" }, (Shape.schema SecurityGroupReferencingSupportValue)), + ({ name := "TransitGatewayCidrBlocks", xmlName := some "transitGatewayCidrBlocks", queryName := some "TransitGatewayCidrBlocks" }, (.list .string "item")), + ({ name := "VpnEcmpSupport", xmlName := some "vpnEcmpSupport", queryName := some "VpnEcmpSupport" }, (Shape.schema VpnEcmpSupportValue))] + toValue x := record [putOpt "AmazonSideAsn" x.amazonSideAsn, putOpt "AssociationDefaultRouteTableId" x.associationDefaultRouteTableId, putOpt "AutoAcceptSharedAttachments" x.autoAcceptSharedAttachments, putOpt "DefaultRouteTableAssociation" x.defaultRouteTableAssociation, putOpt "DefaultRouteTablePropagation" x.defaultRouteTablePropagation, putOpt "DnsSupport" x.dnsSupport, putOpt "EncryptionSupport" x.encryptionSupport, putOpt "MulticastSupport" x.multicastSupport, putOpt "PropagationDefaultRouteTableId" x.propagationDefaultRouteTableId, putOpt "SecurityGroupReferencingSupport" x.securityGroupReferencingSupport, putOpt "TransitGatewayCidrBlocks" x.transitGatewayCidrBlocks, putOpt "VpnEcmpSupport" x.vpnEcmpSupport] + ofValue v := do + let amazonSideAsn ← v.opt "AmazonSideAsn" + let associationDefaultRouteTableId ← v.opt "AssociationDefaultRouteTableId" + let autoAcceptSharedAttachments ← v.opt "AutoAcceptSharedAttachments" + let defaultRouteTableAssociation ← v.opt "DefaultRouteTableAssociation" + let defaultRouteTablePropagation ← v.opt "DefaultRouteTablePropagation" + let dnsSupport ← v.opt "DnsSupport" + let encryptionSupport ← v.opt "EncryptionSupport" + let multicastSupport ← v.opt "MulticastSupport" + let propagationDefaultRouteTableId ← v.opt "PropagationDefaultRouteTableId" + let securityGroupReferencingSupport ← v.opt "SecurityGroupReferencingSupport" + let transitGatewayCidrBlocks ← v.opt "TransitGatewayCidrBlocks" + let vpnEcmpSupport ← v.opt "VpnEcmpSupport" + return { amazonSideAsn, associationDefaultRouteTableId, autoAcceptSharedAttachments, defaultRouteTableAssociation, defaultRouteTablePropagation, dnsSupport, encryptionSupport, multicastSupport, propagationDefaultRouteTableId, securityGroupReferencingSupport, transitGatewayCidrBlocks, vpnEcmpSupport } + +/-- Describes the transit gateway peering attachment. -/ +structure TransitGatewayPeeringAttachment where + /-- Information about the accepter transit gateway. -/ + accepterTgwInfo : Option PeeringTgwInfo := none + /-- The ID of the accepter transit gateway attachment. -/ + accepterTransitGatewayAttachmentId : Option String := none + /-- The time the transit gateway peering attachment was created. -/ + creationTime : Option Timestamp := none + /-- Details about the transit gateway peering attachment. -/ + options : Option TransitGatewayPeeringAttachmentOptions := none + /-- Information about the requester transit gateway. -/ + requesterTgwInfo : Option PeeringTgwInfo := none + /-- The state of the transit gateway peering attachment. -/ + state : Option TransitGatewayAttachmentState := none + /-- The status of the transit gateway peering attachment. -/ + status : Option PeeringAttachmentStatus := none + /-- The tags for the transit gateway peering attachment. -/ + tags : Option (List Tag) := none + /-- The ID of the transit gateway peering attachment. -/ + transitGatewayAttachmentId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayPeeringAttachment where + schema := .struct "TransitGatewayPeeringAttachment" [({ name := "AccepterTgwInfo", xmlName := some "accepterTgwInfo", queryName := some "AccepterTgwInfo" }, (Shape.schema PeeringTgwInfo)), + ({ name := "AccepterTransitGatewayAttachmentId", xmlName := some "accepterTransitGatewayAttachmentId", queryName := some "AccepterTransitGatewayAttachmentId" }, .string), + ({ name := "CreationTime", xmlName := some "creationTime", queryName := some "CreationTime" }, (.time none)), + ({ name := "Options", xmlName := some "options", queryName := some "Options" }, (Shape.schema TransitGatewayPeeringAttachmentOptions)), + ({ name := "RequesterTgwInfo", xmlName := some "requesterTgwInfo", queryName := some "RequesterTgwInfo" }, (Shape.schema PeeringTgwInfo)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayAttachmentState)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema PeeringAttachmentStatus)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string)] + toValue x := record [putOpt "AccepterTgwInfo" x.accepterTgwInfo, putOpt "AccepterTransitGatewayAttachmentId" x.accepterTransitGatewayAttachmentId, putOpt "CreationTime" x.creationTime, putOpt "Options" x.options, putOpt "RequesterTgwInfo" x.requesterTgwInfo, putOpt "State" x.state, putOpt "Status" x.status, putOpt "Tags" x.tags, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId] + ofValue v := do + let accepterTgwInfo ← v.opt "AccepterTgwInfo" + let accepterTransitGatewayAttachmentId ← v.opt "AccepterTransitGatewayAttachmentId" + let creationTime ← v.opt "CreationTime" + let options ← v.opt "Options" + let requesterTgwInfo ← v.opt "RequesterTgwInfo" + let state ← v.opt "State" + let status ← v.opt "Status" + let tags ← v.opt "Tags" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + return { accepterTgwInfo, accepterTransitGatewayAttachmentId, creationTime, options, requesterTgwInfo, state, status, tags, transitGatewayAttachmentId } + +/-- Describes a transit gateway policy table entry. -/ +structure TransitGatewayPolicyTableEntry where + /-- The policy rule associated with the transit gateway policy table. -/ + policyRule : Option TransitGatewayPolicyRule := none + /-- The rule number for the transit gateway policy table entry. -/ + policyRuleNumber : Option String := none + /-- The state of the transit gateway policy table entry. -/ + state : Option TransitGatewayPolicyTableEntryState := none + /-- The ID of the target route table. -/ + targetRouteTableId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayPolicyTableEntry where + schema := .struct "TransitGatewayPolicyTableEntry" [({ name := "PolicyRule", xmlName := some "policyRule", queryName := some "PolicyRule" }, (Shape.schema TransitGatewayPolicyRule)), + ({ name := "PolicyRuleNumber", xmlName := some "policyRuleNumber", queryName := some "PolicyRuleNumber" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayPolicyTableEntryState)), + ({ name := "TargetRouteTableId", xmlName := some "targetRouteTableId", queryName := some "TargetRouteTableId" }, .string)] + toValue x := record [putOpt "PolicyRule" x.policyRule, putOpt "PolicyRuleNumber" x.policyRuleNumber, putOpt "State" x.state, putOpt "TargetRouteTableId" x.targetRouteTableId] + ofValue v := do + let policyRule ← v.opt "PolicyRule" + let policyRuleNumber ← v.opt "PolicyRuleNumber" + let state ← v.opt "State" + let targetRouteTableId ← v.opt "TargetRouteTableId" + return { policyRule, policyRuleNumber, state, targetRouteTableId } + +/-- Describes a prefix list reference. -/ +structure TransitGatewayPrefixListReference where + /-- Indicates whether traffic that matches this route is dropped. -/ + blackhole : Option Bool := none + /-- The ID of the prefix list. -/ + prefixListId : Option String := none + /-- The ID of the prefix list owner. -/ + prefixListOwnerId : Option String := none + /-- The state of the prefix list reference. -/ + state : Option TransitGatewayPrefixListReferenceState := none + /-- Information about the transit gateway attachment. -/ + transitGatewayAttachment : Option TransitGatewayPrefixListAttachment := none + /-- The ID of the transit gateway route table. -/ + transitGatewayRouteTableId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayPrefixListReference where + schema := .struct "TransitGatewayPrefixListReference" [({ name := "Blackhole", xmlName := some "blackhole", queryName := some "Blackhole" }, .bool), + ({ name := "PrefixListId", xmlName := some "prefixListId", queryName := some "PrefixListId" }, .string), + ({ name := "PrefixListOwnerId", xmlName := some "prefixListOwnerId", queryName := some "PrefixListOwnerId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayPrefixListReferenceState)), + ({ name := "TransitGatewayAttachment", xmlName := some "transitGatewayAttachment", queryName := some "TransitGatewayAttachment" }, (Shape.schema TransitGatewayPrefixListAttachment)), + ({ name := "TransitGatewayRouteTableId", xmlName := some "transitGatewayRouteTableId", queryName := some "TransitGatewayRouteTableId" }, .string)] + toValue x := record [putOpt "Blackhole" x.blackhole, putOpt "PrefixListId" x.prefixListId, putOpt "PrefixListOwnerId" x.prefixListOwnerId, putOpt "State" x.state, putOpt "TransitGatewayAttachment" x.transitGatewayAttachment, putOpt "TransitGatewayRouteTableId" x.transitGatewayRouteTableId] + ofValue v := do + let blackhole ← v.opt "Blackhole" + let prefixListId ← v.opt "PrefixListId" + let prefixListOwnerId ← v.opt "PrefixListOwnerId" + let state ← v.opt "State" + let transitGatewayAttachment ← v.opt "TransitGatewayAttachment" + let transitGatewayRouteTableId ← v.opt "TransitGatewayRouteTableId" + return { blackhole, prefixListId, prefixListOwnerId, state, transitGatewayAttachment, transitGatewayRouteTableId } + +/-- Describes a route for a transit gateway route table. -/ +structure TransitGatewayRoute where + /-- The CIDR block used for destination matches. -/ + destinationCidrBlock : Option String := none + /-- The ID of the prefix list used for destination matches. -/ + prefixListId : Option String := none + /-- The state of the route. -/ + state : Option TransitGatewayRouteState := none + /-- The attachments. -/ + transitGatewayAttachments : Option (List TransitGatewayRouteAttachment) := none + /-- The ID of the transit gateway route table announcement. -/ + transitGatewayRouteTableAnnouncementId : Option String := none + /-- The route type. -/ + type : Option TransitGatewayRouteType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayRoute where + schema := .struct "TransitGatewayRoute" [({ name := "DestinationCidrBlock", xmlName := some "destinationCidrBlock", queryName := some "DestinationCidrBlock" }, .string), + ({ name := "PrefixListId", xmlName := some "prefixListId", queryName := some "PrefixListId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayRouteState)), + ({ name := "TransitGatewayAttachments", xmlName := some "transitGatewayAttachments", queryName := some "TransitGatewayAttachments" }, (.list (Shape.schema TransitGatewayRouteAttachment) "item")), + ({ name := "TransitGatewayRouteTableAnnouncementId", xmlName := some "transitGatewayRouteTableAnnouncementId", queryName := some "TransitGatewayRouteTableAnnouncementId" }, .string), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, (Shape.schema TransitGatewayRouteType))] + toValue x := record [putOpt "DestinationCidrBlock" x.destinationCidrBlock, putOpt "PrefixListId" x.prefixListId, putOpt "State" x.state, putOpt "TransitGatewayAttachments" x.transitGatewayAttachments, putOpt "TransitGatewayRouteTableAnnouncementId" x.transitGatewayRouteTableAnnouncementId, putOpt "Type" x.type] + ofValue v := do + let destinationCidrBlock ← v.opt "DestinationCidrBlock" + let prefixListId ← v.opt "PrefixListId" + let state ← v.opt "State" + let transitGatewayAttachments ← v.opt "TransitGatewayAttachments" + let transitGatewayRouteTableAnnouncementId ← v.opt "TransitGatewayRouteTableAnnouncementId" + let type ← v.opt "Type" + return { destinationCidrBlock, prefixListId, state, transitGatewayAttachments, transitGatewayRouteTableAnnouncementId, type } + +/-- Describes a VPC attachment. -/ +structure TransitGatewayVpcAttachment where + /-- The creation time. -/ + creationTime : Option Timestamp := none + /-- The VPC attachment options. -/ + options : Option TransitGatewayVpcAttachmentOptions := none + /-- The state of the VPC attachment. -/ + state : Option TransitGatewayAttachmentState := none + /-- The IDs of the subnets. -/ + subnetIds : Option (List String) := none + /-- The tags for the VPC attachment. -/ + tags : Option (List Tag) := none + /-- The ID of the attachment. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the transit gateway. -/ + transitGatewayId : Option String := none + /-- The ID of the VPC. -/ + vpcId : Option String := none + /-- The ID of the Amazon Web Services account that owns the VPC. -/ + vpcOwnerId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayVpcAttachment where + schema := .struct "TransitGatewayVpcAttachment" [({ name := "CreationTime", xmlName := some "creationTime", queryName := some "CreationTime" }, (.time none)), + ({ name := "Options", xmlName := some "options", queryName := some "Options" }, (Shape.schema TransitGatewayVpcAttachmentOptions)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayAttachmentState)), + ({ name := "SubnetIds", xmlName := some "subnetIds", queryName := some "SubnetIds" }, (.list .string "item")), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayId", xmlName := some "transitGatewayId", queryName := some "TransitGatewayId" }, .string), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string), + ({ name := "VpcOwnerId", xmlName := some "vpcOwnerId", queryName := some "VpcOwnerId" }, .string)] + toValue x := record [putOpt "CreationTime" x.creationTime, putOpt "Options" x.options, putOpt "State" x.state, putOpt "SubnetIds" x.subnetIds, putOpt "Tags" x.tags, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, putOpt "TransitGatewayId" x.transitGatewayId, putOpt "VpcId" x.vpcId, putOpt "VpcOwnerId" x.vpcOwnerId] + ofValue v := do + let creationTime ← v.opt "CreationTime" + let options ← v.opt "Options" + let state ← v.opt "State" + let subnetIds ← v.opt "SubnetIds" + let tags ← v.opt "Tags" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayId ← v.opt "TransitGatewayId" + let vpcId ← v.opt "VpcId" + let vpcOwnerId ← v.opt "VpcOwnerId" + return { creationTime, options, state, subnetIds, tags, transitGatewayAttachmentId, transitGatewayId, vpcId, vpcOwnerId } + +/-- The VPN tunnel options. -/ +structure TunnelOption where + /-- The action to take after a DPD timeout occurs. -/ + dpdTimeoutAction : Option String := none + /-- The number of seconds after which a DPD timeout occurs. -/ + dpdTimeoutSeconds : Option Int := none + /-- Status of tunnel endpoint lifecycle control feature. -/ + enableTunnelLifecycleControl : Option Bool := none + /-- The IKE versions that are permitted for the VPN tunnel. -/ + ikeVersions : Option (List IKEVersionsListValue) := none + /-- Options for logging VPN tunnel activity. -/ + logOptions : Option VpnTunnelLogOptions := none + /-- The external IP address of the VPN tunnel. -/ + outsideIpAddress : Option String := none + /-- The permitted additional key exchange rounds for the VPN tunnel for phase 1 IKE negotiations. -/ + phase1AdditionalKeyExchanges : Option (List VpnAdditionalKeyExchange) := none + /-- The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 1 IKE negotiations. -/ + phase1DHGroupNumbers : Option (List Phase1DHGroupNumbersListValue) := none + /-- The permitted encryption algorithms for the VPN tunnel for phase 1 IKE negotiations. -/ + phase1EncryptionAlgorithms : Option (List Phase1EncryptionAlgorithmsListValue) := none + /-- The permitted integrity algorithms for the VPN tunnel for phase 1 IKE negotiations. -/ + phase1IntegrityAlgorithms : Option (List Phase1IntegrityAlgorithmsListValue) := none + /-- The lifetime for phase 1 of the IKE negotiation, in seconds. -/ + phase1LifetimeSeconds : Option Int := none + /-- The permitted additional key exchange rounds for the VPN tunnel for phase 2 IKE negotiations. -/ + phase2AdditionalKeyExchanges : Option (List VpnAdditionalKeyExchange) := none + /-- The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 2 IKE negotiations. -/ + phase2DHGroupNumbers : Option (List Phase2DHGroupNumbersListValue) := none + /-- The permitted encryption algorithms for the VPN tunnel for phase 2 IKE negotiations. -/ + phase2EncryptionAlgorithms : Option (List Phase2EncryptionAlgorithmsListValue) := none + /-- The permitted integrity algorithms for the VPN tunnel for phase 2 IKE negotiations. -/ + phase2IntegrityAlgorithms : Option (List Phase2IntegrityAlgorithmsListValue) := none + /-- The lifetime for phase 2 of the IKE negotiation, in seconds. -/ + phase2LifetimeSeconds : Option Int := none + /-- The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and the customer gateway. -/ + preSharedKey : Option String := none + /-- The percentage of the rekey window determined by RekeyMarginTimeSeconds during which the rekey time is randomly selected. -/ + rekeyFuzzPercentage : Option Int := none + /-- The margin time, in seconds, before the phase 2 lifetime expires, during which the Amazon Web Services side of the VPN connection performs an IKE rekey. -/ + rekeyMarginTimeSeconds : Option Int := none + /-- The number of packets in an IKE replay window. -/ + replayWindowSize : Option Int := none + /-- The action to take when the establishing the VPN tunnels for a VPN connection. -/ + startupAction : Option String := none + /-- The range of inside IPv4 addresses for the tunnel. -/ + tunnelInsideCidr : Option String := none + /-- The range of inside IPv6 addresses for the tunnel. -/ + tunnelInsideIpv6Cidr : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TunnelOption where + schema := .struct "TunnelOption" [({ name := "DpdTimeoutAction", xmlName := some "dpdTimeoutAction", queryName := some "DpdTimeoutAction" }, .string), + ({ name := "DpdTimeoutSeconds", xmlName := some "dpdTimeoutSeconds", queryName := some "DpdTimeoutSeconds" }, .int), + ({ name := "EnableTunnelLifecycleControl", xmlName := some "enableTunnelLifecycleControl", queryName := some "EnableTunnelLifecycleControl" }, .bool), + ({ name := "IkeVersions", xmlName := some "ikeVersionSet", queryName := some "IkeVersionSet" }, (.list (Shape.schema IKEVersionsListValue) "item")), + ({ name := "LogOptions", xmlName := some "logOptions", queryName := some "LogOptions" }, (Shape.schema VpnTunnelLogOptions)), + ({ name := "OutsideIpAddress", xmlName := some "outsideIpAddress", queryName := some "OutsideIpAddress" }, .string), + ({ name := "Phase1AdditionalKeyExchanges", xmlName := some "phase1AdditionalKeyExchangeSet", queryName := some "Phase1AdditionalKeyExchangeSet" }, (.list (Shape.schema VpnAdditionalKeyExchange) "item")), + ({ name := "Phase1DHGroupNumbers", xmlName := some "phase1DHGroupNumberSet", queryName := some "Phase1DHGroupNumberSet" }, (.list (Shape.schema Phase1DHGroupNumbersListValue) "item")), + ({ name := "Phase1EncryptionAlgorithms", xmlName := some "phase1EncryptionAlgorithmSet", queryName := some "Phase1EncryptionAlgorithmSet" }, (.list (Shape.schema Phase1EncryptionAlgorithmsListValue) "item")), + ({ name := "Phase1IntegrityAlgorithms", xmlName := some "phase1IntegrityAlgorithmSet", queryName := some "Phase1IntegrityAlgorithmSet" }, (.list (Shape.schema Phase1IntegrityAlgorithmsListValue) "item")), + ({ name := "Phase1LifetimeSeconds", xmlName := some "phase1LifetimeSeconds", queryName := some "Phase1LifetimeSeconds" }, .int), + ({ name := "Phase2AdditionalKeyExchanges", xmlName := some "phase2AdditionalKeyExchangeSet", queryName := some "Phase2AdditionalKeyExchangeSet" }, (.list (Shape.schema VpnAdditionalKeyExchange) "item")), + ({ name := "Phase2DHGroupNumbers", xmlName := some "phase2DHGroupNumberSet", queryName := some "Phase2DHGroupNumberSet" }, (.list (Shape.schema Phase2DHGroupNumbersListValue) "item")), + ({ name := "Phase2EncryptionAlgorithms", xmlName := some "phase2EncryptionAlgorithmSet", queryName := some "Phase2EncryptionAlgorithmSet" }, (.list (Shape.schema Phase2EncryptionAlgorithmsListValue) "item")), + ({ name := "Phase2IntegrityAlgorithms", xmlName := some "phase2IntegrityAlgorithmSet", queryName := some "Phase2IntegrityAlgorithmSet" }, (.list (Shape.schema Phase2IntegrityAlgorithmsListValue) "item")), + ({ name := "Phase2LifetimeSeconds", xmlName := some "phase2LifetimeSeconds", queryName := some "Phase2LifetimeSeconds" }, .int), + ({ name := "PreSharedKey", xmlName := some "preSharedKey", queryName := some "PreSharedKey" }, .string), + ({ name := "RekeyFuzzPercentage", xmlName := some "rekeyFuzzPercentage", queryName := some "RekeyFuzzPercentage" }, .int), + ({ name := "RekeyMarginTimeSeconds", xmlName := some "rekeyMarginTimeSeconds", queryName := some "RekeyMarginTimeSeconds" }, .int), + ({ name := "ReplayWindowSize", xmlName := some "replayWindowSize", queryName := some "ReplayWindowSize" }, .int), + ({ name := "StartupAction", xmlName := some "startupAction", queryName := some "StartupAction" }, .string), + ({ name := "TunnelInsideCidr", xmlName := some "tunnelInsideCidr", queryName := some "TunnelInsideCidr" }, .string), + ({ name := "TunnelInsideIpv6Cidr", xmlName := some "tunnelInsideIpv6Cidr", queryName := some "TunnelInsideIpv6Cidr" }, .string)] + toValue x := record [putOpt "DpdTimeoutAction" x.dpdTimeoutAction, putOpt "DpdTimeoutSeconds" x.dpdTimeoutSeconds, putOpt "EnableTunnelLifecycleControl" x.enableTunnelLifecycleControl, putOpt "IkeVersions" x.ikeVersions, putOpt "LogOptions" x.logOptions, putOpt "OutsideIpAddress" x.outsideIpAddress, putOpt "Phase1AdditionalKeyExchanges" x.phase1AdditionalKeyExchanges, putOpt "Phase1DHGroupNumbers" x.phase1DHGroupNumbers, putOpt "Phase1EncryptionAlgorithms" x.phase1EncryptionAlgorithms, putOpt "Phase1IntegrityAlgorithms" x.phase1IntegrityAlgorithms, putOpt "Phase1LifetimeSeconds" x.phase1LifetimeSeconds, putOpt "Phase2AdditionalKeyExchanges" x.phase2AdditionalKeyExchanges, putOpt "Phase2DHGroupNumbers" x.phase2DHGroupNumbers, putOpt "Phase2EncryptionAlgorithms" x.phase2EncryptionAlgorithms, putOpt "Phase2IntegrityAlgorithms" x.phase2IntegrityAlgorithms, putOpt "Phase2LifetimeSeconds" x.phase2LifetimeSeconds, putOpt "PreSharedKey" x.preSharedKey, putOpt "RekeyFuzzPercentage" x.rekeyFuzzPercentage, putOpt "RekeyMarginTimeSeconds" x.rekeyMarginTimeSeconds, putOpt "ReplayWindowSize" x.replayWindowSize, putOpt "StartupAction" x.startupAction, putOpt "TunnelInsideCidr" x.tunnelInsideCidr, putOpt "TunnelInsideIpv6Cidr" x.tunnelInsideIpv6Cidr] + ofValue v := do + let dpdTimeoutAction ← v.opt "DpdTimeoutAction" + let dpdTimeoutSeconds ← v.opt "DpdTimeoutSeconds" + let enableTunnelLifecycleControl ← v.opt "EnableTunnelLifecycleControl" + let ikeVersions ← v.opt "IkeVersions" + let logOptions ← v.opt "LogOptions" + let outsideIpAddress ← v.opt "OutsideIpAddress" + let phase1AdditionalKeyExchanges ← v.opt "Phase1AdditionalKeyExchanges" + let phase1DHGroupNumbers ← v.opt "Phase1DHGroupNumbers" + let phase1EncryptionAlgorithms ← v.opt "Phase1EncryptionAlgorithms" + let phase1IntegrityAlgorithms ← v.opt "Phase1IntegrityAlgorithms" + let phase1LifetimeSeconds ← v.opt "Phase1LifetimeSeconds" + let phase2AdditionalKeyExchanges ← v.opt "Phase2AdditionalKeyExchanges" + let phase2DHGroupNumbers ← v.opt "Phase2DHGroupNumbers" + let phase2EncryptionAlgorithms ← v.opt "Phase2EncryptionAlgorithms" + let phase2IntegrityAlgorithms ← v.opt "Phase2IntegrityAlgorithms" + let phase2LifetimeSeconds ← v.opt "Phase2LifetimeSeconds" + let preSharedKey ← v.opt "PreSharedKey" + let rekeyFuzzPercentage ← v.opt "RekeyFuzzPercentage" + let rekeyMarginTimeSeconds ← v.opt "RekeyMarginTimeSeconds" + let replayWindowSize ← v.opt "ReplayWindowSize" + let startupAction ← v.opt "StartupAction" + let tunnelInsideCidr ← v.opt "TunnelInsideCidr" + let tunnelInsideIpv6Cidr ← v.opt "TunnelInsideIpv6Cidr" + return { dpdTimeoutAction, dpdTimeoutSeconds, enableTunnelLifecycleControl, ikeVersions, logOptions, outsideIpAddress, phase1AdditionalKeyExchanges, phase1DHGroupNumbers, phase1EncryptionAlgorithms, phase1IntegrityAlgorithms, phase1LifetimeSeconds, phase2AdditionalKeyExchanges, phase2DHGroupNumbers, phase2EncryptionAlgorithms, phase2IntegrityAlgorithms, phase2LifetimeSeconds, preSharedKey, rekeyFuzzPercentage, rekeyMarginTimeSeconds, replayWindowSize, startupAction, tunnelInsideCidr, tunnelInsideIpv6Cidr } + +structure UnassignPrivateNatGatewayAddressResult where + /-- Information about the NAT gateway IP addresses. -/ + natGatewayAddresses : Option (List NatGatewayAddress) := none + /-- The ID of the NAT gateway. -/ + natGatewayId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UnassignPrivateNatGatewayAddressResult where + schema := .struct "UnassignPrivateNatGatewayAddressResult" [({ name := "NatGatewayAddresses", xmlName := some "natGatewayAddressSet", queryName := some "NatGatewayAddressSet" }, (.list (Shape.schema NatGatewayAddress) "item")), + ({ name := "NatGatewayId", xmlName := some "natGatewayId", queryName := some "NatGatewayId" }, .string)] + toValue x := record [putOpt "NatGatewayAddresses" x.natGatewayAddresses, putOpt "NatGatewayId" x.natGatewayId] + ofValue v := do + let natGatewayAddresses ← v.opt "NatGatewayAddresses" + let natGatewayId ← v.opt "NatGatewayId" + return { natGatewayAddresses, natGatewayId } + +/-- Describes the burstable performance instance whose credit option for CPU usage was not modified. -/ +structure UnsuccessfulInstanceCreditSpecificationItem where + /-- The applicable error for the burstable performance instance whose credit option for CPU usage was not modified. -/ + error : Option UnsuccessfulInstanceCreditSpecificationItemError := none + /-- The ID of the instance. -/ + instanceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UnsuccessfulInstanceCreditSpecificationItem where + schema := .struct "UnsuccessfulInstanceCreditSpecificationItem" [({ name := "Error", xmlName := some "error", queryName := some "Error" }, (Shape.schema UnsuccessfulInstanceCreditSpecificationItemError)), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string)] + toValue x := record [putOpt "Error" x.error, putOpt "InstanceId" x.instanceId] + ofValue v := do + let error ← v.opt "Error" + let instanceId ← v.opt "InstanceId" + return { error, instanceId } + +structure UpdateCapacityManagerMonitoredTagKeysResult where + /-- The list of tag keys affected by the update, including their current status and metadata. -/ + capacityManagerTagKeys : Option (List CapacityManagerMonitoredTagKey) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateCapacityManagerMonitoredTagKeysResult where + schema := .struct "UpdateCapacityManagerMonitoredTagKeysResult" [({ name := "CapacityManagerTagKeys", xmlName := some "capacityManagerTagKeySet", queryName := some "CapacityManagerTagKeySet" }, (.list (Shape.schema CapacityManagerMonitoredTagKey) "item"))] + toValue x := record [putOpt "CapacityManagerTagKeys" x.capacityManagerTagKeys] + ofValue v := do + let capacityManagerTagKeys ← v.opt "CapacityManagerTagKeys" + return { capacityManagerTagKeys } + +structure UpdateSecurityGroupRuleDescriptionsEgressRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the security group. -/ + groupId : Option String := none + /-- [Default VPC] The name of the security group. -/ + groupName : Option String := none + /-- The IP permissions for the security group rule. -/ + ipPermissions : Option (List IpPermission) := none + /-- The description for the egress security group rules. -/ + securityGroupRuleDescriptions : Option (List SecurityGroupRuleDescription) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateSecurityGroupRuleDescriptionsEgressRequest where + schema := .struct "UpdateSecurityGroupRuleDescriptionsEgressRequest" [({ name := "DryRun" }, .bool), + ({ name := "GroupId" }, .string), + ({ name := "GroupName" }, .string), + ({ name := "IpPermissions" }, (.list (Shape.schema IpPermission) "item")), + ({ name := "SecurityGroupRuleDescriptions", xmlName := some "SecurityGroupRuleDescription" }, (.list (Shape.schema SecurityGroupRuleDescription) "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "GroupId" x.groupId, putOpt "GroupName" x.groupName, putOpt "IpPermissions" x.ipPermissions, putOpt "SecurityGroupRuleDescriptions" x.securityGroupRuleDescriptions] + ofValue v := do + let dryRun ← v.opt "DryRun" + let groupId ← v.opt "GroupId" + let groupName ← v.opt "GroupName" + let ipPermissions ← v.opt "IpPermissions" + let securityGroupRuleDescriptions ← v.opt "SecurityGroupRuleDescriptions" + return { dryRun, groupId, groupName, ipPermissions, securityGroupRuleDescriptions } + +structure UpdateSecurityGroupRuleDescriptionsIngressRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the security group. -/ + groupId : Option String := none + /-- [Default VPC] The name of the security group. -/ + groupName : Option String := none + /-- The IP permissions for the security group rule. -/ + ipPermissions : Option (List IpPermission) := none + /-- The description for the ingress security group rules. -/ + securityGroupRuleDescriptions : Option (List SecurityGroupRuleDescription) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateSecurityGroupRuleDescriptionsIngressRequest where + schema := .struct "UpdateSecurityGroupRuleDescriptionsIngressRequest" [({ name := "DryRun" }, .bool), + ({ name := "GroupId" }, .string), + ({ name := "GroupName" }, .string), + ({ name := "IpPermissions" }, (.list (Shape.schema IpPermission) "item")), + ({ name := "SecurityGroupRuleDescriptions", xmlName := some "SecurityGroupRuleDescription" }, (.list (Shape.schema SecurityGroupRuleDescription) "item"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "GroupId" x.groupId, putOpt "GroupName" x.groupName, putOpt "IpPermissions" x.ipPermissions, putOpt "SecurityGroupRuleDescriptions" x.securityGroupRuleDescriptions] + ofValue v := do + let dryRun ← v.opt "DryRun" + let groupId ← v.opt "GroupId" + let groupName ← v.opt "GroupName" + let ipPermissions ← v.opt "IpPermissions" + let securityGroupRuleDescriptions ← v.opt "SecurityGroupRuleDescriptions" + return { dryRun, groupId, groupName, ipPermissions, securityGroupRuleDescriptions } + +/-- An Amazon Web Services Verified Access endpoint specifies the application that Amazon Web Services Verified Access provides access to. -/ +structure VerifiedAccessEndpoint where + /-- The DNS name for users to reach your application. -/ + applicationDomain : Option String := none + /-- The type of attachment used to provide connectivity between the Amazon Web Services Verified Access endpoint and the application. -/ + attachmentType : Option VerifiedAccessEndpointAttachmentType := none + /-- The options for a CIDR endpoint. -/ + cidrOptions : Option VerifiedAccessEndpointCidrOptions := none + /-- The creation time. -/ + creationTime : Option String := none + /-- The deletion time. -/ + deletionTime : Option String := none + /-- A description for the Amazon Web Services Verified Access endpoint. -/ + description : Option String := none + /-- Returned if endpoint has a device trust provider attached. -/ + deviceValidationDomain : Option String := none + /-- The ARN of a public TLS/SSL certificate imported into or created with ACM. -/ + domainCertificateArn : Option String := none + /-- A DNS name that is generated for the endpoint. -/ + endpointDomain : Option String := none + /-- The type of Amazon Web Services Verified Access endpoint. -/ + endpointType : Option VerifiedAccessEndpointType := none + /-- The last updated time. -/ + lastUpdatedTime : Option String := none + /-- The load balancer details if creating the Amazon Web Services Verified Access endpoint as load-balancer type. -/ + loadBalancerOptions : Option VerifiedAccessEndpointLoadBalancerOptions := none + /-- The options for network-interface type endpoint. -/ + networkInterfaceOptions : Option VerifiedAccessEndpointEniOptions := none + /-- The options for an RDS endpoint. -/ + rdsOptions : Option VerifiedAccessEndpointRdsOptions := none + /-- The IDs of the security groups for the endpoint. -/ + securityGroupIds : Option (List String) := none + /-- The options in use for server side encryption. -/ + sseSpecification : Option VerifiedAccessSseSpecificationResponse := none + /-- The endpoint status. -/ + status : Option VerifiedAccessEndpointStatus := none + /-- The tags. -/ + tags : Option (List Tag) := none + /-- The ID of the Amazon Web Services Verified Access endpoint. -/ + verifiedAccessEndpointId : Option String := none + /-- The ID of the Amazon Web Services Verified Access group. -/ + verifiedAccessGroupId : Option String := none + /-- The ID of the Amazon Web Services Verified Access instance. -/ + verifiedAccessInstanceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessEndpoint where + schema := .struct "VerifiedAccessEndpoint" [({ name := "ApplicationDomain", xmlName := some "applicationDomain", queryName := some "ApplicationDomain" }, .string), + ({ name := "AttachmentType", xmlName := some "attachmentType", queryName := some "AttachmentType" }, (Shape.schema VerifiedAccessEndpointAttachmentType)), + ({ name := "CidrOptions", xmlName := some "cidrOptions", queryName := some "CidrOptions" }, (Shape.schema VerifiedAccessEndpointCidrOptions)), + ({ name := "CreationTime", xmlName := some "creationTime", queryName := some "CreationTime" }, .string), + ({ name := "DeletionTime", xmlName := some "deletionTime", queryName := some "DeletionTime" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "DeviceValidationDomain", xmlName := some "deviceValidationDomain", queryName := some "DeviceValidationDomain" }, .string), + ({ name := "DomainCertificateArn", xmlName := some "domainCertificateArn", queryName := some "DomainCertificateArn" }, .string), + ({ name := "EndpointDomain", xmlName := some "endpointDomain", queryName := some "EndpointDomain" }, .string), + ({ name := "EndpointType", xmlName := some "endpointType", queryName := some "EndpointType" }, (Shape.schema VerifiedAccessEndpointType)), + ({ name := "LastUpdatedTime", xmlName := some "lastUpdatedTime", queryName := some "LastUpdatedTime" }, .string), + ({ name := "LoadBalancerOptions", xmlName := some "loadBalancerOptions", queryName := some "LoadBalancerOptions" }, (Shape.schema VerifiedAccessEndpointLoadBalancerOptions)), + ({ name := "NetworkInterfaceOptions", xmlName := some "networkInterfaceOptions", queryName := some "NetworkInterfaceOptions" }, (Shape.schema VerifiedAccessEndpointEniOptions)), + ({ name := "RdsOptions", xmlName := some "rdsOptions", queryName := some "RdsOptions" }, (Shape.schema VerifiedAccessEndpointRdsOptions)), + ({ name := "SecurityGroupIds", xmlName := some "securityGroupIdSet", queryName := some "SecurityGroupIdSet" }, (.list .string "item")), + ({ name := "SseSpecification", xmlName := some "sseSpecification", queryName := some "SseSpecification" }, (Shape.schema VerifiedAccessSseSpecificationResponse)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema VerifiedAccessEndpointStatus)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VerifiedAccessEndpointId", xmlName := some "verifiedAccessEndpointId", queryName := some "VerifiedAccessEndpointId" }, .string), + ({ name := "VerifiedAccessGroupId", xmlName := some "verifiedAccessGroupId", queryName := some "VerifiedAccessGroupId" }, .string), + ({ name := "VerifiedAccessInstanceId", xmlName := some "verifiedAccessInstanceId", queryName := some "VerifiedAccessInstanceId" }, .string)] + toValue x := record [putOpt "ApplicationDomain" x.applicationDomain, putOpt "AttachmentType" x.attachmentType, putOpt "CidrOptions" x.cidrOptions, putOpt "CreationTime" x.creationTime, putOpt "DeletionTime" x.deletionTime, putOpt "Description" x.description, putOpt "DeviceValidationDomain" x.deviceValidationDomain, putOpt "DomainCertificateArn" x.domainCertificateArn, putOpt "EndpointDomain" x.endpointDomain, putOpt "EndpointType" x.endpointType, putOpt "LastUpdatedTime" x.lastUpdatedTime, putOpt "LoadBalancerOptions" x.loadBalancerOptions, putOpt "NetworkInterfaceOptions" x.networkInterfaceOptions, putOpt "RdsOptions" x.rdsOptions, putOpt "SecurityGroupIds" x.securityGroupIds, putOpt "SseSpecification" x.sseSpecification, putOpt "Status" x.status, putOpt "Tags" x.tags, putOpt "VerifiedAccessEndpointId" x.verifiedAccessEndpointId, putOpt "VerifiedAccessGroupId" x.verifiedAccessGroupId, putOpt "VerifiedAccessInstanceId" x.verifiedAccessInstanceId] + ofValue v := do + let applicationDomain ← v.opt "ApplicationDomain" + let attachmentType ← v.opt "AttachmentType" + let cidrOptions ← v.opt "CidrOptions" + let creationTime ← v.opt "CreationTime" + let deletionTime ← v.opt "DeletionTime" + let description ← v.opt "Description" + let deviceValidationDomain ← v.opt "DeviceValidationDomain" + let domainCertificateArn ← v.opt "DomainCertificateArn" + let endpointDomain ← v.opt "EndpointDomain" + let endpointType ← v.opt "EndpointType" + let lastUpdatedTime ← v.opt "LastUpdatedTime" + let loadBalancerOptions ← v.opt "LoadBalancerOptions" + let networkInterfaceOptions ← v.opt "NetworkInterfaceOptions" + let rdsOptions ← v.opt "RdsOptions" + let securityGroupIds ← v.opt "SecurityGroupIds" + let sseSpecification ← v.opt "SseSpecification" + let status ← v.opt "Status" + let tags ← v.opt "Tags" + let verifiedAccessEndpointId ← v.opt "VerifiedAccessEndpointId" + let verifiedAccessGroupId ← v.opt "VerifiedAccessGroupId" + let verifiedAccessInstanceId ← v.opt "VerifiedAccessInstanceId" + return { applicationDomain, attachmentType, cidrOptions, creationTime, deletionTime, description, deviceValidationDomain, domainCertificateArn, endpointDomain, endpointType, lastUpdatedTime, loadBalancerOptions, networkInterfaceOptions, rdsOptions, securityGroupIds, sseSpecification, status, tags, verifiedAccessEndpointId, verifiedAccessGroupId, verifiedAccessInstanceId } + +/-- Describes a Verified Access instance. -/ +structure VerifiedAccessInstance where + /-- The custom subdomain. -/ + cidrEndpointsCustomSubDomain : Option VerifiedAccessInstanceCustomSubDomain := none + /-- The creation time. -/ + creationTime : Option String := none + /-- A description for the Amazon Web Services Verified Access instance. -/ + description : Option String := none + /-- Indicates whether support for Federal Information Processing Standards (FIPS) is enabled on the instance. -/ + fipsEnabled : Option Bool := none + /-- The last updated time. -/ + lastUpdatedTime : Option String := none + /-- The tags. -/ + tags : Option (List Tag) := none + /-- The ID of the Amazon Web Services Verified Access instance. -/ + verifiedAccessInstanceId : Option String := none + /-- The IDs of the Amazon Web Services Verified Access trust providers. -/ + verifiedAccessTrustProviders : Option (List VerifiedAccessTrustProviderCondensed) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessInstance where + schema := .struct "VerifiedAccessInstance" [({ name := "CidrEndpointsCustomSubDomain", xmlName := some "cidrEndpointsCustomSubDomain", queryName := some "CidrEndpointsCustomSubDomain" }, (Shape.schema VerifiedAccessInstanceCustomSubDomain)), + ({ name := "CreationTime", xmlName := some "creationTime", queryName := some "CreationTime" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "FipsEnabled", xmlName := some "fipsEnabled", queryName := some "FipsEnabled" }, .bool), + ({ name := "LastUpdatedTime", xmlName := some "lastUpdatedTime", queryName := some "LastUpdatedTime" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VerifiedAccessInstanceId", xmlName := some "verifiedAccessInstanceId", queryName := some "VerifiedAccessInstanceId" }, .string), + ({ name := "VerifiedAccessTrustProviders", xmlName := some "verifiedAccessTrustProviderSet", queryName := some "VerifiedAccessTrustProviderSet" }, (.list (Shape.schema VerifiedAccessTrustProviderCondensed) "item"))] + toValue x := record [putOpt "CidrEndpointsCustomSubDomain" x.cidrEndpointsCustomSubDomain, putOpt "CreationTime" x.creationTime, putOpt "Description" x.description, putOpt "FipsEnabled" x.fipsEnabled, putOpt "LastUpdatedTime" x.lastUpdatedTime, putOpt "Tags" x.tags, putOpt "VerifiedAccessInstanceId" x.verifiedAccessInstanceId, putOpt "VerifiedAccessTrustProviders" x.verifiedAccessTrustProviders] + ofValue v := do + let cidrEndpointsCustomSubDomain ← v.opt "CidrEndpointsCustomSubDomain" + let creationTime ← v.opt "CreationTime" + let description ← v.opt "Description" + let fipsEnabled ← v.opt "FipsEnabled" + let lastUpdatedTime ← v.opt "LastUpdatedTime" + let tags ← v.opt "Tags" + let verifiedAccessInstanceId ← v.opt "VerifiedAccessInstanceId" + let verifiedAccessTrustProviders ← v.opt "VerifiedAccessTrustProviders" + return { cidrEndpointsCustomSubDomain, creationTime, description, fipsEnabled, lastUpdatedTime, tags, verifiedAccessInstanceId, verifiedAccessTrustProviders } + +/-- Options for CloudWatch Logs as a logging destination. -/ +structure VerifiedAccessLogCloudWatchLogsDestination where + /-- The delivery status for access logs. -/ + deliveryStatus : Option VerifiedAccessLogDeliveryStatus := none + /-- Indicates whether logging is enabled. -/ + enabled : Option Bool := none + /-- The ID of the CloudWatch Logs log group. -/ + logGroup : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessLogCloudWatchLogsDestination where + schema := .struct "VerifiedAccessLogCloudWatchLogsDestination" [({ name := "DeliveryStatus", xmlName := some "deliveryStatus", queryName := some "DeliveryStatus" }, (Shape.schema VerifiedAccessLogDeliveryStatus)), + ({ name := "Enabled", xmlName := some "enabled", queryName := some "Enabled" }, .bool), + ({ name := "LogGroup", xmlName := some "logGroup", queryName := some "LogGroup" }, .string)] + toValue x := record [putOpt "DeliveryStatus" x.deliveryStatus, putOpt "Enabled" x.enabled, putOpt "LogGroup" x.logGroup] + ofValue v := do + let deliveryStatus ← v.opt "DeliveryStatus" + let enabled ← v.opt "Enabled" + let logGroup ← v.opt "LogGroup" + return { deliveryStatus, enabled, logGroup } + +/-- Options for Kinesis as a logging destination. -/ +structure VerifiedAccessLogKinesisDataFirehoseDestination where + /-- The delivery status. -/ + deliveryStatus : Option VerifiedAccessLogDeliveryStatus := none + /-- The ID of the delivery stream. -/ + deliveryStream : Option String := none + /-- Indicates whether logging is enabled. -/ + enabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessLogKinesisDataFirehoseDestination where + schema := .struct "VerifiedAccessLogKinesisDataFirehoseDestination" [({ name := "DeliveryStatus", xmlName := some "deliveryStatus", queryName := some "DeliveryStatus" }, (Shape.schema VerifiedAccessLogDeliveryStatus)), + ({ name := "DeliveryStream", xmlName := some "deliveryStream", queryName := some "DeliveryStream" }, .string), + ({ name := "Enabled", xmlName := some "enabled", queryName := some "Enabled" }, .bool)] + toValue x := record [putOpt "DeliveryStatus" x.deliveryStatus, putOpt "DeliveryStream" x.deliveryStream, putOpt "Enabled" x.enabled] + ofValue v := do + let deliveryStatus ← v.opt "DeliveryStatus" + let deliveryStream ← v.opt "DeliveryStream" + let enabled ← v.opt "Enabled" + return { deliveryStatus, deliveryStream, enabled } + +/-- Options for Amazon S3 as a logging destination. -/ +structure VerifiedAccessLogS3Destination where + /-- The bucket name. -/ + bucketName : Option String := none + /-- The Amazon Web Services account number that owns the bucket. -/ + bucketOwner : Option String := none + /-- The delivery status. -/ + deliveryStatus : Option VerifiedAccessLogDeliveryStatus := none + /-- Indicates whether logging is enabled. -/ + enabled : Option Bool := none + /-- The bucket prefix. -/ + «prefix» : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessLogS3Destination where + schema := .struct "VerifiedAccessLogS3Destination" [({ name := "BucketName", xmlName := some "bucketName", queryName := some "BucketName" }, .string), + ({ name := "BucketOwner", xmlName := some "bucketOwner", queryName := some "BucketOwner" }, .string), + ({ name := "DeliveryStatus", xmlName := some "deliveryStatus", queryName := some "DeliveryStatus" }, (Shape.schema VerifiedAccessLogDeliveryStatus)), + ({ name := "Enabled", xmlName := some "enabled", queryName := some "Enabled" }, .bool), + ({ name := "Prefix", xmlName := some "prefix", queryName := some "Prefix" }, .string)] + toValue x := record [putOpt "BucketName" x.bucketName, putOpt "BucketOwner" x.bucketOwner, putOpt "DeliveryStatus" x.deliveryStatus, putOpt "Enabled" x.enabled, putOpt "Prefix" x.«prefix»] + ofValue v := do + let bucketName ← v.opt "BucketName" + let bucketOwner ← v.opt "BucketOwner" + let deliveryStatus ← v.opt "DeliveryStatus" + let enabled ← v.opt "Enabled" + let «prefix» ← v.opt "Prefix" + return { bucketName, bucketOwner, deliveryStatus, enabled, «prefix» } + +/-- Describes a volume. -/ +structure Volume where + /-- This parameter is not returned by CreateVolume. -/ + attachments : Option (List VolumeAttachment) := none + /-- The Availability Zone for the volume. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone for the volume. -/ + availabilityZoneId : Option String := none + /-- The time stamp when volume creation was initiated. -/ + createTime : Option Timestamp := none + /-- Indicates whether the volume is encrypted. -/ + encrypted : Option Bool := none + /-- This parameter is not returned by CreateVolume. -/ + fastRestored : Option Bool := none + /-- The number of I/O operations per second (IOPS). -/ + iops : Option Int := none + /-- The Amazon Resource Name (ARN) of the KMS key that was used to protect the volume encryption key for the volume. -/ + kmsKeyId : Option String := none + /-- Indicates whether Amazon EBS Multi-Attach is enabled. -/ + multiAttachEnabled : Option Bool := none + /-- The service provider that manages the volume. -/ + operator : Option OperatorResponse := none + /-- The Amazon Resource Name (ARN) of the Outpost. -/ + outpostArn : Option String := none + /-- The ID of the Amazon Web Services account that owns the volume. -/ + ownerId : Option String := none + /-- The size of the volume, in GiBs. -/ + size : Option Int := none + /-- The snapshot from which the volume was created, if applicable. -/ + snapshotId : Option String := none + /-- The ID of the source volume from which the volume copy was created. -/ + sourceVolumeId : Option String := none + /-- This parameter is not returned by CreateVolume. -/ + sseType : Option SSEType := none + /-- The volume state. -/ + state : Option VolumeState := none + /-- Any tags assigned to the volume. -/ + tags : Option (List Tag) := none + /-- The throughput that the volume supports, in MiB/s. -/ + throughput : Option Int := none + /-- The Amazon Resource Name (ARN) of the volume. -/ + volumeArn : Option String := none + /-- The ID of the volume. -/ + volumeId : Option String := none + /-- The Amazon EBS Provisioned Rate for Volume Initialization (volume initialization rate) specified for the volume during creation, in MiB/s. -/ + volumeInitializationRate : Option Int := none + /-- The volume type. -/ + volumeType : Option VolumeType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Volume where + schema := .struct "Volume" [({ name := "Attachments", xmlName := some "attachmentSet", queryName := some "AttachmentSet" }, (.list (Shape.schema VolumeAttachment) "item")), + ({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "CreateTime", xmlName := some "createTime", queryName := some "CreateTime" }, (.time none)), + ({ name := "Encrypted", xmlName := some "encrypted", queryName := some "Encrypted" }, .bool), + ({ name := "FastRestored", xmlName := some "fastRestored", queryName := some "FastRestored" }, .bool), + ({ name := "Iops", xmlName := some "iops", queryName := some "Iops" }, .int), + ({ name := "KmsKeyId", xmlName := some "kmsKeyId", queryName := some "KmsKeyId" }, .string), + ({ name := "MultiAttachEnabled", xmlName := some "multiAttachEnabled", queryName := some "MultiAttachEnabled" }, .bool), + ({ name := "Operator", xmlName := some "operator", queryName := some "Operator" }, (Shape.schema OperatorResponse)), + ({ name := "OutpostArn", xmlName := some "outpostArn", queryName := some "OutpostArn" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "Size", xmlName := some "size", queryName := some "Size" }, .int), + ({ name := "SnapshotId", xmlName := some "snapshotId", queryName := some "SnapshotId" }, .string), + ({ name := "SourceVolumeId", xmlName := some "sourceVolumeId", queryName := some "SourceVolumeId" }, .string), + ({ name := "SseType", xmlName := some "sseType", queryName := some "SseType" }, (Shape.schema SSEType)), + ({ name := "State", xmlName := some "status", queryName := some "Status" }, (Shape.schema VolumeState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "Throughput", xmlName := some "throughput", queryName := some "Throughput" }, .int), + ({ name := "VolumeArn", xmlName := some "volumeArn", queryName := some "VolumeArn" }, .string), + ({ name := "VolumeId", xmlName := some "volumeId", queryName := some "VolumeId" }, .string), + ({ name := "VolumeInitializationRate", xmlName := some "volumeInitializationRate", queryName := some "VolumeInitializationRate" }, .int), + ({ name := "VolumeType", xmlName := some "volumeType", queryName := some "VolumeType" }, (Shape.schema VolumeType))] + toValue x := record [putOpt "Attachments" x.attachments, putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "CreateTime" x.createTime, putOpt "Encrypted" x.encrypted, putOpt "FastRestored" x.fastRestored, putOpt "Iops" x.iops, putOpt "KmsKeyId" x.kmsKeyId, putOpt "MultiAttachEnabled" x.multiAttachEnabled, putOpt "Operator" x.operator, putOpt "OutpostArn" x.outpostArn, putOpt "OwnerId" x.ownerId, putOpt "Size" x.size, putOpt "SnapshotId" x.snapshotId, putOpt "SourceVolumeId" x.sourceVolumeId, putOpt "SseType" x.sseType, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "Throughput" x.throughput, putOpt "VolumeArn" x.volumeArn, putOpt "VolumeId" x.volumeId, putOpt "VolumeInitializationRate" x.volumeInitializationRate, putOpt "VolumeType" x.volumeType] + ofValue v := do + let attachments ← v.opt "Attachments" + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let createTime ← v.opt "CreateTime" + let encrypted ← v.opt "Encrypted" + let fastRestored ← v.opt "FastRestored" + let iops ← v.opt "Iops" + let kmsKeyId ← v.opt "KmsKeyId" + let multiAttachEnabled ← v.opt "MultiAttachEnabled" + let operator ← v.opt "Operator" + let outpostArn ← v.opt "OutpostArn" + let ownerId ← v.opt "OwnerId" + let size ← v.opt "Size" + let snapshotId ← v.opt "SnapshotId" + let sourceVolumeId ← v.opt "SourceVolumeId" + let sseType ← v.opt "SseType" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let throughput ← v.opt "Throughput" + let volumeArn ← v.opt "VolumeArn" + let volumeId ← v.opt "VolumeId" + let volumeInitializationRate ← v.opt "VolumeInitializationRate" + let volumeType ← v.opt "VolumeType" + return { attachments, availabilityZone, availabilityZoneId, createTime, encrypted, fastRestored, iops, kmsKeyId, multiAttachEnabled, operator, outpostArn, ownerId, size, snapshotId, sourceVolumeId, sseType, state, tags, throughput, volumeArn, volumeId, volumeInitializationRate, volumeType } + +/-- Describes the status of a volume. -/ +structure VolumeStatusInfo where + /-- The details of the volume status. -/ + details : Option (List VolumeStatusDetails) := none + /-- The status of the volume. -/ + status : Option VolumeStatusInfoStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VolumeStatusInfo where + schema := .struct "VolumeStatusInfo" [({ name := "Details", xmlName := some "details", queryName := some "Details" }, (.list (Shape.schema VolumeStatusDetails) "item")), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema VolumeStatusInfoStatus))] + toValue x := record [putOpt "Details" x.details, putOpt "Status" x.status] + ofValue v := do + let details ← v.opt "Details" + let status ← v.opt "Status" + return { details, status } + +/-- Describes an IPv4 CIDR block associated with a VPC. -/ +structure VpcCidrBlockAssociation where + /-- The association ID for the IPv4 CIDR block. -/ + associationId : Option String := none + /-- The IPv4 CIDR block. -/ + cidrBlock : Option String := none + /-- Information about the state of the CIDR block. -/ + cidrBlockState : Option VpcCidrBlockState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcCidrBlockAssociation where + schema := .struct "VpcCidrBlockAssociation" [({ name := "AssociationId", xmlName := some "associationId", queryName := some "AssociationId" }, .string), + ({ name := "CidrBlock", xmlName := some "cidrBlock", queryName := some "CidrBlock" }, .string), + ({ name := "CidrBlockState", xmlName := some "cidrBlockState", queryName := some "CidrBlockState" }, (Shape.schema VpcCidrBlockState))] + toValue x := record [putOpt "AssociationId" x.associationId, putOpt "CidrBlock" x.cidrBlock, putOpt "CidrBlockState" x.cidrBlockState] + ofValue v := do + let associationId ← v.opt "AssociationId" + let cidrBlock ← v.opt "CidrBlock" + let cidrBlockState ← v.opt "CidrBlockState" + return { associationId, cidrBlock, cidrBlockState } + +/-- Describes the exclusion configurations for various resource types in VPC Encryption Control. -/ +structure VpcEncryptionControlExclusions where + /-- The exclusion configuration for Amazon API Gateway V2 traffic. -/ + apiGatewayV2 : Option VpcEncryptionControlExclusion := none + /-- The exclusion configuration for egress-only internet gateway traffic. -/ + egressOnlyInternetGateway : Option VpcEncryptionControlExclusion := none + /-- The exclusion configuration for Elastic File System traffic. -/ + elasticFileSystem : Option VpcEncryptionControlExclusion := none + /-- The exclusion configuration for Amazon Web Services Global Accelerator traffic. -/ + globalAccelerator : Option VpcEncryptionControlExclusion := none + /-- The exclusion configuration for internet gateway traffic. -/ + internetGateway : Option VpcEncryptionControlExclusion := none + /-- The exclusion configuration for Lambda function traffic. -/ + lambda : Option VpcEncryptionControlExclusion := none + /-- The exclusion configuration for NAT gateway traffic. -/ + natGateway : Option VpcEncryptionControlExclusion := none + /-- The exclusion configuration for virtual private gateway traffic. -/ + virtualPrivateGateway : Option VpcEncryptionControlExclusion := none + /-- The exclusion configuration for VPC Lattice traffic. -/ + vpcLattice : Option VpcEncryptionControlExclusion := none + /-- The exclusion configuration for VPC peering connection traffic. -/ + vpcPeering : Option VpcEncryptionControlExclusion := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcEncryptionControlExclusions where + schema := .struct "VpcEncryptionControlExclusions" [({ name := "ApiGatewayV2", xmlName := some "apiGatewayV2", queryName := some "ApiGatewayV2" }, (Shape.schema VpcEncryptionControlExclusion)), + ({ name := "EgressOnlyInternetGateway", xmlName := some "egressOnlyInternetGateway", queryName := some "EgressOnlyInternetGateway" }, (Shape.schema VpcEncryptionControlExclusion)), + ({ name := "ElasticFileSystem", xmlName := some "elasticFileSystem", queryName := some "ElasticFileSystem" }, (Shape.schema VpcEncryptionControlExclusion)), + ({ name := "GlobalAccelerator", xmlName := some "globalAccelerator", queryName := some "GlobalAccelerator" }, (Shape.schema VpcEncryptionControlExclusion)), + ({ name := "InternetGateway", xmlName := some "internetGateway", queryName := some "InternetGateway" }, (Shape.schema VpcEncryptionControlExclusion)), + ({ name := "Lambda", xmlName := some "lambda", queryName := some "Lambda" }, (Shape.schema VpcEncryptionControlExclusion)), + ({ name := "NatGateway", xmlName := some "natGateway", queryName := some "NatGateway" }, (Shape.schema VpcEncryptionControlExclusion)), + ({ name := "VirtualPrivateGateway", xmlName := some "virtualPrivateGateway", queryName := some "VirtualPrivateGateway" }, (Shape.schema VpcEncryptionControlExclusion)), + ({ name := "VpcLattice", xmlName := some "vpcLattice", queryName := some "VpcLattice" }, (Shape.schema VpcEncryptionControlExclusion)), + ({ name := "VpcPeering", xmlName := some "vpcPeering", queryName := some "VpcPeering" }, (Shape.schema VpcEncryptionControlExclusion))] + toValue x := record [putOpt "ApiGatewayV2" x.apiGatewayV2, putOpt "EgressOnlyInternetGateway" x.egressOnlyInternetGateway, putOpt "ElasticFileSystem" x.elasticFileSystem, putOpt "GlobalAccelerator" x.globalAccelerator, putOpt "InternetGateway" x.internetGateway, putOpt "Lambda" x.lambda, putOpt "NatGateway" x.natGateway, putOpt "VirtualPrivateGateway" x.virtualPrivateGateway, putOpt "VpcLattice" x.vpcLattice, putOpt "VpcPeering" x.vpcPeering] + ofValue v := do + let apiGatewayV2 ← v.opt "ApiGatewayV2" + let egressOnlyInternetGateway ← v.opt "EgressOnlyInternetGateway" + let elasticFileSystem ← v.opt "ElasticFileSystem" + let globalAccelerator ← v.opt "GlobalAccelerator" + let internetGateway ← v.opt "InternetGateway" + let lambda ← v.opt "Lambda" + let natGateway ← v.opt "NatGateway" + let virtualPrivateGateway ← v.opt "VirtualPrivateGateway" + let vpcLattice ← v.opt "VpcLattice" + let vpcPeering ← v.opt "VpcPeering" + return { apiGatewayV2, egressOnlyInternetGateway, elasticFileSystem, globalAccelerator, internetGateway, lambda, natGateway, virtualPrivateGateway, vpcLattice, vpcPeering } + +/-- Describes a VPC endpoint. -/ +structure VpcEndpoint where + /-- The date and time that the endpoint was created. -/ + creationTimestamp : Option Timestamp := none + /-- (Interface endpoint) The DNS entries for the endpoint. -/ + dnsEntries : Option (List DnsEntry) := none + /-- The DNS options for the endpoint. -/ + dnsOptions : Option DnsOptions := none + /-- Reason for the failure. -/ + failureReason : Option String := none + /-- (Interface, Resource, ServiceNetwork, and Tunnel endpoints only) Information about the security groups that are associated with the network interface. -/ + groups : Option (List SecurityGroupIdentifier) := none + /-- The IP address type for the endpoint. -/ + ipAddressType : Option IpAddressType := none + /-- Array of IPv4 prefixes. -/ + ipv4Prefixes : Option (List SubnetIpPrefixes) := none + /-- Array of IPv6 prefixes. -/ + ipv6Prefixes : Option (List SubnetIpPrefixes) := none + /-- The last error that occurred for endpoint. -/ + lastError : Option LastError := none + /-- (Interface, Gateway Load Balancer endpoints, Resource, ServiceNetwork, and Tunnel endpoints only) The network interfaces for the endpoint. -/ + networkInterfaceIds : Option (List String) := none + /-- The ID of the Amazon Web Services account that owns the endpoint. -/ + ownerId : Option String := none + /-- The payer responsibility settings for the endpoint. -/ + payerResponsibilities : Option (List PayerResponsibilityEntry) := none + /-- The policy document associated with the endpoint, if applicable. -/ + policyDocument : Option String := none + /-- (Interface endpoint) Indicates whether the VPC is associated with a private hosted zone. -/ + privateDnsEnabled : Option Bool := none + /-- Indicates whether the endpoint is being managed by its service. -/ + requesterManaged : Option Bool := none + /-- The Amazon Resource Name (ARN) of the resource configuration. -/ + resourceConfigurationArn : Option String := none + /-- (Gateway endpoint) The IDs of the route tables associated with the endpoint. -/ + routeTableIds : Option (List String) := none + /-- The name of the service to which the endpoint is associated. -/ + serviceName : Option String := none + /-- The Amazon Resource Name (ARN) of the service network. -/ + serviceNetworkArn : Option String := none + /-- The Region where the service is hosted. -/ + serviceRegion : Option String := none + /-- The state of the endpoint. -/ + state : Option State := none + /-- (Interface, Gateway Load Balancer endpoints, Resource, ServiceNetwork, and Tunnel endpoints only) The subnets for the endpoint. -/ + subnetIds : Option (List String) := none + /-- The tags assigned to the endpoint. -/ + tags : Option (List Tag) := none + /-- The ID of the endpoint. -/ + vpcEndpointId : Option String := none + /-- The type of endpoint. -/ + vpcEndpointType : Option VpcEndpointType := none + /-- The ID of the VPC to which the endpoint is associated. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcEndpoint where + schema := .struct "VpcEndpoint" [({ name := "CreationTimestamp", xmlName := some "creationTimestamp", queryName := some "CreationTimestamp" }, (.time none)), + ({ name := "DnsEntries", xmlName := some "dnsEntrySet", queryName := some "DnsEntrySet" }, (.list (Shape.schema DnsEntry) "item")), + ({ name := "DnsOptions", xmlName := some "dnsOptions", queryName := some "DnsOptions" }, (Shape.schema DnsOptions)), + ({ name := "FailureReason", xmlName := some "failureReason", queryName := some "FailureReason" }, .string), + ({ name := "Groups", xmlName := some "groupSet", queryName := some "GroupSet" }, (.list (Shape.schema SecurityGroupIdentifier) "item")), + ({ name := "IpAddressType", xmlName := some "ipAddressType", queryName := some "IpAddressType" }, (Shape.schema IpAddressType)), + ({ name := "Ipv4Prefixes", xmlName := some "ipv4PrefixSet", queryName := some "Ipv4PrefixSet" }, (.list (Shape.schema SubnetIpPrefixes) "item")), + ({ name := "Ipv6Prefixes", xmlName := some "ipv6PrefixSet", queryName := some "Ipv6PrefixSet" }, (.list (Shape.schema SubnetIpPrefixes) "item")), + ({ name := "LastError", xmlName := some "lastError", queryName := some "LastError" }, (Shape.schema LastError)), + ({ name := "NetworkInterfaceIds", xmlName := some "networkInterfaceIdSet", queryName := some "NetworkInterfaceIdSet" }, (.list .string "item")), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "PayerResponsibilities", xmlName := some "payerResponsibilitySet", queryName := some "PayerResponsibilitySet" }, (.list (Shape.schema PayerResponsibilityEntry) "item")), + ({ name := "PolicyDocument", xmlName := some "policyDocument", queryName := some "PolicyDocument" }, .string), + ({ name := "PrivateDnsEnabled", xmlName := some "privateDnsEnabled", queryName := some "PrivateDnsEnabled" }, .bool), + ({ name := "RequesterManaged", xmlName := some "requesterManaged", queryName := some "RequesterManaged" }, .bool), + ({ name := "ResourceConfigurationArn", xmlName := some "resourceConfigurationArn", queryName := some "ResourceConfigurationArn" }, .string), + ({ name := "RouteTableIds", xmlName := some "routeTableIdSet", queryName := some "RouteTableIdSet" }, (.list .string "item")), + ({ name := "ServiceName", xmlName := some "serviceName", queryName := some "ServiceName" }, .string), + ({ name := "ServiceNetworkArn", xmlName := some "serviceNetworkArn", queryName := some "ServiceNetworkArn" }, .string), + ({ name := "ServiceRegion", xmlName := some "serviceRegion", queryName := some "ServiceRegion" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema State)), + ({ name := "SubnetIds", xmlName := some "subnetIdSet", queryName := some "SubnetIdSet" }, (.list .string "item")), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VpcEndpointId", xmlName := some "vpcEndpointId", queryName := some "VpcEndpointId" }, .string), + ({ name := "VpcEndpointType", xmlName := some "vpcEndpointType", queryName := some "VpcEndpointType" }, (Shape.schema VpcEndpointType)), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "CreationTimestamp" x.creationTimestamp, putOpt "DnsEntries" x.dnsEntries, putOpt "DnsOptions" x.dnsOptions, putOpt "FailureReason" x.failureReason, putOpt "Groups" x.groups, putOpt "IpAddressType" x.ipAddressType, putOpt "Ipv4Prefixes" x.ipv4Prefixes, putOpt "Ipv6Prefixes" x.ipv6Prefixes, putOpt "LastError" x.lastError, putOpt "NetworkInterfaceIds" x.networkInterfaceIds, putOpt "OwnerId" x.ownerId, putOpt "PayerResponsibilities" x.payerResponsibilities, putOpt "PolicyDocument" x.policyDocument, putOpt "PrivateDnsEnabled" x.privateDnsEnabled, putOpt "RequesterManaged" x.requesterManaged, putOpt "ResourceConfigurationArn" x.resourceConfigurationArn, putOpt "RouteTableIds" x.routeTableIds, putOpt "ServiceName" x.serviceName, putOpt "ServiceNetworkArn" x.serviceNetworkArn, putOpt "ServiceRegion" x.serviceRegion, putOpt "State" x.state, putOpt "SubnetIds" x.subnetIds, putOpt "Tags" x.tags, putOpt "VpcEndpointId" x.vpcEndpointId, putOpt "VpcEndpointType" x.vpcEndpointType, putOpt "VpcId" x.vpcId] + ofValue v := do + let creationTimestamp ← v.opt "CreationTimestamp" + let dnsEntries ← v.opt "DnsEntries" + let dnsOptions ← v.opt "DnsOptions" + let failureReason ← v.opt "FailureReason" + let groups ← v.opt "Groups" + let ipAddressType ← v.opt "IpAddressType" + let ipv4Prefixes ← v.opt "Ipv4Prefixes" + let ipv6Prefixes ← v.opt "Ipv6Prefixes" + let lastError ← v.opt "LastError" + let networkInterfaceIds ← v.opt "NetworkInterfaceIds" + let ownerId ← v.opt "OwnerId" + let payerResponsibilities ← v.opt "PayerResponsibilities" + let policyDocument ← v.opt "PolicyDocument" + let privateDnsEnabled ← v.opt "PrivateDnsEnabled" + let requesterManaged ← v.opt "RequesterManaged" + let resourceConfigurationArn ← v.opt "ResourceConfigurationArn" + let routeTableIds ← v.opt "RouteTableIds" + let serviceName ← v.opt "ServiceName" + let serviceNetworkArn ← v.opt "ServiceNetworkArn" + let serviceRegion ← v.opt "ServiceRegion" + let state ← v.opt "State" + let subnetIds ← v.opt "SubnetIds" + let tags ← v.opt "Tags" + let vpcEndpointId ← v.opt "VpcEndpointId" + let vpcEndpointType ← v.opt "VpcEndpointType" + let vpcId ← v.opt "VpcId" + return { creationTimestamp, dnsEntries, dnsOptions, failureReason, groups, ipAddressType, ipv4Prefixes, ipv6Prefixes, lastError, networkInterfaceIds, ownerId, payerResponsibilities, policyDocument, privateDnsEnabled, requesterManaged, resourceConfigurationArn, routeTableIds, serviceName, serviceNetworkArn, serviceRegion, state, subnetIds, tags, vpcEndpointId, vpcEndpointType, vpcId } + +/-- Describes a VPC endpoint connection to a service. -/ +structure VpcEndpointConnection where + /-- The date and time that the VPC endpoint was created. -/ + creationTimestamp : Option Timestamp := none + /-- The DNS entries for the VPC endpoint. -/ + dnsEntries : Option (List DnsEntry) := none + /-- The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the service. -/ + gatewayLoadBalancerArns : Option (List String) := none + /-- The IP address type for the endpoint. -/ + ipAddressType : Option IpAddressType := none + /-- The Amazon Resource Names (ARNs) of the network load balancers for the service. -/ + networkLoadBalancerArns : Option (List String) := none + /-- The payer responsibility settings for the endpoint. -/ + payerResponsibilities : Option (List PayerResponsibilityEntry) := none + /-- The ID of the service to which the endpoint is connected. -/ + serviceId : Option String := none + /-- The tags. -/ + tags : Option (List Tag) := none + /-- The ID of the transit gateway attachment, if the connection is for a transit gateway attachment. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the Amazon Web Services account that owns the transit gateway attachment, if the connection is for a transit gateway attachment. -/ + transitGatewayAttachmentOwner : Option String := none + /-- The ID of the VPC endpoint connection. -/ + vpcEndpointConnectionId : Option String := none + /-- The ID of the VPC endpoint. -/ + vpcEndpointId : Option String := none + /-- The ID of the Amazon Web Services account that owns the VPC endpoint. -/ + vpcEndpointOwner : Option String := none + /-- The Region of the endpoint. -/ + vpcEndpointRegion : Option String := none + /-- The state of the VPC endpoint. -/ + vpcEndpointState : Option State := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcEndpointConnection where + schema := .struct "VpcEndpointConnection" [({ name := "CreationTimestamp", xmlName := some "creationTimestamp", queryName := some "CreationTimestamp" }, (.time none)), + ({ name := "DnsEntries", xmlName := some "dnsEntrySet", queryName := some "DnsEntrySet" }, (.list (Shape.schema DnsEntry) "item")), + ({ name := "GatewayLoadBalancerArns", xmlName := some "gatewayLoadBalancerArnSet", queryName := some "GatewayLoadBalancerArnSet" }, (.list .string "item")), + ({ name := "IpAddressType", xmlName := some "ipAddressType", queryName := some "IpAddressType" }, (Shape.schema IpAddressType)), + ({ name := "NetworkLoadBalancerArns", xmlName := some "networkLoadBalancerArnSet", queryName := some "NetworkLoadBalancerArnSet" }, (.list .string "item")), + ({ name := "PayerResponsibilities", xmlName := some "payerResponsibilitySet", queryName := some "PayerResponsibilitySet" }, (.list (Shape.schema PayerResponsibilityEntry) "item")), + ({ name := "ServiceId", xmlName := some "serviceId", queryName := some "ServiceId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayAttachmentOwner", xmlName := some "transitGatewayAttachmentOwner", queryName := some "TransitGatewayAttachmentOwner" }, .string), + ({ name := "VpcEndpointConnectionId", xmlName := some "vpcEndpointConnectionId", queryName := some "VpcEndpointConnectionId" }, .string), + ({ name := "VpcEndpointId", xmlName := some "vpcEndpointId", queryName := some "VpcEndpointId" }, .string), + ({ name := "VpcEndpointOwner", xmlName := some "vpcEndpointOwner", queryName := some "VpcEndpointOwner" }, .string), + ({ name := "VpcEndpointRegion", xmlName := some "vpcEndpointRegion", queryName := some "VpcEndpointRegion" }, .string), + ({ name := "VpcEndpointState", xmlName := some "vpcEndpointState", queryName := some "VpcEndpointState" }, (Shape.schema State))] + toValue x := record [putOpt "CreationTimestamp" x.creationTimestamp, putOpt "DnsEntries" x.dnsEntries, putOpt "GatewayLoadBalancerArns" x.gatewayLoadBalancerArns, putOpt "IpAddressType" x.ipAddressType, putOpt "NetworkLoadBalancerArns" x.networkLoadBalancerArns, putOpt "PayerResponsibilities" x.payerResponsibilities, putOpt "ServiceId" x.serviceId, putOpt "Tags" x.tags, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, putOpt "TransitGatewayAttachmentOwner" x.transitGatewayAttachmentOwner, putOpt "VpcEndpointConnectionId" x.vpcEndpointConnectionId, putOpt "VpcEndpointId" x.vpcEndpointId, putOpt "VpcEndpointOwner" x.vpcEndpointOwner, putOpt "VpcEndpointRegion" x.vpcEndpointRegion, putOpt "VpcEndpointState" x.vpcEndpointState] + ofValue v := do + let creationTimestamp ← v.opt "CreationTimestamp" + let dnsEntries ← v.opt "DnsEntries" + let gatewayLoadBalancerArns ← v.opt "GatewayLoadBalancerArns" + let ipAddressType ← v.opt "IpAddressType" + let networkLoadBalancerArns ← v.opt "NetworkLoadBalancerArns" + let payerResponsibilities ← v.opt "PayerResponsibilities" + let serviceId ← v.opt "ServiceId" + let tags ← v.opt "Tags" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayAttachmentOwner ← v.opt "TransitGatewayAttachmentOwner" + let vpcEndpointConnectionId ← v.opt "VpcEndpointConnectionId" + let vpcEndpointId ← v.opt "VpcEndpointId" + let vpcEndpointOwner ← v.opt "VpcEndpointOwner" + let vpcEndpointRegion ← v.opt "VpcEndpointRegion" + let vpcEndpointState ← v.opt "VpcEndpointState" + return { creationTimestamp, dnsEntries, gatewayLoadBalancerArns, ipAddressType, networkLoadBalancerArns, payerResponsibilities, serviceId, tags, transitGatewayAttachmentId, transitGatewayAttachmentOwner, vpcEndpointConnectionId, vpcEndpointId, vpcEndpointOwner, vpcEndpointRegion, vpcEndpointState } + +/-- Describes an IPv6 CIDR block associated with a VPC. -/ +structure VpcIpv6CidrBlockAssociation where + /-- The association ID for the IPv6 CIDR block. -/ + associationId : Option String := none + /-- The source that allocated the IP address space. -/ + ipSource : Option IpSource := none + /-- Public IPv6 addresses are those advertised on the internet from Amazon Web Services. -/ + ipv6AddressAttribute : Option Ipv6AddressAttribute := none + /-- The IPv6 CIDR block. -/ + ipv6CidrBlock : Option String := none + /-- Information about the state of the CIDR block. -/ + ipv6CidrBlockState : Option VpcCidrBlockState := none + /-- The ID of the IPv6 address pool from which the IPv6 CIDR block is allocated. -/ + ipv6Pool : Option String := none + /-- The name of the unique set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises IP addresses, for example, us-east-1-wl1-bos-wlz-1 . -/ + networkBorderGroup : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcIpv6CidrBlockAssociation where + schema := .struct "VpcIpv6CidrBlockAssociation" [({ name := "AssociationId", xmlName := some "associationId", queryName := some "AssociationId" }, .string), + ({ name := "IpSource", xmlName := some "ipSource", queryName := some "IpSource" }, (Shape.schema IpSource)), + ({ name := "Ipv6AddressAttribute", xmlName := some "ipv6AddressAttribute", queryName := some "Ipv6AddressAttribute" }, (Shape.schema Ipv6AddressAttribute)), + ({ name := "Ipv6CidrBlock", xmlName := some "ipv6CidrBlock", queryName := some "Ipv6CidrBlock" }, .string), + ({ name := "Ipv6CidrBlockState", xmlName := some "ipv6CidrBlockState", queryName := some "Ipv6CidrBlockState" }, (Shape.schema VpcCidrBlockState)), + ({ name := "Ipv6Pool", xmlName := some "ipv6Pool", queryName := some "Ipv6Pool" }, .string), + ({ name := "NetworkBorderGroup", xmlName := some "networkBorderGroup", queryName := some "NetworkBorderGroup" }, .string)] + toValue x := record [putOpt "AssociationId" x.associationId, putOpt "IpSource" x.ipSource, putOpt "Ipv6AddressAttribute" x.ipv6AddressAttribute, putOpt "Ipv6CidrBlock" x.ipv6CidrBlock, putOpt "Ipv6CidrBlockState" x.ipv6CidrBlockState, putOpt "Ipv6Pool" x.ipv6Pool, putOpt "NetworkBorderGroup" x.networkBorderGroup] + ofValue v := do + let associationId ← v.opt "AssociationId" + let ipSource ← v.opt "IpSource" + let ipv6AddressAttribute ← v.opt "Ipv6AddressAttribute" + let ipv6CidrBlock ← v.opt "Ipv6CidrBlock" + let ipv6CidrBlockState ← v.opt "Ipv6CidrBlockState" + let ipv6Pool ← v.opt "Ipv6Pool" + let networkBorderGroup ← v.opt "NetworkBorderGroup" + return { associationId, ipSource, ipv6AddressAttribute, ipv6CidrBlock, ipv6CidrBlockState, ipv6Pool, networkBorderGroup } + +/-- Describes a VPC in a VPC peering connection. -/ +structure VpcPeeringConnectionVpcInfo where + /-- The IPv4 CIDR block for the VPC. -/ + cidrBlock : Option String := none + /-- Information about the IPv4 CIDR blocks for the VPC. -/ + cidrBlockSet : Option (List CidrBlock) := none + /-- The IPv6 CIDR block for the VPC. -/ + ipv6CidrBlockSet : Option (List Ipv6CidrBlock) := none + /-- The ID of the Amazon Web Services account that owns the VPC. -/ + ownerId : Option String := none + /-- Information about the VPC peering connection options for the accepter or requester VPC. -/ + peeringOptions : Option VpcPeeringConnectionOptionsDescription := none + /-- The Region in which the VPC is located. -/ + region : Option String := none + /-- The ID of the VPC. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcPeeringConnectionVpcInfo where + schema := .struct "VpcPeeringConnectionVpcInfo" [({ name := "CidrBlock", xmlName := some "cidrBlock", queryName := some "CidrBlock" }, .string), + ({ name := "CidrBlockSet", xmlName := some "cidrBlockSet", queryName := some "CidrBlockSet" }, (.list (Shape.schema CidrBlock) "item")), + ({ name := "Ipv6CidrBlockSet", xmlName := some "ipv6CidrBlockSet", queryName := some "Ipv6CidrBlockSet" }, (.list (Shape.schema Ipv6CidrBlock) "item")), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "PeeringOptions", xmlName := some "peeringOptions", queryName := some "PeeringOptions" }, (Shape.schema VpcPeeringConnectionOptionsDescription)), + ({ name := "Region", xmlName := some "region", queryName := some "Region" }, .string), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "CidrBlock" x.cidrBlock, putOpt "CidrBlockSet" x.cidrBlockSet, putOpt "Ipv6CidrBlockSet" x.ipv6CidrBlockSet, putOpt "OwnerId" x.ownerId, putOpt "PeeringOptions" x.peeringOptions, putOpt "Region" x.region, putOpt "VpcId" x.vpcId] + ofValue v := do + let cidrBlock ← v.opt "CidrBlock" + let cidrBlockSet ← v.opt "CidrBlockSet" + let ipv6CidrBlockSet ← v.opt "Ipv6CidrBlockSet" + let ownerId ← v.opt "OwnerId" + let peeringOptions ← v.opt "PeeringOptions" + let region ← v.opt "Region" + let vpcId ← v.opt "VpcId" + return { cidrBlock, cidrBlockSet, ipv6CidrBlockSet, ownerId, peeringOptions, region, vpcId } + +/-- Describes a virtual private gateway. -/ +structure VpnGateway where + /-- The private Autonomous System Number (ASN) for the Amazon side of a BGP session. -/ + amazonSideAsn : Option Int := none + /-- The Availability Zone where the virtual private gateway was created, if applicable. -/ + availabilityZone : Option String := none + /-- The current state of the virtual private gateway. -/ + state : Option VpnState := none + /-- Any tags assigned to the virtual private gateway. -/ + tags : Option (List Tag) := none + /-- The type of VPN connection the virtual private gateway supports. -/ + type : Option GatewayType := none + /-- Any VPCs attached to the virtual private gateway. -/ + vpcAttachments : Option (List VpcAttachment) := none + /-- The ID of the virtual private gateway. -/ + vpnGatewayId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpnGateway where + schema := .struct "VpnGateway" [({ name := "AmazonSideAsn", xmlName := some "amazonSideAsn", queryName := some "AmazonSideAsn" }, .int), + ({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema VpnState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, (Shape.schema GatewayType)), + ({ name := "VpcAttachments", xmlName := some "attachments", queryName := some "Attachments" }, (.list (Shape.schema VpcAttachment) "item")), + ({ name := "VpnGatewayId", xmlName := some "vpnGatewayId", queryName := some "VpnGatewayId" }, .string)] + toValue x := record [putOpt "AmazonSideAsn" x.amazonSideAsn, putOpt "AvailabilityZone" x.availabilityZone, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "Type" x.type, putOpt "VpcAttachments" x.vpcAttachments, putOpt "VpnGatewayId" x.vpnGatewayId] + ofValue v := do + let amazonSideAsn ← v.opt "AmazonSideAsn" + let availabilityZone ← v.opt "AvailabilityZone" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let type ← v.opt "Type" + let vpcAttachments ← v.opt "VpcAttachments" + let vpnGatewayId ← v.opt "VpnGatewayId" + return { amazonSideAsn, availabilityZone, state, tags, type, vpcAttachments, vpnGatewayId } + +/-- The tunnel options for a single VPN tunnel. -/ +structure VpnTunnelOptionsSpecification where + /-- The action to take after DPD timeout occurs. -/ + dpdTimeoutAction : Option String := none + /-- The number of seconds after which a DPD timeout occurs. -/ + dpdTimeoutSeconds : Option Int := none + /-- Turn on or off tunnel endpoint lifecycle control feature. -/ + enableTunnelLifecycleControl : Option Bool := none + /-- The IKE versions that are permitted for the VPN tunnel. -/ + ikeVersions : Option (List IKEVersionsRequestListValue) := none + /-- Options for logging VPN tunnel activity. -/ + logOptions : Option VpnTunnelLogOptionsSpecification := none + /-- One or more additional key exchange rounds that are permitted for the VPN tunnel for phase 1 IKE negotiations. -/ + phase1AdditionalKeyExchanges : Option (List VpnAdditionalKeyExchangeRequest) := none + /-- One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 1 IKE negotiations. -/ + phase1DHGroupNumbers : Option (List Phase1DHGroupNumbersRequestListValue) := none + /-- One or more encryption algorithms that are permitted for the VPN tunnel for phase 1 IKE negotiations. -/ + phase1EncryptionAlgorithms : Option (List Phase1EncryptionAlgorithmsRequestListValue) := none + /-- One or more integrity algorithms that are permitted for the VPN tunnel for phase 1 IKE negotiations. -/ + phase1IntegrityAlgorithms : Option (List Phase1IntegrityAlgorithmsRequestListValue) := none + /-- The lifetime for phase 1 of the IKE negotiation, in seconds. -/ + phase1LifetimeSeconds : Option Int := none + /-- One or more additional key exchange rounds that are permitted for the VPN tunnel for phase 2 IKE negotiations. -/ + phase2AdditionalKeyExchanges : Option (List VpnAdditionalKeyExchangeRequest) := none + /-- One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 2 IKE negotiations. -/ + phase2DHGroupNumbers : Option (List Phase2DHGroupNumbersRequestListValue) := none + /-- One or more encryption algorithms that are permitted for the VPN tunnel for phase 2 IKE negotiations. -/ + phase2EncryptionAlgorithms : Option (List Phase2EncryptionAlgorithmsRequestListValue) := none + /-- One or more integrity algorithms that are permitted for the VPN tunnel for phase 2 IKE negotiations. -/ + phase2IntegrityAlgorithms : Option (List Phase2IntegrityAlgorithmsRequestListValue) := none + /-- The lifetime for phase 2 of the IKE negotiation, in seconds. -/ + phase2LifetimeSeconds : Option Int := none + /-- The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway. -/ + preSharedKey : Option String := none + /-- The percentage of the rekey window (determined by RekeyMarginTimeSeconds ) during which the rekey time is randomly selected. -/ + rekeyFuzzPercentage : Option Int := none + /-- The margin time, in seconds, before the phase 2 lifetime expires, during which the Amazon Web Services side of the VPN connection performs an IKE rekey. -/ + rekeyMarginTimeSeconds : Option Int := none + /-- The number of packets in an IKE replay window. -/ + replayWindowSize : Option Int := none + /-- The action to take when the establishing the tunnel for the VPN connection. -/ + startupAction : Option String := none + /-- The range of inside IPv4 addresses for the tunnel. -/ + tunnelInsideCidr : Option String := none + /-- The range of inside IPv6 addresses for the tunnel. -/ + tunnelInsideIpv6Cidr : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpnTunnelOptionsSpecification where + schema := .struct "VpnTunnelOptionsSpecification" [({ name := "DPDTimeoutAction" }, .string), + ({ name := "DPDTimeoutSeconds" }, .int), + ({ name := "EnableTunnelLifecycleControl" }, .bool), + ({ name := "IKEVersions", xmlName := some "IKEVersion" }, (.list (Shape.schema IKEVersionsRequestListValue) "item")), + ({ name := "LogOptions" }, (Shape.schema VpnTunnelLogOptionsSpecification)), + ({ name := "Phase1AdditionalKeyExchanges", xmlName := some "Phase1AdditionalKeyExchange" }, (.list (Shape.schema VpnAdditionalKeyExchangeRequest) "item")), + ({ name := "Phase1DHGroupNumbers", xmlName := some "Phase1DHGroupNumber" }, (.list (Shape.schema Phase1DHGroupNumbersRequestListValue) "item")), + ({ name := "Phase1EncryptionAlgorithms", xmlName := some "Phase1EncryptionAlgorithm" }, (.list (Shape.schema Phase1EncryptionAlgorithmsRequestListValue) "item")), + ({ name := "Phase1IntegrityAlgorithms", xmlName := some "Phase1IntegrityAlgorithm" }, (.list (Shape.schema Phase1IntegrityAlgorithmsRequestListValue) "item")), + ({ name := "Phase1LifetimeSeconds" }, .int), + ({ name := "Phase2AdditionalKeyExchanges", xmlName := some "Phase2AdditionalKeyExchange" }, (.list (Shape.schema VpnAdditionalKeyExchangeRequest) "item")), + ({ name := "Phase2DHGroupNumbers", xmlName := some "Phase2DHGroupNumber" }, (.list (Shape.schema Phase2DHGroupNumbersRequestListValue) "item")), + ({ name := "Phase2EncryptionAlgorithms", xmlName := some "Phase2EncryptionAlgorithm" }, (.list (Shape.schema Phase2EncryptionAlgorithmsRequestListValue) "item")), + ({ name := "Phase2IntegrityAlgorithms", xmlName := some "Phase2IntegrityAlgorithm" }, (.list (Shape.schema Phase2IntegrityAlgorithmsRequestListValue) "item")), + ({ name := "Phase2LifetimeSeconds" }, .int), + ({ name := "PreSharedKey" }, .string), + ({ name := "RekeyFuzzPercentage" }, .int), + ({ name := "RekeyMarginTimeSeconds" }, .int), + ({ name := "ReplayWindowSize" }, .int), + ({ name := "StartupAction" }, .string), + ({ name := "TunnelInsideCidr" }, .string), + ({ name := "TunnelInsideIpv6Cidr" }, .string)] + toValue x := record [putOpt "DPDTimeoutAction" x.dpdTimeoutAction, putOpt "DPDTimeoutSeconds" x.dpdTimeoutSeconds, putOpt "EnableTunnelLifecycleControl" x.enableTunnelLifecycleControl, putOpt "IKEVersions" x.ikeVersions, putOpt "LogOptions" x.logOptions, putOpt "Phase1AdditionalKeyExchanges" x.phase1AdditionalKeyExchanges, putOpt "Phase1DHGroupNumbers" x.phase1DHGroupNumbers, putOpt "Phase1EncryptionAlgorithms" x.phase1EncryptionAlgorithms, putOpt "Phase1IntegrityAlgorithms" x.phase1IntegrityAlgorithms, putOpt "Phase1LifetimeSeconds" x.phase1LifetimeSeconds, putOpt "Phase2AdditionalKeyExchanges" x.phase2AdditionalKeyExchanges, putOpt "Phase2DHGroupNumbers" x.phase2DHGroupNumbers, putOpt "Phase2EncryptionAlgorithms" x.phase2EncryptionAlgorithms, putOpt "Phase2IntegrityAlgorithms" x.phase2IntegrityAlgorithms, putOpt "Phase2LifetimeSeconds" x.phase2LifetimeSeconds, putOpt "PreSharedKey" x.preSharedKey, putOpt "RekeyFuzzPercentage" x.rekeyFuzzPercentage, putOpt "RekeyMarginTimeSeconds" x.rekeyMarginTimeSeconds, putOpt "ReplayWindowSize" x.replayWindowSize, putOpt "StartupAction" x.startupAction, putOpt "TunnelInsideCidr" x.tunnelInsideCidr, putOpt "TunnelInsideIpv6Cidr" x.tunnelInsideIpv6Cidr] + ofValue v := do + let dpdTimeoutAction ← v.opt "DPDTimeoutAction" + let dpdTimeoutSeconds ← v.opt "DPDTimeoutSeconds" + let enableTunnelLifecycleControl ← v.opt "EnableTunnelLifecycleControl" + let ikeVersions ← v.opt "IKEVersions" + let logOptions ← v.opt "LogOptions" + let phase1AdditionalKeyExchanges ← v.opt "Phase1AdditionalKeyExchanges" + let phase1DHGroupNumbers ← v.opt "Phase1DHGroupNumbers" + let phase1EncryptionAlgorithms ← v.opt "Phase1EncryptionAlgorithms" + let phase1IntegrityAlgorithms ← v.opt "Phase1IntegrityAlgorithms" + let phase1LifetimeSeconds ← v.opt "Phase1LifetimeSeconds" + let phase2AdditionalKeyExchanges ← v.opt "Phase2AdditionalKeyExchanges" + let phase2DHGroupNumbers ← v.opt "Phase2DHGroupNumbers" + let phase2EncryptionAlgorithms ← v.opt "Phase2EncryptionAlgorithms" + let phase2IntegrityAlgorithms ← v.opt "Phase2IntegrityAlgorithms" + let phase2LifetimeSeconds ← v.opt "Phase2LifetimeSeconds" + let preSharedKey ← v.opt "PreSharedKey" + let rekeyFuzzPercentage ← v.opt "RekeyFuzzPercentage" + let rekeyMarginTimeSeconds ← v.opt "RekeyMarginTimeSeconds" + let replayWindowSize ← v.opt "ReplayWindowSize" + let startupAction ← v.opt "StartupAction" + let tunnelInsideCidr ← v.opt "TunnelInsideCidr" + let tunnelInsideIpv6Cidr ← v.opt "TunnelInsideIpv6Cidr" + return { dpdTimeoutAction, dpdTimeoutSeconds, enableTunnelLifecycleControl, ikeVersions, logOptions, phase1AdditionalKeyExchanges, phase1DHGroupNumbers, phase1EncryptionAlgorithms, phase1IntegrityAlgorithms, phase1LifetimeSeconds, phase2AdditionalKeyExchanges, phase2DHGroupNumbers, phase2EncryptionAlgorithms, phase2IntegrityAlgorithms, phase2LifetimeSeconds, preSharedKey, rekeyFuzzPercentage, rekeyMarginTimeSeconds, replayWindowSize, startupAction, tunnelInsideCidr, tunnelInsideIpv6Cidr } + +structure AcceptTransitGatewayMulticastDomainAssociationsResult where + /-- Information about the multicast domain associations. -/ + associations : Option TransitGatewayMulticastDomainAssociations := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceptTransitGatewayMulticastDomainAssociationsResult where + schema := .struct "AcceptTransitGatewayMulticastDomainAssociationsResult" [({ name := "Associations", xmlName := some "associations", queryName := some "Associations" }, (Shape.schema TransitGatewayMulticastDomainAssociations))] + toValue x := record [putOpt "Associations" x.associations] + ofValue v := do + let associations ← v.opt "Associations" + return { associations } + +structure AcceptTransitGatewayPeeringAttachmentResult where + /-- The transit gateway peering attachment. -/ + transitGatewayPeeringAttachment : Option TransitGatewayPeeringAttachment := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceptTransitGatewayPeeringAttachmentResult where + schema := .struct "AcceptTransitGatewayPeeringAttachmentResult" [({ name := "TransitGatewayPeeringAttachment", xmlName := some "transitGatewayPeeringAttachment", queryName := some "TransitGatewayPeeringAttachment" }, (Shape.schema TransitGatewayPeeringAttachment))] + toValue x := record [putOpt "TransitGatewayPeeringAttachment" x.transitGatewayPeeringAttachment] + ofValue v := do + let transitGatewayPeeringAttachment ← v.opt "TransitGatewayPeeringAttachment" + return { transitGatewayPeeringAttachment } + +structure AcceptTransitGatewayVpcAttachmentResult where + /-- The VPC attachment. -/ + transitGatewayVpcAttachment : Option TransitGatewayVpcAttachment := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceptTransitGatewayVpcAttachmentResult where + schema := .struct "AcceptTransitGatewayVpcAttachmentResult" [({ name := "TransitGatewayVpcAttachment", xmlName := some "transitGatewayVpcAttachment", queryName := some "TransitGatewayVpcAttachment" }, (Shape.schema TransitGatewayVpcAttachment))] + toValue x := record [putOpt "TransitGatewayVpcAttachment" x.transitGatewayVpcAttachment] + ofValue v := do + let transitGatewayVpcAttachment ← v.opt "TransitGatewayVpcAttachment" + return { transitGatewayVpcAttachment } + +/-- Describes a path. -/ +structure AccessScopePath where + /-- The destination. -/ + destination : Option PathStatement := none + /-- The source. -/ + source : Option PathStatement := none + /-- The through resources. -/ + throughResources : Option (List ThroughResourcesStatement) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AccessScopePath where + schema := .struct "AccessScopePath" [({ name := "Destination", xmlName := some "destination", queryName := some "Destination" }, (Shape.schema PathStatement)), + ({ name := "Source", xmlName := some "source", queryName := some "Source" }, (Shape.schema PathStatement)), + ({ name := "ThroughResources", xmlName := some "throughResourceSet", queryName := some "ThroughResourceSet" }, (.list (Shape.schema ThroughResourcesStatement) "item"))] + toValue x := record [putOpt "Destination" x.destination, putOpt "Source" x.source, putOpt "ThroughResources" x.throughResources] + ofValue v := do + let destination ← v.opt "Destination" + let source ← v.opt "Source" + let throughResources ← v.opt "ThroughResources" + return { destination, source, throughResources } + +/-- Describes a path. -/ +structure AccessScopePathRequest where + /-- The destination. -/ + destination : Option PathStatementRequest := none + /-- The source. -/ + source : Option PathStatementRequest := none + /-- The through resources. -/ + throughResources : Option (List ThroughResourcesStatementRequest) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AccessScopePathRequest where + schema := .struct "AccessScopePathRequest" [({ name := "Destination" }, (Shape.schema PathStatementRequest)), + ({ name := "Source" }, (Shape.schema PathStatementRequest)), + ({ name := "ThroughResources", xmlName := some "ThroughResource" }, (.list (Shape.schema ThroughResourcesStatementRequest) "item"))] + toValue x := record [putOpt "Destination" x.destination, putOpt "Source" x.source, putOpt "ThroughResources" x.throughResources] + ofValue v := do + let destination ← v.opt "Destination" + let source ← v.opt "Source" + let throughResources ← v.opt "ThroughResources" + return { destination, source, throughResources } + +structure AdvertiseByoipCidrResult where + /-- Information about the address range. -/ + byoipCidr : Option ByoipCidr := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AdvertiseByoipCidrResult where + schema := .struct "AdvertiseByoipCidrResult" [({ name := "ByoipCidr", xmlName := some "byoipCidr", queryName := some "ByoipCidr" }, (Shape.schema ByoipCidr))] + toValue x := record [putOpt "ByoipCidr" x.byoipCidr] + ofValue v := do + let byoipCidr ← v.opt "ByoipCidr" + return { byoipCidr } + +structure AssociateInstanceEventWindowResult where + /-- Information about the event window. -/ + instanceEventWindow : Option InstanceEventWindow := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateInstanceEventWindowResult where + schema := .struct "AssociateInstanceEventWindowResult" [({ name := "InstanceEventWindow", xmlName := some "instanceEventWindow", queryName := some "InstanceEventWindow" }, (Shape.schema InstanceEventWindow))] + toValue x := record [putOpt "InstanceEventWindow" x.instanceEventWindow] + ofValue v := do + let instanceEventWindow ← v.opt "InstanceEventWindow" + return { instanceEventWindow } + +structure AssociateSubnetCidrBlockResult where + /-- Information about the IPv6 association. -/ + ipv6CidrBlockAssociation : Option SubnetIpv6CidrBlockAssociation := none + /-- The ID of the subnet. -/ + subnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateSubnetCidrBlockResult where + schema := .struct "AssociateSubnetCidrBlockResult" [({ name := "Ipv6CidrBlockAssociation", xmlName := some "ipv6CidrBlockAssociation", queryName := some "Ipv6CidrBlockAssociation" }, (Shape.schema SubnetIpv6CidrBlockAssociation)), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string)] + toValue x := record [putOpt "Ipv6CidrBlockAssociation" x.ipv6CidrBlockAssociation, putOpt "SubnetId" x.subnetId] + ofValue v := do + let ipv6CidrBlockAssociation ← v.opt "Ipv6CidrBlockAssociation" + let subnetId ← v.opt "SubnetId" + return { ipv6CidrBlockAssociation, subnetId } + +structure AssociateTransitGatewayMulticastDomainResult where + /-- Information about the transit gateway multicast domain associations. -/ + associations : Option TransitGatewayMulticastDomainAssociations := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateTransitGatewayMulticastDomainResult where + schema := .struct "AssociateTransitGatewayMulticastDomainResult" [({ name := "Associations", xmlName := some "associations", queryName := some "Associations" }, (Shape.schema TransitGatewayMulticastDomainAssociations))] + toValue x := record [putOpt "Associations" x.associations] + ofValue v := do + let associations ← v.opt "Associations" + return { associations } + +structure AssociateVpcCidrBlockResult where + /-- Information about the IPv4 CIDR block association. -/ + cidrBlockAssociation : Option VpcCidrBlockAssociation := none + /-- Information about the IPv6 CIDR block association. -/ + ipv6CidrBlockAssociation : Option VpcIpv6CidrBlockAssociation := none + /-- The ID of the VPC. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AssociateVpcCidrBlockResult where + schema := .struct "AssociateVpcCidrBlockResult" [({ name := "CidrBlockAssociation", xmlName := some "cidrBlockAssociation", queryName := some "CidrBlockAssociation" }, (Shape.schema VpcCidrBlockAssociation)), + ({ name := "Ipv6CidrBlockAssociation", xmlName := some "ipv6CidrBlockAssociation", queryName := some "Ipv6CidrBlockAssociation" }, (Shape.schema VpcIpv6CidrBlockAssociation)), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "CidrBlockAssociation" x.cidrBlockAssociation, putOpt "Ipv6CidrBlockAssociation" x.ipv6CidrBlockAssociation, putOpt "VpcId" x.vpcId] + ofValue v := do + let cidrBlockAssociation ← v.opt "CidrBlockAssociation" + let ipv6CidrBlockAssociation ← v.opt "Ipv6CidrBlockAssociation" + let vpcId ← v.opt "VpcId" + return { cidrBlockAssociation, ipv6CidrBlockAssociation, vpcId } + +structure AttachVerifiedAccessTrustProviderResult where + /-- Details about the Verified Access instance. -/ + verifiedAccessInstance : Option VerifiedAccessInstance := none + /-- Details about the Verified Access trust provider. -/ + verifiedAccessTrustProvider : Option VerifiedAccessTrustProvider := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AttachVerifiedAccessTrustProviderResult where + schema := .struct "AttachVerifiedAccessTrustProviderResult" [({ name := "VerifiedAccessInstance", xmlName := some "verifiedAccessInstance", queryName := some "VerifiedAccessInstance" }, (Shape.schema VerifiedAccessInstance)), + ({ name := "VerifiedAccessTrustProvider", xmlName := some "verifiedAccessTrustProvider", queryName := some "VerifiedAccessTrustProvider" }, (Shape.schema VerifiedAccessTrustProvider))] + toValue x := record [putOpt "VerifiedAccessInstance" x.verifiedAccessInstance, putOpt "VerifiedAccessTrustProvider" x.verifiedAccessTrustProvider] + ofValue v := do + let verifiedAccessInstance ← v.opt "VerifiedAccessInstance" + let verifiedAccessTrustProvider ← v.opt "VerifiedAccessTrustProvider" + return { verifiedAccessInstance, verifiedAccessTrustProvider } + +/-- Contains the output of BundleInstance. -/ +structure BundleInstanceResult where + /-- Information about the bundle task. -/ + bundleTask : Option BundleTask := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BundleInstanceResult where + schema := .struct "BundleInstanceResult" [({ name := "BundleTask", xmlName := some "bundleInstanceTask", queryName := some "BundleInstanceTask" }, (Shape.schema BundleTask))] + toValue x := record [putOpt "BundleTask" x.bundleTask] + ofValue v := do + let bundleTask ← v.opt "BundleTask" + return { bundleTask } + +/-- Contains the output of CancelBundleTask. -/ +structure CancelBundleTaskResult where + /-- Information about the bundle task. -/ + bundleTask : Option BundleTask := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelBundleTaskResult where + schema := .struct "CancelBundleTaskResult" [({ name := "BundleTask", xmlName := some "bundleInstanceTask", queryName := some "BundleInstanceTask" }, (Shape.schema BundleTask))] + toValue x := record [putOpt "BundleTask" x.bundleTask] + ofValue v := do + let bundleTask ← v.opt "BundleTask" + return { bundleTask } + +/-- Contains the output of CancelReservedInstancesListing. -/ +structure CancelReservedInstancesListingResult where + /-- The Reserved Instance listing. -/ + reservedInstancesListings : Option (List ReservedInstancesListing) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelReservedInstancesListingResult where + schema := .struct "CancelReservedInstancesListingResult" [({ name := "ReservedInstancesListings", xmlName := some "reservedInstancesListingsSet", queryName := some "ReservedInstancesListingsSet" }, (.list (Shape.schema ReservedInstancesListing) "item"))] + toValue x := record [putOpt "ReservedInstancesListings" x.reservedInstancesListings] + ofValue v := do + let reservedInstancesListings ← v.opt "ReservedInstancesListings" + return { reservedInstancesListings } + +/-- Contains the output of CancelSpotFleetRequests. -/ +structure CancelSpotFleetRequestsResponse where + /-- Information about the Spot Fleet requests that are successfully canceled. -/ + successfulFleetRequests : Option (List CancelSpotFleetRequestsSuccessItem) := none + /-- Information about the Spot Fleet requests that are not successfully canceled. -/ + unsuccessfulFleetRequests : Option (List CancelSpotFleetRequestsErrorItem) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelSpotFleetRequestsResponse where + schema := .struct "CancelSpotFleetRequestsResponse" [({ name := "SuccessfulFleetRequests", xmlName := some "successfulFleetRequestSet", queryName := some "SuccessfulFleetRequestSet" }, (.list (Shape.schema CancelSpotFleetRequestsSuccessItem) "item")), + ({ name := "UnsuccessfulFleetRequests", xmlName := some "unsuccessfulFleetRequestSet", queryName := some "UnsuccessfulFleetRequestSet" }, (.list (Shape.schema CancelSpotFleetRequestsErrorItem) "item"))] + toValue x := record [putOpt "SuccessfulFleetRequests" x.successfulFleetRequests, putOpt "UnsuccessfulFleetRequests" x.unsuccessfulFleetRequests] + ofValue v := do + let successfulFleetRequests ← v.opt "SuccessfulFleetRequests" + let unsuccessfulFleetRequests ← v.opt "UnsuccessfulFleetRequests" + return { successfulFleetRequests, unsuccessfulFleetRequests } + +/-- Describes a Client VPN endpoint. -/ +structure ClientVpnEndpoint where + /-- Information about the associated target networks. -/ + associatedTargetNetworks : Option (List AssociatedTargetNetwork) := none + /-- Information about the authentication method used by the Client VPN endpoint. -/ + authenticationOptions : Option (List ClientVpnAuthentication) := none + /-- The IPv4 address range, in CIDR notation, from which client IP addresses are assigned. -/ + clientCidrBlock : Option String := none + /-- The options for managing connection authorization for new client connections. -/ + clientConnectOptions : Option ClientConnectResponseOptions := none + /-- Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established. -/ + clientLoginBannerOptions : Option ClientLoginBannerResponseOptions := none + /-- Client route enforcement is a feature of the Client VPN service that helps enforce administrator defined routes on devices connected through the VPN. -/ + clientRouteEnforcementOptions : Option ClientRouteEnforcementResponseOptions := none + /-- The ID of the Client VPN endpoint. -/ + clientVpnEndpointId : Option String := none + /-- Information about the client connection logging options for the Client VPN endpoint. -/ + connectionLogOptions : Option ConnectionLogResponseOptions := none + /-- The date and time the Client VPN endpoint was created. -/ + creationTime : Option String := none + /-- The date and time the Client VPN endpoint was deleted, if applicable. -/ + deletionTime : Option String := none + /-- A brief description of the endpoint. -/ + description : Option String := none + /-- The device trust providers configured for the Client VPN endpoint, if applicable. -/ + devicePostureOptions : Option DevicePostureResponseOptions := none + /-- Indicates whether the client VPN session is disconnected after the maximum sessionTimeoutHours is reached. -/ + disconnectOnSessionTimeout : Option Bool := none + /-- The DNS name to be used by clients when connecting to the Client VPN endpoint. -/ + dnsName : Option String := none + /-- Information about the DNS servers to be used for DNS resolution. -/ + dnsServers : Option (List String) := none + /-- The IP address type of the Client VPN endpoint. -/ + endpointIpAddressType : Option EndpointIpAddressType := none + /-- The IDs of the security groups for the target network. -/ + securityGroupIds : Option (List String) := none + /-- The URL of the self-service portal. -/ + selfServicePortalUrl : Option String := none + /-- The ARN of the server certificate. -/ + serverCertificateArn : Option String := none + /-- The maximum VPN session duration time in hours. -/ + sessionTimeoutHours : Option Int := none + /-- Indicates whether split-tunnel is enabled in the Client VPN endpoint. -/ + splitTunnel : Option Bool := none + /-- The current state of the Client VPN endpoint. -/ + status : Option ClientVpnEndpointStatus := none + /-- Any tags assigned to the Client VPN endpoint. -/ + tags : Option (List Tag) := none + /-- The IP address type of the Client VPN endpoint. -/ + trafficIpAddressType : Option TrafficIpAddressType := none + /-- The Transit Gateway configuration for the Client VPN endpoint. -/ + transitGatewayConfiguration : Option TransitGatewayConfigurationDescribeEndpointStructure := none + /-- The transport protocol used by the Client VPN endpoint. -/ + transportProtocol : Option TransportProtocol := none + /-- The ID of the VPC. -/ + vpcId : Option String := none + /-- The port number for the Client VPN endpoint. -/ + vpnPort : Option Int := none + /-- The protocol used by the VPN session. -/ + vpnProtocol : Option VpnProtocol := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ClientVpnEndpoint where + schema := .struct "ClientVpnEndpoint" [({ name := "AssociatedTargetNetworks", xmlName := some "associatedTargetNetwork", queryName := some "AssociatedTargetNetwork" }, (.list (Shape.schema AssociatedTargetNetwork) "item")), + ({ name := "AuthenticationOptions", xmlName := some "authenticationOptions", queryName := some "AuthenticationOptions" }, (.list (Shape.schema ClientVpnAuthentication) "item")), + ({ name := "ClientCidrBlock", xmlName := some "clientCidrBlock", queryName := some "ClientCidrBlock" }, .string), + ({ name := "ClientConnectOptions", xmlName := some "clientConnectOptions", queryName := some "ClientConnectOptions" }, (Shape.schema ClientConnectResponseOptions)), + ({ name := "ClientLoginBannerOptions", xmlName := some "clientLoginBannerOptions", queryName := some "ClientLoginBannerOptions" }, (Shape.schema ClientLoginBannerResponseOptions)), + ({ name := "ClientRouteEnforcementOptions", xmlName := some "clientRouteEnforcementOptions", queryName := some "ClientRouteEnforcementOptions" }, (Shape.schema ClientRouteEnforcementResponseOptions)), + ({ name := "ClientVpnEndpointId", xmlName := some "clientVpnEndpointId", queryName := some "ClientVpnEndpointId" }, .string), + ({ name := "ConnectionLogOptions", xmlName := some "connectionLogOptions", queryName := some "ConnectionLogOptions" }, (Shape.schema ConnectionLogResponseOptions)), + ({ name := "CreationTime", xmlName := some "creationTime", queryName := some "CreationTime" }, .string), + ({ name := "DeletionTime", xmlName := some "deletionTime", queryName := some "DeletionTime" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "DevicePostureOptions", xmlName := some "devicePostureOptions", queryName := some "DevicePostureOptions" }, (Shape.schema DevicePostureResponseOptions)), + ({ name := "DisconnectOnSessionTimeout", xmlName := some "disconnectOnSessionTimeout", queryName := some "DisconnectOnSessionTimeout" }, .bool), + ({ name := "DnsName", xmlName := some "dnsName", queryName := some "DnsName" }, .string), + ({ name := "DnsServers", xmlName := some "dnsServer", queryName := some "DnsServer" }, (.list .string "item")), + ({ name := "EndpointIpAddressType", xmlName := some "endpointIpAddressType", queryName := some "EndpointIpAddressType" }, (Shape.schema EndpointIpAddressType)), + ({ name := "SecurityGroupIds", xmlName := some "securityGroupIdSet", queryName := some "SecurityGroupIdSet" }, (.list .string "item")), + ({ name := "SelfServicePortalUrl", xmlName := some "selfServicePortalUrl", queryName := some "SelfServicePortalUrl" }, .string), + ({ name := "ServerCertificateArn", xmlName := some "serverCertificateArn", queryName := some "ServerCertificateArn" }, .string), + ({ name := "SessionTimeoutHours", xmlName := some "sessionTimeoutHours", queryName := some "SessionTimeoutHours" }, .int), + ({ name := "SplitTunnel", xmlName := some "splitTunnel", queryName := some "SplitTunnel" }, .bool), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema ClientVpnEndpointStatus)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TrafficIpAddressType", xmlName := some "trafficIpAddressType", queryName := some "TrafficIpAddressType" }, (Shape.schema TrafficIpAddressType)), + ({ name := "TransitGatewayConfiguration", xmlName := some "transitGatewayConfiguration", queryName := some "TransitGatewayConfiguration" }, (Shape.schema TransitGatewayConfigurationDescribeEndpointStructure)), + ({ name := "TransportProtocol", xmlName := some "transportProtocol", queryName := some "TransportProtocol" }, (Shape.schema TransportProtocol)), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string), + ({ name := "VpnPort", xmlName := some "vpnPort", queryName := some "VpnPort" }, .int), + ({ name := "VpnProtocol", xmlName := some "vpnProtocol", queryName := some "VpnProtocol" }, (Shape.schema VpnProtocol))] + toValue x := record [putOpt "AssociatedTargetNetworks" x.associatedTargetNetworks, putOpt "AuthenticationOptions" x.authenticationOptions, putOpt "ClientCidrBlock" x.clientCidrBlock, putOpt "ClientConnectOptions" x.clientConnectOptions, putOpt "ClientLoginBannerOptions" x.clientLoginBannerOptions, putOpt "ClientRouteEnforcementOptions" x.clientRouteEnforcementOptions, putOpt "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "ConnectionLogOptions" x.connectionLogOptions, putOpt "CreationTime" x.creationTime, putOpt "DeletionTime" x.deletionTime, putOpt "Description" x.description, putOpt "DevicePostureOptions" x.devicePostureOptions, putOpt "DisconnectOnSessionTimeout" x.disconnectOnSessionTimeout, putOpt "DnsName" x.dnsName, putOpt "DnsServers" x.dnsServers, putOpt "EndpointIpAddressType" x.endpointIpAddressType, putOpt "SecurityGroupIds" x.securityGroupIds, putOpt "SelfServicePortalUrl" x.selfServicePortalUrl, putOpt "ServerCertificateArn" x.serverCertificateArn, putOpt "SessionTimeoutHours" x.sessionTimeoutHours, putOpt "SplitTunnel" x.splitTunnel, putOpt "Status" x.status, putOpt "Tags" x.tags, putOpt "TrafficIpAddressType" x.trafficIpAddressType, putOpt "TransitGatewayConfiguration" x.transitGatewayConfiguration, putOpt "TransportProtocol" x.transportProtocol, putOpt "VpcId" x.vpcId, putOpt "VpnPort" x.vpnPort, putOpt "VpnProtocol" x.vpnProtocol] + ofValue v := do + let associatedTargetNetworks ← v.opt "AssociatedTargetNetworks" + let authenticationOptions ← v.opt "AuthenticationOptions" + let clientCidrBlock ← v.opt "ClientCidrBlock" + let clientConnectOptions ← v.opt "ClientConnectOptions" + let clientLoginBannerOptions ← v.opt "ClientLoginBannerOptions" + let clientRouteEnforcementOptions ← v.opt "ClientRouteEnforcementOptions" + let clientVpnEndpointId ← v.opt "ClientVpnEndpointId" + let connectionLogOptions ← v.opt "ConnectionLogOptions" + let creationTime ← v.opt "CreationTime" + let deletionTime ← v.opt "DeletionTime" + let description ← v.opt "Description" + let devicePostureOptions ← v.opt "DevicePostureOptions" + let disconnectOnSessionTimeout ← v.opt "DisconnectOnSessionTimeout" + let dnsName ← v.opt "DnsName" + let dnsServers ← v.opt "DnsServers" + let endpointIpAddressType ← v.opt "EndpointIpAddressType" + let securityGroupIds ← v.opt "SecurityGroupIds" + let selfServicePortalUrl ← v.opt "SelfServicePortalUrl" + let serverCertificateArn ← v.opt "ServerCertificateArn" + let sessionTimeoutHours ← v.opt "SessionTimeoutHours" + let splitTunnel ← v.opt "SplitTunnel" + let status ← v.opt "Status" + let tags ← v.opt "Tags" + let trafficIpAddressType ← v.opt "TrafficIpAddressType" + let transitGatewayConfiguration ← v.opt "TransitGatewayConfiguration" + let transportProtocol ← v.opt "TransportProtocol" + let vpcId ← v.opt "VpcId" + let vpnPort ← v.opt "VpnPort" + let vpnProtocol ← v.opt "VpnProtocol" + return { associatedTargetNetworks, authenticationOptions, clientCidrBlock, clientConnectOptions, clientLoginBannerOptions, clientRouteEnforcementOptions, clientVpnEndpointId, connectionLogOptions, creationTime, deletionTime, description, devicePostureOptions, disconnectOnSessionTimeout, dnsName, dnsServers, endpointIpAddressType, securityGroupIds, selfServicePortalUrl, serverCertificateArn, sessionTimeoutHours, splitTunnel, status, tags, trafficIpAddressType, transitGatewayConfiguration, transportProtocol, vpcId, vpnPort, vpnProtocol } + +structure CopyVolumesResult where + /-- Information about the volume copy. -/ + volumes : Option (List Volume) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CopyVolumesResult where + schema := .struct "CopyVolumesResult" [({ name := "Volumes", xmlName := some "volumeSet", queryName := some "VolumeSet" }, (.list (Shape.schema Volume) "item"))] + toValue x := record [putOpt "Volumes" x.volumes] + ofValue v := do + let volumes ← v.opt "Volumes" + return { volumes } + +structure CreateApplicationStatusCheckResult where + /-- Information about the application status check. -/ + applicationStatusCheck : Option ApplicationStatusCheckResponseObject := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateApplicationStatusCheckResult where + schema := .struct "CreateApplicationStatusCheckResult" [({ name := "ApplicationStatusCheck", xmlName := some "applicationStatusCheck", queryName := some "ApplicationStatusCheck" }, (Shape.schema ApplicationStatusCheckResponseObject))] + toValue x := record [putOpt "ApplicationStatusCheck" x.applicationStatusCheck] + ofValue v := do + let applicationStatusCheck ← v.opt "ApplicationStatusCheck" + return { applicationStatusCheck } + +structure CreateCapacityReservationBySplittingResult where + /-- Information about the destination Capacity Reservation. -/ + destinationCapacityReservation : Option CapacityReservation := none + /-- The number of instances in the new Capacity Reservation. -/ + instanceCount : Option Int := none + /-- Information about the source Capacity Reservation. -/ + sourceCapacityReservation : Option CapacityReservation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCapacityReservationBySplittingResult where + schema := .struct "CreateCapacityReservationBySplittingResult" [({ name := "DestinationCapacityReservation", xmlName := some "destinationCapacityReservation", queryName := some "DestinationCapacityReservation" }, (Shape.schema CapacityReservation)), + ({ name := "InstanceCount", xmlName := some "instanceCount", queryName := some "InstanceCount" }, .int), + ({ name := "SourceCapacityReservation", xmlName := some "sourceCapacityReservation", queryName := some "SourceCapacityReservation" }, (Shape.schema CapacityReservation))] + toValue x := record [putOpt "DestinationCapacityReservation" x.destinationCapacityReservation, putOpt "InstanceCount" x.instanceCount, putOpt "SourceCapacityReservation" x.sourceCapacityReservation] + ofValue v := do + let destinationCapacityReservation ← v.opt "DestinationCapacityReservation" + let instanceCount ← v.opt "InstanceCount" + let sourceCapacityReservation ← v.opt "SourceCapacityReservation" + return { destinationCapacityReservation, instanceCount, sourceCapacityReservation } + +structure CreateCapacityReservationCancellationQuoteResult where + /-- Information about the Capacity Reservation cancellation quote. -/ + capacityReservationCancellationQuote : Option CapacityReservationCancellationQuote := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCapacityReservationCancellationQuoteResult where + schema := .struct "CreateCapacityReservationCancellationQuoteResult" [({ name := "CapacityReservationCancellationQuote", xmlName := some "capacityReservationCancellationQuote", queryName := some "CapacityReservationCancellationQuote" }, (Shape.schema CapacityReservationCancellationQuote))] + toValue x := record [putOpt "CapacityReservationCancellationQuote" x.capacityReservationCancellationQuote] + ofValue v := do + let capacityReservationCancellationQuote ← v.opt "CapacityReservationCancellationQuote" + return { capacityReservationCancellationQuote } + +structure CreateCapacityReservationDateChangeQuoteResult where + /-- Information about the Capacity Reservation date change quote. -/ + capacityReservationModificationQuote : Option CapacityReservationModificationQuote := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCapacityReservationDateChangeQuoteResult where + schema := .struct "CreateCapacityReservationDateChangeQuoteResult" [({ name := "CapacityReservationModificationQuote", xmlName := some "capacityReservationModificationQuote", queryName := some "CapacityReservationModificationQuote" }, (Shape.schema CapacityReservationModificationQuote))] + toValue x := record [putOpt "CapacityReservationModificationQuote" x.capacityReservationModificationQuote] + ofValue v := do + let capacityReservationModificationQuote ← v.opt "CapacityReservationModificationQuote" + return { capacityReservationModificationQuote } + +structure CreateCapacityReservationResult where + /-- Information about the Capacity Reservation. -/ + capacityReservation : Option CapacityReservation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCapacityReservationResult where + schema := .struct "CreateCapacityReservationResult" [({ name := "CapacityReservation", xmlName := some "capacityReservation", queryName := some "CapacityReservation" }, (Shape.schema CapacityReservation))] + toValue x := record [putOpt "CapacityReservation" x.capacityReservation] + ofValue v := do + let capacityReservation ← v.opt "CapacityReservation" + return { capacityReservation } + +structure CreateClientVpnEndpointRequest where + /-- Information about the authentication method to be used to authenticate clients. -/ + authenticationOptions : (List ClientVpnAuthenticationRequest) + /-- The IPv4 address range, in CIDR notation, from which to assign client IP addresses. -/ + clientCidrBlock : Option String := none + /-- The options for managing connection authorization for new client connections. -/ + clientConnectOptions : Option ClientConnectOptions := none + /-- Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established. -/ + clientLoginBannerOptions : Option ClientLoginBannerOptions := none + /-- Client route enforcement is a feature of the Client VPN service that helps enforce administrator defined routes on devices connected through the VPN. -/ + clientRouteEnforcementOptions : Option ClientRouteEnforcementOptions := none + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Information about the client connection logging options. -/ + connectionLogOptions : ConnectionLogOptions + /-- A brief description of the Client VPN endpoint. -/ + description : Option String := none + /-- The device posture options for the Client VPN endpoint. -/ + devicePostureOptions : Option DevicePostureOptions := none + /-- Indicates whether the client VPN session is disconnected after the maximum timeout specified in SessionTimeoutHours is reached. -/ + disconnectOnSessionTimeout : Option Bool := none + /-- Information about the DNS servers to be used for DNS resolution. -/ + dnsServers : Option (List String) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IP address type for the Client VPN endpoint. -/ + endpointIpAddressType : Option EndpointIpAddressType := none + /-- The IDs of one or more security groups to apply to the target network. -/ + securityGroupIds : Option (List String) := none + /-- Specify whether to enable the self-service portal for the Client VPN endpoint. -/ + selfServicePortal : Option SelfServicePortal := none + /-- The ARN of the server certificate. -/ + serverCertificateArn : String + /-- The maximum VPN session duration time in hours. -/ + sessionTimeoutHours : Option Int := none + /-- Indicates whether split-tunnel is enabled on the Client VPN endpoint. -/ + splitTunnel : Option Bool := none + /-- The tags to apply to the Client VPN endpoint during creation. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The IP address type for traffic within the Client VPN tunnel. -/ + trafficIpAddressType : Option TrafficIpAddressType := none + /-- The Transit Gateway configuration for the Client VPN endpoint. -/ + transitGatewayConfiguration : Option TransitGatewayConfigurationInputStructure := none + /-- The transport protocol to be used by the VPN session. -/ + transportProtocol : Option TransportProtocol := none + /-- The ID of the VPC to associate with the Client VPN endpoint. -/ + vpcId : Option String := none + /-- The port number to assign to the Client VPN endpoint for TCP and UDP traffic. -/ + vpnPort : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateClientVpnEndpointRequest where + schema := .struct "CreateClientVpnEndpointRequest" [({ name := "AuthenticationOptions", required := true, xmlName := some "Authentication" }, (.list (Shape.schema ClientVpnAuthenticationRequest) "member")), + ({ name := "ClientCidrBlock" }, .string), + ({ name := "ClientConnectOptions" }, (Shape.schema ClientConnectOptions)), + ({ name := "ClientLoginBannerOptions" }, (Shape.schema ClientLoginBannerOptions)), + ({ name := "ClientRouteEnforcementOptions" }, (Shape.schema ClientRouteEnforcementOptions)), + ({ name := "ClientToken" }, .string), + ({ name := "ConnectionLogOptions", required := true }, (Shape.schema ConnectionLogOptions)), + ({ name := "Description" }, .string), + ({ name := "DevicePostureOptions" }, (Shape.schema DevicePostureOptions)), + ({ name := "DisconnectOnSessionTimeout" }, .bool), + ({ name := "DnsServers" }, (.list .string "item")), + ({ name := "DryRun" }, .bool), + ({ name := "EndpointIpAddressType" }, (Shape.schema EndpointIpAddressType)), + ({ name := "SecurityGroupIds", xmlName := some "SecurityGroupId" }, (.list .string "item")), + ({ name := "SelfServicePortal" }, (Shape.schema SelfServicePortal)), + ({ name := "ServerCertificateArn", required := true }, .string), + ({ name := "SessionTimeoutHours" }, .int), + ({ name := "SplitTunnel" }, .bool), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TrafficIpAddressType" }, (Shape.schema TrafficIpAddressType)), + ({ name := "TransitGatewayConfiguration" }, (Shape.schema TransitGatewayConfigurationInputStructure)), + ({ name := "TransportProtocol" }, (Shape.schema TransportProtocol)), + ({ name := "VpcId" }, .string), + ({ name := "VpnPort" }, .int)] + toValue x := record [put "AuthenticationOptions" x.authenticationOptions, putOpt "ClientCidrBlock" x.clientCidrBlock, putOpt "ClientConnectOptions" x.clientConnectOptions, putOpt "ClientLoginBannerOptions" x.clientLoginBannerOptions, putOpt "ClientRouteEnforcementOptions" x.clientRouteEnforcementOptions, putOpt "ClientToken" x.clientToken, put "ConnectionLogOptions" x.connectionLogOptions, putOpt "Description" x.description, putOpt "DevicePostureOptions" x.devicePostureOptions, putOpt "DisconnectOnSessionTimeout" x.disconnectOnSessionTimeout, putOpt "DnsServers" x.dnsServers, putOpt "DryRun" x.dryRun, putOpt "EndpointIpAddressType" x.endpointIpAddressType, putOpt "SecurityGroupIds" x.securityGroupIds, putOpt "SelfServicePortal" x.selfServicePortal, put "ServerCertificateArn" x.serverCertificateArn, putOpt "SessionTimeoutHours" x.sessionTimeoutHours, putOpt "SplitTunnel" x.splitTunnel, putOpt "TagSpecifications" x.tagSpecifications, putOpt "TrafficIpAddressType" x.trafficIpAddressType, putOpt "TransitGatewayConfiguration" x.transitGatewayConfiguration, putOpt "TransportProtocol" x.transportProtocol, putOpt "VpcId" x.vpcId, putOpt "VpnPort" x.vpnPort] + ofValue v := do + let authenticationOptions ← v.req "AuthenticationOptions" + let clientCidrBlock ← v.opt "ClientCidrBlock" + let clientConnectOptions ← v.opt "ClientConnectOptions" + let clientLoginBannerOptions ← v.opt "ClientLoginBannerOptions" + let clientRouteEnforcementOptions ← v.opt "ClientRouteEnforcementOptions" + let clientToken ← v.opt "ClientToken" + let connectionLogOptions ← v.req "ConnectionLogOptions" + let description ← v.opt "Description" + let devicePostureOptions ← v.opt "DevicePostureOptions" + let disconnectOnSessionTimeout ← v.opt "DisconnectOnSessionTimeout" + let dnsServers ← v.opt "DnsServers" + let dryRun ← v.opt "DryRun" + let endpointIpAddressType ← v.opt "EndpointIpAddressType" + let securityGroupIds ← v.opt "SecurityGroupIds" + let selfServicePortal ← v.opt "SelfServicePortal" + let serverCertificateArn ← v.req "ServerCertificateArn" + let sessionTimeoutHours ← v.opt "SessionTimeoutHours" + let splitTunnel ← v.opt "SplitTunnel" + let tagSpecifications ← v.opt "TagSpecifications" + let trafficIpAddressType ← v.opt "TrafficIpAddressType" + let transitGatewayConfiguration ← v.opt "TransitGatewayConfiguration" + let transportProtocol ← v.opt "TransportProtocol" + let vpcId ← v.opt "VpcId" + let vpnPort ← v.opt "VpnPort" + return { authenticationOptions, clientCidrBlock, clientConnectOptions, clientLoginBannerOptions, clientRouteEnforcementOptions, clientToken, connectionLogOptions, description, devicePostureOptions, disconnectOnSessionTimeout, dnsServers, dryRun, endpointIpAddressType, securityGroupIds, selfServicePortal, serverCertificateArn, sessionTimeoutHours, splitTunnel, tagSpecifications, trafficIpAddressType, transitGatewayConfiguration, transportProtocol, vpcId, vpnPort } + +structure CreateDelegateMacVolumeOwnershipTaskResult where + /-- Information about the volume ownership delegation task. -/ + macModificationTask : Option MacModificationTask := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateDelegateMacVolumeOwnershipTaskResult where + schema := .struct "CreateDelegateMacVolumeOwnershipTaskResult" [({ name := "MacModificationTask", xmlName := some "macModificationTask", queryName := some "MacModificationTask" }, (Shape.schema MacModificationTask))] + toValue x := record [putOpt "MacModificationTask" x.macModificationTask] + ofValue v := do + let macModificationTask ← v.opt "MacModificationTask" + return { macModificationTask } + +structure CreateDhcpOptionsResult where + /-- A set of DHCP options. -/ + dhcpOptions : Option DhcpOptions := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateDhcpOptionsResult where + schema := .struct "CreateDhcpOptionsResult" [({ name := "DhcpOptions", xmlName := some "dhcpOptions", queryName := some "DhcpOptions" }, (Shape.schema DhcpOptions))] + toValue x := record [putOpt "DhcpOptions" x.dhcpOptions] + ofValue v := do + let dhcpOptions ← v.opt "DhcpOptions" + return { dhcpOptions } + +structure CreateEgressOnlyInternetGatewayResult where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Information about the egress-only internet gateway. -/ + egressOnlyInternetGateway : Option EgressOnlyInternetGateway := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateEgressOnlyInternetGatewayResult where + schema := .struct "CreateEgressOnlyInternetGatewayResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "EgressOnlyInternetGateway", xmlName := some "egressOnlyInternetGateway", queryName := some "EgressOnlyInternetGateway" }, (Shape.schema EgressOnlyInternetGateway))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "EgressOnlyInternetGateway" x.egressOnlyInternetGateway] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let egressOnlyInternetGateway ← v.opt "EgressOnlyInternetGateway" + return { clientToken, egressOnlyInternetGateway } + +structure CreateImageRequest where + /-- The block device mappings. -/ + blockDeviceMappings : Option (List BlockDeviceMapping) := none + /-- The boot mode of the new image, which overrides the default boot mode. -/ + bootModeOverride : Option BootModeOverrideValues := none + /-- A description for the new image. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the instance. -/ + instanceId : String + /-- A name for the new image. -/ + name : String + /-- Indicates whether or not the instance should be automatically rebooted before creating the image. -/ + noReboot : Option Bool := none + /-- Only supported for instances in Local Zones and for instances on Outposts that support local snapshots. -/ + snapshotLocation : Option SnapshotLocationEnum := none + /-- The tags to apply to the AMI and snapshots on creation. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateImageRequest where + schema := .struct "CreateImageRequest" [({ name := "BlockDeviceMappings", xmlName := some "blockDeviceMapping", queryName := some "BlockDeviceMapping" }, (.list (Shape.schema BlockDeviceMapping) "BlockDeviceMapping")), + ({ name := "BootModeOverride" }, (Shape.schema BootModeOverrideValues)), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "InstanceId", required := true, xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "Name", required := true, xmlName := some "name", queryName := some "Name" }, .string), + ({ name := "NoReboot", xmlName := some "noReboot", queryName := some "NoReboot" }, .bool), + ({ name := "SnapshotLocation" }, (Shape.schema SnapshotLocationEnum)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "BlockDeviceMappings" x.blockDeviceMappings, putOpt "BootModeOverride" x.bootModeOverride, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, put "InstanceId" x.instanceId, put "Name" x.name, putOpt "NoReboot" x.noReboot, putOpt "SnapshotLocation" x.snapshotLocation, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let blockDeviceMappings ← v.opt "BlockDeviceMappings" + let bootModeOverride ← v.opt "BootModeOverride" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let instanceId ← v.req "InstanceId" + let name ← v.req "Name" + let noReboot ← v.opt "NoReboot" + let snapshotLocation ← v.opt "SnapshotLocation" + let tagSpecifications ← v.opt "TagSpecifications" + return { blockDeviceMappings, bootModeOverride, description, dryRun, instanceId, name, noReboot, snapshotLocation, tagSpecifications } + +structure CreateInstanceConnectEndpointResult where + /-- Unique, case-sensitive idempotency token provided by the client in the the request. -/ + clientToken : Option String := none + /-- Information about the EC2 Instance Connect Endpoint. -/ + instanceConnectEndpoint : Option Ec2InstanceConnectEndpoint := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateInstanceConnectEndpointResult where + schema := .struct "CreateInstanceConnectEndpointResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "InstanceConnectEndpoint", xmlName := some "instanceConnectEndpoint", queryName := some "InstanceConnectEndpoint" }, (Shape.schema Ec2InstanceConnectEndpoint))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "InstanceConnectEndpoint" x.instanceConnectEndpoint] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let instanceConnectEndpoint ← v.opt "InstanceConnectEndpoint" + return { clientToken, instanceConnectEndpoint } + +structure CreateInstanceEventWindowResult where + /-- Information about the event window. -/ + instanceEventWindow : Option InstanceEventWindow := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateInstanceEventWindowResult where + schema := .struct "CreateInstanceEventWindowResult" [({ name := "InstanceEventWindow", xmlName := some "instanceEventWindow", queryName := some "InstanceEventWindow" }, (Shape.schema InstanceEventWindow))] + toValue x := record [putOpt "InstanceEventWindow" x.instanceEventWindow] + ofValue v := do + let instanceEventWindow ← v.opt "InstanceEventWindow" + return { instanceEventWindow } + +structure CreateInstanceExportTaskResult where + /-- Information about the export instance task. -/ + exportTask : Option ExportTask := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateInstanceExportTaskResult where + schema := .struct "CreateInstanceExportTaskResult" [({ name := "ExportTask", xmlName := some "exportTask", queryName := some "ExportTask" }, (Shape.schema ExportTask))] + toValue x := record [putOpt "ExportTask" x.exportTask] + ofValue v := do + let exportTask ← v.opt "ExportTask" + return { exportTask } + +structure CreateInternetGatewayResult where + /-- Information about the internet gateway. -/ + internetGateway : Option InternetGateway := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateInternetGatewayResult where + schema := .struct "CreateInternetGatewayResult" [({ name := "InternetGateway", xmlName := some "internetGateway", queryName := some "InternetGateway" }, (Shape.schema InternetGateway))] + toValue x := record [putOpt "InternetGateway" x.internetGateway] + ofValue v := do + let internetGateway ← v.opt "InternetGateway" + return { internetGateway } + +structure CreateIpamPoolResult where + /-- Information about the IPAM pool created. -/ + ipamPool : Option IpamPool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateIpamPoolResult where + schema := .struct "CreateIpamPoolResult" [({ name := "IpamPool", xmlName := some "ipamPool", queryName := some "IpamPool" }, (Shape.schema IpamPool))] + toValue x := record [putOpt "IpamPool" x.ipamPool] + ofValue v := do + let ipamPool ← v.opt "IpamPool" + return { ipamPool } + +structure CreateIpamPrefixListResolverRequest where + /-- The address family for the IPAM prefix list resolver. -/ + addressFamily : AddressFamily + /-- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- A description for the IPAM prefix list resolver to help you identify its purpose and configuration. -/ + description : Option String := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM that will serve as the source of the IP address database for CIDR selection. -/ + ipamId : String + /-- The CIDR selection rules for the resolver. -/ + rules : Option (List IpamPrefixListResolverRuleRequest) := none + /-- The tags to apply to the IPAM prefix list resolver during creation. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateIpamPrefixListResolverRequest where + schema := .struct "CreateIpamPrefixListResolverRequest" [({ name := "AddressFamily", required := true }, (Shape.schema AddressFamily)), + ({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "IpamId", required := true }, .string), + ({ name := "Rules", xmlName := some "Rule" }, (.list (Shape.schema IpamPrefixListResolverRuleRequest) "Rule")), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [put "AddressFamily" x.addressFamily, putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, put "IpamId" x.ipamId, putOpt "Rules" x.rules, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let addressFamily ← v.req "AddressFamily" + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let ipamId ← v.req "IpamId" + let rules ← v.opt "Rules" + let tagSpecifications ← v.opt "TagSpecifications" + return { addressFamily, clientToken, description, dryRun, ipamId, rules, tagSpecifications } + +structure CreateIpamScopeResult where + /-- Information about the created scope. -/ + ipamScope : Option IpamScope := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateIpamScopeResult where + schema := .struct "CreateIpamScopeResult" [({ name := "IpamScope", xmlName := some "ipamScope", queryName := some "IpamScope" }, (Shape.schema IpamScope))] + toValue x := record [putOpt "IpamScope" x.ipamScope] + ofValue v := do + let ipamScope ← v.opt "IpamScope" + return { ipamScope } + +structure CreateMacSystemIntegrityProtectionModificationTaskResult where + /-- Information about the SIP modification task. -/ + macModificationTask : Option MacModificationTask := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateMacSystemIntegrityProtectionModificationTaskResult where + schema := .struct "CreateMacSystemIntegrityProtectionModificationTaskResult" [({ name := "MacModificationTask", xmlName := some "macModificationTask", queryName := some "MacModificationTask" }, (Shape.schema MacModificationTask))] + toValue x := record [putOpt "MacModificationTask" x.macModificationTask] + ofValue v := do + let macModificationTask ← v.opt "MacModificationTask" + return { macModificationTask } + +structure CreateNatGatewayResult where + /-- Unique, case-sensitive identifier to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Information about the NAT gateway. -/ + natGateway : Option NatGateway := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateNatGatewayResult where + schema := .struct "CreateNatGatewayResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "NatGateway", xmlName := some "natGateway", queryName := some "NatGateway" }, (Shape.schema NatGateway))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "NatGateway" x.natGateway] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let natGateway ← v.opt "NatGateway" + return { clientToken, natGateway } + +structure CreateNetworkAclResult where + /-- Unique, case-sensitive identifier to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Information about the network ACL. -/ + networkAcl : Option NetworkAcl := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateNetworkAclResult where + schema := .struct "CreateNetworkAclResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "NetworkAcl", xmlName := some "networkAcl", queryName := some "NetworkAcl" }, (Shape.schema NetworkAcl))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "NetworkAcl" x.networkAcl] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let networkAcl ← v.opt "NetworkAcl" + return { clientToken, networkAcl } + +structure CreateNetworkInsightsPathResult where + /-- Information about the path. -/ + networkInsightsPath : Option NetworkInsightsPath := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateNetworkInsightsPathResult where + schema := .struct "CreateNetworkInsightsPathResult" [({ name := "NetworkInsightsPath", xmlName := some "networkInsightsPath", queryName := some "NetworkInsightsPath" }, (Shape.schema NetworkInsightsPath))] + toValue x := record [putOpt "NetworkInsightsPath" x.networkInsightsPath] + ofValue v := do + let networkInsightsPath ← v.opt "NetworkInsightsPath" + return { networkInsightsPath } + +/-- Contains the output of CreateNetworkInterfacePermission. -/ +structure CreateNetworkInterfacePermissionResult where + /-- Information about the permission for the network interface. -/ + interfacePermission : Option NetworkInterfacePermission := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateNetworkInterfacePermissionResult where + schema := .struct "CreateNetworkInterfacePermissionResult" [({ name := "InterfacePermission", xmlName := some "interfacePermission", queryName := some "InterfacePermission" }, (Shape.schema NetworkInterfacePermission))] + toValue x := record [putOpt "InterfacePermission" x.interfacePermission] + ofValue v := do + let interfacePermission ← v.opt "InterfacePermission" + return { interfacePermission } + +structure CreateNetworkingFlexCostAllocationPolicyRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- A description for the policy. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The policy document that defines cost allocation for EC2 instances. -/ + instanceFcaPolicyDocument : Option InstanceFlexCostAllocationPolicyDocument := none + /-- The policy document that defines cost allocation for NAT gateways. -/ + natFcaPolicyDocument : Option NatFlexCostAllocationPolicyDocument := none + /-- The type of network resource that the policy applies to. -/ + networkResourceType : FlexCostAllocationNetworkResourceType + /-- The policy document that defines cost allocation for Amazon VPC peering connections. -/ + pcxFcaPolicyDocument : Option PcxFlexCostAllocationPolicyDocument := none + /-- Specifies whether showback reporting is enabled for the policy. -/ + showBackEnabled : Option Bool := none + /-- The tags to assign to the policy. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateNetworkingFlexCostAllocationPolicyRequest where + schema := .struct "CreateNetworkingFlexCostAllocationPolicyRequest" [({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceFcaPolicyDocument" }, (Shape.schema InstanceFlexCostAllocationPolicyDocument)), + ({ name := "NatFcaPolicyDocument" }, (Shape.schema NatFlexCostAllocationPolicyDocument)), + ({ name := "NetworkResourceType", required := true }, (Shape.schema FlexCostAllocationNetworkResourceType)), + ({ name := "PcxFcaPolicyDocument" }, (Shape.schema PcxFlexCostAllocationPolicyDocument)), + ({ name := "ShowBackEnabled" }, .bool), + ({ name := "TagSpecifications" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "InstanceFcaPolicyDocument" x.instanceFcaPolicyDocument, putOpt "NatFcaPolicyDocument" x.natFcaPolicyDocument, put "NetworkResourceType" x.networkResourceType, putOpt "PcxFcaPolicyDocument" x.pcxFcaPolicyDocument, putOpt "ShowBackEnabled" x.showBackEnabled, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let instanceFcaPolicyDocument ← v.opt "InstanceFcaPolicyDocument" + let natFcaPolicyDocument ← v.opt "NatFcaPolicyDocument" + let networkResourceType ← v.req "NetworkResourceType" + let pcxFcaPolicyDocument ← v.opt "PcxFcaPolicyDocument" + let showBackEnabled ← v.opt "ShowBackEnabled" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, description, dryRun, instanceFcaPolicyDocument, natFcaPolicyDocument, networkResourceType, pcxFcaPolicyDocument, showBackEnabled, tagSpecifications } + +/-- Contains the output of CreateReservedInstancesListing. -/ +structure CreateReservedInstancesListingResult where + /-- Information about the Standard Reserved Instance listing. -/ + reservedInstancesListings : Option (List ReservedInstancesListing) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateReservedInstancesListingResult where + schema := .struct "CreateReservedInstancesListingResult" [({ name := "ReservedInstancesListings", xmlName := some "reservedInstancesListingsSet", queryName := some "ReservedInstancesListingsSet" }, (.list (Shape.schema ReservedInstancesListing) "item"))] + toValue x := record [putOpt "ReservedInstancesListings" x.reservedInstancesListings] + ofValue v := do + let reservedInstancesListings ← v.opt "ReservedInstancesListings" + return { reservedInstancesListings } + +structure CreateRouteServerPeerResult where + /-- Information about the created route server peer. -/ + routeServerPeer : Option RouteServerPeer := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateRouteServerPeerResult where + schema := .struct "CreateRouteServerPeerResult" [({ name := "RouteServerPeer", xmlName := some "routeServerPeer", queryName := some "RouteServerPeer" }, (Shape.schema RouteServerPeer))] + toValue x := record [putOpt "RouteServerPeer" x.routeServerPeer] + ofValue v := do + let routeServerPeer ← v.opt "RouteServerPeer" + return { routeServerPeer } + +structure CreateSecondaryNetworkResult where + /-- Unique, case-sensitive identifier to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Information about the secondary network. -/ + secondaryNetwork : Option SecondaryNetwork := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateSecondaryNetworkResult where + schema := .struct "CreateSecondaryNetworkResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "SecondaryNetwork", xmlName := some "secondaryNetwork", queryName := some "SecondaryNetwork" }, (Shape.schema SecondaryNetwork))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "SecondaryNetwork" x.secondaryNetwork] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let secondaryNetwork ← v.opt "SecondaryNetwork" + return { clientToken, secondaryNetwork } + +structure CreateSecondarySubnetResult where + /-- Unique, case-sensitive identifier to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Information about the secondary subnet. -/ + secondarySubnet : Option SecondarySubnet := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateSecondarySubnetResult where + schema := .struct "CreateSecondarySubnetResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "SecondarySubnet", xmlName := some "secondarySubnet", queryName := some "SecondarySubnet" }, (Shape.schema SecondarySubnet))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "SecondarySubnet" x.secondarySubnet] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let secondarySubnet ← v.opt "SecondarySubnet" + return { clientToken, secondarySubnet } + +structure CreateTrafficMirrorFilterResult where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Information about the Traffic Mirror filter. -/ + trafficMirrorFilter : Option TrafficMirrorFilter := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTrafficMirrorFilterResult where + schema := .struct "CreateTrafficMirrorFilterResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "TrafficMirrorFilter", xmlName := some "trafficMirrorFilter", queryName := some "TrafficMirrorFilter" }, (Shape.schema TrafficMirrorFilter))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "TrafficMirrorFilter" x.trafficMirrorFilter] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let trafficMirrorFilter ← v.opt "TrafficMirrorFilter" + return { clientToken, trafficMirrorFilter } + +structure CreateTransitGatewayConnectResult where + /-- Information about the Connect attachment. -/ + transitGatewayConnect : Option TransitGatewayConnect := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayConnectResult where + schema := .struct "CreateTransitGatewayConnectResult" [({ name := "TransitGatewayConnect", xmlName := some "transitGatewayConnect", queryName := some "TransitGatewayConnect" }, (Shape.schema TransitGatewayConnect))] + toValue x := record [putOpt "TransitGatewayConnect" x.transitGatewayConnect] + ofValue v := do + let transitGatewayConnect ← v.opt "TransitGatewayConnect" + return { transitGatewayConnect } + +structure CreateTransitGatewayMeteringPolicyEntryResult where + /-- Information about the created transit gateway metering policy entry. -/ + transitGatewayMeteringPolicyEntry : Option TransitGatewayMeteringPolicyEntry := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayMeteringPolicyEntryResult where + schema := .struct "CreateTransitGatewayMeteringPolicyEntryResult" [({ name := "TransitGatewayMeteringPolicyEntry", xmlName := some "transitGatewayMeteringPolicyEntry", queryName := some "TransitGatewayMeteringPolicyEntry" }, (Shape.schema TransitGatewayMeteringPolicyEntry))] + toValue x := record [putOpt "TransitGatewayMeteringPolicyEntry" x.transitGatewayMeteringPolicyEntry] + ofValue v := do + let transitGatewayMeteringPolicyEntry ← v.opt "TransitGatewayMeteringPolicyEntry" + return { transitGatewayMeteringPolicyEntry } + +structure CreateTransitGatewayMulticastDomainResult where + /-- Information about the transit gateway multicast domain. -/ + transitGatewayMulticastDomain : Option TransitGatewayMulticastDomain := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayMulticastDomainResult where + schema := .struct "CreateTransitGatewayMulticastDomainResult" [({ name := "TransitGatewayMulticastDomain", xmlName := some "transitGatewayMulticastDomain", queryName := some "TransitGatewayMulticastDomain" }, (Shape.schema TransitGatewayMulticastDomain))] + toValue x := record [putOpt "TransitGatewayMulticastDomain" x.transitGatewayMulticastDomain] + ofValue v := do + let transitGatewayMulticastDomain ← v.opt "TransitGatewayMulticastDomain" + return { transitGatewayMulticastDomain } + +structure CreateTransitGatewayPeeringAttachmentResult where + /-- The transit gateway peering attachment. -/ + transitGatewayPeeringAttachment : Option TransitGatewayPeeringAttachment := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayPeeringAttachmentResult where + schema := .struct "CreateTransitGatewayPeeringAttachmentResult" [({ name := "TransitGatewayPeeringAttachment", xmlName := some "transitGatewayPeeringAttachment", queryName := some "TransitGatewayPeeringAttachment" }, (Shape.schema TransitGatewayPeeringAttachment))] + toValue x := record [putOpt "TransitGatewayPeeringAttachment" x.transitGatewayPeeringAttachment] + ofValue v := do + let transitGatewayPeeringAttachment ← v.opt "TransitGatewayPeeringAttachment" + return { transitGatewayPeeringAttachment } + +structure CreateTransitGatewayPolicyTableEntryResult where + /-- Describes a transit gateway policy table entry. -/ + transitGatewayPolicyTableEntry : Option TransitGatewayPolicyTableEntry := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayPolicyTableEntryResult where + schema := .struct "CreateTransitGatewayPolicyTableEntryResult" [({ name := "TransitGatewayPolicyTableEntry", xmlName := some "transitGatewayPolicyTableEntry", queryName := some "TransitGatewayPolicyTableEntry" }, (Shape.schema TransitGatewayPolicyTableEntry))] + toValue x := record [putOpt "TransitGatewayPolicyTableEntry" x.transitGatewayPolicyTableEntry] + ofValue v := do + let transitGatewayPolicyTableEntry ← v.opt "TransitGatewayPolicyTableEntry" + return { transitGatewayPolicyTableEntry } + +structure CreateTransitGatewayPrefixListReferenceResult where + /-- Information about the prefix list reference. -/ + transitGatewayPrefixListReference : Option TransitGatewayPrefixListReference := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayPrefixListReferenceResult where + schema := .struct "CreateTransitGatewayPrefixListReferenceResult" [({ name := "TransitGatewayPrefixListReference", xmlName := some "transitGatewayPrefixListReference", queryName := some "TransitGatewayPrefixListReference" }, (Shape.schema TransitGatewayPrefixListReference))] + toValue x := record [putOpt "TransitGatewayPrefixListReference" x.transitGatewayPrefixListReference] + ofValue v := do + let transitGatewayPrefixListReference ← v.opt "TransitGatewayPrefixListReference" + return { transitGatewayPrefixListReference } + +structure CreateTransitGatewayRouteResult where + /-- Information about the route. -/ + route : Option TransitGatewayRoute := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayRouteResult where + schema := .struct "CreateTransitGatewayRouteResult" [({ name := "Route", xmlName := some "route", queryName := some "Route" }, (Shape.schema TransitGatewayRoute))] + toValue x := record [putOpt "Route" x.route] + ofValue v := do + let route ← v.opt "Route" + return { route } + +structure CreateTransitGatewayVpcAttachmentResult where + /-- Information about the VPC attachment. -/ + transitGatewayVpcAttachment : Option TransitGatewayVpcAttachment := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayVpcAttachmentResult where + schema := .struct "CreateTransitGatewayVpcAttachmentResult" [({ name := "TransitGatewayVpcAttachment", xmlName := some "transitGatewayVpcAttachment", queryName := some "TransitGatewayVpcAttachment" }, (Shape.schema TransitGatewayVpcAttachment))] + toValue x := record [putOpt "TransitGatewayVpcAttachment" x.transitGatewayVpcAttachment] + ofValue v := do + let transitGatewayVpcAttachment ← v.opt "TransitGatewayVpcAttachment" + return { transitGatewayVpcAttachment } + +structure CreateVerifiedAccessEndpointResult where + /-- Details about the Verified Access endpoint. -/ + verifiedAccessEndpoint : Option VerifiedAccessEndpoint := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVerifiedAccessEndpointResult where + schema := .struct "CreateVerifiedAccessEndpointResult" [({ name := "VerifiedAccessEndpoint", xmlName := some "verifiedAccessEndpoint", queryName := some "VerifiedAccessEndpoint" }, (Shape.schema VerifiedAccessEndpoint))] + toValue x := record [putOpt "VerifiedAccessEndpoint" x.verifiedAccessEndpoint] + ofValue v := do + let verifiedAccessEndpoint ← v.opt "VerifiedAccessEndpoint" + return { verifiedAccessEndpoint } + +structure CreateVerifiedAccessInstanceResult where + /-- Details about the Verified Access instance. -/ + verifiedAccessInstance : Option VerifiedAccessInstance := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVerifiedAccessInstanceResult where + schema := .struct "CreateVerifiedAccessInstanceResult" [({ name := "VerifiedAccessInstance", xmlName := some "verifiedAccessInstance", queryName := some "VerifiedAccessInstance" }, (Shape.schema VerifiedAccessInstance))] + toValue x := record [putOpt "VerifiedAccessInstance" x.verifiedAccessInstance] + ofValue v := do + let verifiedAccessInstance ← v.opt "VerifiedAccessInstance" + return { verifiedAccessInstance } + +structure CreateVpcEndpointResult where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Information about the endpoint. -/ + vpcEndpoint : Option VpcEndpoint := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpcEndpointResult where + schema := .struct "CreateVpcEndpointResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "VpcEndpoint", xmlName := some "vpcEndpoint", queryName := some "VpcEndpoint" }, (Shape.schema VpcEndpoint))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "VpcEndpoint" x.vpcEndpoint] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let vpcEndpoint ← v.opt "VpcEndpoint" + return { clientToken, vpcEndpoint } + +structure CreateVpcEndpointServiceConfigurationResult where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Information about the service configuration. -/ + serviceConfiguration : Option ServiceConfiguration := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpcEndpointServiceConfigurationResult where + schema := .struct "CreateVpcEndpointServiceConfigurationResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "ServiceConfiguration", xmlName := some "serviceConfiguration", queryName := some "ServiceConfiguration" }, (Shape.schema ServiceConfiguration))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "ServiceConfiguration" x.serviceConfiguration] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let serviceConfiguration ← v.opt "ServiceConfiguration" + return { clientToken, serviceConfiguration } + +/-- Contains the output of CreateVpnGateway. -/ +structure CreateVpnGatewayResult where + /-- Information about the virtual private gateway. -/ + vpnGateway : Option VpnGateway := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpnGatewayResult where + schema := .struct "CreateVpnGatewayResult" [({ name := "VpnGateway", xmlName := some "vpnGateway", queryName := some "VpnGateway" }, (Shape.schema VpnGateway))] + toValue x := record [putOpt "VpnGateway" x.vpnGateway] + ofValue v := do + let vpnGateway ← v.opt "VpnGateway" + return { vpnGateway } + +structure DeleteApplicationStatusCheckResult where + /-- Information about the deleted application status check. -/ + applicationStatusCheck : Option ApplicationStatusCheckResponseObject := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteApplicationStatusCheckResult where + schema := .struct "DeleteApplicationStatusCheckResult" [({ name := "ApplicationStatusCheck", xmlName := some "applicationStatusCheck", queryName := some "ApplicationStatusCheck" }, (Shape.schema ApplicationStatusCheckResponseObject))] + toValue x := record [putOpt "ApplicationStatusCheck" x.applicationStatusCheck] + ofValue v := do + let applicationStatusCheck ← v.opt "ApplicationStatusCheck" + return { applicationStatusCheck } + +structure DeleteFleetsResult where + /-- Information about the EC2 Fleets that are successfully deleted. -/ + successfulFleetDeletions : Option (List DeleteFleetSuccessItem) := none + /-- Information about the EC2 Fleets that are not successfully deleted. -/ + unsuccessfulFleetDeletions : Option (List DeleteFleetErrorItem) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteFleetsResult where + schema := .struct "DeleteFleetsResult" [({ name := "SuccessfulFleetDeletions", xmlName := some "successfulFleetDeletionSet", queryName := some "SuccessfulFleetDeletionSet" }, (.list (Shape.schema DeleteFleetSuccessItem) "item")), + ({ name := "UnsuccessfulFleetDeletions", xmlName := some "unsuccessfulFleetDeletionSet", queryName := some "UnsuccessfulFleetDeletionSet" }, (.list (Shape.schema DeleteFleetErrorItem) "item"))] + toValue x := record [putOpt "SuccessfulFleetDeletions" x.successfulFleetDeletions, putOpt "UnsuccessfulFleetDeletions" x.unsuccessfulFleetDeletions] + ofValue v := do + let successfulFleetDeletions ← v.opt "SuccessfulFleetDeletions" + let unsuccessfulFleetDeletions ← v.opt "UnsuccessfulFleetDeletions" + return { successfulFleetDeletions, unsuccessfulFleetDeletions } + +structure DeleteInstanceConnectEndpointResult where + /-- Information about the EC2 Instance Connect Endpoint. -/ + instanceConnectEndpoint : Option Ec2InstanceConnectEndpoint := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteInstanceConnectEndpointResult where + schema := .struct "DeleteInstanceConnectEndpointResult" [({ name := "InstanceConnectEndpoint", xmlName := some "instanceConnectEndpoint", queryName := some "InstanceConnectEndpoint" }, (Shape.schema Ec2InstanceConnectEndpoint))] + toValue x := record [putOpt "InstanceConnectEndpoint" x.instanceConnectEndpoint] + ofValue v := do + let instanceConnectEndpoint ← v.opt "InstanceConnectEndpoint" + return { instanceConnectEndpoint } + +structure DeleteIpamPoolResult where + /-- Information about the results of the deletion. -/ + ipamPool : Option IpamPool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteIpamPoolResult where + schema := .struct "DeleteIpamPoolResult" [({ name := "IpamPool", xmlName := some "ipamPool", queryName := some "IpamPool" }, (Shape.schema IpamPool))] + toValue x := record [putOpt "IpamPool" x.ipamPool] + ofValue v := do + let ipamPool ← v.opt "IpamPool" + return { ipamPool } + +structure DeleteIpamScopeResult where + /-- Information about the results of the deletion. -/ + ipamScope : Option IpamScope := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteIpamScopeResult where + schema := .struct "DeleteIpamScopeResult" [({ name := "IpamScope", xmlName := some "ipamScope", queryName := some "IpamScope" }, (Shape.schema IpamScope))] + toValue x := record [putOpt "IpamScope" x.ipamScope] + ofValue v := do + let ipamScope ← v.opt "IpamScope" + return { ipamScope } + +structure DeleteLaunchTemplateVersionsResult where + /-- Information about the launch template versions that were successfully deleted. -/ + successfullyDeletedLaunchTemplateVersions : Option (List DeleteLaunchTemplateVersionsResponseSuccessItem) := none + /-- Information about the launch template versions that could not be deleted. -/ + unsuccessfullyDeletedLaunchTemplateVersions : Option (List DeleteLaunchTemplateVersionsResponseErrorItem) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteLaunchTemplateVersionsResult where + schema := .struct "DeleteLaunchTemplateVersionsResult" [({ name := "SuccessfullyDeletedLaunchTemplateVersions", xmlName := some "successfullyDeletedLaunchTemplateVersionSet", queryName := some "SuccessfullyDeletedLaunchTemplateVersionSet" }, (.list (Shape.schema DeleteLaunchTemplateVersionsResponseSuccessItem) "item")), + ({ name := "UnsuccessfullyDeletedLaunchTemplateVersions", xmlName := some "unsuccessfullyDeletedLaunchTemplateVersionSet", queryName := some "UnsuccessfullyDeletedLaunchTemplateVersionSet" }, (.list (Shape.schema DeleteLaunchTemplateVersionsResponseErrorItem) "item"))] + toValue x := record [putOpt "SuccessfullyDeletedLaunchTemplateVersions" x.successfullyDeletedLaunchTemplateVersions, putOpt "UnsuccessfullyDeletedLaunchTemplateVersions" x.unsuccessfullyDeletedLaunchTemplateVersions] + ofValue v := do + let successfullyDeletedLaunchTemplateVersions ← v.opt "SuccessfullyDeletedLaunchTemplateVersions" + let unsuccessfullyDeletedLaunchTemplateVersions ← v.opt "UnsuccessfullyDeletedLaunchTemplateVersions" + return { successfullyDeletedLaunchTemplateVersions, unsuccessfullyDeletedLaunchTemplateVersions } + +structure DeleteQueuedReservedInstancesResult where + /-- Information about the queued purchases that could not be deleted. -/ + failedQueuedPurchaseDeletions : Option (List FailedQueuedPurchaseDeletion) := none + /-- Information about the queued purchases that were successfully deleted. -/ + successfulQueuedPurchaseDeletions : Option (List SuccessfulQueuedPurchaseDeletion) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteQueuedReservedInstancesResult where + schema := .struct "DeleteQueuedReservedInstancesResult" [({ name := "FailedQueuedPurchaseDeletions", xmlName := some "failedQueuedPurchaseDeletionSet", queryName := some "FailedQueuedPurchaseDeletionSet" }, (.list (Shape.schema FailedQueuedPurchaseDeletion) "item")), + ({ name := "SuccessfulQueuedPurchaseDeletions", xmlName := some "successfulQueuedPurchaseDeletionSet", queryName := some "SuccessfulQueuedPurchaseDeletionSet" }, (.list (Shape.schema SuccessfulQueuedPurchaseDeletion) "item"))] + toValue x := record [putOpt "FailedQueuedPurchaseDeletions" x.failedQueuedPurchaseDeletions, putOpt "SuccessfulQueuedPurchaseDeletions" x.successfulQueuedPurchaseDeletions] + ofValue v := do + let failedQueuedPurchaseDeletions ← v.opt "FailedQueuedPurchaseDeletions" + let successfulQueuedPurchaseDeletions ← v.opt "SuccessfulQueuedPurchaseDeletions" + return { failedQueuedPurchaseDeletions, successfulQueuedPurchaseDeletions } + +structure DeleteRouteServerPeerResult where + /-- Information about the deleted route server peer. -/ + routeServerPeer : Option RouteServerPeer := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteRouteServerPeerResult where + schema := .struct "DeleteRouteServerPeerResult" [({ name := "RouteServerPeer", xmlName := some "routeServerPeer", queryName := some "RouteServerPeer" }, (Shape.schema RouteServerPeer))] + toValue x := record [putOpt "RouteServerPeer" x.routeServerPeer] + ofValue v := do + let routeServerPeer ← v.opt "RouteServerPeer" + return { routeServerPeer } + +structure DeleteSecondaryNetworkResult where + /-- Unique, case-sensitive identifier to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Information about the secondary network. -/ + secondaryNetwork : Option SecondaryNetwork := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteSecondaryNetworkResult where + schema := .struct "DeleteSecondaryNetworkResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "SecondaryNetwork", xmlName := some "secondaryNetwork", queryName := some "SecondaryNetwork" }, (Shape.schema SecondaryNetwork))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "SecondaryNetwork" x.secondaryNetwork] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let secondaryNetwork ← v.opt "SecondaryNetwork" + return { clientToken, secondaryNetwork } + +structure DeleteSecondarySubnetResult where + /-- Unique, case-sensitive identifier to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Information about the secondary subnet being deleted. -/ + secondarySubnet : Option SecondarySubnet := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteSecondarySubnetResult where + schema := .struct "DeleteSecondarySubnetResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "SecondarySubnet", xmlName := some "secondarySubnet", queryName := some "SecondarySubnet" }, (Shape.schema SecondarySubnet))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "SecondarySubnet" x.secondarySubnet] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let secondarySubnet ← v.opt "SecondarySubnet" + return { clientToken, secondarySubnet } + +structure DeleteTransitGatewayConnectResult where + /-- Information about the deleted Connect attachment. -/ + transitGatewayConnect : Option TransitGatewayConnect := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayConnectResult where + schema := .struct "DeleteTransitGatewayConnectResult" [({ name := "TransitGatewayConnect", xmlName := some "transitGatewayConnect", queryName := some "TransitGatewayConnect" }, (Shape.schema TransitGatewayConnect))] + toValue x := record [putOpt "TransitGatewayConnect" x.transitGatewayConnect] + ofValue v := do + let transitGatewayConnect ← v.opt "TransitGatewayConnect" + return { transitGatewayConnect } + +structure DeleteTransitGatewayMeteringPolicyEntryResult where + /-- Information about the deleted transit gateway metering policy entry. -/ + transitGatewayMeteringPolicyEntry : Option TransitGatewayMeteringPolicyEntry := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayMeteringPolicyEntryResult where + schema := .struct "DeleteTransitGatewayMeteringPolicyEntryResult" [({ name := "TransitGatewayMeteringPolicyEntry", xmlName := some "transitGatewayMeteringPolicyEntry", queryName := some "TransitGatewayMeteringPolicyEntry" }, (Shape.schema TransitGatewayMeteringPolicyEntry))] + toValue x := record [putOpt "TransitGatewayMeteringPolicyEntry" x.transitGatewayMeteringPolicyEntry] + ofValue v := do + let transitGatewayMeteringPolicyEntry ← v.opt "TransitGatewayMeteringPolicyEntry" + return { transitGatewayMeteringPolicyEntry } + +structure DeleteTransitGatewayMulticastDomainResult where + /-- Information about the deleted transit gateway multicast domain. -/ + transitGatewayMulticastDomain : Option TransitGatewayMulticastDomain := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayMulticastDomainResult where + schema := .struct "DeleteTransitGatewayMulticastDomainResult" [({ name := "TransitGatewayMulticastDomain", xmlName := some "transitGatewayMulticastDomain", queryName := some "TransitGatewayMulticastDomain" }, (Shape.schema TransitGatewayMulticastDomain))] + toValue x := record [putOpt "TransitGatewayMulticastDomain" x.transitGatewayMulticastDomain] + ofValue v := do + let transitGatewayMulticastDomain ← v.opt "TransitGatewayMulticastDomain" + return { transitGatewayMulticastDomain } + +structure DeleteTransitGatewayPeeringAttachmentResult where + /-- The transit gateway peering attachment. -/ + transitGatewayPeeringAttachment : Option TransitGatewayPeeringAttachment := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayPeeringAttachmentResult where + schema := .struct "DeleteTransitGatewayPeeringAttachmentResult" [({ name := "TransitGatewayPeeringAttachment", xmlName := some "transitGatewayPeeringAttachment", queryName := some "TransitGatewayPeeringAttachment" }, (Shape.schema TransitGatewayPeeringAttachment))] + toValue x := record [putOpt "TransitGatewayPeeringAttachment" x.transitGatewayPeeringAttachment] + ofValue v := do + let transitGatewayPeeringAttachment ← v.opt "TransitGatewayPeeringAttachment" + return { transitGatewayPeeringAttachment } + +structure DeleteTransitGatewayPolicyTableEntryResult where + /-- Describes a transit gateway policy table entry. -/ + transitGatewayPolicyTableEntry : Option TransitGatewayPolicyTableEntry := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayPolicyTableEntryResult where + schema := .struct "DeleteTransitGatewayPolicyTableEntryResult" [({ name := "TransitGatewayPolicyTableEntry", xmlName := some "transitGatewayPolicyTableEntry", queryName := some "TransitGatewayPolicyTableEntry" }, (Shape.schema TransitGatewayPolicyTableEntry))] + toValue x := record [putOpt "TransitGatewayPolicyTableEntry" x.transitGatewayPolicyTableEntry] + ofValue v := do + let transitGatewayPolicyTableEntry ← v.opt "TransitGatewayPolicyTableEntry" + return { transitGatewayPolicyTableEntry } + +structure DeleteTransitGatewayPrefixListReferenceResult where + /-- Information about the deleted prefix list reference. -/ + transitGatewayPrefixListReference : Option TransitGatewayPrefixListReference := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayPrefixListReferenceResult where + schema := .struct "DeleteTransitGatewayPrefixListReferenceResult" [({ name := "TransitGatewayPrefixListReference", xmlName := some "transitGatewayPrefixListReference", queryName := some "TransitGatewayPrefixListReference" }, (Shape.schema TransitGatewayPrefixListReference))] + toValue x := record [putOpt "TransitGatewayPrefixListReference" x.transitGatewayPrefixListReference] + ofValue v := do + let transitGatewayPrefixListReference ← v.opt "TransitGatewayPrefixListReference" + return { transitGatewayPrefixListReference } + +structure DeleteTransitGatewayRouteResult where + /-- Information about the route. -/ + route : Option TransitGatewayRoute := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayRouteResult where + schema := .struct "DeleteTransitGatewayRouteResult" [({ name := "Route", xmlName := some "route", queryName := some "Route" }, (Shape.schema TransitGatewayRoute))] + toValue x := record [putOpt "Route" x.route] + ofValue v := do + let route ← v.opt "Route" + return { route } + +structure DeleteTransitGatewayVpcAttachmentResult where + /-- Information about the deleted VPC attachment. -/ + transitGatewayVpcAttachment : Option TransitGatewayVpcAttachment := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayVpcAttachmentResult where + schema := .struct "DeleteTransitGatewayVpcAttachmentResult" [({ name := "TransitGatewayVpcAttachment", xmlName := some "transitGatewayVpcAttachment", queryName := some "TransitGatewayVpcAttachment" }, (Shape.schema TransitGatewayVpcAttachment))] + toValue x := record [putOpt "TransitGatewayVpcAttachment" x.transitGatewayVpcAttachment] + ofValue v := do + let transitGatewayVpcAttachment ← v.opt "TransitGatewayVpcAttachment" + return { transitGatewayVpcAttachment } + +structure DeleteVerifiedAccessEndpointResult where + /-- Details about the Verified Access endpoint. -/ + verifiedAccessEndpoint : Option VerifiedAccessEndpoint := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVerifiedAccessEndpointResult where + schema := .struct "DeleteVerifiedAccessEndpointResult" [({ name := "VerifiedAccessEndpoint", xmlName := some "verifiedAccessEndpoint", queryName := some "VerifiedAccessEndpoint" }, (Shape.schema VerifiedAccessEndpoint))] + toValue x := record [putOpt "VerifiedAccessEndpoint" x.verifiedAccessEndpoint] + ofValue v := do + let verifiedAccessEndpoint ← v.opt "VerifiedAccessEndpoint" + return { verifiedAccessEndpoint } + +structure DeleteVerifiedAccessInstanceResult where + /-- Details about the Verified Access instance. -/ + verifiedAccessInstance : Option VerifiedAccessInstance := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVerifiedAccessInstanceResult where + schema := .struct "DeleteVerifiedAccessInstanceResult" [({ name := "VerifiedAccessInstance", xmlName := some "verifiedAccessInstance", queryName := some "VerifiedAccessInstance" }, (Shape.schema VerifiedAccessInstance))] + toValue x := record [putOpt "VerifiedAccessInstance" x.verifiedAccessInstance] + ofValue v := do + let verifiedAccessInstance ← v.opt "VerifiedAccessInstance" + return { verifiedAccessInstance } + +structure DeprovisionByoipCidrResult where + /-- Information about the address range. -/ + byoipCidr : Option ByoipCidr := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeprovisionByoipCidrResult where + schema := .struct "DeprovisionByoipCidrResult" [({ name := "ByoipCidr", xmlName := some "byoipCidr", queryName := some "ByoipCidr" }, (Shape.schema ByoipCidr))] + toValue x := record [putOpt "ByoipCidr" x.byoipCidr] + ofValue v := do + let byoipCidr ← v.opt "ByoipCidr" + return { byoipCidr } + +structure DeprovisionIpamPoolCidrResult where + /-- The deprovisioned pool CIDR. -/ + ipamPoolCidr : Option IpamPoolCidr := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeprovisionIpamPoolCidrResult where + schema := .struct "DeprovisionIpamPoolCidrResult" [({ name := "IpamPoolCidr", xmlName := some "ipamPoolCidr", queryName := some "IpamPoolCidr" }, (Shape.schema IpamPoolCidr))] + toValue x := record [putOpt "IpamPoolCidr" x.ipamPoolCidr] + ofValue v := do + let ipamPoolCidr ← v.opt "IpamPoolCidr" + return { ipamPoolCidr } + +structure DescribeAccountVpcEncryptionControlResult where + /-- Information about the account-level VPC Encryption Control configuration. -/ + accountVpcEncryptionControl : Option AccountVpcEncryptionControl := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeAccountVpcEncryptionControlResult where + schema := .struct "DescribeAccountVpcEncryptionControlResult" [({ name := "AccountVpcEncryptionControl", xmlName := some "accountVpcEncryptionControl", queryName := some "AccountVpcEncryptionControl" }, (Shape.schema AccountVpcEncryptionControl))] + toValue x := record [putOpt "AccountVpcEncryptionControl" x.accountVpcEncryptionControl] + ofValue v := do + let accountVpcEncryptionControl ← v.opt "AccountVpcEncryptionControl" + return { accountVpcEncryptionControl } + +structure DescribeApplicationStatusChecksResult where + /-- Information about the application status checks. -/ + applicationStatusChecks : Option (List ApplicationStatusCheckResponseObject) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeApplicationStatusChecksResult where + schema := .struct "DescribeApplicationStatusChecksResult" [({ name := "ApplicationStatusChecks", xmlName := some "applicationStatusCheckSet", queryName := some "ApplicationStatusCheckSet" }, (.list (Shape.schema ApplicationStatusCheckResponseObject) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "ApplicationStatusChecks" x.applicationStatusChecks, putOpt "NextToken" x.nextToken] + ofValue v := do + let applicationStatusChecks ← v.opt "ApplicationStatusChecks" + let nextToken ← v.opt "NextToken" + return { applicationStatusChecks, nextToken } + +structure DescribeBundleTasksResult where + /-- Information about the bundle tasks. -/ + bundleTasks : Option (List BundleTask) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeBundleTasksResult where + schema := .struct "DescribeBundleTasksResult" [({ name := "BundleTasks", xmlName := some "bundleInstanceTasksSet", queryName := some "BundleInstanceTasksSet" }, (.list (Shape.schema BundleTask) "item"))] + toValue x := record [putOpt "BundleTasks" x.bundleTasks] + ofValue v := do + let bundleTasks ← v.opt "BundleTasks" + return { bundleTasks } + +structure DescribeByoipCidrsResult where + /-- Information about your address ranges. -/ + byoipCidrs : Option (List ByoipCidr) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeByoipCidrsResult where + schema := .struct "DescribeByoipCidrsResult" [({ name := "ByoipCidrs", xmlName := some "byoipCidrSet", queryName := some "ByoipCidrSet" }, (.list (Shape.schema ByoipCidr) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "ByoipCidrs" x.byoipCidrs, putOpt "NextToken" x.nextToken] + ofValue v := do + let byoipCidrs ← v.opt "ByoipCidrs" + let nextToken ← v.opt "NextToken" + return { byoipCidrs, nextToken } + +structure DescribeCapacityReservationBillingRequestsResult where + /-- Information about the request. -/ + capacityReservationBillingRequests : Option (List CapacityReservationBillingRequest) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityReservationBillingRequestsResult where + schema := .struct "DescribeCapacityReservationBillingRequestsResult" [({ name := "CapacityReservationBillingRequests", xmlName := some "capacityReservationBillingRequestSet", queryName := some "CapacityReservationBillingRequestSet" }, (.list (Shape.schema CapacityReservationBillingRequest) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "CapacityReservationBillingRequests" x.capacityReservationBillingRequests, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityReservationBillingRequests ← v.opt "CapacityReservationBillingRequests" + let nextToken ← v.opt "NextToken" + return { capacityReservationBillingRequests, nextToken } + +structure DescribeCapacityReservationCancellationQuotesResult where + /-- Information about the Capacity Reservation cancellation quotes. -/ + capacityReservationCancellationQuotes : Option (List CapacityReservationCancellationQuote) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityReservationCancellationQuotesResult where + schema := .struct "DescribeCapacityReservationCancellationQuotesResult" [({ name := "CapacityReservationCancellationQuotes", xmlName := some "capacityReservationCancellationQuoteSet", queryName := some "CapacityReservationCancellationQuoteSet" }, (.list (Shape.schema CapacityReservationCancellationQuote) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "CapacityReservationCancellationQuotes" x.capacityReservationCancellationQuotes, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityReservationCancellationQuotes ← v.opt "CapacityReservationCancellationQuotes" + let nextToken ← v.opt "NextToken" + return { capacityReservationCancellationQuotes, nextToken } + +structure DescribeCapacityReservationDateChangeQuotesResult where + /-- Information about the Capacity Reservation date change quotes. -/ + capacityReservationModificationQuotes : Option (List CapacityReservationModificationQuote) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityReservationDateChangeQuotesResult where + schema := .struct "DescribeCapacityReservationDateChangeQuotesResult" [({ name := "CapacityReservationModificationQuotes", xmlName := some "capacityReservationModificationQuoteSet", queryName := some "CapacityReservationModificationQuoteSet" }, (.list (Shape.schema CapacityReservationModificationQuote) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "CapacityReservationModificationQuotes" x.capacityReservationModificationQuotes, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityReservationModificationQuotes ← v.opt "CapacityReservationModificationQuotes" + let nextToken ← v.opt "NextToken" + return { capacityReservationModificationQuotes, nextToken } + +structure DescribeCapacityReservationsResult where + /-- Information about the Capacity Reservations. -/ + capacityReservations : Option (List CapacityReservation) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityReservationsResult where + schema := .struct "DescribeCapacityReservationsResult" [({ name := "CapacityReservations", xmlName := some "capacityReservationSet", queryName := some "CapacityReservationSet" }, (.list (Shape.schema CapacityReservation) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "CapacityReservations" x.capacityReservations, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityReservations ← v.opt "CapacityReservations" + let nextToken ← v.opt "NextToken" + return { capacityReservations, nextToken } + +structure DescribeClientVpnAuthorizationRulesResult where + /-- Information about the authorization rules. -/ + authorizationRules : Option (List AuthorizationRule) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeClientVpnAuthorizationRulesResult where + schema := .struct "DescribeClientVpnAuthorizationRulesResult" [({ name := "AuthorizationRules", xmlName := some "authorizationRule", queryName := some "AuthorizationRule" }, (.list (Shape.schema AuthorizationRule) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "AuthorizationRules" x.authorizationRules, putOpt "NextToken" x.nextToken] + ofValue v := do + let authorizationRules ← v.opt "AuthorizationRules" + let nextToken ← v.opt "NextToken" + return { authorizationRules, nextToken } + +structure DescribeClientVpnConnectionsResult where + /-- Information about the active and terminated client connections. -/ + connections : Option (List ClientVpnConnection) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeClientVpnConnectionsResult where + schema := .struct "DescribeClientVpnConnectionsResult" [({ name := "Connections", xmlName := some "connections", queryName := some "Connections" }, (.list (Shape.schema ClientVpnConnection) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "Connections" x.connections, putOpt "NextToken" x.nextToken] + ofValue v := do + let connections ← v.opt "Connections" + let nextToken ← v.opt "NextToken" + return { connections, nextToken } + +structure DescribeClientVpnRoutesResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the Client VPN endpoint routes. -/ + routes : Option (List ClientVpnRoute) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeClientVpnRoutesResult where + schema := .struct "DescribeClientVpnRoutesResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "Routes", xmlName := some "routes", queryName := some "Routes" }, (.list (Shape.schema ClientVpnRoute) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "Routes" x.routes] + ofValue v := do + let nextToken ← v.opt "NextToken" + let routes ← v.opt "Routes" + return { nextToken, routes } + +structure DescribeClientVpnTargetNetworksResult where + /-- Information about the associated target networks. -/ + clientVpnTargetNetworks : Option (List TargetNetwork) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeClientVpnTargetNetworksResult where + schema := .struct "DescribeClientVpnTargetNetworksResult" [({ name := "ClientVpnTargetNetworks", xmlName := some "clientVpnTargetNetworks", queryName := some "ClientVpnTargetNetworks" }, (.list (Shape.schema TargetNetwork) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "ClientVpnTargetNetworks" x.clientVpnTargetNetworks, putOpt "NextToken" x.nextToken] + ofValue v := do + let clientVpnTargetNetworks ← v.opt "ClientVpnTargetNetworks" + let nextToken ← v.opt "NextToken" + return { clientVpnTargetNetworks, nextToken } + +structure DescribeDhcpOptionsResult where + /-- Information about the DHCP options sets. -/ + dhcpOptions : Option (List DhcpOptions) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeDhcpOptionsResult where + schema := .struct "DescribeDhcpOptionsResult" [({ name := "DhcpOptions", xmlName := some "dhcpOptionsSet", queryName := some "DhcpOptionsSet" }, (.list (Shape.schema DhcpOptions) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "DhcpOptions" x.dhcpOptions, putOpt "NextToken" x.nextToken] + ofValue v := do + let dhcpOptions ← v.opt "DhcpOptions" + let nextToken ← v.opt "NextToken" + return { dhcpOptions, nextToken } + +structure DescribeEgressOnlyInternetGatewaysResult where + /-- Information about the egress-only internet gateways. -/ + egressOnlyInternetGateways : Option (List EgressOnlyInternetGateway) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeEgressOnlyInternetGatewaysResult where + schema := .struct "DescribeEgressOnlyInternetGatewaysResult" [({ name := "EgressOnlyInternetGateways", xmlName := some "egressOnlyInternetGatewaySet", queryName := some "EgressOnlyInternetGatewaySet" }, (.list (Shape.schema EgressOnlyInternetGateway) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "EgressOnlyInternetGateways" x.egressOnlyInternetGateways, putOpt "NextToken" x.nextToken] + ofValue v := do + let egressOnlyInternetGateways ← v.opt "EgressOnlyInternetGateways" + let nextToken ← v.opt "NextToken" + return { egressOnlyInternetGateways, nextToken } + +structure DescribeElasticGpusResult where + /-- Information about the Elastic Graphics accelerators. -/ + elasticGpuSet : Option (List ElasticGpus) := none + /-- The total number of items to return. -/ + maxResults : Option Int := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeElasticGpusResult where + schema := .struct "DescribeElasticGpusResult" [({ name := "ElasticGpuSet", xmlName := some "elasticGpuSet", queryName := some "ElasticGpuSet" }, (.list (Shape.schema ElasticGpus) "item")), + ({ name := "MaxResults", xmlName := some "maxResults", queryName := some "MaxResults" }, .int), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "ElasticGpuSet" x.elasticGpuSet, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let elasticGpuSet ← v.opt "ElasticGpuSet" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { elasticGpuSet, maxResults, nextToken } + +structure DescribeExportTasksResult where + /-- Information about the export tasks. -/ + exportTasks : Option (List ExportTask) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeExportTasksResult where + schema := .struct "DescribeExportTasksResult" [({ name := "ExportTasks", xmlName := some "exportTaskSet", queryName := some "ExportTaskSet" }, (.list (Shape.schema ExportTask) "item"))] + toValue x := record [putOpt "ExportTasks" x.exportTasks] + ofValue v := do + let exportTasks ← v.opt "ExportTasks" + return { exportTasks } + +structure DescribeFlowLogsResult where + /-- Information about the flow logs. -/ + flowLogs : Option (List FlowLog) := none + /-- The token to request the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeFlowLogsResult where + schema := .struct "DescribeFlowLogsResult" [({ name := "FlowLogs", xmlName := some "flowLogSet", queryName := some "FlowLogSet" }, (.list (Shape.schema FlowLog) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "FlowLogs" x.flowLogs, putOpt "NextToken" x.nextToken] + ofValue v := do + let flowLogs ← v.opt "FlowLogs" + let nextToken ← v.opt "NextToken" + return { flowLogs, nextToken } + +structure DescribeFpgaImageAttributeResult where + /-- Information about the attribute. -/ + fpgaImageAttribute : Option FpgaImageAttribute := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeFpgaImageAttributeResult where + schema := .struct "DescribeFpgaImageAttributeResult" [({ name := "FpgaImageAttribute", xmlName := some "fpgaImageAttribute", queryName := some "FpgaImageAttribute" }, (Shape.schema FpgaImageAttribute))] + toValue x := record [putOpt "FpgaImageAttribute" x.fpgaImageAttribute] + ofValue v := do + let fpgaImageAttribute ← v.opt "FpgaImageAttribute" + return { fpgaImageAttribute } + +structure DescribeFpgaImagesResult where + /-- Information about the FPGA images. -/ + fpgaImages : Option (List FpgaImage) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeFpgaImagesResult where + schema := .struct "DescribeFpgaImagesResult" [({ name := "FpgaImages", xmlName := some "fpgaImageSet", queryName := some "FpgaImageSet" }, (.list (Shape.schema FpgaImage) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "FpgaImages" x.fpgaImages, putOpt "NextToken" x.nextToken] + ofValue v := do + let fpgaImages ← v.opt "FpgaImages" + let nextToken ← v.opt "NextToken" + return { fpgaImages, nextToken } + +structure DescribeHostsResult where + /-- Information about the Dedicated Hosts. -/ + hosts : Option (List Host) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeHostsResult where + schema := .struct "DescribeHostsResult" [({ name := "Hosts", xmlName := some "hostSet", queryName := some "HostSet" }, (.list (Shape.schema Host) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "Hosts" x.hosts, putOpt "NextToken" x.nextToken] + ofValue v := do + let hosts ← v.opt "Hosts" + let nextToken ← v.opt "NextToken" + return { hosts, nextToken } + +structure DescribeImageReferencesRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of the images to check for resource references. -/ + imageIds : (List String) + /-- Specifies whether to check all supported Amazon Web Services resource types for image references. -/ + includeAllResourceTypes : Option Bool := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The Amazon Web Services resource types to check for image references. -/ + resourceTypes : Option (List ResourceTypeRequest) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeImageReferencesRequest where + schema := .struct "DescribeImageReferencesRequest" [({ name := "DryRun" }, .bool), + ({ name := "ImageIds", required := true, xmlName := some "ImageId" }, (.list .string "member")), + ({ name := "IncludeAllResourceTypes" }, .bool), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "ResourceTypes", xmlName := some "ResourceType" }, (.list (Shape.schema ResourceTypeRequest) "member"))] + toValue x := record [putOpt "DryRun" x.dryRun, put "ImageIds" x.imageIds, putOpt "IncludeAllResourceTypes" x.includeAllResourceTypes, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "ResourceTypes" x.resourceTypes] + ofValue v := do + let dryRun ← v.opt "DryRun" + let imageIds ← v.req "ImageIds" + let includeAllResourceTypes ← v.opt "IncludeAllResourceTypes" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let resourceTypes ← v.opt "ResourceTypes" + return { dryRun, imageIds, includeAllResourceTypes, maxResults, nextToken, resourceTypes } + +structure DescribeImageUsageReportsResult where + /-- The image usage reports. -/ + imageUsageReports : Option (List ImageUsageReport) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeImageUsageReportsResult where + schema := .struct "DescribeImageUsageReportsResult" [({ name := "ImageUsageReports", xmlName := some "imageUsageReportSet", queryName := some "ImageUsageReportSet" }, (.list (Shape.schema ImageUsageReport) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "ImageUsageReports" x.imageUsageReports, putOpt "NextToken" x.nextToken] + ofValue v := do + let imageUsageReports ← v.opt "ImageUsageReports" + let nextToken ← v.opt "NextToken" + return { imageUsageReports, nextToken } + +structure DescribeImportImageTasksResult where + /-- A list of zero or more import image tasks that are currently active or were completed or canceled in the previous 7 days. -/ + importImageTasks : Option (List ImportImageTask) := none + /-- The token to use to get the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeImportImageTasksResult where + schema := .struct "DescribeImportImageTasksResult" [({ name := "ImportImageTasks", xmlName := some "importImageTaskSet", queryName := some "ImportImageTaskSet" }, (.list (Shape.schema ImportImageTask) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "ImportImageTasks" x.importImageTasks, putOpt "NextToken" x.nextToken] + ofValue v := do + let importImageTasks ← v.opt "ImportImageTasks" + let nextToken ← v.opt "NextToken" + return { importImageTasks, nextToken } + +structure DescribeImportSnapshotTasksResult where + /-- A list of zero or more import snapshot tasks that are currently active or were completed or canceled in the previous 7 days. -/ + importSnapshotTasks : Option (List ImportSnapshotTask) := none + /-- The token to use to get the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeImportSnapshotTasksResult where + schema := .struct "DescribeImportSnapshotTasksResult" [({ name := "ImportSnapshotTasks", xmlName := some "importSnapshotTaskSet", queryName := some "ImportSnapshotTaskSet" }, (.list (Shape.schema ImportSnapshotTask) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "ImportSnapshotTasks" x.importSnapshotTasks, putOpt "NextToken" x.nextToken] + ofValue v := do + let importSnapshotTasks ← v.opt "ImportSnapshotTasks" + let nextToken ← v.opt "NextToken" + return { importSnapshotTasks, nextToken } + +structure DescribeInstanceConnectEndpointsResult where + /-- Information about the EC2 Instance Connect Endpoints. -/ + instanceConnectEndpoints : Option (List Ec2InstanceConnectEndpoint) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceConnectEndpointsResult where + schema := .struct "DescribeInstanceConnectEndpointsResult" [({ name := "InstanceConnectEndpoints", xmlName := some "instanceConnectEndpointSet", queryName := some "InstanceConnectEndpointSet" }, (.list (Shape.schema Ec2InstanceConnectEndpoint) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "InstanceConnectEndpoints" x.instanceConnectEndpoints, putOpt "NextToken" x.nextToken] + ofValue v := do + let instanceConnectEndpoints ← v.opt "InstanceConnectEndpoints" + let nextToken ← v.opt "NextToken" + return { instanceConnectEndpoints, nextToken } + +structure DescribeInstanceEventWindowsResult where + /-- Information about the event windows. -/ + instanceEventWindows : Option (List InstanceEventWindow) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceEventWindowsResult where + schema := .struct "DescribeInstanceEventWindowsResult" [({ name := "InstanceEventWindows", xmlName := some "instanceEventWindowSet", queryName := some "InstanceEventWindowSet" }, (.list (Shape.schema InstanceEventWindow) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "InstanceEventWindows" x.instanceEventWindows, putOpt "NextToken" x.nextToken] + ofValue v := do + let instanceEventWindows ← v.opt "InstanceEventWindows" + let nextToken ← v.opt "NextToken" + return { instanceEventWindows, nextToken } + +structure DescribeInstanceImageMetadataResult where + /-- Information about the instance and the AMI used to launch the instance. -/ + instanceImageMetadata : Option (List InstanceImageMetadata) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceImageMetadataResult where + schema := .struct "DescribeInstanceImageMetadataResult" [({ name := "InstanceImageMetadata", xmlName := some "instanceImageMetadataSet", queryName := some "InstanceImageMetadataSet" }, (.list (Shape.schema InstanceImageMetadata) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "InstanceImageMetadata" x.instanceImageMetadata, putOpt "NextToken" x.nextToken] + ofValue v := do + let instanceImageMetadata ← v.opt "InstanceImageMetadata" + let nextToken ← v.opt "NextToken" + return { instanceImageMetadata, nextToken } + +structure DescribeInternetGatewaysResult where + /-- Information about the internet gateways. -/ + internetGateways : Option (List InternetGateway) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInternetGatewaysResult where + schema := .struct "DescribeInternetGatewaysResult" [({ name := "InternetGateways", xmlName := some "internetGatewaySet", queryName := some "InternetGatewaySet" }, (.list (Shape.schema InternetGateway) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "InternetGateways" x.internetGateways, putOpt "NextToken" x.nextToken] + ofValue v := do + let internetGateways ← v.opt "InternetGateways" + let nextToken ← v.opt "NextToken" + return { internetGateways, nextToken } + +structure DescribeIpamPoolsResult where + /-- Information about the IPAM pools. -/ + ipamPools : Option (List IpamPool) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamPoolsResult where + schema := .struct "DescribeIpamPoolsResult" [({ name := "IpamPools", xmlName := some "ipamPoolSet", queryName := some "IpamPoolSet" }, (.list (Shape.schema IpamPool) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamPools" x.ipamPools, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamPools ← v.opt "IpamPools" + let nextToken ← v.opt "NextToken" + return { ipamPools, nextToken } + +structure DescribeIpamScopesResult where + /-- The scopes you want information on. -/ + ipamScopes : Option (List IpamScope) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeIpamScopesResult where + schema := .struct "DescribeIpamScopesResult" [({ name := "IpamScopes", xmlName := some "ipamScopeSet", queryName := some "IpamScopeSet" }, (.list (Shape.schema IpamScope) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamScopes" x.ipamScopes, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamScopes ← v.opt "IpamScopes" + let nextToken ← v.opt "NextToken" + return { ipamScopes, nextToken } + +structure DescribeMacModificationTasksResult where + /-- Information about the tasks. -/ + macModificationTasks : Option (List MacModificationTask) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeMacModificationTasksResult where + schema := .struct "DescribeMacModificationTasksResult" [({ name := "MacModificationTasks", xmlName := some "macModificationTaskSet", queryName := some "MacModificationTaskSet" }, (.list (Shape.schema MacModificationTask) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "MacModificationTasks" x.macModificationTasks, putOpt "NextToken" x.nextToken] + ofValue v := do + let macModificationTasks ← v.opt "MacModificationTasks" + let nextToken ← v.opt "NextToken" + return { macModificationTasks, nextToken } + +structure DescribeNatGatewaysResult where + /-- Information about the NAT gateways. -/ + natGateways : Option (List NatGateway) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNatGatewaysResult where + schema := .struct "DescribeNatGatewaysResult" [({ name := "NatGateways", xmlName := some "natGatewaySet", queryName := some "NatGatewaySet" }, (.list (Shape.schema NatGateway) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "NatGateways" x.natGateways, putOpt "NextToken" x.nextToken] + ofValue v := do + let natGateways ← v.opt "NatGateways" + let nextToken ← v.opt "NextToken" + return { natGateways, nextToken } + +structure DescribeNetworkAclsResult where + /-- Information about the network ACLs. -/ + networkAcls : Option (List NetworkAcl) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNetworkAclsResult where + schema := .struct "DescribeNetworkAclsResult" [({ name := "NetworkAcls", xmlName := some "networkAclSet", queryName := some "NetworkAclSet" }, (.list (Shape.schema NetworkAcl) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "NetworkAcls" x.networkAcls, putOpt "NextToken" x.nextToken] + ofValue v := do + let networkAcls ← v.opt "NetworkAcls" + let nextToken ← v.opt "NextToken" + return { networkAcls, nextToken } + +structure DescribeNetworkInsightsPathsResult where + /-- Information about the paths. -/ + networkInsightsPaths : Option (List NetworkInsightsPath) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNetworkInsightsPathsResult where + schema := .struct "DescribeNetworkInsightsPathsResult" [({ name := "NetworkInsightsPaths", xmlName := some "networkInsightsPathSet", queryName := some "NetworkInsightsPathSet" }, (.list (Shape.schema NetworkInsightsPath) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "NetworkInsightsPaths" x.networkInsightsPaths, putOpt "NextToken" x.nextToken] + ofValue v := do + let networkInsightsPaths ← v.opt "NetworkInsightsPaths" + let nextToken ← v.opt "NextToken" + return { networkInsightsPaths, nextToken } + +/-- Contains the output of DescribeNetworkInterfaceAttribute. -/ +structure DescribeNetworkInterfaceAttributeResult where + /-- Indicates whether to assign a public IPv4 address to a network interface. -/ + associatePublicIpAddress : Option Bool := none + /-- The attachment (if any) of the network interface. -/ + attachment : Option NetworkInterfaceAttachment := none + /-- The description of the network interface. -/ + description : Option AttributeValue := none + /-- The security groups associated with the network interface. -/ + groups : Option (List GroupIdentifier) := none + /-- The ID of the network interface. -/ + networkInterfaceId : Option String := none + /-- Indicates whether source/destination checking is enabled. -/ + sourceDestCheck : Option AttributeBooleanValue := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNetworkInterfaceAttributeResult where + schema := .struct "DescribeNetworkInterfaceAttributeResult" [({ name := "AssociatePublicIpAddress", xmlName := some "associatePublicIpAddress", queryName := some "AssociatePublicIpAddress" }, .bool), + ({ name := "Attachment", xmlName := some "attachment", queryName := some "Attachment" }, (Shape.schema NetworkInterfaceAttachment)), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, (Shape.schema AttributeValue)), + ({ name := "Groups", xmlName := some "groupSet", queryName := some "GroupSet" }, (.list (Shape.schema GroupIdentifier) "item")), + ({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "SourceDestCheck", xmlName := some "sourceDestCheck", queryName := some "SourceDestCheck" }, (Shape.schema AttributeBooleanValue))] + toValue x := record [putOpt "AssociatePublicIpAddress" x.associatePublicIpAddress, putOpt "Attachment" x.attachment, putOpt "Description" x.description, putOpt "Groups" x.groups, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "SourceDestCheck" x.sourceDestCheck] + ofValue v := do + let associatePublicIpAddress ← v.opt "AssociatePublicIpAddress" + let attachment ← v.opt "Attachment" + let description ← v.opt "Description" + let groups ← v.opt "Groups" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let sourceDestCheck ← v.opt "SourceDestCheck" + return { associatePublicIpAddress, attachment, description, groups, networkInterfaceId, sourceDestCheck } + +/-- Contains the output for DescribeNetworkInterfacePermissions. -/ +structure DescribeNetworkInterfacePermissionsResult where + /-- The network interface permissions. -/ + networkInterfacePermissions : Option (List NetworkInterfacePermission) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNetworkInterfacePermissionsResult where + schema := .struct "DescribeNetworkInterfacePermissionsResult" [({ name := "NetworkInterfacePermissions", xmlName := some "networkInterfacePermissions", queryName := some "NetworkInterfacePermissions" }, (.list (Shape.schema NetworkInterfacePermission) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "NetworkInterfacePermissions" x.networkInterfacePermissions, putOpt "NextToken" x.nextToken] + ofValue v := do + let networkInterfacePermissions ← v.opt "NetworkInterfacePermissions" + let nextToken ← v.opt "NextToken" + return { networkInterfacePermissions, nextToken } + +/-- Contains the output of DescribeReservedInstancesListings. -/ +structure DescribeReservedInstancesListingsResult where + /-- Information about the Reserved Instance listing. -/ + reservedInstancesListings : Option (List ReservedInstancesListing) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeReservedInstancesListingsResult where + schema := .struct "DescribeReservedInstancesListingsResult" [({ name := "ReservedInstancesListings", xmlName := some "reservedInstancesListingsSet", queryName := some "ReservedInstancesListingsSet" }, (.list (Shape.schema ReservedInstancesListing) "item"))] + toValue x := record [putOpt "ReservedInstancesListings" x.reservedInstancesListings] + ofValue v := do + let reservedInstancesListings ← v.opt "ReservedInstancesListings" + return { reservedInstancesListings } + +/-- Contains the output of DescribeReservedInstancesOfferings. -/ +structure DescribeReservedInstancesOfferingsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- A list of Reserved Instances offerings. -/ + reservedInstancesOfferings : Option (List ReservedInstancesOffering) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeReservedInstancesOfferingsResult where + schema := .struct "DescribeReservedInstancesOfferingsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "ReservedInstancesOfferings", xmlName := some "reservedInstancesOfferingsSet", queryName := some "ReservedInstancesOfferingsSet" }, (.list (Shape.schema ReservedInstancesOffering) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "ReservedInstancesOfferings" x.reservedInstancesOfferings] + ofValue v := do + let nextToken ← v.opt "NextToken" + let reservedInstancesOfferings ← v.opt "ReservedInstancesOfferings" + return { nextToken, reservedInstancesOfferings } + +/-- Contains the output for DescribeReservedInstances. -/ +structure DescribeReservedInstancesResult where + /-- A list of Reserved Instances. -/ + reservedInstances : Option (List ReservedInstances) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeReservedInstancesResult where + schema := .struct "DescribeReservedInstancesResult" [({ name := "ReservedInstances", xmlName := some "reservedInstancesSet", queryName := some "ReservedInstancesSet" }, (.list (Shape.schema ReservedInstances) "item"))] + toValue x := record [putOpt "ReservedInstances" x.reservedInstances] + ofValue v := do + let reservedInstances ← v.opt "ReservedInstances" + return { reservedInstances } + +structure DescribeRouteServerPeersResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the described route server peers. -/ + routeServerPeers : Option (List RouteServerPeer) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeRouteServerPeersResult where + schema := .struct "DescribeRouteServerPeersResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "RouteServerPeers", xmlName := some "routeServerPeerSet", queryName := some "RouteServerPeerSet" }, (.list (Shape.schema RouteServerPeer) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "RouteServerPeers" x.routeServerPeers] + ofValue v := do + let nextToken ← v.opt "NextToken" + let routeServerPeers ← v.opt "RouteServerPeers" + return { nextToken, routeServerPeers } + +structure DescribeSecondaryInterfacesResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the secondary interfaces. -/ + secondaryInterfaces : Option (List SecondaryInterface) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSecondaryInterfacesResult where + schema := .struct "DescribeSecondaryInterfacesResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "SecondaryInterfaces", xmlName := some "secondaryInterfaceSet", queryName := some "SecondaryInterfaceSet" }, (.list (Shape.schema SecondaryInterface) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "SecondaryInterfaces" x.secondaryInterfaces] + ofValue v := do + let nextToken ← v.opt "NextToken" + let secondaryInterfaces ← v.opt "SecondaryInterfaces" + return { nextToken, secondaryInterfaces } + +structure DescribeSecondaryNetworksResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the secondary networks. -/ + secondaryNetworks : Option (List SecondaryNetwork) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSecondaryNetworksResult where + schema := .struct "DescribeSecondaryNetworksResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "SecondaryNetworks", xmlName := some "secondaryNetworkSet", queryName := some "SecondaryNetworkSet" }, (.list (Shape.schema SecondaryNetwork) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "SecondaryNetworks" x.secondaryNetworks] + ofValue v := do + let nextToken ← v.opt "NextToken" + let secondaryNetworks ← v.opt "SecondaryNetworks" + return { nextToken, secondaryNetworks } + +structure DescribeSecondarySubnetsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the secondary subnets. -/ + secondarySubnets : Option (List SecondarySubnet) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSecondarySubnetsResult where + schema := .struct "DescribeSecondarySubnetsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "SecondarySubnets", xmlName := some "secondarySubnetSet", queryName := some "SecondarySubnetSet" }, (.list (Shape.schema SecondarySubnet) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "SecondarySubnets" x.secondarySubnets] + ofValue v := do + let nextToken ← v.opt "NextToken" + let secondarySubnets ← v.opt "SecondarySubnets" + return { nextToken, secondarySubnets } + +structure DescribeSecurityGroupsResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about the security groups. -/ + securityGroups : Option (List SecurityGroup) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSecurityGroupsResult where + schema := .struct "DescribeSecurityGroupsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "SecurityGroups", xmlName := some "securityGroupInfo", queryName := some "SecurityGroupInfo" }, (.list (Shape.schema SecurityGroup) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "SecurityGroups" x.securityGroups] + ofValue v := do + let nextToken ← v.opt "NextToken" + let securityGroups ← v.opt "SecurityGroups" + return { nextToken, securityGroups } + +structure DescribeStaleSecurityGroupsResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about the stale security groups. -/ + staleSecurityGroupSet : Option (List StaleSecurityGroup) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeStaleSecurityGroupsResult where + schema := .struct "DescribeStaleSecurityGroupsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "StaleSecurityGroupSet", xmlName := some "staleSecurityGroupSet", queryName := some "StaleSecurityGroupSet" }, (.list (Shape.schema StaleSecurityGroup) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "StaleSecurityGroupSet" x.staleSecurityGroupSet] + ofValue v := do + let nextToken ← v.opt "NextToken" + let staleSecurityGroupSet ← v.opt "StaleSecurityGroupSet" + return { nextToken, staleSecurityGroupSet } + +structure DescribeTrafficMirrorFiltersResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about one or more Traffic Mirror filters. -/ + trafficMirrorFilters : Option (List TrafficMirrorFilter) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTrafficMirrorFiltersResult where + schema := .struct "DescribeTrafficMirrorFiltersResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TrafficMirrorFilters", xmlName := some "trafficMirrorFilterSet", queryName := some "TrafficMirrorFilterSet" }, (.list (Shape.schema TrafficMirrorFilter) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TrafficMirrorFilters" x.trafficMirrorFilters] + ofValue v := do + let nextToken ← v.opt "NextToken" + let trafficMirrorFilters ← v.opt "TrafficMirrorFilters" + return { nextToken, trafficMirrorFilters } + +structure DescribeTransitGatewayAttachmentsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the attachments. -/ + transitGatewayAttachments : Option (List TransitGatewayAttachment) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayAttachmentsResult where + schema := .struct "DescribeTransitGatewayAttachmentsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TransitGatewayAttachments", xmlName := some "transitGatewayAttachments", queryName := some "TransitGatewayAttachments" }, (.list (Shape.schema TransitGatewayAttachment) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TransitGatewayAttachments" x.transitGatewayAttachments] + ofValue v := do + let nextToken ← v.opt "NextToken" + let transitGatewayAttachments ← v.opt "TransitGatewayAttachments" + return { nextToken, transitGatewayAttachments } + +structure DescribeTransitGatewayConnectsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the Connect attachments. -/ + transitGatewayConnects : Option (List TransitGatewayConnect) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayConnectsResult where + schema := .struct "DescribeTransitGatewayConnectsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TransitGatewayConnects", xmlName := some "transitGatewayConnectSet", queryName := some "TransitGatewayConnectSet" }, (.list (Shape.schema TransitGatewayConnect) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TransitGatewayConnects" x.transitGatewayConnects] + ofValue v := do + let nextToken ← v.opt "NextToken" + let transitGatewayConnects ← v.opt "TransitGatewayConnects" + return { nextToken, transitGatewayConnects } + +structure DescribeTransitGatewayMulticastDomainsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the transit gateway multicast domains. -/ + transitGatewayMulticastDomains : Option (List TransitGatewayMulticastDomain) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayMulticastDomainsResult where + schema := .struct "DescribeTransitGatewayMulticastDomainsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TransitGatewayMulticastDomains", xmlName := some "transitGatewayMulticastDomains", queryName := some "TransitGatewayMulticastDomains" }, (.list (Shape.schema TransitGatewayMulticastDomain) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TransitGatewayMulticastDomains" x.transitGatewayMulticastDomains] + ofValue v := do + let nextToken ← v.opt "NextToken" + let transitGatewayMulticastDomains ← v.opt "TransitGatewayMulticastDomains" + return { nextToken, transitGatewayMulticastDomains } + +structure DescribeTransitGatewayPeeringAttachmentsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- The transit gateway peering attachments. -/ + transitGatewayPeeringAttachments : Option (List TransitGatewayPeeringAttachment) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayPeeringAttachmentsResult where + schema := .struct "DescribeTransitGatewayPeeringAttachmentsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TransitGatewayPeeringAttachments", xmlName := some "transitGatewayPeeringAttachments", queryName := some "TransitGatewayPeeringAttachments" }, (.list (Shape.schema TransitGatewayPeeringAttachment) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TransitGatewayPeeringAttachments" x.transitGatewayPeeringAttachments] + ofValue v := do + let nextToken ← v.opt "NextToken" + let transitGatewayPeeringAttachments ← v.opt "TransitGatewayPeeringAttachments" + return { nextToken, transitGatewayPeeringAttachments } + +structure DescribeTransitGatewayVpcAttachmentsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the VPC attachments. -/ + transitGatewayVpcAttachments : Option (List TransitGatewayVpcAttachment) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayVpcAttachmentsResult where + schema := .struct "DescribeTransitGatewayVpcAttachmentsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TransitGatewayVpcAttachments", xmlName := some "transitGatewayVpcAttachments", queryName := some "TransitGatewayVpcAttachments" }, (.list (Shape.schema TransitGatewayVpcAttachment) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TransitGatewayVpcAttachments" x.transitGatewayVpcAttachments] + ofValue v := do + let nextToken ← v.opt "NextToken" + let transitGatewayVpcAttachments ← v.opt "TransitGatewayVpcAttachments" + return { nextToken, transitGatewayVpcAttachments } + +structure DescribeVerifiedAccessEndpointsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Details about the Verified Access endpoints. -/ + verifiedAccessEndpoints : Option (List VerifiedAccessEndpoint) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVerifiedAccessEndpointsResult where + schema := .struct "DescribeVerifiedAccessEndpointsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "VerifiedAccessEndpoints", xmlName := some "verifiedAccessEndpointSet", queryName := some "VerifiedAccessEndpointSet" }, (.list (Shape.schema VerifiedAccessEndpoint) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "VerifiedAccessEndpoints" x.verifiedAccessEndpoints] + ofValue v := do + let nextToken ← v.opt "NextToken" + let verifiedAccessEndpoints ← v.opt "VerifiedAccessEndpoints" + return { nextToken, verifiedAccessEndpoints } + +structure DescribeVerifiedAccessInstancesResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Details about the Verified Access instances. -/ + verifiedAccessInstances : Option (List VerifiedAccessInstance) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVerifiedAccessInstancesResult where + schema := .struct "DescribeVerifiedAccessInstancesResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "VerifiedAccessInstances", xmlName := some "verifiedAccessInstanceSet", queryName := some "VerifiedAccessInstanceSet" }, (.list (Shape.schema VerifiedAccessInstance) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "VerifiedAccessInstances" x.verifiedAccessInstances] + ofValue v := do + let nextToken ← v.opt "NextToken" + let verifiedAccessInstances ← v.opt "VerifiedAccessInstances" + return { nextToken, verifiedAccessInstances } + +structure DescribeVolumesResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about the volumes. -/ + volumes : Option (List Volume) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVolumesResult where + schema := .struct "DescribeVolumesResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "Volumes", xmlName := some "volumeSet", queryName := some "VolumeSet" }, (.list (Shape.schema Volume) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "Volumes" x.volumes] + ofValue v := do + let nextToken ← v.opt "NextToken" + let volumes ← v.opt "Volumes" + return { nextToken, volumes } + +structure DescribeVpcEndpointConnectionsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the VPC endpoint connections. -/ + vpcEndpointConnections : Option (List VpcEndpointConnection) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcEndpointConnectionsResult where + schema := .struct "DescribeVpcEndpointConnectionsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "VpcEndpointConnections", xmlName := some "vpcEndpointConnectionSet", queryName := some "VpcEndpointConnectionSet" }, (.list (Shape.schema VpcEndpointConnection) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "VpcEndpointConnections" x.vpcEndpointConnections] + ofValue v := do + let nextToken ← v.opt "NextToken" + let vpcEndpointConnections ← v.opt "VpcEndpointConnections" + return { nextToken, vpcEndpointConnections } + +structure DescribeVpcEndpointServiceConfigurationsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the services. -/ + serviceConfigurations : Option (List ServiceConfiguration) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcEndpointServiceConfigurationsResult where + schema := .struct "DescribeVpcEndpointServiceConfigurationsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "ServiceConfigurations", xmlName := some "serviceConfigurationSet", queryName := some "ServiceConfigurationSet" }, (.list (Shape.schema ServiceConfiguration) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "ServiceConfigurations" x.serviceConfigurations] + ofValue v := do + let nextToken ← v.opt "NextToken" + let serviceConfigurations ← v.opt "ServiceConfigurations" + return { nextToken, serviceConfigurations } + +structure DescribeVpcEndpointServicesResult where + /-- The token to use when requesting the next set of items. -/ + nextToken : Option String := none + /-- Information about the service. -/ + serviceDetails : Option (List ServiceDetail) := none + /-- The supported services. -/ + serviceNames : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcEndpointServicesResult where + schema := .struct "DescribeVpcEndpointServicesResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "ServiceDetails", xmlName := some "serviceDetailSet", queryName := some "ServiceDetailSet" }, (.list (Shape.schema ServiceDetail) "item")), + ({ name := "ServiceNames", xmlName := some "serviceNameSet", queryName := some "ServiceNameSet" }, (.list .string "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "ServiceDetails" x.serviceDetails, putOpt "ServiceNames" x.serviceNames] + ofValue v := do + let nextToken ← v.opt "NextToken" + let serviceDetails ← v.opt "ServiceDetails" + let serviceNames ← v.opt "ServiceNames" + return { nextToken, serviceDetails, serviceNames } + +structure DescribeVpcEndpointsResult where + /-- The token to use when requesting the next set of items. -/ + nextToken : Option String := none + /-- Information about the VPC endpoints. -/ + vpcEndpoints : Option (List VpcEndpoint) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcEndpointsResult where + schema := .struct "DescribeVpcEndpointsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "VpcEndpoints", xmlName := some "vpcEndpointSet", queryName := some "VpcEndpointSet" }, (.list (Shape.schema VpcEndpoint) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "VpcEndpoints" x.vpcEndpoints] + ofValue v := do + let nextToken ← v.opt "NextToken" + let vpcEndpoints ← v.opt "VpcEndpoints" + return { nextToken, vpcEndpoints } + +/-- Contains the output of DescribeVpnGateways. -/ +structure DescribeVpnGatewaysResult where + /-- Information about one or more virtual private gateways. -/ + vpnGateways : Option (List VpnGateway) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpnGatewaysResult where + schema := .struct "DescribeVpnGatewaysResult" [({ name := "VpnGateways", xmlName := some "vpnGatewaySet", queryName := some "VpnGatewaySet" }, (.list (Shape.schema VpnGateway) "item"))] + toValue x := record [putOpt "VpnGateways" x.vpnGateways] + ofValue v := do + let vpnGateways ← v.opt "VpnGateways" + return { vpnGateways } + +structure DetachVerifiedAccessTrustProviderResult where + /-- Details about the Verified Access instance. -/ + verifiedAccessInstance : Option VerifiedAccessInstance := none + /-- Details about the Verified Access trust provider. -/ + verifiedAccessTrustProvider : Option VerifiedAccessTrustProvider := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DetachVerifiedAccessTrustProviderResult where + schema := .struct "DetachVerifiedAccessTrustProviderResult" [({ name := "VerifiedAccessInstance", xmlName := some "verifiedAccessInstance", queryName := some "VerifiedAccessInstance" }, (Shape.schema VerifiedAccessInstance)), + ({ name := "VerifiedAccessTrustProvider", xmlName := some "verifiedAccessTrustProvider", queryName := some "VerifiedAccessTrustProvider" }, (Shape.schema VerifiedAccessTrustProvider))] + toValue x := record [putOpt "VerifiedAccessInstance" x.verifiedAccessInstance, putOpt "VerifiedAccessTrustProvider" x.verifiedAccessTrustProvider] + ofValue v := do + let verifiedAccessInstance ← v.opt "VerifiedAccessInstance" + let verifiedAccessTrustProvider ← v.opt "VerifiedAccessTrustProvider" + return { verifiedAccessInstance, verifiedAccessTrustProvider } + +structure DisableFastSnapshotRestoresResult where + /-- Information about the snapshots for which fast snapshot restores were successfully disabled. -/ + successful : Option (List DisableFastSnapshotRestoreSuccessItem) := none + /-- Information about the snapshots for which fast snapshot restores could not be disabled. -/ + unsuccessful : Option (List DisableFastSnapshotRestoreErrorItem) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisableFastSnapshotRestoresResult where + schema := .struct "DisableFastSnapshotRestoresResult" [({ name := "Successful", xmlName := some "successful", queryName := some "Successful" }, (.list (Shape.schema DisableFastSnapshotRestoreSuccessItem) "item")), + ({ name := "Unsuccessful", xmlName := some "unsuccessful", queryName := some "Unsuccessful" }, (.list (Shape.schema DisableFastSnapshotRestoreErrorItem) "item"))] + toValue x := record [putOpt "Successful" x.successful, putOpt "Unsuccessful" x.unsuccessful] + ofValue v := do + let successful ← v.opt "Successful" + let unsuccessful ← v.opt "Unsuccessful" + return { successful, unsuccessful } + +structure DisassociateInstanceEventWindowResult where + /-- Information about the event window. -/ + instanceEventWindow : Option InstanceEventWindow := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateInstanceEventWindowResult where + schema := .struct "DisassociateInstanceEventWindowResult" [({ name := "InstanceEventWindow", xmlName := some "instanceEventWindow", queryName := some "InstanceEventWindow" }, (Shape.schema InstanceEventWindow))] + toValue x := record [putOpt "InstanceEventWindow" x.instanceEventWindow] + ofValue v := do + let instanceEventWindow ← v.opt "InstanceEventWindow" + return { instanceEventWindow } + +structure DisassociateSubnetCidrBlockResult where + /-- Information about the IPv6 CIDR block association. -/ + ipv6CidrBlockAssociation : Option SubnetIpv6CidrBlockAssociation := none + /-- The ID of the subnet. -/ + subnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateSubnetCidrBlockResult where + schema := .struct "DisassociateSubnetCidrBlockResult" [({ name := "Ipv6CidrBlockAssociation", xmlName := some "ipv6CidrBlockAssociation", queryName := some "Ipv6CidrBlockAssociation" }, (Shape.schema SubnetIpv6CidrBlockAssociation)), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string)] + toValue x := record [putOpt "Ipv6CidrBlockAssociation" x.ipv6CidrBlockAssociation, putOpt "SubnetId" x.subnetId] + ofValue v := do + let ipv6CidrBlockAssociation ← v.opt "Ipv6CidrBlockAssociation" + let subnetId ← v.opt "SubnetId" + return { ipv6CidrBlockAssociation, subnetId } + +structure DisassociateTransitGatewayMulticastDomainResult where + /-- Information about the association. -/ + associations : Option TransitGatewayMulticastDomainAssociations := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateTransitGatewayMulticastDomainResult where + schema := .struct "DisassociateTransitGatewayMulticastDomainResult" [({ name := "Associations", xmlName := some "associations", queryName := some "Associations" }, (Shape.schema TransitGatewayMulticastDomainAssociations))] + toValue x := record [putOpt "Associations" x.associations] + ofValue v := do + let associations ← v.opt "Associations" + return { associations } + +structure DisassociateVpcCidrBlockResult where + /-- Information about the IPv4 CIDR block association. -/ + cidrBlockAssociation : Option VpcCidrBlockAssociation := none + /-- Information about the IPv6 CIDR block association. -/ + ipv6CidrBlockAssociation : Option VpcIpv6CidrBlockAssociation := none + /-- The ID of the VPC. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DisassociateVpcCidrBlockResult where + schema := .struct "DisassociateVpcCidrBlockResult" [({ name := "CidrBlockAssociation", xmlName := some "cidrBlockAssociation", queryName := some "CidrBlockAssociation" }, (Shape.schema VpcCidrBlockAssociation)), + ({ name := "Ipv6CidrBlockAssociation", xmlName := some "ipv6CidrBlockAssociation", queryName := some "Ipv6CidrBlockAssociation" }, (Shape.schema VpcIpv6CidrBlockAssociation)), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "CidrBlockAssociation" x.cidrBlockAssociation, putOpt "Ipv6CidrBlockAssociation" x.ipv6CidrBlockAssociation, putOpt "VpcId" x.vpcId] + ofValue v := do + let cidrBlockAssociation ← v.opt "CidrBlockAssociation" + let ipv6CidrBlockAssociation ← v.opt "Ipv6CidrBlockAssociation" + let vpcId ← v.opt "VpcId" + return { cidrBlockAssociation, ipv6CidrBlockAssociation, vpcId } + +structure EnableFastSnapshotRestoresResult where + /-- Information about the snapshots for which fast snapshot restores were successfully enabled. -/ + successful : Option (List EnableFastSnapshotRestoreSuccessItem) := none + /-- Information about the snapshots for which fast snapshot restores could not be enabled. -/ + unsuccessful : Option (List EnableFastSnapshotRestoreErrorItem) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnableFastSnapshotRestoresResult where + schema := .struct "EnableFastSnapshotRestoresResult" [({ name := "Successful", xmlName := some "successful", queryName := some "Successful" }, (.list (Shape.schema EnableFastSnapshotRestoreSuccessItem) "item")), + ({ name := "Unsuccessful", xmlName := some "unsuccessful", queryName := some "Unsuccessful" }, (.list (Shape.schema EnableFastSnapshotRestoreErrorItem) "item"))] + toValue x := record [putOpt "Successful" x.successful, putOpt "Unsuccessful" x.unsuccessful] + ofValue v := do + let successful ← v.opt "Successful" + let unsuccessful ← v.opt "Unsuccessful" + return { successful, unsuccessful } + +/-- Describes a flex cost allocation policy. -/ +structure FlexCostAllocationPolicyDescription where + /-- The description of the policy. -/ + description : Option String := none + /-- The Amazon Resource Name (ARN) of the policy. -/ + fcaPolicyArn : Option String := none + /-- The ID of the policy. -/ + fcaPolicyId : Option String := none + /-- The policy document that defines cost allocation for EC2 instances. -/ + instanceFcaPolicyDocument : Option InstanceFlexCostAllocationPolicyDocument := none + /-- The number of the latest version of the policy. -/ + latestVersion : Option Int := none + /-- The entity that manages the policy. -/ + managedBy : Option ManagedBy := none + /-- The policy document that defines cost allocation for NAT gateways. -/ + natFcaPolicyDocument : Option NatFlexCostAllocationPolicyDocument := none + /-- The type of network resource that the policy applies to. -/ + networkResourceType : Option FlexCostAllocationNetworkResourceType := none + /-- The ID of the account that owns the policy. -/ + ownerAccount : Option String := none + /-- The policy document that defines cost allocation for Amazon VPC peering connections. -/ + pcxFcaPolicyDocument : Option PcxFlexCostAllocationPolicyDocument := none + /-- The date and time when the policy was created. -/ + policyCreatedAt : Option Timestamp := none + /-- Indicates whether showback reporting is enabled for the policy. -/ + showBackEnabled : Option Bool := none + /-- The tags assigned to the policy. -/ + tags : Option (List Tag) := none + /-- The date and time when the policy was last updated. -/ + updatedAt : Option Timestamp := none + /-- The date and time when the latest version of the policy is expected to apply to network traffic. -/ + versionExpectedEffectiveAt : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FlexCostAllocationPolicyDescription where + schema := .struct "FlexCostAllocationPolicyDescription" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "FcaPolicyArn", xmlName := some "fcaPolicyArn", queryName := some "FcaPolicyArn" }, .string), + ({ name := "FcaPolicyId", xmlName := some "fcaPolicyId", queryName := some "FcaPolicyId" }, .string), + ({ name := "InstanceFcaPolicyDocument", xmlName := some "instanceFcaPolicyDocument", queryName := some "InstanceFcaPolicyDocument" }, (Shape.schema InstanceFlexCostAllocationPolicyDocument)), + ({ name := "LatestVersion", xmlName := some "latestVersion", queryName := some "LatestVersion" }, .int), + ({ name := "ManagedBy", xmlName := some "managedBy", queryName := some "ManagedBy" }, (Shape.schema ManagedBy)), + ({ name := "NatFcaPolicyDocument", xmlName := some "natFcaPolicyDocument", queryName := some "NatFcaPolicyDocument" }, (Shape.schema NatFlexCostAllocationPolicyDocument)), + ({ name := "NetworkResourceType", xmlName := some "networkResourceType", queryName := some "NetworkResourceType" }, (Shape.schema FlexCostAllocationNetworkResourceType)), + ({ name := "OwnerAccount", xmlName := some "ownerAccount", queryName := some "OwnerAccount" }, .string), + ({ name := "PcxFcaPolicyDocument", xmlName := some "pcxFcaPolicyDocument", queryName := some "PcxFcaPolicyDocument" }, (Shape.schema PcxFlexCostAllocationPolicyDocument)), + ({ name := "PolicyCreatedAt", xmlName := some "policyCreatedAt", queryName := some "PolicyCreatedAt" }, (.time none)), + ({ name := "ShowBackEnabled", xmlName := some "showBackEnabled", queryName := some "ShowBackEnabled" }, .bool), + ({ name := "Tags", xmlName := some "tags", queryName := some "Tags" }, (.list (Shape.schema Tag) "item")), + ({ name := "UpdatedAt", xmlName := some "updatedAt", queryName := some "UpdatedAt" }, (.time none)), + ({ name := "VersionExpectedEffectiveAt", xmlName := some "versionExpectedEffectiveAt", queryName := some "VersionExpectedEffectiveAt" }, (.time none))] + toValue x := record [putOpt "Description" x.description, putOpt "FcaPolicyArn" x.fcaPolicyArn, putOpt "FcaPolicyId" x.fcaPolicyId, putOpt "InstanceFcaPolicyDocument" x.instanceFcaPolicyDocument, putOpt "LatestVersion" x.latestVersion, putOpt "ManagedBy" x.managedBy, putOpt "NatFcaPolicyDocument" x.natFcaPolicyDocument, putOpt "NetworkResourceType" x.networkResourceType, putOpt "OwnerAccount" x.ownerAccount, putOpt "PcxFcaPolicyDocument" x.pcxFcaPolicyDocument, putOpt "PolicyCreatedAt" x.policyCreatedAt, putOpt "ShowBackEnabled" x.showBackEnabled, putOpt "Tags" x.tags, putOpt "UpdatedAt" x.updatedAt, putOpt "VersionExpectedEffectiveAt" x.versionExpectedEffectiveAt] + ofValue v := do + let description ← v.opt "Description" + let fcaPolicyArn ← v.opt "FcaPolicyArn" + let fcaPolicyId ← v.opt "FcaPolicyId" + let instanceFcaPolicyDocument ← v.opt "InstanceFcaPolicyDocument" + let latestVersion ← v.opt "LatestVersion" + let managedBy ← v.opt "ManagedBy" + let natFcaPolicyDocument ← v.opt "NatFcaPolicyDocument" + let networkResourceType ← v.opt "NetworkResourceType" + let ownerAccount ← v.opt "OwnerAccount" + let pcxFcaPolicyDocument ← v.opt "PcxFcaPolicyDocument" + let policyCreatedAt ← v.opt "PolicyCreatedAt" + let showBackEnabled ← v.opt "ShowBackEnabled" + let tags ← v.opt "Tags" + let updatedAt ← v.opt "UpdatedAt" + let versionExpectedEffectiveAt ← v.opt "VersionExpectedEffectiveAt" + return { description, fcaPolicyArn, fcaPolicyId, instanceFcaPolicyDocument, latestVersion, managedBy, natFcaPolicyDocument, networkResourceType, ownerAccount, pcxFcaPolicyDocument, policyCreatedAt, showBackEnabled, tags, updatedAt, versionExpectedEffectiveAt } + +/-- Describes a version of a flex cost allocation policy. -/ +structure FlexCostAllocationPolicyVersion where + /-- The date and time when this version of the policy was created. -/ + createdAt : Option Timestamp := none + /-- The description of this version of the policy. -/ + description : Option String := none + /-- The date and time when this version of the policy is expected to apply to network traffic. -/ + expectedEffectiveAt : Option Timestamp := none + /-- The ID of the policy. -/ + fcaPolicyId : Option String := none + /-- The policy document that defines cost allocation for EC2 instances. -/ + instanceFcaPolicyDocument : Option InstanceFlexCostAllocationPolicyDocument := none + /-- The policy document that defines cost allocation for NAT gateways. -/ + natFcaPolicyDocument : Option NatFlexCostAllocationPolicyDocument := none + /-- The type of network resource that the policy applies to. -/ + networkResourceType : Option FlexCostAllocationNetworkResourceType := none + /-- The policy document that defines cost allocation for Amazon VPC peering connections. -/ + pcxFcaPolicyDocument : Option PcxFlexCostAllocationPolicyDocument := none + /-- Indicates whether showback reporting is enabled for this version of the policy. -/ + showBackEnabled : Option Bool := none + /-- The version number. -/ + version : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FlexCostAllocationPolicyVersion where + schema := .struct "FlexCostAllocationPolicyVersion" [({ name := "CreatedAt", xmlName := some "createdAt", queryName := some "CreatedAt" }, (.time none)), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "ExpectedEffectiveAt", xmlName := some "expectedEffectiveAt", queryName := some "ExpectedEffectiveAt" }, (.time none)), + ({ name := "FcaPolicyId", xmlName := some "fcaPolicyId", queryName := some "FcaPolicyId" }, .string), + ({ name := "InstanceFcaPolicyDocument", xmlName := some "instanceFcaPolicyDocument", queryName := some "InstanceFcaPolicyDocument" }, (Shape.schema InstanceFlexCostAllocationPolicyDocument)), + ({ name := "NatFcaPolicyDocument", xmlName := some "natFcaPolicyDocument", queryName := some "NatFcaPolicyDocument" }, (Shape.schema NatFlexCostAllocationPolicyDocument)), + ({ name := "NetworkResourceType", xmlName := some "networkResourceType", queryName := some "NetworkResourceType" }, (Shape.schema FlexCostAllocationNetworkResourceType)), + ({ name := "PcxFcaPolicyDocument", xmlName := some "pcxFcaPolicyDocument", queryName := some "PcxFcaPolicyDocument" }, (Shape.schema PcxFlexCostAllocationPolicyDocument)), + ({ name := "ShowBackEnabled", xmlName := some "showBackEnabled", queryName := some "ShowBackEnabled" }, .bool), + ({ name := "Version", xmlName := some "version", queryName := some "Version" }, .int)] + toValue x := record [putOpt "CreatedAt" x.createdAt, putOpt "Description" x.description, putOpt "ExpectedEffectiveAt" x.expectedEffectiveAt, putOpt "FcaPolicyId" x.fcaPolicyId, putOpt "InstanceFcaPolicyDocument" x.instanceFcaPolicyDocument, putOpt "NatFcaPolicyDocument" x.natFcaPolicyDocument, putOpt "NetworkResourceType" x.networkResourceType, putOpt "PcxFcaPolicyDocument" x.pcxFcaPolicyDocument, putOpt "ShowBackEnabled" x.showBackEnabled, putOpt "Version" x.version] + ofValue v := do + let createdAt ← v.opt "CreatedAt" + let description ← v.opt "Description" + let expectedEffectiveAt ← v.opt "ExpectedEffectiveAt" + let fcaPolicyId ← v.opt "FcaPolicyId" + let instanceFcaPolicyDocument ← v.opt "InstanceFcaPolicyDocument" + let natFcaPolicyDocument ← v.opt "NatFcaPolicyDocument" + let networkResourceType ← v.opt "NetworkResourceType" + let pcxFcaPolicyDocument ← v.opt "PcxFcaPolicyDocument" + let showBackEnabled ← v.opt "ShowBackEnabled" + let version ← v.opt "Version" + return { createdAt, description, expectedEffectiveAt, fcaPolicyId, instanceFcaPolicyDocument, natFcaPolicyDocument, networkResourceType, pcxFcaPolicyDocument, showBackEnabled, version } + +structure GetAllowedImagesSettingsResult where + /-- The list of criteria for images that are discoverable and usable in the account in the specified Amazon Web Services Region. -/ + imageCriteria : Option (List ImageCriterion) := none + /-- The entity that manages the Allowed AMIs settings. -/ + managedBy : Option ManagedBy := none + /-- The current state of the Allowed AMIs setting at the account level in the specified Amazon Web Services Region. -/ + state : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetAllowedImagesSettingsResult where + schema := .struct "GetAllowedImagesSettingsResult" [({ name := "ImageCriteria", xmlName := some "imageCriterionSet", queryName := some "ImageCriterionSet" }, (.list (Shape.schema ImageCriterion) "item")), + ({ name := "ManagedBy", xmlName := some "managedBy", queryName := some "ManagedBy" }, (Shape.schema ManagedBy)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, .string)] + toValue x := record [putOpt "ImageCriteria" x.imageCriteria, putOpt "ManagedBy" x.managedBy, putOpt "State" x.state] + ofValue v := do + let imageCriteria ← v.opt "ImageCriteria" + let managedBy ← v.opt "ManagedBy" + let state ← v.opt "State" + return { imageCriteria, managedBy, state } + +structure GetCapacityManagerMetricDataRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The end time for the metric data query, in ISO 8601 format. -/ + endTime : Timestamp + /-- Conditions to filter the metric data. -/ + filterBy : Option (List CapacityManagerCondition) := none + /-- The dimensions by which to group the metric data. -/ + groupBy : Option (List GroupBy) := none + /-- The maximum number of data points to return. -/ + maxResults : Option Int := none + /-- The names of the metrics to retrieve. -/ + metricNames : (List Metric) + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The granularity, in seconds, of the returned data points. -/ + period : Int + /-- The start time for the metric data query, in ISO 8601 format. -/ + startTime : Timestamp +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetCapacityManagerMetricDataRequest where + schema := .struct "GetCapacityManagerMetricDataRequest" [({ name := "DryRun" }, .bool), + ({ name := "EndTime", required := true }, (.time none)), + ({ name := "FilterBy" }, (.list (Shape.schema CapacityManagerCondition) "item")), + ({ name := "GroupBy", xmlName := some "GroupBy" }, (.list (Shape.schema GroupBy) "item")), + ({ name := "MaxResults" }, .int), + ({ name := "MetricNames", required := true, xmlName := some "MetricName" }, (.list (Shape.schema Metric) "item")), + ({ name := "NextToken" }, .string), + ({ name := "Period", required := true }, .int), + ({ name := "StartTime", required := true }, (.time none))] + toValue x := record [putOpt "DryRun" x.dryRun, put "EndTime" x.endTime, putOpt "FilterBy" x.filterBy, putOpt "GroupBy" x.groupBy, putOpt "MaxResults" x.maxResults, put "MetricNames" x.metricNames, putOpt "NextToken" x.nextToken, put "Period" x.period, put "StartTime" x.startTime] + ofValue v := do + let dryRun ← v.opt "DryRun" + let endTime ← v.req "EndTime" + let filterBy ← v.opt "FilterBy" + let groupBy ← v.opt "GroupBy" + let maxResults ← v.opt "MaxResults" + let metricNames ← v.req "MetricNames" + let nextToken ← v.opt "NextToken" + let period ← v.req "Period" + let startTime ← v.req "StartTime" + return { dryRun, endTime, filterBy, groupBy, maxResults, metricNames, nextToken, period, startTime } + +structure GetCapacityManagerMetricDataResult where + /-- The metric data points returned by the query. -/ + metricDataResults : Option (List MetricDataResult) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetCapacityManagerMetricDataResult where + schema := .struct "GetCapacityManagerMetricDataResult" [({ name := "MetricDataResults", xmlName := some "metricDataResultSet", queryName := some "MetricDataResultSet" }, (.list (Shape.schema MetricDataResult) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "MetricDataResults" x.metricDataResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let metricDataResults ← v.opt "MetricDataResults" + let nextToken ← v.opt "NextToken" + return { metricDataResults, nextToken } + +structure GetCapacityManagerMetricDimensionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The end time for the dimension query, in ISO 8601 format. -/ + endTime : Timestamp + /-- Conditions to filter which dimension values are returned. -/ + filterBy : Option (List CapacityManagerCondition) := none + /-- The dimensions to group by when retrieving available dimension values. -/ + groupBy : (List GroupBy) + /-- The maximum number of dimension combinations to return. -/ + maxResults : Option Int := none + /-- The metric names to use as an additional filter when retrieving dimensions. -/ + metricNames : (List Metric) + /-- The token for the next page of results. -/ + nextToken : Option String := none + /-- The start time for the dimension query, in ISO 8601 format. -/ + startTime : Timestamp +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetCapacityManagerMetricDimensionsRequest where + schema := .struct "GetCapacityManagerMetricDimensionsRequest" [({ name := "DryRun" }, .bool), + ({ name := "EndTime", required := true }, (.time none)), + ({ name := "FilterBy" }, (.list (Shape.schema CapacityManagerCondition) "item")), + ({ name := "GroupBy", required := true, xmlName := some "GroupBy" }, (.list (Shape.schema GroupBy) "item")), + ({ name := "MaxResults" }, .int), + ({ name := "MetricNames", required := true, xmlName := some "MetricName" }, (.list (Shape.schema Metric) "item")), + ({ name := "NextToken" }, .string), + ({ name := "StartTime", required := true }, (.time none))] + toValue x := record [putOpt "DryRun" x.dryRun, put "EndTime" x.endTime, putOpt "FilterBy" x.filterBy, put "GroupBy" x.groupBy, putOpt "MaxResults" x.maxResults, put "MetricNames" x.metricNames, putOpt "NextToken" x.nextToken, put "StartTime" x.startTime] + ofValue v := do + let dryRun ← v.opt "DryRun" + let endTime ← v.req "EndTime" + let filterBy ← v.opt "FilterBy" + let groupBy ← v.req "GroupBy" + let maxResults ← v.opt "MaxResults" + let metricNames ← v.req "MetricNames" + let nextToken ← v.opt "NextToken" + let startTime ← v.req "StartTime" + return { dryRun, endTime, filterBy, groupBy, maxResults, metricNames, nextToken, startTime } + +structure GetFlowLogsIntegrationTemplateRequest where + /-- To store the CloudFormation template in Amazon S3, specify the location in Amazon S3. -/ + configDeliveryS3DestinationArn : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the flow log. -/ + flowLogId : String + /-- Information about the service integration. -/ + integrateServices : IntegrateServices +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetFlowLogsIntegrationTemplateRequest where + schema := .struct "GetFlowLogsIntegrationTemplateRequest" [({ name := "ConfigDeliveryS3DestinationArn", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "FlowLogId", required := true }, .string), + ({ name := "IntegrateServices", required := true, xmlName := some "IntegrateService" }, (Shape.schema IntegrateServices))] + toValue x := record [put "ConfigDeliveryS3DestinationArn" x.configDeliveryS3DestinationArn, putOpt "DryRun" x.dryRun, put "FlowLogId" x.flowLogId, put "IntegrateServices" x.integrateServices] + ofValue v := do + let configDeliveryS3DestinationArn ← v.req "ConfigDeliveryS3DestinationArn" + let dryRun ← v.opt "DryRun" + let flowLogId ← v.req "FlowLogId" + let integrateServices ← v.req "IntegrateServices" + return { configDeliveryS3DestinationArn, dryRun, flowLogId, integrateServices } + +structure GetIpamDiscoveredAccountsResult where + /-- Discovered accounts. -/ + ipamDiscoveredAccounts : Option (List IpamDiscoveredAccount) := none + /-- Specify the pagination token from a previous request to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamDiscoveredAccountsResult where + schema := .struct "GetIpamDiscoveredAccountsResult" [({ name := "IpamDiscoveredAccounts", xmlName := some "ipamDiscoveredAccountSet", queryName := some "IpamDiscoveredAccountSet" }, (.list (Shape.schema IpamDiscoveredAccount) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamDiscoveredAccounts" x.ipamDiscoveredAccounts, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamDiscoveredAccounts ← v.opt "IpamDiscoveredAccounts" + let nextToken ← v.opt "NextToken" + return { ipamDiscoveredAccounts, nextToken } + +structure GetIpamDiscoveredPublicAddressesResult where + /-- IPAM discovered public addresses. -/ + ipamDiscoveredPublicAddresses : Option (List IpamDiscoveredPublicAddress) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- The oldest successful resource discovery time. -/ + oldestSampleTime : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamDiscoveredPublicAddressesResult where + schema := .struct "GetIpamDiscoveredPublicAddressesResult" [({ name := "IpamDiscoveredPublicAddresses", xmlName := some "ipamDiscoveredPublicAddressSet", queryName := some "IpamDiscoveredPublicAddressSet" }, (.list (Shape.schema IpamDiscoveredPublicAddress) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "OldestSampleTime", xmlName := some "oldestSampleTime", queryName := some "OldestSampleTime" }, (.time none))] + toValue x := record [putOpt "IpamDiscoveredPublicAddresses" x.ipamDiscoveredPublicAddresses, putOpt "NextToken" x.nextToken, putOpt "OldestSampleTime" x.oldestSampleTime] + ofValue v := do + let ipamDiscoveredPublicAddresses ← v.opt "IpamDiscoveredPublicAddresses" + let nextToken ← v.opt "NextToken" + let oldestSampleTime ← v.opt "OldestSampleTime" + return { ipamDiscoveredPublicAddresses, nextToken, oldestSampleTime } + +structure GetIpamPoolCidrsResult where + /-- Information about the CIDRs provisioned to an IPAM pool. -/ + ipamPoolCidrs : Option (List IpamPoolCidr) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamPoolCidrsResult where + schema := .struct "GetIpamPoolCidrsResult" [({ name := "IpamPoolCidrs", xmlName := some "ipamPoolCidrSet", queryName := some "IpamPoolCidrSet" }, (.list (Shape.schema IpamPoolCidr) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "IpamPoolCidrs" x.ipamPoolCidrs, putOpt "NextToken" x.nextToken] + ofValue v := do + let ipamPoolCidrs ← v.opt "IpamPoolCidrs" + let nextToken ← v.opt "NextToken" + return { ipamPoolCidrs, nextToken } + +structure GetIpamPrefixListResolverRulesResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- The CIDR selection rules for the IPAM prefix list resolver. -/ + rules : Option (List IpamPrefixListResolverRule) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetIpamPrefixListResolverRulesResult where + schema := .struct "GetIpamPrefixListResolverRulesResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "Rules", xmlName := some "ruleSet", queryName := some "RuleSet" }, (.list (Shape.schema IpamPrefixListResolverRule) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "Rules" x.rules] + ofValue v := do + let nextToken ← v.opt "NextToken" + let rules ← v.opt "Rules" + return { nextToken, rules } + +structure GetRouteServerRoutingDatabaseResult where + /-- Indicates whether routes are being persisted in the routing database. -/ + areRoutesPersisted : Option Bool := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- The collection of routes in the route server's routing database. -/ + routes : Option (List RouteServerRoute) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetRouteServerRoutingDatabaseResult where + schema := .struct "GetRouteServerRoutingDatabaseResult" [({ name := "AreRoutesPersisted", xmlName := some "areRoutesPersisted", queryName := some "AreRoutesPersisted" }, .bool), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "Routes", xmlName := some "routeSet", queryName := some "RouteSet" }, (.list (Shape.schema RouteServerRoute) "item"))] + toValue x := record [putOpt "AreRoutesPersisted" x.areRoutesPersisted, putOpt "NextToken" x.nextToken, putOpt "Routes" x.routes] + ofValue v := do + let areRoutesPersisted ← v.opt "AreRoutesPersisted" + let nextToken ← v.opt "NextToken" + let routes ← v.opt "Routes" + return { areRoutesPersisted, nextToken, routes } + +structure GetTransitGatewayMeteringPolicyEntriesResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the transit gateway metering policy entries. -/ + transitGatewayMeteringPolicyEntries : Option (List TransitGatewayMeteringPolicyEntry) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetTransitGatewayMeteringPolicyEntriesResult where + schema := .struct "GetTransitGatewayMeteringPolicyEntriesResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TransitGatewayMeteringPolicyEntries", xmlName := some "transitGatewayMeteringPolicyEntries", queryName := some "TransitGatewayMeteringPolicyEntries" }, (.list (Shape.schema TransitGatewayMeteringPolicyEntry) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TransitGatewayMeteringPolicyEntries" x.transitGatewayMeteringPolicyEntries] + ofValue v := do + let nextToken ← v.opt "NextToken" + let transitGatewayMeteringPolicyEntries ← v.opt "TransitGatewayMeteringPolicyEntries" + return { nextToken, transitGatewayMeteringPolicyEntries } + +structure GetTransitGatewayMulticastDomainAssociationsResult where + /-- Information about the multicast domain associations. -/ + multicastDomainAssociations : Option (List TransitGatewayMulticastDomainAssociation) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetTransitGatewayMulticastDomainAssociationsResult where + schema := .struct "GetTransitGatewayMulticastDomainAssociationsResult" [({ name := "MulticastDomainAssociations", xmlName := some "multicastDomainAssociations", queryName := some "MulticastDomainAssociations" }, (.list (Shape.schema TransitGatewayMulticastDomainAssociation) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "MulticastDomainAssociations" x.multicastDomainAssociations, putOpt "NextToken" x.nextToken] + ofValue v := do + let multicastDomainAssociations ← v.opt "MulticastDomainAssociations" + let nextToken ← v.opt "NextToken" + return { multicastDomainAssociations, nextToken } + +structure GetTransitGatewayPolicyTableEntriesResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- The entries for the transit gateway policy table. -/ + transitGatewayPolicyTableEntries : Option (List TransitGatewayPolicyTableEntry) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetTransitGatewayPolicyTableEntriesResult where + schema := .struct "GetTransitGatewayPolicyTableEntriesResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TransitGatewayPolicyTableEntries", xmlName := some "transitGatewayPolicyTableEntries", queryName := some "TransitGatewayPolicyTableEntries" }, (.list (Shape.schema TransitGatewayPolicyTableEntry) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TransitGatewayPolicyTableEntries" x.transitGatewayPolicyTableEntries] + ofValue v := do + let nextToken ← v.opt "NextToken" + let transitGatewayPolicyTableEntries ← v.opt "TransitGatewayPolicyTableEntries" + return { nextToken, transitGatewayPolicyTableEntries } + +structure GetTransitGatewayPrefixListReferencesResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the prefix list references. -/ + transitGatewayPrefixListReferences : Option (List TransitGatewayPrefixListReference) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetTransitGatewayPrefixListReferencesResult where + schema := .struct "GetTransitGatewayPrefixListReferencesResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TransitGatewayPrefixListReferences", xmlName := some "transitGatewayPrefixListReferenceSet", queryName := some "TransitGatewayPrefixListReferenceSet" }, (.list (Shape.schema TransitGatewayPrefixListReference) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TransitGatewayPrefixListReferences" x.transitGatewayPrefixListReferences] + ofValue v := do + let nextToken ← v.opt "NextToken" + let transitGatewayPrefixListReferences ← v.opt "TransitGatewayPrefixListReferences" + return { nextToken, transitGatewayPrefixListReferences } + +/-- Describes an image. -/ +structure Image where + /-- The architecture of the image. -/ + architecture : Option ArchitectureValues := none + /-- Any block device mapping entries. -/ + blockDeviceMappings : Option (List BlockDeviceMapping) := none + /-- The boot mode of the image. -/ + bootMode : Option BootModeValues := none + /-- The date and time the image was created. -/ + creationDate : Option String := none + /-- The date and time to deprecate the AMI, in UTC, in the following format: YYYY - MM - DD T HH : MM : SS Z. -/ + deprecationTime : Option String := none + /-- Indicates whether deregistration protection is enabled for the AMI. -/ + deregistrationProtection : Option String := none + /-- The description of the AMI that was provided during image creation. -/ + description : Option String := none + /-- Specifies whether enhanced networking with ENA is enabled. -/ + enaSupport : Option Bool := none + /-- Indicates whether the image is eligible for Amazon Web Services Free Tier. -/ + freeTierEligible : Option Bool := none + /-- The hypervisor type of the image. -/ + hypervisor : Option HypervisorType := none + /-- If true , the AMI satisfies the criteria for Allowed AMIs and can be discovered and used in the account. -/ + imageAllowed : Option Bool := none + /-- The ID of the AMI. -/ + imageId : Option String := none + /-- The location of the AMI. -/ + imageLocation : Option String := none + /-- The owner alias ( amazon | aws-backup-vault | aws-marketplace ). -/ + imageOwnerAlias : Option String := none + /-- The type of image. -/ + imageType : Option ImageTypeValues := none + /-- The watermarks attached to the AMI. -/ + imageWatermarks : Option (List ImageWatermark) := none + /-- If v2.0 , it indicates that IMDSv2 is specified in the AMI. -/ + imdsSupport : Option ImdsSupportValues := none + /-- The instance type specification for the AMI, which defines which instance types are compatible with this image. -/ + instanceTypeSpecification : Option InstanceTypeSpecification := none + /-- The kernel associated with the image, if any. -/ + kernelId : Option String := none + /-- The date and time, in ISO 8601 date-time format , when the AMI was last used to launch an EC2 instance. -/ + lastLaunchedTime : Option String := none + /-- The name of the AMI that was provided during image creation. -/ + name : Option String := none + /-- The ID of the Amazon Web Services account that owns the image. -/ + ownerId : Option String := none + /-- This value is set to windows for Windows AMIs; otherwise, it is blank. -/ + platform : Option PlatformValues := none + /-- The platform details associated with the billing code of the AMI. -/ + platformDetails : Option String := none + /-- Any product codes associated with the AMI. -/ + productCodes : Option (List ProductCode) := none + /-- Indicates whether the image has public launch permissions. -/ + «public» : Option Bool := none + /-- The name of the public Systems Manager parameter that resolves to this AMI, under the aws/service/ namespace. -/ + publicSsmParameterName : Option String := none + /-- The RAM disk associated with the image, if any. -/ + ramdiskId : Option String := none + /-- The device name of the root device volume (for example, /dev/sda1 ). -/ + rootDeviceName : Option String := none + /-- The type of root device used by the AMI. -/ + rootDeviceType : Option DeviceType := none + /-- The Amazon Inspector scan results for the AMI. -/ + scanResults : Option ScanResults := none + /-- The ID of the source AMI from which the AMI was created. -/ + sourceImageId : Option String := none + /-- The Region of the source AMI. -/ + sourceImageRegion : Option String := none + /-- The ID of the instance that the AMI was created from if the AMI was created using CreateImage . -/ + sourceInstanceId : Option String := none + /-- Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled. -/ + sriovNetSupport : Option String := none + /-- The current state of the AMI. -/ + state : Option ImageState := none + /-- The reason for the state change. -/ + stateReason : Option StateReason := none + /-- Any tags assigned to the image. -/ + tags : Option (List Tag) := none + /-- If the image is configured for NitroTPM support, the value is v2.0 . -/ + tpmSupport : Option TpmSupportValues := none + /-- The operation of the Amazon EC2 instance and the billing code that is associated with the AMI. -/ + usageOperation : Option String := none + /-- The type of virtualization of the AMI. -/ + virtualizationType : Option VirtualizationType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Image where + schema := .struct "Image" [({ name := "Architecture", xmlName := some "architecture", queryName := some "Architecture" }, (Shape.schema ArchitectureValues)), + ({ name := "BlockDeviceMappings", xmlName := some "blockDeviceMapping", queryName := some "BlockDeviceMapping" }, (.list (Shape.schema BlockDeviceMapping) "item")), + ({ name := "BootMode", xmlName := some "bootMode", queryName := some "BootMode" }, (Shape.schema BootModeValues)), + ({ name := "CreationDate", xmlName := some "creationDate", queryName := some "CreationDate" }, .string), + ({ name := "DeprecationTime", xmlName := some "deprecationTime", queryName := some "DeprecationTime" }, .string), + ({ name := "DeregistrationProtection", xmlName := some "deregistrationProtection", queryName := some "DeregistrationProtection" }, .string), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "EnaSupport", xmlName := some "enaSupport", queryName := some "EnaSupport" }, .bool), + ({ name := "FreeTierEligible", xmlName := some "freeTierEligible", queryName := some "FreeTierEligible" }, .bool), + ({ name := "Hypervisor", xmlName := some "hypervisor", queryName := some "Hypervisor" }, (Shape.schema HypervisorType)), + ({ name := "ImageAllowed", xmlName := some "imageAllowed", queryName := some "ImageAllowed" }, .bool), + ({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "ImageLocation", xmlName := some "imageLocation", queryName := some "ImageLocation" }, .string), + ({ name := "ImageOwnerAlias", xmlName := some "imageOwnerAlias", queryName := some "ImageOwnerAlias" }, .string), + ({ name := "ImageType", xmlName := some "imageType", queryName := some "ImageType" }, (Shape.schema ImageTypeValues)), + ({ name := "ImageWatermarks", xmlName := some "imageWatermarkSet", queryName := some "ImageWatermarkSet" }, (.list (Shape.schema ImageWatermark) "item")), + ({ name := "ImdsSupport", xmlName := some "imdsSupport", queryName := some "ImdsSupport" }, (Shape.schema ImdsSupportValues)), + ({ name := "InstanceTypeSpecification", xmlName := some "instanceTypeSpecification", queryName := some "InstanceTypeSpecification" }, (Shape.schema InstanceTypeSpecification)), + ({ name := "KernelId", xmlName := some "kernelId", queryName := some "KernelId" }, .string), + ({ name := "LastLaunchedTime", xmlName := some "lastLaunchedTime", queryName := some "LastLaunchedTime" }, .string), + ({ name := "Name", xmlName := some "name", queryName := some "Name" }, .string), + ({ name := "OwnerId", xmlName := some "imageOwnerId", queryName := some "ImageOwnerId" }, .string), + ({ name := "Platform", xmlName := some "platform", queryName := some "Platform" }, (Shape.schema PlatformValues)), + ({ name := "PlatformDetails", xmlName := some "platformDetails", queryName := some "PlatformDetails" }, .string), + ({ name := "ProductCodes", xmlName := some "productCodes", queryName := some "ProductCodes" }, (.list (Shape.schema ProductCode) "item")), + ({ name := "Public", xmlName := some "isPublic", queryName := some "IsPublic" }, .bool), + ({ name := "PublicSsmParameterName", xmlName := some "publicSsmParameterName", queryName := some "PublicSsmParameterName" }, .string), + ({ name := "RamdiskId", xmlName := some "ramdiskId", queryName := some "RamdiskId" }, .string), + ({ name := "RootDeviceName", xmlName := some "rootDeviceName", queryName := some "RootDeviceName" }, .string), + ({ name := "RootDeviceType", xmlName := some "rootDeviceType", queryName := some "RootDeviceType" }, (Shape.schema DeviceType)), + ({ name := "ScanResults", xmlName := some "scanResults", queryName := some "ScanResults" }, (Shape.schema ScanResults)), + ({ name := "SourceImageId", xmlName := some "sourceImageId", queryName := some "SourceImageId" }, .string), + ({ name := "SourceImageRegion", xmlName := some "sourceImageRegion", queryName := some "SourceImageRegion" }, .string), + ({ name := "SourceInstanceId", xmlName := some "sourceInstanceId", queryName := some "SourceInstanceId" }, .string), + ({ name := "SriovNetSupport", xmlName := some "sriovNetSupport", queryName := some "SriovNetSupport" }, .string), + ({ name := "State", xmlName := some "imageState", queryName := some "ImageState" }, (Shape.schema ImageState)), + ({ name := "StateReason", xmlName := some "stateReason", queryName := some "StateReason" }, (Shape.schema StateReason)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TpmSupport", xmlName := some "tpmSupport", queryName := some "TpmSupport" }, (Shape.schema TpmSupportValues)), + ({ name := "UsageOperation", xmlName := some "usageOperation", queryName := some "UsageOperation" }, .string), + ({ name := "VirtualizationType", xmlName := some "virtualizationType", queryName := some "VirtualizationType" }, (Shape.schema VirtualizationType))] + toValue x := record [putOpt "Architecture" x.architecture, putOpt "BlockDeviceMappings" x.blockDeviceMappings, putOpt "BootMode" x.bootMode, putOpt "CreationDate" x.creationDate, putOpt "DeprecationTime" x.deprecationTime, putOpt "DeregistrationProtection" x.deregistrationProtection, putOpt "Description" x.description, putOpt "EnaSupport" x.enaSupport, putOpt "FreeTierEligible" x.freeTierEligible, putOpt "Hypervisor" x.hypervisor, putOpt "ImageAllowed" x.imageAllowed, putOpt "ImageId" x.imageId, putOpt "ImageLocation" x.imageLocation, putOpt "ImageOwnerAlias" x.imageOwnerAlias, putOpt "ImageType" x.imageType, putOpt "ImageWatermarks" x.imageWatermarks, putOpt "ImdsSupport" x.imdsSupport, putOpt "InstanceTypeSpecification" x.instanceTypeSpecification, putOpt "KernelId" x.kernelId, putOpt "LastLaunchedTime" x.lastLaunchedTime, putOpt "Name" x.name, putOpt "OwnerId" x.ownerId, putOpt "Platform" x.platform, putOpt "PlatformDetails" x.platformDetails, putOpt "ProductCodes" x.productCodes, putOpt "Public" x.«public», putOpt "PublicSsmParameterName" x.publicSsmParameterName, putOpt "RamdiskId" x.ramdiskId, putOpt "RootDeviceName" x.rootDeviceName, putOpt "RootDeviceType" x.rootDeviceType, putOpt "ScanResults" x.scanResults, putOpt "SourceImageId" x.sourceImageId, putOpt "SourceImageRegion" x.sourceImageRegion, putOpt "SourceInstanceId" x.sourceInstanceId, putOpt "SriovNetSupport" x.sriovNetSupport, putOpt "State" x.state, putOpt "StateReason" x.stateReason, putOpt "Tags" x.tags, putOpt "TpmSupport" x.tpmSupport, putOpt "UsageOperation" x.usageOperation, putOpt "VirtualizationType" x.virtualizationType] + ofValue v := do + let architecture ← v.opt "Architecture" + let blockDeviceMappings ← v.opt "BlockDeviceMappings" + let bootMode ← v.opt "BootMode" + let creationDate ← v.opt "CreationDate" + let deprecationTime ← v.opt "DeprecationTime" + let deregistrationProtection ← v.opt "DeregistrationProtection" + let description ← v.opt "Description" + let enaSupport ← v.opt "EnaSupport" + let freeTierEligible ← v.opt "FreeTierEligible" + let hypervisor ← v.opt "Hypervisor" + let imageAllowed ← v.opt "ImageAllowed" + let imageId ← v.opt "ImageId" + let imageLocation ← v.opt "ImageLocation" + let imageOwnerAlias ← v.opt "ImageOwnerAlias" + let imageType ← v.opt "ImageType" + let imageWatermarks ← v.opt "ImageWatermarks" + let imdsSupport ← v.opt "ImdsSupport" + let instanceTypeSpecification ← v.opt "InstanceTypeSpecification" + let kernelId ← v.opt "KernelId" + let lastLaunchedTime ← v.opt "LastLaunchedTime" + let name ← v.opt "Name" + let ownerId ← v.opt "OwnerId" + let platform ← v.opt "Platform" + let platformDetails ← v.opt "PlatformDetails" + let productCodes ← v.opt "ProductCodes" + let «public» ← v.opt "Public" + let publicSsmParameterName ← v.opt "PublicSsmParameterName" + let ramdiskId ← v.opt "RamdiskId" + let rootDeviceName ← v.opt "RootDeviceName" + let rootDeviceType ← v.opt "RootDeviceType" + let scanResults ← v.opt "ScanResults" + let sourceImageId ← v.opt "SourceImageId" + let sourceImageRegion ← v.opt "SourceImageRegion" + let sourceInstanceId ← v.opt "SourceInstanceId" + let sriovNetSupport ← v.opt "SriovNetSupport" + let state ← v.opt "State" + let stateReason ← v.opt "StateReason" + let tags ← v.opt "Tags" + let tpmSupport ← v.opt "TpmSupport" + let usageOperation ← v.opt "UsageOperation" + let virtualizationType ← v.opt "VirtualizationType" + return { architecture, blockDeviceMappings, bootMode, creationDate, deprecationTime, deregistrationProtection, description, enaSupport, freeTierEligible, hypervisor, imageAllowed, imageId, imageLocation, imageOwnerAlias, imageType, imageWatermarks, imdsSupport, instanceTypeSpecification, kernelId, lastLaunchedTime, name, ownerId, platform, platformDetails, productCodes, «public», publicSsmParameterName, ramdiskId, rootDeviceName, rootDeviceType, scanResults, sourceImageId, sourceImageRegion, sourceInstanceId, sriovNetSupport, state, stateReason, tags, tpmSupport, usageOperation, virtualizationType } + +/-- Describes an image attribute. -/ +structure ImageAttribute where + /-- The block device mapping entries. -/ + blockDeviceMappings : Option (List BlockDeviceMapping) := none + /-- The boot mode. -/ + bootMode : Option AttributeValue := none + /-- Indicates whether deregistration protection is enabled for the AMI. -/ + deregistrationProtection : Option AttributeValue := none + /-- A description for the AMI. -/ + description : Option AttributeValue := none + /-- The ID of the AMI. -/ + imageId : Option String := none + /-- If v2.0 , it indicates that IMDSv2 is specified in the AMI. -/ + imdsSupport : Option AttributeValue := none + /-- The kernel ID. -/ + kernelId : Option AttributeValue := none + /-- The date and time, in ISO 8601 date-time format , when the AMI was last used to launch an EC2 instance. -/ + lastLaunchedTime : Option AttributeValue := none + /-- The launch permissions. -/ + launchPermissions : Option (List LaunchPermission) := none + /-- The product codes. -/ + productCodes : Option (List ProductCode) := none + /-- The RAM disk ID. -/ + ramdiskId : Option AttributeValue := none + /-- Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled. -/ + sriovNetSupport : Option AttributeValue := none + /-- If the image is configured for NitroTPM support, the value is v2.0 . -/ + tpmSupport : Option AttributeValue := none + /-- Base64 representation of the non-volatile UEFI variable store. -/ + uefiData : Option AttributeValue := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageAttribute where + schema := .struct "ImageAttribute" [({ name := "BlockDeviceMappings", xmlName := some "blockDeviceMapping", queryName := some "BlockDeviceMapping" }, (.list (Shape.schema BlockDeviceMapping) "item")), + ({ name := "BootMode", xmlName := some "bootMode", queryName := some "BootMode" }, (Shape.schema AttributeValue)), + ({ name := "DeregistrationProtection", xmlName := some "deregistrationProtection", queryName := some "DeregistrationProtection" }, (Shape.schema AttributeValue)), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, (Shape.schema AttributeValue)), + ({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "ImdsSupport", xmlName := some "imdsSupport", queryName := some "ImdsSupport" }, (Shape.schema AttributeValue)), + ({ name := "KernelId", xmlName := some "kernel", queryName := some "Kernel" }, (Shape.schema AttributeValue)), + ({ name := "LastLaunchedTime", xmlName := some "lastLaunchedTime", queryName := some "LastLaunchedTime" }, (Shape.schema AttributeValue)), + ({ name := "LaunchPermissions", xmlName := some "launchPermission", queryName := some "LaunchPermission" }, (.list (Shape.schema LaunchPermission) "item")), + ({ name := "ProductCodes", xmlName := some "productCodes", queryName := some "ProductCodes" }, (.list (Shape.schema ProductCode) "item")), + ({ name := "RamdiskId", xmlName := some "ramdisk", queryName := some "Ramdisk" }, (Shape.schema AttributeValue)), + ({ name := "SriovNetSupport", xmlName := some "sriovNetSupport", queryName := some "SriovNetSupport" }, (Shape.schema AttributeValue)), + ({ name := "TpmSupport", xmlName := some "tpmSupport", queryName := some "TpmSupport" }, (Shape.schema AttributeValue)), + ({ name := "UefiData", xmlName := some "uefiData", queryName := some "UefiData" }, (Shape.schema AttributeValue))] + toValue x := record [putOpt "BlockDeviceMappings" x.blockDeviceMappings, putOpt "BootMode" x.bootMode, putOpt "DeregistrationProtection" x.deregistrationProtection, putOpt "Description" x.description, putOpt "ImageId" x.imageId, putOpt "ImdsSupport" x.imdsSupport, putOpt "KernelId" x.kernelId, putOpt "LastLaunchedTime" x.lastLaunchedTime, putOpt "LaunchPermissions" x.launchPermissions, putOpt "ProductCodes" x.productCodes, putOpt "RamdiskId" x.ramdiskId, putOpt "SriovNetSupport" x.sriovNetSupport, putOpt "TpmSupport" x.tpmSupport, putOpt "UefiData" x.uefiData] + ofValue v := do + let blockDeviceMappings ← v.opt "BlockDeviceMappings" + let bootMode ← v.opt "BootMode" + let deregistrationProtection ← v.opt "DeregistrationProtection" + let description ← v.opt "Description" + let imageId ← v.opt "ImageId" + let imdsSupport ← v.opt "ImdsSupport" + let kernelId ← v.opt "KernelId" + let lastLaunchedTime ← v.opt "LastLaunchedTime" + let launchPermissions ← v.opt "LaunchPermissions" + let productCodes ← v.opt "ProductCodes" + let ramdiskId ← v.opt "RamdiskId" + let sriovNetSupport ← v.opt "SriovNetSupport" + let tpmSupport ← v.opt "TpmSupport" + let uefiData ← v.opt "UefiData" + return { blockDeviceMappings, bootMode, deregistrationProtection, description, imageId, imdsSupport, kernelId, lastLaunchedTime, launchPermissions, productCodes, ramdiskId, sriovNetSupport, tpmSupport, uefiData } + +structure ImportInstanceRequest where + /-- A description for the instance being imported. -/ + description : Option String := none + /-- The disk image. -/ + diskImages : Option (List DiskImage) := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The launch specification. -/ + launchSpecification : Option ImportInstanceLaunchSpecification := none + /-- The instance operating system. -/ + platform : PlatformValues +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportInstanceRequest where + schema := .struct "ImportInstanceRequest" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "DiskImages", xmlName := some "diskImage", queryName := some "DiskImage" }, (.list (Shape.schema DiskImage) "member")), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "LaunchSpecification", xmlName := some "launchSpecification", queryName := some "LaunchSpecification" }, (Shape.schema ImportInstanceLaunchSpecification)), + ({ name := "Platform", required := true, xmlName := some "platform", queryName := some "Platform" }, (Shape.schema PlatformValues))] + toValue x := record [putOpt "Description" x.description, putOpt "DiskImages" x.diskImages, putOpt "DryRun" x.dryRun, putOpt "LaunchSpecification" x.launchSpecification, put "Platform" x.platform] + ofValue v := do + let description ← v.opt "Description" + let diskImages ← v.opt "DiskImages" + let dryRun ← v.opt "DryRun" + let launchSpecification ← v.opt "LaunchSpecification" + let platform ← v.req "Platform" + return { description, diskImages, dryRun, launchSpecification, platform } + +/-- Describes an import instance task. -/ +structure ImportInstanceTaskDetails where + /-- A description of the task. -/ + description : Option String := none + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- The instance operating system. -/ + platform : Option PlatformValues := none + /-- The volumes. -/ + volumes : Option (List ImportInstanceVolumeDetailItem) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportInstanceTaskDetails where + schema := .struct "ImportInstanceTaskDetails" [({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "Platform", xmlName := some "platform", queryName := some "Platform" }, (Shape.schema PlatformValues)), + ({ name := "Volumes", xmlName := some "volumes", queryName := some "Volumes" }, (.list (Shape.schema ImportInstanceVolumeDetailItem) "item"))] + toValue x := record [putOpt "Description" x.description, putOpt "InstanceId" x.instanceId, putOpt "Platform" x.platform, putOpt "Volumes" x.volumes] + ofValue v := do + let description ← v.opt "Description" + let instanceId ← v.opt "InstanceId" + let platform ← v.opt "Platform" + let volumes ← v.opt "Volumes" + return { description, instanceId, platform, volumes } + +/-- Describes the application status for an instance. -/ +structure InstanceApplicationStatus where + /-- The application status for the instance. -/ + applicationStatus : Option ApplicationStatus := none + /-- The Availability Zone of the instance. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone of the instance. -/ + availabilityZoneId : Option String := none + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- The tags assigned to the instance. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceApplicationStatus where + schema := .struct "InstanceApplicationStatus" [({ name := "ApplicationStatus", xmlName := some "applicationStatus", queryName := some "ApplicationStatus" }, (Shape.schema ApplicationStatus)), + ({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "ApplicationStatus" x.applicationStatus, putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "InstanceId" x.instanceId, putOpt "Tags" x.tags] + ofValue v := do + let applicationStatus ← v.opt "ApplicationStatus" + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let instanceId ← v.opt "InstanceId" + let tags ← v.opt "Tags" + return { applicationStatus, availabilityZone, availabilityZoneId, instanceId, tags } + +/-- Describes an instance attribute. -/ +structure InstanceAttribute where + /-- The block device mapping of the instance. -/ + blockDeviceMappings : Option (List InstanceBlockDeviceMapping) := none + /-- Indicates whether stop protection is enabled for the instance. -/ + disableApiStop : Option AttributeBooleanValue := none + /-- Indicates whether termination protection is enabled. -/ + disableApiTermination : Option AttributeBooleanValue := none + /-- Indicates whether the instance is optimized for Amazon EBS I/O. -/ + ebsOptimized : Option AttributeBooleanValue := none + /-- Indicates whether enhanced networking with ENA is enabled. -/ + enaSupport : Option AttributeBooleanValue := none + /-- Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. -/ + enclaveOptions : Option EnclaveOptions := none + /-- The security groups associated with the instance. -/ + groups : Option (List GroupIdentifier) := none + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown). -/ + instanceInitiatedShutdownBehavior : Option AttributeValue := none + /-- The instance type. -/ + instanceType : Option AttributeValue := none + /-- The kernel ID. -/ + kernelId : Option AttributeValue := none + /-- The product codes. -/ + productCodes : Option (List ProductCode) := none + /-- The RAM disk ID. -/ + ramdiskId : Option AttributeValue := none + /-- The device name of the root device volume (for example, /dev/sda1 ). -/ + rootDeviceName : Option AttributeValue := none + /-- Indicates whether source/destination checks are enabled. -/ + sourceDestCheck : Option AttributeBooleanValue := none + /-- Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled. -/ + sriovNetSupport : Option AttributeValue := none + /-- The user data. -/ + userData : Option AttributeValue := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceAttribute where + schema := .struct "InstanceAttribute" [({ name := "BlockDeviceMappings", xmlName := some "blockDeviceMapping", queryName := some "BlockDeviceMapping" }, (.list (Shape.schema InstanceBlockDeviceMapping) "item")), + ({ name := "DisableApiStop", xmlName := some "disableApiStop", queryName := some "DisableApiStop" }, (Shape.schema AttributeBooleanValue)), + ({ name := "DisableApiTermination", xmlName := some "disableApiTermination", queryName := some "DisableApiTermination" }, (Shape.schema AttributeBooleanValue)), + ({ name := "EbsOptimized", xmlName := some "ebsOptimized", queryName := some "EbsOptimized" }, (Shape.schema AttributeBooleanValue)), + ({ name := "EnaSupport", xmlName := some "enaSupport", queryName := some "EnaSupport" }, (Shape.schema AttributeBooleanValue)), + ({ name := "EnclaveOptions", xmlName := some "enclaveOptions", queryName := some "EnclaveOptions" }, (Shape.schema EnclaveOptions)), + ({ name := "Groups", xmlName := some "groupSet", queryName := some "GroupSet" }, (.list (Shape.schema GroupIdentifier) "item")), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "InstanceInitiatedShutdownBehavior", xmlName := some "instanceInitiatedShutdownBehavior", queryName := some "InstanceInitiatedShutdownBehavior" }, (Shape.schema AttributeValue)), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, (Shape.schema AttributeValue)), + ({ name := "KernelId", xmlName := some "kernel", queryName := some "Kernel" }, (Shape.schema AttributeValue)), + ({ name := "ProductCodes", xmlName := some "productCodes", queryName := some "ProductCodes" }, (.list (Shape.schema ProductCode) "item")), + ({ name := "RamdiskId", xmlName := some "ramdisk", queryName := some "Ramdisk" }, (Shape.schema AttributeValue)), + ({ name := "RootDeviceName", xmlName := some "rootDeviceName", queryName := some "RootDeviceName" }, (Shape.schema AttributeValue)), + ({ name := "SourceDestCheck", xmlName := some "sourceDestCheck", queryName := some "SourceDestCheck" }, (Shape.schema AttributeBooleanValue)), + ({ name := "SriovNetSupport", xmlName := some "sriovNetSupport", queryName := some "SriovNetSupport" }, (Shape.schema AttributeValue)), + ({ name := "UserData", xmlName := some "userData", queryName := some "UserData" }, (Shape.schema AttributeValue))] + toValue x := record [putOpt "BlockDeviceMappings" x.blockDeviceMappings, putOpt "DisableApiStop" x.disableApiStop, putOpt "DisableApiTermination" x.disableApiTermination, putOpt "EbsOptimized" x.ebsOptimized, putOpt "EnaSupport" x.enaSupport, putOpt "EnclaveOptions" x.enclaveOptions, putOpt "Groups" x.groups, putOpt "InstanceId" x.instanceId, putOpt "InstanceInitiatedShutdownBehavior" x.instanceInitiatedShutdownBehavior, putOpt "InstanceType" x.instanceType, putOpt "KernelId" x.kernelId, putOpt "ProductCodes" x.productCodes, putOpt "RamdiskId" x.ramdiskId, putOpt "RootDeviceName" x.rootDeviceName, putOpt "SourceDestCheck" x.sourceDestCheck, putOpt "SriovNetSupport" x.sriovNetSupport, putOpt "UserData" x.userData] + ofValue v := do + let blockDeviceMappings ← v.opt "BlockDeviceMappings" + let disableApiStop ← v.opt "DisableApiStop" + let disableApiTermination ← v.opt "DisableApiTermination" + let ebsOptimized ← v.opt "EbsOptimized" + let enaSupport ← v.opt "EnaSupport" + let enclaveOptions ← v.opt "EnclaveOptions" + let groups ← v.opt "Groups" + let instanceId ← v.opt "InstanceId" + let instanceInitiatedShutdownBehavior ← v.opt "InstanceInitiatedShutdownBehavior" + let instanceType ← v.opt "InstanceType" + let kernelId ← v.opt "KernelId" + let productCodes ← v.opt "ProductCodes" + let ramdiskId ← v.opt "RamdiskId" + let rootDeviceName ← v.opt "RootDeviceName" + let sourceDestCheck ← v.opt "SourceDestCheck" + let sriovNetSupport ← v.opt "SriovNetSupport" + let userData ← v.opt "UserData" + return { blockDeviceMappings, disableApiStop, disableApiTermination, ebsOptimized, enaSupport, enclaveOptions, groups, instanceId, instanceInitiatedShutdownBehavior, instanceType, kernelId, productCodes, ramdiskId, rootDeviceName, sourceDestCheck, sriovNetSupport, userData } + +/-- Describes a network interface. -/ +structure InstanceNetworkInterface where + /-- The association information for an Elastic IPv4 associated with the network interface. -/ + association : Option InstanceNetworkInterfaceAssociation := none + /-- The network interface attachment. -/ + attachment : Option InstanceNetworkInterfaceAttachment := none + /-- A security group connection tracking configuration that enables you to set the timeout for connection tracking on an Elastic network interface. -/ + connectionTrackingConfiguration : Option ConnectionTrackingSpecificationResponse := none + /-- The description. -/ + description : Option String := none + /-- The security groups. -/ + groups : Option (List GroupIdentifier) := none + /-- The type of network interface. -/ + interfaceType : Option String := none + /-- The IPv4 delegated prefixes that are assigned to the network interface. -/ + ipv4Prefixes : Option (List InstanceIpv4Prefix) := none + /-- The IPv6 addresses associated with the network interface. -/ + ipv6Addresses : Option (List InstanceIpv6Address) := none + /-- The IPv6 delegated prefixes that are assigned to the network interface. -/ + ipv6Prefixes : Option (List InstanceIpv6Prefix) := none + /-- The MAC address. -/ + macAddress : Option String := none + /-- The ID of the network interface. -/ + networkInterfaceId : Option String := none + /-- The service provider that manages the network interface. -/ + operator : Option OperatorResponse := none + /-- The ID of the Amazon Web Services account that created the network interface. -/ + ownerId : Option String := none + /-- The private DNS name. -/ + privateDnsName : Option String := none + /-- The IPv4 address of the network interface within the subnet. -/ + privateIpAddress : Option String := none + /-- The private IPv4 addresses associated with the network interface. -/ + privateIpAddresses : Option (List InstancePrivateIpAddress) := none + /-- Indicates whether source/destination checking is enabled. -/ + sourceDestCheck : Option Bool := none + /-- The status of the network interface. -/ + status : Option NetworkInterfaceStatus := none + /-- The ID of the subnet. -/ + subnetId : Option String := none + /-- The ID of the VPC. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceNetworkInterface where + schema := .struct "InstanceNetworkInterface" [({ name := "Association", xmlName := some "association", queryName := some "Association" }, (Shape.schema InstanceNetworkInterfaceAssociation)), + ({ name := "Attachment", xmlName := some "attachment", queryName := some "Attachment" }, (Shape.schema InstanceNetworkInterfaceAttachment)), + ({ name := "ConnectionTrackingConfiguration", xmlName := some "connectionTrackingConfiguration", queryName := some "ConnectionTrackingConfiguration" }, (Shape.schema ConnectionTrackingSpecificationResponse)), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "Groups", xmlName := some "groupSet", queryName := some "GroupSet" }, (.list (Shape.schema GroupIdentifier) "item")), + ({ name := "InterfaceType", xmlName := some "interfaceType", queryName := some "InterfaceType" }, .string), + ({ name := "Ipv4Prefixes", xmlName := some "ipv4PrefixSet", queryName := some "Ipv4PrefixSet" }, (.list (Shape.schema InstanceIpv4Prefix) "item")), + ({ name := "Ipv6Addresses", xmlName := some "ipv6AddressesSet", queryName := some "Ipv6AddressesSet" }, (.list (Shape.schema InstanceIpv6Address) "item")), + ({ name := "Ipv6Prefixes", xmlName := some "ipv6PrefixSet", queryName := some "Ipv6PrefixSet" }, (.list (Shape.schema InstanceIpv6Prefix) "item")), + ({ name := "MacAddress", xmlName := some "macAddress", queryName := some "MacAddress" }, .string), + ({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "Operator", xmlName := some "operator", queryName := some "Operator" }, (Shape.schema OperatorResponse)), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "PrivateDnsName", xmlName := some "privateDnsName", queryName := some "PrivateDnsName" }, .string), + ({ name := "PrivateIpAddress", xmlName := some "privateIpAddress", queryName := some "PrivateIpAddress" }, .string), + ({ name := "PrivateIpAddresses", xmlName := some "privateIpAddressesSet", queryName := some "PrivateIpAddressesSet" }, (.list (Shape.schema InstancePrivateIpAddress) "item")), + ({ name := "SourceDestCheck", xmlName := some "sourceDestCheck", queryName := some "SourceDestCheck" }, .bool), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema NetworkInterfaceStatus)), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "Association" x.association, putOpt "Attachment" x.attachment, putOpt "ConnectionTrackingConfiguration" x.connectionTrackingConfiguration, putOpt "Description" x.description, putOpt "Groups" x.groups, putOpt "InterfaceType" x.interfaceType, putOpt "Ipv4Prefixes" x.ipv4Prefixes, putOpt "Ipv6Addresses" x.ipv6Addresses, putOpt "Ipv6Prefixes" x.ipv6Prefixes, putOpt "MacAddress" x.macAddress, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "Operator" x.operator, putOpt "OwnerId" x.ownerId, putOpt "PrivateDnsName" x.privateDnsName, putOpt "PrivateIpAddress" x.privateIpAddress, putOpt "PrivateIpAddresses" x.privateIpAddresses, putOpt "SourceDestCheck" x.sourceDestCheck, putOpt "Status" x.status, putOpt "SubnetId" x.subnetId, putOpt "VpcId" x.vpcId] + ofValue v := do + let association ← v.opt "Association" + let attachment ← v.opt "Attachment" + let connectionTrackingConfiguration ← v.opt "ConnectionTrackingConfiguration" + let description ← v.opt "Description" + let groups ← v.opt "Groups" + let interfaceType ← v.opt "InterfaceType" + let ipv4Prefixes ← v.opt "Ipv4Prefixes" + let ipv6Addresses ← v.opt "Ipv6Addresses" + let ipv6Prefixes ← v.opt "Ipv6Prefixes" + let macAddress ← v.opt "MacAddress" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let operator ← v.opt "Operator" + let ownerId ← v.opt "OwnerId" + let privateDnsName ← v.opt "PrivateDnsName" + let privateIpAddress ← v.opt "PrivateIpAddress" + let privateIpAddresses ← v.opt "PrivateIpAddresses" + let sourceDestCheck ← v.opt "SourceDestCheck" + let status ← v.opt "Status" + let subnetId ← v.opt "SubnetId" + let vpcId ← v.opt "VpcId" + return { association, attachment, connectionTrackingConfiguration, description, groups, interfaceType, ipv4Prefixes, ipv6Addresses, ipv6Prefixes, macAddress, networkInterfaceId, operator, ownerId, privateDnsName, privateIpAddress, privateIpAddresses, sourceDestCheck, status, subnetId, vpcId } + +/-- The attributes for the instance types. -/ +structure InstanceRequirements where + /-- The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance. -/ + acceleratorCount : Option AcceleratorCount := none + /-- Indicates whether instance types must have accelerators by specific manufacturers. -/ + acceleratorManufacturers : Option (List AcceleratorManufacturer) := none + /-- The accelerators that must be on the instance type. -/ + acceleratorNames : Option (List AcceleratorName) := none + /-- The minimum and maximum amount of total accelerator memory, in MiB. -/ + acceleratorTotalMemoryMiB : Option AcceleratorTotalMemoryMiB := none + /-- The accelerator types that must be on the instance type. -/ + acceleratorTypes : Option (List AcceleratorType) := none + /-- The instance types to apply your specified attributes against. -/ + allowedInstanceTypes : Option (List String) := none + /-- Indicates whether bare metal instance types must be included, excluded, or required. -/ + bareMetal : Option BareMetal := none + /-- The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. -/ + baselineEbsBandwidthMbps : Option BaselineEbsBandwidthMbps := none + /-- The baseline performance to consider, using an instance family as a baseline reference. -/ + baselinePerformanceFactors : Option BaselinePerformanceFactors := none + /-- Indicates whether burstable performance T instance types are included, excluded, or required. -/ + burstablePerformance : Option BurstablePerformance := none + /-- The CPU manufacturers to include. -/ + cpuManufacturers : Option (List CpuManufacturer) := none + /-- The instance types to exclude. -/ + excludedInstanceTypes : Option (List String) := none + /-- Indicates whether current or previous generation instance types are included. -/ + instanceGenerations : Option (List InstanceGeneration) := none + /-- Indicates whether instance types with instance store volumes are included, excluded, or required. -/ + localStorage : Option LocalStorage := none + /-- The type of local storage that is required. -/ + localStorageTypes : Option (List LocalStorageType) := none + /-- [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. -/ + maxSpotPriceAsPercentageOfOptimalOnDemandPrice : Option Int := none + /-- The minimum and maximum amount of memory per vCPU, in GiB. -/ + memoryGiBPerVCpu : Option MemoryGiBPerVCpu := none + /-- The minimum and maximum amount of memory, in MiB. -/ + memoryMiB : Option MemoryMiB := none + /-- The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). -/ + networkBandwidthGbps : Option NetworkBandwidthGbps := none + /-- The minimum and maximum number of network interfaces. -/ + networkInterfaceCount : Option NetworkInterfaceCount := none + /-- [Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. -/ + onDemandMaxPricePercentageOverLowestPrice : Option Int := none + /-- Specifies whether instance types must support encrypting in-transit traffic between instances. -/ + requireEncryptionInTransit : Option Bool := none + /-- Indicates whether instance types must support hibernation for On-Demand Instances. -/ + requireHibernateSupport : Option Bool := none + /-- [Price protection] The price protection threshold for Spot Instances, as a percentage higher than an identified Spot price. -/ + spotMaxPricePercentageOverLowestPrice : Option Int := none + /-- The minimum and maximum amount of total local storage, in GB. -/ + totalLocalStorageGB : Option TotalLocalStorageGB := none + /-- The minimum and maximum number of vCPUs. -/ + vCpuCount : Option VCpuCountRange := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceRequirements where + schema := .struct "InstanceRequirements" [({ name := "AcceleratorCount", xmlName := some "acceleratorCount", queryName := some "AcceleratorCount" }, (Shape.schema AcceleratorCount)), + ({ name := "AcceleratorManufacturers", xmlName := some "acceleratorManufacturerSet", queryName := some "AcceleratorManufacturerSet" }, (.list (Shape.schema AcceleratorManufacturer) "item")), + ({ name := "AcceleratorNames", xmlName := some "acceleratorNameSet", queryName := some "AcceleratorNameSet" }, (.list (Shape.schema AcceleratorName) "item")), + ({ name := "AcceleratorTotalMemoryMiB", xmlName := some "acceleratorTotalMemoryMiB", queryName := some "AcceleratorTotalMemoryMiB" }, (Shape.schema AcceleratorTotalMemoryMiB)), + ({ name := "AcceleratorTypes", xmlName := some "acceleratorTypeSet", queryName := some "AcceleratorTypeSet" }, (.list (Shape.schema AcceleratorType) "item")), + ({ name := "AllowedInstanceTypes", xmlName := some "allowedInstanceTypeSet", queryName := some "AllowedInstanceTypeSet" }, (.list .string "item")), + ({ name := "BareMetal", xmlName := some "bareMetal", queryName := some "BareMetal" }, (Shape.schema BareMetal)), + ({ name := "BaselineEbsBandwidthMbps", xmlName := some "baselineEbsBandwidthMbps", queryName := some "BaselineEbsBandwidthMbps" }, (Shape.schema BaselineEbsBandwidthMbps)), + ({ name := "BaselinePerformanceFactors", xmlName := some "baselinePerformanceFactors", queryName := some "BaselinePerformanceFactors" }, (Shape.schema BaselinePerformanceFactors)), + ({ name := "BurstablePerformance", xmlName := some "burstablePerformance", queryName := some "BurstablePerformance" }, (Shape.schema BurstablePerformance)), + ({ name := "CpuManufacturers", xmlName := some "cpuManufacturerSet", queryName := some "CpuManufacturerSet" }, (.list (Shape.schema CpuManufacturer) "item")), + ({ name := "ExcludedInstanceTypes", xmlName := some "excludedInstanceTypeSet", queryName := some "ExcludedInstanceTypeSet" }, (.list .string "item")), + ({ name := "InstanceGenerations", xmlName := some "instanceGenerationSet", queryName := some "InstanceGenerationSet" }, (.list (Shape.schema InstanceGeneration) "item")), + ({ name := "LocalStorage", xmlName := some "localStorage", queryName := some "LocalStorage" }, (Shape.schema LocalStorage)), + ({ name := "LocalStorageTypes", xmlName := some "localStorageTypeSet", queryName := some "LocalStorageTypeSet" }, (.list (Shape.schema LocalStorageType) "item")), + ({ name := "MaxSpotPriceAsPercentageOfOptimalOnDemandPrice", xmlName := some "maxSpotPriceAsPercentageOfOptimalOnDemandPrice", queryName := some "MaxSpotPriceAsPercentageOfOptimalOnDemandPrice" }, .int), + ({ name := "MemoryGiBPerVCpu", xmlName := some "memoryGiBPerVCpu", queryName := some "MemoryGiBPerVCpu" }, (Shape.schema MemoryGiBPerVCpu)), + ({ name := "MemoryMiB", xmlName := some "memoryMiB", queryName := some "MemoryMiB" }, (Shape.schema MemoryMiB)), + ({ name := "NetworkBandwidthGbps", xmlName := some "networkBandwidthGbps", queryName := some "NetworkBandwidthGbps" }, (Shape.schema NetworkBandwidthGbps)), + ({ name := "NetworkInterfaceCount", xmlName := some "networkInterfaceCount", queryName := some "NetworkInterfaceCount" }, (Shape.schema NetworkInterfaceCount)), + ({ name := "OnDemandMaxPricePercentageOverLowestPrice", xmlName := some "onDemandMaxPricePercentageOverLowestPrice", queryName := some "OnDemandMaxPricePercentageOverLowestPrice" }, .int), + ({ name := "RequireEncryptionInTransit", xmlName := some "requireEncryptionInTransit", queryName := some "RequireEncryptionInTransit" }, .bool), + ({ name := "RequireHibernateSupport", xmlName := some "requireHibernateSupport", queryName := some "RequireHibernateSupport" }, .bool), + ({ name := "SpotMaxPricePercentageOverLowestPrice", xmlName := some "spotMaxPricePercentageOverLowestPrice", queryName := some "SpotMaxPricePercentageOverLowestPrice" }, .int), + ({ name := "TotalLocalStorageGB", xmlName := some "totalLocalStorageGB", queryName := some "TotalLocalStorageGB" }, (Shape.schema TotalLocalStorageGB)), + ({ name := "VCpuCount", xmlName := some "vCpuCount", queryName := some "VCpuCount" }, (Shape.schema VCpuCountRange))] + toValue x := record [putOpt "AcceleratorCount" x.acceleratorCount, putOpt "AcceleratorManufacturers" x.acceleratorManufacturers, putOpt "AcceleratorNames" x.acceleratorNames, putOpt "AcceleratorTotalMemoryMiB" x.acceleratorTotalMemoryMiB, putOpt "AcceleratorTypes" x.acceleratorTypes, putOpt "AllowedInstanceTypes" x.allowedInstanceTypes, putOpt "BareMetal" x.bareMetal, putOpt "BaselineEbsBandwidthMbps" x.baselineEbsBandwidthMbps, putOpt "BaselinePerformanceFactors" x.baselinePerformanceFactors, putOpt "BurstablePerformance" x.burstablePerformance, putOpt "CpuManufacturers" x.cpuManufacturers, putOpt "ExcludedInstanceTypes" x.excludedInstanceTypes, putOpt "InstanceGenerations" x.instanceGenerations, putOpt "LocalStorage" x.localStorage, putOpt "LocalStorageTypes" x.localStorageTypes, putOpt "MaxSpotPriceAsPercentageOfOptimalOnDemandPrice" x.maxSpotPriceAsPercentageOfOptimalOnDemandPrice, putOpt "MemoryGiBPerVCpu" x.memoryGiBPerVCpu, putOpt "MemoryMiB" x.memoryMiB, putOpt "NetworkBandwidthGbps" x.networkBandwidthGbps, putOpt "NetworkInterfaceCount" x.networkInterfaceCount, putOpt "OnDemandMaxPricePercentageOverLowestPrice" x.onDemandMaxPricePercentageOverLowestPrice, putOpt "RequireEncryptionInTransit" x.requireEncryptionInTransit, putOpt "RequireHibernateSupport" x.requireHibernateSupport, putOpt "SpotMaxPricePercentageOverLowestPrice" x.spotMaxPricePercentageOverLowestPrice, putOpt "TotalLocalStorageGB" x.totalLocalStorageGB, putOpt "VCpuCount" x.vCpuCount] + ofValue v := do + let acceleratorCount ← v.opt "AcceleratorCount" + let acceleratorManufacturers ← v.opt "AcceleratorManufacturers" + let acceleratorNames ← v.opt "AcceleratorNames" + let acceleratorTotalMemoryMiB ← v.opt "AcceleratorTotalMemoryMiB" + let acceleratorTypes ← v.opt "AcceleratorTypes" + let allowedInstanceTypes ← v.opt "AllowedInstanceTypes" + let bareMetal ← v.opt "BareMetal" + let baselineEbsBandwidthMbps ← v.opt "BaselineEbsBandwidthMbps" + let baselinePerformanceFactors ← v.opt "BaselinePerformanceFactors" + let burstablePerformance ← v.opt "BurstablePerformance" + let cpuManufacturers ← v.opt "CpuManufacturers" + let excludedInstanceTypes ← v.opt "ExcludedInstanceTypes" + let instanceGenerations ← v.opt "InstanceGenerations" + let localStorage ← v.opt "LocalStorage" + let localStorageTypes ← v.opt "LocalStorageTypes" + let maxSpotPriceAsPercentageOfOptimalOnDemandPrice ← v.opt "MaxSpotPriceAsPercentageOfOptimalOnDemandPrice" + let memoryGiBPerVCpu ← v.opt "MemoryGiBPerVCpu" + let memoryMiB ← v.opt "MemoryMiB" + let networkBandwidthGbps ← v.opt "NetworkBandwidthGbps" + let networkInterfaceCount ← v.opt "NetworkInterfaceCount" + let onDemandMaxPricePercentageOverLowestPrice ← v.opt "OnDemandMaxPricePercentageOverLowestPrice" + let requireEncryptionInTransit ← v.opt "RequireEncryptionInTransit" + let requireHibernateSupport ← v.opt "RequireHibernateSupport" + let spotMaxPricePercentageOverLowestPrice ← v.opt "SpotMaxPricePercentageOverLowestPrice" + let totalLocalStorageGB ← v.opt "TotalLocalStorageGB" + let vCpuCount ← v.opt "VCpuCount" + return { acceleratorCount, acceleratorManufacturers, acceleratorNames, acceleratorTotalMemoryMiB, acceleratorTypes, allowedInstanceTypes, bareMetal, baselineEbsBandwidthMbps, baselinePerformanceFactors, burstablePerformance, cpuManufacturers, excludedInstanceTypes, instanceGenerations, localStorage, localStorageTypes, maxSpotPriceAsPercentageOfOptimalOnDemandPrice, memoryGiBPerVCpu, memoryMiB, networkBandwidthGbps, networkInterfaceCount, onDemandMaxPricePercentageOverLowestPrice, requireEncryptionInTransit, requireHibernateSupport, spotMaxPricePercentageOverLowestPrice, totalLocalStorageGB, vCpuCount } + +/-- The attributes for the instance types. -/ +structure InstanceRequirementsRequest where + /-- The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance. -/ + acceleratorCount : Option AcceleratorCountRequest := none + /-- Indicates whether instance types must have accelerators by specific manufacturers. -/ + acceleratorManufacturers : Option (List AcceleratorManufacturer) := none + /-- The accelerators that must be on the instance type. -/ + acceleratorNames : Option (List AcceleratorName) := none + /-- The minimum and maximum amount of total accelerator memory, in MiB. -/ + acceleratorTotalMemoryMiB : Option AcceleratorTotalMemoryMiBRequest := none + /-- The accelerator types that must be on the instance type. -/ + acceleratorTypes : Option (List AcceleratorType) := none + /-- The instance types to apply your specified attributes against. -/ + allowedInstanceTypes : Option (List String) := none + /-- Indicates whether bare metal instance types must be included, excluded, or required. -/ + bareMetal : Option BareMetal := none + /-- The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. -/ + baselineEbsBandwidthMbps : Option BaselineEbsBandwidthMbpsRequest := none + /-- The baseline performance to consider, using an instance family as a baseline reference. -/ + baselinePerformanceFactors : Option BaselinePerformanceFactorsRequest := none + /-- Indicates whether burstable performance T instance types are included, excluded, or required. -/ + burstablePerformance : Option BurstablePerformance := none + /-- The CPU manufacturers to include. -/ + cpuManufacturers : Option (List CpuManufacturer) := none + /-- The instance types to exclude. -/ + excludedInstanceTypes : Option (List String) := none + /-- Indicates whether current or previous generation instance types are included. -/ + instanceGenerations : Option (List InstanceGeneration) := none + /-- Indicates whether instance types with instance store volumes are included, excluded, or required. -/ + localStorage : Option LocalStorage := none + /-- The type of local storage that is required. -/ + localStorageTypes : Option (List LocalStorageType) := none + /-- [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. -/ + maxSpotPriceAsPercentageOfOptimalOnDemandPrice : Option Int := none + /-- The minimum and maximum amount of memory per vCPU, in GiB. -/ + memoryGiBPerVCpu : Option MemoryGiBPerVCpuRequest := none + /-- The minimum and maximum amount of memory, in MiB. -/ + memoryMiB : MemoryMiBRequest + /-- The minimum and maximum amount of baseline network bandwidth, in gigabits per second (Gbps). -/ + networkBandwidthGbps : Option NetworkBandwidthGbpsRequest := none + /-- The minimum and maximum number of network interfaces. -/ + networkInterfaceCount : Option NetworkInterfaceCountRequest := none + /-- [Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. -/ + onDemandMaxPricePercentageOverLowestPrice : Option Int := none + /-- Specifies whether instance types must support encrypting in-transit traffic between instances. -/ + requireEncryptionInTransit : Option Bool := none + /-- Indicates whether instance types must support hibernation for On-Demand Instances. -/ + requireHibernateSupport : Option Bool := none + /-- [Price protection] The price protection threshold for Spot Instances, as a percentage higher than an identified Spot price. -/ + spotMaxPricePercentageOverLowestPrice : Option Int := none + /-- The minimum and maximum amount of total local storage, in GB. -/ + totalLocalStorageGB : Option TotalLocalStorageGBRequest := none + /-- The minimum and maximum number of vCPUs. -/ + vCpuCount : VCpuCountRangeRequest +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceRequirementsRequest where + schema := .struct "InstanceRequirementsRequest" [({ name := "AcceleratorCount" }, (Shape.schema AcceleratorCountRequest)), + ({ name := "AcceleratorManufacturers", xmlName := some "AcceleratorManufacturer" }, (.list (Shape.schema AcceleratorManufacturer) "item")), + ({ name := "AcceleratorNames", xmlName := some "AcceleratorName" }, (.list (Shape.schema AcceleratorName) "item")), + ({ name := "AcceleratorTotalMemoryMiB" }, (Shape.schema AcceleratorTotalMemoryMiBRequest)), + ({ name := "AcceleratorTypes", xmlName := some "AcceleratorType" }, (.list (Shape.schema AcceleratorType) "item")), + ({ name := "AllowedInstanceTypes", xmlName := some "AllowedInstanceType" }, (.list .string "item")), + ({ name := "BareMetal" }, (Shape.schema BareMetal)), + ({ name := "BaselineEbsBandwidthMbps" }, (Shape.schema BaselineEbsBandwidthMbpsRequest)), + ({ name := "BaselinePerformanceFactors" }, (Shape.schema BaselinePerformanceFactorsRequest)), + ({ name := "BurstablePerformance" }, (Shape.schema BurstablePerformance)), + ({ name := "CpuManufacturers", xmlName := some "CpuManufacturer" }, (.list (Shape.schema CpuManufacturer) "item")), + ({ name := "ExcludedInstanceTypes", xmlName := some "ExcludedInstanceType" }, (.list .string "item")), + ({ name := "InstanceGenerations", xmlName := some "InstanceGeneration" }, (.list (Shape.schema InstanceGeneration) "item")), + ({ name := "LocalStorage" }, (Shape.schema LocalStorage)), + ({ name := "LocalStorageTypes", xmlName := some "LocalStorageType" }, (.list (Shape.schema LocalStorageType) "item")), + ({ name := "MaxSpotPriceAsPercentageOfOptimalOnDemandPrice" }, .int), + ({ name := "MemoryGiBPerVCpu" }, (Shape.schema MemoryGiBPerVCpuRequest)), + ({ name := "MemoryMiB", required := true }, (Shape.schema MemoryMiBRequest)), + ({ name := "NetworkBandwidthGbps" }, (Shape.schema NetworkBandwidthGbpsRequest)), + ({ name := "NetworkInterfaceCount" }, (Shape.schema NetworkInterfaceCountRequest)), + ({ name := "OnDemandMaxPricePercentageOverLowestPrice" }, .int), + ({ name := "RequireEncryptionInTransit" }, .bool), + ({ name := "RequireHibernateSupport" }, .bool), + ({ name := "SpotMaxPricePercentageOverLowestPrice" }, .int), + ({ name := "TotalLocalStorageGB" }, (Shape.schema TotalLocalStorageGBRequest)), + ({ name := "VCpuCount", required := true }, (Shape.schema VCpuCountRangeRequest))] + toValue x := record [putOpt "AcceleratorCount" x.acceleratorCount, putOpt "AcceleratorManufacturers" x.acceleratorManufacturers, putOpt "AcceleratorNames" x.acceleratorNames, putOpt "AcceleratorTotalMemoryMiB" x.acceleratorTotalMemoryMiB, putOpt "AcceleratorTypes" x.acceleratorTypes, putOpt "AllowedInstanceTypes" x.allowedInstanceTypes, putOpt "BareMetal" x.bareMetal, putOpt "BaselineEbsBandwidthMbps" x.baselineEbsBandwidthMbps, putOpt "BaselinePerformanceFactors" x.baselinePerformanceFactors, putOpt "BurstablePerformance" x.burstablePerformance, putOpt "CpuManufacturers" x.cpuManufacturers, putOpt "ExcludedInstanceTypes" x.excludedInstanceTypes, putOpt "InstanceGenerations" x.instanceGenerations, putOpt "LocalStorage" x.localStorage, putOpt "LocalStorageTypes" x.localStorageTypes, putOpt "MaxSpotPriceAsPercentageOfOptimalOnDemandPrice" x.maxSpotPriceAsPercentageOfOptimalOnDemandPrice, putOpt "MemoryGiBPerVCpu" x.memoryGiBPerVCpu, put "MemoryMiB" x.memoryMiB, putOpt "NetworkBandwidthGbps" x.networkBandwidthGbps, putOpt "NetworkInterfaceCount" x.networkInterfaceCount, putOpt "OnDemandMaxPricePercentageOverLowestPrice" x.onDemandMaxPricePercentageOverLowestPrice, putOpt "RequireEncryptionInTransit" x.requireEncryptionInTransit, putOpt "RequireHibernateSupport" x.requireHibernateSupport, putOpt "SpotMaxPricePercentageOverLowestPrice" x.spotMaxPricePercentageOverLowestPrice, putOpt "TotalLocalStorageGB" x.totalLocalStorageGB, put "VCpuCount" x.vCpuCount] + ofValue v := do + let acceleratorCount ← v.opt "AcceleratorCount" + let acceleratorManufacturers ← v.opt "AcceleratorManufacturers" + let acceleratorNames ← v.opt "AcceleratorNames" + let acceleratorTotalMemoryMiB ← v.opt "AcceleratorTotalMemoryMiB" + let acceleratorTypes ← v.opt "AcceleratorTypes" + let allowedInstanceTypes ← v.opt "AllowedInstanceTypes" + let bareMetal ← v.opt "BareMetal" + let baselineEbsBandwidthMbps ← v.opt "BaselineEbsBandwidthMbps" + let baselinePerformanceFactors ← v.opt "BaselinePerformanceFactors" + let burstablePerformance ← v.opt "BurstablePerformance" + let cpuManufacturers ← v.opt "CpuManufacturers" + let excludedInstanceTypes ← v.opt "ExcludedInstanceTypes" + let instanceGenerations ← v.opt "InstanceGenerations" + let localStorage ← v.opt "LocalStorage" + let localStorageTypes ← v.opt "LocalStorageTypes" + let maxSpotPriceAsPercentageOfOptimalOnDemandPrice ← v.opt "MaxSpotPriceAsPercentageOfOptimalOnDemandPrice" + let memoryGiBPerVCpu ← v.opt "MemoryGiBPerVCpu" + let memoryMiB ← v.req "MemoryMiB" + let networkBandwidthGbps ← v.opt "NetworkBandwidthGbps" + let networkInterfaceCount ← v.opt "NetworkInterfaceCount" + let onDemandMaxPricePercentageOverLowestPrice ← v.opt "OnDemandMaxPricePercentageOverLowestPrice" + let requireEncryptionInTransit ← v.opt "RequireEncryptionInTransit" + let requireHibernateSupport ← v.opt "RequireHibernateSupport" + let spotMaxPricePercentageOverLowestPrice ← v.opt "SpotMaxPricePercentageOverLowestPrice" + let totalLocalStorageGB ← v.opt "TotalLocalStorageGB" + let vCpuCount ← v.req "VCpuCount" + return { acceleratorCount, acceleratorManufacturers, acceleratorNames, acceleratorTotalMemoryMiB, acceleratorTypes, allowedInstanceTypes, bareMetal, baselineEbsBandwidthMbps, baselinePerformanceFactors, burstablePerformance, cpuManufacturers, excludedInstanceTypes, instanceGenerations, localStorage, localStorageTypes, maxSpotPriceAsPercentageOfOptimalOnDemandPrice, memoryGiBPerVCpu, memoryMiB, networkBandwidthGbps, networkInterfaceCount, onDemandMaxPricePercentageOverLowestPrice, requireEncryptionInTransit, requireHibernateSupport, spotMaxPricePercentageOverLowestPrice, totalLocalStorageGB, vCpuCount } + +/-- Describes the status of an instance, including system status, instance status, attached EBS status, application status, and performance status. -/ +structure InstanceStatus where + /-- Reports the application-level health status for the instance. -/ + applicationStatus : Option ApplicationStatusSummary := none + /-- Reports impaired functionality that stems from an attached Amazon EBS volume that is unreachable and unable to complete I/O operations. -/ + attachedEbsStatus : Option EbsStatusSummary := none + /-- The Availability Zone of the instance. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone of the instance. -/ + availabilityZoneId : Option String := none + /-- Any scheduled events associated with the instance. -/ + events : Option (List InstanceStatusEvent) := none + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- The intended state of the instance. -/ + instanceState : Option InstanceState := none + /-- Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability. -/ + instanceStatus : Option InstanceStatusSummary := none + /-- The service provider that manages the instance. -/ + operator : Option OperatorResponse := none + /-- The Amazon Resource Name (ARN) of the Outpost. -/ + outpostArn : Option String := none + /-- Reports the performance-related health status for the instance. -/ + performanceStatus : Option PerformanceStatusSummary := none + /-- Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems. -/ + systemStatus : Option InstanceStatusSummary := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceStatus where + schema := .struct "InstanceStatus" [({ name := "ApplicationStatus", xmlName := some "applicationStatus", queryName := some "ApplicationStatus" }, (Shape.schema ApplicationStatusSummary)), + ({ name := "AttachedEbsStatus", xmlName := some "attachedEbsStatus", queryName := some "AttachedEbsStatus" }, (Shape.schema EbsStatusSummary)), + ({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "Events", xmlName := some "eventsSet", queryName := some "EventsSet" }, (.list (Shape.schema InstanceStatusEvent) "item")), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "InstanceState", xmlName := some "instanceState", queryName := some "InstanceState" }, (Shape.schema InstanceState)), + ({ name := "InstanceStatus", xmlName := some "instanceStatus", queryName := some "InstanceStatus" }, (Shape.schema InstanceStatusSummary)), + ({ name := "Operator", xmlName := some "operator", queryName := some "Operator" }, (Shape.schema OperatorResponse)), + ({ name := "OutpostArn", xmlName := some "outpostArn", queryName := some "OutpostArn" }, .string), + ({ name := "PerformanceStatus", xmlName := some "performanceStatus", queryName := some "PerformanceStatus" }, (Shape.schema PerformanceStatusSummary)), + ({ name := "SystemStatus", xmlName := some "systemStatus", queryName := some "SystemStatus" }, (Shape.schema InstanceStatusSummary))] + toValue x := record [putOpt "ApplicationStatus" x.applicationStatus, putOpt "AttachedEbsStatus" x.attachedEbsStatus, putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "Events" x.events, putOpt "InstanceId" x.instanceId, putOpt "InstanceState" x.instanceState, putOpt "InstanceStatus" x.instanceStatus, putOpt "Operator" x.operator, putOpt "OutpostArn" x.outpostArn, putOpt "PerformanceStatus" x.performanceStatus, putOpt "SystemStatus" x.systemStatus] + ofValue v := do + let applicationStatus ← v.opt "ApplicationStatus" + let attachedEbsStatus ← v.opt "AttachedEbsStatus" + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let events ← v.opt "Events" + let instanceId ← v.opt "InstanceId" + let instanceState ← v.opt "InstanceState" + let instanceStatus ← v.opt "InstanceStatus" + let operator ← v.opt "Operator" + let outpostArn ← v.opt "OutpostArn" + let performanceStatus ← v.opt "PerformanceStatus" + let systemStatus ← v.opt "SystemStatus" + return { applicationStatus, attachedEbsStatus, availabilityZone, availabilityZoneId, events, instanceId, instanceState, instanceStatus, operator, outpostArn, performanceStatus, systemStatus } + +/-- Describes the instance type. -/ +structure InstanceTypeInfo where + /-- Indicates whether Amazon CloudWatch action based recovery is supported. -/ + autoRecoverySupported : Option Bool := none + /-- Indicates whether the instance is a bare metal instance type. -/ + bareMetal : Option Bool := none + /-- Indicates whether the instance type is a burstable performance T instance type. -/ + burstablePerformanceSupported : Option Bool := none + /-- Indicates whether the instance type is current generation. -/ + currentGeneration : Option Bool := none + /-- Indicates whether Dedicated Hosts are supported on the instance type. -/ + dedicatedHostsSupported : Option Bool := none + /-- Describes the Amazon EBS settings for the instance type. -/ + ebsInfo : Option EbsInfo := none + /-- Describes the FPGA accelerator settings for the instance type. -/ + fpgaInfo : Option FpgaInfo := none + /-- Indicates whether the instance type is eligible for the free tier. -/ + freeTierEligible : Option Bool := none + /-- Describes the GPU accelerator settings for the instance type. -/ + gpuInfo : Option GpuInfo := none + /-- Indicates whether On-Demand hibernation is supported. -/ + hibernationSupported : Option Bool := none + /-- The hypervisor for the instance type. -/ + hypervisor : Option InstanceTypeHypervisor := none + /-- Describes the Inference accelerator settings for the instance type. -/ + inferenceAcceleratorInfo : Option InferenceAcceleratorInfo := none + /-- Describes the instance storage for the instance type. -/ + instanceStorageInfo : Option InstanceStorageInfo := none + /-- Indicates whether instance storage is supported. -/ + instanceStorageSupported : Option Bool := none + /-- The instance type. -/ + instanceType : Option InstanceType := none + /-- Describes the media accelerator settings for the instance type. -/ + mediaAcceleratorInfo : Option MediaAcceleratorInfo := none + /-- Describes the memory for the instance type. -/ + memoryInfo : Option MemoryInfo := none + /-- Describes the network settings for the instance type. -/ + networkInfo : Option NetworkInfo := none + /-- Describes the Neuron accelerator settings for the instance type. -/ + neuronInfo : Option NeuronInfo := none + /-- Indicates whether Nitro Enclaves is supported. -/ + nitroEnclavesSupport : Option NitroEnclavesSupport := none + /-- Describes the supported NitroTPM versions for the instance type. -/ + nitroTpmInfo : Option NitroTpmInfo := none + /-- Indicates whether NitroTPM is supported. -/ + nitroTpmSupport : Option NitroTpmSupport := none + /-- Indicates whether a local Precision Time Protocol (PTP) hardware clock (PHC) is supported. -/ + phcSupport : Option PhcSupport := none + /-- Describes the placement group settings for the instance type. -/ + placementGroupInfo : Option PlacementGroupInfo := none + /-- Describes the processor. -/ + processorInfo : Option ProcessorInfo := none + /-- Indicates whether reboot migration during a user-initiated reboot is supported for instances that have a scheduled system-reboot event. -/ + rebootMigrationSupport : Option RebootMigrationSupport := none + /-- The supported boot modes. -/ + supportedBootModes : Option (List BootModeType) := none + /-- Indicates whether the instance type is supported in the current Region. -/ + supportedInRegion : Option Bool := none + /-- The supported root device types. -/ + supportedRootDeviceTypes : Option (List RootDeviceType) := none + /-- Indicates whether the instance type is offered for spot, On-Demand, or Capacity Blocks. -/ + supportedUsageClasses : Option (List UsageClassType) := none + /-- The supported virtualization types. -/ + supportedVirtualizationTypes : Option (List VirtualizationType) := none + /-- Describes the vCPU configurations for the instance type. -/ + vCpuInfo : Option VCpuInfo := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceTypeInfo where + schema := .struct "InstanceTypeInfo" [({ name := "AutoRecoverySupported", xmlName := some "autoRecoverySupported", queryName := some "AutoRecoverySupported" }, .bool), + ({ name := "BareMetal", xmlName := some "bareMetal", queryName := some "BareMetal" }, .bool), + ({ name := "BurstablePerformanceSupported", xmlName := some "burstablePerformanceSupported", queryName := some "BurstablePerformanceSupported" }, .bool), + ({ name := "CurrentGeneration", xmlName := some "currentGeneration", queryName := some "CurrentGeneration" }, .bool), + ({ name := "DedicatedHostsSupported", xmlName := some "dedicatedHostsSupported", queryName := some "DedicatedHostsSupported" }, .bool), + ({ name := "EbsInfo", xmlName := some "ebsInfo", queryName := some "EbsInfo" }, (Shape.schema EbsInfo)), + ({ name := "FpgaInfo", xmlName := some "fpgaInfo", queryName := some "FpgaInfo" }, (Shape.schema FpgaInfo)), + ({ name := "FreeTierEligible", xmlName := some "freeTierEligible", queryName := some "FreeTierEligible" }, .bool), + ({ name := "GpuInfo", xmlName := some "gpuInfo", queryName := some "GpuInfo" }, (Shape.schema GpuInfo)), + ({ name := "HibernationSupported", xmlName := some "hibernationSupported", queryName := some "HibernationSupported" }, .bool), + ({ name := "Hypervisor", xmlName := some "hypervisor", queryName := some "Hypervisor" }, (Shape.schema InstanceTypeHypervisor)), + ({ name := "InferenceAcceleratorInfo", xmlName := some "inferenceAcceleratorInfo", queryName := some "InferenceAcceleratorInfo" }, (Shape.schema InferenceAcceleratorInfo)), + ({ name := "InstanceStorageInfo", xmlName := some "instanceStorageInfo", queryName := some "InstanceStorageInfo" }, (Shape.schema InstanceStorageInfo)), + ({ name := "InstanceStorageSupported", xmlName := some "instanceStorageSupported", queryName := some "InstanceStorageSupported" }, .bool), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "MediaAcceleratorInfo", xmlName := some "mediaAcceleratorInfo", queryName := some "MediaAcceleratorInfo" }, (Shape.schema MediaAcceleratorInfo)), + ({ name := "MemoryInfo", xmlName := some "memoryInfo", queryName := some "MemoryInfo" }, (Shape.schema MemoryInfo)), + ({ name := "NetworkInfo", xmlName := some "networkInfo", queryName := some "NetworkInfo" }, (Shape.schema NetworkInfo)), + ({ name := "NeuronInfo", xmlName := some "neuronInfo", queryName := some "NeuronInfo" }, (Shape.schema NeuronInfo)), + ({ name := "NitroEnclavesSupport", xmlName := some "nitroEnclavesSupport", queryName := some "NitroEnclavesSupport" }, (Shape.schema NitroEnclavesSupport)), + ({ name := "NitroTpmInfo", xmlName := some "nitroTpmInfo", queryName := some "NitroTpmInfo" }, (Shape.schema NitroTpmInfo)), + ({ name := "NitroTpmSupport", xmlName := some "nitroTpmSupport", queryName := some "NitroTpmSupport" }, (Shape.schema NitroTpmSupport)), + ({ name := "PhcSupport", xmlName := some "phcSupport", queryName := some "PhcSupport" }, (Shape.schema PhcSupport)), + ({ name := "PlacementGroupInfo", xmlName := some "placementGroupInfo", queryName := some "PlacementGroupInfo" }, (Shape.schema PlacementGroupInfo)), + ({ name := "ProcessorInfo", xmlName := some "processorInfo", queryName := some "ProcessorInfo" }, (Shape.schema ProcessorInfo)), + ({ name := "RebootMigrationSupport", xmlName := some "rebootMigrationSupport", queryName := some "RebootMigrationSupport" }, (Shape.schema RebootMigrationSupport)), + ({ name := "SupportedBootModes", xmlName := some "supportedBootModes", queryName := some "SupportedBootModes" }, (.list (Shape.schema BootModeType) "item")), + ({ name := "SupportedInRegion", xmlName := some "supportedInRegion", queryName := some "SupportedInRegion" }, .bool), + ({ name := "SupportedRootDeviceTypes", xmlName := some "supportedRootDeviceTypes", queryName := some "SupportedRootDeviceTypes" }, (.list (Shape.schema RootDeviceType) "item")), + ({ name := "SupportedUsageClasses", xmlName := some "supportedUsageClasses", queryName := some "SupportedUsageClasses" }, (.list (Shape.schema UsageClassType) "item")), + ({ name := "SupportedVirtualizationTypes", xmlName := some "supportedVirtualizationTypes", queryName := some "SupportedVirtualizationTypes" }, (.list (Shape.schema VirtualizationType) "item")), + ({ name := "VCpuInfo", xmlName := some "vCpuInfo", queryName := some "VCpuInfo" }, (Shape.schema VCpuInfo))] + toValue x := record [putOpt "AutoRecoverySupported" x.autoRecoverySupported, putOpt "BareMetal" x.bareMetal, putOpt "BurstablePerformanceSupported" x.burstablePerformanceSupported, putOpt "CurrentGeneration" x.currentGeneration, putOpt "DedicatedHostsSupported" x.dedicatedHostsSupported, putOpt "EbsInfo" x.ebsInfo, putOpt "FpgaInfo" x.fpgaInfo, putOpt "FreeTierEligible" x.freeTierEligible, putOpt "GpuInfo" x.gpuInfo, putOpt "HibernationSupported" x.hibernationSupported, putOpt "Hypervisor" x.hypervisor, putOpt "InferenceAcceleratorInfo" x.inferenceAcceleratorInfo, putOpt "InstanceStorageInfo" x.instanceStorageInfo, putOpt "InstanceStorageSupported" x.instanceStorageSupported, putOpt "InstanceType" x.instanceType, putOpt "MediaAcceleratorInfo" x.mediaAcceleratorInfo, putOpt "MemoryInfo" x.memoryInfo, putOpt "NetworkInfo" x.networkInfo, putOpt "NeuronInfo" x.neuronInfo, putOpt "NitroEnclavesSupport" x.nitroEnclavesSupport, putOpt "NitroTpmInfo" x.nitroTpmInfo, putOpt "NitroTpmSupport" x.nitroTpmSupport, putOpt "PhcSupport" x.phcSupport, putOpt "PlacementGroupInfo" x.placementGroupInfo, putOpt "ProcessorInfo" x.processorInfo, putOpt "RebootMigrationSupport" x.rebootMigrationSupport, putOpt "SupportedBootModes" x.supportedBootModes, putOpt "SupportedInRegion" x.supportedInRegion, putOpt "SupportedRootDeviceTypes" x.supportedRootDeviceTypes, putOpt "SupportedUsageClasses" x.supportedUsageClasses, putOpt "SupportedVirtualizationTypes" x.supportedVirtualizationTypes, putOpt "VCpuInfo" x.vCpuInfo] + ofValue v := do + let autoRecoverySupported ← v.opt "AutoRecoverySupported" + let bareMetal ← v.opt "BareMetal" + let burstablePerformanceSupported ← v.opt "BurstablePerformanceSupported" + let currentGeneration ← v.opt "CurrentGeneration" + let dedicatedHostsSupported ← v.opt "DedicatedHostsSupported" + let ebsInfo ← v.opt "EbsInfo" + let fpgaInfo ← v.opt "FpgaInfo" + let freeTierEligible ← v.opt "FreeTierEligible" + let gpuInfo ← v.opt "GpuInfo" + let hibernationSupported ← v.opt "HibernationSupported" + let hypervisor ← v.opt "Hypervisor" + let inferenceAcceleratorInfo ← v.opt "InferenceAcceleratorInfo" + let instanceStorageInfo ← v.opt "InstanceStorageInfo" + let instanceStorageSupported ← v.opt "InstanceStorageSupported" + let instanceType ← v.opt "InstanceType" + let mediaAcceleratorInfo ← v.opt "MediaAcceleratorInfo" + let memoryInfo ← v.opt "MemoryInfo" + let networkInfo ← v.opt "NetworkInfo" + let neuronInfo ← v.opt "NeuronInfo" + let nitroEnclavesSupport ← v.opt "NitroEnclavesSupport" + let nitroTpmInfo ← v.opt "NitroTpmInfo" + let nitroTpmSupport ← v.opt "NitroTpmSupport" + let phcSupport ← v.opt "PhcSupport" + let placementGroupInfo ← v.opt "PlacementGroupInfo" + let processorInfo ← v.opt "ProcessorInfo" + let rebootMigrationSupport ← v.opt "RebootMigrationSupport" + let supportedBootModes ← v.opt "SupportedBootModes" + let supportedInRegion ← v.opt "SupportedInRegion" + let supportedRootDeviceTypes ← v.opt "SupportedRootDeviceTypes" + let supportedUsageClasses ← v.opt "SupportedUsageClasses" + let supportedVirtualizationTypes ← v.opt "SupportedVirtualizationTypes" + let vCpuInfo ← v.opt "VCpuInfo" + return { autoRecoverySupported, bareMetal, burstablePerformanceSupported, currentGeneration, dedicatedHostsSupported, ebsInfo, fpgaInfo, freeTierEligible, gpuInfo, hibernationSupported, hypervisor, inferenceAcceleratorInfo, instanceStorageInfo, instanceStorageSupported, instanceType, mediaAcceleratorInfo, memoryInfo, networkInfo, neuronInfo, nitroEnclavesSupport, nitroTpmInfo, nitroTpmSupport, phcSupport, placementGroupInfo, processorInfo, rebootMigrationSupport, supportedBootModes, supportedInRegion, supportedRootDeviceTypes, supportedUsageClasses, supportedVirtualizationTypes, vCpuInfo } + +/-- Describes the launch specification for an instance. -/ +structure LaunchSpecification where + /-- Deprecated. -/ + addressingType : Option String := none + /-- The block device mapping entries. -/ + blockDeviceMappings : Option (List BlockDeviceMapping) := none + /-- Indicates whether the instance is optimized for EBS I/O. -/ + ebsOptimized : Option Bool := none + /-- The IAM instance profile. -/ + iamInstanceProfile : Option IamInstanceProfileSpecification := none + /-- The ID of the AMI. -/ + imageId : Option String := none + /-- The instance type. -/ + instanceType : Option InstanceType := none + /-- The ID of the kernel. -/ + kernelId : Option String := none + /-- The name of the key pair. -/ + keyName : Option String := none + monitoring : Option RunInstancesMonitoringEnabled := none + /-- The network interfaces. -/ + networkInterfaces : Option (List InstanceNetworkInterfaceSpecification) := none + /-- The placement information for the instance. -/ + placement : Option SpotPlacement := none + /-- The ID of the RAM disk. -/ + ramdiskId : Option String := none + /-- The IDs of the security groups. -/ + securityGroups : Option (List GroupIdentifier) := none + /-- The ID of the subnet in which to launch the instance. -/ + subnetId : Option String := none + /-- The base64-encoded user data that instances use when starting up. -/ + userData : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchSpecification where + schema := .struct "LaunchSpecification" [({ name := "AddressingType", xmlName := some "addressingType", queryName := some "AddressingType" }, .string), + ({ name := "BlockDeviceMappings", xmlName := some "blockDeviceMapping", queryName := some "BlockDeviceMapping" }, (.list (Shape.schema BlockDeviceMapping) "item")), + ({ name := "EbsOptimized", xmlName := some "ebsOptimized", queryName := some "EbsOptimized" }, .bool), + ({ name := "IamInstanceProfile", xmlName := some "iamInstanceProfile", queryName := some "IamInstanceProfile" }, (Shape.schema IamInstanceProfileSpecification)), + ({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "KernelId", xmlName := some "kernelId", queryName := some "KernelId" }, .string), + ({ name := "KeyName", xmlName := some "keyName", queryName := some "KeyName" }, .string), + ({ name := "Monitoring", xmlName := some "monitoring", queryName := some "Monitoring" }, (Shape.schema RunInstancesMonitoringEnabled)), + ({ name := "NetworkInterfaces", xmlName := some "networkInterfaceSet", queryName := some "NetworkInterfaceSet" }, (.list (Shape.schema InstanceNetworkInterfaceSpecification) "item")), + ({ name := "Placement", xmlName := some "placement", queryName := some "Placement" }, (Shape.schema SpotPlacement)), + ({ name := "RamdiskId", xmlName := some "ramdiskId", queryName := some "RamdiskId" }, .string), + ({ name := "SecurityGroups", xmlName := some "groupSet", queryName := some "GroupSet" }, (.list (Shape.schema GroupIdentifier) "item")), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "UserData", xmlName := some "userData", queryName := some "UserData" }, .string)] + toValue x := record [putOpt "AddressingType" x.addressingType, putOpt "BlockDeviceMappings" x.blockDeviceMappings, putOpt "EbsOptimized" x.ebsOptimized, putOpt "IamInstanceProfile" x.iamInstanceProfile, putOpt "ImageId" x.imageId, putOpt "InstanceType" x.instanceType, putOpt "KernelId" x.kernelId, putOpt "KeyName" x.keyName, putOpt "Monitoring" x.monitoring, putOpt "NetworkInterfaces" x.networkInterfaces, putOpt "Placement" x.placement, putOpt "RamdiskId" x.ramdiskId, putOpt "SecurityGroups" x.securityGroups, putOpt "SubnetId" x.subnetId, putOpt "UserData" x.userData] + ofValue v := do + let addressingType ← v.opt "AddressingType" + let blockDeviceMappings ← v.opt "BlockDeviceMappings" + let ebsOptimized ← v.opt "EbsOptimized" + let iamInstanceProfile ← v.opt "IamInstanceProfile" + let imageId ← v.opt "ImageId" + let instanceType ← v.opt "InstanceType" + let kernelId ← v.opt "KernelId" + let keyName ← v.opt "KeyName" + let monitoring ← v.opt "Monitoring" + let networkInterfaces ← v.opt "NetworkInterfaces" + let placement ← v.opt "Placement" + let ramdiskId ← v.opt "RamdiskId" + let securityGroups ← v.opt "SecurityGroups" + let subnetId ← v.opt "SubnetId" + let userData ← v.opt "UserData" + return { addressingType, blockDeviceMappings, ebsOptimized, iamInstanceProfile, imageId, instanceType, kernelId, keyName, monitoring, networkInterfaces, placement, ramdiskId, securityGroups, subnetId, userData } + +structure ModifyAccountVpcEncryptionControlResult where + /-- Information about the account-level VPC Encryption Control configuration. -/ + accountVpcEncryptionControl : Option AccountVpcEncryptionControl := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyAccountVpcEncryptionControlResult where + schema := .struct "ModifyAccountVpcEncryptionControlResult" [({ name := "AccountVpcEncryptionControl", xmlName := some "accountVpcEncryptionControl", queryName := some "AccountVpcEncryptionControl" }, (Shape.schema AccountVpcEncryptionControl))] + toValue x := record [putOpt "AccountVpcEncryptionControl" x.accountVpcEncryptionControl] + ofValue v := do + let accountVpcEncryptionControl ← v.opt "AccountVpcEncryptionControl" + return { accountVpcEncryptionControl } + +structure ModifyApplicationStatusCheckResult where + /-- Information about the modified application status check. -/ + applicationStatusCheck : Option ApplicationStatusCheckResponseObject := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyApplicationStatusCheckResult where + schema := .struct "ModifyApplicationStatusCheckResult" [({ name := "ApplicationStatusCheck", xmlName := some "applicationStatusCheck", queryName := some "ApplicationStatusCheck" }, (Shape.schema ApplicationStatusCheckResponseObject))] + toValue x := record [putOpt "ApplicationStatusCheck" x.applicationStatusCheck] + ofValue v := do + let applicationStatusCheck ← v.opt "ApplicationStatusCheck" + return { applicationStatusCheck } + +structure ModifyClientVpnEndpointRequest where + /-- The options for managing connection authorization for new client connections. -/ + clientConnectOptions : Option ClientConnectOptions := none + /-- Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established. -/ + clientLoginBannerOptions : Option ClientLoginBannerOptions := none + /-- Client route enforcement is a feature of the Client VPN service that helps enforce administrator defined routes on devices connected through the VPN. -/ + clientRouteEnforcementOptions : Option ClientRouteEnforcementOptions := none + /-- The ID of the Client VPN endpoint to modify. -/ + clientVpnEndpointId : String + /-- Information about the client connection logging options. -/ + connectionLogOptions : Option ConnectionLogOptions := none + /-- A brief description of the Client VPN endpoint. -/ + description : Option String := none + /-- The device posture options for the Client VPN endpoint. -/ + devicePostureOptions : Option DevicePostureOptions := none + /-- Indicates whether the client VPN session is disconnected after the maximum timeout specified in sessionTimeoutHours is reached. -/ + disconnectOnSessionTimeout : Option Bool := none + /-- Information about the DNS servers to be used by Client VPN connections. -/ + dnsServers : Option DnsServersOptionsModifyStructure := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The IDs of one or more security groups to apply to the target network. -/ + securityGroupIds : Option (List String) := none + /-- Specify whether to enable the self-service portal for the Client VPN endpoint. -/ + selfServicePortal : Option SelfServicePortal := none + /-- The ARN of the server certificate to be used. -/ + serverCertificateArn : Option String := none + /-- The maximum VPN session duration time in hours. -/ + sessionTimeoutHours : Option Int := none + /-- Indicates whether the VPN is split-tunnel. -/ + splitTunnel : Option Bool := none + /-- The Transit Gateway configuration for the Client VPN endpoint. -/ + transitGatewayConfiguration : Option TransitGatewayConfigurationInputStructure := none + /-- The ID of the VPC to associate with the Client VPN endpoint. -/ + vpcId : Option String := none + /-- The port number to assign to the Client VPN endpoint for TCP and UDP traffic. -/ + vpnPort : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyClientVpnEndpointRequest where + schema := .struct "ModifyClientVpnEndpointRequest" [({ name := "ClientConnectOptions" }, (Shape.schema ClientConnectOptions)), + ({ name := "ClientLoginBannerOptions" }, (Shape.schema ClientLoginBannerOptions)), + ({ name := "ClientRouteEnforcementOptions" }, (Shape.schema ClientRouteEnforcementOptions)), + ({ name := "ClientVpnEndpointId", required := true }, .string), + ({ name := "ConnectionLogOptions" }, (Shape.schema ConnectionLogOptions)), + ({ name := "Description" }, .string), + ({ name := "DevicePostureOptions" }, (Shape.schema DevicePostureOptions)), + ({ name := "DisconnectOnSessionTimeout" }, .bool), + ({ name := "DnsServers" }, (Shape.schema DnsServersOptionsModifyStructure)), + ({ name := "DryRun" }, .bool), + ({ name := "SecurityGroupIds", xmlName := some "SecurityGroupId" }, (.list .string "item")), + ({ name := "SelfServicePortal" }, (Shape.schema SelfServicePortal)), + ({ name := "ServerCertificateArn" }, .string), + ({ name := "SessionTimeoutHours" }, .int), + ({ name := "SplitTunnel" }, .bool), + ({ name := "TransitGatewayConfiguration" }, (Shape.schema TransitGatewayConfigurationInputStructure)), + ({ name := "VpcId" }, .string), + ({ name := "VpnPort" }, .int)] + toValue x := record [putOpt "ClientConnectOptions" x.clientConnectOptions, putOpt "ClientLoginBannerOptions" x.clientLoginBannerOptions, putOpt "ClientRouteEnforcementOptions" x.clientRouteEnforcementOptions, put "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "ConnectionLogOptions" x.connectionLogOptions, putOpt "Description" x.description, putOpt "DevicePostureOptions" x.devicePostureOptions, putOpt "DisconnectOnSessionTimeout" x.disconnectOnSessionTimeout, putOpt "DnsServers" x.dnsServers, putOpt "DryRun" x.dryRun, putOpt "SecurityGroupIds" x.securityGroupIds, putOpt "SelfServicePortal" x.selfServicePortal, putOpt "ServerCertificateArn" x.serverCertificateArn, putOpt "SessionTimeoutHours" x.sessionTimeoutHours, putOpt "SplitTunnel" x.splitTunnel, putOpt "TransitGatewayConfiguration" x.transitGatewayConfiguration, putOpt "VpcId" x.vpcId, putOpt "VpnPort" x.vpnPort] + ofValue v := do + let clientConnectOptions ← v.opt "ClientConnectOptions" + let clientLoginBannerOptions ← v.opt "ClientLoginBannerOptions" + let clientRouteEnforcementOptions ← v.opt "ClientRouteEnforcementOptions" + let clientVpnEndpointId ← v.req "ClientVpnEndpointId" + let connectionLogOptions ← v.opt "ConnectionLogOptions" + let description ← v.opt "Description" + let devicePostureOptions ← v.opt "DevicePostureOptions" + let disconnectOnSessionTimeout ← v.opt "DisconnectOnSessionTimeout" + let dnsServers ← v.opt "DnsServers" + let dryRun ← v.opt "DryRun" + let securityGroupIds ← v.opt "SecurityGroupIds" + let selfServicePortal ← v.opt "SelfServicePortal" + let serverCertificateArn ← v.opt "ServerCertificateArn" + let sessionTimeoutHours ← v.opt "SessionTimeoutHours" + let splitTunnel ← v.opt "SplitTunnel" + let transitGatewayConfiguration ← v.opt "TransitGatewayConfiguration" + let vpcId ← v.opt "VpcId" + let vpnPort ← v.opt "VpnPort" + return { clientConnectOptions, clientLoginBannerOptions, clientRouteEnforcementOptions, clientVpnEndpointId, connectionLogOptions, description, devicePostureOptions, disconnectOnSessionTimeout, dnsServers, dryRun, securityGroupIds, selfServicePortal, serverCertificateArn, sessionTimeoutHours, splitTunnel, transitGatewayConfiguration, vpcId, vpnPort } + +structure ModifyFpgaImageAttributeRequest where + /-- The name of the attribute. -/ + «attribute» : Option FpgaImageAttributeName := none + /-- A description for the AFI. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AFI. -/ + fpgaImageId : String + /-- The load permission for the AFI. -/ + loadPermission : Option LoadPermissionModifications := none + /-- A name for the AFI. -/ + name : Option String := none + /-- The operation type. -/ + operationType : Option OperationType := none + /-- The product codes. -/ + productCodes : Option (List String) := none + /-- The user groups. -/ + userGroups : Option (List String) := none + /-- The Amazon Web Services account IDs. -/ + userIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyFpgaImageAttributeRequest where + schema := .struct "ModifyFpgaImageAttributeRequest" [({ name := "Attribute" }, (Shape.schema FpgaImageAttributeName)), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "FpgaImageId", required := true }, .string), + ({ name := "LoadPermission" }, (Shape.schema LoadPermissionModifications)), + ({ name := "Name" }, .string), + ({ name := "OperationType" }, (Shape.schema OperationType)), + ({ name := "ProductCodes", xmlName := some "ProductCode" }, (.list .string "ProductCode")), + ({ name := "UserGroups", xmlName := some "UserGroup" }, (.list .string "UserGroup")), + ({ name := "UserIds", xmlName := some "UserId" }, (.list .string "UserId"))] + toValue x := record [putOpt "Attribute" x.«attribute», putOpt "Description" x.description, putOpt "DryRun" x.dryRun, put "FpgaImageId" x.fpgaImageId, putOpt "LoadPermission" x.loadPermission, putOpt "Name" x.name, putOpt "OperationType" x.operationType, putOpt "ProductCodes" x.productCodes, putOpt "UserGroups" x.userGroups, putOpt "UserIds" x.userIds] + ofValue v := do + let «attribute» ← v.opt "Attribute" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let fpgaImageId ← v.req "FpgaImageId" + let loadPermission ← v.opt "LoadPermission" + let name ← v.opt "Name" + let operationType ← v.opt "OperationType" + let productCodes ← v.opt "ProductCodes" + let userGroups ← v.opt "UserGroups" + let userIds ← v.opt "UserIds" + return { «attribute», description, dryRun, fpgaImageId, loadPermission, name, operationType, productCodes, userGroups, userIds } + +structure ModifyFpgaImageAttributeResult where + /-- Information about the attribute. -/ + fpgaImageAttribute : Option FpgaImageAttribute := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyFpgaImageAttributeResult where + schema := .struct "ModifyFpgaImageAttributeResult" [({ name := "FpgaImageAttribute", xmlName := some "fpgaImageAttribute", queryName := some "FpgaImageAttribute" }, (Shape.schema FpgaImageAttribute))] + toValue x := record [putOpt "FpgaImageAttribute" x.fpgaImageAttribute] + ofValue v := do + let fpgaImageAttribute ← v.opt "FpgaImageAttribute" + return { fpgaImageAttribute } + +/-- Contains the parameters for ModifyImageAttribute. -/ +structure ModifyImageAttributeRequest where + /-- The name of the attribute to modify. -/ + «attribute» : Option String := none + /-- A new description for the AMI. -/ + description : Option AttributeValue := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the AMI. -/ + imageId : String + /-- Set to v2.0 to indicate that IMDSv2 is specified in the AMI. -/ + imdsSupport : Option AttributeValue := none + /-- A new launch permission for the AMI. -/ + launchPermission : Option LaunchPermissionModifications := none + /-- The operation type. -/ + operationType : Option OperationType := none + /-- The Amazon Resource Name (ARN) of an organization. -/ + organizationArns : Option (List String) := none + /-- The Amazon Resource Name (ARN) of an organizational unit (OU). -/ + organizationalUnitArns : Option (List String) := none + /-- Not supported. -/ + productCodes : Option (List String) := none + /-- The user groups. -/ + userGroups : Option (List String) := none + /-- The Amazon Web Services account IDs. -/ + userIds : Option (List String) := none + /-- The value of the attribute being modified. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyImageAttributeRequest where + schema := .struct "ModifyImageAttributeRequest" [({ name := "Attribute" }, .string), + ({ name := "Description" }, (Shape.schema AttributeValue)), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "ImageId", required := true }, .string), + ({ name := "ImdsSupport" }, (Shape.schema AttributeValue)), + ({ name := "LaunchPermission" }, (Shape.schema LaunchPermissionModifications)), + ({ name := "OperationType" }, (Shape.schema OperationType)), + ({ name := "OrganizationArns", xmlName := some "OrganizationArn" }, (.list .string "OrganizationArn")), + ({ name := "OrganizationalUnitArns", xmlName := some "OrganizationalUnitArn" }, (.list .string "OrganizationalUnitArn")), + ({ name := "ProductCodes", xmlName := some "ProductCode" }, (.list .string "ProductCode")), + ({ name := "UserGroups", xmlName := some "UserGroup" }, (.list .string "UserGroup")), + ({ name := "UserIds", xmlName := some "UserId" }, (.list .string "UserId")), + ({ name := "Value" }, .string)] + toValue x := record [putOpt "Attribute" x.«attribute», putOpt "Description" x.description, putOpt "DryRun" x.dryRun, put "ImageId" x.imageId, putOpt "ImdsSupport" x.imdsSupport, putOpt "LaunchPermission" x.launchPermission, putOpt "OperationType" x.operationType, putOpt "OrganizationArns" x.organizationArns, putOpt "OrganizationalUnitArns" x.organizationalUnitArns, putOpt "ProductCodes" x.productCodes, putOpt "UserGroups" x.userGroups, putOpt "UserIds" x.userIds, putOpt "Value" x.value] + ofValue v := do + let «attribute» ← v.opt "Attribute" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let imageId ← v.req "ImageId" + let imdsSupport ← v.opt "ImdsSupport" + let launchPermission ← v.opt "LaunchPermission" + let operationType ← v.opt "OperationType" + let organizationArns ← v.opt "OrganizationArns" + let organizationalUnitArns ← v.opt "OrganizationalUnitArns" + let productCodes ← v.opt "ProductCodes" + let userGroups ← v.opt "UserGroups" + let userIds ← v.opt "UserIds" + let value ← v.opt "Value" + return { «attribute», description, dryRun, imageId, imdsSupport, launchPermission, operationType, organizationArns, organizationalUnitArns, productCodes, userGroups, userIds, value } + +structure ModifyInstanceCreditSpecificationResult where + /-- Information about the instances whose credit option for CPU usage was successfully modified. -/ + successfulInstanceCreditSpecifications : Option (List SuccessfulInstanceCreditSpecificationItem) := none + /-- Information about the instances whose credit option for CPU usage was not modified. -/ + unsuccessfulInstanceCreditSpecifications : Option (List UnsuccessfulInstanceCreditSpecificationItem) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceCreditSpecificationResult where + schema := .struct "ModifyInstanceCreditSpecificationResult" [({ name := "SuccessfulInstanceCreditSpecifications", xmlName := some "successfulInstanceCreditSpecificationSet", queryName := some "SuccessfulInstanceCreditSpecificationSet" }, (.list (Shape.schema SuccessfulInstanceCreditSpecificationItem) "item")), + ({ name := "UnsuccessfulInstanceCreditSpecifications", xmlName := some "unsuccessfulInstanceCreditSpecificationSet", queryName := some "UnsuccessfulInstanceCreditSpecificationSet" }, (.list (Shape.schema UnsuccessfulInstanceCreditSpecificationItem) "item"))] + toValue x := record [putOpt "SuccessfulInstanceCreditSpecifications" x.successfulInstanceCreditSpecifications, putOpt "UnsuccessfulInstanceCreditSpecifications" x.unsuccessfulInstanceCreditSpecifications] + ofValue v := do + let successfulInstanceCreditSpecifications ← v.opt "SuccessfulInstanceCreditSpecifications" + let unsuccessfulInstanceCreditSpecifications ← v.opt "UnsuccessfulInstanceCreditSpecifications" + return { successfulInstanceCreditSpecifications, unsuccessfulInstanceCreditSpecifications } + +structure ModifyInstanceEventWindowResult where + /-- Information about the event window. -/ + instanceEventWindow : Option InstanceEventWindow := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyInstanceEventWindowResult where + schema := .struct "ModifyInstanceEventWindowResult" [({ name := "InstanceEventWindow", xmlName := some "instanceEventWindow", queryName := some "InstanceEventWindow" }, (Shape.schema InstanceEventWindow))] + toValue x := record [putOpt "InstanceEventWindow" x.instanceEventWindow] + ofValue v := do + let instanceEventWindow ← v.opt "InstanceEventWindow" + return { instanceEventWindow } + +structure ModifyIpamPoolResult where + /-- The results of the modification. -/ + ipamPool : Option IpamPool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIpamPoolResult where + schema := .struct "ModifyIpamPoolResult" [({ name := "IpamPool", xmlName := some "ipamPool", queryName := some "IpamPool" }, (Shape.schema IpamPool))] + toValue x := record [putOpt "IpamPool" x.ipamPool] + ofValue v := do + let ipamPool ← v.opt "IpamPool" + return { ipamPool } + +structure ModifyIpamPrefixListResolverRequest where + /-- A new description for the IPAM prefix list resolver. -/ + description : Option String := none + /-- A check for whether you have the required permissions for the action without actually making the request and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the IPAM prefix list resolver to modify. -/ + ipamPrefixListResolverId : String + /-- The updated CIDR selection rules for the resolver. -/ + rules : Option (List IpamPrefixListResolverRuleRequest) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIpamPrefixListResolverRequest where + schema := .struct "ModifyIpamPrefixListResolverRequest" [({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "IpamPrefixListResolverId", required := true }, .string), + ({ name := "Rules", xmlName := some "Rule" }, (.list (Shape.schema IpamPrefixListResolverRuleRequest) "Rule"))] + toValue x := record [putOpt "Description" x.description, putOpt "DryRun" x.dryRun, put "IpamPrefixListResolverId" x.ipamPrefixListResolverId, putOpt "Rules" x.rules] + ofValue v := do + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let ipamPrefixListResolverId ← v.req "IpamPrefixListResolverId" + let rules ← v.opt "Rules" + return { description, dryRun, ipamPrefixListResolverId, rules } + +structure ModifyIpamScopeResult where + /-- The results of the modification. -/ + ipamScope : Option IpamScope := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyIpamScopeResult where + schema := .struct "ModifyIpamScopeResult" [({ name := "IpamScope", xmlName := some "ipamScope", queryName := some "IpamScope" }, (Shape.schema IpamScope))] + toValue x := record [putOpt "IpamScope" x.ipamScope] + ofValue v := do + let ipamScope ← v.opt "IpamScope" + return { ipamScope } + +structure ModifyNetworkingFlexCostAllocationPolicyRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- A description for the policy. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The ID of the flex cost allocation policy to modify. -/ + fcaPolicyId : String + /-- The updated policy document that defines cost allocation for EC2 instances. -/ + instanceFcaPolicyDocument : Option InstanceFlexCostAllocationPolicyDocument := none + /-- The updated policy document that defines cost allocation for NAT gateways. -/ + natFcaPolicyDocument : Option NatFlexCostAllocationPolicyDocument := none + /-- The updated policy document that defines cost allocation for Amazon VPC peering connections. -/ + pcxFcaPolicyDocument : Option PcxFlexCostAllocationPolicyDocument := none + /-- Specifies whether showback reporting is enabled for the policy. -/ + showBackEnabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyNetworkingFlexCostAllocationPolicyRequest where + schema := .struct "ModifyNetworkingFlexCostAllocationPolicyRequest" [({ name := "ClientToken" }, .string), + ({ name := "Description" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "FcaPolicyId", required := true }, .string), + ({ name := "InstanceFcaPolicyDocument" }, (Shape.schema InstanceFlexCostAllocationPolicyDocument)), + ({ name := "NatFcaPolicyDocument" }, (Shape.schema NatFlexCostAllocationPolicyDocument)), + ({ name := "PcxFcaPolicyDocument" }, (Shape.schema PcxFlexCostAllocationPolicyDocument)), + ({ name := "ShowBackEnabled" }, .bool)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, put "FcaPolicyId" x.fcaPolicyId, putOpt "InstanceFcaPolicyDocument" x.instanceFcaPolicyDocument, putOpt "NatFcaPolicyDocument" x.natFcaPolicyDocument, putOpt "PcxFcaPolicyDocument" x.pcxFcaPolicyDocument, putOpt "ShowBackEnabled" x.showBackEnabled] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let fcaPolicyId ← v.req "FcaPolicyId" + let instanceFcaPolicyDocument ← v.opt "InstanceFcaPolicyDocument" + let natFcaPolicyDocument ← v.opt "NatFcaPolicyDocument" + let pcxFcaPolicyDocument ← v.opt "PcxFcaPolicyDocument" + let showBackEnabled ← v.opt "ShowBackEnabled" + return { clientToken, description, dryRun, fcaPolicyId, instanceFcaPolicyDocument, natFcaPolicyDocument, pcxFcaPolicyDocument, showBackEnabled } + +structure ModifySnapshotAttributeRequest where + /-- The snapshot attribute to modify. -/ + «attribute» : Option SnapshotAttributeName := none + /-- A JSON representation of the snapshot attribute modification. -/ + createVolumePermission : Option CreateVolumePermissionModifications := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The group to modify for the snapshot. -/ + groupNames : Option (List String) := none + /-- The type of operation to perform to the attribute. -/ + operationType : Option OperationType := none + /-- The ID of the snapshot. -/ + snapshotId : String + /-- The account ID to modify for the snapshot. -/ + userIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifySnapshotAttributeRequest where + schema := .struct "ModifySnapshotAttributeRequest" [({ name := "Attribute" }, (Shape.schema SnapshotAttributeName)), + ({ name := "CreateVolumePermission" }, (Shape.schema CreateVolumePermissionModifications)), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "GroupNames", xmlName := some "UserGroup" }, (.list .string "GroupName")), + ({ name := "OperationType" }, (Shape.schema OperationType)), + ({ name := "SnapshotId", required := true }, .string), + ({ name := "UserIds", xmlName := some "UserId" }, (.list .string "UserId"))] + toValue x := record [putOpt "Attribute" x.«attribute», putOpt "CreateVolumePermission" x.createVolumePermission, putOpt "DryRun" x.dryRun, putOpt "GroupNames" x.groupNames, putOpt "OperationType" x.operationType, put "SnapshotId" x.snapshotId, putOpt "UserIds" x.userIds] + ofValue v := do + let «attribute» ← v.opt "Attribute" + let createVolumePermission ← v.opt "CreateVolumePermission" + let dryRun ← v.opt "DryRun" + let groupNames ← v.opt "GroupNames" + let operationType ← v.opt "OperationType" + let snapshotId ← v.req "SnapshotId" + let userIds ← v.opt "UserIds" + return { «attribute», createVolumePermission, dryRun, groupNames, operationType, snapshotId, userIds } + +structure ModifyTrafficMirrorFilterNetworkServicesResult where + /-- The Traffic Mirror filter that the network service is associated with. -/ + trafficMirrorFilter : Option TrafficMirrorFilter := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTrafficMirrorFilterNetworkServicesResult where + schema := .struct "ModifyTrafficMirrorFilterNetworkServicesResult" [({ name := "TrafficMirrorFilter", xmlName := some "trafficMirrorFilter", queryName := some "TrafficMirrorFilter" }, (Shape.schema TrafficMirrorFilter))] + toValue x := record [putOpt "TrafficMirrorFilter" x.trafficMirrorFilter] + ofValue v := do + let trafficMirrorFilter ← v.opt "TrafficMirrorFilter" + return { trafficMirrorFilter } + +structure ModifyTransitGatewayPeeringAttachmentResult where + /-- Information about the transit gateway peering attachment. -/ + transitGatewayPeeringAttachment : Option TransitGatewayPeeringAttachment := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTransitGatewayPeeringAttachmentResult where + schema := .struct "ModifyTransitGatewayPeeringAttachmentResult" [({ name := "TransitGatewayPeeringAttachment", xmlName := some "transitGatewayPeeringAttachment", queryName := some "TransitGatewayPeeringAttachment" }, (Shape.schema TransitGatewayPeeringAttachment))] + toValue x := record [putOpt "TransitGatewayPeeringAttachment" x.transitGatewayPeeringAttachment] + ofValue v := do + let transitGatewayPeeringAttachment ← v.opt "TransitGatewayPeeringAttachment" + return { transitGatewayPeeringAttachment } + +structure ModifyTransitGatewayPolicyTableEntryResult where + /-- Describes a transit gateway policy table entry. -/ + transitGatewayPolicyTableEntry : Option TransitGatewayPolicyTableEntry := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTransitGatewayPolicyTableEntryResult where + schema := .struct "ModifyTransitGatewayPolicyTableEntryResult" [({ name := "TransitGatewayPolicyTableEntry", xmlName := some "transitGatewayPolicyTableEntry", queryName := some "TransitGatewayPolicyTableEntry" }, (Shape.schema TransitGatewayPolicyTableEntry))] + toValue x := record [putOpt "TransitGatewayPolicyTableEntry" x.transitGatewayPolicyTableEntry] + ofValue v := do + let transitGatewayPolicyTableEntry ← v.opt "TransitGatewayPolicyTableEntry" + return { transitGatewayPolicyTableEntry } + +structure ModifyTransitGatewayPrefixListReferenceResult where + /-- Information about the prefix list reference. -/ + transitGatewayPrefixListReference : Option TransitGatewayPrefixListReference := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTransitGatewayPrefixListReferenceResult where + schema := .struct "ModifyTransitGatewayPrefixListReferenceResult" [({ name := "TransitGatewayPrefixListReference", xmlName := some "transitGatewayPrefixListReference", queryName := some "TransitGatewayPrefixListReference" }, (Shape.schema TransitGatewayPrefixListReference))] + toValue x := record [putOpt "TransitGatewayPrefixListReference" x.transitGatewayPrefixListReference] + ofValue v := do + let transitGatewayPrefixListReference ← v.opt "TransitGatewayPrefixListReference" + return { transitGatewayPrefixListReference } + +structure ModifyTransitGatewayVpcAttachmentResult where + /-- Information about the modified attachment. -/ + transitGatewayVpcAttachment : Option TransitGatewayVpcAttachment := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTransitGatewayVpcAttachmentResult where + schema := .struct "ModifyTransitGatewayVpcAttachmentResult" [({ name := "TransitGatewayVpcAttachment", xmlName := some "transitGatewayVpcAttachment", queryName := some "TransitGatewayVpcAttachment" }, (Shape.schema TransitGatewayVpcAttachment))] + toValue x := record [putOpt "TransitGatewayVpcAttachment" x.transitGatewayVpcAttachment] + ofValue v := do + let transitGatewayVpcAttachment ← v.opt "TransitGatewayVpcAttachment" + return { transitGatewayVpcAttachment } + +structure ModifyVerifiedAccessEndpointResult where + /-- Details about the Verified Access endpoint. -/ + verifiedAccessEndpoint : Option VerifiedAccessEndpoint := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessEndpointResult where + schema := .struct "ModifyVerifiedAccessEndpointResult" [({ name := "VerifiedAccessEndpoint", xmlName := some "verifiedAccessEndpoint", queryName := some "VerifiedAccessEndpoint" }, (Shape.schema VerifiedAccessEndpoint))] + toValue x := record [putOpt "VerifiedAccessEndpoint" x.verifiedAccessEndpoint] + ofValue v := do + let verifiedAccessEndpoint ← v.opt "VerifiedAccessEndpoint" + return { verifiedAccessEndpoint } + +structure ModifyVerifiedAccessInstanceResult where + /-- Details about the Verified Access instance. -/ + verifiedAccessInstance : Option VerifiedAccessInstance := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessInstanceResult where + schema := .struct "ModifyVerifiedAccessInstanceResult" [({ name := "VerifiedAccessInstance", xmlName := some "verifiedAccessInstance", queryName := some "VerifiedAccessInstance" }, (Shape.schema VerifiedAccessInstance))] + toValue x := record [putOpt "VerifiedAccessInstance" x.verifiedAccessInstance] + ofValue v := do + let verifiedAccessInstance ← v.opt "VerifiedAccessInstance" + return { verifiedAccessInstance } + +structure ModifyVpnTunnelOptionsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Specifies the storage mode for the pre-shared key (PSK). -/ + preSharedKeyStorage : Option String := none + /-- Choose whether or not to trigger immediate tunnel replacement. -/ + skipTunnelReplacement : Option Bool := none + /-- The tunnel options to modify. -/ + tunnelOptions : ModifyVpnTunnelOptionsSpecification + /-- The ID of the Amazon Web Services Site-to-Site VPN connection. -/ + vpnConnectionId : String + /-- The external IP address of the VPN tunnel. -/ + vpnTunnelOutsideIpAddress : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpnTunnelOptionsRequest where + schema := .struct "ModifyVpnTunnelOptionsRequest" [({ name := "DryRun" }, .bool), + ({ name := "PreSharedKeyStorage" }, .string), + ({ name := "SkipTunnelReplacement" }, .bool), + ({ name := "TunnelOptions", required := true }, (Shape.schema ModifyVpnTunnelOptionsSpecification)), + ({ name := "VpnConnectionId", required := true }, .string), + ({ name := "VpnTunnelOutsideIpAddress", required := true }, .string)] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "PreSharedKeyStorage" x.preSharedKeyStorage, putOpt "SkipTunnelReplacement" x.skipTunnelReplacement, put "TunnelOptions" x.tunnelOptions, put "VpnConnectionId" x.vpnConnectionId, put "VpnTunnelOutsideIpAddress" x.vpnTunnelOutsideIpAddress] + ofValue v := do + let dryRun ← v.opt "DryRun" + let preSharedKeyStorage ← v.opt "PreSharedKeyStorage" + let skipTunnelReplacement ← v.opt "SkipTunnelReplacement" + let tunnelOptions ← v.req "TunnelOptions" + let vpnConnectionId ← v.req "VpnConnectionId" + let vpnTunnelOutsideIpAddress ← v.req "VpnTunnelOutsideIpAddress" + return { dryRun, preSharedKeyStorage, skipTunnelReplacement, tunnelOptions, vpnConnectionId, vpnTunnelOutsideIpAddress } + +structure MonitorInstancesResult where + /-- The monitoring information. -/ + instanceMonitorings : Option (List InstanceMonitoring) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MonitorInstancesResult where + schema := .struct "MonitorInstancesResult" [({ name := "InstanceMonitorings", xmlName := some "instancesSet", queryName := some "InstancesSet" }, (.list (Shape.schema InstanceMonitoring) "item"))] + toValue x := record [putOpt "InstanceMonitorings" x.instanceMonitorings] + ofValue v := do + let instanceMonitorings ← v.opt "InstanceMonitorings" + return { instanceMonitorings } + +structure MoveByoipCidrToIpamResult where + /-- The BYOIP CIDR. -/ + byoipCidr : Option ByoipCidr := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MoveByoipCidrToIpamResult where + schema := .struct "MoveByoipCidrToIpamResult" [({ name := "ByoipCidr", xmlName := some "byoipCidr", queryName := some "ByoipCidr" }, (Shape.schema ByoipCidr))] + toValue x := record [putOpt "ByoipCidr" x.byoipCidr] + ofValue v := do + let byoipCidr ← v.opt "ByoipCidr" + return { byoipCidr } + +structure MoveCapacityReservationInstancesResult where + /-- Information about the destination Capacity Reservation. -/ + destinationCapacityReservation : Option CapacityReservation := none + /-- The number of instances that were moved from the source Capacity Reservation to the destination Capacity Reservation. -/ + instanceCount : Option Int := none + /-- Information about the source Capacity Reservation. -/ + sourceCapacityReservation : Option CapacityReservation := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MoveCapacityReservationInstancesResult where + schema := .struct "MoveCapacityReservationInstancesResult" [({ name := "DestinationCapacityReservation", xmlName := some "destinationCapacityReservation", queryName := some "DestinationCapacityReservation" }, (Shape.schema CapacityReservation)), + ({ name := "InstanceCount", xmlName := some "instanceCount", queryName := some "InstanceCount" }, .int), + ({ name := "SourceCapacityReservation", xmlName := some "sourceCapacityReservation", queryName := some "SourceCapacityReservation" }, (Shape.schema CapacityReservation))] + toValue x := record [putOpt "DestinationCapacityReservation" x.destinationCapacityReservation, putOpt "InstanceCount" x.instanceCount, putOpt "SourceCapacityReservation" x.sourceCapacityReservation] + ofValue v := do + let destinationCapacityReservation ← v.opt "DestinationCapacityReservation" + let instanceCount ← v.opt "InstanceCount" + let sourceCapacityReservation ← v.opt "SourceCapacityReservation" + return { destinationCapacityReservation, instanceCount, sourceCapacityReservation } + +/-- Describes a network interface. -/ +structure NetworkInterface where + /-- The subnets associated with this network interface. -/ + associatedSubnets : Option (List String) := none + /-- The association information for an Elastic IP address (IPv4) associated with the network interface. -/ + association : Option NetworkInterfaceAssociation := none + /-- The network interface attachment. -/ + attachment : Option NetworkInterfaceAttachment := none + /-- The Availability Zone. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone. -/ + availabilityZoneId : Option String := none + /-- A security group connection tracking configuration that enables you to set the timeout for connection tracking on an Elastic network interface. -/ + connectionTrackingConfiguration : Option ConnectionTrackingConfiguration := none + /-- Indicates whether a network interface with an IPv6 address is unreachable from the public internet. -/ + denyAllIgwTraffic : Option Bool := none + /-- A description. -/ + description : Option String := none + /-- Any security groups for the network interface. -/ + groups : Option (List GroupIdentifier) := none + /-- The type of network interface. -/ + interfaceType : Option NetworkInterfaceType := none + /-- The IPv4 prefixes that are assigned to the network interface. -/ + ipv4Prefixes : Option (List Ipv4PrefixSpecification) := none + /-- The IPv6 globally unique address associated with the network interface. -/ + ipv6Address : Option String := none + /-- The IPv6 addresses associated with the network interface. -/ + ipv6Addresses : Option (List NetworkInterfaceIpv6Address) := none + /-- Indicates whether this is an IPv6 only network interface. -/ + ipv6Native : Option Bool := none + /-- The IPv6 prefixes that are assigned to the network interface. -/ + ipv6Prefixes : Option (List Ipv6PrefixSpecification) := none + /-- The MAC address. -/ + macAddress : Option String := none + /-- The ID of the network interface. -/ + networkInterfaceId : Option String := none + /-- The service provider that manages the network interface. -/ + operator : Option OperatorResponse := none + /-- The Amazon Resource Name (ARN) of the Outpost. -/ + outpostArn : Option String := none + /-- The Amazon Web Services account ID of the owner of the network interface. -/ + ownerId : Option String := none + /-- The private hostname. -/ + privateDnsName : Option String := none + /-- The IPv4 address of the network interface within the subnet. -/ + privateIpAddress : Option String := none + /-- The private IPv4 addresses associated with the network interface. -/ + privateIpAddresses : Option (List NetworkInterfacePrivateIpAddress) := none + /-- A public hostname. -/ + publicDnsName : Option String := none + /-- Public hostname type options. -/ + publicIpDnsNameOptions : Option PublicIpDnsNameOptions := none + /-- The alias or Amazon Web Services account ID of the principal or service that created the network interface. -/ + requesterId : Option String := none + /-- Indicates whether the network interface is being managed by Amazon Web Services. -/ + requesterManaged : Option Bool := none + /-- Indicates whether source/destination checking is enabled. -/ + sourceDestCheck : Option Bool := none + /-- The status of the network interface. -/ + status : Option NetworkInterfaceStatus := none + /-- The ID of the subnet. -/ + subnetId : Option String := none + /-- Any tags assigned to the network interface. -/ + tagSet : Option (List Tag) := none + /-- The ID of the VPC. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkInterface where + schema := .struct "NetworkInterface" [({ name := "AssociatedSubnets", xmlName := some "associatedSubnetSet", queryName := some "AssociatedSubnetSet" }, (.list .string "item")), + ({ name := "Association", xmlName := some "association", queryName := some "Association" }, (Shape.schema NetworkInterfaceAssociation)), + ({ name := "Attachment", xmlName := some "attachment", queryName := some "Attachment" }, (Shape.schema NetworkInterfaceAttachment)), + ({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "ConnectionTrackingConfiguration", xmlName := some "connectionTrackingConfiguration", queryName := some "ConnectionTrackingConfiguration" }, (Shape.schema ConnectionTrackingConfiguration)), + ({ name := "DenyAllIgwTraffic", xmlName := some "denyAllIgwTraffic", queryName := some "DenyAllIgwTraffic" }, .bool), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "Groups", xmlName := some "groupSet", queryName := some "GroupSet" }, (.list (Shape.schema GroupIdentifier) "item")), + ({ name := "InterfaceType", xmlName := some "interfaceType", queryName := some "InterfaceType" }, (Shape.schema NetworkInterfaceType)), + ({ name := "Ipv4Prefixes", xmlName := some "ipv4PrefixSet", queryName := some "Ipv4PrefixSet" }, (.list (Shape.schema Ipv4PrefixSpecification) "item")), + ({ name := "Ipv6Address", xmlName := some "ipv6Address", queryName := some "Ipv6Address" }, .string), + ({ name := "Ipv6Addresses", xmlName := some "ipv6AddressesSet", queryName := some "Ipv6AddressesSet" }, (.list (Shape.schema NetworkInterfaceIpv6Address) "item")), + ({ name := "Ipv6Native", xmlName := some "ipv6Native", queryName := some "Ipv6Native" }, .bool), + ({ name := "Ipv6Prefixes", xmlName := some "ipv6PrefixSet", queryName := some "Ipv6PrefixSet" }, (.list (Shape.schema Ipv6PrefixSpecification) "item")), + ({ name := "MacAddress", xmlName := some "macAddress", queryName := some "MacAddress" }, .string), + ({ name := "NetworkInterfaceId", xmlName := some "networkInterfaceId", queryName := some "NetworkInterfaceId" }, .string), + ({ name := "Operator", xmlName := some "operator", queryName := some "Operator" }, (Shape.schema OperatorResponse)), + ({ name := "OutpostArn", xmlName := some "outpostArn", queryName := some "OutpostArn" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "PrivateDnsName", xmlName := some "privateDnsName", queryName := some "PrivateDnsName" }, .string), + ({ name := "PrivateIpAddress", xmlName := some "privateIpAddress", queryName := some "PrivateIpAddress" }, .string), + ({ name := "PrivateIpAddresses", xmlName := some "privateIpAddressesSet", queryName := some "PrivateIpAddressesSet" }, (.list (Shape.schema NetworkInterfacePrivateIpAddress) "item")), + ({ name := "PublicDnsName", xmlName := some "publicDnsName", queryName := some "PublicDnsName" }, .string), + ({ name := "PublicIpDnsNameOptions", xmlName := some "publicIpDnsNameOptions", queryName := some "PublicIpDnsNameOptions" }, (Shape.schema PublicIpDnsNameOptions)), + ({ name := "RequesterId", xmlName := some "requesterId", queryName := some "RequesterId" }, .string), + ({ name := "RequesterManaged", xmlName := some "requesterManaged", queryName := some "RequesterManaged" }, .bool), + ({ name := "SourceDestCheck", xmlName := some "sourceDestCheck", queryName := some "SourceDestCheck" }, .bool), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema NetworkInterfaceStatus)), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "TagSet", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "AssociatedSubnets" x.associatedSubnets, putOpt "Association" x.association, putOpt "Attachment" x.attachment, putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "ConnectionTrackingConfiguration" x.connectionTrackingConfiguration, putOpt "DenyAllIgwTraffic" x.denyAllIgwTraffic, putOpt "Description" x.description, putOpt "Groups" x.groups, putOpt "InterfaceType" x.interfaceType, putOpt "Ipv4Prefixes" x.ipv4Prefixes, putOpt "Ipv6Address" x.ipv6Address, putOpt "Ipv6Addresses" x.ipv6Addresses, putOpt "Ipv6Native" x.ipv6Native, putOpt "Ipv6Prefixes" x.ipv6Prefixes, putOpt "MacAddress" x.macAddress, putOpt "NetworkInterfaceId" x.networkInterfaceId, putOpt "Operator" x.operator, putOpt "OutpostArn" x.outpostArn, putOpt "OwnerId" x.ownerId, putOpt "PrivateDnsName" x.privateDnsName, putOpt "PrivateIpAddress" x.privateIpAddress, putOpt "PrivateIpAddresses" x.privateIpAddresses, putOpt "PublicDnsName" x.publicDnsName, putOpt "PublicIpDnsNameOptions" x.publicIpDnsNameOptions, putOpt "RequesterId" x.requesterId, putOpt "RequesterManaged" x.requesterManaged, putOpt "SourceDestCheck" x.sourceDestCheck, putOpt "Status" x.status, putOpt "SubnetId" x.subnetId, putOpt "TagSet" x.tagSet, putOpt "VpcId" x.vpcId] + ofValue v := do + let associatedSubnets ← v.opt "AssociatedSubnets" + let association ← v.opt "Association" + let attachment ← v.opt "Attachment" + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let connectionTrackingConfiguration ← v.opt "ConnectionTrackingConfiguration" + let denyAllIgwTraffic ← v.opt "DenyAllIgwTraffic" + let description ← v.opt "Description" + let groups ← v.opt "Groups" + let interfaceType ← v.opt "InterfaceType" + let ipv4Prefixes ← v.opt "Ipv4Prefixes" + let ipv6Address ← v.opt "Ipv6Address" + let ipv6Addresses ← v.opt "Ipv6Addresses" + let ipv6Native ← v.opt "Ipv6Native" + let ipv6Prefixes ← v.opt "Ipv6Prefixes" + let macAddress ← v.opt "MacAddress" + let networkInterfaceId ← v.opt "NetworkInterfaceId" + let operator ← v.opt "Operator" + let outpostArn ← v.opt "OutpostArn" + let ownerId ← v.opt "OwnerId" + let privateDnsName ← v.opt "PrivateDnsName" + let privateIpAddress ← v.opt "PrivateIpAddress" + let privateIpAddresses ← v.opt "PrivateIpAddresses" + let publicDnsName ← v.opt "PublicDnsName" + let publicIpDnsNameOptions ← v.opt "PublicIpDnsNameOptions" + let requesterId ← v.opt "RequesterId" + let requesterManaged ← v.opt "RequesterManaged" + let sourceDestCheck ← v.opt "SourceDestCheck" + let status ← v.opt "Status" + let subnetId ← v.opt "SubnetId" + let tagSet ← v.opt "TagSet" + let vpcId ← v.opt "VpcId" + return { associatedSubnets, association, attachment, availabilityZone, availabilityZoneId, connectionTrackingConfiguration, denyAllIgwTraffic, description, groups, interfaceType, ipv4Prefixes, ipv6Address, ipv6Addresses, ipv6Native, ipv6Prefixes, macAddress, networkInterfaceId, operator, outpostArn, ownerId, privateDnsName, privateIpAddress, privateIpAddresses, publicDnsName, publicIpDnsNameOptions, requesterId, requesterManaged, sourceDestCheck, status, subnetId, tagSet, vpcId } + +/-- Describes a path component. -/ +structure PathComponent where + /-- The network ACL rule. -/ + aclRule : Option AnalysisAclRule := none + /-- The additional details. -/ + additionalDetails : Option (List AdditionalDetail) := none + /-- The resource to which the path component is attached. -/ + attachedTo : Option AnalysisComponent := none + /-- The component. -/ + component : Option AnalysisComponent := none + /-- The destination VPC. -/ + destinationVpc : Option AnalysisComponent := none + /-- The load balancer listener. -/ + elasticLoadBalancerListener : Option AnalysisComponent := none + /-- The explanation codes. -/ + explanations : Option (List Explanation) := none + /-- The Network Firewall stateful rule. -/ + firewallStatefulRule : Option FirewallStatefulRule := none + /-- The Network Firewall stateless rule. -/ + firewallStatelessRule : Option FirewallStatelessRule := none + /-- The inbound header. -/ + inboundHeader : Option AnalysisPacketHeader := none + /-- The outbound header. -/ + outboundHeader : Option AnalysisPacketHeader := none + /-- The route table route. -/ + routeTableRoute : Option AnalysisRouteTableRoute := none + /-- The security group rule. -/ + securityGroupRule : Option AnalysisSecurityGroupRule := none + /-- The sequence number. -/ + sequenceNumber : Option Int := none + /-- The name of the VPC endpoint service. -/ + serviceName : Option String := none + /-- The source VPC. -/ + sourceVpc : Option AnalysisComponent := none + /-- The subnet. -/ + subnet : Option AnalysisComponent := none + /-- The transit gateway. -/ + transitGateway : Option AnalysisComponent := none + /-- The entry in a transit gateway policy table. -/ + transitGatewayPolicyTableEntry : Option AnalysisTransitGatewayPolicyTableEntry := none + /-- The route in a transit gateway route table. -/ + transitGatewayRouteTableRoute : Option TransitGatewayRouteTableRoute := none + /-- The component VPC. -/ + vpc : Option AnalysisComponent := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PathComponent where + schema := .struct "PathComponent" [({ name := "AclRule", xmlName := some "aclRule", queryName := some "AclRule" }, (Shape.schema AnalysisAclRule)), + ({ name := "AdditionalDetails", xmlName := some "additionalDetailSet", queryName := some "AdditionalDetailSet" }, (.list (Shape.schema AdditionalDetail) "item")), + ({ name := "AttachedTo", xmlName := some "attachedTo", queryName := some "AttachedTo" }, (Shape.schema AnalysisComponent)), + ({ name := "Component", xmlName := some "component", queryName := some "Component" }, (Shape.schema AnalysisComponent)), + ({ name := "DestinationVpc", xmlName := some "destinationVpc", queryName := some "DestinationVpc" }, (Shape.schema AnalysisComponent)), + ({ name := "ElasticLoadBalancerListener", xmlName := some "elasticLoadBalancerListener", queryName := some "ElasticLoadBalancerListener" }, (Shape.schema AnalysisComponent)), + ({ name := "Explanations", xmlName := some "explanationSet", queryName := some "ExplanationSet" }, (.list (Shape.schema Explanation) "item")), + ({ name := "FirewallStatefulRule", xmlName := some "firewallStatefulRule", queryName := some "FirewallStatefulRule" }, (Shape.schema FirewallStatefulRule)), + ({ name := "FirewallStatelessRule", xmlName := some "firewallStatelessRule", queryName := some "FirewallStatelessRule" }, (Shape.schema FirewallStatelessRule)), + ({ name := "InboundHeader", xmlName := some "inboundHeader", queryName := some "InboundHeader" }, (Shape.schema AnalysisPacketHeader)), + ({ name := "OutboundHeader", xmlName := some "outboundHeader", queryName := some "OutboundHeader" }, (Shape.schema AnalysisPacketHeader)), + ({ name := "RouteTableRoute", xmlName := some "routeTableRoute", queryName := some "RouteTableRoute" }, (Shape.schema AnalysisRouteTableRoute)), + ({ name := "SecurityGroupRule", xmlName := some "securityGroupRule", queryName := some "SecurityGroupRule" }, (Shape.schema AnalysisSecurityGroupRule)), + ({ name := "SequenceNumber", xmlName := some "sequenceNumber", queryName := some "SequenceNumber" }, .int), + ({ name := "ServiceName", xmlName := some "serviceName", queryName := some "ServiceName" }, .string), + ({ name := "SourceVpc", xmlName := some "sourceVpc", queryName := some "SourceVpc" }, (Shape.schema AnalysisComponent)), + ({ name := "Subnet", xmlName := some "subnet", queryName := some "Subnet" }, (Shape.schema AnalysisComponent)), + ({ name := "TransitGateway", xmlName := some "transitGateway", queryName := some "TransitGateway" }, (Shape.schema AnalysisComponent)), + ({ name := "TransitGatewayPolicyTableEntry", xmlName := some "transitGatewayPolicyTableEntry", queryName := some "TransitGatewayPolicyTableEntry" }, (Shape.schema AnalysisTransitGatewayPolicyTableEntry)), + ({ name := "TransitGatewayRouteTableRoute", xmlName := some "transitGatewayRouteTableRoute", queryName := some "TransitGatewayRouteTableRoute" }, (Shape.schema TransitGatewayRouteTableRoute)), + ({ name := "Vpc", xmlName := some "vpc", queryName := some "Vpc" }, (Shape.schema AnalysisComponent))] + toValue x := record [putOpt "AclRule" x.aclRule, putOpt "AdditionalDetails" x.additionalDetails, putOpt "AttachedTo" x.attachedTo, putOpt "Component" x.component, putOpt "DestinationVpc" x.destinationVpc, putOpt "ElasticLoadBalancerListener" x.elasticLoadBalancerListener, putOpt "Explanations" x.explanations, putOpt "FirewallStatefulRule" x.firewallStatefulRule, putOpt "FirewallStatelessRule" x.firewallStatelessRule, putOpt "InboundHeader" x.inboundHeader, putOpt "OutboundHeader" x.outboundHeader, putOpt "RouteTableRoute" x.routeTableRoute, putOpt "SecurityGroupRule" x.securityGroupRule, putOpt "SequenceNumber" x.sequenceNumber, putOpt "ServiceName" x.serviceName, putOpt "SourceVpc" x.sourceVpc, putOpt "Subnet" x.subnet, putOpt "TransitGateway" x.transitGateway, putOpt "TransitGatewayPolicyTableEntry" x.transitGatewayPolicyTableEntry, putOpt "TransitGatewayRouteTableRoute" x.transitGatewayRouteTableRoute, putOpt "Vpc" x.vpc] + ofValue v := do + let aclRule ← v.opt "AclRule" + let additionalDetails ← v.opt "AdditionalDetails" + let attachedTo ← v.opt "AttachedTo" + let component ← v.opt "Component" + let destinationVpc ← v.opt "DestinationVpc" + let elasticLoadBalancerListener ← v.opt "ElasticLoadBalancerListener" + let explanations ← v.opt "Explanations" + let firewallStatefulRule ← v.opt "FirewallStatefulRule" + let firewallStatelessRule ← v.opt "FirewallStatelessRule" + let inboundHeader ← v.opt "InboundHeader" + let outboundHeader ← v.opt "OutboundHeader" + let routeTableRoute ← v.opt "RouteTableRoute" + let securityGroupRule ← v.opt "SecurityGroupRule" + let sequenceNumber ← v.opt "SequenceNumber" + let serviceName ← v.opt "ServiceName" + let sourceVpc ← v.opt "SourceVpc" + let subnet ← v.opt "Subnet" + let transitGateway ← v.opt "TransitGateway" + let transitGatewayPolicyTableEntry ← v.opt "TransitGatewayPolicyTableEntry" + let transitGatewayRouteTableRoute ← v.opt "TransitGatewayRouteTableRoute" + let vpc ← v.opt "Vpc" + return { aclRule, additionalDetails, attachedTo, component, destinationVpc, elasticLoadBalancerListener, explanations, firewallStatefulRule, firewallStatelessRule, inboundHeader, outboundHeader, routeTableRoute, securityGroupRule, sequenceNumber, serviceName, sourceVpc, subnet, transitGateway, transitGatewayPolicyTableEntry, transitGatewayRouteTableRoute, vpc } + +structure ProvisionByoipCidrResult where + /-- Information about the address range. -/ + byoipCidr : Option ByoipCidr := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ProvisionByoipCidrResult where + schema := .struct "ProvisionByoipCidrResult" [({ name := "ByoipCidr", xmlName := some "byoipCidr", queryName := some "ByoipCidr" }, (Shape.schema ByoipCidr))] + toValue x := record [putOpt "ByoipCidr" x.byoipCidr] + ofValue v := do + let byoipCidr ← v.opt "ByoipCidr" + return { byoipCidr } + +structure ProvisionIpamPoolCidrResult where + /-- Information about the provisioned CIDR. -/ + ipamPoolCidr : Option IpamPoolCidr := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ProvisionIpamPoolCidrResult where + schema := .struct "ProvisionIpamPoolCidrResult" [({ name := "IpamPoolCidr", xmlName := some "ipamPoolCidr", queryName := some "IpamPoolCidr" }, (Shape.schema IpamPoolCidr))] + toValue x := record [putOpt "IpamPoolCidr" x.ipamPoolCidr] + ofValue v := do + let ipamPoolCidr ← v.opt "IpamPoolCidr" + return { ipamPoolCidr } + +structure PurchaseCapacityBlockResult where + /-- The Capacity Block. -/ + capacityBlocks : Option (List CapacityBlock) := none + /-- The Capacity Reservation. -/ + capacityReservation : Option CapacityReservation := none + /-- The Capacity Reservations created as a result of the Capacity Block purchase. -/ + capacityReservations : Option (List CapacityReservation) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PurchaseCapacityBlockResult where + schema := .struct "PurchaseCapacityBlockResult" [({ name := "CapacityBlocks", xmlName := some "capacityBlockSet", queryName := some "CapacityBlockSet" }, (.list (Shape.schema CapacityBlock) "item")), + ({ name := "CapacityReservation", xmlName := some "capacityReservation", queryName := some "CapacityReservation" }, (Shape.schema CapacityReservation)), + ({ name := "CapacityReservations", xmlName := some "capacityReservationSet", queryName := some "CapacityReservationSet" }, (.list (Shape.schema CapacityReservation) "item"))] + toValue x := record [putOpt "CapacityBlocks" x.capacityBlocks, putOpt "CapacityReservation" x.capacityReservation, putOpt "CapacityReservations" x.capacityReservations] + ofValue v := do + let capacityBlocks ← v.opt "CapacityBlocks" + let capacityReservation ← v.opt "CapacityReservation" + let capacityReservations ← v.opt "CapacityReservations" + return { capacityBlocks, capacityReservation, capacityReservations } + +/-- Contains the parameters for RegisterImage. -/ +structure RegisterImageRequest where + /-- The architecture of the AMI. -/ + architecture : Option ArchitectureValues := none + /-- The billing product codes. -/ + billingProducts : Option (List String) := none + /-- The block device mapping entries. -/ + blockDeviceMappings : Option (List BlockDeviceMapping) := none + /-- The boot mode of the AMI. -/ + bootMode : Option BootModeValues := none + /-- A description for your AMI. -/ + description : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Set to true to enable enhanced networking with ENA for the AMI and any instances that you launch from the AMI. -/ + enaSupport : Option Bool := none + /-- The full path to your AMI manifest in Amazon S3 storage. -/ + imageLocation : Option String := none + /-- Set to v2.0 to indicate that IMDSv2 is specified in the AMI. -/ + imdsSupport : Option ImdsSupportValues := none + /-- The ID of the kernel. -/ + kernelId : Option String := none + /-- A name for your AMI. -/ + name : String + /-- The ID of the RAM disk. -/ + ramdiskId : Option String := none + /-- The device name of the root device volume (for example, /dev/sda1 ). -/ + rootDeviceName : Option String := none + /-- Set to simple to enable enhanced networking with the Intel 82599 Virtual Function interface for the AMI and any instances that you launch from the AMI. -/ + sriovNetSupport : Option String := none + /-- The tags to apply to the AMI. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- Set to v2.0 to enable Trusted Platform Module (TPM) support. -/ + tpmSupport : Option TpmSupportValues := none + /-- Base64 representation of the non-volatile UEFI variable store. -/ + uefiData : Option String := none + /-- The type of virtualization ( hvm | paravirtual ). -/ + virtualizationType : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RegisterImageRequest where + schema := .struct "RegisterImageRequest" [({ name := "Architecture", xmlName := some "architecture", queryName := some "Architecture" }, (Shape.schema ArchitectureValues)), + ({ name := "BillingProducts", xmlName := some "BillingProduct" }, (.list .string "item")), + ({ name := "BlockDeviceMappings", xmlName := some "BlockDeviceMapping" }, (.list (Shape.schema BlockDeviceMapping) "BlockDeviceMapping")), + ({ name := "BootMode" }, (Shape.schema BootModeValues)), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "EnaSupport", xmlName := some "enaSupport", queryName := some "EnaSupport" }, .bool), + ({ name := "ImageLocation" }, .string), + ({ name := "ImdsSupport" }, (Shape.schema ImdsSupportValues)), + ({ name := "KernelId", xmlName := some "kernelId", queryName := some "KernelId" }, .string), + ({ name := "Name", required := true, xmlName := some "name", queryName := some "Name" }, .string), + ({ name := "RamdiskId", xmlName := some "ramdiskId", queryName := some "RamdiskId" }, .string), + ({ name := "RootDeviceName", xmlName := some "rootDeviceName", queryName := some "RootDeviceName" }, .string), + ({ name := "SriovNetSupport", xmlName := some "sriovNetSupport", queryName := some "SriovNetSupport" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TpmSupport" }, (Shape.schema TpmSupportValues)), + ({ name := "UefiData" }, .string), + ({ name := "VirtualizationType", xmlName := some "virtualizationType", queryName := some "VirtualizationType" }, .string)] + toValue x := record [putOpt "Architecture" x.architecture, putOpt "BillingProducts" x.billingProducts, putOpt "BlockDeviceMappings" x.blockDeviceMappings, putOpt "BootMode" x.bootMode, putOpt "Description" x.description, putOpt "DryRun" x.dryRun, putOpt "EnaSupport" x.enaSupport, putOpt "ImageLocation" x.imageLocation, putOpt "ImdsSupport" x.imdsSupport, putOpt "KernelId" x.kernelId, put "Name" x.name, putOpt "RamdiskId" x.ramdiskId, putOpt "RootDeviceName" x.rootDeviceName, putOpt "SriovNetSupport" x.sriovNetSupport, putOpt "TagSpecifications" x.tagSpecifications, putOpt "TpmSupport" x.tpmSupport, putOpt "UefiData" x.uefiData, putOpt "VirtualizationType" x.virtualizationType] + ofValue v := do + let architecture ← v.opt "Architecture" + let billingProducts ← v.opt "BillingProducts" + let blockDeviceMappings ← v.opt "BlockDeviceMappings" + let bootMode ← v.opt "BootMode" + let description ← v.opt "Description" + let dryRun ← v.opt "DryRun" + let enaSupport ← v.opt "EnaSupport" + let imageLocation ← v.opt "ImageLocation" + let imdsSupport ← v.opt "ImdsSupport" + let kernelId ← v.opt "KernelId" + let name ← v.req "Name" + let ramdiskId ← v.opt "RamdiskId" + let rootDeviceName ← v.opt "RootDeviceName" + let sriovNetSupport ← v.opt "SriovNetSupport" + let tagSpecifications ← v.opt "TagSpecifications" + let tpmSupport ← v.opt "TpmSupport" + let uefiData ← v.opt "UefiData" + let virtualizationType ← v.opt "VirtualizationType" + return { architecture, billingProducts, blockDeviceMappings, bootMode, description, dryRun, enaSupport, imageLocation, imdsSupport, kernelId, name, ramdiskId, rootDeviceName, sriovNetSupport, tagSpecifications, tpmSupport, uefiData, virtualizationType } + +structure RejectTransitGatewayMulticastDomainAssociationsResult where + /-- Information about the multicast domain associations. -/ + associations : Option TransitGatewayMulticastDomainAssociations := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RejectTransitGatewayMulticastDomainAssociationsResult where + schema := .struct "RejectTransitGatewayMulticastDomainAssociationsResult" [({ name := "Associations", xmlName := some "associations", queryName := some "Associations" }, (Shape.schema TransitGatewayMulticastDomainAssociations))] + toValue x := record [putOpt "Associations" x.associations] + ofValue v := do + let associations ← v.opt "Associations" + return { associations } + +structure RejectTransitGatewayPeeringAttachmentResult where + /-- The transit gateway peering attachment. -/ + transitGatewayPeeringAttachment : Option TransitGatewayPeeringAttachment := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RejectTransitGatewayPeeringAttachmentResult where + schema := .struct "RejectTransitGatewayPeeringAttachmentResult" [({ name := "TransitGatewayPeeringAttachment", xmlName := some "transitGatewayPeeringAttachment", queryName := some "TransitGatewayPeeringAttachment" }, (Shape.schema TransitGatewayPeeringAttachment))] + toValue x := record [putOpt "TransitGatewayPeeringAttachment" x.transitGatewayPeeringAttachment] + ofValue v := do + let transitGatewayPeeringAttachment ← v.opt "TransitGatewayPeeringAttachment" + return { transitGatewayPeeringAttachment } + +structure RejectTransitGatewayVpcAttachmentResult where + /-- Information about the attachment. -/ + transitGatewayVpcAttachment : Option TransitGatewayVpcAttachment := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RejectTransitGatewayVpcAttachmentResult where + schema := .struct "RejectTransitGatewayVpcAttachmentResult" [({ name := "TransitGatewayVpcAttachment", xmlName := some "transitGatewayVpcAttachment", queryName := some "TransitGatewayVpcAttachment" }, (Shape.schema TransitGatewayVpcAttachment))] + toValue x := record [putOpt "TransitGatewayVpcAttachment" x.transitGatewayVpcAttachment] + ofValue v := do + let transitGatewayVpcAttachment ← v.opt "TransitGatewayVpcAttachment" + return { transitGatewayVpcAttachment } + +structure ReplaceImageCriteriaInAllowedImagesSettingsRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The list of criteria that are evaluated to determine whether AMIs are discoverable and usable in the account in the specified Amazon Web Services Region. -/ + imageCriteria : Option (List ImageCriterionRequest) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplaceImageCriteriaInAllowedImagesSettingsRequest where + schema := .struct "ReplaceImageCriteriaInAllowedImagesSettingsRequest" [({ name := "DryRun" }, .bool), + ({ name := "ImageCriteria", xmlName := some "ImageCriterion" }, (.list (Shape.schema ImageCriterionRequest) "ImageCriterion"))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "ImageCriteria" x.imageCriteria] + ofValue v := do + let dryRun ← v.opt "DryRun" + let imageCriteria ← v.opt "ImageCriteria" + return { dryRun, imageCriteria } + +structure ReplaceTransitGatewayRouteResult where + /-- Information about the modified route. -/ + route : Option TransitGatewayRoute := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplaceTransitGatewayRouteResult where + schema := .struct "ReplaceTransitGatewayRouteResult" [({ name := "Route", xmlName := some "route", queryName := some "Route" }, (Shape.schema TransitGatewayRoute))] + toValue x := record [putOpt "Route" x.route] + ofValue v := do + let route ← v.opt "Route" + return { route } + +/-- Describes the launch specification for an instance. -/ +structure RequestSpotLaunchSpecification where + /-- Deprecated. -/ + addressingType : Option String := none + /-- The block device mapping entries. -/ + blockDeviceMappings : Option (List BlockDeviceMapping) := none + /-- Indicates whether the instance is optimized for EBS I/O. -/ + ebsOptimized : Option Bool := none + /-- The IAM instance profile. -/ + iamInstanceProfile : Option IamInstanceProfileSpecification := none + /-- The ID of the AMI. -/ + imageId : Option String := none + /-- The instance type. -/ + instanceType : Option InstanceType := none + /-- The ID of the kernel. -/ + kernelId : Option String := none + /-- The name of the key pair. -/ + keyName : Option String := none + /-- Indicates whether basic or detailed monitoring is enabled for the instance. -/ + monitoring : Option RunInstancesMonitoringEnabled := none + /-- The network interfaces. -/ + networkInterfaces : Option (List InstanceNetworkInterfaceSpecification) := none + /-- The placement information for the instance. -/ + placement : Option SpotPlacement := none + /-- The ID of the RAM disk. -/ + ramdiskId : Option String := none + /-- The IDs of the security groups. -/ + securityGroupIds : Option (List String) := none + /-- Not supported. -/ + securityGroups : Option (List String) := none + /-- The ID of the subnet in which to launch the instance. -/ + subnetId : Option String := none + /-- The base64-encoded user data that instances use when starting up. -/ + userData : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RequestSpotLaunchSpecification where + schema := .struct "RequestSpotLaunchSpecification" [({ name := "AddressingType", xmlName := some "addressingType", queryName := some "AddressingType" }, .string), + ({ name := "BlockDeviceMappings", xmlName := some "blockDeviceMapping", queryName := some "BlockDeviceMapping" }, (.list (Shape.schema BlockDeviceMapping) "item")), + ({ name := "EbsOptimized", xmlName := some "ebsOptimized", queryName := some "EbsOptimized" }, .bool), + ({ name := "IamInstanceProfile", xmlName := some "iamInstanceProfile", queryName := some "IamInstanceProfile" }, (Shape.schema IamInstanceProfileSpecification)), + ({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "KernelId", xmlName := some "kernelId", queryName := some "KernelId" }, .string), + ({ name := "KeyName", xmlName := some "keyName", queryName := some "KeyName" }, .string), + ({ name := "Monitoring", xmlName := some "monitoring", queryName := some "Monitoring" }, (Shape.schema RunInstancesMonitoringEnabled)), + ({ name := "NetworkInterfaces", xmlName := some "NetworkInterface" }, (.list (Shape.schema InstanceNetworkInterfaceSpecification) "item")), + ({ name := "Placement", xmlName := some "placement", queryName := some "Placement" }, (Shape.schema SpotPlacement)), + ({ name := "RamdiskId", xmlName := some "ramdiskId", queryName := some "RamdiskId" }, .string), + ({ name := "SecurityGroupIds", xmlName := some "SecurityGroupId" }, (.list .string "item")), + ({ name := "SecurityGroups", xmlName := some "SecurityGroup" }, (.list .string "item")), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "UserData", xmlName := some "userData", queryName := some "UserData" }, .string)] + toValue x := record [putOpt "AddressingType" x.addressingType, putOpt "BlockDeviceMappings" x.blockDeviceMappings, putOpt "EbsOptimized" x.ebsOptimized, putOpt "IamInstanceProfile" x.iamInstanceProfile, putOpt "ImageId" x.imageId, putOpt "InstanceType" x.instanceType, putOpt "KernelId" x.kernelId, putOpt "KeyName" x.keyName, putOpt "Monitoring" x.monitoring, putOpt "NetworkInterfaces" x.networkInterfaces, putOpt "Placement" x.placement, putOpt "RamdiskId" x.ramdiskId, putOpt "SecurityGroupIds" x.securityGroupIds, putOpt "SecurityGroups" x.securityGroups, putOpt "SubnetId" x.subnetId, putOpt "UserData" x.userData] + ofValue v := do + let addressingType ← v.opt "AddressingType" + let blockDeviceMappings ← v.opt "BlockDeviceMappings" + let ebsOptimized ← v.opt "EbsOptimized" + let iamInstanceProfile ← v.opt "IamInstanceProfile" + let imageId ← v.opt "ImageId" + let instanceType ← v.opt "InstanceType" + let kernelId ← v.opt "KernelId" + let keyName ← v.opt "KeyName" + let monitoring ← v.opt "Monitoring" + let networkInterfaces ← v.opt "NetworkInterfaces" + let placement ← v.opt "Placement" + let ramdiskId ← v.opt "RamdiskId" + let securityGroupIds ← v.opt "SecurityGroupIds" + let securityGroups ← v.opt "SecurityGroups" + let subnetId ← v.opt "SubnetId" + let userData ← v.opt "UserData" + return { addressingType, blockDeviceMappings, ebsOptimized, iamInstanceProfile, imageId, instanceType, kernelId, keyName, monitoring, networkInterfaces, placement, ramdiskId, securityGroupIds, securityGroups, subnetId, userData } + +/-- Describes a Reserved Instance modification. -/ +structure ReservedInstancesModification where + /-- A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. -/ + clientToken : Option String := none + /-- The time when the modification request was created. -/ + createDate : Option Timestamp := none + /-- The time for the modification to become effective. -/ + effectiveDate : Option Timestamp := none + /-- Contains target configurations along with their corresponding new Reserved Instance IDs. -/ + modificationResults : Option (List ReservedInstancesModificationResult) := none + /-- The IDs of one or more Reserved Instances. -/ + reservedInstancesIds : Option (List ReservedInstancesId) := none + /-- A unique ID for the Reserved Instance modification. -/ + reservedInstancesModificationId : Option String := none + /-- The status of the Reserved Instances modification request. -/ + status : Option String := none + /-- The reason for the status. -/ + statusMessage : Option String := none + /-- The time when the modification request was last updated. -/ + updateDate : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReservedInstancesModification where + schema := .struct "ReservedInstancesModification" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "CreateDate", xmlName := some "createDate", queryName := some "CreateDate" }, (.time none)), + ({ name := "EffectiveDate", xmlName := some "effectiveDate", queryName := some "EffectiveDate" }, (.time none)), + ({ name := "ModificationResults", xmlName := some "modificationResultSet", queryName := some "ModificationResultSet" }, (.list (Shape.schema ReservedInstancesModificationResult) "item")), + ({ name := "ReservedInstancesIds", xmlName := some "reservedInstancesSet", queryName := some "ReservedInstancesSet" }, (.list (Shape.schema ReservedInstancesId) "item")), + ({ name := "ReservedInstancesModificationId", xmlName := some "reservedInstancesModificationId", queryName := some "ReservedInstancesModificationId" }, .string), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, .string), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string), + ({ name := "UpdateDate", xmlName := some "updateDate", queryName := some "UpdateDate" }, (.time none))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "CreateDate" x.createDate, putOpt "EffectiveDate" x.effectiveDate, putOpt "ModificationResults" x.modificationResults, putOpt "ReservedInstancesIds" x.reservedInstancesIds, putOpt "ReservedInstancesModificationId" x.reservedInstancesModificationId, putOpt "Status" x.status, putOpt "StatusMessage" x.statusMessage, putOpt "UpdateDate" x.updateDate] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let createDate ← v.opt "CreateDate" + let effectiveDate ← v.opt "EffectiveDate" + let modificationResults ← v.opt "ModificationResults" + let reservedInstancesIds ← v.opt "ReservedInstancesIds" + let reservedInstancesModificationId ← v.opt "ReservedInstancesModificationId" + let status ← v.opt "Status" + let statusMessage ← v.opt "StatusMessage" + let updateDate ← v.opt "UpdateDate" + return { clientToken, createDate, effectiveDate, modificationResults, reservedInstancesIds, reservedInstancesModificationId, status, statusMessage, updateDate } + +/-- Describes a route table. -/ +structure RouteTable where + /-- The associations between the route table and your subnets or gateways. -/ + associations : Option (List RouteTableAssociation) := none + /-- The ID of the Amazon Web Services account that owns the route table. -/ + ownerId : Option String := none + /-- Any virtual private gateway (VGW) propagating routes. -/ + propagatingVgws : Option (List PropagatingVgw) := none + /-- The ID of the route table. -/ + routeTableId : Option String := none + /-- The routes in the route table. -/ + routes : Option (List Route) := none + /-- Any tags assigned to the route table. -/ + tags : Option (List Tag) := none + /-- The ID of the VPC. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RouteTable where + schema := .struct "RouteTable" [({ name := "Associations", xmlName := some "associationSet", queryName := some "AssociationSet" }, (.list (Shape.schema RouteTableAssociation) "item")), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "PropagatingVgws", xmlName := some "propagatingVgwSet", queryName := some "PropagatingVgwSet" }, (.list (Shape.schema PropagatingVgw) "item")), + ({ name := "RouteTableId", xmlName := some "routeTableId", queryName := some "RouteTableId" }, .string), + ({ name := "Routes", xmlName := some "routeSet", queryName := some "RouteSet" }, (.list (Shape.schema Route) "item")), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "Associations" x.associations, putOpt "OwnerId" x.ownerId, putOpt "PropagatingVgws" x.propagatingVgws, putOpt "RouteTableId" x.routeTableId, putOpt "Routes" x.routes, putOpt "Tags" x.tags, putOpt "VpcId" x.vpcId] + ofValue v := do + let associations ← v.opt "Associations" + let ownerId ← v.opt "OwnerId" + let propagatingVgws ← v.opt "PropagatingVgws" + let routeTableId ← v.opt "RouteTableId" + let routes ← v.opt "Routes" + let tags ← v.opt "Tags" + let vpcId ← v.opt "VpcId" + return { associations, ownerId, propagatingVgws, routeTableId, routes, tags, vpcId } + +structure RunInstancesRequest where + /-- Reserved. -/ + additionalInfo : Option String := none + /-- The block device mapping, which defines the EBS volumes and instance store volumes to attach to the instance at launch. -/ + blockDeviceMappings : Option (List BlockDeviceMapping) := none + /-- Information about the Capacity Reservation targeting option. -/ + capacityReservationSpecification : Option CapacityReservationSpecification := none + /-- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- The CPU options for the instance. -/ + cpuOptions : Option CpuOptionsRequest := none + /-- The credit option for CPU usage of the burstable performance instance. -/ + creditSpecification : Option CreditSpecificationRequest := none + /-- Indicates whether an instance is enabled for stop protection. -/ + disableApiStop : Option Bool := none + /-- Indicates whether termination protection is enabled for the instance. -/ + disableApiTermination : Option Bool := none + /-- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Indicates whether the instance is optimized for Amazon EBS I/O. -/ + ebsOptimized : Option Bool := none + /-- An elastic GPU to associate with the instance. -/ + elasticGpuSpecification : Option (List ElasticGpuSpecification) := none + /-- An elastic inference accelerator to associate with the instance. -/ + elasticInferenceAccelerators : Option (List ElasticInferenceAccelerator) := none + /-- If you’re launching an instance into a dual-stack or IPv6-only subnet, you can enable assigning a primary IPv6 address. -/ + enablePrimaryIpv6 : Option Bool := none + /-- Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. -/ + enclaveOptions : Option EnclaveOptionsRequest := none + /-- Indicates whether an instance is enabled for hibernation. -/ + hibernationOptions : Option HibernationOptionsRequest := none + /-- The name or Amazon Resource Name (ARN) of an IAM instance profile. -/ + iamInstanceProfile : Option IamInstanceProfileSpecification := none + /-- The ID of the AMI. -/ + imageId : Option String := none + /-- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown). -/ + instanceInitiatedShutdownBehavior : Option ShutdownBehavior := none + /-- The market (purchasing) option for the instances. -/ + instanceMarketOptions : Option InstanceMarketOptionsRequest := none + /-- The instance type. -/ + instanceType : Option InstanceType := none + /-- The number of IPv6 addresses to associate with the primary network interface. -/ + ipv6AddressCount : Option Int := none + /-- The IPv6 addresses from the range of the subnet to associate with the primary network interface. -/ + ipv6Addresses : Option (List InstanceIpv6Address) := none + /-- The ID of the kernel. -/ + kernelId : Option String := none + /-- The name of the key pair. -/ + keyName : Option String := none + /-- The launch template. -/ + launchTemplate : Option LaunchTemplateSpecification := none + /-- The license configurations. -/ + licenseSpecifications : Option (List LicenseConfigurationRequest) := none + /-- The maintenance and recovery options for the instance. -/ + maintenanceOptions : Option InstanceMaintenanceOptionsRequest := none + /-- The maximum number of instances to launch. -/ + maxCount : Int + /-- The metadata options for the instance. -/ + metadataOptions : Option InstanceMetadataOptionsRequest := none + /-- The minimum number of instances to launch. -/ + minCount : Int + /-- Specifies whether detailed monitoring is enabled for the instance. -/ + monitoring : Option RunInstancesMonitoringEnabled := none + /-- The network interfaces to associate with the instance. -/ + networkInterfaces : Option (List InstanceNetworkInterfaceSpecification) := none + /-- Contains settings for the network performance options for the instance. -/ + networkPerformanceOptions : Option InstanceNetworkPerformanceOptionsRequest := none + /-- Reserved for internal use. -/ + operator : Option OperatorRequest := none + /-- The placement for the instance. -/ + placement : Option Placement := none + /-- The options for the instance hostname. -/ + privateDnsNameOptions : Option PrivateDnsNameOptionsRequest := none + /-- The primary IPv4 address. -/ + privateIpAddress : Option String := none + /-- The ID of the RAM disk to select. -/ + ramdiskId : Option String := none + /-- The secondary interfaces to associate with the instance. -/ + secondaryInterfaces : Option (List InstanceSecondaryInterfaceSpecificationRequest) := none + /-- The IDs of the security groups. -/ + securityGroupIds : Option (List String) := none + /-- [Default VPC] The names of the security groups. -/ + securityGroups : Option (List String) := none + /-- The ID of the subnet to launch the instance into. -/ + subnetId : Option String := none + /-- The tags to apply to the resources that are created during instance launch. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The user data to make available to the instance. -/ + userData : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RunInstancesRequest where + schema := .struct "RunInstancesRequest" [({ name := "AdditionalInfo", xmlName := some "additionalInfo", queryName := some "AdditionalInfo" }, .string), + ({ name := "BlockDeviceMappings", xmlName := some "BlockDeviceMapping" }, (.list (Shape.schema BlockDeviceMapping) "BlockDeviceMapping")), + ({ name := "CapacityReservationSpecification" }, (Shape.schema CapacityReservationSpecification)), + ({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "CpuOptions" }, (Shape.schema CpuOptionsRequest)), + ({ name := "CreditSpecification" }, (Shape.schema CreditSpecificationRequest)), + ({ name := "DisableApiStop" }, .bool), + ({ name := "DisableApiTermination", xmlName := some "disableApiTermination", queryName := some "DisableApiTermination" }, .bool), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "EbsOptimized", xmlName := some "ebsOptimized", queryName := some "EbsOptimized" }, .bool), + ({ name := "ElasticGpuSpecification" }, (.list (Shape.schema ElasticGpuSpecification) "item")), + ({ name := "ElasticInferenceAccelerators", xmlName := some "ElasticInferenceAccelerator" }, (.list (Shape.schema ElasticInferenceAccelerator) "item")), + ({ name := "EnablePrimaryIpv6" }, .bool), + ({ name := "EnclaveOptions" }, (Shape.schema EnclaveOptionsRequest)), + ({ name := "HibernationOptions" }, (Shape.schema HibernationOptionsRequest)), + ({ name := "IamInstanceProfile", xmlName := some "iamInstanceProfile", queryName := some "IamInstanceProfile" }, (Shape.schema IamInstanceProfileSpecification)), + ({ name := "ImageId" }, .string), + ({ name := "InstanceInitiatedShutdownBehavior", xmlName := some "instanceInitiatedShutdownBehavior", queryName := some "InstanceInitiatedShutdownBehavior" }, (Shape.schema ShutdownBehavior)), + ({ name := "InstanceMarketOptions" }, (Shape.schema InstanceMarketOptionsRequest)), + ({ name := "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "Ipv6AddressCount" }, .int), + ({ name := "Ipv6Addresses", xmlName := some "Ipv6Address" }, (.list (Shape.schema InstanceIpv6Address) "item")), + ({ name := "KernelId" }, .string), + ({ name := "KeyName" }, .string), + ({ name := "LaunchTemplate" }, (Shape.schema LaunchTemplateSpecification)), + ({ name := "LicenseSpecifications", xmlName := some "LicenseSpecification" }, (.list (Shape.schema LicenseConfigurationRequest) "item")), + ({ name := "MaintenanceOptions" }, (Shape.schema InstanceMaintenanceOptionsRequest)), + ({ name := "MaxCount", required := true }, .int), + ({ name := "MetadataOptions" }, (Shape.schema InstanceMetadataOptionsRequest)), + ({ name := "MinCount", required := true }, .int), + ({ name := "Monitoring" }, (Shape.schema RunInstancesMonitoringEnabled)), + ({ name := "NetworkInterfaces", xmlName := some "networkInterface", queryName := some "NetworkInterface" }, (.list (Shape.schema InstanceNetworkInterfaceSpecification) "item")), + ({ name := "NetworkPerformanceOptions" }, (Shape.schema InstanceNetworkPerformanceOptionsRequest)), + ({ name := "Operator" }, (Shape.schema OperatorRequest)), + ({ name := "Placement" }, (Shape.schema Placement)), + ({ name := "PrivateDnsNameOptions" }, (Shape.schema PrivateDnsNameOptionsRequest)), + ({ name := "PrivateIpAddress", xmlName := some "privateIpAddress", queryName := some "PrivateIpAddress" }, .string), + ({ name := "RamdiskId" }, .string), + ({ name := "SecondaryInterfaces", xmlName := some "SecondaryInterface" }, (.list (Shape.schema InstanceSecondaryInterfaceSpecificationRequest) "item")), + ({ name := "SecurityGroupIds", xmlName := some "SecurityGroupId" }, (.list .string "SecurityGroupId")), + ({ name := "SecurityGroups", xmlName := some "SecurityGroup" }, (.list .string "SecurityGroup")), + ({ name := "SubnetId" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "UserData" }, .string)] + toValue x := record [putOpt "AdditionalInfo" x.additionalInfo, putOpt "BlockDeviceMappings" x.blockDeviceMappings, putOpt "CapacityReservationSpecification" x.capacityReservationSpecification, putOpt "ClientToken" x.clientToken, putOpt "CpuOptions" x.cpuOptions, putOpt "CreditSpecification" x.creditSpecification, putOpt "DisableApiStop" x.disableApiStop, putOpt "DisableApiTermination" x.disableApiTermination, putOpt "DryRun" x.dryRun, putOpt "EbsOptimized" x.ebsOptimized, putOpt "ElasticGpuSpecification" x.elasticGpuSpecification, putOpt "ElasticInferenceAccelerators" x.elasticInferenceAccelerators, putOpt "EnablePrimaryIpv6" x.enablePrimaryIpv6, putOpt "EnclaveOptions" x.enclaveOptions, putOpt "HibernationOptions" x.hibernationOptions, putOpt "IamInstanceProfile" x.iamInstanceProfile, putOpt "ImageId" x.imageId, putOpt "InstanceInitiatedShutdownBehavior" x.instanceInitiatedShutdownBehavior, putOpt "InstanceMarketOptions" x.instanceMarketOptions, putOpt "InstanceType" x.instanceType, putOpt "Ipv6AddressCount" x.ipv6AddressCount, putOpt "Ipv6Addresses" x.ipv6Addresses, putOpt "KernelId" x.kernelId, putOpt "KeyName" x.keyName, putOpt "LaunchTemplate" x.launchTemplate, putOpt "LicenseSpecifications" x.licenseSpecifications, putOpt "MaintenanceOptions" x.maintenanceOptions, put "MaxCount" x.maxCount, putOpt "MetadataOptions" x.metadataOptions, put "MinCount" x.minCount, putOpt "Monitoring" x.monitoring, putOpt "NetworkInterfaces" x.networkInterfaces, putOpt "NetworkPerformanceOptions" x.networkPerformanceOptions, putOpt "Operator" x.operator, putOpt "Placement" x.placement, putOpt "PrivateDnsNameOptions" x.privateDnsNameOptions, putOpt "PrivateIpAddress" x.privateIpAddress, putOpt "RamdiskId" x.ramdiskId, putOpt "SecondaryInterfaces" x.secondaryInterfaces, putOpt "SecurityGroupIds" x.securityGroupIds, putOpt "SecurityGroups" x.securityGroups, putOpt "SubnetId" x.subnetId, putOpt "TagSpecifications" x.tagSpecifications, putOpt "UserData" x.userData] + ofValue v := do + let additionalInfo ← v.opt "AdditionalInfo" + let blockDeviceMappings ← v.opt "BlockDeviceMappings" + let capacityReservationSpecification ← v.opt "CapacityReservationSpecification" + let clientToken ← v.opt "ClientToken" + let cpuOptions ← v.opt "CpuOptions" + let creditSpecification ← v.opt "CreditSpecification" + let disableApiStop ← v.opt "DisableApiStop" + let disableApiTermination ← v.opt "DisableApiTermination" + let dryRun ← v.opt "DryRun" + let ebsOptimized ← v.opt "EbsOptimized" + let elasticGpuSpecification ← v.opt "ElasticGpuSpecification" + let elasticInferenceAccelerators ← v.opt "ElasticInferenceAccelerators" + let enablePrimaryIpv6 ← v.opt "EnablePrimaryIpv6" + let enclaveOptions ← v.opt "EnclaveOptions" + let hibernationOptions ← v.opt "HibernationOptions" + let iamInstanceProfile ← v.opt "IamInstanceProfile" + let imageId ← v.opt "ImageId" + let instanceInitiatedShutdownBehavior ← v.opt "InstanceInitiatedShutdownBehavior" + let instanceMarketOptions ← v.opt "InstanceMarketOptions" + let instanceType ← v.opt "InstanceType" + let ipv6AddressCount ← v.opt "Ipv6AddressCount" + let ipv6Addresses ← v.opt "Ipv6Addresses" + let kernelId ← v.opt "KernelId" + let keyName ← v.opt "KeyName" + let launchTemplate ← v.opt "LaunchTemplate" + let licenseSpecifications ← v.opt "LicenseSpecifications" + let maintenanceOptions ← v.opt "MaintenanceOptions" + let maxCount ← v.req "MaxCount" + let metadataOptions ← v.opt "MetadataOptions" + let minCount ← v.req "MinCount" + let monitoring ← v.opt "Monitoring" + let networkInterfaces ← v.opt "NetworkInterfaces" + let networkPerformanceOptions ← v.opt "NetworkPerformanceOptions" + let operator ← v.opt "Operator" + let placement ← v.opt "Placement" + let privateDnsNameOptions ← v.opt "PrivateDnsNameOptions" + let privateIpAddress ← v.opt "PrivateIpAddress" + let ramdiskId ← v.opt "RamdiskId" + let secondaryInterfaces ← v.opt "SecondaryInterfaces" + let securityGroupIds ← v.opt "SecurityGroupIds" + let securityGroups ← v.opt "SecurityGroups" + let subnetId ← v.opt "SubnetId" + let tagSpecifications ← v.opt "TagSpecifications" + let userData ← v.opt "UserData" + return { additionalInfo, blockDeviceMappings, capacityReservationSpecification, clientToken, cpuOptions, creditSpecification, disableApiStop, disableApiTermination, dryRun, ebsOptimized, elasticGpuSpecification, elasticInferenceAccelerators, enablePrimaryIpv6, enclaveOptions, hibernationOptions, iamInstanceProfile, imageId, instanceInitiatedShutdownBehavior, instanceMarketOptions, instanceType, ipv6AddressCount, ipv6Addresses, kernelId, keyName, launchTemplate, licenseSpecifications, maintenanceOptions, maxCount, metadataOptions, minCount, monitoring, networkInterfaces, networkPerformanceOptions, operator, placement, privateDnsNameOptions, privateIpAddress, ramdiskId, secondaryInterfaces, securityGroupIds, securityGroups, subnetId, tagSpecifications, userData } + +/-- Contains the parameters for RunScheduledInstances. -/ +structure RunScheduledInstancesRequest where + /-- Unique, case-sensitive identifier that ensures the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The number of instances. -/ + instanceCount : Option Int := none + /-- The launch specification. -/ + launchSpecification : ScheduledInstancesLaunchSpecification + /-- The Scheduled Instance ID. -/ + scheduledInstanceId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape RunScheduledInstancesRequest where + schema := .struct "RunScheduledInstancesRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceCount" }, .int), + ({ name := "LaunchSpecification", required := true }, (Shape.schema ScheduledInstancesLaunchSpecification)), + ({ name := "ScheduledInstanceId", required := true }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "InstanceCount" x.instanceCount, put "LaunchSpecification" x.launchSpecification, put "ScheduledInstanceId" x.scheduledInstanceId] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let instanceCount ← v.opt "InstanceCount" + let launchSpecification ← v.req "LaunchSpecification" + let scheduledInstanceId ← v.req "ScheduledInstanceId" + return { clientToken, dryRun, instanceCount, launchSpecification, scheduledInstanceId } + +structure SearchTransitGatewayRoutesResult where + /-- Indicates whether there are additional routes available. -/ + additionalRoutesAvailable : Option Bool := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the routes. -/ + routes : Option (List TransitGatewayRoute) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SearchTransitGatewayRoutesResult where + schema := .struct "SearchTransitGatewayRoutesResult" [({ name := "AdditionalRoutesAvailable", xmlName := some "additionalRoutesAvailable", queryName := some "AdditionalRoutesAvailable" }, .bool), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "Routes", xmlName := some "routeSet", queryName := some "RouteSet" }, (.list (Shape.schema TransitGatewayRoute) "item"))] + toValue x := record [putOpt "AdditionalRoutesAvailable" x.additionalRoutesAvailable, putOpt "NextToken" x.nextToken, putOpt "Routes" x.routes] + ofValue v := do + let additionalRoutesAvailable ← v.opt "AdditionalRoutesAvailable" + let nextToken ← v.opt "NextToken" + let routes ← v.opt "Routes" + return { additionalRoutesAvailable, nextToken, routes } + +/-- Describes the configuration of Spot Instances in an EC2 Fleet. -/ +structure SpotOptions where + /-- The strategy that determines how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the EC2 Fleet launch configuration. -/ + allocationStrategy : Option SpotAllocationStrategy := none + /-- The behavior when a Spot Instance is interrupted. -/ + instanceInterruptionBehavior : Option SpotInstanceInterruptionBehavior := none + /-- The number of Spot pools across which to allocate your target Spot capacity. -/ + instancePoolsToUseCount : Option Int := none + /-- The strategies for managing your workloads on your Spot Instances that will be interrupted. -/ + maintenanceStrategies : Option FleetSpotMaintenanceStrategies := none + /-- The maximum amount per hour for Spot Instances that you're willing to pay. -/ + maxTotalPrice : Option String := none + /-- The minimum target capacity for Spot Instances in the fleet. -/ + minTargetCapacity : Option Int := none + /-- Indicates that the fleet launches all Spot Instances into a single Availability Zone. -/ + singleAvailabilityZone : Option Bool := none + /-- Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet. -/ + singleInstanceType : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SpotOptions where + schema := .struct "SpotOptions" [({ name := "AllocationStrategy", xmlName := some "allocationStrategy", queryName := some "AllocationStrategy" }, (Shape.schema SpotAllocationStrategy)), + ({ name := "InstanceInterruptionBehavior", xmlName := some "instanceInterruptionBehavior", queryName := some "InstanceInterruptionBehavior" }, (Shape.schema SpotInstanceInterruptionBehavior)), + ({ name := "InstancePoolsToUseCount", xmlName := some "instancePoolsToUseCount", queryName := some "InstancePoolsToUseCount" }, .int), + ({ name := "MaintenanceStrategies", xmlName := some "maintenanceStrategies", queryName := some "MaintenanceStrategies" }, (Shape.schema FleetSpotMaintenanceStrategies)), + ({ name := "MaxTotalPrice", xmlName := some "maxTotalPrice", queryName := some "MaxTotalPrice" }, .string), + ({ name := "MinTargetCapacity", xmlName := some "minTargetCapacity", queryName := some "MinTargetCapacity" }, .int), + ({ name := "SingleAvailabilityZone", xmlName := some "singleAvailabilityZone", queryName := some "SingleAvailabilityZone" }, .bool), + ({ name := "SingleInstanceType", xmlName := some "singleInstanceType", queryName := some "SingleInstanceType" }, .bool)] + toValue x := record [putOpt "AllocationStrategy" x.allocationStrategy, putOpt "InstanceInterruptionBehavior" x.instanceInterruptionBehavior, putOpt "InstancePoolsToUseCount" x.instancePoolsToUseCount, putOpt "MaintenanceStrategies" x.maintenanceStrategies, putOpt "MaxTotalPrice" x.maxTotalPrice, putOpt "MinTargetCapacity" x.minTargetCapacity, putOpt "SingleAvailabilityZone" x.singleAvailabilityZone, putOpt "SingleInstanceType" x.singleInstanceType] + ofValue v := do + let allocationStrategy ← v.opt "AllocationStrategy" + let instanceInterruptionBehavior ← v.opt "InstanceInterruptionBehavior" + let instancePoolsToUseCount ← v.opt "InstancePoolsToUseCount" + let maintenanceStrategies ← v.opt "MaintenanceStrategies" + let maxTotalPrice ← v.opt "MaxTotalPrice" + let minTargetCapacity ← v.opt "MinTargetCapacity" + let singleAvailabilityZone ← v.opt "SingleAvailabilityZone" + let singleInstanceType ← v.opt "SingleInstanceType" + return { allocationStrategy, instanceInterruptionBehavior, instancePoolsToUseCount, maintenanceStrategies, maxTotalPrice, minTargetCapacity, singleAvailabilityZone, singleInstanceType } + +/-- Describes the configuration of Spot Instances in an EC2 Fleet request. -/ +structure SpotOptionsRequest where + /-- The strategy that determines how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the EC2 Fleet launch configuration. -/ + allocationStrategy : Option SpotAllocationStrategy := none + /-- The behavior when a Spot Instance is interrupted. -/ + instanceInterruptionBehavior : Option SpotInstanceInterruptionBehavior := none + /-- The number of Spot pools across which to allocate your target Spot capacity. -/ + instancePoolsToUseCount : Option Int := none + /-- The strategies for managing your Spot Instances that are at an elevated risk of being interrupted. -/ + maintenanceStrategies : Option FleetSpotMaintenanceStrategiesRequest := none + /-- The maximum amount per hour for Spot Instances that you're willing to pay. -/ + maxTotalPrice : Option String := none + /-- The minimum target capacity for Spot Instances in the fleet. -/ + minTargetCapacity : Option Int := none + /-- Indicates that the fleet launches all Spot Instances into a single Availability Zone. -/ + singleAvailabilityZone : Option Bool := none + /-- Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet. -/ + singleInstanceType : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SpotOptionsRequest where + schema := .struct "SpotOptionsRequest" [({ name := "AllocationStrategy" }, (Shape.schema SpotAllocationStrategy)), + ({ name := "InstanceInterruptionBehavior" }, (Shape.schema SpotInstanceInterruptionBehavior)), + ({ name := "InstancePoolsToUseCount" }, .int), + ({ name := "MaintenanceStrategies" }, (Shape.schema FleetSpotMaintenanceStrategiesRequest)), + ({ name := "MaxTotalPrice" }, .string), + ({ name := "MinTargetCapacity" }, .int), + ({ name := "SingleAvailabilityZone" }, .bool), + ({ name := "SingleInstanceType" }, .bool)] + toValue x := record [putOpt "AllocationStrategy" x.allocationStrategy, putOpt "InstanceInterruptionBehavior" x.instanceInterruptionBehavior, putOpt "InstancePoolsToUseCount" x.instancePoolsToUseCount, putOpt "MaintenanceStrategies" x.maintenanceStrategies, putOpt "MaxTotalPrice" x.maxTotalPrice, putOpt "MinTargetCapacity" x.minTargetCapacity, putOpt "SingleAvailabilityZone" x.singleAvailabilityZone, putOpt "SingleInstanceType" x.singleInstanceType] + ofValue v := do + let allocationStrategy ← v.opt "AllocationStrategy" + let instanceInterruptionBehavior ← v.opt "InstanceInterruptionBehavior" + let instancePoolsToUseCount ← v.opt "InstancePoolsToUseCount" + let maintenanceStrategies ← v.opt "MaintenanceStrategies" + let maxTotalPrice ← v.opt "MaxTotalPrice" + let minTargetCapacity ← v.opt "MinTargetCapacity" + let singleAvailabilityZone ← v.opt "SingleAvailabilityZone" + let singleInstanceType ← v.opt "SingleInstanceType" + return { allocationStrategy, instanceInterruptionBehavior, instancePoolsToUseCount, maintenanceStrategies, maxTotalPrice, minTargetCapacity, singleAvailabilityZone, singleInstanceType } + +structure StartInstancesResult where + /-- Information about the started instances. -/ + startingInstances : Option (List InstanceStateChange) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StartInstancesResult where + schema := .struct "StartInstancesResult" [({ name := "StartingInstances", xmlName := some "instancesSet", queryName := some "InstancesSet" }, (.list (Shape.schema InstanceStateChange) "item"))] + toValue x := record [putOpt "StartingInstances" x.startingInstances] + ofValue v := do + let startingInstances ← v.opt "StartingInstances" + return { startingInstances } + +structure StopInstancesResult where + /-- Information about the stopped instances. -/ + stoppingInstances : Option (List InstanceStateChange) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StopInstancesResult where + schema := .struct "StopInstancesResult" [({ name := "StoppingInstances", xmlName := some "instancesSet", queryName := some "InstancesSet" }, (.list (Shape.schema InstanceStateChange) "item"))] + toValue x := record [putOpt "StoppingInstances" x.stoppingInstances] + ofValue v := do + let stoppingInstances ← v.opt "StoppingInstances" + return { stoppingInstances } + +/-- Describes a subnet. -/ +structure Subnet where + /-- Indicates whether a network interface created in this subnet (including a network interface created by RunInstances ) receives an IPv6 address. -/ + assignIpv6AddressOnCreation : Option Bool := none + /-- The Availability Zone of the subnet. -/ + availabilityZone : Option String := none + /-- The AZ ID of the subnet. -/ + availabilityZoneId : Option String := none + /-- The number of unused private IPv4 addresses in the subnet. -/ + availableIpAddressCount : Option Int := none + /-- The state of VPC Block Public Access (BPA). -/ + blockPublicAccessStates : Option BlockPublicAccessStates := none + /-- The IPv4 CIDR block assigned to the subnet. -/ + cidrBlock : Option String := none + /-- The customer-owned IPv4 address pool associated with the subnet. -/ + customerOwnedIpv4Pool : Option String := none + /-- Indicates whether this is the default subnet for the Availability Zone. -/ + defaultForAz : Option Bool := none + /-- Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations. -/ + enableDns64 : Option Bool := none + /-- Indicates the device position for local network interfaces in this subnet. -/ + enableLniAtDeviceIndex : Option Int := none + /-- Information about the IPv6 CIDR blocks associated with the subnet. -/ + ipv6CidrBlockAssociationSet : Option (List SubnetIpv6CidrBlockAssociation) := none + /-- Indicates whether this is an IPv6 only subnet. -/ + ipv6Native : Option Bool := none + /-- Indicates whether a network interface created in this subnet (including a network interface created by RunInstances ) receives a customer-owned IPv4 address. -/ + mapCustomerOwnedIpOnLaunch : Option Bool := none + /-- Indicates whether instances launched in this subnet receive a public IPv4 address. -/ + mapPublicIpOnLaunch : Option Bool := none + /-- The Amazon Resource Name (ARN) of the Outpost. -/ + outpostArn : Option String := none + /-- The ID of the Amazon Web Services account that owns the subnet. -/ + ownerId : Option String := none + /-- The type of hostnames to assign to instances in the subnet at launch. -/ + privateDnsNameOptionsOnLaunch : Option PrivateDnsNameOptionsOnLaunch := none + /-- The current state of the subnet. -/ + state : Option SubnetState := none + /-- The Amazon Resource Name (ARN) of the subnet. -/ + subnetArn : Option String := none + /-- The ID of the subnet. -/ + subnetId : Option String := none + /-- Any tags assigned to the subnet. -/ + tags : Option (List Tag) := none + /-- Indicates if this is a subnet used with Amazon Elastic VMware Service (EVS). -/ + type : Option String := none + /-- The ID of the VPC the subnet is in. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Subnet where + schema := .struct "Subnet" [({ name := "AssignIpv6AddressOnCreation", xmlName := some "assignIpv6AddressOnCreation", queryName := some "AssignIpv6AddressOnCreation" }, .bool), + ({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "AvailableIpAddressCount", xmlName := some "availableIpAddressCount", queryName := some "AvailableIpAddressCount" }, .int), + ({ name := "BlockPublicAccessStates", xmlName := some "blockPublicAccessStates", queryName := some "BlockPublicAccessStates" }, (Shape.schema BlockPublicAccessStates)), + ({ name := "CidrBlock", xmlName := some "cidrBlock", queryName := some "CidrBlock" }, .string), + ({ name := "CustomerOwnedIpv4Pool", xmlName := some "customerOwnedIpv4Pool", queryName := some "CustomerOwnedIpv4Pool" }, .string), + ({ name := "DefaultForAz", xmlName := some "defaultForAz", queryName := some "DefaultForAz" }, .bool), + ({ name := "EnableDns64", xmlName := some "enableDns64", queryName := some "EnableDns64" }, .bool), + ({ name := "EnableLniAtDeviceIndex", xmlName := some "enableLniAtDeviceIndex", queryName := some "EnableLniAtDeviceIndex" }, .int), + ({ name := "Ipv6CidrBlockAssociationSet", xmlName := some "ipv6CidrBlockAssociationSet", queryName := some "Ipv6CidrBlockAssociationSet" }, (.list (Shape.schema SubnetIpv6CidrBlockAssociation) "item")), + ({ name := "Ipv6Native", xmlName := some "ipv6Native", queryName := some "Ipv6Native" }, .bool), + ({ name := "MapCustomerOwnedIpOnLaunch", xmlName := some "mapCustomerOwnedIpOnLaunch", queryName := some "MapCustomerOwnedIpOnLaunch" }, .bool), + ({ name := "MapPublicIpOnLaunch", xmlName := some "mapPublicIpOnLaunch", queryName := some "MapPublicIpOnLaunch" }, .bool), + ({ name := "OutpostArn", xmlName := some "outpostArn", queryName := some "OutpostArn" }, .string), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "PrivateDnsNameOptionsOnLaunch", xmlName := some "privateDnsNameOptionsOnLaunch", queryName := some "PrivateDnsNameOptionsOnLaunch" }, (Shape.schema PrivateDnsNameOptionsOnLaunch)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema SubnetState)), + ({ name := "SubnetArn", xmlName := some "subnetArn", queryName := some "SubnetArn" }, .string), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, .string), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "AssignIpv6AddressOnCreation" x.assignIpv6AddressOnCreation, putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "AvailableIpAddressCount" x.availableIpAddressCount, putOpt "BlockPublicAccessStates" x.blockPublicAccessStates, putOpt "CidrBlock" x.cidrBlock, putOpt "CustomerOwnedIpv4Pool" x.customerOwnedIpv4Pool, putOpt "DefaultForAz" x.defaultForAz, putOpt "EnableDns64" x.enableDns64, putOpt "EnableLniAtDeviceIndex" x.enableLniAtDeviceIndex, putOpt "Ipv6CidrBlockAssociationSet" x.ipv6CidrBlockAssociationSet, putOpt "Ipv6Native" x.ipv6Native, putOpt "MapCustomerOwnedIpOnLaunch" x.mapCustomerOwnedIpOnLaunch, putOpt "MapPublicIpOnLaunch" x.mapPublicIpOnLaunch, putOpt "OutpostArn" x.outpostArn, putOpt "OwnerId" x.ownerId, putOpt "PrivateDnsNameOptionsOnLaunch" x.privateDnsNameOptionsOnLaunch, putOpt "State" x.state, putOpt "SubnetArn" x.subnetArn, putOpt "SubnetId" x.subnetId, putOpt "Tags" x.tags, putOpt "Type" x.type, putOpt "VpcId" x.vpcId] + ofValue v := do + let assignIpv6AddressOnCreation ← v.opt "AssignIpv6AddressOnCreation" + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let availableIpAddressCount ← v.opt "AvailableIpAddressCount" + let blockPublicAccessStates ← v.opt "BlockPublicAccessStates" + let cidrBlock ← v.opt "CidrBlock" + let customerOwnedIpv4Pool ← v.opt "CustomerOwnedIpv4Pool" + let defaultForAz ← v.opt "DefaultForAz" + let enableDns64 ← v.opt "EnableDns64" + let enableLniAtDeviceIndex ← v.opt "EnableLniAtDeviceIndex" + let ipv6CidrBlockAssociationSet ← v.opt "Ipv6CidrBlockAssociationSet" + let ipv6Native ← v.opt "Ipv6Native" + let mapCustomerOwnedIpOnLaunch ← v.opt "MapCustomerOwnedIpOnLaunch" + let mapPublicIpOnLaunch ← v.opt "MapPublicIpOnLaunch" + let outpostArn ← v.opt "OutpostArn" + let ownerId ← v.opt "OwnerId" + let privateDnsNameOptionsOnLaunch ← v.opt "PrivateDnsNameOptionsOnLaunch" + let state ← v.opt "State" + let subnetArn ← v.opt "SubnetArn" + let subnetId ← v.opt "SubnetId" + let tags ← v.opt "Tags" + let type ← v.opt "Type" + let vpcId ← v.opt "VpcId" + return { assignIpv6AddressOnCreation, availabilityZone, availabilityZoneId, availableIpAddressCount, blockPublicAccessStates, cidrBlock, customerOwnedIpv4Pool, defaultForAz, enableDns64, enableLniAtDeviceIndex, ipv6CidrBlockAssociationSet, ipv6Native, mapCustomerOwnedIpOnLaunch, mapPublicIpOnLaunch, outpostArn, ownerId, privateDnsNameOptionsOnLaunch, state, subnetArn, subnetId, tags, type, vpcId } + +structure TerminateClientVpnConnectionsResult where + /-- The ID of the Client VPN endpoint. -/ + clientVpnEndpointId : Option String := none + /-- The current state of the client connections. -/ + connectionStatuses : Option (List TerminateConnectionStatus) := none + /-- The user who established the terminated client connections. -/ + username : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TerminateClientVpnConnectionsResult where + schema := .struct "TerminateClientVpnConnectionsResult" [({ name := "ClientVpnEndpointId", xmlName := some "clientVpnEndpointId", queryName := some "ClientVpnEndpointId" }, .string), + ({ name := "ConnectionStatuses", xmlName := some "connectionStatuses", queryName := some "ConnectionStatuses" }, (.list (Shape.schema TerminateConnectionStatus) "item")), + ({ name := "Username", xmlName := some "username", queryName := some "Username" }, .string)] + toValue x := record [putOpt "ClientVpnEndpointId" x.clientVpnEndpointId, putOpt "ConnectionStatuses" x.connectionStatuses, putOpt "Username" x.username] + ofValue v := do + let clientVpnEndpointId ← v.opt "ClientVpnEndpointId" + let connectionStatuses ← v.opt "ConnectionStatuses" + let username ← v.opt "Username" + return { clientVpnEndpointId, connectionStatuses, username } + +structure TerminateInstancesResult where + /-- Information about the terminated instances. -/ + terminatingInstances : Option (List InstanceStateChange) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TerminateInstancesResult where + schema := .struct "TerminateInstancesResult" [({ name := "TerminatingInstances", xmlName := some "instancesSet", queryName := some "InstancesSet" }, (.list (Shape.schema InstanceStateChange) "item"))] + toValue x := record [putOpt "TerminatingInstances" x.terminatingInstances] + ofValue v := do + let terminatingInstances ← v.opt "TerminatingInstances" + return { terminatingInstances } + +/-- Describes a transit gateway. -/ +structure TransitGateway where + /-- The creation time. -/ + creationTime : Option Timestamp := none + /-- The description of the transit gateway. -/ + description : Option String := none + /-- The transit gateway options. -/ + options : Option TransitGatewayOptions := none + /-- The ID of the Amazon Web Services account that owns the transit gateway. -/ + ownerId : Option String := none + /-- The state of the transit gateway. -/ + state : Option TransitGatewayState := none + /-- The tags for the transit gateway. -/ + tags : Option (List Tag) := none + /-- The Amazon Resource Name (ARN) of the transit gateway. -/ + transitGatewayArn : Option String := none + /-- The ID of the transit gateway. -/ + transitGatewayId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGateway where + schema := .struct "TransitGateway" [({ name := "CreationTime", xmlName := some "creationTime", queryName := some "CreationTime" }, (.time none)), + ({ name := "Description", xmlName := some "description", queryName := some "Description" }, .string), + ({ name := "Options", xmlName := some "options", queryName := some "Options" }, (Shape.schema TransitGatewayOptions)), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TransitGatewayArn", xmlName := some "transitGatewayArn", queryName := some "TransitGatewayArn" }, .string), + ({ name := "TransitGatewayId", xmlName := some "transitGatewayId", queryName := some "TransitGatewayId" }, .string)] + toValue x := record [putOpt "CreationTime" x.creationTime, putOpt "Description" x.description, putOpt "Options" x.options, putOpt "OwnerId" x.ownerId, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "TransitGatewayArn" x.transitGatewayArn, putOpt "TransitGatewayId" x.transitGatewayId] + ofValue v := do + let creationTime ← v.opt "CreationTime" + let description ← v.opt "Description" + let options ← v.opt "Options" + let ownerId ← v.opt "OwnerId" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let transitGatewayArn ← v.opt "TransitGatewayArn" + let transitGatewayId ← v.opt "TransitGatewayId" + return { creationTime, description, options, ownerId, state, tags, transitGatewayArn, transitGatewayId } + +/-- Describes a transit gateway Connect peer. -/ +structure TransitGatewayConnectPeer where + /-- The Connect peer details. -/ + connectPeerConfiguration : Option TransitGatewayConnectPeerConfiguration := none + /-- The creation time. -/ + creationTime : Option Timestamp := none + /-- The state of the Connect peer. -/ + state : Option TransitGatewayConnectPeerState := none + /-- The tags for the Connect peer. -/ + tags : Option (List Tag) := none + /-- The ID of the Connect attachment. -/ + transitGatewayAttachmentId : Option String := none + /-- The ID of the Connect peer. -/ + transitGatewayConnectPeerId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TransitGatewayConnectPeer where + schema := .struct "TransitGatewayConnectPeer" [({ name := "ConnectPeerConfiguration", xmlName := some "connectPeerConfiguration", queryName := some "ConnectPeerConfiguration" }, (Shape.schema TransitGatewayConnectPeerConfiguration)), + ({ name := "CreationTime", xmlName := some "creationTime", queryName := some "CreationTime" }, (.time none)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema TransitGatewayConnectPeerState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TransitGatewayAttachmentId", xmlName := some "transitGatewayAttachmentId", queryName := some "TransitGatewayAttachmentId" }, .string), + ({ name := "TransitGatewayConnectPeerId", xmlName := some "transitGatewayConnectPeerId", queryName := some "TransitGatewayConnectPeerId" }, .string)] + toValue x := record [putOpt "ConnectPeerConfiguration" x.connectPeerConfiguration, putOpt "CreationTime" x.creationTime, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "TransitGatewayAttachmentId" x.transitGatewayAttachmentId, putOpt "TransitGatewayConnectPeerId" x.transitGatewayConnectPeerId] + ofValue v := do + let connectPeerConfiguration ← v.opt "ConnectPeerConfiguration" + let creationTime ← v.opt "CreationTime" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let transitGatewayAttachmentId ← v.opt "TransitGatewayAttachmentId" + let transitGatewayConnectPeerId ← v.opt "TransitGatewayConnectPeerId" + return { connectPeerConfiguration, creationTime, state, tags, transitGatewayAttachmentId, transitGatewayConnectPeerId } + +structure UnmonitorInstancesResult where + /-- The monitoring information. -/ + instanceMonitorings : Option (List InstanceMonitoring) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UnmonitorInstancesResult where + schema := .struct "UnmonitorInstancesResult" [({ name := "InstanceMonitorings", xmlName := some "instancesSet", queryName := some "InstancesSet" }, (.list (Shape.schema InstanceMonitoring) "item"))] + toValue x := record [putOpt "InstanceMonitorings" x.instanceMonitorings] + ofValue v := do + let instanceMonitorings ← v.opt "InstanceMonitorings" + return { instanceMonitorings } + +/-- Describes the options for Verified Access logs. -/ +structure VerifiedAccessLogs where + /-- CloudWatch Logs logging destination. -/ + cloudWatchLogs : Option VerifiedAccessLogCloudWatchLogsDestination := none + /-- Indicates whether trust data is included in the logs. -/ + includeTrustContext : Option Bool := none + /-- Kinesis logging destination. -/ + kinesisDataFirehose : Option VerifiedAccessLogKinesisDataFirehoseDestination := none + /-- The log version. -/ + logVersion : Option String := none + /-- Amazon S3 logging options. -/ + s3 : Option VerifiedAccessLogS3Destination := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessLogs where + schema := .struct "VerifiedAccessLogs" [({ name := "CloudWatchLogs", xmlName := some "cloudWatchLogs", queryName := some "CloudWatchLogs" }, (Shape.schema VerifiedAccessLogCloudWatchLogsDestination)), + ({ name := "IncludeTrustContext", xmlName := some "includeTrustContext", queryName := some "IncludeTrustContext" }, .bool), + ({ name := "KinesisDataFirehose", xmlName := some "kinesisDataFirehose", queryName := some "KinesisDataFirehose" }, (Shape.schema VerifiedAccessLogKinesisDataFirehoseDestination)), + ({ name := "LogVersion", xmlName := some "logVersion", queryName := some "LogVersion" }, .string), + ({ name := "S3", xmlName := some "s3", queryName := some "S3" }, (Shape.schema VerifiedAccessLogS3Destination))] + toValue x := record [putOpt "CloudWatchLogs" x.cloudWatchLogs, putOpt "IncludeTrustContext" x.includeTrustContext, putOpt "KinesisDataFirehose" x.kinesisDataFirehose, putOpt "LogVersion" x.logVersion, putOpt "S3" x.s3] + ofValue v := do + let cloudWatchLogs ← v.opt "CloudWatchLogs" + let includeTrustContext ← v.opt "IncludeTrustContext" + let kinesisDataFirehose ← v.opt "KinesisDataFirehose" + let logVersion ← v.opt "LogVersion" + let s3 ← v.opt "S3" + return { cloudWatchLogs, includeTrustContext, kinesisDataFirehose, logVersion, s3 } + +/-- Describes the volume status. -/ +structure VolumeStatusItem where + /-- The details of the operation. -/ + actions : Option (List VolumeStatusAction) := none + /-- Information about the instances to which the volume is attached. -/ + attachmentStatuses : Option (List VolumeStatusAttachmentStatus) := none + /-- The Availability Zone of the volume. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone. -/ + availabilityZoneId : Option String := none + /-- A list of events associated with the volume. -/ + events : Option (List VolumeStatusEvent) := none + /-- Information about the volume initialization. -/ + initializationStatusDetails : Option InitializationStatusDetails := none + /-- The service provider that manages the resource. -/ + operator : Option OperatorResponse := none + /-- The Amazon Resource Name (ARN) of the Outpost. -/ + outpostArn : Option String := none + /-- The volume ID. -/ + volumeId : Option String := none + /-- The volume status. -/ + volumeStatus : Option VolumeStatusInfo := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VolumeStatusItem where + schema := .struct "VolumeStatusItem" [({ name := "Actions", xmlName := some "actionsSet", queryName := some "ActionsSet" }, (.list (Shape.schema VolumeStatusAction) "item")), + ({ name := "AttachmentStatuses", xmlName := some "attachmentStatuses", queryName := some "AttachmentStatuses" }, (.list (Shape.schema VolumeStatusAttachmentStatus) "item")), + ({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "Events", xmlName := some "eventsSet", queryName := some "EventsSet" }, (.list (Shape.schema VolumeStatusEvent) "item")), + ({ name := "InitializationStatusDetails", xmlName := some "initializationStatusDetails", queryName := some "InitializationStatusDetails" }, (Shape.schema InitializationStatusDetails)), + ({ name := "Operator", xmlName := some "operator", queryName := some "Operator" }, (Shape.schema OperatorResponse)), + ({ name := "OutpostArn", xmlName := some "outpostArn", queryName := some "OutpostArn" }, .string), + ({ name := "VolumeId", xmlName := some "volumeId", queryName := some "VolumeId" }, .string), + ({ name := "VolumeStatus", xmlName := some "volumeStatus", queryName := some "VolumeStatus" }, (Shape.schema VolumeStatusInfo))] + toValue x := record [putOpt "Actions" x.actions, putOpt "AttachmentStatuses" x.attachmentStatuses, putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "Events" x.events, putOpt "InitializationStatusDetails" x.initializationStatusDetails, putOpt "Operator" x.operator, putOpt "OutpostArn" x.outpostArn, putOpt "VolumeId" x.volumeId, putOpt "VolumeStatus" x.volumeStatus] + ofValue v := do + let actions ← v.opt "Actions" + let attachmentStatuses ← v.opt "AttachmentStatuses" + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let events ← v.opt "Events" + let initializationStatusDetails ← v.opt "InitializationStatusDetails" + let operator ← v.opt "Operator" + let outpostArn ← v.opt "OutpostArn" + let volumeId ← v.opt "VolumeId" + let volumeStatus ← v.opt "VolumeStatus" + return { actions, attachmentStatuses, availabilityZone, availabilityZoneId, events, initializationStatusDetails, operator, outpostArn, volumeId, volumeStatus } + +/-- Describes the configuration and state of VPC encryption controls. -/ +structure VpcEncryptionControl where + /-- The encryption mode for the VPC Encryption Control configuration. -/ + mode : Option VpcEncryptionControlMode := none + /-- Information about resource exclusions for the VPC Encryption Control configuration. -/ + resourceExclusions : Option VpcEncryptionControlExclusions := none + /-- The current state of the VPC Encryption Control configuration. -/ + state : Option VpcEncryptionControlState := none + /-- A message providing additional information about the encryption control state. -/ + stateMessage : Option String := none + /-- The tags assigned to the VPC Encryption Control configuration. -/ + tags : Option (List Tag) := none + /-- The ID of the VPC Encryption Control configuration. -/ + vpcEncryptionControlId : Option String := none + /-- The ID of the VPC associated with the encryption control configuration. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcEncryptionControl where + schema := .struct "VpcEncryptionControl" [({ name := "Mode", xmlName := some "mode", queryName := some "Mode" }, (Shape.schema VpcEncryptionControlMode)), + ({ name := "ResourceExclusions", xmlName := some "resourceExclusions", queryName := some "ResourceExclusions" }, (Shape.schema VpcEncryptionControlExclusions)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema VpcEncryptionControlState)), + ({ name := "StateMessage", xmlName := some "stateMessage", queryName := some "StateMessage" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VpcEncryptionControlId", xmlName := some "vpcEncryptionControlId", queryName := some "VpcEncryptionControlId" }, .string), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "Mode" x.mode, putOpt "ResourceExclusions" x.resourceExclusions, putOpt "State" x.state, putOpt "StateMessage" x.stateMessage, putOpt "Tags" x.tags, putOpt "VpcEncryptionControlId" x.vpcEncryptionControlId, putOpt "VpcId" x.vpcId] + ofValue v := do + let mode ← v.opt "Mode" + let resourceExclusions ← v.opt "ResourceExclusions" + let state ← v.opt "State" + let stateMessage ← v.opt "StateMessage" + let tags ← v.opt "Tags" + let vpcEncryptionControlId ← v.opt "VpcEncryptionControlId" + let vpcId ← v.opt "VpcId" + return { mode, resourceExclusions, state, stateMessage, tags, vpcEncryptionControlId, vpcId } + +/-- Describes a VPC peering connection. -/ +structure VpcPeeringConnection where + /-- Information about the accepter VPC. -/ + accepterVpcInfo : Option VpcPeeringConnectionVpcInfo := none + /-- The time that an unaccepted VPC peering connection will expire. -/ + expirationTime : Option Timestamp := none + /-- The multipath resilience status of the VPC peering connection. -/ + multipathResilienceStatus : Option MultipathResilienceStatus := none + /-- Information about the requester VPC. -/ + requesterVpcInfo : Option VpcPeeringConnectionVpcInfo := none + /-- The status of the VPC peering connection. -/ + status : Option VpcPeeringConnectionStateReason := none + /-- Any tags assigned to the resource. -/ + tags : Option (List Tag) := none + /-- The ID of the VPC peering connection. -/ + vpcPeeringConnectionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcPeeringConnection where + schema := .struct "VpcPeeringConnection" [({ name := "AccepterVpcInfo", xmlName := some "accepterVpcInfo", queryName := some "AccepterVpcInfo" }, (Shape.schema VpcPeeringConnectionVpcInfo)), + ({ name := "ExpirationTime", xmlName := some "expirationTime", queryName := some "ExpirationTime" }, (.time none)), + ({ name := "MultipathResilienceStatus", xmlName := some "multipathResilienceStatus", queryName := some "MultipathResilienceStatus" }, (Shape.schema MultipathResilienceStatus)), + ({ name := "RequesterVpcInfo", xmlName := some "requesterVpcInfo", queryName := some "RequesterVpcInfo" }, (Shape.schema VpcPeeringConnectionVpcInfo)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema VpcPeeringConnectionStateReason)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VpcPeeringConnectionId", xmlName := some "vpcPeeringConnectionId", queryName := some "VpcPeeringConnectionId" }, .string)] + toValue x := record [putOpt "AccepterVpcInfo" x.accepterVpcInfo, putOpt "ExpirationTime" x.expirationTime, putOpt "MultipathResilienceStatus" x.multipathResilienceStatus, putOpt "RequesterVpcInfo" x.requesterVpcInfo, putOpt "Status" x.status, putOpt "Tags" x.tags, putOpt "VpcPeeringConnectionId" x.vpcPeeringConnectionId] + ofValue v := do + let accepterVpcInfo ← v.opt "AccepterVpcInfo" + let expirationTime ← v.opt "ExpirationTime" + let multipathResilienceStatus ← v.opt "MultipathResilienceStatus" + let requesterVpcInfo ← v.opt "RequesterVpcInfo" + let status ← v.opt "Status" + let tags ← v.opt "Tags" + let vpcPeeringConnectionId ← v.opt "VpcPeeringConnectionId" + return { accepterVpcInfo, expirationTime, multipathResilienceStatus, requesterVpcInfo, status, tags, vpcPeeringConnectionId } + +/-- Describes VPN connection options. -/ +structure VpnConnectionOptions where + /-- Indicates whether acceleration is enabled for the VPN connection. -/ + enableAcceleration : Option Bool := none + /-- The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. -/ + localIpv4NetworkCidr : Option String := none + /-- The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. -/ + localIpv6NetworkCidr : Option String := none + /-- The type of IPv4 address assigned to the outside interface of the customer gateway. -/ + outsideIpAddressType : Option String := none + /-- The IPv4 CIDR on the Amazon Web Services side of the VPN connection. -/ + remoteIpv4NetworkCidr : Option String := none + /-- The IPv6 CIDR on the Amazon Web Services side of the VPN connection. -/ + remoteIpv6NetworkCidr : Option String := none + /-- Indicates whether the VPN connection uses static routes only. -/ + staticRoutesOnly : Option Bool := none + /-- The transit gateway attachment ID in use for the VPN tunnel. -/ + transportTransitGatewayAttachmentId : Option String := none + /-- The configured bandwidth for the VPN tunnel. -/ + tunnelBandwidth : Option VpnTunnelBandwidth := none + /-- Indicates whether the VPN tunnels process IPv4 or IPv6 traffic. -/ + tunnelInsideIpVersion : Option TunnelInsideIpVersion := none + /-- Indicates the VPN tunnel options. -/ + tunnelOptions : Option (List TunnelOption) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpnConnectionOptions where + schema := .struct "VpnConnectionOptions" [({ name := "EnableAcceleration", xmlName := some "enableAcceleration", queryName := some "EnableAcceleration" }, .bool), + ({ name := "LocalIpv4NetworkCidr", xmlName := some "localIpv4NetworkCidr", queryName := some "LocalIpv4NetworkCidr" }, .string), + ({ name := "LocalIpv6NetworkCidr", xmlName := some "localIpv6NetworkCidr", queryName := some "LocalIpv6NetworkCidr" }, .string), + ({ name := "OutsideIpAddressType", xmlName := some "outsideIpAddressType", queryName := some "OutsideIpAddressType" }, .string), + ({ name := "RemoteIpv4NetworkCidr", xmlName := some "remoteIpv4NetworkCidr", queryName := some "RemoteIpv4NetworkCidr" }, .string), + ({ name := "RemoteIpv6NetworkCidr", xmlName := some "remoteIpv6NetworkCidr", queryName := some "RemoteIpv6NetworkCidr" }, .string), + ({ name := "StaticRoutesOnly", xmlName := some "staticRoutesOnly", queryName := some "StaticRoutesOnly" }, .bool), + ({ name := "TransportTransitGatewayAttachmentId", xmlName := some "transportTransitGatewayAttachmentId", queryName := some "TransportTransitGatewayAttachmentId" }, .string), + ({ name := "TunnelBandwidth", xmlName := some "tunnelBandwidth", queryName := some "TunnelBandwidth" }, (Shape.schema VpnTunnelBandwidth)), + ({ name := "TunnelInsideIpVersion", xmlName := some "tunnelInsideIpVersion", queryName := some "TunnelInsideIpVersion" }, (Shape.schema TunnelInsideIpVersion)), + ({ name := "TunnelOptions", xmlName := some "tunnelOptionSet", queryName := some "TunnelOptionSet" }, (.list (Shape.schema TunnelOption) "item"))] + toValue x := record [putOpt "EnableAcceleration" x.enableAcceleration, putOpt "LocalIpv4NetworkCidr" x.localIpv4NetworkCidr, putOpt "LocalIpv6NetworkCidr" x.localIpv6NetworkCidr, putOpt "OutsideIpAddressType" x.outsideIpAddressType, putOpt "RemoteIpv4NetworkCidr" x.remoteIpv4NetworkCidr, putOpt "RemoteIpv6NetworkCidr" x.remoteIpv6NetworkCidr, putOpt "StaticRoutesOnly" x.staticRoutesOnly, putOpt "TransportTransitGatewayAttachmentId" x.transportTransitGatewayAttachmentId, putOpt "TunnelBandwidth" x.tunnelBandwidth, putOpt "TunnelInsideIpVersion" x.tunnelInsideIpVersion, putOpt "TunnelOptions" x.tunnelOptions] + ofValue v := do + let enableAcceleration ← v.opt "EnableAcceleration" + let localIpv4NetworkCidr ← v.opt "LocalIpv4NetworkCidr" + let localIpv6NetworkCidr ← v.opt "LocalIpv6NetworkCidr" + let outsideIpAddressType ← v.opt "OutsideIpAddressType" + let remoteIpv4NetworkCidr ← v.opt "RemoteIpv4NetworkCidr" + let remoteIpv6NetworkCidr ← v.opt "RemoteIpv6NetworkCidr" + let staticRoutesOnly ← v.opt "StaticRoutesOnly" + let transportTransitGatewayAttachmentId ← v.opt "TransportTransitGatewayAttachmentId" + let tunnelBandwidth ← v.opt "TunnelBandwidth" + let tunnelInsideIpVersion ← v.opt "TunnelInsideIpVersion" + let tunnelOptions ← v.opt "TunnelOptions" + return { enableAcceleration, localIpv4NetworkCidr, localIpv6NetworkCidr, outsideIpAddressType, remoteIpv4NetworkCidr, remoteIpv6NetworkCidr, staticRoutesOnly, transportTransitGatewayAttachmentId, tunnelBandwidth, tunnelInsideIpVersion, tunnelOptions } + +/-- Describes VPN connection options. -/ +structure VpnConnectionOptionsSpecification where + /-- Indicate whether to enable acceleration for the VPN connection. -/ + enableAcceleration : Option Bool := none + /-- The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. -/ + localIpv4NetworkCidr : Option String := none + /-- The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. -/ + localIpv6NetworkCidr : Option String := none + /-- The type of IP address assigned to the outside interface of the customer gateway device. -/ + outsideIpAddressType : Option String := none + /-- The IPv4 CIDR on the Amazon Web Services side of the VPN connection. -/ + remoteIpv4NetworkCidr : Option String := none + /-- The IPv6 CIDR on the Amazon Web Services side of the VPN connection. -/ + remoteIpv6NetworkCidr : Option String := none + /-- Indicate whether the VPN connection uses static routes only. -/ + staticRoutesOnly : Option Bool := none + /-- The transit gateway attachment ID to use for the VPN tunnel. -/ + transportTransitGatewayAttachmentId : Option String := none + /-- The desired bandwidth specification for the VPN tunnel, used when creating or modifying VPN connection options to set the tunnel's throughput capacity. -/ + tunnelBandwidth : Option VpnTunnelBandwidth := none + /-- Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. -/ + tunnelInsideIpVersion : Option TunnelInsideIpVersion := none + /-- The tunnel options for the VPN connection. -/ + tunnelOptions : Option (List VpnTunnelOptionsSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpnConnectionOptionsSpecification where + schema := .struct "VpnConnectionOptionsSpecification" [({ name := "EnableAcceleration" }, .bool), + ({ name := "LocalIpv4NetworkCidr" }, .string), + ({ name := "LocalIpv6NetworkCidr" }, .string), + ({ name := "OutsideIpAddressType" }, .string), + ({ name := "RemoteIpv4NetworkCidr" }, .string), + ({ name := "RemoteIpv6NetworkCidr" }, .string), + ({ name := "StaticRoutesOnly", xmlName := some "staticRoutesOnly", queryName := some "StaticRoutesOnly" }, .bool), + ({ name := "TransportTransitGatewayAttachmentId" }, .string), + ({ name := "TunnelBandwidth" }, (Shape.schema VpnTunnelBandwidth)), + ({ name := "TunnelInsideIpVersion" }, (Shape.schema TunnelInsideIpVersion)), + ({ name := "TunnelOptions" }, (.list (Shape.schema VpnTunnelOptionsSpecification) "member"))] + toValue x := record [putOpt "EnableAcceleration" x.enableAcceleration, putOpt "LocalIpv4NetworkCidr" x.localIpv4NetworkCidr, putOpt "LocalIpv6NetworkCidr" x.localIpv6NetworkCidr, putOpt "OutsideIpAddressType" x.outsideIpAddressType, putOpt "RemoteIpv4NetworkCidr" x.remoteIpv4NetworkCidr, putOpt "RemoteIpv6NetworkCidr" x.remoteIpv6NetworkCidr, putOpt "StaticRoutesOnly" x.staticRoutesOnly, putOpt "TransportTransitGatewayAttachmentId" x.transportTransitGatewayAttachmentId, putOpt "TunnelBandwidth" x.tunnelBandwidth, putOpt "TunnelInsideIpVersion" x.tunnelInsideIpVersion, putOpt "TunnelOptions" x.tunnelOptions] + ofValue v := do + let enableAcceleration ← v.opt "EnableAcceleration" + let localIpv4NetworkCidr ← v.opt "LocalIpv4NetworkCidr" + let localIpv6NetworkCidr ← v.opt "LocalIpv6NetworkCidr" + let outsideIpAddressType ← v.opt "OutsideIpAddressType" + let remoteIpv4NetworkCidr ← v.opt "RemoteIpv4NetworkCidr" + let remoteIpv6NetworkCidr ← v.opt "RemoteIpv6NetworkCidr" + let staticRoutesOnly ← v.opt "StaticRoutesOnly" + let transportTransitGatewayAttachmentId ← v.opt "TransportTransitGatewayAttachmentId" + let tunnelBandwidth ← v.opt "TunnelBandwidth" + let tunnelInsideIpVersion ← v.opt "TunnelInsideIpVersion" + let tunnelOptions ← v.opt "TunnelOptions" + return { enableAcceleration, localIpv4NetworkCidr, localIpv6NetworkCidr, outsideIpAddressType, remoteIpv4NetworkCidr, remoteIpv6NetworkCidr, staticRoutesOnly, transportTransitGatewayAttachmentId, tunnelBandwidth, tunnelInsideIpVersion, tunnelOptions } + +structure WithdrawByoipCidrResult where + /-- Information about the address pool. -/ + byoipCidr : Option ByoipCidr := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape WithdrawByoipCidrResult where + schema := .struct "WithdrawByoipCidrResult" [({ name := "ByoipCidr", xmlName := some "byoipCidr", queryName := some "ByoipCidr" }, (Shape.schema ByoipCidr))] + toValue x := record [putOpt "ByoipCidr" x.byoipCidr] + ofValue v := do + let byoipCidr ← v.opt "ByoipCidr" + return { byoipCidr } + +structure AcceptVpcPeeringConnectionResult where + /-- Information about the VPC peering connection. -/ + vpcPeeringConnection : Option VpcPeeringConnection := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceptVpcPeeringConnectionResult where + schema := .struct "AcceptVpcPeeringConnectionResult" [({ name := "VpcPeeringConnection", xmlName := some "vpcPeeringConnection", queryName := some "VpcPeeringConnection" }, (Shape.schema VpcPeeringConnection))] + toValue x := record [putOpt "VpcPeeringConnection" x.vpcPeeringConnection] + ofValue v := do + let vpcPeeringConnection ← v.opt "VpcPeeringConnection" + return { vpcPeeringConnection } + +/-- Describes a finding for a Network Access Scope. -/ +structure AccessScopeAnalysisFinding where + /-- The finding components. -/ + findingComponents : Option (List PathComponent) := none + /-- The ID of the finding. -/ + findingId : Option String := none + /-- The ID of the Network Access Scope analysis. -/ + networkInsightsAccessScopeAnalysisId : Option String := none + /-- The ID of the Network Access Scope. -/ + networkInsightsAccessScopeId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AccessScopeAnalysisFinding where + schema := .struct "AccessScopeAnalysisFinding" [({ name := "FindingComponents", xmlName := some "findingComponentSet", queryName := some "FindingComponentSet" }, (.list (Shape.schema PathComponent) "item")), + ({ name := "FindingId", xmlName := some "findingId", queryName := some "FindingId" }, .string), + ({ name := "NetworkInsightsAccessScopeAnalysisId", xmlName := some "networkInsightsAccessScopeAnalysisId", queryName := some "NetworkInsightsAccessScopeAnalysisId" }, .string), + ({ name := "NetworkInsightsAccessScopeId", xmlName := some "networkInsightsAccessScopeId", queryName := some "NetworkInsightsAccessScopeId" }, .string)] + toValue x := record [putOpt "FindingComponents" x.findingComponents, putOpt "FindingId" x.findingId, putOpt "NetworkInsightsAccessScopeAnalysisId" x.networkInsightsAccessScopeAnalysisId, putOpt "NetworkInsightsAccessScopeId" x.networkInsightsAccessScopeId] + ofValue v := do + let findingComponents ← v.opt "FindingComponents" + let findingId ← v.opt "FindingId" + let networkInsightsAccessScopeAnalysisId ← v.opt "NetworkInsightsAccessScopeAnalysisId" + let networkInsightsAccessScopeId ← v.opt "NetworkInsightsAccessScopeId" + return { findingComponents, findingId, networkInsightsAccessScopeAnalysisId, networkInsightsAccessScopeId } + +/-- Describes the application statuses for instances. -/ +structure ApplicationStatusesResponseType where + /-- The application status information for the instances. -/ + instances : Option (List InstanceApplicationStatus) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ApplicationStatusesResponseType where + schema := .struct "ApplicationStatusesResponseType" [({ name := "Instances", xmlName := some "instanceSet", queryName := some "InstanceSet" }, (.list (Shape.schema InstanceApplicationStatus) "item"))] + toValue x := record [putOpt "Instances" x.instances] + ofValue v := do + let instances ← v.opt "Instances" + return { instances } + +/-- Information about a Capacity Reservation Fleet. -/ +structure CapacityReservationFleet where + /-- The strategy used by the Capacity Reservation Fleet to determine which of the specified instance types to use. -/ + allocationStrategy : Option String := none + /-- Reserved for internal use. -/ + availabilityZone : Option String := none + /-- Reserved for internal use. -/ + availabilityZoneId : Option String := none + /-- The ARN of the Capacity Reservation Fleet. -/ + capacityReservationFleetArn : Option String := none + /-- The ID of the Capacity Reservation Fleet. -/ + capacityReservationFleetId : Option String := none + /-- The date and time at which the Capacity Reservation Fleet was created. -/ + createTime : Option Timestamp := none + /-- The date and time at which the Capacity Reservation Fleet expires. -/ + endDate : Option Timestamp := none + /-- Indicates the type of instance launches that the Capacity Reservation Fleet accepts. -/ + instanceMatchCriteria : Option FleetInstanceMatchCriteria := none + /-- Reserved for internal use. -/ + instanceRequirements : Option InstanceRequirementsRequest := none + /-- Information about the instance types for which to reserve the capacity. -/ + instanceTypeSpecifications : Option (List FleetCapacityReservation) := none + /-- The state of the Capacity Reservation Fleet. -/ + state : Option CapacityReservationFleetState := none + /-- The tags assigned to the Capacity Reservation Fleet. -/ + tags : Option (List Tag) := none + /-- The tenancy of the Capacity Reservation Fleet. -/ + tenancy : Option FleetCapacityReservationTenancy := none + /-- The capacity units that have been fulfilled. -/ + totalFulfilledCapacity : Option JsonNumber := none + /-- The total number of capacity units for which the Capacity Reservation Fleet reserves capacity. -/ + totalTargetCapacity : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityReservationFleet where + schema := .struct "CapacityReservationFleet" [({ name := "AllocationStrategy", xmlName := some "allocationStrategy", queryName := some "AllocationStrategy" }, .string), + ({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "CapacityReservationFleetArn", xmlName := some "capacityReservationFleetArn", queryName := some "CapacityReservationFleetArn" }, .string), + ({ name := "CapacityReservationFleetId", xmlName := some "capacityReservationFleetId", queryName := some "CapacityReservationFleetId" }, .string), + ({ name := "CreateTime", xmlName := some "createTime", queryName := some "CreateTime" }, (.time none)), + ({ name := "EndDate", xmlName := some "endDate", queryName := some "EndDate" }, (.time none)), + ({ name := "InstanceMatchCriteria", xmlName := some "instanceMatchCriteria", queryName := some "InstanceMatchCriteria" }, (Shape.schema FleetInstanceMatchCriteria)), + ({ name := "InstanceRequirements", xmlName := some "instanceRequirements", queryName := some "InstanceRequirements" }, (Shape.schema InstanceRequirementsRequest)), + ({ name := "InstanceTypeSpecifications", xmlName := some "instanceTypeSpecificationSet", queryName := some "InstanceTypeSpecificationSet" }, (.list (Shape.schema FleetCapacityReservation) "item")), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema CapacityReservationFleetState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "Tenancy", xmlName := some "tenancy", queryName := some "Tenancy" }, (Shape.schema FleetCapacityReservationTenancy)), + ({ name := "TotalFulfilledCapacity", xmlName := some "totalFulfilledCapacity", queryName := some "TotalFulfilledCapacity" }, .number), + ({ name := "TotalTargetCapacity", xmlName := some "totalTargetCapacity", queryName := some "TotalTargetCapacity" }, .int)] + toValue x := record [putOpt "AllocationStrategy" x.allocationStrategy, putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "CapacityReservationFleetArn" x.capacityReservationFleetArn, putOpt "CapacityReservationFleetId" x.capacityReservationFleetId, putOpt "CreateTime" x.createTime, putOpt "EndDate" x.endDate, putOpt "InstanceMatchCriteria" x.instanceMatchCriteria, putOpt "InstanceRequirements" x.instanceRequirements, putOpt "InstanceTypeSpecifications" x.instanceTypeSpecifications, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "Tenancy" x.tenancy, putOpt "TotalFulfilledCapacity" x.totalFulfilledCapacity, putOpt "TotalTargetCapacity" x.totalTargetCapacity] + ofValue v := do + let allocationStrategy ← v.opt "AllocationStrategy" + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let capacityReservationFleetArn ← v.opt "CapacityReservationFleetArn" + let capacityReservationFleetId ← v.opt "CapacityReservationFleetId" + let createTime ← v.opt "CreateTime" + let endDate ← v.opt "EndDate" + let instanceMatchCriteria ← v.opt "InstanceMatchCriteria" + let instanceRequirements ← v.opt "InstanceRequirements" + let instanceTypeSpecifications ← v.opt "InstanceTypeSpecifications" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let tenancy ← v.opt "Tenancy" + let totalFulfilledCapacity ← v.opt "TotalFulfilledCapacity" + let totalTargetCapacity ← v.opt "TotalTargetCapacity" + return { allocationStrategy, availabilityZone, availabilityZoneId, capacityReservationFleetArn, capacityReservationFleetId, createTime, endDate, instanceMatchCriteria, instanceRequirements, instanceTypeSpecifications, state, tags, tenancy, totalFulfilledCapacity, totalTargetCapacity } + +/-- Describes a conversion task. -/ +structure ConversionTask where + /-- The ID of the conversion task. -/ + conversionTaskId : Option String := none + /-- The time when the task expires. -/ + expirationTime : Option String := none + /-- If the task is for importing an instance, this contains information about the import instance task. -/ + importInstance : Option ImportInstanceTaskDetails := none + /-- If the task is for importing a volume, this contains information about the import volume task. -/ + importVolume : Option ImportVolumeTaskDetails := none + /-- The state of the conversion task. -/ + state : Option ConversionTaskState := none + /-- The status message related to the conversion task. -/ + statusMessage : Option String := none + /-- Any tags assigned to the task. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ConversionTask where + schema := .struct "ConversionTask" [({ name := "ConversionTaskId", xmlName := some "conversionTaskId", queryName := some "ConversionTaskId" }, .string), + ({ name := "ExpirationTime", xmlName := some "expirationTime", queryName := some "ExpirationTime" }, .string), + ({ name := "ImportInstance", xmlName := some "importInstance", queryName := some "ImportInstance" }, (Shape.schema ImportInstanceTaskDetails)), + ({ name := "ImportVolume", xmlName := some "importVolume", queryName := some "ImportVolume" }, (Shape.schema ImportVolumeTaskDetails)), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema ConversionTaskState)), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "ConversionTaskId" x.conversionTaskId, putOpt "ExpirationTime" x.expirationTime, putOpt "ImportInstance" x.importInstance, putOpt "ImportVolume" x.importVolume, putOpt "State" x.state, putOpt "StatusMessage" x.statusMessage, putOpt "Tags" x.tags] + ofValue v := do + let conversionTaskId ← v.opt "ConversionTaskId" + let expirationTime ← v.opt "ExpirationTime" + let importInstance ← v.opt "ImportInstance" + let importVolume ← v.opt "ImportVolume" + let state ← v.opt "State" + let statusMessage ← v.opt "StatusMessage" + let tags ← v.opt "Tags" + return { conversionTaskId, expirationTime, importInstance, importVolume, state, statusMessage, tags } + +structure CreateCapacityReservationFleetRequest where + /-- The strategy used by the Capacity Reservation Fleet to determine which of the specified instance types to use. -/ + allocationStrategy : Option String := none + /-- Reserved for internal use. -/ + availabilityZone : Option String := none + /-- Reserved for internal use. -/ + availabilityZoneId : Option String := none + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The date and time at which the Capacity Reservation Fleet expires. -/ + endDate : Option Timestamp := none + /-- Indicates the type of instance launches that the Capacity Reservation Fleet accepts. -/ + instanceMatchCriteria : Option FleetInstanceMatchCriteria := none + /-- Reserved for internal use. -/ + instanceRequirements : Option InstanceRequirementsRequest := none + /-- Information about the instance types for which to reserve the capacity. -/ + instanceTypeSpecifications : Option (List ReservationFleetInstanceSpecification) := none + /-- The tags to assign to the Capacity Reservation Fleet. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- Indicates the tenancy of the Capacity Reservation Fleet. -/ + tenancy : Option FleetCapacityReservationTenancy := none + /-- The total number of capacity units to be reserved by the Capacity Reservation Fleet. -/ + totalTargetCapacity : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCapacityReservationFleetRequest where + schema := .struct "CreateCapacityReservationFleetRequest" [({ name := "AllocationStrategy" }, .string), + ({ name := "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId" }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "EndDate" }, (.time none)), + ({ name := "InstanceMatchCriteria" }, (Shape.schema FleetInstanceMatchCriteria)), + ({ name := "InstanceRequirements" }, (Shape.schema InstanceRequirementsRequest)), + ({ name := "InstanceTypeSpecifications", xmlName := some "InstanceTypeSpecification" }, (.list (Shape.schema ReservationFleetInstanceSpecification) "member")), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "Tenancy" }, (Shape.schema FleetCapacityReservationTenancy)), + ({ name := "TotalTargetCapacity", required := true }, .int)] + toValue x := record [putOpt "AllocationStrategy" x.allocationStrategy, putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "EndDate" x.endDate, putOpt "InstanceMatchCriteria" x.instanceMatchCriteria, putOpt "InstanceRequirements" x.instanceRequirements, putOpt "InstanceTypeSpecifications" x.instanceTypeSpecifications, putOpt "TagSpecifications" x.tagSpecifications, putOpt "Tenancy" x.tenancy, put "TotalTargetCapacity" x.totalTargetCapacity] + ofValue v := do + let allocationStrategy ← v.opt "AllocationStrategy" + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let endDate ← v.opt "EndDate" + let instanceMatchCriteria ← v.opt "InstanceMatchCriteria" + let instanceRequirements ← v.opt "InstanceRequirements" + let instanceTypeSpecifications ← v.opt "InstanceTypeSpecifications" + let tagSpecifications ← v.opt "TagSpecifications" + let tenancy ← v.opt "Tenancy" + let totalTargetCapacity ← v.req "TotalTargetCapacity" + return { allocationStrategy, availabilityZone, availabilityZoneId, clientToken, dryRun, endDate, instanceMatchCriteria, instanceRequirements, instanceTypeSpecifications, tagSpecifications, tenancy, totalTargetCapacity } + +structure CreateDefaultSubnetResult where + /-- Information about the subnet. -/ + subnet : Option Subnet := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateDefaultSubnetResult where + schema := .struct "CreateDefaultSubnetResult" [({ name := "Subnet", xmlName := some "subnet", queryName := some "Subnet" }, (Shape.schema Subnet))] + toValue x := record [putOpt "Subnet" x.subnet] + ofValue v := do + let subnet ← v.opt "Subnet" + return { subnet } + +structure CreateNetworkInsightsAccessScopeRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The paths to exclude. -/ + excludePaths : Option (List AccessScopePathRequest) := none + /-- The paths to match. -/ + matchPaths : Option (List AccessScopePathRequest) := none + /-- The tags to apply. -/ + tagSpecifications : Option (List TagSpecification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateNetworkInsightsAccessScopeRequest where + schema := .struct "CreateNetworkInsightsAccessScopeRequest" [({ name := "ClientToken", required := true }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "ExcludePaths", xmlName := some "ExcludePath" }, (.list (Shape.schema AccessScopePathRequest) "item")), + ({ name := "MatchPaths", xmlName := some "MatchPath" }, (.list (Shape.schema AccessScopePathRequest) "item")), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item"))] + toValue x := record [put "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "ExcludePaths" x.excludePaths, putOpt "MatchPaths" x.matchPaths, putOpt "TagSpecifications" x.tagSpecifications] + ofValue v := do + let clientToken ← v.req "ClientToken" + let dryRun ← v.opt "DryRun" + let excludePaths ← v.opt "ExcludePaths" + let matchPaths ← v.opt "MatchPaths" + let tagSpecifications ← v.opt "TagSpecifications" + return { clientToken, dryRun, excludePaths, matchPaths, tagSpecifications } + +structure CreateNetworkInterfaceResult where + /-- The token to use to retrieve the next page of results. -/ + clientToken : Option String := none + /-- Information about the network interface. -/ + networkInterface : Option NetworkInterface := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateNetworkInterfaceResult where + schema := .struct "CreateNetworkInterfaceResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "NetworkInterface", xmlName := some "networkInterface", queryName := some "NetworkInterface" }, (Shape.schema NetworkInterface))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "NetworkInterface" x.networkInterface] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let networkInterface ← v.opt "NetworkInterface" + return { clientToken, networkInterface } + +structure CreateRouteTableResult where + /-- Unique, case-sensitive identifier to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Information about the route table. -/ + routeTable : Option RouteTable := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateRouteTableResult where + schema := .struct "CreateRouteTableResult" [({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "RouteTable", xmlName := some "routeTable", queryName := some "RouteTable" }, (Shape.schema RouteTable))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "RouteTable" x.routeTable] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let routeTable ← v.opt "RouteTable" + return { clientToken, routeTable } + +structure CreateSubnetResult where + /-- Information about the subnet. -/ + subnet : Option Subnet := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateSubnetResult where + schema := .struct "CreateSubnetResult" [({ name := "Subnet", xmlName := some "subnet", queryName := some "Subnet" }, (Shape.schema Subnet))] + toValue x := record [putOpt "Subnet" x.subnet] + ofValue v := do + let subnet ← v.opt "Subnet" + return { subnet } + +structure CreateTransitGatewayConnectPeerResult where + /-- Information about the Connect peer. -/ + transitGatewayConnectPeer : Option TransitGatewayConnectPeer := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayConnectPeerResult where + schema := .struct "CreateTransitGatewayConnectPeerResult" [({ name := "TransitGatewayConnectPeer", xmlName := some "transitGatewayConnectPeer", queryName := some "TransitGatewayConnectPeer" }, (Shape.schema TransitGatewayConnectPeer))] + toValue x := record [putOpt "TransitGatewayConnectPeer" x.transitGatewayConnectPeer] + ofValue v := do + let transitGatewayConnectPeer ← v.opt "TransitGatewayConnectPeer" + return { transitGatewayConnectPeer } + +structure CreateTransitGatewayResult where + /-- Information about the transit gateway. -/ + transitGateway : Option TransitGateway := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTransitGatewayResult where + schema := .struct "CreateTransitGatewayResult" [({ name := "TransitGateway", xmlName := some "transitGateway", queryName := some "TransitGateway" }, (Shape.schema TransitGateway))] + toValue x := record [putOpt "TransitGateway" x.transitGateway] + ofValue v := do + let transitGateway ← v.opt "TransitGateway" + return { transitGateway } + +structure CreateVpcEncryptionControlResult where + /-- Information about the VPC Encryption Control configuration. -/ + vpcEncryptionControl : Option VpcEncryptionControl := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpcEncryptionControlResult where + schema := .struct "CreateVpcEncryptionControlResult" [({ name := "VpcEncryptionControl", xmlName := some "vpcEncryptionControl", queryName := some "VpcEncryptionControl" }, (Shape.schema VpcEncryptionControl))] + toValue x := record [putOpt "VpcEncryptionControl" x.vpcEncryptionControl] + ofValue v := do + let vpcEncryptionControl ← v.opt "VpcEncryptionControl" + return { vpcEncryptionControl } + +structure CreateVpcPeeringConnectionResult where + /-- Information about the VPC peering connection. -/ + vpcPeeringConnection : Option VpcPeeringConnection := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpcPeeringConnectionResult where + schema := .struct "CreateVpcPeeringConnectionResult" [({ name := "VpcPeeringConnection", xmlName := some "vpcPeeringConnection", queryName := some "VpcPeeringConnection" }, (Shape.schema VpcPeeringConnection))] + toValue x := record [putOpt "VpcPeeringConnection" x.vpcPeeringConnection] + ofValue v := do + let vpcPeeringConnection ← v.opt "VpcPeeringConnection" + return { vpcPeeringConnection } + +/-- Contains the parameters for CreateVpnConnection. -/ +structure CreateVpnConnectionRequest where + /-- The ID of the customer gateway. -/ + customerGatewayId : String + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The options for the VPN connection. -/ + options : Option VpnConnectionOptionsSpecification := none + /-- Specifies the storage mode for the pre-shared key (PSK). -/ + preSharedKeyStorage : Option String := none + /-- The tags to apply to the VPN connection. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The ID of the transit gateway. -/ + transitGatewayId : Option String := none + /-- The type of VPN connection ( ipsec.1 ). -/ + type : String + /-- The ID of the VPN concentrator to associate with the VPN connection. -/ + vpnConcentratorId : Option String := none + /-- The ID of the virtual private gateway. -/ + vpnGatewayId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpnConnectionRequest where + schema := .struct "CreateVpnConnectionRequest" [({ name := "CustomerGatewayId", required := true }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "Options", xmlName := some "options", queryName := some "Options" }, (Shape.schema VpnConnectionOptionsSpecification)), + ({ name := "PreSharedKeyStorage" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TransitGatewayId" }, .string), + ({ name := "Type", required := true }, .string), + ({ name := "VpnConcentratorId" }, .string), + ({ name := "VpnGatewayId" }, .string)] + toValue x := record [put "CustomerGatewayId" x.customerGatewayId, putOpt "DryRun" x.dryRun, putOpt "Options" x.options, putOpt "PreSharedKeyStorage" x.preSharedKeyStorage, putOpt "TagSpecifications" x.tagSpecifications, putOpt "TransitGatewayId" x.transitGatewayId, put "Type" x.type, putOpt "VpnConcentratorId" x.vpnConcentratorId, putOpt "VpnGatewayId" x.vpnGatewayId] + ofValue v := do + let customerGatewayId ← v.req "CustomerGatewayId" + let dryRun ← v.opt "DryRun" + let options ← v.opt "Options" + let preSharedKeyStorage ← v.opt "PreSharedKeyStorage" + let tagSpecifications ← v.opt "TagSpecifications" + let transitGatewayId ← v.opt "TransitGatewayId" + let type ← v.req "Type" + let vpnConcentratorId ← v.opt "VpnConcentratorId" + let vpnGatewayId ← v.opt "VpnGatewayId" + return { customerGatewayId, dryRun, options, preSharedKeyStorage, tagSpecifications, transitGatewayId, type, vpnConcentratorId, vpnGatewayId } + +structure DeleteTransitGatewayConnectPeerResult where + /-- Information about the deleted Connect peer. -/ + transitGatewayConnectPeer : Option TransitGatewayConnectPeer := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayConnectPeerResult where + schema := .struct "DeleteTransitGatewayConnectPeerResult" [({ name := "TransitGatewayConnectPeer", xmlName := some "transitGatewayConnectPeer", queryName := some "TransitGatewayConnectPeer" }, (Shape.schema TransitGatewayConnectPeer))] + toValue x := record [putOpt "TransitGatewayConnectPeer" x.transitGatewayConnectPeer] + ofValue v := do + let transitGatewayConnectPeer ← v.opt "TransitGatewayConnectPeer" + return { transitGatewayConnectPeer } + +structure DeleteTransitGatewayResult where + /-- Information about the deleted transit gateway. -/ + transitGateway : Option TransitGateway := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTransitGatewayResult where + schema := .struct "DeleteTransitGatewayResult" [({ name := "TransitGateway", xmlName := some "transitGateway", queryName := some "TransitGateway" }, (Shape.schema TransitGateway))] + toValue x := record [putOpt "TransitGateway" x.transitGateway] + ofValue v := do + let transitGateway ← v.opt "TransitGateway" + return { transitGateway } + +structure DeleteVpcEncryptionControlResult where + /-- Information about the deleted VPC Encryption Control configuration. -/ + vpcEncryptionControl : Option VpcEncryptionControl := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteVpcEncryptionControlResult where + schema := .struct "DeleteVpcEncryptionControlResult" [({ name := "VpcEncryptionControl", xmlName := some "vpcEncryptionControl", queryName := some "VpcEncryptionControl" }, (Shape.schema VpcEncryptionControl))] + toValue x := record [putOpt "VpcEncryptionControl" x.vpcEncryptionControl] + ofValue v := do + let vpcEncryptionControl ← v.opt "VpcEncryptionControl" + return { vpcEncryptionControl } + +structure DescribeClientVpnEndpointsResult where + /-- Information about the Client VPN endpoints. -/ + clientVpnEndpoints : Option (List ClientVpnEndpoint) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeClientVpnEndpointsResult where + schema := .struct "DescribeClientVpnEndpointsResult" [({ name := "ClientVpnEndpoints", xmlName := some "clientVpnEndpoint", queryName := some "ClientVpnEndpoint" }, (.list (Shape.schema ClientVpnEndpoint) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "ClientVpnEndpoints" x.clientVpnEndpoints, putOpt "NextToken" x.nextToken] + ofValue v := do + let clientVpnEndpoints ← v.opt "ClientVpnEndpoints" + let nextToken ← v.opt "NextToken" + return { clientVpnEndpoints, nextToken } + +structure DescribeImagesResult where + /-- Information about the images. -/ + images : Option (List Image) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeImagesResult where + schema := .struct "DescribeImagesResult" [({ name := "Images", xmlName := some "imagesSet", queryName := some "ImagesSet" }, (.list (Shape.schema Image) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "Images" x.images, putOpt "NextToken" x.nextToken] + ofValue v := do + let images ← v.opt "Images" + let nextToken ← v.opt "NextToken" + return { images, nextToken } + +structure DescribeInstanceStatusResult where + /-- Information about the status of the instances. -/ + instanceStatuses : Option (List InstanceStatus) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceStatusResult where + schema := .struct "DescribeInstanceStatusResult" [({ name := "InstanceStatuses", xmlName := some "instanceStatusSet", queryName := some "InstanceStatusSet" }, (.list (Shape.schema InstanceStatus) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "InstanceStatuses" x.instanceStatuses, putOpt "NextToken" x.nextToken] + ofValue v := do + let instanceStatuses ← v.opt "InstanceStatuses" + let nextToken ← v.opt "NextToken" + return { instanceStatuses, nextToken } + +structure DescribeInstanceTypesResult where + /-- The instance type. -/ + instanceTypes : Option (List InstanceTypeInfo) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstanceTypesResult where + schema := .struct "DescribeInstanceTypesResult" [({ name := "InstanceTypes", xmlName := some "instanceTypeSet", queryName := some "InstanceTypeSet" }, (.list (Shape.schema InstanceTypeInfo) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "InstanceTypes" x.instanceTypes, putOpt "NextToken" x.nextToken] + ofValue v := do + let instanceTypes ← v.opt "InstanceTypes" + let nextToken ← v.opt "NextToken" + return { instanceTypes, nextToken } + +structure DescribeNetworkInterfacesResult where + /-- Information about the network interfaces. -/ + networkInterfaces : Option (List NetworkInterface) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNetworkInterfacesResult where + schema := .struct "DescribeNetworkInterfacesResult" [({ name := "NetworkInterfaces", xmlName := some "networkInterfaceSet", queryName := some "NetworkInterfaceSet" }, (.list (Shape.schema NetworkInterface) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "NetworkInterfaces" x.networkInterfaces, putOpt "NextToken" x.nextToken] + ofValue v := do + let networkInterfaces ← v.opt "NetworkInterfaces" + let nextToken ← v.opt "NextToken" + return { networkInterfaces, nextToken } + +structure DescribeNetworkingFlexCostAllocationPoliciesResult where + /-- Information about the flex cost allocation policies. -/ + flexCostAllocationPolicies : Option (List FlexCostAllocationPolicyDescription) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNetworkingFlexCostAllocationPoliciesResult where + schema := .struct "DescribeNetworkingFlexCostAllocationPoliciesResult" [({ name := "FlexCostAllocationPolicies", xmlName := some "flexCostAllocationPolicies", queryName := some "FlexCostAllocationPolicies" }, (.list (Shape.schema FlexCostAllocationPolicyDescription) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "FlexCostAllocationPolicies" x.flexCostAllocationPolicies, putOpt "NextToken" x.nextToken] + ofValue v := do + let flexCostAllocationPolicies ← v.opt "FlexCostAllocationPolicies" + let nextToken ← v.opt "NextToken" + return { flexCostAllocationPolicies, nextToken } + +/-- Contains the output of DescribeReservedInstancesModifications. -/ +structure DescribeReservedInstancesModificationsResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- The Reserved Instance modification information. -/ + reservedInstancesModifications : Option (List ReservedInstancesModification) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeReservedInstancesModificationsResult where + schema := .struct "DescribeReservedInstancesModificationsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "ReservedInstancesModifications", xmlName := some "reservedInstancesModificationsSet", queryName := some "ReservedInstancesModificationsSet" }, (.list (Shape.schema ReservedInstancesModification) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "ReservedInstancesModifications" x.reservedInstancesModifications] + ofValue v := do + let nextToken ← v.opt "NextToken" + let reservedInstancesModifications ← v.opt "ReservedInstancesModifications" + return { nextToken, reservedInstancesModifications } + +/-- Contains the output of DescribeRouteTables. -/ +structure DescribeRouteTablesResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about the route tables. -/ + routeTables : Option (List RouteTable) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeRouteTablesResult where + schema := .struct "DescribeRouteTablesResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "RouteTables", xmlName := some "routeTableSet", queryName := some "RouteTableSet" }, (.list (Shape.schema RouteTable) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "RouteTables" x.routeTables] + ofValue v := do + let nextToken ← v.opt "NextToken" + let routeTables ← v.opt "RouteTables" + return { nextToken, routeTables } + +structure DescribeSubnetsResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about the subnets. -/ + subnets : Option (List Subnet) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSubnetsResult where + schema := .struct "DescribeSubnetsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "Subnets", xmlName := some "subnetSet", queryName := some "SubnetSet" }, (.list (Shape.schema Subnet) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "Subnets" x.subnets] + ofValue v := do + let nextToken ← v.opt "NextToken" + let subnets ← v.opt "Subnets" + return { nextToken, subnets } + +structure DescribeTransitGatewayConnectPeersResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the Connect peers. -/ + transitGatewayConnectPeers : Option (List TransitGatewayConnectPeer) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewayConnectPeersResult where + schema := .struct "DescribeTransitGatewayConnectPeersResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TransitGatewayConnectPeers", xmlName := some "transitGatewayConnectPeerSet", queryName := some "TransitGatewayConnectPeerSet" }, (.list (Shape.schema TransitGatewayConnectPeer) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TransitGatewayConnectPeers" x.transitGatewayConnectPeers] + ofValue v := do + let nextToken ← v.opt "NextToken" + let transitGatewayConnectPeers ← v.opt "TransitGatewayConnectPeers" + return { nextToken, transitGatewayConnectPeers } + +structure DescribeTransitGatewaysResult where + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none + /-- Information about the transit gateways. -/ + transitGateways : Option (List TransitGateway) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeTransitGatewaysResult where + schema := .struct "DescribeTransitGatewaysResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "TransitGateways", xmlName := some "transitGatewaySet", queryName := some "TransitGatewaySet" }, (.list (Shape.schema TransitGateway) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "TransitGateways" x.transitGateways] + ofValue v := do + let nextToken ← v.opt "NextToken" + let transitGateways ← v.opt "TransitGateways" + return { nextToken, transitGateways } + +structure DescribeVolumeStatusResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about the status of the volumes. -/ + volumeStatuses : Option (List VolumeStatusItem) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVolumeStatusResult where + schema := .struct "DescribeVolumeStatusResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "VolumeStatuses", xmlName := some "volumeStatusSet", queryName := some "VolumeStatusSet" }, (.list (Shape.schema VolumeStatusItem) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "VolumeStatuses" x.volumeStatuses] + ofValue v := do + let nextToken ← v.opt "NextToken" + let volumeStatuses ← v.opt "VolumeStatuses" + return { nextToken, volumeStatuses } + +structure DescribeVpcEncryptionControlsResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about the VPC Encryption Control configurations. -/ + vpcEncryptionControls : Option (List VpcEncryptionControl) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcEncryptionControlsResult where + schema := .struct "DescribeVpcEncryptionControlsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "VpcEncryptionControls", xmlName := some "vpcEncryptionControlSet", queryName := some "VpcEncryptionControlSet" }, (.list (Shape.schema VpcEncryptionControl) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "VpcEncryptionControls" x.vpcEncryptionControls] + ofValue v := do + let nextToken ← v.opt "NextToken" + let vpcEncryptionControls ← v.opt "VpcEncryptionControls" + return { nextToken, vpcEncryptionControls } + +structure DescribeVpcPeeringConnectionsResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about the VPC peering connections. -/ + vpcPeeringConnections : Option (List VpcPeeringConnection) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcPeeringConnectionsResult where + schema := .struct "DescribeVpcPeeringConnectionsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "VpcPeeringConnections", xmlName := some "vpcPeeringConnectionSet", queryName := some "VpcPeeringConnectionSet" }, (.list (Shape.schema VpcPeeringConnection) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "VpcPeeringConnections" x.vpcPeeringConnections] + ofValue v := do + let nextToken ← v.opt "NextToken" + let vpcPeeringConnections ← v.opt "VpcPeeringConnections" + return { nextToken, vpcPeeringConnections } + +/-- Describes overrides for a launch template. -/ +structure FleetLaunchTemplateOverrides where + /-- The Availability Zone in which to launch the instances. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone in which to launch the instances. -/ + availabilityZoneId : Option String := none + /-- The block device mappings, which define the EBS volumes and instance store volumes to attach to the instance at launch. -/ + blockDeviceMappings : Option (List BlockDeviceMappingResponse) := none + /-- The ID of the AMI in the format ami-17characters00000 . -/ + imageId : Option String := none + /-- The attributes for the instance types. -/ + instanceRequirements : Option InstanceRequirements := none + /-- The instance type. -/ + instanceType : Option InstanceType := none + /-- The maximum price per unit hour that you are willing to pay for a Spot Instance. -/ + maxPrice : Option String := none + /-- The location where the instance launched, if applicable. -/ + placement : Option PlacementResponse := none + /-- The priority for the launch template override. -/ + priority : Option JsonNumber := none + /-- The ID of the subnet in which to launch the instances. -/ + subnetId : Option String := none + /-- The number of units provided by the specified instance type. -/ + weightedCapacity : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FleetLaunchTemplateOverrides where + schema := .struct "FleetLaunchTemplateOverrides" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "BlockDeviceMappings", xmlName := some "blockDeviceMappingSet", queryName := some "BlockDeviceMappingSet" }, (.list (Shape.schema BlockDeviceMappingResponse) "item")), + ({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "InstanceRequirements", xmlName := some "instanceRequirements", queryName := some "InstanceRequirements" }, (Shape.schema InstanceRequirements)), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "MaxPrice", xmlName := some "maxPrice", queryName := some "MaxPrice" }, .string), + ({ name := "Placement", xmlName := some "placement", queryName := some "Placement" }, (Shape.schema PlacementResponse)), + ({ name := "Priority", xmlName := some "priority", queryName := some "Priority" }, .number), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "WeightedCapacity", xmlName := some "weightedCapacity", queryName := some "WeightedCapacity" }, .number)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "BlockDeviceMappings" x.blockDeviceMappings, putOpt "ImageId" x.imageId, putOpt "InstanceRequirements" x.instanceRequirements, putOpt "InstanceType" x.instanceType, putOpt "MaxPrice" x.maxPrice, putOpt "Placement" x.placement, putOpt "Priority" x.priority, putOpt "SubnetId" x.subnetId, putOpt "WeightedCapacity" x.weightedCapacity] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let blockDeviceMappings ← v.opt "BlockDeviceMappings" + let imageId ← v.opt "ImageId" + let instanceRequirements ← v.opt "InstanceRequirements" + let instanceType ← v.opt "InstanceType" + let maxPrice ← v.opt "MaxPrice" + let placement ← v.opt "Placement" + let priority ← v.opt "Priority" + let subnetId ← v.opt "SubnetId" + let weightedCapacity ← v.opt "WeightedCapacity" + return { availabilityZone, availabilityZoneId, blockDeviceMappings, imageId, instanceRequirements, instanceType, maxPrice, placement, priority, subnetId, weightedCapacity } + +/-- Describes overrides for a launch template. -/ +structure FleetLaunchTemplateOverridesRequest where + /-- The Availability Zone in which to launch the instances. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone in which to launch the instances. -/ + availabilityZoneId : Option String := none + /-- The block device mappings, which define the EBS volumes and instance store volumes to attach to the instance at launch. -/ + blockDeviceMappings : Option (List FleetBlockDeviceMappingRequest) := none + /-- The IAM instance profile to associate with the instances. -/ + iamInstanceProfile : Option FleetIamInstanceProfileSpecificationRequest := none + /-- The ID of the AMI in the format ami-17characters00000 . -/ + imageId : Option String := none + /-- The attributes for the instance types. -/ + instanceRequirements : Option InstanceRequirementsRequest := none + /-- The instance type. -/ + instanceType : Option InstanceType := none + /-- The name of the key pair to use for the instances. -/ + keyName : Option String := none + /-- The maximum price per unit hour that you are willing to pay for a Spot Instance. -/ + maxPrice : Option String := none + /-- The metadata options for the instances. -/ + metadataOptions : Option FleetInstanceMetadataOptionsRequest := none + /-- The location where the instance launched, if applicable. -/ + placement : Option Placement := none + /-- The priority for the launch template override. -/ + priority : Option JsonNumber := none + /-- The IDs of the subnets in which to launch the instances. -/ + subnetId : Option String := none + /-- The number of units provided by the specified instance type. -/ + weightedCapacity : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FleetLaunchTemplateOverridesRequest where + schema := .struct "FleetLaunchTemplateOverridesRequest" [({ name := "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId" }, .string), + ({ name := "BlockDeviceMappings", xmlName := some "BlockDeviceMapping" }, (.list (Shape.schema FleetBlockDeviceMappingRequest) "BlockDeviceMapping")), + ({ name := "IamInstanceProfile" }, (Shape.schema FleetIamInstanceProfileSpecificationRequest)), + ({ name := "ImageId" }, .string), + ({ name := "InstanceRequirements" }, (Shape.schema InstanceRequirementsRequest)), + ({ name := "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "KeyName" }, .string), + ({ name := "MaxPrice" }, .string), + ({ name := "MetadataOptions" }, (Shape.schema FleetInstanceMetadataOptionsRequest)), + ({ name := "Placement" }, (Shape.schema Placement)), + ({ name := "Priority" }, .number), + ({ name := "SubnetId" }, .string), + ({ name := "WeightedCapacity" }, .number)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "BlockDeviceMappings" x.blockDeviceMappings, putOpt "IamInstanceProfile" x.iamInstanceProfile, putOpt "ImageId" x.imageId, putOpt "InstanceRequirements" x.instanceRequirements, putOpt "InstanceType" x.instanceType, putOpt "KeyName" x.keyName, putOpt "MaxPrice" x.maxPrice, putOpt "MetadataOptions" x.metadataOptions, putOpt "Placement" x.placement, putOpt "Priority" x.priority, putOpt "SubnetId" x.subnetId, putOpt "WeightedCapacity" x.weightedCapacity] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let blockDeviceMappings ← v.opt "BlockDeviceMappings" + let iamInstanceProfile ← v.opt "IamInstanceProfile" + let imageId ← v.opt "ImageId" + let instanceRequirements ← v.opt "InstanceRequirements" + let instanceType ← v.opt "InstanceType" + let keyName ← v.opt "KeyName" + let maxPrice ← v.opt "MaxPrice" + let metadataOptions ← v.opt "MetadataOptions" + let placement ← v.opt "Placement" + let priority ← v.opt "Priority" + let subnetId ← v.opt "SubnetId" + let weightedCapacity ← v.opt "WeightedCapacity" + return { availabilityZone, availabilityZoneId, blockDeviceMappings, iamInstanceProfile, imageId, instanceRequirements, instanceType, keyName, maxPrice, metadataOptions, placement, priority, subnetId, weightedCapacity } + +structure GetInstanceTypesFromInstanceRequirementsRequest where + /-- The processor architecture type. -/ + architectureTypes : (List ArchitectureType) + /-- Reserved. -/ + context : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The attributes required for the instance types. -/ + instanceRequirements : InstanceRequirementsRequest + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The virtualization type. -/ + virtualizationTypes : (List VirtualizationType) +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetInstanceTypesFromInstanceRequirementsRequest where + schema := .struct "GetInstanceTypesFromInstanceRequirementsRequest" [({ name := "ArchitectureTypes", required := true, xmlName := some "ArchitectureType" }, (.list (Shape.schema ArchitectureType) "item")), + ({ name := "Context" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceRequirements", required := true }, (Shape.schema InstanceRequirementsRequest)), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "VirtualizationTypes", required := true, xmlName := some "VirtualizationType" }, (.list (Shape.schema VirtualizationType) "item"))] + toValue x := record [put "ArchitectureTypes" x.architectureTypes, putOpt "Context" x.context, putOpt "DryRun" x.dryRun, put "InstanceRequirements" x.instanceRequirements, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "VirtualizationTypes" x.virtualizationTypes] + ofValue v := do + let architectureTypes ← v.req "ArchitectureTypes" + let context ← v.opt "Context" + let dryRun ← v.opt "DryRun" + let instanceRequirements ← v.req "InstanceRequirements" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let virtualizationTypes ← v.req "VirtualizationTypes" + return { architectureTypes, context, dryRun, instanceRequirements, maxResults, nextToken, virtualizationTypes } + +structure GetNetworkingFlexCostAllocationPolicyVersionsResult where + /-- Information about the policy versions. -/ + fcaPolicyVersions : Option (List FlexCostAllocationPolicyVersion) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetNetworkingFlexCostAllocationPolicyVersionsResult where + schema := .struct "GetNetworkingFlexCostAllocationPolicyVersionsResult" [({ name := "FcaPolicyVersions", xmlName := some "fcaPolicyVersions", queryName := some "FcaPolicyVersions" }, (.list (Shape.schema FlexCostAllocationPolicyVersion) "item"))] + toValue x := record [putOpt "FcaPolicyVersions" x.fcaPolicyVersions] + ofValue v := do + let fcaPolicyVersions ← v.opt "FcaPolicyVersions" + return { fcaPolicyVersions } + +/-- Describes an instance. -/ +structure Instance where + /-- The AMI launch index, which can be used to find this instance in the launch group. -/ + amiLaunchIndex : Option Int := none + /-- The architecture of the image. -/ + architecture : Option ArchitectureValues := none + /-- Any block device mapping entries for the instance. -/ + blockDeviceMappings : Option (List InstanceBlockDeviceMapping) := none + /-- The boot mode that was specified by the AMI. -/ + bootMode : Option BootModeValues := none + /-- The ID of the Capacity Block. -/ + capacityBlockId : Option String := none + /-- The ID of the Capacity Reservation. -/ + capacityReservationId : Option String := none + /-- Information about the Capacity Reservation targeting option. -/ + capacityReservationSpecification : Option CapacityReservationSpecificationResponse := none + /-- The idempotency token you provided when you launched the instance, if applicable. -/ + clientToken : Option String := none + /-- The CPU options for the instance. -/ + cpuOptions : Option CpuOptions := none + /-- The boot mode that is used to boot the instance at launch or start. -/ + currentInstanceBootMode : Option InstanceBootModeValues := none + /-- Indicates whether the instance is optimized for Amazon EBS I/O. -/ + ebsOptimized : Option Bool := none + /-- Deprecated. -/ + elasticGpuAssociations : Option (List ElasticGpuAssociation) := none + /-- Deprecated Amazon Elastic Inference is no longer available. -/ + elasticInferenceAcceleratorAssociations : Option (List ElasticInferenceAcceleratorAssociation) := none + /-- Specifies whether enhanced networking with ENA is enabled. -/ + enaSupport : Option Bool := none + /-- Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. -/ + enclaveOptions : Option EnclaveOptions := none + /-- Indicates whether the instance is enabled for hibernation. -/ + hibernationOptions : Option HibernationOptions := none + /-- The hypervisor type of the instance. -/ + hypervisor : Option HypervisorType := none + /-- The IAM instance profile associated with the instance, if applicable. -/ + iamInstanceProfile : Option IamInstanceProfile := none + /-- The ID of the AMI used to launch the instance. -/ + imageId : Option String := none + /-- The ID of the instance. -/ + instanceId : Option String := none + /-- Indicates whether this is a Spot Instance or a Scheduled Instance. -/ + instanceLifecycle : Option InstanceLifecycleType := none + /-- The instance type. -/ + instanceType : Option InstanceType := none + /-- The IPv6 address assigned to the instance. -/ + ipv6Address : Option String := none + /-- The kernel associated with this instance, if applicable. -/ + kernelId : Option String := none + /-- The name of the key pair, if this instance was launched with an associated key pair. -/ + keyName : Option String := none + /-- The time that the instance was last launched. -/ + launchTime : Option Timestamp := none + /-- The license configurations for the instance. -/ + licenses : Option (List LicenseConfiguration) := none + /-- Provides information on the recovery and maintenance options of your instance. -/ + maintenanceOptions : Option InstanceMaintenanceOptions := none + /-- The metadata options for the instance. -/ + metadataOptions : Option InstanceMetadataOptionsResponse := none + /-- The monitoring for the instance. -/ + monitoring : Option Monitoring := none + /-- The network interfaces for the instance. -/ + networkInterfaces : Option (List InstanceNetworkInterface) := none + /-- Contains settings for the network performance options for your instance. -/ + networkPerformanceOptions : Option InstanceNetworkPerformanceOptions := none + /-- The service provider that manages the instance. -/ + operator : Option OperatorResponse := none + /-- The Amazon Resource Name (ARN) of the Outpost. -/ + outpostArn : Option String := none + /-- The location where the instance launched, if applicable. -/ + placement : Option Placement := none + /-- The platform. -/ + platform : Option PlatformValues := none + /-- The platform details value for the instance. -/ + platformDetails : Option String := none + /-- [IPv4 only] The private DNS hostname name assigned to the instance. -/ + privateDnsName : Option String := none + /-- The options for the instance hostname. -/ + privateDnsNameOptions : Option PrivateDnsNameOptionsResponse := none + /-- The private IPv4 address assigned to the instance. -/ + privateIpAddress : Option String := none + /-- The product codes attached to this instance, if applicable. -/ + productCodes : Option (List ProductCode) := none + /-- The public DNS name assigned to the instance. -/ + publicDnsName : Option String := none + /-- The public IPv4 address, or the Carrier IP address assigned to the instance, if applicable. -/ + publicIpAddress : Option String := none + /-- The RAM disk associated with this instance, if applicable. -/ + ramdiskId : Option String := none + /-- The device name of the root device volume (for example, /dev/sda1 ). -/ + rootDeviceName : Option String := none + /-- The root device type used by the AMI. -/ + rootDeviceType : Option DeviceType := none + /-- The secondary interfaces for the instance. -/ + secondaryInterfaces : Option (List InstanceSecondaryInterface) := none + /-- The security groups for the instance. -/ + securityGroups : Option (List GroupIdentifier) := none + /-- Indicates whether source/destination checking is enabled. -/ + sourceDestCheck : Option Bool := none + /-- If the request is a Spot Instance request, the ID of the request. -/ + spotInstanceRequestId : Option String := none + /-- Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled. -/ + sriovNetSupport : Option String := none + /-- The current state of the instance. -/ + state : Option InstanceState := none + /-- The reason for the most recent state transition. -/ + stateReason : Option StateReason := none + /-- The reason for the most recent state transition. -/ + stateTransitionReason : Option String := none + /-- The ID of the subnet in which the instance is running. -/ + subnetId : Option String := none + /-- Any tags assigned to the instance. -/ + tags : Option (List Tag) := none + /-- If the instance is configured for NitroTPM support, the value is v2.0 . -/ + tpmSupport : Option String := none + /-- The usage operation value for the instance. -/ + usageOperation : Option String := none + /-- The time that the usage operation was last updated. -/ + usageOperationUpdateTime : Option Timestamp := none + /-- The virtualization type of the instance. -/ + virtualizationType : Option VirtualizationType := none + /-- The ID of the VPC in which the instance is running. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Instance where + schema := .struct "Instance" [({ name := "AmiLaunchIndex", xmlName := some "amiLaunchIndex", queryName := some "AmiLaunchIndex" }, .int), + ({ name := "Architecture", xmlName := some "architecture", queryName := some "Architecture" }, (Shape.schema ArchitectureValues)), + ({ name := "BlockDeviceMappings", xmlName := some "blockDeviceMapping", queryName := some "BlockDeviceMapping" }, (.list (Shape.schema InstanceBlockDeviceMapping) "item")), + ({ name := "BootMode", xmlName := some "bootMode", queryName := some "BootMode" }, (Shape.schema BootModeValues)), + ({ name := "CapacityBlockId", xmlName := some "capacityBlockId", queryName := some "CapacityBlockId" }, .string), + ({ name := "CapacityReservationId", xmlName := some "capacityReservationId", queryName := some "CapacityReservationId" }, .string), + ({ name := "CapacityReservationSpecification", xmlName := some "capacityReservationSpecification", queryName := some "CapacityReservationSpecification" }, (Shape.schema CapacityReservationSpecificationResponse)), + ({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "CpuOptions", xmlName := some "cpuOptions", queryName := some "CpuOptions" }, (Shape.schema CpuOptions)), + ({ name := "CurrentInstanceBootMode", xmlName := some "currentInstanceBootMode", queryName := some "CurrentInstanceBootMode" }, (Shape.schema InstanceBootModeValues)), + ({ name := "EbsOptimized", xmlName := some "ebsOptimized", queryName := some "EbsOptimized" }, .bool), + ({ name := "ElasticGpuAssociations", xmlName := some "elasticGpuAssociationSet", queryName := some "ElasticGpuAssociationSet" }, (.list (Shape.schema ElasticGpuAssociation) "item")), + ({ name := "ElasticInferenceAcceleratorAssociations", xmlName := some "elasticInferenceAcceleratorAssociationSet", queryName := some "ElasticInferenceAcceleratorAssociationSet" }, (.list (Shape.schema ElasticInferenceAcceleratorAssociation) "item")), + ({ name := "EnaSupport", xmlName := some "enaSupport", queryName := some "EnaSupport" }, .bool), + ({ name := "EnclaveOptions", xmlName := some "enclaveOptions", queryName := some "EnclaveOptions" }, (Shape.schema EnclaveOptions)), + ({ name := "HibernationOptions", xmlName := some "hibernationOptions", queryName := some "HibernationOptions" }, (Shape.schema HibernationOptions)), + ({ name := "Hypervisor", xmlName := some "hypervisor", queryName := some "Hypervisor" }, (Shape.schema HypervisorType)), + ({ name := "IamInstanceProfile", xmlName := some "iamInstanceProfile", queryName := some "IamInstanceProfile" }, (Shape.schema IamInstanceProfile)), + ({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "InstanceLifecycle", xmlName := some "instanceLifecycle", queryName := some "InstanceLifecycle" }, (Shape.schema InstanceLifecycleType)), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "Ipv6Address", xmlName := some "ipv6Address", queryName := some "Ipv6Address" }, .string), + ({ name := "KernelId", xmlName := some "kernelId", queryName := some "KernelId" }, .string), + ({ name := "KeyName", xmlName := some "keyName", queryName := some "KeyName" }, .string), + ({ name := "LaunchTime", xmlName := some "launchTime", queryName := some "LaunchTime" }, (.time none)), + ({ name := "Licenses", xmlName := some "licenseSet", queryName := some "LicenseSet" }, (.list (Shape.schema LicenseConfiguration) "item")), + ({ name := "MaintenanceOptions", xmlName := some "maintenanceOptions", queryName := some "MaintenanceOptions" }, (Shape.schema InstanceMaintenanceOptions)), + ({ name := "MetadataOptions", xmlName := some "metadataOptions", queryName := some "MetadataOptions" }, (Shape.schema InstanceMetadataOptionsResponse)), + ({ name := "Monitoring", xmlName := some "monitoring", queryName := some "Monitoring" }, (Shape.schema Monitoring)), + ({ name := "NetworkInterfaces", xmlName := some "networkInterfaceSet", queryName := some "NetworkInterfaceSet" }, (.list (Shape.schema InstanceNetworkInterface) "item")), + ({ name := "NetworkPerformanceOptions", xmlName := some "networkPerformanceOptions", queryName := some "NetworkPerformanceOptions" }, (Shape.schema InstanceNetworkPerformanceOptions)), + ({ name := "Operator", xmlName := some "operator", queryName := some "Operator" }, (Shape.schema OperatorResponse)), + ({ name := "OutpostArn", xmlName := some "outpostArn", queryName := some "OutpostArn" }, .string), + ({ name := "Placement", xmlName := some "placement", queryName := some "Placement" }, (Shape.schema Placement)), + ({ name := "Platform", xmlName := some "platform", queryName := some "Platform" }, (Shape.schema PlatformValues)), + ({ name := "PlatformDetails", xmlName := some "platformDetails", queryName := some "PlatformDetails" }, .string), + ({ name := "PrivateDnsName", xmlName := some "privateDnsName", queryName := some "PrivateDnsName" }, .string), + ({ name := "PrivateDnsNameOptions", xmlName := some "privateDnsNameOptions", queryName := some "PrivateDnsNameOptions" }, (Shape.schema PrivateDnsNameOptionsResponse)), + ({ name := "PrivateIpAddress", xmlName := some "privateIpAddress", queryName := some "PrivateIpAddress" }, .string), + ({ name := "ProductCodes", xmlName := some "productCodes", queryName := some "ProductCodes" }, (.list (Shape.schema ProductCode) "item")), + ({ name := "PublicDnsName", xmlName := some "dnsName", queryName := some "DnsName" }, .string), + ({ name := "PublicIpAddress", xmlName := some "ipAddress", queryName := some "IpAddress" }, .string), + ({ name := "RamdiskId", xmlName := some "ramdiskId", queryName := some "RamdiskId" }, .string), + ({ name := "RootDeviceName", xmlName := some "rootDeviceName", queryName := some "RootDeviceName" }, .string), + ({ name := "RootDeviceType", xmlName := some "rootDeviceType", queryName := some "RootDeviceType" }, (Shape.schema DeviceType)), + ({ name := "SecondaryInterfaces", xmlName := some "secondaryInterfaceSet", queryName := some "SecondaryInterfaceSet" }, (.list (Shape.schema InstanceSecondaryInterface) "item")), + ({ name := "SecurityGroups", xmlName := some "groupSet", queryName := some "GroupSet" }, (.list (Shape.schema GroupIdentifier) "item")), + ({ name := "SourceDestCheck", xmlName := some "sourceDestCheck", queryName := some "SourceDestCheck" }, .bool), + ({ name := "SpotInstanceRequestId", xmlName := some "spotInstanceRequestId", queryName := some "SpotInstanceRequestId" }, .string), + ({ name := "SriovNetSupport", xmlName := some "sriovNetSupport", queryName := some "SriovNetSupport" }, .string), + ({ name := "State", xmlName := some "instanceState", queryName := some "InstanceState" }, (Shape.schema InstanceState)), + ({ name := "StateReason", xmlName := some "stateReason", queryName := some "StateReason" }, (Shape.schema StateReason)), + ({ name := "StateTransitionReason", xmlName := some "reason", queryName := some "Reason" }, .string), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TpmSupport", xmlName := some "tpmSupport", queryName := some "TpmSupport" }, .string), + ({ name := "UsageOperation", xmlName := some "usageOperation", queryName := some "UsageOperation" }, .string), + ({ name := "UsageOperationUpdateTime", xmlName := some "usageOperationUpdateTime", queryName := some "UsageOperationUpdateTime" }, (.time none)), + ({ name := "VirtualizationType", xmlName := some "virtualizationType", queryName := some "VirtualizationType" }, (Shape.schema VirtualizationType)), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "AmiLaunchIndex" x.amiLaunchIndex, putOpt "Architecture" x.architecture, putOpt "BlockDeviceMappings" x.blockDeviceMappings, putOpt "BootMode" x.bootMode, putOpt "CapacityBlockId" x.capacityBlockId, putOpt "CapacityReservationId" x.capacityReservationId, putOpt "CapacityReservationSpecification" x.capacityReservationSpecification, putOpt "ClientToken" x.clientToken, putOpt "CpuOptions" x.cpuOptions, putOpt "CurrentInstanceBootMode" x.currentInstanceBootMode, putOpt "EbsOptimized" x.ebsOptimized, putOpt "ElasticGpuAssociations" x.elasticGpuAssociations, putOpt "ElasticInferenceAcceleratorAssociations" x.elasticInferenceAcceleratorAssociations, putOpt "EnaSupport" x.enaSupport, putOpt "EnclaveOptions" x.enclaveOptions, putOpt "HibernationOptions" x.hibernationOptions, putOpt "Hypervisor" x.hypervisor, putOpt "IamInstanceProfile" x.iamInstanceProfile, putOpt "ImageId" x.imageId, putOpt "InstanceId" x.instanceId, putOpt "InstanceLifecycle" x.instanceLifecycle, putOpt "InstanceType" x.instanceType, putOpt "Ipv6Address" x.ipv6Address, putOpt "KernelId" x.kernelId, putOpt "KeyName" x.keyName, putOpt "LaunchTime" x.launchTime, putOpt "Licenses" x.licenses, putOpt "MaintenanceOptions" x.maintenanceOptions, putOpt "MetadataOptions" x.metadataOptions, putOpt "Monitoring" x.monitoring, putOpt "NetworkInterfaces" x.networkInterfaces, putOpt "NetworkPerformanceOptions" x.networkPerformanceOptions, putOpt "Operator" x.operator, putOpt "OutpostArn" x.outpostArn, putOpt "Placement" x.placement, putOpt "Platform" x.platform, putOpt "PlatformDetails" x.platformDetails, putOpt "PrivateDnsName" x.privateDnsName, putOpt "PrivateDnsNameOptions" x.privateDnsNameOptions, putOpt "PrivateIpAddress" x.privateIpAddress, putOpt "ProductCodes" x.productCodes, putOpt "PublicDnsName" x.publicDnsName, putOpt "PublicIpAddress" x.publicIpAddress, putOpt "RamdiskId" x.ramdiskId, putOpt "RootDeviceName" x.rootDeviceName, putOpt "RootDeviceType" x.rootDeviceType, putOpt "SecondaryInterfaces" x.secondaryInterfaces, putOpt "SecurityGroups" x.securityGroups, putOpt "SourceDestCheck" x.sourceDestCheck, putOpt "SpotInstanceRequestId" x.spotInstanceRequestId, putOpt "SriovNetSupport" x.sriovNetSupport, putOpt "State" x.state, putOpt "StateReason" x.stateReason, putOpt "StateTransitionReason" x.stateTransitionReason, putOpt "SubnetId" x.subnetId, putOpt "Tags" x.tags, putOpt "TpmSupport" x.tpmSupport, putOpt "UsageOperation" x.usageOperation, putOpt "UsageOperationUpdateTime" x.usageOperationUpdateTime, putOpt "VirtualizationType" x.virtualizationType, putOpt "VpcId" x.vpcId] + ofValue v := do + let amiLaunchIndex ← v.opt "AmiLaunchIndex" + let architecture ← v.opt "Architecture" + let blockDeviceMappings ← v.opt "BlockDeviceMappings" + let bootMode ← v.opt "BootMode" + let capacityBlockId ← v.opt "CapacityBlockId" + let capacityReservationId ← v.opt "CapacityReservationId" + let capacityReservationSpecification ← v.opt "CapacityReservationSpecification" + let clientToken ← v.opt "ClientToken" + let cpuOptions ← v.opt "CpuOptions" + let currentInstanceBootMode ← v.opt "CurrentInstanceBootMode" + let ebsOptimized ← v.opt "EbsOptimized" + let elasticGpuAssociations ← v.opt "ElasticGpuAssociations" + let elasticInferenceAcceleratorAssociations ← v.opt "ElasticInferenceAcceleratorAssociations" + let enaSupport ← v.opt "EnaSupport" + let enclaveOptions ← v.opt "EnclaveOptions" + let hibernationOptions ← v.opt "HibernationOptions" + let hypervisor ← v.opt "Hypervisor" + let iamInstanceProfile ← v.opt "IamInstanceProfile" + let imageId ← v.opt "ImageId" + let instanceId ← v.opt "InstanceId" + let instanceLifecycle ← v.opt "InstanceLifecycle" + let instanceType ← v.opt "InstanceType" + let ipv6Address ← v.opt "Ipv6Address" + let kernelId ← v.opt "KernelId" + let keyName ← v.opt "KeyName" + let launchTime ← v.opt "LaunchTime" + let licenses ← v.opt "Licenses" + let maintenanceOptions ← v.opt "MaintenanceOptions" + let metadataOptions ← v.opt "MetadataOptions" + let monitoring ← v.opt "Monitoring" + let networkInterfaces ← v.opt "NetworkInterfaces" + let networkPerformanceOptions ← v.opt "NetworkPerformanceOptions" + let operator ← v.opt "Operator" + let outpostArn ← v.opt "OutpostArn" + let placement ← v.opt "Placement" + let platform ← v.opt "Platform" + let platformDetails ← v.opt "PlatformDetails" + let privateDnsName ← v.opt "PrivateDnsName" + let privateDnsNameOptions ← v.opt "PrivateDnsNameOptions" + let privateIpAddress ← v.opt "PrivateIpAddress" + let productCodes ← v.opt "ProductCodes" + let publicDnsName ← v.opt "PublicDnsName" + let publicIpAddress ← v.opt "PublicIpAddress" + let ramdiskId ← v.opt "RamdiskId" + let rootDeviceName ← v.opt "RootDeviceName" + let rootDeviceType ← v.opt "RootDeviceType" + let secondaryInterfaces ← v.opt "SecondaryInterfaces" + let securityGroups ← v.opt "SecurityGroups" + let sourceDestCheck ← v.opt "SourceDestCheck" + let spotInstanceRequestId ← v.opt "SpotInstanceRequestId" + let sriovNetSupport ← v.opt "SriovNetSupport" + let state ← v.opt "State" + let stateReason ← v.opt "StateReason" + let stateTransitionReason ← v.opt "StateTransitionReason" + let subnetId ← v.opt "SubnetId" + let tags ← v.opt "Tags" + let tpmSupport ← v.opt "TpmSupport" + let usageOperation ← v.opt "UsageOperation" + let usageOperationUpdateTime ← v.opt "UsageOperationUpdateTime" + let virtualizationType ← v.opt "VirtualizationType" + let vpcId ← v.opt "VpcId" + return { amiLaunchIndex, architecture, blockDeviceMappings, bootMode, capacityBlockId, capacityReservationId, capacityReservationSpecification, clientToken, cpuOptions, currentInstanceBootMode, ebsOptimized, elasticGpuAssociations, elasticInferenceAcceleratorAssociations, enaSupport, enclaveOptions, hibernationOptions, hypervisor, iamInstanceProfile, imageId, instanceId, instanceLifecycle, instanceType, ipv6Address, kernelId, keyName, launchTime, licenses, maintenanceOptions, metadataOptions, monitoring, networkInterfaces, networkPerformanceOptions, operator, outpostArn, placement, platform, platformDetails, privateDnsName, privateDnsNameOptions, privateIpAddress, productCodes, publicDnsName, publicIpAddress, ramdiskId, rootDeviceName, rootDeviceType, secondaryInterfaces, securityGroups, sourceDestCheck, spotInstanceRequestId, sriovNetSupport, state, stateReason, stateTransitionReason, subnetId, tags, tpmSupport, usageOperation, usageOperationUpdateTime, virtualizationType, vpcId } + +/-- The architecture type, virtualization type, and other attributes for the instance types. -/ +structure InstanceRequirementsWithMetadataRequest where + /-- The architecture type. -/ + architectureTypes : Option (List ArchitectureType) := none + /-- The attributes for the instance types. -/ + instanceRequirements : Option InstanceRequirementsRequest := none + /-- The virtualization type. -/ + virtualizationTypes : Option (List VirtualizationType) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceRequirementsWithMetadataRequest where + schema := .struct "InstanceRequirementsWithMetadataRequest" [({ name := "ArchitectureTypes", xmlName := some "ArchitectureType" }, (.list (Shape.schema ArchitectureType) "item")), + ({ name := "InstanceRequirements" }, (Shape.schema InstanceRequirementsRequest)), + ({ name := "VirtualizationTypes", xmlName := some "VirtualizationType" }, (.list (Shape.schema VirtualizationType) "item"))] + toValue x := record [putOpt "ArchitectureTypes" x.architectureTypes, putOpt "InstanceRequirements" x.instanceRequirements, putOpt "VirtualizationTypes" x.virtualizationTypes] + ofValue v := do + let architectureTypes ← v.opt "ArchitectureTypes" + let instanceRequirements ← v.opt "InstanceRequirements" + let virtualizationTypes ← v.opt "VirtualizationTypes" + return { architectureTypes, instanceRequirements, virtualizationTypes } + +/-- Describes overrides for a launch template. -/ +structure LaunchTemplateOverrides where + /-- The Availability Zone in which to launch the instances. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone in which to launch the instances. -/ + availabilityZoneId : Option String := none + /-- The instance requirements. -/ + instanceRequirements : Option InstanceRequirements := none + /-- The instance type. -/ + instanceType : Option InstanceType := none + /-- The priority for the launch template override. -/ + priority : Option JsonNumber := none + /-- The maximum price per unit hour that you are willing to pay for a Spot Instance. -/ + spotPrice : Option String := none + /-- The ID of the subnet in which to launch the instances. -/ + subnetId : Option String := none + /-- The number of units provided by the specified instance type. -/ + weightedCapacity : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateOverrides where + schema := .struct "LaunchTemplateOverrides" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "InstanceRequirements", xmlName := some "instanceRequirements", queryName := some "InstanceRequirements" }, (Shape.schema InstanceRequirements)), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "Priority", xmlName := some "priority", queryName := some "Priority" }, .number), + ({ name := "SpotPrice", xmlName := some "spotPrice", queryName := some "SpotPrice" }, .string), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "WeightedCapacity", xmlName := some "weightedCapacity", queryName := some "WeightedCapacity" }, .number)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "InstanceRequirements" x.instanceRequirements, putOpt "InstanceType" x.instanceType, putOpt "Priority" x.priority, putOpt "SpotPrice" x.spotPrice, putOpt "SubnetId" x.subnetId, putOpt "WeightedCapacity" x.weightedCapacity] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let instanceRequirements ← v.opt "InstanceRequirements" + let instanceType ← v.opt "InstanceType" + let priority ← v.opt "Priority" + let spotPrice ← v.opt "SpotPrice" + let subnetId ← v.opt "SubnetId" + let weightedCapacity ← v.opt "WeightedCapacity" + return { availabilityZone, availabilityZoneId, instanceRequirements, instanceType, priority, spotPrice, subnetId, weightedCapacity } + +structure ModifyTransitGatewayResult where + /-- Information about the transit gateway. -/ + transitGateway : Option TransitGateway := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyTransitGatewayResult where + schema := .struct "ModifyTransitGatewayResult" [({ name := "TransitGateway", xmlName := some "transitGateway", queryName := some "TransitGateway" }, (Shape.schema TransitGateway))] + toValue x := record [putOpt "TransitGateway" x.transitGateway] + ofValue v := do + let transitGateway ← v.opt "TransitGateway" + return { transitGateway } + +structure ModifyVpcEncryptionControlResult where + /-- Information about the VPC Encryption Control configuration. -/ + vpcEncryptionControl : Option VpcEncryptionControl := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpcEncryptionControlResult where + schema := .struct "ModifyVpcEncryptionControlResult" [({ name := "VpcEncryptionControl", xmlName := some "vpcEncryptionControl", queryName := some "VpcEncryptionControl" }, (Shape.schema VpcEncryptionControl))] + toValue x := record [putOpt "VpcEncryptionControl" x.vpcEncryptionControl] + ofValue v := do + let vpcEncryptionControl ← v.opt "VpcEncryptionControl" + return { vpcEncryptionControl } + +/-- Describes the Network Access Scope content. -/ +structure NetworkInsightsAccessScopeContent where + /-- The paths to exclude. -/ + excludePaths : Option (List AccessScopePath) := none + /-- The paths to match. -/ + matchPaths : Option (List AccessScopePath) := none + /-- The ID of the Network Access Scope. -/ + networkInsightsAccessScopeId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkInsightsAccessScopeContent where + schema := .struct "NetworkInsightsAccessScopeContent" [({ name := "ExcludePaths", xmlName := some "excludePathSet", queryName := some "ExcludePathSet" }, (.list (Shape.schema AccessScopePath) "item")), + ({ name := "MatchPaths", xmlName := some "matchPathSet", queryName := some "MatchPathSet" }, (.list (Shape.schema AccessScopePath) "item")), + ({ name := "NetworkInsightsAccessScopeId", xmlName := some "networkInsightsAccessScopeId", queryName := some "NetworkInsightsAccessScopeId" }, .string)] + toValue x := record [putOpt "ExcludePaths" x.excludePaths, putOpt "MatchPaths" x.matchPaths, putOpt "NetworkInsightsAccessScopeId" x.networkInsightsAccessScopeId] + ofValue v := do + let excludePaths ← v.opt "ExcludePaths" + let matchPaths ← v.opt "MatchPaths" + let networkInsightsAccessScopeId ← v.opt "NetworkInsightsAccessScopeId" + return { excludePaths, matchPaths, networkInsightsAccessScopeId } + +/-- Describes a network insights analysis. -/ +structure NetworkInsightsAnalysis where + /-- The member accounts that contain resources that the path can traverse. -/ + additionalAccounts : Option (List String) := none + /-- Potential intermediate components. -/ + alternatePathHints : Option (List AlternatePathHint) := none + /-- The explanations. -/ + explanations : Option (List Explanation) := none + /-- The Amazon Resource Names (ARN) of the resources that the path must traverse. -/ + filterInArns : Option (List String) := none + /-- The Amazon Resource Names (ARN) of the resources that the path must ignore. -/ + filterOutArns : Option (List String) := none + /-- The components in the path from source to destination. -/ + forwardPathComponents : Option (List PathComponent) := none + /-- The Amazon Resource Name (ARN) of the network insights analysis. -/ + networkInsightsAnalysisArn : Option String := none + /-- The ID of the network insights analysis. -/ + networkInsightsAnalysisId : Option String := none + /-- The ID of the path. -/ + networkInsightsPathId : Option String := none + /-- Indicates whether the destination is reachable from the source. -/ + networkPathFound : Option Bool := none + /-- The components in the path from destination to source. -/ + returnPathComponents : Option (List PathComponent) := none + /-- The time the analysis started. -/ + startDate : Option Timestamp := none + /-- The status of the network insights analysis. -/ + status : Option AnalysisStatus := none + /-- The status message, if the status is failed . -/ + statusMessage : Option String := none + /-- Potential intermediate accounts. -/ + suggestedAccounts : Option (List String) := none + /-- The tags. -/ + tags : Option (List Tag) := none + /-- The warning message. -/ + warningMessage : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NetworkInsightsAnalysis where + schema := .struct "NetworkInsightsAnalysis" [({ name := "AdditionalAccounts", xmlName := some "additionalAccountSet", queryName := some "AdditionalAccountSet" }, (.list .string "item")), + ({ name := "AlternatePathHints", xmlName := some "alternatePathHintSet", queryName := some "AlternatePathHintSet" }, (.list (Shape.schema AlternatePathHint) "item")), + ({ name := "Explanations", xmlName := some "explanationSet", queryName := some "ExplanationSet" }, (.list (Shape.schema Explanation) "item")), + ({ name := "FilterInArns", xmlName := some "filterInArnSet", queryName := some "FilterInArnSet" }, (.list .string "item")), + ({ name := "FilterOutArns", xmlName := some "filterOutArnSet", queryName := some "FilterOutArnSet" }, (.list .string "item")), + ({ name := "ForwardPathComponents", xmlName := some "forwardPathComponentSet", queryName := some "ForwardPathComponentSet" }, (.list (Shape.schema PathComponent) "item")), + ({ name := "NetworkInsightsAnalysisArn", xmlName := some "networkInsightsAnalysisArn", queryName := some "NetworkInsightsAnalysisArn" }, .string), + ({ name := "NetworkInsightsAnalysisId", xmlName := some "networkInsightsAnalysisId", queryName := some "NetworkInsightsAnalysisId" }, .string), + ({ name := "NetworkInsightsPathId", xmlName := some "networkInsightsPathId", queryName := some "NetworkInsightsPathId" }, .string), + ({ name := "NetworkPathFound", xmlName := some "networkPathFound", queryName := some "NetworkPathFound" }, .bool), + ({ name := "ReturnPathComponents", xmlName := some "returnPathComponentSet", queryName := some "ReturnPathComponentSet" }, (.list (Shape.schema PathComponent) "item")), + ({ name := "StartDate", xmlName := some "startDate", queryName := some "StartDate" }, (.time none)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema AnalysisStatus)), + ({ name := "StatusMessage", xmlName := some "statusMessage", queryName := some "StatusMessage" }, .string), + ({ name := "SuggestedAccounts", xmlName := some "suggestedAccountSet", queryName := some "SuggestedAccountSet" }, (.list .string "item")), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "WarningMessage", xmlName := some "warningMessage", queryName := some "WarningMessage" }, .string)] + toValue x := record [putOpt "AdditionalAccounts" x.additionalAccounts, putOpt "AlternatePathHints" x.alternatePathHints, putOpt "Explanations" x.explanations, putOpt "FilterInArns" x.filterInArns, putOpt "FilterOutArns" x.filterOutArns, putOpt "ForwardPathComponents" x.forwardPathComponents, putOpt "NetworkInsightsAnalysisArn" x.networkInsightsAnalysisArn, putOpt "NetworkInsightsAnalysisId" x.networkInsightsAnalysisId, putOpt "NetworkInsightsPathId" x.networkInsightsPathId, putOpt "NetworkPathFound" x.networkPathFound, putOpt "ReturnPathComponents" x.returnPathComponents, putOpt "StartDate" x.startDate, putOpt "Status" x.status, putOpt "StatusMessage" x.statusMessage, putOpt "SuggestedAccounts" x.suggestedAccounts, putOpt "Tags" x.tags, putOpt "WarningMessage" x.warningMessage] + ofValue v := do + let additionalAccounts ← v.opt "AdditionalAccounts" + let alternatePathHints ← v.opt "AlternatePathHints" + let explanations ← v.opt "Explanations" + let filterInArns ← v.opt "FilterInArns" + let filterOutArns ← v.opt "FilterOutArns" + let forwardPathComponents ← v.opt "ForwardPathComponents" + let networkInsightsAnalysisArn ← v.opt "NetworkInsightsAnalysisArn" + let networkInsightsAnalysisId ← v.opt "NetworkInsightsAnalysisId" + let networkInsightsPathId ← v.opt "NetworkInsightsPathId" + let networkPathFound ← v.opt "NetworkPathFound" + let returnPathComponents ← v.opt "ReturnPathComponents" + let startDate ← v.opt "StartDate" + let status ← v.opt "Status" + let statusMessage ← v.opt "StatusMessage" + let suggestedAccounts ← v.opt "SuggestedAccounts" + let tags ← v.opt "Tags" + let warningMessage ← v.opt "WarningMessage" + return { additionalAccounts, alternatePathHints, explanations, filterInArns, filterOutArns, forwardPathComponents, networkInsightsAnalysisArn, networkInsightsAnalysisId, networkInsightsPathId, networkPathFound, returnPathComponents, startDate, status, statusMessage, suggestedAccounts, tags, warningMessage } + +/-- The information to include in the launch template. -/ +structure RequestLaunchTemplateData where + /-- The block device mapping. -/ + blockDeviceMappings : Option (List LaunchTemplateBlockDeviceMappingRequest) := none + /-- The Capacity Reservation targeting option. -/ + capacityReservationSpecification : Option LaunchTemplateCapacityReservationSpecificationRequest := none + /-- The CPU options for the instance. -/ + cpuOptions : Option LaunchTemplateCpuOptionsRequest := none + /-- The credit option for CPU usage of the instance. -/ + creditSpecification : Option CreditSpecificationRequest := none + /-- Indicates whether to enable the instance for stop protection. -/ + disableApiStop : Option Bool := none + /-- Indicates whether termination protection is enabled for the instance. -/ + disableApiTermination : Option Bool := none + /-- Indicates whether the instance is optimized for Amazon EBS I/O. -/ + ebsOptimized : Option Bool := none + /-- Deprecated. -/ + elasticGpuSpecifications : Option (List ElasticGpuSpecification) := none + /-- Amazon Elastic Inference is no longer available. -/ + elasticInferenceAccelerators : Option (List LaunchTemplateElasticInferenceAccelerator) := none + /-- Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. -/ + enclaveOptions : Option LaunchTemplateEnclaveOptionsRequest := none + /-- Indicates whether an instance is enabled for hibernation. -/ + hibernationOptions : Option LaunchTemplateHibernationOptionsRequest := none + /-- The name or Amazon Resource Name (ARN) of an IAM instance profile. -/ + iamInstanceProfile : Option LaunchTemplateIamInstanceProfileSpecificationRequest := none + /-- The ID of the AMI in the format ami-0ac394d6a3example . -/ + imageId : Option String := none + /-- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown). -/ + instanceInitiatedShutdownBehavior : Option ShutdownBehavior := none + /-- The market (purchasing) option for the instances. -/ + instanceMarketOptions : Option LaunchTemplateInstanceMarketOptionsRequest := none + /-- The attributes for the instance types. -/ + instanceRequirements : Option InstanceRequirementsRequest := none + /-- The instance type. -/ + instanceType : Option InstanceType := none + /-- The ID of the kernel. -/ + kernelId : Option String := none + /-- The name of the key pair. -/ + keyName : Option String := none + /-- The license configurations. -/ + licenseSpecifications : Option (List LaunchTemplateLicenseConfigurationRequest) := none + /-- The maintenance options for the instance. -/ + maintenanceOptions : Option LaunchTemplateInstanceMaintenanceOptionsRequest := none + /-- The metadata options for the instance. -/ + metadataOptions : Option LaunchTemplateInstanceMetadataOptionsRequest := none + /-- The monitoring for the instance. -/ + monitoring : Option LaunchTemplatesMonitoringRequest := none + /-- The network interfaces for the instance. -/ + networkInterfaces : Option (List LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) := none + /-- Contains launch template settings to boost network performance for the type of workload that runs on your instance. -/ + networkPerformanceOptions : Option LaunchTemplateNetworkPerformanceOptionsRequest := none + /-- The entity that manages the launch template. -/ + operator : Option OperatorRequest := none + /-- The placement for the instance. -/ + placement : Option LaunchTemplatePlacementRequest := none + /-- The options for the instance hostname. -/ + privateDnsNameOptions : Option LaunchTemplatePrivateDnsNameOptionsRequest := none + /-- The ID of the RAM disk. -/ + ramDiskId : Option String := none + /-- The secondary interfaces to associate with instances launched from the template. -/ + secondaryInterfaces : Option (List LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest) := none + /-- The IDs of the security groups. -/ + securityGroupIds : Option (List String) := none + /-- The names of the security groups. -/ + securityGroups : Option (List String) := none + /-- The tags to apply to the resources that are created during instance launch. -/ + tagSpecifications : Option (List LaunchTemplateTagSpecificationRequest) := none + /-- The user data to make available to the instance. -/ + userData : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RequestLaunchTemplateData where + schema := .struct "RequestLaunchTemplateData" [({ name := "BlockDeviceMappings", xmlName := some "BlockDeviceMapping" }, (.list (Shape.schema LaunchTemplateBlockDeviceMappingRequest) "BlockDeviceMapping")), + ({ name := "CapacityReservationSpecification" }, (Shape.schema LaunchTemplateCapacityReservationSpecificationRequest)), + ({ name := "CpuOptions" }, (Shape.schema LaunchTemplateCpuOptionsRequest)), + ({ name := "CreditSpecification" }, (Shape.schema CreditSpecificationRequest)), + ({ name := "DisableApiStop" }, .bool), + ({ name := "DisableApiTermination" }, .bool), + ({ name := "EbsOptimized" }, .bool), + ({ name := "ElasticGpuSpecifications", xmlName := some "ElasticGpuSpecification" }, (.list (Shape.schema ElasticGpuSpecification) "ElasticGpuSpecification")), + ({ name := "ElasticInferenceAccelerators", xmlName := some "ElasticInferenceAccelerator" }, (.list (Shape.schema LaunchTemplateElasticInferenceAccelerator) "item")), + ({ name := "EnclaveOptions" }, (Shape.schema LaunchTemplateEnclaveOptionsRequest)), + ({ name := "HibernationOptions" }, (Shape.schema LaunchTemplateHibernationOptionsRequest)), + ({ name := "IamInstanceProfile" }, (Shape.schema LaunchTemplateIamInstanceProfileSpecificationRequest)), + ({ name := "ImageId" }, .string), + ({ name := "InstanceInitiatedShutdownBehavior" }, (Shape.schema ShutdownBehavior)), + ({ name := "InstanceMarketOptions" }, (Shape.schema LaunchTemplateInstanceMarketOptionsRequest)), + ({ name := "InstanceRequirements" }, (Shape.schema InstanceRequirementsRequest)), + ({ name := "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "KernelId" }, .string), + ({ name := "KeyName" }, .string), + ({ name := "LicenseSpecifications", xmlName := some "LicenseSpecification" }, (.list (Shape.schema LaunchTemplateLicenseConfigurationRequest) "item")), + ({ name := "MaintenanceOptions" }, (Shape.schema LaunchTemplateInstanceMaintenanceOptionsRequest)), + ({ name := "MetadataOptions" }, (Shape.schema LaunchTemplateInstanceMetadataOptionsRequest)), + ({ name := "Monitoring" }, (Shape.schema LaunchTemplatesMonitoringRequest)), + ({ name := "NetworkInterfaces", xmlName := some "NetworkInterface" }, (.list (Shape.schema LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) "InstanceNetworkInterfaceSpecification")), + ({ name := "NetworkPerformanceOptions" }, (Shape.schema LaunchTemplateNetworkPerformanceOptionsRequest)), + ({ name := "Operator" }, (Shape.schema OperatorRequest)), + ({ name := "Placement" }, (Shape.schema LaunchTemplatePlacementRequest)), + ({ name := "PrivateDnsNameOptions" }, (Shape.schema LaunchTemplatePrivateDnsNameOptionsRequest)), + ({ name := "RamDiskId" }, .string), + ({ name := "SecondaryInterfaces", xmlName := some "SecondaryInterface" }, (.list (Shape.schema LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest) "InstanceSecondaryInterfaceSpecification")), + ({ name := "SecurityGroupIds", xmlName := some "SecurityGroupId" }, (.list .string "SecurityGroupId")), + ({ name := "SecurityGroups", xmlName := some "SecurityGroup" }, (.list .string "SecurityGroup")), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema LaunchTemplateTagSpecificationRequest) "LaunchTemplateTagSpecificationRequest")), + ({ name := "UserData" }, .string)] + toValue x := record [putOpt "BlockDeviceMappings" x.blockDeviceMappings, putOpt "CapacityReservationSpecification" x.capacityReservationSpecification, putOpt "CpuOptions" x.cpuOptions, putOpt "CreditSpecification" x.creditSpecification, putOpt "DisableApiStop" x.disableApiStop, putOpt "DisableApiTermination" x.disableApiTermination, putOpt "EbsOptimized" x.ebsOptimized, putOpt "ElasticGpuSpecifications" x.elasticGpuSpecifications, putOpt "ElasticInferenceAccelerators" x.elasticInferenceAccelerators, putOpt "EnclaveOptions" x.enclaveOptions, putOpt "HibernationOptions" x.hibernationOptions, putOpt "IamInstanceProfile" x.iamInstanceProfile, putOpt "ImageId" x.imageId, putOpt "InstanceInitiatedShutdownBehavior" x.instanceInitiatedShutdownBehavior, putOpt "InstanceMarketOptions" x.instanceMarketOptions, putOpt "InstanceRequirements" x.instanceRequirements, putOpt "InstanceType" x.instanceType, putOpt "KernelId" x.kernelId, putOpt "KeyName" x.keyName, putOpt "LicenseSpecifications" x.licenseSpecifications, putOpt "MaintenanceOptions" x.maintenanceOptions, putOpt "MetadataOptions" x.metadataOptions, putOpt "Monitoring" x.monitoring, putOpt "NetworkInterfaces" x.networkInterfaces, putOpt "NetworkPerformanceOptions" x.networkPerformanceOptions, putOpt "Operator" x.operator, putOpt "Placement" x.placement, putOpt "PrivateDnsNameOptions" x.privateDnsNameOptions, putOpt "RamDiskId" x.ramDiskId, putOpt "SecondaryInterfaces" x.secondaryInterfaces, putOpt "SecurityGroupIds" x.securityGroupIds, putOpt "SecurityGroups" x.securityGroups, putOpt "TagSpecifications" x.tagSpecifications, putOpt "UserData" x.userData] + ofValue v := do + let blockDeviceMappings ← v.opt "BlockDeviceMappings" + let capacityReservationSpecification ← v.opt "CapacityReservationSpecification" + let cpuOptions ← v.opt "CpuOptions" + let creditSpecification ← v.opt "CreditSpecification" + let disableApiStop ← v.opt "DisableApiStop" + let disableApiTermination ← v.opt "DisableApiTermination" + let ebsOptimized ← v.opt "EbsOptimized" + let elasticGpuSpecifications ← v.opt "ElasticGpuSpecifications" + let elasticInferenceAccelerators ← v.opt "ElasticInferenceAccelerators" + let enclaveOptions ← v.opt "EnclaveOptions" + let hibernationOptions ← v.opt "HibernationOptions" + let iamInstanceProfile ← v.opt "IamInstanceProfile" + let imageId ← v.opt "ImageId" + let instanceInitiatedShutdownBehavior ← v.opt "InstanceInitiatedShutdownBehavior" + let instanceMarketOptions ← v.opt "InstanceMarketOptions" + let instanceRequirements ← v.opt "InstanceRequirements" + let instanceType ← v.opt "InstanceType" + let kernelId ← v.opt "KernelId" + let keyName ← v.opt "KeyName" + let licenseSpecifications ← v.opt "LicenseSpecifications" + let maintenanceOptions ← v.opt "MaintenanceOptions" + let metadataOptions ← v.opt "MetadataOptions" + let monitoring ← v.opt "Monitoring" + let networkInterfaces ← v.opt "NetworkInterfaces" + let networkPerformanceOptions ← v.opt "NetworkPerformanceOptions" + let operator ← v.opt "Operator" + let placement ← v.opt "Placement" + let privateDnsNameOptions ← v.opt "PrivateDnsNameOptions" + let ramDiskId ← v.opt "RamDiskId" + let secondaryInterfaces ← v.opt "SecondaryInterfaces" + let securityGroupIds ← v.opt "SecurityGroupIds" + let securityGroups ← v.opt "SecurityGroups" + let tagSpecifications ← v.opt "TagSpecifications" + let userData ← v.opt "UserData" + return { blockDeviceMappings, capacityReservationSpecification, cpuOptions, creditSpecification, disableApiStop, disableApiTermination, ebsOptimized, elasticGpuSpecifications, elasticInferenceAccelerators, enclaveOptions, hibernationOptions, iamInstanceProfile, imageId, instanceInitiatedShutdownBehavior, instanceMarketOptions, instanceRequirements, instanceType, kernelId, keyName, licenseSpecifications, maintenanceOptions, metadataOptions, monitoring, networkInterfaces, networkPerformanceOptions, operator, placement, privateDnsNameOptions, ramDiskId, secondaryInterfaces, securityGroupIds, securityGroups, tagSpecifications, userData } + +/-- Contains the parameters for RequestSpotInstances. -/ +structure RequestSpotInstancesRequest where + /-- The user-specified name for a logical grouping of requests. -/ + availabilityZoneGroup : Option String := none + /-- Deprecated. -/ + blockDurationMinutes : Option Int := none + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The maximum number of Spot Instances to launch. -/ + instanceCount : Option Int := none + /-- The behavior when a Spot Instance is interrupted. -/ + instanceInterruptionBehavior : Option InstanceInterruptionBehavior := none + /-- The instance launch group. -/ + launchGroup : Option String := none + /-- The launch specification. -/ + launchSpecification : Option RequestSpotLaunchSpecification := none + /-- The maximum price per unit hour that you are willing to pay for a Spot Instance. -/ + spotPrice : Option String := none + /-- The key-value pair for tagging the Spot Instance request on creation. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The Spot Instance request type. -/ + type : Option SpotInstanceType := none + /-- The start date of the request. -/ + validFrom : Option Timestamp := none + /-- The end date of the request, in UTC format ( YYYY - MM - DD T HH : MM : SS Z). -/ + validUntil : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RequestSpotInstancesRequest where + schema := .struct "RequestSpotInstancesRequest" [({ name := "AvailabilityZoneGroup", xmlName := some "availabilityZoneGroup", queryName := some "AvailabilityZoneGroup" }, .string), + ({ name := "BlockDurationMinutes", xmlName := some "blockDurationMinutes", queryName := some "BlockDurationMinutes" }, .int), + ({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "InstanceCount", xmlName := some "instanceCount", queryName := some "InstanceCount" }, .int), + ({ name := "InstanceInterruptionBehavior" }, (Shape.schema InstanceInterruptionBehavior)), + ({ name := "LaunchGroup", xmlName := some "launchGroup", queryName := some "LaunchGroup" }, .string), + ({ name := "LaunchSpecification" }, (Shape.schema RequestSpotLaunchSpecification)), + ({ name := "SpotPrice", xmlName := some "spotPrice", queryName := some "SpotPrice" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, (Shape.schema SpotInstanceType)), + ({ name := "ValidFrom", xmlName := some "validFrom", queryName := some "ValidFrom" }, (.time none)), + ({ name := "ValidUntil", xmlName := some "validUntil", queryName := some "ValidUntil" }, (.time none))] + toValue x := record [putOpt "AvailabilityZoneGroup" x.availabilityZoneGroup, putOpt "BlockDurationMinutes" x.blockDurationMinutes, putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, putOpt "InstanceCount" x.instanceCount, putOpt "InstanceInterruptionBehavior" x.instanceInterruptionBehavior, putOpt "LaunchGroup" x.launchGroup, putOpt "LaunchSpecification" x.launchSpecification, putOpt "SpotPrice" x.spotPrice, putOpt "TagSpecifications" x.tagSpecifications, putOpt "Type" x.type, putOpt "ValidFrom" x.validFrom, putOpt "ValidUntil" x.validUntil] + ofValue v := do + let availabilityZoneGroup ← v.opt "AvailabilityZoneGroup" + let blockDurationMinutes ← v.opt "BlockDurationMinutes" + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let instanceCount ← v.opt "InstanceCount" + let instanceInterruptionBehavior ← v.opt "InstanceInterruptionBehavior" + let launchGroup ← v.opt "LaunchGroup" + let launchSpecification ← v.opt "LaunchSpecification" + let spotPrice ← v.opt "SpotPrice" + let tagSpecifications ← v.opt "TagSpecifications" + let type ← v.opt "Type" + let validFrom ← v.opt "ValidFrom" + let validUntil ← v.opt "ValidUntil" + return { availabilityZoneGroup, blockDurationMinutes, clientToken, dryRun, instanceCount, instanceInterruptionBehavior, launchGroup, launchSpecification, spotPrice, tagSpecifications, type, validFrom, validUntil } + +/-- The information for a launch template. -/ +structure ResponseLaunchTemplateData where + /-- The block device mappings. -/ + blockDeviceMappings : Option (List LaunchTemplateBlockDeviceMapping) := none + /-- Information about the Capacity Reservation targeting option. -/ + capacityReservationSpecification : Option LaunchTemplateCapacityReservationSpecificationResponse := none + /-- The CPU options for the instance. -/ + cpuOptions : Option LaunchTemplateCpuOptions := none + /-- The credit option for CPU usage of the instance. -/ + creditSpecification : Option CreditSpecification := none + /-- Indicates whether the instance is enabled for stop protection. -/ + disableApiStop : Option Bool := none + /-- If set to true , indicates that the instance cannot be terminated using the Amazon EC2 console, command line tool, or API. -/ + disableApiTermination : Option Bool := none + /-- Indicates whether the instance is optimized for Amazon EBS I/O. -/ + ebsOptimized : Option Bool := none + /-- Deprecated. -/ + elasticGpuSpecifications : Option (List ElasticGpuSpecificationResponse) := none + /-- Amazon Elastic Inference is no longer available. -/ + elasticInferenceAccelerators : Option (List LaunchTemplateElasticInferenceAcceleratorResponse) := none + /-- Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. -/ + enclaveOptions : Option LaunchTemplateEnclaveOptions := none + /-- Indicates whether an instance is configured for hibernation. -/ + hibernationOptions : Option LaunchTemplateHibernationOptions := none + /-- The IAM instance profile. -/ + iamInstanceProfile : Option LaunchTemplateIamInstanceProfileSpecification := none + /-- The ID of the AMI or a Systems Manager parameter. -/ + imageId : Option String := none + /-- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown). -/ + instanceInitiatedShutdownBehavior : Option ShutdownBehavior := none + /-- The market (purchasing) option for the instances. -/ + instanceMarketOptions : Option LaunchTemplateInstanceMarketOptions := none + /-- The attributes for the instance types. -/ + instanceRequirements : Option InstanceRequirements := none + /-- The instance type. -/ + instanceType : Option InstanceType := none + /-- The ID of the kernel, if applicable. -/ + kernelId : Option String := none + /-- The name of the key pair. -/ + keyName : Option String := none + /-- The license configurations. -/ + licenseSpecifications : Option (List LaunchTemplateLicenseConfiguration) := none + /-- The maintenance options for your instance. -/ + maintenanceOptions : Option LaunchTemplateInstanceMaintenanceOptions := none + /-- The metadata options for the instance. -/ + metadataOptions : Option LaunchTemplateInstanceMetadataOptions := none + /-- The monitoring for the instance. -/ + monitoring : Option LaunchTemplatesMonitoring := none + /-- The network interfaces. -/ + networkInterfaces : Option (List LaunchTemplateInstanceNetworkInterfaceSpecification) := none + /-- Contains the launch template settings for network performance options for your instance. -/ + networkPerformanceOptions : Option LaunchTemplateNetworkPerformanceOptions := none + /-- The entity that manages the launch template. -/ + operator : Option OperatorResponse := none + /-- The placement of the instance. -/ + placement : Option LaunchTemplatePlacement := none + /-- The options for the instance hostname. -/ + privateDnsNameOptions : Option LaunchTemplatePrivateDnsNameOptions := none + /-- The ID of the RAM disk, if applicable. -/ + ramDiskId : Option String := none + /-- The secondary interfaces associated with the launch template. -/ + secondaryInterfaces : Option (List LaunchTemplateInstanceSecondaryInterfaceSpecification) := none + /-- The security group IDs. -/ + securityGroupIds : Option (List String) := none + /-- The security group names. -/ + securityGroups : Option (List String) := none + /-- The tags that are applied to the resources that are created during instance launch. -/ + tagSpecifications : Option (List LaunchTemplateTagSpecification) := none + /-- The user data for the instance. -/ + userData : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResponseLaunchTemplateData where + schema := .struct "ResponseLaunchTemplateData" [({ name := "BlockDeviceMappings", xmlName := some "blockDeviceMappingSet", queryName := some "BlockDeviceMappingSet" }, (.list (Shape.schema LaunchTemplateBlockDeviceMapping) "item")), + ({ name := "CapacityReservationSpecification", xmlName := some "capacityReservationSpecification", queryName := some "CapacityReservationSpecification" }, (Shape.schema LaunchTemplateCapacityReservationSpecificationResponse)), + ({ name := "CpuOptions", xmlName := some "cpuOptions", queryName := some "CpuOptions" }, (Shape.schema LaunchTemplateCpuOptions)), + ({ name := "CreditSpecification", xmlName := some "creditSpecification", queryName := some "CreditSpecification" }, (Shape.schema CreditSpecification)), + ({ name := "DisableApiStop", xmlName := some "disableApiStop", queryName := some "DisableApiStop" }, .bool), + ({ name := "DisableApiTermination", xmlName := some "disableApiTermination", queryName := some "DisableApiTermination" }, .bool), + ({ name := "EbsOptimized", xmlName := some "ebsOptimized", queryName := some "EbsOptimized" }, .bool), + ({ name := "ElasticGpuSpecifications", xmlName := some "elasticGpuSpecificationSet", queryName := some "ElasticGpuSpecificationSet" }, (.list (Shape.schema ElasticGpuSpecificationResponse) "item")), + ({ name := "ElasticInferenceAccelerators", xmlName := some "elasticInferenceAcceleratorSet", queryName := some "ElasticInferenceAcceleratorSet" }, (.list (Shape.schema LaunchTemplateElasticInferenceAcceleratorResponse) "item")), + ({ name := "EnclaveOptions", xmlName := some "enclaveOptions", queryName := some "EnclaveOptions" }, (Shape.schema LaunchTemplateEnclaveOptions)), + ({ name := "HibernationOptions", xmlName := some "hibernationOptions", queryName := some "HibernationOptions" }, (Shape.schema LaunchTemplateHibernationOptions)), + ({ name := "IamInstanceProfile", xmlName := some "iamInstanceProfile", queryName := some "IamInstanceProfile" }, (Shape.schema LaunchTemplateIamInstanceProfileSpecification)), + ({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "InstanceInitiatedShutdownBehavior", xmlName := some "instanceInitiatedShutdownBehavior", queryName := some "InstanceInitiatedShutdownBehavior" }, (Shape.schema ShutdownBehavior)), + ({ name := "InstanceMarketOptions", xmlName := some "instanceMarketOptions", queryName := some "InstanceMarketOptions" }, (Shape.schema LaunchTemplateInstanceMarketOptions)), + ({ name := "InstanceRequirements", xmlName := some "instanceRequirements", queryName := some "InstanceRequirements" }, (Shape.schema InstanceRequirements)), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "KernelId", xmlName := some "kernelId", queryName := some "KernelId" }, .string), + ({ name := "KeyName", xmlName := some "keyName", queryName := some "KeyName" }, .string), + ({ name := "LicenseSpecifications", xmlName := some "licenseSet", queryName := some "LicenseSet" }, (.list (Shape.schema LaunchTemplateLicenseConfiguration) "item")), + ({ name := "MaintenanceOptions", xmlName := some "maintenanceOptions", queryName := some "MaintenanceOptions" }, (Shape.schema LaunchTemplateInstanceMaintenanceOptions)), + ({ name := "MetadataOptions", xmlName := some "metadataOptions", queryName := some "MetadataOptions" }, (Shape.schema LaunchTemplateInstanceMetadataOptions)), + ({ name := "Monitoring", xmlName := some "monitoring", queryName := some "Monitoring" }, (Shape.schema LaunchTemplatesMonitoring)), + ({ name := "NetworkInterfaces", xmlName := some "networkInterfaceSet", queryName := some "NetworkInterfaceSet" }, (.list (Shape.schema LaunchTemplateInstanceNetworkInterfaceSpecification) "item")), + ({ name := "NetworkPerformanceOptions", xmlName := some "networkPerformanceOptions", queryName := some "NetworkPerformanceOptions" }, (Shape.schema LaunchTemplateNetworkPerformanceOptions)), + ({ name := "Operator", xmlName := some "operator", queryName := some "Operator" }, (Shape.schema OperatorResponse)), + ({ name := "Placement", xmlName := some "placement", queryName := some "Placement" }, (Shape.schema LaunchTemplatePlacement)), + ({ name := "PrivateDnsNameOptions", xmlName := some "privateDnsNameOptions", queryName := some "PrivateDnsNameOptions" }, (Shape.schema LaunchTemplatePrivateDnsNameOptions)), + ({ name := "RamDiskId", xmlName := some "ramDiskId", queryName := some "RamDiskId" }, .string), + ({ name := "SecondaryInterfaces", xmlName := some "secondaryInterfaceSet", queryName := some "SecondaryInterfaceSet" }, (.list (Shape.schema LaunchTemplateInstanceSecondaryInterfaceSpecification) "item")), + ({ name := "SecurityGroupIds", xmlName := some "securityGroupIdSet", queryName := some "SecurityGroupIdSet" }, (.list .string "item")), + ({ name := "SecurityGroups", xmlName := some "securityGroupSet", queryName := some "SecurityGroupSet" }, (.list .string "item")), + ({ name := "TagSpecifications", xmlName := some "tagSpecificationSet", queryName := some "TagSpecificationSet" }, (.list (Shape.schema LaunchTemplateTagSpecification) "item")), + ({ name := "UserData", xmlName := some "userData", queryName := some "UserData" }, .string)] + toValue x := record [putOpt "BlockDeviceMappings" x.blockDeviceMappings, putOpt "CapacityReservationSpecification" x.capacityReservationSpecification, putOpt "CpuOptions" x.cpuOptions, putOpt "CreditSpecification" x.creditSpecification, putOpt "DisableApiStop" x.disableApiStop, putOpt "DisableApiTermination" x.disableApiTermination, putOpt "EbsOptimized" x.ebsOptimized, putOpt "ElasticGpuSpecifications" x.elasticGpuSpecifications, putOpt "ElasticInferenceAccelerators" x.elasticInferenceAccelerators, putOpt "EnclaveOptions" x.enclaveOptions, putOpt "HibernationOptions" x.hibernationOptions, putOpt "IamInstanceProfile" x.iamInstanceProfile, putOpt "ImageId" x.imageId, putOpt "InstanceInitiatedShutdownBehavior" x.instanceInitiatedShutdownBehavior, putOpt "InstanceMarketOptions" x.instanceMarketOptions, putOpt "InstanceRequirements" x.instanceRequirements, putOpt "InstanceType" x.instanceType, putOpt "KernelId" x.kernelId, putOpt "KeyName" x.keyName, putOpt "LicenseSpecifications" x.licenseSpecifications, putOpt "MaintenanceOptions" x.maintenanceOptions, putOpt "MetadataOptions" x.metadataOptions, putOpt "Monitoring" x.monitoring, putOpt "NetworkInterfaces" x.networkInterfaces, putOpt "NetworkPerformanceOptions" x.networkPerformanceOptions, putOpt "Operator" x.operator, putOpt "Placement" x.placement, putOpt "PrivateDnsNameOptions" x.privateDnsNameOptions, putOpt "RamDiskId" x.ramDiskId, putOpt "SecondaryInterfaces" x.secondaryInterfaces, putOpt "SecurityGroupIds" x.securityGroupIds, putOpt "SecurityGroups" x.securityGroups, putOpt "TagSpecifications" x.tagSpecifications, putOpt "UserData" x.userData] + ofValue v := do + let blockDeviceMappings ← v.opt "BlockDeviceMappings" + let capacityReservationSpecification ← v.opt "CapacityReservationSpecification" + let cpuOptions ← v.opt "CpuOptions" + let creditSpecification ← v.opt "CreditSpecification" + let disableApiStop ← v.opt "DisableApiStop" + let disableApiTermination ← v.opt "DisableApiTermination" + let ebsOptimized ← v.opt "EbsOptimized" + let elasticGpuSpecifications ← v.opt "ElasticGpuSpecifications" + let elasticInferenceAccelerators ← v.opt "ElasticInferenceAccelerators" + let enclaveOptions ← v.opt "EnclaveOptions" + let hibernationOptions ← v.opt "HibernationOptions" + let iamInstanceProfile ← v.opt "IamInstanceProfile" + let imageId ← v.opt "ImageId" + let instanceInitiatedShutdownBehavior ← v.opt "InstanceInitiatedShutdownBehavior" + let instanceMarketOptions ← v.opt "InstanceMarketOptions" + let instanceRequirements ← v.opt "InstanceRequirements" + let instanceType ← v.opt "InstanceType" + let kernelId ← v.opt "KernelId" + let keyName ← v.opt "KeyName" + let licenseSpecifications ← v.opt "LicenseSpecifications" + let maintenanceOptions ← v.opt "MaintenanceOptions" + let metadataOptions ← v.opt "MetadataOptions" + let monitoring ← v.opt "Monitoring" + let networkInterfaces ← v.opt "NetworkInterfaces" + let networkPerformanceOptions ← v.opt "NetworkPerformanceOptions" + let operator ← v.opt "Operator" + let placement ← v.opt "Placement" + let privateDnsNameOptions ← v.opt "PrivateDnsNameOptions" + let ramDiskId ← v.opt "RamDiskId" + let secondaryInterfaces ← v.opt "SecondaryInterfaces" + let securityGroupIds ← v.opt "SecurityGroupIds" + let securityGroups ← v.opt "SecurityGroups" + let tagSpecifications ← v.opt "TagSpecifications" + let userData ← v.opt "UserData" + return { blockDeviceMappings, capacityReservationSpecification, cpuOptions, creditSpecification, disableApiStop, disableApiTermination, ebsOptimized, elasticGpuSpecifications, elasticInferenceAccelerators, enclaveOptions, hibernationOptions, iamInstanceProfile, imageId, instanceInitiatedShutdownBehavior, instanceMarketOptions, instanceRequirements, instanceType, kernelId, keyName, licenseSpecifications, maintenanceOptions, metadataOptions, monitoring, networkInterfaces, networkPerformanceOptions, operator, placement, privateDnsNameOptions, ramDiskId, secondaryInterfaces, securityGroupIds, securityGroups, tagSpecifications, userData } + +/-- Describes the launch specification for one or more Spot Instances. -/ +structure SpotFleetLaunchSpecification where + /-- Deprecated. -/ + addressingType : Option String := none + /-- One or more block devices that are mapped to the Spot Instances. -/ + blockDeviceMappings : Option (List BlockDeviceMapping) := none + /-- Indicates whether the instances are optimized for EBS I/O. -/ + ebsOptimized : Option Bool := none + /-- The IAM instance profile. -/ + iamInstanceProfile : Option IamInstanceProfileSpecification := none + /-- The ID of the AMI. -/ + imageId : Option String := none + /-- The attributes for the instance types. -/ + instanceRequirements : Option InstanceRequirements := none + /-- The instance type. -/ + instanceType : Option InstanceType := none + /-- The ID of the kernel. -/ + kernelId : Option String := none + /-- The name of the key pair. -/ + keyName : Option String := none + /-- Enable or disable monitoring for the instances. -/ + monitoring : Option SpotFleetMonitoring := none + /-- The network interfaces. -/ + networkInterfaces : Option (List InstanceNetworkInterfaceSpecification) := none + /-- The placement information. -/ + placement : Option SpotPlacement := none + /-- The ID of the RAM disk. -/ + ramdiskId : Option String := none + /-- The security groups. -/ + securityGroups : Option (List GroupIdentifier) := none + /-- The maximum price per unit hour that you are willing to pay for a Spot Instance. -/ + spotPrice : Option String := none + /-- The IDs of the subnets in which to launch the instances. -/ + subnetId : Option String := none + /-- The tags to apply during creation. -/ + tagSpecifications : Option (List SpotFleetTagSpecification) := none + /-- The base64-encoded user data that instances use when starting up. -/ + userData : Option String := none + /-- The number of units provided by the specified instance type. -/ + weightedCapacity : Option JsonNumber := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SpotFleetLaunchSpecification where + schema := .struct "SpotFleetLaunchSpecification" [({ name := "AddressingType", xmlName := some "addressingType", queryName := some "AddressingType" }, .string), + ({ name := "BlockDeviceMappings", xmlName := some "blockDeviceMapping", queryName := some "BlockDeviceMapping" }, (.list (Shape.schema BlockDeviceMapping) "item")), + ({ name := "EbsOptimized", xmlName := some "ebsOptimized", queryName := some "EbsOptimized" }, .bool), + ({ name := "IamInstanceProfile", xmlName := some "iamInstanceProfile", queryName := some "IamInstanceProfile" }, (Shape.schema IamInstanceProfileSpecification)), + ({ name := "ImageId", xmlName := some "imageId", queryName := some "ImageId" }, .string), + ({ name := "InstanceRequirements", xmlName := some "instanceRequirements", queryName := some "InstanceRequirements" }, (Shape.schema InstanceRequirements)), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "KernelId", xmlName := some "kernelId", queryName := some "KernelId" }, .string), + ({ name := "KeyName", xmlName := some "keyName", queryName := some "KeyName" }, .string), + ({ name := "Monitoring", xmlName := some "monitoring", queryName := some "Monitoring" }, (Shape.schema SpotFleetMonitoring)), + ({ name := "NetworkInterfaces", xmlName := some "networkInterfaceSet", queryName := some "NetworkInterfaceSet" }, (.list (Shape.schema InstanceNetworkInterfaceSpecification) "item")), + ({ name := "Placement", xmlName := some "placement", queryName := some "Placement" }, (Shape.schema SpotPlacement)), + ({ name := "RamdiskId", xmlName := some "ramdiskId", queryName := some "RamdiskId" }, .string), + ({ name := "SecurityGroups", xmlName := some "groupSet", queryName := some "GroupSet" }, (.list (Shape.schema GroupIdentifier) "item")), + ({ name := "SpotPrice", xmlName := some "spotPrice", queryName := some "SpotPrice" }, .string), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string), + ({ name := "TagSpecifications", xmlName := some "tagSpecificationSet", queryName := some "TagSpecificationSet" }, (.list (Shape.schema SpotFleetTagSpecification) "item")), + ({ name := "UserData", xmlName := some "userData", queryName := some "UserData" }, .string), + ({ name := "WeightedCapacity", xmlName := some "weightedCapacity", queryName := some "WeightedCapacity" }, .number)] + toValue x := record [putOpt "AddressingType" x.addressingType, putOpt "BlockDeviceMappings" x.blockDeviceMappings, putOpt "EbsOptimized" x.ebsOptimized, putOpt "IamInstanceProfile" x.iamInstanceProfile, putOpt "ImageId" x.imageId, putOpt "InstanceRequirements" x.instanceRequirements, putOpt "InstanceType" x.instanceType, putOpt "KernelId" x.kernelId, putOpt "KeyName" x.keyName, putOpt "Monitoring" x.monitoring, putOpt "NetworkInterfaces" x.networkInterfaces, putOpt "Placement" x.placement, putOpt "RamdiskId" x.ramdiskId, putOpt "SecurityGroups" x.securityGroups, putOpt "SpotPrice" x.spotPrice, putOpt "SubnetId" x.subnetId, putOpt "TagSpecifications" x.tagSpecifications, putOpt "UserData" x.userData, putOpt "WeightedCapacity" x.weightedCapacity] + ofValue v := do + let addressingType ← v.opt "AddressingType" + let blockDeviceMappings ← v.opt "BlockDeviceMappings" + let ebsOptimized ← v.opt "EbsOptimized" + let iamInstanceProfile ← v.opt "IamInstanceProfile" + let imageId ← v.opt "ImageId" + let instanceRequirements ← v.opt "InstanceRequirements" + let instanceType ← v.opt "InstanceType" + let kernelId ← v.opt "KernelId" + let keyName ← v.opt "KeyName" + let monitoring ← v.opt "Monitoring" + let networkInterfaces ← v.opt "NetworkInterfaces" + let placement ← v.opt "Placement" + let ramdiskId ← v.opt "RamdiskId" + let securityGroups ← v.opt "SecurityGroups" + let spotPrice ← v.opt "SpotPrice" + let subnetId ← v.opt "SubnetId" + let tagSpecifications ← v.opt "TagSpecifications" + let userData ← v.opt "UserData" + let weightedCapacity ← v.opt "WeightedCapacity" + return { addressingType, blockDeviceMappings, ebsOptimized, iamInstanceProfile, imageId, instanceRequirements, instanceType, kernelId, keyName, monitoring, networkInterfaces, placement, ramdiskId, securityGroups, spotPrice, subnetId, tagSpecifications, userData, weightedCapacity } + +/-- Describes a Spot Instance request. -/ +structure SpotInstanceRequest where + /-- Deprecated. -/ + actualBlockHourlyPrice : Option String := none + /-- The Availability Zone group. -/ + availabilityZoneGroup : Option String := none + /-- Deprecated. -/ + blockDurationMinutes : Option Int := none + /-- The date and time when the Spot Instance request was created, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). -/ + createTime : Option Timestamp := none + /-- The fault codes for the Spot Instance request, if any. -/ + fault : Option SpotInstanceStateFault := none + /-- The instance ID, if an instance has been launched to fulfill the Spot Instance request. -/ + instanceId : Option String := none + /-- The behavior when a Spot Instance is interrupted. -/ + instanceInterruptionBehavior : Option InstanceInterruptionBehavior := none + /-- The instance launch group. -/ + launchGroup : Option String := none + /-- Additional information for launching instances. -/ + launchSpecification : Option LaunchSpecification := none + /-- The Availability Zone in which the request is launched. -/ + launchedAvailabilityZone : Option String := none + /-- The ID of the Availability Zone in which the request is launched. -/ + launchedAvailabilityZoneId : Option String := none + /-- The product description associated with the Spot Instance. -/ + productDescription : Option RIProductDescription := none + /-- The ID of the Spot Instance request. -/ + spotInstanceRequestId : Option String := none + /-- The maximum price per unit hour that you are willing to pay for a Spot Instance. -/ + spotPrice : Option String := none + /-- The state of the Spot Instance request. -/ + state : Option SpotInstanceState := none + /-- The status code and status message describing the Spot Instance request. -/ + status : Option SpotInstanceStatus := none + /-- Any tags assigned to the resource. -/ + tags : Option (List Tag) := none + /-- The Spot Instance request type. -/ + type : Option SpotInstanceType := none + /-- The start date of the request, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). -/ + validFrom : Option Timestamp := none + /-- The end date of the request, in UTC format ( YYYY - MM - DD T HH : MM : SS Z). -/ + validUntil : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SpotInstanceRequest where + schema := .struct "SpotInstanceRequest" [({ name := "ActualBlockHourlyPrice", xmlName := some "actualBlockHourlyPrice", queryName := some "ActualBlockHourlyPrice" }, .string), + ({ name := "AvailabilityZoneGroup", xmlName := some "availabilityZoneGroup", queryName := some "AvailabilityZoneGroup" }, .string), + ({ name := "BlockDurationMinutes", xmlName := some "blockDurationMinutes", queryName := some "BlockDurationMinutes" }, .int), + ({ name := "CreateTime", xmlName := some "createTime", queryName := some "CreateTime" }, (.time none)), + ({ name := "Fault", xmlName := some "fault", queryName := some "Fault" }, (Shape.schema SpotInstanceStateFault)), + ({ name := "InstanceId", xmlName := some "instanceId", queryName := some "InstanceId" }, .string), + ({ name := "InstanceInterruptionBehavior", xmlName := some "instanceInterruptionBehavior", queryName := some "InstanceInterruptionBehavior" }, (Shape.schema InstanceInterruptionBehavior)), + ({ name := "LaunchGroup", xmlName := some "launchGroup", queryName := some "LaunchGroup" }, .string), + ({ name := "LaunchSpecification", xmlName := some "launchSpecification", queryName := some "LaunchSpecification" }, (Shape.schema LaunchSpecification)), + ({ name := "LaunchedAvailabilityZone", xmlName := some "launchedAvailabilityZone", queryName := some "LaunchedAvailabilityZone" }, .string), + ({ name := "LaunchedAvailabilityZoneId", xmlName := some "launchedAvailabilityZoneId", queryName := some "LaunchedAvailabilityZoneId" }, .string), + ({ name := "ProductDescription", xmlName := some "productDescription", queryName := some "ProductDescription" }, (Shape.schema RIProductDescription)), + ({ name := "SpotInstanceRequestId", xmlName := some "spotInstanceRequestId", queryName := some "SpotInstanceRequestId" }, .string), + ({ name := "SpotPrice", xmlName := some "spotPrice", queryName := some "SpotPrice" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema SpotInstanceState)), + ({ name := "Status", xmlName := some "status", queryName := some "Status" }, (Shape.schema SpotInstanceStatus)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, (Shape.schema SpotInstanceType)), + ({ name := "ValidFrom", xmlName := some "validFrom", queryName := some "ValidFrom" }, (.time none)), + ({ name := "ValidUntil", xmlName := some "validUntil", queryName := some "ValidUntil" }, (.time none))] + toValue x := record [putOpt "ActualBlockHourlyPrice" x.actualBlockHourlyPrice, putOpt "AvailabilityZoneGroup" x.availabilityZoneGroup, putOpt "BlockDurationMinutes" x.blockDurationMinutes, putOpt "CreateTime" x.createTime, putOpt "Fault" x.fault, putOpt "InstanceId" x.instanceId, putOpt "InstanceInterruptionBehavior" x.instanceInterruptionBehavior, putOpt "LaunchGroup" x.launchGroup, putOpt "LaunchSpecification" x.launchSpecification, putOpt "LaunchedAvailabilityZone" x.launchedAvailabilityZone, putOpt "LaunchedAvailabilityZoneId" x.launchedAvailabilityZoneId, putOpt "ProductDescription" x.productDescription, putOpt "SpotInstanceRequestId" x.spotInstanceRequestId, putOpt "SpotPrice" x.spotPrice, putOpt "State" x.state, putOpt "Status" x.status, putOpt "Tags" x.tags, putOpt "Type" x.type, putOpt "ValidFrom" x.validFrom, putOpt "ValidUntil" x.validUntil] + ofValue v := do + let actualBlockHourlyPrice ← v.opt "ActualBlockHourlyPrice" + let availabilityZoneGroup ← v.opt "AvailabilityZoneGroup" + let blockDurationMinutes ← v.opt "BlockDurationMinutes" + let createTime ← v.opt "CreateTime" + let fault ← v.opt "Fault" + let instanceId ← v.opt "InstanceId" + let instanceInterruptionBehavior ← v.opt "InstanceInterruptionBehavior" + let launchGroup ← v.opt "LaunchGroup" + let launchSpecification ← v.opt "LaunchSpecification" + let launchedAvailabilityZone ← v.opt "LaunchedAvailabilityZone" + let launchedAvailabilityZoneId ← v.opt "LaunchedAvailabilityZoneId" + let productDescription ← v.opt "ProductDescription" + let spotInstanceRequestId ← v.opt "SpotInstanceRequestId" + let spotPrice ← v.opt "SpotPrice" + let state ← v.opt "State" + let status ← v.opt "Status" + let tags ← v.opt "Tags" + let type ← v.opt "Type" + let validFrom ← v.opt "ValidFrom" + let validUntil ← v.opt "ValidUntil" + return { actualBlockHourlyPrice, availabilityZoneGroup, blockDurationMinutes, createTime, fault, instanceId, instanceInterruptionBehavior, launchGroup, launchSpecification, launchedAvailabilityZone, launchedAvailabilityZoneId, productDescription, spotInstanceRequestId, spotPrice, state, status, tags, type, validFrom, validUntil } + +/-- Describes logging options for an Amazon Web Services Verified Access instance. -/ +structure VerifiedAccessInstanceLoggingConfiguration where + /-- Details about the logging options. -/ + accessLogs : Option VerifiedAccessLogs := none + /-- The ID of the Amazon Web Services Verified Access instance. -/ + verifiedAccessInstanceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifiedAccessInstanceLoggingConfiguration where + schema := .struct "VerifiedAccessInstanceLoggingConfiguration" [({ name := "AccessLogs", xmlName := some "accessLogs", queryName := some "AccessLogs" }, (Shape.schema VerifiedAccessLogs)), + ({ name := "VerifiedAccessInstanceId", xmlName := some "verifiedAccessInstanceId", queryName := some "VerifiedAccessInstanceId" }, .string)] + toValue x := record [putOpt "AccessLogs" x.accessLogs, putOpt "VerifiedAccessInstanceId" x.verifiedAccessInstanceId] + ofValue v := do + let accessLogs ← v.opt "AccessLogs" + let verifiedAccessInstanceId ← v.opt "VerifiedAccessInstanceId" + return { accessLogs, verifiedAccessInstanceId } + +/-- Describes a VPC. -/ +structure Vpc where + /-- The state of VPC Block Public Access (BPA). -/ + blockPublicAccessStates : Option BlockPublicAccessStates := none + /-- The primary IPv4 CIDR block for the VPC. -/ + cidrBlock : Option String := none + /-- Information about the IPv4 CIDR blocks associated with the VPC. -/ + cidrBlockAssociationSet : Option (List VpcCidrBlockAssociation) := none + /-- The ID of the set of DHCP options you've associated with the VPC. -/ + dhcpOptionsId : Option String := none + encryptionControl : Option VpcEncryptionControl := none + /-- The allowed tenancy of instances launched into the VPC. -/ + instanceTenancy : Option Tenancy := none + /-- Information about the IPv6 CIDR blocks associated with the VPC. -/ + ipv6CidrBlockAssociationSet : Option (List VpcIpv6CidrBlockAssociation) := none + /-- Indicates whether the VPC is the default VPC. -/ + isDefault : Option Bool := none + /-- The ID of the Amazon Web Services account that owns the VPC. -/ + ownerId : Option String := none + /-- The current state of the VPC. -/ + state : Option VpcState := none + /-- Any tags assigned to the VPC. -/ + tags : Option (List Tag) := none + /-- The ID of the VPC. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Vpc where + schema := .struct "Vpc" [({ name := "BlockPublicAccessStates", xmlName := some "blockPublicAccessStates", queryName := some "BlockPublicAccessStates" }, (Shape.schema BlockPublicAccessStates)), + ({ name := "CidrBlock", xmlName := some "cidrBlock", queryName := some "CidrBlock" }, .string), + ({ name := "CidrBlockAssociationSet", xmlName := some "cidrBlockAssociationSet", queryName := some "CidrBlockAssociationSet" }, (.list (Shape.schema VpcCidrBlockAssociation) "item")), + ({ name := "DhcpOptionsId", xmlName := some "dhcpOptionsId", queryName := some "DhcpOptionsId" }, .string), + ({ name := "EncryptionControl", xmlName := some "encryptionControl", queryName := some "EncryptionControl" }, (Shape.schema VpcEncryptionControl)), + ({ name := "InstanceTenancy", xmlName := some "instanceTenancy", queryName := some "InstanceTenancy" }, (Shape.schema Tenancy)), + ({ name := "Ipv6CidrBlockAssociationSet", xmlName := some "ipv6CidrBlockAssociationSet", queryName := some "Ipv6CidrBlockAssociationSet" }, (.list (Shape.schema VpcIpv6CidrBlockAssociation) "item")), + ({ name := "IsDefault", xmlName := some "isDefault", queryName := some "IsDefault" }, .bool), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema VpcState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "VpcId", xmlName := some "vpcId", queryName := some "VpcId" }, .string)] + toValue x := record [putOpt "BlockPublicAccessStates" x.blockPublicAccessStates, putOpt "CidrBlock" x.cidrBlock, putOpt "CidrBlockAssociationSet" x.cidrBlockAssociationSet, putOpt "DhcpOptionsId" x.dhcpOptionsId, putOpt "EncryptionControl" x.encryptionControl, putOpt "InstanceTenancy" x.instanceTenancy, putOpt "Ipv6CidrBlockAssociationSet" x.ipv6CidrBlockAssociationSet, putOpt "IsDefault" x.isDefault, putOpt "OwnerId" x.ownerId, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "VpcId" x.vpcId] + ofValue v := do + let blockPublicAccessStates ← v.opt "BlockPublicAccessStates" + let cidrBlock ← v.opt "CidrBlock" + let cidrBlockAssociationSet ← v.opt "CidrBlockAssociationSet" + let dhcpOptionsId ← v.opt "DhcpOptionsId" + let encryptionControl ← v.opt "EncryptionControl" + let instanceTenancy ← v.opt "InstanceTenancy" + let ipv6CidrBlockAssociationSet ← v.opt "Ipv6CidrBlockAssociationSet" + let isDefault ← v.opt "IsDefault" + let ownerId ← v.opt "OwnerId" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let vpcId ← v.opt "VpcId" + return { blockPublicAccessStates, cidrBlock, cidrBlockAssociationSet, dhcpOptionsId, encryptionControl, instanceTenancy, ipv6CidrBlockAssociationSet, isDefault, ownerId, state, tags, vpcId } + +/-- Describes a VPN connection. -/ +structure VpnConnection where + /-- The category of the VPN connection. -/ + category : Option String := none + /-- The ARN of the core network. -/ + coreNetworkArn : Option String := none + /-- The ARN of the core network attachment. -/ + coreNetworkAttachmentArn : Option String := none + /-- The configuration information for the VPN connection's customer gateway (in the native XML format). -/ + customerGatewayConfiguration : Option String := none + /-- The ID of the customer gateway at your end of the VPN connection. -/ + customerGatewayId : Option String := none + /-- The current state of the gateway association. -/ + gatewayAssociationState : Option GatewayAssociationState := none + /-- The VPN connection options. -/ + options : Option VpnConnectionOptions := none + /-- The Amazon Resource Name (ARN) of the Secrets Manager secret storing the pre-shared key(s) for the VPN connection. -/ + preSharedKeyArn : Option String := none + /-- The static routes associated with the VPN connection. -/ + routes : Option (List VpnStaticRoute) := none + /-- The current state of the VPN connection. -/ + state : Option VpnState := none + /-- Any tags assigned to the VPN connection. -/ + tags : Option (List Tag) := none + /-- The ID of the transit gateway associated with the VPN connection. -/ + transitGatewayId : Option String := none + /-- The type of VPN connection. -/ + type : Option GatewayType := none + /-- Information about the VPN tunnel. -/ + vgwTelemetry : Option (List VgwTelemetry) := none + /-- The ID of the VPN concentrator associated with the VPN connection. -/ + vpnConcentratorId : Option String := none + /-- The ID of the VPN connection. -/ + vpnConnectionId : Option String := none + /-- The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection. -/ + vpnGatewayId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpnConnection where + schema := .struct "VpnConnection" [({ name := "Category", xmlName := some "category", queryName := some "Category" }, .string), + ({ name := "CoreNetworkArn", xmlName := some "coreNetworkArn", queryName := some "CoreNetworkArn" }, .string), + ({ name := "CoreNetworkAttachmentArn", xmlName := some "coreNetworkAttachmentArn", queryName := some "CoreNetworkAttachmentArn" }, .string), + ({ name := "CustomerGatewayConfiguration", xmlName := some "customerGatewayConfiguration", queryName := some "CustomerGatewayConfiguration" }, .string), + ({ name := "CustomerGatewayId", xmlName := some "customerGatewayId", queryName := some "CustomerGatewayId" }, .string), + ({ name := "GatewayAssociationState", xmlName := some "gatewayAssociationState", queryName := some "GatewayAssociationState" }, (Shape.schema GatewayAssociationState)), + ({ name := "Options", xmlName := some "options", queryName := some "Options" }, (Shape.schema VpnConnectionOptions)), + ({ name := "PreSharedKeyArn", xmlName := some "preSharedKeyArn", queryName := some "PreSharedKeyArn" }, .string), + ({ name := "Routes", xmlName := some "routes", queryName := some "Routes" }, (.list (Shape.schema VpnStaticRoute) "item")), + ({ name := "State", xmlName := some "state", queryName := some "State" }, (Shape.schema VpnState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TransitGatewayId", xmlName := some "transitGatewayId", queryName := some "TransitGatewayId" }, .string), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, (Shape.schema GatewayType)), + ({ name := "VgwTelemetry", xmlName := some "vgwTelemetry", queryName := some "VgwTelemetry" }, (.list (Shape.schema VgwTelemetry) "item")), + ({ name := "VpnConcentratorId", xmlName := some "vpnConcentratorId", queryName := some "VpnConcentratorId" }, .string), + ({ name := "VpnConnectionId", xmlName := some "vpnConnectionId", queryName := some "VpnConnectionId" }, .string), + ({ name := "VpnGatewayId", xmlName := some "vpnGatewayId", queryName := some "VpnGatewayId" }, .string)] + toValue x := record [putOpt "Category" x.category, putOpt "CoreNetworkArn" x.coreNetworkArn, putOpt "CoreNetworkAttachmentArn" x.coreNetworkAttachmentArn, putOpt "CustomerGatewayConfiguration" x.customerGatewayConfiguration, putOpt "CustomerGatewayId" x.customerGatewayId, putOpt "GatewayAssociationState" x.gatewayAssociationState, putOpt "Options" x.options, putOpt "PreSharedKeyArn" x.preSharedKeyArn, putOpt "Routes" x.routes, putOpt "State" x.state, putOpt "Tags" x.tags, putOpt "TransitGatewayId" x.transitGatewayId, putOpt "Type" x.type, putOpt "VgwTelemetry" x.vgwTelemetry, putOpt "VpnConcentratorId" x.vpnConcentratorId, putOpt "VpnConnectionId" x.vpnConnectionId, putOpt "VpnGatewayId" x.vpnGatewayId] + ofValue v := do + let category ← v.opt "Category" + let coreNetworkArn ← v.opt "CoreNetworkArn" + let coreNetworkAttachmentArn ← v.opt "CoreNetworkAttachmentArn" + let customerGatewayConfiguration ← v.opt "CustomerGatewayConfiguration" + let customerGatewayId ← v.opt "CustomerGatewayId" + let gatewayAssociationState ← v.opt "GatewayAssociationState" + let options ← v.opt "Options" + let preSharedKeyArn ← v.opt "PreSharedKeyArn" + let routes ← v.opt "Routes" + let state ← v.opt "State" + let tags ← v.opt "Tags" + let transitGatewayId ← v.opt "TransitGatewayId" + let type ← v.opt "Type" + let vgwTelemetry ← v.opt "VgwTelemetry" + let vpnConcentratorId ← v.opt "VpnConcentratorId" + let vpnConnectionId ← v.opt "VpnConnectionId" + let vpnGatewayId ← v.opt "VpnGatewayId" + return { category, coreNetworkArn, coreNetworkAttachmentArn, customerGatewayConfiguration, customerGatewayId, gatewayAssociationState, options, preSharedKeyArn, routes, state, tags, transitGatewayId, type, vgwTelemetry, vpnConcentratorId, vpnConnectionId, vpnGatewayId } + +structure CreateDefaultVpcResult where + /-- Information about the VPC. -/ + vpc : Option Vpc := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateDefaultVpcResult where + schema := .struct "CreateDefaultVpcResult" [({ name := "Vpc", xmlName := some "vpc", queryName := some "Vpc" }, (Shape.schema Vpc))] + toValue x := record [putOpt "Vpc" x.vpc] + ofValue v := do + let vpc ← v.opt "Vpc" + return { vpc } + +structure CreateLaunchTemplateRequest where + /-- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The information for the launch template. -/ + launchTemplateData : RequestLaunchTemplateData + /-- A name for the launch template. -/ + launchTemplateName : String + /-- Reserved for internal use. -/ + operator : Option OperatorRequest := none + /-- The tags to apply to the launch template on creation. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- A description for the first version of the launch template. -/ + versionDescription : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateLaunchTemplateRequest where + schema := .struct "CreateLaunchTemplateRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "LaunchTemplateData", required := true }, (Shape.schema RequestLaunchTemplateData)), + ({ name := "LaunchTemplateName", required := true }, .string), + ({ name := "Operator" }, (Shape.schema OperatorRequest)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "VersionDescription" }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "LaunchTemplateData" x.launchTemplateData, put "LaunchTemplateName" x.launchTemplateName, putOpt "Operator" x.operator, putOpt "TagSpecifications" x.tagSpecifications, putOpt "VersionDescription" x.versionDescription] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let launchTemplateData ← v.req "LaunchTemplateData" + let launchTemplateName ← v.req "LaunchTemplateName" + let operator ← v.opt "Operator" + let tagSpecifications ← v.opt "TagSpecifications" + let versionDescription ← v.opt "VersionDescription" + return { clientToken, dryRun, launchTemplateData, launchTemplateName, operator, tagSpecifications, versionDescription } + +structure CreateLaunchTemplateVersionRequest where + /-- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The information for the launch template. -/ + launchTemplateData : RequestLaunchTemplateData + /-- The ID of the launch template. -/ + launchTemplateId : Option String := none + /-- The name of the launch template. -/ + launchTemplateName : Option String := none + /-- If true , and if a Systems Manager parameter is specified for ImageId , the AMI ID is displayed in the response for imageID . -/ + resolveAlias : Option Bool := none + /-- The version of the launch template on which to base the new version. -/ + sourceVersion : Option String := none + /-- A description for the version of the launch template. -/ + versionDescription : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateLaunchTemplateVersionRequest where + schema := .struct "CreateLaunchTemplateVersionRequest" [({ name := "ClientToken" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "LaunchTemplateData", required := true }, (Shape.schema RequestLaunchTemplateData)), + ({ name := "LaunchTemplateId" }, .string), + ({ name := "LaunchTemplateName" }, .string), + ({ name := "ResolveAlias" }, .bool), + ({ name := "SourceVersion" }, .string), + ({ name := "VersionDescription" }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "DryRun" x.dryRun, put "LaunchTemplateData" x.launchTemplateData, putOpt "LaunchTemplateId" x.launchTemplateId, putOpt "LaunchTemplateName" x.launchTemplateName, putOpt "ResolveAlias" x.resolveAlias, putOpt "SourceVersion" x.sourceVersion, putOpt "VersionDescription" x.versionDescription] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let dryRun ← v.opt "DryRun" + let launchTemplateData ← v.req "LaunchTemplateData" + let launchTemplateId ← v.opt "LaunchTemplateId" + let launchTemplateName ← v.opt "LaunchTemplateName" + let resolveAlias ← v.opt "ResolveAlias" + let sourceVersion ← v.opt "SourceVersion" + let versionDescription ← v.opt "VersionDescription" + return { clientToken, dryRun, launchTemplateData, launchTemplateId, launchTemplateName, resolveAlias, sourceVersion, versionDescription } + +structure CreateNetworkInsightsAccessScopeResult where + /-- The Network Access Scope. -/ + networkInsightsAccessScope : Option NetworkInsightsAccessScope := none + /-- The Network Access Scope content. -/ + networkInsightsAccessScopeContent : Option NetworkInsightsAccessScopeContent := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateNetworkInsightsAccessScopeResult where + schema := .struct "CreateNetworkInsightsAccessScopeResult" [({ name := "NetworkInsightsAccessScope", xmlName := some "networkInsightsAccessScope", queryName := some "NetworkInsightsAccessScope" }, (Shape.schema NetworkInsightsAccessScope)), + ({ name := "NetworkInsightsAccessScopeContent", xmlName := some "networkInsightsAccessScopeContent", queryName := some "NetworkInsightsAccessScopeContent" }, (Shape.schema NetworkInsightsAccessScopeContent))] + toValue x := record [putOpt "NetworkInsightsAccessScope" x.networkInsightsAccessScope, putOpt "NetworkInsightsAccessScopeContent" x.networkInsightsAccessScopeContent] + ofValue v := do + let networkInsightsAccessScope ← v.opt "NetworkInsightsAccessScope" + let networkInsightsAccessScopeContent ← v.opt "NetworkInsightsAccessScopeContent" + return { networkInsightsAccessScope, networkInsightsAccessScopeContent } + +structure CreateVpcResult where + /-- Information about the VPC. -/ + vpc : Option Vpc := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpcResult where + schema := .struct "CreateVpcResult" [({ name := "Vpc", xmlName := some "vpc", queryName := some "Vpc" }, (Shape.schema Vpc))] + toValue x := record [putOpt "Vpc" x.vpc] + ofValue v := do + let vpc ← v.opt "Vpc" + return { vpc } + +/-- Contains the output of CreateVpnConnection. -/ +structure CreateVpnConnectionResult where + /-- Information about the VPN connection. -/ + vpnConnection : Option VpnConnection := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateVpnConnectionResult where + schema := .struct "CreateVpnConnectionResult" [({ name := "VpnConnection", xmlName := some "vpnConnection", queryName := some "VpnConnection" }, (Shape.schema VpnConnection))] + toValue x := record [putOpt "VpnConnection" x.vpnConnection] + ofValue v := do + let vpnConnection ← v.opt "VpnConnection" + return { vpnConnection } + +structure DescribeApplicationStatusResult where + /-- The application statuses for the specified instances. -/ + applicationStatuses : Option ApplicationStatusesResponseType := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeApplicationStatusResult where + schema := .struct "DescribeApplicationStatusResult" [({ name := "ApplicationStatuses", xmlName := some "applicationStatusesResponseType", queryName := some "ApplicationStatusesResponseType" }, (Shape.schema ApplicationStatusesResponseType)), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "ApplicationStatuses" x.applicationStatuses, putOpt "NextToken" x.nextToken] + ofValue v := do + let applicationStatuses ← v.opt "ApplicationStatuses" + let nextToken ← v.opt "NextToken" + return { applicationStatuses, nextToken } + +structure DescribeCapacityReservationFleetsResult where + /-- Information about the Capacity Reservation Fleets. -/ + capacityReservationFleets : Option (List CapacityReservationFleet) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeCapacityReservationFleetsResult where + schema := .struct "DescribeCapacityReservationFleetsResult" [({ name := "CapacityReservationFleets", xmlName := some "capacityReservationFleetSet", queryName := some "CapacityReservationFleetSet" }, (.list (Shape.schema CapacityReservationFleet) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "CapacityReservationFleets" x.capacityReservationFleets, putOpt "NextToken" x.nextToken] + ofValue v := do + let capacityReservationFleets ← v.opt "CapacityReservationFleets" + let nextToken ← v.opt "NextToken" + return { capacityReservationFleets, nextToken } + +structure DescribeConversionTasksResult where + /-- Information about the conversion tasks. -/ + conversionTasks : Option (List ConversionTask) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeConversionTasksResult where + schema := .struct "DescribeConversionTasksResult" [({ name := "ConversionTasks", xmlName := some "conversionTasks", queryName := some "ConversionTasks" }, (.list (Shape.schema ConversionTask) "item"))] + toValue x := record [putOpt "ConversionTasks" x.conversionTasks] + ofValue v := do + let conversionTasks ← v.opt "ConversionTasks" + return { conversionTasks } + +structure DescribeNetworkInsightsAnalysesResult where + /-- Information about the network insights analyses. -/ + networkInsightsAnalyses : Option (List NetworkInsightsAnalysis) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeNetworkInsightsAnalysesResult where + schema := .struct "DescribeNetworkInsightsAnalysesResult" [({ name := "NetworkInsightsAnalyses", xmlName := some "networkInsightsAnalysisSet", queryName := some "NetworkInsightsAnalysisSet" }, (.list (Shape.schema NetworkInsightsAnalysis) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "NetworkInsightsAnalyses" x.networkInsightsAnalyses, putOpt "NextToken" x.nextToken] + ofValue v := do + let networkInsightsAnalyses ← v.opt "NetworkInsightsAnalyses" + let nextToken ← v.opt "NextToken" + return { networkInsightsAnalyses, nextToken } + +/-- Contains the output of DescribeSpotInstanceRequests. -/ +structure DescribeSpotInstanceRequestsResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- The Spot Instance requests. -/ + spotInstanceRequests : Option (List SpotInstanceRequest) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSpotInstanceRequestsResult where + schema := .struct "DescribeSpotInstanceRequestsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "SpotInstanceRequests", xmlName := some "spotInstanceRequestSet", queryName := some "SpotInstanceRequestSet" }, (.list (Shape.schema SpotInstanceRequest) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "SpotInstanceRequests" x.spotInstanceRequests] + ofValue v := do + let nextToken ← v.opt "NextToken" + let spotInstanceRequests ← v.opt "SpotInstanceRequests" + return { nextToken, spotInstanceRequests } + +structure DescribeVerifiedAccessInstanceLoggingConfigurationsResult where + /-- The logging configuration for the Verified Access instances. -/ + loggingConfigurations : Option (List VerifiedAccessInstanceLoggingConfiguration) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVerifiedAccessInstanceLoggingConfigurationsResult where + schema := .struct "DescribeVerifiedAccessInstanceLoggingConfigurationsResult" [({ name := "LoggingConfigurations", xmlName := some "loggingConfigurationSet", queryName := some "LoggingConfigurationSet" }, (.list (Shape.schema VerifiedAccessInstanceLoggingConfiguration) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "LoggingConfigurations" x.loggingConfigurations, putOpt "NextToken" x.nextToken] + ofValue v := do + let loggingConfigurations ← v.opt "LoggingConfigurations" + let nextToken ← v.opt "NextToken" + return { loggingConfigurations, nextToken } + +structure DescribeVpcsResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about the VPCs. -/ + vpcs : Option (List Vpc) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpcsResult where + schema := .struct "DescribeVpcsResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "Vpcs", xmlName := some "vpcSet", queryName := some "VpcSet" }, (.list (Shape.schema Vpc) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "Vpcs" x.vpcs] + ofValue v := do + let nextToken ← v.opt "NextToken" + let vpcs ← v.opt "Vpcs" + return { nextToken, vpcs } + +/-- Contains the output of DescribeVpnConnections. -/ +structure DescribeVpnConnectionsResult where + /-- Information about one or more VPN connections. -/ + vpnConnections : Option (List VpnConnection) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeVpnConnectionsResult where + schema := .struct "DescribeVpnConnectionsResult" [({ name := "VpnConnections", xmlName := some "vpnConnectionSet", queryName := some "VpnConnectionSet" }, (.list (Shape.schema VpnConnection) "item"))] + toValue x := record [putOpt "VpnConnections" x.vpnConnections] + ofValue v := do + let vpnConnections ← v.opt "VpnConnections" + return { vpnConnections } + +/-- Describes a launch template and overrides. -/ +structure FleetLaunchTemplateConfig where + /-- The launch template. -/ + launchTemplateSpecification : Option FleetLaunchTemplateSpecification := none + /-- Any parameters that you specify override the same parameters in the launch template. -/ + overrides : Option (List FleetLaunchTemplateOverrides) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FleetLaunchTemplateConfig where + schema := .struct "FleetLaunchTemplateConfig" [({ name := "LaunchTemplateSpecification", xmlName := some "launchTemplateSpecification", queryName := some "LaunchTemplateSpecification" }, (Shape.schema FleetLaunchTemplateSpecification)), + ({ name := "Overrides", xmlName := some "overrides", queryName := some "Overrides" }, (.list (Shape.schema FleetLaunchTemplateOverrides) "item"))] + toValue x := record [putOpt "LaunchTemplateSpecification" x.launchTemplateSpecification, putOpt "Overrides" x.overrides] + ofValue v := do + let launchTemplateSpecification ← v.opt "LaunchTemplateSpecification" + let overrides ← v.opt "Overrides" + return { launchTemplateSpecification, overrides } + +/-- Describes a launch template and overrides. -/ +structure FleetLaunchTemplateConfigRequest where + /-- The launch template to use. -/ + launchTemplateSpecification : Option FleetLaunchTemplateSpecificationRequest := none + /-- Any parameters that you specify override the same parameters in the launch template. -/ + overrides : Option (List FleetLaunchTemplateOverridesRequest) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FleetLaunchTemplateConfigRequest where + schema := .struct "FleetLaunchTemplateConfigRequest" [({ name := "LaunchTemplateSpecification" }, (Shape.schema FleetLaunchTemplateSpecificationRequest)), + ({ name := "Overrides" }, (.list (Shape.schema FleetLaunchTemplateOverridesRequest) "item"))] + toValue x := record [putOpt "LaunchTemplateSpecification" x.launchTemplateSpecification, putOpt "Overrides" x.overrides] + ofValue v := do + let launchTemplateSpecification ← v.opt "LaunchTemplateSpecification" + let overrides ← v.opt "Overrides" + return { launchTemplateSpecification, overrides } + +structure GetCapacityManagerSupportabilityScoresRequest where + /-- The amount of capacity that you need, in the unit that you specify for CapacityUnit . -/ + capacityAmount : Int + /-- The IDs of the Availability Zones to score, such as use1-az1 . -/ + capacityAvailabilityZoneIds : (List String) + /-- The unit for CapacityAmount . -/ + capacityUnit : CapacityUnit + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The attributes that the instance types must have, such as vCPU and memory ranges. -/ + instanceRequirementsWithMetadata : Option InstanceRequirementsWithMetadataRequest := none + /-- The instance types to score. -/ + instanceTypes : Option (List String) := none + /-- The capacity market to score. -/ + marketType : SupportabilityMarketType +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetCapacityManagerSupportabilityScoresRequest where + schema := .struct "GetCapacityManagerSupportabilityScoresRequest" [({ name := "CapacityAmount", required := true }, .int), + ({ name := "CapacityAvailabilityZoneIds", required := true, xmlName := some "CapacityAvailabilityZoneId" }, (.list .string "item")), + ({ name := "CapacityUnit", required := true }, (Shape.schema CapacityUnit)), + ({ name := "DryRun" }, .bool), + ({ name := "InstanceRequirementsWithMetadata" }, (Shape.schema InstanceRequirementsWithMetadataRequest)), + ({ name := "InstanceTypes", xmlName := some "InstanceType" }, (.list .string "item")), + ({ name := "MarketType", required := true }, (Shape.schema SupportabilityMarketType))] + toValue x := record [put "CapacityAmount" x.capacityAmount, put "CapacityAvailabilityZoneIds" x.capacityAvailabilityZoneIds, put "CapacityUnit" x.capacityUnit, putOpt "DryRun" x.dryRun, putOpt "InstanceRequirementsWithMetadata" x.instanceRequirementsWithMetadata, putOpt "InstanceTypes" x.instanceTypes, put "MarketType" x.marketType] + ofValue v := do + let capacityAmount ← v.req "CapacityAmount" + let capacityAvailabilityZoneIds ← v.req "CapacityAvailabilityZoneIds" + let capacityUnit ← v.req "CapacityUnit" + let dryRun ← v.opt "DryRun" + let instanceRequirementsWithMetadata ← v.opt "InstanceRequirementsWithMetadata" + let instanceTypes ← v.opt "InstanceTypes" + let marketType ← v.req "MarketType" + return { capacityAmount, capacityAvailabilityZoneIds, capacityUnit, dryRun, instanceRequirementsWithMetadata, instanceTypes, marketType } + +structure GetLaunchTemplateDataResult where + /-- The instance data. -/ + launchTemplateData : Option ResponseLaunchTemplateData := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetLaunchTemplateDataResult where + schema := .struct "GetLaunchTemplateDataResult" [({ name := "LaunchTemplateData", xmlName := some "launchTemplateData", queryName := some "LaunchTemplateData" }, (Shape.schema ResponseLaunchTemplateData))] + toValue x := record [putOpt "LaunchTemplateData" x.launchTemplateData] + ofValue v := do + let launchTemplateData ← v.opt "LaunchTemplateData" + return { launchTemplateData } + +structure GetNetworkInsightsAccessScopeAnalysisFindingsResult where + /-- The findings associated with Network Access Scope Analysis. -/ + analysisFindings : Option (List AccessScopeAnalysisFinding) := none + /-- The status of Network Access Scope Analysis. -/ + analysisStatus : Option AnalysisStatus := none + /-- The ID of the Network Access Scope analysis. -/ + networkInsightsAccessScopeAnalysisId : Option String := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetNetworkInsightsAccessScopeAnalysisFindingsResult where + schema := .struct "GetNetworkInsightsAccessScopeAnalysisFindingsResult" [({ name := "AnalysisFindings", xmlName := some "analysisFindingSet", queryName := some "AnalysisFindingSet" }, (.list (Shape.schema AccessScopeAnalysisFinding) "item")), + ({ name := "AnalysisStatus", xmlName := some "analysisStatus", queryName := some "AnalysisStatus" }, (Shape.schema AnalysisStatus)), + ({ name := "NetworkInsightsAccessScopeAnalysisId", xmlName := some "networkInsightsAccessScopeAnalysisId", queryName := some "NetworkInsightsAccessScopeAnalysisId" }, .string), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "AnalysisFindings" x.analysisFindings, putOpt "AnalysisStatus" x.analysisStatus, putOpt "NetworkInsightsAccessScopeAnalysisId" x.networkInsightsAccessScopeAnalysisId, putOpt "NextToken" x.nextToken] + ofValue v := do + let analysisFindings ← v.opt "AnalysisFindings" + let analysisStatus ← v.opt "AnalysisStatus" + let networkInsightsAccessScopeAnalysisId ← v.opt "NetworkInsightsAccessScopeAnalysisId" + let nextToken ← v.opt "NextToken" + return { analysisFindings, analysisStatus, networkInsightsAccessScopeAnalysisId, nextToken } + +structure GetNetworkInsightsAccessScopeContentResult where + /-- The Network Access Scope content. -/ + networkInsightsAccessScopeContent : Option NetworkInsightsAccessScopeContent := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetNetworkInsightsAccessScopeContentResult where + schema := .struct "GetNetworkInsightsAccessScopeContentResult" [({ name := "NetworkInsightsAccessScopeContent", xmlName := some "networkInsightsAccessScopeContent", queryName := some "NetworkInsightsAccessScopeContent" }, (Shape.schema NetworkInsightsAccessScopeContent))] + toValue x := record [putOpt "NetworkInsightsAccessScopeContent" x.networkInsightsAccessScopeContent] + ofValue v := do + let networkInsightsAccessScopeContent ← v.opt "NetworkInsightsAccessScopeContent" + return { networkInsightsAccessScopeContent } + +structure GetSpotPlacementScoresRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Specify true so that the response returns scores that include Local Zones. -/ + includeLocalZones : Option Bool := none + /-- The attributes for the instance types. -/ + instanceRequirementsWithMetadata : Option InstanceRequirementsWithMetadataRequest := none + /-- The instance types. -/ + instanceTypes : Option (List String) := none + /-- The maximum number of items to return for this request. -/ + maxResults : Option Int := none + /-- The token returned from a previous paginated request. -/ + nextToken : Option String := none + /-- The Regions used to narrow down the list of Regions to be scored. -/ + regionNames : Option (List String) := none + /-- Specify true so that the response returns a list of scored Availability Zones. -/ + singleAvailabilityZone : Option Bool := none + /-- The target capacity. -/ + targetCapacity : Int + /-- The unit for the target capacity. -/ + targetCapacityUnitType : Option TargetCapacityUnitType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetSpotPlacementScoresRequest where + schema := .struct "GetSpotPlacementScoresRequest" [({ name := "DryRun" }, .bool), + ({ name := "IncludeLocalZones" }, .bool), + ({ name := "InstanceRequirementsWithMetadata" }, (Shape.schema InstanceRequirementsWithMetadataRequest)), + ({ name := "InstanceTypes", xmlName := some "InstanceType" }, (.list .string "member")), + ({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "RegionNames", xmlName := some "RegionName" }, (.list .string "member")), + ({ name := "SingleAvailabilityZone" }, .bool), + ({ name := "TargetCapacity", required := true }, .int), + ({ name := "TargetCapacityUnitType" }, (Shape.schema TargetCapacityUnitType))] + toValue x := record [putOpt "DryRun" x.dryRun, putOpt "IncludeLocalZones" x.includeLocalZones, putOpt "InstanceRequirementsWithMetadata" x.instanceRequirementsWithMetadata, putOpt "InstanceTypes" x.instanceTypes, putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "RegionNames" x.regionNames, putOpt "SingleAvailabilityZone" x.singleAvailabilityZone, put "TargetCapacity" x.targetCapacity, putOpt "TargetCapacityUnitType" x.targetCapacityUnitType] + ofValue v := do + let dryRun ← v.opt "DryRun" + let includeLocalZones ← v.opt "IncludeLocalZones" + let instanceRequirementsWithMetadata ← v.opt "InstanceRequirementsWithMetadata" + let instanceTypes ← v.opt "InstanceTypes" + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let regionNames ← v.opt "RegionNames" + let singleAvailabilityZone ← v.opt "SingleAvailabilityZone" + let targetCapacity ← v.req "TargetCapacity" + let targetCapacityUnitType ← v.opt "TargetCapacityUnitType" + return { dryRun, includeLocalZones, instanceRequirementsWithMetadata, instanceTypes, maxResults, nextToken, regionNames, singleAvailabilityZone, targetCapacity, targetCapacityUnitType } + +structure ImportInstanceResult where + /-- Information about the conversion task. -/ + conversionTask : Option ConversionTask := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportInstanceResult where + schema := .struct "ImportInstanceResult" [({ name := "ConversionTask", xmlName := some "conversionTask", queryName := some "ConversionTask" }, (Shape.schema ConversionTask))] + toValue x := record [putOpt "ConversionTask" x.conversionTask] + ofValue v := do + let conversionTask ← v.opt "ConversionTask" + return { conversionTask } + +structure ImportVolumeResult where + /-- Information about the conversion task. -/ + conversionTask : Option ConversionTask := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImportVolumeResult where + schema := .struct "ImportVolumeResult" [({ name := "ConversionTask", xmlName := some "conversionTask", queryName := some "ConversionTask" }, (Shape.schema ConversionTask))] + toValue x := record [putOpt "ConversionTask" x.conversionTask] + ofValue v := do + let conversionTask ← v.opt "ConversionTask" + return { conversionTask } + +/-- Describes a launch template and overrides. -/ +structure LaunchTemplateAndOverridesResponse where + /-- The launch template. -/ + launchTemplateSpecification : Option FleetLaunchTemplateSpecification := none + /-- Any parameters that you specify override the same parameters in the launch template. -/ + overrides : Option FleetLaunchTemplateOverrides := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateAndOverridesResponse where + schema := .struct "LaunchTemplateAndOverridesResponse" [({ name := "LaunchTemplateSpecification", xmlName := some "launchTemplateSpecification", queryName := some "LaunchTemplateSpecification" }, (Shape.schema FleetLaunchTemplateSpecification)), + ({ name := "Overrides", xmlName := some "overrides", queryName := some "Overrides" }, (Shape.schema FleetLaunchTemplateOverrides))] + toValue x := record [putOpt "LaunchTemplateSpecification" x.launchTemplateSpecification, putOpt "Overrides" x.overrides] + ofValue v := do + let launchTemplateSpecification ← v.opt "LaunchTemplateSpecification" + let overrides ← v.opt "Overrides" + return { launchTemplateSpecification, overrides } + +/-- Describes a launch template and overrides. -/ +structure LaunchTemplateConfig where + /-- The launch template to use. -/ + launchTemplateSpecification : Option FleetLaunchTemplateSpecification := none + /-- Any parameters that you specify override the same parameters in the launch template. -/ + overrides : Option (List LaunchTemplateOverrides) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateConfig where + schema := .struct "LaunchTemplateConfig" [({ name := "LaunchTemplateSpecification", xmlName := some "launchTemplateSpecification", queryName := some "LaunchTemplateSpecification" }, (Shape.schema FleetLaunchTemplateSpecification)), + ({ name := "Overrides", xmlName := some "overrides", queryName := some "Overrides" }, (.list (Shape.schema LaunchTemplateOverrides) "item"))] + toValue x := record [putOpt "LaunchTemplateSpecification" x.launchTemplateSpecification, putOpt "Overrides" x.overrides] + ofValue v := do + let launchTemplateSpecification ← v.opt "LaunchTemplateSpecification" + let overrides ← v.opt "Overrides" + return { launchTemplateSpecification, overrides } + +/-- Describes a launch template version. -/ +structure LaunchTemplateVersion where + /-- The time the version was created. -/ + createTime : Option Timestamp := none + /-- The principal that created the version. -/ + createdBy : Option String := none + /-- Indicates whether the version is the default version. -/ + defaultVersion : Option Bool := none + /-- Information about the launch template. -/ + launchTemplateData : Option ResponseLaunchTemplateData := none + /-- The ID of the launch template. -/ + launchTemplateId : Option String := none + /-- The name of the launch template. -/ + launchTemplateName : Option String := none + /-- The entity that manages the launch template. -/ + operator : Option OperatorResponse := none + /-- The description for the version. -/ + versionDescription : Option String := none + /-- The version number. -/ + versionNumber : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LaunchTemplateVersion where + schema := .struct "LaunchTemplateVersion" [({ name := "CreateTime", xmlName := some "createTime", queryName := some "CreateTime" }, (.time none)), + ({ name := "CreatedBy", xmlName := some "createdBy", queryName := some "CreatedBy" }, .string), + ({ name := "DefaultVersion", xmlName := some "defaultVersion", queryName := some "DefaultVersion" }, .bool), + ({ name := "LaunchTemplateData", xmlName := some "launchTemplateData", queryName := some "LaunchTemplateData" }, (Shape.schema ResponseLaunchTemplateData)), + ({ name := "LaunchTemplateId", xmlName := some "launchTemplateId", queryName := some "LaunchTemplateId" }, .string), + ({ name := "LaunchTemplateName", xmlName := some "launchTemplateName", queryName := some "LaunchTemplateName" }, .string), + ({ name := "Operator", xmlName := some "operator", queryName := some "Operator" }, (Shape.schema OperatorResponse)), + ({ name := "VersionDescription", xmlName := some "versionDescription", queryName := some "VersionDescription" }, .string), + ({ name := "VersionNumber", xmlName := some "versionNumber", queryName := some "VersionNumber" }, .int)] + toValue x := record [putOpt "CreateTime" x.createTime, putOpt "CreatedBy" x.createdBy, putOpt "DefaultVersion" x.defaultVersion, putOpt "LaunchTemplateData" x.launchTemplateData, putOpt "LaunchTemplateId" x.launchTemplateId, putOpt "LaunchTemplateName" x.launchTemplateName, putOpt "Operator" x.operator, putOpt "VersionDescription" x.versionDescription, putOpt "VersionNumber" x.versionNumber] + ofValue v := do + let createTime ← v.opt "CreateTime" + let createdBy ← v.opt "CreatedBy" + let defaultVersion ← v.opt "DefaultVersion" + let launchTemplateData ← v.opt "LaunchTemplateData" + let launchTemplateId ← v.opt "LaunchTemplateId" + let launchTemplateName ← v.opt "LaunchTemplateName" + let operator ← v.opt "Operator" + let versionDescription ← v.opt "VersionDescription" + let versionNumber ← v.opt "VersionNumber" + return { createTime, createdBy, defaultVersion, launchTemplateData, launchTemplateId, launchTemplateName, operator, versionDescription, versionNumber } + +structure ModifyVerifiedAccessInstanceLoggingConfigurationResult where + /-- The logging configuration for the Verified Access instance. -/ + loggingConfiguration : Option VerifiedAccessInstanceLoggingConfiguration := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVerifiedAccessInstanceLoggingConfigurationResult where + schema := .struct "ModifyVerifiedAccessInstanceLoggingConfigurationResult" [({ name := "LoggingConfiguration", xmlName := some "loggingConfiguration", queryName := some "LoggingConfiguration" }, (Shape.schema VerifiedAccessInstanceLoggingConfiguration))] + toValue x := record [putOpt "LoggingConfiguration" x.loggingConfiguration] + ofValue v := do + let loggingConfiguration ← v.opt "LoggingConfiguration" + return { loggingConfiguration } + +structure ModifyVpnConnectionOptionsResult where + /-- Information about the VPN connection. -/ + vpnConnection : Option VpnConnection := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpnConnectionOptionsResult where + schema := .struct "ModifyVpnConnectionOptionsResult" [({ name := "VpnConnection", xmlName := some "vpnConnection", queryName := some "VpnConnection" }, (Shape.schema VpnConnection))] + toValue x := record [putOpt "VpnConnection" x.vpnConnection] + ofValue v := do + let vpnConnection ← v.opt "VpnConnection" + return { vpnConnection } + +structure ModifyVpnConnectionResult where + /-- Information about the VPN connection. -/ + vpnConnection : Option VpnConnection := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpnConnectionResult where + schema := .struct "ModifyVpnConnectionResult" [({ name := "VpnConnection", xmlName := some "vpnConnection", queryName := some "VpnConnection" }, (Shape.schema VpnConnection))] + toValue x := record [putOpt "VpnConnection" x.vpnConnection] + ofValue v := do + let vpnConnection ← v.opt "VpnConnection" + return { vpnConnection } + +structure ModifyVpnTunnelCertificateResult where + /-- Information about the VPN connection. -/ + vpnConnection : Option VpnConnection := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpnTunnelCertificateResult where + schema := .struct "ModifyVpnTunnelCertificateResult" [({ name := "VpnConnection", xmlName := some "vpnConnection", queryName := some "VpnConnection" }, (Shape.schema VpnConnection))] + toValue x := record [putOpt "VpnConnection" x.vpnConnection] + ofValue v := do + let vpnConnection ← v.opt "VpnConnection" + return { vpnConnection } + +structure ModifyVpnTunnelOptionsResult where + /-- Information about the VPN connection. -/ + vpnConnection : Option VpnConnection := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyVpnTunnelOptionsResult where + schema := .struct "ModifyVpnTunnelOptionsResult" [({ name := "VpnConnection", xmlName := some "vpnConnection", queryName := some "VpnConnection" }, (Shape.schema VpnConnection))] + toValue x := record [putOpt "VpnConnection" x.vpnConnection] + ofValue v := do + let vpnConnection ← v.opt "VpnConnection" + return { vpnConnection } + +/-- Contains the output of RequestSpotInstances. -/ +structure RequestSpotInstancesResult where + /-- The Spot Instance requests. -/ + spotInstanceRequests : Option (List SpotInstanceRequest) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RequestSpotInstancesResult where + schema := .struct "RequestSpotInstancesResult" [({ name := "SpotInstanceRequests", xmlName := some "spotInstanceRequestSet", queryName := some "SpotInstanceRequestSet" }, (.list (Shape.schema SpotInstanceRequest) "item"))] + toValue x := record [putOpt "SpotInstanceRequests" x.spotInstanceRequests] + ofValue v := do + let spotInstanceRequests ← v.opt "SpotInstanceRequests" + return { spotInstanceRequests } + +/-- Describes a launch request for one or more instances, and includes owner, requester, and security group information that applies to all instances in the launch request. -/ +structure Reservation where + /-- Not supported. -/ + groups : Option (List GroupIdentifier) := none + /-- The instances. -/ + instances : Option (List Instance) := none + /-- The ID of the Amazon Web Services account that owns the reservation. -/ + ownerId : Option String := none + /-- The ID of the requester that launched the instances on your behalf (for example, Amazon Web Services Management Console or Auto Scaling). -/ + requesterId : Option String := none + /-- The ID of the reservation. -/ + reservationId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Reservation where + schema := .struct "Reservation" [({ name := "Groups", xmlName := some "groupSet", queryName := some "GroupSet" }, (.list (Shape.schema GroupIdentifier) "item")), + ({ name := "Instances", xmlName := some "instancesSet", queryName := some "InstancesSet" }, (.list (Shape.schema Instance) "item")), + ({ name := "OwnerId", xmlName := some "ownerId", queryName := some "OwnerId" }, .string), + ({ name := "RequesterId", xmlName := some "requesterId", queryName := some "RequesterId" }, .string), + ({ name := "ReservationId", xmlName := some "reservationId", queryName := some "ReservationId" }, .string)] + toValue x := record [putOpt "Groups" x.groups, putOpt "Instances" x.instances, putOpt "OwnerId" x.ownerId, putOpt "RequesterId" x.requesterId, putOpt "ReservationId" x.reservationId] + ofValue v := do + let groups ← v.opt "Groups" + let instances ← v.opt "Instances" + let ownerId ← v.opt "OwnerId" + let requesterId ← v.opt "RequesterId" + let reservationId ← v.opt "ReservationId" + return { groups, instances, ownerId, requesterId, reservationId } + +structure StartNetworkInsightsAnalysisResult where + /-- Information about the network insights analysis. -/ + networkInsightsAnalysis : Option NetworkInsightsAnalysis := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StartNetworkInsightsAnalysisResult where + schema := .struct "StartNetworkInsightsAnalysisResult" [({ name := "NetworkInsightsAnalysis", xmlName := some "networkInsightsAnalysis", queryName := some "NetworkInsightsAnalysis" }, (Shape.schema NetworkInsightsAnalysis))] + toValue x := record [putOpt "NetworkInsightsAnalysis" x.networkInsightsAnalysis] + ofValue v := do + let networkInsightsAnalysis ← v.opt "NetworkInsightsAnalysis" + return { networkInsightsAnalysis } + +/-- Describes the instances that could not be launched by the fleet. -/ +structure CreateFleetError where + /-- The error code that indicates why the instance could not be launched. -/ + errorCode : Option String := none + /-- The error message that describes why the instance could not be launched. -/ + errorMessage : Option String := none + /-- The launch templates and overrides that were used for launching the instances. -/ + launchTemplateAndOverrides : Option LaunchTemplateAndOverridesResponse := none + /-- Indicates if the instance that could not be launched was a Spot, On-Demand, Capacity Block for ML, or interruptible Capacity Reservation instance. -/ + lifecycle : Option InstanceLifecycle := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateFleetError where + schema := .struct "CreateFleetError" [({ name := "ErrorCode", xmlName := some "errorCode", queryName := some "ErrorCode" }, .string), + ({ name := "ErrorMessage", xmlName := some "errorMessage", queryName := some "ErrorMessage" }, .string), + ({ name := "LaunchTemplateAndOverrides", xmlName := some "launchTemplateAndOverrides", queryName := some "LaunchTemplateAndOverrides" }, (Shape.schema LaunchTemplateAndOverridesResponse)), + ({ name := "Lifecycle", xmlName := some "lifecycle", queryName := some "Lifecycle" }, (Shape.schema InstanceLifecycle))] + toValue x := record [putOpt "ErrorCode" x.errorCode, putOpt "ErrorMessage" x.errorMessage, putOpt "LaunchTemplateAndOverrides" x.launchTemplateAndOverrides, putOpt "Lifecycle" x.lifecycle] + ofValue v := do + let errorCode ← v.opt "ErrorCode" + let errorMessage ← v.opt "ErrorMessage" + let launchTemplateAndOverrides ← v.opt "LaunchTemplateAndOverrides" + let lifecycle ← v.opt "Lifecycle" + return { errorCode, errorMessage, launchTemplateAndOverrides, lifecycle } + +/-- Describes the instances that were launched by the fleet. -/ +structure CreateFleetInstance where + /-- The name of the Availability Zone in which the instance was launched. -/ + availabilityZone : Option String := none + /-- The ID of the Availability Zone in which the instance was launched. -/ + availabilityZoneId : Option String := none + /-- The IDs of the instances. -/ + instanceIds : Option (List String) := none + /-- The instance type. -/ + instanceType : Option InstanceType := none + /-- The launch templates and overrides that were used for launching the instances. -/ + launchTemplateAndOverrides : Option LaunchTemplateAndOverridesResponse := none + /-- Indicates if the instance that was launched is a Spot, On-Demand, Capacity Block for ML, or interruptible Capacity Reservation instance. -/ + lifecycle : Option InstanceLifecycle := none + /-- The value is windows for Windows instances in an EC2 Fleet. -/ + platform : Option PlatformValues := none + /-- The ID of the subnet in which the instance was launched. -/ + subnetId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateFleetInstance where + schema := .struct "CreateFleetInstance" [({ name := "AvailabilityZone", xmlName := some "availabilityZone", queryName := some "AvailabilityZone" }, .string), + ({ name := "AvailabilityZoneId", xmlName := some "availabilityZoneId", queryName := some "AvailabilityZoneId" }, .string), + ({ name := "InstanceIds", xmlName := some "instanceIds", queryName := some "InstanceIds" }, (.list .string "item")), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "LaunchTemplateAndOverrides", xmlName := some "launchTemplateAndOverrides", queryName := some "LaunchTemplateAndOverrides" }, (Shape.schema LaunchTemplateAndOverridesResponse)), + ({ name := "Lifecycle", xmlName := some "lifecycle", queryName := some "Lifecycle" }, (Shape.schema InstanceLifecycle)), + ({ name := "Platform", xmlName := some "platform", queryName := some "Platform" }, (Shape.schema PlatformValues)), + ({ name := "SubnetId", xmlName := some "subnetId", queryName := some "SubnetId" }, .string)] + toValue x := record [putOpt "AvailabilityZone" x.availabilityZone, putOpt "AvailabilityZoneId" x.availabilityZoneId, putOpt "InstanceIds" x.instanceIds, putOpt "InstanceType" x.instanceType, putOpt "LaunchTemplateAndOverrides" x.launchTemplateAndOverrides, putOpt "Lifecycle" x.lifecycle, putOpt "Platform" x.platform, putOpt "SubnetId" x.subnetId] + ofValue v := do + let availabilityZone ← v.opt "AvailabilityZone" + let availabilityZoneId ← v.opt "AvailabilityZoneId" + let instanceIds ← v.opt "InstanceIds" + let instanceType ← v.opt "InstanceType" + let launchTemplateAndOverrides ← v.opt "LaunchTemplateAndOverrides" + let lifecycle ← v.opt "Lifecycle" + let platform ← v.opt "Platform" + let subnetId ← v.opt "SubnetId" + return { availabilityZone, availabilityZoneId, instanceIds, instanceType, launchTemplateAndOverrides, lifecycle, platform, subnetId } + +structure CreateFleetRequest where + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Reserved. -/ + context : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet. -/ + excessCapacityTerminationPolicy : Option FleetExcessCapacityTerminationPolicy := none + /-- The configuration for the EC2 Fleet. -/ + launchTemplateConfigs : (List FleetLaunchTemplateConfigRequest) + /-- Describes the configuration of On-Demand Instances in an EC2 Fleet. -/ + onDemandOptions : Option OnDemandOptionsRequest := none + /-- Indicates whether EC2 Fleet should replace unhealthy Spot Instances. -/ + replaceUnhealthyInstances : Option Bool := none + /-- Defines EC2 Fleet preferences for utilizing reserved capacity when DefaultTargetCapacityType is set to reserved-capacity . -/ + reservedCapacityOptions : Option ReservedCapacityOptionsRequest := none + /-- Describes the configuration of Spot Instances in an EC2 Fleet. -/ + spotOptions : Option SpotOptionsRequest := none + /-- The key-value pair for tagging the EC2 Fleet request on creation. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The number of units to request. -/ + targetCapacitySpecification : TargetCapacitySpecificationRequest + /-- Indicates whether running instances should be terminated when the EC2 Fleet expires. -/ + terminateInstancesWithExpiration : Option Bool := none + /-- The fleet type. -/ + type : Option FleetType := none + /-- The start date and time of the request, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). -/ + validFrom : Option Timestamp := none + /-- The end date and time of the request, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). -/ + validUntil : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateFleetRequest where + schema := .struct "CreateFleetRequest" [({ name := "ClientToken" }, .string), + ({ name := "Context" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "ExcessCapacityTerminationPolicy" }, (Shape.schema FleetExcessCapacityTerminationPolicy)), + ({ name := "LaunchTemplateConfigs", required := true }, (.list (Shape.schema FleetLaunchTemplateConfigRequest) "item")), + ({ name := "OnDemandOptions" }, (Shape.schema OnDemandOptionsRequest)), + ({ name := "ReplaceUnhealthyInstances" }, .bool), + ({ name := "ReservedCapacityOptions" }, (Shape.schema ReservedCapacityOptionsRequest)), + ({ name := "SpotOptions" }, (Shape.schema SpotOptionsRequest)), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TargetCapacitySpecification", required := true }, (Shape.schema TargetCapacitySpecificationRequest)), + ({ name := "TerminateInstancesWithExpiration" }, .bool), + ({ name := "Type" }, (Shape.schema FleetType)), + ({ name := "ValidFrom" }, (.time none)), + ({ name := "ValidUntil" }, (.time none))] + toValue x := record [putOpt "ClientToken" x.clientToken, putOpt "Context" x.context, putOpt "DryRun" x.dryRun, putOpt "ExcessCapacityTerminationPolicy" x.excessCapacityTerminationPolicy, put "LaunchTemplateConfigs" x.launchTemplateConfigs, putOpt "OnDemandOptions" x.onDemandOptions, putOpt "ReplaceUnhealthyInstances" x.replaceUnhealthyInstances, putOpt "ReservedCapacityOptions" x.reservedCapacityOptions, putOpt "SpotOptions" x.spotOptions, putOpt "TagSpecifications" x.tagSpecifications, put "TargetCapacitySpecification" x.targetCapacitySpecification, putOpt "TerminateInstancesWithExpiration" x.terminateInstancesWithExpiration, putOpt "Type" x.type, putOpt "ValidFrom" x.validFrom, putOpt "ValidUntil" x.validUntil] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let context ← v.opt "Context" + let dryRun ← v.opt "DryRun" + let excessCapacityTerminationPolicy ← v.opt "ExcessCapacityTerminationPolicy" + let launchTemplateConfigs ← v.req "LaunchTemplateConfigs" + let onDemandOptions ← v.opt "OnDemandOptions" + let replaceUnhealthyInstances ← v.opt "ReplaceUnhealthyInstances" + let reservedCapacityOptions ← v.opt "ReservedCapacityOptions" + let spotOptions ← v.opt "SpotOptions" + let tagSpecifications ← v.opt "TagSpecifications" + let targetCapacitySpecification ← v.req "TargetCapacitySpecification" + let terminateInstancesWithExpiration ← v.opt "TerminateInstancesWithExpiration" + let type ← v.opt "Type" + let validFrom ← v.opt "ValidFrom" + let validUntil ← v.opt "ValidUntil" + return { clientToken, context, dryRun, excessCapacityTerminationPolicy, launchTemplateConfigs, onDemandOptions, replaceUnhealthyInstances, reservedCapacityOptions, spotOptions, tagSpecifications, targetCapacitySpecification, terminateInstancesWithExpiration, type, validFrom, validUntil } + +structure CreateLaunchTemplateVersionResult where + /-- Information about the launch template version. -/ + launchTemplateVersion : Option LaunchTemplateVersion := none + /-- If the new version of the launch template contains parameters or parameter combinations that are not valid, an error code and an error message are returned for each issue that's found. -/ + warning : Option ValidationWarning := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateLaunchTemplateVersionResult where + schema := .struct "CreateLaunchTemplateVersionResult" [({ name := "LaunchTemplateVersion", xmlName := some "launchTemplateVersion", queryName := some "LaunchTemplateVersion" }, (Shape.schema LaunchTemplateVersion)), + ({ name := "Warning", xmlName := some "warning", queryName := some "Warning" }, (Shape.schema ValidationWarning))] + toValue x := record [putOpt "LaunchTemplateVersion" x.launchTemplateVersion, putOpt "Warning" x.warning] + ofValue v := do + let launchTemplateVersion ← v.opt "LaunchTemplateVersion" + let warning ← v.opt "Warning" + return { launchTemplateVersion, warning } + +/-- Describes the instances that could not be launched by the fleet. -/ +structure DescribeFleetError where + /-- The error code that indicates why the instance could not be launched. -/ + errorCode : Option String := none + /-- The error message that describes why the instance could not be launched. -/ + errorMessage : Option String := none + /-- The launch templates and overrides that were used for launching the instances. -/ + launchTemplateAndOverrides : Option LaunchTemplateAndOverridesResponse := none + /-- Indicates if the instance that could not be launched was a Spot, On-Demand, Capacity Block for ML, or interruptible Capacity Reservation instance. -/ + lifecycle : Option InstanceLifecycle := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeFleetError where + schema := .struct "DescribeFleetError" [({ name := "ErrorCode", xmlName := some "errorCode", queryName := some "ErrorCode" }, .string), + ({ name := "ErrorMessage", xmlName := some "errorMessage", queryName := some "ErrorMessage" }, .string), + ({ name := "LaunchTemplateAndOverrides", xmlName := some "launchTemplateAndOverrides", queryName := some "LaunchTemplateAndOverrides" }, (Shape.schema LaunchTemplateAndOverridesResponse)), + ({ name := "Lifecycle", xmlName := some "lifecycle", queryName := some "Lifecycle" }, (Shape.schema InstanceLifecycle))] + toValue x := record [putOpt "ErrorCode" x.errorCode, putOpt "ErrorMessage" x.errorMessage, putOpt "LaunchTemplateAndOverrides" x.launchTemplateAndOverrides, putOpt "Lifecycle" x.lifecycle] + ofValue v := do + let errorCode ← v.opt "ErrorCode" + let errorMessage ← v.opt "ErrorMessage" + let launchTemplateAndOverrides ← v.opt "LaunchTemplateAndOverrides" + let lifecycle ← v.opt "Lifecycle" + return { errorCode, errorMessage, launchTemplateAndOverrides, lifecycle } + +/-- Describes the instances that were launched by the fleet. -/ +structure DescribeFleetsInstances where + /-- The IDs of the instances. -/ + instanceIds : Option (List String) := none + /-- The instance type. -/ + instanceType : Option InstanceType := none + /-- The launch templates and overrides that were used for launching the instances. -/ + launchTemplateAndOverrides : Option LaunchTemplateAndOverridesResponse := none + /-- Indicates if the instance that was launched is a Spot, On-Demand, Capacity Block for ML, or interruptible Capacity Reservation instance. -/ + lifecycle : Option InstanceLifecycle := none + /-- The value is windows for Windows instances in an EC2 Fleet. -/ + platform : Option PlatformValues := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeFleetsInstances where + schema := .struct "DescribeFleetsInstances" [({ name := "InstanceIds", xmlName := some "instanceIds", queryName := some "InstanceIds" }, (.list .string "item")), + ({ name := "InstanceType", xmlName := some "instanceType", queryName := some "InstanceType" }, (Shape.schema InstanceType)), + ({ name := "LaunchTemplateAndOverrides", xmlName := some "launchTemplateAndOverrides", queryName := some "LaunchTemplateAndOverrides" }, (Shape.schema LaunchTemplateAndOverridesResponse)), + ({ name := "Lifecycle", xmlName := some "lifecycle", queryName := some "Lifecycle" }, (Shape.schema InstanceLifecycle)), + ({ name := "Platform", xmlName := some "platform", queryName := some "Platform" }, (Shape.schema PlatformValues))] + toValue x := record [putOpt "InstanceIds" x.instanceIds, putOpt "InstanceType" x.instanceType, putOpt "LaunchTemplateAndOverrides" x.launchTemplateAndOverrides, putOpt "Lifecycle" x.lifecycle, putOpt "Platform" x.platform] + ofValue v := do + let instanceIds ← v.opt "InstanceIds" + let instanceType ← v.opt "InstanceType" + let launchTemplateAndOverrides ← v.opt "LaunchTemplateAndOverrides" + let lifecycle ← v.opt "Lifecycle" + let platform ← v.opt "Platform" + return { instanceIds, instanceType, launchTemplateAndOverrides, lifecycle, platform } + +structure DescribeInstancesResult where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about the reservations. -/ + reservations : Option (List Reservation) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeInstancesResult where + schema := .struct "DescribeInstancesResult" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "Reservations", xmlName := some "reservationSet", queryName := some "ReservationSet" }, (.list (Shape.schema Reservation) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "Reservations" x.reservations] + ofValue v := do + let nextToken ← v.opt "NextToken" + let reservations ← v.opt "Reservations" + return { nextToken, reservations } + +structure DescribeLaunchTemplateVersionsResult where + /-- Information about the launch template versions. -/ + launchTemplateVersions : Option (List LaunchTemplateVersion) := none + /-- The token to use to retrieve the next page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeLaunchTemplateVersionsResult where + schema := .struct "DescribeLaunchTemplateVersionsResult" [({ name := "LaunchTemplateVersions", xmlName := some "launchTemplateVersionSet", queryName := some "LaunchTemplateVersionSet" }, (.list (Shape.schema LaunchTemplateVersion) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "LaunchTemplateVersions" x.launchTemplateVersions, putOpt "NextToken" x.nextToken] + ofValue v := do + let launchTemplateVersions ← v.opt "LaunchTemplateVersions" + let nextToken ← v.opt "NextToken" + return { launchTemplateVersions, nextToken } + +structure ModifyFleetRequest where + /-- Reserved. -/ + context : Option String := none + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet. -/ + excessCapacityTerminationPolicy : Option FleetExcessCapacityTerminationPolicy := none + /-- The ID of the EC2 Fleet. -/ + fleetId : String + /-- The launch template and overrides. -/ + launchTemplateConfigs : Option (List FleetLaunchTemplateConfigRequest) := none + /-- The size of the EC2 Fleet. -/ + targetCapacitySpecification : Option TargetCapacitySpecificationRequest := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifyFleetRequest where + schema := .struct "ModifyFleetRequest" [({ name := "Context" }, .string), + ({ name := "DryRun" }, .bool), + ({ name := "ExcessCapacityTerminationPolicy" }, (Shape.schema FleetExcessCapacityTerminationPolicy)), + ({ name := "FleetId", required := true }, .string), + ({ name := "LaunchTemplateConfigs", xmlName := some "LaunchTemplateConfig" }, (.list (Shape.schema FleetLaunchTemplateConfigRequest) "item")), + ({ name := "TargetCapacitySpecification" }, (Shape.schema TargetCapacitySpecificationRequest))] + toValue x := record [putOpt "Context" x.context, putOpt "DryRun" x.dryRun, putOpt "ExcessCapacityTerminationPolicy" x.excessCapacityTerminationPolicy, put "FleetId" x.fleetId, putOpt "LaunchTemplateConfigs" x.launchTemplateConfigs, putOpt "TargetCapacitySpecification" x.targetCapacitySpecification] + ofValue v := do + let context ← v.opt "Context" + let dryRun ← v.opt "DryRun" + let excessCapacityTerminationPolicy ← v.opt "ExcessCapacityTerminationPolicy" + let fleetId ← v.req "FleetId" + let launchTemplateConfigs ← v.opt "LaunchTemplateConfigs" + let targetCapacitySpecification ← v.opt "TargetCapacitySpecification" + return { context, dryRun, excessCapacityTerminationPolicy, fleetId, launchTemplateConfigs, targetCapacitySpecification } + +/-- Contains the parameters for ModifySpotFleetRequest. -/ +structure ModifySpotFleetRequestRequest where + /-- Reserved. -/ + context : Option String := none + /-- Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet. -/ + excessCapacityTerminationPolicy : Option ExcessCapacityTerminationPolicy := none + /-- The launch template and overrides. -/ + launchTemplateConfigs : Option (List LaunchTemplateConfig) := none + /-- The number of On-Demand Instances in the fleet. -/ + onDemandTargetCapacity : Option Int := none + /-- The ID of the Spot Fleet request. -/ + spotFleetRequestId : String + /-- The size of the fleet. -/ + targetCapacity : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModifySpotFleetRequestRequest where + schema := .struct "ModifySpotFleetRequestRequest" [({ name := "Context" }, .string), + ({ name := "ExcessCapacityTerminationPolicy", xmlName := some "excessCapacityTerminationPolicy", queryName := some "ExcessCapacityTerminationPolicy" }, (Shape.schema ExcessCapacityTerminationPolicy)), + ({ name := "LaunchTemplateConfigs", xmlName := some "LaunchTemplateConfig" }, (.list (Shape.schema LaunchTemplateConfig) "item")), + ({ name := "OnDemandTargetCapacity" }, .int), + ({ name := "SpotFleetRequestId", required := true, xmlName := some "spotFleetRequestId", queryName := some "SpotFleetRequestId" }, .string), + ({ name := "TargetCapacity", xmlName := some "targetCapacity", queryName := some "TargetCapacity" }, .int)] + toValue x := record [putOpt "Context" x.context, putOpt "ExcessCapacityTerminationPolicy" x.excessCapacityTerminationPolicy, putOpt "LaunchTemplateConfigs" x.launchTemplateConfigs, putOpt "OnDemandTargetCapacity" x.onDemandTargetCapacity, put "SpotFleetRequestId" x.spotFleetRequestId, putOpt "TargetCapacity" x.targetCapacity] + ofValue v := do + let context ← v.opt "Context" + let excessCapacityTerminationPolicy ← v.opt "ExcessCapacityTerminationPolicy" + let launchTemplateConfigs ← v.opt "LaunchTemplateConfigs" + let onDemandTargetCapacity ← v.opt "OnDemandTargetCapacity" + let spotFleetRequestId ← v.req "SpotFleetRequestId" + let targetCapacity ← v.opt "TargetCapacity" + return { context, excessCapacityTerminationPolicy, launchTemplateConfigs, onDemandTargetCapacity, spotFleetRequestId, targetCapacity } + +/-- Describes the configuration of a Spot Fleet request. -/ +structure SpotFleetRequestConfigData where + /-- The strategy that determines how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the Spot Fleet launch configuration. -/ + allocationStrategy : Option AllocationStrategy := none + /-- A unique, case-sensitive identifier that you provide to ensure the idempotency of your listings. -/ + clientToken : Option String := none + /-- Reserved. -/ + context : Option String := none + /-- Indicates whether running instances should be terminated if you decrease the target capacity of the Spot Fleet request below the current size of the Spot Fleet. -/ + excessCapacityTerminationPolicy : Option ExcessCapacityTerminationPolicy := none + /-- The number of units fulfilled by this request compared to the set target capacity. -/ + fulfilledCapacity : Option JsonNumber := none + /-- The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that grants the Spot Fleet the permission to request, launch, terminate, and tag instances on your behalf. -/ + iamFleetRole : String + /-- The behavior when a Spot Instance is interrupted. -/ + instanceInterruptionBehavior : Option InstanceInterruptionBehavior := none + /-- The number of Spot pools across which to allocate your target Spot capacity. -/ + instancePoolsToUseCount : Option Int := none + /-- The launch specifications for the Spot Fleet request. -/ + launchSpecifications : Option (List SpotFleetLaunchSpecification) := none + /-- The launch template and overrides. -/ + launchTemplateConfigs : Option (List LaunchTemplateConfig) := none + /-- One or more Classic Load Balancers and target groups to attach to the Spot Fleet request. -/ + loadBalancersConfig : Option LoadBalancersConfig := none + /-- The order of the launch template overrides to use in fulfilling On-Demand capacity. -/ + onDemandAllocationStrategy : Option OnDemandAllocationStrategy := none + /-- The number of On-Demand units fulfilled by this request compared to the set target On-Demand capacity. -/ + onDemandFulfilledCapacity : Option JsonNumber := none + /-- The maximum amount per hour for On-Demand Instances that you're willing to pay. -/ + onDemandMaxTotalPrice : Option String := none + /-- The number of On-Demand units to request. -/ + onDemandTargetCapacity : Option Int := none + /-- Indicates whether Spot Fleet should replace unhealthy instances. -/ + replaceUnhealthyInstances : Option Bool := none + /-- The strategies for managing your Spot Instances that are at an elevated risk of being interrupted. -/ + spotMaintenanceStrategies : Option SpotMaintenanceStrategies := none + /-- The maximum amount per hour for Spot Instances that you're willing to pay. -/ + spotMaxTotalPrice : Option String := none + /-- The maximum price per unit hour that you are willing to pay for a Spot Instance. -/ + spotPrice : Option String := none + /-- The key-value pair for tagging the Spot Fleet request on creation. -/ + tagSpecifications : Option (List TagSpecification) := none + /-- The number of units to request for the Spot Fleet. -/ + targetCapacity : Int + /-- The unit for the target capacity. -/ + targetCapacityUnitType : Option TargetCapacityUnitType := none + /-- Indicates whether running Spot Instances are terminated when the Spot Fleet request expires. -/ + terminateInstancesWithExpiration : Option Bool := none + /-- The type of request. -/ + type : Option FleetType := none + /-- The start date and time of the request, in UTC format ( YYYY - MM - DD T HH : MM : SS Z). -/ + validFrom : Option Timestamp := none + /-- The end date and time of the request, in UTC format ( YYYY - MM - DD T HH : MM : SS Z). -/ + validUntil : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SpotFleetRequestConfigData where + schema := .struct "SpotFleetRequestConfigData" [({ name := "AllocationStrategy", xmlName := some "allocationStrategy", queryName := some "AllocationStrategy" }, (Shape.schema AllocationStrategy)), + ({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "Context", xmlName := some "context", queryName := some "Context" }, .string), + ({ name := "ExcessCapacityTerminationPolicy", xmlName := some "excessCapacityTerminationPolicy", queryName := some "ExcessCapacityTerminationPolicy" }, (Shape.schema ExcessCapacityTerminationPolicy)), + ({ name := "FulfilledCapacity", xmlName := some "fulfilledCapacity", queryName := some "FulfilledCapacity" }, .number), + ({ name := "IamFleetRole", required := true, xmlName := some "iamFleetRole", queryName := some "IamFleetRole" }, .string), + ({ name := "InstanceInterruptionBehavior", xmlName := some "instanceInterruptionBehavior", queryName := some "InstanceInterruptionBehavior" }, (Shape.schema InstanceInterruptionBehavior)), + ({ name := "InstancePoolsToUseCount", xmlName := some "instancePoolsToUseCount", queryName := some "InstancePoolsToUseCount" }, .int), + ({ name := "LaunchSpecifications", xmlName := some "launchSpecifications", queryName := some "LaunchSpecifications" }, (.list (Shape.schema SpotFleetLaunchSpecification) "item")), + ({ name := "LaunchTemplateConfigs", xmlName := some "launchTemplateConfigs", queryName := some "LaunchTemplateConfigs" }, (.list (Shape.schema LaunchTemplateConfig) "item")), + ({ name := "LoadBalancersConfig", xmlName := some "loadBalancersConfig", queryName := some "LoadBalancersConfig" }, (Shape.schema LoadBalancersConfig)), + ({ name := "OnDemandAllocationStrategy", xmlName := some "onDemandAllocationStrategy", queryName := some "OnDemandAllocationStrategy" }, (Shape.schema OnDemandAllocationStrategy)), + ({ name := "OnDemandFulfilledCapacity", xmlName := some "onDemandFulfilledCapacity", queryName := some "OnDemandFulfilledCapacity" }, .number), + ({ name := "OnDemandMaxTotalPrice", xmlName := some "onDemandMaxTotalPrice", queryName := some "OnDemandMaxTotalPrice" }, .string), + ({ name := "OnDemandTargetCapacity", xmlName := some "onDemandTargetCapacity", queryName := some "OnDemandTargetCapacity" }, .int), + ({ name := "ReplaceUnhealthyInstances", xmlName := some "replaceUnhealthyInstances", queryName := some "ReplaceUnhealthyInstances" }, .bool), + ({ name := "SpotMaintenanceStrategies", xmlName := some "spotMaintenanceStrategies", queryName := some "SpotMaintenanceStrategies" }, (Shape.schema SpotMaintenanceStrategies)), + ({ name := "SpotMaxTotalPrice", xmlName := some "spotMaxTotalPrice", queryName := some "SpotMaxTotalPrice" }, .string), + ({ name := "SpotPrice", xmlName := some "spotPrice", queryName := some "SpotPrice" }, .string), + ({ name := "TagSpecifications", xmlName := some "TagSpecification" }, (.list (Shape.schema TagSpecification) "item")), + ({ name := "TargetCapacity", required := true, xmlName := some "targetCapacity", queryName := some "TargetCapacity" }, .int), + ({ name := "TargetCapacityUnitType", xmlName := some "targetCapacityUnitType", queryName := some "TargetCapacityUnitType" }, (Shape.schema TargetCapacityUnitType)), + ({ name := "TerminateInstancesWithExpiration", xmlName := some "terminateInstancesWithExpiration", queryName := some "TerminateInstancesWithExpiration" }, .bool), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, (Shape.schema FleetType)), + ({ name := "ValidFrom", xmlName := some "validFrom", queryName := some "ValidFrom" }, (.time none)), + ({ name := "ValidUntil", xmlName := some "validUntil", queryName := some "ValidUntil" }, (.time none))] + toValue x := record [putOpt "AllocationStrategy" x.allocationStrategy, putOpt "ClientToken" x.clientToken, putOpt "Context" x.context, putOpt "ExcessCapacityTerminationPolicy" x.excessCapacityTerminationPolicy, putOpt "FulfilledCapacity" x.fulfilledCapacity, put "IamFleetRole" x.iamFleetRole, putOpt "InstanceInterruptionBehavior" x.instanceInterruptionBehavior, putOpt "InstancePoolsToUseCount" x.instancePoolsToUseCount, putOpt "LaunchSpecifications" x.launchSpecifications, putOpt "LaunchTemplateConfigs" x.launchTemplateConfigs, putOpt "LoadBalancersConfig" x.loadBalancersConfig, putOpt "OnDemandAllocationStrategy" x.onDemandAllocationStrategy, putOpt "OnDemandFulfilledCapacity" x.onDemandFulfilledCapacity, putOpt "OnDemandMaxTotalPrice" x.onDemandMaxTotalPrice, putOpt "OnDemandTargetCapacity" x.onDemandTargetCapacity, putOpt "ReplaceUnhealthyInstances" x.replaceUnhealthyInstances, putOpt "SpotMaintenanceStrategies" x.spotMaintenanceStrategies, putOpt "SpotMaxTotalPrice" x.spotMaxTotalPrice, putOpt "SpotPrice" x.spotPrice, putOpt "TagSpecifications" x.tagSpecifications, put "TargetCapacity" x.targetCapacity, putOpt "TargetCapacityUnitType" x.targetCapacityUnitType, putOpt "TerminateInstancesWithExpiration" x.terminateInstancesWithExpiration, putOpt "Type" x.type, putOpt "ValidFrom" x.validFrom, putOpt "ValidUntil" x.validUntil] + ofValue v := do + let allocationStrategy ← v.opt "AllocationStrategy" + let clientToken ← v.opt "ClientToken" + let context ← v.opt "Context" + let excessCapacityTerminationPolicy ← v.opt "ExcessCapacityTerminationPolicy" + let fulfilledCapacity ← v.opt "FulfilledCapacity" + let iamFleetRole ← v.req "IamFleetRole" + let instanceInterruptionBehavior ← v.opt "InstanceInterruptionBehavior" + let instancePoolsToUseCount ← v.opt "InstancePoolsToUseCount" + let launchSpecifications ← v.opt "LaunchSpecifications" + let launchTemplateConfigs ← v.opt "LaunchTemplateConfigs" + let loadBalancersConfig ← v.opt "LoadBalancersConfig" + let onDemandAllocationStrategy ← v.opt "OnDemandAllocationStrategy" + let onDemandFulfilledCapacity ← v.opt "OnDemandFulfilledCapacity" + let onDemandMaxTotalPrice ← v.opt "OnDemandMaxTotalPrice" + let onDemandTargetCapacity ← v.opt "OnDemandTargetCapacity" + let replaceUnhealthyInstances ← v.opt "ReplaceUnhealthyInstances" + let spotMaintenanceStrategies ← v.opt "SpotMaintenanceStrategies" + let spotMaxTotalPrice ← v.opt "SpotMaxTotalPrice" + let spotPrice ← v.opt "SpotPrice" + let tagSpecifications ← v.opt "TagSpecifications" + let targetCapacity ← v.req "TargetCapacity" + let targetCapacityUnitType ← v.opt "TargetCapacityUnitType" + let terminateInstancesWithExpiration ← v.opt "TerminateInstancesWithExpiration" + let type ← v.opt "Type" + let validFrom ← v.opt "ValidFrom" + let validUntil ← v.opt "ValidUntil" + return { allocationStrategy, clientToken, context, excessCapacityTerminationPolicy, fulfilledCapacity, iamFleetRole, instanceInterruptionBehavior, instancePoolsToUseCount, launchSpecifications, launchTemplateConfigs, loadBalancersConfig, onDemandAllocationStrategy, onDemandFulfilledCapacity, onDemandMaxTotalPrice, onDemandTargetCapacity, replaceUnhealthyInstances, spotMaintenanceStrategies, spotMaxTotalPrice, spotPrice, tagSpecifications, targetCapacity, targetCapacityUnitType, terminateInstancesWithExpiration, type, validFrom, validUntil } + +structure CreateFleetResult where + /-- Information about the instances that could not be launched by the fleet. -/ + errors : Option (List CreateFleetError) := none + /-- The ID of the EC2 Fleet. -/ + fleetId : Option String := none + /-- Information about the instances that were launched by the fleet. -/ + instances : Option (List CreateFleetInstance) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateFleetResult where + schema := .struct "CreateFleetResult" [({ name := "Errors", xmlName := some "errorSet", queryName := some "ErrorSet" }, (.list (Shape.schema CreateFleetError) "item")), + ({ name := "FleetId", xmlName := some "fleetId", queryName := some "FleetId" }, .string), + ({ name := "Instances", xmlName := some "fleetInstanceSet", queryName := some "FleetInstanceSet" }, (.list (Shape.schema CreateFleetInstance) "item"))] + toValue x := record [putOpt "Errors" x.errors, putOpt "FleetId" x.fleetId, putOpt "Instances" x.instances] + ofValue v := do + let errors ← v.opt "Errors" + let fleetId ← v.opt "FleetId" + let instances ← v.opt "Instances" + return { errors, fleetId, instances } + +/-- Describes an EC2 Fleet. -/ +structure FleetData where + /-- The progress of the EC2 Fleet. -/ + activityStatus : Option FleetActivityStatus := none + /-- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -/ + clientToken : Option String := none + /-- Reserved. -/ + context : Option String := none + /-- The creation date and time of the EC2 Fleet. -/ + createTime : Option Timestamp := none + /-- Information about the instances that could not be launched by the fleet. -/ + errors : Option (List DescribeFleetError) := none + /-- Indicates whether running instances should be terminated if the target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet. -/ + excessCapacityTerminationPolicy : Option FleetExcessCapacityTerminationPolicy := none + /-- The ID of the EC2 Fleet. -/ + fleetId : Option String := none + /-- The state of the EC2 Fleet. -/ + fleetState : Option FleetStateCode := none + /-- The number of units fulfilled by this request compared to the set target capacity. -/ + fulfilledCapacity : Option JsonNumber := none + /-- The number of units fulfilled by this request compared to the set target On-Demand capacity. -/ + fulfilledOnDemandCapacity : Option JsonNumber := none + /-- Information about the instances that were launched by the fleet. -/ + instances : Option (List DescribeFleetsInstances) := none + /-- The launch template and overrides. -/ + launchTemplateConfigs : Option (List FleetLaunchTemplateConfig) := none + /-- The allocation strategy of On-Demand Instances in an EC2 Fleet. -/ + onDemandOptions : Option OnDemandOptions := none + /-- Indicates whether EC2 Fleet should replace unhealthy Spot Instances. -/ + replaceUnhealthyInstances : Option Bool := none + /-- Defines EC2 Fleet preferences for utilizing reserved capacity when DefaultTargetCapacityType is set to reserved-capacity . -/ + reservedCapacityOptions : Option ReservedCapacityOptions := none + /-- The configuration of Spot Instances in an EC2 Fleet. -/ + spotOptions : Option SpotOptions := none + /-- The tags for an EC2 Fleet resource. -/ + tags : Option (List Tag) := none + /-- The number of units to request. -/ + targetCapacitySpecification : Option TargetCapacitySpecification := none + /-- Indicates whether running instances should be terminated when the EC2 Fleet expires. -/ + terminateInstancesWithExpiration : Option Bool := none + /-- The type of request. -/ + type : Option FleetType := none + /-- The start date and time of the request, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). -/ + validFrom : Option Timestamp := none + /-- The end date and time of the request, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). -/ + validUntil : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FleetData where + schema := .struct "FleetData" [({ name := "ActivityStatus", xmlName := some "activityStatus", queryName := some "ActivityStatus" }, (Shape.schema FleetActivityStatus)), + ({ name := "ClientToken", xmlName := some "clientToken", queryName := some "ClientToken" }, .string), + ({ name := "Context", xmlName := some "context", queryName := some "Context" }, .string), + ({ name := "CreateTime", xmlName := some "createTime", queryName := some "CreateTime" }, (.time none)), + ({ name := "Errors", xmlName := some "errorSet", queryName := some "ErrorSet" }, (.list (Shape.schema DescribeFleetError) "item")), + ({ name := "ExcessCapacityTerminationPolicy", xmlName := some "excessCapacityTerminationPolicy", queryName := some "ExcessCapacityTerminationPolicy" }, (Shape.schema FleetExcessCapacityTerminationPolicy)), + ({ name := "FleetId", xmlName := some "fleetId", queryName := some "FleetId" }, .string), + ({ name := "FleetState", xmlName := some "fleetState", queryName := some "FleetState" }, (Shape.schema FleetStateCode)), + ({ name := "FulfilledCapacity", xmlName := some "fulfilledCapacity", queryName := some "FulfilledCapacity" }, .number), + ({ name := "FulfilledOnDemandCapacity", xmlName := some "fulfilledOnDemandCapacity", queryName := some "FulfilledOnDemandCapacity" }, .number), + ({ name := "Instances", xmlName := some "fleetInstanceSet", queryName := some "FleetInstanceSet" }, (.list (Shape.schema DescribeFleetsInstances) "item")), + ({ name := "LaunchTemplateConfigs", xmlName := some "launchTemplateConfigs", queryName := some "LaunchTemplateConfigs" }, (.list (Shape.schema FleetLaunchTemplateConfig) "item")), + ({ name := "OnDemandOptions", xmlName := some "onDemandOptions", queryName := some "OnDemandOptions" }, (Shape.schema OnDemandOptions)), + ({ name := "ReplaceUnhealthyInstances", xmlName := some "replaceUnhealthyInstances", queryName := some "ReplaceUnhealthyInstances" }, .bool), + ({ name := "ReservedCapacityOptions", xmlName := some "reservedCapacityOptions", queryName := some "ReservedCapacityOptions" }, (Shape.schema ReservedCapacityOptions)), + ({ name := "SpotOptions", xmlName := some "spotOptions", queryName := some "SpotOptions" }, (Shape.schema SpotOptions)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item")), + ({ name := "TargetCapacitySpecification", xmlName := some "targetCapacitySpecification", queryName := some "TargetCapacitySpecification" }, (Shape.schema TargetCapacitySpecification)), + ({ name := "TerminateInstancesWithExpiration", xmlName := some "terminateInstancesWithExpiration", queryName := some "TerminateInstancesWithExpiration" }, .bool), + ({ name := "Type", xmlName := some "type", queryName := some "Type" }, (Shape.schema FleetType)), + ({ name := "ValidFrom", xmlName := some "validFrom", queryName := some "ValidFrom" }, (.time none)), + ({ name := "ValidUntil", xmlName := some "validUntil", queryName := some "ValidUntil" }, (.time none))] + toValue x := record [putOpt "ActivityStatus" x.activityStatus, putOpt "ClientToken" x.clientToken, putOpt "Context" x.context, putOpt "CreateTime" x.createTime, putOpt "Errors" x.errors, putOpt "ExcessCapacityTerminationPolicy" x.excessCapacityTerminationPolicy, putOpt "FleetId" x.fleetId, putOpt "FleetState" x.fleetState, putOpt "FulfilledCapacity" x.fulfilledCapacity, putOpt "FulfilledOnDemandCapacity" x.fulfilledOnDemandCapacity, putOpt "Instances" x.instances, putOpt "LaunchTemplateConfigs" x.launchTemplateConfigs, putOpt "OnDemandOptions" x.onDemandOptions, putOpt "ReplaceUnhealthyInstances" x.replaceUnhealthyInstances, putOpt "ReservedCapacityOptions" x.reservedCapacityOptions, putOpt "SpotOptions" x.spotOptions, putOpt "Tags" x.tags, putOpt "TargetCapacitySpecification" x.targetCapacitySpecification, putOpt "TerminateInstancesWithExpiration" x.terminateInstancesWithExpiration, putOpt "Type" x.type, putOpt "ValidFrom" x.validFrom, putOpt "ValidUntil" x.validUntil] + ofValue v := do + let activityStatus ← v.opt "ActivityStatus" + let clientToken ← v.opt "ClientToken" + let context ← v.opt "Context" + let createTime ← v.opt "CreateTime" + let errors ← v.opt "Errors" + let excessCapacityTerminationPolicy ← v.opt "ExcessCapacityTerminationPolicy" + let fleetId ← v.opt "FleetId" + let fleetState ← v.opt "FleetState" + let fulfilledCapacity ← v.opt "FulfilledCapacity" + let fulfilledOnDemandCapacity ← v.opt "FulfilledOnDemandCapacity" + let instances ← v.opt "Instances" + let launchTemplateConfigs ← v.opt "LaunchTemplateConfigs" + let onDemandOptions ← v.opt "OnDemandOptions" + let replaceUnhealthyInstances ← v.opt "ReplaceUnhealthyInstances" + let reservedCapacityOptions ← v.opt "ReservedCapacityOptions" + let spotOptions ← v.opt "SpotOptions" + let tags ← v.opt "Tags" + let targetCapacitySpecification ← v.opt "TargetCapacitySpecification" + let terminateInstancesWithExpiration ← v.opt "TerminateInstancesWithExpiration" + let type ← v.opt "Type" + let validFrom ← v.opt "ValidFrom" + let validUntil ← v.opt "ValidUntil" + return { activityStatus, clientToken, context, createTime, errors, excessCapacityTerminationPolicy, fleetId, fleetState, fulfilledCapacity, fulfilledOnDemandCapacity, instances, launchTemplateConfigs, onDemandOptions, replaceUnhealthyInstances, reservedCapacityOptions, spotOptions, tags, targetCapacitySpecification, terminateInstancesWithExpiration, type, validFrom, validUntil } + +/-- Contains the parameters for RequestSpotFleet. -/ +structure RequestSpotFleetRequest where + /-- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. -/ + dryRun : Option Bool := none + /-- The configuration for the Spot Fleet request. -/ + spotFleetRequestConfig : SpotFleetRequestConfigData +deriving DecidableEq, Repr, Inhabited + +instance : Shape RequestSpotFleetRequest where + schema := .struct "RequestSpotFleetRequest" [({ name := "DryRun", xmlName := some "dryRun", queryName := some "DryRun" }, .bool), + ({ name := "SpotFleetRequestConfig", required := true, xmlName := some "spotFleetRequestConfig", queryName := some "SpotFleetRequestConfig" }, (Shape.schema SpotFleetRequestConfigData))] + toValue x := record [putOpt "DryRun" x.dryRun, put "SpotFleetRequestConfig" x.spotFleetRequestConfig] + ofValue v := do + let dryRun ← v.opt "DryRun" + let spotFleetRequestConfig ← v.req "SpotFleetRequestConfig" + return { dryRun, spotFleetRequestConfig } + +/-- Describes a Spot Fleet request. -/ +structure SpotFleetRequestConfig where + /-- The progress of the Spot Fleet request. -/ + activityStatus : Option ActivityStatus := none + /-- The creation date and time of the request. -/ + createTime : Option Timestamp := none + /-- The configuration of the Spot Fleet request. -/ + spotFleetRequestConfig : Option SpotFleetRequestConfigData := none + /-- The ID of the Spot Fleet request. -/ + spotFleetRequestId : Option String := none + /-- The state of the Spot Fleet request. -/ + spotFleetRequestState : Option BatchState := none + /-- The tags for a Spot Fleet resource. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SpotFleetRequestConfig where + schema := .struct "SpotFleetRequestConfig" [({ name := "ActivityStatus", xmlName := some "activityStatus", queryName := some "ActivityStatus" }, (Shape.schema ActivityStatus)), + ({ name := "CreateTime", xmlName := some "createTime", queryName := some "CreateTime" }, (.time none)), + ({ name := "SpotFleetRequestConfig", xmlName := some "spotFleetRequestConfig", queryName := some "SpotFleetRequestConfig" }, (Shape.schema SpotFleetRequestConfigData)), + ({ name := "SpotFleetRequestId", xmlName := some "spotFleetRequestId", queryName := some "SpotFleetRequestId" }, .string), + ({ name := "SpotFleetRequestState", xmlName := some "spotFleetRequestState", queryName := some "SpotFleetRequestState" }, (Shape.schema BatchState)), + ({ name := "Tags", xmlName := some "tagSet", queryName := some "TagSet" }, (.list (Shape.schema Tag) "item"))] + toValue x := record [putOpt "ActivityStatus" x.activityStatus, putOpt "CreateTime" x.createTime, putOpt "SpotFleetRequestConfig" x.spotFleetRequestConfig, putOpt "SpotFleetRequestId" x.spotFleetRequestId, putOpt "SpotFleetRequestState" x.spotFleetRequestState, putOpt "Tags" x.tags] + ofValue v := do + let activityStatus ← v.opt "ActivityStatus" + let createTime ← v.opt "CreateTime" + let spotFleetRequestConfig ← v.opt "SpotFleetRequestConfig" + let spotFleetRequestId ← v.opt "SpotFleetRequestId" + let spotFleetRequestState ← v.opt "SpotFleetRequestState" + let tags ← v.opt "Tags" + return { activityStatus, createTime, spotFleetRequestConfig, spotFleetRequestId, spotFleetRequestState, tags } + +structure DescribeFleetsResult where + /-- Information about the EC2 Fleets. -/ + fleets : Option (List FleetData) := none + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeFleetsResult where + schema := .struct "DescribeFleetsResult" [({ name := "Fleets", xmlName := some "fleetSet", queryName := some "FleetSet" }, (.list (Shape.schema FleetData) "item")), + ({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string)] + toValue x := record [putOpt "Fleets" x.fleets, putOpt "NextToken" x.nextToken] + ofValue v := do + let fleets ← v.opt "Fleets" + let nextToken ← v.opt "NextToken" + return { fleets, nextToken } + +/-- Contains the output of DescribeSpotFleetRequests. -/ +structure DescribeSpotFleetRequestsResponse where + /-- The token to include in another request to get the next page of items. -/ + nextToken : Option String := none + /-- Information about the configuration of your Spot Fleet. -/ + spotFleetRequestConfigs : Option (List SpotFleetRequestConfig) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DescribeSpotFleetRequestsResponse where + schema := .struct "DescribeSpotFleetRequestsResponse" [({ name := "NextToken", xmlName := some "nextToken", queryName := some "NextToken" }, .string), + ({ name := "SpotFleetRequestConfigs", xmlName := some "spotFleetRequestConfigSet", queryName := some "SpotFleetRequestConfigSet" }, (.list (Shape.schema SpotFleetRequestConfig) "item"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "SpotFleetRequestConfigs" x.spotFleetRequestConfigs] + ofValue v := do + let nextToken ← v.opt "NextToken" + let spotFleetRequestConfigs ← v.opt "SpotFleetRequestConfigs" + return { nextToken, spotFleetRequestConfigs } + +/-- The operations of the service. -/ +inductive Op where + /-- Accepts an Elastic IP address transfer. -/ + | acceptAddressTransfer + /-- Accepts a request to assign billing of the available capacity of a shared Capacity Reservation to your account. -/ + | acceptCapacityReservationBillingOwnership + /-- Accepts the Convertible Reserved Instance exchange quote described in the GetReservedInstancesExchangeQuote call. -/ + | acceptReservedInstancesExchangeQuote + /-- Accepts a Transit Gateway attachment request for a Client VPN endpoint. -/ + | acceptTransitGatewayClientVpnAttachment + /-- Accepts a request to associate subnets with a transit gateway multicast domain. -/ + | acceptTransitGatewayMulticastDomainAssociations + /-- Accepts a transit gateway peering attachment request. -/ + | acceptTransitGatewayPeeringAttachment + /-- Accepts a request to attach a VPC to a transit gateway. -/ + | acceptTransitGatewayVpcAttachment + /-- Accepts connection requests to your VPC endpoint service. -/ + | acceptVpcEndpointConnections + /-- Accept a VPC peering connection request. -/ + | acceptVpcPeeringConnection + /-- Advertises an IPv4 or IPv6 address range that is provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP). -/ + | advertiseByoipCidr + /-- Allocates an Elastic IP address to your Amazon Web Services account. -/ + | allocateAddress + /-- Allocates a Dedicated Host to your account. -/ + | allocateHosts + /-- Allocate a CIDR from an IPAM pool. -/ + | allocateIpamPoolCidr + /-- Applies a security group to the association between the target network and the Client VPN endpoint. -/ + | applySecurityGroupsToClientVpnTargetNetwork + /-- Assigns the specified IPv6 addresses to the specified network interface. -/ + | assignIpv6Addresses + /-- Assigns the specified secondary private IP addresses to the specified network interface. -/ + | assignPrivateIpAddresses + /-- Assigns private IPv4 addresses to a private NAT gateway. -/ + | assignPrivateNatGatewayAddress + /-- Associates an Elastic IP address, or carrier IP address (for instances that are in subnets in Wavelength Zones) with an instance or a network interface. -/ + | associateAddress + /-- Associates an application status check with instances or tags . -/ + | associateApplicationStatusCheck + /-- Initiates a request to assign billing of the unused capacity of a shared Capacity Reservation to a consumer account that is consolidated under the same Amazon Web Services organizations payer account. -/ + | associateCapacityReservationBillingOwner + /-- Associates a target network with a Client VPN endpoint. -/ + | associateClientVpnTargetNetwork + /-- Associates a set of DHCP options (that you've previously created) with the specified VPC, or associates no DHCP options with the VPC. -/ + | associateDhcpOptions + /-- Associates an Identity and Access Management (IAM) role with an Certificate Manager (ACM) certificate. -/ + | associateEnclaveCertificateIamRole + /-- Associates an IAM instance profile with a running or stopped instance. -/ + | associateIamInstanceProfile + /-- Associates one or more targets with an event window. -/ + | associateInstanceEventWindow + /-- Associates your Autonomous System Number (ASN) with a BYOIP CIDR that you own in the same Amazon Web Services Region. -/ + | associateIpamByoasn + /-- Associates an IPAM resource discovery with an Amazon VPC IPAM. -/ + | associateIpamResourceDiscovery + /-- Associates an additional KMS key with an encrypted Amazon EBS snapshot. -/ + | associateKmsKeyId + /-- Associates Elastic IP addresses (EIPs) and private IPv4 addresses with a public NAT gateway. -/ + | associateNatGatewayAddress + /-- Associates a flex cost allocation policy with one or more network resources. -/ + | associateNetworkingFlexCostAllocationPolicy + /-- Associates a route server with a VPC to enable dynamic route updates. -/ + | associateRouteServer + /-- Associates a subnet in your VPC or an internet gateway or virtual private gateway attached to your VPC with a route table in your VPC. -/ + | associateRouteTable + /-- Associates a security group with another VPC in the same Region. -/ + | associateSecurityGroupVpc + /-- Associates a CIDR block with your subnet. -/ + | associateSubnetCidrBlock + /-- Associates the specified subnets and transit gateway attachments with the specified transit gateway multicast domain. -/ + | associateTransitGatewayMulticastDomain + /-- Associates the specified transit gateway attachment with a transit gateway policy table. -/ + | associateTransitGatewayPolicyTable + /-- Associates the specified attachment with the specified transit gateway route table. -/ + | associateTransitGatewayRouteTable + /-- Associates a branch network interface with a trunk network interface. -/ + | associateTrunkInterface + /-- Associates a CIDR block with your VPC. -/ + | associateVpcCidrBlock + /-- This action is deprecated. -/ + | attachClassicLinkVpc + /-- Attaches a watermark to a non-public AMI. -/ + | attachImageWatermark + /-- Attaches an internet gateway or a virtual private gateway to a VPC, enabling connectivity between the internet and the VPC. -/ + | attachInternetGateway + /-- Attaches a network interface to an instance. -/ + | attachNetworkInterface + /-- Attaches the specified Amazon Web Services Verified Access trust provider to the specified Amazon Web Services Verified Access instance. -/ + | attachVerifiedAccessTrustProvider + /-- Attaches an Amazon EBS volume to a running or stopped instance, and exposes it to the instance with the specified device name. -/ + | attachVolume + /-- Attaches an available virtual private gateway to a VPC. -/ + | attachVpnGateway + /-- Adds an ingress authorization rule to a Client VPN endpoint. -/ + | authorizeClientVpnIngress + /-- Adds the specified outbound (egress) rules to a security group. -/ + | authorizeSecurityGroupEgress + /-- Adds the specified inbound (ingress) rules to a security group. -/ + | authorizeSecurityGroupIngress + /-- Modifies multiple routing policy registrations in a single operation. -/ + | batchModifyIpamRoutingPolicyRegistrations + /-- Bundles an Amazon instance store-backed Windows instance. -/ + | bundleInstance + /-- Cancels a bundling operation for an instance store-backed Windows instance. -/ + | cancelBundleTask + /-- Cancels the specified Capacity Reservation, releases the reserved capacity, and changes the Capacity Reservation's state to cancelled . -/ + | cancelCapacityReservation + /-- Cancels one or more Capacity Reservation Fleets. -/ + | cancelCapacityReservationFleets + /-- Cancels an active conversion task. -/ + | cancelConversionTask + /-- Cancels the generation of an account status report. -/ + | cancelDeclarativePoliciesReport + /-- Cancels an active export task. -/ + | cancelExportTask + /-- Removes your Amazon Web Services account from the launch permissions for the specified AMI. -/ + | cancelImageLaunchPermission + /-- Cancels an in-process import virtual machine or import snapshot task. -/ + | cancelImportTask + /-- Cancels the specified Reserved Instance listing in the Reserved Instance Marketplace. -/ + | cancelReservedInstancesListing + /-- Cancels the specified Spot Fleet requests. -/ + | cancelSpotFleetRequests + /-- Cancels one or more Spot Instance requests. -/ + | cancelSpotInstanceRequests + /-- Determines whether a product code is associated with an instance. -/ + | confirmProductInstance + /-- Copies the specified Amazon FPGA Image (AFI) to the current Region. -/ + | copyFpgaImage + /-- Initiates an AMI copy operation. -/ + | copyImage + /-- Creates an exact copy of an Amazon EBS snapshot. -/ + | copySnapshot + /-- Creates a crash-consistent, point-in-time copy of an existing Amazon EBS volume within the same Availability Zone. -/ + | copyVolumes + /-- Creates an application status check for monitoring the health of applications running on your instances. -/ + | createApplicationStatusCheck + /-- Creates a new data export configuration for EC2 Capacity Manager. -/ + | createCapacityManagerDataExport + /-- Creates a new Capacity Reservation with the specified attributes. -/ + | createCapacityReservation + /-- Create a new Capacity Reservation by splitting the capacity of the source Capacity Reservation. -/ + | createCapacityReservationBySplitting + /-- Generates a cancellation quote for a future-dated Capacity Reservation that is within its commitment duration. -/ + | createCapacityReservationCancellationQuote + /-- Generates a quote for changing the start date of a future-dated Capacity Reservation that has not yet been delivered. -/ + | createCapacityReservationDateChangeQuote + /-- Creates a Capacity Reservation Fleet. -/ + | createCapacityReservationFleet + /-- Creates a carrier gateway. -/ + | createCarrierGateway + /-- Creates a Client VPN endpoint. -/ + | createClientVpnEndpoint + /-- Adds a route to a network to a Client VPN endpoint. -/ + | createClientVpnRoute + /-- Creates a range of customer-owned IP addresses. -/ + | createCoipCidr + /-- Creates a pool of customer-owned IP (CoIP) addresses. -/ + | createCoipPool + /-- Provides information to Amazon Web Services about your customer gateway device. -/ + | createCustomerGateway + /-- Creates a default subnet with a size /20 IPv4 CIDR block in the specified Availability Zone in your default VPC. -/ + | createDefaultSubnet + /-- Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet in each Availability Zone. -/ + | createDefaultVpc + /-- Delegates ownership of the Amazon EBS root volume for an Apple silicon Mac instance to an administrative user. -/ + | createDelegateMacVolumeOwnershipTask + /-- Creates a custom set of DHCP options. -/ + | createDhcpOptions + /-- [IPv6 only] Creates an egress-only internet gateway for your VPC. -/ + | createEgressOnlyInternetGateway + /-- Creates an EC2 Fleet that contains the configuration information for On-Demand Instances and Spot Instances. -/ + | createFleet + /-- Creates one or more flow logs to capture information about IP traffic for a specific network interface, subnet, or VPC. -/ + | createFlowLogs + /-- Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP). -/ + | createFpgaImage + /-- Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is either running or stopped. -/ + | createImage + /-- Creates a report that shows how your image is used across other Amazon Web Services accounts. -/ + | createImageUsageReport + /-- Creates an EC2 Instance Connect Endpoint. -/ + | createInstanceConnectEndpoint + /-- Creates an event window in which scheduled events for the associated Amazon EC2 instances can run. -/ + | createInstanceEventWindow + /-- Exports a running or stopped instance to an Amazon S3 bucket. -/ + | createInstanceExportTask + /-- Creates an internet gateway for use with a VPC. -/ + | createInternetGateway + /-- Creates an interruptible Capacity Reservation by specifying the number of unused instances you want to allocate from your source reservation. -/ + | createInterruptibleCapacityReservationAllocation + /-- Create an IPAM. -/ + | createIpam + /-- Create a verification token. -/ + | createIpamExternalResourceVerificationToken + /-- Creates an association between an IPAM and a Regional Internet Registry (RIR) for Resource Public Key Infrastructure (RPKI) management. -/ + | createIpamInternetRegistryAssociation + /-- Creates an IPAM policy. -/ + | createIpamPolicy + /-- Create an IP address pool for Amazon VPC IP Address Manager (IPAM). -/ + | createIpamPool + /-- Creates an IPAM prefix list resolver. -/ + | createIpamPrefixListResolver + /-- Creates an IPAM prefix list resolver target. -/ + | createIpamPrefixListResolverTarget + /-- Creates an IPAM resource discovery. -/ + | createIpamResourceDiscovery + /-- Creates a routing policy registration and publishes Route Origin Authorizations (ROAs) to the RPKI for the specified CIDR prefix and ASNs. -/ + | createIpamRoutingPolicyRegistration + /-- Create an IPAM scope. -/ + | createIpamScope + /-- Creates an ED25519 or 2048-bit RSA key pair with the specified name and in the specified format. -/ + | createKeyPair + /-- Creates a launch template. -/ + | createLaunchTemplate + /-- Creates a new version of a launch template. -/ + | createLaunchTemplateVersion + /-- Creates a static route for the specified local gateway route table. -/ + | createLocalGatewayRoute + /-- Creates a local gateway route table. -/ + | createLocalGatewayRouteTable + /-- Creates a local gateway route table virtual interface group association. -/ + | createLocalGatewayRouteTableVirtualInterfaceGroupAssociation + /-- Associates the specified VPC with the specified local gateway route table. -/ + | createLocalGatewayRouteTableVpcAssociation + /-- Create a virtual interface for a local gateway. -/ + | createLocalGatewayVirtualInterface + /-- Create a local gateway virtual interface group. -/ + | createLocalGatewayVirtualInterfaceGroup + /-- Creates a System Integrity Protection (SIP) modification task to configure the SIP settings for an x86 Mac instance or Apple silicon Mac instance. -/ + | createMacSystemIntegrityProtectionModificationTask + /-- Creates a managed prefix list. -/ + | createManagedPrefixList + /-- Creates a metric category. -/ + | createMetricCategory + /-- Creates a NAT gateway in the specified subnet. -/ + | createNatGateway + /-- Creates a network ACL in a VPC. -/ + | createNetworkAcl + /-- Creates an entry (a rule) in a network ACL with the specified rule number. -/ + | createNetworkAclEntry + /-- Creates a Network Access Scope. -/ + | createNetworkInsightsAccessScope + /-- Creates a path to analyze for reachability. -/ + | createNetworkInsightsPath + /-- Creates a network interface in the specified subnet. -/ + | createNetworkInterface + /-- Grants an Amazon Web Services-authorized account permission to attach the specified network interface to an instance in their account. -/ + | createNetworkInterfacePermission + /-- Creates a flex cost allocation policy for Networking Flexible Cost Allocation (FCA), a feature of Amazon Virtual Private Cloud (Amazon VPC). -/ + | createNetworkingFlexCostAllocationPolicy + /-- Creates a placement group in which to launch instances. -/ + | createPlacementGroup + /-- Creates a public IPv4 address pool. -/ + | createPublicIpv4Pool + /-- Replaces the EBS-backed root volume for a running instance with a new volume that is restored to the original root volume's launch state, that is restored to a specific snapshot taken from the original root volume, that is restored from an -/ + | createReplaceRootVolumeTask + /-- Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in the Reserved Instance Marketplace. -/ + | createReservedInstancesListing + /-- Starts a task that restores an AMI from an Amazon S3 object that was previously created by using CreateStoreImageTask . -/ + | createRestoreImageTask + /-- Creates a route in a route table within a VPC. -/ + | createRoute + /-- Creates a new route server to manage dynamic routing in a VPC. -/ + | createRouteServer + /-- Creates a new endpoint for a route server in a specified subnet. -/ + | createRouteServerEndpoint + /-- Creates a new BGP peer for a specified route server endpoint. -/ + | createRouteServerPeer + /-- Creates a route table for the specified VPC. -/ + | createRouteTable + /-- Creates a secondary network. -/ + | createSecondaryNetwork + /-- Creates a secondary subnet in a secondary network. -/ + | createSecondarySubnet + /-- Creates a security group. -/ + | createSecurityGroup + /-- Creates a snapshot of an EBS volume and stores it in Amazon S3. -/ + | createSnapshot + /-- Creates crash-consistent snapshots of multiple EBS volumes attached to an Amazon EC2 instance. -/ + | createSnapshots + /-- Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs. -/ + | createSpotDatafeedSubscription + /-- Stores an AMI as a single object in an Amazon S3 bucket. -/ + | createStoreImageTask + /-- Creates a subnet in the specified VPC. -/ + | createSubnet + /-- Creates a subnet CIDR reservation. -/ + | createSubnetCidrReservation + /-- Adds or overwrites only the specified tags for the specified Amazon EC2 resource or resources. -/ + | createTags + /-- Creates a Traffic Mirror filter. -/ + | createTrafficMirrorFilter + /-- Creates a Traffic Mirror filter rule. -/ + | createTrafficMirrorFilterRule + /-- Creates a Traffic Mirror session. -/ + | createTrafficMirrorSession + /-- Creates a target for your Traffic Mirror session. -/ + | createTrafficMirrorTarget + /-- Creates a transit gateway. -/ + | createTransitGateway + /-- Creates a Connect attachment from a specified transit gateway attachment. -/ + | createTransitGatewayConnect + /-- Creates a Connect peer for a specified transit gateway Connect attachment between a transit gateway and an appliance. -/ + | createTransitGatewayConnectPeer + /-- Creates a metering policy for a transit gateway to track and measure network traffic. -/ + | createTransitGatewayMeteringPolicy + /-- Creates an entry in a transit gateway metering policy to define traffic measurement rules. -/ + | createTransitGatewayMeteringPolicyEntry + /-- Creates a multicast domain using the specified transit gateway. -/ + | createTransitGatewayMulticastDomain + /-- Creates a network function attachment that connects the specified transit gateway to a Gateway Load Balancer endpoint service. -/ + | createTransitGatewayNetworkFunctionAttachment + /-- Requests a transit gateway peering attachment between the specified transit gateway (requester) and a peer transit gateway (accepter). -/ + | createTransitGatewayPeeringAttachment + /-- Creates a transit gateway policy table. -/ + | createTransitGatewayPolicyTable + /-- Creates an entry in a transit gateway policy table to route matching traffic to a specified route table. -/ + | createTransitGatewayPolicyTableEntry + /-- Creates a reference (route) to a prefix list in a specified transit gateway route table. -/ + | createTransitGatewayPrefixListReference + /-- Creates a static route for the specified transit gateway route table. -/ + | createTransitGatewayRoute + /-- Creates a route table for the specified transit gateway. -/ + | createTransitGatewayRouteTable + /-- Advertises a new transit gateway route table. -/ + | createTransitGatewayRouteTableAnnouncement + /-- Attaches the specified VPC to the specified transit gateway. -/ + | createTransitGatewayVpcAttachment + /-- An Amazon Web Services Verified Access endpoint is where you define your application along with an optional endpoint-level access policy. -/ + | createVerifiedAccessEndpoint + /-- An Amazon Web Services Verified Access group is a collection of Amazon Web Services Verified Access endpoints who's associated applications have similar security requirements. -/ + | createVerifiedAccessGroup + /-- An Amazon Web Services Verified Access instance is a regional entity that evaluates application requests and grants access only when your security requirements are met. -/ + | createVerifiedAccessInstance + /-- A trust provider is a third-party entity that creates, maintains, and manages identity information for users and devices. -/ + | createVerifiedAccessTrustProvider + /-- Creates an EBS volume that can be attached to an instance in the same Availability Zone. -/ + | createVolume + /-- Creates a VPC with the specified CIDR blocks. -/ + | createVpc + /-- Create a VPC Block Public Access (BPA) exclusion. -/ + | createVpcBlockPublicAccessExclusion + /-- Creates a VPC Encryption Control configuration for a specified VPC. -/ + | createVpcEncryptionControl + /-- Creates a VPC endpoint. -/ + | createVpcEndpoint + /-- Creates a connection notification for a specified VPC endpoint or VPC endpoint service. -/ + | createVpcEndpointConnectionNotification + /-- Creates a VPC endpoint service to which service consumers (Amazon Web Services accounts, users, and IAM roles) can connect. -/ + | createVpcEndpointServiceConfiguration + /-- Requests a VPC peering connection between two VPCs: a requester VPC that you own and an accepter VPC with which to create the connection. -/ + | createVpcPeeringConnection + /-- Creates a VPN concentrator that aggregates multiple VPN connections to a transit gateway. -/ + | createVpnConcentrator + /-- Creates a VPN connection between an existing virtual private gateway or transit gateway and a customer gateway. -/ + | createVpnConnection + /-- Creates a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. -/ + | createVpnConnectionRoute + /-- Creates a virtual private gateway. -/ + | createVpnGateway + /-- Deletes an application status check. -/ + | deleteApplicationStatusCheck + /-- Deletes an existing Capacity Manager data export configuration. -/ + | deleteCapacityManagerDataExport + /-- Deletes a carrier gateway. -/ + | deleteCarrierGateway + /-- Deletes the specified Client VPN endpoint. -/ + | deleteClientVpnEndpoint + /-- Deletes the authorization policy for a Client VPN endpoint. -/ + | deleteClientVpnEndpointAuthorizationPolicy + /-- Deletes a route from a Client VPN endpoint. -/ + | deleteClientVpnRoute + /-- Deletes a range of customer-owned IP addresses. -/ + | deleteCoipCidr + /-- Deletes a pool of customer-owned IP (CoIP) addresses. -/ + | deleteCoipPool + /-- Deletes the specified customer gateway. -/ + | deleteCustomerGateway + /-- Deletes the specified set of DHCP options. -/ + | deleteDhcpOptions + /-- Deletes an egress-only internet gateway. -/ + | deleteEgressOnlyInternetGateway + /-- Deletes the specified EC2 Fleet request. -/ + | deleteFleets + /-- Deletes one or more flow logs. -/ + | deleteFlowLogs + /-- Deletes the specified Amazon FPGA Image (AFI). -/ + | deleteFpgaImage + /-- Deletes the specified image usage report. -/ + | deleteImageUsageReport + /-- Deletes the specified EC2 Instance Connect Endpoint. -/ + | deleteInstanceConnectEndpoint + /-- Deletes the specified event window. -/ + | deleteInstanceEventWindow + /-- Deletes the specified internet gateway. -/ + | deleteInternetGateway + /-- Delete an IPAM. -/ + | deleteIpam + /-- Delete a verification token. -/ + | deleteIpamExternalResourceVerificationToken + /-- Deletes an IPAM internet registry association. -/ + | deleteIpamInternetRegistryAssociation + /-- Deletes an IPAM policy. -/ + | deleteIpamPolicy + /-- Delete an IPAM pool. -/ + | deleteIpamPool + /-- Deletes an IPAM prefix list resolver. -/ + | deleteIpamPrefixListResolver + /-- Deletes an IPAM prefix list resolver target. -/ + | deleteIpamPrefixListResolverTarget + /-- Deletes an IPAM resource discovery. -/ + | deleteIpamResourceDiscovery + /-- Deletes a routing policy registration for a specified CIDR prefix. -/ + | deleteIpamRoutingPolicyRegistration + /-- Delete the scope for an IPAM. -/ + | deleteIpamScope + /-- Deletes the specified key pair, by removing the public key from Amazon EC2. -/ + | deleteKeyPair + /-- Deletes a launch template. -/ + | deleteLaunchTemplate + /-- Deletes one or more versions of a launch template. -/ + | deleteLaunchTemplateVersions + /-- Deletes the specified route from the specified local gateway route table. -/ + | deleteLocalGatewayRoute + /-- Deletes a local gateway route table. -/ + | deleteLocalGatewayRouteTable + /-- Deletes a local gateway route table virtual interface group association. -/ + | deleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation + /-- Deletes the specified association between a VPC and local gateway route table. -/ + | deleteLocalGatewayRouteTableVpcAssociation + /-- Deletes the specified local gateway virtual interface. -/ + | deleteLocalGatewayVirtualInterface + /-- Delete the specified local gateway interface group. -/ + | deleteLocalGatewayVirtualInterfaceGroup + /-- Deletes the specified managed prefix list. -/ + | deleteManagedPrefixList + /-- Deletes the specified metric category. -/ + | deleteMetricCategory + /-- Deletes the specified NAT gateway. -/ + | deleteNatGateway + /-- Deletes the specified network ACL. -/ + | deleteNetworkAcl + /-- Deletes the specified ingress or egress entry (rule) from the specified network ACL. -/ + | deleteNetworkAclEntry + /-- Deletes the specified Network Access Scope. -/ + | deleteNetworkInsightsAccessScope + /-- Deletes the specified Network Access Scope analysis. -/ + | deleteNetworkInsightsAccessScopeAnalysis + /-- Deletes the specified network insights analysis. -/ + | deleteNetworkInsightsAnalysis + /-- Deletes the specified path. -/ + | deleteNetworkInsightsPath + /-- Deletes the specified network interface. -/ + | deleteNetworkInterface + /-- Deletes a permission for a network interface. -/ + | deleteNetworkInterfacePermission + /-- Deletes one or more flex cost allocation policies. -/ + | deleteNetworkingFlexCostAllocationPolicies + /-- Deletes the specified placement group. -/ + | deletePlacementGroup + /-- Delete a public IPv4 pool. -/ + | deletePublicIpv4Pool + /-- Deletes the queued purchases for the specified Reserved Instances. -/ + | deleteQueuedReservedInstances + /-- Deletes the specified route from the specified route table. -/ + | deleteRoute + /-- Deletes the specified route server. -/ + | deleteRouteServer + /-- Deletes the specified route server endpoint. -/ + | deleteRouteServerEndpoint + /-- Deletes the specified BGP peer from a route server. -/ + | deleteRouteServerPeer + /-- Deletes the specified route table. -/ + | deleteRouteTable + /-- Deletes a secondary network. -/ + | deleteSecondaryNetwork + /-- Deletes a secondary subnet. -/ + | deleteSecondarySubnet + /-- Deletes a security group. -/ + | deleteSecurityGroup + /-- Deletes the specified snapshot. -/ + | deleteSnapshot + /-- Deletes the data feed for Spot Instances. -/ + | deleteSpotDatafeedSubscription + /-- Deletes the specified subnet. -/ + | deleteSubnet + /-- Deletes a subnet CIDR reservation. -/ + | deleteSubnetCidrReservation + /-- Deletes the specified set of tags from the specified set of resources. -/ + | deleteTags + /-- Deletes the specified Traffic Mirror filter. -/ + | deleteTrafficMirrorFilter + /-- Deletes the specified Traffic Mirror rule. -/ + | deleteTrafficMirrorFilterRule + /-- Deletes the specified Traffic Mirror session. -/ + | deleteTrafficMirrorSession + /-- Deletes the specified Traffic Mirror target. -/ + | deleteTrafficMirrorTarget + /-- Deletes the specified transit gateway. -/ + | deleteTransitGateway + /-- Deletes a Transit Gateway attachment for a Client VPN endpoint. -/ + | deleteTransitGatewayClientVpnAttachment + /-- Deletes the specified Connect attachment. -/ + | deleteTransitGatewayConnect + /-- Deletes the specified Connect peer. -/ + | deleteTransitGatewayConnectPeer + /-- Deletes a transit gateway metering policy. -/ + | deleteTransitGatewayMeteringPolicy + /-- Deletes an entry from a transit gateway metering policy. -/ + | deleteTransitGatewayMeteringPolicyEntry + /-- Deletes the specified transit gateway multicast domain. -/ + | deleteTransitGatewayMulticastDomain + /-- Deletes the specified network function attachment. -/ + | deleteTransitGatewayNetworkFunctionAttachment + /-- Deletes a transit gateway peering attachment. -/ + | deleteTransitGatewayPeeringAttachment + /-- Deletes the specified transit gateway policy table. -/ + | deleteTransitGatewayPolicyTable + /-- Deletes the specified transit gateway policy table entry. -/ + | deleteTransitGatewayPolicyTableEntry + /-- Deletes a reference (route) to a prefix list in a specified transit gateway route table. -/ + | deleteTransitGatewayPrefixListReference + /-- Deletes the specified route from the specified transit gateway route table. -/ + | deleteTransitGatewayRoute + /-- Deletes the specified transit gateway route table. -/ + | deleteTransitGatewayRouteTable + /-- Advertises to the transit gateway that a transit gateway route table is deleted. -/ + | deleteTransitGatewayRouteTableAnnouncement + /-- Deletes the specified VPC attachment. -/ + | deleteTransitGatewayVpcAttachment + /-- Delete an Amazon Web Services Verified Access endpoint. -/ + | deleteVerifiedAccessEndpoint + /-- Delete an Amazon Web Services Verified Access group. -/ + | deleteVerifiedAccessGroup + /-- Delete an Amazon Web Services Verified Access instance. -/ + | deleteVerifiedAccessInstance + /-- Delete an Amazon Web Services Verified Access trust provider. -/ + | deleteVerifiedAccessTrustProvider + /-- Deletes the specified EBS volume. -/ + | deleteVolume + /-- Deletes the specified VPC. -/ + | deleteVpc + /-- Delete a VPC Block Public Access (BPA) exclusion. -/ + | deleteVpcBlockPublicAccessExclusion + /-- Deletes a VPC Encryption Control configuration. -/ + | deleteVpcEncryptionControl + /-- Deletes the specified VPC endpoint connection notifications. -/ + | deleteVpcEndpointConnectionNotifications + /-- Deletes the specified VPC endpoint service configurations. -/ + | deleteVpcEndpointServiceConfigurations + /-- Deletes the specified VPC endpoints. -/ + | deleteVpcEndpoints + /-- Deletes a VPC peering connection. -/ + | deleteVpcPeeringConnection + /-- Deletes the specified VPN concentrator. -/ + | deleteVpnConcentrator + /-- Deletes the specified VPN connection. -/ + | deleteVpnConnection + /-- Deletes the specified static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. -/ + | deleteVpnConnectionRoute + /-- Deletes the specified virtual private gateway. -/ + | deleteVpnGateway + /-- Releases the specified address range that you provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP) and deletes the corresponding address pool. -/ + | deprovisionByoipCidr + /-- Deprovisions your Autonomous System Number (ASN) from your Amazon Web Services account. -/ + | deprovisionIpamByoasn + /-- Deprovision a CIDR provisioned from an IPAM pool. -/ + | deprovisionIpamPoolCidr + /-- Deprovision a CIDR from a public IPv4 pool. -/ + | deprovisionPublicIpv4PoolCidr + /-- Deregisters the specified AMI. -/ + | deregisterImage + /-- Deregisters tag keys to prevent tags that have the specified tag keys from being included in scheduled event notifications for resources in the Region. -/ + | deregisterInstanceEventNotificationAttributes + /-- Deregisters the specified members (network interfaces) from the transit gateway multicast group. -/ + | deregisterTransitGatewayMulticastGroupMembers + /-- Deregisters the specified sources (network interfaces) from the transit gateway multicast group. -/ + | deregisterTransitGatewayMulticastGroupSources + /-- Describes attributes of your Amazon Web Services account. -/ + | describeAccountAttributes + /-- Describes the account-level VPC Encryption Control configuration for your account. -/ + | describeAccountVpcEncryptionControl + /-- Describes an Elastic IP address transfer. -/ + | describeAddressTransfers + /-- Describes the specified Elastic IP addresses or all of your Elastic IP addresses. -/ + | describeAddresses + /-- Describes the attributes of the specified Elastic IP addresses. -/ + | describeAddressesAttribute + /-- Describes the longer ID format settings for all resource types in a specific Region. -/ + | describeAggregateIdFormat + /-- Describes the aggregated application health status for the specified instances. -/ + | describeApplicationStatus + /-- Describes the associations for one or more application status checks. -/ + | describeApplicationStatusCheckAssociations + /-- Describes application status checks, including configuration details such as protocol, port, path, thresholds, and associations. -/ + | describeApplicationStatusChecks + /-- Describes the Availability Zones, Local Zones, and Wavelength Zones that are available to you. -/ + | describeAvailabilityZones + /-- Describes the current Infrastructure Performance metric subscriptions. -/ + | describeAwsNetworkPerformanceMetricSubscriptions + /-- Describes the specified bundle tasks or all of your bundle tasks. -/ + | describeBundleTasks + /-- Describes the IP address ranges that were provisioned for use with Amazon Web Services resources through through bring your own IP addresses (BYOIP). -/ + | describeByoipCidrs + /-- Describes the events for the specified Capacity Block extension during the specified time. -/ + | describeCapacityBlockExtensionHistory + /-- Describes Capacity Block extension offerings available for purchase in the Amazon Web Services Region that you're currently using. -/ + | describeCapacityBlockExtensionOfferings + /-- Describes Capacity Block offerings available for purchase in the Amazon Web Services Region that you're currently using. -/ + | describeCapacityBlockOfferings + /-- Describes the availability of capacity for the specified Capacity blocks, or all of your Capacity Blocks. -/ + | describeCapacityBlockStatus + /-- Describes details about Capacity Blocks in the Amazon Web Services Region that you're currently using. -/ + | describeCapacityBlocks + /-- Describes one or more Capacity Manager data export configurations. -/ + | describeCapacityManagerDataExports + /-- Describes a request to assign the billing of the unused capacity of a Capacity Reservation. -/ + | describeCapacityReservationBillingRequests + /-- Describes one or more Capacity Reservation cancellation quotes. -/ + | describeCapacityReservationCancellationQuotes + /-- Describes one or more Capacity Reservation date change quotes that you generated by using the CreateCapacityReservationDateChangeQuote operation. -/ + | describeCapacityReservationDateChangeQuotes + /-- Describes one or more Capacity Reservation Fleets. -/ + | describeCapacityReservationFleets + /-- Describes a tree-based hierarchy that represents the physical host placement of your pending or active Capacity Reservations within an Availability Zone or Local Zone. -/ + | describeCapacityReservationTopology + /-- Describes one or more of your Capacity Reservations. -/ + | describeCapacityReservations + /-- Describes one or more of your carrier gateways. -/ + | describeCarrierGateways + /-- This action is deprecated. -/ + | describeClassicLinkInstances + /-- Describes the authorization rules for a specified Client VPN endpoint. -/ + | describeClientVpnAuthorizationRules + /-- Describes active client connections and connections that have been terminated within the last 60 minutes for the specified Client VPN endpoint. -/ + | describeClientVpnConnections + /-- Describes one or more Client VPN endpoints in the account. -/ + | describeClientVpnEndpoints + /-- Describes the routes for the specified Client VPN endpoint. -/ + | describeClientVpnRoutes + /-- Describes the target networks associated with the specified Client VPN endpoint. -/ + | describeClientVpnTargetNetworks + /-- Describes the specified customer-owned address pools or all of your customer-owned address pools. -/ + | describeCoipPools + /-- Describes the specified conversion tasks or all your conversion tasks. -/ + | describeConversionTasks + /-- Describes one or more of your VPN customer gateways. -/ + | describeCustomerGateways + /-- Describes the metadata of an account status report, including the status of the report. -/ + | describeDeclarativePoliciesReports + /-- Describes your DHCP option sets. -/ + | describeDhcpOptions + /-- Describes your egress-only internet gateways. -/ + | describeEgressOnlyInternetGateways + /-- Amazon Elastic Graphics reached end of life on January 8, 2024. -/ + | describeElasticGpus + /-- Describes the specified export image tasks or all of your export image tasks. -/ + | describeExportImageTasks + /-- Describes the specified export instance tasks or all of your export instance tasks. -/ + | describeExportTasks + /-- Describe details for Windows AMIs that are configured for Windows fast launch. -/ + | describeFastLaunchImages + /-- Describes the state of fast snapshot restores for your snapshots. -/ + | describeFastSnapshotRestores + /-- Describes the events for the specified EC2 Fleet during the specified time. -/ + | describeFleetHistory + /-- Describes the running instances for the specified EC2 Fleet. -/ + | describeFleetInstances + /-- Describes the specified EC2 Fleet or all of your EC2 Fleets. -/ + | describeFleets + /-- Describes one or more flow logs. -/ + | describeFlowLogs + /-- Describes the specified attribute of the specified Amazon FPGA Image (AFI). -/ + | describeFpgaImageAttribute + /-- Describes the Amazon FPGA Images (AFIs) available to you. -/ + | describeFpgaImages + /-- Describes the Dedicated Host reservations that are available to purchase. -/ + | describeHostReservationOfferings + /-- Describes reservations that are associated with Dedicated Hosts in your account. -/ + | describeHostReservations + /-- Describes the specified Dedicated Hosts or all your Dedicated Hosts. -/ + | describeHosts + /-- Describes your IAM instance profile associations. -/ + | describeIamInstanceProfileAssociations + /-- Describes the ID format settings for your resources on a per-Region basis, for example, to view which resource types are enabled for longer IDs. -/ + | describeIdFormat + /-- Describes the ID format settings for resources for the specified IAM user, IAM role, or root user. -/ + | describeIdentityIdFormat + /-- Describes the specified attribute of the specified AMI. -/ + | describeImageAttribute + /-- Describes your Amazon Web Services resources that are referencing the specified images. -/ + | describeImageReferences + /-- Describes the entries in image usage reports, showing how your images are used across other Amazon Web Services accounts. -/ + | describeImageUsageReportEntries + /-- Describes the configuration and status of image usage reports, filtered by report IDs or image IDs. -/ + | describeImageUsageReports + /-- Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you. -/ + | describeImages + /-- Displays details about an import virtual machine or import snapshot tasks that are already created. -/ + | describeImportImageTasks + /-- Describes your import snapshot tasks. -/ + | describeImportSnapshotTasks + /-- Describes the specified attribute of the specified instance. -/ + | describeInstanceAttribute + /-- Describes the specified EC2 Instance Connect Endpoints or all EC2 Instance Connect Endpoints. -/ + | describeInstanceConnectEndpoints + /-- Describes the credit option for CPU usage of the specified burstable performance instances. -/ + | describeInstanceCreditSpecifications + /-- Describes the tag keys that are registered to appear in scheduled event notifications for resources in the current Region. -/ + | describeInstanceEventNotificationAttributes + /-- Describes the specified event windows or all event windows. -/ + | describeInstanceEventWindows + /-- Describes the AMI that was used to launch an instance, even if the AMI is deprecated, deregistered, made private (no longer public or shared with your account), or not allowed. -/ + | describeInstanceImageMetadata + /-- Describes the historical SQL Server High Availability states for Amazon EC2 instances that are enabled for Amazon EC2 High Availability for SQL Server monitoring. -/ + | describeInstanceSqlHaHistoryStates + /-- Describes the SQL Server High Availability states for Amazon EC2 instances that are enabled for Amazon EC2 High Availability for SQL Server monitoring. -/ + | describeInstanceSqlHaStates + /-- Describes the status of the specified instances or all of your instances. -/ + | describeInstanceStatus + /-- Describes a tree-based hierarchy that represents the physical host placement of your EC2 instances within an Availability Zone or Local Zone. -/ + | describeInstanceTopology + /-- Lists the instance types that are offered for the specified location. -/ + | describeInstanceTypeOfferings + /-- Describes the specified instance types. -/ + | describeInstanceTypes + /-- Describes the specified instances or all instances. -/ + | describeInstances + /-- Describes your internet gateways. -/ + | describeInternetGateways + /-- Describes your Autonomous System Numbers (ASNs), their provisioning statuses, and the BYOIP CIDRs with which they are associated. -/ + | describeIpamByoasn + /-- Describe verification tokens. -/ + | describeIpamExternalResourceVerificationTokens + /-- Describes one or more IPAM internet registry associations. -/ + | describeIpamInternetRegistryAssociations + /-- Describes one or more IPAM policies. -/ + | describeIpamPolicies + /-- Describes IPAM pool allocations. -/ + | describeIpamPoolAllocations + /-- Get information about your IPAM pools. -/ + | describeIpamPools + /-- Describes one or more IPAM prefix list resolver Targets. -/ + | describeIpamPrefixListResolverTargets + /-- Describes one or more IPAM prefix list resolvers. -/ + | describeIpamPrefixListResolvers + /-- Describes IPAM resource discoveries. -/ + | describeIpamResourceDiscoveries + /-- Describes resource discovery association with an Amazon VPC IPAM. -/ + | describeIpamResourceDiscoveryAssociations + /-- Get information about your IPAM scopes. -/ + | describeIpamScopes + /-- Get information about your IPAM pools. -/ + | describeIpams + /-- Describes your IPv6 address pools. -/ + | describeIpv6Pools + /-- Describes the specified key pairs or all of your key pairs. -/ + | describeKeyPairs + /-- Describes one or more versions of a specified launch template. -/ + | describeLaunchTemplateVersions + /-- Describes one or more launch templates. -/ + | describeLaunchTemplates + /-- Describes the associations between virtual interface groups and local gateway route tables. -/ + | describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations + /-- Describes the specified associations between VPCs and local gateway route tables. -/ + | describeLocalGatewayRouteTableVpcAssociations + /-- Describes one or more local gateway route tables. -/ + | describeLocalGatewayRouteTables + /-- Describes the specified local gateway virtual interface groups. -/ + | describeLocalGatewayVirtualInterfaceGroups + /-- Describes the specified local gateway virtual interfaces. -/ + | describeLocalGatewayVirtualInterfaces + /-- Describes one or more local gateways. -/ + | describeLocalGateways + /-- Describes the lock status for a snapshot. -/ + | describeLockedSnapshots + /-- Describes the specified EC2 Mac Dedicated Host or all of your EC2 Mac Dedicated Hosts. -/ + | describeMacHosts + /-- Describes a System Integrity Protection (SIP) modification task or volume ownership delegation task for an Amazon EC2 Mac instance. -/ + | describeMacModificationTasks + /-- Describes your managed prefix lists and any Amazon Web Services-managed prefix lists. -/ + | describeManagedPrefixLists + /-- Describes the specified metric categories, or all of your metric categories. -/ + | describeMetricCategories + /-- This action is deprecated. -/ + | describeMovingAddresses + /-- Describes your NAT gateways. -/ + | describeNatGateways + /-- Describes your network ACLs. -/ + | describeNetworkAcls + /-- Describes the specified Network Access Scope analyses. -/ + | describeNetworkInsightsAccessScopeAnalyses + /-- Describes the specified Network Access Scopes. -/ + | describeNetworkInsightsAccessScopes + /-- Describes one or more of your network insights analyses. -/ + | describeNetworkInsightsAnalyses + /-- Describes one or more of your paths. -/ + | describeNetworkInsightsPaths + /-- Describes a network interface attribute. -/ + | describeNetworkInterfaceAttribute + /-- Describes the permissions for your network interfaces. -/ + | describeNetworkInterfacePermissions + /-- Describes the specified network interfaces or all your network interfaces. -/ + | describeNetworkInterfaces + /-- Describes one or more of your flex cost allocation policies. -/ + | describeNetworkingFlexCostAllocationPolicies + /-- Describes the associations between your flex cost allocation policies and network resources. -/ + | describeNetworkingFlexCostAllocationPolicyAssociations + /-- Describes the Outposts link aggregation groups (LAGs). -/ + | describeOutpostLags + /-- Describes the specified placement groups or all of your placement groups. -/ + | describePlacementGroups + /-- Describes available Amazon Web Services services in a prefix list format, which includes the prefix list name and prefix list ID of the service and the IP address range for the service. -/ + | describePrefixLists + /-- Describes the ID format settings for the root user and all IAM roles and IAM users that have explicitly specified a longer ID (17-character ID) preference. -/ + | describePrincipalIdFormat + /-- Describes the specified IPv4 address pools. -/ + | describePublicIpv4Pools + /-- Describes the Regions that are enabled for your account, or all Regions. -/ + | describeRegions + /-- Describes a root volume replacement task. -/ + | describeReplaceRootVolumeTasks + /-- Describes one or more of the Reserved Instances that you purchased. -/ + | describeReservedInstances + /-- Describes your account's Reserved Instance listings in the Reserved Instance Marketplace. -/ + | describeReservedInstancesListings + /-- Describes the modifications made to your Reserved Instances. -/ + | describeReservedInstancesModifications + /-- Describes Reserved Instance offerings that are available for purchase. -/ + | describeReservedInstancesOfferings + /-- Describes one or more route server endpoints. -/ + | describeRouteServerEndpoints + /-- Describes one or more route server peers. -/ + | describeRouteServerPeers + /-- Describes one or more route servers. -/ + | describeRouteServers + /-- Describes your route tables. -/ + | describeRouteTables + /-- Finds available schedules that meet the specified criteria. -/ + | describeScheduledInstanceAvailability + /-- Describes the specified Scheduled Instances or all your Scheduled Instances. -/ + | describeScheduledInstances + /-- Describes one or more of your secondary interfaces. -/ + | describeSecondaryInterfaces + /-- Describes one or more secondary networks. -/ + | describeSecondaryNetworks + /-- Describes one or more of your secondary subnets. -/ + | describeSecondarySubnets + /-- Describes the VPCs on the other side of a VPC peering or Transit Gateway connection that are referencing the security groups you've specified in this request. -/ + | describeSecurityGroupReferences + /-- Describes one or more of your security group rules. -/ + | describeSecurityGroupRules + /-- Describes security group VPC associations made with AssociateSecurityGroupVpc . -/ + | describeSecurityGroupVpcAssociations + /-- Describes the specified security groups or all of your security groups. -/ + | describeSecurityGroups + /-- Describes the Outpost service link virtual interfaces. -/ + | describeServiceLinkVirtualInterfaces + /-- Describes the specified attribute of the specified snapshot. -/ + | describeSnapshotAttribute + /-- Describes the storage tier status of one or more Amazon EBS snapshots. -/ + | describeSnapshotTierStatus + /-- Describes the specified EBS snapshots available to you or all of the EBS snapshots available to you. -/ + | describeSnapshots + /-- Describes the data feed for Spot Instances. -/ + | describeSpotDatafeedSubscription + /-- Describes the running instances for the specified Spot Fleet. -/ + | describeSpotFleetInstances + /-- Describes the events for the specified Spot Fleet request during the specified time. -/ + | describeSpotFleetRequestHistory + /-- Describes your Spot Fleet requests. -/ + | describeSpotFleetRequests + /-- Describes the specified Spot Instance requests. -/ + | describeSpotInstanceRequests + /-- Describes the Spot price history. -/ + | describeSpotPriceHistory + /-- Describes the stale security group rules for security groups referenced across a VPC peering connection, transit gateway connection, or with a security group VPC association. -/ + | describeStaleSecurityGroups + /-- Describes the progress of the AMI store tasks. -/ + | describeStoreImageTasks + /-- Describes your subnets. -/ + | describeSubnets + /-- Describes the specified tags for your EC2 resources. -/ + | describeTags + /-- Describe traffic mirror filters that determine the traffic that is mirrored. -/ + | describeTrafficMirrorFilterRules + /-- Describes one or more Traffic Mirror filters. -/ + | describeTrafficMirrorFilters + /-- Describes one or more Traffic Mirror sessions. -/ + | describeTrafficMirrorSessions + /-- Information about one or more Traffic Mirror targets. -/ + | describeTrafficMirrorTargets + /-- Describes one or more attachments between resources and transit gateways. -/ + | describeTransitGatewayAttachments + /-- Describes one or more Connect peers. -/ + | describeTransitGatewayConnectPeers + /-- Describes one or more Connect attachments. -/ + | describeTransitGatewayConnects + /-- Describes one or more transit gateway metering policies. -/ + | describeTransitGatewayMeteringPolicies + /-- Describes one or more transit gateway multicast domains. -/ + | describeTransitGatewayMulticastDomains + /-- Describes one or more network function attachments. -/ + | describeTransitGatewayNetworkFunctionAttachments + /-- Describes your transit gateway peering attachments. -/ + | describeTransitGatewayPeeringAttachments + /-- Describes one or more transit gateway route policy tables. -/ + | describeTransitGatewayPolicyTables + /-- Describes one or more transit gateway route table advertisements. -/ + | describeTransitGatewayRouteTableAnnouncements + /-- Describes one or more transit gateway route tables. -/ + | describeTransitGatewayRouteTables + /-- Describes one or more VPC attachments. -/ + | describeTransitGatewayVpcAttachments + /-- Describes one or more transit gateways. -/ + | describeTransitGateways + /-- Describes one or more network interface trunk associations. -/ + | describeTrunkInterfaceAssociations + /-- Describes the specified Amazon Web Services Verified Access endpoints. -/ + | describeVerifiedAccessEndpoints + /-- Describes the specified Verified Access groups. -/ + | describeVerifiedAccessGroups + /-- Describes the specified Amazon Web Services Verified Access instances. -/ + | describeVerifiedAccessInstanceLoggingConfigurations + /-- Describes the specified Amazon Web Services Verified Access instances. -/ + | describeVerifiedAccessInstances + /-- Describes the specified Amazon Web Services Verified Access trust providers. -/ + | describeVerifiedAccessTrustProviders + /-- Describes the specified attribute of the specified volume. -/ + | describeVolumeAttribute + /-- Describes the status of the specified volumes. -/ + | describeVolumeStatus + /-- Describes the specified EBS volumes or all of your EBS volumes. -/ + | describeVolumes + /-- Describes the most recent volume modification request for the specified EBS volumes. -/ + | describeVolumesModifications + /-- Describes the specified attribute of the specified VPC. -/ + | describeVpcAttribute + /-- Describe VPC Block Public Access (BPA) exclusions. -/ + | describeVpcBlockPublicAccessExclusions + /-- Describe VPC Block Public Access (BPA) options. -/ + | describeVpcBlockPublicAccessOptions + /-- This action is deprecated. -/ + | describeVpcClassicLink + /-- This action is deprecated. -/ + | describeVpcClassicLinkDnsSupport + /-- Describes one or more VPC Encryption Control configurations. -/ + | describeVpcEncryptionControls + /-- Describes the VPC resources, VPC endpoint services, Amazon Lattice services, or service networks associated with the VPC endpoint. -/ + | describeVpcEndpointAssociations + /-- Describes the connection notifications for VPC endpoints and VPC endpoint services. -/ + | describeVpcEndpointConnectionNotifications + /-- Describes the VPC endpoint connections to your VPC endpoint services, including any endpoints that are pending your acceptance. -/ + | describeVpcEndpointConnections + /-- Describes the VPC endpoint service configurations in your account (your services). -/ + | describeVpcEndpointServiceConfigurations + /-- Describes the principals (service consumers) that are permitted to discover your VPC endpoint service. -/ + | describeVpcEndpointServicePermissions + /-- Describes available services to which you can create a VPC endpoint. -/ + | describeVpcEndpointServices + /-- Describes your VPC endpoints. -/ + | describeVpcEndpoints + /-- Describes your VPC peering connections. -/ + | describeVpcPeeringConnections + /-- Describes your VPCs. -/ + | describeVpcs + /-- Describes one or more of your VPN concentrators. -/ + | describeVpnConcentrators + /-- Describes one or more of your VPN connections. -/ + | describeVpnConnections + /-- Describes one or more of your virtual private gateways. -/ + | describeVpnGateways + /-- This action is deprecated. -/ + | detachClassicLinkVpc + /-- Removes a watermark from the specified AMI. -/ + | detachImageWatermark + /-- Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC. -/ + | detachInternetGateway + /-- Detaches a network interface from an instance. -/ + | detachNetworkInterface + /-- Detaches the specified Amazon Web Services Verified Access trust provider from the specified Amazon Web Services Verified Access instance. -/ + | detachVerifiedAccessTrustProvider + /-- Detaches an EBS volume from an instance. -/ + | detachVolume + /-- Detaches a virtual private gateway from a VPC. -/ + | detachVpnGateway + /-- Disables Elastic IP address transfer. -/ + | disableAddressTransfer + /-- Disables Allowed AMIs for your account in the specified Amazon Web Services Region. -/ + | disableAllowedImagesSettings + /-- Disables suppression of application status checks for the specified instances. -/ + | disableApplicationStatusCheckSuppression + /-- Disables Infrastructure Performance metric subscriptions. -/ + | disableAwsNetworkPerformanceMetricSubscription + /-- Disables EC2 Capacity Manager for your account. -/ + | disableCapacityManager + /-- Disables EBS encryption by default for your account in the current Region. -/ + | disableEbsEncryptionByDefault + /-- Discontinue Windows fast launch for a Windows AMI, and clean up existing pre-provisioned snapshots. -/ + | disableFastLaunch + /-- Disables fast snapshot restores for the specified snapshots in the specified Availability Zones. -/ + | disableFastSnapshotRestores + /-- Sets the AMI state to disabled and removes all launch permissions from the AMI. -/ + | disableImage + /-- Disables block public access for AMIs at the account level in the specified Amazon Web Services Region. -/ + | disableImageBlockPublicAccess + /-- Cancels the deprecation of the specified AMI. -/ + | disableImageDeprecation + /-- Disables deregistration protection for an AMI. -/ + | disableImageDeregistrationProtection + /-- Disable Amazon EC2 instances running in an SQL Server High Availability cluster from SQL Server High Availability instance standby detection monitoring. -/ + | disableInstanceSqlHaStandbyDetections + /-- Disable the IPAM account. -/ + | disableIpamOrganizationAdminAccount + /-- Disables an IPAM policy. -/ + | disableIpamPolicy + /-- Disables route propagation from a route server to a specified route table. -/ + | disableRouteServerPropagation + /-- Disables access to the EC2 serial console of all instances for your account. -/ + | disableSerialConsoleAccess + /-- Disables the block public access for snapshots setting at the account level for the specified Amazon Web Services Region. -/ + | disableSnapshotBlockPublicAccess + /-- Disables the specified resource attachment from propagating routes to the specified propagation route table. -/ + | disableTransitGatewayRouteTablePropagation + /-- Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC. -/ + | disableVgwRoutePropagation + /-- This action is deprecated. -/ + | disableVpcClassicLink + /-- This action is deprecated. -/ + | disableVpcClassicLinkDnsSupport + /-- Disassociates an Elastic IP address from the instance or network interface it's associated with. -/ + | disassociateAddress + /-- Disassociates an application status check from instances or tags . -/ + | disassociateApplicationStatusCheck + /-- Cancels a pending request to assign billing of the unused capacity of a Capacity Reservation to a consumer account, or revokes a request that has already been accepted. -/ + | disassociateCapacityReservationBillingOwner + /-- Disassociates a target network from the specified Client VPN endpoint. -/ + | disassociateClientVpnTargetNetwork + /-- Disassociates an IAM role from an Certificate Manager (ACM) certificate. -/ + | disassociateEnclaveCertificateIamRole + /-- Disassociates an IAM instance profile from a running or stopped instance. -/ + | disassociateIamInstanceProfile + /-- Disassociates one or more targets from an event window. -/ + | disassociateInstanceEventWindow + /-- Remove the association between your Autonomous System Number (ASN) and your BYOIP CIDR. -/ + | disassociateIpamByoasn + /-- Disassociates a resource discovery from an Amazon VPC IPAM. -/ + | disassociateIpamResourceDiscovery + /-- Removes an associated KMS key from an Amazon EBS snapshot. -/ + | disassociateKmsKeyId + /-- Disassociates secondary Elastic IP addresses (EIPs) from a public NAT gateway. -/ + | disassociateNatGatewayAddress + /-- Disassociates a flex cost allocation policy from one or more network resources. -/ + | disassociateNetworkingFlexCostAllocationPolicy + /-- Disassociates a route server from a VPC. -/ + | disassociateRouteServer + /-- Disassociates a subnet or gateway from a route table. -/ + | disassociateRouteTable + /-- Disassociates a security group from a VPC. -/ + | disassociateSecurityGroupVpc + /-- Disassociates a CIDR block from a subnet. -/ + | disassociateSubnetCidrBlock + /-- Disassociates the specified subnets from the transit gateway multicast domain. -/ + | disassociateTransitGatewayMulticastDomain + /-- Removes the association between an an attachment and a policy table. -/ + | disassociateTransitGatewayPolicyTable + /-- Disassociates a resource attachment from a transit gateway route table. -/ + | disassociateTransitGatewayRouteTable + /-- Removes an association between a branch network interface with a trunk network interface. -/ + | disassociateTrunkInterface + /-- Disassociates a CIDR block from a VPC. -/ + | disassociateVpcCidrBlock + /-- Enables Elastic IP address transfer. -/ + | enableAddressTransfer + /-- Enables Allowed AMIs for your account in the specified Amazon Web Services Region. -/ + | enableAllowedImagesSettings + /-- Suppresses application status checks for the specified instances. -/ + | enableApplicationStatusCheckSuppression + /-- Enables Infrastructure Performance subscriptions. -/ + | enableAwsNetworkPerformanceMetricSubscription + /-- Enables EC2 Capacity Manager for your account. -/ + | enableCapacityManager + /-- Enables EBS encryption by default for your account in the current Region. -/ + | enableEbsEncryptionByDefault + /-- When you enable Windows fast launch for a Windows AMI, images are pre-provisioned, using snapshots to launch instances up to 65% faster. -/ + | enableFastLaunch + /-- Enables fast snapshot restores for the specified snapshots in the specified Availability Zones. -/ + | enableFastSnapshotRestores + /-- Re-enables a disabled AMI. -/ + | enableImage + /-- Enables block public access for AMIs at the account level in the specified Amazon Web Services Region. -/ + | enableImageBlockPublicAccess + /-- Enables deprecation of the specified AMI at the specified date and time. -/ + | enableImageDeprecation + /-- Enables deregistration protection for an AMI. -/ + | enableImageDeregistrationProtection + /-- Enable Amazon EC2 instances running in an SQL Server High Availability cluster for SQL Server High Availability instance standby detection monitoring. -/ + | enableInstanceSqlHaStandbyDetections + /-- Enables Resource Public Key Infrastructure (RPKI) on an existing IPAM internet registry association by providing BGP Public Key Infrastructure (BPKI) certificate details. -/ + | enableIpamInternetRegistryAssociation + /-- Enable an Organizations member account as the IPAM admin account. -/ + | enableIpamOrganizationAdminAccount + /-- Enables an IPAM policy. -/ + | enableIpamPolicy + /-- Establishes a trust relationship between Reachability Analyzer and Organizations. -/ + | enableReachabilityAnalyzerOrganizationSharing + /-- Defines which route tables the route server can update with routes. -/ + | enableRouteServerPropagation + /-- Enables access to the EC2 serial console of all instances for your account. -/ + | enableSerialConsoleAccess + /-- Enables or modifies the block public access for snapshots setting at the account level for the specified Amazon Web Services Region. -/ + | enableSnapshotBlockPublicAccess + /-- Enables the specified attachment to propagate routes to the specified propagation route table. -/ + | enableTransitGatewayRouteTablePropagation + /-- Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC. -/ + | enableVgwRoutePropagation + /-- Enables I/O operations for a volume that had I/O operations disabled because the data on the volume was potentially inconsistent. -/ + | enableVolumeIO + /-- This action is deprecated. -/ + | enableVpcClassicLink + /-- This action is deprecated. -/ + | enableVpcClassicLinkDnsSupport + /-- Downloads the client certificate revocation list for the specified Client VPN endpoint. -/ + | exportClientVpnClientCertificateRevocationList + /-- Downloads the contents of the Client VPN endpoint configuration file for the specified Client VPN endpoint. -/ + | exportClientVpnClientConfiguration + /-- Exports an Amazon Machine Image (AMI) to a VM file. -/ + | exportImage + /-- Exports routes from the specified transit gateway route table to the specified S3 bucket. -/ + | exportTransitGatewayRoutes + /-- Exports the client configuration for a Verified Access instance. -/ + | exportVerifiedAccessInstanceClientConfiguration + /-- Returns the currently negotiated security parameters for an active VPN tunnel, including IKE version, DH groups, encryption algorithms, and integrity algorithms. -/ + | getActiveVpnTunnelStatus + /-- Gets the current state of the Allowed AMIs setting and the list of Allowed AMIs criteria at the account level in the specified Region. -/ + | getAllowedImagesSettings + /-- Returns the IAM roles that are associated with the specified ACM (ACM) certificate. -/ + | getAssociatedEnclaveCertificateIamRoles + /-- Gets information about the IPv6 CIDR block associations for a specified IPv6 address pool. -/ + | getAssociatedIpv6PoolCidrs + /-- Gets network performance data. -/ + | getAwsNetworkPerformanceData + /-- Retrieves the current configuration and status of EC2 Capacity Manager for your account, including enablement status, Organizations access settings, and data ingestion status. -/ + | getCapacityManagerAttributes + /-- Retrieves capacity usage metrics for your EC2 resources. -/ + | getCapacityManagerMetricData + /-- Retrieves the available dimension values for capacity metrics within a specified time range. -/ + | getCapacityManagerMetricDimensions + /-- Retrieves the tag keys that are currently being monitored by EC2 Capacity Manager. -/ + | getCapacityManagerMonitoredTagKeys + /-- Scores how well each instance type and Availability Zone combination can support a capacity request, based on current Amazon EC2 capacity. -/ + | getCapacityManagerSupportabilityScores + /-- Gets usage information about a Capacity Reservation. -/ + | getCapacityReservationUsage + /-- Describes the authorization policy for a Client VPN endpoint. -/ + | getClientVpnEndpointAuthorizationPolicy + /-- Describes the allocations from the specified customer-owned address pool. -/ + | getCoipPoolUsage + /-- Gets the console output for the specified instance. -/ + | getConsoleOutput + /-- Retrieve a JPG-format screenshot of a running instance to help with troubleshooting. -/ + | getConsoleScreenshot + /-- Retrieves a summary of the account status report. -/ + | getDeclarativePoliciesReportSummary + /-- Describes the default credit option for CPU usage of a burstable performance instance family. -/ + | getDefaultCreditSpecification + /-- Describes the default KMS key for EBS encryption by default for your account in this Region. -/ + | getEbsDefaultKmsKeyId + /-- Describes whether EBS encryption by default is enabled for your account in the current Region. -/ + | getEbsEncryptionByDefault + /-- Gets the enabled IPAM policy. -/ + | getEnabledIpamPolicy + /-- Generates a CloudFormation template that streamlines and automates the integration of VPC flow logs with Amazon Athena. -/ + | getFlowLogsIntegrationTemplate + /-- Lists the resource groups to which a Capacity Reservation has been added. -/ + | getGroupsForCapacityReservation + /-- Preview a reservation purchase with configurations that match those of your Dedicated Host. -/ + | getHostReservationPurchasePreview + /-- Retrieves the ancestry chain of the specified AMI, tracing its lineage back to the root AMI. -/ + | getImageAncestry + /-- Gets the current state of block public access for AMIs at the account level in the specified Amazon Web Services Region. -/ + | getImageBlockPublicAccessState + /-- Describes the Amazon Inspector vulnerability findings for the specified AMI. -/ + | getImageFindings + /-- Gets the default instance metadata service (IMDS) settings that are set at the account level in the specified Amazon Web Services
 Region. -/ + | getInstanceMetadataDefaults + /-- Gets the public endorsement key associated with the Nitro Trusted Platform Module (NitroTPM) for the specified instance. -/ + | getInstanceTpmEkPub + /-- Returns a list of instance types with the specified instance attributes. -/ + | getInstanceTypesFromInstanceRequirements + /-- A binary representation of the UEFI variable store. -/ + | getInstanceUefiData + /-- Retrieve historical information about a CIDR within an IPAM scope. -/ + | getIpamAddressHistory + /-- Gets IPAM discovered accounts. -/ + | getIpamDiscoveredAccounts + /-- Gets the public IP addresses that have been discovered by IPAM. -/ + | getIpamDiscoveredPublicAddresses + /-- Returns the resource CIDRs that are monitored as part of a resource discovery. -/ + | getIpamDiscoveredResourceCidrs + /-- Retrieves Border Gateway Protocol (BGP) routes discovered by IPAM resource discovery for a specified Region. -/ + | getIpamDiscoveredRoutes + /-- Retrieves Autonomous System Numbers (ASNs) registered with an internet registry for an IPAM internet registry association. -/ + | getIpamInternetRegistryAssociationAsns + /-- Retrieves IP address CIDRs registered with an internet registry for an IPAM internet registry association. -/ + | getIpamInternetRegistryAssociationCidrs + /-- Gets the allocation rules for an IPAM policy. -/ + | getIpamPolicyAllocationRules + /-- Gets the Amazon Web Services Organizations targets for an IPAM policy. -/ + | getIpamPolicyOrganizationTargets + /-- Get a list of all the CIDR allocations in an IPAM pool. -/ + | getIpamPoolAllocations + /-- Get the CIDRs provisioned to an IPAM pool. -/ + | getIpamPoolCidrs + /-- Retrieves the CIDR selection rules for an IPAM prefix list resolver. -/ + | getIpamPrefixListResolverRules + /-- Retrieves the CIDR entries for a specific version of an IPAM prefix list resolver. -/ + | getIpamPrefixListResolverVersionEntries + /-- Retrieves version information for an IPAM prefix list resolver. -/ + | getIpamPrefixListResolverVersions + /-- Returns resource CIDRs managed by IPAM in a given scope. -/ + | getIpamResourceCidrs + /-- Retrieves the current Route Origin Authorizations (ROAs) published to the RPKI for an IPAM internet registry association. -/ + | getIpamRouteOriginAuthorizations + /-- Retrieves route protection findings for an IPAM. -/ + | getIpamRouteProtectionFindings + /-- Retrieves the history of routing policy registration changes for an IPAM internet registry association. -/ + | getIpamRoutingPolicyRegistrationDeltas + /-- Retrieves routing policy registrations for an IPAM internet registry association. -/ + | getIpamRoutingPolicyRegistrations + /-- Retrieves the configuration data of the specified instance. -/ + | getLaunchTemplateData + /-- Gets information about the resources that are associated with the specified managed prefix list. -/ + | getManagedPrefixListAssociations + /-- Gets information about the entries for a specified managed prefix list. -/ + | getManagedPrefixListEntries + /-- Retrieves the managed resource visibility configuration for the account. -/ + | getManagedResourceVisibility + /-- Gets the findings for the specified Network Access Scope analysis. -/ + | getNetworkInsightsAccessScopeAnalysisFindings + /-- Gets the content for the specified Network Access Scope. -/ + | getNetworkInsightsAccessScopeContent + /-- Retrieves the versions of a flex cost allocation policy. -/ + | getNetworkingFlexCostAllocationPolicyVersions + /-- Retrieves the encrypted administrator password for a running Windows instance. -/ + | getPasswordData + /-- Returns a quote and exchange information for exchanging one or more specified Convertible Reserved Instances for a new Convertible Reserved Instance. -/ + | getReservedInstancesExchangeQuote + /-- Gets information about the associations for the specified route server. -/ + | getRouteServerAssociations + /-- Gets information about the route propagations for the specified route server. -/ + | getRouteServerPropagations + /-- Gets the routing database for the specified route server. -/ + | getRouteServerRoutingDatabase + /-- Gets security groups that can be associated by the Amazon Web Services account making the request with network interfaces in the specified VPC. -/ + | getSecurityGroupsForVpc + /-- Retrieves the access status of your account to the EC2 serial console of all instances. -/ + | getSerialConsoleAccessStatus + /-- Gets the current state of block public access for snapshots setting for the account and Region. -/ + | getSnapshotBlockPublicAccessState + /-- Calculates the Spot placement score for a Region or Availability Zone based on the specified target capacity and compute requirements. -/ + | getSpotPlacementScores + /-- Gets information about the subnet CIDR reservations. -/ + | getSubnetCidrReservations + /-- Describes the NAT configuration for the specified transit gateway attachment. -/ + | getTransitGatewayAttachmentNatConfiguration + /-- Lists the route tables to which the specified resource attachment propagates routes. -/ + | getTransitGatewayAttachmentPropagations + /-- Retrieves the entries for a transit gateway metering policy. -/ + | getTransitGatewayMeteringPolicyEntries + /-- Gets information about the associations for the transit gateway multicast domain. -/ + | getTransitGatewayMulticastDomainAssociations + /-- Gets a list of the transit gateway policy table associations. -/ + | getTransitGatewayPolicyTableAssociations + /-- Returns a list of transit gateway policy table entries. -/ + | getTransitGatewayPolicyTableEntries + /-- Gets information about the prefix list references in a specified transit gateway route table. -/ + | getTransitGatewayPrefixListReferences + /-- Gets information about the associations for the specified transit gateway route table. -/ + | getTransitGatewayRouteTableAssociations + /-- Gets information about the route table propagations for the specified transit gateway route table. -/ + | getTransitGatewayRouteTablePropagations + /-- Get the Verified Access policy associated with the endpoint. -/ + | getVerifiedAccessEndpointPolicy + /-- Gets the targets for the specified network CIDR endpoint for Verified Access. -/ + | getVerifiedAccessEndpointTargets + /-- Shows the contents of the Verified Access policy associated with the group. -/ + | getVerifiedAccessGroupPolicy + /-- Gets information about resources in a VPC that are blocking encryption enforcement. -/ + | getVpcResourcesBlockingEncryptionEnforcement + /-- Download an Amazon Web Services-provided sample configuration file to be used with the customer gateway device specified for your Site-to-Site VPN connection. -/ + | getVpnConnectionDeviceSampleConfiguration + /-- Obtain a list of customer gateway devices for which sample configuration files can be provided. -/ + | getVpnConnectionDeviceTypes + /-- Get details of available tunnel endpoint maintenance. -/ + | getVpnTunnelReplacementStatus + /-- Uploads a client certificate revocation list to the specified Client VPN endpoint. -/ + | importClientVpnClientCertificateRevocationList + /-- To import your virtual machines (VMs) with a console-based experience, you can use the Import virtual machine images to Amazon Web Services template in the Migration Hub Orchestrator console . -/ + | importImage + /-- We recommend that you use the ImportImage API instead. -/ + | importInstance + /-- Imports the public key from an RSA or ED25519 key pair that you created using a third-party tool. -/ + | importKeyPair + /-- Imports a disk into an EBS snapshot. -/ + | importSnapshot + /-- This API action supports only single-volume VMs. -/ + | importVolume + /-- Lists one or more AMIs that are currently in the Recycle Bin. -/ + | listImagesInRecycleBin + /-- Lists one or more snapshots that are currently in the Recycle Bin. -/ + | listSnapshotsInRecycleBin + /-- Lists one or more volumes that are currently in the Recycle Bin. -/ + | listVolumesInRecycleBin + /-- Locks an Amazon EBS snapshot in either governance or compliance mode to protect it against accidental or malicious deletions for a specific duration. -/ + | lockSnapshot + /-- Modifies the account-level VPC Encryption Control configuration. -/ + | modifyAccountVpcEncryptionControl + /-- Modifies an attribute of the specified Elastic IP address. -/ + | modifyAddressAttribute + /-- Modifies an existing application status check. -/ + | modifyApplicationStatusCheck + /-- Changes the opt-in status of the specified zone group for your account. -/ + | modifyAvailabilityZoneGroup + /-- Modifies a Capacity Reservation's capacity, instance eligibility, and the conditions under which it is to be released. -/ + | modifyCapacityReservation + /-- Modifies a Capacity Reservation Fleet. -/ + | modifyCapacityReservationFleet + /-- Modifies the specified Client VPN endpoint. -/ + | modifyClientVpnEndpoint + /-- Creates or updates the authorization policy for a Client VPN endpoint. -/ + | modifyClientVpnEndpointAuthorizationPolicy + /-- Modifies the default credit option for CPU usage of burstable performance instances. -/ + | modifyDefaultCreditSpecification + /-- Changes the default KMS key for EBS encryption by default for your account in this Region. -/ + | modifyEbsDefaultKmsKeyId + /-- Modifies the specified EC2 Fleet. -/ + | modifyFleet + /-- Modifies the specified attribute of the specified Amazon FPGA Image (AFI). -/ + | modifyFpgaImageAttribute + /-- Modify the auto-placement setting of a Dedicated Host. -/ + | modifyHosts + /-- Modifies the ID format for the specified resource on a per-Region basis. -/ + | modifyIdFormat + /-- Modifies the ID format of a resource for a specified IAM user, IAM role, or the root user for an account; or all IAM users, IAM roles, and the root user for an account. -/ + | modifyIdentityIdFormat + /-- Modifies the specified attribute of the specified AMI. -/ + | modifyImageAttribute + /-- Modifies the specified attribute of the specified instance. -/ + | modifyInstanceAttribute + /-- Modifies the Capacity Reservation settings for a stopped instance. -/ + | modifyInstanceCapacityReservationAttributes + /-- Modifies the specified EC2 Instance Connect Endpoint. -/ + | modifyInstanceConnectEndpoint + /-- By default, all vCPUs for the instance type are active when you launch an instance. -/ + | modifyInstanceCpuOptions + /-- Modifies the credit option for CPU usage on a running or stopped burstable performance instance. -/ + | modifyInstanceCreditSpecification + /-- Modifies the start time for a scheduled Amazon EC2 instance event. -/ + | modifyInstanceEventStartTime + /-- Modifies the specified event window. -/ + | modifyInstanceEventWindow + /-- Modifies the recovery behavior of your instance to disable simplified automatic recovery or set the recovery behavior to default. -/ + | modifyInstanceMaintenanceOptions + /-- Modifies the default instance metadata service (IMDS) settings at the account level in the specified Amazon Web Services
 Region. -/ + | modifyInstanceMetadataDefaults + /-- Modify the instance metadata parameters on a running or stopped instance. -/ + | modifyInstanceMetadataOptions + /-- Change the configuration of the network performance options for an existing instance. -/ + | modifyInstanceNetworkPerformanceOptions + /-- Modifies the placement attributes for a specified instance. -/ + | modifyInstancePlacement + /-- Modify the configurations of an IPAM. -/ + | modifyIpam + /-- Modifies the allocation rules in an IPAM policy. -/ + | modifyIpamPolicyAllocationRules + /-- Modify the configurations of an IPAM pool. -/ + | modifyIpamPool + /-- Modifies the description of an IPAM pool allocation. -/ + | modifyIpamPoolAllocation + /-- Modifies an IPAM prefix list resolver. -/ + | modifyIpamPrefixListResolver + /-- Modifies an IPAM prefix list resolver target. -/ + | modifyIpamPrefixListResolverTarget + /-- Modify a resource CIDR. -/ + | modifyIpamResourceCidr + /-- Modifies a resource discovery. -/ + | modifyIpamResourceDiscovery + /-- Modifies an existing routing policy registration. -/ + | modifyIpamRoutingPolicyRegistration + /-- Modify an IPAM scope. -/ + | modifyIpamScope + /-- Modifies a launch template. -/ + | modifyLaunchTemplate + /-- Modifies the specified local gateway route. -/ + | modifyLocalGatewayRoute + /-- Modifies the specified managed prefix list. -/ + | modifyManagedPrefixList + /-- Modifies the managed resource visibility configuration for the account. -/ + | modifyManagedResourceVisibility + /-- Modifies the metrics in the specified metric category. -/ + | modifyMetricCategory + /-- Modifies the specified network interface attribute. -/ + | modifyNetworkInterfaceAttribute + /-- Modifies a flex cost allocation policy. -/ + | modifyNetworkingFlexCostAllocationPolicy + /-- Modifies the options for instance hostnames for the specified instance. -/ + | modifyPrivateDnsNameOptions + /-- Modify public hostname options for a network interface. -/ + | modifyPublicIpDnsNameOptions + /-- Modifies the configuration of your Reserved Instances, such as the Availability Zone, instance count, or instance type. -/ + | modifyReservedInstances + /-- Modifies the configuration of an existing route server. -/ + | modifyRouteServer + /-- Modifies the rules of a security group. -/ + | modifySecurityGroupRules + /-- Adds or removes permission settings for the specified snapshot. -/ + | modifySnapshotAttribute + /-- Archives an Amazon EBS snapshot. -/ + | modifySnapshotTier + /-- Modifies the specified Spot Fleet request. -/ + | modifySpotFleetRequest + /-- Modifies a subnet attribute. -/ + | modifySubnetAttribute + /-- Allows or restricts mirroring network services. -/ + | modifyTrafficMirrorFilterNetworkServices + /-- Modifies the specified Traffic Mirror rule. -/ + | modifyTrafficMirrorFilterRule + /-- Modifies a Traffic Mirror session. -/ + | modifyTrafficMirrorSession + /-- Modifies the specified transit gateway. -/ + | modifyTransitGateway + /-- Modifies the NAT configuration for the specified transit gateway attachment. -/ + | modifyTransitGatewayAttachmentNatConfiguration + /-- Modifies a transit gateway metering policy. -/ + | modifyTransitGatewayMeteringPolicy + /-- Adds Availability Zones to or removes Availability Zones from the specified network function attachment. -/ + | modifyTransitGatewayNetworkFunctionAttachment + /-- Modifies the options for a transit gateway peering attachment. -/ + | modifyTransitGatewayPeeringAttachment + /-- Modifies the specified transit gateway policy table entry. -/ + | modifyTransitGatewayPolicyTableEntry + /-- Modifies a reference (route) to a prefix list in a specified transit gateway route table. -/ + | modifyTransitGatewayPrefixListReference + /-- Modifies the specified VPC attachment. -/ + | modifyTransitGatewayVpcAttachment + /-- Modifies the configuration of the specified Amazon Web Services Verified Access endpoint. -/ + | modifyVerifiedAccessEndpoint + /-- Modifies the specified Amazon Web Services Verified Access endpoint policy. -/ + | modifyVerifiedAccessEndpointPolicy + /-- Modifies the specified Amazon Web Services Verified Access group configuration. -/ + | modifyVerifiedAccessGroup + /-- Modifies the specified Amazon Web Services Verified Access group policy. -/ + | modifyVerifiedAccessGroupPolicy + /-- Modifies the configuration of the specified Amazon Web Services Verified Access instance. -/ + | modifyVerifiedAccessInstance + /-- Modifies the logging configuration for the specified Amazon Web Services Verified Access instance. -/ + | modifyVerifiedAccessInstanceLoggingConfiguration + /-- Modifies the configuration of the specified Amazon Web Services Verified Access trust provider. -/ + | modifyVerifiedAccessTrustProvider + /-- You can modify several parameters of an existing EBS volume, including volume size, volume type, and IOPS capacity. -/ + | modifyVolume + /-- Modifies a volume attribute. -/ + | modifyVolumeAttribute + /-- Modifies the specified attribute of the specified VPC. -/ + | modifyVpcAttribute + /-- Modify VPC Block Public Access (BPA) exclusions. -/ + | modifyVpcBlockPublicAccessExclusion + /-- Modify VPC Block Public Access (BPA) options. -/ + | modifyVpcBlockPublicAccessOptions + /-- Modifies the encryption control configuration for a VPC. -/ + | modifyVpcEncryptionControl + /-- Modifies attributes of a specified VPC endpoint. -/ + | modifyVpcEndpoint + /-- Modifies a connection notification for VPC endpoint or VPC endpoint service. -/ + | modifyVpcEndpointConnectionNotification + /-- Modifies the billing account for VPC endpoint usage/charges. -/ + | modifyVpcEndpointPayerResponsibility + /-- Modifies the attributes of the specified VPC endpoint service configuration. -/ + | modifyVpcEndpointServiceConfiguration + /-- Modifies the payer responsibility for your VPC endpoint service. -/ + | modifyVpcEndpointServicePayerResponsibility + /-- Modifies the permissions for your VPC endpoint service. -/ + | modifyVpcEndpointServicePermissions + /-- Modifies the VPC peering connection options on one side of a VPC peering connection. -/ + | modifyVpcPeeringConnectionOptions + /-- Modifies the instance tenancy attribute of the specified VPC. -/ + | modifyVpcTenancy + /-- Modifies the customer gateway or the target gateway of an Amazon Web Services Site-to-Site VPN connection. -/ + | modifyVpnConnection + /-- Modifies the connection options for your Site-to-Site VPN connection. -/ + | modifyVpnConnectionOptions + /-- Modifies the VPN tunnel endpoint certificate. -/ + | modifyVpnTunnelCertificate + /-- Modifies the options for a VPN tunnel in an Amazon Web Services Site-to-Site VPN connection. -/ + | modifyVpnTunnelOptions + /-- Enables detailed monitoring for a running instance. -/ + | monitorInstances + /-- This action is deprecated. -/ + | moveAddressToVpc + /-- Move a BYOIPv4 CIDR to IPAM from a public IPv4 pool. -/ + | moveByoipCidrToIpam + /-- Move available capacity from a source Capacity Reservation to a destination Capacity Reservation. -/ + | moveCapacityReservationInstances + /-- Provisions an IPv4 or IPv6 address range for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP) and creates a corresponding address pool. -/ + | provisionByoipCidr + /-- Provisions your Autonomous System Number (ASN) for use in your Amazon Web Services account. -/ + | provisionIpamByoasn + /-- Provision a CIDR to an IPAM pool. -/ + | provisionIpamPoolCidr + /-- Provision a CIDR to a public IPv4 pool. -/ + | provisionPublicIpv4PoolCidr + /-- Purchase the Capacity Block for use with your account. -/ + | purchaseCapacityBlock + /-- Purchase the Capacity Block extension for use with your account. -/ + | purchaseCapacityBlockExtension + /-- Purchase a reservation with configurations that match those of your Dedicated Host. -/ + | purchaseHostReservation + /-- Purchases a Reserved Instance for use with your account. -/ + | purchaseReservedInstancesOffering + /-- You can no longer purchase Scheduled Instances. -/ + | purchaseScheduledInstances + /-- Requests a reboot of the specified instances. -/ + | rebootInstances + /-- Registers an AMI. -/ + | registerImage + /-- Registers a set of tag keys to include in scheduled event notifications for your resources. -/ + | registerInstanceEventNotificationAttributes + /-- Registers members (network interfaces) with the transit gateway multicast group. -/ + | registerTransitGatewayMulticastGroupMembers + /-- Registers sources (network interfaces) with the specified transit gateway multicast group. -/ + | registerTransitGatewayMulticastGroupSources + /-- Rejects a request to assign billing of the available capacity of a shared Capacity Reservation to your account. -/ + | rejectCapacityReservationBillingOwnership + /-- Rejects a Transit Gateway attachment request for a Client VPN endpoint. -/ + | rejectTransitGatewayClientVpnAttachment + /-- Rejects a request to associate cross-account subnets with a transit gateway multicast domain. -/ + | rejectTransitGatewayMulticastDomainAssociations + /-- Rejects a transit gateway peering attachment request. -/ + | rejectTransitGatewayPeeringAttachment + /-- Rejects a request to attach a VPC to a transit gateway. -/ + | rejectTransitGatewayVpcAttachment + /-- Rejects VPC endpoint connection requests to your VPC endpoint service. -/ + | rejectVpcEndpointConnections + /-- Rejects a VPC peering connection request. -/ + | rejectVpcPeeringConnection + /-- Releases the specified Elastic IP address. -/ + | releaseAddress + /-- When you no longer want to use an On-Demand Dedicated Host it can be released. -/ + | releaseHosts + /-- Release an allocation within an IPAM pool. -/ + | releaseIpamPoolAllocation + /-- Replaces an IAM instance profile for the specified running instance. -/ + | replaceIamInstanceProfileAssociation + /-- Sets or replaces the criteria for Allowed AMIs. -/ + | replaceImageCriteriaInAllowedImagesSettings + /-- Replaces or removes the instance type specification for an AMI. -/ + | replaceImageInstanceTypeSpecification + /-- Changes which network ACL a subnet is associated with. -/ + | replaceNetworkAclAssociation + /-- Replaces an entry (rule) in a network ACL. -/ + | replaceNetworkAclEntry + /-- Replaces an existing route within a route table in a VPC. -/ + | replaceRoute + /-- Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. -/ + | replaceRouteTableAssociation + /-- Replaces the specified route in the specified transit gateway route table. -/ + | replaceTransitGatewayRoute + /-- Trigger replacement of specified VPN tunnel. -/ + | replaceVpnTunnel + /-- Submits feedback about the status of an instance. -/ + | reportInstanceStatus + /-- Creates a Spot Fleet request. -/ + | requestSpotFleet + /-- Creates a Spot Instance request. -/ + | requestSpotInstances + /-- Resets the attribute of the specified IP address. -/ + | resetAddressAttribute + /-- Resets the default KMS key for EBS encryption for your account in this Region to the Amazon Web Services managed KMS key for EBS. -/ + | resetEbsDefaultKmsKeyId + /-- Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its default value. -/ + | resetFpgaImageAttribute + /-- Resets an attribute of an AMI to its default value. -/ + | resetImageAttribute + /-- Resets an attribute of an instance to its default value. -/ + | resetInstanceAttribute + /-- Resets a network interface attribute. -/ + | resetNetworkInterfaceAttribute + /-- Resets permission settings for the specified snapshot. -/ + | resetSnapshotAttribute + /-- This action is deprecated. -/ + | restoreAddressToClassic + /-- Restores an AMI from the Recycle Bin. -/ + | restoreImageFromRecycleBin + /-- Restores the entries from a previous version of a managed prefix list to a new version of the prefix list. -/ + | restoreManagedPrefixListVersion + /-- Restores a snapshot from the Recycle Bin. -/ + | restoreSnapshotFromRecycleBin + /-- Restores an archived Amazon EBS snapshot for use temporarily or permanently, or modifies the restore period or restore type for a snapshot that was previously temporarily restored. -/ + | restoreSnapshotTier + /-- Restores a volume from the Recycle Bin. -/ + | restoreVolumeFromRecycleBin + /-- Removes an ingress authorization rule from a Client VPN endpoint. -/ + | revokeClientVpnIngress + /-- Removes the specified outbound (egress) rules from the specified security group. -/ + | revokeSecurityGroupEgress + /-- Removes the specified inbound (ingress) rules from a security group. -/ + | revokeSecurityGroupIngress + /-- Launches the specified number of instances using an AMI for which you have permissions. -/ + | runInstances + /-- Launches the specified Scheduled Instances. -/ + | runScheduledInstances + /-- Searches for routes in the specified local gateway route table. -/ + | searchLocalGatewayRoutes + /-- Searches one or more transit gateway multicast groups and returns the group membership information. -/ + | searchTransitGatewayMulticastGroups + /-- Searches for routes in the specified transit gateway route table. -/ + | searchTransitGatewayRoutes + /-- Sends a diagnostic interrupt to the specified Amazon EC2 instance to trigger a kernel panic (on Linux instances), or a blue screen / stop error (on Windows instances). -/ + | sendDiagnosticInterrupt + /-- Generates an account status report. -/ + | startDeclarativePoliciesReport + /-- Starts an Amazon EBS-backed instance that you've previously stopped. -/ + | startInstances + /-- Starts analyzing the specified Network Access Scope. -/ + | startNetworkInsightsAccessScopeAnalysis + /-- Starts analyzing the specified path. -/ + | startNetworkInsightsAnalysis + /-- Initiates the verification process to prove that the service provider owns the private DNS name domain for the endpoint service. -/ + | startVpcEndpointServicePrivateDnsVerification + /-- Stops an Amazon EBS-backed instance. -/ + | stopInstances + /-- Terminates active Client VPN endpoint connections. -/ + | terminateClientVpnConnections + /-- Terminates (deletes) the specified instances. -/ + | terminateInstances + /-- Unassigns the specified IPv6 addresses or Prefix Delegation prefixes from a network interface. -/ + | unassignIpv6Addresses + /-- Unassigns the specified secondary private IP addresses or IPv4 Prefix Delegation prefixes from a network interface. -/ + | unassignPrivateIpAddresses + /-- Unassigns secondary private IPv4 addresses from a private NAT gateway. -/ + | unassignPrivateNatGatewayAddress + /-- Unlocks a snapshot that is locked in governance mode or that is locked in compliance mode but still in the cooling-off period. -/ + | unlockSnapshot + /-- Disables detailed monitoring for a running instance. -/ + | unmonitorInstances + /-- Activates or deactivates tag keys for monitoring by EC2 Capacity Manager. -/ + | updateCapacityManagerMonitoredTagKeys + /-- Updates the Organizations access setting for EC2 Capacity Manager. -/ + | updateCapacityManagerOrganizationsAccess + /-- Modifies the number of instances allocated to an interruptible reservation, allowing you to add more capacity or reclaim capacity to your source Capacity Reservation. -/ + | updateInterruptibleCapacityReservationAllocation + /-- Updates the description of an egress (outbound) security group rule. -/ + | updateSecurityGroupRuleDescriptionsEgress + /-- Updates the description of an ingress (inbound) security group rule. -/ + | updateSecurityGroupRuleDescriptionsIngress + /-- Validates whether the specified security groups can be associated with a single network interface. -/ + | validateSecurityGroupQuotasForInterface + /-- Stops advertising an address range that is provisioned as an address pool. -/ + | withdrawByoipCidr +deriving DecidableEq, Repr + +abbrev Input : Op → Type + | .acceptAddressTransfer => AcceptAddressTransferRequest + | .acceptCapacityReservationBillingOwnership => AcceptCapacityReservationBillingOwnershipRequest + | .acceptReservedInstancesExchangeQuote => AcceptReservedInstancesExchangeQuoteRequest + | .acceptTransitGatewayClientVpnAttachment => AcceptTransitGatewayClientVpnAttachmentRequest + | .acceptTransitGatewayMulticastDomainAssociations => AcceptTransitGatewayMulticastDomainAssociationsRequest + | .acceptTransitGatewayPeeringAttachment => AcceptTransitGatewayPeeringAttachmentRequest + | .acceptTransitGatewayVpcAttachment => AcceptTransitGatewayVpcAttachmentRequest + | .acceptVpcEndpointConnections => AcceptVpcEndpointConnectionsRequest + | .acceptVpcPeeringConnection => AcceptVpcPeeringConnectionRequest + | .advertiseByoipCidr => AdvertiseByoipCidrRequest + | .allocateAddress => AllocateAddressRequest + | .allocateHosts => AllocateHostsRequest + | .allocateIpamPoolCidr => AllocateIpamPoolCidrRequest + | .applySecurityGroupsToClientVpnTargetNetwork => ApplySecurityGroupsToClientVpnTargetNetworkRequest + | .assignIpv6Addresses => AssignIpv6AddressesRequest + | .assignPrivateIpAddresses => AssignPrivateIpAddressesRequest + | .assignPrivateNatGatewayAddress => AssignPrivateNatGatewayAddressRequest + | .associateAddress => AssociateAddressRequest + | .associateApplicationStatusCheck => AssociateApplicationStatusCheckRequest + | .associateCapacityReservationBillingOwner => AssociateCapacityReservationBillingOwnerRequest + | .associateClientVpnTargetNetwork => AssociateClientVpnTargetNetworkRequest + | .associateDhcpOptions => AssociateDhcpOptionsRequest + | .associateEnclaveCertificateIamRole => AssociateEnclaveCertificateIamRoleRequest + | .associateIamInstanceProfile => AssociateIamInstanceProfileRequest + | .associateInstanceEventWindow => AssociateInstanceEventWindowRequest + | .associateIpamByoasn => AssociateIpamByoasnRequest + | .associateIpamResourceDiscovery => AssociateIpamResourceDiscoveryRequest + | .associateKmsKeyId => AssociateKmsKeyIdRequest + | .associateNatGatewayAddress => AssociateNatGatewayAddressRequest + | .associateNetworkingFlexCostAllocationPolicy => AssociateNetworkingFlexCostAllocationPolicyRequest + | .associateRouteServer => AssociateRouteServerRequest + | .associateRouteTable => AssociateRouteTableRequest + | .associateSecurityGroupVpc => AssociateSecurityGroupVpcRequest + | .associateSubnetCidrBlock => AssociateSubnetCidrBlockRequest + | .associateTransitGatewayMulticastDomain => AssociateTransitGatewayMulticastDomainRequest + | .associateTransitGatewayPolicyTable => AssociateTransitGatewayPolicyTableRequest + | .associateTransitGatewayRouteTable => AssociateTransitGatewayRouteTableRequest + | .associateTrunkInterface => AssociateTrunkInterfaceRequest + | .associateVpcCidrBlock => AssociateVpcCidrBlockRequest + | .attachClassicLinkVpc => AttachClassicLinkVpcRequest + | .attachImageWatermark => AttachImageWatermarkRequest + | .attachInternetGateway => AttachInternetGatewayRequest + | .attachNetworkInterface => AttachNetworkInterfaceRequest + | .attachVerifiedAccessTrustProvider => AttachVerifiedAccessTrustProviderRequest + | .attachVolume => AttachVolumeRequest + | .attachVpnGateway => AttachVpnGatewayRequest + | .authorizeClientVpnIngress => AuthorizeClientVpnIngressRequest + | .authorizeSecurityGroupEgress => AuthorizeSecurityGroupEgressRequest + | .authorizeSecurityGroupIngress => AuthorizeSecurityGroupIngressRequest + | .batchModifyIpamRoutingPolicyRegistrations => BatchModifyIpamRoutingPolicyRegistrationsRequest + | .bundleInstance => BundleInstanceRequest + | .cancelBundleTask => CancelBundleTaskRequest + | .cancelCapacityReservation => CancelCapacityReservationRequest + | .cancelCapacityReservationFleets => CancelCapacityReservationFleetsRequest + | .cancelConversionTask => CancelConversionRequest + | .cancelDeclarativePoliciesReport => CancelDeclarativePoliciesReportRequest + | .cancelExportTask => CancelExportTaskRequest + | .cancelImageLaunchPermission => CancelImageLaunchPermissionRequest + | .cancelImportTask => CancelImportTaskRequest + | .cancelReservedInstancesListing => CancelReservedInstancesListingRequest + | .cancelSpotFleetRequests => CancelSpotFleetRequestsRequest + | .cancelSpotInstanceRequests => CancelSpotInstanceRequestsRequest + | .confirmProductInstance => ConfirmProductInstanceRequest + | .copyFpgaImage => CopyFpgaImageRequest + | .copyImage => CopyImageRequest + | .copySnapshot => CopySnapshotRequest + | .copyVolumes => CopyVolumesRequest + | .createApplicationStatusCheck => CreateApplicationStatusCheckRequest + | .createCapacityManagerDataExport => CreateCapacityManagerDataExportRequest + | .createCapacityReservation => CreateCapacityReservationRequest + | .createCapacityReservationBySplitting => CreateCapacityReservationBySplittingRequest + | .createCapacityReservationCancellationQuote => CreateCapacityReservationCancellationQuoteRequest + | .createCapacityReservationDateChangeQuote => CreateCapacityReservationDateChangeQuoteRequest + | .createCapacityReservationFleet => CreateCapacityReservationFleetRequest + | .createCarrierGateway => CreateCarrierGatewayRequest + | .createClientVpnEndpoint => CreateClientVpnEndpointRequest + | .createClientVpnRoute => CreateClientVpnRouteRequest + | .createCoipCidr => CreateCoipCidrRequest + | .createCoipPool => CreateCoipPoolRequest + | .createCustomerGateway => CreateCustomerGatewayRequest + | .createDefaultSubnet => CreateDefaultSubnetRequest + | .createDefaultVpc => CreateDefaultVpcRequest + | .createDelegateMacVolumeOwnershipTask => CreateDelegateMacVolumeOwnershipTaskRequest + | .createDhcpOptions => CreateDhcpOptionsRequest + | .createEgressOnlyInternetGateway => CreateEgressOnlyInternetGatewayRequest + | .createFleet => CreateFleetRequest + | .createFlowLogs => CreateFlowLogsRequest + | .createFpgaImage => CreateFpgaImageRequest + | .createImage => CreateImageRequest + | .createImageUsageReport => CreateImageUsageReportRequest + | .createInstanceConnectEndpoint => CreateInstanceConnectEndpointRequest + | .createInstanceEventWindow => CreateInstanceEventWindowRequest + | .createInstanceExportTask => CreateInstanceExportTaskRequest + | .createInternetGateway => CreateInternetGatewayRequest + | .createInterruptibleCapacityReservationAllocation => CreateInterruptibleCapacityReservationAllocationRequest + | .createIpam => CreateIpamRequest + | .createIpamExternalResourceVerificationToken => CreateIpamExternalResourceVerificationTokenRequest + | .createIpamInternetRegistryAssociation => CreateIpamInternetRegistryAssociationRequest + | .createIpamPolicy => CreateIpamPolicyRequest + | .createIpamPool => CreateIpamPoolRequest + | .createIpamPrefixListResolver => CreateIpamPrefixListResolverRequest + | .createIpamPrefixListResolverTarget => CreateIpamPrefixListResolverTargetRequest + | .createIpamResourceDiscovery => CreateIpamResourceDiscoveryRequest + | .createIpamRoutingPolicyRegistration => CreateIpamRoutingPolicyRegistrationRequest + | .createIpamScope => CreateIpamScopeRequest + | .createKeyPair => CreateKeyPairRequest + | .createLaunchTemplate => CreateLaunchTemplateRequest + | .createLaunchTemplateVersion => CreateLaunchTemplateVersionRequest + | .createLocalGatewayRoute => CreateLocalGatewayRouteRequest + | .createLocalGatewayRouteTable => CreateLocalGatewayRouteTableRequest + | .createLocalGatewayRouteTableVirtualInterfaceGroupAssociation => CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest + | .createLocalGatewayRouteTableVpcAssociation => CreateLocalGatewayRouteTableVpcAssociationRequest + | .createLocalGatewayVirtualInterface => CreateLocalGatewayVirtualInterfaceRequest + | .createLocalGatewayVirtualInterfaceGroup => CreateLocalGatewayVirtualInterfaceGroupRequest + | .createMacSystemIntegrityProtectionModificationTask => CreateMacSystemIntegrityProtectionModificationTaskRequest + | .createManagedPrefixList => CreateManagedPrefixListRequest + | .createMetricCategory => CreateMetricCategoryRequest + | .createNatGateway => CreateNatGatewayRequest + | .createNetworkAcl => CreateNetworkAclRequest + | .createNetworkAclEntry => CreateNetworkAclEntryRequest + | .createNetworkInsightsAccessScope => CreateNetworkInsightsAccessScopeRequest + | .createNetworkInsightsPath => CreateNetworkInsightsPathRequest + | .createNetworkInterface => CreateNetworkInterfaceRequest + | .createNetworkInterfacePermission => CreateNetworkInterfacePermissionRequest + | .createNetworkingFlexCostAllocationPolicy => CreateNetworkingFlexCostAllocationPolicyRequest + | .createPlacementGroup => CreatePlacementGroupRequest + | .createPublicIpv4Pool => CreatePublicIpv4PoolRequest + | .createReplaceRootVolumeTask => CreateReplaceRootVolumeTaskRequest + | .createReservedInstancesListing => CreateReservedInstancesListingRequest + | .createRestoreImageTask => CreateRestoreImageTaskRequest + | .createRoute => CreateRouteRequest + | .createRouteServer => CreateRouteServerRequest + | .createRouteServerEndpoint => CreateRouteServerEndpointRequest + | .createRouteServerPeer => CreateRouteServerPeerRequest + | .createRouteTable => CreateRouteTableRequest + | .createSecondaryNetwork => CreateSecondaryNetworkRequest + | .createSecondarySubnet => CreateSecondarySubnetRequest + | .createSecurityGroup => CreateSecurityGroupRequest + | .createSnapshot => CreateSnapshotRequest + | .createSnapshots => CreateSnapshotsRequest + | .createSpotDatafeedSubscription => CreateSpotDatafeedSubscriptionRequest + | .createStoreImageTask => CreateStoreImageTaskRequest + | .createSubnet => CreateSubnetRequest + | .createSubnetCidrReservation => CreateSubnetCidrReservationRequest + | .createTags => CreateTagsRequest + | .createTrafficMirrorFilter => CreateTrafficMirrorFilterRequest + | .createTrafficMirrorFilterRule => CreateTrafficMirrorFilterRuleRequest + | .createTrafficMirrorSession => CreateTrafficMirrorSessionRequest + | .createTrafficMirrorTarget => CreateTrafficMirrorTargetRequest + | .createTransitGateway => CreateTransitGatewayRequest + | .createTransitGatewayConnect => CreateTransitGatewayConnectRequest + | .createTransitGatewayConnectPeer => CreateTransitGatewayConnectPeerRequest + | .createTransitGatewayMeteringPolicy => CreateTransitGatewayMeteringPolicyRequest + | .createTransitGatewayMeteringPolicyEntry => CreateTransitGatewayMeteringPolicyEntryRequest + | .createTransitGatewayMulticastDomain => CreateTransitGatewayMulticastDomainRequest + | .createTransitGatewayNetworkFunctionAttachment => CreateTransitGatewayNetworkFunctionAttachmentRequest + | .createTransitGatewayPeeringAttachment => CreateTransitGatewayPeeringAttachmentRequest + | .createTransitGatewayPolicyTable => CreateTransitGatewayPolicyTableRequest + | .createTransitGatewayPolicyTableEntry => CreateTransitGatewayPolicyTableEntryRequest + | .createTransitGatewayPrefixListReference => CreateTransitGatewayPrefixListReferenceRequest + | .createTransitGatewayRoute => CreateTransitGatewayRouteRequest + | .createTransitGatewayRouteTable => CreateTransitGatewayRouteTableRequest + | .createTransitGatewayRouteTableAnnouncement => CreateTransitGatewayRouteTableAnnouncementRequest + | .createTransitGatewayVpcAttachment => CreateTransitGatewayVpcAttachmentRequest + | .createVerifiedAccessEndpoint => CreateVerifiedAccessEndpointRequest + | .createVerifiedAccessGroup => CreateVerifiedAccessGroupRequest + | .createVerifiedAccessInstance => CreateVerifiedAccessInstanceRequest + | .createVerifiedAccessTrustProvider => CreateVerifiedAccessTrustProviderRequest + | .createVolume => CreateVolumeRequest + | .createVpc => CreateVpcRequest + | .createVpcBlockPublicAccessExclusion => CreateVpcBlockPublicAccessExclusionRequest + | .createVpcEncryptionControl => CreateVpcEncryptionControlRequest + | .createVpcEndpoint => CreateVpcEndpointRequest + | .createVpcEndpointConnectionNotification => CreateVpcEndpointConnectionNotificationRequest + | .createVpcEndpointServiceConfiguration => CreateVpcEndpointServiceConfigurationRequest + | .createVpcPeeringConnection => CreateVpcPeeringConnectionRequest + | .createVpnConcentrator => CreateVpnConcentratorRequest + | .createVpnConnection => CreateVpnConnectionRequest + | .createVpnConnectionRoute => CreateVpnConnectionRouteRequest + | .createVpnGateway => CreateVpnGatewayRequest + | .deleteApplicationStatusCheck => DeleteApplicationStatusCheckRequest + | .deleteCapacityManagerDataExport => DeleteCapacityManagerDataExportRequest + | .deleteCarrierGateway => DeleteCarrierGatewayRequest + | .deleteClientVpnEndpoint => DeleteClientVpnEndpointRequest + | .deleteClientVpnEndpointAuthorizationPolicy => DeleteClientVpnEndpointAuthorizationPolicyRequest + | .deleteClientVpnRoute => DeleteClientVpnRouteRequest + | .deleteCoipCidr => DeleteCoipCidrRequest + | .deleteCoipPool => DeleteCoipPoolRequest + | .deleteCustomerGateway => DeleteCustomerGatewayRequest + | .deleteDhcpOptions => DeleteDhcpOptionsRequest + | .deleteEgressOnlyInternetGateway => DeleteEgressOnlyInternetGatewayRequest + | .deleteFleets => DeleteFleetsRequest + | .deleteFlowLogs => DeleteFlowLogsRequest + | .deleteFpgaImage => DeleteFpgaImageRequest + | .deleteImageUsageReport => DeleteImageUsageReportRequest + | .deleteInstanceConnectEndpoint => DeleteInstanceConnectEndpointRequest + | .deleteInstanceEventWindow => DeleteInstanceEventWindowRequest + | .deleteInternetGateway => DeleteInternetGatewayRequest + | .deleteIpam => DeleteIpamRequest + | .deleteIpamExternalResourceVerificationToken => DeleteIpamExternalResourceVerificationTokenRequest + | .deleteIpamInternetRegistryAssociation => DeleteIpamInternetRegistryAssociationRequest + | .deleteIpamPolicy => DeleteIpamPolicyRequest + | .deleteIpamPool => DeleteIpamPoolRequest + | .deleteIpamPrefixListResolver => DeleteIpamPrefixListResolverRequest + | .deleteIpamPrefixListResolverTarget => DeleteIpamPrefixListResolverTargetRequest + | .deleteIpamResourceDiscovery => DeleteIpamResourceDiscoveryRequest + | .deleteIpamRoutingPolicyRegistration => DeleteIpamRoutingPolicyRegistrationRequest + | .deleteIpamScope => DeleteIpamScopeRequest + | .deleteKeyPair => DeleteKeyPairRequest + | .deleteLaunchTemplate => DeleteLaunchTemplateRequest + | .deleteLaunchTemplateVersions => DeleteLaunchTemplateVersionsRequest + | .deleteLocalGatewayRoute => DeleteLocalGatewayRouteRequest + | .deleteLocalGatewayRouteTable => DeleteLocalGatewayRouteTableRequest + | .deleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation => DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest + | .deleteLocalGatewayRouteTableVpcAssociation => DeleteLocalGatewayRouteTableVpcAssociationRequest + | .deleteLocalGatewayVirtualInterface => DeleteLocalGatewayVirtualInterfaceRequest + | .deleteLocalGatewayVirtualInterfaceGroup => DeleteLocalGatewayVirtualInterfaceGroupRequest + | .deleteManagedPrefixList => DeleteManagedPrefixListRequest + | .deleteMetricCategory => DeleteMetricCategoryRequest + | .deleteNatGateway => DeleteNatGatewayRequest + | .deleteNetworkAcl => DeleteNetworkAclRequest + | .deleteNetworkAclEntry => DeleteNetworkAclEntryRequest + | .deleteNetworkInsightsAccessScope => DeleteNetworkInsightsAccessScopeRequest + | .deleteNetworkInsightsAccessScopeAnalysis => DeleteNetworkInsightsAccessScopeAnalysisRequest + | .deleteNetworkInsightsAnalysis => DeleteNetworkInsightsAnalysisRequest + | .deleteNetworkInsightsPath => DeleteNetworkInsightsPathRequest + | .deleteNetworkInterface => DeleteNetworkInterfaceRequest + | .deleteNetworkInterfacePermission => DeleteNetworkInterfacePermissionRequest + | .deleteNetworkingFlexCostAllocationPolicies => DeleteNetworkingFlexCostAllocationPoliciesRequest + | .deletePlacementGroup => DeletePlacementGroupRequest + | .deletePublicIpv4Pool => DeletePublicIpv4PoolRequest + | .deleteQueuedReservedInstances => DeleteQueuedReservedInstancesRequest + | .deleteRoute => DeleteRouteRequest + | .deleteRouteServer => DeleteRouteServerRequest + | .deleteRouteServerEndpoint => DeleteRouteServerEndpointRequest + | .deleteRouteServerPeer => DeleteRouteServerPeerRequest + | .deleteRouteTable => DeleteRouteTableRequest + | .deleteSecondaryNetwork => DeleteSecondaryNetworkRequest + | .deleteSecondarySubnet => DeleteSecondarySubnetRequest + | .deleteSecurityGroup => DeleteSecurityGroupRequest + | .deleteSnapshot => DeleteSnapshotRequest + | .deleteSpotDatafeedSubscription => DeleteSpotDatafeedSubscriptionRequest + | .deleteSubnet => DeleteSubnetRequest + | .deleteSubnetCidrReservation => DeleteSubnetCidrReservationRequest + | .deleteTags => DeleteTagsRequest + | .deleteTrafficMirrorFilter => DeleteTrafficMirrorFilterRequest + | .deleteTrafficMirrorFilterRule => DeleteTrafficMirrorFilterRuleRequest + | .deleteTrafficMirrorSession => DeleteTrafficMirrorSessionRequest + | .deleteTrafficMirrorTarget => DeleteTrafficMirrorTargetRequest + | .deleteTransitGateway => DeleteTransitGatewayRequest + | .deleteTransitGatewayClientVpnAttachment => DeleteTransitGatewayClientVpnAttachmentRequest + | .deleteTransitGatewayConnect => DeleteTransitGatewayConnectRequest + | .deleteTransitGatewayConnectPeer => DeleteTransitGatewayConnectPeerRequest + | .deleteTransitGatewayMeteringPolicy => DeleteTransitGatewayMeteringPolicyRequest + | .deleteTransitGatewayMeteringPolicyEntry => DeleteTransitGatewayMeteringPolicyEntryRequest + | .deleteTransitGatewayMulticastDomain => DeleteTransitGatewayMulticastDomainRequest + | .deleteTransitGatewayNetworkFunctionAttachment => DeleteTransitGatewayNetworkFunctionAttachmentRequest + | .deleteTransitGatewayPeeringAttachment => DeleteTransitGatewayPeeringAttachmentRequest + | .deleteTransitGatewayPolicyTable => DeleteTransitGatewayPolicyTableRequest + | .deleteTransitGatewayPolicyTableEntry => DeleteTransitGatewayPolicyTableEntryRequest + | .deleteTransitGatewayPrefixListReference => DeleteTransitGatewayPrefixListReferenceRequest + | .deleteTransitGatewayRoute => DeleteTransitGatewayRouteRequest + | .deleteTransitGatewayRouteTable => DeleteTransitGatewayRouteTableRequest + | .deleteTransitGatewayRouteTableAnnouncement => DeleteTransitGatewayRouteTableAnnouncementRequest + | .deleteTransitGatewayVpcAttachment => DeleteTransitGatewayVpcAttachmentRequest + | .deleteVerifiedAccessEndpoint => DeleteVerifiedAccessEndpointRequest + | .deleteVerifiedAccessGroup => DeleteVerifiedAccessGroupRequest + | .deleteVerifiedAccessInstance => DeleteVerifiedAccessInstanceRequest + | .deleteVerifiedAccessTrustProvider => DeleteVerifiedAccessTrustProviderRequest + | .deleteVolume => DeleteVolumeRequest + | .deleteVpc => DeleteVpcRequest + | .deleteVpcBlockPublicAccessExclusion => DeleteVpcBlockPublicAccessExclusionRequest + | .deleteVpcEncryptionControl => DeleteVpcEncryptionControlRequest + | .deleteVpcEndpointConnectionNotifications => DeleteVpcEndpointConnectionNotificationsRequest + | .deleteVpcEndpointServiceConfigurations => DeleteVpcEndpointServiceConfigurationsRequest + | .deleteVpcEndpoints => DeleteVpcEndpointsRequest + | .deleteVpcPeeringConnection => DeleteVpcPeeringConnectionRequest + | .deleteVpnConcentrator => DeleteVpnConcentratorRequest + | .deleteVpnConnection => DeleteVpnConnectionRequest + | .deleteVpnConnectionRoute => DeleteVpnConnectionRouteRequest + | .deleteVpnGateway => DeleteVpnGatewayRequest + | .deprovisionByoipCidr => DeprovisionByoipCidrRequest + | .deprovisionIpamByoasn => DeprovisionIpamByoasnRequest + | .deprovisionIpamPoolCidr => DeprovisionIpamPoolCidrRequest + | .deprovisionPublicIpv4PoolCidr => DeprovisionPublicIpv4PoolCidrRequest + | .deregisterImage => DeregisterImageRequest + | .deregisterInstanceEventNotificationAttributes => DeregisterInstanceEventNotificationAttributesRequest + | .deregisterTransitGatewayMulticastGroupMembers => DeregisterTransitGatewayMulticastGroupMembersRequest + | .deregisterTransitGatewayMulticastGroupSources => DeregisterTransitGatewayMulticastGroupSourcesRequest + | .describeAccountAttributes => DescribeAccountAttributesRequest + | .describeAccountVpcEncryptionControl => DescribeAccountVpcEncryptionControlRequest + | .describeAddressTransfers => DescribeAddressTransfersRequest + | .describeAddresses => DescribeAddressesRequest + | .describeAddressesAttribute => DescribeAddressesAttributeRequest + | .describeAggregateIdFormat => DescribeAggregateIdFormatRequest + | .describeApplicationStatus => DescribeApplicationStatusRequest + | .describeApplicationStatusCheckAssociations => DescribeApplicationStatusCheckAssociationsRequest + | .describeApplicationStatusChecks => DescribeApplicationStatusChecksRequest + | .describeAvailabilityZones => DescribeAvailabilityZonesRequest + | .describeAwsNetworkPerformanceMetricSubscriptions => DescribeAwsNetworkPerformanceMetricSubscriptionsRequest + | .describeBundleTasks => DescribeBundleTasksRequest + | .describeByoipCidrs => DescribeByoipCidrsRequest + | .describeCapacityBlockExtensionHistory => DescribeCapacityBlockExtensionHistoryRequest + | .describeCapacityBlockExtensionOfferings => DescribeCapacityBlockExtensionOfferingsRequest + | .describeCapacityBlockOfferings => DescribeCapacityBlockOfferingsRequest + | .describeCapacityBlockStatus => DescribeCapacityBlockStatusRequest + | .describeCapacityBlocks => DescribeCapacityBlocksRequest + | .describeCapacityManagerDataExports => DescribeCapacityManagerDataExportsRequest + | .describeCapacityReservationBillingRequests => DescribeCapacityReservationBillingRequestsRequest + | .describeCapacityReservationCancellationQuotes => DescribeCapacityReservationCancellationQuotesRequest + | .describeCapacityReservationDateChangeQuotes => DescribeCapacityReservationDateChangeQuotesRequest + | .describeCapacityReservationFleets => DescribeCapacityReservationFleetsRequest + | .describeCapacityReservationTopology => DescribeCapacityReservationTopologyRequest + | .describeCapacityReservations => DescribeCapacityReservationsRequest + | .describeCarrierGateways => DescribeCarrierGatewaysRequest + | .describeClassicLinkInstances => DescribeClassicLinkInstancesRequest + | .describeClientVpnAuthorizationRules => DescribeClientVpnAuthorizationRulesRequest + | .describeClientVpnConnections => DescribeClientVpnConnectionsRequest + | .describeClientVpnEndpoints => DescribeClientVpnEndpointsRequest + | .describeClientVpnRoutes => DescribeClientVpnRoutesRequest + | .describeClientVpnTargetNetworks => DescribeClientVpnTargetNetworksRequest + | .describeCoipPools => DescribeCoipPoolsRequest + | .describeConversionTasks => DescribeConversionTasksRequest + | .describeCustomerGateways => DescribeCustomerGatewaysRequest + | .describeDeclarativePoliciesReports => DescribeDeclarativePoliciesReportsRequest + | .describeDhcpOptions => DescribeDhcpOptionsRequest + | .describeEgressOnlyInternetGateways => DescribeEgressOnlyInternetGatewaysRequest + | .describeElasticGpus => DescribeElasticGpusRequest + | .describeExportImageTasks => DescribeExportImageTasksRequest + | .describeExportTasks => DescribeExportTasksRequest + | .describeFastLaunchImages => DescribeFastLaunchImagesRequest + | .describeFastSnapshotRestores => DescribeFastSnapshotRestoresRequest + | .describeFleetHistory => DescribeFleetHistoryRequest + | .describeFleetInstances => DescribeFleetInstancesRequest + | .describeFleets => DescribeFleetsRequest + | .describeFlowLogs => DescribeFlowLogsRequest + | .describeFpgaImageAttribute => DescribeFpgaImageAttributeRequest + | .describeFpgaImages => DescribeFpgaImagesRequest + | .describeHostReservationOfferings => DescribeHostReservationOfferingsRequest + | .describeHostReservations => DescribeHostReservationsRequest + | .describeHosts => DescribeHostsRequest + | .describeIamInstanceProfileAssociations => DescribeIamInstanceProfileAssociationsRequest + | .describeIdFormat => DescribeIdFormatRequest + | .describeIdentityIdFormat => DescribeIdentityIdFormatRequest + | .describeImageAttribute => DescribeImageAttributeRequest + | .describeImageReferences => DescribeImageReferencesRequest + | .describeImageUsageReportEntries => DescribeImageUsageReportEntriesRequest + | .describeImageUsageReports => DescribeImageUsageReportsRequest + | .describeImages => DescribeImagesRequest + | .describeImportImageTasks => DescribeImportImageTasksRequest + | .describeImportSnapshotTasks => DescribeImportSnapshotTasksRequest + | .describeInstanceAttribute => DescribeInstanceAttributeRequest + | .describeInstanceConnectEndpoints => DescribeInstanceConnectEndpointsRequest + | .describeInstanceCreditSpecifications => DescribeInstanceCreditSpecificationsRequest + | .describeInstanceEventNotificationAttributes => DescribeInstanceEventNotificationAttributesRequest + | .describeInstanceEventWindows => DescribeInstanceEventWindowsRequest + | .describeInstanceImageMetadata => DescribeInstanceImageMetadataRequest + | .describeInstanceSqlHaHistoryStates => DescribeInstanceSqlHaHistoryStatesRequest + | .describeInstanceSqlHaStates => DescribeInstanceSqlHaStatesRequest + | .describeInstanceStatus => DescribeInstanceStatusRequest + | .describeInstanceTopology => DescribeInstanceTopologyRequest + | .describeInstanceTypeOfferings => DescribeInstanceTypeOfferingsRequest + | .describeInstanceTypes => DescribeInstanceTypesRequest + | .describeInstances => DescribeInstancesRequest + | .describeInternetGateways => DescribeInternetGatewaysRequest + | .describeIpamByoasn => DescribeIpamByoasnRequest + | .describeIpamExternalResourceVerificationTokens => DescribeIpamExternalResourceVerificationTokensRequest + | .describeIpamInternetRegistryAssociations => DescribeIpamInternetRegistryAssociationsRequest + | .describeIpamPolicies => DescribeIpamPoliciesRequest + | .describeIpamPoolAllocations => DescribeIpamPoolAllocationsRequest + | .describeIpamPools => DescribeIpamPoolsRequest + | .describeIpamPrefixListResolverTargets => DescribeIpamPrefixListResolverTargetsRequest + | .describeIpamPrefixListResolvers => DescribeIpamPrefixListResolversRequest + | .describeIpamResourceDiscoveries => DescribeIpamResourceDiscoveriesRequest + | .describeIpamResourceDiscoveryAssociations => DescribeIpamResourceDiscoveryAssociationsRequest + | .describeIpamScopes => DescribeIpamScopesRequest + | .describeIpams => DescribeIpamsRequest + | .describeIpv6Pools => DescribeIpv6PoolsRequest + | .describeKeyPairs => DescribeKeyPairsRequest + | .describeLaunchTemplateVersions => DescribeLaunchTemplateVersionsRequest + | .describeLaunchTemplates => DescribeLaunchTemplatesRequest + | .describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations => DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest + | .describeLocalGatewayRouteTableVpcAssociations => DescribeLocalGatewayRouteTableVpcAssociationsRequest + | .describeLocalGatewayRouteTables => DescribeLocalGatewayRouteTablesRequest + | .describeLocalGatewayVirtualInterfaceGroups => DescribeLocalGatewayVirtualInterfaceGroupsRequest + | .describeLocalGatewayVirtualInterfaces => DescribeLocalGatewayVirtualInterfacesRequest + | .describeLocalGateways => DescribeLocalGatewaysRequest + | .describeLockedSnapshots => DescribeLockedSnapshotsRequest + | .describeMacHosts => DescribeMacHostsRequest + | .describeMacModificationTasks => DescribeMacModificationTasksRequest + | .describeManagedPrefixLists => DescribeManagedPrefixListsRequest + | .describeMetricCategories => DescribeMetricCategoriesRequest + | .describeMovingAddresses => DescribeMovingAddressesRequest + | .describeNatGateways => DescribeNatGatewaysRequest + | .describeNetworkAcls => DescribeNetworkAclsRequest + | .describeNetworkInsightsAccessScopeAnalyses => DescribeNetworkInsightsAccessScopeAnalysesRequest + | .describeNetworkInsightsAccessScopes => DescribeNetworkInsightsAccessScopesRequest + | .describeNetworkInsightsAnalyses => DescribeNetworkInsightsAnalysesRequest + | .describeNetworkInsightsPaths => DescribeNetworkInsightsPathsRequest + | .describeNetworkInterfaceAttribute => DescribeNetworkInterfaceAttributeRequest + | .describeNetworkInterfacePermissions => DescribeNetworkInterfacePermissionsRequest + | .describeNetworkInterfaces => DescribeNetworkInterfacesRequest + | .describeNetworkingFlexCostAllocationPolicies => DescribeNetworkingFlexCostAllocationPoliciesRequest + | .describeNetworkingFlexCostAllocationPolicyAssociations => DescribeNetworkingFlexCostAllocationPolicyAssociationsRequest + | .describeOutpostLags => DescribeOutpostLagsRequest + | .describePlacementGroups => DescribePlacementGroupsRequest + | .describePrefixLists => DescribePrefixListsRequest + | .describePrincipalIdFormat => DescribePrincipalIdFormatRequest + | .describePublicIpv4Pools => DescribePublicIpv4PoolsRequest + | .describeRegions => DescribeRegionsRequest + | .describeReplaceRootVolumeTasks => DescribeReplaceRootVolumeTasksRequest + | .describeReservedInstances => DescribeReservedInstancesRequest + | .describeReservedInstancesListings => DescribeReservedInstancesListingsRequest + | .describeReservedInstancesModifications => DescribeReservedInstancesModificationsRequest + | .describeReservedInstancesOfferings => DescribeReservedInstancesOfferingsRequest + | .describeRouteServerEndpoints => DescribeRouteServerEndpointsRequest + | .describeRouteServerPeers => DescribeRouteServerPeersRequest + | .describeRouteServers => DescribeRouteServersRequest + | .describeRouteTables => DescribeRouteTablesRequest + | .describeScheduledInstanceAvailability => DescribeScheduledInstanceAvailabilityRequest + | .describeScheduledInstances => DescribeScheduledInstancesRequest + | .describeSecondaryInterfaces => DescribeSecondaryInterfacesRequest + | .describeSecondaryNetworks => DescribeSecondaryNetworksRequest + | .describeSecondarySubnets => DescribeSecondarySubnetsRequest + | .describeSecurityGroupReferences => DescribeSecurityGroupReferencesRequest + | .describeSecurityGroupRules => DescribeSecurityGroupRulesRequest + | .describeSecurityGroupVpcAssociations => DescribeSecurityGroupVpcAssociationsRequest + | .describeSecurityGroups => DescribeSecurityGroupsRequest + | .describeServiceLinkVirtualInterfaces => DescribeServiceLinkVirtualInterfacesRequest + | .describeSnapshotAttribute => DescribeSnapshotAttributeRequest + | .describeSnapshotTierStatus => DescribeSnapshotTierStatusRequest + | .describeSnapshots => DescribeSnapshotsRequest + | .describeSpotDatafeedSubscription => DescribeSpotDatafeedSubscriptionRequest + | .describeSpotFleetInstances => DescribeSpotFleetInstancesRequest + | .describeSpotFleetRequestHistory => DescribeSpotFleetRequestHistoryRequest + | .describeSpotFleetRequests => DescribeSpotFleetRequestsRequest + | .describeSpotInstanceRequests => DescribeSpotInstanceRequestsRequest + | .describeSpotPriceHistory => DescribeSpotPriceHistoryRequest + | .describeStaleSecurityGroups => DescribeStaleSecurityGroupsRequest + | .describeStoreImageTasks => DescribeStoreImageTasksRequest + | .describeSubnets => DescribeSubnetsRequest + | .describeTags => DescribeTagsRequest + | .describeTrafficMirrorFilterRules => DescribeTrafficMirrorFilterRulesRequest + | .describeTrafficMirrorFilters => DescribeTrafficMirrorFiltersRequest + | .describeTrafficMirrorSessions => DescribeTrafficMirrorSessionsRequest + | .describeTrafficMirrorTargets => DescribeTrafficMirrorTargetsRequest + | .describeTransitGatewayAttachments => DescribeTransitGatewayAttachmentsRequest + | .describeTransitGatewayConnectPeers => DescribeTransitGatewayConnectPeersRequest + | .describeTransitGatewayConnects => DescribeTransitGatewayConnectsRequest + | .describeTransitGatewayMeteringPolicies => DescribeTransitGatewayMeteringPoliciesRequest + | .describeTransitGatewayMulticastDomains => DescribeTransitGatewayMulticastDomainsRequest + | .describeTransitGatewayNetworkFunctionAttachments => DescribeTransitGatewayNetworkFunctionAttachmentsRequest + | .describeTransitGatewayPeeringAttachments => DescribeTransitGatewayPeeringAttachmentsRequest + | .describeTransitGatewayPolicyTables => DescribeTransitGatewayPolicyTablesRequest + | .describeTransitGatewayRouteTableAnnouncements => DescribeTransitGatewayRouteTableAnnouncementsRequest + | .describeTransitGatewayRouteTables => DescribeTransitGatewayRouteTablesRequest + | .describeTransitGatewayVpcAttachments => DescribeTransitGatewayVpcAttachmentsRequest + | .describeTransitGateways => DescribeTransitGatewaysRequest + | .describeTrunkInterfaceAssociations => DescribeTrunkInterfaceAssociationsRequest + | .describeVerifiedAccessEndpoints => DescribeVerifiedAccessEndpointsRequest + | .describeVerifiedAccessGroups => DescribeVerifiedAccessGroupsRequest + | .describeVerifiedAccessInstanceLoggingConfigurations => DescribeVerifiedAccessInstanceLoggingConfigurationsRequest + | .describeVerifiedAccessInstances => DescribeVerifiedAccessInstancesRequest + | .describeVerifiedAccessTrustProviders => DescribeVerifiedAccessTrustProvidersRequest + | .describeVolumeAttribute => DescribeVolumeAttributeRequest + | .describeVolumeStatus => DescribeVolumeStatusRequest + | .describeVolumes => DescribeVolumesRequest + | .describeVolumesModifications => DescribeVolumesModificationsRequest + | .describeVpcAttribute => DescribeVpcAttributeRequest + | .describeVpcBlockPublicAccessExclusions => DescribeVpcBlockPublicAccessExclusionsRequest + | .describeVpcBlockPublicAccessOptions => DescribeVpcBlockPublicAccessOptionsRequest + | .describeVpcClassicLink => DescribeVpcClassicLinkRequest + | .describeVpcClassicLinkDnsSupport => DescribeVpcClassicLinkDnsSupportRequest + | .describeVpcEncryptionControls => DescribeVpcEncryptionControlsRequest + | .describeVpcEndpointAssociations => DescribeVpcEndpointAssociationsRequest + | .describeVpcEndpointConnectionNotifications => DescribeVpcEndpointConnectionNotificationsRequest + | .describeVpcEndpointConnections => DescribeVpcEndpointConnectionsRequest + | .describeVpcEndpointServiceConfigurations => DescribeVpcEndpointServiceConfigurationsRequest + | .describeVpcEndpointServicePermissions => DescribeVpcEndpointServicePermissionsRequest + | .describeVpcEndpointServices => DescribeVpcEndpointServicesRequest + | .describeVpcEndpoints => DescribeVpcEndpointsRequest + | .describeVpcPeeringConnections => DescribeVpcPeeringConnectionsRequest + | .describeVpcs => DescribeVpcsRequest + | .describeVpnConcentrators => DescribeVpnConcentratorsRequest + | .describeVpnConnections => DescribeVpnConnectionsRequest + | .describeVpnGateways => DescribeVpnGatewaysRequest + | .detachClassicLinkVpc => DetachClassicLinkVpcRequest + | .detachImageWatermark => DetachImageWatermarkRequest + | .detachInternetGateway => DetachInternetGatewayRequest + | .detachNetworkInterface => DetachNetworkInterfaceRequest + | .detachVerifiedAccessTrustProvider => DetachVerifiedAccessTrustProviderRequest + | .detachVolume => DetachVolumeRequest + | .detachVpnGateway => DetachVpnGatewayRequest + | .disableAddressTransfer => DisableAddressTransferRequest + | .disableAllowedImagesSettings => DisableAllowedImagesSettingsRequest + | .disableApplicationStatusCheckSuppression => DisableApplicationStatusCheckSuppressionRequest + | .disableAwsNetworkPerformanceMetricSubscription => DisableAwsNetworkPerformanceMetricSubscriptionRequest + | .disableCapacityManager => DisableCapacityManagerRequest + | .disableEbsEncryptionByDefault => DisableEbsEncryptionByDefaultRequest + | .disableFastLaunch => DisableFastLaunchRequest + | .disableFastSnapshotRestores => DisableFastSnapshotRestoresRequest + | .disableImage => DisableImageRequest + | .disableImageBlockPublicAccess => DisableImageBlockPublicAccessRequest + | .disableImageDeprecation => DisableImageDeprecationRequest + | .disableImageDeregistrationProtection => DisableImageDeregistrationProtectionRequest + | .disableInstanceSqlHaStandbyDetections => DisableInstanceSqlHaStandbyDetectionsRequest + | .disableIpamOrganizationAdminAccount => DisableIpamOrganizationAdminAccountRequest + | .disableIpamPolicy => DisableIpamPolicyRequest + | .disableRouteServerPropagation => DisableRouteServerPropagationRequest + | .disableSerialConsoleAccess => DisableSerialConsoleAccessRequest + | .disableSnapshotBlockPublicAccess => DisableSnapshotBlockPublicAccessRequest + | .disableTransitGatewayRouteTablePropagation => DisableTransitGatewayRouteTablePropagationRequest + | .disableVgwRoutePropagation => DisableVgwRoutePropagationRequest + | .disableVpcClassicLink => DisableVpcClassicLinkRequest + | .disableVpcClassicLinkDnsSupport => DisableVpcClassicLinkDnsSupportRequest + | .disassociateAddress => DisassociateAddressRequest + | .disassociateApplicationStatusCheck => DisassociateApplicationStatusCheckRequest + | .disassociateCapacityReservationBillingOwner => DisassociateCapacityReservationBillingOwnerRequest + | .disassociateClientVpnTargetNetwork => DisassociateClientVpnTargetNetworkRequest + | .disassociateEnclaveCertificateIamRole => DisassociateEnclaveCertificateIamRoleRequest + | .disassociateIamInstanceProfile => DisassociateIamInstanceProfileRequest + | .disassociateInstanceEventWindow => DisassociateInstanceEventWindowRequest + | .disassociateIpamByoasn => DisassociateIpamByoasnRequest + | .disassociateIpamResourceDiscovery => DisassociateIpamResourceDiscoveryRequest + | .disassociateKmsKeyId => DisassociateKmsKeyIdRequest + | .disassociateNatGatewayAddress => DisassociateNatGatewayAddressRequest + | .disassociateNetworkingFlexCostAllocationPolicy => DisassociateNetworkingFlexCostAllocationPolicyRequest + | .disassociateRouteServer => DisassociateRouteServerRequest + | .disassociateRouteTable => DisassociateRouteTableRequest + | .disassociateSecurityGroupVpc => DisassociateSecurityGroupVpcRequest + | .disassociateSubnetCidrBlock => DisassociateSubnetCidrBlockRequest + | .disassociateTransitGatewayMulticastDomain => DisassociateTransitGatewayMulticastDomainRequest + | .disassociateTransitGatewayPolicyTable => DisassociateTransitGatewayPolicyTableRequest + | .disassociateTransitGatewayRouteTable => DisassociateTransitGatewayRouteTableRequest + | .disassociateTrunkInterface => DisassociateTrunkInterfaceRequest + | .disassociateVpcCidrBlock => DisassociateVpcCidrBlockRequest + | .enableAddressTransfer => EnableAddressTransferRequest + | .enableAllowedImagesSettings => EnableAllowedImagesSettingsRequest + | .enableApplicationStatusCheckSuppression => EnableApplicationStatusCheckSuppressionRequest + | .enableAwsNetworkPerformanceMetricSubscription => EnableAwsNetworkPerformanceMetricSubscriptionRequest + | .enableCapacityManager => EnableCapacityManagerRequest + | .enableEbsEncryptionByDefault => EnableEbsEncryptionByDefaultRequest + | .enableFastLaunch => EnableFastLaunchRequest + | .enableFastSnapshotRestores => EnableFastSnapshotRestoresRequest + | .enableImage => EnableImageRequest + | .enableImageBlockPublicAccess => EnableImageBlockPublicAccessRequest + | .enableImageDeprecation => EnableImageDeprecationRequest + | .enableImageDeregistrationProtection => EnableImageDeregistrationProtectionRequest + | .enableInstanceSqlHaStandbyDetections => EnableInstanceSqlHaStandbyDetectionsRequest + | .enableIpamInternetRegistryAssociation => EnableIpamInternetRegistryAssociationRequest + | .enableIpamOrganizationAdminAccount => EnableIpamOrganizationAdminAccountRequest + | .enableIpamPolicy => EnableIpamPolicyRequest + | .enableReachabilityAnalyzerOrganizationSharing => EnableReachabilityAnalyzerOrganizationSharingRequest + | .enableRouteServerPropagation => EnableRouteServerPropagationRequest + | .enableSerialConsoleAccess => EnableSerialConsoleAccessRequest + | .enableSnapshotBlockPublicAccess => EnableSnapshotBlockPublicAccessRequest + | .enableTransitGatewayRouteTablePropagation => EnableTransitGatewayRouteTablePropagationRequest + | .enableVgwRoutePropagation => EnableVgwRoutePropagationRequest + | .enableVolumeIO => EnableVolumeIORequest + | .enableVpcClassicLink => EnableVpcClassicLinkRequest + | .enableVpcClassicLinkDnsSupport => EnableVpcClassicLinkDnsSupportRequest + | .exportClientVpnClientCertificateRevocationList => ExportClientVpnClientCertificateRevocationListRequest + | .exportClientVpnClientConfiguration => ExportClientVpnClientConfigurationRequest + | .exportImage => ExportImageRequest + | .exportTransitGatewayRoutes => ExportTransitGatewayRoutesRequest + | .exportVerifiedAccessInstanceClientConfiguration => ExportVerifiedAccessInstanceClientConfigurationRequest + | .getActiveVpnTunnelStatus => GetActiveVpnTunnelStatusRequest + | .getAllowedImagesSettings => GetAllowedImagesSettingsRequest + | .getAssociatedEnclaveCertificateIamRoles => GetAssociatedEnclaveCertificateIamRolesRequest + | .getAssociatedIpv6PoolCidrs => GetAssociatedIpv6PoolCidrsRequest + | .getAwsNetworkPerformanceData => GetAwsNetworkPerformanceDataRequest + | .getCapacityManagerAttributes => GetCapacityManagerAttributesRequest + | .getCapacityManagerMetricData => GetCapacityManagerMetricDataRequest + | .getCapacityManagerMetricDimensions => GetCapacityManagerMetricDimensionsRequest + | .getCapacityManagerMonitoredTagKeys => GetCapacityManagerMonitoredTagKeysRequest + | .getCapacityManagerSupportabilityScores => GetCapacityManagerSupportabilityScoresRequest + | .getCapacityReservationUsage => GetCapacityReservationUsageRequest + | .getClientVpnEndpointAuthorizationPolicy => GetClientVpnEndpointAuthorizationPolicyRequest + | .getCoipPoolUsage => GetCoipPoolUsageRequest + | .getConsoleOutput => GetConsoleOutputRequest + | .getConsoleScreenshot => GetConsoleScreenshotRequest + | .getDeclarativePoliciesReportSummary => GetDeclarativePoliciesReportSummaryRequest + | .getDefaultCreditSpecification => GetDefaultCreditSpecificationRequest + | .getEbsDefaultKmsKeyId => GetEbsDefaultKmsKeyIdRequest + | .getEbsEncryptionByDefault => GetEbsEncryptionByDefaultRequest + | .getEnabledIpamPolicy => GetEnabledIpamPolicyRequest + | .getFlowLogsIntegrationTemplate => GetFlowLogsIntegrationTemplateRequest + | .getGroupsForCapacityReservation => GetGroupsForCapacityReservationRequest + | .getHostReservationPurchasePreview => GetHostReservationPurchasePreviewRequest + | .getImageAncestry => GetImageAncestryRequest + | .getImageBlockPublicAccessState => GetImageBlockPublicAccessStateRequest + | .getImageFindings => GetImageFindingsRequest + | .getInstanceMetadataDefaults => GetInstanceMetadataDefaultsRequest + | .getInstanceTpmEkPub => GetInstanceTpmEkPubRequest + | .getInstanceTypesFromInstanceRequirements => GetInstanceTypesFromInstanceRequirementsRequest + | .getInstanceUefiData => GetInstanceUefiDataRequest + | .getIpamAddressHistory => GetIpamAddressHistoryRequest + | .getIpamDiscoveredAccounts => GetIpamDiscoveredAccountsRequest + | .getIpamDiscoveredPublicAddresses => GetIpamDiscoveredPublicAddressesRequest + | .getIpamDiscoveredResourceCidrs => GetIpamDiscoveredResourceCidrsRequest + | .getIpamDiscoveredRoutes => GetIpamDiscoveredRoutesRequest + | .getIpamInternetRegistryAssociationAsns => GetIpamInternetRegistryAssociationAsnsRequest + | .getIpamInternetRegistryAssociationCidrs => GetIpamInternetRegistryAssociationCidrsRequest + | .getIpamPolicyAllocationRules => GetIpamPolicyAllocationRulesRequest + | .getIpamPolicyOrganizationTargets => GetIpamPolicyOrganizationTargetsRequest + | .getIpamPoolAllocations => GetIpamPoolAllocationsRequest + | .getIpamPoolCidrs => GetIpamPoolCidrsRequest + | .getIpamPrefixListResolverRules => GetIpamPrefixListResolverRulesRequest + | .getIpamPrefixListResolverVersionEntries => GetIpamPrefixListResolverVersionEntriesRequest + | .getIpamPrefixListResolverVersions => GetIpamPrefixListResolverVersionsRequest + | .getIpamResourceCidrs => GetIpamResourceCidrsRequest + | .getIpamRouteOriginAuthorizations => GetIpamRouteOriginAuthorizationsRequest + | .getIpamRouteProtectionFindings => GetIpamRouteProtectionFindingsRequest + | .getIpamRoutingPolicyRegistrationDeltas => GetIpamRoutingPolicyRegistrationDeltasRequest + | .getIpamRoutingPolicyRegistrations => GetIpamRoutingPolicyRegistrationsRequest + | .getLaunchTemplateData => GetLaunchTemplateDataRequest + | .getManagedPrefixListAssociations => GetManagedPrefixListAssociationsRequest + | .getManagedPrefixListEntries => GetManagedPrefixListEntriesRequest + | .getManagedResourceVisibility => GetManagedResourceVisibilityRequest + | .getNetworkInsightsAccessScopeAnalysisFindings => GetNetworkInsightsAccessScopeAnalysisFindingsRequest + | .getNetworkInsightsAccessScopeContent => GetNetworkInsightsAccessScopeContentRequest + | .getNetworkingFlexCostAllocationPolicyVersions => GetNetworkingFlexCostAllocationPolicyVersionsRequest + | .getPasswordData => GetPasswordDataRequest + | .getReservedInstancesExchangeQuote => GetReservedInstancesExchangeQuoteRequest + | .getRouteServerAssociations => GetRouteServerAssociationsRequest + | .getRouteServerPropagations => GetRouteServerPropagationsRequest + | .getRouteServerRoutingDatabase => GetRouteServerRoutingDatabaseRequest + | .getSecurityGroupsForVpc => GetSecurityGroupsForVpcRequest + | .getSerialConsoleAccessStatus => GetSerialConsoleAccessStatusRequest + | .getSnapshotBlockPublicAccessState => GetSnapshotBlockPublicAccessStateRequest + | .getSpotPlacementScores => GetSpotPlacementScoresRequest + | .getSubnetCidrReservations => GetSubnetCidrReservationsRequest + | .getTransitGatewayAttachmentNatConfiguration => GetTransitGatewayAttachmentNatConfigurationRequest + | .getTransitGatewayAttachmentPropagations => GetTransitGatewayAttachmentPropagationsRequest + | .getTransitGatewayMeteringPolicyEntries => GetTransitGatewayMeteringPolicyEntriesRequest + | .getTransitGatewayMulticastDomainAssociations => GetTransitGatewayMulticastDomainAssociationsRequest + | .getTransitGatewayPolicyTableAssociations => GetTransitGatewayPolicyTableAssociationsRequest + | .getTransitGatewayPolicyTableEntries => GetTransitGatewayPolicyTableEntriesRequest + | .getTransitGatewayPrefixListReferences => GetTransitGatewayPrefixListReferencesRequest + | .getTransitGatewayRouteTableAssociations => GetTransitGatewayRouteTableAssociationsRequest + | .getTransitGatewayRouteTablePropagations => GetTransitGatewayRouteTablePropagationsRequest + | .getVerifiedAccessEndpointPolicy => GetVerifiedAccessEndpointPolicyRequest + | .getVerifiedAccessEndpointTargets => GetVerifiedAccessEndpointTargetsRequest + | .getVerifiedAccessGroupPolicy => GetVerifiedAccessGroupPolicyRequest + | .getVpcResourcesBlockingEncryptionEnforcement => GetVpcResourcesBlockingEncryptionEnforcementRequest + | .getVpnConnectionDeviceSampleConfiguration => GetVpnConnectionDeviceSampleConfigurationRequest + | .getVpnConnectionDeviceTypes => GetVpnConnectionDeviceTypesRequest + | .getVpnTunnelReplacementStatus => GetVpnTunnelReplacementStatusRequest + | .importClientVpnClientCertificateRevocationList => ImportClientVpnClientCertificateRevocationListRequest + | .importImage => ImportImageRequest + | .importInstance => ImportInstanceRequest + | .importKeyPair => ImportKeyPairRequest + | .importSnapshot => ImportSnapshotRequest + | .importVolume => ImportVolumeRequest + | .listImagesInRecycleBin => ListImagesInRecycleBinRequest + | .listSnapshotsInRecycleBin => ListSnapshotsInRecycleBinRequest + | .listVolumesInRecycleBin => ListVolumesInRecycleBinRequest + | .lockSnapshot => LockSnapshotRequest + | .modifyAccountVpcEncryptionControl => ModifyAccountVpcEncryptionControlRequest + | .modifyAddressAttribute => ModifyAddressAttributeRequest + | .modifyApplicationStatusCheck => ModifyApplicationStatusCheckRequest + | .modifyAvailabilityZoneGroup => ModifyAvailabilityZoneGroupRequest + | .modifyCapacityReservation => ModifyCapacityReservationRequest + | .modifyCapacityReservationFleet => ModifyCapacityReservationFleetRequest + | .modifyClientVpnEndpoint => ModifyClientVpnEndpointRequest + | .modifyClientVpnEndpointAuthorizationPolicy => ModifyClientVpnEndpointAuthorizationPolicyRequest + | .modifyDefaultCreditSpecification => ModifyDefaultCreditSpecificationRequest + | .modifyEbsDefaultKmsKeyId => ModifyEbsDefaultKmsKeyIdRequest + | .modifyFleet => ModifyFleetRequest + | .modifyFpgaImageAttribute => ModifyFpgaImageAttributeRequest + | .modifyHosts => ModifyHostsRequest + | .modifyIdFormat => ModifyIdFormatRequest + | .modifyIdentityIdFormat => ModifyIdentityIdFormatRequest + | .modifyImageAttribute => ModifyImageAttributeRequest + | .modifyInstanceAttribute => ModifyInstanceAttributeRequest + | .modifyInstanceCapacityReservationAttributes => ModifyInstanceCapacityReservationAttributesRequest + | .modifyInstanceConnectEndpoint => ModifyInstanceConnectEndpointRequest + | .modifyInstanceCpuOptions => ModifyInstanceCpuOptionsRequest + | .modifyInstanceCreditSpecification => ModifyInstanceCreditSpecificationRequest + | .modifyInstanceEventStartTime => ModifyInstanceEventStartTimeRequest + | .modifyInstanceEventWindow => ModifyInstanceEventWindowRequest + | .modifyInstanceMaintenanceOptions => ModifyInstanceMaintenanceOptionsRequest + | .modifyInstanceMetadataDefaults => ModifyInstanceMetadataDefaultsRequest + | .modifyInstanceMetadataOptions => ModifyInstanceMetadataOptionsRequest + | .modifyInstanceNetworkPerformanceOptions => ModifyInstanceNetworkPerformanceRequest + | .modifyInstancePlacement => ModifyInstancePlacementRequest + | .modifyIpam => ModifyIpamRequest + | .modifyIpamPolicyAllocationRules => ModifyIpamPolicyAllocationRulesRequest + | .modifyIpamPool => ModifyIpamPoolRequest + | .modifyIpamPoolAllocation => ModifyIpamPoolAllocationRequest + | .modifyIpamPrefixListResolver => ModifyIpamPrefixListResolverRequest + | .modifyIpamPrefixListResolverTarget => ModifyIpamPrefixListResolverTargetRequest + | .modifyIpamResourceCidr => ModifyIpamResourceCidrRequest + | .modifyIpamResourceDiscovery => ModifyIpamResourceDiscoveryRequest + | .modifyIpamRoutingPolicyRegistration => ModifyIpamRoutingPolicyRegistrationRequest + | .modifyIpamScope => ModifyIpamScopeRequest + | .modifyLaunchTemplate => ModifyLaunchTemplateRequest + | .modifyLocalGatewayRoute => ModifyLocalGatewayRouteRequest + | .modifyManagedPrefixList => ModifyManagedPrefixListRequest + | .modifyManagedResourceVisibility => ModifyManagedResourceVisibilityRequest + | .modifyMetricCategory => ModifyMetricCategoryRequest + | .modifyNetworkInterfaceAttribute => ModifyNetworkInterfaceAttributeRequest + | .modifyNetworkingFlexCostAllocationPolicy => ModifyNetworkingFlexCostAllocationPolicyRequest + | .modifyPrivateDnsNameOptions => ModifyPrivateDnsNameOptionsRequest + | .modifyPublicIpDnsNameOptions => ModifyPublicIpDnsNameOptionsRequest + | .modifyReservedInstances => ModifyReservedInstancesRequest + | .modifyRouteServer => ModifyRouteServerRequest + | .modifySecurityGroupRules => ModifySecurityGroupRulesRequest + | .modifySnapshotAttribute => ModifySnapshotAttributeRequest + | .modifySnapshotTier => ModifySnapshotTierRequest + | .modifySpotFleetRequest => ModifySpotFleetRequestRequest + | .modifySubnetAttribute => ModifySubnetAttributeRequest + | .modifyTrafficMirrorFilterNetworkServices => ModifyTrafficMirrorFilterNetworkServicesRequest + | .modifyTrafficMirrorFilterRule => ModifyTrafficMirrorFilterRuleRequest + | .modifyTrafficMirrorSession => ModifyTrafficMirrorSessionRequest + | .modifyTransitGateway => ModifyTransitGatewayRequest + | .modifyTransitGatewayAttachmentNatConfiguration => ModifyTransitGatewayAttachmentNatConfigurationRequest + | .modifyTransitGatewayMeteringPolicy => ModifyTransitGatewayMeteringPolicyRequest + | .modifyTransitGatewayNetworkFunctionAttachment => ModifyTransitGatewayNetworkFunctionAttachmentRequest + | .modifyTransitGatewayPeeringAttachment => ModifyTransitGatewayPeeringAttachmentRequest + | .modifyTransitGatewayPolicyTableEntry => ModifyTransitGatewayPolicyTableEntryRequest + | .modifyTransitGatewayPrefixListReference => ModifyTransitGatewayPrefixListReferenceRequest + | .modifyTransitGatewayVpcAttachment => ModifyTransitGatewayVpcAttachmentRequest + | .modifyVerifiedAccessEndpoint => ModifyVerifiedAccessEndpointRequest + | .modifyVerifiedAccessEndpointPolicy => ModifyVerifiedAccessEndpointPolicyRequest + | .modifyVerifiedAccessGroup => ModifyVerifiedAccessGroupRequest + | .modifyVerifiedAccessGroupPolicy => ModifyVerifiedAccessGroupPolicyRequest + | .modifyVerifiedAccessInstance => ModifyVerifiedAccessInstanceRequest + | .modifyVerifiedAccessInstanceLoggingConfiguration => ModifyVerifiedAccessInstanceLoggingConfigurationRequest + | .modifyVerifiedAccessTrustProvider => ModifyVerifiedAccessTrustProviderRequest + | .modifyVolume => ModifyVolumeRequest + | .modifyVolumeAttribute => ModifyVolumeAttributeRequest + | .modifyVpcAttribute => ModifyVpcAttributeRequest + | .modifyVpcBlockPublicAccessExclusion => ModifyVpcBlockPublicAccessExclusionRequest + | .modifyVpcBlockPublicAccessOptions => ModifyVpcBlockPublicAccessOptionsRequest + | .modifyVpcEncryptionControl => ModifyVpcEncryptionControlRequest + | .modifyVpcEndpoint => ModifyVpcEndpointRequest + | .modifyVpcEndpointConnectionNotification => ModifyVpcEndpointConnectionNotificationRequest + | .modifyVpcEndpointPayerResponsibility => ModifyVpcEndpointPayerResponsibilityRequest + | .modifyVpcEndpointServiceConfiguration => ModifyVpcEndpointServiceConfigurationRequest + | .modifyVpcEndpointServicePayerResponsibility => ModifyVpcEndpointServicePayerResponsibilityRequest + | .modifyVpcEndpointServicePermissions => ModifyVpcEndpointServicePermissionsRequest + | .modifyVpcPeeringConnectionOptions => ModifyVpcPeeringConnectionOptionsRequest + | .modifyVpcTenancy => ModifyVpcTenancyRequest + | .modifyVpnConnection => ModifyVpnConnectionRequest + | .modifyVpnConnectionOptions => ModifyVpnConnectionOptionsRequest + | .modifyVpnTunnelCertificate => ModifyVpnTunnelCertificateRequest + | .modifyVpnTunnelOptions => ModifyVpnTunnelOptionsRequest + | .monitorInstances => MonitorInstancesRequest + | .moveAddressToVpc => MoveAddressToVpcRequest + | .moveByoipCidrToIpam => MoveByoipCidrToIpamRequest + | .moveCapacityReservationInstances => MoveCapacityReservationInstancesRequest + | .provisionByoipCidr => ProvisionByoipCidrRequest + | .provisionIpamByoasn => ProvisionIpamByoasnRequest + | .provisionIpamPoolCidr => ProvisionIpamPoolCidrRequest + | .provisionPublicIpv4PoolCidr => ProvisionPublicIpv4PoolCidrRequest + | .purchaseCapacityBlock => PurchaseCapacityBlockRequest + | .purchaseCapacityBlockExtension => PurchaseCapacityBlockExtensionRequest + | .purchaseHostReservation => PurchaseHostReservationRequest + | .purchaseReservedInstancesOffering => PurchaseReservedInstancesOfferingRequest + | .purchaseScheduledInstances => PurchaseScheduledInstancesRequest + | .rebootInstances => RebootInstancesRequest + | .registerImage => RegisterImageRequest + | .registerInstanceEventNotificationAttributes => RegisterInstanceEventNotificationAttributesRequest + | .registerTransitGatewayMulticastGroupMembers => RegisterTransitGatewayMulticastGroupMembersRequest + | .registerTransitGatewayMulticastGroupSources => RegisterTransitGatewayMulticastGroupSourcesRequest + | .rejectCapacityReservationBillingOwnership => RejectCapacityReservationBillingOwnershipRequest + | .rejectTransitGatewayClientVpnAttachment => RejectTransitGatewayClientVpnAttachmentRequest + | .rejectTransitGatewayMulticastDomainAssociations => RejectTransitGatewayMulticastDomainAssociationsRequest + | .rejectTransitGatewayPeeringAttachment => RejectTransitGatewayPeeringAttachmentRequest + | .rejectTransitGatewayVpcAttachment => RejectTransitGatewayVpcAttachmentRequest + | .rejectVpcEndpointConnections => RejectVpcEndpointConnectionsRequest + | .rejectVpcPeeringConnection => RejectVpcPeeringConnectionRequest + | .releaseAddress => ReleaseAddressRequest + | .releaseHosts => ReleaseHostsRequest + | .releaseIpamPoolAllocation => ReleaseIpamPoolAllocationRequest + | .replaceIamInstanceProfileAssociation => ReplaceIamInstanceProfileAssociationRequest + | .replaceImageCriteriaInAllowedImagesSettings => ReplaceImageCriteriaInAllowedImagesSettingsRequest + | .replaceImageInstanceTypeSpecification => ReplaceImageInstanceTypeSpecificationRequest + | .replaceNetworkAclAssociation => ReplaceNetworkAclAssociationRequest + | .replaceNetworkAclEntry => ReplaceNetworkAclEntryRequest + | .replaceRoute => ReplaceRouteRequest + | .replaceRouteTableAssociation => ReplaceRouteTableAssociationRequest + | .replaceTransitGatewayRoute => ReplaceTransitGatewayRouteRequest + | .replaceVpnTunnel => ReplaceVpnTunnelRequest + | .reportInstanceStatus => ReportInstanceStatusRequest + | .requestSpotFleet => RequestSpotFleetRequest + | .requestSpotInstances => RequestSpotInstancesRequest + | .resetAddressAttribute => ResetAddressAttributeRequest + | .resetEbsDefaultKmsKeyId => ResetEbsDefaultKmsKeyIdRequest + | .resetFpgaImageAttribute => ResetFpgaImageAttributeRequest + | .resetImageAttribute => ResetImageAttributeRequest + | .resetInstanceAttribute => ResetInstanceAttributeRequest + | .resetNetworkInterfaceAttribute => ResetNetworkInterfaceAttributeRequest + | .resetSnapshotAttribute => ResetSnapshotAttributeRequest + | .restoreAddressToClassic => RestoreAddressToClassicRequest + | .restoreImageFromRecycleBin => RestoreImageFromRecycleBinRequest + | .restoreManagedPrefixListVersion => RestoreManagedPrefixListVersionRequest + | .restoreSnapshotFromRecycleBin => RestoreSnapshotFromRecycleBinRequest + | .restoreSnapshotTier => RestoreSnapshotTierRequest + | .restoreVolumeFromRecycleBin => RestoreVolumeFromRecycleBinRequest + | .revokeClientVpnIngress => RevokeClientVpnIngressRequest + | .revokeSecurityGroupEgress => RevokeSecurityGroupEgressRequest + | .revokeSecurityGroupIngress => RevokeSecurityGroupIngressRequest + | .runInstances => RunInstancesRequest + | .runScheduledInstances => RunScheduledInstancesRequest + | .searchLocalGatewayRoutes => SearchLocalGatewayRoutesRequest + | .searchTransitGatewayMulticastGroups => SearchTransitGatewayMulticastGroupsRequest + | .searchTransitGatewayRoutes => SearchTransitGatewayRoutesRequest + | .sendDiagnosticInterrupt => SendDiagnosticInterruptRequest + | .startDeclarativePoliciesReport => StartDeclarativePoliciesReportRequest + | .startInstances => StartInstancesRequest + | .startNetworkInsightsAccessScopeAnalysis => StartNetworkInsightsAccessScopeAnalysisRequest + | .startNetworkInsightsAnalysis => StartNetworkInsightsAnalysisRequest + | .startVpcEndpointServicePrivateDnsVerification => StartVpcEndpointServicePrivateDnsVerificationRequest + | .stopInstances => StopInstancesRequest + | .terminateClientVpnConnections => TerminateClientVpnConnectionsRequest + | .terminateInstances => TerminateInstancesRequest + | .unassignIpv6Addresses => UnassignIpv6AddressesRequest + | .unassignPrivateIpAddresses => UnassignPrivateIpAddressesRequest + | .unassignPrivateNatGatewayAddress => UnassignPrivateNatGatewayAddressRequest + | .unlockSnapshot => UnlockSnapshotRequest + | .unmonitorInstances => UnmonitorInstancesRequest + | .updateCapacityManagerMonitoredTagKeys => UpdateCapacityManagerMonitoredTagKeysRequest + | .updateCapacityManagerOrganizationsAccess => UpdateCapacityManagerOrganizationsAccessRequest + | .updateInterruptibleCapacityReservationAllocation => UpdateInterruptibleCapacityReservationAllocationRequest + | .updateSecurityGroupRuleDescriptionsEgress => UpdateSecurityGroupRuleDescriptionsEgressRequest + | .updateSecurityGroupRuleDescriptionsIngress => UpdateSecurityGroupRuleDescriptionsIngressRequest + | .validateSecurityGroupQuotasForInterface => ValidateSecurityGroupQuotasForInterfaceRequest + | .withdrawByoipCidr => WithdrawByoipCidrRequest + +abbrev Output : Op → Type + | .acceptAddressTransfer => AcceptAddressTransferResult + | .acceptCapacityReservationBillingOwnership => AcceptCapacityReservationBillingOwnershipResult + | .acceptReservedInstancesExchangeQuote => AcceptReservedInstancesExchangeQuoteResult + | .acceptTransitGatewayClientVpnAttachment => AcceptTransitGatewayClientVpnAttachmentResult + | .acceptTransitGatewayMulticastDomainAssociations => AcceptTransitGatewayMulticastDomainAssociationsResult + | .acceptTransitGatewayPeeringAttachment => AcceptTransitGatewayPeeringAttachmentResult + | .acceptTransitGatewayVpcAttachment => AcceptTransitGatewayVpcAttachmentResult + | .acceptVpcEndpointConnections => AcceptVpcEndpointConnectionsResult + | .acceptVpcPeeringConnection => AcceptVpcPeeringConnectionResult + | .advertiseByoipCidr => AdvertiseByoipCidrResult + | .allocateAddress => AllocateAddressResult + | .allocateHosts => AllocateHostsResult + | .allocateIpamPoolCidr => AllocateIpamPoolCidrResult + | .applySecurityGroupsToClientVpnTargetNetwork => ApplySecurityGroupsToClientVpnTargetNetworkResult + | .assignIpv6Addresses => AssignIpv6AddressesResult + | .assignPrivateIpAddresses => AssignPrivateIpAddressesResult + | .assignPrivateNatGatewayAddress => AssignPrivateNatGatewayAddressResult + | .associateAddress => AssociateAddressResult + | .associateApplicationStatusCheck => AssociateApplicationStatusCheckResult + | .associateCapacityReservationBillingOwner => AssociateCapacityReservationBillingOwnerResult + | .associateClientVpnTargetNetwork => AssociateClientVpnTargetNetworkResult + | .associateDhcpOptions => Unit + | .associateEnclaveCertificateIamRole => AssociateEnclaveCertificateIamRoleResult + | .associateIamInstanceProfile => AssociateIamInstanceProfileResult + | .associateInstanceEventWindow => AssociateInstanceEventWindowResult + | .associateIpamByoasn => AssociateIpamByoasnResult + | .associateIpamResourceDiscovery => AssociateIpamResourceDiscoveryResult + | .associateKmsKeyId => AssociateKmsKeyIdResult + | .associateNatGatewayAddress => AssociateNatGatewayAddressResult + | .associateNetworkingFlexCostAllocationPolicy => AssociateNetworkingFlexCostAllocationPolicyResult + | .associateRouteServer => AssociateRouteServerResult + | .associateRouteTable => AssociateRouteTableResult + | .associateSecurityGroupVpc => AssociateSecurityGroupVpcResult + | .associateSubnetCidrBlock => AssociateSubnetCidrBlockResult + | .associateTransitGatewayMulticastDomain => AssociateTransitGatewayMulticastDomainResult + | .associateTransitGatewayPolicyTable => AssociateTransitGatewayPolicyTableResult + | .associateTransitGatewayRouteTable => AssociateTransitGatewayRouteTableResult + | .associateTrunkInterface => AssociateTrunkInterfaceResult + | .associateVpcCidrBlock => AssociateVpcCidrBlockResult + | .attachClassicLinkVpc => AttachClassicLinkVpcResult + | .attachImageWatermark => AttachImageWatermarkResult + | .attachInternetGateway => Unit + | .attachNetworkInterface => AttachNetworkInterfaceResult + | .attachVerifiedAccessTrustProvider => AttachVerifiedAccessTrustProviderResult + | .attachVolume => VolumeAttachment + | .attachVpnGateway => AttachVpnGatewayResult + | .authorizeClientVpnIngress => AuthorizeClientVpnIngressResult + | .authorizeSecurityGroupEgress => AuthorizeSecurityGroupEgressResult + | .authorizeSecurityGroupIngress => AuthorizeSecurityGroupIngressResult + | .batchModifyIpamRoutingPolicyRegistrations => BatchModifyIpamRoutingPolicyRegistrationsResult + | .bundleInstance => BundleInstanceResult + | .cancelBundleTask => CancelBundleTaskResult + | .cancelCapacityReservation => CancelCapacityReservationResult + | .cancelCapacityReservationFleets => CancelCapacityReservationFleetsResult + | .cancelConversionTask => Unit + | .cancelDeclarativePoliciesReport => CancelDeclarativePoliciesReportResult + | .cancelExportTask => Unit + | .cancelImageLaunchPermission => CancelImageLaunchPermissionResult + | .cancelImportTask => CancelImportTaskResult + | .cancelReservedInstancesListing => CancelReservedInstancesListingResult + | .cancelSpotFleetRequests => CancelSpotFleetRequestsResponse + | .cancelSpotInstanceRequests => CancelSpotInstanceRequestsResult + | .confirmProductInstance => ConfirmProductInstanceResult + | .copyFpgaImage => CopyFpgaImageResult + | .copyImage => CopyImageResult + | .copySnapshot => CopySnapshotResult + | .copyVolumes => CopyVolumesResult + | .createApplicationStatusCheck => CreateApplicationStatusCheckResult + | .createCapacityManagerDataExport => CreateCapacityManagerDataExportResult + | .createCapacityReservation => CreateCapacityReservationResult + | .createCapacityReservationBySplitting => CreateCapacityReservationBySplittingResult + | .createCapacityReservationCancellationQuote => CreateCapacityReservationCancellationQuoteResult + | .createCapacityReservationDateChangeQuote => CreateCapacityReservationDateChangeQuoteResult + | .createCapacityReservationFleet => CreateCapacityReservationFleetResult + | .createCarrierGateway => CreateCarrierGatewayResult + | .createClientVpnEndpoint => CreateClientVpnEndpointResult + | .createClientVpnRoute => CreateClientVpnRouteResult + | .createCoipCidr => CreateCoipCidrResult + | .createCoipPool => CreateCoipPoolResult + | .createCustomerGateway => CreateCustomerGatewayResult + | .createDefaultSubnet => CreateDefaultSubnetResult + | .createDefaultVpc => CreateDefaultVpcResult + | .createDelegateMacVolumeOwnershipTask => CreateDelegateMacVolumeOwnershipTaskResult + | .createDhcpOptions => CreateDhcpOptionsResult + | .createEgressOnlyInternetGateway => CreateEgressOnlyInternetGatewayResult + | .createFleet => CreateFleetResult + | .createFlowLogs => CreateFlowLogsResult + | .createFpgaImage => CreateFpgaImageResult + | .createImage => CreateImageResult + | .createImageUsageReport => CreateImageUsageReportResult + | .createInstanceConnectEndpoint => CreateInstanceConnectEndpointResult + | .createInstanceEventWindow => CreateInstanceEventWindowResult + | .createInstanceExportTask => CreateInstanceExportTaskResult + | .createInternetGateway => CreateInternetGatewayResult + | .createInterruptibleCapacityReservationAllocation => CreateInterruptibleCapacityReservationAllocationResult + | .createIpam => CreateIpamResult + | .createIpamExternalResourceVerificationToken => CreateIpamExternalResourceVerificationTokenResult + | .createIpamInternetRegistryAssociation => CreateIpamInternetRegistryAssociationResult + | .createIpamPolicy => CreateIpamPolicyResult + | .createIpamPool => CreateIpamPoolResult + | .createIpamPrefixListResolver => CreateIpamPrefixListResolverResult + | .createIpamPrefixListResolverTarget => CreateIpamPrefixListResolverTargetResult + | .createIpamResourceDiscovery => CreateIpamResourceDiscoveryResult + | .createIpamRoutingPolicyRegistration => CreateIpamRoutingPolicyRegistrationResult + | .createIpamScope => CreateIpamScopeResult + | .createKeyPair => KeyPair + | .createLaunchTemplate => CreateLaunchTemplateResult + | .createLaunchTemplateVersion => CreateLaunchTemplateVersionResult + | .createLocalGatewayRoute => CreateLocalGatewayRouteResult + | .createLocalGatewayRouteTable => CreateLocalGatewayRouteTableResult + | .createLocalGatewayRouteTableVirtualInterfaceGroupAssociation => CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult + | .createLocalGatewayRouteTableVpcAssociation => CreateLocalGatewayRouteTableVpcAssociationResult + | .createLocalGatewayVirtualInterface => CreateLocalGatewayVirtualInterfaceResult + | .createLocalGatewayVirtualInterfaceGroup => CreateLocalGatewayVirtualInterfaceGroupResult + | .createMacSystemIntegrityProtectionModificationTask => CreateMacSystemIntegrityProtectionModificationTaskResult + | .createManagedPrefixList => CreateManagedPrefixListResult + | .createMetricCategory => CreateMetricCategoryResult + | .createNatGateway => CreateNatGatewayResult + | .createNetworkAcl => CreateNetworkAclResult + | .createNetworkAclEntry => Unit + | .createNetworkInsightsAccessScope => CreateNetworkInsightsAccessScopeResult + | .createNetworkInsightsPath => CreateNetworkInsightsPathResult + | .createNetworkInterface => CreateNetworkInterfaceResult + | .createNetworkInterfacePermission => CreateNetworkInterfacePermissionResult + | .createNetworkingFlexCostAllocationPolicy => CreateNetworkingFlexCostAllocationPolicyResult + | .createPlacementGroup => CreatePlacementGroupResult + | .createPublicIpv4Pool => CreatePublicIpv4PoolResult + | .createReplaceRootVolumeTask => CreateReplaceRootVolumeTaskResult + | .createReservedInstancesListing => CreateReservedInstancesListingResult + | .createRestoreImageTask => CreateRestoreImageTaskResult + | .createRoute => CreateRouteResult + | .createRouteServer => CreateRouteServerResult + | .createRouteServerEndpoint => CreateRouteServerEndpointResult + | .createRouteServerPeer => CreateRouteServerPeerResult + | .createRouteTable => CreateRouteTableResult + | .createSecondaryNetwork => CreateSecondaryNetworkResult + | .createSecondarySubnet => CreateSecondarySubnetResult + | .createSecurityGroup => CreateSecurityGroupResult + | .createSnapshot => Snapshot + | .createSnapshots => CreateSnapshotsResult + | .createSpotDatafeedSubscription => CreateSpotDatafeedSubscriptionResult + | .createStoreImageTask => CreateStoreImageTaskResult + | .createSubnet => CreateSubnetResult + | .createSubnetCidrReservation => CreateSubnetCidrReservationResult + | .createTags => Unit + | .createTrafficMirrorFilter => CreateTrafficMirrorFilterResult + | .createTrafficMirrorFilterRule => CreateTrafficMirrorFilterRuleResult + | .createTrafficMirrorSession => CreateTrafficMirrorSessionResult + | .createTrafficMirrorTarget => CreateTrafficMirrorTargetResult + | .createTransitGateway => CreateTransitGatewayResult + | .createTransitGatewayConnect => CreateTransitGatewayConnectResult + | .createTransitGatewayConnectPeer => CreateTransitGatewayConnectPeerResult + | .createTransitGatewayMeteringPolicy => CreateTransitGatewayMeteringPolicyResult + | .createTransitGatewayMeteringPolicyEntry => CreateTransitGatewayMeteringPolicyEntryResult + | .createTransitGatewayMulticastDomain => CreateTransitGatewayMulticastDomainResult + | .createTransitGatewayNetworkFunctionAttachment => CreateTransitGatewayNetworkFunctionAttachmentResult + | .createTransitGatewayPeeringAttachment => CreateTransitGatewayPeeringAttachmentResult + | .createTransitGatewayPolicyTable => CreateTransitGatewayPolicyTableResult + | .createTransitGatewayPolicyTableEntry => CreateTransitGatewayPolicyTableEntryResult + | .createTransitGatewayPrefixListReference => CreateTransitGatewayPrefixListReferenceResult + | .createTransitGatewayRoute => CreateTransitGatewayRouteResult + | .createTransitGatewayRouteTable => CreateTransitGatewayRouteTableResult + | .createTransitGatewayRouteTableAnnouncement => CreateTransitGatewayRouteTableAnnouncementResult + | .createTransitGatewayVpcAttachment => CreateTransitGatewayVpcAttachmentResult + | .createVerifiedAccessEndpoint => CreateVerifiedAccessEndpointResult + | .createVerifiedAccessGroup => CreateVerifiedAccessGroupResult + | .createVerifiedAccessInstance => CreateVerifiedAccessInstanceResult + | .createVerifiedAccessTrustProvider => CreateVerifiedAccessTrustProviderResult + | .createVolume => Volume + | .createVpc => CreateVpcResult + | .createVpcBlockPublicAccessExclusion => CreateVpcBlockPublicAccessExclusionResult + | .createVpcEncryptionControl => CreateVpcEncryptionControlResult + | .createVpcEndpoint => CreateVpcEndpointResult + | .createVpcEndpointConnectionNotification => CreateVpcEndpointConnectionNotificationResult + | .createVpcEndpointServiceConfiguration => CreateVpcEndpointServiceConfigurationResult + | .createVpcPeeringConnection => CreateVpcPeeringConnectionResult + | .createVpnConcentrator => CreateVpnConcentratorResult + | .createVpnConnection => CreateVpnConnectionResult + | .createVpnConnectionRoute => Unit + | .createVpnGateway => CreateVpnGatewayResult + | .deleteApplicationStatusCheck => DeleteApplicationStatusCheckResult + | .deleteCapacityManagerDataExport => DeleteCapacityManagerDataExportResult + | .deleteCarrierGateway => DeleteCarrierGatewayResult + | .deleteClientVpnEndpoint => DeleteClientVpnEndpointResult + | .deleteClientVpnEndpointAuthorizationPolicy => DeleteClientVpnEndpointAuthorizationPolicyResult + | .deleteClientVpnRoute => DeleteClientVpnRouteResult + | .deleteCoipCidr => DeleteCoipCidrResult + | .deleteCoipPool => DeleteCoipPoolResult + | .deleteCustomerGateway => Unit + | .deleteDhcpOptions => Unit + | .deleteEgressOnlyInternetGateway => DeleteEgressOnlyInternetGatewayResult + | .deleteFleets => DeleteFleetsResult + | .deleteFlowLogs => DeleteFlowLogsResult + | .deleteFpgaImage => DeleteFpgaImageResult + | .deleteImageUsageReport => DeleteImageUsageReportResult + | .deleteInstanceConnectEndpoint => DeleteInstanceConnectEndpointResult + | .deleteInstanceEventWindow => DeleteInstanceEventWindowResult + | .deleteInternetGateway => Unit + | .deleteIpam => DeleteIpamResult + | .deleteIpamExternalResourceVerificationToken => DeleteIpamExternalResourceVerificationTokenResult + | .deleteIpamInternetRegistryAssociation => DeleteIpamInternetRegistryAssociationResult + | .deleteIpamPolicy => DeleteIpamPolicyResult + | .deleteIpamPool => DeleteIpamPoolResult + | .deleteIpamPrefixListResolver => DeleteIpamPrefixListResolverResult + | .deleteIpamPrefixListResolverTarget => DeleteIpamPrefixListResolverTargetResult + | .deleteIpamResourceDiscovery => DeleteIpamResourceDiscoveryResult + | .deleteIpamRoutingPolicyRegistration => DeleteIpamRoutingPolicyRegistrationResult + | .deleteIpamScope => DeleteIpamScopeResult + | .deleteKeyPair => DeleteKeyPairResult + | .deleteLaunchTemplate => DeleteLaunchTemplateResult + | .deleteLaunchTemplateVersions => DeleteLaunchTemplateVersionsResult + | .deleteLocalGatewayRoute => DeleteLocalGatewayRouteResult + | .deleteLocalGatewayRouteTable => DeleteLocalGatewayRouteTableResult + | .deleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation => DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult + | .deleteLocalGatewayRouteTableVpcAssociation => DeleteLocalGatewayRouteTableVpcAssociationResult + | .deleteLocalGatewayVirtualInterface => DeleteLocalGatewayVirtualInterfaceResult + | .deleteLocalGatewayVirtualInterfaceGroup => DeleteLocalGatewayVirtualInterfaceGroupResult + | .deleteManagedPrefixList => DeleteManagedPrefixListResult + | .deleteMetricCategory => DeleteMetricCategoryResult + | .deleteNatGateway => DeleteNatGatewayResult + | .deleteNetworkAcl => Unit + | .deleteNetworkAclEntry => Unit + | .deleteNetworkInsightsAccessScope => DeleteNetworkInsightsAccessScopeResult + | .deleteNetworkInsightsAccessScopeAnalysis => DeleteNetworkInsightsAccessScopeAnalysisResult + | .deleteNetworkInsightsAnalysis => DeleteNetworkInsightsAnalysisResult + | .deleteNetworkInsightsPath => DeleteNetworkInsightsPathResult + | .deleteNetworkInterface => Unit + | .deleteNetworkInterfacePermission => DeleteNetworkInterfacePermissionResult + | .deleteNetworkingFlexCostAllocationPolicies => DeleteNetworkingFlexCostAllocationPoliciesResult + | .deletePlacementGroup => Unit + | .deletePublicIpv4Pool => DeletePublicIpv4PoolResult + | .deleteQueuedReservedInstances => DeleteQueuedReservedInstancesResult + | .deleteRoute => Unit + | .deleteRouteServer => DeleteRouteServerResult + | .deleteRouteServerEndpoint => DeleteRouteServerEndpointResult + | .deleteRouteServerPeer => DeleteRouteServerPeerResult + | .deleteRouteTable => Unit + | .deleteSecondaryNetwork => DeleteSecondaryNetworkResult + | .deleteSecondarySubnet => DeleteSecondarySubnetResult + | .deleteSecurityGroup => DeleteSecurityGroupResult + | .deleteSnapshot => Unit + | .deleteSpotDatafeedSubscription => Unit + | .deleteSubnet => Unit + | .deleteSubnetCidrReservation => DeleteSubnetCidrReservationResult + | .deleteTags => Unit + | .deleteTrafficMirrorFilter => DeleteTrafficMirrorFilterResult + | .deleteTrafficMirrorFilterRule => DeleteTrafficMirrorFilterRuleResult + | .deleteTrafficMirrorSession => DeleteTrafficMirrorSessionResult + | .deleteTrafficMirrorTarget => DeleteTrafficMirrorTargetResult + | .deleteTransitGateway => DeleteTransitGatewayResult + | .deleteTransitGatewayClientVpnAttachment => DeleteTransitGatewayClientVpnAttachmentResult + | .deleteTransitGatewayConnect => DeleteTransitGatewayConnectResult + | .deleteTransitGatewayConnectPeer => DeleteTransitGatewayConnectPeerResult + | .deleteTransitGatewayMeteringPolicy => DeleteTransitGatewayMeteringPolicyResult + | .deleteTransitGatewayMeteringPolicyEntry => DeleteTransitGatewayMeteringPolicyEntryResult + | .deleteTransitGatewayMulticastDomain => DeleteTransitGatewayMulticastDomainResult + | .deleteTransitGatewayNetworkFunctionAttachment => DeleteTransitGatewayNetworkFunctionAttachmentResult + | .deleteTransitGatewayPeeringAttachment => DeleteTransitGatewayPeeringAttachmentResult + | .deleteTransitGatewayPolicyTable => DeleteTransitGatewayPolicyTableResult + | .deleteTransitGatewayPolicyTableEntry => DeleteTransitGatewayPolicyTableEntryResult + | .deleteTransitGatewayPrefixListReference => DeleteTransitGatewayPrefixListReferenceResult + | .deleteTransitGatewayRoute => DeleteTransitGatewayRouteResult + | .deleteTransitGatewayRouteTable => DeleteTransitGatewayRouteTableResult + | .deleteTransitGatewayRouteTableAnnouncement => DeleteTransitGatewayRouteTableAnnouncementResult + | .deleteTransitGatewayVpcAttachment => DeleteTransitGatewayVpcAttachmentResult + | .deleteVerifiedAccessEndpoint => DeleteVerifiedAccessEndpointResult + | .deleteVerifiedAccessGroup => DeleteVerifiedAccessGroupResult + | .deleteVerifiedAccessInstance => DeleteVerifiedAccessInstanceResult + | .deleteVerifiedAccessTrustProvider => DeleteVerifiedAccessTrustProviderResult + | .deleteVolume => Unit + | .deleteVpc => Unit + | .deleteVpcBlockPublicAccessExclusion => DeleteVpcBlockPublicAccessExclusionResult + | .deleteVpcEncryptionControl => DeleteVpcEncryptionControlResult + | .deleteVpcEndpointConnectionNotifications => DeleteVpcEndpointConnectionNotificationsResult + | .deleteVpcEndpointServiceConfigurations => DeleteVpcEndpointServiceConfigurationsResult + | .deleteVpcEndpoints => DeleteVpcEndpointsResult + | .deleteVpcPeeringConnection => DeleteVpcPeeringConnectionResult + | .deleteVpnConcentrator => DeleteVpnConcentratorResult + | .deleteVpnConnection => Unit + | .deleteVpnConnectionRoute => Unit + | .deleteVpnGateway => Unit + | .deprovisionByoipCidr => DeprovisionByoipCidrResult + | .deprovisionIpamByoasn => DeprovisionIpamByoasnResult + | .deprovisionIpamPoolCidr => DeprovisionIpamPoolCidrResult + | .deprovisionPublicIpv4PoolCidr => DeprovisionPublicIpv4PoolCidrResult + | .deregisterImage => DeregisterImageResult + | .deregisterInstanceEventNotificationAttributes => DeregisterInstanceEventNotificationAttributesResult + | .deregisterTransitGatewayMulticastGroupMembers => DeregisterTransitGatewayMulticastGroupMembersResult + | .deregisterTransitGatewayMulticastGroupSources => DeregisterTransitGatewayMulticastGroupSourcesResult + | .describeAccountAttributes => DescribeAccountAttributesResult + | .describeAccountVpcEncryptionControl => DescribeAccountVpcEncryptionControlResult + | .describeAddressTransfers => DescribeAddressTransfersResult + | .describeAddresses => DescribeAddressesResult + | .describeAddressesAttribute => DescribeAddressesAttributeResult + | .describeAggregateIdFormat => DescribeAggregateIdFormatResult + | .describeApplicationStatus => DescribeApplicationStatusResult + | .describeApplicationStatusCheckAssociations => DescribeApplicationStatusCheckAssociationsResult + | .describeApplicationStatusChecks => DescribeApplicationStatusChecksResult + | .describeAvailabilityZones => DescribeAvailabilityZonesResult + | .describeAwsNetworkPerformanceMetricSubscriptions => DescribeAwsNetworkPerformanceMetricSubscriptionsResult + | .describeBundleTasks => DescribeBundleTasksResult + | .describeByoipCidrs => DescribeByoipCidrsResult + | .describeCapacityBlockExtensionHistory => DescribeCapacityBlockExtensionHistoryResult + | .describeCapacityBlockExtensionOfferings => DescribeCapacityBlockExtensionOfferingsResult + | .describeCapacityBlockOfferings => DescribeCapacityBlockOfferingsResult + | .describeCapacityBlockStatus => DescribeCapacityBlockStatusResult + | .describeCapacityBlocks => DescribeCapacityBlocksResult + | .describeCapacityManagerDataExports => DescribeCapacityManagerDataExportsResult + | .describeCapacityReservationBillingRequests => DescribeCapacityReservationBillingRequestsResult + | .describeCapacityReservationCancellationQuotes => DescribeCapacityReservationCancellationQuotesResult + | .describeCapacityReservationDateChangeQuotes => DescribeCapacityReservationDateChangeQuotesResult + | .describeCapacityReservationFleets => DescribeCapacityReservationFleetsResult + | .describeCapacityReservationTopology => DescribeCapacityReservationTopologyResult + | .describeCapacityReservations => DescribeCapacityReservationsResult + | .describeCarrierGateways => DescribeCarrierGatewaysResult + | .describeClassicLinkInstances => DescribeClassicLinkInstancesResult + | .describeClientVpnAuthorizationRules => DescribeClientVpnAuthorizationRulesResult + | .describeClientVpnConnections => DescribeClientVpnConnectionsResult + | .describeClientVpnEndpoints => DescribeClientVpnEndpointsResult + | .describeClientVpnRoutes => DescribeClientVpnRoutesResult + | .describeClientVpnTargetNetworks => DescribeClientVpnTargetNetworksResult + | .describeCoipPools => DescribeCoipPoolsResult + | .describeConversionTasks => DescribeConversionTasksResult + | .describeCustomerGateways => DescribeCustomerGatewaysResult + | .describeDeclarativePoliciesReports => DescribeDeclarativePoliciesReportsResult + | .describeDhcpOptions => DescribeDhcpOptionsResult + | .describeEgressOnlyInternetGateways => DescribeEgressOnlyInternetGatewaysResult + | .describeElasticGpus => DescribeElasticGpusResult + | .describeExportImageTasks => DescribeExportImageTasksResult + | .describeExportTasks => DescribeExportTasksResult + | .describeFastLaunchImages => DescribeFastLaunchImagesResult + | .describeFastSnapshotRestores => DescribeFastSnapshotRestoresResult + | .describeFleetHistory => DescribeFleetHistoryResult + | .describeFleetInstances => DescribeFleetInstancesResult + | .describeFleets => DescribeFleetsResult + | .describeFlowLogs => DescribeFlowLogsResult + | .describeFpgaImageAttribute => DescribeFpgaImageAttributeResult + | .describeFpgaImages => DescribeFpgaImagesResult + | .describeHostReservationOfferings => DescribeHostReservationOfferingsResult + | .describeHostReservations => DescribeHostReservationsResult + | .describeHosts => DescribeHostsResult + | .describeIamInstanceProfileAssociations => DescribeIamInstanceProfileAssociationsResult + | .describeIdFormat => DescribeIdFormatResult + | .describeIdentityIdFormat => DescribeIdentityIdFormatResult + | .describeImageAttribute => ImageAttribute + | .describeImageReferences => DescribeImageReferencesResult + | .describeImageUsageReportEntries => DescribeImageUsageReportEntriesResult + | .describeImageUsageReports => DescribeImageUsageReportsResult + | .describeImages => DescribeImagesResult + | .describeImportImageTasks => DescribeImportImageTasksResult + | .describeImportSnapshotTasks => DescribeImportSnapshotTasksResult + | .describeInstanceAttribute => InstanceAttribute + | .describeInstanceConnectEndpoints => DescribeInstanceConnectEndpointsResult + | .describeInstanceCreditSpecifications => DescribeInstanceCreditSpecificationsResult + | .describeInstanceEventNotificationAttributes => DescribeInstanceEventNotificationAttributesResult + | .describeInstanceEventWindows => DescribeInstanceEventWindowsResult + | .describeInstanceImageMetadata => DescribeInstanceImageMetadataResult + | .describeInstanceSqlHaHistoryStates => DescribeInstanceSqlHaHistoryStatesResult + | .describeInstanceSqlHaStates => DescribeInstanceSqlHaStatesResult + | .describeInstanceStatus => DescribeInstanceStatusResult + | .describeInstanceTopology => DescribeInstanceTopologyResult + | .describeInstanceTypeOfferings => DescribeInstanceTypeOfferingsResult + | .describeInstanceTypes => DescribeInstanceTypesResult + | .describeInstances => DescribeInstancesResult + | .describeInternetGateways => DescribeInternetGatewaysResult + | .describeIpamByoasn => DescribeIpamByoasnResult + | .describeIpamExternalResourceVerificationTokens => DescribeIpamExternalResourceVerificationTokensResult + | .describeIpamInternetRegistryAssociations => DescribeIpamInternetRegistryAssociationsResult + | .describeIpamPolicies => DescribeIpamPoliciesResult + | .describeIpamPoolAllocations => DescribeIpamPoolAllocationsResult + | .describeIpamPools => DescribeIpamPoolsResult + | .describeIpamPrefixListResolverTargets => DescribeIpamPrefixListResolverTargetsResult + | .describeIpamPrefixListResolvers => DescribeIpamPrefixListResolversResult + | .describeIpamResourceDiscoveries => DescribeIpamResourceDiscoveriesResult + | .describeIpamResourceDiscoveryAssociations => DescribeIpamResourceDiscoveryAssociationsResult + | .describeIpamScopes => DescribeIpamScopesResult + | .describeIpams => DescribeIpamsResult + | .describeIpv6Pools => DescribeIpv6PoolsResult + | .describeKeyPairs => DescribeKeyPairsResult + | .describeLaunchTemplateVersions => DescribeLaunchTemplateVersionsResult + | .describeLaunchTemplates => DescribeLaunchTemplatesResult + | .describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations => DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult + | .describeLocalGatewayRouteTableVpcAssociations => DescribeLocalGatewayRouteTableVpcAssociationsResult + | .describeLocalGatewayRouteTables => DescribeLocalGatewayRouteTablesResult + | .describeLocalGatewayVirtualInterfaceGroups => DescribeLocalGatewayVirtualInterfaceGroupsResult + | .describeLocalGatewayVirtualInterfaces => DescribeLocalGatewayVirtualInterfacesResult + | .describeLocalGateways => DescribeLocalGatewaysResult + | .describeLockedSnapshots => DescribeLockedSnapshotsResult + | .describeMacHosts => DescribeMacHostsResult + | .describeMacModificationTasks => DescribeMacModificationTasksResult + | .describeManagedPrefixLists => DescribeManagedPrefixListsResult + | .describeMetricCategories => DescribeMetricCategoriesResult + | .describeMovingAddresses => DescribeMovingAddressesResult + | .describeNatGateways => DescribeNatGatewaysResult + | .describeNetworkAcls => DescribeNetworkAclsResult + | .describeNetworkInsightsAccessScopeAnalyses => DescribeNetworkInsightsAccessScopeAnalysesResult + | .describeNetworkInsightsAccessScopes => DescribeNetworkInsightsAccessScopesResult + | .describeNetworkInsightsAnalyses => DescribeNetworkInsightsAnalysesResult + | .describeNetworkInsightsPaths => DescribeNetworkInsightsPathsResult + | .describeNetworkInterfaceAttribute => DescribeNetworkInterfaceAttributeResult + | .describeNetworkInterfacePermissions => DescribeNetworkInterfacePermissionsResult + | .describeNetworkInterfaces => DescribeNetworkInterfacesResult + | .describeNetworkingFlexCostAllocationPolicies => DescribeNetworkingFlexCostAllocationPoliciesResult + | .describeNetworkingFlexCostAllocationPolicyAssociations => DescribeNetworkingFlexCostAllocationPolicyAssociationsResult + | .describeOutpostLags => DescribeOutpostLagsResult + | .describePlacementGroups => DescribePlacementGroupsResult + | .describePrefixLists => DescribePrefixListsResult + | .describePrincipalIdFormat => DescribePrincipalIdFormatResult + | .describePublicIpv4Pools => DescribePublicIpv4PoolsResult + | .describeRegions => DescribeRegionsResult + | .describeReplaceRootVolumeTasks => DescribeReplaceRootVolumeTasksResult + | .describeReservedInstances => DescribeReservedInstancesResult + | .describeReservedInstancesListings => DescribeReservedInstancesListingsResult + | .describeReservedInstancesModifications => DescribeReservedInstancesModificationsResult + | .describeReservedInstancesOfferings => DescribeReservedInstancesOfferingsResult + | .describeRouteServerEndpoints => DescribeRouteServerEndpointsResult + | .describeRouteServerPeers => DescribeRouteServerPeersResult + | .describeRouteServers => DescribeRouteServersResult + | .describeRouteTables => DescribeRouteTablesResult + | .describeScheduledInstanceAvailability => DescribeScheduledInstanceAvailabilityResult + | .describeScheduledInstances => DescribeScheduledInstancesResult + | .describeSecondaryInterfaces => DescribeSecondaryInterfacesResult + | .describeSecondaryNetworks => DescribeSecondaryNetworksResult + | .describeSecondarySubnets => DescribeSecondarySubnetsResult + | .describeSecurityGroupReferences => DescribeSecurityGroupReferencesResult + | .describeSecurityGroupRules => DescribeSecurityGroupRulesResult + | .describeSecurityGroupVpcAssociations => DescribeSecurityGroupVpcAssociationsResult + | .describeSecurityGroups => DescribeSecurityGroupsResult + | .describeServiceLinkVirtualInterfaces => DescribeServiceLinkVirtualInterfacesResult + | .describeSnapshotAttribute => DescribeSnapshotAttributeResult + | .describeSnapshotTierStatus => DescribeSnapshotTierStatusResult + | .describeSnapshots => DescribeSnapshotsResult + | .describeSpotDatafeedSubscription => DescribeSpotDatafeedSubscriptionResult + | .describeSpotFleetInstances => DescribeSpotFleetInstancesResponse + | .describeSpotFleetRequestHistory => DescribeSpotFleetRequestHistoryResponse + | .describeSpotFleetRequests => DescribeSpotFleetRequestsResponse + | .describeSpotInstanceRequests => DescribeSpotInstanceRequestsResult + | .describeSpotPriceHistory => DescribeSpotPriceHistoryResult + | .describeStaleSecurityGroups => DescribeStaleSecurityGroupsResult + | .describeStoreImageTasks => DescribeStoreImageTasksResult + | .describeSubnets => DescribeSubnetsResult + | .describeTags => DescribeTagsResult + | .describeTrafficMirrorFilterRules => DescribeTrafficMirrorFilterRulesResult + | .describeTrafficMirrorFilters => DescribeTrafficMirrorFiltersResult + | .describeTrafficMirrorSessions => DescribeTrafficMirrorSessionsResult + | .describeTrafficMirrorTargets => DescribeTrafficMirrorTargetsResult + | .describeTransitGatewayAttachments => DescribeTransitGatewayAttachmentsResult + | .describeTransitGatewayConnectPeers => DescribeTransitGatewayConnectPeersResult + | .describeTransitGatewayConnects => DescribeTransitGatewayConnectsResult + | .describeTransitGatewayMeteringPolicies => DescribeTransitGatewayMeteringPoliciesResult + | .describeTransitGatewayMulticastDomains => DescribeTransitGatewayMulticastDomainsResult + | .describeTransitGatewayNetworkFunctionAttachments => DescribeTransitGatewayNetworkFunctionAttachmentsResult + | .describeTransitGatewayPeeringAttachments => DescribeTransitGatewayPeeringAttachmentsResult + | .describeTransitGatewayPolicyTables => DescribeTransitGatewayPolicyTablesResult + | .describeTransitGatewayRouteTableAnnouncements => DescribeTransitGatewayRouteTableAnnouncementsResult + | .describeTransitGatewayRouteTables => DescribeTransitGatewayRouteTablesResult + | .describeTransitGatewayVpcAttachments => DescribeTransitGatewayVpcAttachmentsResult + | .describeTransitGateways => DescribeTransitGatewaysResult + | .describeTrunkInterfaceAssociations => DescribeTrunkInterfaceAssociationsResult + | .describeVerifiedAccessEndpoints => DescribeVerifiedAccessEndpointsResult + | .describeVerifiedAccessGroups => DescribeVerifiedAccessGroupsResult + | .describeVerifiedAccessInstanceLoggingConfigurations => DescribeVerifiedAccessInstanceLoggingConfigurationsResult + | .describeVerifiedAccessInstances => DescribeVerifiedAccessInstancesResult + | .describeVerifiedAccessTrustProviders => DescribeVerifiedAccessTrustProvidersResult + | .describeVolumeAttribute => DescribeVolumeAttributeResult + | .describeVolumeStatus => DescribeVolumeStatusResult + | .describeVolumes => DescribeVolumesResult + | .describeVolumesModifications => DescribeVolumesModificationsResult + | .describeVpcAttribute => DescribeVpcAttributeResult + | .describeVpcBlockPublicAccessExclusions => DescribeVpcBlockPublicAccessExclusionsResult + | .describeVpcBlockPublicAccessOptions => DescribeVpcBlockPublicAccessOptionsResult + | .describeVpcClassicLink => DescribeVpcClassicLinkResult + | .describeVpcClassicLinkDnsSupport => DescribeVpcClassicLinkDnsSupportResult + | .describeVpcEncryptionControls => DescribeVpcEncryptionControlsResult + | .describeVpcEndpointAssociations => DescribeVpcEndpointAssociationsResult + | .describeVpcEndpointConnectionNotifications => DescribeVpcEndpointConnectionNotificationsResult + | .describeVpcEndpointConnections => DescribeVpcEndpointConnectionsResult + | .describeVpcEndpointServiceConfigurations => DescribeVpcEndpointServiceConfigurationsResult + | .describeVpcEndpointServicePermissions => DescribeVpcEndpointServicePermissionsResult + | .describeVpcEndpointServices => DescribeVpcEndpointServicesResult + | .describeVpcEndpoints => DescribeVpcEndpointsResult + | .describeVpcPeeringConnections => DescribeVpcPeeringConnectionsResult + | .describeVpcs => DescribeVpcsResult + | .describeVpnConcentrators => DescribeVpnConcentratorsResult + | .describeVpnConnections => DescribeVpnConnectionsResult + | .describeVpnGateways => DescribeVpnGatewaysResult + | .detachClassicLinkVpc => DetachClassicLinkVpcResult + | .detachImageWatermark => DetachImageWatermarkResult + | .detachInternetGateway => Unit + | .detachNetworkInterface => Unit + | .detachVerifiedAccessTrustProvider => DetachVerifiedAccessTrustProviderResult + | .detachVolume => VolumeAttachment + | .detachVpnGateway => Unit + | .disableAddressTransfer => DisableAddressTransferResult + | .disableAllowedImagesSettings => DisableAllowedImagesSettingsResult + | .disableApplicationStatusCheckSuppression => DisableApplicationStatusCheckSuppressionResult + | .disableAwsNetworkPerformanceMetricSubscription => DisableAwsNetworkPerformanceMetricSubscriptionResult + | .disableCapacityManager => DisableCapacityManagerResult + | .disableEbsEncryptionByDefault => DisableEbsEncryptionByDefaultResult + | .disableFastLaunch => DisableFastLaunchResult + | .disableFastSnapshotRestores => DisableFastSnapshotRestoresResult + | .disableImage => DisableImageResult + | .disableImageBlockPublicAccess => DisableImageBlockPublicAccessResult + | .disableImageDeprecation => DisableImageDeprecationResult + | .disableImageDeregistrationProtection => DisableImageDeregistrationProtectionResult + | .disableInstanceSqlHaStandbyDetections => DisableInstanceSqlHaStandbyDetectionsResult + | .disableIpamOrganizationAdminAccount => DisableIpamOrganizationAdminAccountResult + | .disableIpamPolicy => DisableIpamPolicyResult + | .disableRouteServerPropagation => DisableRouteServerPropagationResult + | .disableSerialConsoleAccess => DisableSerialConsoleAccessResult + | .disableSnapshotBlockPublicAccess => DisableSnapshotBlockPublicAccessResult + | .disableTransitGatewayRouteTablePropagation => DisableTransitGatewayRouteTablePropagationResult + | .disableVgwRoutePropagation => Unit + | .disableVpcClassicLink => DisableVpcClassicLinkResult + | .disableVpcClassicLinkDnsSupport => DisableVpcClassicLinkDnsSupportResult + | .disassociateAddress => Unit + | .disassociateApplicationStatusCheck => DisassociateApplicationStatusCheckResult + | .disassociateCapacityReservationBillingOwner => DisassociateCapacityReservationBillingOwnerResult + | .disassociateClientVpnTargetNetwork => DisassociateClientVpnTargetNetworkResult + | .disassociateEnclaveCertificateIamRole => DisassociateEnclaveCertificateIamRoleResult + | .disassociateIamInstanceProfile => DisassociateIamInstanceProfileResult + | .disassociateInstanceEventWindow => DisassociateInstanceEventWindowResult + | .disassociateIpamByoasn => DisassociateIpamByoasnResult + | .disassociateIpamResourceDiscovery => DisassociateIpamResourceDiscoveryResult + | .disassociateKmsKeyId => DisassociateKmsKeyIdResult + | .disassociateNatGatewayAddress => DisassociateNatGatewayAddressResult + | .disassociateNetworkingFlexCostAllocationPolicy => DisassociateNetworkingFlexCostAllocationPolicyResult + | .disassociateRouteServer => DisassociateRouteServerResult + | .disassociateRouteTable => Unit + | .disassociateSecurityGroupVpc => DisassociateSecurityGroupVpcResult + | .disassociateSubnetCidrBlock => DisassociateSubnetCidrBlockResult + | .disassociateTransitGatewayMulticastDomain => DisassociateTransitGatewayMulticastDomainResult + | .disassociateTransitGatewayPolicyTable => DisassociateTransitGatewayPolicyTableResult + | .disassociateTransitGatewayRouteTable => DisassociateTransitGatewayRouteTableResult + | .disassociateTrunkInterface => DisassociateTrunkInterfaceResult + | .disassociateVpcCidrBlock => DisassociateVpcCidrBlockResult + | .enableAddressTransfer => EnableAddressTransferResult + | .enableAllowedImagesSettings => EnableAllowedImagesSettingsResult + | .enableApplicationStatusCheckSuppression => EnableApplicationStatusCheckSuppressionResult + | .enableAwsNetworkPerformanceMetricSubscription => EnableAwsNetworkPerformanceMetricSubscriptionResult + | .enableCapacityManager => EnableCapacityManagerResult + | .enableEbsEncryptionByDefault => EnableEbsEncryptionByDefaultResult + | .enableFastLaunch => EnableFastLaunchResult + | .enableFastSnapshotRestores => EnableFastSnapshotRestoresResult + | .enableImage => EnableImageResult + | .enableImageBlockPublicAccess => EnableImageBlockPublicAccessResult + | .enableImageDeprecation => EnableImageDeprecationResult + | .enableImageDeregistrationProtection => EnableImageDeregistrationProtectionResult + | .enableInstanceSqlHaStandbyDetections => EnableInstanceSqlHaStandbyDetectionsResult + | .enableIpamInternetRegistryAssociation => EnableIpamInternetRegistryAssociationResult + | .enableIpamOrganizationAdminAccount => EnableIpamOrganizationAdminAccountResult + | .enableIpamPolicy => EnableIpamPolicyResult + | .enableReachabilityAnalyzerOrganizationSharing => EnableReachabilityAnalyzerOrganizationSharingResult + | .enableRouteServerPropagation => EnableRouteServerPropagationResult + | .enableSerialConsoleAccess => EnableSerialConsoleAccessResult + | .enableSnapshotBlockPublicAccess => EnableSnapshotBlockPublicAccessResult + | .enableTransitGatewayRouteTablePropagation => EnableTransitGatewayRouteTablePropagationResult + | .enableVgwRoutePropagation => Unit + | .enableVolumeIO => Unit + | .enableVpcClassicLink => EnableVpcClassicLinkResult + | .enableVpcClassicLinkDnsSupport => EnableVpcClassicLinkDnsSupportResult + | .exportClientVpnClientCertificateRevocationList => ExportClientVpnClientCertificateRevocationListResult + | .exportClientVpnClientConfiguration => ExportClientVpnClientConfigurationResult + | .exportImage => ExportImageResult + | .exportTransitGatewayRoutes => ExportTransitGatewayRoutesResult + | .exportVerifiedAccessInstanceClientConfiguration => ExportVerifiedAccessInstanceClientConfigurationResult + | .getActiveVpnTunnelStatus => GetActiveVpnTunnelStatusResult + | .getAllowedImagesSettings => GetAllowedImagesSettingsResult + | .getAssociatedEnclaveCertificateIamRoles => GetAssociatedEnclaveCertificateIamRolesResult + | .getAssociatedIpv6PoolCidrs => GetAssociatedIpv6PoolCidrsResult + | .getAwsNetworkPerformanceData => GetAwsNetworkPerformanceDataResult + | .getCapacityManagerAttributes => GetCapacityManagerAttributesResult + | .getCapacityManagerMetricData => GetCapacityManagerMetricDataResult + | .getCapacityManagerMetricDimensions => GetCapacityManagerMetricDimensionsResult + | .getCapacityManagerMonitoredTagKeys => GetCapacityManagerMonitoredTagKeysResult + | .getCapacityManagerSupportabilityScores => GetCapacityManagerSupportabilityScoresResult + | .getCapacityReservationUsage => GetCapacityReservationUsageResult + | .getClientVpnEndpointAuthorizationPolicy => GetClientVpnEndpointAuthorizationPolicyResult + | .getCoipPoolUsage => GetCoipPoolUsageResult + | .getConsoleOutput => GetConsoleOutputResult + | .getConsoleScreenshot => GetConsoleScreenshotResult + | .getDeclarativePoliciesReportSummary => GetDeclarativePoliciesReportSummaryResult + | .getDefaultCreditSpecification => GetDefaultCreditSpecificationResult + | .getEbsDefaultKmsKeyId => GetEbsDefaultKmsKeyIdResult + | .getEbsEncryptionByDefault => GetEbsEncryptionByDefaultResult + | .getEnabledIpamPolicy => GetEnabledIpamPolicyResult + | .getFlowLogsIntegrationTemplate => GetFlowLogsIntegrationTemplateResult + | .getGroupsForCapacityReservation => GetGroupsForCapacityReservationResult + | .getHostReservationPurchasePreview => GetHostReservationPurchasePreviewResult + | .getImageAncestry => GetImageAncestryResult + | .getImageBlockPublicAccessState => GetImageBlockPublicAccessStateResult + | .getImageFindings => GetImageFindingsResult + | .getInstanceMetadataDefaults => GetInstanceMetadataDefaultsResult + | .getInstanceTpmEkPub => GetInstanceTpmEkPubResult + | .getInstanceTypesFromInstanceRequirements => GetInstanceTypesFromInstanceRequirementsResult + | .getInstanceUefiData => GetInstanceUefiDataResult + | .getIpamAddressHistory => GetIpamAddressHistoryResult + | .getIpamDiscoveredAccounts => GetIpamDiscoveredAccountsResult + | .getIpamDiscoveredPublicAddresses => GetIpamDiscoveredPublicAddressesResult + | .getIpamDiscoveredResourceCidrs => GetIpamDiscoveredResourceCidrsResult + | .getIpamDiscoveredRoutes => GetIpamDiscoveredRoutesResult + | .getIpamInternetRegistryAssociationAsns => GetIpamInternetRegistryAssociationAsnsResult + | .getIpamInternetRegistryAssociationCidrs => GetIpamInternetRegistryAssociationCidrsResult + | .getIpamPolicyAllocationRules => GetIpamPolicyAllocationRulesResult + | .getIpamPolicyOrganizationTargets => GetIpamPolicyOrganizationTargetsResult + | .getIpamPoolAllocations => GetIpamPoolAllocationsResult + | .getIpamPoolCidrs => GetIpamPoolCidrsResult + | .getIpamPrefixListResolverRules => GetIpamPrefixListResolverRulesResult + | .getIpamPrefixListResolverVersionEntries => GetIpamPrefixListResolverVersionEntriesResult + | .getIpamPrefixListResolverVersions => GetIpamPrefixListResolverVersionsResult + | .getIpamResourceCidrs => GetIpamResourceCidrsResult + | .getIpamRouteOriginAuthorizations => GetIpamRouteOriginAuthorizationsResult + | .getIpamRouteProtectionFindings => GetIpamRouteProtectionFindingsResult + | .getIpamRoutingPolicyRegistrationDeltas => GetIpamRoutingPolicyRegistrationDeltasResult + | .getIpamRoutingPolicyRegistrations => GetIpamRoutingPolicyRegistrationsResult + | .getLaunchTemplateData => GetLaunchTemplateDataResult + | .getManagedPrefixListAssociations => GetManagedPrefixListAssociationsResult + | .getManagedPrefixListEntries => GetManagedPrefixListEntriesResult + | .getManagedResourceVisibility => GetManagedResourceVisibilityResult + | .getNetworkInsightsAccessScopeAnalysisFindings => GetNetworkInsightsAccessScopeAnalysisFindingsResult + | .getNetworkInsightsAccessScopeContent => GetNetworkInsightsAccessScopeContentResult + | .getNetworkingFlexCostAllocationPolicyVersions => GetNetworkingFlexCostAllocationPolicyVersionsResult + | .getPasswordData => GetPasswordDataResult + | .getReservedInstancesExchangeQuote => GetReservedInstancesExchangeQuoteResult + | .getRouteServerAssociations => GetRouteServerAssociationsResult + | .getRouteServerPropagations => GetRouteServerPropagationsResult + | .getRouteServerRoutingDatabase => GetRouteServerRoutingDatabaseResult + | .getSecurityGroupsForVpc => GetSecurityGroupsForVpcResult + | .getSerialConsoleAccessStatus => GetSerialConsoleAccessStatusResult + | .getSnapshotBlockPublicAccessState => GetSnapshotBlockPublicAccessStateResult + | .getSpotPlacementScores => GetSpotPlacementScoresResult + | .getSubnetCidrReservations => GetSubnetCidrReservationsResult + | .getTransitGatewayAttachmentNatConfiguration => GetTransitGatewayAttachmentNatConfigurationResult + | .getTransitGatewayAttachmentPropagations => GetTransitGatewayAttachmentPropagationsResult + | .getTransitGatewayMeteringPolicyEntries => GetTransitGatewayMeteringPolicyEntriesResult + | .getTransitGatewayMulticastDomainAssociations => GetTransitGatewayMulticastDomainAssociationsResult + | .getTransitGatewayPolicyTableAssociations => GetTransitGatewayPolicyTableAssociationsResult + | .getTransitGatewayPolicyTableEntries => GetTransitGatewayPolicyTableEntriesResult + | .getTransitGatewayPrefixListReferences => GetTransitGatewayPrefixListReferencesResult + | .getTransitGatewayRouteTableAssociations => GetTransitGatewayRouteTableAssociationsResult + | .getTransitGatewayRouteTablePropagations => GetTransitGatewayRouteTablePropagationsResult + | .getVerifiedAccessEndpointPolicy => GetVerifiedAccessEndpointPolicyResult + | .getVerifiedAccessEndpointTargets => GetVerifiedAccessEndpointTargetsResult + | .getVerifiedAccessGroupPolicy => GetVerifiedAccessGroupPolicyResult + | .getVpcResourcesBlockingEncryptionEnforcement => GetVpcResourcesBlockingEncryptionEnforcementResult + | .getVpnConnectionDeviceSampleConfiguration => GetVpnConnectionDeviceSampleConfigurationResult + | .getVpnConnectionDeviceTypes => GetVpnConnectionDeviceTypesResult + | .getVpnTunnelReplacementStatus => GetVpnTunnelReplacementStatusResult + | .importClientVpnClientCertificateRevocationList => ImportClientVpnClientCertificateRevocationListResult + | .importImage => ImportImageResult + | .importInstance => ImportInstanceResult + | .importKeyPair => ImportKeyPairResult + | .importSnapshot => ImportSnapshotResult + | .importVolume => ImportVolumeResult + | .listImagesInRecycleBin => ListImagesInRecycleBinResult + | .listSnapshotsInRecycleBin => ListSnapshotsInRecycleBinResult + | .listVolumesInRecycleBin => ListVolumesInRecycleBinResult + | .lockSnapshot => LockSnapshotResult + | .modifyAccountVpcEncryptionControl => ModifyAccountVpcEncryptionControlResult + | .modifyAddressAttribute => ModifyAddressAttributeResult + | .modifyApplicationStatusCheck => ModifyApplicationStatusCheckResult + | .modifyAvailabilityZoneGroup => ModifyAvailabilityZoneGroupResult + | .modifyCapacityReservation => ModifyCapacityReservationResult + | .modifyCapacityReservationFleet => ModifyCapacityReservationFleetResult + | .modifyClientVpnEndpoint => ModifyClientVpnEndpointResult + | .modifyClientVpnEndpointAuthorizationPolicy => ModifyClientVpnEndpointAuthorizationPolicyResult + | .modifyDefaultCreditSpecification => ModifyDefaultCreditSpecificationResult + | .modifyEbsDefaultKmsKeyId => ModifyEbsDefaultKmsKeyIdResult + | .modifyFleet => ModifyFleetResult + | .modifyFpgaImageAttribute => ModifyFpgaImageAttributeResult + | .modifyHosts => ModifyHostsResult + | .modifyIdFormat => Unit + | .modifyIdentityIdFormat => Unit + | .modifyImageAttribute => Unit + | .modifyInstanceAttribute => Unit + | .modifyInstanceCapacityReservationAttributes => ModifyInstanceCapacityReservationAttributesResult + | .modifyInstanceConnectEndpoint => ModifyInstanceConnectEndpointResult + | .modifyInstanceCpuOptions => ModifyInstanceCpuOptionsResult + | .modifyInstanceCreditSpecification => ModifyInstanceCreditSpecificationResult + | .modifyInstanceEventStartTime => ModifyInstanceEventStartTimeResult + | .modifyInstanceEventWindow => ModifyInstanceEventWindowResult + | .modifyInstanceMaintenanceOptions => ModifyInstanceMaintenanceOptionsResult + | .modifyInstanceMetadataDefaults => ModifyInstanceMetadataDefaultsResult + | .modifyInstanceMetadataOptions => ModifyInstanceMetadataOptionsResult + | .modifyInstanceNetworkPerformanceOptions => ModifyInstanceNetworkPerformanceResult + | .modifyInstancePlacement => ModifyInstancePlacementResult + | .modifyIpam => ModifyIpamResult + | .modifyIpamPolicyAllocationRules => ModifyIpamPolicyAllocationRulesResult + | .modifyIpamPool => ModifyIpamPoolResult + | .modifyIpamPoolAllocation => ModifyIpamPoolAllocationResult + | .modifyIpamPrefixListResolver => ModifyIpamPrefixListResolverResult + | .modifyIpamPrefixListResolverTarget => ModifyIpamPrefixListResolverTargetResult + | .modifyIpamResourceCidr => ModifyIpamResourceCidrResult + | .modifyIpamResourceDiscovery => ModifyIpamResourceDiscoveryResult + | .modifyIpamRoutingPolicyRegistration => ModifyIpamRoutingPolicyRegistrationResult + | .modifyIpamScope => ModifyIpamScopeResult + | .modifyLaunchTemplate => ModifyLaunchTemplateResult + | .modifyLocalGatewayRoute => ModifyLocalGatewayRouteResult + | .modifyManagedPrefixList => ModifyManagedPrefixListResult + | .modifyManagedResourceVisibility => ModifyManagedResourceVisibilityResult + | .modifyMetricCategory => ModifyMetricCategoryResult + | .modifyNetworkInterfaceAttribute => Unit + | .modifyNetworkingFlexCostAllocationPolicy => ModifyNetworkingFlexCostAllocationPolicyResult + | .modifyPrivateDnsNameOptions => ModifyPrivateDnsNameOptionsResult + | .modifyPublicIpDnsNameOptions => ModifyPublicIpDnsNameOptionsResult + | .modifyReservedInstances => ModifyReservedInstancesResult + | .modifyRouteServer => ModifyRouteServerResult + | .modifySecurityGroupRules => ModifySecurityGroupRulesResult + | .modifySnapshotAttribute => Unit + | .modifySnapshotTier => ModifySnapshotTierResult + | .modifySpotFleetRequest => ModifySpotFleetRequestResponse + | .modifySubnetAttribute => Unit + | .modifyTrafficMirrorFilterNetworkServices => ModifyTrafficMirrorFilterNetworkServicesResult + | .modifyTrafficMirrorFilterRule => ModifyTrafficMirrorFilterRuleResult + | .modifyTrafficMirrorSession => ModifyTrafficMirrorSessionResult + | .modifyTransitGateway => ModifyTransitGatewayResult + | .modifyTransitGatewayAttachmentNatConfiguration => ModifyTransitGatewayAttachmentNatConfigurationResult + | .modifyTransitGatewayMeteringPolicy => ModifyTransitGatewayMeteringPolicyResult + | .modifyTransitGatewayNetworkFunctionAttachment => ModifyTransitGatewayNetworkFunctionAttachmentResult + | .modifyTransitGatewayPeeringAttachment => ModifyTransitGatewayPeeringAttachmentResult + | .modifyTransitGatewayPolicyTableEntry => ModifyTransitGatewayPolicyTableEntryResult + | .modifyTransitGatewayPrefixListReference => ModifyTransitGatewayPrefixListReferenceResult + | .modifyTransitGatewayVpcAttachment => ModifyTransitGatewayVpcAttachmentResult + | .modifyVerifiedAccessEndpoint => ModifyVerifiedAccessEndpointResult + | .modifyVerifiedAccessEndpointPolicy => ModifyVerifiedAccessEndpointPolicyResult + | .modifyVerifiedAccessGroup => ModifyVerifiedAccessGroupResult + | .modifyVerifiedAccessGroupPolicy => ModifyVerifiedAccessGroupPolicyResult + | .modifyVerifiedAccessInstance => ModifyVerifiedAccessInstanceResult + | .modifyVerifiedAccessInstanceLoggingConfiguration => ModifyVerifiedAccessInstanceLoggingConfigurationResult + | .modifyVerifiedAccessTrustProvider => ModifyVerifiedAccessTrustProviderResult + | .modifyVolume => ModifyVolumeResult + | .modifyVolumeAttribute => Unit + | .modifyVpcAttribute => Unit + | .modifyVpcBlockPublicAccessExclusion => ModifyVpcBlockPublicAccessExclusionResult + | .modifyVpcBlockPublicAccessOptions => ModifyVpcBlockPublicAccessOptionsResult + | .modifyVpcEncryptionControl => ModifyVpcEncryptionControlResult + | .modifyVpcEndpoint => ModifyVpcEndpointResult + | .modifyVpcEndpointConnectionNotification => ModifyVpcEndpointConnectionNotificationResult + | .modifyVpcEndpointPayerResponsibility => ModifyVpcEndpointPayerResponsibilityResult + | .modifyVpcEndpointServiceConfiguration => ModifyVpcEndpointServiceConfigurationResult + | .modifyVpcEndpointServicePayerResponsibility => ModifyVpcEndpointServicePayerResponsibilityResult + | .modifyVpcEndpointServicePermissions => ModifyVpcEndpointServicePermissionsResult + | .modifyVpcPeeringConnectionOptions => ModifyVpcPeeringConnectionOptionsResult + | .modifyVpcTenancy => ModifyVpcTenancyResult + | .modifyVpnConnection => ModifyVpnConnectionResult + | .modifyVpnConnectionOptions => ModifyVpnConnectionOptionsResult + | .modifyVpnTunnelCertificate => ModifyVpnTunnelCertificateResult + | .modifyVpnTunnelOptions => ModifyVpnTunnelOptionsResult + | .monitorInstances => MonitorInstancesResult + | .moveAddressToVpc => MoveAddressToVpcResult + | .moveByoipCidrToIpam => MoveByoipCidrToIpamResult + | .moveCapacityReservationInstances => MoveCapacityReservationInstancesResult + | .provisionByoipCidr => ProvisionByoipCidrResult + | .provisionIpamByoasn => ProvisionIpamByoasnResult + | .provisionIpamPoolCidr => ProvisionIpamPoolCidrResult + | .provisionPublicIpv4PoolCidr => ProvisionPublicIpv4PoolCidrResult + | .purchaseCapacityBlock => PurchaseCapacityBlockResult + | .purchaseCapacityBlockExtension => PurchaseCapacityBlockExtensionResult + | .purchaseHostReservation => PurchaseHostReservationResult + | .purchaseReservedInstancesOffering => PurchaseReservedInstancesOfferingResult + | .purchaseScheduledInstances => PurchaseScheduledInstancesResult + | .rebootInstances => Unit + | .registerImage => RegisterImageResult + | .registerInstanceEventNotificationAttributes => RegisterInstanceEventNotificationAttributesResult + | .registerTransitGatewayMulticastGroupMembers => RegisterTransitGatewayMulticastGroupMembersResult + | .registerTransitGatewayMulticastGroupSources => RegisterTransitGatewayMulticastGroupSourcesResult + | .rejectCapacityReservationBillingOwnership => RejectCapacityReservationBillingOwnershipResult + | .rejectTransitGatewayClientVpnAttachment => RejectTransitGatewayClientVpnAttachmentResult + | .rejectTransitGatewayMulticastDomainAssociations => RejectTransitGatewayMulticastDomainAssociationsResult + | .rejectTransitGatewayPeeringAttachment => RejectTransitGatewayPeeringAttachmentResult + | .rejectTransitGatewayVpcAttachment => RejectTransitGatewayVpcAttachmentResult + | .rejectVpcEndpointConnections => RejectVpcEndpointConnectionsResult + | .rejectVpcPeeringConnection => RejectVpcPeeringConnectionResult + | .releaseAddress => Unit + | .releaseHosts => ReleaseHostsResult + | .releaseIpamPoolAllocation => ReleaseIpamPoolAllocationResult + | .replaceIamInstanceProfileAssociation => ReplaceIamInstanceProfileAssociationResult + | .replaceImageCriteriaInAllowedImagesSettings => ReplaceImageCriteriaInAllowedImagesSettingsResult + | .replaceImageInstanceTypeSpecification => ReplaceImageInstanceTypeSpecificationResult + | .replaceNetworkAclAssociation => ReplaceNetworkAclAssociationResult + | .replaceNetworkAclEntry => Unit + | .replaceRoute => Unit + | .replaceRouteTableAssociation => ReplaceRouteTableAssociationResult + | .replaceTransitGatewayRoute => ReplaceTransitGatewayRouteResult + | .replaceVpnTunnel => ReplaceVpnTunnelResult + | .reportInstanceStatus => Unit + | .requestSpotFleet => RequestSpotFleetResponse + | .requestSpotInstances => RequestSpotInstancesResult + | .resetAddressAttribute => ResetAddressAttributeResult + | .resetEbsDefaultKmsKeyId => ResetEbsDefaultKmsKeyIdResult + | .resetFpgaImageAttribute => ResetFpgaImageAttributeResult + | .resetImageAttribute => Unit + | .resetInstanceAttribute => Unit + | .resetNetworkInterfaceAttribute => Unit + | .resetSnapshotAttribute => Unit + | .restoreAddressToClassic => RestoreAddressToClassicResult + | .restoreImageFromRecycleBin => RestoreImageFromRecycleBinResult + | .restoreManagedPrefixListVersion => RestoreManagedPrefixListVersionResult + | .restoreSnapshotFromRecycleBin => RestoreSnapshotFromRecycleBinResult + | .restoreSnapshotTier => RestoreSnapshotTierResult + | .restoreVolumeFromRecycleBin => RestoreVolumeFromRecycleBinResult + | .revokeClientVpnIngress => RevokeClientVpnIngressResult + | .revokeSecurityGroupEgress => RevokeSecurityGroupEgressResult + | .revokeSecurityGroupIngress => RevokeSecurityGroupIngressResult + | .runInstances => Reservation + | .runScheduledInstances => RunScheduledInstancesResult + | .searchLocalGatewayRoutes => SearchLocalGatewayRoutesResult + | .searchTransitGatewayMulticastGroups => SearchTransitGatewayMulticastGroupsResult + | .searchTransitGatewayRoutes => SearchTransitGatewayRoutesResult + | .sendDiagnosticInterrupt => Unit + | .startDeclarativePoliciesReport => StartDeclarativePoliciesReportResult + | .startInstances => StartInstancesResult + | .startNetworkInsightsAccessScopeAnalysis => StartNetworkInsightsAccessScopeAnalysisResult + | .startNetworkInsightsAnalysis => StartNetworkInsightsAnalysisResult + | .startVpcEndpointServicePrivateDnsVerification => StartVpcEndpointServicePrivateDnsVerificationResult + | .stopInstances => StopInstancesResult + | .terminateClientVpnConnections => TerminateClientVpnConnectionsResult + | .terminateInstances => TerminateInstancesResult + | .unassignIpv6Addresses => UnassignIpv6AddressesResult + | .unassignPrivateIpAddresses => Unit + | .unassignPrivateNatGatewayAddress => UnassignPrivateNatGatewayAddressResult + | .unlockSnapshot => UnlockSnapshotResult + | .unmonitorInstances => UnmonitorInstancesResult + | .updateCapacityManagerMonitoredTagKeys => UpdateCapacityManagerMonitoredTagKeysResult + | .updateCapacityManagerOrganizationsAccess => UpdateCapacityManagerOrganizationsAccessResult + | .updateInterruptibleCapacityReservationAllocation => UpdateInterruptibleCapacityReservationAllocationResult + | .updateSecurityGroupRuleDescriptionsEgress => UpdateSecurityGroupRuleDescriptionsEgressResult + | .updateSecurityGroupRuleDescriptionsIngress => UpdateSecurityGroupRuleDescriptionsIngressResult + | .validateSecurityGroupQuotasForInterface => ValidateSecurityGroupQuotasForInterfaceResult + | .withdrawByoipCidr => WithdrawByoipCidrResult + +abbrev Error : Op → Type + | .acceptAddressTransfer => Empty + | .acceptCapacityReservationBillingOwnership => Empty + | .acceptReservedInstancesExchangeQuote => Empty + | .acceptTransitGatewayClientVpnAttachment => Empty + | .acceptTransitGatewayMulticastDomainAssociations => Empty + | .acceptTransitGatewayPeeringAttachment => Empty + | .acceptTransitGatewayVpcAttachment => Empty + | .acceptVpcEndpointConnections => Empty + | .acceptVpcPeeringConnection => Empty + | .advertiseByoipCidr => Empty + | .allocateAddress => Empty + | .allocateHosts => Empty + | .allocateIpamPoolCidr => Empty + | .applySecurityGroupsToClientVpnTargetNetwork => Empty + | .assignIpv6Addresses => Empty + | .assignPrivateIpAddresses => Empty + | .assignPrivateNatGatewayAddress => Empty + | .associateAddress => Empty + | .associateApplicationStatusCheck => Empty + | .associateCapacityReservationBillingOwner => Empty + | .associateClientVpnTargetNetwork => Empty + | .associateDhcpOptions => Empty + | .associateEnclaveCertificateIamRole => Empty + | .associateIamInstanceProfile => Empty + | .associateInstanceEventWindow => Empty + | .associateIpamByoasn => Empty + | .associateIpamResourceDiscovery => Empty + | .associateKmsKeyId => Empty + | .associateNatGatewayAddress => Empty + | .associateNetworkingFlexCostAllocationPolicy => Empty + | .associateRouteServer => Empty + | .associateRouteTable => Empty + | .associateSecurityGroupVpc => Empty + | .associateSubnetCidrBlock => Empty + | .associateTransitGatewayMulticastDomain => Empty + | .associateTransitGatewayPolicyTable => Empty + | .associateTransitGatewayRouteTable => Empty + | .associateTrunkInterface => Empty + | .associateVpcCidrBlock => Empty + | .attachClassicLinkVpc => Empty + | .attachImageWatermark => Empty + | .attachInternetGateway => Empty + | .attachNetworkInterface => Empty + | .attachVerifiedAccessTrustProvider => Empty + | .attachVolume => Empty + | .attachVpnGateway => Empty + | .authorizeClientVpnIngress => Empty + | .authorizeSecurityGroupEgress => Empty + | .authorizeSecurityGroupIngress => Empty + | .batchModifyIpamRoutingPolicyRegistrations => Empty + | .bundleInstance => Empty + | .cancelBundleTask => Empty + | .cancelCapacityReservation => Empty + | .cancelCapacityReservationFleets => Empty + | .cancelConversionTask => Empty + | .cancelDeclarativePoliciesReport => Empty + | .cancelExportTask => Empty + | .cancelImageLaunchPermission => Empty + | .cancelImportTask => Empty + | .cancelReservedInstancesListing => Empty + | .cancelSpotFleetRequests => Empty + | .cancelSpotInstanceRequests => Empty + | .confirmProductInstance => Empty + | .copyFpgaImage => Empty + | .copyImage => Empty + | .copySnapshot => Empty + | .copyVolumes => Empty + | .createApplicationStatusCheck => Empty + | .createCapacityManagerDataExport => Empty + | .createCapacityReservation => Empty + | .createCapacityReservationBySplitting => Empty + | .createCapacityReservationCancellationQuote => Empty + | .createCapacityReservationDateChangeQuote => Empty + | .createCapacityReservationFleet => Empty + | .createCarrierGateway => Empty + | .createClientVpnEndpoint => Empty + | .createClientVpnRoute => Empty + | .createCoipCidr => Empty + | .createCoipPool => Empty + | .createCustomerGateway => Empty + | .createDefaultSubnet => Empty + | .createDefaultVpc => Empty + | .createDelegateMacVolumeOwnershipTask => Empty + | .createDhcpOptions => Empty + | .createEgressOnlyInternetGateway => Empty + | .createFleet => Empty + | .createFlowLogs => Empty + | .createFpgaImage => Empty + | .createImage => Empty + | .createImageUsageReport => Empty + | .createInstanceConnectEndpoint => Empty + | .createInstanceEventWindow => Empty + | .createInstanceExportTask => Empty + | .createInternetGateway => Empty + | .createInterruptibleCapacityReservationAllocation => Empty + | .createIpam => Empty + | .createIpamExternalResourceVerificationToken => Empty + | .createIpamInternetRegistryAssociation => Empty + | .createIpamPolicy => Empty + | .createIpamPool => Empty + | .createIpamPrefixListResolver => Empty + | .createIpamPrefixListResolverTarget => Empty + | .createIpamResourceDiscovery => Empty + | .createIpamRoutingPolicyRegistration => Empty + | .createIpamScope => Empty + | .createKeyPair => Empty + | .createLaunchTemplate => Empty + | .createLaunchTemplateVersion => Empty + | .createLocalGatewayRoute => Empty + | .createLocalGatewayRouteTable => Empty + | .createLocalGatewayRouteTableVirtualInterfaceGroupAssociation => Empty + | .createLocalGatewayRouteTableVpcAssociation => Empty + | .createLocalGatewayVirtualInterface => Empty + | .createLocalGatewayVirtualInterfaceGroup => Empty + | .createMacSystemIntegrityProtectionModificationTask => Empty + | .createManagedPrefixList => Empty + | .createMetricCategory => Empty + | .createNatGateway => Empty + | .createNetworkAcl => Empty + | .createNetworkAclEntry => Empty + | .createNetworkInsightsAccessScope => Empty + | .createNetworkInsightsPath => Empty + | .createNetworkInterface => Empty + | .createNetworkInterfacePermission => Empty + | .createNetworkingFlexCostAllocationPolicy => Empty + | .createPlacementGroup => Empty + | .createPublicIpv4Pool => Empty + | .createReplaceRootVolumeTask => Empty + | .createReservedInstancesListing => Empty + | .createRestoreImageTask => Empty + | .createRoute => Empty + | .createRouteServer => Empty + | .createRouteServerEndpoint => Empty + | .createRouteServerPeer => Empty + | .createRouteTable => Empty + | .createSecondaryNetwork => Empty + | .createSecondarySubnet => Empty + | .createSecurityGroup => Empty + | .createSnapshot => Empty + | .createSnapshots => Empty + | .createSpotDatafeedSubscription => Empty + | .createStoreImageTask => Empty + | .createSubnet => Empty + | .createSubnetCidrReservation => Empty + | .createTags => Empty + | .createTrafficMirrorFilter => Empty + | .createTrafficMirrorFilterRule => Empty + | .createTrafficMirrorSession => Empty + | .createTrafficMirrorTarget => Empty + | .createTransitGateway => Empty + | .createTransitGatewayConnect => Empty + | .createTransitGatewayConnectPeer => Empty + | .createTransitGatewayMeteringPolicy => Empty + | .createTransitGatewayMeteringPolicyEntry => Empty + | .createTransitGatewayMulticastDomain => Empty + | .createTransitGatewayNetworkFunctionAttachment => Empty + | .createTransitGatewayPeeringAttachment => Empty + | .createTransitGatewayPolicyTable => Empty + | .createTransitGatewayPolicyTableEntry => Empty + | .createTransitGatewayPrefixListReference => Empty + | .createTransitGatewayRoute => Empty + | .createTransitGatewayRouteTable => Empty + | .createTransitGatewayRouteTableAnnouncement => Empty + | .createTransitGatewayVpcAttachment => Empty + | .createVerifiedAccessEndpoint => Empty + | .createVerifiedAccessGroup => Empty + | .createVerifiedAccessInstance => Empty + | .createVerifiedAccessTrustProvider => Empty + | .createVolume => Empty + | .createVpc => Empty + | .createVpcBlockPublicAccessExclusion => Empty + | .createVpcEncryptionControl => Empty + | .createVpcEndpoint => Empty + | .createVpcEndpointConnectionNotification => Empty + | .createVpcEndpointServiceConfiguration => Empty + | .createVpcPeeringConnection => Empty + | .createVpnConcentrator => Empty + | .createVpnConnection => Empty + | .createVpnConnectionRoute => Empty + | .createVpnGateway => Empty + | .deleteApplicationStatusCheck => Empty + | .deleteCapacityManagerDataExport => Empty + | .deleteCarrierGateway => Empty + | .deleteClientVpnEndpoint => Empty + | .deleteClientVpnEndpointAuthorizationPolicy => Empty + | .deleteClientVpnRoute => Empty + | .deleteCoipCidr => Empty + | .deleteCoipPool => Empty + | .deleteCustomerGateway => Empty + | .deleteDhcpOptions => Empty + | .deleteEgressOnlyInternetGateway => Empty + | .deleteFleets => Empty + | .deleteFlowLogs => Empty + | .deleteFpgaImage => Empty + | .deleteImageUsageReport => Empty + | .deleteInstanceConnectEndpoint => Empty + | .deleteInstanceEventWindow => Empty + | .deleteInternetGateway => Empty + | .deleteIpam => Empty + | .deleteIpamExternalResourceVerificationToken => Empty + | .deleteIpamInternetRegistryAssociation => Empty + | .deleteIpamPolicy => Empty + | .deleteIpamPool => Empty + | .deleteIpamPrefixListResolver => Empty + | .deleteIpamPrefixListResolverTarget => Empty + | .deleteIpamResourceDiscovery => Empty + | .deleteIpamRoutingPolicyRegistration => Empty + | .deleteIpamScope => Empty + | .deleteKeyPair => Empty + | .deleteLaunchTemplate => Empty + | .deleteLaunchTemplateVersions => Empty + | .deleteLocalGatewayRoute => Empty + | .deleteLocalGatewayRouteTable => Empty + | .deleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation => Empty + | .deleteLocalGatewayRouteTableVpcAssociation => Empty + | .deleteLocalGatewayVirtualInterface => Empty + | .deleteLocalGatewayVirtualInterfaceGroup => Empty + | .deleteManagedPrefixList => Empty + | .deleteMetricCategory => Empty + | .deleteNatGateway => Empty + | .deleteNetworkAcl => Empty + | .deleteNetworkAclEntry => Empty + | .deleteNetworkInsightsAccessScope => Empty + | .deleteNetworkInsightsAccessScopeAnalysis => Empty + | .deleteNetworkInsightsAnalysis => Empty + | .deleteNetworkInsightsPath => Empty + | .deleteNetworkInterface => Empty + | .deleteNetworkInterfacePermission => Empty + | .deleteNetworkingFlexCostAllocationPolicies => Empty + | .deletePlacementGroup => Empty + | .deletePublicIpv4Pool => Empty + | .deleteQueuedReservedInstances => Empty + | .deleteRoute => Empty + | .deleteRouteServer => Empty + | .deleteRouteServerEndpoint => Empty + | .deleteRouteServerPeer => Empty + | .deleteRouteTable => Empty + | .deleteSecondaryNetwork => Empty + | .deleteSecondarySubnet => Empty + | .deleteSecurityGroup => Empty + | .deleteSnapshot => Empty + | .deleteSpotDatafeedSubscription => Empty + | .deleteSubnet => Empty + | .deleteSubnetCidrReservation => Empty + | .deleteTags => Empty + | .deleteTrafficMirrorFilter => Empty + | .deleteTrafficMirrorFilterRule => Empty + | .deleteTrafficMirrorSession => Empty + | .deleteTrafficMirrorTarget => Empty + | .deleteTransitGateway => Empty + | .deleteTransitGatewayClientVpnAttachment => Empty + | .deleteTransitGatewayConnect => Empty + | .deleteTransitGatewayConnectPeer => Empty + | .deleteTransitGatewayMeteringPolicy => Empty + | .deleteTransitGatewayMeteringPolicyEntry => Empty + | .deleteTransitGatewayMulticastDomain => Empty + | .deleteTransitGatewayNetworkFunctionAttachment => Empty + | .deleteTransitGatewayPeeringAttachment => Empty + | .deleteTransitGatewayPolicyTable => Empty + | .deleteTransitGatewayPolicyTableEntry => Empty + | .deleteTransitGatewayPrefixListReference => Empty + | .deleteTransitGatewayRoute => Empty + | .deleteTransitGatewayRouteTable => Empty + | .deleteTransitGatewayRouteTableAnnouncement => Empty + | .deleteTransitGatewayVpcAttachment => Empty + | .deleteVerifiedAccessEndpoint => Empty + | .deleteVerifiedAccessGroup => Empty + | .deleteVerifiedAccessInstance => Empty + | .deleteVerifiedAccessTrustProvider => Empty + | .deleteVolume => Empty + | .deleteVpc => Empty + | .deleteVpcBlockPublicAccessExclusion => Empty + | .deleteVpcEncryptionControl => Empty + | .deleteVpcEndpointConnectionNotifications => Empty + | .deleteVpcEndpointServiceConfigurations => Empty + | .deleteVpcEndpoints => Empty + | .deleteVpcPeeringConnection => Empty + | .deleteVpnConcentrator => Empty + | .deleteVpnConnection => Empty + | .deleteVpnConnectionRoute => Empty + | .deleteVpnGateway => Empty + | .deprovisionByoipCidr => Empty + | .deprovisionIpamByoasn => Empty + | .deprovisionIpamPoolCidr => Empty + | .deprovisionPublicIpv4PoolCidr => Empty + | .deregisterImage => Empty + | .deregisterInstanceEventNotificationAttributes => Empty + | .deregisterTransitGatewayMulticastGroupMembers => Empty + | .deregisterTransitGatewayMulticastGroupSources => Empty + | .describeAccountAttributes => Empty + | .describeAccountVpcEncryptionControl => Empty + | .describeAddressTransfers => Empty + | .describeAddresses => Empty + | .describeAddressesAttribute => Empty + | .describeAggregateIdFormat => Empty + | .describeApplicationStatus => Empty + | .describeApplicationStatusCheckAssociations => Empty + | .describeApplicationStatusChecks => Empty + | .describeAvailabilityZones => Empty + | .describeAwsNetworkPerformanceMetricSubscriptions => Empty + | .describeBundleTasks => Empty + | .describeByoipCidrs => Empty + | .describeCapacityBlockExtensionHistory => Empty + | .describeCapacityBlockExtensionOfferings => Empty + | .describeCapacityBlockOfferings => Empty + | .describeCapacityBlockStatus => Empty + | .describeCapacityBlocks => Empty + | .describeCapacityManagerDataExports => Empty + | .describeCapacityReservationBillingRequests => Empty + | .describeCapacityReservationCancellationQuotes => Empty + | .describeCapacityReservationDateChangeQuotes => Empty + | .describeCapacityReservationFleets => Empty + | .describeCapacityReservationTopology => Empty + | .describeCapacityReservations => Empty + | .describeCarrierGateways => Empty + | .describeClassicLinkInstances => Empty + | .describeClientVpnAuthorizationRules => Empty + | .describeClientVpnConnections => Empty + | .describeClientVpnEndpoints => Empty + | .describeClientVpnRoutes => Empty + | .describeClientVpnTargetNetworks => Empty + | .describeCoipPools => Empty + | .describeConversionTasks => Empty + | .describeCustomerGateways => Empty + | .describeDeclarativePoliciesReports => Empty + | .describeDhcpOptions => Empty + | .describeEgressOnlyInternetGateways => Empty + | .describeElasticGpus => Empty + | .describeExportImageTasks => Empty + | .describeExportTasks => Empty + | .describeFastLaunchImages => Empty + | .describeFastSnapshotRestores => Empty + | .describeFleetHistory => Empty + | .describeFleetInstances => Empty + | .describeFleets => Empty + | .describeFlowLogs => Empty + | .describeFpgaImageAttribute => Empty + | .describeFpgaImages => Empty + | .describeHostReservationOfferings => Empty + | .describeHostReservations => Empty + | .describeHosts => Empty + | .describeIamInstanceProfileAssociations => Empty + | .describeIdFormat => Empty + | .describeIdentityIdFormat => Empty + | .describeImageAttribute => Empty + | .describeImageReferences => Empty + | .describeImageUsageReportEntries => Empty + | .describeImageUsageReports => Empty + | .describeImages => Empty + | .describeImportImageTasks => Empty + | .describeImportSnapshotTasks => Empty + | .describeInstanceAttribute => Empty + | .describeInstanceConnectEndpoints => Empty + | .describeInstanceCreditSpecifications => Empty + | .describeInstanceEventNotificationAttributes => Empty + | .describeInstanceEventWindows => Empty + | .describeInstanceImageMetadata => Empty + | .describeInstanceSqlHaHistoryStates => Empty + | .describeInstanceSqlHaStates => Empty + | .describeInstanceStatus => Empty + | .describeInstanceTopology => Empty + | .describeInstanceTypeOfferings => Empty + | .describeInstanceTypes => Empty + | .describeInstances => Empty + | .describeInternetGateways => Empty + | .describeIpamByoasn => Empty + | .describeIpamExternalResourceVerificationTokens => Empty + | .describeIpamInternetRegistryAssociations => Empty + | .describeIpamPolicies => Empty + | .describeIpamPoolAllocations => Empty + | .describeIpamPools => Empty + | .describeIpamPrefixListResolverTargets => Empty + | .describeIpamPrefixListResolvers => Empty + | .describeIpamResourceDiscoveries => Empty + | .describeIpamResourceDiscoveryAssociations => Empty + | .describeIpamScopes => Empty + | .describeIpams => Empty + | .describeIpv6Pools => Empty + | .describeKeyPairs => Empty + | .describeLaunchTemplateVersions => Empty + | .describeLaunchTemplates => Empty + | .describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations => Empty + | .describeLocalGatewayRouteTableVpcAssociations => Empty + | .describeLocalGatewayRouteTables => Empty + | .describeLocalGatewayVirtualInterfaceGroups => Empty + | .describeLocalGatewayVirtualInterfaces => Empty + | .describeLocalGateways => Empty + | .describeLockedSnapshots => Empty + | .describeMacHosts => Empty + | .describeMacModificationTasks => Empty + | .describeManagedPrefixLists => Empty + | .describeMetricCategories => Empty + | .describeMovingAddresses => Empty + | .describeNatGateways => Empty + | .describeNetworkAcls => Empty + | .describeNetworkInsightsAccessScopeAnalyses => Empty + | .describeNetworkInsightsAccessScopes => Empty + | .describeNetworkInsightsAnalyses => Empty + | .describeNetworkInsightsPaths => Empty + | .describeNetworkInterfaceAttribute => Empty + | .describeNetworkInterfacePermissions => Empty + | .describeNetworkInterfaces => Empty + | .describeNetworkingFlexCostAllocationPolicies => Empty + | .describeNetworkingFlexCostAllocationPolicyAssociations => Empty + | .describeOutpostLags => Empty + | .describePlacementGroups => Empty + | .describePrefixLists => Empty + | .describePrincipalIdFormat => Empty + | .describePublicIpv4Pools => Empty + | .describeRegions => Empty + | .describeReplaceRootVolumeTasks => Empty + | .describeReservedInstances => Empty + | .describeReservedInstancesListings => Empty + | .describeReservedInstancesModifications => Empty + | .describeReservedInstancesOfferings => Empty + | .describeRouteServerEndpoints => Empty + | .describeRouteServerPeers => Empty + | .describeRouteServers => Empty + | .describeRouteTables => Empty + | .describeScheduledInstanceAvailability => Empty + | .describeScheduledInstances => Empty + | .describeSecondaryInterfaces => Empty + | .describeSecondaryNetworks => Empty + | .describeSecondarySubnets => Empty + | .describeSecurityGroupReferences => Empty + | .describeSecurityGroupRules => Empty + | .describeSecurityGroupVpcAssociations => Empty + | .describeSecurityGroups => Empty + | .describeServiceLinkVirtualInterfaces => Empty + | .describeSnapshotAttribute => Empty + | .describeSnapshotTierStatus => Empty + | .describeSnapshots => Empty + | .describeSpotDatafeedSubscription => Empty + | .describeSpotFleetInstances => Empty + | .describeSpotFleetRequestHistory => Empty + | .describeSpotFleetRequests => Empty + | .describeSpotInstanceRequests => Empty + | .describeSpotPriceHistory => Empty + | .describeStaleSecurityGroups => Empty + | .describeStoreImageTasks => Empty + | .describeSubnets => Empty + | .describeTags => Empty + | .describeTrafficMirrorFilterRules => Empty + | .describeTrafficMirrorFilters => Empty + | .describeTrafficMirrorSessions => Empty + | .describeTrafficMirrorTargets => Empty + | .describeTransitGatewayAttachments => Empty + | .describeTransitGatewayConnectPeers => Empty + | .describeTransitGatewayConnects => Empty + | .describeTransitGatewayMeteringPolicies => Empty + | .describeTransitGatewayMulticastDomains => Empty + | .describeTransitGatewayNetworkFunctionAttachments => Empty + | .describeTransitGatewayPeeringAttachments => Empty + | .describeTransitGatewayPolicyTables => Empty + | .describeTransitGatewayRouteTableAnnouncements => Empty + | .describeTransitGatewayRouteTables => Empty + | .describeTransitGatewayVpcAttachments => Empty + | .describeTransitGateways => Empty + | .describeTrunkInterfaceAssociations => Empty + | .describeVerifiedAccessEndpoints => Empty + | .describeVerifiedAccessGroups => Empty + | .describeVerifiedAccessInstanceLoggingConfigurations => Empty + | .describeVerifiedAccessInstances => Empty + | .describeVerifiedAccessTrustProviders => Empty + | .describeVolumeAttribute => Empty + | .describeVolumeStatus => Empty + | .describeVolumes => Empty + | .describeVolumesModifications => Empty + | .describeVpcAttribute => Empty + | .describeVpcBlockPublicAccessExclusions => Empty + | .describeVpcBlockPublicAccessOptions => Empty + | .describeVpcClassicLink => Empty + | .describeVpcClassicLinkDnsSupport => Empty + | .describeVpcEncryptionControls => Empty + | .describeVpcEndpointAssociations => Empty + | .describeVpcEndpointConnectionNotifications => Empty + | .describeVpcEndpointConnections => Empty + | .describeVpcEndpointServiceConfigurations => Empty + | .describeVpcEndpointServicePermissions => Empty + | .describeVpcEndpointServices => Empty + | .describeVpcEndpoints => Empty + | .describeVpcPeeringConnections => Empty + | .describeVpcs => Empty + | .describeVpnConcentrators => Empty + | .describeVpnConnections => Empty + | .describeVpnGateways => Empty + | .detachClassicLinkVpc => Empty + | .detachImageWatermark => Empty + | .detachInternetGateway => Empty + | .detachNetworkInterface => Empty + | .detachVerifiedAccessTrustProvider => Empty + | .detachVolume => Empty + | .detachVpnGateway => Empty + | .disableAddressTransfer => Empty + | .disableAllowedImagesSettings => Empty + | .disableApplicationStatusCheckSuppression => Empty + | .disableAwsNetworkPerformanceMetricSubscription => Empty + | .disableCapacityManager => Empty + | .disableEbsEncryptionByDefault => Empty + | .disableFastLaunch => Empty + | .disableFastSnapshotRestores => Empty + | .disableImage => Empty + | .disableImageBlockPublicAccess => Empty + | .disableImageDeprecation => Empty + | .disableImageDeregistrationProtection => Empty + | .disableInstanceSqlHaStandbyDetections => Empty + | .disableIpamOrganizationAdminAccount => Empty + | .disableIpamPolicy => Empty + | .disableRouteServerPropagation => Empty + | .disableSerialConsoleAccess => Empty + | .disableSnapshotBlockPublicAccess => Empty + | .disableTransitGatewayRouteTablePropagation => Empty + | .disableVgwRoutePropagation => Empty + | .disableVpcClassicLink => Empty + | .disableVpcClassicLinkDnsSupport => Empty + | .disassociateAddress => Empty + | .disassociateApplicationStatusCheck => Empty + | .disassociateCapacityReservationBillingOwner => Empty + | .disassociateClientVpnTargetNetwork => Empty + | .disassociateEnclaveCertificateIamRole => Empty + | .disassociateIamInstanceProfile => Empty + | .disassociateInstanceEventWindow => Empty + | .disassociateIpamByoasn => Empty + | .disassociateIpamResourceDiscovery => Empty + | .disassociateKmsKeyId => Empty + | .disassociateNatGatewayAddress => Empty + | .disassociateNetworkingFlexCostAllocationPolicy => Empty + | .disassociateRouteServer => Empty + | .disassociateRouteTable => Empty + | .disassociateSecurityGroupVpc => Empty + | .disassociateSubnetCidrBlock => Empty + | .disassociateTransitGatewayMulticastDomain => Empty + | .disassociateTransitGatewayPolicyTable => Empty + | .disassociateTransitGatewayRouteTable => Empty + | .disassociateTrunkInterface => Empty + | .disassociateVpcCidrBlock => Empty + | .enableAddressTransfer => Empty + | .enableAllowedImagesSettings => Empty + | .enableApplicationStatusCheckSuppression => Empty + | .enableAwsNetworkPerformanceMetricSubscription => Empty + | .enableCapacityManager => Empty + | .enableEbsEncryptionByDefault => Empty + | .enableFastLaunch => Empty + | .enableFastSnapshotRestores => Empty + | .enableImage => Empty + | .enableImageBlockPublicAccess => Empty + | .enableImageDeprecation => Empty + | .enableImageDeregistrationProtection => Empty + | .enableInstanceSqlHaStandbyDetections => Empty + | .enableIpamInternetRegistryAssociation => Empty + | .enableIpamOrganizationAdminAccount => Empty + | .enableIpamPolicy => Empty + | .enableReachabilityAnalyzerOrganizationSharing => Empty + | .enableRouteServerPropagation => Empty + | .enableSerialConsoleAccess => Empty + | .enableSnapshotBlockPublicAccess => Empty + | .enableTransitGatewayRouteTablePropagation => Empty + | .enableVgwRoutePropagation => Empty + | .enableVolumeIO => Empty + | .enableVpcClassicLink => Empty + | .enableVpcClassicLinkDnsSupport => Empty + | .exportClientVpnClientCertificateRevocationList => Empty + | .exportClientVpnClientConfiguration => Empty + | .exportImage => Empty + | .exportTransitGatewayRoutes => Empty + | .exportVerifiedAccessInstanceClientConfiguration => Empty + | .getActiveVpnTunnelStatus => Empty + | .getAllowedImagesSettings => Empty + | .getAssociatedEnclaveCertificateIamRoles => Empty + | .getAssociatedIpv6PoolCidrs => Empty + | .getAwsNetworkPerformanceData => Empty + | .getCapacityManagerAttributes => Empty + | .getCapacityManagerMetricData => Empty + | .getCapacityManagerMetricDimensions => Empty + | .getCapacityManagerMonitoredTagKeys => Empty + | .getCapacityManagerSupportabilityScores => Empty + | .getCapacityReservationUsage => Empty + | .getClientVpnEndpointAuthorizationPolicy => Empty + | .getCoipPoolUsage => Empty + | .getConsoleOutput => Empty + | .getConsoleScreenshot => Empty + | .getDeclarativePoliciesReportSummary => Empty + | .getDefaultCreditSpecification => Empty + | .getEbsDefaultKmsKeyId => Empty + | .getEbsEncryptionByDefault => Empty + | .getEnabledIpamPolicy => Empty + | .getFlowLogsIntegrationTemplate => Empty + | .getGroupsForCapacityReservation => Empty + | .getHostReservationPurchasePreview => Empty + | .getImageAncestry => Empty + | .getImageBlockPublicAccessState => Empty + | .getImageFindings => Empty + | .getInstanceMetadataDefaults => Empty + | .getInstanceTpmEkPub => Empty + | .getInstanceTypesFromInstanceRequirements => Empty + | .getInstanceUefiData => Empty + | .getIpamAddressHistory => Empty + | .getIpamDiscoveredAccounts => Empty + | .getIpamDiscoveredPublicAddresses => Empty + | .getIpamDiscoveredResourceCidrs => Empty + | .getIpamDiscoveredRoutes => Empty + | .getIpamInternetRegistryAssociationAsns => Empty + | .getIpamInternetRegistryAssociationCidrs => Empty + | .getIpamPolicyAllocationRules => Empty + | .getIpamPolicyOrganizationTargets => Empty + | .getIpamPoolAllocations => Empty + | .getIpamPoolCidrs => Empty + | .getIpamPrefixListResolverRules => Empty + | .getIpamPrefixListResolverVersionEntries => Empty + | .getIpamPrefixListResolverVersions => Empty + | .getIpamResourceCidrs => Empty + | .getIpamRouteOriginAuthorizations => Empty + | .getIpamRouteProtectionFindings => Empty + | .getIpamRoutingPolicyRegistrationDeltas => Empty + | .getIpamRoutingPolicyRegistrations => Empty + | .getLaunchTemplateData => Empty + | .getManagedPrefixListAssociations => Empty + | .getManagedPrefixListEntries => Empty + | .getManagedResourceVisibility => Empty + | .getNetworkInsightsAccessScopeAnalysisFindings => Empty + | .getNetworkInsightsAccessScopeContent => Empty + | .getNetworkingFlexCostAllocationPolicyVersions => Empty + | .getPasswordData => Empty + | .getReservedInstancesExchangeQuote => Empty + | .getRouteServerAssociations => Empty + | .getRouteServerPropagations => Empty + | .getRouteServerRoutingDatabase => Empty + | .getSecurityGroupsForVpc => Empty + | .getSerialConsoleAccessStatus => Empty + | .getSnapshotBlockPublicAccessState => Empty + | .getSpotPlacementScores => Empty + | .getSubnetCidrReservations => Empty + | .getTransitGatewayAttachmentNatConfiguration => Empty + | .getTransitGatewayAttachmentPropagations => Empty + | .getTransitGatewayMeteringPolicyEntries => Empty + | .getTransitGatewayMulticastDomainAssociations => Empty + | .getTransitGatewayPolicyTableAssociations => Empty + | .getTransitGatewayPolicyTableEntries => Empty + | .getTransitGatewayPrefixListReferences => Empty + | .getTransitGatewayRouteTableAssociations => Empty + | .getTransitGatewayRouteTablePropagations => Empty + | .getVerifiedAccessEndpointPolicy => Empty + | .getVerifiedAccessEndpointTargets => Empty + | .getVerifiedAccessGroupPolicy => Empty + | .getVpcResourcesBlockingEncryptionEnforcement => Empty + | .getVpnConnectionDeviceSampleConfiguration => Empty + | .getVpnConnectionDeviceTypes => Empty + | .getVpnTunnelReplacementStatus => Empty + | .importClientVpnClientCertificateRevocationList => Empty + | .importImage => Empty + | .importInstance => Empty + | .importKeyPair => Empty + | .importSnapshot => Empty + | .importVolume => Empty + | .listImagesInRecycleBin => Empty + | .listSnapshotsInRecycleBin => Empty + | .listVolumesInRecycleBin => Empty + | .lockSnapshot => Empty + | .modifyAccountVpcEncryptionControl => Empty + | .modifyAddressAttribute => Empty + | .modifyApplicationStatusCheck => Empty + | .modifyAvailabilityZoneGroup => Empty + | .modifyCapacityReservation => Empty + | .modifyCapacityReservationFleet => Empty + | .modifyClientVpnEndpoint => Empty + | .modifyClientVpnEndpointAuthorizationPolicy => Empty + | .modifyDefaultCreditSpecification => Empty + | .modifyEbsDefaultKmsKeyId => Empty + | .modifyFleet => Empty + | .modifyFpgaImageAttribute => Empty + | .modifyHosts => Empty + | .modifyIdFormat => Empty + | .modifyIdentityIdFormat => Empty + | .modifyImageAttribute => Empty + | .modifyInstanceAttribute => Empty + | .modifyInstanceCapacityReservationAttributes => Empty + | .modifyInstanceConnectEndpoint => Empty + | .modifyInstanceCpuOptions => Empty + | .modifyInstanceCreditSpecification => Empty + | .modifyInstanceEventStartTime => Empty + | .modifyInstanceEventWindow => Empty + | .modifyInstanceMaintenanceOptions => Empty + | .modifyInstanceMetadataDefaults => Empty + | .modifyInstanceMetadataOptions => Empty + | .modifyInstanceNetworkPerformanceOptions => Empty + | .modifyInstancePlacement => Empty + | .modifyIpam => Empty + | .modifyIpamPolicyAllocationRules => Empty + | .modifyIpamPool => Empty + | .modifyIpamPoolAllocation => Empty + | .modifyIpamPrefixListResolver => Empty + | .modifyIpamPrefixListResolverTarget => Empty + | .modifyIpamResourceCidr => Empty + | .modifyIpamResourceDiscovery => Empty + | .modifyIpamRoutingPolicyRegistration => Empty + | .modifyIpamScope => Empty + | .modifyLaunchTemplate => Empty + | .modifyLocalGatewayRoute => Empty + | .modifyManagedPrefixList => Empty + | .modifyManagedResourceVisibility => Empty + | .modifyMetricCategory => Empty + | .modifyNetworkInterfaceAttribute => Empty + | .modifyNetworkingFlexCostAllocationPolicy => Empty + | .modifyPrivateDnsNameOptions => Empty + | .modifyPublicIpDnsNameOptions => Empty + | .modifyReservedInstances => Empty + | .modifyRouteServer => Empty + | .modifySecurityGroupRules => Empty + | .modifySnapshotAttribute => Empty + | .modifySnapshotTier => Empty + | .modifySpotFleetRequest => Empty + | .modifySubnetAttribute => Empty + | .modifyTrafficMirrorFilterNetworkServices => Empty + | .modifyTrafficMirrorFilterRule => Empty + | .modifyTrafficMirrorSession => Empty + | .modifyTransitGateway => Empty + | .modifyTransitGatewayAttachmentNatConfiguration => Empty + | .modifyTransitGatewayMeteringPolicy => Empty + | .modifyTransitGatewayNetworkFunctionAttachment => Empty + | .modifyTransitGatewayPeeringAttachment => Empty + | .modifyTransitGatewayPolicyTableEntry => Empty + | .modifyTransitGatewayPrefixListReference => Empty + | .modifyTransitGatewayVpcAttachment => Empty + | .modifyVerifiedAccessEndpoint => Empty + | .modifyVerifiedAccessEndpointPolicy => Empty + | .modifyVerifiedAccessGroup => Empty + | .modifyVerifiedAccessGroupPolicy => Empty + | .modifyVerifiedAccessInstance => Empty + | .modifyVerifiedAccessInstanceLoggingConfiguration => Empty + | .modifyVerifiedAccessTrustProvider => Empty + | .modifyVolume => Empty + | .modifyVolumeAttribute => Empty + | .modifyVpcAttribute => Empty + | .modifyVpcBlockPublicAccessExclusion => Empty + | .modifyVpcBlockPublicAccessOptions => Empty + | .modifyVpcEncryptionControl => Empty + | .modifyVpcEndpoint => Empty + | .modifyVpcEndpointConnectionNotification => Empty + | .modifyVpcEndpointPayerResponsibility => Empty + | .modifyVpcEndpointServiceConfiguration => Empty + | .modifyVpcEndpointServicePayerResponsibility => Empty + | .modifyVpcEndpointServicePermissions => Empty + | .modifyVpcPeeringConnectionOptions => Empty + | .modifyVpcTenancy => Empty + | .modifyVpnConnection => Empty + | .modifyVpnConnectionOptions => Empty + | .modifyVpnTunnelCertificate => Empty + | .modifyVpnTunnelOptions => Empty + | .monitorInstances => Empty + | .moveAddressToVpc => Empty + | .moveByoipCidrToIpam => Empty + | .moveCapacityReservationInstances => Empty + | .provisionByoipCidr => Empty + | .provisionIpamByoasn => Empty + | .provisionIpamPoolCidr => Empty + | .provisionPublicIpv4PoolCidr => Empty + | .purchaseCapacityBlock => Empty + | .purchaseCapacityBlockExtension => Empty + | .purchaseHostReservation => Empty + | .purchaseReservedInstancesOffering => Empty + | .purchaseScheduledInstances => Empty + | .rebootInstances => Empty + | .registerImage => Empty + | .registerInstanceEventNotificationAttributes => Empty + | .registerTransitGatewayMulticastGroupMembers => Empty + | .registerTransitGatewayMulticastGroupSources => Empty + | .rejectCapacityReservationBillingOwnership => Empty + | .rejectTransitGatewayClientVpnAttachment => Empty + | .rejectTransitGatewayMulticastDomainAssociations => Empty + | .rejectTransitGatewayPeeringAttachment => Empty + | .rejectTransitGatewayVpcAttachment => Empty + | .rejectVpcEndpointConnections => Empty + | .rejectVpcPeeringConnection => Empty + | .releaseAddress => Empty + | .releaseHosts => Empty + | .releaseIpamPoolAllocation => Empty + | .replaceIamInstanceProfileAssociation => Empty + | .replaceImageCriteriaInAllowedImagesSettings => Empty + | .replaceImageInstanceTypeSpecification => Empty + | .replaceNetworkAclAssociation => Empty + | .replaceNetworkAclEntry => Empty + | .replaceRoute => Empty + | .replaceRouteTableAssociation => Empty + | .replaceTransitGatewayRoute => Empty + | .replaceVpnTunnel => Empty + | .reportInstanceStatus => Empty + | .requestSpotFleet => Empty + | .requestSpotInstances => Empty + | .resetAddressAttribute => Empty + | .resetEbsDefaultKmsKeyId => Empty + | .resetFpgaImageAttribute => Empty + | .resetImageAttribute => Empty + | .resetInstanceAttribute => Empty + | .resetNetworkInterfaceAttribute => Empty + | .resetSnapshotAttribute => Empty + | .restoreAddressToClassic => Empty + | .restoreImageFromRecycleBin => Empty + | .restoreManagedPrefixListVersion => Empty + | .restoreSnapshotFromRecycleBin => Empty + | .restoreSnapshotTier => Empty + | .restoreVolumeFromRecycleBin => Empty + | .revokeClientVpnIngress => Empty + | .revokeSecurityGroupEgress => Empty + | .revokeSecurityGroupIngress => Empty + | .runInstances => Empty + | .runScheduledInstances => Empty + | .searchLocalGatewayRoutes => Empty + | .searchTransitGatewayMulticastGroups => Empty + | .searchTransitGatewayRoutes => Empty + | .sendDiagnosticInterrupt => Empty + | .startDeclarativePoliciesReport => Empty + | .startInstances => Empty + | .startNetworkInsightsAccessScopeAnalysis => Empty + | .startNetworkInsightsAnalysis => Empty + | .startVpcEndpointServicePrivateDnsVerification => Empty + | .stopInstances => Empty + | .terminateClientVpnConnections => Empty + | .terminateInstances => Empty + | .unassignIpv6Addresses => Empty + | .unassignPrivateIpAddresses => Empty + | .unassignPrivateNatGatewayAddress => Empty + | .unlockSnapshot => Empty + | .unmonitorInstances => Empty + | .updateCapacityManagerMonitoredTagKeys => Empty + | .updateCapacityManagerOrganizationsAccess => Empty + | .updateInterruptibleCapacityReservationAllocation => Empty + | .updateSecurityGroupRuleDescriptionsEgress => Empty + | .updateSecurityGroupRuleDescriptionsIngress => Empty + | .validateSecurityGroupQuotasForInterface => Empty + | .withdrawByoipCidr => Empty + +/-- An empty output for each operation, for a model that leaves an operation out. -/ +def Output.empty : (op : Op) → Output op + | .acceptAddressTransfer => default + | .acceptCapacityReservationBillingOwnership => default + | .acceptReservedInstancesExchangeQuote => default + | .acceptTransitGatewayClientVpnAttachment => default + | .acceptTransitGatewayMulticastDomainAssociations => default + | .acceptTransitGatewayPeeringAttachment => default + | .acceptTransitGatewayVpcAttachment => default + | .acceptVpcEndpointConnections => default + | .acceptVpcPeeringConnection => default + | .advertiseByoipCidr => default + | .allocateAddress => default + | .allocateHosts => default + | .allocateIpamPoolCidr => default + | .applySecurityGroupsToClientVpnTargetNetwork => default + | .assignIpv6Addresses => default + | .assignPrivateIpAddresses => default + | .assignPrivateNatGatewayAddress => default + | .associateAddress => default + | .associateApplicationStatusCheck => default + | .associateCapacityReservationBillingOwner => default + | .associateClientVpnTargetNetwork => default + | .associateDhcpOptions => default + | .associateEnclaveCertificateIamRole => default + | .associateIamInstanceProfile => default + | .associateInstanceEventWindow => default + | .associateIpamByoasn => default + | .associateIpamResourceDiscovery => default + | .associateKmsKeyId => default + | .associateNatGatewayAddress => default + | .associateNetworkingFlexCostAllocationPolicy => default + | .associateRouteServer => default + | .associateRouteTable => default + | .associateSecurityGroupVpc => default + | .associateSubnetCidrBlock => default + | .associateTransitGatewayMulticastDomain => default + | .associateTransitGatewayPolicyTable => default + | .associateTransitGatewayRouteTable => default + | .associateTrunkInterface => default + | .associateVpcCidrBlock => default + | .attachClassicLinkVpc => default + | .attachImageWatermark => default + | .attachInternetGateway => default + | .attachNetworkInterface => default + | .attachVerifiedAccessTrustProvider => default + | .attachVolume => default + | .attachVpnGateway => default + | .authorizeClientVpnIngress => default + | .authorizeSecurityGroupEgress => default + | .authorizeSecurityGroupIngress => default + | .batchModifyIpamRoutingPolicyRegistrations => default + | .bundleInstance => default + | .cancelBundleTask => default + | .cancelCapacityReservation => default + | .cancelCapacityReservationFleets => default + | .cancelConversionTask => default + | .cancelDeclarativePoliciesReport => default + | .cancelExportTask => default + | .cancelImageLaunchPermission => default + | .cancelImportTask => default + | .cancelReservedInstancesListing => default + | .cancelSpotFleetRequests => default + | .cancelSpotInstanceRequests => default + | .confirmProductInstance => default + | .copyFpgaImage => default + | .copyImage => default + | .copySnapshot => default + | .copyVolumes => default + | .createApplicationStatusCheck => default + | .createCapacityManagerDataExport => default + | .createCapacityReservation => default + | .createCapacityReservationBySplitting => default + | .createCapacityReservationCancellationQuote => default + | .createCapacityReservationDateChangeQuote => default + | .createCapacityReservationFleet => default + | .createCarrierGateway => default + | .createClientVpnEndpoint => default + | .createClientVpnRoute => default + | .createCoipCidr => default + | .createCoipPool => default + | .createCustomerGateway => default + | .createDefaultSubnet => default + | .createDefaultVpc => default + | .createDelegateMacVolumeOwnershipTask => default + | .createDhcpOptions => default + | .createEgressOnlyInternetGateway => default + | .createFleet => default + | .createFlowLogs => default + | .createFpgaImage => default + | .createImage => default + | .createImageUsageReport => default + | .createInstanceConnectEndpoint => default + | .createInstanceEventWindow => default + | .createInstanceExportTask => default + | .createInternetGateway => default + | .createInterruptibleCapacityReservationAllocation => default + | .createIpam => default + | .createIpamExternalResourceVerificationToken => default + | .createIpamInternetRegistryAssociation => default + | .createIpamPolicy => default + | .createIpamPool => default + | .createIpamPrefixListResolver => default + | .createIpamPrefixListResolverTarget => default + | .createIpamResourceDiscovery => default + | .createIpamRoutingPolicyRegistration => default + | .createIpamScope => default + | .createKeyPair => default + | .createLaunchTemplate => default + | .createLaunchTemplateVersion => default + | .createLocalGatewayRoute => default + | .createLocalGatewayRouteTable => default + | .createLocalGatewayRouteTableVirtualInterfaceGroupAssociation => default + | .createLocalGatewayRouteTableVpcAssociation => default + | .createLocalGatewayVirtualInterface => default + | .createLocalGatewayVirtualInterfaceGroup => default + | .createMacSystemIntegrityProtectionModificationTask => default + | .createManagedPrefixList => default + | .createMetricCategory => default + | .createNatGateway => default + | .createNetworkAcl => default + | .createNetworkAclEntry => default + | .createNetworkInsightsAccessScope => default + | .createNetworkInsightsPath => default + | .createNetworkInterface => default + | .createNetworkInterfacePermission => default + | .createNetworkingFlexCostAllocationPolicy => default + | .createPlacementGroup => default + | .createPublicIpv4Pool => default + | .createReplaceRootVolumeTask => default + | .createReservedInstancesListing => default + | .createRestoreImageTask => default + | .createRoute => default + | .createRouteServer => default + | .createRouteServerEndpoint => default + | .createRouteServerPeer => default + | .createRouteTable => default + | .createSecondaryNetwork => default + | .createSecondarySubnet => default + | .createSecurityGroup => default + | .createSnapshot => default + | .createSnapshots => default + | .createSpotDatafeedSubscription => default + | .createStoreImageTask => default + | .createSubnet => default + | .createSubnetCidrReservation => default + | .createTags => default + | .createTrafficMirrorFilter => default + | .createTrafficMirrorFilterRule => default + | .createTrafficMirrorSession => default + | .createTrafficMirrorTarget => default + | .createTransitGateway => default + | .createTransitGatewayConnect => default + | .createTransitGatewayConnectPeer => default + | .createTransitGatewayMeteringPolicy => default + | .createTransitGatewayMeteringPolicyEntry => default + | .createTransitGatewayMulticastDomain => default + | .createTransitGatewayNetworkFunctionAttachment => default + | .createTransitGatewayPeeringAttachment => default + | .createTransitGatewayPolicyTable => default + | .createTransitGatewayPolicyTableEntry => default + | .createTransitGatewayPrefixListReference => default + | .createTransitGatewayRoute => default + | .createTransitGatewayRouteTable => default + | .createTransitGatewayRouteTableAnnouncement => default + | .createTransitGatewayVpcAttachment => default + | .createVerifiedAccessEndpoint => default + | .createVerifiedAccessGroup => default + | .createVerifiedAccessInstance => default + | .createVerifiedAccessTrustProvider => default + | .createVolume => default + | .createVpc => default + | .createVpcBlockPublicAccessExclusion => default + | .createVpcEncryptionControl => default + | .createVpcEndpoint => default + | .createVpcEndpointConnectionNotification => default + | .createVpcEndpointServiceConfiguration => default + | .createVpcPeeringConnection => default + | .createVpnConcentrator => default + | .createVpnConnection => default + | .createVpnConnectionRoute => default + | .createVpnGateway => default + | .deleteApplicationStatusCheck => default + | .deleteCapacityManagerDataExport => default + | .deleteCarrierGateway => default + | .deleteClientVpnEndpoint => default + | .deleteClientVpnEndpointAuthorizationPolicy => default + | .deleteClientVpnRoute => default + | .deleteCoipCidr => default + | .deleteCoipPool => default + | .deleteCustomerGateway => default + | .deleteDhcpOptions => default + | .deleteEgressOnlyInternetGateway => default + | .deleteFleets => default + | .deleteFlowLogs => default + | .deleteFpgaImage => default + | .deleteImageUsageReport => default + | .deleteInstanceConnectEndpoint => default + | .deleteInstanceEventWindow => default + | .deleteInternetGateway => default + | .deleteIpam => default + | .deleteIpamExternalResourceVerificationToken => default + | .deleteIpamInternetRegistryAssociation => default + | .deleteIpamPolicy => default + | .deleteIpamPool => default + | .deleteIpamPrefixListResolver => default + | .deleteIpamPrefixListResolverTarget => default + | .deleteIpamResourceDiscovery => default + | .deleteIpamRoutingPolicyRegistration => default + | .deleteIpamScope => default + | .deleteKeyPair => default + | .deleteLaunchTemplate => default + | .deleteLaunchTemplateVersions => default + | .deleteLocalGatewayRoute => default + | .deleteLocalGatewayRouteTable => default + | .deleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation => default + | .deleteLocalGatewayRouteTableVpcAssociation => default + | .deleteLocalGatewayVirtualInterface => default + | .deleteLocalGatewayVirtualInterfaceGroup => default + | .deleteManagedPrefixList => default + | .deleteMetricCategory => default + | .deleteNatGateway => default + | .deleteNetworkAcl => default + | .deleteNetworkAclEntry => default + | .deleteNetworkInsightsAccessScope => default + | .deleteNetworkInsightsAccessScopeAnalysis => default + | .deleteNetworkInsightsAnalysis => default + | .deleteNetworkInsightsPath => default + | .deleteNetworkInterface => default + | .deleteNetworkInterfacePermission => default + | .deleteNetworkingFlexCostAllocationPolicies => default + | .deletePlacementGroup => default + | .deletePublicIpv4Pool => default + | .deleteQueuedReservedInstances => default + | .deleteRoute => default + | .deleteRouteServer => default + | .deleteRouteServerEndpoint => default + | .deleteRouteServerPeer => default + | .deleteRouteTable => default + | .deleteSecondaryNetwork => default + | .deleteSecondarySubnet => default + | .deleteSecurityGroup => default + | .deleteSnapshot => default + | .deleteSpotDatafeedSubscription => default + | .deleteSubnet => default + | .deleteSubnetCidrReservation => default + | .deleteTags => default + | .deleteTrafficMirrorFilter => default + | .deleteTrafficMirrorFilterRule => default + | .deleteTrafficMirrorSession => default + | .deleteTrafficMirrorTarget => default + | .deleteTransitGateway => default + | .deleteTransitGatewayClientVpnAttachment => default + | .deleteTransitGatewayConnect => default + | .deleteTransitGatewayConnectPeer => default + | .deleteTransitGatewayMeteringPolicy => default + | .deleteTransitGatewayMeteringPolicyEntry => default + | .deleteTransitGatewayMulticastDomain => default + | .deleteTransitGatewayNetworkFunctionAttachment => default + | .deleteTransitGatewayPeeringAttachment => default + | .deleteTransitGatewayPolicyTable => default + | .deleteTransitGatewayPolicyTableEntry => default + | .deleteTransitGatewayPrefixListReference => default + | .deleteTransitGatewayRoute => default + | .deleteTransitGatewayRouteTable => default + | .deleteTransitGatewayRouteTableAnnouncement => default + | .deleteTransitGatewayVpcAttachment => default + | .deleteVerifiedAccessEndpoint => default + | .deleteVerifiedAccessGroup => default + | .deleteVerifiedAccessInstance => default + | .deleteVerifiedAccessTrustProvider => default + | .deleteVolume => default + | .deleteVpc => default + | .deleteVpcBlockPublicAccessExclusion => default + | .deleteVpcEncryptionControl => default + | .deleteVpcEndpointConnectionNotifications => default + | .deleteVpcEndpointServiceConfigurations => default + | .deleteVpcEndpoints => default + | .deleteVpcPeeringConnection => default + | .deleteVpnConcentrator => default + | .deleteVpnConnection => default + | .deleteVpnConnectionRoute => default + | .deleteVpnGateway => default + | .deprovisionByoipCidr => default + | .deprovisionIpamByoasn => default + | .deprovisionIpamPoolCidr => default + | .deprovisionPublicIpv4PoolCidr => default + | .deregisterImage => default + | .deregisterInstanceEventNotificationAttributes => default + | .deregisterTransitGatewayMulticastGroupMembers => default + | .deregisterTransitGatewayMulticastGroupSources => default + | .describeAccountAttributes => default + | .describeAccountVpcEncryptionControl => default + | .describeAddressTransfers => default + | .describeAddresses => default + | .describeAddressesAttribute => default + | .describeAggregateIdFormat => default + | .describeApplicationStatus => default + | .describeApplicationStatusCheckAssociations => default + | .describeApplicationStatusChecks => default + | .describeAvailabilityZones => default + | .describeAwsNetworkPerformanceMetricSubscriptions => default + | .describeBundleTasks => default + | .describeByoipCidrs => default + | .describeCapacityBlockExtensionHistory => default + | .describeCapacityBlockExtensionOfferings => default + | .describeCapacityBlockOfferings => default + | .describeCapacityBlockStatus => default + | .describeCapacityBlocks => default + | .describeCapacityManagerDataExports => default + | .describeCapacityReservationBillingRequests => default + | .describeCapacityReservationCancellationQuotes => default + | .describeCapacityReservationDateChangeQuotes => default + | .describeCapacityReservationFleets => default + | .describeCapacityReservationTopology => default + | .describeCapacityReservations => default + | .describeCarrierGateways => default + | .describeClassicLinkInstances => default + | .describeClientVpnAuthorizationRules => default + | .describeClientVpnConnections => default + | .describeClientVpnEndpoints => default + | .describeClientVpnRoutes => default + | .describeClientVpnTargetNetworks => default + | .describeCoipPools => default + | .describeConversionTasks => default + | .describeCustomerGateways => default + | .describeDeclarativePoliciesReports => default + | .describeDhcpOptions => default + | .describeEgressOnlyInternetGateways => default + | .describeElasticGpus => default + | .describeExportImageTasks => default + | .describeExportTasks => default + | .describeFastLaunchImages => default + | .describeFastSnapshotRestores => default + | .describeFleetHistory => default + | .describeFleetInstances => default + | .describeFleets => default + | .describeFlowLogs => default + | .describeFpgaImageAttribute => default + | .describeFpgaImages => default + | .describeHostReservationOfferings => default + | .describeHostReservations => default + | .describeHosts => default + | .describeIamInstanceProfileAssociations => default + | .describeIdFormat => default + | .describeIdentityIdFormat => default + | .describeImageAttribute => default + | .describeImageReferences => default + | .describeImageUsageReportEntries => default + | .describeImageUsageReports => default + | .describeImages => default + | .describeImportImageTasks => default + | .describeImportSnapshotTasks => default + | .describeInstanceAttribute => default + | .describeInstanceConnectEndpoints => default + | .describeInstanceCreditSpecifications => default + | .describeInstanceEventNotificationAttributes => default + | .describeInstanceEventWindows => default + | .describeInstanceImageMetadata => default + | .describeInstanceSqlHaHistoryStates => default + | .describeInstanceSqlHaStates => default + | .describeInstanceStatus => default + | .describeInstanceTopology => default + | .describeInstanceTypeOfferings => default + | .describeInstanceTypes => default + | .describeInstances => default + | .describeInternetGateways => default + | .describeIpamByoasn => default + | .describeIpamExternalResourceVerificationTokens => default + | .describeIpamInternetRegistryAssociations => default + | .describeIpamPolicies => default + | .describeIpamPoolAllocations => default + | .describeIpamPools => default + | .describeIpamPrefixListResolverTargets => default + | .describeIpamPrefixListResolvers => default + | .describeIpamResourceDiscoveries => default + | .describeIpamResourceDiscoveryAssociations => default + | .describeIpamScopes => default + | .describeIpams => default + | .describeIpv6Pools => default + | .describeKeyPairs => default + | .describeLaunchTemplateVersions => default + | .describeLaunchTemplates => default + | .describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations => default + | .describeLocalGatewayRouteTableVpcAssociations => default + | .describeLocalGatewayRouteTables => default + | .describeLocalGatewayVirtualInterfaceGroups => default + | .describeLocalGatewayVirtualInterfaces => default + | .describeLocalGateways => default + | .describeLockedSnapshots => default + | .describeMacHosts => default + | .describeMacModificationTasks => default + | .describeManagedPrefixLists => default + | .describeMetricCategories => default + | .describeMovingAddresses => default + | .describeNatGateways => default + | .describeNetworkAcls => default + | .describeNetworkInsightsAccessScopeAnalyses => default + | .describeNetworkInsightsAccessScopes => default + | .describeNetworkInsightsAnalyses => default + | .describeNetworkInsightsPaths => default + | .describeNetworkInterfaceAttribute => default + | .describeNetworkInterfacePermissions => default + | .describeNetworkInterfaces => default + | .describeNetworkingFlexCostAllocationPolicies => default + | .describeNetworkingFlexCostAllocationPolicyAssociations => default + | .describeOutpostLags => default + | .describePlacementGroups => default + | .describePrefixLists => default + | .describePrincipalIdFormat => default + | .describePublicIpv4Pools => default + | .describeRegions => default + | .describeReplaceRootVolumeTasks => default + | .describeReservedInstances => default + | .describeReservedInstancesListings => default + | .describeReservedInstancesModifications => default + | .describeReservedInstancesOfferings => default + | .describeRouteServerEndpoints => default + | .describeRouteServerPeers => default + | .describeRouteServers => default + | .describeRouteTables => default + | .describeScheduledInstanceAvailability => default + | .describeScheduledInstances => default + | .describeSecondaryInterfaces => default + | .describeSecondaryNetworks => default + | .describeSecondarySubnets => default + | .describeSecurityGroupReferences => default + | .describeSecurityGroupRules => default + | .describeSecurityGroupVpcAssociations => default + | .describeSecurityGroups => default + | .describeServiceLinkVirtualInterfaces => default + | .describeSnapshotAttribute => default + | .describeSnapshotTierStatus => default + | .describeSnapshots => default + | .describeSpotDatafeedSubscription => default + | .describeSpotFleetInstances => default + | .describeSpotFleetRequestHistory => default + | .describeSpotFleetRequests => default + | .describeSpotInstanceRequests => default + | .describeSpotPriceHistory => default + | .describeStaleSecurityGroups => default + | .describeStoreImageTasks => default + | .describeSubnets => default + | .describeTags => default + | .describeTrafficMirrorFilterRules => default + | .describeTrafficMirrorFilters => default + | .describeTrafficMirrorSessions => default + | .describeTrafficMirrorTargets => default + | .describeTransitGatewayAttachments => default + | .describeTransitGatewayConnectPeers => default + | .describeTransitGatewayConnects => default + | .describeTransitGatewayMeteringPolicies => default + | .describeTransitGatewayMulticastDomains => default + | .describeTransitGatewayNetworkFunctionAttachments => default + | .describeTransitGatewayPeeringAttachments => default + | .describeTransitGatewayPolicyTables => default + | .describeTransitGatewayRouteTableAnnouncements => default + | .describeTransitGatewayRouteTables => default + | .describeTransitGatewayVpcAttachments => default + | .describeTransitGateways => default + | .describeTrunkInterfaceAssociations => default + | .describeVerifiedAccessEndpoints => default + | .describeVerifiedAccessGroups => default + | .describeVerifiedAccessInstanceLoggingConfigurations => default + | .describeVerifiedAccessInstances => default + | .describeVerifiedAccessTrustProviders => default + | .describeVolumeAttribute => default + | .describeVolumeStatus => default + | .describeVolumes => default + | .describeVolumesModifications => default + | .describeVpcAttribute => default + | .describeVpcBlockPublicAccessExclusions => default + | .describeVpcBlockPublicAccessOptions => default + | .describeVpcClassicLink => default + | .describeVpcClassicLinkDnsSupport => default + | .describeVpcEncryptionControls => default + | .describeVpcEndpointAssociations => default + | .describeVpcEndpointConnectionNotifications => default + | .describeVpcEndpointConnections => default + | .describeVpcEndpointServiceConfigurations => default + | .describeVpcEndpointServicePermissions => default + | .describeVpcEndpointServices => default + | .describeVpcEndpoints => default + | .describeVpcPeeringConnections => default + | .describeVpcs => default + | .describeVpnConcentrators => default + | .describeVpnConnections => default + | .describeVpnGateways => default + | .detachClassicLinkVpc => default + | .detachImageWatermark => default + | .detachInternetGateway => default + | .detachNetworkInterface => default + | .detachVerifiedAccessTrustProvider => default + | .detachVolume => default + | .detachVpnGateway => default + | .disableAddressTransfer => default + | .disableAllowedImagesSettings => default + | .disableApplicationStatusCheckSuppression => default + | .disableAwsNetworkPerformanceMetricSubscription => default + | .disableCapacityManager => default + | .disableEbsEncryptionByDefault => default + | .disableFastLaunch => default + | .disableFastSnapshotRestores => default + | .disableImage => default + | .disableImageBlockPublicAccess => default + | .disableImageDeprecation => default + | .disableImageDeregistrationProtection => default + | .disableInstanceSqlHaStandbyDetections => default + | .disableIpamOrganizationAdminAccount => default + | .disableIpamPolicy => default + | .disableRouteServerPropagation => default + | .disableSerialConsoleAccess => default + | .disableSnapshotBlockPublicAccess => default + | .disableTransitGatewayRouteTablePropagation => default + | .disableVgwRoutePropagation => default + | .disableVpcClassicLink => default + | .disableVpcClassicLinkDnsSupport => default + | .disassociateAddress => default + | .disassociateApplicationStatusCheck => default + | .disassociateCapacityReservationBillingOwner => default + | .disassociateClientVpnTargetNetwork => default + | .disassociateEnclaveCertificateIamRole => default + | .disassociateIamInstanceProfile => default + | .disassociateInstanceEventWindow => default + | .disassociateIpamByoasn => default + | .disassociateIpamResourceDiscovery => default + | .disassociateKmsKeyId => default + | .disassociateNatGatewayAddress => default + | .disassociateNetworkingFlexCostAllocationPolicy => default + | .disassociateRouteServer => default + | .disassociateRouteTable => default + | .disassociateSecurityGroupVpc => default + | .disassociateSubnetCidrBlock => default + | .disassociateTransitGatewayMulticastDomain => default + | .disassociateTransitGatewayPolicyTable => default + | .disassociateTransitGatewayRouteTable => default + | .disassociateTrunkInterface => default + | .disassociateVpcCidrBlock => default + | .enableAddressTransfer => default + | .enableAllowedImagesSettings => default + | .enableApplicationStatusCheckSuppression => default + | .enableAwsNetworkPerformanceMetricSubscription => default + | .enableCapacityManager => default + | .enableEbsEncryptionByDefault => default + | .enableFastLaunch => default + | .enableFastSnapshotRestores => default + | .enableImage => default + | .enableImageBlockPublicAccess => default + | .enableImageDeprecation => default + | .enableImageDeregistrationProtection => default + | .enableInstanceSqlHaStandbyDetections => default + | .enableIpamInternetRegistryAssociation => default + | .enableIpamOrganizationAdminAccount => default + | .enableIpamPolicy => default + | .enableReachabilityAnalyzerOrganizationSharing => default + | .enableRouteServerPropagation => default + | .enableSerialConsoleAccess => default + | .enableSnapshotBlockPublicAccess => default + | .enableTransitGatewayRouteTablePropagation => default + | .enableVgwRoutePropagation => default + | .enableVolumeIO => default + | .enableVpcClassicLink => default + | .enableVpcClassicLinkDnsSupport => default + | .exportClientVpnClientCertificateRevocationList => default + | .exportClientVpnClientConfiguration => default + | .exportImage => default + | .exportTransitGatewayRoutes => default + | .exportVerifiedAccessInstanceClientConfiguration => default + | .getActiveVpnTunnelStatus => default + | .getAllowedImagesSettings => default + | .getAssociatedEnclaveCertificateIamRoles => default + | .getAssociatedIpv6PoolCidrs => default + | .getAwsNetworkPerformanceData => default + | .getCapacityManagerAttributes => default + | .getCapacityManagerMetricData => default + | .getCapacityManagerMetricDimensions => default + | .getCapacityManagerMonitoredTagKeys => default + | .getCapacityManagerSupportabilityScores => default + | .getCapacityReservationUsage => default + | .getClientVpnEndpointAuthorizationPolicy => default + | .getCoipPoolUsage => default + | .getConsoleOutput => default + | .getConsoleScreenshot => default + | .getDeclarativePoliciesReportSummary => default + | .getDefaultCreditSpecification => default + | .getEbsDefaultKmsKeyId => default + | .getEbsEncryptionByDefault => default + | .getEnabledIpamPolicy => default + | .getFlowLogsIntegrationTemplate => default + | .getGroupsForCapacityReservation => default + | .getHostReservationPurchasePreview => default + | .getImageAncestry => default + | .getImageBlockPublicAccessState => default + | .getImageFindings => default + | .getInstanceMetadataDefaults => default + | .getInstanceTpmEkPub => default + | .getInstanceTypesFromInstanceRequirements => default + | .getInstanceUefiData => default + | .getIpamAddressHistory => default + | .getIpamDiscoveredAccounts => default + | .getIpamDiscoveredPublicAddresses => default + | .getIpamDiscoveredResourceCidrs => default + | .getIpamDiscoveredRoutes => default + | .getIpamInternetRegistryAssociationAsns => default + | .getIpamInternetRegistryAssociationCidrs => default + | .getIpamPolicyAllocationRules => default + | .getIpamPolicyOrganizationTargets => default + | .getIpamPoolAllocations => default + | .getIpamPoolCidrs => default + | .getIpamPrefixListResolverRules => default + | .getIpamPrefixListResolverVersionEntries => default + | .getIpamPrefixListResolverVersions => default + | .getIpamResourceCidrs => default + | .getIpamRouteOriginAuthorizations => default + | .getIpamRouteProtectionFindings => default + | .getIpamRoutingPolicyRegistrationDeltas => default + | .getIpamRoutingPolicyRegistrations => default + | .getLaunchTemplateData => default + | .getManagedPrefixListAssociations => default + | .getManagedPrefixListEntries => default + | .getManagedResourceVisibility => default + | .getNetworkInsightsAccessScopeAnalysisFindings => default + | .getNetworkInsightsAccessScopeContent => default + | .getNetworkingFlexCostAllocationPolicyVersions => default + | .getPasswordData => default + | .getReservedInstancesExchangeQuote => default + | .getRouteServerAssociations => default + | .getRouteServerPropagations => default + | .getRouteServerRoutingDatabase => default + | .getSecurityGroupsForVpc => default + | .getSerialConsoleAccessStatus => default + | .getSnapshotBlockPublicAccessState => default + | .getSpotPlacementScores => default + | .getSubnetCidrReservations => default + | .getTransitGatewayAttachmentNatConfiguration => default + | .getTransitGatewayAttachmentPropagations => default + | .getTransitGatewayMeteringPolicyEntries => default + | .getTransitGatewayMulticastDomainAssociations => default + | .getTransitGatewayPolicyTableAssociations => default + | .getTransitGatewayPolicyTableEntries => default + | .getTransitGatewayPrefixListReferences => default + | .getTransitGatewayRouteTableAssociations => default + | .getTransitGatewayRouteTablePropagations => default + | .getVerifiedAccessEndpointPolicy => default + | .getVerifiedAccessEndpointTargets => default + | .getVerifiedAccessGroupPolicy => default + | .getVpcResourcesBlockingEncryptionEnforcement => default + | .getVpnConnectionDeviceSampleConfiguration => default + | .getVpnConnectionDeviceTypes => default + | .getVpnTunnelReplacementStatus => default + | .importClientVpnClientCertificateRevocationList => default + | .importImage => default + | .importInstance => default + | .importKeyPair => default + | .importSnapshot => default + | .importVolume => default + | .listImagesInRecycleBin => default + | .listSnapshotsInRecycleBin => default + | .listVolumesInRecycleBin => default + | .lockSnapshot => default + | .modifyAccountVpcEncryptionControl => default + | .modifyAddressAttribute => default + | .modifyApplicationStatusCheck => default + | .modifyAvailabilityZoneGroup => default + | .modifyCapacityReservation => default + | .modifyCapacityReservationFleet => default + | .modifyClientVpnEndpoint => default + | .modifyClientVpnEndpointAuthorizationPolicy => default + | .modifyDefaultCreditSpecification => default + | .modifyEbsDefaultKmsKeyId => default + | .modifyFleet => default + | .modifyFpgaImageAttribute => default + | .modifyHosts => default + | .modifyIdFormat => default + | .modifyIdentityIdFormat => default + | .modifyImageAttribute => default + | .modifyInstanceAttribute => default + | .modifyInstanceCapacityReservationAttributes => default + | .modifyInstanceConnectEndpoint => default + | .modifyInstanceCpuOptions => default + | .modifyInstanceCreditSpecification => default + | .modifyInstanceEventStartTime => default + | .modifyInstanceEventWindow => default + | .modifyInstanceMaintenanceOptions => default + | .modifyInstanceMetadataDefaults => default + | .modifyInstanceMetadataOptions => default + | .modifyInstanceNetworkPerformanceOptions => default + | .modifyInstancePlacement => default + | .modifyIpam => default + | .modifyIpamPolicyAllocationRules => default + | .modifyIpamPool => default + | .modifyIpamPoolAllocation => default + | .modifyIpamPrefixListResolver => default + | .modifyIpamPrefixListResolverTarget => default + | .modifyIpamResourceCidr => default + | .modifyIpamResourceDiscovery => default + | .modifyIpamRoutingPolicyRegistration => default + | .modifyIpamScope => default + | .modifyLaunchTemplate => default + | .modifyLocalGatewayRoute => default + | .modifyManagedPrefixList => default + | .modifyManagedResourceVisibility => default + | .modifyMetricCategory => default + | .modifyNetworkInterfaceAttribute => default + | .modifyNetworkingFlexCostAllocationPolicy => default + | .modifyPrivateDnsNameOptions => default + | .modifyPublicIpDnsNameOptions => default + | .modifyReservedInstances => default + | .modifyRouteServer => default + | .modifySecurityGroupRules => default + | .modifySnapshotAttribute => default + | .modifySnapshotTier => default + | .modifySpotFleetRequest => default + | .modifySubnetAttribute => default + | .modifyTrafficMirrorFilterNetworkServices => default + | .modifyTrafficMirrorFilterRule => default + | .modifyTrafficMirrorSession => default + | .modifyTransitGateway => default + | .modifyTransitGatewayAttachmentNatConfiguration => default + | .modifyTransitGatewayMeteringPolicy => default + | .modifyTransitGatewayNetworkFunctionAttachment => default + | .modifyTransitGatewayPeeringAttachment => default + | .modifyTransitGatewayPolicyTableEntry => default + | .modifyTransitGatewayPrefixListReference => default + | .modifyTransitGatewayVpcAttachment => default + | .modifyVerifiedAccessEndpoint => default + | .modifyVerifiedAccessEndpointPolicy => default + | .modifyVerifiedAccessGroup => default + | .modifyVerifiedAccessGroupPolicy => default + | .modifyVerifiedAccessInstance => default + | .modifyVerifiedAccessInstanceLoggingConfiguration => default + | .modifyVerifiedAccessTrustProvider => default + | .modifyVolume => default + | .modifyVolumeAttribute => default + | .modifyVpcAttribute => default + | .modifyVpcBlockPublicAccessExclusion => default + | .modifyVpcBlockPublicAccessOptions => default + | .modifyVpcEncryptionControl => default + | .modifyVpcEndpoint => default + | .modifyVpcEndpointConnectionNotification => default + | .modifyVpcEndpointPayerResponsibility => default + | .modifyVpcEndpointServiceConfiguration => default + | .modifyVpcEndpointServicePayerResponsibility => default + | .modifyVpcEndpointServicePermissions => default + | .modifyVpcPeeringConnectionOptions => default + | .modifyVpcTenancy => default + | .modifyVpnConnection => default + | .modifyVpnConnectionOptions => default + | .modifyVpnTunnelCertificate => default + | .modifyVpnTunnelOptions => default + | .monitorInstances => default + | .moveAddressToVpc => default + | .moveByoipCidrToIpam => default + | .moveCapacityReservationInstances => default + | .provisionByoipCidr => default + | .provisionIpamByoasn => default + | .provisionIpamPoolCidr => default + | .provisionPublicIpv4PoolCidr => default + | .purchaseCapacityBlock => default + | .purchaseCapacityBlockExtension => default + | .purchaseHostReservation => default + | .purchaseReservedInstancesOffering => default + | .purchaseScheduledInstances => default + | .rebootInstances => default + | .registerImage => default + | .registerInstanceEventNotificationAttributes => default + | .registerTransitGatewayMulticastGroupMembers => default + | .registerTransitGatewayMulticastGroupSources => default + | .rejectCapacityReservationBillingOwnership => default + | .rejectTransitGatewayClientVpnAttachment => default + | .rejectTransitGatewayMulticastDomainAssociations => default + | .rejectTransitGatewayPeeringAttachment => default + | .rejectTransitGatewayVpcAttachment => default + | .rejectVpcEndpointConnections => default + | .rejectVpcPeeringConnection => default + | .releaseAddress => default + | .releaseHosts => default + | .releaseIpamPoolAllocation => default + | .replaceIamInstanceProfileAssociation => default + | .replaceImageCriteriaInAllowedImagesSettings => default + | .replaceImageInstanceTypeSpecification => default + | .replaceNetworkAclAssociation => default + | .replaceNetworkAclEntry => default + | .replaceRoute => default + | .replaceRouteTableAssociation => default + | .replaceTransitGatewayRoute => default + | .replaceVpnTunnel => default + | .reportInstanceStatus => default + | .requestSpotFleet => default + | .requestSpotInstances => default + | .resetAddressAttribute => default + | .resetEbsDefaultKmsKeyId => default + | .resetFpgaImageAttribute => default + | .resetImageAttribute => default + | .resetInstanceAttribute => default + | .resetNetworkInterfaceAttribute => default + | .resetSnapshotAttribute => default + | .restoreAddressToClassic => default + | .restoreImageFromRecycleBin => default + | .restoreManagedPrefixListVersion => default + | .restoreSnapshotFromRecycleBin => default + | .restoreSnapshotTier => default + | .restoreVolumeFromRecycleBin => default + | .revokeClientVpnIngress => default + | .revokeSecurityGroupEgress => default + | .revokeSecurityGroupIngress => default + | .runInstances => default + | .runScheduledInstances => default + | .searchLocalGatewayRoutes => default + | .searchTransitGatewayMulticastGroups => default + | .searchTransitGatewayRoutes => default + | .sendDiagnosticInterrupt => default + | .startDeclarativePoliciesReport => default + | .startInstances => default + | .startNetworkInsightsAccessScopeAnalysis => default + | .startNetworkInsightsAnalysis => default + | .startVpcEndpointServicePrivateDnsVerification => default + | .stopInstances => default + | .terminateClientVpnConnections => default + | .terminateInstances => default + | .unassignIpv6Addresses => default + | .unassignPrivateIpAddresses => default + | .unassignPrivateNatGatewayAddress => default + | .unlockSnapshot => default + | .unmonitorInstances => default + | .updateCapacityManagerMonitoredTagKeys => default + | .updateCapacityManagerOrganizationsAccess => default + | .updateInterruptibleCapacityReservationAllocation => default + | .updateSecurityGroupRuleDescriptionsEgress => default + | .updateSecurityGroupRuleDescriptionsIngress => default + | .validateSecurityGroupQuotasForInterface => default + | .withdrawByoipCidr => default + +/-- The service: every operation with its input, its output and its errors. -/ +abbrev api : Distilled.Api where + Op := Op + In := Input + Out := Output + Err := Error + +/-- The name requests to this service are signed for. -/ +def signingName : String := "ec2" + +def service : ServiceInfo where + name := "AmazonEC2" + version := "2016-11-15" + protocol := .ec2Query + signingName := "ec2" + xmlNamespace := some "http://ec2.amazonaws.com/doc/2016-11-15" + +/-- What the model says about each operation. -/ +def info : Op → OpInfo + | .acceptAddressTransfer => { name := "AcceptAddressTransfer", method := "POST", uri := "/", input := (Shape.schema AcceptAddressTransferRequest), output := (Shape.schema AcceptAddressTransferResult), errors := [] } + | .acceptCapacityReservationBillingOwnership => { name := "AcceptCapacityReservationBillingOwnership", method := "POST", uri := "/", input := (Shape.schema AcceptCapacityReservationBillingOwnershipRequest), output := (Shape.schema AcceptCapacityReservationBillingOwnershipResult), errors := [] } + | .acceptReservedInstancesExchangeQuote => { name := "AcceptReservedInstancesExchangeQuote", method := "POST", uri := "/", input := (Shape.schema AcceptReservedInstancesExchangeQuoteRequest), output := (Shape.schema AcceptReservedInstancesExchangeQuoteResult), errors := [] } + | .acceptTransitGatewayClientVpnAttachment => { name := "AcceptTransitGatewayClientVpnAttachment", method := "POST", uri := "/", input := (Shape.schema AcceptTransitGatewayClientVpnAttachmentRequest), output := (Shape.schema AcceptTransitGatewayClientVpnAttachmentResult), errors := [] } + | .acceptTransitGatewayMulticastDomainAssociations => { name := "AcceptTransitGatewayMulticastDomainAssociations", method := "POST", uri := "/", input := (Shape.schema AcceptTransitGatewayMulticastDomainAssociationsRequest), output := (Shape.schema AcceptTransitGatewayMulticastDomainAssociationsResult), errors := [] } + | .acceptTransitGatewayPeeringAttachment => { name := "AcceptTransitGatewayPeeringAttachment", method := "POST", uri := "/", input := (Shape.schema AcceptTransitGatewayPeeringAttachmentRequest), output := (Shape.schema AcceptTransitGatewayPeeringAttachmentResult), errors := [] } + | .acceptTransitGatewayVpcAttachment => { name := "AcceptTransitGatewayVpcAttachment", method := "POST", uri := "/", input := (Shape.schema AcceptTransitGatewayVpcAttachmentRequest), output := (Shape.schema AcceptTransitGatewayVpcAttachmentResult), errors := [] } + | .acceptVpcEndpointConnections => { name := "AcceptVpcEndpointConnections", method := "POST", uri := "/", input := (Shape.schema AcceptVpcEndpointConnectionsRequest), output := (Shape.schema AcceptVpcEndpointConnectionsResult), errors := [] } + | .acceptVpcPeeringConnection => { name := "AcceptVpcPeeringConnection", method := "POST", uri := "/", input := (Shape.schema AcceptVpcPeeringConnectionRequest), output := (Shape.schema AcceptVpcPeeringConnectionResult), errors := [] } + | .advertiseByoipCidr => { name := "AdvertiseByoipCidr", method := "POST", uri := "/", input := (Shape.schema AdvertiseByoipCidrRequest), output := (Shape.schema AdvertiseByoipCidrResult), errors := [] } + | .allocateAddress => { name := "AllocateAddress", method := "POST", uri := "/", input := (Shape.schema AllocateAddressRequest), output := (Shape.schema AllocateAddressResult), errors := [] } + | .allocateHosts => { name := "AllocateHosts", method := "POST", uri := "/", input := (Shape.schema AllocateHostsRequest), output := (Shape.schema AllocateHostsResult), errors := [] } + | .allocateIpamPoolCidr => { name := "AllocateIpamPoolCidr", method := "POST", uri := "/", input := (Shape.schema AllocateIpamPoolCidrRequest), output := (Shape.schema AllocateIpamPoolCidrResult), errors := [] } + | .applySecurityGroupsToClientVpnTargetNetwork => { name := "ApplySecurityGroupsToClientVpnTargetNetwork", method := "POST", uri := "/", input := (Shape.schema ApplySecurityGroupsToClientVpnTargetNetworkRequest), output := (Shape.schema ApplySecurityGroupsToClientVpnTargetNetworkResult), errors := [] } + | .assignIpv6Addresses => { name := "AssignIpv6Addresses", method := "POST", uri := "/", input := (Shape.schema AssignIpv6AddressesRequest), output := (Shape.schema AssignIpv6AddressesResult), errors := [] } + | .assignPrivateIpAddresses => { name := "AssignPrivateIpAddresses", method := "POST", uri := "/", input := (Shape.schema AssignPrivateIpAddressesRequest), output := (Shape.schema AssignPrivateIpAddressesResult), errors := [] } + | .assignPrivateNatGatewayAddress => { name := "AssignPrivateNatGatewayAddress", method := "POST", uri := "/", input := (Shape.schema AssignPrivateNatGatewayAddressRequest), output := (Shape.schema AssignPrivateNatGatewayAddressResult), errors := [] } + | .associateAddress => { name := "AssociateAddress", method := "POST", uri := "/", input := (Shape.schema AssociateAddressRequest), output := (Shape.schema AssociateAddressResult), errors := [] } + | .associateApplicationStatusCheck => { name := "AssociateApplicationStatusCheck", method := "POST", uri := "/", input := (Shape.schema AssociateApplicationStatusCheckRequest), output := (Shape.schema AssociateApplicationStatusCheckResult), errors := [] } + | .associateCapacityReservationBillingOwner => { name := "AssociateCapacityReservationBillingOwner", method := "POST", uri := "/", input := (Shape.schema AssociateCapacityReservationBillingOwnerRequest), output := (Shape.schema AssociateCapacityReservationBillingOwnerResult), errors := [] } + | .associateClientVpnTargetNetwork => { name := "AssociateClientVpnTargetNetwork", method := "POST", uri := "/", input := (Shape.schema AssociateClientVpnTargetNetworkRequest), output := (Shape.schema AssociateClientVpnTargetNetworkResult), errors := [] } + | .associateDhcpOptions => { name := "AssociateDhcpOptions", method := "POST", uri := "/", input := (Shape.schema AssociateDhcpOptionsRequest), output := (Shape.schema Unit), errors := [] } + | .associateEnclaveCertificateIamRole => { name := "AssociateEnclaveCertificateIamRole", method := "POST", uri := "/", input := (Shape.schema AssociateEnclaveCertificateIamRoleRequest), output := (Shape.schema AssociateEnclaveCertificateIamRoleResult), errors := [] } + | .associateIamInstanceProfile => { name := "AssociateIamInstanceProfile", method := "POST", uri := "/", input := (Shape.schema AssociateIamInstanceProfileRequest), output := (Shape.schema AssociateIamInstanceProfileResult), errors := [] } + | .associateInstanceEventWindow => { name := "AssociateInstanceEventWindow", method := "POST", uri := "/", input := (Shape.schema AssociateInstanceEventWindowRequest), output := (Shape.schema AssociateInstanceEventWindowResult), errors := [] } + | .associateIpamByoasn => { name := "AssociateIpamByoasn", method := "POST", uri := "/", input := (Shape.schema AssociateIpamByoasnRequest), output := (Shape.schema AssociateIpamByoasnResult), errors := [] } + | .associateIpamResourceDiscovery => { name := "AssociateIpamResourceDiscovery", method := "POST", uri := "/", input := (Shape.schema AssociateIpamResourceDiscoveryRequest), output := (Shape.schema AssociateIpamResourceDiscoveryResult), errors := [] } + | .associateKmsKeyId => { name := "AssociateKmsKeyId", method := "POST", uri := "/", input := (Shape.schema AssociateKmsKeyIdRequest), output := (Shape.schema AssociateKmsKeyIdResult), errors := [] } + | .associateNatGatewayAddress => { name := "AssociateNatGatewayAddress", method := "POST", uri := "/", input := (Shape.schema AssociateNatGatewayAddressRequest), output := (Shape.schema AssociateNatGatewayAddressResult), errors := [] } + | .associateNetworkingFlexCostAllocationPolicy => { name := "AssociateNetworkingFlexCostAllocationPolicy", method := "POST", uri := "/", input := (Shape.schema AssociateNetworkingFlexCostAllocationPolicyRequest), output := (Shape.schema AssociateNetworkingFlexCostAllocationPolicyResult), errors := [] } + | .associateRouteServer => { name := "AssociateRouteServer", method := "POST", uri := "/", input := (Shape.schema AssociateRouteServerRequest), output := (Shape.schema AssociateRouteServerResult), errors := [] } + | .associateRouteTable => { name := "AssociateRouteTable", method := "POST", uri := "/", input := (Shape.schema AssociateRouteTableRequest), output := (Shape.schema AssociateRouteTableResult), errors := [] } + | .associateSecurityGroupVpc => { name := "AssociateSecurityGroupVpc", method := "POST", uri := "/", input := (Shape.schema AssociateSecurityGroupVpcRequest), output := (Shape.schema AssociateSecurityGroupVpcResult), errors := [] } + | .associateSubnetCidrBlock => { name := "AssociateSubnetCidrBlock", method := "POST", uri := "/", input := (Shape.schema AssociateSubnetCidrBlockRequest), output := (Shape.schema AssociateSubnetCidrBlockResult), errors := [] } + | .associateTransitGatewayMulticastDomain => { name := "AssociateTransitGatewayMulticastDomain", method := "POST", uri := "/", input := (Shape.schema AssociateTransitGatewayMulticastDomainRequest), output := (Shape.schema AssociateTransitGatewayMulticastDomainResult), errors := [] } + | .associateTransitGatewayPolicyTable => { name := "AssociateTransitGatewayPolicyTable", method := "POST", uri := "/", input := (Shape.schema AssociateTransitGatewayPolicyTableRequest), output := (Shape.schema AssociateTransitGatewayPolicyTableResult), errors := [] } + | .associateTransitGatewayRouteTable => { name := "AssociateTransitGatewayRouteTable", method := "POST", uri := "/", input := (Shape.schema AssociateTransitGatewayRouteTableRequest), output := (Shape.schema AssociateTransitGatewayRouteTableResult), errors := [] } + | .associateTrunkInterface => { name := "AssociateTrunkInterface", method := "POST", uri := "/", input := (Shape.schema AssociateTrunkInterfaceRequest), output := (Shape.schema AssociateTrunkInterfaceResult), errors := [] } + | .associateVpcCidrBlock => { name := "AssociateVpcCidrBlock", method := "POST", uri := "/", input := (Shape.schema AssociateVpcCidrBlockRequest), output := (Shape.schema AssociateVpcCidrBlockResult), errors := [] } + | .attachClassicLinkVpc => { name := "AttachClassicLinkVpc", method := "POST", uri := "/", input := (Shape.schema AttachClassicLinkVpcRequest), output := (Shape.schema AttachClassicLinkVpcResult), errors := [] } + | .attachImageWatermark => { name := "AttachImageWatermark", method := "POST", uri := "/", input := (Shape.schema AttachImageWatermarkRequest), output := (Shape.schema AttachImageWatermarkResult), errors := [] } + | .attachInternetGateway => { name := "AttachInternetGateway", method := "POST", uri := "/", input := (Shape.schema AttachInternetGatewayRequest), output := (Shape.schema Unit), errors := [] } + | .attachNetworkInterface => { name := "AttachNetworkInterface", method := "POST", uri := "/", input := (Shape.schema AttachNetworkInterfaceRequest), output := (Shape.schema AttachNetworkInterfaceResult), errors := [] } + | .attachVerifiedAccessTrustProvider => { name := "AttachVerifiedAccessTrustProvider", method := "POST", uri := "/", input := (Shape.schema AttachVerifiedAccessTrustProviderRequest), output := (Shape.schema AttachVerifiedAccessTrustProviderResult), errors := [] } + | .attachVolume => { name := "AttachVolume", method := "POST", uri := "/", input := (Shape.schema AttachVolumeRequest), output := (Shape.schema VolumeAttachment), errors := [] } + | .attachVpnGateway => { name := "AttachVpnGateway", method := "POST", uri := "/", input := (Shape.schema AttachVpnGatewayRequest), output := (Shape.schema AttachVpnGatewayResult), errors := [] } + | .authorizeClientVpnIngress => { name := "AuthorizeClientVpnIngress", method := "POST", uri := "/", input := (Shape.schema AuthorizeClientVpnIngressRequest), output := (Shape.schema AuthorizeClientVpnIngressResult), errors := [] } + | .authorizeSecurityGroupEgress => { name := "AuthorizeSecurityGroupEgress", method := "POST", uri := "/", input := (Shape.schema AuthorizeSecurityGroupEgressRequest), output := (Shape.schema AuthorizeSecurityGroupEgressResult), errors := [] } + | .authorizeSecurityGroupIngress => { name := "AuthorizeSecurityGroupIngress", method := "POST", uri := "/", input := (Shape.schema AuthorizeSecurityGroupIngressRequest), output := (Shape.schema AuthorizeSecurityGroupIngressResult), errors := [] } + | .batchModifyIpamRoutingPolicyRegistrations => { name := "BatchModifyIpamRoutingPolicyRegistrations", method := "POST", uri := "/", input := (Shape.schema BatchModifyIpamRoutingPolicyRegistrationsRequest), output := (Shape.schema BatchModifyIpamRoutingPolicyRegistrationsResult), errors := [] } + | .bundleInstance => { name := "BundleInstance", method := "POST", uri := "/", input := (Shape.schema BundleInstanceRequest), output := (Shape.schema BundleInstanceResult), errors := [] } + | .cancelBundleTask => { name := "CancelBundleTask", method := "POST", uri := "/", input := (Shape.schema CancelBundleTaskRequest), output := (Shape.schema CancelBundleTaskResult), errors := [] } + | .cancelCapacityReservation => { name := "CancelCapacityReservation", method := "POST", uri := "/", input := (Shape.schema CancelCapacityReservationRequest), output := (Shape.schema CancelCapacityReservationResult), errors := [] } + | .cancelCapacityReservationFleets => { name := "CancelCapacityReservationFleets", method := "POST", uri := "/", input := (Shape.schema CancelCapacityReservationFleetsRequest), output := (Shape.schema CancelCapacityReservationFleetsResult), errors := [] } + | .cancelConversionTask => { name := "CancelConversionTask", method := "POST", uri := "/", input := (Shape.schema CancelConversionRequest), output := (Shape.schema Unit), errors := [] } + | .cancelDeclarativePoliciesReport => { name := "CancelDeclarativePoliciesReport", method := "POST", uri := "/", input := (Shape.schema CancelDeclarativePoliciesReportRequest), output := (Shape.schema CancelDeclarativePoliciesReportResult), errors := [] } + | .cancelExportTask => { name := "CancelExportTask", method := "POST", uri := "/", input := (Shape.schema CancelExportTaskRequest), output := (Shape.schema Unit), errors := [] } + | .cancelImageLaunchPermission => { name := "CancelImageLaunchPermission", method := "POST", uri := "/", input := (Shape.schema CancelImageLaunchPermissionRequest), output := (Shape.schema CancelImageLaunchPermissionResult), errors := [] } + | .cancelImportTask => { name := "CancelImportTask", method := "POST", uri := "/", input := (Shape.schema CancelImportTaskRequest), output := (Shape.schema CancelImportTaskResult), errors := [] } + | .cancelReservedInstancesListing => { name := "CancelReservedInstancesListing", method := "POST", uri := "/", input := (Shape.schema CancelReservedInstancesListingRequest), output := (Shape.schema CancelReservedInstancesListingResult), errors := [] } + | .cancelSpotFleetRequests => { name := "CancelSpotFleetRequests", method := "POST", uri := "/", input := (Shape.schema CancelSpotFleetRequestsRequest), output := (Shape.schema CancelSpotFleetRequestsResponse), errors := [] } + | .cancelSpotInstanceRequests => { name := "CancelSpotInstanceRequests", method := "POST", uri := "/", input := (Shape.schema CancelSpotInstanceRequestsRequest), output := (Shape.schema CancelSpotInstanceRequestsResult), errors := [] } + | .confirmProductInstance => { name := "ConfirmProductInstance", method := "POST", uri := "/", input := (Shape.schema ConfirmProductInstanceRequest), output := (Shape.schema ConfirmProductInstanceResult), errors := [] } + | .copyFpgaImage => { name := "CopyFpgaImage", method := "POST", uri := "/", input := (Shape.schema CopyFpgaImageRequest), output := (Shape.schema CopyFpgaImageResult), errors := [] } + | .copyImage => { name := "CopyImage", method := "POST", uri := "/", input := (Shape.schema CopyImageRequest), output := (Shape.schema CopyImageResult), errors := [] } + | .copySnapshot => { name := "CopySnapshot", method := "POST", uri := "/", input := (Shape.schema CopySnapshotRequest), output := (Shape.schema CopySnapshotResult), errors := [] } + | .copyVolumes => { name := "CopyVolumes", method := "POST", uri := "/", input := (Shape.schema CopyVolumesRequest), output := (Shape.schema CopyVolumesResult), errors := [] } + | .createApplicationStatusCheck => { name := "CreateApplicationStatusCheck", method := "POST", uri := "/", input := (Shape.schema CreateApplicationStatusCheckRequest), output := (Shape.schema CreateApplicationStatusCheckResult), errors := [] } + | .createCapacityManagerDataExport => { name := "CreateCapacityManagerDataExport", method := "POST", uri := "/", input := (Shape.schema CreateCapacityManagerDataExportRequest), output := (Shape.schema CreateCapacityManagerDataExportResult), errors := [] } + | .createCapacityReservation => { name := "CreateCapacityReservation", method := "POST", uri := "/", input := (Shape.schema CreateCapacityReservationRequest), output := (Shape.schema CreateCapacityReservationResult), errors := [] } + | .createCapacityReservationBySplitting => { name := "CreateCapacityReservationBySplitting", method := "POST", uri := "/", input := (Shape.schema CreateCapacityReservationBySplittingRequest), output := (Shape.schema CreateCapacityReservationBySplittingResult), errors := [] } + | .createCapacityReservationCancellationQuote => { name := "CreateCapacityReservationCancellationQuote", method := "POST", uri := "/", input := (Shape.schema CreateCapacityReservationCancellationQuoteRequest), output := (Shape.schema CreateCapacityReservationCancellationQuoteResult), errors := [] } + | .createCapacityReservationDateChangeQuote => { name := "CreateCapacityReservationDateChangeQuote", method := "POST", uri := "/", input := (Shape.schema CreateCapacityReservationDateChangeQuoteRequest), output := (Shape.schema CreateCapacityReservationDateChangeQuoteResult), errors := [] } + | .createCapacityReservationFleet => { name := "CreateCapacityReservationFleet", method := "POST", uri := "/", input := (Shape.schema CreateCapacityReservationFleetRequest), output := (Shape.schema CreateCapacityReservationFleetResult), errors := [] } + | .createCarrierGateway => { name := "CreateCarrierGateway", method := "POST", uri := "/", input := (Shape.schema CreateCarrierGatewayRequest), output := (Shape.schema CreateCarrierGatewayResult), errors := [] } + | .createClientVpnEndpoint => { name := "CreateClientVpnEndpoint", method := "POST", uri := "/", input := (Shape.schema CreateClientVpnEndpointRequest), output := (Shape.schema CreateClientVpnEndpointResult), errors := [] } + | .createClientVpnRoute => { name := "CreateClientVpnRoute", method := "POST", uri := "/", input := (Shape.schema CreateClientVpnRouteRequest), output := (Shape.schema CreateClientVpnRouteResult), errors := [] } + | .createCoipCidr => { name := "CreateCoipCidr", method := "POST", uri := "/", input := (Shape.schema CreateCoipCidrRequest), output := (Shape.schema CreateCoipCidrResult), errors := [] } + | .createCoipPool => { name := "CreateCoipPool", method := "POST", uri := "/", input := (Shape.schema CreateCoipPoolRequest), output := (Shape.schema CreateCoipPoolResult), errors := [] } + | .createCustomerGateway => { name := "CreateCustomerGateway", method := "POST", uri := "/", input := (Shape.schema CreateCustomerGatewayRequest), output := (Shape.schema CreateCustomerGatewayResult), errors := [] } + | .createDefaultSubnet => { name := "CreateDefaultSubnet", method := "POST", uri := "/", input := (Shape.schema CreateDefaultSubnetRequest), output := (Shape.schema CreateDefaultSubnetResult), errors := [] } + | .createDefaultVpc => { name := "CreateDefaultVpc", method := "POST", uri := "/", input := (Shape.schema CreateDefaultVpcRequest), output := (Shape.schema CreateDefaultVpcResult), errors := [] } + | .createDelegateMacVolumeOwnershipTask => { name := "CreateDelegateMacVolumeOwnershipTask", method := "POST", uri := "/", input := (Shape.schema CreateDelegateMacVolumeOwnershipTaskRequest), output := (Shape.schema CreateDelegateMacVolumeOwnershipTaskResult), errors := [] } + | .createDhcpOptions => { name := "CreateDhcpOptions", method := "POST", uri := "/", input := (Shape.schema CreateDhcpOptionsRequest), output := (Shape.schema CreateDhcpOptionsResult), errors := [] } + | .createEgressOnlyInternetGateway => { name := "CreateEgressOnlyInternetGateway", method := "POST", uri := "/", input := (Shape.schema CreateEgressOnlyInternetGatewayRequest), output := (Shape.schema CreateEgressOnlyInternetGatewayResult), errors := [] } + | .createFleet => { name := "CreateFleet", method := "POST", uri := "/", input := (Shape.schema CreateFleetRequest), output := (Shape.schema CreateFleetResult), errors := [] } + | .createFlowLogs => { name := "CreateFlowLogs", method := "POST", uri := "/", input := (Shape.schema CreateFlowLogsRequest), output := (Shape.schema CreateFlowLogsResult), errors := [] } + | .createFpgaImage => { name := "CreateFpgaImage", method := "POST", uri := "/", input := (Shape.schema CreateFpgaImageRequest), output := (Shape.schema CreateFpgaImageResult), errors := [] } + | .createImage => { name := "CreateImage", method := "POST", uri := "/", input := (Shape.schema CreateImageRequest), output := (Shape.schema CreateImageResult), errors := [] } + | .createImageUsageReport => { name := "CreateImageUsageReport", method := "POST", uri := "/", input := (Shape.schema CreateImageUsageReportRequest), output := (Shape.schema CreateImageUsageReportResult), errors := [] } + | .createInstanceConnectEndpoint => { name := "CreateInstanceConnectEndpoint", method := "POST", uri := "/", input := (Shape.schema CreateInstanceConnectEndpointRequest), output := (Shape.schema CreateInstanceConnectEndpointResult), errors := [] } + | .createInstanceEventWindow => { name := "CreateInstanceEventWindow", method := "POST", uri := "/", input := (Shape.schema CreateInstanceEventWindowRequest), output := (Shape.schema CreateInstanceEventWindowResult), errors := [] } + | .createInstanceExportTask => { name := "CreateInstanceExportTask", method := "POST", uri := "/", input := (Shape.schema CreateInstanceExportTaskRequest), output := (Shape.schema CreateInstanceExportTaskResult), errors := [] } + | .createInternetGateway => { name := "CreateInternetGateway", method := "POST", uri := "/", input := (Shape.schema CreateInternetGatewayRequest), output := (Shape.schema CreateInternetGatewayResult), errors := [] } + | .createInterruptibleCapacityReservationAllocation => { name := "CreateInterruptibleCapacityReservationAllocation", method := "POST", uri := "/", input := (Shape.schema CreateInterruptibleCapacityReservationAllocationRequest), output := (Shape.schema CreateInterruptibleCapacityReservationAllocationResult), errors := [] } + | .createIpam => { name := "CreateIpam", method := "POST", uri := "/", input := (Shape.schema CreateIpamRequest), output := (Shape.schema CreateIpamResult), errors := [] } + | .createIpamExternalResourceVerificationToken => { name := "CreateIpamExternalResourceVerificationToken", method := "POST", uri := "/", input := (Shape.schema CreateIpamExternalResourceVerificationTokenRequest), output := (Shape.schema CreateIpamExternalResourceVerificationTokenResult), errors := [] } + | .createIpamInternetRegistryAssociation => { name := "CreateIpamInternetRegistryAssociation", method := "POST", uri := "/", input := (Shape.schema CreateIpamInternetRegistryAssociationRequest), output := (Shape.schema CreateIpamInternetRegistryAssociationResult), errors := [] } + | .createIpamPolicy => { name := "CreateIpamPolicy", method := "POST", uri := "/", input := (Shape.schema CreateIpamPolicyRequest), output := (Shape.schema CreateIpamPolicyResult), errors := [] } + | .createIpamPool => { name := "CreateIpamPool", method := "POST", uri := "/", input := (Shape.schema CreateIpamPoolRequest), output := (Shape.schema CreateIpamPoolResult), errors := [] } + | .createIpamPrefixListResolver => { name := "CreateIpamPrefixListResolver", method := "POST", uri := "/", input := (Shape.schema CreateIpamPrefixListResolverRequest), output := (Shape.schema CreateIpamPrefixListResolverResult), errors := [] } + | .createIpamPrefixListResolverTarget => { name := "CreateIpamPrefixListResolverTarget", method := "POST", uri := "/", input := (Shape.schema CreateIpamPrefixListResolverTargetRequest), output := (Shape.schema CreateIpamPrefixListResolverTargetResult), errors := [] } + | .createIpamResourceDiscovery => { name := "CreateIpamResourceDiscovery", method := "POST", uri := "/", input := (Shape.schema CreateIpamResourceDiscoveryRequest), output := (Shape.schema CreateIpamResourceDiscoveryResult), errors := [] } + | .createIpamRoutingPolicyRegistration => { name := "CreateIpamRoutingPolicyRegistration", method := "POST", uri := "/", input := (Shape.schema CreateIpamRoutingPolicyRegistrationRequest), output := (Shape.schema CreateIpamRoutingPolicyRegistrationResult), errors := [] } + | .createIpamScope => { name := "CreateIpamScope", method := "POST", uri := "/", input := (Shape.schema CreateIpamScopeRequest), output := (Shape.schema CreateIpamScopeResult), errors := [] } + | .createKeyPair => { name := "CreateKeyPair", method := "POST", uri := "/", input := (Shape.schema CreateKeyPairRequest), output := (Shape.schema KeyPair), errors := [] } + | .createLaunchTemplate => { name := "CreateLaunchTemplate", method := "POST", uri := "/", input := (Shape.schema CreateLaunchTemplateRequest), output := (Shape.schema CreateLaunchTemplateResult), errors := [] } + | .createLaunchTemplateVersion => { name := "CreateLaunchTemplateVersion", method := "POST", uri := "/", input := (Shape.schema CreateLaunchTemplateVersionRequest), output := (Shape.schema CreateLaunchTemplateVersionResult), errors := [] } + | .createLocalGatewayRoute => { name := "CreateLocalGatewayRoute", method := "POST", uri := "/", input := (Shape.schema CreateLocalGatewayRouteRequest), output := (Shape.schema CreateLocalGatewayRouteResult), errors := [] } + | .createLocalGatewayRouteTable => { name := "CreateLocalGatewayRouteTable", method := "POST", uri := "/", input := (Shape.schema CreateLocalGatewayRouteTableRequest), output := (Shape.schema CreateLocalGatewayRouteTableResult), errors := [] } + | .createLocalGatewayRouteTableVirtualInterfaceGroupAssociation => { name := "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation", method := "POST", uri := "/", input := (Shape.schema CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest), output := (Shape.schema CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult), errors := [] } + | .createLocalGatewayRouteTableVpcAssociation => { name := "CreateLocalGatewayRouteTableVpcAssociation", method := "POST", uri := "/", input := (Shape.schema CreateLocalGatewayRouteTableVpcAssociationRequest), output := (Shape.schema CreateLocalGatewayRouteTableVpcAssociationResult), errors := [] } + | .createLocalGatewayVirtualInterface => { name := "CreateLocalGatewayVirtualInterface", method := "POST", uri := "/", input := (Shape.schema CreateLocalGatewayVirtualInterfaceRequest), output := (Shape.schema CreateLocalGatewayVirtualInterfaceResult), errors := [] } + | .createLocalGatewayVirtualInterfaceGroup => { name := "CreateLocalGatewayVirtualInterfaceGroup", method := "POST", uri := "/", input := (Shape.schema CreateLocalGatewayVirtualInterfaceGroupRequest), output := (Shape.schema CreateLocalGatewayVirtualInterfaceGroupResult), errors := [] } + | .createMacSystemIntegrityProtectionModificationTask => { name := "CreateMacSystemIntegrityProtectionModificationTask", method := "POST", uri := "/", input := (Shape.schema CreateMacSystemIntegrityProtectionModificationTaskRequest), output := (Shape.schema CreateMacSystemIntegrityProtectionModificationTaskResult), errors := [] } + | .createManagedPrefixList => { name := "CreateManagedPrefixList", method := "POST", uri := "/", input := (Shape.schema CreateManagedPrefixListRequest), output := (Shape.schema CreateManagedPrefixListResult), errors := [] } + | .createMetricCategory => { name := "CreateMetricCategory", method := "POST", uri := "/", input := (Shape.schema CreateMetricCategoryRequest), output := (Shape.schema CreateMetricCategoryResult), errors := [] } + | .createNatGateway => { name := "CreateNatGateway", method := "POST", uri := "/", input := (Shape.schema CreateNatGatewayRequest), output := (Shape.schema CreateNatGatewayResult), errors := [] } + | .createNetworkAcl => { name := "CreateNetworkAcl", method := "POST", uri := "/", input := (Shape.schema CreateNetworkAclRequest), output := (Shape.schema CreateNetworkAclResult), errors := [] } + | .createNetworkAclEntry => { name := "CreateNetworkAclEntry", method := "POST", uri := "/", input := (Shape.schema CreateNetworkAclEntryRequest), output := (Shape.schema Unit), errors := [] } + | .createNetworkInsightsAccessScope => { name := "CreateNetworkInsightsAccessScope", method := "POST", uri := "/", input := (Shape.schema CreateNetworkInsightsAccessScopeRequest), output := (Shape.schema CreateNetworkInsightsAccessScopeResult), errors := [] } + | .createNetworkInsightsPath => { name := "CreateNetworkInsightsPath", method := "POST", uri := "/", input := (Shape.schema CreateNetworkInsightsPathRequest), output := (Shape.schema CreateNetworkInsightsPathResult), errors := [] } + | .createNetworkInterface => { name := "CreateNetworkInterface", method := "POST", uri := "/", input := (Shape.schema CreateNetworkInterfaceRequest), output := (Shape.schema CreateNetworkInterfaceResult), errors := [] } + | .createNetworkInterfacePermission => { name := "CreateNetworkInterfacePermission", method := "POST", uri := "/", input := (Shape.schema CreateNetworkInterfacePermissionRequest), output := (Shape.schema CreateNetworkInterfacePermissionResult), errors := [] } + | .createNetworkingFlexCostAllocationPolicy => { name := "CreateNetworkingFlexCostAllocationPolicy", method := "POST", uri := "/", input := (Shape.schema CreateNetworkingFlexCostAllocationPolicyRequest), output := (Shape.schema CreateNetworkingFlexCostAllocationPolicyResult), errors := [] } + | .createPlacementGroup => { name := "CreatePlacementGroup", method := "POST", uri := "/", input := (Shape.schema CreatePlacementGroupRequest), output := (Shape.schema CreatePlacementGroupResult), errors := [] } + | .createPublicIpv4Pool => { name := "CreatePublicIpv4Pool", method := "POST", uri := "/", input := (Shape.schema CreatePublicIpv4PoolRequest), output := (Shape.schema CreatePublicIpv4PoolResult), errors := [] } + | .createReplaceRootVolumeTask => { name := "CreateReplaceRootVolumeTask", method := "POST", uri := "/", input := (Shape.schema CreateReplaceRootVolumeTaskRequest), output := (Shape.schema CreateReplaceRootVolumeTaskResult), errors := [] } + | .createReservedInstancesListing => { name := "CreateReservedInstancesListing", method := "POST", uri := "/", input := (Shape.schema CreateReservedInstancesListingRequest), output := (Shape.schema CreateReservedInstancesListingResult), errors := [] } + | .createRestoreImageTask => { name := "CreateRestoreImageTask", method := "POST", uri := "/", input := (Shape.schema CreateRestoreImageTaskRequest), output := (Shape.schema CreateRestoreImageTaskResult), errors := [] } + | .createRoute => { name := "CreateRoute", method := "POST", uri := "/", input := (Shape.schema CreateRouteRequest), output := (Shape.schema CreateRouteResult), errors := [] } + | .createRouteServer => { name := "CreateRouteServer", method := "POST", uri := "/", input := (Shape.schema CreateRouteServerRequest), output := (Shape.schema CreateRouteServerResult), errors := [] } + | .createRouteServerEndpoint => { name := "CreateRouteServerEndpoint", method := "POST", uri := "/", input := (Shape.schema CreateRouteServerEndpointRequest), output := (Shape.schema CreateRouteServerEndpointResult), errors := [] } + | .createRouteServerPeer => { name := "CreateRouteServerPeer", method := "POST", uri := "/", input := (Shape.schema CreateRouteServerPeerRequest), output := (Shape.schema CreateRouteServerPeerResult), errors := [] } + | .createRouteTable => { name := "CreateRouteTable", method := "POST", uri := "/", input := (Shape.schema CreateRouteTableRequest), output := (Shape.schema CreateRouteTableResult), errors := [] } + | .createSecondaryNetwork => { name := "CreateSecondaryNetwork", method := "POST", uri := "/", input := (Shape.schema CreateSecondaryNetworkRequest), output := (Shape.schema CreateSecondaryNetworkResult), errors := [] } + | .createSecondarySubnet => { name := "CreateSecondarySubnet", method := "POST", uri := "/", input := (Shape.schema CreateSecondarySubnetRequest), output := (Shape.schema CreateSecondarySubnetResult), errors := [] } + | .createSecurityGroup => { name := "CreateSecurityGroup", method := "POST", uri := "/", input := (Shape.schema CreateSecurityGroupRequest), output := (Shape.schema CreateSecurityGroupResult), errors := [] } + | .createSnapshot => { name := "CreateSnapshot", method := "POST", uri := "/", input := (Shape.schema CreateSnapshotRequest), output := (Shape.schema Snapshot), errors := [] } + | .createSnapshots => { name := "CreateSnapshots", method := "POST", uri := "/", input := (Shape.schema CreateSnapshotsRequest), output := (Shape.schema CreateSnapshotsResult), errors := [] } + | .createSpotDatafeedSubscription => { name := "CreateSpotDatafeedSubscription", method := "POST", uri := "/", input := (Shape.schema CreateSpotDatafeedSubscriptionRequest), output := (Shape.schema CreateSpotDatafeedSubscriptionResult), errors := [] } + | .createStoreImageTask => { name := "CreateStoreImageTask", method := "POST", uri := "/", input := (Shape.schema CreateStoreImageTaskRequest), output := (Shape.schema CreateStoreImageTaskResult), errors := [] } + | .createSubnet => { name := "CreateSubnet", method := "POST", uri := "/", input := (Shape.schema CreateSubnetRequest), output := (Shape.schema CreateSubnetResult), errors := [] } + | .createSubnetCidrReservation => { name := "CreateSubnetCidrReservation", method := "POST", uri := "/", input := (Shape.schema CreateSubnetCidrReservationRequest), output := (Shape.schema CreateSubnetCidrReservationResult), errors := [] } + | .createTags => { name := "CreateTags", method := "POST", uri := "/", input := (Shape.schema CreateTagsRequest), output := (Shape.schema Unit), errors := [] } + | .createTrafficMirrorFilter => { name := "CreateTrafficMirrorFilter", method := "POST", uri := "/", input := (Shape.schema CreateTrafficMirrorFilterRequest), output := (Shape.schema CreateTrafficMirrorFilterResult), errors := [] } + | .createTrafficMirrorFilterRule => { name := "CreateTrafficMirrorFilterRule", method := "POST", uri := "/", input := (Shape.schema CreateTrafficMirrorFilterRuleRequest), output := (Shape.schema CreateTrafficMirrorFilterRuleResult), errors := [] } + | .createTrafficMirrorSession => { name := "CreateTrafficMirrorSession", method := "POST", uri := "/", input := (Shape.schema CreateTrafficMirrorSessionRequest), output := (Shape.schema CreateTrafficMirrorSessionResult), errors := [] } + | .createTrafficMirrorTarget => { name := "CreateTrafficMirrorTarget", method := "POST", uri := "/", input := (Shape.schema CreateTrafficMirrorTargetRequest), output := (Shape.schema CreateTrafficMirrorTargetResult), errors := [] } + | .createTransitGateway => { name := "CreateTransitGateway", method := "POST", uri := "/", input := (Shape.schema CreateTransitGatewayRequest), output := (Shape.schema CreateTransitGatewayResult), errors := [] } + | .createTransitGatewayConnect => { name := "CreateTransitGatewayConnect", method := "POST", uri := "/", input := (Shape.schema CreateTransitGatewayConnectRequest), output := (Shape.schema CreateTransitGatewayConnectResult), errors := [] } + | .createTransitGatewayConnectPeer => { name := "CreateTransitGatewayConnectPeer", method := "POST", uri := "/", input := (Shape.schema CreateTransitGatewayConnectPeerRequest), output := (Shape.schema CreateTransitGatewayConnectPeerResult), errors := [] } + | .createTransitGatewayMeteringPolicy => { name := "CreateTransitGatewayMeteringPolicy", method := "POST", uri := "/", input := (Shape.schema CreateTransitGatewayMeteringPolicyRequest), output := (Shape.schema CreateTransitGatewayMeteringPolicyResult), errors := [] } + | .createTransitGatewayMeteringPolicyEntry => { name := "CreateTransitGatewayMeteringPolicyEntry", method := "POST", uri := "/", input := (Shape.schema CreateTransitGatewayMeteringPolicyEntryRequest), output := (Shape.schema CreateTransitGatewayMeteringPolicyEntryResult), errors := [] } + | .createTransitGatewayMulticastDomain => { name := "CreateTransitGatewayMulticastDomain", method := "POST", uri := "/", input := (Shape.schema CreateTransitGatewayMulticastDomainRequest), output := (Shape.schema CreateTransitGatewayMulticastDomainResult), errors := [] } + | .createTransitGatewayNetworkFunctionAttachment => { name := "CreateTransitGatewayNetworkFunctionAttachment", method := "POST", uri := "/", input := (Shape.schema CreateTransitGatewayNetworkFunctionAttachmentRequest), output := (Shape.schema CreateTransitGatewayNetworkFunctionAttachmentResult), errors := [] } + | .createTransitGatewayPeeringAttachment => { name := "CreateTransitGatewayPeeringAttachment", method := "POST", uri := "/", input := (Shape.schema CreateTransitGatewayPeeringAttachmentRequest), output := (Shape.schema CreateTransitGatewayPeeringAttachmentResult), errors := [] } + | .createTransitGatewayPolicyTable => { name := "CreateTransitGatewayPolicyTable", method := "POST", uri := "/", input := (Shape.schema CreateTransitGatewayPolicyTableRequest), output := (Shape.schema CreateTransitGatewayPolicyTableResult), errors := [] } + | .createTransitGatewayPolicyTableEntry => { name := "CreateTransitGatewayPolicyTableEntry", method := "POST", uri := "/", input := (Shape.schema CreateTransitGatewayPolicyTableEntryRequest), output := (Shape.schema CreateTransitGatewayPolicyTableEntryResult), errors := [] } + | .createTransitGatewayPrefixListReference => { name := "CreateTransitGatewayPrefixListReference", method := "POST", uri := "/", input := (Shape.schema CreateTransitGatewayPrefixListReferenceRequest), output := (Shape.schema CreateTransitGatewayPrefixListReferenceResult), errors := [] } + | .createTransitGatewayRoute => { name := "CreateTransitGatewayRoute", method := "POST", uri := "/", input := (Shape.schema CreateTransitGatewayRouteRequest), output := (Shape.schema CreateTransitGatewayRouteResult), errors := [] } + | .createTransitGatewayRouteTable => { name := "CreateTransitGatewayRouteTable", method := "POST", uri := "/", input := (Shape.schema CreateTransitGatewayRouteTableRequest), output := (Shape.schema CreateTransitGatewayRouteTableResult), errors := [] } + | .createTransitGatewayRouteTableAnnouncement => { name := "CreateTransitGatewayRouteTableAnnouncement", method := "POST", uri := "/", input := (Shape.schema CreateTransitGatewayRouteTableAnnouncementRequest), output := (Shape.schema CreateTransitGatewayRouteTableAnnouncementResult), errors := [] } + | .createTransitGatewayVpcAttachment => { name := "CreateTransitGatewayVpcAttachment", method := "POST", uri := "/", input := (Shape.schema CreateTransitGatewayVpcAttachmentRequest), output := (Shape.schema CreateTransitGatewayVpcAttachmentResult), errors := [] } + | .createVerifiedAccessEndpoint => { name := "CreateVerifiedAccessEndpoint", method := "POST", uri := "/", input := (Shape.schema CreateVerifiedAccessEndpointRequest), output := (Shape.schema CreateVerifiedAccessEndpointResult), errors := [] } + | .createVerifiedAccessGroup => { name := "CreateVerifiedAccessGroup", method := "POST", uri := "/", input := (Shape.schema CreateVerifiedAccessGroupRequest), output := (Shape.schema CreateVerifiedAccessGroupResult), errors := [] } + | .createVerifiedAccessInstance => { name := "CreateVerifiedAccessInstance", method := "POST", uri := "/", input := (Shape.schema CreateVerifiedAccessInstanceRequest), output := (Shape.schema CreateVerifiedAccessInstanceResult), errors := [] } + | .createVerifiedAccessTrustProvider => { name := "CreateVerifiedAccessTrustProvider", method := "POST", uri := "/", input := (Shape.schema CreateVerifiedAccessTrustProviderRequest), output := (Shape.schema CreateVerifiedAccessTrustProviderResult), errors := [] } + | .createVolume => { name := "CreateVolume", method := "POST", uri := "/", input := (Shape.schema CreateVolumeRequest), output := (Shape.schema Volume), errors := [] } + | .createVpc => { name := "CreateVpc", method := "POST", uri := "/", input := (Shape.schema CreateVpcRequest), output := (Shape.schema CreateVpcResult), errors := [] } + | .createVpcBlockPublicAccessExclusion => { name := "CreateVpcBlockPublicAccessExclusion", method := "POST", uri := "/", input := (Shape.schema CreateVpcBlockPublicAccessExclusionRequest), output := (Shape.schema CreateVpcBlockPublicAccessExclusionResult), errors := [] } + | .createVpcEncryptionControl => { name := "CreateVpcEncryptionControl", method := "POST", uri := "/", input := (Shape.schema CreateVpcEncryptionControlRequest), output := (Shape.schema CreateVpcEncryptionControlResult), errors := [] } + | .createVpcEndpoint => { name := "CreateVpcEndpoint", method := "POST", uri := "/", input := (Shape.schema CreateVpcEndpointRequest), output := (Shape.schema CreateVpcEndpointResult), errors := [] } + | .createVpcEndpointConnectionNotification => { name := "CreateVpcEndpointConnectionNotification", method := "POST", uri := "/", input := (Shape.schema CreateVpcEndpointConnectionNotificationRequest), output := (Shape.schema CreateVpcEndpointConnectionNotificationResult), errors := [] } + | .createVpcEndpointServiceConfiguration => { name := "CreateVpcEndpointServiceConfiguration", method := "POST", uri := "/", input := (Shape.schema CreateVpcEndpointServiceConfigurationRequest), output := (Shape.schema CreateVpcEndpointServiceConfigurationResult), errors := [] } + | .createVpcPeeringConnection => { name := "CreateVpcPeeringConnection", method := "POST", uri := "/", input := (Shape.schema CreateVpcPeeringConnectionRequest), output := (Shape.schema CreateVpcPeeringConnectionResult), errors := [] } + | .createVpnConcentrator => { name := "CreateVpnConcentrator", method := "POST", uri := "/", input := (Shape.schema CreateVpnConcentratorRequest), output := (Shape.schema CreateVpnConcentratorResult), errors := [] } + | .createVpnConnection => { name := "CreateVpnConnection", method := "POST", uri := "/", input := (Shape.schema CreateVpnConnectionRequest), output := (Shape.schema CreateVpnConnectionResult), errors := [] } + | .createVpnConnectionRoute => { name := "CreateVpnConnectionRoute", method := "POST", uri := "/", input := (Shape.schema CreateVpnConnectionRouteRequest), output := (Shape.schema Unit), errors := [] } + | .createVpnGateway => { name := "CreateVpnGateway", method := "POST", uri := "/", input := (Shape.schema CreateVpnGatewayRequest), output := (Shape.schema CreateVpnGatewayResult), errors := [] } + | .deleteApplicationStatusCheck => { name := "DeleteApplicationStatusCheck", method := "POST", uri := "/", input := (Shape.schema DeleteApplicationStatusCheckRequest), output := (Shape.schema DeleteApplicationStatusCheckResult), errors := [] } + | .deleteCapacityManagerDataExport => { name := "DeleteCapacityManagerDataExport", method := "POST", uri := "/", input := (Shape.schema DeleteCapacityManagerDataExportRequest), output := (Shape.schema DeleteCapacityManagerDataExportResult), errors := [] } + | .deleteCarrierGateway => { name := "DeleteCarrierGateway", method := "POST", uri := "/", input := (Shape.schema DeleteCarrierGatewayRequest), output := (Shape.schema DeleteCarrierGatewayResult), errors := [] } + | .deleteClientVpnEndpoint => { name := "DeleteClientVpnEndpoint", method := "POST", uri := "/", input := (Shape.schema DeleteClientVpnEndpointRequest), output := (Shape.schema DeleteClientVpnEndpointResult), errors := [] } + | .deleteClientVpnEndpointAuthorizationPolicy => { name := "DeleteClientVpnEndpointAuthorizationPolicy", method := "POST", uri := "/", input := (Shape.schema DeleteClientVpnEndpointAuthorizationPolicyRequest), output := (Shape.schema DeleteClientVpnEndpointAuthorizationPolicyResult), errors := [] } + | .deleteClientVpnRoute => { name := "DeleteClientVpnRoute", method := "POST", uri := "/", input := (Shape.schema DeleteClientVpnRouteRequest), output := (Shape.schema DeleteClientVpnRouteResult), errors := [] } + | .deleteCoipCidr => { name := "DeleteCoipCidr", method := "POST", uri := "/", input := (Shape.schema DeleteCoipCidrRequest), output := (Shape.schema DeleteCoipCidrResult), errors := [] } + | .deleteCoipPool => { name := "DeleteCoipPool", method := "POST", uri := "/", input := (Shape.schema DeleteCoipPoolRequest), output := (Shape.schema DeleteCoipPoolResult), errors := [] } + | .deleteCustomerGateway => { name := "DeleteCustomerGateway", method := "POST", uri := "/", input := (Shape.schema DeleteCustomerGatewayRequest), output := (Shape.schema Unit), errors := [] } + | .deleteDhcpOptions => { name := "DeleteDhcpOptions", method := "POST", uri := "/", input := (Shape.schema DeleteDhcpOptionsRequest), output := (Shape.schema Unit), errors := [] } + | .deleteEgressOnlyInternetGateway => { name := "DeleteEgressOnlyInternetGateway", method := "POST", uri := "/", input := (Shape.schema DeleteEgressOnlyInternetGatewayRequest), output := (Shape.schema DeleteEgressOnlyInternetGatewayResult), errors := [] } + | .deleteFleets => { name := "DeleteFleets", method := "POST", uri := "/", input := (Shape.schema DeleteFleetsRequest), output := (Shape.schema DeleteFleetsResult), errors := [] } + | .deleteFlowLogs => { name := "DeleteFlowLogs", method := "POST", uri := "/", input := (Shape.schema DeleteFlowLogsRequest), output := (Shape.schema DeleteFlowLogsResult), errors := [] } + | .deleteFpgaImage => { name := "DeleteFpgaImage", method := "POST", uri := "/", input := (Shape.schema DeleteFpgaImageRequest), output := (Shape.schema DeleteFpgaImageResult), errors := [] } + | .deleteImageUsageReport => { name := "DeleteImageUsageReport", method := "POST", uri := "/", input := (Shape.schema DeleteImageUsageReportRequest), output := (Shape.schema DeleteImageUsageReportResult), errors := [] } + | .deleteInstanceConnectEndpoint => { name := "DeleteInstanceConnectEndpoint", method := "POST", uri := "/", input := (Shape.schema DeleteInstanceConnectEndpointRequest), output := (Shape.schema DeleteInstanceConnectEndpointResult), errors := [] } + | .deleteInstanceEventWindow => { name := "DeleteInstanceEventWindow", method := "POST", uri := "/", input := (Shape.schema DeleteInstanceEventWindowRequest), output := (Shape.schema DeleteInstanceEventWindowResult), errors := [] } + | .deleteInternetGateway => { name := "DeleteInternetGateway", method := "POST", uri := "/", input := (Shape.schema DeleteInternetGatewayRequest), output := (Shape.schema Unit), errors := [] } + | .deleteIpam => { name := "DeleteIpam", method := "POST", uri := "/", input := (Shape.schema DeleteIpamRequest), output := (Shape.schema DeleteIpamResult), errors := [] } + | .deleteIpamExternalResourceVerificationToken => { name := "DeleteIpamExternalResourceVerificationToken", method := "POST", uri := "/", input := (Shape.schema DeleteIpamExternalResourceVerificationTokenRequest), output := (Shape.schema DeleteIpamExternalResourceVerificationTokenResult), errors := [] } + | .deleteIpamInternetRegistryAssociation => { name := "DeleteIpamInternetRegistryAssociation", method := "POST", uri := "/", input := (Shape.schema DeleteIpamInternetRegistryAssociationRequest), output := (Shape.schema DeleteIpamInternetRegistryAssociationResult), errors := [] } + | .deleteIpamPolicy => { name := "DeleteIpamPolicy", method := "POST", uri := "/", input := (Shape.schema DeleteIpamPolicyRequest), output := (Shape.schema DeleteIpamPolicyResult), errors := [] } + | .deleteIpamPool => { name := "DeleteIpamPool", method := "POST", uri := "/", input := (Shape.schema DeleteIpamPoolRequest), output := (Shape.schema DeleteIpamPoolResult), errors := [] } + | .deleteIpamPrefixListResolver => { name := "DeleteIpamPrefixListResolver", method := "POST", uri := "/", input := (Shape.schema DeleteIpamPrefixListResolverRequest), output := (Shape.schema DeleteIpamPrefixListResolverResult), errors := [] } + | .deleteIpamPrefixListResolverTarget => { name := "DeleteIpamPrefixListResolverTarget", method := "POST", uri := "/", input := (Shape.schema DeleteIpamPrefixListResolverTargetRequest), output := (Shape.schema DeleteIpamPrefixListResolverTargetResult), errors := [] } + | .deleteIpamResourceDiscovery => { name := "DeleteIpamResourceDiscovery", method := "POST", uri := "/", input := (Shape.schema DeleteIpamResourceDiscoveryRequest), output := (Shape.schema DeleteIpamResourceDiscoveryResult), errors := [] } + | .deleteIpamRoutingPolicyRegistration => { name := "DeleteIpamRoutingPolicyRegistration", method := "POST", uri := "/", input := (Shape.schema DeleteIpamRoutingPolicyRegistrationRequest), output := (Shape.schema DeleteIpamRoutingPolicyRegistrationResult), errors := [] } + | .deleteIpamScope => { name := "DeleteIpamScope", method := "POST", uri := "/", input := (Shape.schema DeleteIpamScopeRequest), output := (Shape.schema DeleteIpamScopeResult), errors := [] } + | .deleteKeyPair => { name := "DeleteKeyPair", method := "POST", uri := "/", input := (Shape.schema DeleteKeyPairRequest), output := (Shape.schema DeleteKeyPairResult), errors := [] } + | .deleteLaunchTemplate => { name := "DeleteLaunchTemplate", method := "POST", uri := "/", input := (Shape.schema DeleteLaunchTemplateRequest), output := (Shape.schema DeleteLaunchTemplateResult), errors := [] } + | .deleteLaunchTemplateVersions => { name := "DeleteLaunchTemplateVersions", method := "POST", uri := "/", input := (Shape.schema DeleteLaunchTemplateVersionsRequest), output := (Shape.schema DeleteLaunchTemplateVersionsResult), errors := [] } + | .deleteLocalGatewayRoute => { name := "DeleteLocalGatewayRoute", method := "POST", uri := "/", input := (Shape.schema DeleteLocalGatewayRouteRequest), output := (Shape.schema DeleteLocalGatewayRouteResult), errors := [] } + | .deleteLocalGatewayRouteTable => { name := "DeleteLocalGatewayRouteTable", method := "POST", uri := "/", input := (Shape.schema DeleteLocalGatewayRouteTableRequest), output := (Shape.schema DeleteLocalGatewayRouteTableResult), errors := [] } + | .deleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation => { name := "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation", method := "POST", uri := "/", input := (Shape.schema DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest), output := (Shape.schema DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult), errors := [] } + | .deleteLocalGatewayRouteTableVpcAssociation => { name := "DeleteLocalGatewayRouteTableVpcAssociation", method := "POST", uri := "/", input := (Shape.schema DeleteLocalGatewayRouteTableVpcAssociationRequest), output := (Shape.schema DeleteLocalGatewayRouteTableVpcAssociationResult), errors := [] } + | .deleteLocalGatewayVirtualInterface => { name := "DeleteLocalGatewayVirtualInterface", method := "POST", uri := "/", input := (Shape.schema DeleteLocalGatewayVirtualInterfaceRequest), output := (Shape.schema DeleteLocalGatewayVirtualInterfaceResult), errors := [] } + | .deleteLocalGatewayVirtualInterfaceGroup => { name := "DeleteLocalGatewayVirtualInterfaceGroup", method := "POST", uri := "/", input := (Shape.schema DeleteLocalGatewayVirtualInterfaceGroupRequest), output := (Shape.schema DeleteLocalGatewayVirtualInterfaceGroupResult), errors := [] } + | .deleteManagedPrefixList => { name := "DeleteManagedPrefixList", method := "POST", uri := "/", input := (Shape.schema DeleteManagedPrefixListRequest), output := (Shape.schema DeleteManagedPrefixListResult), errors := [] } + | .deleteMetricCategory => { name := "DeleteMetricCategory", method := "POST", uri := "/", input := (Shape.schema DeleteMetricCategoryRequest), output := (Shape.schema DeleteMetricCategoryResult), errors := [] } + | .deleteNatGateway => { name := "DeleteNatGateway", method := "POST", uri := "/", input := (Shape.schema DeleteNatGatewayRequest), output := (Shape.schema DeleteNatGatewayResult), errors := [] } + | .deleteNetworkAcl => { name := "DeleteNetworkAcl", method := "POST", uri := "/", input := (Shape.schema DeleteNetworkAclRequest), output := (Shape.schema Unit), errors := [] } + | .deleteNetworkAclEntry => { name := "DeleteNetworkAclEntry", method := "POST", uri := "/", input := (Shape.schema DeleteNetworkAclEntryRequest), output := (Shape.schema Unit), errors := [] } + | .deleteNetworkInsightsAccessScope => { name := "DeleteNetworkInsightsAccessScope", method := "POST", uri := "/", input := (Shape.schema DeleteNetworkInsightsAccessScopeRequest), output := (Shape.schema DeleteNetworkInsightsAccessScopeResult), errors := [] } + | .deleteNetworkInsightsAccessScopeAnalysis => { name := "DeleteNetworkInsightsAccessScopeAnalysis", method := "POST", uri := "/", input := (Shape.schema DeleteNetworkInsightsAccessScopeAnalysisRequest), output := (Shape.schema DeleteNetworkInsightsAccessScopeAnalysisResult), errors := [] } + | .deleteNetworkInsightsAnalysis => { name := "DeleteNetworkInsightsAnalysis", method := "POST", uri := "/", input := (Shape.schema DeleteNetworkInsightsAnalysisRequest), output := (Shape.schema DeleteNetworkInsightsAnalysisResult), errors := [] } + | .deleteNetworkInsightsPath => { name := "DeleteNetworkInsightsPath", method := "POST", uri := "/", input := (Shape.schema DeleteNetworkInsightsPathRequest), output := (Shape.schema DeleteNetworkInsightsPathResult), errors := [] } + | .deleteNetworkInterface => { name := "DeleteNetworkInterface", method := "POST", uri := "/", input := (Shape.schema DeleteNetworkInterfaceRequest), output := (Shape.schema Unit), errors := [] } + | .deleteNetworkInterfacePermission => { name := "DeleteNetworkInterfacePermission", method := "POST", uri := "/", input := (Shape.schema DeleteNetworkInterfacePermissionRequest), output := (Shape.schema DeleteNetworkInterfacePermissionResult), errors := [] } + | .deleteNetworkingFlexCostAllocationPolicies => { name := "DeleteNetworkingFlexCostAllocationPolicies", method := "POST", uri := "/", input := (Shape.schema DeleteNetworkingFlexCostAllocationPoliciesRequest), output := (Shape.schema DeleteNetworkingFlexCostAllocationPoliciesResult), errors := [] } + | .deletePlacementGroup => { name := "DeletePlacementGroup", method := "POST", uri := "/", input := (Shape.schema DeletePlacementGroupRequest), output := (Shape.schema Unit), errors := [] } + | .deletePublicIpv4Pool => { name := "DeletePublicIpv4Pool", method := "POST", uri := "/", input := (Shape.schema DeletePublicIpv4PoolRequest), output := (Shape.schema DeletePublicIpv4PoolResult), errors := [] } + | .deleteQueuedReservedInstances => { name := "DeleteQueuedReservedInstances", method := "POST", uri := "/", input := (Shape.schema DeleteQueuedReservedInstancesRequest), output := (Shape.schema DeleteQueuedReservedInstancesResult), errors := [] } + | .deleteRoute => { name := "DeleteRoute", method := "POST", uri := "/", input := (Shape.schema DeleteRouteRequest), output := (Shape.schema Unit), errors := [] } + | .deleteRouteServer => { name := "DeleteRouteServer", method := "POST", uri := "/", input := (Shape.schema DeleteRouteServerRequest), output := (Shape.schema DeleteRouteServerResult), errors := [] } + | .deleteRouteServerEndpoint => { name := "DeleteRouteServerEndpoint", method := "POST", uri := "/", input := (Shape.schema DeleteRouteServerEndpointRequest), output := (Shape.schema DeleteRouteServerEndpointResult), errors := [] } + | .deleteRouteServerPeer => { name := "DeleteRouteServerPeer", method := "POST", uri := "/", input := (Shape.schema DeleteRouteServerPeerRequest), output := (Shape.schema DeleteRouteServerPeerResult), errors := [] } + | .deleteRouteTable => { name := "DeleteRouteTable", method := "POST", uri := "/", input := (Shape.schema DeleteRouteTableRequest), output := (Shape.schema Unit), errors := [] } + | .deleteSecondaryNetwork => { name := "DeleteSecondaryNetwork", method := "POST", uri := "/", input := (Shape.schema DeleteSecondaryNetworkRequest), output := (Shape.schema DeleteSecondaryNetworkResult), errors := [] } + | .deleteSecondarySubnet => { name := "DeleteSecondarySubnet", method := "POST", uri := "/", input := (Shape.schema DeleteSecondarySubnetRequest), output := (Shape.schema DeleteSecondarySubnetResult), errors := [] } + | .deleteSecurityGroup => { name := "DeleteSecurityGroup", method := "POST", uri := "/", input := (Shape.schema DeleteSecurityGroupRequest), output := (Shape.schema DeleteSecurityGroupResult), errors := [] } + | .deleteSnapshot => { name := "DeleteSnapshot", method := "POST", uri := "/", input := (Shape.schema DeleteSnapshotRequest), output := (Shape.schema Unit), errors := [] } + | .deleteSpotDatafeedSubscription => { name := "DeleteSpotDatafeedSubscription", method := "POST", uri := "/", input := (Shape.schema DeleteSpotDatafeedSubscriptionRequest), output := (Shape.schema Unit), errors := [] } + | .deleteSubnet => { name := "DeleteSubnet", method := "POST", uri := "/", input := (Shape.schema DeleteSubnetRequest), output := (Shape.schema Unit), errors := [] } + | .deleteSubnetCidrReservation => { name := "DeleteSubnetCidrReservation", method := "POST", uri := "/", input := (Shape.schema DeleteSubnetCidrReservationRequest), output := (Shape.schema DeleteSubnetCidrReservationResult), errors := [] } + | .deleteTags => { name := "DeleteTags", method := "POST", uri := "/", input := (Shape.schema DeleteTagsRequest), output := (Shape.schema Unit), errors := [] } + | .deleteTrafficMirrorFilter => { name := "DeleteTrafficMirrorFilter", method := "POST", uri := "/", input := (Shape.schema DeleteTrafficMirrorFilterRequest), output := (Shape.schema DeleteTrafficMirrorFilterResult), errors := [] } + | .deleteTrafficMirrorFilterRule => { name := "DeleteTrafficMirrorFilterRule", method := "POST", uri := "/", input := (Shape.schema DeleteTrafficMirrorFilterRuleRequest), output := (Shape.schema DeleteTrafficMirrorFilterRuleResult), errors := [] } + | .deleteTrafficMirrorSession => { name := "DeleteTrafficMirrorSession", method := "POST", uri := "/", input := (Shape.schema DeleteTrafficMirrorSessionRequest), output := (Shape.schema DeleteTrafficMirrorSessionResult), errors := [] } + | .deleteTrafficMirrorTarget => { name := "DeleteTrafficMirrorTarget", method := "POST", uri := "/", input := (Shape.schema DeleteTrafficMirrorTargetRequest), output := (Shape.schema DeleteTrafficMirrorTargetResult), errors := [] } + | .deleteTransitGateway => { name := "DeleteTransitGateway", method := "POST", uri := "/", input := (Shape.schema DeleteTransitGatewayRequest), output := (Shape.schema DeleteTransitGatewayResult), errors := [] } + | .deleteTransitGatewayClientVpnAttachment => { name := "DeleteTransitGatewayClientVpnAttachment", method := "POST", uri := "/", input := (Shape.schema DeleteTransitGatewayClientVpnAttachmentRequest), output := (Shape.schema DeleteTransitGatewayClientVpnAttachmentResult), errors := [] } + | .deleteTransitGatewayConnect => { name := "DeleteTransitGatewayConnect", method := "POST", uri := "/", input := (Shape.schema DeleteTransitGatewayConnectRequest), output := (Shape.schema DeleteTransitGatewayConnectResult), errors := [] } + | .deleteTransitGatewayConnectPeer => { name := "DeleteTransitGatewayConnectPeer", method := "POST", uri := "/", input := (Shape.schema DeleteTransitGatewayConnectPeerRequest), output := (Shape.schema DeleteTransitGatewayConnectPeerResult), errors := [] } + | .deleteTransitGatewayMeteringPolicy => { name := "DeleteTransitGatewayMeteringPolicy", method := "POST", uri := "/", input := (Shape.schema DeleteTransitGatewayMeteringPolicyRequest), output := (Shape.schema DeleteTransitGatewayMeteringPolicyResult), errors := [] } + | .deleteTransitGatewayMeteringPolicyEntry => { name := "DeleteTransitGatewayMeteringPolicyEntry", method := "POST", uri := "/", input := (Shape.schema DeleteTransitGatewayMeteringPolicyEntryRequest), output := (Shape.schema DeleteTransitGatewayMeteringPolicyEntryResult), errors := [] } + | .deleteTransitGatewayMulticastDomain => { name := "DeleteTransitGatewayMulticastDomain", method := "POST", uri := "/", input := (Shape.schema DeleteTransitGatewayMulticastDomainRequest), output := (Shape.schema DeleteTransitGatewayMulticastDomainResult), errors := [] } + | .deleteTransitGatewayNetworkFunctionAttachment => { name := "DeleteTransitGatewayNetworkFunctionAttachment", method := "POST", uri := "/", input := (Shape.schema DeleteTransitGatewayNetworkFunctionAttachmentRequest), output := (Shape.schema DeleteTransitGatewayNetworkFunctionAttachmentResult), errors := [] } + | .deleteTransitGatewayPeeringAttachment => { name := "DeleteTransitGatewayPeeringAttachment", method := "POST", uri := "/", input := (Shape.schema DeleteTransitGatewayPeeringAttachmentRequest), output := (Shape.schema DeleteTransitGatewayPeeringAttachmentResult), errors := [] } + | .deleteTransitGatewayPolicyTable => { name := "DeleteTransitGatewayPolicyTable", method := "POST", uri := "/", input := (Shape.schema DeleteTransitGatewayPolicyTableRequest), output := (Shape.schema DeleteTransitGatewayPolicyTableResult), errors := [] } + | .deleteTransitGatewayPolicyTableEntry => { name := "DeleteTransitGatewayPolicyTableEntry", method := "POST", uri := "/", input := (Shape.schema DeleteTransitGatewayPolicyTableEntryRequest), output := (Shape.schema DeleteTransitGatewayPolicyTableEntryResult), errors := [] } + | .deleteTransitGatewayPrefixListReference => { name := "DeleteTransitGatewayPrefixListReference", method := "POST", uri := "/", input := (Shape.schema DeleteTransitGatewayPrefixListReferenceRequest), output := (Shape.schema DeleteTransitGatewayPrefixListReferenceResult), errors := [] } + | .deleteTransitGatewayRoute => { name := "DeleteTransitGatewayRoute", method := "POST", uri := "/", input := (Shape.schema DeleteTransitGatewayRouteRequest), output := (Shape.schema DeleteTransitGatewayRouteResult), errors := [] } + | .deleteTransitGatewayRouteTable => { name := "DeleteTransitGatewayRouteTable", method := "POST", uri := "/", input := (Shape.schema DeleteTransitGatewayRouteTableRequest), output := (Shape.schema DeleteTransitGatewayRouteTableResult), errors := [] } + | .deleteTransitGatewayRouteTableAnnouncement => { name := "DeleteTransitGatewayRouteTableAnnouncement", method := "POST", uri := "/", input := (Shape.schema DeleteTransitGatewayRouteTableAnnouncementRequest), output := (Shape.schema DeleteTransitGatewayRouteTableAnnouncementResult), errors := [] } + | .deleteTransitGatewayVpcAttachment => { name := "DeleteTransitGatewayVpcAttachment", method := "POST", uri := "/", input := (Shape.schema DeleteTransitGatewayVpcAttachmentRequest), output := (Shape.schema DeleteTransitGatewayVpcAttachmentResult), errors := [] } + | .deleteVerifiedAccessEndpoint => { name := "DeleteVerifiedAccessEndpoint", method := "POST", uri := "/", input := (Shape.schema DeleteVerifiedAccessEndpointRequest), output := (Shape.schema DeleteVerifiedAccessEndpointResult), errors := [] } + | .deleteVerifiedAccessGroup => { name := "DeleteVerifiedAccessGroup", method := "POST", uri := "/", input := (Shape.schema DeleteVerifiedAccessGroupRequest), output := (Shape.schema DeleteVerifiedAccessGroupResult), errors := [] } + | .deleteVerifiedAccessInstance => { name := "DeleteVerifiedAccessInstance", method := "POST", uri := "/", input := (Shape.schema DeleteVerifiedAccessInstanceRequest), output := (Shape.schema DeleteVerifiedAccessInstanceResult), errors := [] } + | .deleteVerifiedAccessTrustProvider => { name := "DeleteVerifiedAccessTrustProvider", method := "POST", uri := "/", input := (Shape.schema DeleteVerifiedAccessTrustProviderRequest), output := (Shape.schema DeleteVerifiedAccessTrustProviderResult), errors := [] } + | .deleteVolume => { name := "DeleteVolume", method := "POST", uri := "/", input := (Shape.schema DeleteVolumeRequest), output := (Shape.schema Unit), errors := [] } + | .deleteVpc => { name := "DeleteVpc", method := "POST", uri := "/", input := (Shape.schema DeleteVpcRequest), output := (Shape.schema Unit), errors := [] } + | .deleteVpcBlockPublicAccessExclusion => { name := "DeleteVpcBlockPublicAccessExclusion", method := "POST", uri := "/", input := (Shape.schema DeleteVpcBlockPublicAccessExclusionRequest), output := (Shape.schema DeleteVpcBlockPublicAccessExclusionResult), errors := [] } + | .deleteVpcEncryptionControl => { name := "DeleteVpcEncryptionControl", method := "POST", uri := "/", input := (Shape.schema DeleteVpcEncryptionControlRequest), output := (Shape.schema DeleteVpcEncryptionControlResult), errors := [] } + | .deleteVpcEndpointConnectionNotifications => { name := "DeleteVpcEndpointConnectionNotifications", method := "POST", uri := "/", input := (Shape.schema DeleteVpcEndpointConnectionNotificationsRequest), output := (Shape.schema DeleteVpcEndpointConnectionNotificationsResult), errors := [] } + | .deleteVpcEndpointServiceConfigurations => { name := "DeleteVpcEndpointServiceConfigurations", method := "POST", uri := "/", input := (Shape.schema DeleteVpcEndpointServiceConfigurationsRequest), output := (Shape.schema DeleteVpcEndpointServiceConfigurationsResult), errors := [] } + | .deleteVpcEndpoints => { name := "DeleteVpcEndpoints", method := "POST", uri := "/", input := (Shape.schema DeleteVpcEndpointsRequest), output := (Shape.schema DeleteVpcEndpointsResult), errors := [] } + | .deleteVpcPeeringConnection => { name := "DeleteVpcPeeringConnection", method := "POST", uri := "/", input := (Shape.schema DeleteVpcPeeringConnectionRequest), output := (Shape.schema DeleteVpcPeeringConnectionResult), errors := [] } + | .deleteVpnConcentrator => { name := "DeleteVpnConcentrator", method := "POST", uri := "/", input := (Shape.schema DeleteVpnConcentratorRequest), output := (Shape.schema DeleteVpnConcentratorResult), errors := [] } + | .deleteVpnConnection => { name := "DeleteVpnConnection", method := "POST", uri := "/", input := (Shape.schema DeleteVpnConnectionRequest), output := (Shape.schema Unit), errors := [] } + | .deleteVpnConnectionRoute => { name := "DeleteVpnConnectionRoute", method := "POST", uri := "/", input := (Shape.schema DeleteVpnConnectionRouteRequest), output := (Shape.schema Unit), errors := [] } + | .deleteVpnGateway => { name := "DeleteVpnGateway", method := "POST", uri := "/", input := (Shape.schema DeleteVpnGatewayRequest), output := (Shape.schema Unit), errors := [] } + | .deprovisionByoipCidr => { name := "DeprovisionByoipCidr", method := "POST", uri := "/", input := (Shape.schema DeprovisionByoipCidrRequest), output := (Shape.schema DeprovisionByoipCidrResult), errors := [] } + | .deprovisionIpamByoasn => { name := "DeprovisionIpamByoasn", method := "POST", uri := "/", input := (Shape.schema DeprovisionIpamByoasnRequest), output := (Shape.schema DeprovisionIpamByoasnResult), errors := [] } + | .deprovisionIpamPoolCidr => { name := "DeprovisionIpamPoolCidr", method := "POST", uri := "/", input := (Shape.schema DeprovisionIpamPoolCidrRequest), output := (Shape.schema DeprovisionIpamPoolCidrResult), errors := [] } + | .deprovisionPublicIpv4PoolCidr => { name := "DeprovisionPublicIpv4PoolCidr", method := "POST", uri := "/", input := (Shape.schema DeprovisionPublicIpv4PoolCidrRequest), output := (Shape.schema DeprovisionPublicIpv4PoolCidrResult), errors := [] } + | .deregisterImage => { name := "DeregisterImage", method := "POST", uri := "/", input := (Shape.schema DeregisterImageRequest), output := (Shape.schema DeregisterImageResult), errors := [] } + | .deregisterInstanceEventNotificationAttributes => { name := "DeregisterInstanceEventNotificationAttributes", method := "POST", uri := "/", input := (Shape.schema DeregisterInstanceEventNotificationAttributesRequest), output := (Shape.schema DeregisterInstanceEventNotificationAttributesResult), errors := [] } + | .deregisterTransitGatewayMulticastGroupMembers => { name := "DeregisterTransitGatewayMulticastGroupMembers", method := "POST", uri := "/", input := (Shape.schema DeregisterTransitGatewayMulticastGroupMembersRequest), output := (Shape.schema DeregisterTransitGatewayMulticastGroupMembersResult), errors := [] } + | .deregisterTransitGatewayMulticastGroupSources => { name := "DeregisterTransitGatewayMulticastGroupSources", method := "POST", uri := "/", input := (Shape.schema DeregisterTransitGatewayMulticastGroupSourcesRequest), output := (Shape.schema DeregisterTransitGatewayMulticastGroupSourcesResult), errors := [] } + | .describeAccountAttributes => { name := "DescribeAccountAttributes", method := "POST", uri := "/", input := (Shape.schema DescribeAccountAttributesRequest), output := (Shape.schema DescribeAccountAttributesResult), errors := [] } + | .describeAccountVpcEncryptionControl => { name := "DescribeAccountVpcEncryptionControl", method := "POST", uri := "/", input := (Shape.schema DescribeAccountVpcEncryptionControlRequest), output := (Shape.schema DescribeAccountVpcEncryptionControlResult), errors := [] } + | .describeAddressTransfers => { name := "DescribeAddressTransfers", method := "POST", uri := "/", input := (Shape.schema DescribeAddressTransfersRequest), output := (Shape.schema DescribeAddressTransfersResult), errors := [] } + | .describeAddresses => { name := "DescribeAddresses", method := "POST", uri := "/", input := (Shape.schema DescribeAddressesRequest), output := (Shape.schema DescribeAddressesResult), errors := [] } + | .describeAddressesAttribute => { name := "DescribeAddressesAttribute", method := "POST", uri := "/", input := (Shape.schema DescribeAddressesAttributeRequest), output := (Shape.schema DescribeAddressesAttributeResult), errors := [] } + | .describeAggregateIdFormat => { name := "DescribeAggregateIdFormat", method := "POST", uri := "/", input := (Shape.schema DescribeAggregateIdFormatRequest), output := (Shape.schema DescribeAggregateIdFormatResult), errors := [] } + | .describeApplicationStatus => { name := "DescribeApplicationStatus", method := "POST", uri := "/", input := (Shape.schema DescribeApplicationStatusRequest), output := (Shape.schema DescribeApplicationStatusResult), errors := [] } + | .describeApplicationStatusCheckAssociations => { name := "DescribeApplicationStatusCheckAssociations", method := "POST", uri := "/", input := (Shape.schema DescribeApplicationStatusCheckAssociationsRequest), output := (Shape.schema DescribeApplicationStatusCheckAssociationsResult), errors := [] } + | .describeApplicationStatusChecks => { name := "DescribeApplicationStatusChecks", method := "POST", uri := "/", input := (Shape.schema DescribeApplicationStatusChecksRequest), output := (Shape.schema DescribeApplicationStatusChecksResult), errors := [] } + | .describeAvailabilityZones => { name := "DescribeAvailabilityZones", method := "POST", uri := "/", input := (Shape.schema DescribeAvailabilityZonesRequest), output := (Shape.schema DescribeAvailabilityZonesResult), errors := [] } + | .describeAwsNetworkPerformanceMetricSubscriptions => { name := "DescribeAwsNetworkPerformanceMetricSubscriptions", method := "POST", uri := "/", input := (Shape.schema DescribeAwsNetworkPerformanceMetricSubscriptionsRequest), output := (Shape.schema DescribeAwsNetworkPerformanceMetricSubscriptionsResult), errors := [] } + | .describeBundleTasks => { name := "DescribeBundleTasks", method := "POST", uri := "/", input := (Shape.schema DescribeBundleTasksRequest), output := (Shape.schema DescribeBundleTasksResult), errors := [] } + | .describeByoipCidrs => { name := "DescribeByoipCidrs", method := "POST", uri := "/", input := (Shape.schema DescribeByoipCidrsRequest), output := (Shape.schema DescribeByoipCidrsResult), errors := [] } + | .describeCapacityBlockExtensionHistory => { name := "DescribeCapacityBlockExtensionHistory", method := "POST", uri := "/", input := (Shape.schema DescribeCapacityBlockExtensionHistoryRequest), output := (Shape.schema DescribeCapacityBlockExtensionHistoryResult), errors := [] } + | .describeCapacityBlockExtensionOfferings => { name := "DescribeCapacityBlockExtensionOfferings", method := "POST", uri := "/", input := (Shape.schema DescribeCapacityBlockExtensionOfferingsRequest), output := (Shape.schema DescribeCapacityBlockExtensionOfferingsResult), errors := [] } + | .describeCapacityBlockOfferings => { name := "DescribeCapacityBlockOfferings", method := "POST", uri := "/", input := (Shape.schema DescribeCapacityBlockOfferingsRequest), output := (Shape.schema DescribeCapacityBlockOfferingsResult), errors := [] } + | .describeCapacityBlockStatus => { name := "DescribeCapacityBlockStatus", method := "POST", uri := "/", input := (Shape.schema DescribeCapacityBlockStatusRequest), output := (Shape.schema DescribeCapacityBlockStatusResult), errors := [] } + | .describeCapacityBlocks => { name := "DescribeCapacityBlocks", method := "POST", uri := "/", input := (Shape.schema DescribeCapacityBlocksRequest), output := (Shape.schema DescribeCapacityBlocksResult), errors := [] } + | .describeCapacityManagerDataExports => { name := "DescribeCapacityManagerDataExports", method := "POST", uri := "/", input := (Shape.schema DescribeCapacityManagerDataExportsRequest), output := (Shape.schema DescribeCapacityManagerDataExportsResult), errors := [] } + | .describeCapacityReservationBillingRequests => { name := "DescribeCapacityReservationBillingRequests", method := "POST", uri := "/", input := (Shape.schema DescribeCapacityReservationBillingRequestsRequest), output := (Shape.schema DescribeCapacityReservationBillingRequestsResult), errors := [] } + | .describeCapacityReservationCancellationQuotes => { name := "DescribeCapacityReservationCancellationQuotes", method := "POST", uri := "/", input := (Shape.schema DescribeCapacityReservationCancellationQuotesRequest), output := (Shape.schema DescribeCapacityReservationCancellationQuotesResult), errors := [] } + | .describeCapacityReservationDateChangeQuotes => { name := "DescribeCapacityReservationDateChangeQuotes", method := "POST", uri := "/", input := (Shape.schema DescribeCapacityReservationDateChangeQuotesRequest), output := (Shape.schema DescribeCapacityReservationDateChangeQuotesResult), errors := [] } + | .describeCapacityReservationFleets => { name := "DescribeCapacityReservationFleets", method := "POST", uri := "/", input := (Shape.schema DescribeCapacityReservationFleetsRequest), output := (Shape.schema DescribeCapacityReservationFleetsResult), errors := [] } + | .describeCapacityReservationTopology => { name := "DescribeCapacityReservationTopology", method := "POST", uri := "/", input := (Shape.schema DescribeCapacityReservationTopologyRequest), output := (Shape.schema DescribeCapacityReservationTopologyResult), errors := [] } + | .describeCapacityReservations => { name := "DescribeCapacityReservations", method := "POST", uri := "/", input := (Shape.schema DescribeCapacityReservationsRequest), output := (Shape.schema DescribeCapacityReservationsResult), errors := [] } + | .describeCarrierGateways => { name := "DescribeCarrierGateways", method := "POST", uri := "/", input := (Shape.schema DescribeCarrierGatewaysRequest), output := (Shape.schema DescribeCarrierGatewaysResult), errors := [] } + | .describeClassicLinkInstances => { name := "DescribeClassicLinkInstances", method := "POST", uri := "/", input := (Shape.schema DescribeClassicLinkInstancesRequest), output := (Shape.schema DescribeClassicLinkInstancesResult), errors := [] } + | .describeClientVpnAuthorizationRules => { name := "DescribeClientVpnAuthorizationRules", method := "POST", uri := "/", input := (Shape.schema DescribeClientVpnAuthorizationRulesRequest), output := (Shape.schema DescribeClientVpnAuthorizationRulesResult), errors := [] } + | .describeClientVpnConnections => { name := "DescribeClientVpnConnections", method := "POST", uri := "/", input := (Shape.schema DescribeClientVpnConnectionsRequest), output := (Shape.schema DescribeClientVpnConnectionsResult), errors := [] } + | .describeClientVpnEndpoints => { name := "DescribeClientVpnEndpoints", method := "POST", uri := "/", input := (Shape.schema DescribeClientVpnEndpointsRequest), output := (Shape.schema DescribeClientVpnEndpointsResult), errors := [] } + | .describeClientVpnRoutes => { name := "DescribeClientVpnRoutes", method := "POST", uri := "/", input := (Shape.schema DescribeClientVpnRoutesRequest), output := (Shape.schema DescribeClientVpnRoutesResult), errors := [] } + | .describeClientVpnTargetNetworks => { name := "DescribeClientVpnTargetNetworks", method := "POST", uri := "/", input := (Shape.schema DescribeClientVpnTargetNetworksRequest), output := (Shape.schema DescribeClientVpnTargetNetworksResult), errors := [] } + | .describeCoipPools => { name := "DescribeCoipPools", method := "POST", uri := "/", input := (Shape.schema DescribeCoipPoolsRequest), output := (Shape.schema DescribeCoipPoolsResult), errors := [] } + | .describeConversionTasks => { name := "DescribeConversionTasks", method := "POST", uri := "/", input := (Shape.schema DescribeConversionTasksRequest), output := (Shape.schema DescribeConversionTasksResult), errors := [] } + | .describeCustomerGateways => { name := "DescribeCustomerGateways", method := "POST", uri := "/", input := (Shape.schema DescribeCustomerGatewaysRequest), output := (Shape.schema DescribeCustomerGatewaysResult), errors := [] } + | .describeDeclarativePoliciesReports => { name := "DescribeDeclarativePoliciesReports", method := "POST", uri := "/", input := (Shape.schema DescribeDeclarativePoliciesReportsRequest), output := (Shape.schema DescribeDeclarativePoliciesReportsResult), errors := [] } + | .describeDhcpOptions => { name := "DescribeDhcpOptions", method := "POST", uri := "/", input := (Shape.schema DescribeDhcpOptionsRequest), output := (Shape.schema DescribeDhcpOptionsResult), errors := [] } + | .describeEgressOnlyInternetGateways => { name := "DescribeEgressOnlyInternetGateways", method := "POST", uri := "/", input := (Shape.schema DescribeEgressOnlyInternetGatewaysRequest), output := (Shape.schema DescribeEgressOnlyInternetGatewaysResult), errors := [] } + | .describeElasticGpus => { name := "DescribeElasticGpus", method := "POST", uri := "/", input := (Shape.schema DescribeElasticGpusRequest), output := (Shape.schema DescribeElasticGpusResult), errors := [] } + | .describeExportImageTasks => { name := "DescribeExportImageTasks", method := "POST", uri := "/", input := (Shape.schema DescribeExportImageTasksRequest), output := (Shape.schema DescribeExportImageTasksResult), errors := [] } + | .describeExportTasks => { name := "DescribeExportTasks", method := "POST", uri := "/", input := (Shape.schema DescribeExportTasksRequest), output := (Shape.schema DescribeExportTasksResult), errors := [] } + | .describeFastLaunchImages => { name := "DescribeFastLaunchImages", method := "POST", uri := "/", input := (Shape.schema DescribeFastLaunchImagesRequest), output := (Shape.schema DescribeFastLaunchImagesResult), errors := [] } + | .describeFastSnapshotRestores => { name := "DescribeFastSnapshotRestores", method := "POST", uri := "/", input := (Shape.schema DescribeFastSnapshotRestoresRequest), output := (Shape.schema DescribeFastSnapshotRestoresResult), errors := [] } + | .describeFleetHistory => { name := "DescribeFleetHistory", method := "POST", uri := "/", input := (Shape.schema DescribeFleetHistoryRequest), output := (Shape.schema DescribeFleetHistoryResult), errors := [] } + | .describeFleetInstances => { name := "DescribeFleetInstances", method := "POST", uri := "/", input := (Shape.schema DescribeFleetInstancesRequest), output := (Shape.schema DescribeFleetInstancesResult), errors := [] } + | .describeFleets => { name := "DescribeFleets", method := "POST", uri := "/", input := (Shape.schema DescribeFleetsRequest), output := (Shape.schema DescribeFleetsResult), errors := [] } + | .describeFlowLogs => { name := "DescribeFlowLogs", method := "POST", uri := "/", input := (Shape.schema DescribeFlowLogsRequest), output := (Shape.schema DescribeFlowLogsResult), errors := [] } + | .describeFpgaImageAttribute => { name := "DescribeFpgaImageAttribute", method := "POST", uri := "/", input := (Shape.schema DescribeFpgaImageAttributeRequest), output := (Shape.schema DescribeFpgaImageAttributeResult), errors := [] } + | .describeFpgaImages => { name := "DescribeFpgaImages", method := "POST", uri := "/", input := (Shape.schema DescribeFpgaImagesRequest), output := (Shape.schema DescribeFpgaImagesResult), errors := [] } + | .describeHostReservationOfferings => { name := "DescribeHostReservationOfferings", method := "POST", uri := "/", input := (Shape.schema DescribeHostReservationOfferingsRequest), output := (Shape.schema DescribeHostReservationOfferingsResult), errors := [] } + | .describeHostReservations => { name := "DescribeHostReservations", method := "POST", uri := "/", input := (Shape.schema DescribeHostReservationsRequest), output := (Shape.schema DescribeHostReservationsResult), errors := [] } + | .describeHosts => { name := "DescribeHosts", method := "POST", uri := "/", input := (Shape.schema DescribeHostsRequest), output := (Shape.schema DescribeHostsResult), errors := [] } + | .describeIamInstanceProfileAssociations => { name := "DescribeIamInstanceProfileAssociations", method := "POST", uri := "/", input := (Shape.schema DescribeIamInstanceProfileAssociationsRequest), output := (Shape.schema DescribeIamInstanceProfileAssociationsResult), errors := [] } + | .describeIdFormat => { name := "DescribeIdFormat", method := "POST", uri := "/", input := (Shape.schema DescribeIdFormatRequest), output := (Shape.schema DescribeIdFormatResult), errors := [] } + | .describeIdentityIdFormat => { name := "DescribeIdentityIdFormat", method := "POST", uri := "/", input := (Shape.schema DescribeIdentityIdFormatRequest), output := (Shape.schema DescribeIdentityIdFormatResult), errors := [] } + | .describeImageAttribute => { name := "DescribeImageAttribute", method := "POST", uri := "/", input := (Shape.schema DescribeImageAttributeRequest), output := (Shape.schema ImageAttribute), errors := [] } + | .describeImageReferences => { name := "DescribeImageReferences", method := "POST", uri := "/", input := (Shape.schema DescribeImageReferencesRequest), output := (Shape.schema DescribeImageReferencesResult), errors := [] } + | .describeImageUsageReportEntries => { name := "DescribeImageUsageReportEntries", method := "POST", uri := "/", input := (Shape.schema DescribeImageUsageReportEntriesRequest), output := (Shape.schema DescribeImageUsageReportEntriesResult), errors := [] } + | .describeImageUsageReports => { name := "DescribeImageUsageReports", method := "POST", uri := "/", input := (Shape.schema DescribeImageUsageReportsRequest), output := (Shape.schema DescribeImageUsageReportsResult), errors := [] } + | .describeImages => { name := "DescribeImages", method := "POST", uri := "/", input := (Shape.schema DescribeImagesRequest), output := (Shape.schema DescribeImagesResult), errors := [] } + | .describeImportImageTasks => { name := "DescribeImportImageTasks", method := "POST", uri := "/", input := (Shape.schema DescribeImportImageTasksRequest), output := (Shape.schema DescribeImportImageTasksResult), errors := [] } + | .describeImportSnapshotTasks => { name := "DescribeImportSnapshotTasks", method := "POST", uri := "/", input := (Shape.schema DescribeImportSnapshotTasksRequest), output := (Shape.schema DescribeImportSnapshotTasksResult), errors := [] } + | .describeInstanceAttribute => { name := "DescribeInstanceAttribute", method := "POST", uri := "/", input := (Shape.schema DescribeInstanceAttributeRequest), output := (Shape.schema InstanceAttribute), errors := [] } + | .describeInstanceConnectEndpoints => { name := "DescribeInstanceConnectEndpoints", method := "POST", uri := "/", input := (Shape.schema DescribeInstanceConnectEndpointsRequest), output := (Shape.schema DescribeInstanceConnectEndpointsResult), errors := [] } + | .describeInstanceCreditSpecifications => { name := "DescribeInstanceCreditSpecifications", method := "POST", uri := "/", input := (Shape.schema DescribeInstanceCreditSpecificationsRequest), output := (Shape.schema DescribeInstanceCreditSpecificationsResult), errors := [] } + | .describeInstanceEventNotificationAttributes => { name := "DescribeInstanceEventNotificationAttributes", method := "POST", uri := "/", input := (Shape.schema DescribeInstanceEventNotificationAttributesRequest), output := (Shape.schema DescribeInstanceEventNotificationAttributesResult), errors := [] } + | .describeInstanceEventWindows => { name := "DescribeInstanceEventWindows", method := "POST", uri := "/", input := (Shape.schema DescribeInstanceEventWindowsRequest), output := (Shape.schema DescribeInstanceEventWindowsResult), errors := [] } + | .describeInstanceImageMetadata => { name := "DescribeInstanceImageMetadata", method := "POST", uri := "/", input := (Shape.schema DescribeInstanceImageMetadataRequest), output := (Shape.schema DescribeInstanceImageMetadataResult), errors := [] } + | .describeInstanceSqlHaHistoryStates => { name := "DescribeInstanceSqlHaHistoryStates", method := "POST", uri := "/", input := (Shape.schema DescribeInstanceSqlHaHistoryStatesRequest), output := (Shape.schema DescribeInstanceSqlHaHistoryStatesResult), errors := [] } + | .describeInstanceSqlHaStates => { name := "DescribeInstanceSqlHaStates", method := "POST", uri := "/", input := (Shape.schema DescribeInstanceSqlHaStatesRequest), output := (Shape.schema DescribeInstanceSqlHaStatesResult), errors := [] } + | .describeInstanceStatus => { name := "DescribeInstanceStatus", method := "POST", uri := "/", input := (Shape.schema DescribeInstanceStatusRequest), output := (Shape.schema DescribeInstanceStatusResult), errors := [] } + | .describeInstanceTopology => { name := "DescribeInstanceTopology", method := "POST", uri := "/", input := (Shape.schema DescribeInstanceTopologyRequest), output := (Shape.schema DescribeInstanceTopologyResult), errors := [] } + | .describeInstanceTypeOfferings => { name := "DescribeInstanceTypeOfferings", method := "POST", uri := "/", input := (Shape.schema DescribeInstanceTypeOfferingsRequest), output := (Shape.schema DescribeInstanceTypeOfferingsResult), errors := [] } + | .describeInstanceTypes => { name := "DescribeInstanceTypes", method := "POST", uri := "/", input := (Shape.schema DescribeInstanceTypesRequest), output := (Shape.schema DescribeInstanceTypesResult), errors := [] } + | .describeInstances => { name := "DescribeInstances", method := "POST", uri := "/", input := (Shape.schema DescribeInstancesRequest), output := (Shape.schema DescribeInstancesResult), errors := [] } + | .describeInternetGateways => { name := "DescribeInternetGateways", method := "POST", uri := "/", input := (Shape.schema DescribeInternetGatewaysRequest), output := (Shape.schema DescribeInternetGatewaysResult), errors := [] } + | .describeIpamByoasn => { name := "DescribeIpamByoasn", method := "POST", uri := "/", input := (Shape.schema DescribeIpamByoasnRequest), output := (Shape.schema DescribeIpamByoasnResult), errors := [] } + | .describeIpamExternalResourceVerificationTokens => { name := "DescribeIpamExternalResourceVerificationTokens", method := "POST", uri := "/", input := (Shape.schema DescribeIpamExternalResourceVerificationTokensRequest), output := (Shape.schema DescribeIpamExternalResourceVerificationTokensResult), errors := [] } + | .describeIpamInternetRegistryAssociations => { name := "DescribeIpamInternetRegistryAssociations", method := "POST", uri := "/", input := (Shape.schema DescribeIpamInternetRegistryAssociationsRequest), output := (Shape.schema DescribeIpamInternetRegistryAssociationsResult), errors := [] } + | .describeIpamPolicies => { name := "DescribeIpamPolicies", method := "POST", uri := "/", input := (Shape.schema DescribeIpamPoliciesRequest), output := (Shape.schema DescribeIpamPoliciesResult), errors := [] } + | .describeIpamPoolAllocations => { name := "DescribeIpamPoolAllocations", method := "POST", uri := "/", input := (Shape.schema DescribeIpamPoolAllocationsRequest), output := (Shape.schema DescribeIpamPoolAllocationsResult), errors := [] } + | .describeIpamPools => { name := "DescribeIpamPools", method := "POST", uri := "/", input := (Shape.schema DescribeIpamPoolsRequest), output := (Shape.schema DescribeIpamPoolsResult), errors := [] } + | .describeIpamPrefixListResolverTargets => { name := "DescribeIpamPrefixListResolverTargets", method := "POST", uri := "/", input := (Shape.schema DescribeIpamPrefixListResolverTargetsRequest), output := (Shape.schema DescribeIpamPrefixListResolverTargetsResult), errors := [] } + | .describeIpamPrefixListResolvers => { name := "DescribeIpamPrefixListResolvers", method := "POST", uri := "/", input := (Shape.schema DescribeIpamPrefixListResolversRequest), output := (Shape.schema DescribeIpamPrefixListResolversResult), errors := [] } + | .describeIpamResourceDiscoveries => { name := "DescribeIpamResourceDiscoveries", method := "POST", uri := "/", input := (Shape.schema DescribeIpamResourceDiscoveriesRequest), output := (Shape.schema DescribeIpamResourceDiscoveriesResult), errors := [] } + | .describeIpamResourceDiscoveryAssociations => { name := "DescribeIpamResourceDiscoveryAssociations", method := "POST", uri := "/", input := (Shape.schema DescribeIpamResourceDiscoveryAssociationsRequest), output := (Shape.schema DescribeIpamResourceDiscoveryAssociationsResult), errors := [] } + | .describeIpamScopes => { name := "DescribeIpamScopes", method := "POST", uri := "/", input := (Shape.schema DescribeIpamScopesRequest), output := (Shape.schema DescribeIpamScopesResult), errors := [] } + | .describeIpams => { name := "DescribeIpams", method := "POST", uri := "/", input := (Shape.schema DescribeIpamsRequest), output := (Shape.schema DescribeIpamsResult), errors := [] } + | .describeIpv6Pools => { name := "DescribeIpv6Pools", method := "POST", uri := "/", input := (Shape.schema DescribeIpv6PoolsRequest), output := (Shape.schema DescribeIpv6PoolsResult), errors := [] } + | .describeKeyPairs => { name := "DescribeKeyPairs", method := "POST", uri := "/", input := (Shape.schema DescribeKeyPairsRequest), output := (Shape.schema DescribeKeyPairsResult), errors := [] } + | .describeLaunchTemplateVersions => { name := "DescribeLaunchTemplateVersions", method := "POST", uri := "/", input := (Shape.schema DescribeLaunchTemplateVersionsRequest), output := (Shape.schema DescribeLaunchTemplateVersionsResult), errors := [] } + | .describeLaunchTemplates => { name := "DescribeLaunchTemplates", method := "POST", uri := "/", input := (Shape.schema DescribeLaunchTemplatesRequest), output := (Shape.schema DescribeLaunchTemplatesResult), errors := [] } + | .describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations => { name := "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations", method := "POST", uri := "/", input := (Shape.schema DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest), output := (Shape.schema DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult), errors := [] } + | .describeLocalGatewayRouteTableVpcAssociations => { name := "DescribeLocalGatewayRouteTableVpcAssociations", method := "POST", uri := "/", input := (Shape.schema DescribeLocalGatewayRouteTableVpcAssociationsRequest), output := (Shape.schema DescribeLocalGatewayRouteTableVpcAssociationsResult), errors := [] } + | .describeLocalGatewayRouteTables => { name := "DescribeLocalGatewayRouteTables", method := "POST", uri := "/", input := (Shape.schema DescribeLocalGatewayRouteTablesRequest), output := (Shape.schema DescribeLocalGatewayRouteTablesResult), errors := [] } + | .describeLocalGatewayVirtualInterfaceGroups => { name := "DescribeLocalGatewayVirtualInterfaceGroups", method := "POST", uri := "/", input := (Shape.schema DescribeLocalGatewayVirtualInterfaceGroupsRequest), output := (Shape.schema DescribeLocalGatewayVirtualInterfaceGroupsResult), errors := [] } + | .describeLocalGatewayVirtualInterfaces => { name := "DescribeLocalGatewayVirtualInterfaces", method := "POST", uri := "/", input := (Shape.schema DescribeLocalGatewayVirtualInterfacesRequest), output := (Shape.schema DescribeLocalGatewayVirtualInterfacesResult), errors := [] } + | .describeLocalGateways => { name := "DescribeLocalGateways", method := "POST", uri := "/", input := (Shape.schema DescribeLocalGatewaysRequest), output := (Shape.schema DescribeLocalGatewaysResult), errors := [] } + | .describeLockedSnapshots => { name := "DescribeLockedSnapshots", method := "POST", uri := "/", input := (Shape.schema DescribeLockedSnapshotsRequest), output := (Shape.schema DescribeLockedSnapshotsResult), errors := [] } + | .describeMacHosts => { name := "DescribeMacHosts", method := "POST", uri := "/", input := (Shape.schema DescribeMacHostsRequest), output := (Shape.schema DescribeMacHostsResult), errors := [] } + | .describeMacModificationTasks => { name := "DescribeMacModificationTasks", method := "POST", uri := "/", input := (Shape.schema DescribeMacModificationTasksRequest), output := (Shape.schema DescribeMacModificationTasksResult), errors := [] } + | .describeManagedPrefixLists => { name := "DescribeManagedPrefixLists", method := "POST", uri := "/", input := (Shape.schema DescribeManagedPrefixListsRequest), output := (Shape.schema DescribeManagedPrefixListsResult), errors := [] } + | .describeMetricCategories => { name := "DescribeMetricCategories", method := "POST", uri := "/", input := (Shape.schema DescribeMetricCategoriesRequest), output := (Shape.schema DescribeMetricCategoriesResult), errors := [] } + | .describeMovingAddresses => { name := "DescribeMovingAddresses", method := "POST", uri := "/", input := (Shape.schema DescribeMovingAddressesRequest), output := (Shape.schema DescribeMovingAddressesResult), errors := [] } + | .describeNatGateways => { name := "DescribeNatGateways", method := "POST", uri := "/", input := (Shape.schema DescribeNatGatewaysRequest), output := (Shape.schema DescribeNatGatewaysResult), errors := [] } + | .describeNetworkAcls => { name := "DescribeNetworkAcls", method := "POST", uri := "/", input := (Shape.schema DescribeNetworkAclsRequest), output := (Shape.schema DescribeNetworkAclsResult), errors := [] } + | .describeNetworkInsightsAccessScopeAnalyses => { name := "DescribeNetworkInsightsAccessScopeAnalyses", method := "POST", uri := "/", input := (Shape.schema DescribeNetworkInsightsAccessScopeAnalysesRequest), output := (Shape.schema DescribeNetworkInsightsAccessScopeAnalysesResult), errors := [] } + | .describeNetworkInsightsAccessScopes => { name := "DescribeNetworkInsightsAccessScopes", method := "POST", uri := "/", input := (Shape.schema DescribeNetworkInsightsAccessScopesRequest), output := (Shape.schema DescribeNetworkInsightsAccessScopesResult), errors := [] } + | .describeNetworkInsightsAnalyses => { name := "DescribeNetworkInsightsAnalyses", method := "POST", uri := "/", input := (Shape.schema DescribeNetworkInsightsAnalysesRequest), output := (Shape.schema DescribeNetworkInsightsAnalysesResult), errors := [] } + | .describeNetworkInsightsPaths => { name := "DescribeNetworkInsightsPaths", method := "POST", uri := "/", input := (Shape.schema DescribeNetworkInsightsPathsRequest), output := (Shape.schema DescribeNetworkInsightsPathsResult), errors := [] } + | .describeNetworkInterfaceAttribute => { name := "DescribeNetworkInterfaceAttribute", method := "POST", uri := "/", input := (Shape.schema DescribeNetworkInterfaceAttributeRequest), output := (Shape.schema DescribeNetworkInterfaceAttributeResult), errors := [] } + | .describeNetworkInterfacePermissions => { name := "DescribeNetworkInterfacePermissions", method := "POST", uri := "/", input := (Shape.schema DescribeNetworkInterfacePermissionsRequest), output := (Shape.schema DescribeNetworkInterfacePermissionsResult), errors := [] } + | .describeNetworkInterfaces => { name := "DescribeNetworkInterfaces", method := "POST", uri := "/", input := (Shape.schema DescribeNetworkInterfacesRequest), output := (Shape.schema DescribeNetworkInterfacesResult), errors := [] } + | .describeNetworkingFlexCostAllocationPolicies => { name := "DescribeNetworkingFlexCostAllocationPolicies", method := "POST", uri := "/", input := (Shape.schema DescribeNetworkingFlexCostAllocationPoliciesRequest), output := (Shape.schema DescribeNetworkingFlexCostAllocationPoliciesResult), errors := [] } + | .describeNetworkingFlexCostAllocationPolicyAssociations => { name := "DescribeNetworkingFlexCostAllocationPolicyAssociations", method := "POST", uri := "/", input := (Shape.schema DescribeNetworkingFlexCostAllocationPolicyAssociationsRequest), output := (Shape.schema DescribeNetworkingFlexCostAllocationPolicyAssociationsResult), errors := [] } + | .describeOutpostLags => { name := "DescribeOutpostLags", method := "POST", uri := "/", input := (Shape.schema DescribeOutpostLagsRequest), output := (Shape.schema DescribeOutpostLagsResult), errors := [] } + | .describePlacementGroups => { name := "DescribePlacementGroups", method := "POST", uri := "/", input := (Shape.schema DescribePlacementGroupsRequest), output := (Shape.schema DescribePlacementGroupsResult), errors := [] } + | .describePrefixLists => { name := "DescribePrefixLists", method := "POST", uri := "/", input := (Shape.schema DescribePrefixListsRequest), output := (Shape.schema DescribePrefixListsResult), errors := [] } + | .describePrincipalIdFormat => { name := "DescribePrincipalIdFormat", method := "POST", uri := "/", input := (Shape.schema DescribePrincipalIdFormatRequest), output := (Shape.schema DescribePrincipalIdFormatResult), errors := [] } + | .describePublicIpv4Pools => { name := "DescribePublicIpv4Pools", method := "POST", uri := "/", input := (Shape.schema DescribePublicIpv4PoolsRequest), output := (Shape.schema DescribePublicIpv4PoolsResult), errors := [] } + | .describeRegions => { name := "DescribeRegions", method := "POST", uri := "/", input := (Shape.schema DescribeRegionsRequest), output := (Shape.schema DescribeRegionsResult), errors := [] } + | .describeReplaceRootVolumeTasks => { name := "DescribeReplaceRootVolumeTasks", method := "POST", uri := "/", input := (Shape.schema DescribeReplaceRootVolumeTasksRequest), output := (Shape.schema DescribeReplaceRootVolumeTasksResult), errors := [] } + | .describeReservedInstances => { name := "DescribeReservedInstances", method := "POST", uri := "/", input := (Shape.schema DescribeReservedInstancesRequest), output := (Shape.schema DescribeReservedInstancesResult), errors := [] } + | .describeReservedInstancesListings => { name := "DescribeReservedInstancesListings", method := "POST", uri := "/", input := (Shape.schema DescribeReservedInstancesListingsRequest), output := (Shape.schema DescribeReservedInstancesListingsResult), errors := [] } + | .describeReservedInstancesModifications => { name := "DescribeReservedInstancesModifications", method := "POST", uri := "/", input := (Shape.schema DescribeReservedInstancesModificationsRequest), output := (Shape.schema DescribeReservedInstancesModificationsResult), errors := [] } + | .describeReservedInstancesOfferings => { name := "DescribeReservedInstancesOfferings", method := "POST", uri := "/", input := (Shape.schema DescribeReservedInstancesOfferingsRequest), output := (Shape.schema DescribeReservedInstancesOfferingsResult), errors := [] } + | .describeRouteServerEndpoints => { name := "DescribeRouteServerEndpoints", method := "POST", uri := "/", input := (Shape.schema DescribeRouteServerEndpointsRequest), output := (Shape.schema DescribeRouteServerEndpointsResult), errors := [] } + | .describeRouteServerPeers => { name := "DescribeRouteServerPeers", method := "POST", uri := "/", input := (Shape.schema DescribeRouteServerPeersRequest), output := (Shape.schema DescribeRouteServerPeersResult), errors := [] } + | .describeRouteServers => { name := "DescribeRouteServers", method := "POST", uri := "/", input := (Shape.schema DescribeRouteServersRequest), output := (Shape.schema DescribeRouteServersResult), errors := [] } + | .describeRouteTables => { name := "DescribeRouteTables", method := "POST", uri := "/", input := (Shape.schema DescribeRouteTablesRequest), output := (Shape.schema DescribeRouteTablesResult), errors := [] } + | .describeScheduledInstanceAvailability => { name := "DescribeScheduledInstanceAvailability", method := "POST", uri := "/", input := (Shape.schema DescribeScheduledInstanceAvailabilityRequest), output := (Shape.schema DescribeScheduledInstanceAvailabilityResult), errors := [] } + | .describeScheduledInstances => { name := "DescribeScheduledInstances", method := "POST", uri := "/", input := (Shape.schema DescribeScheduledInstancesRequest), output := (Shape.schema DescribeScheduledInstancesResult), errors := [] } + | .describeSecondaryInterfaces => { name := "DescribeSecondaryInterfaces", method := "POST", uri := "/", input := (Shape.schema DescribeSecondaryInterfacesRequest), output := (Shape.schema DescribeSecondaryInterfacesResult), errors := [] } + | .describeSecondaryNetworks => { name := "DescribeSecondaryNetworks", method := "POST", uri := "/", input := (Shape.schema DescribeSecondaryNetworksRequest), output := (Shape.schema DescribeSecondaryNetworksResult), errors := [] } + | .describeSecondarySubnets => { name := "DescribeSecondarySubnets", method := "POST", uri := "/", input := (Shape.schema DescribeSecondarySubnetsRequest), output := (Shape.schema DescribeSecondarySubnetsResult), errors := [] } + | .describeSecurityGroupReferences => { name := "DescribeSecurityGroupReferences", method := "POST", uri := "/", input := (Shape.schema DescribeSecurityGroupReferencesRequest), output := (Shape.schema DescribeSecurityGroupReferencesResult), errors := [] } + | .describeSecurityGroupRules => { name := "DescribeSecurityGroupRules", method := "POST", uri := "/", input := (Shape.schema DescribeSecurityGroupRulesRequest), output := (Shape.schema DescribeSecurityGroupRulesResult), errors := [] } + | .describeSecurityGroupVpcAssociations => { name := "DescribeSecurityGroupVpcAssociations", method := "POST", uri := "/", input := (Shape.schema DescribeSecurityGroupVpcAssociationsRequest), output := (Shape.schema DescribeSecurityGroupVpcAssociationsResult), errors := [] } + | .describeSecurityGroups => { name := "DescribeSecurityGroups", method := "POST", uri := "/", input := (Shape.schema DescribeSecurityGroupsRequest), output := (Shape.schema DescribeSecurityGroupsResult), errors := [] } + | .describeServiceLinkVirtualInterfaces => { name := "DescribeServiceLinkVirtualInterfaces", method := "POST", uri := "/", input := (Shape.schema DescribeServiceLinkVirtualInterfacesRequest), output := (Shape.schema DescribeServiceLinkVirtualInterfacesResult), errors := [] } + | .describeSnapshotAttribute => { name := "DescribeSnapshotAttribute", method := "POST", uri := "/", input := (Shape.schema DescribeSnapshotAttributeRequest), output := (Shape.schema DescribeSnapshotAttributeResult), errors := [] } + | .describeSnapshotTierStatus => { name := "DescribeSnapshotTierStatus", method := "POST", uri := "/", input := (Shape.schema DescribeSnapshotTierStatusRequest), output := (Shape.schema DescribeSnapshotTierStatusResult), errors := [] } + | .describeSnapshots => { name := "DescribeSnapshots", method := "POST", uri := "/", input := (Shape.schema DescribeSnapshotsRequest), output := (Shape.schema DescribeSnapshotsResult), errors := [] } + | .describeSpotDatafeedSubscription => { name := "DescribeSpotDatafeedSubscription", method := "POST", uri := "/", input := (Shape.schema DescribeSpotDatafeedSubscriptionRequest), output := (Shape.schema DescribeSpotDatafeedSubscriptionResult), errors := [] } + | .describeSpotFleetInstances => { name := "DescribeSpotFleetInstances", method := "POST", uri := "/", input := (Shape.schema DescribeSpotFleetInstancesRequest), output := (Shape.schema DescribeSpotFleetInstancesResponse), errors := [] } + | .describeSpotFleetRequestHistory => { name := "DescribeSpotFleetRequestHistory", method := "POST", uri := "/", input := (Shape.schema DescribeSpotFleetRequestHistoryRequest), output := (Shape.schema DescribeSpotFleetRequestHistoryResponse), errors := [] } + | .describeSpotFleetRequests => { name := "DescribeSpotFleetRequests", method := "POST", uri := "/", input := (Shape.schema DescribeSpotFleetRequestsRequest), output := (Shape.schema DescribeSpotFleetRequestsResponse), errors := [] } + | .describeSpotInstanceRequests => { name := "DescribeSpotInstanceRequests", method := "POST", uri := "/", input := (Shape.schema DescribeSpotInstanceRequestsRequest), output := (Shape.schema DescribeSpotInstanceRequestsResult), errors := [] } + | .describeSpotPriceHistory => { name := "DescribeSpotPriceHistory", method := "POST", uri := "/", input := (Shape.schema DescribeSpotPriceHistoryRequest), output := (Shape.schema DescribeSpotPriceHistoryResult), errors := [] } + | .describeStaleSecurityGroups => { name := "DescribeStaleSecurityGroups", method := "POST", uri := "/", input := (Shape.schema DescribeStaleSecurityGroupsRequest), output := (Shape.schema DescribeStaleSecurityGroupsResult), errors := [] } + | .describeStoreImageTasks => { name := "DescribeStoreImageTasks", method := "POST", uri := "/", input := (Shape.schema DescribeStoreImageTasksRequest), output := (Shape.schema DescribeStoreImageTasksResult), errors := [] } + | .describeSubnets => { name := "DescribeSubnets", method := "POST", uri := "/", input := (Shape.schema DescribeSubnetsRequest), output := (Shape.schema DescribeSubnetsResult), errors := [] } + | .describeTags => { name := "DescribeTags", method := "POST", uri := "/", input := (Shape.schema DescribeTagsRequest), output := (Shape.schema DescribeTagsResult), errors := [] } + | .describeTrafficMirrorFilterRules => { name := "DescribeTrafficMirrorFilterRules", method := "POST", uri := "/", input := (Shape.schema DescribeTrafficMirrorFilterRulesRequest), output := (Shape.schema DescribeTrafficMirrorFilterRulesResult), errors := [] } + | .describeTrafficMirrorFilters => { name := "DescribeTrafficMirrorFilters", method := "POST", uri := "/", input := (Shape.schema DescribeTrafficMirrorFiltersRequest), output := (Shape.schema DescribeTrafficMirrorFiltersResult), errors := [] } + | .describeTrafficMirrorSessions => { name := "DescribeTrafficMirrorSessions", method := "POST", uri := "/", input := (Shape.schema DescribeTrafficMirrorSessionsRequest), output := (Shape.schema DescribeTrafficMirrorSessionsResult), errors := [] } + | .describeTrafficMirrorTargets => { name := "DescribeTrafficMirrorTargets", method := "POST", uri := "/", input := (Shape.schema DescribeTrafficMirrorTargetsRequest), output := (Shape.schema DescribeTrafficMirrorTargetsResult), errors := [] } + | .describeTransitGatewayAttachments => { name := "DescribeTransitGatewayAttachments", method := "POST", uri := "/", input := (Shape.schema DescribeTransitGatewayAttachmentsRequest), output := (Shape.schema DescribeTransitGatewayAttachmentsResult), errors := [] } + | .describeTransitGatewayConnectPeers => { name := "DescribeTransitGatewayConnectPeers", method := "POST", uri := "/", input := (Shape.schema DescribeTransitGatewayConnectPeersRequest), output := (Shape.schema DescribeTransitGatewayConnectPeersResult), errors := [] } + | .describeTransitGatewayConnects => { name := "DescribeTransitGatewayConnects", method := "POST", uri := "/", input := (Shape.schema DescribeTransitGatewayConnectsRequest), output := (Shape.schema DescribeTransitGatewayConnectsResult), errors := [] } + | .describeTransitGatewayMeteringPolicies => { name := "DescribeTransitGatewayMeteringPolicies", method := "POST", uri := "/", input := (Shape.schema DescribeTransitGatewayMeteringPoliciesRequest), output := (Shape.schema DescribeTransitGatewayMeteringPoliciesResult), errors := [] } + | .describeTransitGatewayMulticastDomains => { name := "DescribeTransitGatewayMulticastDomains", method := "POST", uri := "/", input := (Shape.schema DescribeTransitGatewayMulticastDomainsRequest), output := (Shape.schema DescribeTransitGatewayMulticastDomainsResult), errors := [] } + | .describeTransitGatewayNetworkFunctionAttachments => { name := "DescribeTransitGatewayNetworkFunctionAttachments", method := "POST", uri := "/", input := (Shape.schema DescribeTransitGatewayNetworkFunctionAttachmentsRequest), output := (Shape.schema DescribeTransitGatewayNetworkFunctionAttachmentsResult), errors := [] } + | .describeTransitGatewayPeeringAttachments => { name := "DescribeTransitGatewayPeeringAttachments", method := "POST", uri := "/", input := (Shape.schema DescribeTransitGatewayPeeringAttachmentsRequest), output := (Shape.schema DescribeTransitGatewayPeeringAttachmentsResult), errors := [] } + | .describeTransitGatewayPolicyTables => { name := "DescribeTransitGatewayPolicyTables", method := "POST", uri := "/", input := (Shape.schema DescribeTransitGatewayPolicyTablesRequest), output := (Shape.schema DescribeTransitGatewayPolicyTablesResult), errors := [] } + | .describeTransitGatewayRouteTableAnnouncements => { name := "DescribeTransitGatewayRouteTableAnnouncements", method := "POST", uri := "/", input := (Shape.schema DescribeTransitGatewayRouteTableAnnouncementsRequest), output := (Shape.schema DescribeTransitGatewayRouteTableAnnouncementsResult), errors := [] } + | .describeTransitGatewayRouteTables => { name := "DescribeTransitGatewayRouteTables", method := "POST", uri := "/", input := (Shape.schema DescribeTransitGatewayRouteTablesRequest), output := (Shape.schema DescribeTransitGatewayRouteTablesResult), errors := [] } + | .describeTransitGatewayVpcAttachments => { name := "DescribeTransitGatewayVpcAttachments", method := "POST", uri := "/", input := (Shape.schema DescribeTransitGatewayVpcAttachmentsRequest), output := (Shape.schema DescribeTransitGatewayVpcAttachmentsResult), errors := [] } + | .describeTransitGateways => { name := "DescribeTransitGateways", method := "POST", uri := "/", input := (Shape.schema DescribeTransitGatewaysRequest), output := (Shape.schema DescribeTransitGatewaysResult), errors := [] } + | .describeTrunkInterfaceAssociations => { name := "DescribeTrunkInterfaceAssociations", method := "POST", uri := "/", input := (Shape.schema DescribeTrunkInterfaceAssociationsRequest), output := (Shape.schema DescribeTrunkInterfaceAssociationsResult), errors := [] } + | .describeVerifiedAccessEndpoints => { name := "DescribeVerifiedAccessEndpoints", method := "POST", uri := "/", input := (Shape.schema DescribeVerifiedAccessEndpointsRequest), output := (Shape.schema DescribeVerifiedAccessEndpointsResult), errors := [] } + | .describeVerifiedAccessGroups => { name := "DescribeVerifiedAccessGroups", method := "POST", uri := "/", input := (Shape.schema DescribeVerifiedAccessGroupsRequest), output := (Shape.schema DescribeVerifiedAccessGroupsResult), errors := [] } + | .describeVerifiedAccessInstanceLoggingConfigurations => { name := "DescribeVerifiedAccessInstanceLoggingConfigurations", method := "POST", uri := "/", input := (Shape.schema DescribeVerifiedAccessInstanceLoggingConfigurationsRequest), output := (Shape.schema DescribeVerifiedAccessInstanceLoggingConfigurationsResult), errors := [] } + | .describeVerifiedAccessInstances => { name := "DescribeVerifiedAccessInstances", method := "POST", uri := "/", input := (Shape.schema DescribeVerifiedAccessInstancesRequest), output := (Shape.schema DescribeVerifiedAccessInstancesResult), errors := [] } + | .describeVerifiedAccessTrustProviders => { name := "DescribeVerifiedAccessTrustProviders", method := "POST", uri := "/", input := (Shape.schema DescribeVerifiedAccessTrustProvidersRequest), output := (Shape.schema DescribeVerifiedAccessTrustProvidersResult), errors := [] } + | .describeVolumeAttribute => { name := "DescribeVolumeAttribute", method := "POST", uri := "/", input := (Shape.schema DescribeVolumeAttributeRequest), output := (Shape.schema DescribeVolumeAttributeResult), errors := [] } + | .describeVolumeStatus => { name := "DescribeVolumeStatus", method := "POST", uri := "/", input := (Shape.schema DescribeVolumeStatusRequest), output := (Shape.schema DescribeVolumeStatusResult), errors := [] } + | .describeVolumes => { name := "DescribeVolumes", method := "POST", uri := "/", input := (Shape.schema DescribeVolumesRequest), output := (Shape.schema DescribeVolumesResult), errors := [] } + | .describeVolumesModifications => { name := "DescribeVolumesModifications", method := "POST", uri := "/", input := (Shape.schema DescribeVolumesModificationsRequest), output := (Shape.schema DescribeVolumesModificationsResult), errors := [] } + | .describeVpcAttribute => { name := "DescribeVpcAttribute", method := "POST", uri := "/", input := (Shape.schema DescribeVpcAttributeRequest), output := (Shape.schema DescribeVpcAttributeResult), errors := [] } + | .describeVpcBlockPublicAccessExclusions => { name := "DescribeVpcBlockPublicAccessExclusions", method := "POST", uri := "/", input := (Shape.schema DescribeVpcBlockPublicAccessExclusionsRequest), output := (Shape.schema DescribeVpcBlockPublicAccessExclusionsResult), errors := [] } + | .describeVpcBlockPublicAccessOptions => { name := "DescribeVpcBlockPublicAccessOptions", method := "POST", uri := "/", input := (Shape.schema DescribeVpcBlockPublicAccessOptionsRequest), output := (Shape.schema DescribeVpcBlockPublicAccessOptionsResult), errors := [] } + | .describeVpcClassicLink => { name := "DescribeVpcClassicLink", method := "POST", uri := "/", input := (Shape.schema DescribeVpcClassicLinkRequest), output := (Shape.schema DescribeVpcClassicLinkResult), errors := [] } + | .describeVpcClassicLinkDnsSupport => { name := "DescribeVpcClassicLinkDnsSupport", method := "POST", uri := "/", input := (Shape.schema DescribeVpcClassicLinkDnsSupportRequest), output := (Shape.schema DescribeVpcClassicLinkDnsSupportResult), errors := [] } + | .describeVpcEncryptionControls => { name := "DescribeVpcEncryptionControls", method := "POST", uri := "/", input := (Shape.schema DescribeVpcEncryptionControlsRequest), output := (Shape.schema DescribeVpcEncryptionControlsResult), errors := [] } + | .describeVpcEndpointAssociations => { name := "DescribeVpcEndpointAssociations", method := "POST", uri := "/", input := (Shape.schema DescribeVpcEndpointAssociationsRequest), output := (Shape.schema DescribeVpcEndpointAssociationsResult), errors := [] } + | .describeVpcEndpointConnectionNotifications => { name := "DescribeVpcEndpointConnectionNotifications", method := "POST", uri := "/", input := (Shape.schema DescribeVpcEndpointConnectionNotificationsRequest), output := (Shape.schema DescribeVpcEndpointConnectionNotificationsResult), errors := [] } + | .describeVpcEndpointConnections => { name := "DescribeVpcEndpointConnections", method := "POST", uri := "/", input := (Shape.schema DescribeVpcEndpointConnectionsRequest), output := (Shape.schema DescribeVpcEndpointConnectionsResult), errors := [] } + | .describeVpcEndpointServiceConfigurations => { name := "DescribeVpcEndpointServiceConfigurations", method := "POST", uri := "/", input := (Shape.schema DescribeVpcEndpointServiceConfigurationsRequest), output := (Shape.schema DescribeVpcEndpointServiceConfigurationsResult), errors := [] } + | .describeVpcEndpointServicePermissions => { name := "DescribeVpcEndpointServicePermissions", method := "POST", uri := "/", input := (Shape.schema DescribeVpcEndpointServicePermissionsRequest), output := (Shape.schema DescribeVpcEndpointServicePermissionsResult), errors := [] } + | .describeVpcEndpointServices => { name := "DescribeVpcEndpointServices", method := "POST", uri := "/", input := (Shape.schema DescribeVpcEndpointServicesRequest), output := (Shape.schema DescribeVpcEndpointServicesResult), errors := [] } + | .describeVpcEndpoints => { name := "DescribeVpcEndpoints", method := "POST", uri := "/", input := (Shape.schema DescribeVpcEndpointsRequest), output := (Shape.schema DescribeVpcEndpointsResult), errors := [] } + | .describeVpcPeeringConnections => { name := "DescribeVpcPeeringConnections", method := "POST", uri := "/", input := (Shape.schema DescribeVpcPeeringConnectionsRequest), output := (Shape.schema DescribeVpcPeeringConnectionsResult), errors := [] } + | .describeVpcs => { name := "DescribeVpcs", method := "POST", uri := "/", input := (Shape.schema DescribeVpcsRequest), output := (Shape.schema DescribeVpcsResult), errors := [] } + | .describeVpnConcentrators => { name := "DescribeVpnConcentrators", method := "POST", uri := "/", input := (Shape.schema DescribeVpnConcentratorsRequest), output := (Shape.schema DescribeVpnConcentratorsResult), errors := [] } + | .describeVpnConnections => { name := "DescribeVpnConnections", method := "POST", uri := "/", input := (Shape.schema DescribeVpnConnectionsRequest), output := (Shape.schema DescribeVpnConnectionsResult), errors := [] } + | .describeVpnGateways => { name := "DescribeVpnGateways", method := "POST", uri := "/", input := (Shape.schema DescribeVpnGatewaysRequest), output := (Shape.schema DescribeVpnGatewaysResult), errors := [] } + | .detachClassicLinkVpc => { name := "DetachClassicLinkVpc", method := "POST", uri := "/", input := (Shape.schema DetachClassicLinkVpcRequest), output := (Shape.schema DetachClassicLinkVpcResult), errors := [] } + | .detachImageWatermark => { name := "DetachImageWatermark", method := "POST", uri := "/", input := (Shape.schema DetachImageWatermarkRequest), output := (Shape.schema DetachImageWatermarkResult), errors := [] } + | .detachInternetGateway => { name := "DetachInternetGateway", method := "POST", uri := "/", input := (Shape.schema DetachInternetGatewayRequest), output := (Shape.schema Unit), errors := [] } + | .detachNetworkInterface => { name := "DetachNetworkInterface", method := "POST", uri := "/", input := (Shape.schema DetachNetworkInterfaceRequest), output := (Shape.schema Unit), errors := [] } + | .detachVerifiedAccessTrustProvider => { name := "DetachVerifiedAccessTrustProvider", method := "POST", uri := "/", input := (Shape.schema DetachVerifiedAccessTrustProviderRequest), output := (Shape.schema DetachVerifiedAccessTrustProviderResult), errors := [] } + | .detachVolume => { name := "DetachVolume", method := "POST", uri := "/", input := (Shape.schema DetachVolumeRequest), output := (Shape.schema VolumeAttachment), errors := [] } + | .detachVpnGateway => { name := "DetachVpnGateway", method := "POST", uri := "/", input := (Shape.schema DetachVpnGatewayRequest), output := (Shape.schema Unit), errors := [] } + | .disableAddressTransfer => { name := "DisableAddressTransfer", method := "POST", uri := "/", input := (Shape.schema DisableAddressTransferRequest), output := (Shape.schema DisableAddressTransferResult), errors := [] } + | .disableAllowedImagesSettings => { name := "DisableAllowedImagesSettings", method := "POST", uri := "/", input := (Shape.schema DisableAllowedImagesSettingsRequest), output := (Shape.schema DisableAllowedImagesSettingsResult), errors := [] } + | .disableApplicationStatusCheckSuppression => { name := "DisableApplicationStatusCheckSuppression", method := "POST", uri := "/", input := (Shape.schema DisableApplicationStatusCheckSuppressionRequest), output := (Shape.schema DisableApplicationStatusCheckSuppressionResult), errors := [] } + | .disableAwsNetworkPerformanceMetricSubscription => { name := "DisableAwsNetworkPerformanceMetricSubscription", method := "POST", uri := "/", input := (Shape.schema DisableAwsNetworkPerformanceMetricSubscriptionRequest), output := (Shape.schema DisableAwsNetworkPerformanceMetricSubscriptionResult), errors := [] } + | .disableCapacityManager => { name := "DisableCapacityManager", method := "POST", uri := "/", input := (Shape.schema DisableCapacityManagerRequest), output := (Shape.schema DisableCapacityManagerResult), errors := [] } + | .disableEbsEncryptionByDefault => { name := "DisableEbsEncryptionByDefault", method := "POST", uri := "/", input := (Shape.schema DisableEbsEncryptionByDefaultRequest), output := (Shape.schema DisableEbsEncryptionByDefaultResult), errors := [] } + | .disableFastLaunch => { name := "DisableFastLaunch", method := "POST", uri := "/", input := (Shape.schema DisableFastLaunchRequest), output := (Shape.schema DisableFastLaunchResult), errors := [] } + | .disableFastSnapshotRestores => { name := "DisableFastSnapshotRestores", method := "POST", uri := "/", input := (Shape.schema DisableFastSnapshotRestoresRequest), output := (Shape.schema DisableFastSnapshotRestoresResult), errors := [] } + | .disableImage => { name := "DisableImage", method := "POST", uri := "/", input := (Shape.schema DisableImageRequest), output := (Shape.schema DisableImageResult), errors := [] } + | .disableImageBlockPublicAccess => { name := "DisableImageBlockPublicAccess", method := "POST", uri := "/", input := (Shape.schema DisableImageBlockPublicAccessRequest), output := (Shape.schema DisableImageBlockPublicAccessResult), errors := [] } + | .disableImageDeprecation => { name := "DisableImageDeprecation", method := "POST", uri := "/", input := (Shape.schema DisableImageDeprecationRequest), output := (Shape.schema DisableImageDeprecationResult), errors := [] } + | .disableImageDeregistrationProtection => { name := "DisableImageDeregistrationProtection", method := "POST", uri := "/", input := (Shape.schema DisableImageDeregistrationProtectionRequest), output := (Shape.schema DisableImageDeregistrationProtectionResult), errors := [] } + | .disableInstanceSqlHaStandbyDetections => { name := "DisableInstanceSqlHaStandbyDetections", method := "POST", uri := "/", input := (Shape.schema DisableInstanceSqlHaStandbyDetectionsRequest), output := (Shape.schema DisableInstanceSqlHaStandbyDetectionsResult), errors := [] } + | .disableIpamOrganizationAdminAccount => { name := "DisableIpamOrganizationAdminAccount", method := "POST", uri := "/", input := (Shape.schema DisableIpamOrganizationAdminAccountRequest), output := (Shape.schema DisableIpamOrganizationAdminAccountResult), errors := [] } + | .disableIpamPolicy => { name := "DisableIpamPolicy", method := "POST", uri := "/", input := (Shape.schema DisableIpamPolicyRequest), output := (Shape.schema DisableIpamPolicyResult), errors := [] } + | .disableRouteServerPropagation => { name := "DisableRouteServerPropagation", method := "POST", uri := "/", input := (Shape.schema DisableRouteServerPropagationRequest), output := (Shape.schema DisableRouteServerPropagationResult), errors := [] } + | .disableSerialConsoleAccess => { name := "DisableSerialConsoleAccess", method := "POST", uri := "/", input := (Shape.schema DisableSerialConsoleAccessRequest), output := (Shape.schema DisableSerialConsoleAccessResult), errors := [] } + | .disableSnapshotBlockPublicAccess => { name := "DisableSnapshotBlockPublicAccess", method := "POST", uri := "/", input := (Shape.schema DisableSnapshotBlockPublicAccessRequest), output := (Shape.schema DisableSnapshotBlockPublicAccessResult), errors := [] } + | .disableTransitGatewayRouteTablePropagation => { name := "DisableTransitGatewayRouteTablePropagation", method := "POST", uri := "/", input := (Shape.schema DisableTransitGatewayRouteTablePropagationRequest), output := (Shape.schema DisableTransitGatewayRouteTablePropagationResult), errors := [] } + | .disableVgwRoutePropagation => { name := "DisableVgwRoutePropagation", method := "POST", uri := "/", input := (Shape.schema DisableVgwRoutePropagationRequest), output := (Shape.schema Unit), errors := [] } + | .disableVpcClassicLink => { name := "DisableVpcClassicLink", method := "POST", uri := "/", input := (Shape.schema DisableVpcClassicLinkRequest), output := (Shape.schema DisableVpcClassicLinkResult), errors := [] } + | .disableVpcClassicLinkDnsSupport => { name := "DisableVpcClassicLinkDnsSupport", method := "POST", uri := "/", input := (Shape.schema DisableVpcClassicLinkDnsSupportRequest), output := (Shape.schema DisableVpcClassicLinkDnsSupportResult), errors := [] } + | .disassociateAddress => { name := "DisassociateAddress", method := "POST", uri := "/", input := (Shape.schema DisassociateAddressRequest), output := (Shape.schema Unit), errors := [] } + | .disassociateApplicationStatusCheck => { name := "DisassociateApplicationStatusCheck", method := "POST", uri := "/", input := (Shape.schema DisassociateApplicationStatusCheckRequest), output := (Shape.schema DisassociateApplicationStatusCheckResult), errors := [] } + | .disassociateCapacityReservationBillingOwner => { name := "DisassociateCapacityReservationBillingOwner", method := "POST", uri := "/", input := (Shape.schema DisassociateCapacityReservationBillingOwnerRequest), output := (Shape.schema DisassociateCapacityReservationBillingOwnerResult), errors := [] } + | .disassociateClientVpnTargetNetwork => { name := "DisassociateClientVpnTargetNetwork", method := "POST", uri := "/", input := (Shape.schema DisassociateClientVpnTargetNetworkRequest), output := (Shape.schema DisassociateClientVpnTargetNetworkResult), errors := [] } + | .disassociateEnclaveCertificateIamRole => { name := "DisassociateEnclaveCertificateIamRole", method := "POST", uri := "/", input := (Shape.schema DisassociateEnclaveCertificateIamRoleRequest), output := (Shape.schema DisassociateEnclaveCertificateIamRoleResult), errors := [] } + | .disassociateIamInstanceProfile => { name := "DisassociateIamInstanceProfile", method := "POST", uri := "/", input := (Shape.schema DisassociateIamInstanceProfileRequest), output := (Shape.schema DisassociateIamInstanceProfileResult), errors := [] } + | .disassociateInstanceEventWindow => { name := "DisassociateInstanceEventWindow", method := "POST", uri := "/", input := (Shape.schema DisassociateInstanceEventWindowRequest), output := (Shape.schema DisassociateInstanceEventWindowResult), errors := [] } + | .disassociateIpamByoasn => { name := "DisassociateIpamByoasn", method := "POST", uri := "/", input := (Shape.schema DisassociateIpamByoasnRequest), output := (Shape.schema DisassociateIpamByoasnResult), errors := [] } + | .disassociateIpamResourceDiscovery => { name := "DisassociateIpamResourceDiscovery", method := "POST", uri := "/", input := (Shape.schema DisassociateIpamResourceDiscoveryRequest), output := (Shape.schema DisassociateIpamResourceDiscoveryResult), errors := [] } + | .disassociateKmsKeyId => { name := "DisassociateKmsKeyId", method := "POST", uri := "/", input := (Shape.schema DisassociateKmsKeyIdRequest), output := (Shape.schema DisassociateKmsKeyIdResult), errors := [] } + | .disassociateNatGatewayAddress => { name := "DisassociateNatGatewayAddress", method := "POST", uri := "/", input := (Shape.schema DisassociateNatGatewayAddressRequest), output := (Shape.schema DisassociateNatGatewayAddressResult), errors := [] } + | .disassociateNetworkingFlexCostAllocationPolicy => { name := "DisassociateNetworkingFlexCostAllocationPolicy", method := "POST", uri := "/", input := (Shape.schema DisassociateNetworkingFlexCostAllocationPolicyRequest), output := (Shape.schema DisassociateNetworkingFlexCostAllocationPolicyResult), errors := [] } + | .disassociateRouteServer => { name := "DisassociateRouteServer", method := "POST", uri := "/", input := (Shape.schema DisassociateRouteServerRequest), output := (Shape.schema DisassociateRouteServerResult), errors := [] } + | .disassociateRouteTable => { name := "DisassociateRouteTable", method := "POST", uri := "/", input := (Shape.schema DisassociateRouteTableRequest), output := (Shape.schema Unit), errors := [] } + | .disassociateSecurityGroupVpc => { name := "DisassociateSecurityGroupVpc", method := "POST", uri := "/", input := (Shape.schema DisassociateSecurityGroupVpcRequest), output := (Shape.schema DisassociateSecurityGroupVpcResult), errors := [] } + | .disassociateSubnetCidrBlock => { name := "DisassociateSubnetCidrBlock", method := "POST", uri := "/", input := (Shape.schema DisassociateSubnetCidrBlockRequest), output := (Shape.schema DisassociateSubnetCidrBlockResult), errors := [] } + | .disassociateTransitGatewayMulticastDomain => { name := "DisassociateTransitGatewayMulticastDomain", method := "POST", uri := "/", input := (Shape.schema DisassociateTransitGatewayMulticastDomainRequest), output := (Shape.schema DisassociateTransitGatewayMulticastDomainResult), errors := [] } + | .disassociateTransitGatewayPolicyTable => { name := "DisassociateTransitGatewayPolicyTable", method := "POST", uri := "/", input := (Shape.schema DisassociateTransitGatewayPolicyTableRequest), output := (Shape.schema DisassociateTransitGatewayPolicyTableResult), errors := [] } + | .disassociateTransitGatewayRouteTable => { name := "DisassociateTransitGatewayRouteTable", method := "POST", uri := "/", input := (Shape.schema DisassociateTransitGatewayRouteTableRequest), output := (Shape.schema DisassociateTransitGatewayRouteTableResult), errors := [] } + | .disassociateTrunkInterface => { name := "DisassociateTrunkInterface", method := "POST", uri := "/", input := (Shape.schema DisassociateTrunkInterfaceRequest), output := (Shape.schema DisassociateTrunkInterfaceResult), errors := [] } + | .disassociateVpcCidrBlock => { name := "DisassociateVpcCidrBlock", method := "POST", uri := "/", input := (Shape.schema DisassociateVpcCidrBlockRequest), output := (Shape.schema DisassociateVpcCidrBlockResult), errors := [] } + | .enableAddressTransfer => { name := "EnableAddressTransfer", method := "POST", uri := "/", input := (Shape.schema EnableAddressTransferRequest), output := (Shape.schema EnableAddressTransferResult), errors := [] } + | .enableAllowedImagesSettings => { name := "EnableAllowedImagesSettings", method := "POST", uri := "/", input := (Shape.schema EnableAllowedImagesSettingsRequest), output := (Shape.schema EnableAllowedImagesSettingsResult), errors := [] } + | .enableApplicationStatusCheckSuppression => { name := "EnableApplicationStatusCheckSuppression", method := "POST", uri := "/", input := (Shape.schema EnableApplicationStatusCheckSuppressionRequest), output := (Shape.schema EnableApplicationStatusCheckSuppressionResult), errors := [] } + | .enableAwsNetworkPerformanceMetricSubscription => { name := "EnableAwsNetworkPerformanceMetricSubscription", method := "POST", uri := "/", input := (Shape.schema EnableAwsNetworkPerformanceMetricSubscriptionRequest), output := (Shape.schema EnableAwsNetworkPerformanceMetricSubscriptionResult), errors := [] } + | .enableCapacityManager => { name := "EnableCapacityManager", method := "POST", uri := "/", input := (Shape.schema EnableCapacityManagerRequest), output := (Shape.schema EnableCapacityManagerResult), errors := [] } + | .enableEbsEncryptionByDefault => { name := "EnableEbsEncryptionByDefault", method := "POST", uri := "/", input := (Shape.schema EnableEbsEncryptionByDefaultRequest), output := (Shape.schema EnableEbsEncryptionByDefaultResult), errors := [] } + | .enableFastLaunch => { name := "EnableFastLaunch", method := "POST", uri := "/", input := (Shape.schema EnableFastLaunchRequest), output := (Shape.schema EnableFastLaunchResult), errors := [] } + | .enableFastSnapshotRestores => { name := "EnableFastSnapshotRestores", method := "POST", uri := "/", input := (Shape.schema EnableFastSnapshotRestoresRequest), output := (Shape.schema EnableFastSnapshotRestoresResult), errors := [] } + | .enableImage => { name := "EnableImage", method := "POST", uri := "/", input := (Shape.schema EnableImageRequest), output := (Shape.schema EnableImageResult), errors := [] } + | .enableImageBlockPublicAccess => { name := "EnableImageBlockPublicAccess", method := "POST", uri := "/", input := (Shape.schema EnableImageBlockPublicAccessRequest), output := (Shape.schema EnableImageBlockPublicAccessResult), errors := [] } + | .enableImageDeprecation => { name := "EnableImageDeprecation", method := "POST", uri := "/", input := (Shape.schema EnableImageDeprecationRequest), output := (Shape.schema EnableImageDeprecationResult), errors := [] } + | .enableImageDeregistrationProtection => { name := "EnableImageDeregistrationProtection", method := "POST", uri := "/", input := (Shape.schema EnableImageDeregistrationProtectionRequest), output := (Shape.schema EnableImageDeregistrationProtectionResult), errors := [] } + | .enableInstanceSqlHaStandbyDetections => { name := "EnableInstanceSqlHaStandbyDetections", method := "POST", uri := "/", input := (Shape.schema EnableInstanceSqlHaStandbyDetectionsRequest), output := (Shape.schema EnableInstanceSqlHaStandbyDetectionsResult), errors := [] } + | .enableIpamInternetRegistryAssociation => { name := "EnableIpamInternetRegistryAssociation", method := "POST", uri := "/", input := (Shape.schema EnableIpamInternetRegistryAssociationRequest), output := (Shape.schema EnableIpamInternetRegistryAssociationResult), errors := [] } + | .enableIpamOrganizationAdminAccount => { name := "EnableIpamOrganizationAdminAccount", method := "POST", uri := "/", input := (Shape.schema EnableIpamOrganizationAdminAccountRequest), output := (Shape.schema EnableIpamOrganizationAdminAccountResult), errors := [] } + | .enableIpamPolicy => { name := "EnableIpamPolicy", method := "POST", uri := "/", input := (Shape.schema EnableIpamPolicyRequest), output := (Shape.schema EnableIpamPolicyResult), errors := [] } + | .enableReachabilityAnalyzerOrganizationSharing => { name := "EnableReachabilityAnalyzerOrganizationSharing", method := "POST", uri := "/", input := (Shape.schema EnableReachabilityAnalyzerOrganizationSharingRequest), output := (Shape.schema EnableReachabilityAnalyzerOrganizationSharingResult), errors := [] } + | .enableRouteServerPropagation => { name := "EnableRouteServerPropagation", method := "POST", uri := "/", input := (Shape.schema EnableRouteServerPropagationRequest), output := (Shape.schema EnableRouteServerPropagationResult), errors := [] } + | .enableSerialConsoleAccess => { name := "EnableSerialConsoleAccess", method := "POST", uri := "/", input := (Shape.schema EnableSerialConsoleAccessRequest), output := (Shape.schema EnableSerialConsoleAccessResult), errors := [] } + | .enableSnapshotBlockPublicAccess => { name := "EnableSnapshotBlockPublicAccess", method := "POST", uri := "/", input := (Shape.schema EnableSnapshotBlockPublicAccessRequest), output := (Shape.schema EnableSnapshotBlockPublicAccessResult), errors := [] } + | .enableTransitGatewayRouteTablePropagation => { name := "EnableTransitGatewayRouteTablePropagation", method := "POST", uri := "/", input := (Shape.schema EnableTransitGatewayRouteTablePropagationRequest), output := (Shape.schema EnableTransitGatewayRouteTablePropagationResult), errors := [] } + | .enableVgwRoutePropagation => { name := "EnableVgwRoutePropagation", method := "POST", uri := "/", input := (Shape.schema EnableVgwRoutePropagationRequest), output := (Shape.schema Unit), errors := [] } + | .enableVolumeIO => { name := "EnableVolumeIO", method := "POST", uri := "/", input := (Shape.schema EnableVolumeIORequest), output := (Shape.schema Unit), errors := [] } + | .enableVpcClassicLink => { name := "EnableVpcClassicLink", method := "POST", uri := "/", input := (Shape.schema EnableVpcClassicLinkRequest), output := (Shape.schema EnableVpcClassicLinkResult), errors := [] } + | .enableVpcClassicLinkDnsSupport => { name := "EnableVpcClassicLinkDnsSupport", method := "POST", uri := "/", input := (Shape.schema EnableVpcClassicLinkDnsSupportRequest), output := (Shape.schema EnableVpcClassicLinkDnsSupportResult), errors := [] } + | .exportClientVpnClientCertificateRevocationList => { name := "ExportClientVpnClientCertificateRevocationList", method := "POST", uri := "/", input := (Shape.schema ExportClientVpnClientCertificateRevocationListRequest), output := (Shape.schema ExportClientVpnClientCertificateRevocationListResult), errors := [] } + | .exportClientVpnClientConfiguration => { name := "ExportClientVpnClientConfiguration", method := "POST", uri := "/", input := (Shape.schema ExportClientVpnClientConfigurationRequest), output := (Shape.schema ExportClientVpnClientConfigurationResult), errors := [] } + | .exportImage => { name := "ExportImage", method := "POST", uri := "/", input := (Shape.schema ExportImageRequest), output := (Shape.schema ExportImageResult), errors := [] } + | .exportTransitGatewayRoutes => { name := "ExportTransitGatewayRoutes", method := "POST", uri := "/", input := (Shape.schema ExportTransitGatewayRoutesRequest), output := (Shape.schema ExportTransitGatewayRoutesResult), errors := [] } + | .exportVerifiedAccessInstanceClientConfiguration => { name := "ExportVerifiedAccessInstanceClientConfiguration", method := "POST", uri := "/", input := (Shape.schema ExportVerifiedAccessInstanceClientConfigurationRequest), output := (Shape.schema ExportVerifiedAccessInstanceClientConfigurationResult), errors := [] } + | .getActiveVpnTunnelStatus => { name := "GetActiveVpnTunnelStatus", method := "POST", uri := "/", input := (Shape.schema GetActiveVpnTunnelStatusRequest), output := (Shape.schema GetActiveVpnTunnelStatusResult), errors := [] } + | .getAllowedImagesSettings => { name := "GetAllowedImagesSettings", method := "POST", uri := "/", input := (Shape.schema GetAllowedImagesSettingsRequest), output := (Shape.schema GetAllowedImagesSettingsResult), errors := [] } + | .getAssociatedEnclaveCertificateIamRoles => { name := "GetAssociatedEnclaveCertificateIamRoles", method := "POST", uri := "/", input := (Shape.schema GetAssociatedEnclaveCertificateIamRolesRequest), output := (Shape.schema GetAssociatedEnclaveCertificateIamRolesResult), errors := [] } + | .getAssociatedIpv6PoolCidrs => { name := "GetAssociatedIpv6PoolCidrs", method := "POST", uri := "/", input := (Shape.schema GetAssociatedIpv6PoolCidrsRequest), output := (Shape.schema GetAssociatedIpv6PoolCidrsResult), errors := [] } + | .getAwsNetworkPerformanceData => { name := "GetAwsNetworkPerformanceData", method := "POST", uri := "/", input := (Shape.schema GetAwsNetworkPerformanceDataRequest), output := (Shape.schema GetAwsNetworkPerformanceDataResult), errors := [] } + | .getCapacityManagerAttributes => { name := "GetCapacityManagerAttributes", method := "POST", uri := "/", input := (Shape.schema GetCapacityManagerAttributesRequest), output := (Shape.schema GetCapacityManagerAttributesResult), errors := [] } + | .getCapacityManagerMetricData => { name := "GetCapacityManagerMetricData", method := "POST", uri := "/", input := (Shape.schema GetCapacityManagerMetricDataRequest), output := (Shape.schema GetCapacityManagerMetricDataResult), errors := [] } + | .getCapacityManagerMetricDimensions => { name := "GetCapacityManagerMetricDimensions", method := "POST", uri := "/", input := (Shape.schema GetCapacityManagerMetricDimensionsRequest), output := (Shape.schema GetCapacityManagerMetricDimensionsResult), errors := [] } + | .getCapacityManagerMonitoredTagKeys => { name := "GetCapacityManagerMonitoredTagKeys", method := "POST", uri := "/", input := (Shape.schema GetCapacityManagerMonitoredTagKeysRequest), output := (Shape.schema GetCapacityManagerMonitoredTagKeysResult), errors := [] } + | .getCapacityManagerSupportabilityScores => { name := "GetCapacityManagerSupportabilityScores", method := "POST", uri := "/", input := (Shape.schema GetCapacityManagerSupportabilityScoresRequest), output := (Shape.schema GetCapacityManagerSupportabilityScoresResult), errors := [] } + | .getCapacityReservationUsage => { name := "GetCapacityReservationUsage", method := "POST", uri := "/", input := (Shape.schema GetCapacityReservationUsageRequest), output := (Shape.schema GetCapacityReservationUsageResult), errors := [] } + | .getClientVpnEndpointAuthorizationPolicy => { name := "GetClientVpnEndpointAuthorizationPolicy", method := "POST", uri := "/", input := (Shape.schema GetClientVpnEndpointAuthorizationPolicyRequest), output := (Shape.schema GetClientVpnEndpointAuthorizationPolicyResult), errors := [] } + | .getCoipPoolUsage => { name := "GetCoipPoolUsage", method := "POST", uri := "/", input := (Shape.schema GetCoipPoolUsageRequest), output := (Shape.schema GetCoipPoolUsageResult), errors := [] } + | .getConsoleOutput => { name := "GetConsoleOutput", method := "POST", uri := "/", input := (Shape.schema GetConsoleOutputRequest), output := (Shape.schema GetConsoleOutputResult), errors := [] } + | .getConsoleScreenshot => { name := "GetConsoleScreenshot", method := "POST", uri := "/", input := (Shape.schema GetConsoleScreenshotRequest), output := (Shape.schema GetConsoleScreenshotResult), errors := [] } + | .getDeclarativePoliciesReportSummary => { name := "GetDeclarativePoliciesReportSummary", method := "POST", uri := "/", input := (Shape.schema GetDeclarativePoliciesReportSummaryRequest), output := (Shape.schema GetDeclarativePoliciesReportSummaryResult), errors := [] } + | .getDefaultCreditSpecification => { name := "GetDefaultCreditSpecification", method := "POST", uri := "/", input := (Shape.schema GetDefaultCreditSpecificationRequest), output := (Shape.schema GetDefaultCreditSpecificationResult), errors := [] } + | .getEbsDefaultKmsKeyId => { name := "GetEbsDefaultKmsKeyId", method := "POST", uri := "/", input := (Shape.schema GetEbsDefaultKmsKeyIdRequest), output := (Shape.schema GetEbsDefaultKmsKeyIdResult), errors := [] } + | .getEbsEncryptionByDefault => { name := "GetEbsEncryptionByDefault", method := "POST", uri := "/", input := (Shape.schema GetEbsEncryptionByDefaultRequest), output := (Shape.schema GetEbsEncryptionByDefaultResult), errors := [] } + | .getEnabledIpamPolicy => { name := "GetEnabledIpamPolicy", method := "POST", uri := "/", input := (Shape.schema GetEnabledIpamPolicyRequest), output := (Shape.schema GetEnabledIpamPolicyResult), errors := [] } + | .getFlowLogsIntegrationTemplate => { name := "GetFlowLogsIntegrationTemplate", method := "POST", uri := "/", input := (Shape.schema GetFlowLogsIntegrationTemplateRequest), output := (Shape.schema GetFlowLogsIntegrationTemplateResult), errors := [] } + | .getGroupsForCapacityReservation => { name := "GetGroupsForCapacityReservation", method := "POST", uri := "/", input := (Shape.schema GetGroupsForCapacityReservationRequest), output := (Shape.schema GetGroupsForCapacityReservationResult), errors := [] } + | .getHostReservationPurchasePreview => { name := "GetHostReservationPurchasePreview", method := "POST", uri := "/", input := (Shape.schema GetHostReservationPurchasePreviewRequest), output := (Shape.schema GetHostReservationPurchasePreviewResult), errors := [] } + | .getImageAncestry => { name := "GetImageAncestry", method := "POST", uri := "/", input := (Shape.schema GetImageAncestryRequest), output := (Shape.schema GetImageAncestryResult), errors := [] } + | .getImageBlockPublicAccessState => { name := "GetImageBlockPublicAccessState", method := "POST", uri := "/", input := (Shape.schema GetImageBlockPublicAccessStateRequest), output := (Shape.schema GetImageBlockPublicAccessStateResult), errors := [] } + | .getImageFindings => { name := "GetImageFindings", method := "POST", uri := "/", input := (Shape.schema GetImageFindingsRequest), output := (Shape.schema GetImageFindingsResult), errors := [] } + | .getInstanceMetadataDefaults => { name := "GetInstanceMetadataDefaults", method := "POST", uri := "/", input := (Shape.schema GetInstanceMetadataDefaultsRequest), output := (Shape.schema GetInstanceMetadataDefaultsResult), errors := [] } + | .getInstanceTpmEkPub => { name := "GetInstanceTpmEkPub", method := "POST", uri := "/", input := (Shape.schema GetInstanceTpmEkPubRequest), output := (Shape.schema GetInstanceTpmEkPubResult), errors := [] } + | .getInstanceTypesFromInstanceRequirements => { name := "GetInstanceTypesFromInstanceRequirements", method := "POST", uri := "/", input := (Shape.schema GetInstanceTypesFromInstanceRequirementsRequest), output := (Shape.schema GetInstanceTypesFromInstanceRequirementsResult), errors := [] } + | .getInstanceUefiData => { name := "GetInstanceUefiData", method := "POST", uri := "/", input := (Shape.schema GetInstanceUefiDataRequest), output := (Shape.schema GetInstanceUefiDataResult), errors := [] } + | .getIpamAddressHistory => { name := "GetIpamAddressHistory", method := "POST", uri := "/", input := (Shape.schema GetIpamAddressHistoryRequest), output := (Shape.schema GetIpamAddressHistoryResult), errors := [] } + | .getIpamDiscoveredAccounts => { name := "GetIpamDiscoveredAccounts", method := "POST", uri := "/", input := (Shape.schema GetIpamDiscoveredAccountsRequest), output := (Shape.schema GetIpamDiscoveredAccountsResult), errors := [] } + | .getIpamDiscoveredPublicAddresses => { name := "GetIpamDiscoveredPublicAddresses", method := "POST", uri := "/", input := (Shape.schema GetIpamDiscoveredPublicAddressesRequest), output := (Shape.schema GetIpamDiscoveredPublicAddressesResult), errors := [] } + | .getIpamDiscoveredResourceCidrs => { name := "GetIpamDiscoveredResourceCidrs", method := "POST", uri := "/", input := (Shape.schema GetIpamDiscoveredResourceCidrsRequest), output := (Shape.schema GetIpamDiscoveredResourceCidrsResult), errors := [] } + | .getIpamDiscoveredRoutes => { name := "GetIpamDiscoveredRoutes", method := "POST", uri := "/", input := (Shape.schema GetIpamDiscoveredRoutesRequest), output := (Shape.schema GetIpamDiscoveredRoutesResult), errors := [] } + | .getIpamInternetRegistryAssociationAsns => { name := "GetIpamInternetRegistryAssociationAsns", method := "POST", uri := "/", input := (Shape.schema GetIpamInternetRegistryAssociationAsnsRequest), output := (Shape.schema GetIpamInternetRegistryAssociationAsnsResult), errors := [] } + | .getIpamInternetRegistryAssociationCidrs => { name := "GetIpamInternetRegistryAssociationCidrs", method := "POST", uri := "/", input := (Shape.schema GetIpamInternetRegistryAssociationCidrsRequest), output := (Shape.schema GetIpamInternetRegistryAssociationCidrsResult), errors := [] } + | .getIpamPolicyAllocationRules => { name := "GetIpamPolicyAllocationRules", method := "POST", uri := "/", input := (Shape.schema GetIpamPolicyAllocationRulesRequest), output := (Shape.schema GetIpamPolicyAllocationRulesResult), errors := [] } + | .getIpamPolicyOrganizationTargets => { name := "GetIpamPolicyOrganizationTargets", method := "POST", uri := "/", input := (Shape.schema GetIpamPolicyOrganizationTargetsRequest), output := (Shape.schema GetIpamPolicyOrganizationTargetsResult), errors := [] } + | .getIpamPoolAllocations => { name := "GetIpamPoolAllocations", method := "POST", uri := "/", input := (Shape.schema GetIpamPoolAllocationsRequest), output := (Shape.schema GetIpamPoolAllocationsResult), errors := [] } + | .getIpamPoolCidrs => { name := "GetIpamPoolCidrs", method := "POST", uri := "/", input := (Shape.schema GetIpamPoolCidrsRequest), output := (Shape.schema GetIpamPoolCidrsResult), errors := [] } + | .getIpamPrefixListResolverRules => { name := "GetIpamPrefixListResolverRules", method := "POST", uri := "/", input := (Shape.schema GetIpamPrefixListResolverRulesRequest), output := (Shape.schema GetIpamPrefixListResolverRulesResult), errors := [] } + | .getIpamPrefixListResolverVersionEntries => { name := "GetIpamPrefixListResolverVersionEntries", method := "POST", uri := "/", input := (Shape.schema GetIpamPrefixListResolverVersionEntriesRequest), output := (Shape.schema GetIpamPrefixListResolverVersionEntriesResult), errors := [] } + | .getIpamPrefixListResolverVersions => { name := "GetIpamPrefixListResolverVersions", method := "POST", uri := "/", input := (Shape.schema GetIpamPrefixListResolverVersionsRequest), output := (Shape.schema GetIpamPrefixListResolverVersionsResult), errors := [] } + | .getIpamResourceCidrs => { name := "GetIpamResourceCidrs", method := "POST", uri := "/", input := (Shape.schema GetIpamResourceCidrsRequest), output := (Shape.schema GetIpamResourceCidrsResult), errors := [] } + | .getIpamRouteOriginAuthorizations => { name := "GetIpamRouteOriginAuthorizations", method := "POST", uri := "/", input := (Shape.schema GetIpamRouteOriginAuthorizationsRequest), output := (Shape.schema GetIpamRouteOriginAuthorizationsResult), errors := [] } + | .getIpamRouteProtectionFindings => { name := "GetIpamRouteProtectionFindings", method := "POST", uri := "/", input := (Shape.schema GetIpamRouteProtectionFindingsRequest), output := (Shape.schema GetIpamRouteProtectionFindingsResult), errors := [] } + | .getIpamRoutingPolicyRegistrationDeltas => { name := "GetIpamRoutingPolicyRegistrationDeltas", method := "POST", uri := "/", input := (Shape.schema GetIpamRoutingPolicyRegistrationDeltasRequest), output := (Shape.schema GetIpamRoutingPolicyRegistrationDeltasResult), errors := [] } + | .getIpamRoutingPolicyRegistrations => { name := "GetIpamRoutingPolicyRegistrations", method := "POST", uri := "/", input := (Shape.schema GetIpamRoutingPolicyRegistrationsRequest), output := (Shape.schema GetIpamRoutingPolicyRegistrationsResult), errors := [] } + | .getLaunchTemplateData => { name := "GetLaunchTemplateData", method := "POST", uri := "/", input := (Shape.schema GetLaunchTemplateDataRequest), output := (Shape.schema GetLaunchTemplateDataResult), errors := [] } + | .getManagedPrefixListAssociations => { name := "GetManagedPrefixListAssociations", method := "POST", uri := "/", input := (Shape.schema GetManagedPrefixListAssociationsRequest), output := (Shape.schema GetManagedPrefixListAssociationsResult), errors := [] } + | .getManagedPrefixListEntries => { name := "GetManagedPrefixListEntries", method := "POST", uri := "/", input := (Shape.schema GetManagedPrefixListEntriesRequest), output := (Shape.schema GetManagedPrefixListEntriesResult), errors := [] } + | .getManagedResourceVisibility => { name := "GetManagedResourceVisibility", method := "POST", uri := "/", input := (Shape.schema GetManagedResourceVisibilityRequest), output := (Shape.schema GetManagedResourceVisibilityResult), errors := [] } + | .getNetworkInsightsAccessScopeAnalysisFindings => { name := "GetNetworkInsightsAccessScopeAnalysisFindings", method := "POST", uri := "/", input := (Shape.schema GetNetworkInsightsAccessScopeAnalysisFindingsRequest), output := (Shape.schema GetNetworkInsightsAccessScopeAnalysisFindingsResult), errors := [] } + | .getNetworkInsightsAccessScopeContent => { name := "GetNetworkInsightsAccessScopeContent", method := "POST", uri := "/", input := (Shape.schema GetNetworkInsightsAccessScopeContentRequest), output := (Shape.schema GetNetworkInsightsAccessScopeContentResult), errors := [] } + | .getNetworkingFlexCostAllocationPolicyVersions => { name := "GetNetworkingFlexCostAllocationPolicyVersions", method := "POST", uri := "/", input := (Shape.schema GetNetworkingFlexCostAllocationPolicyVersionsRequest), output := (Shape.schema GetNetworkingFlexCostAllocationPolicyVersionsResult), errors := [] } + | .getPasswordData => { name := "GetPasswordData", method := "POST", uri := "/", input := (Shape.schema GetPasswordDataRequest), output := (Shape.schema GetPasswordDataResult), errors := [] } + | .getReservedInstancesExchangeQuote => { name := "GetReservedInstancesExchangeQuote", method := "POST", uri := "/", input := (Shape.schema GetReservedInstancesExchangeQuoteRequest), output := (Shape.schema GetReservedInstancesExchangeQuoteResult), errors := [] } + | .getRouteServerAssociations => { name := "GetRouteServerAssociations", method := "POST", uri := "/", input := (Shape.schema GetRouteServerAssociationsRequest), output := (Shape.schema GetRouteServerAssociationsResult), errors := [] } + | .getRouteServerPropagations => { name := "GetRouteServerPropagations", method := "POST", uri := "/", input := (Shape.schema GetRouteServerPropagationsRequest), output := (Shape.schema GetRouteServerPropagationsResult), errors := [] } + | .getRouteServerRoutingDatabase => { name := "GetRouteServerRoutingDatabase", method := "POST", uri := "/", input := (Shape.schema GetRouteServerRoutingDatabaseRequest), output := (Shape.schema GetRouteServerRoutingDatabaseResult), errors := [] } + | .getSecurityGroupsForVpc => { name := "GetSecurityGroupsForVpc", method := "POST", uri := "/", input := (Shape.schema GetSecurityGroupsForVpcRequest), output := (Shape.schema GetSecurityGroupsForVpcResult), errors := [] } + | .getSerialConsoleAccessStatus => { name := "GetSerialConsoleAccessStatus", method := "POST", uri := "/", input := (Shape.schema GetSerialConsoleAccessStatusRequest), output := (Shape.schema GetSerialConsoleAccessStatusResult), errors := [] } + | .getSnapshotBlockPublicAccessState => { name := "GetSnapshotBlockPublicAccessState", method := "POST", uri := "/", input := (Shape.schema GetSnapshotBlockPublicAccessStateRequest), output := (Shape.schema GetSnapshotBlockPublicAccessStateResult), errors := [] } + | .getSpotPlacementScores => { name := "GetSpotPlacementScores", method := "POST", uri := "/", input := (Shape.schema GetSpotPlacementScoresRequest), output := (Shape.schema GetSpotPlacementScoresResult), errors := [] } + | .getSubnetCidrReservations => { name := "GetSubnetCidrReservations", method := "POST", uri := "/", input := (Shape.schema GetSubnetCidrReservationsRequest), output := (Shape.schema GetSubnetCidrReservationsResult), errors := [] } + | .getTransitGatewayAttachmentNatConfiguration => { name := "GetTransitGatewayAttachmentNatConfiguration", method := "POST", uri := "/", input := (Shape.schema GetTransitGatewayAttachmentNatConfigurationRequest), output := (Shape.schema GetTransitGatewayAttachmentNatConfigurationResult), errors := [] } + | .getTransitGatewayAttachmentPropagations => { name := "GetTransitGatewayAttachmentPropagations", method := "POST", uri := "/", input := (Shape.schema GetTransitGatewayAttachmentPropagationsRequest), output := (Shape.schema GetTransitGatewayAttachmentPropagationsResult), errors := [] } + | .getTransitGatewayMeteringPolicyEntries => { name := "GetTransitGatewayMeteringPolicyEntries", method := "POST", uri := "/", input := (Shape.schema GetTransitGatewayMeteringPolicyEntriesRequest), output := (Shape.schema GetTransitGatewayMeteringPolicyEntriesResult), errors := [] } + | .getTransitGatewayMulticastDomainAssociations => { name := "GetTransitGatewayMulticastDomainAssociations", method := "POST", uri := "/", input := (Shape.schema GetTransitGatewayMulticastDomainAssociationsRequest), output := (Shape.schema GetTransitGatewayMulticastDomainAssociationsResult), errors := [] } + | .getTransitGatewayPolicyTableAssociations => { name := "GetTransitGatewayPolicyTableAssociations", method := "POST", uri := "/", input := (Shape.schema GetTransitGatewayPolicyTableAssociationsRequest), output := (Shape.schema GetTransitGatewayPolicyTableAssociationsResult), errors := [] } + | .getTransitGatewayPolicyTableEntries => { name := "GetTransitGatewayPolicyTableEntries", method := "POST", uri := "/", input := (Shape.schema GetTransitGatewayPolicyTableEntriesRequest), output := (Shape.schema GetTransitGatewayPolicyTableEntriesResult), errors := [] } + | .getTransitGatewayPrefixListReferences => { name := "GetTransitGatewayPrefixListReferences", method := "POST", uri := "/", input := (Shape.schema GetTransitGatewayPrefixListReferencesRequest), output := (Shape.schema GetTransitGatewayPrefixListReferencesResult), errors := [] } + | .getTransitGatewayRouteTableAssociations => { name := "GetTransitGatewayRouteTableAssociations", method := "POST", uri := "/", input := (Shape.schema GetTransitGatewayRouteTableAssociationsRequest), output := (Shape.schema GetTransitGatewayRouteTableAssociationsResult), errors := [] } + | .getTransitGatewayRouteTablePropagations => { name := "GetTransitGatewayRouteTablePropagations", method := "POST", uri := "/", input := (Shape.schema GetTransitGatewayRouteTablePropagationsRequest), output := (Shape.schema GetTransitGatewayRouteTablePropagationsResult), errors := [] } + | .getVerifiedAccessEndpointPolicy => { name := "GetVerifiedAccessEndpointPolicy", method := "POST", uri := "/", input := (Shape.schema GetVerifiedAccessEndpointPolicyRequest), output := (Shape.schema GetVerifiedAccessEndpointPolicyResult), errors := [] } + | .getVerifiedAccessEndpointTargets => { name := "GetVerifiedAccessEndpointTargets", method := "POST", uri := "/", input := (Shape.schema GetVerifiedAccessEndpointTargetsRequest), output := (Shape.schema GetVerifiedAccessEndpointTargetsResult), errors := [] } + | .getVerifiedAccessGroupPolicy => { name := "GetVerifiedAccessGroupPolicy", method := "POST", uri := "/", input := (Shape.schema GetVerifiedAccessGroupPolicyRequest), output := (Shape.schema GetVerifiedAccessGroupPolicyResult), errors := [] } + | .getVpcResourcesBlockingEncryptionEnforcement => { name := "GetVpcResourcesBlockingEncryptionEnforcement", method := "POST", uri := "/", input := (Shape.schema GetVpcResourcesBlockingEncryptionEnforcementRequest), output := (Shape.schema GetVpcResourcesBlockingEncryptionEnforcementResult), errors := [] } + | .getVpnConnectionDeviceSampleConfiguration => { name := "GetVpnConnectionDeviceSampleConfiguration", method := "POST", uri := "/", input := (Shape.schema GetVpnConnectionDeviceSampleConfigurationRequest), output := (Shape.schema GetVpnConnectionDeviceSampleConfigurationResult), errors := [] } + | .getVpnConnectionDeviceTypes => { name := "GetVpnConnectionDeviceTypes", method := "POST", uri := "/", input := (Shape.schema GetVpnConnectionDeviceTypesRequest), output := (Shape.schema GetVpnConnectionDeviceTypesResult), errors := [] } + | .getVpnTunnelReplacementStatus => { name := "GetVpnTunnelReplacementStatus", method := "POST", uri := "/", input := (Shape.schema GetVpnTunnelReplacementStatusRequest), output := (Shape.schema GetVpnTunnelReplacementStatusResult), errors := [] } + | .importClientVpnClientCertificateRevocationList => { name := "ImportClientVpnClientCertificateRevocationList", method := "POST", uri := "/", input := (Shape.schema ImportClientVpnClientCertificateRevocationListRequest), output := (Shape.schema ImportClientVpnClientCertificateRevocationListResult), errors := [] } + | .importImage => { name := "ImportImage", method := "POST", uri := "/", input := (Shape.schema ImportImageRequest), output := (Shape.schema ImportImageResult), errors := [] } + | .importInstance => { name := "ImportInstance", method := "POST", uri := "/", input := (Shape.schema ImportInstanceRequest), output := (Shape.schema ImportInstanceResult), errors := [] } + | .importKeyPair => { name := "ImportKeyPair", method := "POST", uri := "/", input := (Shape.schema ImportKeyPairRequest), output := (Shape.schema ImportKeyPairResult), errors := [] } + | .importSnapshot => { name := "ImportSnapshot", method := "POST", uri := "/", input := (Shape.schema ImportSnapshotRequest), output := (Shape.schema ImportSnapshotResult), errors := [] } + | .importVolume => { name := "ImportVolume", method := "POST", uri := "/", input := (Shape.schema ImportVolumeRequest), output := (Shape.schema ImportVolumeResult), errors := [] } + | .listImagesInRecycleBin => { name := "ListImagesInRecycleBin", method := "POST", uri := "/", input := (Shape.schema ListImagesInRecycleBinRequest), output := (Shape.schema ListImagesInRecycleBinResult), errors := [] } + | .listSnapshotsInRecycleBin => { name := "ListSnapshotsInRecycleBin", method := "POST", uri := "/", input := (Shape.schema ListSnapshotsInRecycleBinRequest), output := (Shape.schema ListSnapshotsInRecycleBinResult), errors := [] } + | .listVolumesInRecycleBin => { name := "ListVolumesInRecycleBin", method := "POST", uri := "/", input := (Shape.schema ListVolumesInRecycleBinRequest), output := (Shape.schema ListVolumesInRecycleBinResult), errors := [] } + | .lockSnapshot => { name := "LockSnapshot", method := "POST", uri := "/", input := (Shape.schema LockSnapshotRequest), output := (Shape.schema LockSnapshotResult), errors := [] } + | .modifyAccountVpcEncryptionControl => { name := "ModifyAccountVpcEncryptionControl", method := "POST", uri := "/", input := (Shape.schema ModifyAccountVpcEncryptionControlRequest), output := (Shape.schema ModifyAccountVpcEncryptionControlResult), errors := [] } + | .modifyAddressAttribute => { name := "ModifyAddressAttribute", method := "POST", uri := "/", input := (Shape.schema ModifyAddressAttributeRequest), output := (Shape.schema ModifyAddressAttributeResult), errors := [] } + | .modifyApplicationStatusCheck => { name := "ModifyApplicationStatusCheck", method := "POST", uri := "/", input := (Shape.schema ModifyApplicationStatusCheckRequest), output := (Shape.schema ModifyApplicationStatusCheckResult), errors := [] } + | .modifyAvailabilityZoneGroup => { name := "ModifyAvailabilityZoneGroup", method := "POST", uri := "/", input := (Shape.schema ModifyAvailabilityZoneGroupRequest), output := (Shape.schema ModifyAvailabilityZoneGroupResult), errors := [] } + | .modifyCapacityReservation => { name := "ModifyCapacityReservation", method := "POST", uri := "/", input := (Shape.schema ModifyCapacityReservationRequest), output := (Shape.schema ModifyCapacityReservationResult), errors := [] } + | .modifyCapacityReservationFleet => { name := "ModifyCapacityReservationFleet", method := "POST", uri := "/", input := (Shape.schema ModifyCapacityReservationFleetRequest), output := (Shape.schema ModifyCapacityReservationFleetResult), errors := [] } + | .modifyClientVpnEndpoint => { name := "ModifyClientVpnEndpoint", method := "POST", uri := "/", input := (Shape.schema ModifyClientVpnEndpointRequest), output := (Shape.schema ModifyClientVpnEndpointResult), errors := [] } + | .modifyClientVpnEndpointAuthorizationPolicy => { name := "ModifyClientVpnEndpointAuthorizationPolicy", method := "POST", uri := "/", input := (Shape.schema ModifyClientVpnEndpointAuthorizationPolicyRequest), output := (Shape.schema ModifyClientVpnEndpointAuthorizationPolicyResult), errors := [] } + | .modifyDefaultCreditSpecification => { name := "ModifyDefaultCreditSpecification", method := "POST", uri := "/", input := (Shape.schema ModifyDefaultCreditSpecificationRequest), output := (Shape.schema ModifyDefaultCreditSpecificationResult), errors := [] } + | .modifyEbsDefaultKmsKeyId => { name := "ModifyEbsDefaultKmsKeyId", method := "POST", uri := "/", input := (Shape.schema ModifyEbsDefaultKmsKeyIdRequest), output := (Shape.schema ModifyEbsDefaultKmsKeyIdResult), errors := [] } + | .modifyFleet => { name := "ModifyFleet", method := "POST", uri := "/", input := (Shape.schema ModifyFleetRequest), output := (Shape.schema ModifyFleetResult), errors := [] } + | .modifyFpgaImageAttribute => { name := "ModifyFpgaImageAttribute", method := "POST", uri := "/", input := (Shape.schema ModifyFpgaImageAttributeRequest), output := (Shape.schema ModifyFpgaImageAttributeResult), errors := [] } + | .modifyHosts => { name := "ModifyHosts", method := "POST", uri := "/", input := (Shape.schema ModifyHostsRequest), output := (Shape.schema ModifyHostsResult), errors := [] } + | .modifyIdFormat => { name := "ModifyIdFormat", method := "POST", uri := "/", input := (Shape.schema ModifyIdFormatRequest), output := (Shape.schema Unit), errors := [] } + | .modifyIdentityIdFormat => { name := "ModifyIdentityIdFormat", method := "POST", uri := "/", input := (Shape.schema ModifyIdentityIdFormatRequest), output := (Shape.schema Unit), errors := [] } + | .modifyImageAttribute => { name := "ModifyImageAttribute", method := "POST", uri := "/", input := (Shape.schema ModifyImageAttributeRequest), output := (Shape.schema Unit), errors := [] } + | .modifyInstanceAttribute => { name := "ModifyInstanceAttribute", method := "POST", uri := "/", input := (Shape.schema ModifyInstanceAttributeRequest), output := (Shape.schema Unit), errors := [] } + | .modifyInstanceCapacityReservationAttributes => { name := "ModifyInstanceCapacityReservationAttributes", method := "POST", uri := "/", input := (Shape.schema ModifyInstanceCapacityReservationAttributesRequest), output := (Shape.schema ModifyInstanceCapacityReservationAttributesResult), errors := [] } + | .modifyInstanceConnectEndpoint => { name := "ModifyInstanceConnectEndpoint", method := "POST", uri := "/", input := (Shape.schema ModifyInstanceConnectEndpointRequest), output := (Shape.schema ModifyInstanceConnectEndpointResult), errors := [] } + | .modifyInstanceCpuOptions => { name := "ModifyInstanceCpuOptions", method := "POST", uri := "/", input := (Shape.schema ModifyInstanceCpuOptionsRequest), output := (Shape.schema ModifyInstanceCpuOptionsResult), errors := [] } + | .modifyInstanceCreditSpecification => { name := "ModifyInstanceCreditSpecification", method := "POST", uri := "/", input := (Shape.schema ModifyInstanceCreditSpecificationRequest), output := (Shape.schema ModifyInstanceCreditSpecificationResult), errors := [] } + | .modifyInstanceEventStartTime => { name := "ModifyInstanceEventStartTime", method := "POST", uri := "/", input := (Shape.schema ModifyInstanceEventStartTimeRequest), output := (Shape.schema ModifyInstanceEventStartTimeResult), errors := [] } + | .modifyInstanceEventWindow => { name := "ModifyInstanceEventWindow", method := "POST", uri := "/", input := (Shape.schema ModifyInstanceEventWindowRequest), output := (Shape.schema ModifyInstanceEventWindowResult), errors := [] } + | .modifyInstanceMaintenanceOptions => { name := "ModifyInstanceMaintenanceOptions", method := "POST", uri := "/", input := (Shape.schema ModifyInstanceMaintenanceOptionsRequest), output := (Shape.schema ModifyInstanceMaintenanceOptionsResult), errors := [] } + | .modifyInstanceMetadataDefaults => { name := "ModifyInstanceMetadataDefaults", method := "POST", uri := "/", input := (Shape.schema ModifyInstanceMetadataDefaultsRequest), output := (Shape.schema ModifyInstanceMetadataDefaultsResult), errors := [] } + | .modifyInstanceMetadataOptions => { name := "ModifyInstanceMetadataOptions", method := "POST", uri := "/", input := (Shape.schema ModifyInstanceMetadataOptionsRequest), output := (Shape.schema ModifyInstanceMetadataOptionsResult), errors := [] } + | .modifyInstanceNetworkPerformanceOptions => { name := "ModifyInstanceNetworkPerformanceOptions", method := "POST", uri := "/", input := (Shape.schema ModifyInstanceNetworkPerformanceRequest), output := (Shape.schema ModifyInstanceNetworkPerformanceResult), errors := [] } + | .modifyInstancePlacement => { name := "ModifyInstancePlacement", method := "POST", uri := "/", input := (Shape.schema ModifyInstancePlacementRequest), output := (Shape.schema ModifyInstancePlacementResult), errors := [] } + | .modifyIpam => { name := "ModifyIpam", method := "POST", uri := "/", input := (Shape.schema ModifyIpamRequest), output := (Shape.schema ModifyIpamResult), errors := [] } + | .modifyIpamPolicyAllocationRules => { name := "ModifyIpamPolicyAllocationRules", method := "POST", uri := "/", input := (Shape.schema ModifyIpamPolicyAllocationRulesRequest), output := (Shape.schema ModifyIpamPolicyAllocationRulesResult), errors := [] } + | .modifyIpamPool => { name := "ModifyIpamPool", method := "POST", uri := "/", input := (Shape.schema ModifyIpamPoolRequest), output := (Shape.schema ModifyIpamPoolResult), errors := [] } + | .modifyIpamPoolAllocation => { name := "ModifyIpamPoolAllocation", method := "POST", uri := "/", input := (Shape.schema ModifyIpamPoolAllocationRequest), output := (Shape.schema ModifyIpamPoolAllocationResult), errors := [] } + | .modifyIpamPrefixListResolver => { name := "ModifyIpamPrefixListResolver", method := "POST", uri := "/", input := (Shape.schema ModifyIpamPrefixListResolverRequest), output := (Shape.schema ModifyIpamPrefixListResolverResult), errors := [] } + | .modifyIpamPrefixListResolverTarget => { name := "ModifyIpamPrefixListResolverTarget", method := "POST", uri := "/", input := (Shape.schema ModifyIpamPrefixListResolverTargetRequest), output := (Shape.schema ModifyIpamPrefixListResolverTargetResult), errors := [] } + | .modifyIpamResourceCidr => { name := "ModifyIpamResourceCidr", method := "POST", uri := "/", input := (Shape.schema ModifyIpamResourceCidrRequest), output := (Shape.schema ModifyIpamResourceCidrResult), errors := [] } + | .modifyIpamResourceDiscovery => { name := "ModifyIpamResourceDiscovery", method := "POST", uri := "/", input := (Shape.schema ModifyIpamResourceDiscoveryRequest), output := (Shape.schema ModifyIpamResourceDiscoveryResult), errors := [] } + | .modifyIpamRoutingPolicyRegistration => { name := "ModifyIpamRoutingPolicyRegistration", method := "POST", uri := "/", input := (Shape.schema ModifyIpamRoutingPolicyRegistrationRequest), output := (Shape.schema ModifyIpamRoutingPolicyRegistrationResult), errors := [] } + | .modifyIpamScope => { name := "ModifyIpamScope", method := "POST", uri := "/", input := (Shape.schema ModifyIpamScopeRequest), output := (Shape.schema ModifyIpamScopeResult), errors := [] } + | .modifyLaunchTemplate => { name := "ModifyLaunchTemplate", method := "POST", uri := "/", input := (Shape.schema ModifyLaunchTemplateRequest), output := (Shape.schema ModifyLaunchTemplateResult), errors := [] } + | .modifyLocalGatewayRoute => { name := "ModifyLocalGatewayRoute", method := "POST", uri := "/", input := (Shape.schema ModifyLocalGatewayRouteRequest), output := (Shape.schema ModifyLocalGatewayRouteResult), errors := [] } + | .modifyManagedPrefixList => { name := "ModifyManagedPrefixList", method := "POST", uri := "/", input := (Shape.schema ModifyManagedPrefixListRequest), output := (Shape.schema ModifyManagedPrefixListResult), errors := [] } + | .modifyManagedResourceVisibility => { name := "ModifyManagedResourceVisibility", method := "POST", uri := "/", input := (Shape.schema ModifyManagedResourceVisibilityRequest), output := (Shape.schema ModifyManagedResourceVisibilityResult), errors := [] } + | .modifyMetricCategory => { name := "ModifyMetricCategory", method := "POST", uri := "/", input := (Shape.schema ModifyMetricCategoryRequest), output := (Shape.schema ModifyMetricCategoryResult), errors := [] } + | .modifyNetworkInterfaceAttribute => { name := "ModifyNetworkInterfaceAttribute", method := "POST", uri := "/", input := (Shape.schema ModifyNetworkInterfaceAttributeRequest), output := (Shape.schema Unit), errors := [] } + | .modifyNetworkingFlexCostAllocationPolicy => { name := "ModifyNetworkingFlexCostAllocationPolicy", method := "POST", uri := "/", input := (Shape.schema ModifyNetworkingFlexCostAllocationPolicyRequest), output := (Shape.schema ModifyNetworkingFlexCostAllocationPolicyResult), errors := [] } + | .modifyPrivateDnsNameOptions => { name := "ModifyPrivateDnsNameOptions", method := "POST", uri := "/", input := (Shape.schema ModifyPrivateDnsNameOptionsRequest), output := (Shape.schema ModifyPrivateDnsNameOptionsResult), errors := [] } + | .modifyPublicIpDnsNameOptions => { name := "ModifyPublicIpDnsNameOptions", method := "POST", uri := "/", input := (Shape.schema ModifyPublicIpDnsNameOptionsRequest), output := (Shape.schema ModifyPublicIpDnsNameOptionsResult), errors := [] } + | .modifyReservedInstances => { name := "ModifyReservedInstances", method := "POST", uri := "/", input := (Shape.schema ModifyReservedInstancesRequest), output := (Shape.schema ModifyReservedInstancesResult), errors := [] } + | .modifyRouteServer => { name := "ModifyRouteServer", method := "POST", uri := "/", input := (Shape.schema ModifyRouteServerRequest), output := (Shape.schema ModifyRouteServerResult), errors := [] } + | .modifySecurityGroupRules => { name := "ModifySecurityGroupRules", method := "POST", uri := "/", input := (Shape.schema ModifySecurityGroupRulesRequest), output := (Shape.schema ModifySecurityGroupRulesResult), errors := [] } + | .modifySnapshotAttribute => { name := "ModifySnapshotAttribute", method := "POST", uri := "/", input := (Shape.schema ModifySnapshotAttributeRequest), output := (Shape.schema Unit), errors := [] } + | .modifySnapshotTier => { name := "ModifySnapshotTier", method := "POST", uri := "/", input := (Shape.schema ModifySnapshotTierRequest), output := (Shape.schema ModifySnapshotTierResult), errors := [] } + | .modifySpotFleetRequest => { name := "ModifySpotFleetRequest", method := "POST", uri := "/", input := (Shape.schema ModifySpotFleetRequestRequest), output := (Shape.schema ModifySpotFleetRequestResponse), errors := [] } + | .modifySubnetAttribute => { name := "ModifySubnetAttribute", method := "POST", uri := "/", input := (Shape.schema ModifySubnetAttributeRequest), output := (Shape.schema Unit), errors := [] } + | .modifyTrafficMirrorFilterNetworkServices => { name := "ModifyTrafficMirrorFilterNetworkServices", method := "POST", uri := "/", input := (Shape.schema ModifyTrafficMirrorFilterNetworkServicesRequest), output := (Shape.schema ModifyTrafficMirrorFilterNetworkServicesResult), errors := [] } + | .modifyTrafficMirrorFilterRule => { name := "ModifyTrafficMirrorFilterRule", method := "POST", uri := "/", input := (Shape.schema ModifyTrafficMirrorFilterRuleRequest), output := (Shape.schema ModifyTrafficMirrorFilterRuleResult), errors := [] } + | .modifyTrafficMirrorSession => { name := "ModifyTrafficMirrorSession", method := "POST", uri := "/", input := (Shape.schema ModifyTrafficMirrorSessionRequest), output := (Shape.schema ModifyTrafficMirrorSessionResult), errors := [] } + | .modifyTransitGateway => { name := "ModifyTransitGateway", method := "POST", uri := "/", input := (Shape.schema ModifyTransitGatewayRequest), output := (Shape.schema ModifyTransitGatewayResult), errors := [] } + | .modifyTransitGatewayAttachmentNatConfiguration => { name := "ModifyTransitGatewayAttachmentNatConfiguration", method := "POST", uri := "/", input := (Shape.schema ModifyTransitGatewayAttachmentNatConfigurationRequest), output := (Shape.schema ModifyTransitGatewayAttachmentNatConfigurationResult), errors := [] } + | .modifyTransitGatewayMeteringPolicy => { name := "ModifyTransitGatewayMeteringPolicy", method := "POST", uri := "/", input := (Shape.schema ModifyTransitGatewayMeteringPolicyRequest), output := (Shape.schema ModifyTransitGatewayMeteringPolicyResult), errors := [] } + | .modifyTransitGatewayNetworkFunctionAttachment => { name := "ModifyTransitGatewayNetworkFunctionAttachment", method := "POST", uri := "/", input := (Shape.schema ModifyTransitGatewayNetworkFunctionAttachmentRequest), output := (Shape.schema ModifyTransitGatewayNetworkFunctionAttachmentResult), errors := [] } + | .modifyTransitGatewayPeeringAttachment => { name := "ModifyTransitGatewayPeeringAttachment", method := "POST", uri := "/", input := (Shape.schema ModifyTransitGatewayPeeringAttachmentRequest), output := (Shape.schema ModifyTransitGatewayPeeringAttachmentResult), errors := [] } + | .modifyTransitGatewayPolicyTableEntry => { name := "ModifyTransitGatewayPolicyTableEntry", method := "POST", uri := "/", input := (Shape.schema ModifyTransitGatewayPolicyTableEntryRequest), output := (Shape.schema ModifyTransitGatewayPolicyTableEntryResult), errors := [] } + | .modifyTransitGatewayPrefixListReference => { name := "ModifyTransitGatewayPrefixListReference", method := "POST", uri := "/", input := (Shape.schema ModifyTransitGatewayPrefixListReferenceRequest), output := (Shape.schema ModifyTransitGatewayPrefixListReferenceResult), errors := [] } + | .modifyTransitGatewayVpcAttachment => { name := "ModifyTransitGatewayVpcAttachment", method := "POST", uri := "/", input := (Shape.schema ModifyTransitGatewayVpcAttachmentRequest), output := (Shape.schema ModifyTransitGatewayVpcAttachmentResult), errors := [] } + | .modifyVerifiedAccessEndpoint => { name := "ModifyVerifiedAccessEndpoint", method := "POST", uri := "/", input := (Shape.schema ModifyVerifiedAccessEndpointRequest), output := (Shape.schema ModifyVerifiedAccessEndpointResult), errors := [] } + | .modifyVerifiedAccessEndpointPolicy => { name := "ModifyVerifiedAccessEndpointPolicy", method := "POST", uri := "/", input := (Shape.schema ModifyVerifiedAccessEndpointPolicyRequest), output := (Shape.schema ModifyVerifiedAccessEndpointPolicyResult), errors := [] } + | .modifyVerifiedAccessGroup => { name := "ModifyVerifiedAccessGroup", method := "POST", uri := "/", input := (Shape.schema ModifyVerifiedAccessGroupRequest), output := (Shape.schema ModifyVerifiedAccessGroupResult), errors := [] } + | .modifyVerifiedAccessGroupPolicy => { name := "ModifyVerifiedAccessGroupPolicy", method := "POST", uri := "/", input := (Shape.schema ModifyVerifiedAccessGroupPolicyRequest), output := (Shape.schema ModifyVerifiedAccessGroupPolicyResult), errors := [] } + | .modifyVerifiedAccessInstance => { name := "ModifyVerifiedAccessInstance", method := "POST", uri := "/", input := (Shape.schema ModifyVerifiedAccessInstanceRequest), output := (Shape.schema ModifyVerifiedAccessInstanceResult), errors := [] } + | .modifyVerifiedAccessInstanceLoggingConfiguration => { name := "ModifyVerifiedAccessInstanceLoggingConfiguration", method := "POST", uri := "/", input := (Shape.schema ModifyVerifiedAccessInstanceLoggingConfigurationRequest), output := (Shape.schema ModifyVerifiedAccessInstanceLoggingConfigurationResult), errors := [] } + | .modifyVerifiedAccessTrustProvider => { name := "ModifyVerifiedAccessTrustProvider", method := "POST", uri := "/", input := (Shape.schema ModifyVerifiedAccessTrustProviderRequest), output := (Shape.schema ModifyVerifiedAccessTrustProviderResult), errors := [] } + | .modifyVolume => { name := "ModifyVolume", method := "POST", uri := "/", input := (Shape.schema ModifyVolumeRequest), output := (Shape.schema ModifyVolumeResult), errors := [] } + | .modifyVolumeAttribute => { name := "ModifyVolumeAttribute", method := "POST", uri := "/", input := (Shape.schema ModifyVolumeAttributeRequest), output := (Shape.schema Unit), errors := [] } + | .modifyVpcAttribute => { name := "ModifyVpcAttribute", method := "POST", uri := "/", input := (Shape.schema ModifyVpcAttributeRequest), output := (Shape.schema Unit), errors := [] } + | .modifyVpcBlockPublicAccessExclusion => { name := "ModifyVpcBlockPublicAccessExclusion", method := "POST", uri := "/", input := (Shape.schema ModifyVpcBlockPublicAccessExclusionRequest), output := (Shape.schema ModifyVpcBlockPublicAccessExclusionResult), errors := [] } + | .modifyVpcBlockPublicAccessOptions => { name := "ModifyVpcBlockPublicAccessOptions", method := "POST", uri := "/", input := (Shape.schema ModifyVpcBlockPublicAccessOptionsRequest), output := (Shape.schema ModifyVpcBlockPublicAccessOptionsResult), errors := [] } + | .modifyVpcEncryptionControl => { name := "ModifyVpcEncryptionControl", method := "POST", uri := "/", input := (Shape.schema ModifyVpcEncryptionControlRequest), output := (Shape.schema ModifyVpcEncryptionControlResult), errors := [] } + | .modifyVpcEndpoint => { name := "ModifyVpcEndpoint", method := "POST", uri := "/", input := (Shape.schema ModifyVpcEndpointRequest), output := (Shape.schema ModifyVpcEndpointResult), errors := [] } + | .modifyVpcEndpointConnectionNotification => { name := "ModifyVpcEndpointConnectionNotification", method := "POST", uri := "/", input := (Shape.schema ModifyVpcEndpointConnectionNotificationRequest), output := (Shape.schema ModifyVpcEndpointConnectionNotificationResult), errors := [] } + | .modifyVpcEndpointPayerResponsibility => { name := "ModifyVpcEndpointPayerResponsibility", method := "POST", uri := "/", input := (Shape.schema ModifyVpcEndpointPayerResponsibilityRequest), output := (Shape.schema ModifyVpcEndpointPayerResponsibilityResult), errors := [] } + | .modifyVpcEndpointServiceConfiguration => { name := "ModifyVpcEndpointServiceConfiguration", method := "POST", uri := "/", input := (Shape.schema ModifyVpcEndpointServiceConfigurationRequest), output := (Shape.schema ModifyVpcEndpointServiceConfigurationResult), errors := [] } + | .modifyVpcEndpointServicePayerResponsibility => { name := "ModifyVpcEndpointServicePayerResponsibility", method := "POST", uri := "/", input := (Shape.schema ModifyVpcEndpointServicePayerResponsibilityRequest), output := (Shape.schema ModifyVpcEndpointServicePayerResponsibilityResult), errors := [] } + | .modifyVpcEndpointServicePermissions => { name := "ModifyVpcEndpointServicePermissions", method := "POST", uri := "/", input := (Shape.schema ModifyVpcEndpointServicePermissionsRequest), output := (Shape.schema ModifyVpcEndpointServicePermissionsResult), errors := [] } + | .modifyVpcPeeringConnectionOptions => { name := "ModifyVpcPeeringConnectionOptions", method := "POST", uri := "/", input := (Shape.schema ModifyVpcPeeringConnectionOptionsRequest), output := (Shape.schema ModifyVpcPeeringConnectionOptionsResult), errors := [] } + | .modifyVpcTenancy => { name := "ModifyVpcTenancy", method := "POST", uri := "/", input := (Shape.schema ModifyVpcTenancyRequest), output := (Shape.schema ModifyVpcTenancyResult), errors := [] } + | .modifyVpnConnection => { name := "ModifyVpnConnection", method := "POST", uri := "/", input := (Shape.schema ModifyVpnConnectionRequest), output := (Shape.schema ModifyVpnConnectionResult), errors := [] } + | .modifyVpnConnectionOptions => { name := "ModifyVpnConnectionOptions", method := "POST", uri := "/", input := (Shape.schema ModifyVpnConnectionOptionsRequest), output := (Shape.schema ModifyVpnConnectionOptionsResult), errors := [] } + | .modifyVpnTunnelCertificate => { name := "ModifyVpnTunnelCertificate", method := "POST", uri := "/", input := (Shape.schema ModifyVpnTunnelCertificateRequest), output := (Shape.schema ModifyVpnTunnelCertificateResult), errors := [] } + | .modifyVpnTunnelOptions => { name := "ModifyVpnTunnelOptions", method := "POST", uri := "/", input := (Shape.schema ModifyVpnTunnelOptionsRequest), output := (Shape.schema ModifyVpnTunnelOptionsResult), errors := [] } + | .monitorInstances => { name := "MonitorInstances", method := "POST", uri := "/", input := (Shape.schema MonitorInstancesRequest), output := (Shape.schema MonitorInstancesResult), errors := [] } + | .moveAddressToVpc => { name := "MoveAddressToVpc", method := "POST", uri := "/", input := (Shape.schema MoveAddressToVpcRequest), output := (Shape.schema MoveAddressToVpcResult), errors := [] } + | .moveByoipCidrToIpam => { name := "MoveByoipCidrToIpam", method := "POST", uri := "/", input := (Shape.schema MoveByoipCidrToIpamRequest), output := (Shape.schema MoveByoipCidrToIpamResult), errors := [] } + | .moveCapacityReservationInstances => { name := "MoveCapacityReservationInstances", method := "POST", uri := "/", input := (Shape.schema MoveCapacityReservationInstancesRequest), output := (Shape.schema MoveCapacityReservationInstancesResult), errors := [] } + | .provisionByoipCidr => { name := "ProvisionByoipCidr", method := "POST", uri := "/", input := (Shape.schema ProvisionByoipCidrRequest), output := (Shape.schema ProvisionByoipCidrResult), errors := [] } + | .provisionIpamByoasn => { name := "ProvisionIpamByoasn", method := "POST", uri := "/", input := (Shape.schema ProvisionIpamByoasnRequest), output := (Shape.schema ProvisionIpamByoasnResult), errors := [] } + | .provisionIpamPoolCidr => { name := "ProvisionIpamPoolCidr", method := "POST", uri := "/", input := (Shape.schema ProvisionIpamPoolCidrRequest), output := (Shape.schema ProvisionIpamPoolCidrResult), errors := [] } + | .provisionPublicIpv4PoolCidr => { name := "ProvisionPublicIpv4PoolCidr", method := "POST", uri := "/", input := (Shape.schema ProvisionPublicIpv4PoolCidrRequest), output := (Shape.schema ProvisionPublicIpv4PoolCidrResult), errors := [] } + | .purchaseCapacityBlock => { name := "PurchaseCapacityBlock", method := "POST", uri := "/", input := (Shape.schema PurchaseCapacityBlockRequest), output := (Shape.schema PurchaseCapacityBlockResult), errors := [] } + | .purchaseCapacityBlockExtension => { name := "PurchaseCapacityBlockExtension", method := "POST", uri := "/", input := (Shape.schema PurchaseCapacityBlockExtensionRequest), output := (Shape.schema PurchaseCapacityBlockExtensionResult), errors := [] } + | .purchaseHostReservation => { name := "PurchaseHostReservation", method := "POST", uri := "/", input := (Shape.schema PurchaseHostReservationRequest), output := (Shape.schema PurchaseHostReservationResult), errors := [] } + | .purchaseReservedInstancesOffering => { name := "PurchaseReservedInstancesOffering", method := "POST", uri := "/", input := (Shape.schema PurchaseReservedInstancesOfferingRequest), output := (Shape.schema PurchaseReservedInstancesOfferingResult), errors := [] } + | .purchaseScheduledInstances => { name := "PurchaseScheduledInstances", method := "POST", uri := "/", input := (Shape.schema PurchaseScheduledInstancesRequest), output := (Shape.schema PurchaseScheduledInstancesResult), errors := [] } + | .rebootInstances => { name := "RebootInstances", method := "POST", uri := "/", input := (Shape.schema RebootInstancesRequest), output := (Shape.schema Unit), errors := [] } + | .registerImage => { name := "RegisterImage", method := "POST", uri := "/", input := (Shape.schema RegisterImageRequest), output := (Shape.schema RegisterImageResult), errors := [] } + | .registerInstanceEventNotificationAttributes => { name := "RegisterInstanceEventNotificationAttributes", method := "POST", uri := "/", input := (Shape.schema RegisterInstanceEventNotificationAttributesRequest), output := (Shape.schema RegisterInstanceEventNotificationAttributesResult), errors := [] } + | .registerTransitGatewayMulticastGroupMembers => { name := "RegisterTransitGatewayMulticastGroupMembers", method := "POST", uri := "/", input := (Shape.schema RegisterTransitGatewayMulticastGroupMembersRequest), output := (Shape.schema RegisterTransitGatewayMulticastGroupMembersResult), errors := [] } + | .registerTransitGatewayMulticastGroupSources => { name := "RegisterTransitGatewayMulticastGroupSources", method := "POST", uri := "/", input := (Shape.schema RegisterTransitGatewayMulticastGroupSourcesRequest), output := (Shape.schema RegisterTransitGatewayMulticastGroupSourcesResult), errors := [] } + | .rejectCapacityReservationBillingOwnership => { name := "RejectCapacityReservationBillingOwnership", method := "POST", uri := "/", input := (Shape.schema RejectCapacityReservationBillingOwnershipRequest), output := (Shape.schema RejectCapacityReservationBillingOwnershipResult), errors := [] } + | .rejectTransitGatewayClientVpnAttachment => { name := "RejectTransitGatewayClientVpnAttachment", method := "POST", uri := "/", input := (Shape.schema RejectTransitGatewayClientVpnAttachmentRequest), output := (Shape.schema RejectTransitGatewayClientVpnAttachmentResult), errors := [] } + | .rejectTransitGatewayMulticastDomainAssociations => { name := "RejectTransitGatewayMulticastDomainAssociations", method := "POST", uri := "/", input := (Shape.schema RejectTransitGatewayMulticastDomainAssociationsRequest), output := (Shape.schema RejectTransitGatewayMulticastDomainAssociationsResult), errors := [] } + | .rejectTransitGatewayPeeringAttachment => { name := "RejectTransitGatewayPeeringAttachment", method := "POST", uri := "/", input := (Shape.schema RejectTransitGatewayPeeringAttachmentRequest), output := (Shape.schema RejectTransitGatewayPeeringAttachmentResult), errors := [] } + | .rejectTransitGatewayVpcAttachment => { name := "RejectTransitGatewayVpcAttachment", method := "POST", uri := "/", input := (Shape.schema RejectTransitGatewayVpcAttachmentRequest), output := (Shape.schema RejectTransitGatewayVpcAttachmentResult), errors := [] } + | .rejectVpcEndpointConnections => { name := "RejectVpcEndpointConnections", method := "POST", uri := "/", input := (Shape.schema RejectVpcEndpointConnectionsRequest), output := (Shape.schema RejectVpcEndpointConnectionsResult), errors := [] } + | .rejectVpcPeeringConnection => { name := "RejectVpcPeeringConnection", method := "POST", uri := "/", input := (Shape.schema RejectVpcPeeringConnectionRequest), output := (Shape.schema RejectVpcPeeringConnectionResult), errors := [] } + | .releaseAddress => { name := "ReleaseAddress", method := "POST", uri := "/", input := (Shape.schema ReleaseAddressRequest), output := (Shape.schema Unit), errors := [] } + | .releaseHosts => { name := "ReleaseHosts", method := "POST", uri := "/", input := (Shape.schema ReleaseHostsRequest), output := (Shape.schema ReleaseHostsResult), errors := [] } + | .releaseIpamPoolAllocation => { name := "ReleaseIpamPoolAllocation", method := "POST", uri := "/", input := (Shape.schema ReleaseIpamPoolAllocationRequest), output := (Shape.schema ReleaseIpamPoolAllocationResult), errors := [] } + | .replaceIamInstanceProfileAssociation => { name := "ReplaceIamInstanceProfileAssociation", method := "POST", uri := "/", input := (Shape.schema ReplaceIamInstanceProfileAssociationRequest), output := (Shape.schema ReplaceIamInstanceProfileAssociationResult), errors := [] } + | .replaceImageCriteriaInAllowedImagesSettings => { name := "ReplaceImageCriteriaInAllowedImagesSettings", method := "POST", uri := "/", input := (Shape.schema ReplaceImageCriteriaInAllowedImagesSettingsRequest), output := (Shape.schema ReplaceImageCriteriaInAllowedImagesSettingsResult), errors := [] } + | .replaceImageInstanceTypeSpecification => { name := "ReplaceImageInstanceTypeSpecification", method := "POST", uri := "/", input := (Shape.schema ReplaceImageInstanceTypeSpecificationRequest), output := (Shape.schema ReplaceImageInstanceTypeSpecificationResult), errors := [] } + | .replaceNetworkAclAssociation => { name := "ReplaceNetworkAclAssociation", method := "POST", uri := "/", input := (Shape.schema ReplaceNetworkAclAssociationRequest), output := (Shape.schema ReplaceNetworkAclAssociationResult), errors := [] } + | .replaceNetworkAclEntry => { name := "ReplaceNetworkAclEntry", method := "POST", uri := "/", input := (Shape.schema ReplaceNetworkAclEntryRequest), output := (Shape.schema Unit), errors := [] } + | .replaceRoute => { name := "ReplaceRoute", method := "POST", uri := "/", input := (Shape.schema ReplaceRouteRequest), output := (Shape.schema Unit), errors := [] } + | .replaceRouteTableAssociation => { name := "ReplaceRouteTableAssociation", method := "POST", uri := "/", input := (Shape.schema ReplaceRouteTableAssociationRequest), output := (Shape.schema ReplaceRouteTableAssociationResult), errors := [] } + | .replaceTransitGatewayRoute => { name := "ReplaceTransitGatewayRoute", method := "POST", uri := "/", input := (Shape.schema ReplaceTransitGatewayRouteRequest), output := (Shape.schema ReplaceTransitGatewayRouteResult), errors := [] } + | .replaceVpnTunnel => { name := "ReplaceVpnTunnel", method := "POST", uri := "/", input := (Shape.schema ReplaceVpnTunnelRequest), output := (Shape.schema ReplaceVpnTunnelResult), errors := [] } + | .reportInstanceStatus => { name := "ReportInstanceStatus", method := "POST", uri := "/", input := (Shape.schema ReportInstanceStatusRequest), output := (Shape.schema Unit), errors := [] } + | .requestSpotFleet => { name := "RequestSpotFleet", method := "POST", uri := "/", input := (Shape.schema RequestSpotFleetRequest), output := (Shape.schema RequestSpotFleetResponse), errors := [] } + | .requestSpotInstances => { name := "RequestSpotInstances", method := "POST", uri := "/", input := (Shape.schema RequestSpotInstancesRequest), output := (Shape.schema RequestSpotInstancesResult), errors := [] } + | .resetAddressAttribute => { name := "ResetAddressAttribute", method := "POST", uri := "/", input := (Shape.schema ResetAddressAttributeRequest), output := (Shape.schema ResetAddressAttributeResult), errors := [] } + | .resetEbsDefaultKmsKeyId => { name := "ResetEbsDefaultKmsKeyId", method := "POST", uri := "/", input := (Shape.schema ResetEbsDefaultKmsKeyIdRequest), output := (Shape.schema ResetEbsDefaultKmsKeyIdResult), errors := [] } + | .resetFpgaImageAttribute => { name := "ResetFpgaImageAttribute", method := "POST", uri := "/", input := (Shape.schema ResetFpgaImageAttributeRequest), output := (Shape.schema ResetFpgaImageAttributeResult), errors := [] } + | .resetImageAttribute => { name := "ResetImageAttribute", method := "POST", uri := "/", input := (Shape.schema ResetImageAttributeRequest), output := (Shape.schema Unit), errors := [] } + | .resetInstanceAttribute => { name := "ResetInstanceAttribute", method := "POST", uri := "/", input := (Shape.schema ResetInstanceAttributeRequest), output := (Shape.schema Unit), errors := [] } + | .resetNetworkInterfaceAttribute => { name := "ResetNetworkInterfaceAttribute", method := "POST", uri := "/", input := (Shape.schema ResetNetworkInterfaceAttributeRequest), output := (Shape.schema Unit), errors := [] } + | .resetSnapshotAttribute => { name := "ResetSnapshotAttribute", method := "POST", uri := "/", input := (Shape.schema ResetSnapshotAttributeRequest), output := (Shape.schema Unit), errors := [] } + | .restoreAddressToClassic => { name := "RestoreAddressToClassic", method := "POST", uri := "/", input := (Shape.schema RestoreAddressToClassicRequest), output := (Shape.schema RestoreAddressToClassicResult), errors := [] } + | .restoreImageFromRecycleBin => { name := "RestoreImageFromRecycleBin", method := "POST", uri := "/", input := (Shape.schema RestoreImageFromRecycleBinRequest), output := (Shape.schema RestoreImageFromRecycleBinResult), errors := [] } + | .restoreManagedPrefixListVersion => { name := "RestoreManagedPrefixListVersion", method := "POST", uri := "/", input := (Shape.schema RestoreManagedPrefixListVersionRequest), output := (Shape.schema RestoreManagedPrefixListVersionResult), errors := [] } + | .restoreSnapshotFromRecycleBin => { name := "RestoreSnapshotFromRecycleBin", method := "POST", uri := "/", input := (Shape.schema RestoreSnapshotFromRecycleBinRequest), output := (Shape.schema RestoreSnapshotFromRecycleBinResult), errors := [] } + | .restoreSnapshotTier => { name := "RestoreSnapshotTier", method := "POST", uri := "/", input := (Shape.schema RestoreSnapshotTierRequest), output := (Shape.schema RestoreSnapshotTierResult), errors := [] } + | .restoreVolumeFromRecycleBin => { name := "RestoreVolumeFromRecycleBin", method := "POST", uri := "/", input := (Shape.schema RestoreVolumeFromRecycleBinRequest), output := (Shape.schema RestoreVolumeFromRecycleBinResult), errors := [] } + | .revokeClientVpnIngress => { name := "RevokeClientVpnIngress", method := "POST", uri := "/", input := (Shape.schema RevokeClientVpnIngressRequest), output := (Shape.schema RevokeClientVpnIngressResult), errors := [] } + | .revokeSecurityGroupEgress => { name := "RevokeSecurityGroupEgress", method := "POST", uri := "/", input := (Shape.schema RevokeSecurityGroupEgressRequest), output := (Shape.schema RevokeSecurityGroupEgressResult), errors := [] } + | .revokeSecurityGroupIngress => { name := "RevokeSecurityGroupIngress", method := "POST", uri := "/", input := (Shape.schema RevokeSecurityGroupIngressRequest), output := (Shape.schema RevokeSecurityGroupIngressResult), errors := [] } + | .runInstances => { name := "RunInstances", method := "POST", uri := "/", input := (Shape.schema RunInstancesRequest), output := (Shape.schema Reservation), errors := [] } + | .runScheduledInstances => { name := "RunScheduledInstances", method := "POST", uri := "/", input := (Shape.schema RunScheduledInstancesRequest), output := (Shape.schema RunScheduledInstancesResult), errors := [] } + | .searchLocalGatewayRoutes => { name := "SearchLocalGatewayRoutes", method := "POST", uri := "/", input := (Shape.schema SearchLocalGatewayRoutesRequest), output := (Shape.schema SearchLocalGatewayRoutesResult), errors := [] } + | .searchTransitGatewayMulticastGroups => { name := "SearchTransitGatewayMulticastGroups", method := "POST", uri := "/", input := (Shape.schema SearchTransitGatewayMulticastGroupsRequest), output := (Shape.schema SearchTransitGatewayMulticastGroupsResult), errors := [] } + | .searchTransitGatewayRoutes => { name := "SearchTransitGatewayRoutes", method := "POST", uri := "/", input := (Shape.schema SearchTransitGatewayRoutesRequest), output := (Shape.schema SearchTransitGatewayRoutesResult), errors := [] } + | .sendDiagnosticInterrupt => { name := "SendDiagnosticInterrupt", method := "POST", uri := "/", input := (Shape.schema SendDiagnosticInterruptRequest), output := (Shape.schema Unit), errors := [] } + | .startDeclarativePoliciesReport => { name := "StartDeclarativePoliciesReport", method := "POST", uri := "/", input := (Shape.schema StartDeclarativePoliciesReportRequest), output := (Shape.schema StartDeclarativePoliciesReportResult), errors := [] } + | .startInstances => { name := "StartInstances", method := "POST", uri := "/", input := (Shape.schema StartInstancesRequest), output := (Shape.schema StartInstancesResult), errors := [] } + | .startNetworkInsightsAccessScopeAnalysis => { name := "StartNetworkInsightsAccessScopeAnalysis", method := "POST", uri := "/", input := (Shape.schema StartNetworkInsightsAccessScopeAnalysisRequest), output := (Shape.schema StartNetworkInsightsAccessScopeAnalysisResult), errors := [] } + | .startNetworkInsightsAnalysis => { name := "StartNetworkInsightsAnalysis", method := "POST", uri := "/", input := (Shape.schema StartNetworkInsightsAnalysisRequest), output := (Shape.schema StartNetworkInsightsAnalysisResult), errors := [] } + | .startVpcEndpointServicePrivateDnsVerification => { name := "StartVpcEndpointServicePrivateDnsVerification", method := "POST", uri := "/", input := (Shape.schema StartVpcEndpointServicePrivateDnsVerificationRequest), output := (Shape.schema StartVpcEndpointServicePrivateDnsVerificationResult), errors := [] } + | .stopInstances => { name := "StopInstances", method := "POST", uri := "/", input := (Shape.schema StopInstancesRequest), output := (Shape.schema StopInstancesResult), errors := [] } + | .terminateClientVpnConnections => { name := "TerminateClientVpnConnections", method := "POST", uri := "/", input := (Shape.schema TerminateClientVpnConnectionsRequest), output := (Shape.schema TerminateClientVpnConnectionsResult), errors := [] } + | .terminateInstances => { name := "TerminateInstances", method := "POST", uri := "/", input := (Shape.schema TerminateInstancesRequest), output := (Shape.schema TerminateInstancesResult), errors := [] } + | .unassignIpv6Addresses => { name := "UnassignIpv6Addresses", method := "POST", uri := "/", input := (Shape.schema UnassignIpv6AddressesRequest), output := (Shape.schema UnassignIpv6AddressesResult), errors := [] } + | .unassignPrivateIpAddresses => { name := "UnassignPrivateIpAddresses", method := "POST", uri := "/", input := (Shape.schema UnassignPrivateIpAddressesRequest), output := (Shape.schema Unit), errors := [] } + | .unassignPrivateNatGatewayAddress => { name := "UnassignPrivateNatGatewayAddress", method := "POST", uri := "/", input := (Shape.schema UnassignPrivateNatGatewayAddressRequest), output := (Shape.schema UnassignPrivateNatGatewayAddressResult), errors := [] } + | .unlockSnapshot => { name := "UnlockSnapshot", method := "POST", uri := "/", input := (Shape.schema UnlockSnapshotRequest), output := (Shape.schema UnlockSnapshotResult), errors := [] } + | .unmonitorInstances => { name := "UnmonitorInstances", method := "POST", uri := "/", input := (Shape.schema UnmonitorInstancesRequest), output := (Shape.schema UnmonitorInstancesResult), errors := [] } + | .updateCapacityManagerMonitoredTagKeys => { name := "UpdateCapacityManagerMonitoredTagKeys", method := "POST", uri := "/", input := (Shape.schema UpdateCapacityManagerMonitoredTagKeysRequest), output := (Shape.schema UpdateCapacityManagerMonitoredTagKeysResult), errors := [] } + | .updateCapacityManagerOrganizationsAccess => { name := "UpdateCapacityManagerOrganizationsAccess", method := "POST", uri := "/", input := (Shape.schema UpdateCapacityManagerOrganizationsAccessRequest), output := (Shape.schema UpdateCapacityManagerOrganizationsAccessResult), errors := [] } + | .updateInterruptibleCapacityReservationAllocation => { name := "UpdateInterruptibleCapacityReservationAllocation", method := "POST", uri := "/", input := (Shape.schema UpdateInterruptibleCapacityReservationAllocationRequest), output := (Shape.schema UpdateInterruptibleCapacityReservationAllocationResult), errors := [] } + | .updateSecurityGroupRuleDescriptionsEgress => { name := "UpdateSecurityGroupRuleDescriptionsEgress", method := "POST", uri := "/", input := (Shape.schema UpdateSecurityGroupRuleDescriptionsEgressRequest), output := (Shape.schema UpdateSecurityGroupRuleDescriptionsEgressResult), errors := [] } + | .updateSecurityGroupRuleDescriptionsIngress => { name := "UpdateSecurityGroupRuleDescriptionsIngress", method := "POST", uri := "/", input := (Shape.schema UpdateSecurityGroupRuleDescriptionsIngressRequest), output := (Shape.schema UpdateSecurityGroupRuleDescriptionsIngressResult), errors := [] } + | .validateSecurityGroupQuotasForInterface => { name := "ValidateSecurityGroupQuotasForInterface", method := "POST", uri := "/", input := (Shape.schema ValidateSecurityGroupQuotasForInterfaceRequest), output := (Shape.schema ValidateSecurityGroupQuotasForInterfaceResult), errors := [] } + | .withdrawByoipCidr => { name := "WithdrawByoipCidr", method := "POST", uri := "/", input := (Shape.schema WithdrawByoipCidrRequest), output := (Shape.schema WithdrawByoipCidrResult), errors := [] } + +/-- How the service goes over HTTP. -/ +def wire : Wire api := Wire.of service info + (fun op => match op with + | .acceptAddressTransfer => fun (x : AcceptAddressTransferRequest) => Shape.toValue x + | .acceptCapacityReservationBillingOwnership => fun (x : AcceptCapacityReservationBillingOwnershipRequest) => Shape.toValue x + | .acceptReservedInstancesExchangeQuote => fun (x : AcceptReservedInstancesExchangeQuoteRequest) => Shape.toValue x + | .acceptTransitGatewayClientVpnAttachment => fun (x : AcceptTransitGatewayClientVpnAttachmentRequest) => Shape.toValue x + | .acceptTransitGatewayMulticastDomainAssociations => fun (x : AcceptTransitGatewayMulticastDomainAssociationsRequest) => Shape.toValue x + | .acceptTransitGatewayPeeringAttachment => fun (x : AcceptTransitGatewayPeeringAttachmentRequest) => Shape.toValue x + | .acceptTransitGatewayVpcAttachment => fun (x : AcceptTransitGatewayVpcAttachmentRequest) => Shape.toValue x + | .acceptVpcEndpointConnections => fun (x : AcceptVpcEndpointConnectionsRequest) => Shape.toValue x + | .acceptVpcPeeringConnection => fun (x : AcceptVpcPeeringConnectionRequest) => Shape.toValue x + | .advertiseByoipCidr => fun (x : AdvertiseByoipCidrRequest) => Shape.toValue x + | .allocateAddress => fun (x : AllocateAddressRequest) => Shape.toValue x + | .allocateHosts => fun (x : AllocateHostsRequest) => Shape.toValue x + | .allocateIpamPoolCidr => fun (x : AllocateIpamPoolCidrRequest) => Shape.toValue x + | .applySecurityGroupsToClientVpnTargetNetwork => fun (x : ApplySecurityGroupsToClientVpnTargetNetworkRequest) => Shape.toValue x + | .assignIpv6Addresses => fun (x : AssignIpv6AddressesRequest) => Shape.toValue x + | .assignPrivateIpAddresses => fun (x : AssignPrivateIpAddressesRequest) => Shape.toValue x + | .assignPrivateNatGatewayAddress => fun (x : AssignPrivateNatGatewayAddressRequest) => Shape.toValue x + | .associateAddress => fun (x : AssociateAddressRequest) => Shape.toValue x + | .associateApplicationStatusCheck => fun (x : AssociateApplicationStatusCheckRequest) => Shape.toValue x + | .associateCapacityReservationBillingOwner => fun (x : AssociateCapacityReservationBillingOwnerRequest) => Shape.toValue x + | .associateClientVpnTargetNetwork => fun (x : AssociateClientVpnTargetNetworkRequest) => Shape.toValue x + | .associateDhcpOptions => fun (x : AssociateDhcpOptionsRequest) => Shape.toValue x + | .associateEnclaveCertificateIamRole => fun (x : AssociateEnclaveCertificateIamRoleRequest) => Shape.toValue x + | .associateIamInstanceProfile => fun (x : AssociateIamInstanceProfileRequest) => Shape.toValue x + | .associateInstanceEventWindow => fun (x : AssociateInstanceEventWindowRequest) => Shape.toValue x + | .associateIpamByoasn => fun (x : AssociateIpamByoasnRequest) => Shape.toValue x + | .associateIpamResourceDiscovery => fun (x : AssociateIpamResourceDiscoveryRequest) => Shape.toValue x + | .associateKmsKeyId => fun (x : AssociateKmsKeyIdRequest) => Shape.toValue x + | .associateNatGatewayAddress => fun (x : AssociateNatGatewayAddressRequest) => Shape.toValue x + | .associateNetworkingFlexCostAllocationPolicy => fun (x : AssociateNetworkingFlexCostAllocationPolicyRequest) => Shape.toValue x + | .associateRouteServer => fun (x : AssociateRouteServerRequest) => Shape.toValue x + | .associateRouteTable => fun (x : AssociateRouteTableRequest) => Shape.toValue x + | .associateSecurityGroupVpc => fun (x : AssociateSecurityGroupVpcRequest) => Shape.toValue x + | .associateSubnetCidrBlock => fun (x : AssociateSubnetCidrBlockRequest) => Shape.toValue x + | .associateTransitGatewayMulticastDomain => fun (x : AssociateTransitGatewayMulticastDomainRequest) => Shape.toValue x + | .associateTransitGatewayPolicyTable => fun (x : AssociateTransitGatewayPolicyTableRequest) => Shape.toValue x + | .associateTransitGatewayRouteTable => fun (x : AssociateTransitGatewayRouteTableRequest) => Shape.toValue x + | .associateTrunkInterface => fun (x : AssociateTrunkInterfaceRequest) => Shape.toValue x + | .associateVpcCidrBlock => fun (x : AssociateVpcCidrBlockRequest) => Shape.toValue x + | .attachClassicLinkVpc => fun (x : AttachClassicLinkVpcRequest) => Shape.toValue x + | .attachImageWatermark => fun (x : AttachImageWatermarkRequest) => Shape.toValue x + | .attachInternetGateway => fun (x : AttachInternetGatewayRequest) => Shape.toValue x + | .attachNetworkInterface => fun (x : AttachNetworkInterfaceRequest) => Shape.toValue x + | .attachVerifiedAccessTrustProvider => fun (x : AttachVerifiedAccessTrustProviderRequest) => Shape.toValue x + | .attachVolume => fun (x : AttachVolumeRequest) => Shape.toValue x + | .attachVpnGateway => fun (x : AttachVpnGatewayRequest) => Shape.toValue x + | .authorizeClientVpnIngress => fun (x : AuthorizeClientVpnIngressRequest) => Shape.toValue x + | .authorizeSecurityGroupEgress => fun (x : AuthorizeSecurityGroupEgressRequest) => Shape.toValue x + | .authorizeSecurityGroupIngress => fun (x : AuthorizeSecurityGroupIngressRequest) => Shape.toValue x + | .batchModifyIpamRoutingPolicyRegistrations => fun (x : BatchModifyIpamRoutingPolicyRegistrationsRequest) => Shape.toValue x + | .bundleInstance => fun (x : BundleInstanceRequest) => Shape.toValue x + | .cancelBundleTask => fun (x : CancelBundleTaskRequest) => Shape.toValue x + | .cancelCapacityReservation => fun (x : CancelCapacityReservationRequest) => Shape.toValue x + | .cancelCapacityReservationFleets => fun (x : CancelCapacityReservationFleetsRequest) => Shape.toValue x + | .cancelConversionTask => fun (x : CancelConversionRequest) => Shape.toValue x + | .cancelDeclarativePoliciesReport => fun (x : CancelDeclarativePoliciesReportRequest) => Shape.toValue x + | .cancelExportTask => fun (x : CancelExportTaskRequest) => Shape.toValue x + | .cancelImageLaunchPermission => fun (x : CancelImageLaunchPermissionRequest) => Shape.toValue x + | .cancelImportTask => fun (x : CancelImportTaskRequest) => Shape.toValue x + | .cancelReservedInstancesListing => fun (x : CancelReservedInstancesListingRequest) => Shape.toValue x + | .cancelSpotFleetRequests => fun (x : CancelSpotFleetRequestsRequest) => Shape.toValue x + | .cancelSpotInstanceRequests => fun (x : CancelSpotInstanceRequestsRequest) => Shape.toValue x + | .confirmProductInstance => fun (x : ConfirmProductInstanceRequest) => Shape.toValue x + | .copyFpgaImage => fun (x : CopyFpgaImageRequest) => Shape.toValue x + | .copyImage => fun (x : CopyImageRequest) => Shape.toValue x + | .copySnapshot => fun (x : CopySnapshotRequest) => Shape.toValue x + | .copyVolumes => fun (x : CopyVolumesRequest) => Shape.toValue x + | .createApplicationStatusCheck => fun (x : CreateApplicationStatusCheckRequest) => Shape.toValue x + | .createCapacityManagerDataExport => fun (x : CreateCapacityManagerDataExportRequest) => Shape.toValue x + | .createCapacityReservation => fun (x : CreateCapacityReservationRequest) => Shape.toValue x + | .createCapacityReservationBySplitting => fun (x : CreateCapacityReservationBySplittingRequest) => Shape.toValue x + | .createCapacityReservationCancellationQuote => fun (x : CreateCapacityReservationCancellationQuoteRequest) => Shape.toValue x + | .createCapacityReservationDateChangeQuote => fun (x : CreateCapacityReservationDateChangeQuoteRequest) => Shape.toValue x + | .createCapacityReservationFleet => fun (x : CreateCapacityReservationFleetRequest) => Shape.toValue x + | .createCarrierGateway => fun (x : CreateCarrierGatewayRequest) => Shape.toValue x + | .createClientVpnEndpoint => fun (x : CreateClientVpnEndpointRequest) => Shape.toValue x + | .createClientVpnRoute => fun (x : CreateClientVpnRouteRequest) => Shape.toValue x + | .createCoipCidr => fun (x : CreateCoipCidrRequest) => Shape.toValue x + | .createCoipPool => fun (x : CreateCoipPoolRequest) => Shape.toValue x + | .createCustomerGateway => fun (x : CreateCustomerGatewayRequest) => Shape.toValue x + | .createDefaultSubnet => fun (x : CreateDefaultSubnetRequest) => Shape.toValue x + | .createDefaultVpc => fun (x : CreateDefaultVpcRequest) => Shape.toValue x + | .createDelegateMacVolumeOwnershipTask => fun (x : CreateDelegateMacVolumeOwnershipTaskRequest) => Shape.toValue x + | .createDhcpOptions => fun (x : CreateDhcpOptionsRequest) => Shape.toValue x + | .createEgressOnlyInternetGateway => fun (x : CreateEgressOnlyInternetGatewayRequest) => Shape.toValue x + | .createFleet => fun (x : CreateFleetRequest) => Shape.toValue x + | .createFlowLogs => fun (x : CreateFlowLogsRequest) => Shape.toValue x + | .createFpgaImage => fun (x : CreateFpgaImageRequest) => Shape.toValue x + | .createImage => fun (x : CreateImageRequest) => Shape.toValue x + | .createImageUsageReport => fun (x : CreateImageUsageReportRequest) => Shape.toValue x + | .createInstanceConnectEndpoint => fun (x : CreateInstanceConnectEndpointRequest) => Shape.toValue x + | .createInstanceEventWindow => fun (x : CreateInstanceEventWindowRequest) => Shape.toValue x + | .createInstanceExportTask => fun (x : CreateInstanceExportTaskRequest) => Shape.toValue x + | .createInternetGateway => fun (x : CreateInternetGatewayRequest) => Shape.toValue x + | .createInterruptibleCapacityReservationAllocation => fun (x : CreateInterruptibleCapacityReservationAllocationRequest) => Shape.toValue x + | .createIpam => fun (x : CreateIpamRequest) => Shape.toValue x + | .createIpamExternalResourceVerificationToken => fun (x : CreateIpamExternalResourceVerificationTokenRequest) => Shape.toValue x + | .createIpamInternetRegistryAssociation => fun (x : CreateIpamInternetRegistryAssociationRequest) => Shape.toValue x + | .createIpamPolicy => fun (x : CreateIpamPolicyRequest) => Shape.toValue x + | .createIpamPool => fun (x : CreateIpamPoolRequest) => Shape.toValue x + | .createIpamPrefixListResolver => fun (x : CreateIpamPrefixListResolverRequest) => Shape.toValue x + | .createIpamPrefixListResolverTarget => fun (x : CreateIpamPrefixListResolverTargetRequest) => Shape.toValue x + | .createIpamResourceDiscovery => fun (x : CreateIpamResourceDiscoveryRequest) => Shape.toValue x + | .createIpamRoutingPolicyRegistration => fun (x : CreateIpamRoutingPolicyRegistrationRequest) => Shape.toValue x + | .createIpamScope => fun (x : CreateIpamScopeRequest) => Shape.toValue x + | .createKeyPair => fun (x : CreateKeyPairRequest) => Shape.toValue x + | .createLaunchTemplate => fun (x : CreateLaunchTemplateRequest) => Shape.toValue x + | .createLaunchTemplateVersion => fun (x : CreateLaunchTemplateVersionRequest) => Shape.toValue x + | .createLocalGatewayRoute => fun (x : CreateLocalGatewayRouteRequest) => Shape.toValue x + | .createLocalGatewayRouteTable => fun (x : CreateLocalGatewayRouteTableRequest) => Shape.toValue x + | .createLocalGatewayRouteTableVirtualInterfaceGroupAssociation => fun (x : CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest) => Shape.toValue x + | .createLocalGatewayRouteTableVpcAssociation => fun (x : CreateLocalGatewayRouteTableVpcAssociationRequest) => Shape.toValue x + | .createLocalGatewayVirtualInterface => fun (x : CreateLocalGatewayVirtualInterfaceRequest) => Shape.toValue x + | .createLocalGatewayVirtualInterfaceGroup => fun (x : CreateLocalGatewayVirtualInterfaceGroupRequest) => Shape.toValue x + | .createMacSystemIntegrityProtectionModificationTask => fun (x : CreateMacSystemIntegrityProtectionModificationTaskRequest) => Shape.toValue x + | .createManagedPrefixList => fun (x : CreateManagedPrefixListRequest) => Shape.toValue x + | .createMetricCategory => fun (x : CreateMetricCategoryRequest) => Shape.toValue x + | .createNatGateway => fun (x : CreateNatGatewayRequest) => Shape.toValue x + | .createNetworkAcl => fun (x : CreateNetworkAclRequest) => Shape.toValue x + | .createNetworkAclEntry => fun (x : CreateNetworkAclEntryRequest) => Shape.toValue x + | .createNetworkInsightsAccessScope => fun (x : CreateNetworkInsightsAccessScopeRequest) => Shape.toValue x + | .createNetworkInsightsPath => fun (x : CreateNetworkInsightsPathRequest) => Shape.toValue x + | .createNetworkInterface => fun (x : CreateNetworkInterfaceRequest) => Shape.toValue x + | .createNetworkInterfacePermission => fun (x : CreateNetworkInterfacePermissionRequest) => Shape.toValue x + | .createNetworkingFlexCostAllocationPolicy => fun (x : CreateNetworkingFlexCostAllocationPolicyRequest) => Shape.toValue x + | .createPlacementGroup => fun (x : CreatePlacementGroupRequest) => Shape.toValue x + | .createPublicIpv4Pool => fun (x : CreatePublicIpv4PoolRequest) => Shape.toValue x + | .createReplaceRootVolumeTask => fun (x : CreateReplaceRootVolumeTaskRequest) => Shape.toValue x + | .createReservedInstancesListing => fun (x : CreateReservedInstancesListingRequest) => Shape.toValue x + | .createRestoreImageTask => fun (x : CreateRestoreImageTaskRequest) => Shape.toValue x + | .createRoute => fun (x : CreateRouteRequest) => Shape.toValue x + | .createRouteServer => fun (x : CreateRouteServerRequest) => Shape.toValue x + | .createRouteServerEndpoint => fun (x : CreateRouteServerEndpointRequest) => Shape.toValue x + | .createRouteServerPeer => fun (x : CreateRouteServerPeerRequest) => Shape.toValue x + | .createRouteTable => fun (x : CreateRouteTableRequest) => Shape.toValue x + | .createSecondaryNetwork => fun (x : CreateSecondaryNetworkRequest) => Shape.toValue x + | .createSecondarySubnet => fun (x : CreateSecondarySubnetRequest) => Shape.toValue x + | .createSecurityGroup => fun (x : CreateSecurityGroupRequest) => Shape.toValue x + | .createSnapshot => fun (x : CreateSnapshotRequest) => Shape.toValue x + | .createSnapshots => fun (x : CreateSnapshotsRequest) => Shape.toValue x + | .createSpotDatafeedSubscription => fun (x : CreateSpotDatafeedSubscriptionRequest) => Shape.toValue x + | .createStoreImageTask => fun (x : CreateStoreImageTaskRequest) => Shape.toValue x + | .createSubnet => fun (x : CreateSubnetRequest) => Shape.toValue x + | .createSubnetCidrReservation => fun (x : CreateSubnetCidrReservationRequest) => Shape.toValue x + | .createTags => fun (x : CreateTagsRequest) => Shape.toValue x + | .createTrafficMirrorFilter => fun (x : CreateTrafficMirrorFilterRequest) => Shape.toValue x + | .createTrafficMirrorFilterRule => fun (x : CreateTrafficMirrorFilterRuleRequest) => Shape.toValue x + | .createTrafficMirrorSession => fun (x : CreateTrafficMirrorSessionRequest) => Shape.toValue x + | .createTrafficMirrorTarget => fun (x : CreateTrafficMirrorTargetRequest) => Shape.toValue x + | .createTransitGateway => fun (x : CreateTransitGatewayRequest) => Shape.toValue x + | .createTransitGatewayConnect => fun (x : CreateTransitGatewayConnectRequest) => Shape.toValue x + | .createTransitGatewayConnectPeer => fun (x : CreateTransitGatewayConnectPeerRequest) => Shape.toValue x + | .createTransitGatewayMeteringPolicy => fun (x : CreateTransitGatewayMeteringPolicyRequest) => Shape.toValue x + | .createTransitGatewayMeteringPolicyEntry => fun (x : CreateTransitGatewayMeteringPolicyEntryRequest) => Shape.toValue x + | .createTransitGatewayMulticastDomain => fun (x : CreateTransitGatewayMulticastDomainRequest) => Shape.toValue x + | .createTransitGatewayNetworkFunctionAttachment => fun (x : CreateTransitGatewayNetworkFunctionAttachmentRequest) => Shape.toValue x + | .createTransitGatewayPeeringAttachment => fun (x : CreateTransitGatewayPeeringAttachmentRequest) => Shape.toValue x + | .createTransitGatewayPolicyTable => fun (x : CreateTransitGatewayPolicyTableRequest) => Shape.toValue x + | .createTransitGatewayPolicyTableEntry => fun (x : CreateTransitGatewayPolicyTableEntryRequest) => Shape.toValue x + | .createTransitGatewayPrefixListReference => fun (x : CreateTransitGatewayPrefixListReferenceRequest) => Shape.toValue x + | .createTransitGatewayRoute => fun (x : CreateTransitGatewayRouteRequest) => Shape.toValue x + | .createTransitGatewayRouteTable => fun (x : CreateTransitGatewayRouteTableRequest) => Shape.toValue x + | .createTransitGatewayRouteTableAnnouncement => fun (x : CreateTransitGatewayRouteTableAnnouncementRequest) => Shape.toValue x + | .createTransitGatewayVpcAttachment => fun (x : CreateTransitGatewayVpcAttachmentRequest) => Shape.toValue x + | .createVerifiedAccessEndpoint => fun (x : CreateVerifiedAccessEndpointRequest) => Shape.toValue x + | .createVerifiedAccessGroup => fun (x : CreateVerifiedAccessGroupRequest) => Shape.toValue x + | .createVerifiedAccessInstance => fun (x : CreateVerifiedAccessInstanceRequest) => Shape.toValue x + | .createVerifiedAccessTrustProvider => fun (x : CreateVerifiedAccessTrustProviderRequest) => Shape.toValue x + | .createVolume => fun (x : CreateVolumeRequest) => Shape.toValue x + | .createVpc => fun (x : CreateVpcRequest) => Shape.toValue x + | .createVpcBlockPublicAccessExclusion => fun (x : CreateVpcBlockPublicAccessExclusionRequest) => Shape.toValue x + | .createVpcEncryptionControl => fun (x : CreateVpcEncryptionControlRequest) => Shape.toValue x + | .createVpcEndpoint => fun (x : CreateVpcEndpointRequest) => Shape.toValue x + | .createVpcEndpointConnectionNotification => fun (x : CreateVpcEndpointConnectionNotificationRequest) => Shape.toValue x + | .createVpcEndpointServiceConfiguration => fun (x : CreateVpcEndpointServiceConfigurationRequest) => Shape.toValue x + | .createVpcPeeringConnection => fun (x : CreateVpcPeeringConnectionRequest) => Shape.toValue x + | .createVpnConcentrator => fun (x : CreateVpnConcentratorRequest) => Shape.toValue x + | .createVpnConnection => fun (x : CreateVpnConnectionRequest) => Shape.toValue x + | .createVpnConnectionRoute => fun (x : CreateVpnConnectionRouteRequest) => Shape.toValue x + | .createVpnGateway => fun (x : CreateVpnGatewayRequest) => Shape.toValue x + | .deleteApplicationStatusCheck => fun (x : DeleteApplicationStatusCheckRequest) => Shape.toValue x + | .deleteCapacityManagerDataExport => fun (x : DeleteCapacityManagerDataExportRequest) => Shape.toValue x + | .deleteCarrierGateway => fun (x : DeleteCarrierGatewayRequest) => Shape.toValue x + | .deleteClientVpnEndpoint => fun (x : DeleteClientVpnEndpointRequest) => Shape.toValue x + | .deleteClientVpnEndpointAuthorizationPolicy => fun (x : DeleteClientVpnEndpointAuthorizationPolicyRequest) => Shape.toValue x + | .deleteClientVpnRoute => fun (x : DeleteClientVpnRouteRequest) => Shape.toValue x + | .deleteCoipCidr => fun (x : DeleteCoipCidrRequest) => Shape.toValue x + | .deleteCoipPool => fun (x : DeleteCoipPoolRequest) => Shape.toValue x + | .deleteCustomerGateway => fun (x : DeleteCustomerGatewayRequest) => Shape.toValue x + | .deleteDhcpOptions => fun (x : DeleteDhcpOptionsRequest) => Shape.toValue x + | .deleteEgressOnlyInternetGateway => fun (x : DeleteEgressOnlyInternetGatewayRequest) => Shape.toValue x + | .deleteFleets => fun (x : DeleteFleetsRequest) => Shape.toValue x + | .deleteFlowLogs => fun (x : DeleteFlowLogsRequest) => Shape.toValue x + | .deleteFpgaImage => fun (x : DeleteFpgaImageRequest) => Shape.toValue x + | .deleteImageUsageReport => fun (x : DeleteImageUsageReportRequest) => Shape.toValue x + | .deleteInstanceConnectEndpoint => fun (x : DeleteInstanceConnectEndpointRequest) => Shape.toValue x + | .deleteInstanceEventWindow => fun (x : DeleteInstanceEventWindowRequest) => Shape.toValue x + | .deleteInternetGateway => fun (x : DeleteInternetGatewayRequest) => Shape.toValue x + | .deleteIpam => fun (x : DeleteIpamRequest) => Shape.toValue x + | .deleteIpamExternalResourceVerificationToken => fun (x : DeleteIpamExternalResourceVerificationTokenRequest) => Shape.toValue x + | .deleteIpamInternetRegistryAssociation => fun (x : DeleteIpamInternetRegistryAssociationRequest) => Shape.toValue x + | .deleteIpamPolicy => fun (x : DeleteIpamPolicyRequest) => Shape.toValue x + | .deleteIpamPool => fun (x : DeleteIpamPoolRequest) => Shape.toValue x + | .deleteIpamPrefixListResolver => fun (x : DeleteIpamPrefixListResolverRequest) => Shape.toValue x + | .deleteIpamPrefixListResolverTarget => fun (x : DeleteIpamPrefixListResolverTargetRequest) => Shape.toValue x + | .deleteIpamResourceDiscovery => fun (x : DeleteIpamResourceDiscoveryRequest) => Shape.toValue x + | .deleteIpamRoutingPolicyRegistration => fun (x : DeleteIpamRoutingPolicyRegistrationRequest) => Shape.toValue x + | .deleteIpamScope => fun (x : DeleteIpamScopeRequest) => Shape.toValue x + | .deleteKeyPair => fun (x : DeleteKeyPairRequest) => Shape.toValue x + | .deleteLaunchTemplate => fun (x : DeleteLaunchTemplateRequest) => Shape.toValue x + | .deleteLaunchTemplateVersions => fun (x : DeleteLaunchTemplateVersionsRequest) => Shape.toValue x + | .deleteLocalGatewayRoute => fun (x : DeleteLocalGatewayRouteRequest) => Shape.toValue x + | .deleteLocalGatewayRouteTable => fun (x : DeleteLocalGatewayRouteTableRequest) => Shape.toValue x + | .deleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation => fun (x : DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest) => Shape.toValue x + | .deleteLocalGatewayRouteTableVpcAssociation => fun (x : DeleteLocalGatewayRouteTableVpcAssociationRequest) => Shape.toValue x + | .deleteLocalGatewayVirtualInterface => fun (x : DeleteLocalGatewayVirtualInterfaceRequest) => Shape.toValue x + | .deleteLocalGatewayVirtualInterfaceGroup => fun (x : DeleteLocalGatewayVirtualInterfaceGroupRequest) => Shape.toValue x + | .deleteManagedPrefixList => fun (x : DeleteManagedPrefixListRequest) => Shape.toValue x + | .deleteMetricCategory => fun (x : DeleteMetricCategoryRequest) => Shape.toValue x + | .deleteNatGateway => fun (x : DeleteNatGatewayRequest) => Shape.toValue x + | .deleteNetworkAcl => fun (x : DeleteNetworkAclRequest) => Shape.toValue x + | .deleteNetworkAclEntry => fun (x : DeleteNetworkAclEntryRequest) => Shape.toValue x + | .deleteNetworkInsightsAccessScope => fun (x : DeleteNetworkInsightsAccessScopeRequest) => Shape.toValue x + | .deleteNetworkInsightsAccessScopeAnalysis => fun (x : DeleteNetworkInsightsAccessScopeAnalysisRequest) => Shape.toValue x + | .deleteNetworkInsightsAnalysis => fun (x : DeleteNetworkInsightsAnalysisRequest) => Shape.toValue x + | .deleteNetworkInsightsPath => fun (x : DeleteNetworkInsightsPathRequest) => Shape.toValue x + | .deleteNetworkInterface => fun (x : DeleteNetworkInterfaceRequest) => Shape.toValue x + | .deleteNetworkInterfacePermission => fun (x : DeleteNetworkInterfacePermissionRequest) => Shape.toValue x + | .deleteNetworkingFlexCostAllocationPolicies => fun (x : DeleteNetworkingFlexCostAllocationPoliciesRequest) => Shape.toValue x + | .deletePlacementGroup => fun (x : DeletePlacementGroupRequest) => Shape.toValue x + | .deletePublicIpv4Pool => fun (x : DeletePublicIpv4PoolRequest) => Shape.toValue x + | .deleteQueuedReservedInstances => fun (x : DeleteQueuedReservedInstancesRequest) => Shape.toValue x + | .deleteRoute => fun (x : DeleteRouteRequest) => Shape.toValue x + | .deleteRouteServer => fun (x : DeleteRouteServerRequest) => Shape.toValue x + | .deleteRouteServerEndpoint => fun (x : DeleteRouteServerEndpointRequest) => Shape.toValue x + | .deleteRouteServerPeer => fun (x : DeleteRouteServerPeerRequest) => Shape.toValue x + | .deleteRouteTable => fun (x : DeleteRouteTableRequest) => Shape.toValue x + | .deleteSecondaryNetwork => fun (x : DeleteSecondaryNetworkRequest) => Shape.toValue x + | .deleteSecondarySubnet => fun (x : DeleteSecondarySubnetRequest) => Shape.toValue x + | .deleteSecurityGroup => fun (x : DeleteSecurityGroupRequest) => Shape.toValue x + | .deleteSnapshot => fun (x : DeleteSnapshotRequest) => Shape.toValue x + | .deleteSpotDatafeedSubscription => fun (x : DeleteSpotDatafeedSubscriptionRequest) => Shape.toValue x + | .deleteSubnet => fun (x : DeleteSubnetRequest) => Shape.toValue x + | .deleteSubnetCidrReservation => fun (x : DeleteSubnetCidrReservationRequest) => Shape.toValue x + | .deleteTags => fun (x : DeleteTagsRequest) => Shape.toValue x + | .deleteTrafficMirrorFilter => fun (x : DeleteTrafficMirrorFilterRequest) => Shape.toValue x + | .deleteTrafficMirrorFilterRule => fun (x : DeleteTrafficMirrorFilterRuleRequest) => Shape.toValue x + | .deleteTrafficMirrorSession => fun (x : DeleteTrafficMirrorSessionRequest) => Shape.toValue x + | .deleteTrafficMirrorTarget => fun (x : DeleteTrafficMirrorTargetRequest) => Shape.toValue x + | .deleteTransitGateway => fun (x : DeleteTransitGatewayRequest) => Shape.toValue x + | .deleteTransitGatewayClientVpnAttachment => fun (x : DeleteTransitGatewayClientVpnAttachmentRequest) => Shape.toValue x + | .deleteTransitGatewayConnect => fun (x : DeleteTransitGatewayConnectRequest) => Shape.toValue x + | .deleteTransitGatewayConnectPeer => fun (x : DeleteTransitGatewayConnectPeerRequest) => Shape.toValue x + | .deleteTransitGatewayMeteringPolicy => fun (x : DeleteTransitGatewayMeteringPolicyRequest) => Shape.toValue x + | .deleteTransitGatewayMeteringPolicyEntry => fun (x : DeleteTransitGatewayMeteringPolicyEntryRequest) => Shape.toValue x + | .deleteTransitGatewayMulticastDomain => fun (x : DeleteTransitGatewayMulticastDomainRequest) => Shape.toValue x + | .deleteTransitGatewayNetworkFunctionAttachment => fun (x : DeleteTransitGatewayNetworkFunctionAttachmentRequest) => Shape.toValue x + | .deleteTransitGatewayPeeringAttachment => fun (x : DeleteTransitGatewayPeeringAttachmentRequest) => Shape.toValue x + | .deleteTransitGatewayPolicyTable => fun (x : DeleteTransitGatewayPolicyTableRequest) => Shape.toValue x + | .deleteTransitGatewayPolicyTableEntry => fun (x : DeleteTransitGatewayPolicyTableEntryRequest) => Shape.toValue x + | .deleteTransitGatewayPrefixListReference => fun (x : DeleteTransitGatewayPrefixListReferenceRequest) => Shape.toValue x + | .deleteTransitGatewayRoute => fun (x : DeleteTransitGatewayRouteRequest) => Shape.toValue x + | .deleteTransitGatewayRouteTable => fun (x : DeleteTransitGatewayRouteTableRequest) => Shape.toValue x + | .deleteTransitGatewayRouteTableAnnouncement => fun (x : DeleteTransitGatewayRouteTableAnnouncementRequest) => Shape.toValue x + | .deleteTransitGatewayVpcAttachment => fun (x : DeleteTransitGatewayVpcAttachmentRequest) => Shape.toValue x + | .deleteVerifiedAccessEndpoint => fun (x : DeleteVerifiedAccessEndpointRequest) => Shape.toValue x + | .deleteVerifiedAccessGroup => fun (x : DeleteVerifiedAccessGroupRequest) => Shape.toValue x + | .deleteVerifiedAccessInstance => fun (x : DeleteVerifiedAccessInstanceRequest) => Shape.toValue x + | .deleteVerifiedAccessTrustProvider => fun (x : DeleteVerifiedAccessTrustProviderRequest) => Shape.toValue x + | .deleteVolume => fun (x : DeleteVolumeRequest) => Shape.toValue x + | .deleteVpc => fun (x : DeleteVpcRequest) => Shape.toValue x + | .deleteVpcBlockPublicAccessExclusion => fun (x : DeleteVpcBlockPublicAccessExclusionRequest) => Shape.toValue x + | .deleteVpcEncryptionControl => fun (x : DeleteVpcEncryptionControlRequest) => Shape.toValue x + | .deleteVpcEndpointConnectionNotifications => fun (x : DeleteVpcEndpointConnectionNotificationsRequest) => Shape.toValue x + | .deleteVpcEndpointServiceConfigurations => fun (x : DeleteVpcEndpointServiceConfigurationsRequest) => Shape.toValue x + | .deleteVpcEndpoints => fun (x : DeleteVpcEndpointsRequest) => Shape.toValue x + | .deleteVpcPeeringConnection => fun (x : DeleteVpcPeeringConnectionRequest) => Shape.toValue x + | .deleteVpnConcentrator => fun (x : DeleteVpnConcentratorRequest) => Shape.toValue x + | .deleteVpnConnection => fun (x : DeleteVpnConnectionRequest) => Shape.toValue x + | .deleteVpnConnectionRoute => fun (x : DeleteVpnConnectionRouteRequest) => Shape.toValue x + | .deleteVpnGateway => fun (x : DeleteVpnGatewayRequest) => Shape.toValue x + | .deprovisionByoipCidr => fun (x : DeprovisionByoipCidrRequest) => Shape.toValue x + | .deprovisionIpamByoasn => fun (x : DeprovisionIpamByoasnRequest) => Shape.toValue x + | .deprovisionIpamPoolCidr => fun (x : DeprovisionIpamPoolCidrRequest) => Shape.toValue x + | .deprovisionPublicIpv4PoolCidr => fun (x : DeprovisionPublicIpv4PoolCidrRequest) => Shape.toValue x + | .deregisterImage => fun (x : DeregisterImageRequest) => Shape.toValue x + | .deregisterInstanceEventNotificationAttributes => fun (x : DeregisterInstanceEventNotificationAttributesRequest) => Shape.toValue x + | .deregisterTransitGatewayMulticastGroupMembers => fun (x : DeregisterTransitGatewayMulticastGroupMembersRequest) => Shape.toValue x + | .deregisterTransitGatewayMulticastGroupSources => fun (x : DeregisterTransitGatewayMulticastGroupSourcesRequest) => Shape.toValue x + | .describeAccountAttributes => fun (x : DescribeAccountAttributesRequest) => Shape.toValue x + | .describeAccountVpcEncryptionControl => fun (x : DescribeAccountVpcEncryptionControlRequest) => Shape.toValue x + | .describeAddressTransfers => fun (x : DescribeAddressTransfersRequest) => Shape.toValue x + | .describeAddresses => fun (x : DescribeAddressesRequest) => Shape.toValue x + | .describeAddressesAttribute => fun (x : DescribeAddressesAttributeRequest) => Shape.toValue x + | .describeAggregateIdFormat => fun (x : DescribeAggregateIdFormatRequest) => Shape.toValue x + | .describeApplicationStatus => fun (x : DescribeApplicationStatusRequest) => Shape.toValue x + | .describeApplicationStatusCheckAssociations => fun (x : DescribeApplicationStatusCheckAssociationsRequest) => Shape.toValue x + | .describeApplicationStatusChecks => fun (x : DescribeApplicationStatusChecksRequest) => Shape.toValue x + | .describeAvailabilityZones => fun (x : DescribeAvailabilityZonesRequest) => Shape.toValue x + | .describeAwsNetworkPerformanceMetricSubscriptions => fun (x : DescribeAwsNetworkPerformanceMetricSubscriptionsRequest) => Shape.toValue x + | .describeBundleTasks => fun (x : DescribeBundleTasksRequest) => Shape.toValue x + | .describeByoipCidrs => fun (x : DescribeByoipCidrsRequest) => Shape.toValue x + | .describeCapacityBlockExtensionHistory => fun (x : DescribeCapacityBlockExtensionHistoryRequest) => Shape.toValue x + | .describeCapacityBlockExtensionOfferings => fun (x : DescribeCapacityBlockExtensionOfferingsRequest) => Shape.toValue x + | .describeCapacityBlockOfferings => fun (x : DescribeCapacityBlockOfferingsRequest) => Shape.toValue x + | .describeCapacityBlockStatus => fun (x : DescribeCapacityBlockStatusRequest) => Shape.toValue x + | .describeCapacityBlocks => fun (x : DescribeCapacityBlocksRequest) => Shape.toValue x + | .describeCapacityManagerDataExports => fun (x : DescribeCapacityManagerDataExportsRequest) => Shape.toValue x + | .describeCapacityReservationBillingRequests => fun (x : DescribeCapacityReservationBillingRequestsRequest) => Shape.toValue x + | .describeCapacityReservationCancellationQuotes => fun (x : DescribeCapacityReservationCancellationQuotesRequest) => Shape.toValue x + | .describeCapacityReservationDateChangeQuotes => fun (x : DescribeCapacityReservationDateChangeQuotesRequest) => Shape.toValue x + | .describeCapacityReservationFleets => fun (x : DescribeCapacityReservationFleetsRequest) => Shape.toValue x + | .describeCapacityReservationTopology => fun (x : DescribeCapacityReservationTopologyRequest) => Shape.toValue x + | .describeCapacityReservations => fun (x : DescribeCapacityReservationsRequest) => Shape.toValue x + | .describeCarrierGateways => fun (x : DescribeCarrierGatewaysRequest) => Shape.toValue x + | .describeClassicLinkInstances => fun (x : DescribeClassicLinkInstancesRequest) => Shape.toValue x + | .describeClientVpnAuthorizationRules => fun (x : DescribeClientVpnAuthorizationRulesRequest) => Shape.toValue x + | .describeClientVpnConnections => fun (x : DescribeClientVpnConnectionsRequest) => Shape.toValue x + | .describeClientVpnEndpoints => fun (x : DescribeClientVpnEndpointsRequest) => Shape.toValue x + | .describeClientVpnRoutes => fun (x : DescribeClientVpnRoutesRequest) => Shape.toValue x + | .describeClientVpnTargetNetworks => fun (x : DescribeClientVpnTargetNetworksRequest) => Shape.toValue x + | .describeCoipPools => fun (x : DescribeCoipPoolsRequest) => Shape.toValue x + | .describeConversionTasks => fun (x : DescribeConversionTasksRequest) => Shape.toValue x + | .describeCustomerGateways => fun (x : DescribeCustomerGatewaysRequest) => Shape.toValue x + | .describeDeclarativePoliciesReports => fun (x : DescribeDeclarativePoliciesReportsRequest) => Shape.toValue x + | .describeDhcpOptions => fun (x : DescribeDhcpOptionsRequest) => Shape.toValue x + | .describeEgressOnlyInternetGateways => fun (x : DescribeEgressOnlyInternetGatewaysRequest) => Shape.toValue x + | .describeElasticGpus => fun (x : DescribeElasticGpusRequest) => Shape.toValue x + | .describeExportImageTasks => fun (x : DescribeExportImageTasksRequest) => Shape.toValue x + | .describeExportTasks => fun (x : DescribeExportTasksRequest) => Shape.toValue x + | .describeFastLaunchImages => fun (x : DescribeFastLaunchImagesRequest) => Shape.toValue x + | .describeFastSnapshotRestores => fun (x : DescribeFastSnapshotRestoresRequest) => Shape.toValue x + | .describeFleetHistory => fun (x : DescribeFleetHistoryRequest) => Shape.toValue x + | .describeFleetInstances => fun (x : DescribeFleetInstancesRequest) => Shape.toValue x + | .describeFleets => fun (x : DescribeFleetsRequest) => Shape.toValue x + | .describeFlowLogs => fun (x : DescribeFlowLogsRequest) => Shape.toValue x + | .describeFpgaImageAttribute => fun (x : DescribeFpgaImageAttributeRequest) => Shape.toValue x + | .describeFpgaImages => fun (x : DescribeFpgaImagesRequest) => Shape.toValue x + | .describeHostReservationOfferings => fun (x : DescribeHostReservationOfferingsRequest) => Shape.toValue x + | .describeHostReservations => fun (x : DescribeHostReservationsRequest) => Shape.toValue x + | .describeHosts => fun (x : DescribeHostsRequest) => Shape.toValue x + | .describeIamInstanceProfileAssociations => fun (x : DescribeIamInstanceProfileAssociationsRequest) => Shape.toValue x + | .describeIdFormat => fun (x : DescribeIdFormatRequest) => Shape.toValue x + | .describeIdentityIdFormat => fun (x : DescribeIdentityIdFormatRequest) => Shape.toValue x + | .describeImageAttribute => fun (x : DescribeImageAttributeRequest) => Shape.toValue x + | .describeImageReferences => fun (x : DescribeImageReferencesRequest) => Shape.toValue x + | .describeImageUsageReportEntries => fun (x : DescribeImageUsageReportEntriesRequest) => Shape.toValue x + | .describeImageUsageReports => fun (x : DescribeImageUsageReportsRequest) => Shape.toValue x + | .describeImages => fun (x : DescribeImagesRequest) => Shape.toValue x + | .describeImportImageTasks => fun (x : DescribeImportImageTasksRequest) => Shape.toValue x + | .describeImportSnapshotTasks => fun (x : DescribeImportSnapshotTasksRequest) => Shape.toValue x + | .describeInstanceAttribute => fun (x : DescribeInstanceAttributeRequest) => Shape.toValue x + | .describeInstanceConnectEndpoints => fun (x : DescribeInstanceConnectEndpointsRequest) => Shape.toValue x + | .describeInstanceCreditSpecifications => fun (x : DescribeInstanceCreditSpecificationsRequest) => Shape.toValue x + | .describeInstanceEventNotificationAttributes => fun (x : DescribeInstanceEventNotificationAttributesRequest) => Shape.toValue x + | .describeInstanceEventWindows => fun (x : DescribeInstanceEventWindowsRequest) => Shape.toValue x + | .describeInstanceImageMetadata => fun (x : DescribeInstanceImageMetadataRequest) => Shape.toValue x + | .describeInstanceSqlHaHistoryStates => fun (x : DescribeInstanceSqlHaHistoryStatesRequest) => Shape.toValue x + | .describeInstanceSqlHaStates => fun (x : DescribeInstanceSqlHaStatesRequest) => Shape.toValue x + | .describeInstanceStatus => fun (x : DescribeInstanceStatusRequest) => Shape.toValue x + | .describeInstanceTopology => fun (x : DescribeInstanceTopologyRequest) => Shape.toValue x + | .describeInstanceTypeOfferings => fun (x : DescribeInstanceTypeOfferingsRequest) => Shape.toValue x + | .describeInstanceTypes => fun (x : DescribeInstanceTypesRequest) => Shape.toValue x + | .describeInstances => fun (x : DescribeInstancesRequest) => Shape.toValue x + | .describeInternetGateways => fun (x : DescribeInternetGatewaysRequest) => Shape.toValue x + | .describeIpamByoasn => fun (x : DescribeIpamByoasnRequest) => Shape.toValue x + | .describeIpamExternalResourceVerificationTokens => fun (x : DescribeIpamExternalResourceVerificationTokensRequest) => Shape.toValue x + | .describeIpamInternetRegistryAssociations => fun (x : DescribeIpamInternetRegistryAssociationsRequest) => Shape.toValue x + | .describeIpamPolicies => fun (x : DescribeIpamPoliciesRequest) => Shape.toValue x + | .describeIpamPoolAllocations => fun (x : DescribeIpamPoolAllocationsRequest) => Shape.toValue x + | .describeIpamPools => fun (x : DescribeIpamPoolsRequest) => Shape.toValue x + | .describeIpamPrefixListResolverTargets => fun (x : DescribeIpamPrefixListResolverTargetsRequest) => Shape.toValue x + | .describeIpamPrefixListResolvers => fun (x : DescribeIpamPrefixListResolversRequest) => Shape.toValue x + | .describeIpamResourceDiscoveries => fun (x : DescribeIpamResourceDiscoveriesRequest) => Shape.toValue x + | .describeIpamResourceDiscoveryAssociations => fun (x : DescribeIpamResourceDiscoveryAssociationsRequest) => Shape.toValue x + | .describeIpamScopes => fun (x : DescribeIpamScopesRequest) => Shape.toValue x + | .describeIpams => fun (x : DescribeIpamsRequest) => Shape.toValue x + | .describeIpv6Pools => fun (x : DescribeIpv6PoolsRequest) => Shape.toValue x + | .describeKeyPairs => fun (x : DescribeKeyPairsRequest) => Shape.toValue x + | .describeLaunchTemplateVersions => fun (x : DescribeLaunchTemplateVersionsRequest) => Shape.toValue x + | .describeLaunchTemplates => fun (x : DescribeLaunchTemplatesRequest) => Shape.toValue x + | .describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations => fun (x : DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest) => Shape.toValue x + | .describeLocalGatewayRouteTableVpcAssociations => fun (x : DescribeLocalGatewayRouteTableVpcAssociationsRequest) => Shape.toValue x + | .describeLocalGatewayRouteTables => fun (x : DescribeLocalGatewayRouteTablesRequest) => Shape.toValue x + | .describeLocalGatewayVirtualInterfaceGroups => fun (x : DescribeLocalGatewayVirtualInterfaceGroupsRequest) => Shape.toValue x + | .describeLocalGatewayVirtualInterfaces => fun (x : DescribeLocalGatewayVirtualInterfacesRequest) => Shape.toValue x + | .describeLocalGateways => fun (x : DescribeLocalGatewaysRequest) => Shape.toValue x + | .describeLockedSnapshots => fun (x : DescribeLockedSnapshotsRequest) => Shape.toValue x + | .describeMacHosts => fun (x : DescribeMacHostsRequest) => Shape.toValue x + | .describeMacModificationTasks => fun (x : DescribeMacModificationTasksRequest) => Shape.toValue x + | .describeManagedPrefixLists => fun (x : DescribeManagedPrefixListsRequest) => Shape.toValue x + | .describeMetricCategories => fun (x : DescribeMetricCategoriesRequest) => Shape.toValue x + | .describeMovingAddresses => fun (x : DescribeMovingAddressesRequest) => Shape.toValue x + | .describeNatGateways => fun (x : DescribeNatGatewaysRequest) => Shape.toValue x + | .describeNetworkAcls => fun (x : DescribeNetworkAclsRequest) => Shape.toValue x + | .describeNetworkInsightsAccessScopeAnalyses => fun (x : DescribeNetworkInsightsAccessScopeAnalysesRequest) => Shape.toValue x + | .describeNetworkInsightsAccessScopes => fun (x : DescribeNetworkInsightsAccessScopesRequest) => Shape.toValue x + | .describeNetworkInsightsAnalyses => fun (x : DescribeNetworkInsightsAnalysesRequest) => Shape.toValue x + | .describeNetworkInsightsPaths => fun (x : DescribeNetworkInsightsPathsRequest) => Shape.toValue x + | .describeNetworkInterfaceAttribute => fun (x : DescribeNetworkInterfaceAttributeRequest) => Shape.toValue x + | .describeNetworkInterfacePermissions => fun (x : DescribeNetworkInterfacePermissionsRequest) => Shape.toValue x + | .describeNetworkInterfaces => fun (x : DescribeNetworkInterfacesRequest) => Shape.toValue x + | .describeNetworkingFlexCostAllocationPolicies => fun (x : DescribeNetworkingFlexCostAllocationPoliciesRequest) => Shape.toValue x + | .describeNetworkingFlexCostAllocationPolicyAssociations => fun (x : DescribeNetworkingFlexCostAllocationPolicyAssociationsRequest) => Shape.toValue x + | .describeOutpostLags => fun (x : DescribeOutpostLagsRequest) => Shape.toValue x + | .describePlacementGroups => fun (x : DescribePlacementGroupsRequest) => Shape.toValue x + | .describePrefixLists => fun (x : DescribePrefixListsRequest) => Shape.toValue x + | .describePrincipalIdFormat => fun (x : DescribePrincipalIdFormatRequest) => Shape.toValue x + | .describePublicIpv4Pools => fun (x : DescribePublicIpv4PoolsRequest) => Shape.toValue x + | .describeRegions => fun (x : DescribeRegionsRequest) => Shape.toValue x + | .describeReplaceRootVolumeTasks => fun (x : DescribeReplaceRootVolumeTasksRequest) => Shape.toValue x + | .describeReservedInstances => fun (x : DescribeReservedInstancesRequest) => Shape.toValue x + | .describeReservedInstancesListings => fun (x : DescribeReservedInstancesListingsRequest) => Shape.toValue x + | .describeReservedInstancesModifications => fun (x : DescribeReservedInstancesModificationsRequest) => Shape.toValue x + | .describeReservedInstancesOfferings => fun (x : DescribeReservedInstancesOfferingsRequest) => Shape.toValue x + | .describeRouteServerEndpoints => fun (x : DescribeRouteServerEndpointsRequest) => Shape.toValue x + | .describeRouteServerPeers => fun (x : DescribeRouteServerPeersRequest) => Shape.toValue x + | .describeRouteServers => fun (x : DescribeRouteServersRequest) => Shape.toValue x + | .describeRouteTables => fun (x : DescribeRouteTablesRequest) => Shape.toValue x + | .describeScheduledInstanceAvailability => fun (x : DescribeScheduledInstanceAvailabilityRequest) => Shape.toValue x + | .describeScheduledInstances => fun (x : DescribeScheduledInstancesRequest) => Shape.toValue x + | .describeSecondaryInterfaces => fun (x : DescribeSecondaryInterfacesRequest) => Shape.toValue x + | .describeSecondaryNetworks => fun (x : DescribeSecondaryNetworksRequest) => Shape.toValue x + | .describeSecondarySubnets => fun (x : DescribeSecondarySubnetsRequest) => Shape.toValue x + | .describeSecurityGroupReferences => fun (x : DescribeSecurityGroupReferencesRequest) => Shape.toValue x + | .describeSecurityGroupRules => fun (x : DescribeSecurityGroupRulesRequest) => Shape.toValue x + | .describeSecurityGroupVpcAssociations => fun (x : DescribeSecurityGroupVpcAssociationsRequest) => Shape.toValue x + | .describeSecurityGroups => fun (x : DescribeSecurityGroupsRequest) => Shape.toValue x + | .describeServiceLinkVirtualInterfaces => fun (x : DescribeServiceLinkVirtualInterfacesRequest) => Shape.toValue x + | .describeSnapshotAttribute => fun (x : DescribeSnapshotAttributeRequest) => Shape.toValue x + | .describeSnapshotTierStatus => fun (x : DescribeSnapshotTierStatusRequest) => Shape.toValue x + | .describeSnapshots => fun (x : DescribeSnapshotsRequest) => Shape.toValue x + | .describeSpotDatafeedSubscription => fun (x : DescribeSpotDatafeedSubscriptionRequest) => Shape.toValue x + | .describeSpotFleetInstances => fun (x : DescribeSpotFleetInstancesRequest) => Shape.toValue x + | .describeSpotFleetRequestHistory => fun (x : DescribeSpotFleetRequestHistoryRequest) => Shape.toValue x + | .describeSpotFleetRequests => fun (x : DescribeSpotFleetRequestsRequest) => Shape.toValue x + | .describeSpotInstanceRequests => fun (x : DescribeSpotInstanceRequestsRequest) => Shape.toValue x + | .describeSpotPriceHistory => fun (x : DescribeSpotPriceHistoryRequest) => Shape.toValue x + | .describeStaleSecurityGroups => fun (x : DescribeStaleSecurityGroupsRequest) => Shape.toValue x + | .describeStoreImageTasks => fun (x : DescribeStoreImageTasksRequest) => Shape.toValue x + | .describeSubnets => fun (x : DescribeSubnetsRequest) => Shape.toValue x + | .describeTags => fun (x : DescribeTagsRequest) => Shape.toValue x + | .describeTrafficMirrorFilterRules => fun (x : DescribeTrafficMirrorFilterRulesRequest) => Shape.toValue x + | .describeTrafficMirrorFilters => fun (x : DescribeTrafficMirrorFiltersRequest) => Shape.toValue x + | .describeTrafficMirrorSessions => fun (x : DescribeTrafficMirrorSessionsRequest) => Shape.toValue x + | .describeTrafficMirrorTargets => fun (x : DescribeTrafficMirrorTargetsRequest) => Shape.toValue x + | .describeTransitGatewayAttachments => fun (x : DescribeTransitGatewayAttachmentsRequest) => Shape.toValue x + | .describeTransitGatewayConnectPeers => fun (x : DescribeTransitGatewayConnectPeersRequest) => Shape.toValue x + | .describeTransitGatewayConnects => fun (x : DescribeTransitGatewayConnectsRequest) => Shape.toValue x + | .describeTransitGatewayMeteringPolicies => fun (x : DescribeTransitGatewayMeteringPoliciesRequest) => Shape.toValue x + | .describeTransitGatewayMulticastDomains => fun (x : DescribeTransitGatewayMulticastDomainsRequest) => Shape.toValue x + | .describeTransitGatewayNetworkFunctionAttachments => fun (x : DescribeTransitGatewayNetworkFunctionAttachmentsRequest) => Shape.toValue x + | .describeTransitGatewayPeeringAttachments => fun (x : DescribeTransitGatewayPeeringAttachmentsRequest) => Shape.toValue x + | .describeTransitGatewayPolicyTables => fun (x : DescribeTransitGatewayPolicyTablesRequest) => Shape.toValue x + | .describeTransitGatewayRouteTableAnnouncements => fun (x : DescribeTransitGatewayRouteTableAnnouncementsRequest) => Shape.toValue x + | .describeTransitGatewayRouteTables => fun (x : DescribeTransitGatewayRouteTablesRequest) => Shape.toValue x + | .describeTransitGatewayVpcAttachments => fun (x : DescribeTransitGatewayVpcAttachmentsRequest) => Shape.toValue x + | .describeTransitGateways => fun (x : DescribeTransitGatewaysRequest) => Shape.toValue x + | .describeTrunkInterfaceAssociations => fun (x : DescribeTrunkInterfaceAssociationsRequest) => Shape.toValue x + | .describeVerifiedAccessEndpoints => fun (x : DescribeVerifiedAccessEndpointsRequest) => Shape.toValue x + | .describeVerifiedAccessGroups => fun (x : DescribeVerifiedAccessGroupsRequest) => Shape.toValue x + | .describeVerifiedAccessInstanceLoggingConfigurations => fun (x : DescribeVerifiedAccessInstanceLoggingConfigurationsRequest) => Shape.toValue x + | .describeVerifiedAccessInstances => fun (x : DescribeVerifiedAccessInstancesRequest) => Shape.toValue x + | .describeVerifiedAccessTrustProviders => fun (x : DescribeVerifiedAccessTrustProvidersRequest) => Shape.toValue x + | .describeVolumeAttribute => fun (x : DescribeVolumeAttributeRequest) => Shape.toValue x + | .describeVolumeStatus => fun (x : DescribeVolumeStatusRequest) => Shape.toValue x + | .describeVolumes => fun (x : DescribeVolumesRequest) => Shape.toValue x + | .describeVolumesModifications => fun (x : DescribeVolumesModificationsRequest) => Shape.toValue x + | .describeVpcAttribute => fun (x : DescribeVpcAttributeRequest) => Shape.toValue x + | .describeVpcBlockPublicAccessExclusions => fun (x : DescribeVpcBlockPublicAccessExclusionsRequest) => Shape.toValue x + | .describeVpcBlockPublicAccessOptions => fun (x : DescribeVpcBlockPublicAccessOptionsRequest) => Shape.toValue x + | .describeVpcClassicLink => fun (x : DescribeVpcClassicLinkRequest) => Shape.toValue x + | .describeVpcClassicLinkDnsSupport => fun (x : DescribeVpcClassicLinkDnsSupportRequest) => Shape.toValue x + | .describeVpcEncryptionControls => fun (x : DescribeVpcEncryptionControlsRequest) => Shape.toValue x + | .describeVpcEndpointAssociations => fun (x : DescribeVpcEndpointAssociationsRequest) => Shape.toValue x + | .describeVpcEndpointConnectionNotifications => fun (x : DescribeVpcEndpointConnectionNotificationsRequest) => Shape.toValue x + | .describeVpcEndpointConnections => fun (x : DescribeVpcEndpointConnectionsRequest) => Shape.toValue x + | .describeVpcEndpointServiceConfigurations => fun (x : DescribeVpcEndpointServiceConfigurationsRequest) => Shape.toValue x + | .describeVpcEndpointServicePermissions => fun (x : DescribeVpcEndpointServicePermissionsRequest) => Shape.toValue x + | .describeVpcEndpointServices => fun (x : DescribeVpcEndpointServicesRequest) => Shape.toValue x + | .describeVpcEndpoints => fun (x : DescribeVpcEndpointsRequest) => Shape.toValue x + | .describeVpcPeeringConnections => fun (x : DescribeVpcPeeringConnectionsRequest) => Shape.toValue x + | .describeVpcs => fun (x : DescribeVpcsRequest) => Shape.toValue x + | .describeVpnConcentrators => fun (x : DescribeVpnConcentratorsRequest) => Shape.toValue x + | .describeVpnConnections => fun (x : DescribeVpnConnectionsRequest) => Shape.toValue x + | .describeVpnGateways => fun (x : DescribeVpnGatewaysRequest) => Shape.toValue x + | .detachClassicLinkVpc => fun (x : DetachClassicLinkVpcRequest) => Shape.toValue x + | .detachImageWatermark => fun (x : DetachImageWatermarkRequest) => Shape.toValue x + | .detachInternetGateway => fun (x : DetachInternetGatewayRequest) => Shape.toValue x + | .detachNetworkInterface => fun (x : DetachNetworkInterfaceRequest) => Shape.toValue x + | .detachVerifiedAccessTrustProvider => fun (x : DetachVerifiedAccessTrustProviderRequest) => Shape.toValue x + | .detachVolume => fun (x : DetachVolumeRequest) => Shape.toValue x + | .detachVpnGateway => fun (x : DetachVpnGatewayRequest) => Shape.toValue x + | .disableAddressTransfer => fun (x : DisableAddressTransferRequest) => Shape.toValue x + | .disableAllowedImagesSettings => fun (x : DisableAllowedImagesSettingsRequest) => Shape.toValue x + | .disableApplicationStatusCheckSuppression => fun (x : DisableApplicationStatusCheckSuppressionRequest) => Shape.toValue x + | .disableAwsNetworkPerformanceMetricSubscription => fun (x : DisableAwsNetworkPerformanceMetricSubscriptionRequest) => Shape.toValue x + | .disableCapacityManager => fun (x : DisableCapacityManagerRequest) => Shape.toValue x + | .disableEbsEncryptionByDefault => fun (x : DisableEbsEncryptionByDefaultRequest) => Shape.toValue x + | .disableFastLaunch => fun (x : DisableFastLaunchRequest) => Shape.toValue x + | .disableFastSnapshotRestores => fun (x : DisableFastSnapshotRestoresRequest) => Shape.toValue x + | .disableImage => fun (x : DisableImageRequest) => Shape.toValue x + | .disableImageBlockPublicAccess => fun (x : DisableImageBlockPublicAccessRequest) => Shape.toValue x + | .disableImageDeprecation => fun (x : DisableImageDeprecationRequest) => Shape.toValue x + | .disableImageDeregistrationProtection => fun (x : DisableImageDeregistrationProtectionRequest) => Shape.toValue x + | .disableInstanceSqlHaStandbyDetections => fun (x : DisableInstanceSqlHaStandbyDetectionsRequest) => Shape.toValue x + | .disableIpamOrganizationAdminAccount => fun (x : DisableIpamOrganizationAdminAccountRequest) => Shape.toValue x + | .disableIpamPolicy => fun (x : DisableIpamPolicyRequest) => Shape.toValue x + | .disableRouteServerPropagation => fun (x : DisableRouteServerPropagationRequest) => Shape.toValue x + | .disableSerialConsoleAccess => fun (x : DisableSerialConsoleAccessRequest) => Shape.toValue x + | .disableSnapshotBlockPublicAccess => fun (x : DisableSnapshotBlockPublicAccessRequest) => Shape.toValue x + | .disableTransitGatewayRouteTablePropagation => fun (x : DisableTransitGatewayRouteTablePropagationRequest) => Shape.toValue x + | .disableVgwRoutePropagation => fun (x : DisableVgwRoutePropagationRequest) => Shape.toValue x + | .disableVpcClassicLink => fun (x : DisableVpcClassicLinkRequest) => Shape.toValue x + | .disableVpcClassicLinkDnsSupport => fun (x : DisableVpcClassicLinkDnsSupportRequest) => Shape.toValue x + | .disassociateAddress => fun (x : DisassociateAddressRequest) => Shape.toValue x + | .disassociateApplicationStatusCheck => fun (x : DisassociateApplicationStatusCheckRequest) => Shape.toValue x + | .disassociateCapacityReservationBillingOwner => fun (x : DisassociateCapacityReservationBillingOwnerRequest) => Shape.toValue x + | .disassociateClientVpnTargetNetwork => fun (x : DisassociateClientVpnTargetNetworkRequest) => Shape.toValue x + | .disassociateEnclaveCertificateIamRole => fun (x : DisassociateEnclaveCertificateIamRoleRequest) => Shape.toValue x + | .disassociateIamInstanceProfile => fun (x : DisassociateIamInstanceProfileRequest) => Shape.toValue x + | .disassociateInstanceEventWindow => fun (x : DisassociateInstanceEventWindowRequest) => Shape.toValue x + | .disassociateIpamByoasn => fun (x : DisassociateIpamByoasnRequest) => Shape.toValue x + | .disassociateIpamResourceDiscovery => fun (x : DisassociateIpamResourceDiscoveryRequest) => Shape.toValue x + | .disassociateKmsKeyId => fun (x : DisassociateKmsKeyIdRequest) => Shape.toValue x + | .disassociateNatGatewayAddress => fun (x : DisassociateNatGatewayAddressRequest) => Shape.toValue x + | .disassociateNetworkingFlexCostAllocationPolicy => fun (x : DisassociateNetworkingFlexCostAllocationPolicyRequest) => Shape.toValue x + | .disassociateRouteServer => fun (x : DisassociateRouteServerRequest) => Shape.toValue x + | .disassociateRouteTable => fun (x : DisassociateRouteTableRequest) => Shape.toValue x + | .disassociateSecurityGroupVpc => fun (x : DisassociateSecurityGroupVpcRequest) => Shape.toValue x + | .disassociateSubnetCidrBlock => fun (x : DisassociateSubnetCidrBlockRequest) => Shape.toValue x + | .disassociateTransitGatewayMulticastDomain => fun (x : DisassociateTransitGatewayMulticastDomainRequest) => Shape.toValue x + | .disassociateTransitGatewayPolicyTable => fun (x : DisassociateTransitGatewayPolicyTableRequest) => Shape.toValue x + | .disassociateTransitGatewayRouteTable => fun (x : DisassociateTransitGatewayRouteTableRequest) => Shape.toValue x + | .disassociateTrunkInterface => fun (x : DisassociateTrunkInterfaceRequest) => Shape.toValue x + | .disassociateVpcCidrBlock => fun (x : DisassociateVpcCidrBlockRequest) => Shape.toValue x + | .enableAddressTransfer => fun (x : EnableAddressTransferRequest) => Shape.toValue x + | .enableAllowedImagesSettings => fun (x : EnableAllowedImagesSettingsRequest) => Shape.toValue x + | .enableApplicationStatusCheckSuppression => fun (x : EnableApplicationStatusCheckSuppressionRequest) => Shape.toValue x + | .enableAwsNetworkPerformanceMetricSubscription => fun (x : EnableAwsNetworkPerformanceMetricSubscriptionRequest) => Shape.toValue x + | .enableCapacityManager => fun (x : EnableCapacityManagerRequest) => Shape.toValue x + | .enableEbsEncryptionByDefault => fun (x : EnableEbsEncryptionByDefaultRequest) => Shape.toValue x + | .enableFastLaunch => fun (x : EnableFastLaunchRequest) => Shape.toValue x + | .enableFastSnapshotRestores => fun (x : EnableFastSnapshotRestoresRequest) => Shape.toValue x + | .enableImage => fun (x : EnableImageRequest) => Shape.toValue x + | .enableImageBlockPublicAccess => fun (x : EnableImageBlockPublicAccessRequest) => Shape.toValue x + | .enableImageDeprecation => fun (x : EnableImageDeprecationRequest) => Shape.toValue x + | .enableImageDeregistrationProtection => fun (x : EnableImageDeregistrationProtectionRequest) => Shape.toValue x + | .enableInstanceSqlHaStandbyDetections => fun (x : EnableInstanceSqlHaStandbyDetectionsRequest) => Shape.toValue x + | .enableIpamInternetRegistryAssociation => fun (x : EnableIpamInternetRegistryAssociationRequest) => Shape.toValue x + | .enableIpamOrganizationAdminAccount => fun (x : EnableIpamOrganizationAdminAccountRequest) => Shape.toValue x + | .enableIpamPolicy => fun (x : EnableIpamPolicyRequest) => Shape.toValue x + | .enableReachabilityAnalyzerOrganizationSharing => fun (x : EnableReachabilityAnalyzerOrganizationSharingRequest) => Shape.toValue x + | .enableRouteServerPropagation => fun (x : EnableRouteServerPropagationRequest) => Shape.toValue x + | .enableSerialConsoleAccess => fun (x : EnableSerialConsoleAccessRequest) => Shape.toValue x + | .enableSnapshotBlockPublicAccess => fun (x : EnableSnapshotBlockPublicAccessRequest) => Shape.toValue x + | .enableTransitGatewayRouteTablePropagation => fun (x : EnableTransitGatewayRouteTablePropagationRequest) => Shape.toValue x + | .enableVgwRoutePropagation => fun (x : EnableVgwRoutePropagationRequest) => Shape.toValue x + | .enableVolumeIO => fun (x : EnableVolumeIORequest) => Shape.toValue x + | .enableVpcClassicLink => fun (x : EnableVpcClassicLinkRequest) => Shape.toValue x + | .enableVpcClassicLinkDnsSupport => fun (x : EnableVpcClassicLinkDnsSupportRequest) => Shape.toValue x + | .exportClientVpnClientCertificateRevocationList => fun (x : ExportClientVpnClientCertificateRevocationListRequest) => Shape.toValue x + | .exportClientVpnClientConfiguration => fun (x : ExportClientVpnClientConfigurationRequest) => Shape.toValue x + | .exportImage => fun (x : ExportImageRequest) => Shape.toValue x + | .exportTransitGatewayRoutes => fun (x : ExportTransitGatewayRoutesRequest) => Shape.toValue x + | .exportVerifiedAccessInstanceClientConfiguration => fun (x : ExportVerifiedAccessInstanceClientConfigurationRequest) => Shape.toValue x + | .getActiveVpnTunnelStatus => fun (x : GetActiveVpnTunnelStatusRequest) => Shape.toValue x + | .getAllowedImagesSettings => fun (x : GetAllowedImagesSettingsRequest) => Shape.toValue x + | .getAssociatedEnclaveCertificateIamRoles => fun (x : GetAssociatedEnclaveCertificateIamRolesRequest) => Shape.toValue x + | .getAssociatedIpv6PoolCidrs => fun (x : GetAssociatedIpv6PoolCidrsRequest) => Shape.toValue x + | .getAwsNetworkPerformanceData => fun (x : GetAwsNetworkPerformanceDataRequest) => Shape.toValue x + | .getCapacityManagerAttributes => fun (x : GetCapacityManagerAttributesRequest) => Shape.toValue x + | .getCapacityManagerMetricData => fun (x : GetCapacityManagerMetricDataRequest) => Shape.toValue x + | .getCapacityManagerMetricDimensions => fun (x : GetCapacityManagerMetricDimensionsRequest) => Shape.toValue x + | .getCapacityManagerMonitoredTagKeys => fun (x : GetCapacityManagerMonitoredTagKeysRequest) => Shape.toValue x + | .getCapacityManagerSupportabilityScores => fun (x : GetCapacityManagerSupportabilityScoresRequest) => Shape.toValue x + | .getCapacityReservationUsage => fun (x : GetCapacityReservationUsageRequest) => Shape.toValue x + | .getClientVpnEndpointAuthorizationPolicy => fun (x : GetClientVpnEndpointAuthorizationPolicyRequest) => Shape.toValue x + | .getCoipPoolUsage => fun (x : GetCoipPoolUsageRequest) => Shape.toValue x + | .getConsoleOutput => fun (x : GetConsoleOutputRequest) => Shape.toValue x + | .getConsoleScreenshot => fun (x : GetConsoleScreenshotRequest) => Shape.toValue x + | .getDeclarativePoliciesReportSummary => fun (x : GetDeclarativePoliciesReportSummaryRequest) => Shape.toValue x + | .getDefaultCreditSpecification => fun (x : GetDefaultCreditSpecificationRequest) => Shape.toValue x + | .getEbsDefaultKmsKeyId => fun (x : GetEbsDefaultKmsKeyIdRequest) => Shape.toValue x + | .getEbsEncryptionByDefault => fun (x : GetEbsEncryptionByDefaultRequest) => Shape.toValue x + | .getEnabledIpamPolicy => fun (x : GetEnabledIpamPolicyRequest) => Shape.toValue x + | .getFlowLogsIntegrationTemplate => fun (x : GetFlowLogsIntegrationTemplateRequest) => Shape.toValue x + | .getGroupsForCapacityReservation => fun (x : GetGroupsForCapacityReservationRequest) => Shape.toValue x + | .getHostReservationPurchasePreview => fun (x : GetHostReservationPurchasePreviewRequest) => Shape.toValue x + | .getImageAncestry => fun (x : GetImageAncestryRequest) => Shape.toValue x + | .getImageBlockPublicAccessState => fun (x : GetImageBlockPublicAccessStateRequest) => Shape.toValue x + | .getImageFindings => fun (x : GetImageFindingsRequest) => Shape.toValue x + | .getInstanceMetadataDefaults => fun (x : GetInstanceMetadataDefaultsRequest) => Shape.toValue x + | .getInstanceTpmEkPub => fun (x : GetInstanceTpmEkPubRequest) => Shape.toValue x + | .getInstanceTypesFromInstanceRequirements => fun (x : GetInstanceTypesFromInstanceRequirementsRequest) => Shape.toValue x + | .getInstanceUefiData => fun (x : GetInstanceUefiDataRequest) => Shape.toValue x + | .getIpamAddressHistory => fun (x : GetIpamAddressHistoryRequest) => Shape.toValue x + | .getIpamDiscoveredAccounts => fun (x : GetIpamDiscoveredAccountsRequest) => Shape.toValue x + | .getIpamDiscoveredPublicAddresses => fun (x : GetIpamDiscoveredPublicAddressesRequest) => Shape.toValue x + | .getIpamDiscoveredResourceCidrs => fun (x : GetIpamDiscoveredResourceCidrsRequest) => Shape.toValue x + | .getIpamDiscoveredRoutes => fun (x : GetIpamDiscoveredRoutesRequest) => Shape.toValue x + | .getIpamInternetRegistryAssociationAsns => fun (x : GetIpamInternetRegistryAssociationAsnsRequest) => Shape.toValue x + | .getIpamInternetRegistryAssociationCidrs => fun (x : GetIpamInternetRegistryAssociationCidrsRequest) => Shape.toValue x + | .getIpamPolicyAllocationRules => fun (x : GetIpamPolicyAllocationRulesRequest) => Shape.toValue x + | .getIpamPolicyOrganizationTargets => fun (x : GetIpamPolicyOrganizationTargetsRequest) => Shape.toValue x + | .getIpamPoolAllocations => fun (x : GetIpamPoolAllocationsRequest) => Shape.toValue x + | .getIpamPoolCidrs => fun (x : GetIpamPoolCidrsRequest) => Shape.toValue x + | .getIpamPrefixListResolverRules => fun (x : GetIpamPrefixListResolverRulesRequest) => Shape.toValue x + | .getIpamPrefixListResolverVersionEntries => fun (x : GetIpamPrefixListResolverVersionEntriesRequest) => Shape.toValue x + | .getIpamPrefixListResolverVersions => fun (x : GetIpamPrefixListResolverVersionsRequest) => Shape.toValue x + | .getIpamResourceCidrs => fun (x : GetIpamResourceCidrsRequest) => Shape.toValue x + | .getIpamRouteOriginAuthorizations => fun (x : GetIpamRouteOriginAuthorizationsRequest) => Shape.toValue x + | .getIpamRouteProtectionFindings => fun (x : GetIpamRouteProtectionFindingsRequest) => Shape.toValue x + | .getIpamRoutingPolicyRegistrationDeltas => fun (x : GetIpamRoutingPolicyRegistrationDeltasRequest) => Shape.toValue x + | .getIpamRoutingPolicyRegistrations => fun (x : GetIpamRoutingPolicyRegistrationsRequest) => Shape.toValue x + | .getLaunchTemplateData => fun (x : GetLaunchTemplateDataRequest) => Shape.toValue x + | .getManagedPrefixListAssociations => fun (x : GetManagedPrefixListAssociationsRequest) => Shape.toValue x + | .getManagedPrefixListEntries => fun (x : GetManagedPrefixListEntriesRequest) => Shape.toValue x + | .getManagedResourceVisibility => fun (x : GetManagedResourceVisibilityRequest) => Shape.toValue x + | .getNetworkInsightsAccessScopeAnalysisFindings => fun (x : GetNetworkInsightsAccessScopeAnalysisFindingsRequest) => Shape.toValue x + | .getNetworkInsightsAccessScopeContent => fun (x : GetNetworkInsightsAccessScopeContentRequest) => Shape.toValue x + | .getNetworkingFlexCostAllocationPolicyVersions => fun (x : GetNetworkingFlexCostAllocationPolicyVersionsRequest) => Shape.toValue x + | .getPasswordData => fun (x : GetPasswordDataRequest) => Shape.toValue x + | .getReservedInstancesExchangeQuote => fun (x : GetReservedInstancesExchangeQuoteRequest) => Shape.toValue x + | .getRouteServerAssociations => fun (x : GetRouteServerAssociationsRequest) => Shape.toValue x + | .getRouteServerPropagations => fun (x : GetRouteServerPropagationsRequest) => Shape.toValue x + | .getRouteServerRoutingDatabase => fun (x : GetRouteServerRoutingDatabaseRequest) => Shape.toValue x + | .getSecurityGroupsForVpc => fun (x : GetSecurityGroupsForVpcRequest) => Shape.toValue x + | .getSerialConsoleAccessStatus => fun (x : GetSerialConsoleAccessStatusRequest) => Shape.toValue x + | .getSnapshotBlockPublicAccessState => fun (x : GetSnapshotBlockPublicAccessStateRequest) => Shape.toValue x + | .getSpotPlacementScores => fun (x : GetSpotPlacementScoresRequest) => Shape.toValue x + | .getSubnetCidrReservations => fun (x : GetSubnetCidrReservationsRequest) => Shape.toValue x + | .getTransitGatewayAttachmentNatConfiguration => fun (x : GetTransitGatewayAttachmentNatConfigurationRequest) => Shape.toValue x + | .getTransitGatewayAttachmentPropagations => fun (x : GetTransitGatewayAttachmentPropagationsRequest) => Shape.toValue x + | .getTransitGatewayMeteringPolicyEntries => fun (x : GetTransitGatewayMeteringPolicyEntriesRequest) => Shape.toValue x + | .getTransitGatewayMulticastDomainAssociations => fun (x : GetTransitGatewayMulticastDomainAssociationsRequest) => Shape.toValue x + | .getTransitGatewayPolicyTableAssociations => fun (x : GetTransitGatewayPolicyTableAssociationsRequest) => Shape.toValue x + | .getTransitGatewayPolicyTableEntries => fun (x : GetTransitGatewayPolicyTableEntriesRequest) => Shape.toValue x + | .getTransitGatewayPrefixListReferences => fun (x : GetTransitGatewayPrefixListReferencesRequest) => Shape.toValue x + | .getTransitGatewayRouteTableAssociations => fun (x : GetTransitGatewayRouteTableAssociationsRequest) => Shape.toValue x + | .getTransitGatewayRouteTablePropagations => fun (x : GetTransitGatewayRouteTablePropagationsRequest) => Shape.toValue x + | .getVerifiedAccessEndpointPolicy => fun (x : GetVerifiedAccessEndpointPolicyRequest) => Shape.toValue x + | .getVerifiedAccessEndpointTargets => fun (x : GetVerifiedAccessEndpointTargetsRequest) => Shape.toValue x + | .getVerifiedAccessGroupPolicy => fun (x : GetVerifiedAccessGroupPolicyRequest) => Shape.toValue x + | .getVpcResourcesBlockingEncryptionEnforcement => fun (x : GetVpcResourcesBlockingEncryptionEnforcementRequest) => Shape.toValue x + | .getVpnConnectionDeviceSampleConfiguration => fun (x : GetVpnConnectionDeviceSampleConfigurationRequest) => Shape.toValue x + | .getVpnConnectionDeviceTypes => fun (x : GetVpnConnectionDeviceTypesRequest) => Shape.toValue x + | .getVpnTunnelReplacementStatus => fun (x : GetVpnTunnelReplacementStatusRequest) => Shape.toValue x + | .importClientVpnClientCertificateRevocationList => fun (x : ImportClientVpnClientCertificateRevocationListRequest) => Shape.toValue x + | .importImage => fun (x : ImportImageRequest) => Shape.toValue x + | .importInstance => fun (x : ImportInstanceRequest) => Shape.toValue x + | .importKeyPair => fun (x : ImportKeyPairRequest) => Shape.toValue x + | .importSnapshot => fun (x : ImportSnapshotRequest) => Shape.toValue x + | .importVolume => fun (x : ImportVolumeRequest) => Shape.toValue x + | .listImagesInRecycleBin => fun (x : ListImagesInRecycleBinRequest) => Shape.toValue x + | .listSnapshotsInRecycleBin => fun (x : ListSnapshotsInRecycleBinRequest) => Shape.toValue x + | .listVolumesInRecycleBin => fun (x : ListVolumesInRecycleBinRequest) => Shape.toValue x + | .lockSnapshot => fun (x : LockSnapshotRequest) => Shape.toValue x + | .modifyAccountVpcEncryptionControl => fun (x : ModifyAccountVpcEncryptionControlRequest) => Shape.toValue x + | .modifyAddressAttribute => fun (x : ModifyAddressAttributeRequest) => Shape.toValue x + | .modifyApplicationStatusCheck => fun (x : ModifyApplicationStatusCheckRequest) => Shape.toValue x + | .modifyAvailabilityZoneGroup => fun (x : ModifyAvailabilityZoneGroupRequest) => Shape.toValue x + | .modifyCapacityReservation => fun (x : ModifyCapacityReservationRequest) => Shape.toValue x + | .modifyCapacityReservationFleet => fun (x : ModifyCapacityReservationFleetRequest) => Shape.toValue x + | .modifyClientVpnEndpoint => fun (x : ModifyClientVpnEndpointRequest) => Shape.toValue x + | .modifyClientVpnEndpointAuthorizationPolicy => fun (x : ModifyClientVpnEndpointAuthorizationPolicyRequest) => Shape.toValue x + | .modifyDefaultCreditSpecification => fun (x : ModifyDefaultCreditSpecificationRequest) => Shape.toValue x + | .modifyEbsDefaultKmsKeyId => fun (x : ModifyEbsDefaultKmsKeyIdRequest) => Shape.toValue x + | .modifyFleet => fun (x : ModifyFleetRequest) => Shape.toValue x + | .modifyFpgaImageAttribute => fun (x : ModifyFpgaImageAttributeRequest) => Shape.toValue x + | .modifyHosts => fun (x : ModifyHostsRequest) => Shape.toValue x + | .modifyIdFormat => fun (x : ModifyIdFormatRequest) => Shape.toValue x + | .modifyIdentityIdFormat => fun (x : ModifyIdentityIdFormatRequest) => Shape.toValue x + | .modifyImageAttribute => fun (x : ModifyImageAttributeRequest) => Shape.toValue x + | .modifyInstanceAttribute => fun (x : ModifyInstanceAttributeRequest) => Shape.toValue x + | .modifyInstanceCapacityReservationAttributes => fun (x : ModifyInstanceCapacityReservationAttributesRequest) => Shape.toValue x + | .modifyInstanceConnectEndpoint => fun (x : ModifyInstanceConnectEndpointRequest) => Shape.toValue x + | .modifyInstanceCpuOptions => fun (x : ModifyInstanceCpuOptionsRequest) => Shape.toValue x + | .modifyInstanceCreditSpecification => fun (x : ModifyInstanceCreditSpecificationRequest) => Shape.toValue x + | .modifyInstanceEventStartTime => fun (x : ModifyInstanceEventStartTimeRequest) => Shape.toValue x + | .modifyInstanceEventWindow => fun (x : ModifyInstanceEventWindowRequest) => Shape.toValue x + | .modifyInstanceMaintenanceOptions => fun (x : ModifyInstanceMaintenanceOptionsRequest) => Shape.toValue x + | .modifyInstanceMetadataDefaults => fun (x : ModifyInstanceMetadataDefaultsRequest) => Shape.toValue x + | .modifyInstanceMetadataOptions => fun (x : ModifyInstanceMetadataOptionsRequest) => Shape.toValue x + | .modifyInstanceNetworkPerformanceOptions => fun (x : ModifyInstanceNetworkPerformanceRequest) => Shape.toValue x + | .modifyInstancePlacement => fun (x : ModifyInstancePlacementRequest) => Shape.toValue x + | .modifyIpam => fun (x : ModifyIpamRequest) => Shape.toValue x + | .modifyIpamPolicyAllocationRules => fun (x : ModifyIpamPolicyAllocationRulesRequest) => Shape.toValue x + | .modifyIpamPool => fun (x : ModifyIpamPoolRequest) => Shape.toValue x + | .modifyIpamPoolAllocation => fun (x : ModifyIpamPoolAllocationRequest) => Shape.toValue x + | .modifyIpamPrefixListResolver => fun (x : ModifyIpamPrefixListResolverRequest) => Shape.toValue x + | .modifyIpamPrefixListResolverTarget => fun (x : ModifyIpamPrefixListResolverTargetRequest) => Shape.toValue x + | .modifyIpamResourceCidr => fun (x : ModifyIpamResourceCidrRequest) => Shape.toValue x + | .modifyIpamResourceDiscovery => fun (x : ModifyIpamResourceDiscoveryRequest) => Shape.toValue x + | .modifyIpamRoutingPolicyRegistration => fun (x : ModifyIpamRoutingPolicyRegistrationRequest) => Shape.toValue x + | .modifyIpamScope => fun (x : ModifyIpamScopeRequest) => Shape.toValue x + | .modifyLaunchTemplate => fun (x : ModifyLaunchTemplateRequest) => Shape.toValue x + | .modifyLocalGatewayRoute => fun (x : ModifyLocalGatewayRouteRequest) => Shape.toValue x + | .modifyManagedPrefixList => fun (x : ModifyManagedPrefixListRequest) => Shape.toValue x + | .modifyManagedResourceVisibility => fun (x : ModifyManagedResourceVisibilityRequest) => Shape.toValue x + | .modifyMetricCategory => fun (x : ModifyMetricCategoryRequest) => Shape.toValue x + | .modifyNetworkInterfaceAttribute => fun (x : ModifyNetworkInterfaceAttributeRequest) => Shape.toValue x + | .modifyNetworkingFlexCostAllocationPolicy => fun (x : ModifyNetworkingFlexCostAllocationPolicyRequest) => Shape.toValue x + | .modifyPrivateDnsNameOptions => fun (x : ModifyPrivateDnsNameOptionsRequest) => Shape.toValue x + | .modifyPublicIpDnsNameOptions => fun (x : ModifyPublicIpDnsNameOptionsRequest) => Shape.toValue x + | .modifyReservedInstances => fun (x : ModifyReservedInstancesRequest) => Shape.toValue x + | .modifyRouteServer => fun (x : ModifyRouteServerRequest) => Shape.toValue x + | .modifySecurityGroupRules => fun (x : ModifySecurityGroupRulesRequest) => Shape.toValue x + | .modifySnapshotAttribute => fun (x : ModifySnapshotAttributeRequest) => Shape.toValue x + | .modifySnapshotTier => fun (x : ModifySnapshotTierRequest) => Shape.toValue x + | .modifySpotFleetRequest => fun (x : ModifySpotFleetRequestRequest) => Shape.toValue x + | .modifySubnetAttribute => fun (x : ModifySubnetAttributeRequest) => Shape.toValue x + | .modifyTrafficMirrorFilterNetworkServices => fun (x : ModifyTrafficMirrorFilterNetworkServicesRequest) => Shape.toValue x + | .modifyTrafficMirrorFilterRule => fun (x : ModifyTrafficMirrorFilterRuleRequest) => Shape.toValue x + | .modifyTrafficMirrorSession => fun (x : ModifyTrafficMirrorSessionRequest) => Shape.toValue x + | .modifyTransitGateway => fun (x : ModifyTransitGatewayRequest) => Shape.toValue x + | .modifyTransitGatewayAttachmentNatConfiguration => fun (x : ModifyTransitGatewayAttachmentNatConfigurationRequest) => Shape.toValue x + | .modifyTransitGatewayMeteringPolicy => fun (x : ModifyTransitGatewayMeteringPolicyRequest) => Shape.toValue x + | .modifyTransitGatewayNetworkFunctionAttachment => fun (x : ModifyTransitGatewayNetworkFunctionAttachmentRequest) => Shape.toValue x + | .modifyTransitGatewayPeeringAttachment => fun (x : ModifyTransitGatewayPeeringAttachmentRequest) => Shape.toValue x + | .modifyTransitGatewayPolicyTableEntry => fun (x : ModifyTransitGatewayPolicyTableEntryRequest) => Shape.toValue x + | .modifyTransitGatewayPrefixListReference => fun (x : ModifyTransitGatewayPrefixListReferenceRequest) => Shape.toValue x + | .modifyTransitGatewayVpcAttachment => fun (x : ModifyTransitGatewayVpcAttachmentRequest) => Shape.toValue x + | .modifyVerifiedAccessEndpoint => fun (x : ModifyVerifiedAccessEndpointRequest) => Shape.toValue x + | .modifyVerifiedAccessEndpointPolicy => fun (x : ModifyVerifiedAccessEndpointPolicyRequest) => Shape.toValue x + | .modifyVerifiedAccessGroup => fun (x : ModifyVerifiedAccessGroupRequest) => Shape.toValue x + | .modifyVerifiedAccessGroupPolicy => fun (x : ModifyVerifiedAccessGroupPolicyRequest) => Shape.toValue x + | .modifyVerifiedAccessInstance => fun (x : ModifyVerifiedAccessInstanceRequest) => Shape.toValue x + | .modifyVerifiedAccessInstanceLoggingConfiguration => fun (x : ModifyVerifiedAccessInstanceLoggingConfigurationRequest) => Shape.toValue x + | .modifyVerifiedAccessTrustProvider => fun (x : ModifyVerifiedAccessTrustProviderRequest) => Shape.toValue x + | .modifyVolume => fun (x : ModifyVolumeRequest) => Shape.toValue x + | .modifyVolumeAttribute => fun (x : ModifyVolumeAttributeRequest) => Shape.toValue x + | .modifyVpcAttribute => fun (x : ModifyVpcAttributeRequest) => Shape.toValue x + | .modifyVpcBlockPublicAccessExclusion => fun (x : ModifyVpcBlockPublicAccessExclusionRequest) => Shape.toValue x + | .modifyVpcBlockPublicAccessOptions => fun (x : ModifyVpcBlockPublicAccessOptionsRequest) => Shape.toValue x + | .modifyVpcEncryptionControl => fun (x : ModifyVpcEncryptionControlRequest) => Shape.toValue x + | .modifyVpcEndpoint => fun (x : ModifyVpcEndpointRequest) => Shape.toValue x + | .modifyVpcEndpointConnectionNotification => fun (x : ModifyVpcEndpointConnectionNotificationRequest) => Shape.toValue x + | .modifyVpcEndpointPayerResponsibility => fun (x : ModifyVpcEndpointPayerResponsibilityRequest) => Shape.toValue x + | .modifyVpcEndpointServiceConfiguration => fun (x : ModifyVpcEndpointServiceConfigurationRequest) => Shape.toValue x + | .modifyVpcEndpointServicePayerResponsibility => fun (x : ModifyVpcEndpointServicePayerResponsibilityRequest) => Shape.toValue x + | .modifyVpcEndpointServicePermissions => fun (x : ModifyVpcEndpointServicePermissionsRequest) => Shape.toValue x + | .modifyVpcPeeringConnectionOptions => fun (x : ModifyVpcPeeringConnectionOptionsRequest) => Shape.toValue x + | .modifyVpcTenancy => fun (x : ModifyVpcTenancyRequest) => Shape.toValue x + | .modifyVpnConnection => fun (x : ModifyVpnConnectionRequest) => Shape.toValue x + | .modifyVpnConnectionOptions => fun (x : ModifyVpnConnectionOptionsRequest) => Shape.toValue x + | .modifyVpnTunnelCertificate => fun (x : ModifyVpnTunnelCertificateRequest) => Shape.toValue x + | .modifyVpnTunnelOptions => fun (x : ModifyVpnTunnelOptionsRequest) => Shape.toValue x + | .monitorInstances => fun (x : MonitorInstancesRequest) => Shape.toValue x + | .moveAddressToVpc => fun (x : MoveAddressToVpcRequest) => Shape.toValue x + | .moveByoipCidrToIpam => fun (x : MoveByoipCidrToIpamRequest) => Shape.toValue x + | .moveCapacityReservationInstances => fun (x : MoveCapacityReservationInstancesRequest) => Shape.toValue x + | .provisionByoipCidr => fun (x : ProvisionByoipCidrRequest) => Shape.toValue x + | .provisionIpamByoasn => fun (x : ProvisionIpamByoasnRequest) => Shape.toValue x + | .provisionIpamPoolCidr => fun (x : ProvisionIpamPoolCidrRequest) => Shape.toValue x + | .provisionPublicIpv4PoolCidr => fun (x : ProvisionPublicIpv4PoolCidrRequest) => Shape.toValue x + | .purchaseCapacityBlock => fun (x : PurchaseCapacityBlockRequest) => Shape.toValue x + | .purchaseCapacityBlockExtension => fun (x : PurchaseCapacityBlockExtensionRequest) => Shape.toValue x + | .purchaseHostReservation => fun (x : PurchaseHostReservationRequest) => Shape.toValue x + | .purchaseReservedInstancesOffering => fun (x : PurchaseReservedInstancesOfferingRequest) => Shape.toValue x + | .purchaseScheduledInstances => fun (x : PurchaseScheduledInstancesRequest) => Shape.toValue x + | .rebootInstances => fun (x : RebootInstancesRequest) => Shape.toValue x + | .registerImage => fun (x : RegisterImageRequest) => Shape.toValue x + | .registerInstanceEventNotificationAttributes => fun (x : RegisterInstanceEventNotificationAttributesRequest) => Shape.toValue x + | .registerTransitGatewayMulticastGroupMembers => fun (x : RegisterTransitGatewayMulticastGroupMembersRequest) => Shape.toValue x + | .registerTransitGatewayMulticastGroupSources => fun (x : RegisterTransitGatewayMulticastGroupSourcesRequest) => Shape.toValue x + | .rejectCapacityReservationBillingOwnership => fun (x : RejectCapacityReservationBillingOwnershipRequest) => Shape.toValue x + | .rejectTransitGatewayClientVpnAttachment => fun (x : RejectTransitGatewayClientVpnAttachmentRequest) => Shape.toValue x + | .rejectTransitGatewayMulticastDomainAssociations => fun (x : RejectTransitGatewayMulticastDomainAssociationsRequest) => Shape.toValue x + | .rejectTransitGatewayPeeringAttachment => fun (x : RejectTransitGatewayPeeringAttachmentRequest) => Shape.toValue x + | .rejectTransitGatewayVpcAttachment => fun (x : RejectTransitGatewayVpcAttachmentRequest) => Shape.toValue x + | .rejectVpcEndpointConnections => fun (x : RejectVpcEndpointConnectionsRequest) => Shape.toValue x + | .rejectVpcPeeringConnection => fun (x : RejectVpcPeeringConnectionRequest) => Shape.toValue x + | .releaseAddress => fun (x : ReleaseAddressRequest) => Shape.toValue x + | .releaseHosts => fun (x : ReleaseHostsRequest) => Shape.toValue x + | .releaseIpamPoolAllocation => fun (x : ReleaseIpamPoolAllocationRequest) => Shape.toValue x + | .replaceIamInstanceProfileAssociation => fun (x : ReplaceIamInstanceProfileAssociationRequest) => Shape.toValue x + | .replaceImageCriteriaInAllowedImagesSettings => fun (x : ReplaceImageCriteriaInAllowedImagesSettingsRequest) => Shape.toValue x + | .replaceImageInstanceTypeSpecification => fun (x : ReplaceImageInstanceTypeSpecificationRequest) => Shape.toValue x + | .replaceNetworkAclAssociation => fun (x : ReplaceNetworkAclAssociationRequest) => Shape.toValue x + | .replaceNetworkAclEntry => fun (x : ReplaceNetworkAclEntryRequest) => Shape.toValue x + | .replaceRoute => fun (x : ReplaceRouteRequest) => Shape.toValue x + | .replaceRouteTableAssociation => fun (x : ReplaceRouteTableAssociationRequest) => Shape.toValue x + | .replaceTransitGatewayRoute => fun (x : ReplaceTransitGatewayRouteRequest) => Shape.toValue x + | .replaceVpnTunnel => fun (x : ReplaceVpnTunnelRequest) => Shape.toValue x + | .reportInstanceStatus => fun (x : ReportInstanceStatusRequest) => Shape.toValue x + | .requestSpotFleet => fun (x : RequestSpotFleetRequest) => Shape.toValue x + | .requestSpotInstances => fun (x : RequestSpotInstancesRequest) => Shape.toValue x + | .resetAddressAttribute => fun (x : ResetAddressAttributeRequest) => Shape.toValue x + | .resetEbsDefaultKmsKeyId => fun (x : ResetEbsDefaultKmsKeyIdRequest) => Shape.toValue x + | .resetFpgaImageAttribute => fun (x : ResetFpgaImageAttributeRequest) => Shape.toValue x + | .resetImageAttribute => fun (x : ResetImageAttributeRequest) => Shape.toValue x + | .resetInstanceAttribute => fun (x : ResetInstanceAttributeRequest) => Shape.toValue x + | .resetNetworkInterfaceAttribute => fun (x : ResetNetworkInterfaceAttributeRequest) => Shape.toValue x + | .resetSnapshotAttribute => fun (x : ResetSnapshotAttributeRequest) => Shape.toValue x + | .restoreAddressToClassic => fun (x : RestoreAddressToClassicRequest) => Shape.toValue x + | .restoreImageFromRecycleBin => fun (x : RestoreImageFromRecycleBinRequest) => Shape.toValue x + | .restoreManagedPrefixListVersion => fun (x : RestoreManagedPrefixListVersionRequest) => Shape.toValue x + | .restoreSnapshotFromRecycleBin => fun (x : RestoreSnapshotFromRecycleBinRequest) => Shape.toValue x + | .restoreSnapshotTier => fun (x : RestoreSnapshotTierRequest) => Shape.toValue x + | .restoreVolumeFromRecycleBin => fun (x : RestoreVolumeFromRecycleBinRequest) => Shape.toValue x + | .revokeClientVpnIngress => fun (x : RevokeClientVpnIngressRequest) => Shape.toValue x + | .revokeSecurityGroupEgress => fun (x : RevokeSecurityGroupEgressRequest) => Shape.toValue x + | .revokeSecurityGroupIngress => fun (x : RevokeSecurityGroupIngressRequest) => Shape.toValue x + | .runInstances => fun (x : RunInstancesRequest) => Shape.toValue x + | .runScheduledInstances => fun (x : RunScheduledInstancesRequest) => Shape.toValue x + | .searchLocalGatewayRoutes => fun (x : SearchLocalGatewayRoutesRequest) => Shape.toValue x + | .searchTransitGatewayMulticastGroups => fun (x : SearchTransitGatewayMulticastGroupsRequest) => Shape.toValue x + | .searchTransitGatewayRoutes => fun (x : SearchTransitGatewayRoutesRequest) => Shape.toValue x + | .sendDiagnosticInterrupt => fun (x : SendDiagnosticInterruptRequest) => Shape.toValue x + | .startDeclarativePoliciesReport => fun (x : StartDeclarativePoliciesReportRequest) => Shape.toValue x + | .startInstances => fun (x : StartInstancesRequest) => Shape.toValue x + | .startNetworkInsightsAccessScopeAnalysis => fun (x : StartNetworkInsightsAccessScopeAnalysisRequest) => Shape.toValue x + | .startNetworkInsightsAnalysis => fun (x : StartNetworkInsightsAnalysisRequest) => Shape.toValue x + | .startVpcEndpointServicePrivateDnsVerification => fun (x : StartVpcEndpointServicePrivateDnsVerificationRequest) => Shape.toValue x + | .stopInstances => fun (x : StopInstancesRequest) => Shape.toValue x + | .terminateClientVpnConnections => fun (x : TerminateClientVpnConnectionsRequest) => Shape.toValue x + | .terminateInstances => fun (x : TerminateInstancesRequest) => Shape.toValue x + | .unassignIpv6Addresses => fun (x : UnassignIpv6AddressesRequest) => Shape.toValue x + | .unassignPrivateIpAddresses => fun (x : UnassignPrivateIpAddressesRequest) => Shape.toValue x + | .unassignPrivateNatGatewayAddress => fun (x : UnassignPrivateNatGatewayAddressRequest) => Shape.toValue x + | .unlockSnapshot => fun (x : UnlockSnapshotRequest) => Shape.toValue x + | .unmonitorInstances => fun (x : UnmonitorInstancesRequest) => Shape.toValue x + | .updateCapacityManagerMonitoredTagKeys => fun (x : UpdateCapacityManagerMonitoredTagKeysRequest) => Shape.toValue x + | .updateCapacityManagerOrganizationsAccess => fun (x : UpdateCapacityManagerOrganizationsAccessRequest) => Shape.toValue x + | .updateInterruptibleCapacityReservationAllocation => fun (x : UpdateInterruptibleCapacityReservationAllocationRequest) => Shape.toValue x + | .updateSecurityGroupRuleDescriptionsEgress => fun (x : UpdateSecurityGroupRuleDescriptionsEgressRequest) => Shape.toValue x + | .updateSecurityGroupRuleDescriptionsIngress => fun (x : UpdateSecurityGroupRuleDescriptionsIngressRequest) => Shape.toValue x + | .validateSecurityGroupQuotasForInterface => fun (x : ValidateSecurityGroupQuotasForInterfaceRequest) => Shape.toValue x + | .withdrawByoipCidr => fun (x : WithdrawByoipCidrRequest) => Shape.toValue x +) + (fun op => match op with + | .acceptAddressTransfer => fun v => (Shape.ofValue v : Except String AcceptAddressTransferResult) + | .acceptCapacityReservationBillingOwnership => fun v => (Shape.ofValue v : Except String AcceptCapacityReservationBillingOwnershipResult) + | .acceptReservedInstancesExchangeQuote => fun v => (Shape.ofValue v : Except String AcceptReservedInstancesExchangeQuoteResult) + | .acceptTransitGatewayClientVpnAttachment => fun v => (Shape.ofValue v : Except String AcceptTransitGatewayClientVpnAttachmentResult) + | .acceptTransitGatewayMulticastDomainAssociations => fun v => (Shape.ofValue v : Except String AcceptTransitGatewayMulticastDomainAssociationsResult) + | .acceptTransitGatewayPeeringAttachment => fun v => (Shape.ofValue v : Except String AcceptTransitGatewayPeeringAttachmentResult) + | .acceptTransitGatewayVpcAttachment => fun v => (Shape.ofValue v : Except String AcceptTransitGatewayVpcAttachmentResult) + | .acceptVpcEndpointConnections => fun v => (Shape.ofValue v : Except String AcceptVpcEndpointConnectionsResult) + | .acceptVpcPeeringConnection => fun v => (Shape.ofValue v : Except String AcceptVpcPeeringConnectionResult) + | .advertiseByoipCidr => fun v => (Shape.ofValue v : Except String AdvertiseByoipCidrResult) + | .allocateAddress => fun v => (Shape.ofValue v : Except String AllocateAddressResult) + | .allocateHosts => fun v => (Shape.ofValue v : Except String AllocateHostsResult) + | .allocateIpamPoolCidr => fun v => (Shape.ofValue v : Except String AllocateIpamPoolCidrResult) + | .applySecurityGroupsToClientVpnTargetNetwork => fun v => (Shape.ofValue v : Except String ApplySecurityGroupsToClientVpnTargetNetworkResult) + | .assignIpv6Addresses => fun v => (Shape.ofValue v : Except String AssignIpv6AddressesResult) + | .assignPrivateIpAddresses => fun v => (Shape.ofValue v : Except String AssignPrivateIpAddressesResult) + | .assignPrivateNatGatewayAddress => fun v => (Shape.ofValue v : Except String AssignPrivateNatGatewayAddressResult) + | .associateAddress => fun v => (Shape.ofValue v : Except String AssociateAddressResult) + | .associateApplicationStatusCheck => fun v => (Shape.ofValue v : Except String AssociateApplicationStatusCheckResult) + | .associateCapacityReservationBillingOwner => fun v => (Shape.ofValue v : Except String AssociateCapacityReservationBillingOwnerResult) + | .associateClientVpnTargetNetwork => fun v => (Shape.ofValue v : Except String AssociateClientVpnTargetNetworkResult) + | .associateDhcpOptions => fun v => (Shape.ofValue v : Except String Unit) + | .associateEnclaveCertificateIamRole => fun v => (Shape.ofValue v : Except String AssociateEnclaveCertificateIamRoleResult) + | .associateIamInstanceProfile => fun v => (Shape.ofValue v : Except String AssociateIamInstanceProfileResult) + | .associateInstanceEventWindow => fun v => (Shape.ofValue v : Except String AssociateInstanceEventWindowResult) + | .associateIpamByoasn => fun v => (Shape.ofValue v : Except String AssociateIpamByoasnResult) + | .associateIpamResourceDiscovery => fun v => (Shape.ofValue v : Except String AssociateIpamResourceDiscoveryResult) + | .associateKmsKeyId => fun v => (Shape.ofValue v : Except String AssociateKmsKeyIdResult) + | .associateNatGatewayAddress => fun v => (Shape.ofValue v : Except String AssociateNatGatewayAddressResult) + | .associateNetworkingFlexCostAllocationPolicy => fun v => (Shape.ofValue v : Except String AssociateNetworkingFlexCostAllocationPolicyResult) + | .associateRouteServer => fun v => (Shape.ofValue v : Except String AssociateRouteServerResult) + | .associateRouteTable => fun v => (Shape.ofValue v : Except String AssociateRouteTableResult) + | .associateSecurityGroupVpc => fun v => (Shape.ofValue v : Except String AssociateSecurityGroupVpcResult) + | .associateSubnetCidrBlock => fun v => (Shape.ofValue v : Except String AssociateSubnetCidrBlockResult) + | .associateTransitGatewayMulticastDomain => fun v => (Shape.ofValue v : Except String AssociateTransitGatewayMulticastDomainResult) + | .associateTransitGatewayPolicyTable => fun v => (Shape.ofValue v : Except String AssociateTransitGatewayPolicyTableResult) + | .associateTransitGatewayRouteTable => fun v => (Shape.ofValue v : Except String AssociateTransitGatewayRouteTableResult) + | .associateTrunkInterface => fun v => (Shape.ofValue v : Except String AssociateTrunkInterfaceResult) + | .associateVpcCidrBlock => fun v => (Shape.ofValue v : Except String AssociateVpcCidrBlockResult) + | .attachClassicLinkVpc => fun v => (Shape.ofValue v : Except String AttachClassicLinkVpcResult) + | .attachImageWatermark => fun v => (Shape.ofValue v : Except String AttachImageWatermarkResult) + | .attachInternetGateway => fun v => (Shape.ofValue v : Except String Unit) + | .attachNetworkInterface => fun v => (Shape.ofValue v : Except String AttachNetworkInterfaceResult) + | .attachVerifiedAccessTrustProvider => fun v => (Shape.ofValue v : Except String AttachVerifiedAccessTrustProviderResult) + | .attachVolume => fun v => (Shape.ofValue v : Except String VolumeAttachment) + | .attachVpnGateway => fun v => (Shape.ofValue v : Except String AttachVpnGatewayResult) + | .authorizeClientVpnIngress => fun v => (Shape.ofValue v : Except String AuthorizeClientVpnIngressResult) + | .authorizeSecurityGroupEgress => fun v => (Shape.ofValue v : Except String AuthorizeSecurityGroupEgressResult) + | .authorizeSecurityGroupIngress => fun v => (Shape.ofValue v : Except String AuthorizeSecurityGroupIngressResult) + | .batchModifyIpamRoutingPolicyRegistrations => fun v => (Shape.ofValue v : Except String BatchModifyIpamRoutingPolicyRegistrationsResult) + | .bundleInstance => fun v => (Shape.ofValue v : Except String BundleInstanceResult) + | .cancelBundleTask => fun v => (Shape.ofValue v : Except String CancelBundleTaskResult) + | .cancelCapacityReservation => fun v => (Shape.ofValue v : Except String CancelCapacityReservationResult) + | .cancelCapacityReservationFleets => fun v => (Shape.ofValue v : Except String CancelCapacityReservationFleetsResult) + | .cancelConversionTask => fun v => (Shape.ofValue v : Except String Unit) + | .cancelDeclarativePoliciesReport => fun v => (Shape.ofValue v : Except String CancelDeclarativePoliciesReportResult) + | .cancelExportTask => fun v => (Shape.ofValue v : Except String Unit) + | .cancelImageLaunchPermission => fun v => (Shape.ofValue v : Except String CancelImageLaunchPermissionResult) + | .cancelImportTask => fun v => (Shape.ofValue v : Except String CancelImportTaskResult) + | .cancelReservedInstancesListing => fun v => (Shape.ofValue v : Except String CancelReservedInstancesListingResult) + | .cancelSpotFleetRequests => fun v => (Shape.ofValue v : Except String CancelSpotFleetRequestsResponse) + | .cancelSpotInstanceRequests => fun v => (Shape.ofValue v : Except String CancelSpotInstanceRequestsResult) + | .confirmProductInstance => fun v => (Shape.ofValue v : Except String ConfirmProductInstanceResult) + | .copyFpgaImage => fun v => (Shape.ofValue v : Except String CopyFpgaImageResult) + | .copyImage => fun v => (Shape.ofValue v : Except String CopyImageResult) + | .copySnapshot => fun v => (Shape.ofValue v : Except String CopySnapshotResult) + | .copyVolumes => fun v => (Shape.ofValue v : Except String CopyVolumesResult) + | .createApplicationStatusCheck => fun v => (Shape.ofValue v : Except String CreateApplicationStatusCheckResult) + | .createCapacityManagerDataExport => fun v => (Shape.ofValue v : Except String CreateCapacityManagerDataExportResult) + | .createCapacityReservation => fun v => (Shape.ofValue v : Except String CreateCapacityReservationResult) + | .createCapacityReservationBySplitting => fun v => (Shape.ofValue v : Except String CreateCapacityReservationBySplittingResult) + | .createCapacityReservationCancellationQuote => fun v => (Shape.ofValue v : Except String CreateCapacityReservationCancellationQuoteResult) + | .createCapacityReservationDateChangeQuote => fun v => (Shape.ofValue v : Except String CreateCapacityReservationDateChangeQuoteResult) + | .createCapacityReservationFleet => fun v => (Shape.ofValue v : Except String CreateCapacityReservationFleetResult) + | .createCarrierGateway => fun v => (Shape.ofValue v : Except String CreateCarrierGatewayResult) + | .createClientVpnEndpoint => fun v => (Shape.ofValue v : Except String CreateClientVpnEndpointResult) + | .createClientVpnRoute => fun v => (Shape.ofValue v : Except String CreateClientVpnRouteResult) + | .createCoipCidr => fun v => (Shape.ofValue v : Except String CreateCoipCidrResult) + | .createCoipPool => fun v => (Shape.ofValue v : Except String CreateCoipPoolResult) + | .createCustomerGateway => fun v => (Shape.ofValue v : Except String CreateCustomerGatewayResult) + | .createDefaultSubnet => fun v => (Shape.ofValue v : Except String CreateDefaultSubnetResult) + | .createDefaultVpc => fun v => (Shape.ofValue v : Except String CreateDefaultVpcResult) + | .createDelegateMacVolumeOwnershipTask => fun v => (Shape.ofValue v : Except String CreateDelegateMacVolumeOwnershipTaskResult) + | .createDhcpOptions => fun v => (Shape.ofValue v : Except String CreateDhcpOptionsResult) + | .createEgressOnlyInternetGateway => fun v => (Shape.ofValue v : Except String CreateEgressOnlyInternetGatewayResult) + | .createFleet => fun v => (Shape.ofValue v : Except String CreateFleetResult) + | .createFlowLogs => fun v => (Shape.ofValue v : Except String CreateFlowLogsResult) + | .createFpgaImage => fun v => (Shape.ofValue v : Except String CreateFpgaImageResult) + | .createImage => fun v => (Shape.ofValue v : Except String CreateImageResult) + | .createImageUsageReport => fun v => (Shape.ofValue v : Except String CreateImageUsageReportResult) + | .createInstanceConnectEndpoint => fun v => (Shape.ofValue v : Except String CreateInstanceConnectEndpointResult) + | .createInstanceEventWindow => fun v => (Shape.ofValue v : Except String CreateInstanceEventWindowResult) + | .createInstanceExportTask => fun v => (Shape.ofValue v : Except String CreateInstanceExportTaskResult) + | .createInternetGateway => fun v => (Shape.ofValue v : Except String CreateInternetGatewayResult) + | .createInterruptibleCapacityReservationAllocation => fun v => (Shape.ofValue v : Except String CreateInterruptibleCapacityReservationAllocationResult) + | .createIpam => fun v => (Shape.ofValue v : Except String CreateIpamResult) + | .createIpamExternalResourceVerificationToken => fun v => (Shape.ofValue v : Except String CreateIpamExternalResourceVerificationTokenResult) + | .createIpamInternetRegistryAssociation => fun v => (Shape.ofValue v : Except String CreateIpamInternetRegistryAssociationResult) + | .createIpamPolicy => fun v => (Shape.ofValue v : Except String CreateIpamPolicyResult) + | .createIpamPool => fun v => (Shape.ofValue v : Except String CreateIpamPoolResult) + | .createIpamPrefixListResolver => fun v => (Shape.ofValue v : Except String CreateIpamPrefixListResolverResult) + | .createIpamPrefixListResolverTarget => fun v => (Shape.ofValue v : Except String CreateIpamPrefixListResolverTargetResult) + | .createIpamResourceDiscovery => fun v => (Shape.ofValue v : Except String CreateIpamResourceDiscoveryResult) + | .createIpamRoutingPolicyRegistration => fun v => (Shape.ofValue v : Except String CreateIpamRoutingPolicyRegistrationResult) + | .createIpamScope => fun v => (Shape.ofValue v : Except String CreateIpamScopeResult) + | .createKeyPair => fun v => (Shape.ofValue v : Except String KeyPair) + | .createLaunchTemplate => fun v => (Shape.ofValue v : Except String CreateLaunchTemplateResult) + | .createLaunchTemplateVersion => fun v => (Shape.ofValue v : Except String CreateLaunchTemplateVersionResult) + | .createLocalGatewayRoute => fun v => (Shape.ofValue v : Except String CreateLocalGatewayRouteResult) + | .createLocalGatewayRouteTable => fun v => (Shape.ofValue v : Except String CreateLocalGatewayRouteTableResult) + | .createLocalGatewayRouteTableVirtualInterfaceGroupAssociation => fun v => (Shape.ofValue v : Except String CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult) + | .createLocalGatewayRouteTableVpcAssociation => fun v => (Shape.ofValue v : Except String CreateLocalGatewayRouteTableVpcAssociationResult) + | .createLocalGatewayVirtualInterface => fun v => (Shape.ofValue v : Except String CreateLocalGatewayVirtualInterfaceResult) + | .createLocalGatewayVirtualInterfaceGroup => fun v => (Shape.ofValue v : Except String CreateLocalGatewayVirtualInterfaceGroupResult) + | .createMacSystemIntegrityProtectionModificationTask => fun v => (Shape.ofValue v : Except String CreateMacSystemIntegrityProtectionModificationTaskResult) + | .createManagedPrefixList => fun v => (Shape.ofValue v : Except String CreateManagedPrefixListResult) + | .createMetricCategory => fun v => (Shape.ofValue v : Except String CreateMetricCategoryResult) + | .createNatGateway => fun v => (Shape.ofValue v : Except String CreateNatGatewayResult) + | .createNetworkAcl => fun v => (Shape.ofValue v : Except String CreateNetworkAclResult) + | .createNetworkAclEntry => fun v => (Shape.ofValue v : Except String Unit) + | .createNetworkInsightsAccessScope => fun v => (Shape.ofValue v : Except String CreateNetworkInsightsAccessScopeResult) + | .createNetworkInsightsPath => fun v => (Shape.ofValue v : Except String CreateNetworkInsightsPathResult) + | .createNetworkInterface => fun v => (Shape.ofValue v : Except String CreateNetworkInterfaceResult) + | .createNetworkInterfacePermission => fun v => (Shape.ofValue v : Except String CreateNetworkInterfacePermissionResult) + | .createNetworkingFlexCostAllocationPolicy => fun v => (Shape.ofValue v : Except String CreateNetworkingFlexCostAllocationPolicyResult) + | .createPlacementGroup => fun v => (Shape.ofValue v : Except String CreatePlacementGroupResult) + | .createPublicIpv4Pool => fun v => (Shape.ofValue v : Except String CreatePublicIpv4PoolResult) + | .createReplaceRootVolumeTask => fun v => (Shape.ofValue v : Except String CreateReplaceRootVolumeTaskResult) + | .createReservedInstancesListing => fun v => (Shape.ofValue v : Except String CreateReservedInstancesListingResult) + | .createRestoreImageTask => fun v => (Shape.ofValue v : Except String CreateRestoreImageTaskResult) + | .createRoute => fun v => (Shape.ofValue v : Except String CreateRouteResult) + | .createRouteServer => fun v => (Shape.ofValue v : Except String CreateRouteServerResult) + | .createRouteServerEndpoint => fun v => (Shape.ofValue v : Except String CreateRouteServerEndpointResult) + | .createRouteServerPeer => fun v => (Shape.ofValue v : Except String CreateRouteServerPeerResult) + | .createRouteTable => fun v => (Shape.ofValue v : Except String CreateRouteTableResult) + | .createSecondaryNetwork => fun v => (Shape.ofValue v : Except String CreateSecondaryNetworkResult) + | .createSecondarySubnet => fun v => (Shape.ofValue v : Except String CreateSecondarySubnetResult) + | .createSecurityGroup => fun v => (Shape.ofValue v : Except String CreateSecurityGroupResult) + | .createSnapshot => fun v => (Shape.ofValue v : Except String Snapshot) + | .createSnapshots => fun v => (Shape.ofValue v : Except String CreateSnapshotsResult) + | .createSpotDatafeedSubscription => fun v => (Shape.ofValue v : Except String CreateSpotDatafeedSubscriptionResult) + | .createStoreImageTask => fun v => (Shape.ofValue v : Except String CreateStoreImageTaskResult) + | .createSubnet => fun v => (Shape.ofValue v : Except String CreateSubnetResult) + | .createSubnetCidrReservation => fun v => (Shape.ofValue v : Except String CreateSubnetCidrReservationResult) + | .createTags => fun v => (Shape.ofValue v : Except String Unit) + | .createTrafficMirrorFilter => fun v => (Shape.ofValue v : Except String CreateTrafficMirrorFilterResult) + | .createTrafficMirrorFilterRule => fun v => (Shape.ofValue v : Except String CreateTrafficMirrorFilterRuleResult) + | .createTrafficMirrorSession => fun v => (Shape.ofValue v : Except String CreateTrafficMirrorSessionResult) + | .createTrafficMirrorTarget => fun v => (Shape.ofValue v : Except String CreateTrafficMirrorTargetResult) + | .createTransitGateway => fun v => (Shape.ofValue v : Except String CreateTransitGatewayResult) + | .createTransitGatewayConnect => fun v => (Shape.ofValue v : Except String CreateTransitGatewayConnectResult) + | .createTransitGatewayConnectPeer => fun v => (Shape.ofValue v : Except String CreateTransitGatewayConnectPeerResult) + | .createTransitGatewayMeteringPolicy => fun v => (Shape.ofValue v : Except String CreateTransitGatewayMeteringPolicyResult) + | .createTransitGatewayMeteringPolicyEntry => fun v => (Shape.ofValue v : Except String CreateTransitGatewayMeteringPolicyEntryResult) + | .createTransitGatewayMulticastDomain => fun v => (Shape.ofValue v : Except String CreateTransitGatewayMulticastDomainResult) + | .createTransitGatewayNetworkFunctionAttachment => fun v => (Shape.ofValue v : Except String CreateTransitGatewayNetworkFunctionAttachmentResult) + | .createTransitGatewayPeeringAttachment => fun v => (Shape.ofValue v : Except String CreateTransitGatewayPeeringAttachmentResult) + | .createTransitGatewayPolicyTable => fun v => (Shape.ofValue v : Except String CreateTransitGatewayPolicyTableResult) + | .createTransitGatewayPolicyTableEntry => fun v => (Shape.ofValue v : Except String CreateTransitGatewayPolicyTableEntryResult) + | .createTransitGatewayPrefixListReference => fun v => (Shape.ofValue v : Except String CreateTransitGatewayPrefixListReferenceResult) + | .createTransitGatewayRoute => fun v => (Shape.ofValue v : Except String CreateTransitGatewayRouteResult) + | .createTransitGatewayRouteTable => fun v => (Shape.ofValue v : Except String CreateTransitGatewayRouteTableResult) + | .createTransitGatewayRouteTableAnnouncement => fun v => (Shape.ofValue v : Except String CreateTransitGatewayRouteTableAnnouncementResult) + | .createTransitGatewayVpcAttachment => fun v => (Shape.ofValue v : Except String CreateTransitGatewayVpcAttachmentResult) + | .createVerifiedAccessEndpoint => fun v => (Shape.ofValue v : Except String CreateVerifiedAccessEndpointResult) + | .createVerifiedAccessGroup => fun v => (Shape.ofValue v : Except String CreateVerifiedAccessGroupResult) + | .createVerifiedAccessInstance => fun v => (Shape.ofValue v : Except String CreateVerifiedAccessInstanceResult) + | .createVerifiedAccessTrustProvider => fun v => (Shape.ofValue v : Except String CreateVerifiedAccessTrustProviderResult) + | .createVolume => fun v => (Shape.ofValue v : Except String Volume) + | .createVpc => fun v => (Shape.ofValue v : Except String CreateVpcResult) + | .createVpcBlockPublicAccessExclusion => fun v => (Shape.ofValue v : Except String CreateVpcBlockPublicAccessExclusionResult) + | .createVpcEncryptionControl => fun v => (Shape.ofValue v : Except String CreateVpcEncryptionControlResult) + | .createVpcEndpoint => fun v => (Shape.ofValue v : Except String CreateVpcEndpointResult) + | .createVpcEndpointConnectionNotification => fun v => (Shape.ofValue v : Except String CreateVpcEndpointConnectionNotificationResult) + | .createVpcEndpointServiceConfiguration => fun v => (Shape.ofValue v : Except String CreateVpcEndpointServiceConfigurationResult) + | .createVpcPeeringConnection => fun v => (Shape.ofValue v : Except String CreateVpcPeeringConnectionResult) + | .createVpnConcentrator => fun v => (Shape.ofValue v : Except String CreateVpnConcentratorResult) + | .createVpnConnection => fun v => (Shape.ofValue v : Except String CreateVpnConnectionResult) + | .createVpnConnectionRoute => fun v => (Shape.ofValue v : Except String Unit) + | .createVpnGateway => fun v => (Shape.ofValue v : Except String CreateVpnGatewayResult) + | .deleteApplicationStatusCheck => fun v => (Shape.ofValue v : Except String DeleteApplicationStatusCheckResult) + | .deleteCapacityManagerDataExport => fun v => (Shape.ofValue v : Except String DeleteCapacityManagerDataExportResult) + | .deleteCarrierGateway => fun v => (Shape.ofValue v : Except String DeleteCarrierGatewayResult) + | .deleteClientVpnEndpoint => fun v => (Shape.ofValue v : Except String DeleteClientVpnEndpointResult) + | .deleteClientVpnEndpointAuthorizationPolicy => fun v => (Shape.ofValue v : Except String DeleteClientVpnEndpointAuthorizationPolicyResult) + | .deleteClientVpnRoute => fun v => (Shape.ofValue v : Except String DeleteClientVpnRouteResult) + | .deleteCoipCidr => fun v => (Shape.ofValue v : Except String DeleteCoipCidrResult) + | .deleteCoipPool => fun v => (Shape.ofValue v : Except String DeleteCoipPoolResult) + | .deleteCustomerGateway => fun v => (Shape.ofValue v : Except String Unit) + | .deleteDhcpOptions => fun v => (Shape.ofValue v : Except String Unit) + | .deleteEgressOnlyInternetGateway => fun v => (Shape.ofValue v : Except String DeleteEgressOnlyInternetGatewayResult) + | .deleteFleets => fun v => (Shape.ofValue v : Except String DeleteFleetsResult) + | .deleteFlowLogs => fun v => (Shape.ofValue v : Except String DeleteFlowLogsResult) + | .deleteFpgaImage => fun v => (Shape.ofValue v : Except String DeleteFpgaImageResult) + | .deleteImageUsageReport => fun v => (Shape.ofValue v : Except String DeleteImageUsageReportResult) + | .deleteInstanceConnectEndpoint => fun v => (Shape.ofValue v : Except String DeleteInstanceConnectEndpointResult) + | .deleteInstanceEventWindow => fun v => (Shape.ofValue v : Except String DeleteInstanceEventWindowResult) + | .deleteInternetGateway => fun v => (Shape.ofValue v : Except String Unit) + | .deleteIpam => fun v => (Shape.ofValue v : Except String DeleteIpamResult) + | .deleteIpamExternalResourceVerificationToken => fun v => (Shape.ofValue v : Except String DeleteIpamExternalResourceVerificationTokenResult) + | .deleteIpamInternetRegistryAssociation => fun v => (Shape.ofValue v : Except String DeleteIpamInternetRegistryAssociationResult) + | .deleteIpamPolicy => fun v => (Shape.ofValue v : Except String DeleteIpamPolicyResult) + | .deleteIpamPool => fun v => (Shape.ofValue v : Except String DeleteIpamPoolResult) + | .deleteIpamPrefixListResolver => fun v => (Shape.ofValue v : Except String DeleteIpamPrefixListResolverResult) + | .deleteIpamPrefixListResolverTarget => fun v => (Shape.ofValue v : Except String DeleteIpamPrefixListResolverTargetResult) + | .deleteIpamResourceDiscovery => fun v => (Shape.ofValue v : Except String DeleteIpamResourceDiscoveryResult) + | .deleteIpamRoutingPolicyRegistration => fun v => (Shape.ofValue v : Except String DeleteIpamRoutingPolicyRegistrationResult) + | .deleteIpamScope => fun v => (Shape.ofValue v : Except String DeleteIpamScopeResult) + | .deleteKeyPair => fun v => (Shape.ofValue v : Except String DeleteKeyPairResult) + | .deleteLaunchTemplate => fun v => (Shape.ofValue v : Except String DeleteLaunchTemplateResult) + | .deleteLaunchTemplateVersions => fun v => (Shape.ofValue v : Except String DeleteLaunchTemplateVersionsResult) + | .deleteLocalGatewayRoute => fun v => (Shape.ofValue v : Except String DeleteLocalGatewayRouteResult) + | .deleteLocalGatewayRouteTable => fun v => (Shape.ofValue v : Except String DeleteLocalGatewayRouteTableResult) + | .deleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation => fun v => (Shape.ofValue v : Except String DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult) + | .deleteLocalGatewayRouteTableVpcAssociation => fun v => (Shape.ofValue v : Except String DeleteLocalGatewayRouteTableVpcAssociationResult) + | .deleteLocalGatewayVirtualInterface => fun v => (Shape.ofValue v : Except String DeleteLocalGatewayVirtualInterfaceResult) + | .deleteLocalGatewayVirtualInterfaceGroup => fun v => (Shape.ofValue v : Except String DeleteLocalGatewayVirtualInterfaceGroupResult) + | .deleteManagedPrefixList => fun v => (Shape.ofValue v : Except String DeleteManagedPrefixListResult) + | .deleteMetricCategory => fun v => (Shape.ofValue v : Except String DeleteMetricCategoryResult) + | .deleteNatGateway => fun v => (Shape.ofValue v : Except String DeleteNatGatewayResult) + | .deleteNetworkAcl => fun v => (Shape.ofValue v : Except String Unit) + | .deleteNetworkAclEntry => fun v => (Shape.ofValue v : Except String Unit) + | .deleteNetworkInsightsAccessScope => fun v => (Shape.ofValue v : Except String DeleteNetworkInsightsAccessScopeResult) + | .deleteNetworkInsightsAccessScopeAnalysis => fun v => (Shape.ofValue v : Except String DeleteNetworkInsightsAccessScopeAnalysisResult) + | .deleteNetworkInsightsAnalysis => fun v => (Shape.ofValue v : Except String DeleteNetworkInsightsAnalysisResult) + | .deleteNetworkInsightsPath => fun v => (Shape.ofValue v : Except String DeleteNetworkInsightsPathResult) + | .deleteNetworkInterface => fun v => (Shape.ofValue v : Except String Unit) + | .deleteNetworkInterfacePermission => fun v => (Shape.ofValue v : Except String DeleteNetworkInterfacePermissionResult) + | .deleteNetworkingFlexCostAllocationPolicies => fun v => (Shape.ofValue v : Except String DeleteNetworkingFlexCostAllocationPoliciesResult) + | .deletePlacementGroup => fun v => (Shape.ofValue v : Except String Unit) + | .deletePublicIpv4Pool => fun v => (Shape.ofValue v : Except String DeletePublicIpv4PoolResult) + | .deleteQueuedReservedInstances => fun v => (Shape.ofValue v : Except String DeleteQueuedReservedInstancesResult) + | .deleteRoute => fun v => (Shape.ofValue v : Except String Unit) + | .deleteRouteServer => fun v => (Shape.ofValue v : Except String DeleteRouteServerResult) + | .deleteRouteServerEndpoint => fun v => (Shape.ofValue v : Except String DeleteRouteServerEndpointResult) + | .deleteRouteServerPeer => fun v => (Shape.ofValue v : Except String DeleteRouteServerPeerResult) + | .deleteRouteTable => fun v => (Shape.ofValue v : Except String Unit) + | .deleteSecondaryNetwork => fun v => (Shape.ofValue v : Except String DeleteSecondaryNetworkResult) + | .deleteSecondarySubnet => fun v => (Shape.ofValue v : Except String DeleteSecondarySubnetResult) + | .deleteSecurityGroup => fun v => (Shape.ofValue v : Except String DeleteSecurityGroupResult) + | .deleteSnapshot => fun v => (Shape.ofValue v : Except String Unit) + | .deleteSpotDatafeedSubscription => fun v => (Shape.ofValue v : Except String Unit) + | .deleteSubnet => fun v => (Shape.ofValue v : Except String Unit) + | .deleteSubnetCidrReservation => fun v => (Shape.ofValue v : Except String DeleteSubnetCidrReservationResult) + | .deleteTags => fun v => (Shape.ofValue v : Except String Unit) + | .deleteTrafficMirrorFilter => fun v => (Shape.ofValue v : Except String DeleteTrafficMirrorFilterResult) + | .deleteTrafficMirrorFilterRule => fun v => (Shape.ofValue v : Except String DeleteTrafficMirrorFilterRuleResult) + | .deleteTrafficMirrorSession => fun v => (Shape.ofValue v : Except String DeleteTrafficMirrorSessionResult) + | .deleteTrafficMirrorTarget => fun v => (Shape.ofValue v : Except String DeleteTrafficMirrorTargetResult) + | .deleteTransitGateway => fun v => (Shape.ofValue v : Except String DeleteTransitGatewayResult) + | .deleteTransitGatewayClientVpnAttachment => fun v => (Shape.ofValue v : Except String DeleteTransitGatewayClientVpnAttachmentResult) + | .deleteTransitGatewayConnect => fun v => (Shape.ofValue v : Except String DeleteTransitGatewayConnectResult) + | .deleteTransitGatewayConnectPeer => fun v => (Shape.ofValue v : Except String DeleteTransitGatewayConnectPeerResult) + | .deleteTransitGatewayMeteringPolicy => fun v => (Shape.ofValue v : Except String DeleteTransitGatewayMeteringPolicyResult) + | .deleteTransitGatewayMeteringPolicyEntry => fun v => (Shape.ofValue v : Except String DeleteTransitGatewayMeteringPolicyEntryResult) + | .deleteTransitGatewayMulticastDomain => fun v => (Shape.ofValue v : Except String DeleteTransitGatewayMulticastDomainResult) + | .deleteTransitGatewayNetworkFunctionAttachment => fun v => (Shape.ofValue v : Except String DeleteTransitGatewayNetworkFunctionAttachmentResult) + | .deleteTransitGatewayPeeringAttachment => fun v => (Shape.ofValue v : Except String DeleteTransitGatewayPeeringAttachmentResult) + | .deleteTransitGatewayPolicyTable => fun v => (Shape.ofValue v : Except String DeleteTransitGatewayPolicyTableResult) + | .deleteTransitGatewayPolicyTableEntry => fun v => (Shape.ofValue v : Except String DeleteTransitGatewayPolicyTableEntryResult) + | .deleteTransitGatewayPrefixListReference => fun v => (Shape.ofValue v : Except String DeleteTransitGatewayPrefixListReferenceResult) + | .deleteTransitGatewayRoute => fun v => (Shape.ofValue v : Except String DeleteTransitGatewayRouteResult) + | .deleteTransitGatewayRouteTable => fun v => (Shape.ofValue v : Except String DeleteTransitGatewayRouteTableResult) + | .deleteTransitGatewayRouteTableAnnouncement => fun v => (Shape.ofValue v : Except String DeleteTransitGatewayRouteTableAnnouncementResult) + | .deleteTransitGatewayVpcAttachment => fun v => (Shape.ofValue v : Except String DeleteTransitGatewayVpcAttachmentResult) + | .deleteVerifiedAccessEndpoint => fun v => (Shape.ofValue v : Except String DeleteVerifiedAccessEndpointResult) + | .deleteVerifiedAccessGroup => fun v => (Shape.ofValue v : Except String DeleteVerifiedAccessGroupResult) + | .deleteVerifiedAccessInstance => fun v => (Shape.ofValue v : Except String DeleteVerifiedAccessInstanceResult) + | .deleteVerifiedAccessTrustProvider => fun v => (Shape.ofValue v : Except String DeleteVerifiedAccessTrustProviderResult) + | .deleteVolume => fun v => (Shape.ofValue v : Except String Unit) + | .deleteVpc => fun v => (Shape.ofValue v : Except String Unit) + | .deleteVpcBlockPublicAccessExclusion => fun v => (Shape.ofValue v : Except String DeleteVpcBlockPublicAccessExclusionResult) + | .deleteVpcEncryptionControl => fun v => (Shape.ofValue v : Except String DeleteVpcEncryptionControlResult) + | .deleteVpcEndpointConnectionNotifications => fun v => (Shape.ofValue v : Except String DeleteVpcEndpointConnectionNotificationsResult) + | .deleteVpcEndpointServiceConfigurations => fun v => (Shape.ofValue v : Except String DeleteVpcEndpointServiceConfigurationsResult) + | .deleteVpcEndpoints => fun v => (Shape.ofValue v : Except String DeleteVpcEndpointsResult) + | .deleteVpcPeeringConnection => fun v => (Shape.ofValue v : Except String DeleteVpcPeeringConnectionResult) + | .deleteVpnConcentrator => fun v => (Shape.ofValue v : Except String DeleteVpnConcentratorResult) + | .deleteVpnConnection => fun v => (Shape.ofValue v : Except String Unit) + | .deleteVpnConnectionRoute => fun v => (Shape.ofValue v : Except String Unit) + | .deleteVpnGateway => fun v => (Shape.ofValue v : Except String Unit) + | .deprovisionByoipCidr => fun v => (Shape.ofValue v : Except String DeprovisionByoipCidrResult) + | .deprovisionIpamByoasn => fun v => (Shape.ofValue v : Except String DeprovisionIpamByoasnResult) + | .deprovisionIpamPoolCidr => fun v => (Shape.ofValue v : Except String DeprovisionIpamPoolCidrResult) + | .deprovisionPublicIpv4PoolCidr => fun v => (Shape.ofValue v : Except String DeprovisionPublicIpv4PoolCidrResult) + | .deregisterImage => fun v => (Shape.ofValue v : Except String DeregisterImageResult) + | .deregisterInstanceEventNotificationAttributes => fun v => (Shape.ofValue v : Except String DeregisterInstanceEventNotificationAttributesResult) + | .deregisterTransitGatewayMulticastGroupMembers => fun v => (Shape.ofValue v : Except String DeregisterTransitGatewayMulticastGroupMembersResult) + | .deregisterTransitGatewayMulticastGroupSources => fun v => (Shape.ofValue v : Except String DeregisterTransitGatewayMulticastGroupSourcesResult) + | .describeAccountAttributes => fun v => (Shape.ofValue v : Except String DescribeAccountAttributesResult) + | .describeAccountVpcEncryptionControl => fun v => (Shape.ofValue v : Except String DescribeAccountVpcEncryptionControlResult) + | .describeAddressTransfers => fun v => (Shape.ofValue v : Except String DescribeAddressTransfersResult) + | .describeAddresses => fun v => (Shape.ofValue v : Except String DescribeAddressesResult) + | .describeAddressesAttribute => fun v => (Shape.ofValue v : Except String DescribeAddressesAttributeResult) + | .describeAggregateIdFormat => fun v => (Shape.ofValue v : Except String DescribeAggregateIdFormatResult) + | .describeApplicationStatus => fun v => (Shape.ofValue v : Except String DescribeApplicationStatusResult) + | .describeApplicationStatusCheckAssociations => fun v => (Shape.ofValue v : Except String DescribeApplicationStatusCheckAssociationsResult) + | .describeApplicationStatusChecks => fun v => (Shape.ofValue v : Except String DescribeApplicationStatusChecksResult) + | .describeAvailabilityZones => fun v => (Shape.ofValue v : Except String DescribeAvailabilityZonesResult) + | .describeAwsNetworkPerformanceMetricSubscriptions => fun v => (Shape.ofValue v : Except String DescribeAwsNetworkPerformanceMetricSubscriptionsResult) + | .describeBundleTasks => fun v => (Shape.ofValue v : Except String DescribeBundleTasksResult) + | .describeByoipCidrs => fun v => (Shape.ofValue v : Except String DescribeByoipCidrsResult) + | .describeCapacityBlockExtensionHistory => fun v => (Shape.ofValue v : Except String DescribeCapacityBlockExtensionHistoryResult) + | .describeCapacityBlockExtensionOfferings => fun v => (Shape.ofValue v : Except String DescribeCapacityBlockExtensionOfferingsResult) + | .describeCapacityBlockOfferings => fun v => (Shape.ofValue v : Except String DescribeCapacityBlockOfferingsResult) + | .describeCapacityBlockStatus => fun v => (Shape.ofValue v : Except String DescribeCapacityBlockStatusResult) + | .describeCapacityBlocks => fun v => (Shape.ofValue v : Except String DescribeCapacityBlocksResult) + | .describeCapacityManagerDataExports => fun v => (Shape.ofValue v : Except String DescribeCapacityManagerDataExportsResult) + | .describeCapacityReservationBillingRequests => fun v => (Shape.ofValue v : Except String DescribeCapacityReservationBillingRequestsResult) + | .describeCapacityReservationCancellationQuotes => fun v => (Shape.ofValue v : Except String DescribeCapacityReservationCancellationQuotesResult) + | .describeCapacityReservationDateChangeQuotes => fun v => (Shape.ofValue v : Except String DescribeCapacityReservationDateChangeQuotesResult) + | .describeCapacityReservationFleets => fun v => (Shape.ofValue v : Except String DescribeCapacityReservationFleetsResult) + | .describeCapacityReservationTopology => fun v => (Shape.ofValue v : Except String DescribeCapacityReservationTopologyResult) + | .describeCapacityReservations => fun v => (Shape.ofValue v : Except String DescribeCapacityReservationsResult) + | .describeCarrierGateways => fun v => (Shape.ofValue v : Except String DescribeCarrierGatewaysResult) + | .describeClassicLinkInstances => fun v => (Shape.ofValue v : Except String DescribeClassicLinkInstancesResult) + | .describeClientVpnAuthorizationRules => fun v => (Shape.ofValue v : Except String DescribeClientVpnAuthorizationRulesResult) + | .describeClientVpnConnections => fun v => (Shape.ofValue v : Except String DescribeClientVpnConnectionsResult) + | .describeClientVpnEndpoints => fun v => (Shape.ofValue v : Except String DescribeClientVpnEndpointsResult) + | .describeClientVpnRoutes => fun v => (Shape.ofValue v : Except String DescribeClientVpnRoutesResult) + | .describeClientVpnTargetNetworks => fun v => (Shape.ofValue v : Except String DescribeClientVpnTargetNetworksResult) + | .describeCoipPools => fun v => (Shape.ofValue v : Except String DescribeCoipPoolsResult) + | .describeConversionTasks => fun v => (Shape.ofValue v : Except String DescribeConversionTasksResult) + | .describeCustomerGateways => fun v => (Shape.ofValue v : Except String DescribeCustomerGatewaysResult) + | .describeDeclarativePoliciesReports => fun v => (Shape.ofValue v : Except String DescribeDeclarativePoliciesReportsResult) + | .describeDhcpOptions => fun v => (Shape.ofValue v : Except String DescribeDhcpOptionsResult) + | .describeEgressOnlyInternetGateways => fun v => (Shape.ofValue v : Except String DescribeEgressOnlyInternetGatewaysResult) + | .describeElasticGpus => fun v => (Shape.ofValue v : Except String DescribeElasticGpusResult) + | .describeExportImageTasks => fun v => (Shape.ofValue v : Except String DescribeExportImageTasksResult) + | .describeExportTasks => fun v => (Shape.ofValue v : Except String DescribeExportTasksResult) + | .describeFastLaunchImages => fun v => (Shape.ofValue v : Except String DescribeFastLaunchImagesResult) + | .describeFastSnapshotRestores => fun v => (Shape.ofValue v : Except String DescribeFastSnapshotRestoresResult) + | .describeFleetHistory => fun v => (Shape.ofValue v : Except String DescribeFleetHistoryResult) + | .describeFleetInstances => fun v => (Shape.ofValue v : Except String DescribeFleetInstancesResult) + | .describeFleets => fun v => (Shape.ofValue v : Except String DescribeFleetsResult) + | .describeFlowLogs => fun v => (Shape.ofValue v : Except String DescribeFlowLogsResult) + | .describeFpgaImageAttribute => fun v => (Shape.ofValue v : Except String DescribeFpgaImageAttributeResult) + | .describeFpgaImages => fun v => (Shape.ofValue v : Except String DescribeFpgaImagesResult) + | .describeHostReservationOfferings => fun v => (Shape.ofValue v : Except String DescribeHostReservationOfferingsResult) + | .describeHostReservations => fun v => (Shape.ofValue v : Except String DescribeHostReservationsResult) + | .describeHosts => fun v => (Shape.ofValue v : Except String DescribeHostsResult) + | .describeIamInstanceProfileAssociations => fun v => (Shape.ofValue v : Except String DescribeIamInstanceProfileAssociationsResult) + | .describeIdFormat => fun v => (Shape.ofValue v : Except String DescribeIdFormatResult) + | .describeIdentityIdFormat => fun v => (Shape.ofValue v : Except String DescribeIdentityIdFormatResult) + | .describeImageAttribute => fun v => (Shape.ofValue v : Except String ImageAttribute) + | .describeImageReferences => fun v => (Shape.ofValue v : Except String DescribeImageReferencesResult) + | .describeImageUsageReportEntries => fun v => (Shape.ofValue v : Except String DescribeImageUsageReportEntriesResult) + | .describeImageUsageReports => fun v => (Shape.ofValue v : Except String DescribeImageUsageReportsResult) + | .describeImages => fun v => (Shape.ofValue v : Except String DescribeImagesResult) + | .describeImportImageTasks => fun v => (Shape.ofValue v : Except String DescribeImportImageTasksResult) + | .describeImportSnapshotTasks => fun v => (Shape.ofValue v : Except String DescribeImportSnapshotTasksResult) + | .describeInstanceAttribute => fun v => (Shape.ofValue v : Except String InstanceAttribute) + | .describeInstanceConnectEndpoints => fun v => (Shape.ofValue v : Except String DescribeInstanceConnectEndpointsResult) + | .describeInstanceCreditSpecifications => fun v => (Shape.ofValue v : Except String DescribeInstanceCreditSpecificationsResult) + | .describeInstanceEventNotificationAttributes => fun v => (Shape.ofValue v : Except String DescribeInstanceEventNotificationAttributesResult) + | .describeInstanceEventWindows => fun v => (Shape.ofValue v : Except String DescribeInstanceEventWindowsResult) + | .describeInstanceImageMetadata => fun v => (Shape.ofValue v : Except String DescribeInstanceImageMetadataResult) + | .describeInstanceSqlHaHistoryStates => fun v => (Shape.ofValue v : Except String DescribeInstanceSqlHaHistoryStatesResult) + | .describeInstanceSqlHaStates => fun v => (Shape.ofValue v : Except String DescribeInstanceSqlHaStatesResult) + | .describeInstanceStatus => fun v => (Shape.ofValue v : Except String DescribeInstanceStatusResult) + | .describeInstanceTopology => fun v => (Shape.ofValue v : Except String DescribeInstanceTopologyResult) + | .describeInstanceTypeOfferings => fun v => (Shape.ofValue v : Except String DescribeInstanceTypeOfferingsResult) + | .describeInstanceTypes => fun v => (Shape.ofValue v : Except String DescribeInstanceTypesResult) + | .describeInstances => fun v => (Shape.ofValue v : Except String DescribeInstancesResult) + | .describeInternetGateways => fun v => (Shape.ofValue v : Except String DescribeInternetGatewaysResult) + | .describeIpamByoasn => fun v => (Shape.ofValue v : Except String DescribeIpamByoasnResult) + | .describeIpamExternalResourceVerificationTokens => fun v => (Shape.ofValue v : Except String DescribeIpamExternalResourceVerificationTokensResult) + | .describeIpamInternetRegistryAssociations => fun v => (Shape.ofValue v : Except String DescribeIpamInternetRegistryAssociationsResult) + | .describeIpamPolicies => fun v => (Shape.ofValue v : Except String DescribeIpamPoliciesResult) + | .describeIpamPoolAllocations => fun v => (Shape.ofValue v : Except String DescribeIpamPoolAllocationsResult) + | .describeIpamPools => fun v => (Shape.ofValue v : Except String DescribeIpamPoolsResult) + | .describeIpamPrefixListResolverTargets => fun v => (Shape.ofValue v : Except String DescribeIpamPrefixListResolverTargetsResult) + | .describeIpamPrefixListResolvers => fun v => (Shape.ofValue v : Except String DescribeIpamPrefixListResolversResult) + | .describeIpamResourceDiscoveries => fun v => (Shape.ofValue v : Except String DescribeIpamResourceDiscoveriesResult) + | .describeIpamResourceDiscoveryAssociations => fun v => (Shape.ofValue v : Except String DescribeIpamResourceDiscoveryAssociationsResult) + | .describeIpamScopes => fun v => (Shape.ofValue v : Except String DescribeIpamScopesResult) + | .describeIpams => fun v => (Shape.ofValue v : Except String DescribeIpamsResult) + | .describeIpv6Pools => fun v => (Shape.ofValue v : Except String DescribeIpv6PoolsResult) + | .describeKeyPairs => fun v => (Shape.ofValue v : Except String DescribeKeyPairsResult) + | .describeLaunchTemplateVersions => fun v => (Shape.ofValue v : Except String DescribeLaunchTemplateVersionsResult) + | .describeLaunchTemplates => fun v => (Shape.ofValue v : Except String DescribeLaunchTemplatesResult) + | .describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations => fun v => (Shape.ofValue v : Except String DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult) + | .describeLocalGatewayRouteTableVpcAssociations => fun v => (Shape.ofValue v : Except String DescribeLocalGatewayRouteTableVpcAssociationsResult) + | .describeLocalGatewayRouteTables => fun v => (Shape.ofValue v : Except String DescribeLocalGatewayRouteTablesResult) + | .describeLocalGatewayVirtualInterfaceGroups => fun v => (Shape.ofValue v : Except String DescribeLocalGatewayVirtualInterfaceGroupsResult) + | .describeLocalGatewayVirtualInterfaces => fun v => (Shape.ofValue v : Except String DescribeLocalGatewayVirtualInterfacesResult) + | .describeLocalGateways => fun v => (Shape.ofValue v : Except String DescribeLocalGatewaysResult) + | .describeLockedSnapshots => fun v => (Shape.ofValue v : Except String DescribeLockedSnapshotsResult) + | .describeMacHosts => fun v => (Shape.ofValue v : Except String DescribeMacHostsResult) + | .describeMacModificationTasks => fun v => (Shape.ofValue v : Except String DescribeMacModificationTasksResult) + | .describeManagedPrefixLists => fun v => (Shape.ofValue v : Except String DescribeManagedPrefixListsResult) + | .describeMetricCategories => fun v => (Shape.ofValue v : Except String DescribeMetricCategoriesResult) + | .describeMovingAddresses => fun v => (Shape.ofValue v : Except String DescribeMovingAddressesResult) + | .describeNatGateways => fun v => (Shape.ofValue v : Except String DescribeNatGatewaysResult) + | .describeNetworkAcls => fun v => (Shape.ofValue v : Except String DescribeNetworkAclsResult) + | .describeNetworkInsightsAccessScopeAnalyses => fun v => (Shape.ofValue v : Except String DescribeNetworkInsightsAccessScopeAnalysesResult) + | .describeNetworkInsightsAccessScopes => fun v => (Shape.ofValue v : Except String DescribeNetworkInsightsAccessScopesResult) + | .describeNetworkInsightsAnalyses => fun v => (Shape.ofValue v : Except String DescribeNetworkInsightsAnalysesResult) + | .describeNetworkInsightsPaths => fun v => (Shape.ofValue v : Except String DescribeNetworkInsightsPathsResult) + | .describeNetworkInterfaceAttribute => fun v => (Shape.ofValue v : Except String DescribeNetworkInterfaceAttributeResult) + | .describeNetworkInterfacePermissions => fun v => (Shape.ofValue v : Except String DescribeNetworkInterfacePermissionsResult) + | .describeNetworkInterfaces => fun v => (Shape.ofValue v : Except String DescribeNetworkInterfacesResult) + | .describeNetworkingFlexCostAllocationPolicies => fun v => (Shape.ofValue v : Except String DescribeNetworkingFlexCostAllocationPoliciesResult) + | .describeNetworkingFlexCostAllocationPolicyAssociations => fun v => (Shape.ofValue v : Except String DescribeNetworkingFlexCostAllocationPolicyAssociationsResult) + | .describeOutpostLags => fun v => (Shape.ofValue v : Except String DescribeOutpostLagsResult) + | .describePlacementGroups => fun v => (Shape.ofValue v : Except String DescribePlacementGroupsResult) + | .describePrefixLists => fun v => (Shape.ofValue v : Except String DescribePrefixListsResult) + | .describePrincipalIdFormat => fun v => (Shape.ofValue v : Except String DescribePrincipalIdFormatResult) + | .describePublicIpv4Pools => fun v => (Shape.ofValue v : Except String DescribePublicIpv4PoolsResult) + | .describeRegions => fun v => (Shape.ofValue v : Except String DescribeRegionsResult) + | .describeReplaceRootVolumeTasks => fun v => (Shape.ofValue v : Except String DescribeReplaceRootVolumeTasksResult) + | .describeReservedInstances => fun v => (Shape.ofValue v : Except String DescribeReservedInstancesResult) + | .describeReservedInstancesListings => fun v => (Shape.ofValue v : Except String DescribeReservedInstancesListingsResult) + | .describeReservedInstancesModifications => fun v => (Shape.ofValue v : Except String DescribeReservedInstancesModificationsResult) + | .describeReservedInstancesOfferings => fun v => (Shape.ofValue v : Except String DescribeReservedInstancesOfferingsResult) + | .describeRouteServerEndpoints => fun v => (Shape.ofValue v : Except String DescribeRouteServerEndpointsResult) + | .describeRouteServerPeers => fun v => (Shape.ofValue v : Except String DescribeRouteServerPeersResult) + | .describeRouteServers => fun v => (Shape.ofValue v : Except String DescribeRouteServersResult) + | .describeRouteTables => fun v => (Shape.ofValue v : Except String DescribeRouteTablesResult) + | .describeScheduledInstanceAvailability => fun v => (Shape.ofValue v : Except String DescribeScheduledInstanceAvailabilityResult) + | .describeScheduledInstances => fun v => (Shape.ofValue v : Except String DescribeScheduledInstancesResult) + | .describeSecondaryInterfaces => fun v => (Shape.ofValue v : Except String DescribeSecondaryInterfacesResult) + | .describeSecondaryNetworks => fun v => (Shape.ofValue v : Except String DescribeSecondaryNetworksResult) + | .describeSecondarySubnets => fun v => (Shape.ofValue v : Except String DescribeSecondarySubnetsResult) + | .describeSecurityGroupReferences => fun v => (Shape.ofValue v : Except String DescribeSecurityGroupReferencesResult) + | .describeSecurityGroupRules => fun v => (Shape.ofValue v : Except String DescribeSecurityGroupRulesResult) + | .describeSecurityGroupVpcAssociations => fun v => (Shape.ofValue v : Except String DescribeSecurityGroupVpcAssociationsResult) + | .describeSecurityGroups => fun v => (Shape.ofValue v : Except String DescribeSecurityGroupsResult) + | .describeServiceLinkVirtualInterfaces => fun v => (Shape.ofValue v : Except String DescribeServiceLinkVirtualInterfacesResult) + | .describeSnapshotAttribute => fun v => (Shape.ofValue v : Except String DescribeSnapshotAttributeResult) + | .describeSnapshotTierStatus => fun v => (Shape.ofValue v : Except String DescribeSnapshotTierStatusResult) + | .describeSnapshots => fun v => (Shape.ofValue v : Except String DescribeSnapshotsResult) + | .describeSpotDatafeedSubscription => fun v => (Shape.ofValue v : Except String DescribeSpotDatafeedSubscriptionResult) + | .describeSpotFleetInstances => fun v => (Shape.ofValue v : Except String DescribeSpotFleetInstancesResponse) + | .describeSpotFleetRequestHistory => fun v => (Shape.ofValue v : Except String DescribeSpotFleetRequestHistoryResponse) + | .describeSpotFleetRequests => fun v => (Shape.ofValue v : Except String DescribeSpotFleetRequestsResponse) + | .describeSpotInstanceRequests => fun v => (Shape.ofValue v : Except String DescribeSpotInstanceRequestsResult) + | .describeSpotPriceHistory => fun v => (Shape.ofValue v : Except String DescribeSpotPriceHistoryResult) + | .describeStaleSecurityGroups => fun v => (Shape.ofValue v : Except String DescribeStaleSecurityGroupsResult) + | .describeStoreImageTasks => fun v => (Shape.ofValue v : Except String DescribeStoreImageTasksResult) + | .describeSubnets => fun v => (Shape.ofValue v : Except String DescribeSubnetsResult) + | .describeTags => fun v => (Shape.ofValue v : Except String DescribeTagsResult) + | .describeTrafficMirrorFilterRules => fun v => (Shape.ofValue v : Except String DescribeTrafficMirrorFilterRulesResult) + | .describeTrafficMirrorFilters => fun v => (Shape.ofValue v : Except String DescribeTrafficMirrorFiltersResult) + | .describeTrafficMirrorSessions => fun v => (Shape.ofValue v : Except String DescribeTrafficMirrorSessionsResult) + | .describeTrafficMirrorTargets => fun v => (Shape.ofValue v : Except String DescribeTrafficMirrorTargetsResult) + | .describeTransitGatewayAttachments => fun v => (Shape.ofValue v : Except String DescribeTransitGatewayAttachmentsResult) + | .describeTransitGatewayConnectPeers => fun v => (Shape.ofValue v : Except String DescribeTransitGatewayConnectPeersResult) + | .describeTransitGatewayConnects => fun v => (Shape.ofValue v : Except String DescribeTransitGatewayConnectsResult) + | .describeTransitGatewayMeteringPolicies => fun v => (Shape.ofValue v : Except String DescribeTransitGatewayMeteringPoliciesResult) + | .describeTransitGatewayMulticastDomains => fun v => (Shape.ofValue v : Except String DescribeTransitGatewayMulticastDomainsResult) + | .describeTransitGatewayNetworkFunctionAttachments => fun v => (Shape.ofValue v : Except String DescribeTransitGatewayNetworkFunctionAttachmentsResult) + | .describeTransitGatewayPeeringAttachments => fun v => (Shape.ofValue v : Except String DescribeTransitGatewayPeeringAttachmentsResult) + | .describeTransitGatewayPolicyTables => fun v => (Shape.ofValue v : Except String DescribeTransitGatewayPolicyTablesResult) + | .describeTransitGatewayRouteTableAnnouncements => fun v => (Shape.ofValue v : Except String DescribeTransitGatewayRouteTableAnnouncementsResult) + | .describeTransitGatewayRouteTables => fun v => (Shape.ofValue v : Except String DescribeTransitGatewayRouteTablesResult) + | .describeTransitGatewayVpcAttachments => fun v => (Shape.ofValue v : Except String DescribeTransitGatewayVpcAttachmentsResult) + | .describeTransitGateways => fun v => (Shape.ofValue v : Except String DescribeTransitGatewaysResult) + | .describeTrunkInterfaceAssociations => fun v => (Shape.ofValue v : Except String DescribeTrunkInterfaceAssociationsResult) + | .describeVerifiedAccessEndpoints => fun v => (Shape.ofValue v : Except String DescribeVerifiedAccessEndpointsResult) + | .describeVerifiedAccessGroups => fun v => (Shape.ofValue v : Except String DescribeVerifiedAccessGroupsResult) + | .describeVerifiedAccessInstanceLoggingConfigurations => fun v => (Shape.ofValue v : Except String DescribeVerifiedAccessInstanceLoggingConfigurationsResult) + | .describeVerifiedAccessInstances => fun v => (Shape.ofValue v : Except String DescribeVerifiedAccessInstancesResult) + | .describeVerifiedAccessTrustProviders => fun v => (Shape.ofValue v : Except String DescribeVerifiedAccessTrustProvidersResult) + | .describeVolumeAttribute => fun v => (Shape.ofValue v : Except String DescribeVolumeAttributeResult) + | .describeVolumeStatus => fun v => (Shape.ofValue v : Except String DescribeVolumeStatusResult) + | .describeVolumes => fun v => (Shape.ofValue v : Except String DescribeVolumesResult) + | .describeVolumesModifications => fun v => (Shape.ofValue v : Except String DescribeVolumesModificationsResult) + | .describeVpcAttribute => fun v => (Shape.ofValue v : Except String DescribeVpcAttributeResult) + | .describeVpcBlockPublicAccessExclusions => fun v => (Shape.ofValue v : Except String DescribeVpcBlockPublicAccessExclusionsResult) + | .describeVpcBlockPublicAccessOptions => fun v => (Shape.ofValue v : Except String DescribeVpcBlockPublicAccessOptionsResult) + | .describeVpcClassicLink => fun v => (Shape.ofValue v : Except String DescribeVpcClassicLinkResult) + | .describeVpcClassicLinkDnsSupport => fun v => (Shape.ofValue v : Except String DescribeVpcClassicLinkDnsSupportResult) + | .describeVpcEncryptionControls => fun v => (Shape.ofValue v : Except String DescribeVpcEncryptionControlsResult) + | .describeVpcEndpointAssociations => fun v => (Shape.ofValue v : Except String DescribeVpcEndpointAssociationsResult) + | .describeVpcEndpointConnectionNotifications => fun v => (Shape.ofValue v : Except String DescribeVpcEndpointConnectionNotificationsResult) + | .describeVpcEndpointConnections => fun v => (Shape.ofValue v : Except String DescribeVpcEndpointConnectionsResult) + | .describeVpcEndpointServiceConfigurations => fun v => (Shape.ofValue v : Except String DescribeVpcEndpointServiceConfigurationsResult) + | .describeVpcEndpointServicePermissions => fun v => (Shape.ofValue v : Except String DescribeVpcEndpointServicePermissionsResult) + | .describeVpcEndpointServices => fun v => (Shape.ofValue v : Except String DescribeVpcEndpointServicesResult) + | .describeVpcEndpoints => fun v => (Shape.ofValue v : Except String DescribeVpcEndpointsResult) + | .describeVpcPeeringConnections => fun v => (Shape.ofValue v : Except String DescribeVpcPeeringConnectionsResult) + | .describeVpcs => fun v => (Shape.ofValue v : Except String DescribeVpcsResult) + | .describeVpnConcentrators => fun v => (Shape.ofValue v : Except String DescribeVpnConcentratorsResult) + | .describeVpnConnections => fun v => (Shape.ofValue v : Except String DescribeVpnConnectionsResult) + | .describeVpnGateways => fun v => (Shape.ofValue v : Except String DescribeVpnGatewaysResult) + | .detachClassicLinkVpc => fun v => (Shape.ofValue v : Except String DetachClassicLinkVpcResult) + | .detachImageWatermark => fun v => (Shape.ofValue v : Except String DetachImageWatermarkResult) + | .detachInternetGateway => fun v => (Shape.ofValue v : Except String Unit) + | .detachNetworkInterface => fun v => (Shape.ofValue v : Except String Unit) + | .detachVerifiedAccessTrustProvider => fun v => (Shape.ofValue v : Except String DetachVerifiedAccessTrustProviderResult) + | .detachVolume => fun v => (Shape.ofValue v : Except String VolumeAttachment) + | .detachVpnGateway => fun v => (Shape.ofValue v : Except String Unit) + | .disableAddressTransfer => fun v => (Shape.ofValue v : Except String DisableAddressTransferResult) + | .disableAllowedImagesSettings => fun v => (Shape.ofValue v : Except String DisableAllowedImagesSettingsResult) + | .disableApplicationStatusCheckSuppression => fun v => (Shape.ofValue v : Except String DisableApplicationStatusCheckSuppressionResult) + | .disableAwsNetworkPerformanceMetricSubscription => fun v => (Shape.ofValue v : Except String DisableAwsNetworkPerformanceMetricSubscriptionResult) + | .disableCapacityManager => fun v => (Shape.ofValue v : Except String DisableCapacityManagerResult) + | .disableEbsEncryptionByDefault => fun v => (Shape.ofValue v : Except String DisableEbsEncryptionByDefaultResult) + | .disableFastLaunch => fun v => (Shape.ofValue v : Except String DisableFastLaunchResult) + | .disableFastSnapshotRestores => fun v => (Shape.ofValue v : Except String DisableFastSnapshotRestoresResult) + | .disableImage => fun v => (Shape.ofValue v : Except String DisableImageResult) + | .disableImageBlockPublicAccess => fun v => (Shape.ofValue v : Except String DisableImageBlockPublicAccessResult) + | .disableImageDeprecation => fun v => (Shape.ofValue v : Except String DisableImageDeprecationResult) + | .disableImageDeregistrationProtection => fun v => (Shape.ofValue v : Except String DisableImageDeregistrationProtectionResult) + | .disableInstanceSqlHaStandbyDetections => fun v => (Shape.ofValue v : Except String DisableInstanceSqlHaStandbyDetectionsResult) + | .disableIpamOrganizationAdminAccount => fun v => (Shape.ofValue v : Except String DisableIpamOrganizationAdminAccountResult) + | .disableIpamPolicy => fun v => (Shape.ofValue v : Except String DisableIpamPolicyResult) + | .disableRouteServerPropagation => fun v => (Shape.ofValue v : Except String DisableRouteServerPropagationResult) + | .disableSerialConsoleAccess => fun v => (Shape.ofValue v : Except String DisableSerialConsoleAccessResult) + | .disableSnapshotBlockPublicAccess => fun v => (Shape.ofValue v : Except String DisableSnapshotBlockPublicAccessResult) + | .disableTransitGatewayRouteTablePropagation => fun v => (Shape.ofValue v : Except String DisableTransitGatewayRouteTablePropagationResult) + | .disableVgwRoutePropagation => fun v => (Shape.ofValue v : Except String Unit) + | .disableVpcClassicLink => fun v => (Shape.ofValue v : Except String DisableVpcClassicLinkResult) + | .disableVpcClassicLinkDnsSupport => fun v => (Shape.ofValue v : Except String DisableVpcClassicLinkDnsSupportResult) + | .disassociateAddress => fun v => (Shape.ofValue v : Except String Unit) + | .disassociateApplicationStatusCheck => fun v => (Shape.ofValue v : Except String DisassociateApplicationStatusCheckResult) + | .disassociateCapacityReservationBillingOwner => fun v => (Shape.ofValue v : Except String DisassociateCapacityReservationBillingOwnerResult) + | .disassociateClientVpnTargetNetwork => fun v => (Shape.ofValue v : Except String DisassociateClientVpnTargetNetworkResult) + | .disassociateEnclaveCertificateIamRole => fun v => (Shape.ofValue v : Except String DisassociateEnclaveCertificateIamRoleResult) + | .disassociateIamInstanceProfile => fun v => (Shape.ofValue v : Except String DisassociateIamInstanceProfileResult) + | .disassociateInstanceEventWindow => fun v => (Shape.ofValue v : Except String DisassociateInstanceEventWindowResult) + | .disassociateIpamByoasn => fun v => (Shape.ofValue v : Except String DisassociateIpamByoasnResult) + | .disassociateIpamResourceDiscovery => fun v => (Shape.ofValue v : Except String DisassociateIpamResourceDiscoveryResult) + | .disassociateKmsKeyId => fun v => (Shape.ofValue v : Except String DisassociateKmsKeyIdResult) + | .disassociateNatGatewayAddress => fun v => (Shape.ofValue v : Except String DisassociateNatGatewayAddressResult) + | .disassociateNetworkingFlexCostAllocationPolicy => fun v => (Shape.ofValue v : Except String DisassociateNetworkingFlexCostAllocationPolicyResult) + | .disassociateRouteServer => fun v => (Shape.ofValue v : Except String DisassociateRouteServerResult) + | .disassociateRouteTable => fun v => (Shape.ofValue v : Except String Unit) + | .disassociateSecurityGroupVpc => fun v => (Shape.ofValue v : Except String DisassociateSecurityGroupVpcResult) + | .disassociateSubnetCidrBlock => fun v => (Shape.ofValue v : Except String DisassociateSubnetCidrBlockResult) + | .disassociateTransitGatewayMulticastDomain => fun v => (Shape.ofValue v : Except String DisassociateTransitGatewayMulticastDomainResult) + | .disassociateTransitGatewayPolicyTable => fun v => (Shape.ofValue v : Except String DisassociateTransitGatewayPolicyTableResult) + | .disassociateTransitGatewayRouteTable => fun v => (Shape.ofValue v : Except String DisassociateTransitGatewayRouteTableResult) + | .disassociateTrunkInterface => fun v => (Shape.ofValue v : Except String DisassociateTrunkInterfaceResult) + | .disassociateVpcCidrBlock => fun v => (Shape.ofValue v : Except String DisassociateVpcCidrBlockResult) + | .enableAddressTransfer => fun v => (Shape.ofValue v : Except String EnableAddressTransferResult) + | .enableAllowedImagesSettings => fun v => (Shape.ofValue v : Except String EnableAllowedImagesSettingsResult) + | .enableApplicationStatusCheckSuppression => fun v => (Shape.ofValue v : Except String EnableApplicationStatusCheckSuppressionResult) + | .enableAwsNetworkPerformanceMetricSubscription => fun v => (Shape.ofValue v : Except String EnableAwsNetworkPerformanceMetricSubscriptionResult) + | .enableCapacityManager => fun v => (Shape.ofValue v : Except String EnableCapacityManagerResult) + | .enableEbsEncryptionByDefault => fun v => (Shape.ofValue v : Except String EnableEbsEncryptionByDefaultResult) + | .enableFastLaunch => fun v => (Shape.ofValue v : Except String EnableFastLaunchResult) + | .enableFastSnapshotRestores => fun v => (Shape.ofValue v : Except String EnableFastSnapshotRestoresResult) + | .enableImage => fun v => (Shape.ofValue v : Except String EnableImageResult) + | .enableImageBlockPublicAccess => fun v => (Shape.ofValue v : Except String EnableImageBlockPublicAccessResult) + | .enableImageDeprecation => fun v => (Shape.ofValue v : Except String EnableImageDeprecationResult) + | .enableImageDeregistrationProtection => fun v => (Shape.ofValue v : Except String EnableImageDeregistrationProtectionResult) + | .enableInstanceSqlHaStandbyDetections => fun v => (Shape.ofValue v : Except String EnableInstanceSqlHaStandbyDetectionsResult) + | .enableIpamInternetRegistryAssociation => fun v => (Shape.ofValue v : Except String EnableIpamInternetRegistryAssociationResult) + | .enableIpamOrganizationAdminAccount => fun v => (Shape.ofValue v : Except String EnableIpamOrganizationAdminAccountResult) + | .enableIpamPolicy => fun v => (Shape.ofValue v : Except String EnableIpamPolicyResult) + | .enableReachabilityAnalyzerOrganizationSharing => fun v => (Shape.ofValue v : Except String EnableReachabilityAnalyzerOrganizationSharingResult) + | .enableRouteServerPropagation => fun v => (Shape.ofValue v : Except String EnableRouteServerPropagationResult) + | .enableSerialConsoleAccess => fun v => (Shape.ofValue v : Except String EnableSerialConsoleAccessResult) + | .enableSnapshotBlockPublicAccess => fun v => (Shape.ofValue v : Except String EnableSnapshotBlockPublicAccessResult) + | .enableTransitGatewayRouteTablePropagation => fun v => (Shape.ofValue v : Except String EnableTransitGatewayRouteTablePropagationResult) + | .enableVgwRoutePropagation => fun v => (Shape.ofValue v : Except String Unit) + | .enableVolumeIO => fun v => (Shape.ofValue v : Except String Unit) + | .enableVpcClassicLink => fun v => (Shape.ofValue v : Except String EnableVpcClassicLinkResult) + | .enableVpcClassicLinkDnsSupport => fun v => (Shape.ofValue v : Except String EnableVpcClassicLinkDnsSupportResult) + | .exportClientVpnClientCertificateRevocationList => fun v => (Shape.ofValue v : Except String ExportClientVpnClientCertificateRevocationListResult) + | .exportClientVpnClientConfiguration => fun v => (Shape.ofValue v : Except String ExportClientVpnClientConfigurationResult) + | .exportImage => fun v => (Shape.ofValue v : Except String ExportImageResult) + | .exportTransitGatewayRoutes => fun v => (Shape.ofValue v : Except String ExportTransitGatewayRoutesResult) + | .exportVerifiedAccessInstanceClientConfiguration => fun v => (Shape.ofValue v : Except String ExportVerifiedAccessInstanceClientConfigurationResult) + | .getActiveVpnTunnelStatus => fun v => (Shape.ofValue v : Except String GetActiveVpnTunnelStatusResult) + | .getAllowedImagesSettings => fun v => (Shape.ofValue v : Except String GetAllowedImagesSettingsResult) + | .getAssociatedEnclaveCertificateIamRoles => fun v => (Shape.ofValue v : Except String GetAssociatedEnclaveCertificateIamRolesResult) + | .getAssociatedIpv6PoolCidrs => fun v => (Shape.ofValue v : Except String GetAssociatedIpv6PoolCidrsResult) + | .getAwsNetworkPerformanceData => fun v => (Shape.ofValue v : Except String GetAwsNetworkPerformanceDataResult) + | .getCapacityManagerAttributes => fun v => (Shape.ofValue v : Except String GetCapacityManagerAttributesResult) + | .getCapacityManagerMetricData => fun v => (Shape.ofValue v : Except String GetCapacityManagerMetricDataResult) + | .getCapacityManagerMetricDimensions => fun v => (Shape.ofValue v : Except String GetCapacityManagerMetricDimensionsResult) + | .getCapacityManagerMonitoredTagKeys => fun v => (Shape.ofValue v : Except String GetCapacityManagerMonitoredTagKeysResult) + | .getCapacityManagerSupportabilityScores => fun v => (Shape.ofValue v : Except String GetCapacityManagerSupportabilityScoresResult) + | .getCapacityReservationUsage => fun v => (Shape.ofValue v : Except String GetCapacityReservationUsageResult) + | .getClientVpnEndpointAuthorizationPolicy => fun v => (Shape.ofValue v : Except String GetClientVpnEndpointAuthorizationPolicyResult) + | .getCoipPoolUsage => fun v => (Shape.ofValue v : Except String GetCoipPoolUsageResult) + | .getConsoleOutput => fun v => (Shape.ofValue v : Except String GetConsoleOutputResult) + | .getConsoleScreenshot => fun v => (Shape.ofValue v : Except String GetConsoleScreenshotResult) + | .getDeclarativePoliciesReportSummary => fun v => (Shape.ofValue v : Except String GetDeclarativePoliciesReportSummaryResult) + | .getDefaultCreditSpecification => fun v => (Shape.ofValue v : Except String GetDefaultCreditSpecificationResult) + | .getEbsDefaultKmsKeyId => fun v => (Shape.ofValue v : Except String GetEbsDefaultKmsKeyIdResult) + | .getEbsEncryptionByDefault => fun v => (Shape.ofValue v : Except String GetEbsEncryptionByDefaultResult) + | .getEnabledIpamPolicy => fun v => (Shape.ofValue v : Except String GetEnabledIpamPolicyResult) + | .getFlowLogsIntegrationTemplate => fun v => (Shape.ofValue v : Except String GetFlowLogsIntegrationTemplateResult) + | .getGroupsForCapacityReservation => fun v => (Shape.ofValue v : Except String GetGroupsForCapacityReservationResult) + | .getHostReservationPurchasePreview => fun v => (Shape.ofValue v : Except String GetHostReservationPurchasePreviewResult) + | .getImageAncestry => fun v => (Shape.ofValue v : Except String GetImageAncestryResult) + | .getImageBlockPublicAccessState => fun v => (Shape.ofValue v : Except String GetImageBlockPublicAccessStateResult) + | .getImageFindings => fun v => (Shape.ofValue v : Except String GetImageFindingsResult) + | .getInstanceMetadataDefaults => fun v => (Shape.ofValue v : Except String GetInstanceMetadataDefaultsResult) + | .getInstanceTpmEkPub => fun v => (Shape.ofValue v : Except String GetInstanceTpmEkPubResult) + | .getInstanceTypesFromInstanceRequirements => fun v => (Shape.ofValue v : Except String GetInstanceTypesFromInstanceRequirementsResult) + | .getInstanceUefiData => fun v => (Shape.ofValue v : Except String GetInstanceUefiDataResult) + | .getIpamAddressHistory => fun v => (Shape.ofValue v : Except String GetIpamAddressHistoryResult) + | .getIpamDiscoveredAccounts => fun v => (Shape.ofValue v : Except String GetIpamDiscoveredAccountsResult) + | .getIpamDiscoveredPublicAddresses => fun v => (Shape.ofValue v : Except String GetIpamDiscoveredPublicAddressesResult) + | .getIpamDiscoveredResourceCidrs => fun v => (Shape.ofValue v : Except String GetIpamDiscoveredResourceCidrsResult) + | .getIpamDiscoveredRoutes => fun v => (Shape.ofValue v : Except String GetIpamDiscoveredRoutesResult) + | .getIpamInternetRegistryAssociationAsns => fun v => (Shape.ofValue v : Except String GetIpamInternetRegistryAssociationAsnsResult) + | .getIpamInternetRegistryAssociationCidrs => fun v => (Shape.ofValue v : Except String GetIpamInternetRegistryAssociationCidrsResult) + | .getIpamPolicyAllocationRules => fun v => (Shape.ofValue v : Except String GetIpamPolicyAllocationRulesResult) + | .getIpamPolicyOrganizationTargets => fun v => (Shape.ofValue v : Except String GetIpamPolicyOrganizationTargetsResult) + | .getIpamPoolAllocations => fun v => (Shape.ofValue v : Except String GetIpamPoolAllocationsResult) + | .getIpamPoolCidrs => fun v => (Shape.ofValue v : Except String GetIpamPoolCidrsResult) + | .getIpamPrefixListResolverRules => fun v => (Shape.ofValue v : Except String GetIpamPrefixListResolverRulesResult) + | .getIpamPrefixListResolverVersionEntries => fun v => (Shape.ofValue v : Except String GetIpamPrefixListResolverVersionEntriesResult) + | .getIpamPrefixListResolverVersions => fun v => (Shape.ofValue v : Except String GetIpamPrefixListResolverVersionsResult) + | .getIpamResourceCidrs => fun v => (Shape.ofValue v : Except String GetIpamResourceCidrsResult) + | .getIpamRouteOriginAuthorizations => fun v => (Shape.ofValue v : Except String GetIpamRouteOriginAuthorizationsResult) + | .getIpamRouteProtectionFindings => fun v => (Shape.ofValue v : Except String GetIpamRouteProtectionFindingsResult) + | .getIpamRoutingPolicyRegistrationDeltas => fun v => (Shape.ofValue v : Except String GetIpamRoutingPolicyRegistrationDeltasResult) + | .getIpamRoutingPolicyRegistrations => fun v => (Shape.ofValue v : Except String GetIpamRoutingPolicyRegistrationsResult) + | .getLaunchTemplateData => fun v => (Shape.ofValue v : Except String GetLaunchTemplateDataResult) + | .getManagedPrefixListAssociations => fun v => (Shape.ofValue v : Except String GetManagedPrefixListAssociationsResult) + | .getManagedPrefixListEntries => fun v => (Shape.ofValue v : Except String GetManagedPrefixListEntriesResult) + | .getManagedResourceVisibility => fun v => (Shape.ofValue v : Except String GetManagedResourceVisibilityResult) + | .getNetworkInsightsAccessScopeAnalysisFindings => fun v => (Shape.ofValue v : Except String GetNetworkInsightsAccessScopeAnalysisFindingsResult) + | .getNetworkInsightsAccessScopeContent => fun v => (Shape.ofValue v : Except String GetNetworkInsightsAccessScopeContentResult) + | .getNetworkingFlexCostAllocationPolicyVersions => fun v => (Shape.ofValue v : Except String GetNetworkingFlexCostAllocationPolicyVersionsResult) + | .getPasswordData => fun v => (Shape.ofValue v : Except String GetPasswordDataResult) + | .getReservedInstancesExchangeQuote => fun v => (Shape.ofValue v : Except String GetReservedInstancesExchangeQuoteResult) + | .getRouteServerAssociations => fun v => (Shape.ofValue v : Except String GetRouteServerAssociationsResult) + | .getRouteServerPropagations => fun v => (Shape.ofValue v : Except String GetRouteServerPropagationsResult) + | .getRouteServerRoutingDatabase => fun v => (Shape.ofValue v : Except String GetRouteServerRoutingDatabaseResult) + | .getSecurityGroupsForVpc => fun v => (Shape.ofValue v : Except String GetSecurityGroupsForVpcResult) + | .getSerialConsoleAccessStatus => fun v => (Shape.ofValue v : Except String GetSerialConsoleAccessStatusResult) + | .getSnapshotBlockPublicAccessState => fun v => (Shape.ofValue v : Except String GetSnapshotBlockPublicAccessStateResult) + | .getSpotPlacementScores => fun v => (Shape.ofValue v : Except String GetSpotPlacementScoresResult) + | .getSubnetCidrReservations => fun v => (Shape.ofValue v : Except String GetSubnetCidrReservationsResult) + | .getTransitGatewayAttachmentNatConfiguration => fun v => (Shape.ofValue v : Except String GetTransitGatewayAttachmentNatConfigurationResult) + | .getTransitGatewayAttachmentPropagations => fun v => (Shape.ofValue v : Except String GetTransitGatewayAttachmentPropagationsResult) + | .getTransitGatewayMeteringPolicyEntries => fun v => (Shape.ofValue v : Except String GetTransitGatewayMeteringPolicyEntriesResult) + | .getTransitGatewayMulticastDomainAssociations => fun v => (Shape.ofValue v : Except String GetTransitGatewayMulticastDomainAssociationsResult) + | .getTransitGatewayPolicyTableAssociations => fun v => (Shape.ofValue v : Except String GetTransitGatewayPolicyTableAssociationsResult) + | .getTransitGatewayPolicyTableEntries => fun v => (Shape.ofValue v : Except String GetTransitGatewayPolicyTableEntriesResult) + | .getTransitGatewayPrefixListReferences => fun v => (Shape.ofValue v : Except String GetTransitGatewayPrefixListReferencesResult) + | .getTransitGatewayRouteTableAssociations => fun v => (Shape.ofValue v : Except String GetTransitGatewayRouteTableAssociationsResult) + | .getTransitGatewayRouteTablePropagations => fun v => (Shape.ofValue v : Except String GetTransitGatewayRouteTablePropagationsResult) + | .getVerifiedAccessEndpointPolicy => fun v => (Shape.ofValue v : Except String GetVerifiedAccessEndpointPolicyResult) + | .getVerifiedAccessEndpointTargets => fun v => (Shape.ofValue v : Except String GetVerifiedAccessEndpointTargetsResult) + | .getVerifiedAccessGroupPolicy => fun v => (Shape.ofValue v : Except String GetVerifiedAccessGroupPolicyResult) + | .getVpcResourcesBlockingEncryptionEnforcement => fun v => (Shape.ofValue v : Except String GetVpcResourcesBlockingEncryptionEnforcementResult) + | .getVpnConnectionDeviceSampleConfiguration => fun v => (Shape.ofValue v : Except String GetVpnConnectionDeviceSampleConfigurationResult) + | .getVpnConnectionDeviceTypes => fun v => (Shape.ofValue v : Except String GetVpnConnectionDeviceTypesResult) + | .getVpnTunnelReplacementStatus => fun v => (Shape.ofValue v : Except String GetVpnTunnelReplacementStatusResult) + | .importClientVpnClientCertificateRevocationList => fun v => (Shape.ofValue v : Except String ImportClientVpnClientCertificateRevocationListResult) + | .importImage => fun v => (Shape.ofValue v : Except String ImportImageResult) + | .importInstance => fun v => (Shape.ofValue v : Except String ImportInstanceResult) + | .importKeyPair => fun v => (Shape.ofValue v : Except String ImportKeyPairResult) + | .importSnapshot => fun v => (Shape.ofValue v : Except String ImportSnapshotResult) + | .importVolume => fun v => (Shape.ofValue v : Except String ImportVolumeResult) + | .listImagesInRecycleBin => fun v => (Shape.ofValue v : Except String ListImagesInRecycleBinResult) + | .listSnapshotsInRecycleBin => fun v => (Shape.ofValue v : Except String ListSnapshotsInRecycleBinResult) + | .listVolumesInRecycleBin => fun v => (Shape.ofValue v : Except String ListVolumesInRecycleBinResult) + | .lockSnapshot => fun v => (Shape.ofValue v : Except String LockSnapshotResult) + | .modifyAccountVpcEncryptionControl => fun v => (Shape.ofValue v : Except String ModifyAccountVpcEncryptionControlResult) + | .modifyAddressAttribute => fun v => (Shape.ofValue v : Except String ModifyAddressAttributeResult) + | .modifyApplicationStatusCheck => fun v => (Shape.ofValue v : Except String ModifyApplicationStatusCheckResult) + | .modifyAvailabilityZoneGroup => fun v => (Shape.ofValue v : Except String ModifyAvailabilityZoneGroupResult) + | .modifyCapacityReservation => fun v => (Shape.ofValue v : Except String ModifyCapacityReservationResult) + | .modifyCapacityReservationFleet => fun v => (Shape.ofValue v : Except String ModifyCapacityReservationFleetResult) + | .modifyClientVpnEndpoint => fun v => (Shape.ofValue v : Except String ModifyClientVpnEndpointResult) + | .modifyClientVpnEndpointAuthorizationPolicy => fun v => (Shape.ofValue v : Except String ModifyClientVpnEndpointAuthorizationPolicyResult) + | .modifyDefaultCreditSpecification => fun v => (Shape.ofValue v : Except String ModifyDefaultCreditSpecificationResult) + | .modifyEbsDefaultKmsKeyId => fun v => (Shape.ofValue v : Except String ModifyEbsDefaultKmsKeyIdResult) + | .modifyFleet => fun v => (Shape.ofValue v : Except String ModifyFleetResult) + | .modifyFpgaImageAttribute => fun v => (Shape.ofValue v : Except String ModifyFpgaImageAttributeResult) + | .modifyHosts => fun v => (Shape.ofValue v : Except String ModifyHostsResult) + | .modifyIdFormat => fun v => (Shape.ofValue v : Except String Unit) + | .modifyIdentityIdFormat => fun v => (Shape.ofValue v : Except String Unit) + | .modifyImageAttribute => fun v => (Shape.ofValue v : Except String Unit) + | .modifyInstanceAttribute => fun v => (Shape.ofValue v : Except String Unit) + | .modifyInstanceCapacityReservationAttributes => fun v => (Shape.ofValue v : Except String ModifyInstanceCapacityReservationAttributesResult) + | .modifyInstanceConnectEndpoint => fun v => (Shape.ofValue v : Except String ModifyInstanceConnectEndpointResult) + | .modifyInstanceCpuOptions => fun v => (Shape.ofValue v : Except String ModifyInstanceCpuOptionsResult) + | .modifyInstanceCreditSpecification => fun v => (Shape.ofValue v : Except String ModifyInstanceCreditSpecificationResult) + | .modifyInstanceEventStartTime => fun v => (Shape.ofValue v : Except String ModifyInstanceEventStartTimeResult) + | .modifyInstanceEventWindow => fun v => (Shape.ofValue v : Except String ModifyInstanceEventWindowResult) + | .modifyInstanceMaintenanceOptions => fun v => (Shape.ofValue v : Except String ModifyInstanceMaintenanceOptionsResult) + | .modifyInstanceMetadataDefaults => fun v => (Shape.ofValue v : Except String ModifyInstanceMetadataDefaultsResult) + | .modifyInstanceMetadataOptions => fun v => (Shape.ofValue v : Except String ModifyInstanceMetadataOptionsResult) + | .modifyInstanceNetworkPerformanceOptions => fun v => (Shape.ofValue v : Except String ModifyInstanceNetworkPerformanceResult) + | .modifyInstancePlacement => fun v => (Shape.ofValue v : Except String ModifyInstancePlacementResult) + | .modifyIpam => fun v => (Shape.ofValue v : Except String ModifyIpamResult) + | .modifyIpamPolicyAllocationRules => fun v => (Shape.ofValue v : Except String ModifyIpamPolicyAllocationRulesResult) + | .modifyIpamPool => fun v => (Shape.ofValue v : Except String ModifyIpamPoolResult) + | .modifyIpamPoolAllocation => fun v => (Shape.ofValue v : Except String ModifyIpamPoolAllocationResult) + | .modifyIpamPrefixListResolver => fun v => (Shape.ofValue v : Except String ModifyIpamPrefixListResolverResult) + | .modifyIpamPrefixListResolverTarget => fun v => (Shape.ofValue v : Except String ModifyIpamPrefixListResolverTargetResult) + | .modifyIpamResourceCidr => fun v => (Shape.ofValue v : Except String ModifyIpamResourceCidrResult) + | .modifyIpamResourceDiscovery => fun v => (Shape.ofValue v : Except String ModifyIpamResourceDiscoveryResult) + | .modifyIpamRoutingPolicyRegistration => fun v => (Shape.ofValue v : Except String ModifyIpamRoutingPolicyRegistrationResult) + | .modifyIpamScope => fun v => (Shape.ofValue v : Except String ModifyIpamScopeResult) + | .modifyLaunchTemplate => fun v => (Shape.ofValue v : Except String ModifyLaunchTemplateResult) + | .modifyLocalGatewayRoute => fun v => (Shape.ofValue v : Except String ModifyLocalGatewayRouteResult) + | .modifyManagedPrefixList => fun v => (Shape.ofValue v : Except String ModifyManagedPrefixListResult) + | .modifyManagedResourceVisibility => fun v => (Shape.ofValue v : Except String ModifyManagedResourceVisibilityResult) + | .modifyMetricCategory => fun v => (Shape.ofValue v : Except String ModifyMetricCategoryResult) + | .modifyNetworkInterfaceAttribute => fun v => (Shape.ofValue v : Except String Unit) + | .modifyNetworkingFlexCostAllocationPolicy => fun v => (Shape.ofValue v : Except String ModifyNetworkingFlexCostAllocationPolicyResult) + | .modifyPrivateDnsNameOptions => fun v => (Shape.ofValue v : Except String ModifyPrivateDnsNameOptionsResult) + | .modifyPublicIpDnsNameOptions => fun v => (Shape.ofValue v : Except String ModifyPublicIpDnsNameOptionsResult) + | .modifyReservedInstances => fun v => (Shape.ofValue v : Except String ModifyReservedInstancesResult) + | .modifyRouteServer => fun v => (Shape.ofValue v : Except String ModifyRouteServerResult) + | .modifySecurityGroupRules => fun v => (Shape.ofValue v : Except String ModifySecurityGroupRulesResult) + | .modifySnapshotAttribute => fun v => (Shape.ofValue v : Except String Unit) + | .modifySnapshotTier => fun v => (Shape.ofValue v : Except String ModifySnapshotTierResult) + | .modifySpotFleetRequest => fun v => (Shape.ofValue v : Except String ModifySpotFleetRequestResponse) + | .modifySubnetAttribute => fun v => (Shape.ofValue v : Except String Unit) + | .modifyTrafficMirrorFilterNetworkServices => fun v => (Shape.ofValue v : Except String ModifyTrafficMirrorFilterNetworkServicesResult) + | .modifyTrafficMirrorFilterRule => fun v => (Shape.ofValue v : Except String ModifyTrafficMirrorFilterRuleResult) + | .modifyTrafficMirrorSession => fun v => (Shape.ofValue v : Except String ModifyTrafficMirrorSessionResult) + | .modifyTransitGateway => fun v => (Shape.ofValue v : Except String ModifyTransitGatewayResult) + | .modifyTransitGatewayAttachmentNatConfiguration => fun v => (Shape.ofValue v : Except String ModifyTransitGatewayAttachmentNatConfigurationResult) + | .modifyTransitGatewayMeteringPolicy => fun v => (Shape.ofValue v : Except String ModifyTransitGatewayMeteringPolicyResult) + | .modifyTransitGatewayNetworkFunctionAttachment => fun v => (Shape.ofValue v : Except String ModifyTransitGatewayNetworkFunctionAttachmentResult) + | .modifyTransitGatewayPeeringAttachment => fun v => (Shape.ofValue v : Except String ModifyTransitGatewayPeeringAttachmentResult) + | .modifyTransitGatewayPolicyTableEntry => fun v => (Shape.ofValue v : Except String ModifyTransitGatewayPolicyTableEntryResult) + | .modifyTransitGatewayPrefixListReference => fun v => (Shape.ofValue v : Except String ModifyTransitGatewayPrefixListReferenceResult) + | .modifyTransitGatewayVpcAttachment => fun v => (Shape.ofValue v : Except String ModifyTransitGatewayVpcAttachmentResult) + | .modifyVerifiedAccessEndpoint => fun v => (Shape.ofValue v : Except String ModifyVerifiedAccessEndpointResult) + | .modifyVerifiedAccessEndpointPolicy => fun v => (Shape.ofValue v : Except String ModifyVerifiedAccessEndpointPolicyResult) + | .modifyVerifiedAccessGroup => fun v => (Shape.ofValue v : Except String ModifyVerifiedAccessGroupResult) + | .modifyVerifiedAccessGroupPolicy => fun v => (Shape.ofValue v : Except String ModifyVerifiedAccessGroupPolicyResult) + | .modifyVerifiedAccessInstance => fun v => (Shape.ofValue v : Except String ModifyVerifiedAccessInstanceResult) + | .modifyVerifiedAccessInstanceLoggingConfiguration => fun v => (Shape.ofValue v : Except String ModifyVerifiedAccessInstanceLoggingConfigurationResult) + | .modifyVerifiedAccessTrustProvider => fun v => (Shape.ofValue v : Except String ModifyVerifiedAccessTrustProviderResult) + | .modifyVolume => fun v => (Shape.ofValue v : Except String ModifyVolumeResult) + | .modifyVolumeAttribute => fun v => (Shape.ofValue v : Except String Unit) + | .modifyVpcAttribute => fun v => (Shape.ofValue v : Except String Unit) + | .modifyVpcBlockPublicAccessExclusion => fun v => (Shape.ofValue v : Except String ModifyVpcBlockPublicAccessExclusionResult) + | .modifyVpcBlockPublicAccessOptions => fun v => (Shape.ofValue v : Except String ModifyVpcBlockPublicAccessOptionsResult) + | .modifyVpcEncryptionControl => fun v => (Shape.ofValue v : Except String ModifyVpcEncryptionControlResult) + | .modifyVpcEndpoint => fun v => (Shape.ofValue v : Except String ModifyVpcEndpointResult) + | .modifyVpcEndpointConnectionNotification => fun v => (Shape.ofValue v : Except String ModifyVpcEndpointConnectionNotificationResult) + | .modifyVpcEndpointPayerResponsibility => fun v => (Shape.ofValue v : Except String ModifyVpcEndpointPayerResponsibilityResult) + | .modifyVpcEndpointServiceConfiguration => fun v => (Shape.ofValue v : Except String ModifyVpcEndpointServiceConfigurationResult) + | .modifyVpcEndpointServicePayerResponsibility => fun v => (Shape.ofValue v : Except String ModifyVpcEndpointServicePayerResponsibilityResult) + | .modifyVpcEndpointServicePermissions => fun v => (Shape.ofValue v : Except String ModifyVpcEndpointServicePermissionsResult) + | .modifyVpcPeeringConnectionOptions => fun v => (Shape.ofValue v : Except String ModifyVpcPeeringConnectionOptionsResult) + | .modifyVpcTenancy => fun v => (Shape.ofValue v : Except String ModifyVpcTenancyResult) + | .modifyVpnConnection => fun v => (Shape.ofValue v : Except String ModifyVpnConnectionResult) + | .modifyVpnConnectionOptions => fun v => (Shape.ofValue v : Except String ModifyVpnConnectionOptionsResult) + | .modifyVpnTunnelCertificate => fun v => (Shape.ofValue v : Except String ModifyVpnTunnelCertificateResult) + | .modifyVpnTunnelOptions => fun v => (Shape.ofValue v : Except String ModifyVpnTunnelOptionsResult) + | .monitorInstances => fun v => (Shape.ofValue v : Except String MonitorInstancesResult) + | .moveAddressToVpc => fun v => (Shape.ofValue v : Except String MoveAddressToVpcResult) + | .moveByoipCidrToIpam => fun v => (Shape.ofValue v : Except String MoveByoipCidrToIpamResult) + | .moveCapacityReservationInstances => fun v => (Shape.ofValue v : Except String MoveCapacityReservationInstancesResult) + | .provisionByoipCidr => fun v => (Shape.ofValue v : Except String ProvisionByoipCidrResult) + | .provisionIpamByoasn => fun v => (Shape.ofValue v : Except String ProvisionIpamByoasnResult) + | .provisionIpamPoolCidr => fun v => (Shape.ofValue v : Except String ProvisionIpamPoolCidrResult) + | .provisionPublicIpv4PoolCidr => fun v => (Shape.ofValue v : Except String ProvisionPublicIpv4PoolCidrResult) + | .purchaseCapacityBlock => fun v => (Shape.ofValue v : Except String PurchaseCapacityBlockResult) + | .purchaseCapacityBlockExtension => fun v => (Shape.ofValue v : Except String PurchaseCapacityBlockExtensionResult) + | .purchaseHostReservation => fun v => (Shape.ofValue v : Except String PurchaseHostReservationResult) + | .purchaseReservedInstancesOffering => fun v => (Shape.ofValue v : Except String PurchaseReservedInstancesOfferingResult) + | .purchaseScheduledInstances => fun v => (Shape.ofValue v : Except String PurchaseScheduledInstancesResult) + | .rebootInstances => fun v => (Shape.ofValue v : Except String Unit) + | .registerImage => fun v => (Shape.ofValue v : Except String RegisterImageResult) + | .registerInstanceEventNotificationAttributes => fun v => (Shape.ofValue v : Except String RegisterInstanceEventNotificationAttributesResult) + | .registerTransitGatewayMulticastGroupMembers => fun v => (Shape.ofValue v : Except String RegisterTransitGatewayMulticastGroupMembersResult) + | .registerTransitGatewayMulticastGroupSources => fun v => (Shape.ofValue v : Except String RegisterTransitGatewayMulticastGroupSourcesResult) + | .rejectCapacityReservationBillingOwnership => fun v => (Shape.ofValue v : Except String RejectCapacityReservationBillingOwnershipResult) + | .rejectTransitGatewayClientVpnAttachment => fun v => (Shape.ofValue v : Except String RejectTransitGatewayClientVpnAttachmentResult) + | .rejectTransitGatewayMulticastDomainAssociations => fun v => (Shape.ofValue v : Except String RejectTransitGatewayMulticastDomainAssociationsResult) + | .rejectTransitGatewayPeeringAttachment => fun v => (Shape.ofValue v : Except String RejectTransitGatewayPeeringAttachmentResult) + | .rejectTransitGatewayVpcAttachment => fun v => (Shape.ofValue v : Except String RejectTransitGatewayVpcAttachmentResult) + | .rejectVpcEndpointConnections => fun v => (Shape.ofValue v : Except String RejectVpcEndpointConnectionsResult) + | .rejectVpcPeeringConnection => fun v => (Shape.ofValue v : Except String RejectVpcPeeringConnectionResult) + | .releaseAddress => fun v => (Shape.ofValue v : Except String Unit) + | .releaseHosts => fun v => (Shape.ofValue v : Except String ReleaseHostsResult) + | .releaseIpamPoolAllocation => fun v => (Shape.ofValue v : Except String ReleaseIpamPoolAllocationResult) + | .replaceIamInstanceProfileAssociation => fun v => (Shape.ofValue v : Except String ReplaceIamInstanceProfileAssociationResult) + | .replaceImageCriteriaInAllowedImagesSettings => fun v => (Shape.ofValue v : Except String ReplaceImageCriteriaInAllowedImagesSettingsResult) + | .replaceImageInstanceTypeSpecification => fun v => (Shape.ofValue v : Except String ReplaceImageInstanceTypeSpecificationResult) + | .replaceNetworkAclAssociation => fun v => (Shape.ofValue v : Except String ReplaceNetworkAclAssociationResult) + | .replaceNetworkAclEntry => fun v => (Shape.ofValue v : Except String Unit) + | .replaceRoute => fun v => (Shape.ofValue v : Except String Unit) + | .replaceRouteTableAssociation => fun v => (Shape.ofValue v : Except String ReplaceRouteTableAssociationResult) + | .replaceTransitGatewayRoute => fun v => (Shape.ofValue v : Except String ReplaceTransitGatewayRouteResult) + | .replaceVpnTunnel => fun v => (Shape.ofValue v : Except String ReplaceVpnTunnelResult) + | .reportInstanceStatus => fun v => (Shape.ofValue v : Except String Unit) + | .requestSpotFleet => fun v => (Shape.ofValue v : Except String RequestSpotFleetResponse) + | .requestSpotInstances => fun v => (Shape.ofValue v : Except String RequestSpotInstancesResult) + | .resetAddressAttribute => fun v => (Shape.ofValue v : Except String ResetAddressAttributeResult) + | .resetEbsDefaultKmsKeyId => fun v => (Shape.ofValue v : Except String ResetEbsDefaultKmsKeyIdResult) + | .resetFpgaImageAttribute => fun v => (Shape.ofValue v : Except String ResetFpgaImageAttributeResult) + | .resetImageAttribute => fun v => (Shape.ofValue v : Except String Unit) + | .resetInstanceAttribute => fun v => (Shape.ofValue v : Except String Unit) + | .resetNetworkInterfaceAttribute => fun v => (Shape.ofValue v : Except String Unit) + | .resetSnapshotAttribute => fun v => (Shape.ofValue v : Except String Unit) + | .restoreAddressToClassic => fun v => (Shape.ofValue v : Except String RestoreAddressToClassicResult) + | .restoreImageFromRecycleBin => fun v => (Shape.ofValue v : Except String RestoreImageFromRecycleBinResult) + | .restoreManagedPrefixListVersion => fun v => (Shape.ofValue v : Except String RestoreManagedPrefixListVersionResult) + | .restoreSnapshotFromRecycleBin => fun v => (Shape.ofValue v : Except String RestoreSnapshotFromRecycleBinResult) + | .restoreSnapshotTier => fun v => (Shape.ofValue v : Except String RestoreSnapshotTierResult) + | .restoreVolumeFromRecycleBin => fun v => (Shape.ofValue v : Except String RestoreVolumeFromRecycleBinResult) + | .revokeClientVpnIngress => fun v => (Shape.ofValue v : Except String RevokeClientVpnIngressResult) + | .revokeSecurityGroupEgress => fun v => (Shape.ofValue v : Except String RevokeSecurityGroupEgressResult) + | .revokeSecurityGroupIngress => fun v => (Shape.ofValue v : Except String RevokeSecurityGroupIngressResult) + | .runInstances => fun v => (Shape.ofValue v : Except String Reservation) + | .runScheduledInstances => fun v => (Shape.ofValue v : Except String RunScheduledInstancesResult) + | .searchLocalGatewayRoutes => fun v => (Shape.ofValue v : Except String SearchLocalGatewayRoutesResult) + | .searchTransitGatewayMulticastGroups => fun v => (Shape.ofValue v : Except String SearchTransitGatewayMulticastGroupsResult) + | .searchTransitGatewayRoutes => fun v => (Shape.ofValue v : Except String SearchTransitGatewayRoutesResult) + | .sendDiagnosticInterrupt => fun v => (Shape.ofValue v : Except String Unit) + | .startDeclarativePoliciesReport => fun v => (Shape.ofValue v : Except String StartDeclarativePoliciesReportResult) + | .startInstances => fun v => (Shape.ofValue v : Except String StartInstancesResult) + | .startNetworkInsightsAccessScopeAnalysis => fun v => (Shape.ofValue v : Except String StartNetworkInsightsAccessScopeAnalysisResult) + | .startNetworkInsightsAnalysis => fun v => (Shape.ofValue v : Except String StartNetworkInsightsAnalysisResult) + | .startVpcEndpointServicePrivateDnsVerification => fun v => (Shape.ofValue v : Except String StartVpcEndpointServicePrivateDnsVerificationResult) + | .stopInstances => fun v => (Shape.ofValue v : Except String StopInstancesResult) + | .terminateClientVpnConnections => fun v => (Shape.ofValue v : Except String TerminateClientVpnConnectionsResult) + | .terminateInstances => fun v => (Shape.ofValue v : Except String TerminateInstancesResult) + | .unassignIpv6Addresses => fun v => (Shape.ofValue v : Except String UnassignIpv6AddressesResult) + | .unassignPrivateIpAddresses => fun v => (Shape.ofValue v : Except String Unit) + | .unassignPrivateNatGatewayAddress => fun v => (Shape.ofValue v : Except String UnassignPrivateNatGatewayAddressResult) + | .unlockSnapshot => fun v => (Shape.ofValue v : Except String UnlockSnapshotResult) + | .unmonitorInstances => fun v => (Shape.ofValue v : Except String UnmonitorInstancesResult) + | .updateCapacityManagerMonitoredTagKeys => fun v => (Shape.ofValue v : Except String UpdateCapacityManagerMonitoredTagKeysResult) + | .updateCapacityManagerOrganizationsAccess => fun v => (Shape.ofValue v : Except String UpdateCapacityManagerOrganizationsAccessResult) + | .updateInterruptibleCapacityReservationAllocation => fun v => (Shape.ofValue v : Except String UpdateInterruptibleCapacityReservationAllocationResult) + | .updateSecurityGroupRuleDescriptionsEgress => fun v => (Shape.ofValue v : Except String UpdateSecurityGroupRuleDescriptionsEgressResult) + | .updateSecurityGroupRuleDescriptionsIngress => fun v => (Shape.ofValue v : Except String UpdateSecurityGroupRuleDescriptionsIngressResult) + | .validateSecurityGroupQuotasForInterface => fun v => (Shape.ofValue v : Except String ValidateSecurityGroupQuotasForInterfaceResult) + | .withdrawByoipCidr => fun v => (Shape.ofValue v : Except String WithdrawByoipCidrResult) +) + (fun op => match op with + | .acceptAddressTransfer => fun _ _ => none + | .acceptCapacityReservationBillingOwnership => fun _ _ => none + | .acceptReservedInstancesExchangeQuote => fun _ _ => none + | .acceptTransitGatewayClientVpnAttachment => fun _ _ => none + | .acceptTransitGatewayMulticastDomainAssociations => fun _ _ => none + | .acceptTransitGatewayPeeringAttachment => fun _ _ => none + | .acceptTransitGatewayVpcAttachment => fun _ _ => none + | .acceptVpcEndpointConnections => fun _ _ => none + | .acceptVpcPeeringConnection => fun _ _ => none + | .advertiseByoipCidr => fun _ _ => none + | .allocateAddress => fun _ _ => none + | .allocateHosts => fun _ _ => none + | .allocateIpamPoolCidr => fun _ _ => none + | .applySecurityGroupsToClientVpnTargetNetwork => fun _ _ => none + | .assignIpv6Addresses => fun _ _ => none + | .assignPrivateIpAddresses => fun _ _ => none + | .assignPrivateNatGatewayAddress => fun _ _ => none + | .associateAddress => fun _ _ => none + | .associateApplicationStatusCheck => fun _ _ => none + | .associateCapacityReservationBillingOwner => fun _ _ => none + | .associateClientVpnTargetNetwork => fun _ _ => none + | .associateDhcpOptions => fun _ _ => none + | .associateEnclaveCertificateIamRole => fun _ _ => none + | .associateIamInstanceProfile => fun _ _ => none + | .associateInstanceEventWindow => fun _ _ => none + | .associateIpamByoasn => fun _ _ => none + | .associateIpamResourceDiscovery => fun _ _ => none + | .associateKmsKeyId => fun _ _ => none + | .associateNatGatewayAddress => fun _ _ => none + | .associateNetworkingFlexCostAllocationPolicy => fun _ _ => none + | .associateRouteServer => fun _ _ => none + | .associateRouteTable => fun _ _ => none + | .associateSecurityGroupVpc => fun _ _ => none + | .associateSubnetCidrBlock => fun _ _ => none + | .associateTransitGatewayMulticastDomain => fun _ _ => none + | .associateTransitGatewayPolicyTable => fun _ _ => none + | .associateTransitGatewayRouteTable => fun _ _ => none + | .associateTrunkInterface => fun _ _ => none + | .associateVpcCidrBlock => fun _ _ => none + | .attachClassicLinkVpc => fun _ _ => none + | .attachImageWatermark => fun _ _ => none + | .attachInternetGateway => fun _ _ => none + | .attachNetworkInterface => fun _ _ => none + | .attachVerifiedAccessTrustProvider => fun _ _ => none + | .attachVolume => fun _ _ => none + | .attachVpnGateway => fun _ _ => none + | .authorizeClientVpnIngress => fun _ _ => none + | .authorizeSecurityGroupEgress => fun _ _ => none + | .authorizeSecurityGroupIngress => fun _ _ => none + | .batchModifyIpamRoutingPolicyRegistrations => fun _ _ => none + | .bundleInstance => fun _ _ => none + | .cancelBundleTask => fun _ _ => none + | .cancelCapacityReservation => fun _ _ => none + | .cancelCapacityReservationFleets => fun _ _ => none + | .cancelConversionTask => fun _ _ => none + | .cancelDeclarativePoliciesReport => fun _ _ => none + | .cancelExportTask => fun _ _ => none + | .cancelImageLaunchPermission => fun _ _ => none + | .cancelImportTask => fun _ _ => none + | .cancelReservedInstancesListing => fun _ _ => none + | .cancelSpotFleetRequests => fun _ _ => none + | .cancelSpotInstanceRequests => fun _ _ => none + | .confirmProductInstance => fun _ _ => none + | .copyFpgaImage => fun _ _ => none + | .copyImage => fun _ _ => none + | .copySnapshot => fun _ _ => none + | .copyVolumes => fun _ _ => none + | .createApplicationStatusCheck => fun _ _ => none + | .createCapacityManagerDataExport => fun _ _ => none + | .createCapacityReservation => fun _ _ => none + | .createCapacityReservationBySplitting => fun _ _ => none + | .createCapacityReservationCancellationQuote => fun _ _ => none + | .createCapacityReservationDateChangeQuote => fun _ _ => none + | .createCapacityReservationFleet => fun _ _ => none + | .createCarrierGateway => fun _ _ => none + | .createClientVpnEndpoint => fun _ _ => none + | .createClientVpnRoute => fun _ _ => none + | .createCoipCidr => fun _ _ => none + | .createCoipPool => fun _ _ => none + | .createCustomerGateway => fun _ _ => none + | .createDefaultSubnet => fun _ _ => none + | .createDefaultVpc => fun _ _ => none + | .createDelegateMacVolumeOwnershipTask => fun _ _ => none + | .createDhcpOptions => fun _ _ => none + | .createEgressOnlyInternetGateway => fun _ _ => none + | .createFleet => fun _ _ => none + | .createFlowLogs => fun _ _ => none + | .createFpgaImage => fun _ _ => none + | .createImage => fun _ _ => none + | .createImageUsageReport => fun _ _ => none + | .createInstanceConnectEndpoint => fun _ _ => none + | .createInstanceEventWindow => fun _ _ => none + | .createInstanceExportTask => fun _ _ => none + | .createInternetGateway => fun _ _ => none + | .createInterruptibleCapacityReservationAllocation => fun _ _ => none + | .createIpam => fun _ _ => none + | .createIpamExternalResourceVerificationToken => fun _ _ => none + | .createIpamInternetRegistryAssociation => fun _ _ => none + | .createIpamPolicy => fun _ _ => none + | .createIpamPool => fun _ _ => none + | .createIpamPrefixListResolver => fun _ _ => none + | .createIpamPrefixListResolverTarget => fun _ _ => none + | .createIpamResourceDiscovery => fun _ _ => none + | .createIpamRoutingPolicyRegistration => fun _ _ => none + | .createIpamScope => fun _ _ => none + | .createKeyPair => fun _ _ => none + | .createLaunchTemplate => fun _ _ => none + | .createLaunchTemplateVersion => fun _ _ => none + | .createLocalGatewayRoute => fun _ _ => none + | .createLocalGatewayRouteTable => fun _ _ => none + | .createLocalGatewayRouteTableVirtualInterfaceGroupAssociation => fun _ _ => none + | .createLocalGatewayRouteTableVpcAssociation => fun _ _ => none + | .createLocalGatewayVirtualInterface => fun _ _ => none + | .createLocalGatewayVirtualInterfaceGroup => fun _ _ => none + | .createMacSystemIntegrityProtectionModificationTask => fun _ _ => none + | .createManagedPrefixList => fun _ _ => none + | .createMetricCategory => fun _ _ => none + | .createNatGateway => fun _ _ => none + | .createNetworkAcl => fun _ _ => none + | .createNetworkAclEntry => fun _ _ => none + | .createNetworkInsightsAccessScope => fun _ _ => none + | .createNetworkInsightsPath => fun _ _ => none + | .createNetworkInterface => fun _ _ => none + | .createNetworkInterfacePermission => fun _ _ => none + | .createNetworkingFlexCostAllocationPolicy => fun _ _ => none + | .createPlacementGroup => fun _ _ => none + | .createPublicIpv4Pool => fun _ _ => none + | .createReplaceRootVolumeTask => fun _ _ => none + | .createReservedInstancesListing => fun _ _ => none + | .createRestoreImageTask => fun _ _ => none + | .createRoute => fun _ _ => none + | .createRouteServer => fun _ _ => none + | .createRouteServerEndpoint => fun _ _ => none + | .createRouteServerPeer => fun _ _ => none + | .createRouteTable => fun _ _ => none + | .createSecondaryNetwork => fun _ _ => none + | .createSecondarySubnet => fun _ _ => none + | .createSecurityGroup => fun _ _ => none + | .createSnapshot => fun _ _ => none + | .createSnapshots => fun _ _ => none + | .createSpotDatafeedSubscription => fun _ _ => none + | .createStoreImageTask => fun _ _ => none + | .createSubnet => fun _ _ => none + | .createSubnetCidrReservation => fun _ _ => none + | .createTags => fun _ _ => none + | .createTrafficMirrorFilter => fun _ _ => none + | .createTrafficMirrorFilterRule => fun _ _ => none + | .createTrafficMirrorSession => fun _ _ => none + | .createTrafficMirrorTarget => fun _ _ => none + | .createTransitGateway => fun _ _ => none + | .createTransitGatewayConnect => fun _ _ => none + | .createTransitGatewayConnectPeer => fun _ _ => none + | .createTransitGatewayMeteringPolicy => fun _ _ => none + | .createTransitGatewayMeteringPolicyEntry => fun _ _ => none + | .createTransitGatewayMulticastDomain => fun _ _ => none + | .createTransitGatewayNetworkFunctionAttachment => fun _ _ => none + | .createTransitGatewayPeeringAttachment => fun _ _ => none + | .createTransitGatewayPolicyTable => fun _ _ => none + | .createTransitGatewayPolicyTableEntry => fun _ _ => none + | .createTransitGatewayPrefixListReference => fun _ _ => none + | .createTransitGatewayRoute => fun _ _ => none + | .createTransitGatewayRouteTable => fun _ _ => none + | .createTransitGatewayRouteTableAnnouncement => fun _ _ => none + | .createTransitGatewayVpcAttachment => fun _ _ => none + | .createVerifiedAccessEndpoint => fun _ _ => none + | .createVerifiedAccessGroup => fun _ _ => none + | .createVerifiedAccessInstance => fun _ _ => none + | .createVerifiedAccessTrustProvider => fun _ _ => none + | .createVolume => fun _ _ => none + | .createVpc => fun _ _ => none + | .createVpcBlockPublicAccessExclusion => fun _ _ => none + | .createVpcEncryptionControl => fun _ _ => none + | .createVpcEndpoint => fun _ _ => none + | .createVpcEndpointConnectionNotification => fun _ _ => none + | .createVpcEndpointServiceConfiguration => fun _ _ => none + | .createVpcPeeringConnection => fun _ _ => none + | .createVpnConcentrator => fun _ _ => none + | .createVpnConnection => fun _ _ => none + | .createVpnConnectionRoute => fun _ _ => none + | .createVpnGateway => fun _ _ => none + | .deleteApplicationStatusCheck => fun _ _ => none + | .deleteCapacityManagerDataExport => fun _ _ => none + | .deleteCarrierGateway => fun _ _ => none + | .deleteClientVpnEndpoint => fun _ _ => none + | .deleteClientVpnEndpointAuthorizationPolicy => fun _ _ => none + | .deleteClientVpnRoute => fun _ _ => none + | .deleteCoipCidr => fun _ _ => none + | .deleteCoipPool => fun _ _ => none + | .deleteCustomerGateway => fun _ _ => none + | .deleteDhcpOptions => fun _ _ => none + | .deleteEgressOnlyInternetGateway => fun _ _ => none + | .deleteFleets => fun _ _ => none + | .deleteFlowLogs => fun _ _ => none + | .deleteFpgaImage => fun _ _ => none + | .deleteImageUsageReport => fun _ _ => none + | .deleteInstanceConnectEndpoint => fun _ _ => none + | .deleteInstanceEventWindow => fun _ _ => none + | .deleteInternetGateway => fun _ _ => none + | .deleteIpam => fun _ _ => none + | .deleteIpamExternalResourceVerificationToken => fun _ _ => none + | .deleteIpamInternetRegistryAssociation => fun _ _ => none + | .deleteIpamPolicy => fun _ _ => none + | .deleteIpamPool => fun _ _ => none + | .deleteIpamPrefixListResolver => fun _ _ => none + | .deleteIpamPrefixListResolverTarget => fun _ _ => none + | .deleteIpamResourceDiscovery => fun _ _ => none + | .deleteIpamRoutingPolicyRegistration => fun _ _ => none + | .deleteIpamScope => fun _ _ => none + | .deleteKeyPair => fun _ _ => none + | .deleteLaunchTemplate => fun _ _ => none + | .deleteLaunchTemplateVersions => fun _ _ => none + | .deleteLocalGatewayRoute => fun _ _ => none + | .deleteLocalGatewayRouteTable => fun _ _ => none + | .deleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation => fun _ _ => none + | .deleteLocalGatewayRouteTableVpcAssociation => fun _ _ => none + | .deleteLocalGatewayVirtualInterface => fun _ _ => none + | .deleteLocalGatewayVirtualInterfaceGroup => fun _ _ => none + | .deleteManagedPrefixList => fun _ _ => none + | .deleteMetricCategory => fun _ _ => none + | .deleteNatGateway => fun _ _ => none + | .deleteNetworkAcl => fun _ _ => none + | .deleteNetworkAclEntry => fun _ _ => none + | .deleteNetworkInsightsAccessScope => fun _ _ => none + | .deleteNetworkInsightsAccessScopeAnalysis => fun _ _ => none + | .deleteNetworkInsightsAnalysis => fun _ _ => none + | .deleteNetworkInsightsPath => fun _ _ => none + | .deleteNetworkInterface => fun _ _ => none + | .deleteNetworkInterfacePermission => fun _ _ => none + | .deleteNetworkingFlexCostAllocationPolicies => fun _ _ => none + | .deletePlacementGroup => fun _ _ => none + | .deletePublicIpv4Pool => fun _ _ => none + | .deleteQueuedReservedInstances => fun _ _ => none + | .deleteRoute => fun _ _ => none + | .deleteRouteServer => fun _ _ => none + | .deleteRouteServerEndpoint => fun _ _ => none + | .deleteRouteServerPeer => fun _ _ => none + | .deleteRouteTable => fun _ _ => none + | .deleteSecondaryNetwork => fun _ _ => none + | .deleteSecondarySubnet => fun _ _ => none + | .deleteSecurityGroup => fun _ _ => none + | .deleteSnapshot => fun _ _ => none + | .deleteSpotDatafeedSubscription => fun _ _ => none + | .deleteSubnet => fun _ _ => none + | .deleteSubnetCidrReservation => fun _ _ => none + | .deleteTags => fun _ _ => none + | .deleteTrafficMirrorFilter => fun _ _ => none + | .deleteTrafficMirrorFilterRule => fun _ _ => none + | .deleteTrafficMirrorSession => fun _ _ => none + | .deleteTrafficMirrorTarget => fun _ _ => none + | .deleteTransitGateway => fun _ _ => none + | .deleteTransitGatewayClientVpnAttachment => fun _ _ => none + | .deleteTransitGatewayConnect => fun _ _ => none + | .deleteTransitGatewayConnectPeer => fun _ _ => none + | .deleteTransitGatewayMeteringPolicy => fun _ _ => none + | .deleteTransitGatewayMeteringPolicyEntry => fun _ _ => none + | .deleteTransitGatewayMulticastDomain => fun _ _ => none + | .deleteTransitGatewayNetworkFunctionAttachment => fun _ _ => none + | .deleteTransitGatewayPeeringAttachment => fun _ _ => none + | .deleteTransitGatewayPolicyTable => fun _ _ => none + | .deleteTransitGatewayPolicyTableEntry => fun _ _ => none + | .deleteTransitGatewayPrefixListReference => fun _ _ => none + | .deleteTransitGatewayRoute => fun _ _ => none + | .deleteTransitGatewayRouteTable => fun _ _ => none + | .deleteTransitGatewayRouteTableAnnouncement => fun _ _ => none + | .deleteTransitGatewayVpcAttachment => fun _ _ => none + | .deleteVerifiedAccessEndpoint => fun _ _ => none + | .deleteVerifiedAccessGroup => fun _ _ => none + | .deleteVerifiedAccessInstance => fun _ _ => none + | .deleteVerifiedAccessTrustProvider => fun _ _ => none + | .deleteVolume => fun _ _ => none + | .deleteVpc => fun _ _ => none + | .deleteVpcBlockPublicAccessExclusion => fun _ _ => none + | .deleteVpcEncryptionControl => fun _ _ => none + | .deleteVpcEndpointConnectionNotifications => fun _ _ => none + | .deleteVpcEndpointServiceConfigurations => fun _ _ => none + | .deleteVpcEndpoints => fun _ _ => none + | .deleteVpcPeeringConnection => fun _ _ => none + | .deleteVpnConcentrator => fun _ _ => none + | .deleteVpnConnection => fun _ _ => none + | .deleteVpnConnectionRoute => fun _ _ => none + | .deleteVpnGateway => fun _ _ => none + | .deprovisionByoipCidr => fun _ _ => none + | .deprovisionIpamByoasn => fun _ _ => none + | .deprovisionIpamPoolCidr => fun _ _ => none + | .deprovisionPublicIpv4PoolCidr => fun _ _ => none + | .deregisterImage => fun _ _ => none + | .deregisterInstanceEventNotificationAttributes => fun _ _ => none + | .deregisterTransitGatewayMulticastGroupMembers => fun _ _ => none + | .deregisterTransitGatewayMulticastGroupSources => fun _ _ => none + | .describeAccountAttributes => fun _ _ => none + | .describeAccountVpcEncryptionControl => fun _ _ => none + | .describeAddressTransfers => fun _ _ => none + | .describeAddresses => fun _ _ => none + | .describeAddressesAttribute => fun _ _ => none + | .describeAggregateIdFormat => fun _ _ => none + | .describeApplicationStatus => fun _ _ => none + | .describeApplicationStatusCheckAssociations => fun _ _ => none + | .describeApplicationStatusChecks => fun _ _ => none + | .describeAvailabilityZones => fun _ _ => none + | .describeAwsNetworkPerformanceMetricSubscriptions => fun _ _ => none + | .describeBundleTasks => fun _ _ => none + | .describeByoipCidrs => fun _ _ => none + | .describeCapacityBlockExtensionHistory => fun _ _ => none + | .describeCapacityBlockExtensionOfferings => fun _ _ => none + | .describeCapacityBlockOfferings => fun _ _ => none + | .describeCapacityBlockStatus => fun _ _ => none + | .describeCapacityBlocks => fun _ _ => none + | .describeCapacityManagerDataExports => fun _ _ => none + | .describeCapacityReservationBillingRequests => fun _ _ => none + | .describeCapacityReservationCancellationQuotes => fun _ _ => none + | .describeCapacityReservationDateChangeQuotes => fun _ _ => none + | .describeCapacityReservationFleets => fun _ _ => none + | .describeCapacityReservationTopology => fun _ _ => none + | .describeCapacityReservations => fun _ _ => none + | .describeCarrierGateways => fun _ _ => none + | .describeClassicLinkInstances => fun _ _ => none + | .describeClientVpnAuthorizationRules => fun _ _ => none + | .describeClientVpnConnections => fun _ _ => none + | .describeClientVpnEndpoints => fun _ _ => none + | .describeClientVpnRoutes => fun _ _ => none + | .describeClientVpnTargetNetworks => fun _ _ => none + | .describeCoipPools => fun _ _ => none + | .describeConversionTasks => fun _ _ => none + | .describeCustomerGateways => fun _ _ => none + | .describeDeclarativePoliciesReports => fun _ _ => none + | .describeDhcpOptions => fun _ _ => none + | .describeEgressOnlyInternetGateways => fun _ _ => none + | .describeElasticGpus => fun _ _ => none + | .describeExportImageTasks => fun _ _ => none + | .describeExportTasks => fun _ _ => none + | .describeFastLaunchImages => fun _ _ => none + | .describeFastSnapshotRestores => fun _ _ => none + | .describeFleetHistory => fun _ _ => none + | .describeFleetInstances => fun _ _ => none + | .describeFleets => fun _ _ => none + | .describeFlowLogs => fun _ _ => none + | .describeFpgaImageAttribute => fun _ _ => none + | .describeFpgaImages => fun _ _ => none + | .describeHostReservationOfferings => fun _ _ => none + | .describeHostReservations => fun _ _ => none + | .describeHosts => fun _ _ => none + | .describeIamInstanceProfileAssociations => fun _ _ => none + | .describeIdFormat => fun _ _ => none + | .describeIdentityIdFormat => fun _ _ => none + | .describeImageAttribute => fun _ _ => none + | .describeImageReferences => fun _ _ => none + | .describeImageUsageReportEntries => fun _ _ => none + | .describeImageUsageReports => fun _ _ => none + | .describeImages => fun _ _ => none + | .describeImportImageTasks => fun _ _ => none + | .describeImportSnapshotTasks => fun _ _ => none + | .describeInstanceAttribute => fun _ _ => none + | .describeInstanceConnectEndpoints => fun _ _ => none + | .describeInstanceCreditSpecifications => fun _ _ => none + | .describeInstanceEventNotificationAttributes => fun _ _ => none + | .describeInstanceEventWindows => fun _ _ => none + | .describeInstanceImageMetadata => fun _ _ => none + | .describeInstanceSqlHaHistoryStates => fun _ _ => none + | .describeInstanceSqlHaStates => fun _ _ => none + | .describeInstanceStatus => fun _ _ => none + | .describeInstanceTopology => fun _ _ => none + | .describeInstanceTypeOfferings => fun _ _ => none + | .describeInstanceTypes => fun _ _ => none + | .describeInstances => fun _ _ => none + | .describeInternetGateways => fun _ _ => none + | .describeIpamByoasn => fun _ _ => none + | .describeIpamExternalResourceVerificationTokens => fun _ _ => none + | .describeIpamInternetRegistryAssociations => fun _ _ => none + | .describeIpamPolicies => fun _ _ => none + | .describeIpamPoolAllocations => fun _ _ => none + | .describeIpamPools => fun _ _ => none + | .describeIpamPrefixListResolverTargets => fun _ _ => none + | .describeIpamPrefixListResolvers => fun _ _ => none + | .describeIpamResourceDiscoveries => fun _ _ => none + | .describeIpamResourceDiscoveryAssociations => fun _ _ => none + | .describeIpamScopes => fun _ _ => none + | .describeIpams => fun _ _ => none + | .describeIpv6Pools => fun _ _ => none + | .describeKeyPairs => fun _ _ => none + | .describeLaunchTemplateVersions => fun _ _ => none + | .describeLaunchTemplates => fun _ _ => none + | .describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations => fun _ _ => none + | .describeLocalGatewayRouteTableVpcAssociations => fun _ _ => none + | .describeLocalGatewayRouteTables => fun _ _ => none + | .describeLocalGatewayVirtualInterfaceGroups => fun _ _ => none + | .describeLocalGatewayVirtualInterfaces => fun _ _ => none + | .describeLocalGateways => fun _ _ => none + | .describeLockedSnapshots => fun _ _ => none + | .describeMacHosts => fun _ _ => none + | .describeMacModificationTasks => fun _ _ => none + | .describeManagedPrefixLists => fun _ _ => none + | .describeMetricCategories => fun _ _ => none + | .describeMovingAddresses => fun _ _ => none + | .describeNatGateways => fun _ _ => none + | .describeNetworkAcls => fun _ _ => none + | .describeNetworkInsightsAccessScopeAnalyses => fun _ _ => none + | .describeNetworkInsightsAccessScopes => fun _ _ => none + | .describeNetworkInsightsAnalyses => fun _ _ => none + | .describeNetworkInsightsPaths => fun _ _ => none + | .describeNetworkInterfaceAttribute => fun _ _ => none + | .describeNetworkInterfacePermissions => fun _ _ => none + | .describeNetworkInterfaces => fun _ _ => none + | .describeNetworkingFlexCostAllocationPolicies => fun _ _ => none + | .describeNetworkingFlexCostAllocationPolicyAssociations => fun _ _ => none + | .describeOutpostLags => fun _ _ => none + | .describePlacementGroups => fun _ _ => none + | .describePrefixLists => fun _ _ => none + | .describePrincipalIdFormat => fun _ _ => none + | .describePublicIpv4Pools => fun _ _ => none + | .describeRegions => fun _ _ => none + | .describeReplaceRootVolumeTasks => fun _ _ => none + | .describeReservedInstances => fun _ _ => none + | .describeReservedInstancesListings => fun _ _ => none + | .describeReservedInstancesModifications => fun _ _ => none + | .describeReservedInstancesOfferings => fun _ _ => none + | .describeRouteServerEndpoints => fun _ _ => none + | .describeRouteServerPeers => fun _ _ => none + | .describeRouteServers => fun _ _ => none + | .describeRouteTables => fun _ _ => none + | .describeScheduledInstanceAvailability => fun _ _ => none + | .describeScheduledInstances => fun _ _ => none + | .describeSecondaryInterfaces => fun _ _ => none + | .describeSecondaryNetworks => fun _ _ => none + | .describeSecondarySubnets => fun _ _ => none + | .describeSecurityGroupReferences => fun _ _ => none + | .describeSecurityGroupRules => fun _ _ => none + | .describeSecurityGroupVpcAssociations => fun _ _ => none + | .describeSecurityGroups => fun _ _ => none + | .describeServiceLinkVirtualInterfaces => fun _ _ => none + | .describeSnapshotAttribute => fun _ _ => none + | .describeSnapshotTierStatus => fun _ _ => none + | .describeSnapshots => fun _ _ => none + | .describeSpotDatafeedSubscription => fun _ _ => none + | .describeSpotFleetInstances => fun _ _ => none + | .describeSpotFleetRequestHistory => fun _ _ => none + | .describeSpotFleetRequests => fun _ _ => none + | .describeSpotInstanceRequests => fun _ _ => none + | .describeSpotPriceHistory => fun _ _ => none + | .describeStaleSecurityGroups => fun _ _ => none + | .describeStoreImageTasks => fun _ _ => none + | .describeSubnets => fun _ _ => none + | .describeTags => fun _ _ => none + | .describeTrafficMirrorFilterRules => fun _ _ => none + | .describeTrafficMirrorFilters => fun _ _ => none + | .describeTrafficMirrorSessions => fun _ _ => none + | .describeTrafficMirrorTargets => fun _ _ => none + | .describeTransitGatewayAttachments => fun _ _ => none + | .describeTransitGatewayConnectPeers => fun _ _ => none + | .describeTransitGatewayConnects => fun _ _ => none + | .describeTransitGatewayMeteringPolicies => fun _ _ => none + | .describeTransitGatewayMulticastDomains => fun _ _ => none + | .describeTransitGatewayNetworkFunctionAttachments => fun _ _ => none + | .describeTransitGatewayPeeringAttachments => fun _ _ => none + | .describeTransitGatewayPolicyTables => fun _ _ => none + | .describeTransitGatewayRouteTableAnnouncements => fun _ _ => none + | .describeTransitGatewayRouteTables => fun _ _ => none + | .describeTransitGatewayVpcAttachments => fun _ _ => none + | .describeTransitGateways => fun _ _ => none + | .describeTrunkInterfaceAssociations => fun _ _ => none + | .describeVerifiedAccessEndpoints => fun _ _ => none + | .describeVerifiedAccessGroups => fun _ _ => none + | .describeVerifiedAccessInstanceLoggingConfigurations => fun _ _ => none + | .describeVerifiedAccessInstances => fun _ _ => none + | .describeVerifiedAccessTrustProviders => fun _ _ => none + | .describeVolumeAttribute => fun _ _ => none + | .describeVolumeStatus => fun _ _ => none + | .describeVolumes => fun _ _ => none + | .describeVolumesModifications => fun _ _ => none + | .describeVpcAttribute => fun _ _ => none + | .describeVpcBlockPublicAccessExclusions => fun _ _ => none + | .describeVpcBlockPublicAccessOptions => fun _ _ => none + | .describeVpcClassicLink => fun _ _ => none + | .describeVpcClassicLinkDnsSupport => fun _ _ => none + | .describeVpcEncryptionControls => fun _ _ => none + | .describeVpcEndpointAssociations => fun _ _ => none + | .describeVpcEndpointConnectionNotifications => fun _ _ => none + | .describeVpcEndpointConnections => fun _ _ => none + | .describeVpcEndpointServiceConfigurations => fun _ _ => none + | .describeVpcEndpointServicePermissions => fun _ _ => none + | .describeVpcEndpointServices => fun _ _ => none + | .describeVpcEndpoints => fun _ _ => none + | .describeVpcPeeringConnections => fun _ _ => none + | .describeVpcs => fun _ _ => none + | .describeVpnConcentrators => fun _ _ => none + | .describeVpnConnections => fun _ _ => none + | .describeVpnGateways => fun _ _ => none + | .detachClassicLinkVpc => fun _ _ => none + | .detachImageWatermark => fun _ _ => none + | .detachInternetGateway => fun _ _ => none + | .detachNetworkInterface => fun _ _ => none + | .detachVerifiedAccessTrustProvider => fun _ _ => none + | .detachVolume => fun _ _ => none + | .detachVpnGateway => fun _ _ => none + | .disableAddressTransfer => fun _ _ => none + | .disableAllowedImagesSettings => fun _ _ => none + | .disableApplicationStatusCheckSuppression => fun _ _ => none + | .disableAwsNetworkPerformanceMetricSubscription => fun _ _ => none + | .disableCapacityManager => fun _ _ => none + | .disableEbsEncryptionByDefault => fun _ _ => none + | .disableFastLaunch => fun _ _ => none + | .disableFastSnapshotRestores => fun _ _ => none + | .disableImage => fun _ _ => none + | .disableImageBlockPublicAccess => fun _ _ => none + | .disableImageDeprecation => fun _ _ => none + | .disableImageDeregistrationProtection => fun _ _ => none + | .disableInstanceSqlHaStandbyDetections => fun _ _ => none + | .disableIpamOrganizationAdminAccount => fun _ _ => none + | .disableIpamPolicy => fun _ _ => none + | .disableRouteServerPropagation => fun _ _ => none + | .disableSerialConsoleAccess => fun _ _ => none + | .disableSnapshotBlockPublicAccess => fun _ _ => none + | .disableTransitGatewayRouteTablePropagation => fun _ _ => none + | .disableVgwRoutePropagation => fun _ _ => none + | .disableVpcClassicLink => fun _ _ => none + | .disableVpcClassicLinkDnsSupport => fun _ _ => none + | .disassociateAddress => fun _ _ => none + | .disassociateApplicationStatusCheck => fun _ _ => none + | .disassociateCapacityReservationBillingOwner => fun _ _ => none + | .disassociateClientVpnTargetNetwork => fun _ _ => none + | .disassociateEnclaveCertificateIamRole => fun _ _ => none + | .disassociateIamInstanceProfile => fun _ _ => none + | .disassociateInstanceEventWindow => fun _ _ => none + | .disassociateIpamByoasn => fun _ _ => none + | .disassociateIpamResourceDiscovery => fun _ _ => none + | .disassociateKmsKeyId => fun _ _ => none + | .disassociateNatGatewayAddress => fun _ _ => none + | .disassociateNetworkingFlexCostAllocationPolicy => fun _ _ => none + | .disassociateRouteServer => fun _ _ => none + | .disassociateRouteTable => fun _ _ => none + | .disassociateSecurityGroupVpc => fun _ _ => none + | .disassociateSubnetCidrBlock => fun _ _ => none + | .disassociateTransitGatewayMulticastDomain => fun _ _ => none + | .disassociateTransitGatewayPolicyTable => fun _ _ => none + | .disassociateTransitGatewayRouteTable => fun _ _ => none + | .disassociateTrunkInterface => fun _ _ => none + | .disassociateVpcCidrBlock => fun _ _ => none + | .enableAddressTransfer => fun _ _ => none + | .enableAllowedImagesSettings => fun _ _ => none + | .enableApplicationStatusCheckSuppression => fun _ _ => none + | .enableAwsNetworkPerformanceMetricSubscription => fun _ _ => none + | .enableCapacityManager => fun _ _ => none + | .enableEbsEncryptionByDefault => fun _ _ => none + | .enableFastLaunch => fun _ _ => none + | .enableFastSnapshotRestores => fun _ _ => none + | .enableImage => fun _ _ => none + | .enableImageBlockPublicAccess => fun _ _ => none + | .enableImageDeprecation => fun _ _ => none + | .enableImageDeregistrationProtection => fun _ _ => none + | .enableInstanceSqlHaStandbyDetections => fun _ _ => none + | .enableIpamInternetRegistryAssociation => fun _ _ => none + | .enableIpamOrganizationAdminAccount => fun _ _ => none + | .enableIpamPolicy => fun _ _ => none + | .enableReachabilityAnalyzerOrganizationSharing => fun _ _ => none + | .enableRouteServerPropagation => fun _ _ => none + | .enableSerialConsoleAccess => fun _ _ => none + | .enableSnapshotBlockPublicAccess => fun _ _ => none + | .enableTransitGatewayRouteTablePropagation => fun _ _ => none + | .enableVgwRoutePropagation => fun _ _ => none + | .enableVolumeIO => fun _ _ => none + | .enableVpcClassicLink => fun _ _ => none + | .enableVpcClassicLinkDnsSupport => fun _ _ => none + | .exportClientVpnClientCertificateRevocationList => fun _ _ => none + | .exportClientVpnClientConfiguration => fun _ _ => none + | .exportImage => fun _ _ => none + | .exportTransitGatewayRoutes => fun _ _ => none + | .exportVerifiedAccessInstanceClientConfiguration => fun _ _ => none + | .getActiveVpnTunnelStatus => fun _ _ => none + | .getAllowedImagesSettings => fun _ _ => none + | .getAssociatedEnclaveCertificateIamRoles => fun _ _ => none + | .getAssociatedIpv6PoolCidrs => fun _ _ => none + | .getAwsNetworkPerformanceData => fun _ _ => none + | .getCapacityManagerAttributes => fun _ _ => none + | .getCapacityManagerMetricData => fun _ _ => none + | .getCapacityManagerMetricDimensions => fun _ _ => none + | .getCapacityManagerMonitoredTagKeys => fun _ _ => none + | .getCapacityManagerSupportabilityScores => fun _ _ => none + | .getCapacityReservationUsage => fun _ _ => none + | .getClientVpnEndpointAuthorizationPolicy => fun _ _ => none + | .getCoipPoolUsage => fun _ _ => none + | .getConsoleOutput => fun _ _ => none + | .getConsoleScreenshot => fun _ _ => none + | .getDeclarativePoliciesReportSummary => fun _ _ => none + | .getDefaultCreditSpecification => fun _ _ => none + | .getEbsDefaultKmsKeyId => fun _ _ => none + | .getEbsEncryptionByDefault => fun _ _ => none + | .getEnabledIpamPolicy => fun _ _ => none + | .getFlowLogsIntegrationTemplate => fun _ _ => none + | .getGroupsForCapacityReservation => fun _ _ => none + | .getHostReservationPurchasePreview => fun _ _ => none + | .getImageAncestry => fun _ _ => none + | .getImageBlockPublicAccessState => fun _ _ => none + | .getImageFindings => fun _ _ => none + | .getInstanceMetadataDefaults => fun _ _ => none + | .getInstanceTpmEkPub => fun _ _ => none + | .getInstanceTypesFromInstanceRequirements => fun _ _ => none + | .getInstanceUefiData => fun _ _ => none + | .getIpamAddressHistory => fun _ _ => none + | .getIpamDiscoveredAccounts => fun _ _ => none + | .getIpamDiscoveredPublicAddresses => fun _ _ => none + | .getIpamDiscoveredResourceCidrs => fun _ _ => none + | .getIpamDiscoveredRoutes => fun _ _ => none + | .getIpamInternetRegistryAssociationAsns => fun _ _ => none + | .getIpamInternetRegistryAssociationCidrs => fun _ _ => none + | .getIpamPolicyAllocationRules => fun _ _ => none + | .getIpamPolicyOrganizationTargets => fun _ _ => none + | .getIpamPoolAllocations => fun _ _ => none + | .getIpamPoolCidrs => fun _ _ => none + | .getIpamPrefixListResolverRules => fun _ _ => none + | .getIpamPrefixListResolverVersionEntries => fun _ _ => none + | .getIpamPrefixListResolverVersions => fun _ _ => none + | .getIpamResourceCidrs => fun _ _ => none + | .getIpamRouteOriginAuthorizations => fun _ _ => none + | .getIpamRouteProtectionFindings => fun _ _ => none + | .getIpamRoutingPolicyRegistrationDeltas => fun _ _ => none + | .getIpamRoutingPolicyRegistrations => fun _ _ => none + | .getLaunchTemplateData => fun _ _ => none + | .getManagedPrefixListAssociations => fun _ _ => none + | .getManagedPrefixListEntries => fun _ _ => none + | .getManagedResourceVisibility => fun _ _ => none + | .getNetworkInsightsAccessScopeAnalysisFindings => fun _ _ => none + | .getNetworkInsightsAccessScopeContent => fun _ _ => none + | .getNetworkingFlexCostAllocationPolicyVersions => fun _ _ => none + | .getPasswordData => fun _ _ => none + | .getReservedInstancesExchangeQuote => fun _ _ => none + | .getRouteServerAssociations => fun _ _ => none + | .getRouteServerPropagations => fun _ _ => none + | .getRouteServerRoutingDatabase => fun _ _ => none + | .getSecurityGroupsForVpc => fun _ _ => none + | .getSerialConsoleAccessStatus => fun _ _ => none + | .getSnapshotBlockPublicAccessState => fun _ _ => none + | .getSpotPlacementScores => fun _ _ => none + | .getSubnetCidrReservations => fun _ _ => none + | .getTransitGatewayAttachmentNatConfiguration => fun _ _ => none + | .getTransitGatewayAttachmentPropagations => fun _ _ => none + | .getTransitGatewayMeteringPolicyEntries => fun _ _ => none + | .getTransitGatewayMulticastDomainAssociations => fun _ _ => none + | .getTransitGatewayPolicyTableAssociations => fun _ _ => none + | .getTransitGatewayPolicyTableEntries => fun _ _ => none + | .getTransitGatewayPrefixListReferences => fun _ _ => none + | .getTransitGatewayRouteTableAssociations => fun _ _ => none + | .getTransitGatewayRouteTablePropagations => fun _ _ => none + | .getVerifiedAccessEndpointPolicy => fun _ _ => none + | .getVerifiedAccessEndpointTargets => fun _ _ => none + | .getVerifiedAccessGroupPolicy => fun _ _ => none + | .getVpcResourcesBlockingEncryptionEnforcement => fun _ _ => none + | .getVpnConnectionDeviceSampleConfiguration => fun _ _ => none + | .getVpnConnectionDeviceTypes => fun _ _ => none + | .getVpnTunnelReplacementStatus => fun _ _ => none + | .importClientVpnClientCertificateRevocationList => fun _ _ => none + | .importImage => fun _ _ => none + | .importInstance => fun _ _ => none + | .importKeyPair => fun _ _ => none + | .importSnapshot => fun _ _ => none + | .importVolume => fun _ _ => none + | .listImagesInRecycleBin => fun _ _ => none + | .listSnapshotsInRecycleBin => fun _ _ => none + | .listVolumesInRecycleBin => fun _ _ => none + | .lockSnapshot => fun _ _ => none + | .modifyAccountVpcEncryptionControl => fun _ _ => none + | .modifyAddressAttribute => fun _ _ => none + | .modifyApplicationStatusCheck => fun _ _ => none + | .modifyAvailabilityZoneGroup => fun _ _ => none + | .modifyCapacityReservation => fun _ _ => none + | .modifyCapacityReservationFleet => fun _ _ => none + | .modifyClientVpnEndpoint => fun _ _ => none + | .modifyClientVpnEndpointAuthorizationPolicy => fun _ _ => none + | .modifyDefaultCreditSpecification => fun _ _ => none + | .modifyEbsDefaultKmsKeyId => fun _ _ => none + | .modifyFleet => fun _ _ => none + | .modifyFpgaImageAttribute => fun _ _ => none + | .modifyHosts => fun _ _ => none + | .modifyIdFormat => fun _ _ => none + | .modifyIdentityIdFormat => fun _ _ => none + | .modifyImageAttribute => fun _ _ => none + | .modifyInstanceAttribute => fun _ _ => none + | .modifyInstanceCapacityReservationAttributes => fun _ _ => none + | .modifyInstanceConnectEndpoint => fun _ _ => none + | .modifyInstanceCpuOptions => fun _ _ => none + | .modifyInstanceCreditSpecification => fun _ _ => none + | .modifyInstanceEventStartTime => fun _ _ => none + | .modifyInstanceEventWindow => fun _ _ => none + | .modifyInstanceMaintenanceOptions => fun _ _ => none + | .modifyInstanceMetadataDefaults => fun _ _ => none + | .modifyInstanceMetadataOptions => fun _ _ => none + | .modifyInstanceNetworkPerformanceOptions => fun _ _ => none + | .modifyInstancePlacement => fun _ _ => none + | .modifyIpam => fun _ _ => none + | .modifyIpamPolicyAllocationRules => fun _ _ => none + | .modifyIpamPool => fun _ _ => none + | .modifyIpamPoolAllocation => fun _ _ => none + | .modifyIpamPrefixListResolver => fun _ _ => none + | .modifyIpamPrefixListResolverTarget => fun _ _ => none + | .modifyIpamResourceCidr => fun _ _ => none + | .modifyIpamResourceDiscovery => fun _ _ => none + | .modifyIpamRoutingPolicyRegistration => fun _ _ => none + | .modifyIpamScope => fun _ _ => none + | .modifyLaunchTemplate => fun _ _ => none + | .modifyLocalGatewayRoute => fun _ _ => none + | .modifyManagedPrefixList => fun _ _ => none + | .modifyManagedResourceVisibility => fun _ _ => none + | .modifyMetricCategory => fun _ _ => none + | .modifyNetworkInterfaceAttribute => fun _ _ => none + | .modifyNetworkingFlexCostAllocationPolicy => fun _ _ => none + | .modifyPrivateDnsNameOptions => fun _ _ => none + | .modifyPublicIpDnsNameOptions => fun _ _ => none + | .modifyReservedInstances => fun _ _ => none + | .modifyRouteServer => fun _ _ => none + | .modifySecurityGroupRules => fun _ _ => none + | .modifySnapshotAttribute => fun _ _ => none + | .modifySnapshotTier => fun _ _ => none + | .modifySpotFleetRequest => fun _ _ => none + | .modifySubnetAttribute => fun _ _ => none + | .modifyTrafficMirrorFilterNetworkServices => fun _ _ => none + | .modifyTrafficMirrorFilterRule => fun _ _ => none + | .modifyTrafficMirrorSession => fun _ _ => none + | .modifyTransitGateway => fun _ _ => none + | .modifyTransitGatewayAttachmentNatConfiguration => fun _ _ => none + | .modifyTransitGatewayMeteringPolicy => fun _ _ => none + | .modifyTransitGatewayNetworkFunctionAttachment => fun _ _ => none + | .modifyTransitGatewayPeeringAttachment => fun _ _ => none + | .modifyTransitGatewayPolicyTableEntry => fun _ _ => none + | .modifyTransitGatewayPrefixListReference => fun _ _ => none + | .modifyTransitGatewayVpcAttachment => fun _ _ => none + | .modifyVerifiedAccessEndpoint => fun _ _ => none + | .modifyVerifiedAccessEndpointPolicy => fun _ _ => none + | .modifyVerifiedAccessGroup => fun _ _ => none + | .modifyVerifiedAccessGroupPolicy => fun _ _ => none + | .modifyVerifiedAccessInstance => fun _ _ => none + | .modifyVerifiedAccessInstanceLoggingConfiguration => fun _ _ => none + | .modifyVerifiedAccessTrustProvider => fun _ _ => none + | .modifyVolume => fun _ _ => none + | .modifyVolumeAttribute => fun _ _ => none + | .modifyVpcAttribute => fun _ _ => none + | .modifyVpcBlockPublicAccessExclusion => fun _ _ => none + | .modifyVpcBlockPublicAccessOptions => fun _ _ => none + | .modifyVpcEncryptionControl => fun _ _ => none + | .modifyVpcEndpoint => fun _ _ => none + | .modifyVpcEndpointConnectionNotification => fun _ _ => none + | .modifyVpcEndpointPayerResponsibility => fun _ _ => none + | .modifyVpcEndpointServiceConfiguration => fun _ _ => none + | .modifyVpcEndpointServicePayerResponsibility => fun _ _ => none + | .modifyVpcEndpointServicePermissions => fun _ _ => none + | .modifyVpcPeeringConnectionOptions => fun _ _ => none + | .modifyVpcTenancy => fun _ _ => none + | .modifyVpnConnection => fun _ _ => none + | .modifyVpnConnectionOptions => fun _ _ => none + | .modifyVpnTunnelCertificate => fun _ _ => none + | .modifyVpnTunnelOptions => fun _ _ => none + | .monitorInstances => fun _ _ => none + | .moveAddressToVpc => fun _ _ => none + | .moveByoipCidrToIpam => fun _ _ => none + | .moveCapacityReservationInstances => fun _ _ => none + | .provisionByoipCidr => fun _ _ => none + | .provisionIpamByoasn => fun _ _ => none + | .provisionIpamPoolCidr => fun _ _ => none + | .provisionPublicIpv4PoolCidr => fun _ _ => none + | .purchaseCapacityBlock => fun _ _ => none + | .purchaseCapacityBlockExtension => fun _ _ => none + | .purchaseHostReservation => fun _ _ => none + | .purchaseReservedInstancesOffering => fun _ _ => none + | .purchaseScheduledInstances => fun _ _ => none + | .rebootInstances => fun _ _ => none + | .registerImage => fun _ _ => none + | .registerInstanceEventNotificationAttributes => fun _ _ => none + | .registerTransitGatewayMulticastGroupMembers => fun _ _ => none + | .registerTransitGatewayMulticastGroupSources => fun _ _ => none + | .rejectCapacityReservationBillingOwnership => fun _ _ => none + | .rejectTransitGatewayClientVpnAttachment => fun _ _ => none + | .rejectTransitGatewayMulticastDomainAssociations => fun _ _ => none + | .rejectTransitGatewayPeeringAttachment => fun _ _ => none + | .rejectTransitGatewayVpcAttachment => fun _ _ => none + | .rejectVpcEndpointConnections => fun _ _ => none + | .rejectVpcPeeringConnection => fun _ _ => none + | .releaseAddress => fun _ _ => none + | .releaseHosts => fun _ _ => none + | .releaseIpamPoolAllocation => fun _ _ => none + | .replaceIamInstanceProfileAssociation => fun _ _ => none + | .replaceImageCriteriaInAllowedImagesSettings => fun _ _ => none + | .replaceImageInstanceTypeSpecification => fun _ _ => none + | .replaceNetworkAclAssociation => fun _ _ => none + | .replaceNetworkAclEntry => fun _ _ => none + | .replaceRoute => fun _ _ => none + | .replaceRouteTableAssociation => fun _ _ => none + | .replaceTransitGatewayRoute => fun _ _ => none + | .replaceVpnTunnel => fun _ _ => none + | .reportInstanceStatus => fun _ _ => none + | .requestSpotFleet => fun _ _ => none + | .requestSpotInstances => fun _ _ => none + | .resetAddressAttribute => fun _ _ => none + | .resetEbsDefaultKmsKeyId => fun _ _ => none + | .resetFpgaImageAttribute => fun _ _ => none + | .resetImageAttribute => fun _ _ => none + | .resetInstanceAttribute => fun _ _ => none + | .resetNetworkInterfaceAttribute => fun _ _ => none + | .resetSnapshotAttribute => fun _ _ => none + | .restoreAddressToClassic => fun _ _ => none + | .restoreImageFromRecycleBin => fun _ _ => none + | .restoreManagedPrefixListVersion => fun _ _ => none + | .restoreSnapshotFromRecycleBin => fun _ _ => none + | .restoreSnapshotTier => fun _ _ => none + | .restoreVolumeFromRecycleBin => fun _ _ => none + | .revokeClientVpnIngress => fun _ _ => none + | .revokeSecurityGroupEgress => fun _ _ => none + | .revokeSecurityGroupIngress => fun _ _ => none + | .runInstances => fun _ _ => none + | .runScheduledInstances => fun _ _ => none + | .searchLocalGatewayRoutes => fun _ _ => none + | .searchTransitGatewayMulticastGroups => fun _ _ => none + | .searchTransitGatewayRoutes => fun _ _ => none + | .sendDiagnosticInterrupt => fun _ _ => none + | .startDeclarativePoliciesReport => fun _ _ => none + | .startInstances => fun _ _ => none + | .startNetworkInsightsAccessScopeAnalysis => fun _ _ => none + | .startNetworkInsightsAnalysis => fun _ _ => none + | .startVpcEndpointServicePrivateDnsVerification => fun _ _ => none + | .stopInstances => fun _ _ => none + | .terminateClientVpnConnections => fun _ _ => none + | .terminateInstances => fun _ _ => none + | .unassignIpv6Addresses => fun _ _ => none + | .unassignPrivateIpAddresses => fun _ _ => none + | .unassignPrivateNatGatewayAddress => fun _ _ => none + | .unlockSnapshot => fun _ _ => none + | .unmonitorInstances => fun _ _ => none + | .updateCapacityManagerMonitoredTagKeys => fun _ _ => none + | .updateCapacityManagerOrganizationsAccess => fun _ _ => none + | .updateInterruptibleCapacityReservationAllocation => fun _ _ => none + | .updateSecurityGroupRuleDescriptionsEgress => fun _ _ => none + | .updateSecurityGroupRuleDescriptionsIngress => fun _ _ => none + | .validateSecurityGroupQuotasForInterface => fun _ _ => none + | .withdrawByoipCidr => fun _ _ => none +) + +/-- Accepts an Elastic IP address transfer. -/ +def acceptAddressTransfer {ε : Type} (input : AcceptAddressTransferRequest) : Eff api ε (Except Empty AcceptAddressTransferResult) := + Eff.ask (api := api) .acceptAddressTransfer input + +/-- Accepts a request to assign billing of the available capacity of a shared Capacity Reservation to your account. -/ +def acceptCapacityReservationBillingOwnership {ε : Type} (input : AcceptCapacityReservationBillingOwnershipRequest) : Eff api ε (Except Empty AcceptCapacityReservationBillingOwnershipResult) := + Eff.ask (api := api) .acceptCapacityReservationBillingOwnership input + +/-- Accepts the Convertible Reserved Instance exchange quote described in the GetReservedInstancesExchangeQuote call. -/ +def acceptReservedInstancesExchangeQuote {ε : Type} (input : AcceptReservedInstancesExchangeQuoteRequest) : Eff api ε (Except Empty AcceptReservedInstancesExchangeQuoteResult) := + Eff.ask (api := api) .acceptReservedInstancesExchangeQuote input + +/-- Accepts a Transit Gateway attachment request for a Client VPN endpoint. -/ +def acceptTransitGatewayClientVpnAttachment {ε : Type} (input : AcceptTransitGatewayClientVpnAttachmentRequest) : Eff api ε (Except Empty AcceptTransitGatewayClientVpnAttachmentResult) := + Eff.ask (api := api) .acceptTransitGatewayClientVpnAttachment input + +/-- Accepts a request to associate subnets with a transit gateway multicast domain. -/ +def acceptTransitGatewayMulticastDomainAssociations {ε : Type} (input : AcceptTransitGatewayMulticastDomainAssociationsRequest) : Eff api ε (Except Empty AcceptTransitGatewayMulticastDomainAssociationsResult) := + Eff.ask (api := api) .acceptTransitGatewayMulticastDomainAssociations input + +/-- Accepts a transit gateway peering attachment request. -/ +def acceptTransitGatewayPeeringAttachment {ε : Type} (input : AcceptTransitGatewayPeeringAttachmentRequest) : Eff api ε (Except Empty AcceptTransitGatewayPeeringAttachmentResult) := + Eff.ask (api := api) .acceptTransitGatewayPeeringAttachment input + +/-- Accepts a request to attach a VPC to a transit gateway. -/ +def acceptTransitGatewayVpcAttachment {ε : Type} (input : AcceptTransitGatewayVpcAttachmentRequest) : Eff api ε (Except Empty AcceptTransitGatewayVpcAttachmentResult) := + Eff.ask (api := api) .acceptTransitGatewayVpcAttachment input + +/-- Accepts connection requests to your VPC endpoint service. -/ +def acceptVpcEndpointConnections {ε : Type} (input : AcceptVpcEndpointConnectionsRequest) : Eff api ε (Except Empty AcceptVpcEndpointConnectionsResult) := + Eff.ask (api := api) .acceptVpcEndpointConnections input + +/-- Accept a VPC peering connection request. -/ +def acceptVpcPeeringConnection {ε : Type} (input : AcceptVpcPeeringConnectionRequest) : Eff api ε (Except Empty AcceptVpcPeeringConnectionResult) := + Eff.ask (api := api) .acceptVpcPeeringConnection input + +/-- Advertises an IPv4 or IPv6 address range that is provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP). -/ +def advertiseByoipCidr {ε : Type} (input : AdvertiseByoipCidrRequest) : Eff api ε (Except Empty AdvertiseByoipCidrResult) := + Eff.ask (api := api) .advertiseByoipCidr input + +/-- Allocates an Elastic IP address to your Amazon Web Services account. -/ +def allocateAddress {ε : Type} (input : AllocateAddressRequest) : Eff api ε (Except Empty AllocateAddressResult) := + Eff.ask (api := api) .allocateAddress input + +/-- Allocates a Dedicated Host to your account. -/ +def allocateHosts {ε : Type} (input : AllocateHostsRequest) : Eff api ε (Except Empty AllocateHostsResult) := + Eff.ask (api := api) .allocateHosts input + +/-- Allocate a CIDR from an IPAM pool. -/ +def allocateIpamPoolCidr {ε : Type} (input : AllocateIpamPoolCidrRequest) : Eff api ε (Except Empty AllocateIpamPoolCidrResult) := + Eff.ask (api := api) .allocateIpamPoolCidr input + +/-- Applies a security group to the association between the target network and the Client VPN endpoint. -/ +def applySecurityGroupsToClientVpnTargetNetwork {ε : Type} (input : ApplySecurityGroupsToClientVpnTargetNetworkRequest) : Eff api ε (Except Empty ApplySecurityGroupsToClientVpnTargetNetworkResult) := + Eff.ask (api := api) .applySecurityGroupsToClientVpnTargetNetwork input + +/-- Assigns the specified IPv6 addresses to the specified network interface. -/ +def assignIpv6Addresses {ε : Type} (input : AssignIpv6AddressesRequest) : Eff api ε (Except Empty AssignIpv6AddressesResult) := + Eff.ask (api := api) .assignIpv6Addresses input + +/-- Assigns the specified secondary private IP addresses to the specified network interface. -/ +def assignPrivateIpAddresses {ε : Type} (input : AssignPrivateIpAddressesRequest) : Eff api ε (Except Empty AssignPrivateIpAddressesResult) := + Eff.ask (api := api) .assignPrivateIpAddresses input + +/-- Assigns private IPv4 addresses to a private NAT gateway. -/ +def assignPrivateNatGatewayAddress {ε : Type} (input : AssignPrivateNatGatewayAddressRequest) : Eff api ε (Except Empty AssignPrivateNatGatewayAddressResult) := + Eff.ask (api := api) .assignPrivateNatGatewayAddress input + +/-- Associates an Elastic IP address, or carrier IP address (for instances that are in subnets in Wavelength Zones) with an instance or a network interface. -/ +def associateAddress {ε : Type} (input : AssociateAddressRequest) : Eff api ε (Except Empty AssociateAddressResult) := + Eff.ask (api := api) .associateAddress input + +/-- Associates an application status check with instances or tags . -/ +def associateApplicationStatusCheck {ε : Type} (input : AssociateApplicationStatusCheckRequest) : Eff api ε (Except Empty AssociateApplicationStatusCheckResult) := + Eff.ask (api := api) .associateApplicationStatusCheck input + +/-- Initiates a request to assign billing of the unused capacity of a shared Capacity Reservation to a consumer account that is consolidated under the same Amazon Web Services organizations payer account. -/ +def associateCapacityReservationBillingOwner {ε : Type} (input : AssociateCapacityReservationBillingOwnerRequest) : Eff api ε (Except Empty AssociateCapacityReservationBillingOwnerResult) := + Eff.ask (api := api) .associateCapacityReservationBillingOwner input + +/-- Associates a target network with a Client VPN endpoint. -/ +def associateClientVpnTargetNetwork {ε : Type} (input : AssociateClientVpnTargetNetworkRequest) : Eff api ε (Except Empty AssociateClientVpnTargetNetworkResult) := + Eff.ask (api := api) .associateClientVpnTargetNetwork input + +/-- Associates a set of DHCP options (that you've previously created) with the specified VPC, or associates no DHCP options with the VPC. -/ +def associateDhcpOptions {ε : Type} (input : AssociateDhcpOptionsRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .associateDhcpOptions input + +/-- Associates an Identity and Access Management (IAM) role with an Certificate Manager (ACM) certificate. -/ +def associateEnclaveCertificateIamRole {ε : Type} (input : AssociateEnclaveCertificateIamRoleRequest) : Eff api ε (Except Empty AssociateEnclaveCertificateIamRoleResult) := + Eff.ask (api := api) .associateEnclaveCertificateIamRole input + +/-- Associates an IAM instance profile with a running or stopped instance. -/ +def associateIamInstanceProfile {ε : Type} (input : AssociateIamInstanceProfileRequest) : Eff api ε (Except Empty AssociateIamInstanceProfileResult) := + Eff.ask (api := api) .associateIamInstanceProfile input + +/-- Associates one or more targets with an event window. -/ +def associateInstanceEventWindow {ε : Type} (input : AssociateInstanceEventWindowRequest) : Eff api ε (Except Empty AssociateInstanceEventWindowResult) := + Eff.ask (api := api) .associateInstanceEventWindow input + +/-- Associates your Autonomous System Number (ASN) with a BYOIP CIDR that you own in the same Amazon Web Services Region. -/ +def associateIpamByoasn {ε : Type} (input : AssociateIpamByoasnRequest) : Eff api ε (Except Empty AssociateIpamByoasnResult) := + Eff.ask (api := api) .associateIpamByoasn input + +/-- Associates an IPAM resource discovery with an Amazon VPC IPAM. -/ +def associateIpamResourceDiscovery {ε : Type} (input : AssociateIpamResourceDiscoveryRequest) : Eff api ε (Except Empty AssociateIpamResourceDiscoveryResult) := + Eff.ask (api := api) .associateIpamResourceDiscovery input + +/-- Associates an additional KMS key with an encrypted Amazon EBS snapshot. -/ +def associateKmsKeyId {ε : Type} (input : AssociateKmsKeyIdRequest) : Eff api ε (Except Empty AssociateKmsKeyIdResult) := + Eff.ask (api := api) .associateKmsKeyId input + +/-- Associates Elastic IP addresses (EIPs) and private IPv4 addresses with a public NAT gateway. -/ +def associateNatGatewayAddress {ε : Type} (input : AssociateNatGatewayAddressRequest) : Eff api ε (Except Empty AssociateNatGatewayAddressResult) := + Eff.ask (api := api) .associateNatGatewayAddress input + +/-- Associates a flex cost allocation policy with one or more network resources. -/ +def associateNetworkingFlexCostAllocationPolicy {ε : Type} (input : AssociateNetworkingFlexCostAllocationPolicyRequest) : Eff api ε (Except Empty AssociateNetworkingFlexCostAllocationPolicyResult) := + Eff.ask (api := api) .associateNetworkingFlexCostAllocationPolicy input + +/-- Associates a route server with a VPC to enable dynamic route updates. -/ +def associateRouteServer {ε : Type} (input : AssociateRouteServerRequest) : Eff api ε (Except Empty AssociateRouteServerResult) := + Eff.ask (api := api) .associateRouteServer input + +/-- Associates a subnet in your VPC or an internet gateway or virtual private gateway attached to your VPC with a route table in your VPC. -/ +def associateRouteTable {ε : Type} (input : AssociateRouteTableRequest) : Eff api ε (Except Empty AssociateRouteTableResult) := + Eff.ask (api := api) .associateRouteTable input + +/-- Associates a security group with another VPC in the same Region. -/ +def associateSecurityGroupVpc {ε : Type} (input : AssociateSecurityGroupVpcRequest) : Eff api ε (Except Empty AssociateSecurityGroupVpcResult) := + Eff.ask (api := api) .associateSecurityGroupVpc input + +/-- Associates a CIDR block with your subnet. -/ +def associateSubnetCidrBlock {ε : Type} (input : AssociateSubnetCidrBlockRequest) : Eff api ε (Except Empty AssociateSubnetCidrBlockResult) := + Eff.ask (api := api) .associateSubnetCidrBlock input + +/-- Associates the specified subnets and transit gateway attachments with the specified transit gateway multicast domain. -/ +def associateTransitGatewayMulticastDomain {ε : Type} (input : AssociateTransitGatewayMulticastDomainRequest) : Eff api ε (Except Empty AssociateTransitGatewayMulticastDomainResult) := + Eff.ask (api := api) .associateTransitGatewayMulticastDomain input + +/-- Associates the specified transit gateway attachment with a transit gateway policy table. -/ +def associateTransitGatewayPolicyTable {ε : Type} (input : AssociateTransitGatewayPolicyTableRequest) : Eff api ε (Except Empty AssociateTransitGatewayPolicyTableResult) := + Eff.ask (api := api) .associateTransitGatewayPolicyTable input + +/-- Associates the specified attachment with the specified transit gateway route table. -/ +def associateTransitGatewayRouteTable {ε : Type} (input : AssociateTransitGatewayRouteTableRequest) : Eff api ε (Except Empty AssociateTransitGatewayRouteTableResult) := + Eff.ask (api := api) .associateTransitGatewayRouteTable input + +/-- Associates a branch network interface with a trunk network interface. -/ +def associateTrunkInterface {ε : Type} (input : AssociateTrunkInterfaceRequest) : Eff api ε (Except Empty AssociateTrunkInterfaceResult) := + Eff.ask (api := api) .associateTrunkInterface input + +/-- Associates a CIDR block with your VPC. -/ +def associateVpcCidrBlock {ε : Type} (input : AssociateVpcCidrBlockRequest) : Eff api ε (Except Empty AssociateVpcCidrBlockResult) := + Eff.ask (api := api) .associateVpcCidrBlock input + +/-- This action is deprecated. -/ +def attachClassicLinkVpc {ε : Type} (input : AttachClassicLinkVpcRequest) : Eff api ε (Except Empty AttachClassicLinkVpcResult) := + Eff.ask (api := api) .attachClassicLinkVpc input + +/-- Attaches a watermark to a non-public AMI. -/ +def attachImageWatermark {ε : Type} (input : AttachImageWatermarkRequest) : Eff api ε (Except Empty AttachImageWatermarkResult) := + Eff.ask (api := api) .attachImageWatermark input + +/-- Attaches an internet gateway or a virtual private gateway to a VPC, enabling connectivity between the internet and the VPC. -/ +def attachInternetGateway {ε : Type} (input : AttachInternetGatewayRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .attachInternetGateway input + +/-- Attaches a network interface to an instance. -/ +def attachNetworkInterface {ε : Type} (input : AttachNetworkInterfaceRequest) : Eff api ε (Except Empty AttachNetworkInterfaceResult) := + Eff.ask (api := api) .attachNetworkInterface input + +/-- Attaches the specified Amazon Web Services Verified Access trust provider to the specified Amazon Web Services Verified Access instance. -/ +def attachVerifiedAccessTrustProvider {ε : Type} (input : AttachVerifiedAccessTrustProviderRequest) : Eff api ε (Except Empty AttachVerifiedAccessTrustProviderResult) := + Eff.ask (api := api) .attachVerifiedAccessTrustProvider input + +/-- Attaches an Amazon EBS volume to a running or stopped instance, and exposes it to the instance with the specified device name. -/ +def attachVolume {ε : Type} (input : AttachVolumeRequest) : Eff api ε (Except Empty VolumeAttachment) := + Eff.ask (api := api) .attachVolume input + +/-- Attaches an available virtual private gateway to a VPC. -/ +def attachVpnGateway {ε : Type} (input : AttachVpnGatewayRequest) : Eff api ε (Except Empty AttachVpnGatewayResult) := + Eff.ask (api := api) .attachVpnGateway input + +/-- Adds an ingress authorization rule to a Client VPN endpoint. -/ +def authorizeClientVpnIngress {ε : Type} (input : AuthorizeClientVpnIngressRequest) : Eff api ε (Except Empty AuthorizeClientVpnIngressResult) := + Eff.ask (api := api) .authorizeClientVpnIngress input + +/-- Adds the specified outbound (egress) rules to a security group. -/ +def authorizeSecurityGroupEgress {ε : Type} (input : AuthorizeSecurityGroupEgressRequest) : Eff api ε (Except Empty AuthorizeSecurityGroupEgressResult) := + Eff.ask (api := api) .authorizeSecurityGroupEgress input + +/-- Adds the specified inbound (ingress) rules to a security group. -/ +def authorizeSecurityGroupIngress {ε : Type} (input : AuthorizeSecurityGroupIngressRequest) : Eff api ε (Except Empty AuthorizeSecurityGroupIngressResult) := + Eff.ask (api := api) .authorizeSecurityGroupIngress input + +/-- Modifies multiple routing policy registrations in a single operation. -/ +def batchModifyIpamRoutingPolicyRegistrations {ε : Type} (input : BatchModifyIpamRoutingPolicyRegistrationsRequest) : Eff api ε (Except Empty BatchModifyIpamRoutingPolicyRegistrationsResult) := + Eff.ask (api := api) .batchModifyIpamRoutingPolicyRegistrations input + +/-- Bundles an Amazon instance store-backed Windows instance. -/ +def bundleInstance {ε : Type} (input : BundleInstanceRequest) : Eff api ε (Except Empty BundleInstanceResult) := + Eff.ask (api := api) .bundleInstance input + +/-- Cancels a bundling operation for an instance store-backed Windows instance. -/ +def cancelBundleTask {ε : Type} (input : CancelBundleTaskRequest) : Eff api ε (Except Empty CancelBundleTaskResult) := + Eff.ask (api := api) .cancelBundleTask input + +/-- Cancels the specified Capacity Reservation, releases the reserved capacity, and changes the Capacity Reservation's state to cancelled . -/ +def cancelCapacityReservation {ε : Type} (input : CancelCapacityReservationRequest) : Eff api ε (Except Empty CancelCapacityReservationResult) := + Eff.ask (api := api) .cancelCapacityReservation input + +/-- Cancels one or more Capacity Reservation Fleets. -/ +def cancelCapacityReservationFleets {ε : Type} (input : CancelCapacityReservationFleetsRequest) : Eff api ε (Except Empty CancelCapacityReservationFleetsResult) := + Eff.ask (api := api) .cancelCapacityReservationFleets input + +/-- Cancels an active conversion task. -/ +def cancelConversionTask {ε : Type} (input : CancelConversionRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .cancelConversionTask input + +/-- Cancels the generation of an account status report. -/ +def cancelDeclarativePoliciesReport {ε : Type} (input : CancelDeclarativePoliciesReportRequest) : Eff api ε (Except Empty CancelDeclarativePoliciesReportResult) := + Eff.ask (api := api) .cancelDeclarativePoliciesReport input + +/-- Cancels an active export task. -/ +def cancelExportTask {ε : Type} (input : CancelExportTaskRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .cancelExportTask input + +/-- Removes your Amazon Web Services account from the launch permissions for the specified AMI. -/ +def cancelImageLaunchPermission {ε : Type} (input : CancelImageLaunchPermissionRequest) : Eff api ε (Except Empty CancelImageLaunchPermissionResult) := + Eff.ask (api := api) .cancelImageLaunchPermission input + +/-- Cancels an in-process import virtual machine or import snapshot task. -/ +def cancelImportTask {ε : Type} (input : CancelImportTaskRequest) : Eff api ε (Except Empty CancelImportTaskResult) := + Eff.ask (api := api) .cancelImportTask input + +/-- Cancels the specified Reserved Instance listing in the Reserved Instance Marketplace. -/ +def cancelReservedInstancesListing {ε : Type} (input : CancelReservedInstancesListingRequest) : Eff api ε (Except Empty CancelReservedInstancesListingResult) := + Eff.ask (api := api) .cancelReservedInstancesListing input + +/-- Cancels the specified Spot Fleet requests. -/ +def cancelSpotFleetRequests {ε : Type} (input : CancelSpotFleetRequestsRequest) : Eff api ε (Except Empty CancelSpotFleetRequestsResponse) := + Eff.ask (api := api) .cancelSpotFleetRequests input + +/-- Cancels one or more Spot Instance requests. -/ +def cancelSpotInstanceRequests {ε : Type} (input : CancelSpotInstanceRequestsRequest) : Eff api ε (Except Empty CancelSpotInstanceRequestsResult) := + Eff.ask (api := api) .cancelSpotInstanceRequests input + +/-- Determines whether a product code is associated with an instance. -/ +def confirmProductInstance {ε : Type} (input : ConfirmProductInstanceRequest) : Eff api ε (Except Empty ConfirmProductInstanceResult) := + Eff.ask (api := api) .confirmProductInstance input + +/-- Copies the specified Amazon FPGA Image (AFI) to the current Region. -/ +def copyFpgaImage {ε : Type} (input : CopyFpgaImageRequest) : Eff api ε (Except Empty CopyFpgaImageResult) := + Eff.ask (api := api) .copyFpgaImage input + +/-- Initiates an AMI copy operation. -/ +def copyImage {ε : Type} (input : CopyImageRequest) : Eff api ε (Except Empty CopyImageResult) := + Eff.ask (api := api) .copyImage input + +/-- Creates an exact copy of an Amazon EBS snapshot. -/ +def copySnapshot {ε : Type} (input : CopySnapshotRequest) : Eff api ε (Except Empty CopySnapshotResult) := + Eff.ask (api := api) .copySnapshot input + +/-- Creates a crash-consistent, point-in-time copy of an existing Amazon EBS volume within the same Availability Zone. -/ +def copyVolumes {ε : Type} (input : CopyVolumesRequest) : Eff api ε (Except Empty CopyVolumesResult) := + Eff.ask (api := api) .copyVolumes input + +/-- Creates an application status check for monitoring the health of applications running on your instances. -/ +def createApplicationStatusCheck {ε : Type} (input : CreateApplicationStatusCheckRequest) : Eff api ε (Except Empty CreateApplicationStatusCheckResult) := + Eff.ask (api := api) .createApplicationStatusCheck input + +/-- Creates a new data export configuration for EC2 Capacity Manager. -/ +def createCapacityManagerDataExport {ε : Type} (input : CreateCapacityManagerDataExportRequest) : Eff api ε (Except Empty CreateCapacityManagerDataExportResult) := + Eff.ask (api := api) .createCapacityManagerDataExport input + +/-- Creates a new Capacity Reservation with the specified attributes. -/ +def createCapacityReservation {ε : Type} (input : CreateCapacityReservationRequest) : Eff api ε (Except Empty CreateCapacityReservationResult) := + Eff.ask (api := api) .createCapacityReservation input + +/-- Create a new Capacity Reservation by splitting the capacity of the source Capacity Reservation. -/ +def createCapacityReservationBySplitting {ε : Type} (input : CreateCapacityReservationBySplittingRequest) : Eff api ε (Except Empty CreateCapacityReservationBySplittingResult) := + Eff.ask (api := api) .createCapacityReservationBySplitting input + +/-- Generates a cancellation quote for a future-dated Capacity Reservation that is within its commitment duration. -/ +def createCapacityReservationCancellationQuote {ε : Type} (input : CreateCapacityReservationCancellationQuoteRequest) : Eff api ε (Except Empty CreateCapacityReservationCancellationQuoteResult) := + Eff.ask (api := api) .createCapacityReservationCancellationQuote input + +/-- Generates a quote for changing the start date of a future-dated Capacity Reservation that has not yet been delivered. -/ +def createCapacityReservationDateChangeQuote {ε : Type} (input : CreateCapacityReservationDateChangeQuoteRequest) : Eff api ε (Except Empty CreateCapacityReservationDateChangeQuoteResult) := + Eff.ask (api := api) .createCapacityReservationDateChangeQuote input + +/-- Creates a Capacity Reservation Fleet. -/ +def createCapacityReservationFleet {ε : Type} (input : CreateCapacityReservationFleetRequest) : Eff api ε (Except Empty CreateCapacityReservationFleetResult) := + Eff.ask (api := api) .createCapacityReservationFleet input + +/-- Creates a carrier gateway. -/ +def createCarrierGateway {ε : Type} (input : CreateCarrierGatewayRequest) : Eff api ε (Except Empty CreateCarrierGatewayResult) := + Eff.ask (api := api) .createCarrierGateway input + +/-- Creates a Client VPN endpoint. -/ +def createClientVpnEndpoint {ε : Type} (input : CreateClientVpnEndpointRequest) : Eff api ε (Except Empty CreateClientVpnEndpointResult) := + Eff.ask (api := api) .createClientVpnEndpoint input + +/-- Adds a route to a network to a Client VPN endpoint. -/ +def createClientVpnRoute {ε : Type} (input : CreateClientVpnRouteRequest) : Eff api ε (Except Empty CreateClientVpnRouteResult) := + Eff.ask (api := api) .createClientVpnRoute input + +/-- Creates a range of customer-owned IP addresses. -/ +def createCoipCidr {ε : Type} (input : CreateCoipCidrRequest) : Eff api ε (Except Empty CreateCoipCidrResult) := + Eff.ask (api := api) .createCoipCidr input + +/-- Creates a pool of customer-owned IP (CoIP) addresses. -/ +def createCoipPool {ε : Type} (input : CreateCoipPoolRequest) : Eff api ε (Except Empty CreateCoipPoolResult) := + Eff.ask (api := api) .createCoipPool input + +/-- Provides information to Amazon Web Services about your customer gateway device. -/ +def createCustomerGateway {ε : Type} (input : CreateCustomerGatewayRequest) : Eff api ε (Except Empty CreateCustomerGatewayResult) := + Eff.ask (api := api) .createCustomerGateway input + +/-- Creates a default subnet with a size /20 IPv4 CIDR block in the specified Availability Zone in your default VPC. -/ +def createDefaultSubnet {ε : Type} (input : CreateDefaultSubnetRequest) : Eff api ε (Except Empty CreateDefaultSubnetResult) := + Eff.ask (api := api) .createDefaultSubnet input + +/-- Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet in each Availability Zone. -/ +def createDefaultVpc {ε : Type} (input : CreateDefaultVpcRequest) : Eff api ε (Except Empty CreateDefaultVpcResult) := + Eff.ask (api := api) .createDefaultVpc input + +/-- Delegates ownership of the Amazon EBS root volume for an Apple silicon Mac instance to an administrative user. -/ +def createDelegateMacVolumeOwnershipTask {ε : Type} (input : CreateDelegateMacVolumeOwnershipTaskRequest) : Eff api ε (Except Empty CreateDelegateMacVolumeOwnershipTaskResult) := + Eff.ask (api := api) .createDelegateMacVolumeOwnershipTask input + +/-- Creates a custom set of DHCP options. -/ +def createDhcpOptions {ε : Type} (input : CreateDhcpOptionsRequest) : Eff api ε (Except Empty CreateDhcpOptionsResult) := + Eff.ask (api := api) .createDhcpOptions input + +/-- [IPv6 only] Creates an egress-only internet gateway for your VPC. -/ +def createEgressOnlyInternetGateway {ε : Type} (input : CreateEgressOnlyInternetGatewayRequest) : Eff api ε (Except Empty CreateEgressOnlyInternetGatewayResult) := + Eff.ask (api := api) .createEgressOnlyInternetGateway input + +/-- Creates an EC2 Fleet that contains the configuration information for On-Demand Instances and Spot Instances. -/ +def createFleet {ε : Type} (input : CreateFleetRequest) : Eff api ε (Except Empty CreateFleetResult) := + Eff.ask (api := api) .createFleet input + +/-- Creates one or more flow logs to capture information about IP traffic for a specific network interface, subnet, or VPC. -/ +def createFlowLogs {ε : Type} (input : CreateFlowLogsRequest) : Eff api ε (Except Empty CreateFlowLogsResult) := + Eff.ask (api := api) .createFlowLogs input + +/-- Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP). -/ +def createFpgaImage {ε : Type} (input : CreateFpgaImageRequest) : Eff api ε (Except Empty CreateFpgaImageResult) := + Eff.ask (api := api) .createFpgaImage input + +/-- Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is either running or stopped. -/ +def createImage {ε : Type} (input : CreateImageRequest) : Eff api ε (Except Empty CreateImageResult) := + Eff.ask (api := api) .createImage input + +/-- Creates a report that shows how your image is used across other Amazon Web Services accounts. -/ +def createImageUsageReport {ε : Type} (input : CreateImageUsageReportRequest) : Eff api ε (Except Empty CreateImageUsageReportResult) := + Eff.ask (api := api) .createImageUsageReport input + +/-- Creates an EC2 Instance Connect Endpoint. -/ +def createInstanceConnectEndpoint {ε : Type} (input : CreateInstanceConnectEndpointRequest) : Eff api ε (Except Empty CreateInstanceConnectEndpointResult) := + Eff.ask (api := api) .createInstanceConnectEndpoint input + +/-- Creates an event window in which scheduled events for the associated Amazon EC2 instances can run. -/ +def createInstanceEventWindow {ε : Type} (input : CreateInstanceEventWindowRequest) : Eff api ε (Except Empty CreateInstanceEventWindowResult) := + Eff.ask (api := api) .createInstanceEventWindow input + +/-- Exports a running or stopped instance to an Amazon S3 bucket. -/ +def createInstanceExportTask {ε : Type} (input : CreateInstanceExportTaskRequest) : Eff api ε (Except Empty CreateInstanceExportTaskResult) := + Eff.ask (api := api) .createInstanceExportTask input + +/-- Creates an internet gateway for use with a VPC. -/ +def createInternetGateway {ε : Type} (input : CreateInternetGatewayRequest) : Eff api ε (Except Empty CreateInternetGatewayResult) := + Eff.ask (api := api) .createInternetGateway input + +/-- Creates an interruptible Capacity Reservation by specifying the number of unused instances you want to allocate from your source reservation. -/ +def createInterruptibleCapacityReservationAllocation {ε : Type} (input : CreateInterruptibleCapacityReservationAllocationRequest) : Eff api ε (Except Empty CreateInterruptibleCapacityReservationAllocationResult) := + Eff.ask (api := api) .createInterruptibleCapacityReservationAllocation input + +/-- Create an IPAM. -/ +def createIpam {ε : Type} (input : CreateIpamRequest) : Eff api ε (Except Empty CreateIpamResult) := + Eff.ask (api := api) .createIpam input + +/-- Create a verification token. -/ +def createIpamExternalResourceVerificationToken {ε : Type} (input : CreateIpamExternalResourceVerificationTokenRequest) : Eff api ε (Except Empty CreateIpamExternalResourceVerificationTokenResult) := + Eff.ask (api := api) .createIpamExternalResourceVerificationToken input + +/-- Creates an association between an IPAM and a Regional Internet Registry (RIR) for Resource Public Key Infrastructure (RPKI) management. -/ +def createIpamInternetRegistryAssociation {ε : Type} (input : CreateIpamInternetRegistryAssociationRequest) : Eff api ε (Except Empty CreateIpamInternetRegistryAssociationResult) := + Eff.ask (api := api) .createIpamInternetRegistryAssociation input + +/-- Creates an IPAM policy. -/ +def createIpamPolicy {ε : Type} (input : CreateIpamPolicyRequest) : Eff api ε (Except Empty CreateIpamPolicyResult) := + Eff.ask (api := api) .createIpamPolicy input + +/-- Create an IP address pool for Amazon VPC IP Address Manager (IPAM). -/ +def createIpamPool {ε : Type} (input : CreateIpamPoolRequest) : Eff api ε (Except Empty CreateIpamPoolResult) := + Eff.ask (api := api) .createIpamPool input + +/-- Creates an IPAM prefix list resolver. -/ +def createIpamPrefixListResolver {ε : Type} (input : CreateIpamPrefixListResolverRequest) : Eff api ε (Except Empty CreateIpamPrefixListResolverResult) := + Eff.ask (api := api) .createIpamPrefixListResolver input + +/-- Creates an IPAM prefix list resolver target. -/ +def createIpamPrefixListResolverTarget {ε : Type} (input : CreateIpamPrefixListResolverTargetRequest) : Eff api ε (Except Empty CreateIpamPrefixListResolverTargetResult) := + Eff.ask (api := api) .createIpamPrefixListResolverTarget input + +/-- Creates an IPAM resource discovery. -/ +def createIpamResourceDiscovery {ε : Type} (input : CreateIpamResourceDiscoveryRequest) : Eff api ε (Except Empty CreateIpamResourceDiscoveryResult) := + Eff.ask (api := api) .createIpamResourceDiscovery input + +/-- Creates a routing policy registration and publishes Route Origin Authorizations (ROAs) to the RPKI for the specified CIDR prefix and ASNs. -/ +def createIpamRoutingPolicyRegistration {ε : Type} (input : CreateIpamRoutingPolicyRegistrationRequest) : Eff api ε (Except Empty CreateIpamRoutingPolicyRegistrationResult) := + Eff.ask (api := api) .createIpamRoutingPolicyRegistration input + +/-- Create an IPAM scope. -/ +def createIpamScope {ε : Type} (input : CreateIpamScopeRequest) : Eff api ε (Except Empty CreateIpamScopeResult) := + Eff.ask (api := api) .createIpamScope input + +/-- Creates an ED25519 or 2048-bit RSA key pair with the specified name and in the specified format. -/ +def createKeyPair {ε : Type} (input : CreateKeyPairRequest) : Eff api ε (Except Empty KeyPair) := + Eff.ask (api := api) .createKeyPair input + +/-- Creates a launch template. -/ +def createLaunchTemplate {ε : Type} (input : CreateLaunchTemplateRequest) : Eff api ε (Except Empty CreateLaunchTemplateResult) := + Eff.ask (api := api) .createLaunchTemplate input + +/-- Creates a new version of a launch template. -/ +def createLaunchTemplateVersion {ε : Type} (input : CreateLaunchTemplateVersionRequest) : Eff api ε (Except Empty CreateLaunchTemplateVersionResult) := + Eff.ask (api := api) .createLaunchTemplateVersion input + +/-- Creates a static route for the specified local gateway route table. -/ +def createLocalGatewayRoute {ε : Type} (input : CreateLocalGatewayRouteRequest) : Eff api ε (Except Empty CreateLocalGatewayRouteResult) := + Eff.ask (api := api) .createLocalGatewayRoute input + +/-- Creates a local gateway route table. -/ +def createLocalGatewayRouteTable {ε : Type} (input : CreateLocalGatewayRouteTableRequest) : Eff api ε (Except Empty CreateLocalGatewayRouteTableResult) := + Eff.ask (api := api) .createLocalGatewayRouteTable input + +/-- Creates a local gateway route table virtual interface group association. -/ +def createLocalGatewayRouteTableVirtualInterfaceGroupAssociation {ε : Type} (input : CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest) : Eff api ε (Except Empty CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult) := + Eff.ask (api := api) .createLocalGatewayRouteTableVirtualInterfaceGroupAssociation input + +/-- Associates the specified VPC with the specified local gateway route table. -/ +def createLocalGatewayRouteTableVpcAssociation {ε : Type} (input : CreateLocalGatewayRouteTableVpcAssociationRequest) : Eff api ε (Except Empty CreateLocalGatewayRouteTableVpcAssociationResult) := + Eff.ask (api := api) .createLocalGatewayRouteTableVpcAssociation input + +/-- Create a virtual interface for a local gateway. -/ +def createLocalGatewayVirtualInterface {ε : Type} (input : CreateLocalGatewayVirtualInterfaceRequest) : Eff api ε (Except Empty CreateLocalGatewayVirtualInterfaceResult) := + Eff.ask (api := api) .createLocalGatewayVirtualInterface input + +/-- Create a local gateway virtual interface group. -/ +def createLocalGatewayVirtualInterfaceGroup {ε : Type} (input : CreateLocalGatewayVirtualInterfaceGroupRequest) : Eff api ε (Except Empty CreateLocalGatewayVirtualInterfaceGroupResult) := + Eff.ask (api := api) .createLocalGatewayVirtualInterfaceGroup input + +/-- Creates a System Integrity Protection (SIP) modification task to configure the SIP settings for an x86 Mac instance or Apple silicon Mac instance. -/ +def createMacSystemIntegrityProtectionModificationTask {ε : Type} (input : CreateMacSystemIntegrityProtectionModificationTaskRequest) : Eff api ε (Except Empty CreateMacSystemIntegrityProtectionModificationTaskResult) := + Eff.ask (api := api) .createMacSystemIntegrityProtectionModificationTask input + +/-- Creates a managed prefix list. -/ +def createManagedPrefixList {ε : Type} (input : CreateManagedPrefixListRequest) : Eff api ε (Except Empty CreateManagedPrefixListResult) := + Eff.ask (api := api) .createManagedPrefixList input + +/-- Creates a metric category. -/ +def createMetricCategory {ε : Type} (input : CreateMetricCategoryRequest) : Eff api ε (Except Empty CreateMetricCategoryResult) := + Eff.ask (api := api) .createMetricCategory input + +/-- Creates a NAT gateway in the specified subnet. -/ +def createNatGateway {ε : Type} (input : CreateNatGatewayRequest) : Eff api ε (Except Empty CreateNatGatewayResult) := + Eff.ask (api := api) .createNatGateway input + +/-- Creates a network ACL in a VPC. -/ +def createNetworkAcl {ε : Type} (input : CreateNetworkAclRequest) : Eff api ε (Except Empty CreateNetworkAclResult) := + Eff.ask (api := api) .createNetworkAcl input + +/-- Creates an entry (a rule) in a network ACL with the specified rule number. -/ +def createNetworkAclEntry {ε : Type} (input : CreateNetworkAclEntryRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .createNetworkAclEntry input + +/-- Creates a Network Access Scope. -/ +def createNetworkInsightsAccessScope {ε : Type} (input : CreateNetworkInsightsAccessScopeRequest) : Eff api ε (Except Empty CreateNetworkInsightsAccessScopeResult) := + Eff.ask (api := api) .createNetworkInsightsAccessScope input + +/-- Creates a path to analyze for reachability. -/ +def createNetworkInsightsPath {ε : Type} (input : CreateNetworkInsightsPathRequest) : Eff api ε (Except Empty CreateNetworkInsightsPathResult) := + Eff.ask (api := api) .createNetworkInsightsPath input + +/-- Creates a network interface in the specified subnet. -/ +def createNetworkInterface {ε : Type} (input : CreateNetworkInterfaceRequest) : Eff api ε (Except Empty CreateNetworkInterfaceResult) := + Eff.ask (api := api) .createNetworkInterface input + +/-- Grants an Amazon Web Services-authorized account permission to attach the specified network interface to an instance in their account. -/ +def createNetworkInterfacePermission {ε : Type} (input : CreateNetworkInterfacePermissionRequest) : Eff api ε (Except Empty CreateNetworkInterfacePermissionResult) := + Eff.ask (api := api) .createNetworkInterfacePermission input + +/-- Creates a flex cost allocation policy for Networking Flexible Cost Allocation (FCA), a feature of Amazon Virtual Private Cloud (Amazon VPC). -/ +def createNetworkingFlexCostAllocationPolicy {ε : Type} (input : CreateNetworkingFlexCostAllocationPolicyRequest) : Eff api ε (Except Empty CreateNetworkingFlexCostAllocationPolicyResult) := + Eff.ask (api := api) .createNetworkingFlexCostAllocationPolicy input + +/-- Creates a placement group in which to launch instances. -/ +def createPlacementGroup {ε : Type} (input : CreatePlacementGroupRequest) : Eff api ε (Except Empty CreatePlacementGroupResult) := + Eff.ask (api := api) .createPlacementGroup input + +/-- Creates a public IPv4 address pool. -/ +def createPublicIpv4Pool {ε : Type} (input : CreatePublicIpv4PoolRequest) : Eff api ε (Except Empty CreatePublicIpv4PoolResult) := + Eff.ask (api := api) .createPublicIpv4Pool input + +/-- Replaces the EBS-backed root volume for a running instance with a new volume that is restored to the original root volume's launch state, that is restored to a specific snapshot taken from the original root volume, that is restored from an -/ +def createReplaceRootVolumeTask {ε : Type} (input : CreateReplaceRootVolumeTaskRequest) : Eff api ε (Except Empty CreateReplaceRootVolumeTaskResult) := + Eff.ask (api := api) .createReplaceRootVolumeTask input + +/-- Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in the Reserved Instance Marketplace. -/ +def createReservedInstancesListing {ε : Type} (input : CreateReservedInstancesListingRequest) : Eff api ε (Except Empty CreateReservedInstancesListingResult) := + Eff.ask (api := api) .createReservedInstancesListing input + +/-- Starts a task that restores an AMI from an Amazon S3 object that was previously created by using CreateStoreImageTask . -/ +def createRestoreImageTask {ε : Type} (input : CreateRestoreImageTaskRequest) : Eff api ε (Except Empty CreateRestoreImageTaskResult) := + Eff.ask (api := api) .createRestoreImageTask input + +/-- Creates a route in a route table within a VPC. -/ +def createRoute {ε : Type} (input : CreateRouteRequest) : Eff api ε (Except Empty CreateRouteResult) := + Eff.ask (api := api) .createRoute input + +/-- Creates a new route server to manage dynamic routing in a VPC. -/ +def createRouteServer {ε : Type} (input : CreateRouteServerRequest) : Eff api ε (Except Empty CreateRouteServerResult) := + Eff.ask (api := api) .createRouteServer input + +/-- Creates a new endpoint for a route server in a specified subnet. -/ +def createRouteServerEndpoint {ε : Type} (input : CreateRouteServerEndpointRequest) : Eff api ε (Except Empty CreateRouteServerEndpointResult) := + Eff.ask (api := api) .createRouteServerEndpoint input + +/-- Creates a new BGP peer for a specified route server endpoint. -/ +def createRouteServerPeer {ε : Type} (input : CreateRouteServerPeerRequest) : Eff api ε (Except Empty CreateRouteServerPeerResult) := + Eff.ask (api := api) .createRouteServerPeer input + +/-- Creates a route table for the specified VPC. -/ +def createRouteTable {ε : Type} (input : CreateRouteTableRequest) : Eff api ε (Except Empty CreateRouteTableResult) := + Eff.ask (api := api) .createRouteTable input + +/-- Creates a secondary network. -/ +def createSecondaryNetwork {ε : Type} (input : CreateSecondaryNetworkRequest) : Eff api ε (Except Empty CreateSecondaryNetworkResult) := + Eff.ask (api := api) .createSecondaryNetwork input + +/-- Creates a secondary subnet in a secondary network. -/ +def createSecondarySubnet {ε : Type} (input : CreateSecondarySubnetRequest) : Eff api ε (Except Empty CreateSecondarySubnetResult) := + Eff.ask (api := api) .createSecondarySubnet input + +/-- Creates a security group. -/ +def createSecurityGroup {ε : Type} (input : CreateSecurityGroupRequest) : Eff api ε (Except Empty CreateSecurityGroupResult) := + Eff.ask (api := api) .createSecurityGroup input + +/-- Creates a snapshot of an EBS volume and stores it in Amazon S3. -/ +def createSnapshot {ε : Type} (input : CreateSnapshotRequest) : Eff api ε (Except Empty Snapshot) := + Eff.ask (api := api) .createSnapshot input + +/-- Creates crash-consistent snapshots of multiple EBS volumes attached to an Amazon EC2 instance. -/ +def createSnapshots {ε : Type} (input : CreateSnapshotsRequest) : Eff api ε (Except Empty CreateSnapshotsResult) := + Eff.ask (api := api) .createSnapshots input + +/-- Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs. -/ +def createSpotDatafeedSubscription {ε : Type} (input : CreateSpotDatafeedSubscriptionRequest) : Eff api ε (Except Empty CreateSpotDatafeedSubscriptionResult) := + Eff.ask (api := api) .createSpotDatafeedSubscription input + +/-- Stores an AMI as a single object in an Amazon S3 bucket. -/ +def createStoreImageTask {ε : Type} (input : CreateStoreImageTaskRequest) : Eff api ε (Except Empty CreateStoreImageTaskResult) := + Eff.ask (api := api) .createStoreImageTask input + +/-- Creates a subnet in the specified VPC. -/ +def createSubnet {ε : Type} (input : CreateSubnetRequest) : Eff api ε (Except Empty CreateSubnetResult) := + Eff.ask (api := api) .createSubnet input + +/-- Creates a subnet CIDR reservation. -/ +def createSubnetCidrReservation {ε : Type} (input : CreateSubnetCidrReservationRequest) : Eff api ε (Except Empty CreateSubnetCidrReservationResult) := + Eff.ask (api := api) .createSubnetCidrReservation input + +/-- Adds or overwrites only the specified tags for the specified Amazon EC2 resource or resources. -/ +def createTags {ε : Type} (input : CreateTagsRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .createTags input + +/-- Creates a Traffic Mirror filter. -/ +def createTrafficMirrorFilter {ε : Type} (input : CreateTrafficMirrorFilterRequest) : Eff api ε (Except Empty CreateTrafficMirrorFilterResult) := + Eff.ask (api := api) .createTrafficMirrorFilter input + +/-- Creates a Traffic Mirror filter rule. -/ +def createTrafficMirrorFilterRule {ε : Type} (input : CreateTrafficMirrorFilterRuleRequest) : Eff api ε (Except Empty CreateTrafficMirrorFilterRuleResult) := + Eff.ask (api := api) .createTrafficMirrorFilterRule input + +/-- Creates a Traffic Mirror session. -/ +def createTrafficMirrorSession {ε : Type} (input : CreateTrafficMirrorSessionRequest) : Eff api ε (Except Empty CreateTrafficMirrorSessionResult) := + Eff.ask (api := api) .createTrafficMirrorSession input + +/-- Creates a target for your Traffic Mirror session. -/ +def createTrafficMirrorTarget {ε : Type} (input : CreateTrafficMirrorTargetRequest) : Eff api ε (Except Empty CreateTrafficMirrorTargetResult) := + Eff.ask (api := api) .createTrafficMirrorTarget input + +/-- Creates a transit gateway. -/ +def createTransitGateway {ε : Type} (input : CreateTransitGatewayRequest) : Eff api ε (Except Empty CreateTransitGatewayResult) := + Eff.ask (api := api) .createTransitGateway input + +/-- Creates a Connect attachment from a specified transit gateway attachment. -/ +def createTransitGatewayConnect {ε : Type} (input : CreateTransitGatewayConnectRequest) : Eff api ε (Except Empty CreateTransitGatewayConnectResult) := + Eff.ask (api := api) .createTransitGatewayConnect input + +/-- Creates a Connect peer for a specified transit gateway Connect attachment between a transit gateway and an appliance. -/ +def createTransitGatewayConnectPeer {ε : Type} (input : CreateTransitGatewayConnectPeerRequest) : Eff api ε (Except Empty CreateTransitGatewayConnectPeerResult) := + Eff.ask (api := api) .createTransitGatewayConnectPeer input + +/-- Creates a metering policy for a transit gateway to track and measure network traffic. -/ +def createTransitGatewayMeteringPolicy {ε : Type} (input : CreateTransitGatewayMeteringPolicyRequest) : Eff api ε (Except Empty CreateTransitGatewayMeteringPolicyResult) := + Eff.ask (api := api) .createTransitGatewayMeteringPolicy input + +/-- Creates an entry in a transit gateway metering policy to define traffic measurement rules. -/ +def createTransitGatewayMeteringPolicyEntry {ε : Type} (input : CreateTransitGatewayMeteringPolicyEntryRequest) : Eff api ε (Except Empty CreateTransitGatewayMeteringPolicyEntryResult) := + Eff.ask (api := api) .createTransitGatewayMeteringPolicyEntry input + +/-- Creates a multicast domain using the specified transit gateway. -/ +def createTransitGatewayMulticastDomain {ε : Type} (input : CreateTransitGatewayMulticastDomainRequest) : Eff api ε (Except Empty CreateTransitGatewayMulticastDomainResult) := + Eff.ask (api := api) .createTransitGatewayMulticastDomain input + +/-- Creates a network function attachment that connects the specified transit gateway to a Gateway Load Balancer endpoint service. -/ +def createTransitGatewayNetworkFunctionAttachment {ε : Type} (input : CreateTransitGatewayNetworkFunctionAttachmentRequest) : Eff api ε (Except Empty CreateTransitGatewayNetworkFunctionAttachmentResult) := + Eff.ask (api := api) .createTransitGatewayNetworkFunctionAttachment input + +/-- Requests a transit gateway peering attachment between the specified transit gateway (requester) and a peer transit gateway (accepter). -/ +def createTransitGatewayPeeringAttachment {ε : Type} (input : CreateTransitGatewayPeeringAttachmentRequest) : Eff api ε (Except Empty CreateTransitGatewayPeeringAttachmentResult) := + Eff.ask (api := api) .createTransitGatewayPeeringAttachment input + +/-- Creates a transit gateway policy table. -/ +def createTransitGatewayPolicyTable {ε : Type} (input : CreateTransitGatewayPolicyTableRequest) : Eff api ε (Except Empty CreateTransitGatewayPolicyTableResult) := + Eff.ask (api := api) .createTransitGatewayPolicyTable input + +/-- Creates an entry in a transit gateway policy table to route matching traffic to a specified route table. -/ +def createTransitGatewayPolicyTableEntry {ε : Type} (input : CreateTransitGatewayPolicyTableEntryRequest) : Eff api ε (Except Empty CreateTransitGatewayPolicyTableEntryResult) := + Eff.ask (api := api) .createTransitGatewayPolicyTableEntry input + +/-- Creates a reference (route) to a prefix list in a specified transit gateway route table. -/ +def createTransitGatewayPrefixListReference {ε : Type} (input : CreateTransitGatewayPrefixListReferenceRequest) : Eff api ε (Except Empty CreateTransitGatewayPrefixListReferenceResult) := + Eff.ask (api := api) .createTransitGatewayPrefixListReference input + +/-- Creates a static route for the specified transit gateway route table. -/ +def createTransitGatewayRoute {ε : Type} (input : CreateTransitGatewayRouteRequest) : Eff api ε (Except Empty CreateTransitGatewayRouteResult) := + Eff.ask (api := api) .createTransitGatewayRoute input + +/-- Creates a route table for the specified transit gateway. -/ +def createTransitGatewayRouteTable {ε : Type} (input : CreateTransitGatewayRouteTableRequest) : Eff api ε (Except Empty CreateTransitGatewayRouteTableResult) := + Eff.ask (api := api) .createTransitGatewayRouteTable input + +/-- Advertises a new transit gateway route table. -/ +def createTransitGatewayRouteTableAnnouncement {ε : Type} (input : CreateTransitGatewayRouteTableAnnouncementRequest) : Eff api ε (Except Empty CreateTransitGatewayRouteTableAnnouncementResult) := + Eff.ask (api := api) .createTransitGatewayRouteTableAnnouncement input + +/-- Attaches the specified VPC to the specified transit gateway. -/ +def createTransitGatewayVpcAttachment {ε : Type} (input : CreateTransitGatewayVpcAttachmentRequest) : Eff api ε (Except Empty CreateTransitGatewayVpcAttachmentResult) := + Eff.ask (api := api) .createTransitGatewayVpcAttachment input + +/-- An Amazon Web Services Verified Access endpoint is where you define your application along with an optional endpoint-level access policy. -/ +def createVerifiedAccessEndpoint {ε : Type} (input : CreateVerifiedAccessEndpointRequest) : Eff api ε (Except Empty CreateVerifiedAccessEndpointResult) := + Eff.ask (api := api) .createVerifiedAccessEndpoint input + +/-- An Amazon Web Services Verified Access group is a collection of Amazon Web Services Verified Access endpoints who's associated applications have similar security requirements. -/ +def createVerifiedAccessGroup {ε : Type} (input : CreateVerifiedAccessGroupRequest) : Eff api ε (Except Empty CreateVerifiedAccessGroupResult) := + Eff.ask (api := api) .createVerifiedAccessGroup input + +/-- An Amazon Web Services Verified Access instance is a regional entity that evaluates application requests and grants access only when your security requirements are met. -/ +def createVerifiedAccessInstance {ε : Type} (input : CreateVerifiedAccessInstanceRequest) : Eff api ε (Except Empty CreateVerifiedAccessInstanceResult) := + Eff.ask (api := api) .createVerifiedAccessInstance input + +/-- A trust provider is a third-party entity that creates, maintains, and manages identity information for users and devices. -/ +def createVerifiedAccessTrustProvider {ε : Type} (input : CreateVerifiedAccessTrustProviderRequest) : Eff api ε (Except Empty CreateVerifiedAccessTrustProviderResult) := + Eff.ask (api := api) .createVerifiedAccessTrustProvider input + +/-- Creates an EBS volume that can be attached to an instance in the same Availability Zone. -/ +def createVolume {ε : Type} (input : CreateVolumeRequest) : Eff api ε (Except Empty Volume) := + Eff.ask (api := api) .createVolume input + +/-- Creates a VPC with the specified CIDR blocks. -/ +def createVpc {ε : Type} (input : CreateVpcRequest) : Eff api ε (Except Empty CreateVpcResult) := + Eff.ask (api := api) .createVpc input + +/-- Create a VPC Block Public Access (BPA) exclusion. -/ +def createVpcBlockPublicAccessExclusion {ε : Type} (input : CreateVpcBlockPublicAccessExclusionRequest) : Eff api ε (Except Empty CreateVpcBlockPublicAccessExclusionResult) := + Eff.ask (api := api) .createVpcBlockPublicAccessExclusion input + +/-- Creates a VPC Encryption Control configuration for a specified VPC. -/ +def createVpcEncryptionControl {ε : Type} (input : CreateVpcEncryptionControlRequest) : Eff api ε (Except Empty CreateVpcEncryptionControlResult) := + Eff.ask (api := api) .createVpcEncryptionControl input + +/-- Creates a VPC endpoint. -/ +def createVpcEndpoint {ε : Type} (input : CreateVpcEndpointRequest) : Eff api ε (Except Empty CreateVpcEndpointResult) := + Eff.ask (api := api) .createVpcEndpoint input + +/-- Creates a connection notification for a specified VPC endpoint or VPC endpoint service. -/ +def createVpcEndpointConnectionNotification {ε : Type} (input : CreateVpcEndpointConnectionNotificationRequest) : Eff api ε (Except Empty CreateVpcEndpointConnectionNotificationResult) := + Eff.ask (api := api) .createVpcEndpointConnectionNotification input + +/-- Creates a VPC endpoint service to which service consumers (Amazon Web Services accounts, users, and IAM roles) can connect. -/ +def createVpcEndpointServiceConfiguration {ε : Type} (input : CreateVpcEndpointServiceConfigurationRequest) : Eff api ε (Except Empty CreateVpcEndpointServiceConfigurationResult) := + Eff.ask (api := api) .createVpcEndpointServiceConfiguration input + +/-- Requests a VPC peering connection between two VPCs: a requester VPC that you own and an accepter VPC with which to create the connection. -/ +def createVpcPeeringConnection {ε : Type} (input : CreateVpcPeeringConnectionRequest) : Eff api ε (Except Empty CreateVpcPeeringConnectionResult) := + Eff.ask (api := api) .createVpcPeeringConnection input + +/-- Creates a VPN concentrator that aggregates multiple VPN connections to a transit gateway. -/ +def createVpnConcentrator {ε : Type} (input : CreateVpnConcentratorRequest) : Eff api ε (Except Empty CreateVpnConcentratorResult) := + Eff.ask (api := api) .createVpnConcentrator input + +/-- Creates a VPN connection between an existing virtual private gateway or transit gateway and a customer gateway. -/ +def createVpnConnection {ε : Type} (input : CreateVpnConnectionRequest) : Eff api ε (Except Empty CreateVpnConnectionResult) := + Eff.ask (api := api) .createVpnConnection input + +/-- Creates a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. -/ +def createVpnConnectionRoute {ε : Type} (input : CreateVpnConnectionRouteRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .createVpnConnectionRoute input + +/-- Creates a virtual private gateway. -/ +def createVpnGateway {ε : Type} (input : CreateVpnGatewayRequest) : Eff api ε (Except Empty CreateVpnGatewayResult) := + Eff.ask (api := api) .createVpnGateway input + +/-- Deletes an application status check. -/ +def deleteApplicationStatusCheck {ε : Type} (input : DeleteApplicationStatusCheckRequest) : Eff api ε (Except Empty DeleteApplicationStatusCheckResult) := + Eff.ask (api := api) .deleteApplicationStatusCheck input + +/-- Deletes an existing Capacity Manager data export configuration. -/ +def deleteCapacityManagerDataExport {ε : Type} (input : DeleteCapacityManagerDataExportRequest) : Eff api ε (Except Empty DeleteCapacityManagerDataExportResult) := + Eff.ask (api := api) .deleteCapacityManagerDataExport input + +/-- Deletes a carrier gateway. -/ +def deleteCarrierGateway {ε : Type} (input : DeleteCarrierGatewayRequest) : Eff api ε (Except Empty DeleteCarrierGatewayResult) := + Eff.ask (api := api) .deleteCarrierGateway input + +/-- Deletes the specified Client VPN endpoint. -/ +def deleteClientVpnEndpoint {ε : Type} (input : DeleteClientVpnEndpointRequest) : Eff api ε (Except Empty DeleteClientVpnEndpointResult) := + Eff.ask (api := api) .deleteClientVpnEndpoint input + +/-- Deletes the authorization policy for a Client VPN endpoint. -/ +def deleteClientVpnEndpointAuthorizationPolicy {ε : Type} (input : DeleteClientVpnEndpointAuthorizationPolicyRequest) : Eff api ε (Except Empty DeleteClientVpnEndpointAuthorizationPolicyResult) := + Eff.ask (api := api) .deleteClientVpnEndpointAuthorizationPolicy input + +/-- Deletes a route from a Client VPN endpoint. -/ +def deleteClientVpnRoute {ε : Type} (input : DeleteClientVpnRouteRequest) : Eff api ε (Except Empty DeleteClientVpnRouteResult) := + Eff.ask (api := api) .deleteClientVpnRoute input + +/-- Deletes a range of customer-owned IP addresses. -/ +def deleteCoipCidr {ε : Type} (input : DeleteCoipCidrRequest) : Eff api ε (Except Empty DeleteCoipCidrResult) := + Eff.ask (api := api) .deleteCoipCidr input + +/-- Deletes a pool of customer-owned IP (CoIP) addresses. -/ +def deleteCoipPool {ε : Type} (input : DeleteCoipPoolRequest) : Eff api ε (Except Empty DeleteCoipPoolResult) := + Eff.ask (api := api) .deleteCoipPool input + +/-- Deletes the specified customer gateway. -/ +def deleteCustomerGateway {ε : Type} (input : DeleteCustomerGatewayRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteCustomerGateway input + +/-- Deletes the specified set of DHCP options. -/ +def deleteDhcpOptions {ε : Type} (input : DeleteDhcpOptionsRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteDhcpOptions input + +/-- Deletes an egress-only internet gateway. -/ +def deleteEgressOnlyInternetGateway {ε : Type} (input : DeleteEgressOnlyInternetGatewayRequest) : Eff api ε (Except Empty DeleteEgressOnlyInternetGatewayResult) := + Eff.ask (api := api) .deleteEgressOnlyInternetGateway input + +/-- Deletes the specified EC2 Fleet request. -/ +def deleteFleets {ε : Type} (input : DeleteFleetsRequest) : Eff api ε (Except Empty DeleteFleetsResult) := + Eff.ask (api := api) .deleteFleets input + +/-- Deletes one or more flow logs. -/ +def deleteFlowLogs {ε : Type} (input : DeleteFlowLogsRequest) : Eff api ε (Except Empty DeleteFlowLogsResult) := + Eff.ask (api := api) .deleteFlowLogs input + +/-- Deletes the specified Amazon FPGA Image (AFI). -/ +def deleteFpgaImage {ε : Type} (input : DeleteFpgaImageRequest) : Eff api ε (Except Empty DeleteFpgaImageResult) := + Eff.ask (api := api) .deleteFpgaImage input + +/-- Deletes the specified image usage report. -/ +def deleteImageUsageReport {ε : Type} (input : DeleteImageUsageReportRequest) : Eff api ε (Except Empty DeleteImageUsageReportResult) := + Eff.ask (api := api) .deleteImageUsageReport input + +/-- Deletes the specified EC2 Instance Connect Endpoint. -/ +def deleteInstanceConnectEndpoint {ε : Type} (input : DeleteInstanceConnectEndpointRequest) : Eff api ε (Except Empty DeleteInstanceConnectEndpointResult) := + Eff.ask (api := api) .deleteInstanceConnectEndpoint input + +/-- Deletes the specified event window. -/ +def deleteInstanceEventWindow {ε : Type} (input : DeleteInstanceEventWindowRequest) : Eff api ε (Except Empty DeleteInstanceEventWindowResult) := + Eff.ask (api := api) .deleteInstanceEventWindow input + +/-- Deletes the specified internet gateway. -/ +def deleteInternetGateway {ε : Type} (input : DeleteInternetGatewayRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteInternetGateway input + +/-- Delete an IPAM. -/ +def deleteIpam {ε : Type} (input : DeleteIpamRequest) : Eff api ε (Except Empty DeleteIpamResult) := + Eff.ask (api := api) .deleteIpam input + +/-- Delete a verification token. -/ +def deleteIpamExternalResourceVerificationToken {ε : Type} (input : DeleteIpamExternalResourceVerificationTokenRequest) : Eff api ε (Except Empty DeleteIpamExternalResourceVerificationTokenResult) := + Eff.ask (api := api) .deleteIpamExternalResourceVerificationToken input + +/-- Deletes an IPAM internet registry association. -/ +def deleteIpamInternetRegistryAssociation {ε : Type} (input : DeleteIpamInternetRegistryAssociationRequest) : Eff api ε (Except Empty DeleteIpamInternetRegistryAssociationResult) := + Eff.ask (api := api) .deleteIpamInternetRegistryAssociation input + +/-- Deletes an IPAM policy. -/ +def deleteIpamPolicy {ε : Type} (input : DeleteIpamPolicyRequest) : Eff api ε (Except Empty DeleteIpamPolicyResult) := + Eff.ask (api := api) .deleteIpamPolicy input + +/-- Delete an IPAM pool. -/ +def deleteIpamPool {ε : Type} (input : DeleteIpamPoolRequest) : Eff api ε (Except Empty DeleteIpamPoolResult) := + Eff.ask (api := api) .deleteIpamPool input + +/-- Deletes an IPAM prefix list resolver. -/ +def deleteIpamPrefixListResolver {ε : Type} (input : DeleteIpamPrefixListResolverRequest) : Eff api ε (Except Empty DeleteIpamPrefixListResolverResult) := + Eff.ask (api := api) .deleteIpamPrefixListResolver input + +/-- Deletes an IPAM prefix list resolver target. -/ +def deleteIpamPrefixListResolverTarget {ε : Type} (input : DeleteIpamPrefixListResolverTargetRequest) : Eff api ε (Except Empty DeleteIpamPrefixListResolverTargetResult) := + Eff.ask (api := api) .deleteIpamPrefixListResolverTarget input + +/-- Deletes an IPAM resource discovery. -/ +def deleteIpamResourceDiscovery {ε : Type} (input : DeleteIpamResourceDiscoveryRequest) : Eff api ε (Except Empty DeleteIpamResourceDiscoveryResult) := + Eff.ask (api := api) .deleteIpamResourceDiscovery input + +/-- Deletes a routing policy registration for a specified CIDR prefix. -/ +def deleteIpamRoutingPolicyRegistration {ε : Type} (input : DeleteIpamRoutingPolicyRegistrationRequest) : Eff api ε (Except Empty DeleteIpamRoutingPolicyRegistrationResult) := + Eff.ask (api := api) .deleteIpamRoutingPolicyRegistration input + +/-- Delete the scope for an IPAM. -/ +def deleteIpamScope {ε : Type} (input : DeleteIpamScopeRequest) : Eff api ε (Except Empty DeleteIpamScopeResult) := + Eff.ask (api := api) .deleteIpamScope input + +/-- Deletes the specified key pair, by removing the public key from Amazon EC2. -/ +def deleteKeyPair {ε : Type} (input : DeleteKeyPairRequest) : Eff api ε (Except Empty DeleteKeyPairResult) := + Eff.ask (api := api) .deleteKeyPair input + +/-- Deletes a launch template. -/ +def deleteLaunchTemplate {ε : Type} (input : DeleteLaunchTemplateRequest) : Eff api ε (Except Empty DeleteLaunchTemplateResult) := + Eff.ask (api := api) .deleteLaunchTemplate input + +/-- Deletes one or more versions of a launch template. -/ +def deleteLaunchTemplateVersions {ε : Type} (input : DeleteLaunchTemplateVersionsRequest) : Eff api ε (Except Empty DeleteLaunchTemplateVersionsResult) := + Eff.ask (api := api) .deleteLaunchTemplateVersions input + +/-- Deletes the specified route from the specified local gateway route table. -/ +def deleteLocalGatewayRoute {ε : Type} (input : DeleteLocalGatewayRouteRequest) : Eff api ε (Except Empty DeleteLocalGatewayRouteResult) := + Eff.ask (api := api) .deleteLocalGatewayRoute input + +/-- Deletes a local gateway route table. -/ +def deleteLocalGatewayRouteTable {ε : Type} (input : DeleteLocalGatewayRouteTableRequest) : Eff api ε (Except Empty DeleteLocalGatewayRouteTableResult) := + Eff.ask (api := api) .deleteLocalGatewayRouteTable input + +/-- Deletes a local gateway route table virtual interface group association. -/ +def deleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation {ε : Type} (input : DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest) : Eff api ε (Except Empty DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult) := + Eff.ask (api := api) .deleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation input + +/-- Deletes the specified association between a VPC and local gateway route table. -/ +def deleteLocalGatewayRouteTableVpcAssociation {ε : Type} (input : DeleteLocalGatewayRouteTableVpcAssociationRequest) : Eff api ε (Except Empty DeleteLocalGatewayRouteTableVpcAssociationResult) := + Eff.ask (api := api) .deleteLocalGatewayRouteTableVpcAssociation input + +/-- Deletes the specified local gateway virtual interface. -/ +def deleteLocalGatewayVirtualInterface {ε : Type} (input : DeleteLocalGatewayVirtualInterfaceRequest) : Eff api ε (Except Empty DeleteLocalGatewayVirtualInterfaceResult) := + Eff.ask (api := api) .deleteLocalGatewayVirtualInterface input + +/-- Delete the specified local gateway interface group. -/ +def deleteLocalGatewayVirtualInterfaceGroup {ε : Type} (input : DeleteLocalGatewayVirtualInterfaceGroupRequest) : Eff api ε (Except Empty DeleteLocalGatewayVirtualInterfaceGroupResult) := + Eff.ask (api := api) .deleteLocalGatewayVirtualInterfaceGroup input + +/-- Deletes the specified managed prefix list. -/ +def deleteManagedPrefixList {ε : Type} (input : DeleteManagedPrefixListRequest) : Eff api ε (Except Empty DeleteManagedPrefixListResult) := + Eff.ask (api := api) .deleteManagedPrefixList input + +/-- Deletes the specified metric category. -/ +def deleteMetricCategory {ε : Type} (input : DeleteMetricCategoryRequest) : Eff api ε (Except Empty DeleteMetricCategoryResult) := + Eff.ask (api := api) .deleteMetricCategory input + +/-- Deletes the specified NAT gateway. -/ +def deleteNatGateway {ε : Type} (input : DeleteNatGatewayRequest) : Eff api ε (Except Empty DeleteNatGatewayResult) := + Eff.ask (api := api) .deleteNatGateway input + +/-- Deletes the specified network ACL. -/ +def deleteNetworkAcl {ε : Type} (input : DeleteNetworkAclRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteNetworkAcl input + +/-- Deletes the specified ingress or egress entry (rule) from the specified network ACL. -/ +def deleteNetworkAclEntry {ε : Type} (input : DeleteNetworkAclEntryRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteNetworkAclEntry input + +/-- Deletes the specified Network Access Scope. -/ +def deleteNetworkInsightsAccessScope {ε : Type} (input : DeleteNetworkInsightsAccessScopeRequest) : Eff api ε (Except Empty DeleteNetworkInsightsAccessScopeResult) := + Eff.ask (api := api) .deleteNetworkInsightsAccessScope input + +/-- Deletes the specified Network Access Scope analysis. -/ +def deleteNetworkInsightsAccessScopeAnalysis {ε : Type} (input : DeleteNetworkInsightsAccessScopeAnalysisRequest) : Eff api ε (Except Empty DeleteNetworkInsightsAccessScopeAnalysisResult) := + Eff.ask (api := api) .deleteNetworkInsightsAccessScopeAnalysis input + +/-- Deletes the specified network insights analysis. -/ +def deleteNetworkInsightsAnalysis {ε : Type} (input : DeleteNetworkInsightsAnalysisRequest) : Eff api ε (Except Empty DeleteNetworkInsightsAnalysisResult) := + Eff.ask (api := api) .deleteNetworkInsightsAnalysis input + +/-- Deletes the specified path. -/ +def deleteNetworkInsightsPath {ε : Type} (input : DeleteNetworkInsightsPathRequest) : Eff api ε (Except Empty DeleteNetworkInsightsPathResult) := + Eff.ask (api := api) .deleteNetworkInsightsPath input + +/-- Deletes the specified network interface. -/ +def deleteNetworkInterface {ε : Type} (input : DeleteNetworkInterfaceRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteNetworkInterface input + +/-- Deletes a permission for a network interface. -/ +def deleteNetworkInterfacePermission {ε : Type} (input : DeleteNetworkInterfacePermissionRequest) : Eff api ε (Except Empty DeleteNetworkInterfacePermissionResult) := + Eff.ask (api := api) .deleteNetworkInterfacePermission input + +/-- Deletes one or more flex cost allocation policies. -/ +def deleteNetworkingFlexCostAllocationPolicies {ε : Type} (input : DeleteNetworkingFlexCostAllocationPoliciesRequest) : Eff api ε (Except Empty DeleteNetworkingFlexCostAllocationPoliciesResult) := + Eff.ask (api := api) .deleteNetworkingFlexCostAllocationPolicies input + +/-- Deletes the specified placement group. -/ +def deletePlacementGroup {ε : Type} (input : DeletePlacementGroupRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deletePlacementGroup input + +/-- Delete a public IPv4 pool. -/ +def deletePublicIpv4Pool {ε : Type} (input : DeletePublicIpv4PoolRequest) : Eff api ε (Except Empty DeletePublicIpv4PoolResult) := + Eff.ask (api := api) .deletePublicIpv4Pool input + +/-- Deletes the queued purchases for the specified Reserved Instances. -/ +def deleteQueuedReservedInstances {ε : Type} (input : DeleteQueuedReservedInstancesRequest) : Eff api ε (Except Empty DeleteQueuedReservedInstancesResult) := + Eff.ask (api := api) .deleteQueuedReservedInstances input + +/-- Deletes the specified route from the specified route table. -/ +def deleteRoute {ε : Type} (input : DeleteRouteRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteRoute input + +/-- Deletes the specified route server. -/ +def deleteRouteServer {ε : Type} (input : DeleteRouteServerRequest) : Eff api ε (Except Empty DeleteRouteServerResult) := + Eff.ask (api := api) .deleteRouteServer input + +/-- Deletes the specified route server endpoint. -/ +def deleteRouteServerEndpoint {ε : Type} (input : DeleteRouteServerEndpointRequest) : Eff api ε (Except Empty DeleteRouteServerEndpointResult) := + Eff.ask (api := api) .deleteRouteServerEndpoint input + +/-- Deletes the specified BGP peer from a route server. -/ +def deleteRouteServerPeer {ε : Type} (input : DeleteRouteServerPeerRequest) : Eff api ε (Except Empty DeleteRouteServerPeerResult) := + Eff.ask (api := api) .deleteRouteServerPeer input + +/-- Deletes the specified route table. -/ +def deleteRouteTable {ε : Type} (input : DeleteRouteTableRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteRouteTable input + +/-- Deletes a secondary network. -/ +def deleteSecondaryNetwork {ε : Type} (input : DeleteSecondaryNetworkRequest) : Eff api ε (Except Empty DeleteSecondaryNetworkResult) := + Eff.ask (api := api) .deleteSecondaryNetwork input + +/-- Deletes a secondary subnet. -/ +def deleteSecondarySubnet {ε : Type} (input : DeleteSecondarySubnetRequest) : Eff api ε (Except Empty DeleteSecondarySubnetResult) := + Eff.ask (api := api) .deleteSecondarySubnet input + +/-- Deletes a security group. -/ +def deleteSecurityGroup {ε : Type} (input : DeleteSecurityGroupRequest) : Eff api ε (Except Empty DeleteSecurityGroupResult) := + Eff.ask (api := api) .deleteSecurityGroup input + +/-- Deletes the specified snapshot. -/ +def deleteSnapshot {ε : Type} (input : DeleteSnapshotRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteSnapshot input + +/-- Deletes the data feed for Spot Instances. -/ +def deleteSpotDatafeedSubscription {ε : Type} (input : DeleteSpotDatafeedSubscriptionRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteSpotDatafeedSubscription input + +/-- Deletes the specified subnet. -/ +def deleteSubnet {ε : Type} (input : DeleteSubnetRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteSubnet input + +/-- Deletes a subnet CIDR reservation. -/ +def deleteSubnetCidrReservation {ε : Type} (input : DeleteSubnetCidrReservationRequest) : Eff api ε (Except Empty DeleteSubnetCidrReservationResult) := + Eff.ask (api := api) .deleteSubnetCidrReservation input + +/-- Deletes the specified set of tags from the specified set of resources. -/ +def deleteTags {ε : Type} (input : DeleteTagsRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteTags input + +/-- Deletes the specified Traffic Mirror filter. -/ +def deleteTrafficMirrorFilter {ε : Type} (input : DeleteTrafficMirrorFilterRequest) : Eff api ε (Except Empty DeleteTrafficMirrorFilterResult) := + Eff.ask (api := api) .deleteTrafficMirrorFilter input + +/-- Deletes the specified Traffic Mirror rule. -/ +def deleteTrafficMirrorFilterRule {ε : Type} (input : DeleteTrafficMirrorFilterRuleRequest) : Eff api ε (Except Empty DeleteTrafficMirrorFilterRuleResult) := + Eff.ask (api := api) .deleteTrafficMirrorFilterRule input + +/-- Deletes the specified Traffic Mirror session. -/ +def deleteTrafficMirrorSession {ε : Type} (input : DeleteTrafficMirrorSessionRequest) : Eff api ε (Except Empty DeleteTrafficMirrorSessionResult) := + Eff.ask (api := api) .deleteTrafficMirrorSession input + +/-- Deletes the specified Traffic Mirror target. -/ +def deleteTrafficMirrorTarget {ε : Type} (input : DeleteTrafficMirrorTargetRequest) : Eff api ε (Except Empty DeleteTrafficMirrorTargetResult) := + Eff.ask (api := api) .deleteTrafficMirrorTarget input + +/-- Deletes the specified transit gateway. -/ +def deleteTransitGateway {ε : Type} (input : DeleteTransitGatewayRequest) : Eff api ε (Except Empty DeleteTransitGatewayResult) := + Eff.ask (api := api) .deleteTransitGateway input + +/-- Deletes a Transit Gateway attachment for a Client VPN endpoint. -/ +def deleteTransitGatewayClientVpnAttachment {ε : Type} (input : DeleteTransitGatewayClientVpnAttachmentRequest) : Eff api ε (Except Empty DeleteTransitGatewayClientVpnAttachmentResult) := + Eff.ask (api := api) .deleteTransitGatewayClientVpnAttachment input + +/-- Deletes the specified Connect attachment. -/ +def deleteTransitGatewayConnect {ε : Type} (input : DeleteTransitGatewayConnectRequest) : Eff api ε (Except Empty DeleteTransitGatewayConnectResult) := + Eff.ask (api := api) .deleteTransitGatewayConnect input + +/-- Deletes the specified Connect peer. -/ +def deleteTransitGatewayConnectPeer {ε : Type} (input : DeleteTransitGatewayConnectPeerRequest) : Eff api ε (Except Empty DeleteTransitGatewayConnectPeerResult) := + Eff.ask (api := api) .deleteTransitGatewayConnectPeer input + +/-- Deletes a transit gateway metering policy. -/ +def deleteTransitGatewayMeteringPolicy {ε : Type} (input : DeleteTransitGatewayMeteringPolicyRequest) : Eff api ε (Except Empty DeleteTransitGatewayMeteringPolicyResult) := + Eff.ask (api := api) .deleteTransitGatewayMeteringPolicy input + +/-- Deletes an entry from a transit gateway metering policy. -/ +def deleteTransitGatewayMeteringPolicyEntry {ε : Type} (input : DeleteTransitGatewayMeteringPolicyEntryRequest) : Eff api ε (Except Empty DeleteTransitGatewayMeteringPolicyEntryResult) := + Eff.ask (api := api) .deleteTransitGatewayMeteringPolicyEntry input + +/-- Deletes the specified transit gateway multicast domain. -/ +def deleteTransitGatewayMulticastDomain {ε : Type} (input : DeleteTransitGatewayMulticastDomainRequest) : Eff api ε (Except Empty DeleteTransitGatewayMulticastDomainResult) := + Eff.ask (api := api) .deleteTransitGatewayMulticastDomain input + +/-- Deletes the specified network function attachment. -/ +def deleteTransitGatewayNetworkFunctionAttachment {ε : Type} (input : DeleteTransitGatewayNetworkFunctionAttachmentRequest) : Eff api ε (Except Empty DeleteTransitGatewayNetworkFunctionAttachmentResult) := + Eff.ask (api := api) .deleteTransitGatewayNetworkFunctionAttachment input + +/-- Deletes a transit gateway peering attachment. -/ +def deleteTransitGatewayPeeringAttachment {ε : Type} (input : DeleteTransitGatewayPeeringAttachmentRequest) : Eff api ε (Except Empty DeleteTransitGatewayPeeringAttachmentResult) := + Eff.ask (api := api) .deleteTransitGatewayPeeringAttachment input + +/-- Deletes the specified transit gateway policy table. -/ +def deleteTransitGatewayPolicyTable {ε : Type} (input : DeleteTransitGatewayPolicyTableRequest) : Eff api ε (Except Empty DeleteTransitGatewayPolicyTableResult) := + Eff.ask (api := api) .deleteTransitGatewayPolicyTable input + +/-- Deletes the specified transit gateway policy table entry. -/ +def deleteTransitGatewayPolicyTableEntry {ε : Type} (input : DeleteTransitGatewayPolicyTableEntryRequest) : Eff api ε (Except Empty DeleteTransitGatewayPolicyTableEntryResult) := + Eff.ask (api := api) .deleteTransitGatewayPolicyTableEntry input + +/-- Deletes a reference (route) to a prefix list in a specified transit gateway route table. -/ +def deleteTransitGatewayPrefixListReference {ε : Type} (input : DeleteTransitGatewayPrefixListReferenceRequest) : Eff api ε (Except Empty DeleteTransitGatewayPrefixListReferenceResult) := + Eff.ask (api := api) .deleteTransitGatewayPrefixListReference input + +/-- Deletes the specified route from the specified transit gateway route table. -/ +def deleteTransitGatewayRoute {ε : Type} (input : DeleteTransitGatewayRouteRequest) : Eff api ε (Except Empty DeleteTransitGatewayRouteResult) := + Eff.ask (api := api) .deleteTransitGatewayRoute input + +/-- Deletes the specified transit gateway route table. -/ +def deleteTransitGatewayRouteTable {ε : Type} (input : DeleteTransitGatewayRouteTableRequest) : Eff api ε (Except Empty DeleteTransitGatewayRouteTableResult) := + Eff.ask (api := api) .deleteTransitGatewayRouteTable input + +/-- Advertises to the transit gateway that a transit gateway route table is deleted. -/ +def deleteTransitGatewayRouteTableAnnouncement {ε : Type} (input : DeleteTransitGatewayRouteTableAnnouncementRequest) : Eff api ε (Except Empty DeleteTransitGatewayRouteTableAnnouncementResult) := + Eff.ask (api := api) .deleteTransitGatewayRouteTableAnnouncement input + +/-- Deletes the specified VPC attachment. -/ +def deleteTransitGatewayVpcAttachment {ε : Type} (input : DeleteTransitGatewayVpcAttachmentRequest) : Eff api ε (Except Empty DeleteTransitGatewayVpcAttachmentResult) := + Eff.ask (api := api) .deleteTransitGatewayVpcAttachment input + +/-- Delete an Amazon Web Services Verified Access endpoint. -/ +def deleteVerifiedAccessEndpoint {ε : Type} (input : DeleteVerifiedAccessEndpointRequest) : Eff api ε (Except Empty DeleteVerifiedAccessEndpointResult) := + Eff.ask (api := api) .deleteVerifiedAccessEndpoint input + +/-- Delete an Amazon Web Services Verified Access group. -/ +def deleteVerifiedAccessGroup {ε : Type} (input : DeleteVerifiedAccessGroupRequest) : Eff api ε (Except Empty DeleteVerifiedAccessGroupResult) := + Eff.ask (api := api) .deleteVerifiedAccessGroup input + +/-- Delete an Amazon Web Services Verified Access instance. -/ +def deleteVerifiedAccessInstance {ε : Type} (input : DeleteVerifiedAccessInstanceRequest) : Eff api ε (Except Empty DeleteVerifiedAccessInstanceResult) := + Eff.ask (api := api) .deleteVerifiedAccessInstance input + +/-- Delete an Amazon Web Services Verified Access trust provider. -/ +def deleteVerifiedAccessTrustProvider {ε : Type} (input : DeleteVerifiedAccessTrustProviderRequest) : Eff api ε (Except Empty DeleteVerifiedAccessTrustProviderResult) := + Eff.ask (api := api) .deleteVerifiedAccessTrustProvider input + +/-- Deletes the specified EBS volume. -/ +def deleteVolume {ε : Type} (input : DeleteVolumeRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteVolume input + +/-- Deletes the specified VPC. -/ +def deleteVpc {ε : Type} (input : DeleteVpcRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteVpc input + +/-- Delete a VPC Block Public Access (BPA) exclusion. -/ +def deleteVpcBlockPublicAccessExclusion {ε : Type} (input : DeleteVpcBlockPublicAccessExclusionRequest) : Eff api ε (Except Empty DeleteVpcBlockPublicAccessExclusionResult) := + Eff.ask (api := api) .deleteVpcBlockPublicAccessExclusion input + +/-- Deletes a VPC Encryption Control configuration. -/ +def deleteVpcEncryptionControl {ε : Type} (input : DeleteVpcEncryptionControlRequest) : Eff api ε (Except Empty DeleteVpcEncryptionControlResult) := + Eff.ask (api := api) .deleteVpcEncryptionControl input + +/-- Deletes the specified VPC endpoint connection notifications. -/ +def deleteVpcEndpointConnectionNotifications {ε : Type} (input : DeleteVpcEndpointConnectionNotificationsRequest) : Eff api ε (Except Empty DeleteVpcEndpointConnectionNotificationsResult) := + Eff.ask (api := api) .deleteVpcEndpointConnectionNotifications input + +/-- Deletes the specified VPC endpoint service configurations. -/ +def deleteVpcEndpointServiceConfigurations {ε : Type} (input : DeleteVpcEndpointServiceConfigurationsRequest) : Eff api ε (Except Empty DeleteVpcEndpointServiceConfigurationsResult) := + Eff.ask (api := api) .deleteVpcEndpointServiceConfigurations input + +/-- Deletes the specified VPC endpoints. -/ +def deleteVpcEndpoints {ε : Type} (input : DeleteVpcEndpointsRequest) : Eff api ε (Except Empty DeleteVpcEndpointsResult) := + Eff.ask (api := api) .deleteVpcEndpoints input + +/-- Deletes a VPC peering connection. -/ +def deleteVpcPeeringConnection {ε : Type} (input : DeleteVpcPeeringConnectionRequest) : Eff api ε (Except Empty DeleteVpcPeeringConnectionResult) := + Eff.ask (api := api) .deleteVpcPeeringConnection input + +/-- Deletes the specified VPN concentrator. -/ +def deleteVpnConcentrator {ε : Type} (input : DeleteVpnConcentratorRequest) : Eff api ε (Except Empty DeleteVpnConcentratorResult) := + Eff.ask (api := api) .deleteVpnConcentrator input + +/-- Deletes the specified VPN connection. -/ +def deleteVpnConnection {ε : Type} (input : DeleteVpnConnectionRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteVpnConnection input + +/-- Deletes the specified static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. -/ +def deleteVpnConnectionRoute {ε : Type} (input : DeleteVpnConnectionRouteRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteVpnConnectionRoute input + +/-- Deletes the specified virtual private gateway. -/ +def deleteVpnGateway {ε : Type} (input : DeleteVpnGatewayRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteVpnGateway input + +/-- Releases the specified address range that you provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP) and deletes the corresponding address pool. -/ +def deprovisionByoipCidr {ε : Type} (input : DeprovisionByoipCidrRequest) : Eff api ε (Except Empty DeprovisionByoipCidrResult) := + Eff.ask (api := api) .deprovisionByoipCidr input + +/-- Deprovisions your Autonomous System Number (ASN) from your Amazon Web Services account. -/ +def deprovisionIpamByoasn {ε : Type} (input : DeprovisionIpamByoasnRequest) : Eff api ε (Except Empty DeprovisionIpamByoasnResult) := + Eff.ask (api := api) .deprovisionIpamByoasn input + +/-- Deprovision a CIDR provisioned from an IPAM pool. -/ +def deprovisionIpamPoolCidr {ε : Type} (input : DeprovisionIpamPoolCidrRequest) : Eff api ε (Except Empty DeprovisionIpamPoolCidrResult) := + Eff.ask (api := api) .deprovisionIpamPoolCidr input + +/-- Deprovision a CIDR from a public IPv4 pool. -/ +def deprovisionPublicIpv4PoolCidr {ε : Type} (input : DeprovisionPublicIpv4PoolCidrRequest) : Eff api ε (Except Empty DeprovisionPublicIpv4PoolCidrResult) := + Eff.ask (api := api) .deprovisionPublicIpv4PoolCidr input + +/-- Deregisters the specified AMI. -/ +def deregisterImage {ε : Type} (input : DeregisterImageRequest) : Eff api ε (Except Empty DeregisterImageResult) := + Eff.ask (api := api) .deregisterImage input + +/-- Deregisters tag keys to prevent tags that have the specified tag keys from being included in scheduled event notifications for resources in the Region. -/ +def deregisterInstanceEventNotificationAttributes {ε : Type} (input : DeregisterInstanceEventNotificationAttributesRequest) : Eff api ε (Except Empty DeregisterInstanceEventNotificationAttributesResult) := + Eff.ask (api := api) .deregisterInstanceEventNotificationAttributes input + +/-- Deregisters the specified members (network interfaces) from the transit gateway multicast group. -/ +def deregisterTransitGatewayMulticastGroupMembers {ε : Type} (input : DeregisterTransitGatewayMulticastGroupMembersRequest) : Eff api ε (Except Empty DeregisterTransitGatewayMulticastGroupMembersResult) := + Eff.ask (api := api) .deregisterTransitGatewayMulticastGroupMembers input + +/-- Deregisters the specified sources (network interfaces) from the transit gateway multicast group. -/ +def deregisterTransitGatewayMulticastGroupSources {ε : Type} (input : DeregisterTransitGatewayMulticastGroupSourcesRequest) : Eff api ε (Except Empty DeregisterTransitGatewayMulticastGroupSourcesResult) := + Eff.ask (api := api) .deregisterTransitGatewayMulticastGroupSources input + +/-- Describes attributes of your Amazon Web Services account. -/ +def describeAccountAttributes {ε : Type} (input : DescribeAccountAttributesRequest) : Eff api ε (Except Empty DescribeAccountAttributesResult) := + Eff.ask (api := api) .describeAccountAttributes input + +/-- Describes the account-level VPC Encryption Control configuration for your account. -/ +def describeAccountVpcEncryptionControl {ε : Type} (input : DescribeAccountVpcEncryptionControlRequest) : Eff api ε (Except Empty DescribeAccountVpcEncryptionControlResult) := + Eff.ask (api := api) .describeAccountVpcEncryptionControl input + +/-- Describes an Elastic IP address transfer. -/ +def describeAddressTransfers {ε : Type} (input : DescribeAddressTransfersRequest) : Eff api ε (Except Empty DescribeAddressTransfersResult) := + Eff.ask (api := api) .describeAddressTransfers input + +/-- Describes the specified Elastic IP addresses or all of your Elastic IP addresses. -/ +def describeAddresses {ε : Type} (input : DescribeAddressesRequest) : Eff api ε (Except Empty DescribeAddressesResult) := + Eff.ask (api := api) .describeAddresses input + +/-- Describes the attributes of the specified Elastic IP addresses. -/ +def describeAddressesAttribute {ε : Type} (input : DescribeAddressesAttributeRequest) : Eff api ε (Except Empty DescribeAddressesAttributeResult) := + Eff.ask (api := api) .describeAddressesAttribute input + +/-- Describes the longer ID format settings for all resource types in a specific Region. -/ +def describeAggregateIdFormat {ε : Type} (input : DescribeAggregateIdFormatRequest) : Eff api ε (Except Empty DescribeAggregateIdFormatResult) := + Eff.ask (api := api) .describeAggregateIdFormat input + +/-- Describes the aggregated application health status for the specified instances. -/ +def describeApplicationStatus {ε : Type} (input : DescribeApplicationStatusRequest) : Eff api ε (Except Empty DescribeApplicationStatusResult) := + Eff.ask (api := api) .describeApplicationStatus input + +/-- Describes the associations for one or more application status checks. -/ +def describeApplicationStatusCheckAssociations {ε : Type} (input : DescribeApplicationStatusCheckAssociationsRequest) : Eff api ε (Except Empty DescribeApplicationStatusCheckAssociationsResult) := + Eff.ask (api := api) .describeApplicationStatusCheckAssociations input + +/-- Describes application status checks, including configuration details such as protocol, port, path, thresholds, and associations. -/ +def describeApplicationStatusChecks {ε : Type} (input : DescribeApplicationStatusChecksRequest) : Eff api ε (Except Empty DescribeApplicationStatusChecksResult) := + Eff.ask (api := api) .describeApplicationStatusChecks input + +/-- Describes the Availability Zones, Local Zones, and Wavelength Zones that are available to you. -/ +def describeAvailabilityZones {ε : Type} (input : DescribeAvailabilityZonesRequest) : Eff api ε (Except Empty DescribeAvailabilityZonesResult) := + Eff.ask (api := api) .describeAvailabilityZones input + +/-- Describes the current Infrastructure Performance metric subscriptions. -/ +def describeAwsNetworkPerformanceMetricSubscriptions {ε : Type} (input : DescribeAwsNetworkPerformanceMetricSubscriptionsRequest) : Eff api ε (Except Empty DescribeAwsNetworkPerformanceMetricSubscriptionsResult) := + Eff.ask (api := api) .describeAwsNetworkPerformanceMetricSubscriptions input + +/-- Describes the specified bundle tasks or all of your bundle tasks. -/ +def describeBundleTasks {ε : Type} (input : DescribeBundleTasksRequest) : Eff api ε (Except Empty DescribeBundleTasksResult) := + Eff.ask (api := api) .describeBundleTasks input + +/-- Describes the IP address ranges that were provisioned for use with Amazon Web Services resources through through bring your own IP addresses (BYOIP). -/ +def describeByoipCidrs {ε : Type} (input : DescribeByoipCidrsRequest) : Eff api ε (Except Empty DescribeByoipCidrsResult) := + Eff.ask (api := api) .describeByoipCidrs input + +/-- Describes the events for the specified Capacity Block extension during the specified time. -/ +def describeCapacityBlockExtensionHistory {ε : Type} (input : DescribeCapacityBlockExtensionHistoryRequest) : Eff api ε (Except Empty DescribeCapacityBlockExtensionHistoryResult) := + Eff.ask (api := api) .describeCapacityBlockExtensionHistory input + +/-- Describes Capacity Block extension offerings available for purchase in the Amazon Web Services Region that you're currently using. -/ +def describeCapacityBlockExtensionOfferings {ε : Type} (input : DescribeCapacityBlockExtensionOfferingsRequest) : Eff api ε (Except Empty DescribeCapacityBlockExtensionOfferingsResult) := + Eff.ask (api := api) .describeCapacityBlockExtensionOfferings input + +/-- Describes Capacity Block offerings available for purchase in the Amazon Web Services Region that you're currently using. -/ +def describeCapacityBlockOfferings {ε : Type} (input : DescribeCapacityBlockOfferingsRequest) : Eff api ε (Except Empty DescribeCapacityBlockOfferingsResult) := + Eff.ask (api := api) .describeCapacityBlockOfferings input + +/-- Describes the availability of capacity for the specified Capacity blocks, or all of your Capacity Blocks. -/ +def describeCapacityBlockStatus {ε : Type} (input : DescribeCapacityBlockStatusRequest) : Eff api ε (Except Empty DescribeCapacityBlockStatusResult) := + Eff.ask (api := api) .describeCapacityBlockStatus input + +/-- Describes details about Capacity Blocks in the Amazon Web Services Region that you're currently using. -/ +def describeCapacityBlocks {ε : Type} (input : DescribeCapacityBlocksRequest) : Eff api ε (Except Empty DescribeCapacityBlocksResult) := + Eff.ask (api := api) .describeCapacityBlocks input + +/-- Describes one or more Capacity Manager data export configurations. -/ +def describeCapacityManagerDataExports {ε : Type} (input : DescribeCapacityManagerDataExportsRequest) : Eff api ε (Except Empty DescribeCapacityManagerDataExportsResult) := + Eff.ask (api := api) .describeCapacityManagerDataExports input + +/-- Describes a request to assign the billing of the unused capacity of a Capacity Reservation. -/ +def describeCapacityReservationBillingRequests {ε : Type} (input : DescribeCapacityReservationBillingRequestsRequest) : Eff api ε (Except Empty DescribeCapacityReservationBillingRequestsResult) := + Eff.ask (api := api) .describeCapacityReservationBillingRequests input + +/-- Describes one or more Capacity Reservation cancellation quotes. -/ +def describeCapacityReservationCancellationQuotes {ε : Type} (input : DescribeCapacityReservationCancellationQuotesRequest) : Eff api ε (Except Empty DescribeCapacityReservationCancellationQuotesResult) := + Eff.ask (api := api) .describeCapacityReservationCancellationQuotes input + +/-- Describes one or more Capacity Reservation date change quotes that you generated by using the CreateCapacityReservationDateChangeQuote operation. -/ +def describeCapacityReservationDateChangeQuotes {ε : Type} (input : DescribeCapacityReservationDateChangeQuotesRequest) : Eff api ε (Except Empty DescribeCapacityReservationDateChangeQuotesResult) := + Eff.ask (api := api) .describeCapacityReservationDateChangeQuotes input + +/-- Describes one or more Capacity Reservation Fleets. -/ +def describeCapacityReservationFleets {ε : Type} (input : DescribeCapacityReservationFleetsRequest) : Eff api ε (Except Empty DescribeCapacityReservationFleetsResult) := + Eff.ask (api := api) .describeCapacityReservationFleets input + +/-- Describes a tree-based hierarchy that represents the physical host placement of your pending or active Capacity Reservations within an Availability Zone or Local Zone. -/ +def describeCapacityReservationTopology {ε : Type} (input : DescribeCapacityReservationTopologyRequest) : Eff api ε (Except Empty DescribeCapacityReservationTopologyResult) := + Eff.ask (api := api) .describeCapacityReservationTopology input + +/-- Describes one or more of your Capacity Reservations. -/ +def describeCapacityReservations {ε : Type} (input : DescribeCapacityReservationsRequest) : Eff api ε (Except Empty DescribeCapacityReservationsResult) := + Eff.ask (api := api) .describeCapacityReservations input + +/-- Describes one or more of your carrier gateways. -/ +def describeCarrierGateways {ε : Type} (input : DescribeCarrierGatewaysRequest) : Eff api ε (Except Empty DescribeCarrierGatewaysResult) := + Eff.ask (api := api) .describeCarrierGateways input + +/-- This action is deprecated. -/ +def describeClassicLinkInstances {ε : Type} (input : DescribeClassicLinkInstancesRequest) : Eff api ε (Except Empty DescribeClassicLinkInstancesResult) := + Eff.ask (api := api) .describeClassicLinkInstances input + +/-- Describes the authorization rules for a specified Client VPN endpoint. -/ +def describeClientVpnAuthorizationRules {ε : Type} (input : DescribeClientVpnAuthorizationRulesRequest) : Eff api ε (Except Empty DescribeClientVpnAuthorizationRulesResult) := + Eff.ask (api := api) .describeClientVpnAuthorizationRules input + +/-- Describes active client connections and connections that have been terminated within the last 60 minutes for the specified Client VPN endpoint. -/ +def describeClientVpnConnections {ε : Type} (input : DescribeClientVpnConnectionsRequest) : Eff api ε (Except Empty DescribeClientVpnConnectionsResult) := + Eff.ask (api := api) .describeClientVpnConnections input + +/-- Describes one or more Client VPN endpoints in the account. -/ +def describeClientVpnEndpoints {ε : Type} (input : DescribeClientVpnEndpointsRequest) : Eff api ε (Except Empty DescribeClientVpnEndpointsResult) := + Eff.ask (api := api) .describeClientVpnEndpoints input + +/-- Describes the routes for the specified Client VPN endpoint. -/ +def describeClientVpnRoutes {ε : Type} (input : DescribeClientVpnRoutesRequest) : Eff api ε (Except Empty DescribeClientVpnRoutesResult) := + Eff.ask (api := api) .describeClientVpnRoutes input + +/-- Describes the target networks associated with the specified Client VPN endpoint. -/ +def describeClientVpnTargetNetworks {ε : Type} (input : DescribeClientVpnTargetNetworksRequest) : Eff api ε (Except Empty DescribeClientVpnTargetNetworksResult) := + Eff.ask (api := api) .describeClientVpnTargetNetworks input + +/-- Describes the specified customer-owned address pools or all of your customer-owned address pools. -/ +def describeCoipPools {ε : Type} (input : DescribeCoipPoolsRequest) : Eff api ε (Except Empty DescribeCoipPoolsResult) := + Eff.ask (api := api) .describeCoipPools input + +/-- Describes the specified conversion tasks or all your conversion tasks. -/ +def describeConversionTasks {ε : Type} (input : DescribeConversionTasksRequest) : Eff api ε (Except Empty DescribeConversionTasksResult) := + Eff.ask (api := api) .describeConversionTasks input + +/-- Describes one or more of your VPN customer gateways. -/ +def describeCustomerGateways {ε : Type} (input : DescribeCustomerGatewaysRequest) : Eff api ε (Except Empty DescribeCustomerGatewaysResult) := + Eff.ask (api := api) .describeCustomerGateways input + +/-- Describes the metadata of an account status report, including the status of the report. -/ +def describeDeclarativePoliciesReports {ε : Type} (input : DescribeDeclarativePoliciesReportsRequest) : Eff api ε (Except Empty DescribeDeclarativePoliciesReportsResult) := + Eff.ask (api := api) .describeDeclarativePoliciesReports input + +/-- Describes your DHCP option sets. -/ +def describeDhcpOptions {ε : Type} (input : DescribeDhcpOptionsRequest) : Eff api ε (Except Empty DescribeDhcpOptionsResult) := + Eff.ask (api := api) .describeDhcpOptions input + +/-- Describes your egress-only internet gateways. -/ +def describeEgressOnlyInternetGateways {ε : Type} (input : DescribeEgressOnlyInternetGatewaysRequest) : Eff api ε (Except Empty DescribeEgressOnlyInternetGatewaysResult) := + Eff.ask (api := api) .describeEgressOnlyInternetGateways input + +/-- Amazon Elastic Graphics reached end of life on January 8, 2024. -/ +def describeElasticGpus {ε : Type} (input : DescribeElasticGpusRequest) : Eff api ε (Except Empty DescribeElasticGpusResult) := + Eff.ask (api := api) .describeElasticGpus input + +/-- Describes the specified export image tasks or all of your export image tasks. -/ +def describeExportImageTasks {ε : Type} (input : DescribeExportImageTasksRequest) : Eff api ε (Except Empty DescribeExportImageTasksResult) := + Eff.ask (api := api) .describeExportImageTasks input + +/-- Describes the specified export instance tasks or all of your export instance tasks. -/ +def describeExportTasks {ε : Type} (input : DescribeExportTasksRequest) : Eff api ε (Except Empty DescribeExportTasksResult) := + Eff.ask (api := api) .describeExportTasks input + +/-- Describe details for Windows AMIs that are configured for Windows fast launch. -/ +def describeFastLaunchImages {ε : Type} (input : DescribeFastLaunchImagesRequest) : Eff api ε (Except Empty DescribeFastLaunchImagesResult) := + Eff.ask (api := api) .describeFastLaunchImages input + +/-- Describes the state of fast snapshot restores for your snapshots. -/ +def describeFastSnapshotRestores {ε : Type} (input : DescribeFastSnapshotRestoresRequest) : Eff api ε (Except Empty DescribeFastSnapshotRestoresResult) := + Eff.ask (api := api) .describeFastSnapshotRestores input + +/-- Describes the events for the specified EC2 Fleet during the specified time. -/ +def describeFleetHistory {ε : Type} (input : DescribeFleetHistoryRequest) : Eff api ε (Except Empty DescribeFleetHistoryResult) := + Eff.ask (api := api) .describeFleetHistory input + +/-- Describes the running instances for the specified EC2 Fleet. -/ +def describeFleetInstances {ε : Type} (input : DescribeFleetInstancesRequest) : Eff api ε (Except Empty DescribeFleetInstancesResult) := + Eff.ask (api := api) .describeFleetInstances input + +/-- Describes the specified EC2 Fleet or all of your EC2 Fleets. -/ +def describeFleets {ε : Type} (input : DescribeFleetsRequest) : Eff api ε (Except Empty DescribeFleetsResult) := + Eff.ask (api := api) .describeFleets input + +/-- Describes one or more flow logs. -/ +def describeFlowLogs {ε : Type} (input : DescribeFlowLogsRequest) : Eff api ε (Except Empty DescribeFlowLogsResult) := + Eff.ask (api := api) .describeFlowLogs input + +/-- Describes the specified attribute of the specified Amazon FPGA Image (AFI). -/ +def describeFpgaImageAttribute {ε : Type} (input : DescribeFpgaImageAttributeRequest) : Eff api ε (Except Empty DescribeFpgaImageAttributeResult) := + Eff.ask (api := api) .describeFpgaImageAttribute input + +/-- Describes the Amazon FPGA Images (AFIs) available to you. -/ +def describeFpgaImages {ε : Type} (input : DescribeFpgaImagesRequest) : Eff api ε (Except Empty DescribeFpgaImagesResult) := + Eff.ask (api := api) .describeFpgaImages input + +/-- Describes the Dedicated Host reservations that are available to purchase. -/ +def describeHostReservationOfferings {ε : Type} (input : DescribeHostReservationOfferingsRequest) : Eff api ε (Except Empty DescribeHostReservationOfferingsResult) := + Eff.ask (api := api) .describeHostReservationOfferings input + +/-- Describes reservations that are associated with Dedicated Hosts in your account. -/ +def describeHostReservations {ε : Type} (input : DescribeHostReservationsRequest) : Eff api ε (Except Empty DescribeHostReservationsResult) := + Eff.ask (api := api) .describeHostReservations input + +/-- Describes the specified Dedicated Hosts or all your Dedicated Hosts. -/ +def describeHosts {ε : Type} (input : DescribeHostsRequest) : Eff api ε (Except Empty DescribeHostsResult) := + Eff.ask (api := api) .describeHosts input + +/-- Describes your IAM instance profile associations. -/ +def describeIamInstanceProfileAssociations {ε : Type} (input : DescribeIamInstanceProfileAssociationsRequest) : Eff api ε (Except Empty DescribeIamInstanceProfileAssociationsResult) := + Eff.ask (api := api) .describeIamInstanceProfileAssociations input + +/-- Describes the ID format settings for your resources on a per-Region basis, for example, to view which resource types are enabled for longer IDs. -/ +def describeIdFormat {ε : Type} (input : DescribeIdFormatRequest) : Eff api ε (Except Empty DescribeIdFormatResult) := + Eff.ask (api := api) .describeIdFormat input + +/-- Describes the ID format settings for resources for the specified IAM user, IAM role, or root user. -/ +def describeIdentityIdFormat {ε : Type} (input : DescribeIdentityIdFormatRequest) : Eff api ε (Except Empty DescribeIdentityIdFormatResult) := + Eff.ask (api := api) .describeIdentityIdFormat input + +/-- Describes the specified attribute of the specified AMI. -/ +def describeImageAttribute {ε : Type} (input : DescribeImageAttributeRequest) : Eff api ε (Except Empty ImageAttribute) := + Eff.ask (api := api) .describeImageAttribute input + +/-- Describes your Amazon Web Services resources that are referencing the specified images. -/ +def describeImageReferences {ε : Type} (input : DescribeImageReferencesRequest) : Eff api ε (Except Empty DescribeImageReferencesResult) := + Eff.ask (api := api) .describeImageReferences input + +/-- Describes the entries in image usage reports, showing how your images are used across other Amazon Web Services accounts. -/ +def describeImageUsageReportEntries {ε : Type} (input : DescribeImageUsageReportEntriesRequest) : Eff api ε (Except Empty DescribeImageUsageReportEntriesResult) := + Eff.ask (api := api) .describeImageUsageReportEntries input + +/-- Describes the configuration and status of image usage reports, filtered by report IDs or image IDs. -/ +def describeImageUsageReports {ε : Type} (input : DescribeImageUsageReportsRequest) : Eff api ε (Except Empty DescribeImageUsageReportsResult) := + Eff.ask (api := api) .describeImageUsageReports input + +/-- Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you. -/ +def describeImages {ε : Type} (input : DescribeImagesRequest) : Eff api ε (Except Empty DescribeImagesResult) := + Eff.ask (api := api) .describeImages input + +/-- Displays details about an import virtual machine or import snapshot tasks that are already created. -/ +def describeImportImageTasks {ε : Type} (input : DescribeImportImageTasksRequest) : Eff api ε (Except Empty DescribeImportImageTasksResult) := + Eff.ask (api := api) .describeImportImageTasks input + +/-- Describes your import snapshot tasks. -/ +def describeImportSnapshotTasks {ε : Type} (input : DescribeImportSnapshotTasksRequest) : Eff api ε (Except Empty DescribeImportSnapshotTasksResult) := + Eff.ask (api := api) .describeImportSnapshotTasks input + +/-- Describes the specified attribute of the specified instance. -/ +def describeInstanceAttribute {ε : Type} (input : DescribeInstanceAttributeRequest) : Eff api ε (Except Empty InstanceAttribute) := + Eff.ask (api := api) .describeInstanceAttribute input + +/-- Describes the specified EC2 Instance Connect Endpoints or all EC2 Instance Connect Endpoints. -/ +def describeInstanceConnectEndpoints {ε : Type} (input : DescribeInstanceConnectEndpointsRequest) : Eff api ε (Except Empty DescribeInstanceConnectEndpointsResult) := + Eff.ask (api := api) .describeInstanceConnectEndpoints input + +/-- Describes the credit option for CPU usage of the specified burstable performance instances. -/ +def describeInstanceCreditSpecifications {ε : Type} (input : DescribeInstanceCreditSpecificationsRequest) : Eff api ε (Except Empty DescribeInstanceCreditSpecificationsResult) := + Eff.ask (api := api) .describeInstanceCreditSpecifications input + +/-- Describes the tag keys that are registered to appear in scheduled event notifications for resources in the current Region. -/ +def describeInstanceEventNotificationAttributes {ε : Type} (input : DescribeInstanceEventNotificationAttributesRequest) : Eff api ε (Except Empty DescribeInstanceEventNotificationAttributesResult) := + Eff.ask (api := api) .describeInstanceEventNotificationAttributes input + +/-- Describes the specified event windows or all event windows. -/ +def describeInstanceEventWindows {ε : Type} (input : DescribeInstanceEventWindowsRequest) : Eff api ε (Except Empty DescribeInstanceEventWindowsResult) := + Eff.ask (api := api) .describeInstanceEventWindows input + +/-- Describes the AMI that was used to launch an instance, even if the AMI is deprecated, deregistered, made private (no longer public or shared with your account), or not allowed. -/ +def describeInstanceImageMetadata {ε : Type} (input : DescribeInstanceImageMetadataRequest) : Eff api ε (Except Empty DescribeInstanceImageMetadataResult) := + Eff.ask (api := api) .describeInstanceImageMetadata input + +/-- Describes the historical SQL Server High Availability states for Amazon EC2 instances that are enabled for Amazon EC2 High Availability for SQL Server monitoring. -/ +def describeInstanceSqlHaHistoryStates {ε : Type} (input : DescribeInstanceSqlHaHistoryStatesRequest) : Eff api ε (Except Empty DescribeInstanceSqlHaHistoryStatesResult) := + Eff.ask (api := api) .describeInstanceSqlHaHistoryStates input + +/-- Describes the SQL Server High Availability states for Amazon EC2 instances that are enabled for Amazon EC2 High Availability for SQL Server monitoring. -/ +def describeInstanceSqlHaStates {ε : Type} (input : DescribeInstanceSqlHaStatesRequest) : Eff api ε (Except Empty DescribeInstanceSqlHaStatesResult) := + Eff.ask (api := api) .describeInstanceSqlHaStates input + +/-- Describes the status of the specified instances or all of your instances. -/ +def describeInstanceStatus {ε : Type} (input : DescribeInstanceStatusRequest) : Eff api ε (Except Empty DescribeInstanceStatusResult) := + Eff.ask (api := api) .describeInstanceStatus input + +/-- Describes a tree-based hierarchy that represents the physical host placement of your EC2 instances within an Availability Zone or Local Zone. -/ +def describeInstanceTopology {ε : Type} (input : DescribeInstanceTopologyRequest) : Eff api ε (Except Empty DescribeInstanceTopologyResult) := + Eff.ask (api := api) .describeInstanceTopology input + +/-- Lists the instance types that are offered for the specified location. -/ +def describeInstanceTypeOfferings {ε : Type} (input : DescribeInstanceTypeOfferingsRequest) : Eff api ε (Except Empty DescribeInstanceTypeOfferingsResult) := + Eff.ask (api := api) .describeInstanceTypeOfferings input + +/-- Describes the specified instance types. -/ +def describeInstanceTypes {ε : Type} (input : DescribeInstanceTypesRequest) : Eff api ε (Except Empty DescribeInstanceTypesResult) := + Eff.ask (api := api) .describeInstanceTypes input + +/-- Describes the specified instances or all instances. -/ +def describeInstances {ε : Type} (input : DescribeInstancesRequest) : Eff api ε (Except Empty DescribeInstancesResult) := + Eff.ask (api := api) .describeInstances input + +/-- Describes your internet gateways. -/ +def describeInternetGateways {ε : Type} (input : DescribeInternetGatewaysRequest) : Eff api ε (Except Empty DescribeInternetGatewaysResult) := + Eff.ask (api := api) .describeInternetGateways input + +/-- Describes your Autonomous System Numbers (ASNs), their provisioning statuses, and the BYOIP CIDRs with which they are associated. -/ +def describeIpamByoasn {ε : Type} (input : DescribeIpamByoasnRequest) : Eff api ε (Except Empty DescribeIpamByoasnResult) := + Eff.ask (api := api) .describeIpamByoasn input + +/-- Describe verification tokens. -/ +def describeIpamExternalResourceVerificationTokens {ε : Type} (input : DescribeIpamExternalResourceVerificationTokensRequest) : Eff api ε (Except Empty DescribeIpamExternalResourceVerificationTokensResult) := + Eff.ask (api := api) .describeIpamExternalResourceVerificationTokens input + +/-- Describes one or more IPAM internet registry associations. -/ +def describeIpamInternetRegistryAssociations {ε : Type} (input : DescribeIpamInternetRegistryAssociationsRequest) : Eff api ε (Except Empty DescribeIpamInternetRegistryAssociationsResult) := + Eff.ask (api := api) .describeIpamInternetRegistryAssociations input + +/-- Describes one or more IPAM policies. -/ +def describeIpamPolicies {ε : Type} (input : DescribeIpamPoliciesRequest) : Eff api ε (Except Empty DescribeIpamPoliciesResult) := + Eff.ask (api := api) .describeIpamPolicies input + +/-- Describes IPAM pool allocations. -/ +def describeIpamPoolAllocations {ε : Type} (input : DescribeIpamPoolAllocationsRequest) : Eff api ε (Except Empty DescribeIpamPoolAllocationsResult) := + Eff.ask (api := api) .describeIpamPoolAllocations input + +/-- Get information about your IPAM pools. -/ +def describeIpamPools {ε : Type} (input : DescribeIpamPoolsRequest) : Eff api ε (Except Empty DescribeIpamPoolsResult) := + Eff.ask (api := api) .describeIpamPools input + +/-- Describes one or more IPAM prefix list resolver Targets. -/ +def describeIpamPrefixListResolverTargets {ε : Type} (input : DescribeIpamPrefixListResolverTargetsRequest) : Eff api ε (Except Empty DescribeIpamPrefixListResolverTargetsResult) := + Eff.ask (api := api) .describeIpamPrefixListResolverTargets input + +/-- Describes one or more IPAM prefix list resolvers. -/ +def describeIpamPrefixListResolvers {ε : Type} (input : DescribeIpamPrefixListResolversRequest) : Eff api ε (Except Empty DescribeIpamPrefixListResolversResult) := + Eff.ask (api := api) .describeIpamPrefixListResolvers input + +/-- Describes IPAM resource discoveries. -/ +def describeIpamResourceDiscoveries {ε : Type} (input : DescribeIpamResourceDiscoveriesRequest) : Eff api ε (Except Empty DescribeIpamResourceDiscoveriesResult) := + Eff.ask (api := api) .describeIpamResourceDiscoveries input + +/-- Describes resource discovery association with an Amazon VPC IPAM. -/ +def describeIpamResourceDiscoveryAssociations {ε : Type} (input : DescribeIpamResourceDiscoveryAssociationsRequest) : Eff api ε (Except Empty DescribeIpamResourceDiscoveryAssociationsResult) := + Eff.ask (api := api) .describeIpamResourceDiscoveryAssociations input + +/-- Get information about your IPAM scopes. -/ +def describeIpamScopes {ε : Type} (input : DescribeIpamScopesRequest) : Eff api ε (Except Empty DescribeIpamScopesResult) := + Eff.ask (api := api) .describeIpamScopes input + +/-- Get information about your IPAM pools. -/ +def describeIpams {ε : Type} (input : DescribeIpamsRequest) : Eff api ε (Except Empty DescribeIpamsResult) := + Eff.ask (api := api) .describeIpams input + +/-- Describes your IPv6 address pools. -/ +def describeIpv6Pools {ε : Type} (input : DescribeIpv6PoolsRequest) : Eff api ε (Except Empty DescribeIpv6PoolsResult) := + Eff.ask (api := api) .describeIpv6Pools input + +/-- Describes the specified key pairs or all of your key pairs. -/ +def describeKeyPairs {ε : Type} (input : DescribeKeyPairsRequest) : Eff api ε (Except Empty DescribeKeyPairsResult) := + Eff.ask (api := api) .describeKeyPairs input + +/-- Describes one or more versions of a specified launch template. -/ +def describeLaunchTemplateVersions {ε : Type} (input : DescribeLaunchTemplateVersionsRequest) : Eff api ε (Except Empty DescribeLaunchTemplateVersionsResult) := + Eff.ask (api := api) .describeLaunchTemplateVersions input + +/-- Describes one or more launch templates. -/ +def describeLaunchTemplates {ε : Type} (input : DescribeLaunchTemplatesRequest) : Eff api ε (Except Empty DescribeLaunchTemplatesResult) := + Eff.ask (api := api) .describeLaunchTemplates input + +/-- Describes the associations between virtual interface groups and local gateway route tables. -/ +def describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations {ε : Type} (input : DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest) : Eff api ε (Except Empty DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult) := + Eff.ask (api := api) .describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations input + +/-- Describes the specified associations between VPCs and local gateway route tables. -/ +def describeLocalGatewayRouteTableVpcAssociations {ε : Type} (input : DescribeLocalGatewayRouteTableVpcAssociationsRequest) : Eff api ε (Except Empty DescribeLocalGatewayRouteTableVpcAssociationsResult) := + Eff.ask (api := api) .describeLocalGatewayRouteTableVpcAssociations input + +/-- Describes one or more local gateway route tables. -/ +def describeLocalGatewayRouteTables {ε : Type} (input : DescribeLocalGatewayRouteTablesRequest) : Eff api ε (Except Empty DescribeLocalGatewayRouteTablesResult) := + Eff.ask (api := api) .describeLocalGatewayRouteTables input + +/-- Describes the specified local gateway virtual interface groups. -/ +def describeLocalGatewayVirtualInterfaceGroups {ε : Type} (input : DescribeLocalGatewayVirtualInterfaceGroupsRequest) : Eff api ε (Except Empty DescribeLocalGatewayVirtualInterfaceGroupsResult) := + Eff.ask (api := api) .describeLocalGatewayVirtualInterfaceGroups input + +/-- Describes the specified local gateway virtual interfaces. -/ +def describeLocalGatewayVirtualInterfaces {ε : Type} (input : DescribeLocalGatewayVirtualInterfacesRequest) : Eff api ε (Except Empty DescribeLocalGatewayVirtualInterfacesResult) := + Eff.ask (api := api) .describeLocalGatewayVirtualInterfaces input + +/-- Describes one or more local gateways. -/ +def describeLocalGateways {ε : Type} (input : DescribeLocalGatewaysRequest) : Eff api ε (Except Empty DescribeLocalGatewaysResult) := + Eff.ask (api := api) .describeLocalGateways input + +/-- Describes the lock status for a snapshot. -/ +def describeLockedSnapshots {ε : Type} (input : DescribeLockedSnapshotsRequest) : Eff api ε (Except Empty DescribeLockedSnapshotsResult) := + Eff.ask (api := api) .describeLockedSnapshots input + +/-- Describes the specified EC2 Mac Dedicated Host or all of your EC2 Mac Dedicated Hosts. -/ +def describeMacHosts {ε : Type} (input : DescribeMacHostsRequest) : Eff api ε (Except Empty DescribeMacHostsResult) := + Eff.ask (api := api) .describeMacHosts input + +/-- Describes a System Integrity Protection (SIP) modification task or volume ownership delegation task for an Amazon EC2 Mac instance. -/ +def describeMacModificationTasks {ε : Type} (input : DescribeMacModificationTasksRequest) : Eff api ε (Except Empty DescribeMacModificationTasksResult) := + Eff.ask (api := api) .describeMacModificationTasks input + +/-- Describes your managed prefix lists and any Amazon Web Services-managed prefix lists. -/ +def describeManagedPrefixLists {ε : Type} (input : DescribeManagedPrefixListsRequest) : Eff api ε (Except Empty DescribeManagedPrefixListsResult) := + Eff.ask (api := api) .describeManagedPrefixLists input + +/-- Describes the specified metric categories, or all of your metric categories. -/ +def describeMetricCategories {ε : Type} (input : DescribeMetricCategoriesRequest) : Eff api ε (Except Empty DescribeMetricCategoriesResult) := + Eff.ask (api := api) .describeMetricCategories input + +/-- This action is deprecated. -/ +def describeMovingAddresses {ε : Type} (input : DescribeMovingAddressesRequest) : Eff api ε (Except Empty DescribeMovingAddressesResult) := + Eff.ask (api := api) .describeMovingAddresses input + +/-- Describes your NAT gateways. -/ +def describeNatGateways {ε : Type} (input : DescribeNatGatewaysRequest) : Eff api ε (Except Empty DescribeNatGatewaysResult) := + Eff.ask (api := api) .describeNatGateways input + +/-- Describes your network ACLs. -/ +def describeNetworkAcls {ε : Type} (input : DescribeNetworkAclsRequest) : Eff api ε (Except Empty DescribeNetworkAclsResult) := + Eff.ask (api := api) .describeNetworkAcls input + +/-- Describes the specified Network Access Scope analyses. -/ +def describeNetworkInsightsAccessScopeAnalyses {ε : Type} (input : DescribeNetworkInsightsAccessScopeAnalysesRequest) : Eff api ε (Except Empty DescribeNetworkInsightsAccessScopeAnalysesResult) := + Eff.ask (api := api) .describeNetworkInsightsAccessScopeAnalyses input + +/-- Describes the specified Network Access Scopes. -/ +def describeNetworkInsightsAccessScopes {ε : Type} (input : DescribeNetworkInsightsAccessScopesRequest) : Eff api ε (Except Empty DescribeNetworkInsightsAccessScopesResult) := + Eff.ask (api := api) .describeNetworkInsightsAccessScopes input + +/-- Describes one or more of your network insights analyses. -/ +def describeNetworkInsightsAnalyses {ε : Type} (input : DescribeNetworkInsightsAnalysesRequest) : Eff api ε (Except Empty DescribeNetworkInsightsAnalysesResult) := + Eff.ask (api := api) .describeNetworkInsightsAnalyses input + +/-- Describes one or more of your paths. -/ +def describeNetworkInsightsPaths {ε : Type} (input : DescribeNetworkInsightsPathsRequest) : Eff api ε (Except Empty DescribeNetworkInsightsPathsResult) := + Eff.ask (api := api) .describeNetworkInsightsPaths input + +/-- Describes a network interface attribute. -/ +def describeNetworkInterfaceAttribute {ε : Type} (input : DescribeNetworkInterfaceAttributeRequest) : Eff api ε (Except Empty DescribeNetworkInterfaceAttributeResult) := + Eff.ask (api := api) .describeNetworkInterfaceAttribute input + +/-- Describes the permissions for your network interfaces. -/ +def describeNetworkInterfacePermissions {ε : Type} (input : DescribeNetworkInterfacePermissionsRequest) : Eff api ε (Except Empty DescribeNetworkInterfacePermissionsResult) := + Eff.ask (api := api) .describeNetworkInterfacePermissions input + +/-- Describes the specified network interfaces or all your network interfaces. -/ +def describeNetworkInterfaces {ε : Type} (input : DescribeNetworkInterfacesRequest) : Eff api ε (Except Empty DescribeNetworkInterfacesResult) := + Eff.ask (api := api) .describeNetworkInterfaces input + +/-- Describes one or more of your flex cost allocation policies. -/ +def describeNetworkingFlexCostAllocationPolicies {ε : Type} (input : DescribeNetworkingFlexCostAllocationPoliciesRequest) : Eff api ε (Except Empty DescribeNetworkingFlexCostAllocationPoliciesResult) := + Eff.ask (api := api) .describeNetworkingFlexCostAllocationPolicies input + +/-- Describes the associations between your flex cost allocation policies and network resources. -/ +def describeNetworkingFlexCostAllocationPolicyAssociations {ε : Type} (input : DescribeNetworkingFlexCostAllocationPolicyAssociationsRequest) : Eff api ε (Except Empty DescribeNetworkingFlexCostAllocationPolicyAssociationsResult) := + Eff.ask (api := api) .describeNetworkingFlexCostAllocationPolicyAssociations input + +/-- Describes the Outposts link aggregation groups (LAGs). -/ +def describeOutpostLags {ε : Type} (input : DescribeOutpostLagsRequest) : Eff api ε (Except Empty DescribeOutpostLagsResult) := + Eff.ask (api := api) .describeOutpostLags input + +/-- Describes the specified placement groups or all of your placement groups. -/ +def describePlacementGroups {ε : Type} (input : DescribePlacementGroupsRequest) : Eff api ε (Except Empty DescribePlacementGroupsResult) := + Eff.ask (api := api) .describePlacementGroups input + +/-- Describes available Amazon Web Services services in a prefix list format, which includes the prefix list name and prefix list ID of the service and the IP address range for the service. -/ +def describePrefixLists {ε : Type} (input : DescribePrefixListsRequest) : Eff api ε (Except Empty DescribePrefixListsResult) := + Eff.ask (api := api) .describePrefixLists input + +/-- Describes the ID format settings for the root user and all IAM roles and IAM users that have explicitly specified a longer ID (17-character ID) preference. -/ +def describePrincipalIdFormat {ε : Type} (input : DescribePrincipalIdFormatRequest) : Eff api ε (Except Empty DescribePrincipalIdFormatResult) := + Eff.ask (api := api) .describePrincipalIdFormat input + +/-- Describes the specified IPv4 address pools. -/ +def describePublicIpv4Pools {ε : Type} (input : DescribePublicIpv4PoolsRequest) : Eff api ε (Except Empty DescribePublicIpv4PoolsResult) := + Eff.ask (api := api) .describePublicIpv4Pools input + +/-- Describes the Regions that are enabled for your account, or all Regions. -/ +def describeRegions {ε : Type} (input : DescribeRegionsRequest) : Eff api ε (Except Empty DescribeRegionsResult) := + Eff.ask (api := api) .describeRegions input + +/-- Describes a root volume replacement task. -/ +def describeReplaceRootVolumeTasks {ε : Type} (input : DescribeReplaceRootVolumeTasksRequest) : Eff api ε (Except Empty DescribeReplaceRootVolumeTasksResult) := + Eff.ask (api := api) .describeReplaceRootVolumeTasks input + +/-- Describes one or more of the Reserved Instances that you purchased. -/ +def describeReservedInstances {ε : Type} (input : DescribeReservedInstancesRequest) : Eff api ε (Except Empty DescribeReservedInstancesResult) := + Eff.ask (api := api) .describeReservedInstances input + +/-- Describes your account's Reserved Instance listings in the Reserved Instance Marketplace. -/ +def describeReservedInstancesListings {ε : Type} (input : DescribeReservedInstancesListingsRequest) : Eff api ε (Except Empty DescribeReservedInstancesListingsResult) := + Eff.ask (api := api) .describeReservedInstancesListings input + +/-- Describes the modifications made to your Reserved Instances. -/ +def describeReservedInstancesModifications {ε : Type} (input : DescribeReservedInstancesModificationsRequest) : Eff api ε (Except Empty DescribeReservedInstancesModificationsResult) := + Eff.ask (api := api) .describeReservedInstancesModifications input + +/-- Describes Reserved Instance offerings that are available for purchase. -/ +def describeReservedInstancesOfferings {ε : Type} (input : DescribeReservedInstancesOfferingsRequest) : Eff api ε (Except Empty DescribeReservedInstancesOfferingsResult) := + Eff.ask (api := api) .describeReservedInstancesOfferings input + +/-- Describes one or more route server endpoints. -/ +def describeRouteServerEndpoints {ε : Type} (input : DescribeRouteServerEndpointsRequest) : Eff api ε (Except Empty DescribeRouteServerEndpointsResult) := + Eff.ask (api := api) .describeRouteServerEndpoints input + +/-- Describes one or more route server peers. -/ +def describeRouteServerPeers {ε : Type} (input : DescribeRouteServerPeersRequest) : Eff api ε (Except Empty DescribeRouteServerPeersResult) := + Eff.ask (api := api) .describeRouteServerPeers input + +/-- Describes one or more route servers. -/ +def describeRouteServers {ε : Type} (input : DescribeRouteServersRequest) : Eff api ε (Except Empty DescribeRouteServersResult) := + Eff.ask (api := api) .describeRouteServers input + +/-- Describes your route tables. -/ +def describeRouteTables {ε : Type} (input : DescribeRouteTablesRequest) : Eff api ε (Except Empty DescribeRouteTablesResult) := + Eff.ask (api := api) .describeRouteTables input + +/-- Finds available schedules that meet the specified criteria. -/ +def describeScheduledInstanceAvailability {ε : Type} (input : DescribeScheduledInstanceAvailabilityRequest) : Eff api ε (Except Empty DescribeScheduledInstanceAvailabilityResult) := + Eff.ask (api := api) .describeScheduledInstanceAvailability input + +/-- Describes the specified Scheduled Instances or all your Scheduled Instances. -/ +def describeScheduledInstances {ε : Type} (input : DescribeScheduledInstancesRequest) : Eff api ε (Except Empty DescribeScheduledInstancesResult) := + Eff.ask (api := api) .describeScheduledInstances input + +/-- Describes one or more of your secondary interfaces. -/ +def describeSecondaryInterfaces {ε : Type} (input : DescribeSecondaryInterfacesRequest) : Eff api ε (Except Empty DescribeSecondaryInterfacesResult) := + Eff.ask (api := api) .describeSecondaryInterfaces input + +/-- Describes one or more secondary networks. -/ +def describeSecondaryNetworks {ε : Type} (input : DescribeSecondaryNetworksRequest) : Eff api ε (Except Empty DescribeSecondaryNetworksResult) := + Eff.ask (api := api) .describeSecondaryNetworks input + +/-- Describes one or more of your secondary subnets. -/ +def describeSecondarySubnets {ε : Type} (input : DescribeSecondarySubnetsRequest) : Eff api ε (Except Empty DescribeSecondarySubnetsResult) := + Eff.ask (api := api) .describeSecondarySubnets input + +/-- Describes the VPCs on the other side of a VPC peering or Transit Gateway connection that are referencing the security groups you've specified in this request. -/ +def describeSecurityGroupReferences {ε : Type} (input : DescribeSecurityGroupReferencesRequest) : Eff api ε (Except Empty DescribeSecurityGroupReferencesResult) := + Eff.ask (api := api) .describeSecurityGroupReferences input + +/-- Describes one or more of your security group rules. -/ +def describeSecurityGroupRules {ε : Type} (input : DescribeSecurityGroupRulesRequest) : Eff api ε (Except Empty DescribeSecurityGroupRulesResult) := + Eff.ask (api := api) .describeSecurityGroupRules input + +/-- Describes security group VPC associations made with AssociateSecurityGroupVpc . -/ +def describeSecurityGroupVpcAssociations {ε : Type} (input : DescribeSecurityGroupVpcAssociationsRequest) : Eff api ε (Except Empty DescribeSecurityGroupVpcAssociationsResult) := + Eff.ask (api := api) .describeSecurityGroupVpcAssociations input + +/-- Describes the specified security groups or all of your security groups. -/ +def describeSecurityGroups {ε : Type} (input : DescribeSecurityGroupsRequest) : Eff api ε (Except Empty DescribeSecurityGroupsResult) := + Eff.ask (api := api) .describeSecurityGroups input + +/-- Describes the Outpost service link virtual interfaces. -/ +def describeServiceLinkVirtualInterfaces {ε : Type} (input : DescribeServiceLinkVirtualInterfacesRequest) : Eff api ε (Except Empty DescribeServiceLinkVirtualInterfacesResult) := + Eff.ask (api := api) .describeServiceLinkVirtualInterfaces input + +/-- Describes the specified attribute of the specified snapshot. -/ +def describeSnapshotAttribute {ε : Type} (input : DescribeSnapshotAttributeRequest) : Eff api ε (Except Empty DescribeSnapshotAttributeResult) := + Eff.ask (api := api) .describeSnapshotAttribute input + +/-- Describes the storage tier status of one or more Amazon EBS snapshots. -/ +def describeSnapshotTierStatus {ε : Type} (input : DescribeSnapshotTierStatusRequest) : Eff api ε (Except Empty DescribeSnapshotTierStatusResult) := + Eff.ask (api := api) .describeSnapshotTierStatus input + +/-- Describes the specified EBS snapshots available to you or all of the EBS snapshots available to you. -/ +def describeSnapshots {ε : Type} (input : DescribeSnapshotsRequest) : Eff api ε (Except Empty DescribeSnapshotsResult) := + Eff.ask (api := api) .describeSnapshots input + +/-- Describes the data feed for Spot Instances. -/ +def describeSpotDatafeedSubscription {ε : Type} (input : DescribeSpotDatafeedSubscriptionRequest) : Eff api ε (Except Empty DescribeSpotDatafeedSubscriptionResult) := + Eff.ask (api := api) .describeSpotDatafeedSubscription input + +/-- Describes the running instances for the specified Spot Fleet. -/ +def describeSpotFleetInstances {ε : Type} (input : DescribeSpotFleetInstancesRequest) : Eff api ε (Except Empty DescribeSpotFleetInstancesResponse) := + Eff.ask (api := api) .describeSpotFleetInstances input + +/-- Describes the events for the specified Spot Fleet request during the specified time. -/ +def describeSpotFleetRequestHistory {ε : Type} (input : DescribeSpotFleetRequestHistoryRequest) : Eff api ε (Except Empty DescribeSpotFleetRequestHistoryResponse) := + Eff.ask (api := api) .describeSpotFleetRequestHistory input + +/-- Describes your Spot Fleet requests. -/ +def describeSpotFleetRequests {ε : Type} (input : DescribeSpotFleetRequestsRequest) : Eff api ε (Except Empty DescribeSpotFleetRequestsResponse) := + Eff.ask (api := api) .describeSpotFleetRequests input + +/-- Describes the specified Spot Instance requests. -/ +def describeSpotInstanceRequests {ε : Type} (input : DescribeSpotInstanceRequestsRequest) : Eff api ε (Except Empty DescribeSpotInstanceRequestsResult) := + Eff.ask (api := api) .describeSpotInstanceRequests input + +/-- Describes the Spot price history. -/ +def describeSpotPriceHistory {ε : Type} (input : DescribeSpotPriceHistoryRequest) : Eff api ε (Except Empty DescribeSpotPriceHistoryResult) := + Eff.ask (api := api) .describeSpotPriceHistory input + +/-- Describes the stale security group rules for security groups referenced across a VPC peering connection, transit gateway connection, or with a security group VPC association. -/ +def describeStaleSecurityGroups {ε : Type} (input : DescribeStaleSecurityGroupsRequest) : Eff api ε (Except Empty DescribeStaleSecurityGroupsResult) := + Eff.ask (api := api) .describeStaleSecurityGroups input + +/-- Describes the progress of the AMI store tasks. -/ +def describeStoreImageTasks {ε : Type} (input : DescribeStoreImageTasksRequest) : Eff api ε (Except Empty DescribeStoreImageTasksResult) := + Eff.ask (api := api) .describeStoreImageTasks input + +/-- Describes your subnets. -/ +def describeSubnets {ε : Type} (input : DescribeSubnetsRequest) : Eff api ε (Except Empty DescribeSubnetsResult) := + Eff.ask (api := api) .describeSubnets input + +/-- Describes the specified tags for your EC2 resources. -/ +def describeTags {ε : Type} (input : DescribeTagsRequest) : Eff api ε (Except Empty DescribeTagsResult) := + Eff.ask (api := api) .describeTags input + +/-- Describe traffic mirror filters that determine the traffic that is mirrored. -/ +def describeTrafficMirrorFilterRules {ε : Type} (input : DescribeTrafficMirrorFilterRulesRequest) : Eff api ε (Except Empty DescribeTrafficMirrorFilterRulesResult) := + Eff.ask (api := api) .describeTrafficMirrorFilterRules input + +/-- Describes one or more Traffic Mirror filters. -/ +def describeTrafficMirrorFilters {ε : Type} (input : DescribeTrafficMirrorFiltersRequest) : Eff api ε (Except Empty DescribeTrafficMirrorFiltersResult) := + Eff.ask (api := api) .describeTrafficMirrorFilters input + +/-- Describes one or more Traffic Mirror sessions. -/ +def describeTrafficMirrorSessions {ε : Type} (input : DescribeTrafficMirrorSessionsRequest) : Eff api ε (Except Empty DescribeTrafficMirrorSessionsResult) := + Eff.ask (api := api) .describeTrafficMirrorSessions input + +/-- Information about one or more Traffic Mirror targets. -/ +def describeTrafficMirrorTargets {ε : Type} (input : DescribeTrafficMirrorTargetsRequest) : Eff api ε (Except Empty DescribeTrafficMirrorTargetsResult) := + Eff.ask (api := api) .describeTrafficMirrorTargets input + +/-- Describes one or more attachments between resources and transit gateways. -/ +def describeTransitGatewayAttachments {ε : Type} (input : DescribeTransitGatewayAttachmentsRequest) : Eff api ε (Except Empty DescribeTransitGatewayAttachmentsResult) := + Eff.ask (api := api) .describeTransitGatewayAttachments input + +/-- Describes one or more Connect peers. -/ +def describeTransitGatewayConnectPeers {ε : Type} (input : DescribeTransitGatewayConnectPeersRequest) : Eff api ε (Except Empty DescribeTransitGatewayConnectPeersResult) := + Eff.ask (api := api) .describeTransitGatewayConnectPeers input + +/-- Describes one or more Connect attachments. -/ +def describeTransitGatewayConnects {ε : Type} (input : DescribeTransitGatewayConnectsRequest) : Eff api ε (Except Empty DescribeTransitGatewayConnectsResult) := + Eff.ask (api := api) .describeTransitGatewayConnects input + +/-- Describes one or more transit gateway metering policies. -/ +def describeTransitGatewayMeteringPolicies {ε : Type} (input : DescribeTransitGatewayMeteringPoliciesRequest) : Eff api ε (Except Empty DescribeTransitGatewayMeteringPoliciesResult) := + Eff.ask (api := api) .describeTransitGatewayMeteringPolicies input + +/-- Describes one or more transit gateway multicast domains. -/ +def describeTransitGatewayMulticastDomains {ε : Type} (input : DescribeTransitGatewayMulticastDomainsRequest) : Eff api ε (Except Empty DescribeTransitGatewayMulticastDomainsResult) := + Eff.ask (api := api) .describeTransitGatewayMulticastDomains input + +/-- Describes one or more network function attachments. -/ +def describeTransitGatewayNetworkFunctionAttachments {ε : Type} (input : DescribeTransitGatewayNetworkFunctionAttachmentsRequest) : Eff api ε (Except Empty DescribeTransitGatewayNetworkFunctionAttachmentsResult) := + Eff.ask (api := api) .describeTransitGatewayNetworkFunctionAttachments input + +/-- Describes your transit gateway peering attachments. -/ +def describeTransitGatewayPeeringAttachments {ε : Type} (input : DescribeTransitGatewayPeeringAttachmentsRequest) : Eff api ε (Except Empty DescribeTransitGatewayPeeringAttachmentsResult) := + Eff.ask (api := api) .describeTransitGatewayPeeringAttachments input + +/-- Describes one or more transit gateway route policy tables. -/ +def describeTransitGatewayPolicyTables {ε : Type} (input : DescribeTransitGatewayPolicyTablesRequest) : Eff api ε (Except Empty DescribeTransitGatewayPolicyTablesResult) := + Eff.ask (api := api) .describeTransitGatewayPolicyTables input + +/-- Describes one or more transit gateway route table advertisements. -/ +def describeTransitGatewayRouteTableAnnouncements {ε : Type} (input : DescribeTransitGatewayRouteTableAnnouncementsRequest) : Eff api ε (Except Empty DescribeTransitGatewayRouteTableAnnouncementsResult) := + Eff.ask (api := api) .describeTransitGatewayRouteTableAnnouncements input + +/-- Describes one or more transit gateway route tables. -/ +def describeTransitGatewayRouteTables {ε : Type} (input : DescribeTransitGatewayRouteTablesRequest) : Eff api ε (Except Empty DescribeTransitGatewayRouteTablesResult) := + Eff.ask (api := api) .describeTransitGatewayRouteTables input + +/-- Describes one or more VPC attachments. -/ +def describeTransitGatewayVpcAttachments {ε : Type} (input : DescribeTransitGatewayVpcAttachmentsRequest) : Eff api ε (Except Empty DescribeTransitGatewayVpcAttachmentsResult) := + Eff.ask (api := api) .describeTransitGatewayVpcAttachments input + +/-- Describes one or more transit gateways. -/ +def describeTransitGateways {ε : Type} (input : DescribeTransitGatewaysRequest) : Eff api ε (Except Empty DescribeTransitGatewaysResult) := + Eff.ask (api := api) .describeTransitGateways input + +/-- Describes one or more network interface trunk associations. -/ +def describeTrunkInterfaceAssociations {ε : Type} (input : DescribeTrunkInterfaceAssociationsRequest) : Eff api ε (Except Empty DescribeTrunkInterfaceAssociationsResult) := + Eff.ask (api := api) .describeTrunkInterfaceAssociations input + +/-- Describes the specified Amazon Web Services Verified Access endpoints. -/ +def describeVerifiedAccessEndpoints {ε : Type} (input : DescribeVerifiedAccessEndpointsRequest) : Eff api ε (Except Empty DescribeVerifiedAccessEndpointsResult) := + Eff.ask (api := api) .describeVerifiedAccessEndpoints input + +/-- Describes the specified Verified Access groups. -/ +def describeVerifiedAccessGroups {ε : Type} (input : DescribeVerifiedAccessGroupsRequest) : Eff api ε (Except Empty DescribeVerifiedAccessGroupsResult) := + Eff.ask (api := api) .describeVerifiedAccessGroups input + +/-- Describes the specified Amazon Web Services Verified Access instances. -/ +def describeVerifiedAccessInstanceLoggingConfigurations {ε : Type} (input : DescribeVerifiedAccessInstanceLoggingConfigurationsRequest) : Eff api ε (Except Empty DescribeVerifiedAccessInstanceLoggingConfigurationsResult) := + Eff.ask (api := api) .describeVerifiedAccessInstanceLoggingConfigurations input + +/-- Describes the specified Amazon Web Services Verified Access instances. -/ +def describeVerifiedAccessInstances {ε : Type} (input : DescribeVerifiedAccessInstancesRequest) : Eff api ε (Except Empty DescribeVerifiedAccessInstancesResult) := + Eff.ask (api := api) .describeVerifiedAccessInstances input + +/-- Describes the specified Amazon Web Services Verified Access trust providers. -/ +def describeVerifiedAccessTrustProviders {ε : Type} (input : DescribeVerifiedAccessTrustProvidersRequest) : Eff api ε (Except Empty DescribeVerifiedAccessTrustProvidersResult) := + Eff.ask (api := api) .describeVerifiedAccessTrustProviders input + +/-- Describes the specified attribute of the specified volume. -/ +def describeVolumeAttribute {ε : Type} (input : DescribeVolumeAttributeRequest) : Eff api ε (Except Empty DescribeVolumeAttributeResult) := + Eff.ask (api := api) .describeVolumeAttribute input + +/-- Describes the status of the specified volumes. -/ +def describeVolumeStatus {ε : Type} (input : DescribeVolumeStatusRequest) : Eff api ε (Except Empty DescribeVolumeStatusResult) := + Eff.ask (api := api) .describeVolumeStatus input + +/-- Describes the specified EBS volumes or all of your EBS volumes. -/ +def describeVolumes {ε : Type} (input : DescribeVolumesRequest) : Eff api ε (Except Empty DescribeVolumesResult) := + Eff.ask (api := api) .describeVolumes input + +/-- Describes the most recent volume modification request for the specified EBS volumes. -/ +def describeVolumesModifications {ε : Type} (input : DescribeVolumesModificationsRequest) : Eff api ε (Except Empty DescribeVolumesModificationsResult) := + Eff.ask (api := api) .describeVolumesModifications input + +/-- Describes the specified attribute of the specified VPC. -/ +def describeVpcAttribute {ε : Type} (input : DescribeVpcAttributeRequest) : Eff api ε (Except Empty DescribeVpcAttributeResult) := + Eff.ask (api := api) .describeVpcAttribute input + +/-- Describe VPC Block Public Access (BPA) exclusions. -/ +def describeVpcBlockPublicAccessExclusions {ε : Type} (input : DescribeVpcBlockPublicAccessExclusionsRequest) : Eff api ε (Except Empty DescribeVpcBlockPublicAccessExclusionsResult) := + Eff.ask (api := api) .describeVpcBlockPublicAccessExclusions input + +/-- Describe VPC Block Public Access (BPA) options. -/ +def describeVpcBlockPublicAccessOptions {ε : Type} (input : DescribeVpcBlockPublicAccessOptionsRequest) : Eff api ε (Except Empty DescribeVpcBlockPublicAccessOptionsResult) := + Eff.ask (api := api) .describeVpcBlockPublicAccessOptions input + +/-- This action is deprecated. -/ +def describeVpcClassicLink {ε : Type} (input : DescribeVpcClassicLinkRequest) : Eff api ε (Except Empty DescribeVpcClassicLinkResult) := + Eff.ask (api := api) .describeVpcClassicLink input + +/-- This action is deprecated. -/ +def describeVpcClassicLinkDnsSupport {ε : Type} (input : DescribeVpcClassicLinkDnsSupportRequest) : Eff api ε (Except Empty DescribeVpcClassicLinkDnsSupportResult) := + Eff.ask (api := api) .describeVpcClassicLinkDnsSupport input + +/-- Describes one or more VPC Encryption Control configurations. -/ +def describeVpcEncryptionControls {ε : Type} (input : DescribeVpcEncryptionControlsRequest) : Eff api ε (Except Empty DescribeVpcEncryptionControlsResult) := + Eff.ask (api := api) .describeVpcEncryptionControls input + +/-- Describes the VPC resources, VPC endpoint services, Amazon Lattice services, or service networks associated with the VPC endpoint. -/ +def describeVpcEndpointAssociations {ε : Type} (input : DescribeVpcEndpointAssociationsRequest) : Eff api ε (Except Empty DescribeVpcEndpointAssociationsResult) := + Eff.ask (api := api) .describeVpcEndpointAssociations input + +/-- Describes the connection notifications for VPC endpoints and VPC endpoint services. -/ +def describeVpcEndpointConnectionNotifications {ε : Type} (input : DescribeVpcEndpointConnectionNotificationsRequest) : Eff api ε (Except Empty DescribeVpcEndpointConnectionNotificationsResult) := + Eff.ask (api := api) .describeVpcEndpointConnectionNotifications input + +/-- Describes the VPC endpoint connections to your VPC endpoint services, including any endpoints that are pending your acceptance. -/ +def describeVpcEndpointConnections {ε : Type} (input : DescribeVpcEndpointConnectionsRequest) : Eff api ε (Except Empty DescribeVpcEndpointConnectionsResult) := + Eff.ask (api := api) .describeVpcEndpointConnections input + +/-- Describes the VPC endpoint service configurations in your account (your services). -/ +def describeVpcEndpointServiceConfigurations {ε : Type} (input : DescribeVpcEndpointServiceConfigurationsRequest) : Eff api ε (Except Empty DescribeVpcEndpointServiceConfigurationsResult) := + Eff.ask (api := api) .describeVpcEndpointServiceConfigurations input + +/-- Describes the principals (service consumers) that are permitted to discover your VPC endpoint service. -/ +def describeVpcEndpointServicePermissions {ε : Type} (input : DescribeVpcEndpointServicePermissionsRequest) : Eff api ε (Except Empty DescribeVpcEndpointServicePermissionsResult) := + Eff.ask (api := api) .describeVpcEndpointServicePermissions input + +/-- Describes available services to which you can create a VPC endpoint. -/ +def describeVpcEndpointServices {ε : Type} (input : DescribeVpcEndpointServicesRequest) : Eff api ε (Except Empty DescribeVpcEndpointServicesResult) := + Eff.ask (api := api) .describeVpcEndpointServices input + +/-- Describes your VPC endpoints. -/ +def describeVpcEndpoints {ε : Type} (input : DescribeVpcEndpointsRequest) : Eff api ε (Except Empty DescribeVpcEndpointsResult) := + Eff.ask (api := api) .describeVpcEndpoints input + +/-- Describes your VPC peering connections. -/ +def describeVpcPeeringConnections {ε : Type} (input : DescribeVpcPeeringConnectionsRequest) : Eff api ε (Except Empty DescribeVpcPeeringConnectionsResult) := + Eff.ask (api := api) .describeVpcPeeringConnections input + +/-- Describes your VPCs. -/ +def describeVpcs {ε : Type} (input : DescribeVpcsRequest) : Eff api ε (Except Empty DescribeVpcsResult) := + Eff.ask (api := api) .describeVpcs input + +/-- Describes one or more of your VPN concentrators. -/ +def describeVpnConcentrators {ε : Type} (input : DescribeVpnConcentratorsRequest) : Eff api ε (Except Empty DescribeVpnConcentratorsResult) := + Eff.ask (api := api) .describeVpnConcentrators input + +/-- Describes one or more of your VPN connections. -/ +def describeVpnConnections {ε : Type} (input : DescribeVpnConnectionsRequest) : Eff api ε (Except Empty DescribeVpnConnectionsResult) := + Eff.ask (api := api) .describeVpnConnections input + +/-- Describes one or more of your virtual private gateways. -/ +def describeVpnGateways {ε : Type} (input : DescribeVpnGatewaysRequest) : Eff api ε (Except Empty DescribeVpnGatewaysResult) := + Eff.ask (api := api) .describeVpnGateways input + +/-- This action is deprecated. -/ +def detachClassicLinkVpc {ε : Type} (input : DetachClassicLinkVpcRequest) : Eff api ε (Except Empty DetachClassicLinkVpcResult) := + Eff.ask (api := api) .detachClassicLinkVpc input + +/-- Removes a watermark from the specified AMI. -/ +def detachImageWatermark {ε : Type} (input : DetachImageWatermarkRequest) : Eff api ε (Except Empty DetachImageWatermarkResult) := + Eff.ask (api := api) .detachImageWatermark input + +/-- Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC. -/ +def detachInternetGateway {ε : Type} (input : DetachInternetGatewayRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .detachInternetGateway input + +/-- Detaches a network interface from an instance. -/ +def detachNetworkInterface {ε : Type} (input : DetachNetworkInterfaceRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .detachNetworkInterface input + +/-- Detaches the specified Amazon Web Services Verified Access trust provider from the specified Amazon Web Services Verified Access instance. -/ +def detachVerifiedAccessTrustProvider {ε : Type} (input : DetachVerifiedAccessTrustProviderRequest) : Eff api ε (Except Empty DetachVerifiedAccessTrustProviderResult) := + Eff.ask (api := api) .detachVerifiedAccessTrustProvider input + +/-- Detaches an EBS volume from an instance. -/ +def detachVolume {ε : Type} (input : DetachVolumeRequest) : Eff api ε (Except Empty VolumeAttachment) := + Eff.ask (api := api) .detachVolume input + +/-- Detaches a virtual private gateway from a VPC. -/ +def detachVpnGateway {ε : Type} (input : DetachVpnGatewayRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .detachVpnGateway input + +/-- Disables Elastic IP address transfer. -/ +def disableAddressTransfer {ε : Type} (input : DisableAddressTransferRequest) : Eff api ε (Except Empty DisableAddressTransferResult) := + Eff.ask (api := api) .disableAddressTransfer input + +/-- Disables Allowed AMIs for your account in the specified Amazon Web Services Region. -/ +def disableAllowedImagesSettings {ε : Type} (input : DisableAllowedImagesSettingsRequest) : Eff api ε (Except Empty DisableAllowedImagesSettingsResult) := + Eff.ask (api := api) .disableAllowedImagesSettings input + +/-- Disables suppression of application status checks for the specified instances. -/ +def disableApplicationStatusCheckSuppression {ε : Type} (input : DisableApplicationStatusCheckSuppressionRequest) : Eff api ε (Except Empty DisableApplicationStatusCheckSuppressionResult) := + Eff.ask (api := api) .disableApplicationStatusCheckSuppression input + +/-- Disables Infrastructure Performance metric subscriptions. -/ +def disableAwsNetworkPerformanceMetricSubscription {ε : Type} (input : DisableAwsNetworkPerformanceMetricSubscriptionRequest) : Eff api ε (Except Empty DisableAwsNetworkPerformanceMetricSubscriptionResult) := + Eff.ask (api := api) .disableAwsNetworkPerformanceMetricSubscription input + +/-- Disables EC2 Capacity Manager for your account. -/ +def disableCapacityManager {ε : Type} (input : DisableCapacityManagerRequest) : Eff api ε (Except Empty DisableCapacityManagerResult) := + Eff.ask (api := api) .disableCapacityManager input + +/-- Disables EBS encryption by default for your account in the current Region. -/ +def disableEbsEncryptionByDefault {ε : Type} (input : DisableEbsEncryptionByDefaultRequest) : Eff api ε (Except Empty DisableEbsEncryptionByDefaultResult) := + Eff.ask (api := api) .disableEbsEncryptionByDefault input + +/-- Discontinue Windows fast launch for a Windows AMI, and clean up existing pre-provisioned snapshots. -/ +def disableFastLaunch {ε : Type} (input : DisableFastLaunchRequest) : Eff api ε (Except Empty DisableFastLaunchResult) := + Eff.ask (api := api) .disableFastLaunch input + +/-- Disables fast snapshot restores for the specified snapshots in the specified Availability Zones. -/ +def disableFastSnapshotRestores {ε : Type} (input : DisableFastSnapshotRestoresRequest) : Eff api ε (Except Empty DisableFastSnapshotRestoresResult) := + Eff.ask (api := api) .disableFastSnapshotRestores input + +/-- Sets the AMI state to disabled and removes all launch permissions from the AMI. -/ +def disableImage {ε : Type} (input : DisableImageRequest) : Eff api ε (Except Empty DisableImageResult) := + Eff.ask (api := api) .disableImage input + +/-- Disables block public access for AMIs at the account level in the specified Amazon Web Services Region. -/ +def disableImageBlockPublicAccess {ε : Type} (input : DisableImageBlockPublicAccessRequest) : Eff api ε (Except Empty DisableImageBlockPublicAccessResult) := + Eff.ask (api := api) .disableImageBlockPublicAccess input + +/-- Cancels the deprecation of the specified AMI. -/ +def disableImageDeprecation {ε : Type} (input : DisableImageDeprecationRequest) : Eff api ε (Except Empty DisableImageDeprecationResult) := + Eff.ask (api := api) .disableImageDeprecation input + +/-- Disables deregistration protection for an AMI. -/ +def disableImageDeregistrationProtection {ε : Type} (input : DisableImageDeregistrationProtectionRequest) : Eff api ε (Except Empty DisableImageDeregistrationProtectionResult) := + Eff.ask (api := api) .disableImageDeregistrationProtection input + +/-- Disable Amazon EC2 instances running in an SQL Server High Availability cluster from SQL Server High Availability instance standby detection monitoring. -/ +def disableInstanceSqlHaStandbyDetections {ε : Type} (input : DisableInstanceSqlHaStandbyDetectionsRequest) : Eff api ε (Except Empty DisableInstanceSqlHaStandbyDetectionsResult) := + Eff.ask (api := api) .disableInstanceSqlHaStandbyDetections input + +/-- Disable the IPAM account. -/ +def disableIpamOrganizationAdminAccount {ε : Type} (input : DisableIpamOrganizationAdminAccountRequest) : Eff api ε (Except Empty DisableIpamOrganizationAdminAccountResult) := + Eff.ask (api := api) .disableIpamOrganizationAdminAccount input + +/-- Disables an IPAM policy. -/ +def disableIpamPolicy {ε : Type} (input : DisableIpamPolicyRequest) : Eff api ε (Except Empty DisableIpamPolicyResult) := + Eff.ask (api := api) .disableIpamPolicy input + +/-- Disables route propagation from a route server to a specified route table. -/ +def disableRouteServerPropagation {ε : Type} (input : DisableRouteServerPropagationRequest) : Eff api ε (Except Empty DisableRouteServerPropagationResult) := + Eff.ask (api := api) .disableRouteServerPropagation input + +/-- Disables access to the EC2 serial console of all instances for your account. -/ +def disableSerialConsoleAccess {ε : Type} (input : DisableSerialConsoleAccessRequest) : Eff api ε (Except Empty DisableSerialConsoleAccessResult) := + Eff.ask (api := api) .disableSerialConsoleAccess input + +/-- Disables the block public access for snapshots setting at the account level for the specified Amazon Web Services Region. -/ +def disableSnapshotBlockPublicAccess {ε : Type} (input : DisableSnapshotBlockPublicAccessRequest) : Eff api ε (Except Empty DisableSnapshotBlockPublicAccessResult) := + Eff.ask (api := api) .disableSnapshotBlockPublicAccess input + +/-- Disables the specified resource attachment from propagating routes to the specified propagation route table. -/ +def disableTransitGatewayRouteTablePropagation {ε : Type} (input : DisableTransitGatewayRouteTablePropagationRequest) : Eff api ε (Except Empty DisableTransitGatewayRouteTablePropagationResult) := + Eff.ask (api := api) .disableTransitGatewayRouteTablePropagation input + +/-- Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC. -/ +def disableVgwRoutePropagation {ε : Type} (input : DisableVgwRoutePropagationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .disableVgwRoutePropagation input + +/-- This action is deprecated. -/ +def disableVpcClassicLink {ε : Type} (input : DisableVpcClassicLinkRequest) : Eff api ε (Except Empty DisableVpcClassicLinkResult) := + Eff.ask (api := api) .disableVpcClassicLink input + +/-- This action is deprecated. -/ +def disableVpcClassicLinkDnsSupport {ε : Type} (input : DisableVpcClassicLinkDnsSupportRequest) : Eff api ε (Except Empty DisableVpcClassicLinkDnsSupportResult) := + Eff.ask (api := api) .disableVpcClassicLinkDnsSupport input + +/-- Disassociates an Elastic IP address from the instance or network interface it's associated with. -/ +def disassociateAddress {ε : Type} (input : DisassociateAddressRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .disassociateAddress input + +/-- Disassociates an application status check from instances or tags . -/ +def disassociateApplicationStatusCheck {ε : Type} (input : DisassociateApplicationStatusCheckRequest) : Eff api ε (Except Empty DisassociateApplicationStatusCheckResult) := + Eff.ask (api := api) .disassociateApplicationStatusCheck input + +/-- Cancels a pending request to assign billing of the unused capacity of a Capacity Reservation to a consumer account, or revokes a request that has already been accepted. -/ +def disassociateCapacityReservationBillingOwner {ε : Type} (input : DisassociateCapacityReservationBillingOwnerRequest) : Eff api ε (Except Empty DisassociateCapacityReservationBillingOwnerResult) := + Eff.ask (api := api) .disassociateCapacityReservationBillingOwner input + +/-- Disassociates a target network from the specified Client VPN endpoint. -/ +def disassociateClientVpnTargetNetwork {ε : Type} (input : DisassociateClientVpnTargetNetworkRequest) : Eff api ε (Except Empty DisassociateClientVpnTargetNetworkResult) := + Eff.ask (api := api) .disassociateClientVpnTargetNetwork input + +/-- Disassociates an IAM role from an Certificate Manager (ACM) certificate. -/ +def disassociateEnclaveCertificateIamRole {ε : Type} (input : DisassociateEnclaveCertificateIamRoleRequest) : Eff api ε (Except Empty DisassociateEnclaveCertificateIamRoleResult) := + Eff.ask (api := api) .disassociateEnclaveCertificateIamRole input + +/-- Disassociates an IAM instance profile from a running or stopped instance. -/ +def disassociateIamInstanceProfile {ε : Type} (input : DisassociateIamInstanceProfileRequest) : Eff api ε (Except Empty DisassociateIamInstanceProfileResult) := + Eff.ask (api := api) .disassociateIamInstanceProfile input + +/-- Disassociates one or more targets from an event window. -/ +def disassociateInstanceEventWindow {ε : Type} (input : DisassociateInstanceEventWindowRequest) : Eff api ε (Except Empty DisassociateInstanceEventWindowResult) := + Eff.ask (api := api) .disassociateInstanceEventWindow input + +/-- Remove the association between your Autonomous System Number (ASN) and your BYOIP CIDR. -/ +def disassociateIpamByoasn {ε : Type} (input : DisassociateIpamByoasnRequest) : Eff api ε (Except Empty DisassociateIpamByoasnResult) := + Eff.ask (api := api) .disassociateIpamByoasn input + +/-- Disassociates a resource discovery from an Amazon VPC IPAM. -/ +def disassociateIpamResourceDiscovery {ε : Type} (input : DisassociateIpamResourceDiscoveryRequest) : Eff api ε (Except Empty DisassociateIpamResourceDiscoveryResult) := + Eff.ask (api := api) .disassociateIpamResourceDiscovery input + +/-- Removes an associated KMS key from an Amazon EBS snapshot. -/ +def disassociateKmsKeyId {ε : Type} (input : DisassociateKmsKeyIdRequest) : Eff api ε (Except Empty DisassociateKmsKeyIdResult) := + Eff.ask (api := api) .disassociateKmsKeyId input + +/-- Disassociates secondary Elastic IP addresses (EIPs) from a public NAT gateway. -/ +def disassociateNatGatewayAddress {ε : Type} (input : DisassociateNatGatewayAddressRequest) : Eff api ε (Except Empty DisassociateNatGatewayAddressResult) := + Eff.ask (api := api) .disassociateNatGatewayAddress input + +/-- Disassociates a flex cost allocation policy from one or more network resources. -/ +def disassociateNetworkingFlexCostAllocationPolicy {ε : Type} (input : DisassociateNetworkingFlexCostAllocationPolicyRequest) : Eff api ε (Except Empty DisassociateNetworkingFlexCostAllocationPolicyResult) := + Eff.ask (api := api) .disassociateNetworkingFlexCostAllocationPolicy input + +/-- Disassociates a route server from a VPC. -/ +def disassociateRouteServer {ε : Type} (input : DisassociateRouteServerRequest) : Eff api ε (Except Empty DisassociateRouteServerResult) := + Eff.ask (api := api) .disassociateRouteServer input + +/-- Disassociates a subnet or gateway from a route table. -/ +def disassociateRouteTable {ε : Type} (input : DisassociateRouteTableRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .disassociateRouteTable input + +/-- Disassociates a security group from a VPC. -/ +def disassociateSecurityGroupVpc {ε : Type} (input : DisassociateSecurityGroupVpcRequest) : Eff api ε (Except Empty DisassociateSecurityGroupVpcResult) := + Eff.ask (api := api) .disassociateSecurityGroupVpc input + +/-- Disassociates a CIDR block from a subnet. -/ +def disassociateSubnetCidrBlock {ε : Type} (input : DisassociateSubnetCidrBlockRequest) : Eff api ε (Except Empty DisassociateSubnetCidrBlockResult) := + Eff.ask (api := api) .disassociateSubnetCidrBlock input + +/-- Disassociates the specified subnets from the transit gateway multicast domain. -/ +def disassociateTransitGatewayMulticastDomain {ε : Type} (input : DisassociateTransitGatewayMulticastDomainRequest) : Eff api ε (Except Empty DisassociateTransitGatewayMulticastDomainResult) := + Eff.ask (api := api) .disassociateTransitGatewayMulticastDomain input + +/-- Removes the association between an an attachment and a policy table. -/ +def disassociateTransitGatewayPolicyTable {ε : Type} (input : DisassociateTransitGatewayPolicyTableRequest) : Eff api ε (Except Empty DisassociateTransitGatewayPolicyTableResult) := + Eff.ask (api := api) .disassociateTransitGatewayPolicyTable input + +/-- Disassociates a resource attachment from a transit gateway route table. -/ +def disassociateTransitGatewayRouteTable {ε : Type} (input : DisassociateTransitGatewayRouteTableRequest) : Eff api ε (Except Empty DisassociateTransitGatewayRouteTableResult) := + Eff.ask (api := api) .disassociateTransitGatewayRouteTable input + +/-- Removes an association between a branch network interface with a trunk network interface. -/ +def disassociateTrunkInterface {ε : Type} (input : DisassociateTrunkInterfaceRequest) : Eff api ε (Except Empty DisassociateTrunkInterfaceResult) := + Eff.ask (api := api) .disassociateTrunkInterface input + +/-- Disassociates a CIDR block from a VPC. -/ +def disassociateVpcCidrBlock {ε : Type} (input : DisassociateVpcCidrBlockRequest) : Eff api ε (Except Empty DisassociateVpcCidrBlockResult) := + Eff.ask (api := api) .disassociateVpcCidrBlock input + +/-- Enables Elastic IP address transfer. -/ +def enableAddressTransfer {ε : Type} (input : EnableAddressTransferRequest) : Eff api ε (Except Empty EnableAddressTransferResult) := + Eff.ask (api := api) .enableAddressTransfer input + +/-- Enables Allowed AMIs for your account in the specified Amazon Web Services Region. -/ +def enableAllowedImagesSettings {ε : Type} (input : EnableAllowedImagesSettingsRequest) : Eff api ε (Except Empty EnableAllowedImagesSettingsResult) := + Eff.ask (api := api) .enableAllowedImagesSettings input + +/-- Suppresses application status checks for the specified instances. -/ +def enableApplicationStatusCheckSuppression {ε : Type} (input : EnableApplicationStatusCheckSuppressionRequest) : Eff api ε (Except Empty EnableApplicationStatusCheckSuppressionResult) := + Eff.ask (api := api) .enableApplicationStatusCheckSuppression input + +/-- Enables Infrastructure Performance subscriptions. -/ +def enableAwsNetworkPerformanceMetricSubscription {ε : Type} (input : EnableAwsNetworkPerformanceMetricSubscriptionRequest) : Eff api ε (Except Empty EnableAwsNetworkPerformanceMetricSubscriptionResult) := + Eff.ask (api := api) .enableAwsNetworkPerformanceMetricSubscription input + +/-- Enables EC2 Capacity Manager for your account. -/ +def enableCapacityManager {ε : Type} (input : EnableCapacityManagerRequest) : Eff api ε (Except Empty EnableCapacityManagerResult) := + Eff.ask (api := api) .enableCapacityManager input + +/-- Enables EBS encryption by default for your account in the current Region. -/ +def enableEbsEncryptionByDefault {ε : Type} (input : EnableEbsEncryptionByDefaultRequest) : Eff api ε (Except Empty EnableEbsEncryptionByDefaultResult) := + Eff.ask (api := api) .enableEbsEncryptionByDefault input + +/-- When you enable Windows fast launch for a Windows AMI, images are pre-provisioned, using snapshots to launch instances up to 65% faster. -/ +def enableFastLaunch {ε : Type} (input : EnableFastLaunchRequest) : Eff api ε (Except Empty EnableFastLaunchResult) := + Eff.ask (api := api) .enableFastLaunch input + +/-- Enables fast snapshot restores for the specified snapshots in the specified Availability Zones. -/ +def enableFastSnapshotRestores {ε : Type} (input : EnableFastSnapshotRestoresRequest) : Eff api ε (Except Empty EnableFastSnapshotRestoresResult) := + Eff.ask (api := api) .enableFastSnapshotRestores input + +/-- Re-enables a disabled AMI. -/ +def enableImage {ε : Type} (input : EnableImageRequest) : Eff api ε (Except Empty EnableImageResult) := + Eff.ask (api := api) .enableImage input + +/-- Enables block public access for AMIs at the account level in the specified Amazon Web Services Region. -/ +def enableImageBlockPublicAccess {ε : Type} (input : EnableImageBlockPublicAccessRequest) : Eff api ε (Except Empty EnableImageBlockPublicAccessResult) := + Eff.ask (api := api) .enableImageBlockPublicAccess input + +/-- Enables deprecation of the specified AMI at the specified date and time. -/ +def enableImageDeprecation {ε : Type} (input : EnableImageDeprecationRequest) : Eff api ε (Except Empty EnableImageDeprecationResult) := + Eff.ask (api := api) .enableImageDeprecation input + +/-- Enables deregistration protection for an AMI. -/ +def enableImageDeregistrationProtection {ε : Type} (input : EnableImageDeregistrationProtectionRequest) : Eff api ε (Except Empty EnableImageDeregistrationProtectionResult) := + Eff.ask (api := api) .enableImageDeregistrationProtection input + +/-- Enable Amazon EC2 instances running in an SQL Server High Availability cluster for SQL Server High Availability instance standby detection monitoring. -/ +def enableInstanceSqlHaStandbyDetections {ε : Type} (input : EnableInstanceSqlHaStandbyDetectionsRequest) : Eff api ε (Except Empty EnableInstanceSqlHaStandbyDetectionsResult) := + Eff.ask (api := api) .enableInstanceSqlHaStandbyDetections input + +/-- Enables Resource Public Key Infrastructure (RPKI) on an existing IPAM internet registry association by providing BGP Public Key Infrastructure (BPKI) certificate details. -/ +def enableIpamInternetRegistryAssociation {ε : Type} (input : EnableIpamInternetRegistryAssociationRequest) : Eff api ε (Except Empty EnableIpamInternetRegistryAssociationResult) := + Eff.ask (api := api) .enableIpamInternetRegistryAssociation input + +/-- Enable an Organizations member account as the IPAM admin account. -/ +def enableIpamOrganizationAdminAccount {ε : Type} (input : EnableIpamOrganizationAdminAccountRequest) : Eff api ε (Except Empty EnableIpamOrganizationAdminAccountResult) := + Eff.ask (api := api) .enableIpamOrganizationAdminAccount input + +/-- Enables an IPAM policy. -/ +def enableIpamPolicy {ε : Type} (input : EnableIpamPolicyRequest) : Eff api ε (Except Empty EnableIpamPolicyResult) := + Eff.ask (api := api) .enableIpamPolicy input + +/-- Establishes a trust relationship between Reachability Analyzer and Organizations. -/ +def enableReachabilityAnalyzerOrganizationSharing {ε : Type} (input : EnableReachabilityAnalyzerOrganizationSharingRequest) : Eff api ε (Except Empty EnableReachabilityAnalyzerOrganizationSharingResult) := + Eff.ask (api := api) .enableReachabilityAnalyzerOrganizationSharing input + +/-- Defines which route tables the route server can update with routes. -/ +def enableRouteServerPropagation {ε : Type} (input : EnableRouteServerPropagationRequest) : Eff api ε (Except Empty EnableRouteServerPropagationResult) := + Eff.ask (api := api) .enableRouteServerPropagation input + +/-- Enables access to the EC2 serial console of all instances for your account. -/ +def enableSerialConsoleAccess {ε : Type} (input : EnableSerialConsoleAccessRequest) : Eff api ε (Except Empty EnableSerialConsoleAccessResult) := + Eff.ask (api := api) .enableSerialConsoleAccess input + +/-- Enables or modifies the block public access for snapshots setting at the account level for the specified Amazon Web Services Region. -/ +def enableSnapshotBlockPublicAccess {ε : Type} (input : EnableSnapshotBlockPublicAccessRequest) : Eff api ε (Except Empty EnableSnapshotBlockPublicAccessResult) := + Eff.ask (api := api) .enableSnapshotBlockPublicAccess input + +/-- Enables the specified attachment to propagate routes to the specified propagation route table. -/ +def enableTransitGatewayRouteTablePropagation {ε : Type} (input : EnableTransitGatewayRouteTablePropagationRequest) : Eff api ε (Except Empty EnableTransitGatewayRouteTablePropagationResult) := + Eff.ask (api := api) .enableTransitGatewayRouteTablePropagation input + +/-- Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC. -/ +def enableVgwRoutePropagation {ε : Type} (input : EnableVgwRoutePropagationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .enableVgwRoutePropagation input + +/-- Enables I/O operations for a volume that had I/O operations disabled because the data on the volume was potentially inconsistent. -/ +def enableVolumeIO {ε : Type} (input : EnableVolumeIORequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .enableVolumeIO input + +/-- This action is deprecated. -/ +def enableVpcClassicLink {ε : Type} (input : EnableVpcClassicLinkRequest) : Eff api ε (Except Empty EnableVpcClassicLinkResult) := + Eff.ask (api := api) .enableVpcClassicLink input + +/-- This action is deprecated. -/ +def enableVpcClassicLinkDnsSupport {ε : Type} (input : EnableVpcClassicLinkDnsSupportRequest) : Eff api ε (Except Empty EnableVpcClassicLinkDnsSupportResult) := + Eff.ask (api := api) .enableVpcClassicLinkDnsSupport input + +/-- Downloads the client certificate revocation list for the specified Client VPN endpoint. -/ +def exportClientVpnClientCertificateRevocationList {ε : Type} (input : ExportClientVpnClientCertificateRevocationListRequest) : Eff api ε (Except Empty ExportClientVpnClientCertificateRevocationListResult) := + Eff.ask (api := api) .exportClientVpnClientCertificateRevocationList input + +/-- Downloads the contents of the Client VPN endpoint configuration file for the specified Client VPN endpoint. -/ +def exportClientVpnClientConfiguration {ε : Type} (input : ExportClientVpnClientConfigurationRequest) : Eff api ε (Except Empty ExportClientVpnClientConfigurationResult) := + Eff.ask (api := api) .exportClientVpnClientConfiguration input + +/-- Exports an Amazon Machine Image (AMI) to a VM file. -/ +def exportImage {ε : Type} (input : ExportImageRequest) : Eff api ε (Except Empty ExportImageResult) := + Eff.ask (api := api) .exportImage input + +/-- Exports routes from the specified transit gateway route table to the specified S3 bucket. -/ +def exportTransitGatewayRoutes {ε : Type} (input : ExportTransitGatewayRoutesRequest) : Eff api ε (Except Empty ExportTransitGatewayRoutesResult) := + Eff.ask (api := api) .exportTransitGatewayRoutes input + +/-- Exports the client configuration for a Verified Access instance. -/ +def exportVerifiedAccessInstanceClientConfiguration {ε : Type} (input : ExportVerifiedAccessInstanceClientConfigurationRequest) : Eff api ε (Except Empty ExportVerifiedAccessInstanceClientConfigurationResult) := + Eff.ask (api := api) .exportVerifiedAccessInstanceClientConfiguration input + +/-- Returns the currently negotiated security parameters for an active VPN tunnel, including IKE version, DH groups, encryption algorithms, and integrity algorithms. -/ +def getActiveVpnTunnelStatus {ε : Type} (input : GetActiveVpnTunnelStatusRequest) : Eff api ε (Except Empty GetActiveVpnTunnelStatusResult) := + Eff.ask (api := api) .getActiveVpnTunnelStatus input + +/-- Gets the current state of the Allowed AMIs setting and the list of Allowed AMIs criteria at the account level in the specified Region. -/ +def getAllowedImagesSettings {ε : Type} (input : GetAllowedImagesSettingsRequest) : Eff api ε (Except Empty GetAllowedImagesSettingsResult) := + Eff.ask (api := api) .getAllowedImagesSettings input + +/-- Returns the IAM roles that are associated with the specified ACM (ACM) certificate. -/ +def getAssociatedEnclaveCertificateIamRoles {ε : Type} (input : GetAssociatedEnclaveCertificateIamRolesRequest) : Eff api ε (Except Empty GetAssociatedEnclaveCertificateIamRolesResult) := + Eff.ask (api := api) .getAssociatedEnclaveCertificateIamRoles input + +/-- Gets information about the IPv6 CIDR block associations for a specified IPv6 address pool. -/ +def getAssociatedIpv6PoolCidrs {ε : Type} (input : GetAssociatedIpv6PoolCidrsRequest) : Eff api ε (Except Empty GetAssociatedIpv6PoolCidrsResult) := + Eff.ask (api := api) .getAssociatedIpv6PoolCidrs input + +/-- Gets network performance data. -/ +def getAwsNetworkPerformanceData {ε : Type} (input : GetAwsNetworkPerformanceDataRequest) : Eff api ε (Except Empty GetAwsNetworkPerformanceDataResult) := + Eff.ask (api := api) .getAwsNetworkPerformanceData input + +/-- Retrieves the current configuration and status of EC2 Capacity Manager for your account, including enablement status, Organizations access settings, and data ingestion status. -/ +def getCapacityManagerAttributes {ε : Type} (input : GetCapacityManagerAttributesRequest) : Eff api ε (Except Empty GetCapacityManagerAttributesResult) := + Eff.ask (api := api) .getCapacityManagerAttributes input + +/-- Retrieves capacity usage metrics for your EC2 resources. -/ +def getCapacityManagerMetricData {ε : Type} (input : GetCapacityManagerMetricDataRequest) : Eff api ε (Except Empty GetCapacityManagerMetricDataResult) := + Eff.ask (api := api) .getCapacityManagerMetricData input + +/-- Retrieves the available dimension values for capacity metrics within a specified time range. -/ +def getCapacityManagerMetricDimensions {ε : Type} (input : GetCapacityManagerMetricDimensionsRequest) : Eff api ε (Except Empty GetCapacityManagerMetricDimensionsResult) := + Eff.ask (api := api) .getCapacityManagerMetricDimensions input + +/-- Retrieves the tag keys that are currently being monitored by EC2 Capacity Manager. -/ +def getCapacityManagerMonitoredTagKeys {ε : Type} (input : GetCapacityManagerMonitoredTagKeysRequest) : Eff api ε (Except Empty GetCapacityManagerMonitoredTagKeysResult) := + Eff.ask (api := api) .getCapacityManagerMonitoredTagKeys input + +/-- Scores how well each instance type and Availability Zone combination can support a capacity request, based on current Amazon EC2 capacity. -/ +def getCapacityManagerSupportabilityScores {ε : Type} (input : GetCapacityManagerSupportabilityScoresRequest) : Eff api ε (Except Empty GetCapacityManagerSupportabilityScoresResult) := + Eff.ask (api := api) .getCapacityManagerSupportabilityScores input + +/-- Gets usage information about a Capacity Reservation. -/ +def getCapacityReservationUsage {ε : Type} (input : GetCapacityReservationUsageRequest) : Eff api ε (Except Empty GetCapacityReservationUsageResult) := + Eff.ask (api := api) .getCapacityReservationUsage input + +/-- Describes the authorization policy for a Client VPN endpoint. -/ +def getClientVpnEndpointAuthorizationPolicy {ε : Type} (input : GetClientVpnEndpointAuthorizationPolicyRequest) : Eff api ε (Except Empty GetClientVpnEndpointAuthorizationPolicyResult) := + Eff.ask (api := api) .getClientVpnEndpointAuthorizationPolicy input + +/-- Describes the allocations from the specified customer-owned address pool. -/ +def getCoipPoolUsage {ε : Type} (input : GetCoipPoolUsageRequest) : Eff api ε (Except Empty GetCoipPoolUsageResult) := + Eff.ask (api := api) .getCoipPoolUsage input + +/-- Gets the console output for the specified instance. -/ +def getConsoleOutput {ε : Type} (input : GetConsoleOutputRequest) : Eff api ε (Except Empty GetConsoleOutputResult) := + Eff.ask (api := api) .getConsoleOutput input + +/-- Retrieve a JPG-format screenshot of a running instance to help with troubleshooting. -/ +def getConsoleScreenshot {ε : Type} (input : GetConsoleScreenshotRequest) : Eff api ε (Except Empty GetConsoleScreenshotResult) := + Eff.ask (api := api) .getConsoleScreenshot input + +/-- Retrieves a summary of the account status report. -/ +def getDeclarativePoliciesReportSummary {ε : Type} (input : GetDeclarativePoliciesReportSummaryRequest) : Eff api ε (Except Empty GetDeclarativePoliciesReportSummaryResult) := + Eff.ask (api := api) .getDeclarativePoliciesReportSummary input + +/-- Describes the default credit option for CPU usage of a burstable performance instance family. -/ +def getDefaultCreditSpecification {ε : Type} (input : GetDefaultCreditSpecificationRequest) : Eff api ε (Except Empty GetDefaultCreditSpecificationResult) := + Eff.ask (api := api) .getDefaultCreditSpecification input + +/-- Describes the default KMS key for EBS encryption by default for your account in this Region. -/ +def getEbsDefaultKmsKeyId {ε : Type} (input : GetEbsDefaultKmsKeyIdRequest) : Eff api ε (Except Empty GetEbsDefaultKmsKeyIdResult) := + Eff.ask (api := api) .getEbsDefaultKmsKeyId input + +/-- Describes whether EBS encryption by default is enabled for your account in the current Region. -/ +def getEbsEncryptionByDefault {ε : Type} (input : GetEbsEncryptionByDefaultRequest) : Eff api ε (Except Empty GetEbsEncryptionByDefaultResult) := + Eff.ask (api := api) .getEbsEncryptionByDefault input + +/-- Gets the enabled IPAM policy. -/ +def getEnabledIpamPolicy {ε : Type} (input : GetEnabledIpamPolicyRequest) : Eff api ε (Except Empty GetEnabledIpamPolicyResult) := + Eff.ask (api := api) .getEnabledIpamPolicy input + +/-- Generates a CloudFormation template that streamlines and automates the integration of VPC flow logs with Amazon Athena. -/ +def getFlowLogsIntegrationTemplate {ε : Type} (input : GetFlowLogsIntegrationTemplateRequest) : Eff api ε (Except Empty GetFlowLogsIntegrationTemplateResult) := + Eff.ask (api := api) .getFlowLogsIntegrationTemplate input + +/-- Lists the resource groups to which a Capacity Reservation has been added. -/ +def getGroupsForCapacityReservation {ε : Type} (input : GetGroupsForCapacityReservationRequest) : Eff api ε (Except Empty GetGroupsForCapacityReservationResult) := + Eff.ask (api := api) .getGroupsForCapacityReservation input + +/-- Preview a reservation purchase with configurations that match those of your Dedicated Host. -/ +def getHostReservationPurchasePreview {ε : Type} (input : GetHostReservationPurchasePreviewRequest) : Eff api ε (Except Empty GetHostReservationPurchasePreviewResult) := + Eff.ask (api := api) .getHostReservationPurchasePreview input + +/-- Retrieves the ancestry chain of the specified AMI, tracing its lineage back to the root AMI. -/ +def getImageAncestry {ε : Type} (input : GetImageAncestryRequest) : Eff api ε (Except Empty GetImageAncestryResult) := + Eff.ask (api := api) .getImageAncestry input + +/-- Gets the current state of block public access for AMIs at the account level in the specified Amazon Web Services Region. -/ +def getImageBlockPublicAccessState {ε : Type} (input : GetImageBlockPublicAccessStateRequest) : Eff api ε (Except Empty GetImageBlockPublicAccessStateResult) := + Eff.ask (api := api) .getImageBlockPublicAccessState input + +/-- Describes the Amazon Inspector vulnerability findings for the specified AMI. -/ +def getImageFindings {ε : Type} (input : GetImageFindingsRequest) : Eff api ε (Except Empty GetImageFindingsResult) := + Eff.ask (api := api) .getImageFindings input + +/-- Gets the default instance metadata service (IMDS) settings that are set at the account level in the specified Amazon Web Services
 Region. -/ +def getInstanceMetadataDefaults {ε : Type} (input : GetInstanceMetadataDefaultsRequest) : Eff api ε (Except Empty GetInstanceMetadataDefaultsResult) := + Eff.ask (api := api) .getInstanceMetadataDefaults input + +/-- Gets the public endorsement key associated with the Nitro Trusted Platform Module (NitroTPM) for the specified instance. -/ +def getInstanceTpmEkPub {ε : Type} (input : GetInstanceTpmEkPubRequest) : Eff api ε (Except Empty GetInstanceTpmEkPubResult) := + Eff.ask (api := api) .getInstanceTpmEkPub input + +/-- Returns a list of instance types with the specified instance attributes. -/ +def getInstanceTypesFromInstanceRequirements {ε : Type} (input : GetInstanceTypesFromInstanceRequirementsRequest) : Eff api ε (Except Empty GetInstanceTypesFromInstanceRequirementsResult) := + Eff.ask (api := api) .getInstanceTypesFromInstanceRequirements input + +/-- A binary representation of the UEFI variable store. -/ +def getInstanceUefiData {ε : Type} (input : GetInstanceUefiDataRequest) : Eff api ε (Except Empty GetInstanceUefiDataResult) := + Eff.ask (api := api) .getInstanceUefiData input + +/-- Retrieve historical information about a CIDR within an IPAM scope. -/ +def getIpamAddressHistory {ε : Type} (input : GetIpamAddressHistoryRequest) : Eff api ε (Except Empty GetIpamAddressHistoryResult) := + Eff.ask (api := api) .getIpamAddressHistory input + +/-- Gets IPAM discovered accounts. -/ +def getIpamDiscoveredAccounts {ε : Type} (input : GetIpamDiscoveredAccountsRequest) : Eff api ε (Except Empty GetIpamDiscoveredAccountsResult) := + Eff.ask (api := api) .getIpamDiscoveredAccounts input + +/-- Gets the public IP addresses that have been discovered by IPAM. -/ +def getIpamDiscoveredPublicAddresses {ε : Type} (input : GetIpamDiscoveredPublicAddressesRequest) : Eff api ε (Except Empty GetIpamDiscoveredPublicAddressesResult) := + Eff.ask (api := api) .getIpamDiscoveredPublicAddresses input + +/-- Returns the resource CIDRs that are monitored as part of a resource discovery. -/ +def getIpamDiscoveredResourceCidrs {ε : Type} (input : GetIpamDiscoveredResourceCidrsRequest) : Eff api ε (Except Empty GetIpamDiscoveredResourceCidrsResult) := + Eff.ask (api := api) .getIpamDiscoveredResourceCidrs input + +/-- Retrieves Border Gateway Protocol (BGP) routes discovered by IPAM resource discovery for a specified Region. -/ +def getIpamDiscoveredRoutes {ε : Type} (input : GetIpamDiscoveredRoutesRequest) : Eff api ε (Except Empty GetIpamDiscoveredRoutesResult) := + Eff.ask (api := api) .getIpamDiscoveredRoutes input + +/-- Retrieves Autonomous System Numbers (ASNs) registered with an internet registry for an IPAM internet registry association. -/ +def getIpamInternetRegistryAssociationAsns {ε : Type} (input : GetIpamInternetRegistryAssociationAsnsRequest) : Eff api ε (Except Empty GetIpamInternetRegistryAssociationAsnsResult) := + Eff.ask (api := api) .getIpamInternetRegistryAssociationAsns input + +/-- Retrieves IP address CIDRs registered with an internet registry for an IPAM internet registry association. -/ +def getIpamInternetRegistryAssociationCidrs {ε : Type} (input : GetIpamInternetRegistryAssociationCidrsRequest) : Eff api ε (Except Empty GetIpamInternetRegistryAssociationCidrsResult) := + Eff.ask (api := api) .getIpamInternetRegistryAssociationCidrs input + +/-- Gets the allocation rules for an IPAM policy. -/ +def getIpamPolicyAllocationRules {ε : Type} (input : GetIpamPolicyAllocationRulesRequest) : Eff api ε (Except Empty GetIpamPolicyAllocationRulesResult) := + Eff.ask (api := api) .getIpamPolicyAllocationRules input + +/-- Gets the Amazon Web Services Organizations targets for an IPAM policy. -/ +def getIpamPolicyOrganizationTargets {ε : Type} (input : GetIpamPolicyOrganizationTargetsRequest) : Eff api ε (Except Empty GetIpamPolicyOrganizationTargetsResult) := + Eff.ask (api := api) .getIpamPolicyOrganizationTargets input + +/-- Get a list of all the CIDR allocations in an IPAM pool. -/ +def getIpamPoolAllocations {ε : Type} (input : GetIpamPoolAllocationsRequest) : Eff api ε (Except Empty GetIpamPoolAllocationsResult) := + Eff.ask (api := api) .getIpamPoolAllocations input + +/-- Get the CIDRs provisioned to an IPAM pool. -/ +def getIpamPoolCidrs {ε : Type} (input : GetIpamPoolCidrsRequest) : Eff api ε (Except Empty GetIpamPoolCidrsResult) := + Eff.ask (api := api) .getIpamPoolCidrs input + +/-- Retrieves the CIDR selection rules for an IPAM prefix list resolver. -/ +def getIpamPrefixListResolverRules {ε : Type} (input : GetIpamPrefixListResolverRulesRequest) : Eff api ε (Except Empty GetIpamPrefixListResolverRulesResult) := + Eff.ask (api := api) .getIpamPrefixListResolverRules input + +/-- Retrieves the CIDR entries for a specific version of an IPAM prefix list resolver. -/ +def getIpamPrefixListResolverVersionEntries {ε : Type} (input : GetIpamPrefixListResolverVersionEntriesRequest) : Eff api ε (Except Empty GetIpamPrefixListResolverVersionEntriesResult) := + Eff.ask (api := api) .getIpamPrefixListResolverVersionEntries input + +/-- Retrieves version information for an IPAM prefix list resolver. -/ +def getIpamPrefixListResolverVersions {ε : Type} (input : GetIpamPrefixListResolverVersionsRequest) : Eff api ε (Except Empty GetIpamPrefixListResolverVersionsResult) := + Eff.ask (api := api) .getIpamPrefixListResolverVersions input + +/-- Returns resource CIDRs managed by IPAM in a given scope. -/ +def getIpamResourceCidrs {ε : Type} (input : GetIpamResourceCidrsRequest) : Eff api ε (Except Empty GetIpamResourceCidrsResult) := + Eff.ask (api := api) .getIpamResourceCidrs input + +/-- Retrieves the current Route Origin Authorizations (ROAs) published to the RPKI for an IPAM internet registry association. -/ +def getIpamRouteOriginAuthorizations {ε : Type} (input : GetIpamRouteOriginAuthorizationsRequest) : Eff api ε (Except Empty GetIpamRouteOriginAuthorizationsResult) := + Eff.ask (api := api) .getIpamRouteOriginAuthorizations input + +/-- Retrieves route protection findings for an IPAM. -/ +def getIpamRouteProtectionFindings {ε : Type} (input : GetIpamRouteProtectionFindingsRequest) : Eff api ε (Except Empty GetIpamRouteProtectionFindingsResult) := + Eff.ask (api := api) .getIpamRouteProtectionFindings input + +/-- Retrieves the history of routing policy registration changes for an IPAM internet registry association. -/ +def getIpamRoutingPolicyRegistrationDeltas {ε : Type} (input : GetIpamRoutingPolicyRegistrationDeltasRequest) : Eff api ε (Except Empty GetIpamRoutingPolicyRegistrationDeltasResult) := + Eff.ask (api := api) .getIpamRoutingPolicyRegistrationDeltas input + +/-- Retrieves routing policy registrations for an IPAM internet registry association. -/ +def getIpamRoutingPolicyRegistrations {ε : Type} (input : GetIpamRoutingPolicyRegistrationsRequest) : Eff api ε (Except Empty GetIpamRoutingPolicyRegistrationsResult) := + Eff.ask (api := api) .getIpamRoutingPolicyRegistrations input + +/-- Retrieves the configuration data of the specified instance. -/ +def getLaunchTemplateData {ε : Type} (input : GetLaunchTemplateDataRequest) : Eff api ε (Except Empty GetLaunchTemplateDataResult) := + Eff.ask (api := api) .getLaunchTemplateData input + +/-- Gets information about the resources that are associated with the specified managed prefix list. -/ +def getManagedPrefixListAssociations {ε : Type} (input : GetManagedPrefixListAssociationsRequest) : Eff api ε (Except Empty GetManagedPrefixListAssociationsResult) := + Eff.ask (api := api) .getManagedPrefixListAssociations input + +/-- Gets information about the entries for a specified managed prefix list. -/ +def getManagedPrefixListEntries {ε : Type} (input : GetManagedPrefixListEntriesRequest) : Eff api ε (Except Empty GetManagedPrefixListEntriesResult) := + Eff.ask (api := api) .getManagedPrefixListEntries input + +/-- Retrieves the managed resource visibility configuration for the account. -/ +def getManagedResourceVisibility {ε : Type} (input : GetManagedResourceVisibilityRequest) : Eff api ε (Except Empty GetManagedResourceVisibilityResult) := + Eff.ask (api := api) .getManagedResourceVisibility input + +/-- Gets the findings for the specified Network Access Scope analysis. -/ +def getNetworkInsightsAccessScopeAnalysisFindings {ε : Type} (input : GetNetworkInsightsAccessScopeAnalysisFindingsRequest) : Eff api ε (Except Empty GetNetworkInsightsAccessScopeAnalysisFindingsResult) := + Eff.ask (api := api) .getNetworkInsightsAccessScopeAnalysisFindings input + +/-- Gets the content for the specified Network Access Scope. -/ +def getNetworkInsightsAccessScopeContent {ε : Type} (input : GetNetworkInsightsAccessScopeContentRequest) : Eff api ε (Except Empty GetNetworkInsightsAccessScopeContentResult) := + Eff.ask (api := api) .getNetworkInsightsAccessScopeContent input + +/-- Retrieves the versions of a flex cost allocation policy. -/ +def getNetworkingFlexCostAllocationPolicyVersions {ε : Type} (input : GetNetworkingFlexCostAllocationPolicyVersionsRequest) : Eff api ε (Except Empty GetNetworkingFlexCostAllocationPolicyVersionsResult) := + Eff.ask (api := api) .getNetworkingFlexCostAllocationPolicyVersions input + +/-- Retrieves the encrypted administrator password for a running Windows instance. -/ +def getPasswordData {ε : Type} (input : GetPasswordDataRequest) : Eff api ε (Except Empty GetPasswordDataResult) := + Eff.ask (api := api) .getPasswordData input + +/-- Returns a quote and exchange information for exchanging one or more specified Convertible Reserved Instances for a new Convertible Reserved Instance. -/ +def getReservedInstancesExchangeQuote {ε : Type} (input : GetReservedInstancesExchangeQuoteRequest) : Eff api ε (Except Empty GetReservedInstancesExchangeQuoteResult) := + Eff.ask (api := api) .getReservedInstancesExchangeQuote input + +/-- Gets information about the associations for the specified route server. -/ +def getRouteServerAssociations {ε : Type} (input : GetRouteServerAssociationsRequest) : Eff api ε (Except Empty GetRouteServerAssociationsResult) := + Eff.ask (api := api) .getRouteServerAssociations input + +/-- Gets information about the route propagations for the specified route server. -/ +def getRouteServerPropagations {ε : Type} (input : GetRouteServerPropagationsRequest) : Eff api ε (Except Empty GetRouteServerPropagationsResult) := + Eff.ask (api := api) .getRouteServerPropagations input + +/-- Gets the routing database for the specified route server. -/ +def getRouteServerRoutingDatabase {ε : Type} (input : GetRouteServerRoutingDatabaseRequest) : Eff api ε (Except Empty GetRouteServerRoutingDatabaseResult) := + Eff.ask (api := api) .getRouteServerRoutingDatabase input + +/-- Gets security groups that can be associated by the Amazon Web Services account making the request with network interfaces in the specified VPC. -/ +def getSecurityGroupsForVpc {ε : Type} (input : GetSecurityGroupsForVpcRequest) : Eff api ε (Except Empty GetSecurityGroupsForVpcResult) := + Eff.ask (api := api) .getSecurityGroupsForVpc input + +/-- Retrieves the access status of your account to the EC2 serial console of all instances. -/ +def getSerialConsoleAccessStatus {ε : Type} (input : GetSerialConsoleAccessStatusRequest) : Eff api ε (Except Empty GetSerialConsoleAccessStatusResult) := + Eff.ask (api := api) .getSerialConsoleAccessStatus input + +/-- Gets the current state of block public access for snapshots setting for the account and Region. -/ +def getSnapshotBlockPublicAccessState {ε : Type} (input : GetSnapshotBlockPublicAccessStateRequest) : Eff api ε (Except Empty GetSnapshotBlockPublicAccessStateResult) := + Eff.ask (api := api) .getSnapshotBlockPublicAccessState input + +/-- Calculates the Spot placement score for a Region or Availability Zone based on the specified target capacity and compute requirements. -/ +def getSpotPlacementScores {ε : Type} (input : GetSpotPlacementScoresRequest) : Eff api ε (Except Empty GetSpotPlacementScoresResult) := + Eff.ask (api := api) .getSpotPlacementScores input + +/-- Gets information about the subnet CIDR reservations. -/ +def getSubnetCidrReservations {ε : Type} (input : GetSubnetCidrReservationsRequest) : Eff api ε (Except Empty GetSubnetCidrReservationsResult) := + Eff.ask (api := api) .getSubnetCidrReservations input + +/-- Describes the NAT configuration for the specified transit gateway attachment. -/ +def getTransitGatewayAttachmentNatConfiguration {ε : Type} (input : GetTransitGatewayAttachmentNatConfigurationRequest) : Eff api ε (Except Empty GetTransitGatewayAttachmentNatConfigurationResult) := + Eff.ask (api := api) .getTransitGatewayAttachmentNatConfiguration input + +/-- Lists the route tables to which the specified resource attachment propagates routes. -/ +def getTransitGatewayAttachmentPropagations {ε : Type} (input : GetTransitGatewayAttachmentPropagationsRequest) : Eff api ε (Except Empty GetTransitGatewayAttachmentPropagationsResult) := + Eff.ask (api := api) .getTransitGatewayAttachmentPropagations input + +/-- Retrieves the entries for a transit gateway metering policy. -/ +def getTransitGatewayMeteringPolicyEntries {ε : Type} (input : GetTransitGatewayMeteringPolicyEntriesRequest) : Eff api ε (Except Empty GetTransitGatewayMeteringPolicyEntriesResult) := + Eff.ask (api := api) .getTransitGatewayMeteringPolicyEntries input + +/-- Gets information about the associations for the transit gateway multicast domain. -/ +def getTransitGatewayMulticastDomainAssociations {ε : Type} (input : GetTransitGatewayMulticastDomainAssociationsRequest) : Eff api ε (Except Empty GetTransitGatewayMulticastDomainAssociationsResult) := + Eff.ask (api := api) .getTransitGatewayMulticastDomainAssociations input + +/-- Gets a list of the transit gateway policy table associations. -/ +def getTransitGatewayPolicyTableAssociations {ε : Type} (input : GetTransitGatewayPolicyTableAssociationsRequest) : Eff api ε (Except Empty GetTransitGatewayPolicyTableAssociationsResult) := + Eff.ask (api := api) .getTransitGatewayPolicyTableAssociations input + +/-- Returns a list of transit gateway policy table entries. -/ +def getTransitGatewayPolicyTableEntries {ε : Type} (input : GetTransitGatewayPolicyTableEntriesRequest) : Eff api ε (Except Empty GetTransitGatewayPolicyTableEntriesResult) := + Eff.ask (api := api) .getTransitGatewayPolicyTableEntries input + +/-- Gets information about the prefix list references in a specified transit gateway route table. -/ +def getTransitGatewayPrefixListReferences {ε : Type} (input : GetTransitGatewayPrefixListReferencesRequest) : Eff api ε (Except Empty GetTransitGatewayPrefixListReferencesResult) := + Eff.ask (api := api) .getTransitGatewayPrefixListReferences input + +/-- Gets information about the associations for the specified transit gateway route table. -/ +def getTransitGatewayRouteTableAssociations {ε : Type} (input : GetTransitGatewayRouteTableAssociationsRequest) : Eff api ε (Except Empty GetTransitGatewayRouteTableAssociationsResult) := + Eff.ask (api := api) .getTransitGatewayRouteTableAssociations input + +/-- Gets information about the route table propagations for the specified transit gateway route table. -/ +def getTransitGatewayRouteTablePropagations {ε : Type} (input : GetTransitGatewayRouteTablePropagationsRequest) : Eff api ε (Except Empty GetTransitGatewayRouteTablePropagationsResult) := + Eff.ask (api := api) .getTransitGatewayRouteTablePropagations input + +/-- Get the Verified Access policy associated with the endpoint. -/ +def getVerifiedAccessEndpointPolicy {ε : Type} (input : GetVerifiedAccessEndpointPolicyRequest) : Eff api ε (Except Empty GetVerifiedAccessEndpointPolicyResult) := + Eff.ask (api := api) .getVerifiedAccessEndpointPolicy input + +/-- Gets the targets for the specified network CIDR endpoint for Verified Access. -/ +def getVerifiedAccessEndpointTargets {ε : Type} (input : GetVerifiedAccessEndpointTargetsRequest) : Eff api ε (Except Empty GetVerifiedAccessEndpointTargetsResult) := + Eff.ask (api := api) .getVerifiedAccessEndpointTargets input + +/-- Shows the contents of the Verified Access policy associated with the group. -/ +def getVerifiedAccessGroupPolicy {ε : Type} (input : GetVerifiedAccessGroupPolicyRequest) : Eff api ε (Except Empty GetVerifiedAccessGroupPolicyResult) := + Eff.ask (api := api) .getVerifiedAccessGroupPolicy input + +/-- Gets information about resources in a VPC that are blocking encryption enforcement. -/ +def getVpcResourcesBlockingEncryptionEnforcement {ε : Type} (input : GetVpcResourcesBlockingEncryptionEnforcementRequest) : Eff api ε (Except Empty GetVpcResourcesBlockingEncryptionEnforcementResult) := + Eff.ask (api := api) .getVpcResourcesBlockingEncryptionEnforcement input + +/-- Download an Amazon Web Services-provided sample configuration file to be used with the customer gateway device specified for your Site-to-Site VPN connection. -/ +def getVpnConnectionDeviceSampleConfiguration {ε : Type} (input : GetVpnConnectionDeviceSampleConfigurationRequest) : Eff api ε (Except Empty GetVpnConnectionDeviceSampleConfigurationResult) := + Eff.ask (api := api) .getVpnConnectionDeviceSampleConfiguration input + +/-- Obtain a list of customer gateway devices for which sample configuration files can be provided. -/ +def getVpnConnectionDeviceTypes {ε : Type} (input : GetVpnConnectionDeviceTypesRequest) : Eff api ε (Except Empty GetVpnConnectionDeviceTypesResult) := + Eff.ask (api := api) .getVpnConnectionDeviceTypes input + +/-- Get details of available tunnel endpoint maintenance. -/ +def getVpnTunnelReplacementStatus {ε : Type} (input : GetVpnTunnelReplacementStatusRequest) : Eff api ε (Except Empty GetVpnTunnelReplacementStatusResult) := + Eff.ask (api := api) .getVpnTunnelReplacementStatus input + +/-- Uploads a client certificate revocation list to the specified Client VPN endpoint. -/ +def importClientVpnClientCertificateRevocationList {ε : Type} (input : ImportClientVpnClientCertificateRevocationListRequest) : Eff api ε (Except Empty ImportClientVpnClientCertificateRevocationListResult) := + Eff.ask (api := api) .importClientVpnClientCertificateRevocationList input + +/-- To import your virtual machines (VMs) with a console-based experience, you can use the Import virtual machine images to Amazon Web Services template in the Migration Hub Orchestrator console . -/ +def importImage {ε : Type} (input : ImportImageRequest) : Eff api ε (Except Empty ImportImageResult) := + Eff.ask (api := api) .importImage input + +/-- We recommend that you use the ImportImage API instead. -/ +def importInstance {ε : Type} (input : ImportInstanceRequest) : Eff api ε (Except Empty ImportInstanceResult) := + Eff.ask (api := api) .importInstance input + +/-- Imports the public key from an RSA or ED25519 key pair that you created using a third-party tool. -/ +def importKeyPair {ε : Type} (input : ImportKeyPairRequest) : Eff api ε (Except Empty ImportKeyPairResult) := + Eff.ask (api := api) .importKeyPair input + +/-- Imports a disk into an EBS snapshot. -/ +def importSnapshot {ε : Type} (input : ImportSnapshotRequest) : Eff api ε (Except Empty ImportSnapshotResult) := + Eff.ask (api := api) .importSnapshot input + +/-- This API action supports only single-volume VMs. -/ +def importVolume {ε : Type} (input : ImportVolumeRequest) : Eff api ε (Except Empty ImportVolumeResult) := + Eff.ask (api := api) .importVolume input + +/-- Lists one or more AMIs that are currently in the Recycle Bin. -/ +def listImagesInRecycleBin {ε : Type} (input : ListImagesInRecycleBinRequest) : Eff api ε (Except Empty ListImagesInRecycleBinResult) := + Eff.ask (api := api) .listImagesInRecycleBin input + +/-- Lists one or more snapshots that are currently in the Recycle Bin. -/ +def listSnapshotsInRecycleBin {ε : Type} (input : ListSnapshotsInRecycleBinRequest) : Eff api ε (Except Empty ListSnapshotsInRecycleBinResult) := + Eff.ask (api := api) .listSnapshotsInRecycleBin input + +/-- Lists one or more volumes that are currently in the Recycle Bin. -/ +def listVolumesInRecycleBin {ε : Type} (input : ListVolumesInRecycleBinRequest) : Eff api ε (Except Empty ListVolumesInRecycleBinResult) := + Eff.ask (api := api) .listVolumesInRecycleBin input + +/-- Locks an Amazon EBS snapshot in either governance or compliance mode to protect it against accidental or malicious deletions for a specific duration. -/ +def lockSnapshot {ε : Type} (input : LockSnapshotRequest) : Eff api ε (Except Empty LockSnapshotResult) := + Eff.ask (api := api) .lockSnapshot input + +/-- Modifies the account-level VPC Encryption Control configuration. -/ +def modifyAccountVpcEncryptionControl {ε : Type} (input : ModifyAccountVpcEncryptionControlRequest) : Eff api ε (Except Empty ModifyAccountVpcEncryptionControlResult) := + Eff.ask (api := api) .modifyAccountVpcEncryptionControl input + +/-- Modifies an attribute of the specified Elastic IP address. -/ +def modifyAddressAttribute {ε : Type} (input : ModifyAddressAttributeRequest) : Eff api ε (Except Empty ModifyAddressAttributeResult) := + Eff.ask (api := api) .modifyAddressAttribute input + +/-- Modifies an existing application status check. -/ +def modifyApplicationStatusCheck {ε : Type} (input : ModifyApplicationStatusCheckRequest) : Eff api ε (Except Empty ModifyApplicationStatusCheckResult) := + Eff.ask (api := api) .modifyApplicationStatusCheck input + +/-- Changes the opt-in status of the specified zone group for your account. -/ +def modifyAvailabilityZoneGroup {ε : Type} (input : ModifyAvailabilityZoneGroupRequest) : Eff api ε (Except Empty ModifyAvailabilityZoneGroupResult) := + Eff.ask (api := api) .modifyAvailabilityZoneGroup input + +/-- Modifies a Capacity Reservation's capacity, instance eligibility, and the conditions under which it is to be released. -/ +def modifyCapacityReservation {ε : Type} (input : ModifyCapacityReservationRequest) : Eff api ε (Except Empty ModifyCapacityReservationResult) := + Eff.ask (api := api) .modifyCapacityReservation input + +/-- Modifies a Capacity Reservation Fleet. -/ +def modifyCapacityReservationFleet {ε : Type} (input : ModifyCapacityReservationFleetRequest) : Eff api ε (Except Empty ModifyCapacityReservationFleetResult) := + Eff.ask (api := api) .modifyCapacityReservationFleet input + +/-- Modifies the specified Client VPN endpoint. -/ +def modifyClientVpnEndpoint {ε : Type} (input : ModifyClientVpnEndpointRequest) : Eff api ε (Except Empty ModifyClientVpnEndpointResult) := + Eff.ask (api := api) .modifyClientVpnEndpoint input + +/-- Creates or updates the authorization policy for a Client VPN endpoint. -/ +def modifyClientVpnEndpointAuthorizationPolicy {ε : Type} (input : ModifyClientVpnEndpointAuthorizationPolicyRequest) : Eff api ε (Except Empty ModifyClientVpnEndpointAuthorizationPolicyResult) := + Eff.ask (api := api) .modifyClientVpnEndpointAuthorizationPolicy input + +/-- Modifies the default credit option for CPU usage of burstable performance instances. -/ +def modifyDefaultCreditSpecification {ε : Type} (input : ModifyDefaultCreditSpecificationRequest) : Eff api ε (Except Empty ModifyDefaultCreditSpecificationResult) := + Eff.ask (api := api) .modifyDefaultCreditSpecification input + +/-- Changes the default KMS key for EBS encryption by default for your account in this Region. -/ +def modifyEbsDefaultKmsKeyId {ε : Type} (input : ModifyEbsDefaultKmsKeyIdRequest) : Eff api ε (Except Empty ModifyEbsDefaultKmsKeyIdResult) := + Eff.ask (api := api) .modifyEbsDefaultKmsKeyId input + +/-- Modifies the specified EC2 Fleet. -/ +def modifyFleet {ε : Type} (input : ModifyFleetRequest) : Eff api ε (Except Empty ModifyFleetResult) := + Eff.ask (api := api) .modifyFleet input + +/-- Modifies the specified attribute of the specified Amazon FPGA Image (AFI). -/ +def modifyFpgaImageAttribute {ε : Type} (input : ModifyFpgaImageAttributeRequest) : Eff api ε (Except Empty ModifyFpgaImageAttributeResult) := + Eff.ask (api := api) .modifyFpgaImageAttribute input + +/-- Modify the auto-placement setting of a Dedicated Host. -/ +def modifyHosts {ε : Type} (input : ModifyHostsRequest) : Eff api ε (Except Empty ModifyHostsResult) := + Eff.ask (api := api) .modifyHosts input + +/-- Modifies the ID format for the specified resource on a per-Region basis. -/ +def modifyIdFormat {ε : Type} (input : ModifyIdFormatRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .modifyIdFormat input + +/-- Modifies the ID format of a resource for a specified IAM user, IAM role, or the root user for an account; or all IAM users, IAM roles, and the root user for an account. -/ +def modifyIdentityIdFormat {ε : Type} (input : ModifyIdentityIdFormatRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .modifyIdentityIdFormat input + +/-- Modifies the specified attribute of the specified AMI. -/ +def modifyImageAttribute {ε : Type} (input : ModifyImageAttributeRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .modifyImageAttribute input + +/-- Modifies the specified attribute of the specified instance. -/ +def modifyInstanceAttribute {ε : Type} (input : ModifyInstanceAttributeRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .modifyInstanceAttribute input + +/-- Modifies the Capacity Reservation settings for a stopped instance. -/ +def modifyInstanceCapacityReservationAttributes {ε : Type} (input : ModifyInstanceCapacityReservationAttributesRequest) : Eff api ε (Except Empty ModifyInstanceCapacityReservationAttributesResult) := + Eff.ask (api := api) .modifyInstanceCapacityReservationAttributes input + +/-- Modifies the specified EC2 Instance Connect Endpoint. -/ +def modifyInstanceConnectEndpoint {ε : Type} (input : ModifyInstanceConnectEndpointRequest) : Eff api ε (Except Empty ModifyInstanceConnectEndpointResult) := + Eff.ask (api := api) .modifyInstanceConnectEndpoint input + +/-- By default, all vCPUs for the instance type are active when you launch an instance. -/ +def modifyInstanceCpuOptions {ε : Type} (input : ModifyInstanceCpuOptionsRequest) : Eff api ε (Except Empty ModifyInstanceCpuOptionsResult) := + Eff.ask (api := api) .modifyInstanceCpuOptions input + +/-- Modifies the credit option for CPU usage on a running or stopped burstable performance instance. -/ +def modifyInstanceCreditSpecification {ε : Type} (input : ModifyInstanceCreditSpecificationRequest) : Eff api ε (Except Empty ModifyInstanceCreditSpecificationResult) := + Eff.ask (api := api) .modifyInstanceCreditSpecification input + +/-- Modifies the start time for a scheduled Amazon EC2 instance event. -/ +def modifyInstanceEventStartTime {ε : Type} (input : ModifyInstanceEventStartTimeRequest) : Eff api ε (Except Empty ModifyInstanceEventStartTimeResult) := + Eff.ask (api := api) .modifyInstanceEventStartTime input + +/-- Modifies the specified event window. -/ +def modifyInstanceEventWindow {ε : Type} (input : ModifyInstanceEventWindowRequest) : Eff api ε (Except Empty ModifyInstanceEventWindowResult) := + Eff.ask (api := api) .modifyInstanceEventWindow input + +/-- Modifies the recovery behavior of your instance to disable simplified automatic recovery or set the recovery behavior to default. -/ +def modifyInstanceMaintenanceOptions {ε : Type} (input : ModifyInstanceMaintenanceOptionsRequest) : Eff api ε (Except Empty ModifyInstanceMaintenanceOptionsResult) := + Eff.ask (api := api) .modifyInstanceMaintenanceOptions input + +/-- Modifies the default instance metadata service (IMDS) settings at the account level in the specified Amazon Web Services
 Region. -/ +def modifyInstanceMetadataDefaults {ε : Type} (input : ModifyInstanceMetadataDefaultsRequest) : Eff api ε (Except Empty ModifyInstanceMetadataDefaultsResult) := + Eff.ask (api := api) .modifyInstanceMetadataDefaults input + +/-- Modify the instance metadata parameters on a running or stopped instance. -/ +def modifyInstanceMetadataOptions {ε : Type} (input : ModifyInstanceMetadataOptionsRequest) : Eff api ε (Except Empty ModifyInstanceMetadataOptionsResult) := + Eff.ask (api := api) .modifyInstanceMetadataOptions input + +/-- Change the configuration of the network performance options for an existing instance. -/ +def modifyInstanceNetworkPerformanceOptions {ε : Type} (input : ModifyInstanceNetworkPerformanceRequest) : Eff api ε (Except Empty ModifyInstanceNetworkPerformanceResult) := + Eff.ask (api := api) .modifyInstanceNetworkPerformanceOptions input + +/-- Modifies the placement attributes for a specified instance. -/ +def modifyInstancePlacement {ε : Type} (input : ModifyInstancePlacementRequest) : Eff api ε (Except Empty ModifyInstancePlacementResult) := + Eff.ask (api := api) .modifyInstancePlacement input + +/-- Modify the configurations of an IPAM. -/ +def modifyIpam {ε : Type} (input : ModifyIpamRequest) : Eff api ε (Except Empty ModifyIpamResult) := + Eff.ask (api := api) .modifyIpam input + +/-- Modifies the allocation rules in an IPAM policy. -/ +def modifyIpamPolicyAllocationRules {ε : Type} (input : ModifyIpamPolicyAllocationRulesRequest) : Eff api ε (Except Empty ModifyIpamPolicyAllocationRulesResult) := + Eff.ask (api := api) .modifyIpamPolicyAllocationRules input + +/-- Modify the configurations of an IPAM pool. -/ +def modifyIpamPool {ε : Type} (input : ModifyIpamPoolRequest) : Eff api ε (Except Empty ModifyIpamPoolResult) := + Eff.ask (api := api) .modifyIpamPool input + +/-- Modifies the description of an IPAM pool allocation. -/ +def modifyIpamPoolAllocation {ε : Type} (input : ModifyIpamPoolAllocationRequest) : Eff api ε (Except Empty ModifyIpamPoolAllocationResult) := + Eff.ask (api := api) .modifyIpamPoolAllocation input + +/-- Modifies an IPAM prefix list resolver. -/ +def modifyIpamPrefixListResolver {ε : Type} (input : ModifyIpamPrefixListResolverRequest) : Eff api ε (Except Empty ModifyIpamPrefixListResolverResult) := + Eff.ask (api := api) .modifyIpamPrefixListResolver input + +/-- Modifies an IPAM prefix list resolver target. -/ +def modifyIpamPrefixListResolverTarget {ε : Type} (input : ModifyIpamPrefixListResolverTargetRequest) : Eff api ε (Except Empty ModifyIpamPrefixListResolverTargetResult) := + Eff.ask (api := api) .modifyIpamPrefixListResolverTarget input + +/-- Modify a resource CIDR. -/ +def modifyIpamResourceCidr {ε : Type} (input : ModifyIpamResourceCidrRequest) : Eff api ε (Except Empty ModifyIpamResourceCidrResult) := + Eff.ask (api := api) .modifyIpamResourceCidr input + +/-- Modifies a resource discovery. -/ +def modifyIpamResourceDiscovery {ε : Type} (input : ModifyIpamResourceDiscoveryRequest) : Eff api ε (Except Empty ModifyIpamResourceDiscoveryResult) := + Eff.ask (api := api) .modifyIpamResourceDiscovery input + +/-- Modifies an existing routing policy registration. -/ +def modifyIpamRoutingPolicyRegistration {ε : Type} (input : ModifyIpamRoutingPolicyRegistrationRequest) : Eff api ε (Except Empty ModifyIpamRoutingPolicyRegistrationResult) := + Eff.ask (api := api) .modifyIpamRoutingPolicyRegistration input + +/-- Modify an IPAM scope. -/ +def modifyIpamScope {ε : Type} (input : ModifyIpamScopeRequest) : Eff api ε (Except Empty ModifyIpamScopeResult) := + Eff.ask (api := api) .modifyIpamScope input + +/-- Modifies a launch template. -/ +def modifyLaunchTemplate {ε : Type} (input : ModifyLaunchTemplateRequest) : Eff api ε (Except Empty ModifyLaunchTemplateResult) := + Eff.ask (api := api) .modifyLaunchTemplate input + +/-- Modifies the specified local gateway route. -/ +def modifyLocalGatewayRoute {ε : Type} (input : ModifyLocalGatewayRouteRequest) : Eff api ε (Except Empty ModifyLocalGatewayRouteResult) := + Eff.ask (api := api) .modifyLocalGatewayRoute input + +/-- Modifies the specified managed prefix list. -/ +def modifyManagedPrefixList {ε : Type} (input : ModifyManagedPrefixListRequest) : Eff api ε (Except Empty ModifyManagedPrefixListResult) := + Eff.ask (api := api) .modifyManagedPrefixList input + +/-- Modifies the managed resource visibility configuration for the account. -/ +def modifyManagedResourceVisibility {ε : Type} (input : ModifyManagedResourceVisibilityRequest) : Eff api ε (Except Empty ModifyManagedResourceVisibilityResult) := + Eff.ask (api := api) .modifyManagedResourceVisibility input + +/-- Modifies the metrics in the specified metric category. -/ +def modifyMetricCategory {ε : Type} (input : ModifyMetricCategoryRequest) : Eff api ε (Except Empty ModifyMetricCategoryResult) := + Eff.ask (api := api) .modifyMetricCategory input + +/-- Modifies the specified network interface attribute. -/ +def modifyNetworkInterfaceAttribute {ε : Type} (input : ModifyNetworkInterfaceAttributeRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .modifyNetworkInterfaceAttribute input + +/-- Modifies a flex cost allocation policy. -/ +def modifyNetworkingFlexCostAllocationPolicy {ε : Type} (input : ModifyNetworkingFlexCostAllocationPolicyRequest) : Eff api ε (Except Empty ModifyNetworkingFlexCostAllocationPolicyResult) := + Eff.ask (api := api) .modifyNetworkingFlexCostAllocationPolicy input + +/-- Modifies the options for instance hostnames for the specified instance. -/ +def modifyPrivateDnsNameOptions {ε : Type} (input : ModifyPrivateDnsNameOptionsRequest) : Eff api ε (Except Empty ModifyPrivateDnsNameOptionsResult) := + Eff.ask (api := api) .modifyPrivateDnsNameOptions input + +/-- Modify public hostname options for a network interface. -/ +def modifyPublicIpDnsNameOptions {ε : Type} (input : ModifyPublicIpDnsNameOptionsRequest) : Eff api ε (Except Empty ModifyPublicIpDnsNameOptionsResult) := + Eff.ask (api := api) .modifyPublicIpDnsNameOptions input + +/-- Modifies the configuration of your Reserved Instances, such as the Availability Zone, instance count, or instance type. -/ +def modifyReservedInstances {ε : Type} (input : ModifyReservedInstancesRequest) : Eff api ε (Except Empty ModifyReservedInstancesResult) := + Eff.ask (api := api) .modifyReservedInstances input + +/-- Modifies the configuration of an existing route server. -/ +def modifyRouteServer {ε : Type} (input : ModifyRouteServerRequest) : Eff api ε (Except Empty ModifyRouteServerResult) := + Eff.ask (api := api) .modifyRouteServer input + +/-- Modifies the rules of a security group. -/ +def modifySecurityGroupRules {ε : Type} (input : ModifySecurityGroupRulesRequest) : Eff api ε (Except Empty ModifySecurityGroupRulesResult) := + Eff.ask (api := api) .modifySecurityGroupRules input + +/-- Adds or removes permission settings for the specified snapshot. -/ +def modifySnapshotAttribute {ε : Type} (input : ModifySnapshotAttributeRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .modifySnapshotAttribute input + +/-- Archives an Amazon EBS snapshot. -/ +def modifySnapshotTier {ε : Type} (input : ModifySnapshotTierRequest) : Eff api ε (Except Empty ModifySnapshotTierResult) := + Eff.ask (api := api) .modifySnapshotTier input + +/-- Modifies the specified Spot Fleet request. -/ +def modifySpotFleetRequest {ε : Type} (input : ModifySpotFleetRequestRequest) : Eff api ε (Except Empty ModifySpotFleetRequestResponse) := + Eff.ask (api := api) .modifySpotFleetRequest input + +/-- Modifies a subnet attribute. -/ +def modifySubnetAttribute {ε : Type} (input : ModifySubnetAttributeRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .modifySubnetAttribute input + +/-- Allows or restricts mirroring network services. -/ +def modifyTrafficMirrorFilterNetworkServices {ε : Type} (input : ModifyTrafficMirrorFilterNetworkServicesRequest) : Eff api ε (Except Empty ModifyTrafficMirrorFilterNetworkServicesResult) := + Eff.ask (api := api) .modifyTrafficMirrorFilterNetworkServices input + +/-- Modifies the specified Traffic Mirror rule. -/ +def modifyTrafficMirrorFilterRule {ε : Type} (input : ModifyTrafficMirrorFilterRuleRequest) : Eff api ε (Except Empty ModifyTrafficMirrorFilterRuleResult) := + Eff.ask (api := api) .modifyTrafficMirrorFilterRule input + +/-- Modifies a Traffic Mirror session. -/ +def modifyTrafficMirrorSession {ε : Type} (input : ModifyTrafficMirrorSessionRequest) : Eff api ε (Except Empty ModifyTrafficMirrorSessionResult) := + Eff.ask (api := api) .modifyTrafficMirrorSession input + +/-- Modifies the specified transit gateway. -/ +def modifyTransitGateway {ε : Type} (input : ModifyTransitGatewayRequest) : Eff api ε (Except Empty ModifyTransitGatewayResult) := + Eff.ask (api := api) .modifyTransitGateway input + +/-- Modifies the NAT configuration for the specified transit gateway attachment. -/ +def modifyTransitGatewayAttachmentNatConfiguration {ε : Type} (input : ModifyTransitGatewayAttachmentNatConfigurationRequest) : Eff api ε (Except Empty ModifyTransitGatewayAttachmentNatConfigurationResult) := + Eff.ask (api := api) .modifyTransitGatewayAttachmentNatConfiguration input + +/-- Modifies a transit gateway metering policy. -/ +def modifyTransitGatewayMeteringPolicy {ε : Type} (input : ModifyTransitGatewayMeteringPolicyRequest) : Eff api ε (Except Empty ModifyTransitGatewayMeteringPolicyResult) := + Eff.ask (api := api) .modifyTransitGatewayMeteringPolicy input + +/-- Adds Availability Zones to or removes Availability Zones from the specified network function attachment. -/ +def modifyTransitGatewayNetworkFunctionAttachment {ε : Type} (input : ModifyTransitGatewayNetworkFunctionAttachmentRequest) : Eff api ε (Except Empty ModifyTransitGatewayNetworkFunctionAttachmentResult) := + Eff.ask (api := api) .modifyTransitGatewayNetworkFunctionAttachment input + +/-- Modifies the options for a transit gateway peering attachment. -/ +def modifyTransitGatewayPeeringAttachment {ε : Type} (input : ModifyTransitGatewayPeeringAttachmentRequest) : Eff api ε (Except Empty ModifyTransitGatewayPeeringAttachmentResult) := + Eff.ask (api := api) .modifyTransitGatewayPeeringAttachment input + +/-- Modifies the specified transit gateway policy table entry. -/ +def modifyTransitGatewayPolicyTableEntry {ε : Type} (input : ModifyTransitGatewayPolicyTableEntryRequest) : Eff api ε (Except Empty ModifyTransitGatewayPolicyTableEntryResult) := + Eff.ask (api := api) .modifyTransitGatewayPolicyTableEntry input + +/-- Modifies a reference (route) to a prefix list in a specified transit gateway route table. -/ +def modifyTransitGatewayPrefixListReference {ε : Type} (input : ModifyTransitGatewayPrefixListReferenceRequest) : Eff api ε (Except Empty ModifyTransitGatewayPrefixListReferenceResult) := + Eff.ask (api := api) .modifyTransitGatewayPrefixListReference input + +/-- Modifies the specified VPC attachment. -/ +def modifyTransitGatewayVpcAttachment {ε : Type} (input : ModifyTransitGatewayVpcAttachmentRequest) : Eff api ε (Except Empty ModifyTransitGatewayVpcAttachmentResult) := + Eff.ask (api := api) .modifyTransitGatewayVpcAttachment input + +/-- Modifies the configuration of the specified Amazon Web Services Verified Access endpoint. -/ +def modifyVerifiedAccessEndpoint {ε : Type} (input : ModifyVerifiedAccessEndpointRequest) : Eff api ε (Except Empty ModifyVerifiedAccessEndpointResult) := + Eff.ask (api := api) .modifyVerifiedAccessEndpoint input + +/-- Modifies the specified Amazon Web Services Verified Access endpoint policy. -/ +def modifyVerifiedAccessEndpointPolicy {ε : Type} (input : ModifyVerifiedAccessEndpointPolicyRequest) : Eff api ε (Except Empty ModifyVerifiedAccessEndpointPolicyResult) := + Eff.ask (api := api) .modifyVerifiedAccessEndpointPolicy input + +/-- Modifies the specified Amazon Web Services Verified Access group configuration. -/ +def modifyVerifiedAccessGroup {ε : Type} (input : ModifyVerifiedAccessGroupRequest) : Eff api ε (Except Empty ModifyVerifiedAccessGroupResult) := + Eff.ask (api := api) .modifyVerifiedAccessGroup input + +/-- Modifies the specified Amazon Web Services Verified Access group policy. -/ +def modifyVerifiedAccessGroupPolicy {ε : Type} (input : ModifyVerifiedAccessGroupPolicyRequest) : Eff api ε (Except Empty ModifyVerifiedAccessGroupPolicyResult) := + Eff.ask (api := api) .modifyVerifiedAccessGroupPolicy input + +/-- Modifies the configuration of the specified Amazon Web Services Verified Access instance. -/ +def modifyVerifiedAccessInstance {ε : Type} (input : ModifyVerifiedAccessInstanceRequest) : Eff api ε (Except Empty ModifyVerifiedAccessInstanceResult) := + Eff.ask (api := api) .modifyVerifiedAccessInstance input + +/-- Modifies the logging configuration for the specified Amazon Web Services Verified Access instance. -/ +def modifyVerifiedAccessInstanceLoggingConfiguration {ε : Type} (input : ModifyVerifiedAccessInstanceLoggingConfigurationRequest) : Eff api ε (Except Empty ModifyVerifiedAccessInstanceLoggingConfigurationResult) := + Eff.ask (api := api) .modifyVerifiedAccessInstanceLoggingConfiguration input + +/-- Modifies the configuration of the specified Amazon Web Services Verified Access trust provider. -/ +def modifyVerifiedAccessTrustProvider {ε : Type} (input : ModifyVerifiedAccessTrustProviderRequest) : Eff api ε (Except Empty ModifyVerifiedAccessTrustProviderResult) := + Eff.ask (api := api) .modifyVerifiedAccessTrustProvider input + +/-- You can modify several parameters of an existing EBS volume, including volume size, volume type, and IOPS capacity. -/ +def modifyVolume {ε : Type} (input : ModifyVolumeRequest) : Eff api ε (Except Empty ModifyVolumeResult) := + Eff.ask (api := api) .modifyVolume input + +/-- Modifies a volume attribute. -/ +def modifyVolumeAttribute {ε : Type} (input : ModifyVolumeAttributeRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .modifyVolumeAttribute input + +/-- Modifies the specified attribute of the specified VPC. -/ +def modifyVpcAttribute {ε : Type} (input : ModifyVpcAttributeRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .modifyVpcAttribute input + +/-- Modify VPC Block Public Access (BPA) exclusions. -/ +def modifyVpcBlockPublicAccessExclusion {ε : Type} (input : ModifyVpcBlockPublicAccessExclusionRequest) : Eff api ε (Except Empty ModifyVpcBlockPublicAccessExclusionResult) := + Eff.ask (api := api) .modifyVpcBlockPublicAccessExclusion input + +/-- Modify VPC Block Public Access (BPA) options. -/ +def modifyVpcBlockPublicAccessOptions {ε : Type} (input : ModifyVpcBlockPublicAccessOptionsRequest) : Eff api ε (Except Empty ModifyVpcBlockPublicAccessOptionsResult) := + Eff.ask (api := api) .modifyVpcBlockPublicAccessOptions input + +/-- Modifies the encryption control configuration for a VPC. -/ +def modifyVpcEncryptionControl {ε : Type} (input : ModifyVpcEncryptionControlRequest) : Eff api ε (Except Empty ModifyVpcEncryptionControlResult) := + Eff.ask (api := api) .modifyVpcEncryptionControl input + +/-- Modifies attributes of a specified VPC endpoint. -/ +def modifyVpcEndpoint {ε : Type} (input : ModifyVpcEndpointRequest) : Eff api ε (Except Empty ModifyVpcEndpointResult) := + Eff.ask (api := api) .modifyVpcEndpoint input + +/-- Modifies a connection notification for VPC endpoint or VPC endpoint service. -/ +def modifyVpcEndpointConnectionNotification {ε : Type} (input : ModifyVpcEndpointConnectionNotificationRequest) : Eff api ε (Except Empty ModifyVpcEndpointConnectionNotificationResult) := + Eff.ask (api := api) .modifyVpcEndpointConnectionNotification input + +/-- Modifies the billing account for VPC endpoint usage/charges. -/ +def modifyVpcEndpointPayerResponsibility {ε : Type} (input : ModifyVpcEndpointPayerResponsibilityRequest) : Eff api ε (Except Empty ModifyVpcEndpointPayerResponsibilityResult) := + Eff.ask (api := api) .modifyVpcEndpointPayerResponsibility input + +/-- Modifies the attributes of the specified VPC endpoint service configuration. -/ +def modifyVpcEndpointServiceConfiguration {ε : Type} (input : ModifyVpcEndpointServiceConfigurationRequest) : Eff api ε (Except Empty ModifyVpcEndpointServiceConfigurationResult) := + Eff.ask (api := api) .modifyVpcEndpointServiceConfiguration input + +/-- Modifies the payer responsibility for your VPC endpoint service. -/ +def modifyVpcEndpointServicePayerResponsibility {ε : Type} (input : ModifyVpcEndpointServicePayerResponsibilityRequest) : Eff api ε (Except Empty ModifyVpcEndpointServicePayerResponsibilityResult) := + Eff.ask (api := api) .modifyVpcEndpointServicePayerResponsibility input + +/-- Modifies the permissions for your VPC endpoint service. -/ +def modifyVpcEndpointServicePermissions {ε : Type} (input : ModifyVpcEndpointServicePermissionsRequest) : Eff api ε (Except Empty ModifyVpcEndpointServicePermissionsResult) := + Eff.ask (api := api) .modifyVpcEndpointServicePermissions input + +/-- Modifies the VPC peering connection options on one side of a VPC peering connection. -/ +def modifyVpcPeeringConnectionOptions {ε : Type} (input : ModifyVpcPeeringConnectionOptionsRequest) : Eff api ε (Except Empty ModifyVpcPeeringConnectionOptionsResult) := + Eff.ask (api := api) .modifyVpcPeeringConnectionOptions input + +/-- Modifies the instance tenancy attribute of the specified VPC. -/ +def modifyVpcTenancy {ε : Type} (input : ModifyVpcTenancyRequest) : Eff api ε (Except Empty ModifyVpcTenancyResult) := + Eff.ask (api := api) .modifyVpcTenancy input + +/-- Modifies the customer gateway or the target gateway of an Amazon Web Services Site-to-Site VPN connection. -/ +def modifyVpnConnection {ε : Type} (input : ModifyVpnConnectionRequest) : Eff api ε (Except Empty ModifyVpnConnectionResult) := + Eff.ask (api := api) .modifyVpnConnection input + +/-- Modifies the connection options for your Site-to-Site VPN connection. -/ +def modifyVpnConnectionOptions {ε : Type} (input : ModifyVpnConnectionOptionsRequest) : Eff api ε (Except Empty ModifyVpnConnectionOptionsResult) := + Eff.ask (api := api) .modifyVpnConnectionOptions input + +/-- Modifies the VPN tunnel endpoint certificate. -/ +def modifyVpnTunnelCertificate {ε : Type} (input : ModifyVpnTunnelCertificateRequest) : Eff api ε (Except Empty ModifyVpnTunnelCertificateResult) := + Eff.ask (api := api) .modifyVpnTunnelCertificate input + +/-- Modifies the options for a VPN tunnel in an Amazon Web Services Site-to-Site VPN connection. -/ +def modifyVpnTunnelOptions {ε : Type} (input : ModifyVpnTunnelOptionsRequest) : Eff api ε (Except Empty ModifyVpnTunnelOptionsResult) := + Eff.ask (api := api) .modifyVpnTunnelOptions input + +/-- Enables detailed monitoring for a running instance. -/ +def monitorInstances {ε : Type} (input : MonitorInstancesRequest) : Eff api ε (Except Empty MonitorInstancesResult) := + Eff.ask (api := api) .monitorInstances input + +/-- This action is deprecated. -/ +def moveAddressToVpc {ε : Type} (input : MoveAddressToVpcRequest) : Eff api ε (Except Empty MoveAddressToVpcResult) := + Eff.ask (api := api) .moveAddressToVpc input + +/-- Move a BYOIPv4 CIDR to IPAM from a public IPv4 pool. -/ +def moveByoipCidrToIpam {ε : Type} (input : MoveByoipCidrToIpamRequest) : Eff api ε (Except Empty MoveByoipCidrToIpamResult) := + Eff.ask (api := api) .moveByoipCidrToIpam input + +/-- Move available capacity from a source Capacity Reservation to a destination Capacity Reservation. -/ +def moveCapacityReservationInstances {ε : Type} (input : MoveCapacityReservationInstancesRequest) : Eff api ε (Except Empty MoveCapacityReservationInstancesResult) := + Eff.ask (api := api) .moveCapacityReservationInstances input + +/-- Provisions an IPv4 or IPv6 address range for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP) and creates a corresponding address pool. -/ +def provisionByoipCidr {ε : Type} (input : ProvisionByoipCidrRequest) : Eff api ε (Except Empty ProvisionByoipCidrResult) := + Eff.ask (api := api) .provisionByoipCidr input + +/-- Provisions your Autonomous System Number (ASN) for use in your Amazon Web Services account. -/ +def provisionIpamByoasn {ε : Type} (input : ProvisionIpamByoasnRequest) : Eff api ε (Except Empty ProvisionIpamByoasnResult) := + Eff.ask (api := api) .provisionIpamByoasn input + +/-- Provision a CIDR to an IPAM pool. -/ +def provisionIpamPoolCidr {ε : Type} (input : ProvisionIpamPoolCidrRequest) : Eff api ε (Except Empty ProvisionIpamPoolCidrResult) := + Eff.ask (api := api) .provisionIpamPoolCidr input + +/-- Provision a CIDR to a public IPv4 pool. -/ +def provisionPublicIpv4PoolCidr {ε : Type} (input : ProvisionPublicIpv4PoolCidrRequest) : Eff api ε (Except Empty ProvisionPublicIpv4PoolCidrResult) := + Eff.ask (api := api) .provisionPublicIpv4PoolCidr input + +/-- Purchase the Capacity Block for use with your account. -/ +def purchaseCapacityBlock {ε : Type} (input : PurchaseCapacityBlockRequest) : Eff api ε (Except Empty PurchaseCapacityBlockResult) := + Eff.ask (api := api) .purchaseCapacityBlock input + +/-- Purchase the Capacity Block extension for use with your account. -/ +def purchaseCapacityBlockExtension {ε : Type} (input : PurchaseCapacityBlockExtensionRequest) : Eff api ε (Except Empty PurchaseCapacityBlockExtensionResult) := + Eff.ask (api := api) .purchaseCapacityBlockExtension input + +/-- Purchase a reservation with configurations that match those of your Dedicated Host. -/ +def purchaseHostReservation {ε : Type} (input : PurchaseHostReservationRequest) : Eff api ε (Except Empty PurchaseHostReservationResult) := + Eff.ask (api := api) .purchaseHostReservation input + +/-- Purchases a Reserved Instance for use with your account. -/ +def purchaseReservedInstancesOffering {ε : Type} (input : PurchaseReservedInstancesOfferingRequest) : Eff api ε (Except Empty PurchaseReservedInstancesOfferingResult) := + Eff.ask (api := api) .purchaseReservedInstancesOffering input + +/-- You can no longer purchase Scheduled Instances. -/ +def purchaseScheduledInstances {ε : Type} (input : PurchaseScheduledInstancesRequest) : Eff api ε (Except Empty PurchaseScheduledInstancesResult) := + Eff.ask (api := api) .purchaseScheduledInstances input + +/-- Requests a reboot of the specified instances. -/ +def rebootInstances {ε : Type} (input : RebootInstancesRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .rebootInstances input + +/-- Registers an AMI. -/ +def registerImage {ε : Type} (input : RegisterImageRequest) : Eff api ε (Except Empty RegisterImageResult) := + Eff.ask (api := api) .registerImage input + +/-- Registers a set of tag keys to include in scheduled event notifications for your resources. -/ +def registerInstanceEventNotificationAttributes {ε : Type} (input : RegisterInstanceEventNotificationAttributesRequest) : Eff api ε (Except Empty RegisterInstanceEventNotificationAttributesResult) := + Eff.ask (api := api) .registerInstanceEventNotificationAttributes input + +/-- Registers members (network interfaces) with the transit gateway multicast group. -/ +def registerTransitGatewayMulticastGroupMembers {ε : Type} (input : RegisterTransitGatewayMulticastGroupMembersRequest) : Eff api ε (Except Empty RegisterTransitGatewayMulticastGroupMembersResult) := + Eff.ask (api := api) .registerTransitGatewayMulticastGroupMembers input + +/-- Registers sources (network interfaces) with the specified transit gateway multicast group. -/ +def registerTransitGatewayMulticastGroupSources {ε : Type} (input : RegisterTransitGatewayMulticastGroupSourcesRequest) : Eff api ε (Except Empty RegisterTransitGatewayMulticastGroupSourcesResult) := + Eff.ask (api := api) .registerTransitGatewayMulticastGroupSources input + +/-- Rejects a request to assign billing of the available capacity of a shared Capacity Reservation to your account. -/ +def rejectCapacityReservationBillingOwnership {ε : Type} (input : RejectCapacityReservationBillingOwnershipRequest) : Eff api ε (Except Empty RejectCapacityReservationBillingOwnershipResult) := + Eff.ask (api := api) .rejectCapacityReservationBillingOwnership input + +/-- Rejects a Transit Gateway attachment request for a Client VPN endpoint. -/ +def rejectTransitGatewayClientVpnAttachment {ε : Type} (input : RejectTransitGatewayClientVpnAttachmentRequest) : Eff api ε (Except Empty RejectTransitGatewayClientVpnAttachmentResult) := + Eff.ask (api := api) .rejectTransitGatewayClientVpnAttachment input + +/-- Rejects a request to associate cross-account subnets with a transit gateway multicast domain. -/ +def rejectTransitGatewayMulticastDomainAssociations {ε : Type} (input : RejectTransitGatewayMulticastDomainAssociationsRequest) : Eff api ε (Except Empty RejectTransitGatewayMulticastDomainAssociationsResult) := + Eff.ask (api := api) .rejectTransitGatewayMulticastDomainAssociations input + +/-- Rejects a transit gateway peering attachment request. -/ +def rejectTransitGatewayPeeringAttachment {ε : Type} (input : RejectTransitGatewayPeeringAttachmentRequest) : Eff api ε (Except Empty RejectTransitGatewayPeeringAttachmentResult) := + Eff.ask (api := api) .rejectTransitGatewayPeeringAttachment input + +/-- Rejects a request to attach a VPC to a transit gateway. -/ +def rejectTransitGatewayVpcAttachment {ε : Type} (input : RejectTransitGatewayVpcAttachmentRequest) : Eff api ε (Except Empty RejectTransitGatewayVpcAttachmentResult) := + Eff.ask (api := api) .rejectTransitGatewayVpcAttachment input + +/-- Rejects VPC endpoint connection requests to your VPC endpoint service. -/ +def rejectVpcEndpointConnections {ε : Type} (input : RejectVpcEndpointConnectionsRequest) : Eff api ε (Except Empty RejectVpcEndpointConnectionsResult) := + Eff.ask (api := api) .rejectVpcEndpointConnections input + +/-- Rejects a VPC peering connection request. -/ +def rejectVpcPeeringConnection {ε : Type} (input : RejectVpcPeeringConnectionRequest) : Eff api ε (Except Empty RejectVpcPeeringConnectionResult) := + Eff.ask (api := api) .rejectVpcPeeringConnection input + +/-- Releases the specified Elastic IP address. -/ +def releaseAddress {ε : Type} (input : ReleaseAddressRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .releaseAddress input + +/-- When you no longer want to use an On-Demand Dedicated Host it can be released. -/ +def releaseHosts {ε : Type} (input : ReleaseHostsRequest) : Eff api ε (Except Empty ReleaseHostsResult) := + Eff.ask (api := api) .releaseHosts input + +/-- Release an allocation within an IPAM pool. -/ +def releaseIpamPoolAllocation {ε : Type} (input : ReleaseIpamPoolAllocationRequest) : Eff api ε (Except Empty ReleaseIpamPoolAllocationResult) := + Eff.ask (api := api) .releaseIpamPoolAllocation input + +/-- Replaces an IAM instance profile for the specified running instance. -/ +def replaceIamInstanceProfileAssociation {ε : Type} (input : ReplaceIamInstanceProfileAssociationRequest) : Eff api ε (Except Empty ReplaceIamInstanceProfileAssociationResult) := + Eff.ask (api := api) .replaceIamInstanceProfileAssociation input + +/-- Sets or replaces the criteria for Allowed AMIs. -/ +def replaceImageCriteriaInAllowedImagesSettings {ε : Type} (input : ReplaceImageCriteriaInAllowedImagesSettingsRequest) : Eff api ε (Except Empty ReplaceImageCriteriaInAllowedImagesSettingsResult) := + Eff.ask (api := api) .replaceImageCriteriaInAllowedImagesSettings input + +/-- Replaces or removes the instance type specification for an AMI. -/ +def replaceImageInstanceTypeSpecification {ε : Type} (input : ReplaceImageInstanceTypeSpecificationRequest) : Eff api ε (Except Empty ReplaceImageInstanceTypeSpecificationResult) := + Eff.ask (api := api) .replaceImageInstanceTypeSpecification input + +/-- Changes which network ACL a subnet is associated with. -/ +def replaceNetworkAclAssociation {ε : Type} (input : ReplaceNetworkAclAssociationRequest) : Eff api ε (Except Empty ReplaceNetworkAclAssociationResult) := + Eff.ask (api := api) .replaceNetworkAclAssociation input + +/-- Replaces an entry (rule) in a network ACL. -/ +def replaceNetworkAclEntry {ε : Type} (input : ReplaceNetworkAclEntryRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .replaceNetworkAclEntry input + +/-- Replaces an existing route within a route table in a VPC. -/ +def replaceRoute {ε : Type} (input : ReplaceRouteRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .replaceRoute input + +/-- Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. -/ +def replaceRouteTableAssociation {ε : Type} (input : ReplaceRouteTableAssociationRequest) : Eff api ε (Except Empty ReplaceRouteTableAssociationResult) := + Eff.ask (api := api) .replaceRouteTableAssociation input + +/-- Replaces the specified route in the specified transit gateway route table. -/ +def replaceTransitGatewayRoute {ε : Type} (input : ReplaceTransitGatewayRouteRequest) : Eff api ε (Except Empty ReplaceTransitGatewayRouteResult) := + Eff.ask (api := api) .replaceTransitGatewayRoute input + +/-- Trigger replacement of specified VPN tunnel. -/ +def replaceVpnTunnel {ε : Type} (input : ReplaceVpnTunnelRequest) : Eff api ε (Except Empty ReplaceVpnTunnelResult) := + Eff.ask (api := api) .replaceVpnTunnel input + +/-- Submits feedback about the status of an instance. -/ +def reportInstanceStatus {ε : Type} (input : ReportInstanceStatusRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .reportInstanceStatus input + +/-- Creates a Spot Fleet request. -/ +def requestSpotFleet {ε : Type} (input : RequestSpotFleetRequest) : Eff api ε (Except Empty RequestSpotFleetResponse) := + Eff.ask (api := api) .requestSpotFleet input + +/-- Creates a Spot Instance request. -/ +def requestSpotInstances {ε : Type} (input : RequestSpotInstancesRequest) : Eff api ε (Except Empty RequestSpotInstancesResult) := + Eff.ask (api := api) .requestSpotInstances input + +/-- Resets the attribute of the specified IP address. -/ +def resetAddressAttribute {ε : Type} (input : ResetAddressAttributeRequest) : Eff api ε (Except Empty ResetAddressAttributeResult) := + Eff.ask (api := api) .resetAddressAttribute input + +/-- Resets the default KMS key for EBS encryption for your account in this Region to the Amazon Web Services managed KMS key for EBS. -/ +def resetEbsDefaultKmsKeyId {ε : Type} (input : ResetEbsDefaultKmsKeyIdRequest) : Eff api ε (Except Empty ResetEbsDefaultKmsKeyIdResult) := + Eff.ask (api := api) .resetEbsDefaultKmsKeyId input + +/-- Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its default value. -/ +def resetFpgaImageAttribute {ε : Type} (input : ResetFpgaImageAttributeRequest) : Eff api ε (Except Empty ResetFpgaImageAttributeResult) := + Eff.ask (api := api) .resetFpgaImageAttribute input + +/-- Resets an attribute of an AMI to its default value. -/ +def resetImageAttribute {ε : Type} (input : ResetImageAttributeRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .resetImageAttribute input + +/-- Resets an attribute of an instance to its default value. -/ +def resetInstanceAttribute {ε : Type} (input : ResetInstanceAttributeRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .resetInstanceAttribute input + +/-- Resets a network interface attribute. -/ +def resetNetworkInterfaceAttribute {ε : Type} (input : ResetNetworkInterfaceAttributeRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .resetNetworkInterfaceAttribute input + +/-- Resets permission settings for the specified snapshot. -/ +def resetSnapshotAttribute {ε : Type} (input : ResetSnapshotAttributeRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .resetSnapshotAttribute input + +/-- This action is deprecated. -/ +def restoreAddressToClassic {ε : Type} (input : RestoreAddressToClassicRequest) : Eff api ε (Except Empty RestoreAddressToClassicResult) := + Eff.ask (api := api) .restoreAddressToClassic input + +/-- Restores an AMI from the Recycle Bin. -/ +def restoreImageFromRecycleBin {ε : Type} (input : RestoreImageFromRecycleBinRequest) : Eff api ε (Except Empty RestoreImageFromRecycleBinResult) := + Eff.ask (api := api) .restoreImageFromRecycleBin input + +/-- Restores the entries from a previous version of a managed prefix list to a new version of the prefix list. -/ +def restoreManagedPrefixListVersion {ε : Type} (input : RestoreManagedPrefixListVersionRequest) : Eff api ε (Except Empty RestoreManagedPrefixListVersionResult) := + Eff.ask (api := api) .restoreManagedPrefixListVersion input + +/-- Restores a snapshot from the Recycle Bin. -/ +def restoreSnapshotFromRecycleBin {ε : Type} (input : RestoreSnapshotFromRecycleBinRequest) : Eff api ε (Except Empty RestoreSnapshotFromRecycleBinResult) := + Eff.ask (api := api) .restoreSnapshotFromRecycleBin input + +/-- Restores an archived Amazon EBS snapshot for use temporarily or permanently, or modifies the restore period or restore type for a snapshot that was previously temporarily restored. -/ +def restoreSnapshotTier {ε : Type} (input : RestoreSnapshotTierRequest) : Eff api ε (Except Empty RestoreSnapshotTierResult) := + Eff.ask (api := api) .restoreSnapshotTier input + +/-- Restores a volume from the Recycle Bin. -/ +def restoreVolumeFromRecycleBin {ε : Type} (input : RestoreVolumeFromRecycleBinRequest) : Eff api ε (Except Empty RestoreVolumeFromRecycleBinResult) := + Eff.ask (api := api) .restoreVolumeFromRecycleBin input + +/-- Removes an ingress authorization rule from a Client VPN endpoint. -/ +def revokeClientVpnIngress {ε : Type} (input : RevokeClientVpnIngressRequest) : Eff api ε (Except Empty RevokeClientVpnIngressResult) := + Eff.ask (api := api) .revokeClientVpnIngress input + +/-- Removes the specified outbound (egress) rules from the specified security group. -/ +def revokeSecurityGroupEgress {ε : Type} (input : RevokeSecurityGroupEgressRequest) : Eff api ε (Except Empty RevokeSecurityGroupEgressResult) := + Eff.ask (api := api) .revokeSecurityGroupEgress input + +/-- Removes the specified inbound (ingress) rules from a security group. -/ +def revokeSecurityGroupIngress {ε : Type} (input : RevokeSecurityGroupIngressRequest) : Eff api ε (Except Empty RevokeSecurityGroupIngressResult) := + Eff.ask (api := api) .revokeSecurityGroupIngress input + +/-- Launches the specified number of instances using an AMI for which you have permissions. -/ +def runInstances {ε : Type} (input : RunInstancesRequest) : Eff api ε (Except Empty Reservation) := + Eff.ask (api := api) .runInstances input + +/-- Launches the specified Scheduled Instances. -/ +def runScheduledInstances {ε : Type} (input : RunScheduledInstancesRequest) : Eff api ε (Except Empty RunScheduledInstancesResult) := + Eff.ask (api := api) .runScheduledInstances input + +/-- Searches for routes in the specified local gateway route table. -/ +def searchLocalGatewayRoutes {ε : Type} (input : SearchLocalGatewayRoutesRequest) : Eff api ε (Except Empty SearchLocalGatewayRoutesResult) := + Eff.ask (api := api) .searchLocalGatewayRoutes input + +/-- Searches one or more transit gateway multicast groups and returns the group membership information. -/ +def searchTransitGatewayMulticastGroups {ε : Type} (input : SearchTransitGatewayMulticastGroupsRequest) : Eff api ε (Except Empty SearchTransitGatewayMulticastGroupsResult) := + Eff.ask (api := api) .searchTransitGatewayMulticastGroups input + +/-- Searches for routes in the specified transit gateway route table. -/ +def searchTransitGatewayRoutes {ε : Type} (input : SearchTransitGatewayRoutesRequest) : Eff api ε (Except Empty SearchTransitGatewayRoutesResult) := + Eff.ask (api := api) .searchTransitGatewayRoutes input + +/-- Sends a diagnostic interrupt to the specified Amazon EC2 instance to trigger a kernel panic (on Linux instances), or a blue screen / stop error (on Windows instances). -/ +def sendDiagnosticInterrupt {ε : Type} (input : SendDiagnosticInterruptRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .sendDiagnosticInterrupt input + +/-- Generates an account status report. -/ +def startDeclarativePoliciesReport {ε : Type} (input : StartDeclarativePoliciesReportRequest) : Eff api ε (Except Empty StartDeclarativePoliciesReportResult) := + Eff.ask (api := api) .startDeclarativePoliciesReport input + +/-- Starts an Amazon EBS-backed instance that you've previously stopped. -/ +def startInstances {ε : Type} (input : StartInstancesRequest) : Eff api ε (Except Empty StartInstancesResult) := + Eff.ask (api := api) .startInstances input + +/-- Starts analyzing the specified Network Access Scope. -/ +def startNetworkInsightsAccessScopeAnalysis {ε : Type} (input : StartNetworkInsightsAccessScopeAnalysisRequest) : Eff api ε (Except Empty StartNetworkInsightsAccessScopeAnalysisResult) := + Eff.ask (api := api) .startNetworkInsightsAccessScopeAnalysis input + +/-- Starts analyzing the specified path. -/ +def startNetworkInsightsAnalysis {ε : Type} (input : StartNetworkInsightsAnalysisRequest) : Eff api ε (Except Empty StartNetworkInsightsAnalysisResult) := + Eff.ask (api := api) .startNetworkInsightsAnalysis input + +/-- Initiates the verification process to prove that the service provider owns the private DNS name domain for the endpoint service. -/ +def startVpcEndpointServicePrivateDnsVerification {ε : Type} (input : StartVpcEndpointServicePrivateDnsVerificationRequest) : Eff api ε (Except Empty StartVpcEndpointServicePrivateDnsVerificationResult) := + Eff.ask (api := api) .startVpcEndpointServicePrivateDnsVerification input + +/-- Stops an Amazon EBS-backed instance. -/ +def stopInstances {ε : Type} (input : StopInstancesRequest) : Eff api ε (Except Empty StopInstancesResult) := + Eff.ask (api := api) .stopInstances input + +/-- Terminates active Client VPN endpoint connections. -/ +def terminateClientVpnConnections {ε : Type} (input : TerminateClientVpnConnectionsRequest) : Eff api ε (Except Empty TerminateClientVpnConnectionsResult) := + Eff.ask (api := api) .terminateClientVpnConnections input + +/-- Terminates (deletes) the specified instances. -/ +def terminateInstances {ε : Type} (input : TerminateInstancesRequest) : Eff api ε (Except Empty TerminateInstancesResult) := + Eff.ask (api := api) .terminateInstances input + +/-- Unassigns the specified IPv6 addresses or Prefix Delegation prefixes from a network interface. -/ +def unassignIpv6Addresses {ε : Type} (input : UnassignIpv6AddressesRequest) : Eff api ε (Except Empty UnassignIpv6AddressesResult) := + Eff.ask (api := api) .unassignIpv6Addresses input + +/-- Unassigns the specified secondary private IP addresses or IPv4 Prefix Delegation prefixes from a network interface. -/ +def unassignPrivateIpAddresses {ε : Type} (input : UnassignPrivateIpAddressesRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .unassignPrivateIpAddresses input + +/-- Unassigns secondary private IPv4 addresses from a private NAT gateway. -/ +def unassignPrivateNatGatewayAddress {ε : Type} (input : UnassignPrivateNatGatewayAddressRequest) : Eff api ε (Except Empty UnassignPrivateNatGatewayAddressResult) := + Eff.ask (api := api) .unassignPrivateNatGatewayAddress input + +/-- Unlocks a snapshot that is locked in governance mode or that is locked in compliance mode but still in the cooling-off period. -/ +def unlockSnapshot {ε : Type} (input : UnlockSnapshotRequest) : Eff api ε (Except Empty UnlockSnapshotResult) := + Eff.ask (api := api) .unlockSnapshot input + +/-- Disables detailed monitoring for a running instance. -/ +def unmonitorInstances {ε : Type} (input : UnmonitorInstancesRequest) : Eff api ε (Except Empty UnmonitorInstancesResult) := + Eff.ask (api := api) .unmonitorInstances input + +/-- Activates or deactivates tag keys for monitoring by EC2 Capacity Manager. -/ +def updateCapacityManagerMonitoredTagKeys {ε : Type} (input : UpdateCapacityManagerMonitoredTagKeysRequest) : Eff api ε (Except Empty UpdateCapacityManagerMonitoredTagKeysResult) := + Eff.ask (api := api) .updateCapacityManagerMonitoredTagKeys input + +/-- Updates the Organizations access setting for EC2 Capacity Manager. -/ +def updateCapacityManagerOrganizationsAccess {ε : Type} (input : UpdateCapacityManagerOrganizationsAccessRequest) : Eff api ε (Except Empty UpdateCapacityManagerOrganizationsAccessResult) := + Eff.ask (api := api) .updateCapacityManagerOrganizationsAccess input + +/-- Modifies the number of instances allocated to an interruptible reservation, allowing you to add more capacity or reclaim capacity to your source Capacity Reservation. -/ +def updateInterruptibleCapacityReservationAllocation {ε : Type} (input : UpdateInterruptibleCapacityReservationAllocationRequest) : Eff api ε (Except Empty UpdateInterruptibleCapacityReservationAllocationResult) := + Eff.ask (api := api) .updateInterruptibleCapacityReservationAllocation input + +/-- Updates the description of an egress (outbound) security group rule. -/ +def updateSecurityGroupRuleDescriptionsEgress {ε : Type} (input : UpdateSecurityGroupRuleDescriptionsEgressRequest) : Eff api ε (Except Empty UpdateSecurityGroupRuleDescriptionsEgressResult) := + Eff.ask (api := api) .updateSecurityGroupRuleDescriptionsEgress input + +/-- Updates the description of an ingress (inbound) security group rule. -/ +def updateSecurityGroupRuleDescriptionsIngress {ε : Type} (input : UpdateSecurityGroupRuleDescriptionsIngressRequest) : Eff api ε (Except Empty UpdateSecurityGroupRuleDescriptionsIngressResult) := + Eff.ask (api := api) .updateSecurityGroupRuleDescriptionsIngress input + +/-- Validates whether the specified security groups can be associated with a single network interface. -/ +def validateSecurityGroupQuotasForInterface {ε : Type} (input : ValidateSecurityGroupQuotasForInterfaceRequest) : Eff api ε (Except Empty ValidateSecurityGroupQuotasForInterfaceResult) := + Eff.ask (api := api) .validateSecurityGroupQuotasForInterface input + +/-- Stops advertising an address range that is provisioned as an address pool. -/ +def withdrawByoipCidr {ε : Type} (input : WithdrawByoipCidrRequest) : Eff api ε (Except Empty WithdrawByoipCidrResult) := + Eff.ask (api := api) .withdrawByoipCidr input + +end Distilled.AWS.EC2 diff --git a/lean/Distilled/AWS/Services/Lambda.lean b/lean/Distilled/AWS/Services/Lambda.lean new file mode 100644 index 0000000000..2f52600043 --- /dev/null +++ b/lean/Distilled/AWS/Services/Lambda.lean @@ -0,0 +1,12906 @@ +-- Generated by distilled-gen from lambda-2015-03-31.json. Do not edit. +import Distilled.Protocol + +namespace Distilled.AWS.Lambda +open Lean Distilled + +set_option linter.unusedVariables false +set_option maxRecDepth 4096 +set_option maxHeartbeats 0 + +/-- The accelerator resource settings for a Lambda execution environment, including the amount of accelerator memory to allocate. -/ +structure AcceleratorConfig where + /-- The minimum amount of memory (in GB) of each accelerator device exposed to the execution environment. -/ + acceleratorMemorySize : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape AcceleratorConfig where + schema := .struct "AcceleratorConfig" [({ name := "AcceleratorMemorySize", required := true }, .int)] + toValue x := record [put "AcceleratorMemorySize" x.acceleratorMemorySize] + ofValue v := do + let acceleratorMemorySize ← v.req "AcceleratorMemorySize" + return { acceleratorMemorySize } + +/-- Limits that are related to concurrency and storage. -/ +structure AccountLimit where + /-- The maximum size of a function's deployment package and layers when they're extracted. -/ + codeSizeUnzipped : Option Int := none + /-- The maximum size of a deployment package when it's uploaded directly to Lambda. -/ + codeSizeZipped : Option Int := none + /-- The maximum number of simultaneous function executions. -/ + concurrentExecutions : Option Int := none + /-- The amount of storage space that you can use for all deployment packages and layer archives. -/ + totalCodeSize : Option Int := none + /-- The maximum number of simultaneous function executions, minus the capacity that's reserved for individual functions with PutFunctionConcurrency . -/ + unreservedConcurrentExecutions : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AccountLimit where + schema := .struct "AccountLimit" [({ name := "CodeSizeUnzipped" }, .int), + ({ name := "CodeSizeZipped" }, .int), + ({ name := "ConcurrentExecutions" }, .int), + ({ name := "TotalCodeSize" }, .int), + ({ name := "UnreservedConcurrentExecutions" }, .int)] + toValue x := record [putOpt "CodeSizeUnzipped" x.codeSizeUnzipped, putOpt "CodeSizeZipped" x.codeSizeZipped, putOpt "ConcurrentExecutions" x.concurrentExecutions, putOpt "TotalCodeSize" x.totalCodeSize, putOpt "UnreservedConcurrentExecutions" x.unreservedConcurrentExecutions] + ofValue v := do + let codeSizeUnzipped ← v.opt "CodeSizeUnzipped" + let codeSizeZipped ← v.opt "CodeSizeZipped" + let concurrentExecutions ← v.opt "ConcurrentExecutions" + let totalCodeSize ← v.opt "TotalCodeSize" + let unreservedConcurrentExecutions ← v.opt "UnreservedConcurrentExecutions" + return { codeSizeUnzipped, codeSizeZipped, concurrentExecutions, totalCodeSize, unreservedConcurrentExecutions } + +/-- The number of functions and amount of storage in use. -/ +structure AccountUsage where + /-- The number of Lambda functions. -/ + functionCount : Option Int := none + /-- The amount of storage space, in bytes, that's being used by deployment packages and layer archives. -/ + totalCodeSize : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AccountUsage where + schema := .struct "AccountUsage" [({ name := "FunctionCount" }, .int), + ({ name := "TotalCodeSize" }, .int)] + toValue x := record [putOpt "FunctionCount" x.functionCount, putOpt "TotalCodeSize" x.totalCodeSize] + ofValue v := do + let functionCount ← v.opt "FunctionCount" + let totalCodeSize ← v.opt "TotalCodeSize" + return { functionCount, totalCodeSize } + +structure AddLayerVersionPermissionRequest where + /-- The API action that grants access to the layer. -/ + action : String + /-- The name or Amazon Resource Name (ARN) of the layer. -/ + layerName : String + /-- With the principal set to * , grant permission to all accounts in the specified organization. -/ + organizationId : Option String := none + /-- An account ID, or * to grant layer usage permission to all accounts in an organization, or all Amazon Web Services accounts (if organizationId is not specified). -/ + principal : String + /-- Only update the policy if the revision ID matches the ID specified. -/ + revisionId : Option String := none + /-- An identifier that distinguishes the policy from others on the same layer version. -/ + statementId : String + /-- The version number. -/ + versionNumber : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape AddLayerVersionPermissionRequest where + schema := .struct "AddLayerVersionPermissionRequest" [({ name := "Action", required := true }, .string), + ({ name := "LayerName", required := true, location := .label }, .string), + ({ name := "OrganizationId" }, .string), + ({ name := "Principal", required := true }, .string), + ({ name := "RevisionId", location := .query "RevisionId" }, .string), + ({ name := "StatementId", required := true }, .string), + ({ name := "VersionNumber", required := true, location := .label }, .int)] + toValue x := record [put "Action" x.action, put "LayerName" x.layerName, putOpt "OrganizationId" x.organizationId, put "Principal" x.principal, putOpt "RevisionId" x.revisionId, put "StatementId" x.statementId, put "VersionNumber" x.versionNumber] + ofValue v := do + let action ← v.req "Action" + let layerName ← v.req "LayerName" + let organizationId ← v.opt "OrganizationId" + let principal ← v.req "Principal" + let revisionId ← v.opt "RevisionId" + let statementId ← v.req "StatementId" + let versionNumber ← v.req "VersionNumber" + return { action, layerName, organizationId, principal, revisionId, statementId, versionNumber } + +structure AddLayerVersionPermissionResponse where + /-- A unique identifier for the current revision of the policy. -/ + revisionId : Option String := none + /-- The permission statement. -/ + statement : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AddLayerVersionPermissionResponse where + schema := .struct "AddLayerVersionPermissionResponse" [({ name := "RevisionId" }, .string), + ({ name := "Statement" }, .string)] + toValue x := record [putOpt "RevisionId" x.revisionId, putOpt "Statement" x.statement] + ofValue v := do + let revisionId ← v.opt "RevisionId" + let statement ← v.opt "Statement" + return { revisionId, statement } + +structure AddPermissionResponse where + /-- The permission statement that's added to the function policy. -/ + statement : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AddPermissionResponse where + schema := .struct "AddPermissionResponse" [({ name := "Statement" }, .string)] + toValue x := record [putOpt "Statement" x.statement] + ofValue v := do + let statement ← v.opt "Statement" + return { statement } + +/-- Lambda couldn't create the alias because your Amazon Web Services account has exceeded the maximum number of aliases allowed per Lambda function. -/ +structure AliasLimitExceededException where + /-- The exception type. -/ + type : Option String := none + /-- The exception message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AliasLimitExceededException where + schema := .struct "AliasLimitExceededException" [({ name := "Type" }, .string), + ({ name := "message" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "message" x.message] + ofValue v := do + let type ← v.opt "Type" + let message ← v.opt "message" + return { type, message } + +/-- The traffic-shifting configuration of a Lambda function alias. -/ +structure AliasRoutingConfiguration where + /-- The second version, and the percentage of traffic that's routed to it. -/ + additionalVersionWeights : Option (Dict String JsonNumber) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AliasRoutingConfiguration where + schema := .struct "AliasRoutingConfiguration" [({ name := "AdditionalVersionWeights" }, (.map .string .number "key" "value"))] + toValue x := record [putOpt "AdditionalVersionWeights" x.additionalVersionWeights] + ofValue v := do + let additionalVersionWeights ← v.opt "AdditionalVersionWeights" + return { additionalVersionWeights } + +/-- List of signing profiles that can sign a code package. -/ +structure AllowedPublishers where + /-- The Amazon Resource Name (ARN) for each of the signing profiles. -/ + signingProfileVersionArns : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape AllowedPublishers where + schema := .struct "AllowedPublishers" [({ name := "SigningProfileVersionArns", required := true }, (.list .string "member"))] + toValue x := record [put "SigningProfileVersionArns" x.signingProfileVersionArns] + ofValue v := do + let signingProfileVersionArns ← v.req "SigningProfileVersionArns" + return { signingProfileVersionArns } + +inductive ApplicationLogLevel where + | debug + | error + | fatal + | info + | trace + | warn +deriving DecidableEq, Repr, Inhabited + +def ApplicationLogLevel.wire : ApplicationLogLevel → String + | .debug => "DEBUG" + | .error => "ERROR" + | .fatal => "FATAL" + | .info => "INFO" + | .trace => "TRACE" + | .warn => "WARN" + +def ApplicationLogLevel.wireValues : List (String × ApplicationLogLevel) := [ + ("DEBUG", .debug), + ("ERROR", .error), + ("FATAL", .fatal), + ("INFO", .info), + ("TRACE", .trace), + ("WARN", .warn)] + +def ApplicationLogLevel.ofWire (text : String) : Except String ApplicationLogLevel := + match List.find? (·.1 == text) ApplicationLogLevel.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ApplicationLogLevel has no value {text}" + +instance : Key ApplicationLogLevel := ⟨ApplicationLogLevel.wire, ApplicationLogLevel.ofWire⟩ + +instance : Shape ApplicationLogLevel where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ApplicationLogLevel.ofWire text + | _ => .error "expected a string" + +inductive Architecture where + | arm64 + | x86_64 +deriving DecidableEq, Repr, Inhabited + +def Architecture.wire : Architecture → String + | .arm64 => "arm64" + | .x86_64 => "x86_64" + +def Architecture.wireValues : List (String × Architecture) := [ + ("arm64", .arm64), + ("x86_64", .x86_64)] + +def Architecture.ofWire (text : String) : Except String Architecture := + match List.find? (·.1 == text) Architecture.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Architecture has no value {text}" + +instance : Key Architecture := ⟨Architecture.wire, Architecture.ofWire⟩ + +instance : Shape Architecture where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Architecture.ofWire text + | _ => .error "expected a string" + +/-- Configuration options for callback operations in durable executions, including timeout settings and retry behavior. -/ +structure CallbackOptions where + /-- The heartbeat timeout for the callback operation, in seconds. -/ + heartbeatTimeoutSeconds : Option Int := none + /-- The timeout for the callback operation in seconds. -/ + timeoutSeconds : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CallbackOptions where + schema := .struct "CallbackOptions" [({ name := "HeartbeatTimeoutSeconds" }, .int), + ({ name := "TimeoutSeconds" }, .int)] + toValue x := record [putOpt "HeartbeatTimeoutSeconds" x.heartbeatTimeoutSeconds, putOpt "TimeoutSeconds" x.timeoutSeconds] + ofValue v := do + let heartbeatTimeoutSeconds ← v.opt "HeartbeatTimeoutSeconds" + let timeoutSeconds ← v.opt "TimeoutSeconds" + return { heartbeatTimeoutSeconds, timeoutSeconds } + +/-- Contains details about a callback operation that has started, including timing information and callback metadata. -/ +structure CallbackStartedDetails where + /-- The callback ID. -/ + callbackId : String + /-- The heartbeat timeout value, in seconds. -/ + heartbeatTimeout : Option Int := none + /-- The timeout value, in seconds. -/ + timeout : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CallbackStartedDetails where + schema := .struct "CallbackStartedDetails" [({ name := "CallbackId", required := true }, .string), + ({ name := "HeartbeatTimeout" }, .int), + ({ name := "Timeout" }, .int)] + toValue x := record [put "CallbackId" x.callbackId, putOpt "HeartbeatTimeout" x.heartbeatTimeout, putOpt "Timeout" x.timeout] + ofValue v := do + let callbackId ← v.req "CallbackId" + let heartbeatTimeout ← v.opt "HeartbeatTimeout" + let timeout ← v.opt "Timeout" + return { callbackId, heartbeatTimeout, timeout } + +/-- The callback ID token has either expired or the callback associated with the token has already been closed. -/ +structure CallbackTimeoutException where + message : Option String := none + /-- The exception type. -/ + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CallbackTimeoutException where + schema := .struct "CallbackTimeoutException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- The maximum number of capacity providers for your account has been exceeded. -/ +structure CapacityProviderLimitExceededException where + /-- The exception type. -/ + type : Option String := none + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityProviderLimitExceededException where + schema := .struct "CapacityProviderLimitExceededException" [({ name := "Type" }, .string), + ({ name := "message" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "message" x.message] + ofValue v := do + let type ← v.opt "Type" + let message ← v.opt "message" + return { type, message } + +/-- Configuration that specifies the permissions required for the capacity provider to manage compute resources. -/ +structure CapacityProviderPermissionsConfig where + /-- The ARN of the IAM role that the capacity provider uses to manage compute instances and other Amazon Web Services resources. -/ + capacityProviderOperatorRoleArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityProviderPermissionsConfig where + schema := .struct "CapacityProviderPermissionsConfig" [({ name := "CapacityProviderOperatorRoleArn", required := true }, .string)] + toValue x := record [put "CapacityProviderOperatorRoleArn" x.capacityProviderOperatorRoleArn] + ofValue v := do + let capacityProviderOperatorRoleArn ← v.req "CapacityProviderOperatorRoleArn" + return { capacityProviderOperatorRoleArn } + +inductive CapacityProviderPredefinedMetricType where + | lambdaCapacityProviderAverageCPUUtilization + | lambdaCapacityProviderAverageGPUUtilization +deriving DecidableEq, Repr, Inhabited + +def CapacityProviderPredefinedMetricType.wire : CapacityProviderPredefinedMetricType → String + | .lambdaCapacityProviderAverageCPUUtilization => "LambdaCapacityProviderAverageCPUUtilization" + | .lambdaCapacityProviderAverageGPUUtilization => "LambdaCapacityProviderAverageGPUUtilization" + +def CapacityProviderPredefinedMetricType.wireValues : List (String × CapacityProviderPredefinedMetricType) := [ + ("LambdaCapacityProviderAverageCPUUtilization", .lambdaCapacityProviderAverageCPUUtilization), + ("LambdaCapacityProviderAverageGPUUtilization", .lambdaCapacityProviderAverageGPUUtilization)] + +def CapacityProviderPredefinedMetricType.ofWire (text : String) : Except String CapacityProviderPredefinedMetricType := + match List.find? (·.1 == text) CapacityProviderPredefinedMetricType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityProviderPredefinedMetricType has no value {text}" + +instance : Key CapacityProviderPredefinedMetricType := ⟨CapacityProviderPredefinedMetricType.wire, CapacityProviderPredefinedMetricType.ofWire⟩ + +instance : Shape CapacityProviderPredefinedMetricType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityProviderPredefinedMetricType.ofWire text + | _ => .error "expected a string" + +inductive CapacityProviderScalingMode where + | auto + | manual +deriving DecidableEq, Repr, Inhabited + +def CapacityProviderScalingMode.wire : CapacityProviderScalingMode → String + | .auto => "Auto" + | .manual => "Manual" + +def CapacityProviderScalingMode.wireValues : List (String × CapacityProviderScalingMode) := [ + ("Auto", .auto), + ("Manual", .manual)] + +def CapacityProviderScalingMode.ofWire (text : String) : Except String CapacityProviderScalingMode := + match List.find? (·.1 == text) CapacityProviderScalingMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityProviderScalingMode has no value {text}" + +instance : Key CapacityProviderScalingMode := ⟨CapacityProviderScalingMode.wire, CapacityProviderScalingMode.ofWire⟩ + +instance : Shape CapacityProviderScalingMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityProviderScalingMode.ofWire text + | _ => .error "expected a string" + +inductive CapacityProviderState where + | active + | deleting + | failed + | pending +deriving DecidableEq, Repr, Inhabited + +def CapacityProviderState.wire : CapacityProviderState → String + | .active => "Active" + | .deleting => "Deleting" + | .failed => "Failed" + | .pending => "Pending" + +def CapacityProviderState.wireValues : List (String × CapacityProviderState) := [ + ("Active", .active), + ("Deleting", .deleting), + ("Failed", .failed), + ("Pending", .pending)] + +def CapacityProviderState.ofWire (text : String) : Except String CapacityProviderState := + match List.find? (·.1 == text) CapacityProviderState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CapacityProviderState has no value {text}" + +instance : Key CapacityProviderState := ⟨CapacityProviderState.wire, CapacityProviderState.ofWire⟩ + +instance : Shape CapacityProviderState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CapacityProviderState.ofWire text + | _ => .error "expected a string" + +/-- VPC configuration that specifies the network settings for compute instances managed by the capacity provider. -/ +structure CapacityProviderVpcConfig where + /-- A list of security group IDs that control network access for compute instances managed by the capacity provider. -/ + securityGroupIds : (List String) + /-- A list of subnet IDs where the capacity provider launches compute instances. -/ + subnetIds : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityProviderVpcConfig where + schema := .struct "CapacityProviderVpcConfig" [({ name := "SecurityGroupIds", required := true }, (.list .string "member")), + ({ name := "SubnetIds", required := true }, (.list .string "member"))] + toValue x := record [put "SecurityGroupIds" x.securityGroupIds, put "SubnetIds" x.subnetIds] + ofValue v := do + let securityGroupIds ← v.req "SecurityGroupIds" + let subnetIds ← v.req "SubnetIds" + return { securityGroupIds, subnetIds } + +/-- Configuration options for chained function invocations in durable executions, including retry settings and timeout configuration. -/ +structure ChainedInvokeOptions where + /-- The name or ARN of the Lambda function to invoke. -/ + functionName : String + /-- The tenant identifier for the chained invocation. -/ + tenantId : Option String := none + /-- The X-Ray trace header to use when starting the chained invocation. -/ + xAmznTraceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ChainedInvokeOptions where + schema := .struct "ChainedInvokeOptions" [({ name := "FunctionName", required := true }, .string), + ({ name := "TenantId" }, .string), + ({ name := "XAmznTraceId" }, .string)] + toValue x := record [put "FunctionName" x.functionName, putOpt "TenantId" x.tenantId, putOpt "XAmznTraceId" x.xAmznTraceId] + ofValue v := do + let functionName ← v.req "FunctionName" + let tenantId ← v.opt "TenantId" + let xAmznTraceId ← v.opt "XAmznTraceId" + return { functionName, tenantId, xAmznTraceId } + +/-- The Lambda function couldn't be invoked because its code artifact user has been deleted. -/ +structure CodeArtifactUserDeletedException where + /-- The exception type. -/ + type : Option String := none + /-- The exception message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CodeArtifactUserDeletedException where + schema := .struct "CodeArtifactUserDeletedException" [({ name := "Type" }, .string), + ({ name := "message" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "message" x.message] + ofValue v := do + let type ← v.opt "Type" + let message ← v.opt "message" + return { type, message } + +/-- The Lambda function couldn't be invoked because provisioning of its code artifact user failed. -/ +structure CodeArtifactUserFailedException where + /-- The exception type. -/ + type : Option String := none + /-- The exception message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CodeArtifactUserFailedException where + schema := .struct "CodeArtifactUserFailedException" [({ name := "Type" }, .string), + ({ name := "message" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "message" x.message] + ofValue v := do + let type ← v.opt "Type" + let message ← v.opt "message" + return { type, message } + +/-- The Lambda function couldn't be invoked because its code artifact user is still being provisioned. -/ +structure CodeArtifactUserPendingException where + /-- The exception type. -/ + type : Option String := none + /-- The exception message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CodeArtifactUserPendingException where + schema := .struct "CodeArtifactUserPendingException" [({ name := "Type" }, .string), + ({ name := "message" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "message" x.message] + ofValue v := do + let type ← v.opt "Type" + let message ← v.opt "message" + return { type, message } + +/-- The specified code signing configuration does not exist. -/ +structure CodeSigningConfigNotFoundException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CodeSigningConfigNotFoundException where + schema := .struct "CodeSigningConfigNotFoundException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +inductive CodeSigningPolicy where + | enforce + | warn +deriving DecidableEq, Repr, Inhabited + +def CodeSigningPolicy.wire : CodeSigningPolicy → String + | .enforce => "Enforce" + | .warn => "Warn" + +def CodeSigningPolicy.wireValues : List (String × CodeSigningPolicy) := [ + ("Enforce", .enforce), + ("Warn", .warn)] + +def CodeSigningPolicy.ofWire (text : String) : Except String CodeSigningPolicy := + match List.find? (·.1 == text) CodeSigningPolicy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CodeSigningPolicy has no value {text}" + +instance : Key CodeSigningPolicy := ⟨CodeSigningPolicy.wire, CodeSigningPolicy.ofWire⟩ + +instance : Shape CodeSigningPolicy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CodeSigningPolicy.ofWire text + | _ => .error "expected a string" + +/-- Your Amazon Web Services account has exceeded its maximum total code size. -/ +structure CodeStorageExceededException where + /-- The exception type. -/ + type : Option String := none + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CodeStorageExceededException where + schema := .struct "CodeStorageExceededException" [({ name := "Type" }, .string), + ({ name := "message" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "message" x.message] + ofValue v := do + let type ← v.opt "Type" + let message ← v.opt "message" + return { type, message } + +/-- The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy is set to ENFORCE. -/ +structure CodeVerificationFailedException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CodeVerificationFailedException where + schema := .struct "CodeVerificationFailedException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +structure Concurrency where + /-- The number of concurrent executions that are reserved for this function. -/ + reservedConcurrentExecutions : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Concurrency where + schema := .struct "Concurrency" [({ name := "ReservedConcurrentExecutions" }, .int)] + toValue x := record [putOpt "ReservedConcurrentExecutions" x.reservedConcurrentExecutions] + ofValue v := do + let reservedConcurrentExecutions ← v.opt "ReservedConcurrentExecutions" + return { reservedConcurrentExecutions } + +/-- Configuration options for a durable execution context. -/ +structure ContextOptions where + /-- Whether the state data of children of the completed context should be included in the invoke payload and GetDurableExecutionState response. -/ + replayChildren : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ContextOptions where + schema := .struct "ContextOptions" [({ name := "ReplayChildren" }, .bool)] + toValue x := record [putOpt "ReplayChildren" x.replayChildren] + ofValue v := do + let replayChildren ← v.opt "ReplayChildren" + return { replayChildren } + +/-- Details about a context that has started. -/ +structure ContextStartedDetails where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape ContextStartedDetails where + schema := .struct "ContextStartedDetails" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- The cross-origin resource sharing (CORS) settings for your Lambda function URL. -/ +structure Cors where + /-- Whether to allow cookies or other credentials in requests to your function URL. -/ + allowCredentials : Option Bool := none + /-- The HTTP headers that origins can include in requests to your function URL. -/ + allowHeaders : Option (List String) := none + /-- The HTTP methods that are allowed when calling your function URL. -/ + allowMethods : Option (List String) := none + /-- The origins that can access your function URL. -/ + allowOrigins : Option (List String) := none + /-- The HTTP headers in your function response that you want to expose to origins that call your function URL. -/ + exposeHeaders : Option (List String) := none + /-- The maximum amount of time, in seconds, that web browsers can cache results of a preflight request. -/ + maxAge : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Cors where + schema := .struct "Cors" [({ name := "AllowCredentials" }, .bool), + ({ name := "AllowHeaders" }, (.list .string "member")), + ({ name := "AllowMethods" }, (.list .string "member")), + ({ name := "AllowOrigins" }, (.list .string "member")), + ({ name := "ExposeHeaders" }, (.list .string "member")), + ({ name := "MaxAge" }, .int)] + toValue x := record [putOpt "AllowCredentials" x.allowCredentials, putOpt "AllowHeaders" x.allowHeaders, putOpt "AllowMethods" x.allowMethods, putOpt "AllowOrigins" x.allowOrigins, putOpt "ExposeHeaders" x.exposeHeaders, putOpt "MaxAge" x.maxAge] + ofValue v := do + let allowCredentials ← v.opt "AllowCredentials" + let allowHeaders ← v.opt "AllowHeaders" + let allowMethods ← v.opt "AllowMethods" + let allowOrigins ← v.opt "AllowOrigins" + let exposeHeaders ← v.opt "ExposeHeaders" + let maxAge ← v.opt "MaxAge" + return { allowCredentials, allowHeaders, allowMethods, allowOrigins, exposeHeaders, maxAge } + +/-- The dead-letter queue for failed asynchronous invocations. -/ +structure DeadLetterConfig where + /-- The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic. -/ + targetArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeadLetterConfig where + schema := .struct "DeadLetterConfig" [({ name := "TargetArn" }, .string)] + toValue x := record [putOpt "TargetArn" x.targetArn] + ofValue v := do + let targetArn ← v.opt "TargetArn" + return { targetArn } + +structure DeleteAliasRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- The name of the alias. -/ + name : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteAliasRequest where + schema := .struct "DeleteAliasRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Name", required := true, location := .label }, .string)] + toValue x := record [put "FunctionName" x.functionName, put "Name" x.name] + ofValue v := do + let functionName ← v.req "FunctionName" + let name ← v.req "Name" + return { functionName, name } + +structure DeleteCapacityProviderRequest where + /-- The name of the capacity provider to delete. -/ + capacityProviderName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteCapacityProviderRequest where + schema := .struct "DeleteCapacityProviderRequest" [({ name := "CapacityProviderName", required := true, location := .label }, .string)] + toValue x := record [put "CapacityProviderName" x.capacityProviderName] + ofValue v := do + let capacityProviderName ← v.req "CapacityProviderName" + return { capacityProviderName } + +structure DeleteCodeSigningConfigRequest where + /-- The The Amazon Resource Name (ARN) of the code signing configuration. -/ + codeSigningConfigArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteCodeSigningConfigRequest where + schema := .struct "DeleteCodeSigningConfigRequest" [({ name := "CodeSigningConfigArn", required := true, location := .label }, .string)] + toValue x := record [put "CodeSigningConfigArn" x.codeSigningConfigArn] + ofValue v := do + let codeSigningConfigArn ← v.req "CodeSigningConfigArn" + return { codeSigningConfigArn } + +structure DeleteCodeSigningConfigResponse where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteCodeSigningConfigResponse where + schema := .struct "DeleteCodeSigningConfigResponse" [] + toValue _ := record [] + ofValue _ := do + return { } + +structure DeleteDurableExecutionRequest where + /-- The Amazon Resource Name (ARN) of the durable execution. -/ + durableExecutionArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteDurableExecutionRequest where + schema := .struct "DeleteDurableExecutionRequest" [({ name := "DurableExecutionArn", required := true, location := .label }, .string)] + toValue x := record [put "DurableExecutionArn" x.durableExecutionArn] + ofValue v := do + let durableExecutionArn ← v.req "DurableExecutionArn" + return { durableExecutionArn } + +structure DeleteDurableExecutionResponse where + /-- The timestamp when Lambda accepted the deletion request (ISO 8601 format). -/ + deletionRequestTimestamp : Timestamp +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteDurableExecutionResponse where + schema := .struct "DeleteDurableExecutionResponse" [({ name := "DeletionRequestTimestamp", required := true }, (.time none))] + toValue x := record [put "DeletionRequestTimestamp" x.deletionRequestTimestamp] + ofValue v := do + let deletionRequestTimestamp ← v.req "DeletionRequestTimestamp" + return { deletionRequestTimestamp } + +structure DeleteEventSourceMappingRequest where + /-- The identifier of the event source mapping. -/ + uuid : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteEventSourceMappingRequest where + schema := .struct "DeleteEventSourceMappingRequest" [({ name := "UUID", required := true, location := .label }, .string)] + toValue x := record [put "UUID" x.uuid] + ofValue v := do + let uuid ← v.req "UUID" + return { uuid } + +structure DeleteFunctionCodeSigningConfigRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteFunctionCodeSigningConfigRequest where + schema := .struct "DeleteFunctionCodeSigningConfigRequest" [({ name := "FunctionName", required := true, location := .label }, .string)] + toValue x := record [put "FunctionName" x.functionName] + ofValue v := do + let functionName ← v.req "FunctionName" + return { functionName } + +structure DeleteFunctionConcurrencyRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteFunctionConcurrencyRequest where + schema := .struct "DeleteFunctionConcurrencyRequest" [({ name := "FunctionName", required := true, location := .label }, .string)] + toValue x := record [put "FunctionName" x.functionName] + ofValue v := do + let functionName ← v.req "FunctionName" + return { functionName } + +structure DeleteFunctionEventInvokeConfigRequest where + /-- The name or ARN of the Lambda function, version, or alias. -/ + functionName : String + /-- A version number or alias name. -/ + qualifier : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteFunctionEventInvokeConfigRequest where + schema := .struct "DeleteFunctionEventInvokeConfigRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Qualifier", location := .query "Qualifier" }, .string)] + toValue x := record [put "FunctionName" x.functionName, putOpt "Qualifier" x.qualifier] + ofValue v := do + let functionName ← v.req "FunctionName" + let qualifier ← v.opt "Qualifier" + return { functionName, qualifier } + +structure DeleteFunctionRequest where + /-- The name or ARN of the Lambda function or version. -/ + functionName : String + /-- Specify a version to delete. -/ + qualifier : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteFunctionRequest where + schema := .struct "DeleteFunctionRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Qualifier", location := .query "Qualifier" }, .string)] + toValue x := record [put "FunctionName" x.functionName, putOpt "Qualifier" x.qualifier] + ofValue v := do + let functionName ← v.req "FunctionName" + let qualifier ← v.opt "Qualifier" + return { functionName, qualifier } + +structure DeleteFunctionResponse where + /-- The HTTP status code returned by the operation. -/ + statusCode : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteFunctionResponse where + schema := .struct "DeleteFunctionResponse" [({ name := "StatusCode", location := .status }, .int)] + toValue x := record [putOpt "StatusCode" x.statusCode] + ofValue v := do + let statusCode ← v.opt "StatusCode" + return { statusCode } + +structure DeleteFunctionUrlConfigRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- The alias name. -/ + qualifier : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteFunctionUrlConfigRequest where + schema := .struct "DeleteFunctionUrlConfigRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Qualifier", location := .query "Qualifier" }, .string)] + toValue x := record [put "FunctionName" x.functionName, putOpt "Qualifier" x.qualifier] + ofValue v := do + let functionName ← v.req "FunctionName" + let qualifier ← v.opt "Qualifier" + return { functionName, qualifier } + +structure DeleteLayerVersionRequest where + /-- The name or Amazon Resource Name (ARN) of the layer. -/ + layerName : String + /-- The version number. -/ + versionNumber : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteLayerVersionRequest where + schema := .struct "DeleteLayerVersionRequest" [({ name := "LayerName", required := true, location := .label }, .string), + ({ name := "VersionNumber", required := true, location := .label }, .int)] + toValue x := record [put "LayerName" x.layerName, put "VersionNumber" x.versionNumber] + ofValue v := do + let layerName ← v.req "LayerName" + let versionNumber ← v.req "VersionNumber" + return { layerName, versionNumber } + +structure DeleteProvisionedConcurrencyConfigRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- The version number or alias name. -/ + qualifier : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteProvisionedConcurrencyConfigRequest where + schema := .struct "DeleteProvisionedConcurrencyConfigRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Qualifier", required := true, location := .query "Qualifier" }, .string)] + toValue x := record [put "FunctionName" x.functionName, put "Qualifier" x.qualifier] + ofValue v := do + let functionName ← v.req "FunctionName" + let qualifier ← v.req "Qualifier" + return { functionName, qualifier } + +structure DeleteResourcePolicyRequest where + /-- The Amazon Resource Name (ARN) of the Lambda resource you want to delete the policy from. -/ + resourceArn : String + /-- The revision ID that the existing policy must match for the deletion to proceed. -/ + revisionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteResourcePolicyRequest where + schema := .struct "DeleteResourcePolicyRequest" [({ name := "ResourceArn", required := true, location := .label }, .string), + ({ name := "RevisionId", location := .query "RevisionId" }, .string)] + toValue x := record [put "ResourceArn" x.resourceArn, putOpt "RevisionId" x.revisionId] + ofValue v := do + let resourceArn ← v.req "ResourceArn" + let revisionId ← v.opt "RevisionId" + return { resourceArn, revisionId } + +inductive DirectS3Read where + | auto + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def DirectS3Read.wire : DirectS3Read → String + | .auto => "AUTO" + | .disabled => "DISABLED" + | .enabled => "ENABLED" + +def DirectS3Read.wireValues : List (String × DirectS3Read) := [ + ("AUTO", .auto), + ("DISABLED", .disabled), + ("ENABLED", .enabled)] + +def DirectS3Read.ofWire (text : String) : Except String DirectS3Read := + match List.find? (·.1 == text) DirectS3Read.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DirectS3Read has no value {text}" + +instance : Key DirectS3Read := ⟨DirectS3Read.wire, DirectS3Read.ofWire⟩ + +instance : Shape DirectS3Read where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DirectS3Read.ofWire text + | _ => .error "expected a string" + +/-- Configuration settings for durable functions , including execution timeout, retention period for execution history, and an optional ARN of the Key Management Service (KMS) customer managed key that is used to encrypt your durable execution' -/ +structure DurableConfig where + /-- The maximum time (in seconds) that a durable execution can run before timing out. -/ + executionTimeout : Option Int := none + /-- The ARN of the Key Management Service (KMS) customer managed key that is used to encrypt your durable execution's payload data, including input, output, and error payloads. -/ + kmsKeyArn : Option String := none + /-- The number of days to retain execution history after a durable execution completes. -/ + retentionPeriodInDays : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DurableConfig where + schema := .struct "DurableConfig" [({ name := "ExecutionTimeout" }, .int), + ({ name := "KMSKeyArn" }, .string), + ({ name := "RetentionPeriodInDays" }, .int)] + toValue x := record [putOpt "ExecutionTimeout" x.executionTimeout, putOpt "KMSKeyArn" x.kmsKeyArn, putOpt "RetentionPeriodInDays" x.retentionPeriodInDays] + ofValue v := do + let executionTimeout ← v.opt "ExecutionTimeout" + let kmsKeyArn ← v.opt "KMSKeyArn" + let retentionPeriodInDays ← v.opt "RetentionPeriodInDays" + return { executionTimeout, kmsKeyArn, retentionPeriodInDays } + +/-- The durable execution with the specified name has already been started. -/ +structure DurableExecutionAlreadyStartedException where + message : Option String := none + /-- The exception type. -/ + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DurableExecutionAlreadyStartedException where + schema := .struct "DurableExecutionAlreadyStartedException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- Need additional permissions to configure VPC settings. -/ +structure EC2AccessDeniedException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EC2AccessDeniedException where + schema := .struct "EC2AccessDeniedException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- Amazon EC2 throttled Lambda during Lambda function initialization using the execution role provided for the function. -/ +structure EC2ThrottledException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EC2ThrottledException where + schema := .struct "EC2ThrottledException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- Lambda received an unexpected Amazon EC2 client exception while setting up for the Lambda function. -/ +structure EC2UnexpectedException where + ec2ErrorCode : Option String := none + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EC2UnexpectedException where + schema := .struct "EC2UnexpectedException" [({ name := "EC2ErrorCode" }, .string), + ({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "EC2ErrorCode" x.ec2ErrorCode, putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let ec2ErrorCode ← v.opt "EC2ErrorCode" + let message ← v.opt "Message" + let type ← v.opt "Type" + return { ec2ErrorCode, message, type } + +/-- An error occurred when reading from or writing to a connected file system. -/ +structure EFSIOException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EFSIOException where + schema := .struct "EFSIOException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- The Lambda function couldn't make a network connection to the configured file system. -/ +structure EFSMountConnectivityException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EFSMountConnectivityException where + schema := .struct "EFSMountConnectivityException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- The Lambda function couldn't mount the configured file system due to a permission or configuration issue. -/ +structure EFSMountFailureException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EFSMountFailureException where + schema := .struct "EFSMountFailureException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- The Lambda function made a network connection to the configured file system, but the mount operation timed out. -/ +structure EFSMountTimeoutException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EFSMountTimeoutException where + schema := .struct "EFSMountTimeoutException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- Lambda couldn't create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached. -/ +structure ENILimitReachedException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ENILimitReachedException where + schema := .struct "ENILimitReachedException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- Lambda couldn't invoke the Lambda function because the elastic network interface (ENI) configured for its VPC connection isn't ready yet. -/ +structure ENINotReadyException where + /-- The exception message. -/ + message : Option String := none + /-- The exception type. -/ + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ENINotReadyException where + schema := .struct "ENINotReadyException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +inductive EndPointType where + | kafkA_BOOTSTRAP_SERVERS +deriving DecidableEq, Repr, Inhabited + +def EndPointType.wire : EndPointType → String + | .kafkA_BOOTSTRAP_SERVERS => "KAFKA_BOOTSTRAP_SERVERS" + +def EndPointType.wireValues : List (String × EndPointType) := [ + ("KAFKA_BOOTSTRAP_SERVERS", .kafkA_BOOTSTRAP_SERVERS)] + +def EndPointType.ofWire (text : String) : Except String EndPointType := + match List.find? (·.1 == text) EndPointType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"EndPointType has no value {text}" + +instance : Key EndPointType := ⟨EndPointType.wire, EndPointType.ofWire⟩ + +instance : Shape EndPointType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => EndPointType.ofWire text + | _ => .error "expected a string" + +/-- A function's environment variable settings. -/ +structure Environment where + /-- Environment variable key-value pairs. -/ + variables : Option (Dict String String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Environment where + schema := .struct "Environment" [({ name := "Variables" }, (.map .string .string "key" "value"))] + toValue x := record [putOpt "Variables" x.variables] + ofValue v := do + let variables ← v.opt "Variables" + return { variables } + +/-- Error messages for environment variables that couldn't be applied. -/ +structure EnvironmentError where + /-- The error code. -/ + errorCode : Option String := none + /-- The error message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnvironmentError where + schema := .struct "EnvironmentError" [({ name := "ErrorCode" }, .string), + ({ name := "Message" }, .string)] + toValue x := record [putOpt "ErrorCode" x.errorCode, putOpt "Message" x.message] + ofValue v := do + let errorCode ← v.opt "ErrorCode" + let message ← v.opt "Message" + return { errorCode, message } + +/-- The size of the function's /tmp directory in MB. -/ +structure EphemeralStorage where + /-- The size of the function's /tmp directory. -/ + size : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape EphemeralStorage where + schema := .struct "EphemeralStorage" [({ name := "Size", required := true }, .int)] + toValue x := record [put "Size" x.size] + ofValue v := do + let size ← v.req "Size" + return { size } + +/-- An object that contains error information. -/ +structure ErrorObject where + /-- Machine-readable error data. -/ + errorData : Option String := none + /-- A human-readable error message. -/ + errorMessage : Option String := none + /-- The error type. -/ + errorType : Option String := none + /-- Stack trace information for the error. -/ + stackTrace : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ErrorObject where + schema := .struct "ErrorObject" [({ name := "ErrorData" }, .string), + ({ name := "ErrorMessage" }, .string), + ({ name := "ErrorType" }, .string), + ({ name := "StackTrace" }, (.list .string "member"))] + toValue x := record [putOpt "ErrorData" x.errorData, putOpt "ErrorMessage" x.errorMessage, putOpt "ErrorType" x.errorType, putOpt "StackTrace" x.stackTrace] + ofValue v := do + let errorData ← v.opt "ErrorData" + let errorMessage ← v.opt "ErrorMessage" + let errorType ← v.opt "ErrorType" + let stackTrace ← v.opt "StackTrace" + return { errorData, errorMessage, errorType, stackTrace } + +/-- Input information for an event. -/ +structure EventInput where + /-- The input payload. -/ + payload : Option String := none + /-- Indicates if the error payload was truncated due to size limits. -/ + truncated : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EventInput where + schema := .struct "EventInput" [({ name := "Payload" }, .string), + ({ name := "Truncated" }, .bool)] + toValue x := record [putOpt "Payload" x.payload, putOpt "Truncated" x.truncated] + ofValue v := do + let payload ← v.opt "Payload" + let truncated ← v.opt "Truncated" + return { payload, truncated } + +/-- The reason for pausing a durable execution, as recorded in the execution history. -/ +structure EventPauseReason where + /-- The reason that you provided when you paused the execution. -/ + payload : Option String := none + /-- Specifies whether Lambda omitted the reason from the response because IncludeExecutionData is false . -/ + truncated : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EventPauseReason where + schema := .struct "EventPauseReason" [({ name := "Payload" }, .string), + ({ name := "Truncated" }, .bool)] + toValue x := record [putOpt "Payload" x.payload, putOpt "Truncated" x.truncated] + ofValue v := do + let payload ← v.opt "Payload" + let truncated ← v.opt "Truncated" + return { payload, truncated } + +/-- Result information for an event. -/ +structure EventResult where + /-- The result payload. -/ + payload : Option String := none + /-- Indicates if the error payload was truncated due to size limits. -/ + truncated : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EventResult where + schema := .struct "EventResult" [({ name := "Payload" }, .string), + ({ name := "Truncated" }, .bool)] + toValue x := record [putOpt "Payload" x.payload, putOpt "Truncated" x.truncated] + ofValue v := do + let payload ← v.opt "Payload" + let truncated ← v.opt "Truncated" + return { payload, truncated } + +/-- The reason for resuming a durable execution, as recorded in the execution history. -/ +structure EventResumeReason where + /-- The reason that you provided when you resumed the execution. -/ + payload : Option String := none + /-- Specifies whether Lambda omitted the reason from the response because IncludeExecutionData is false . -/ + truncated : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EventResumeReason where + schema := .struct "EventResumeReason" [({ name := "Payload" }, .string), + ({ name := "Truncated" }, .bool)] + toValue x := record [putOpt "Payload" x.payload, putOpt "Truncated" x.truncated] + ofValue v := do + let payload ← v.opt "Payload" + let truncated ← v.opt "Truncated" + return { payload, truncated } + +inductive EventSourceMappingMetric where + | errorCount + | eventCount + | kafkaMetrics +deriving DecidableEq, Repr, Inhabited + +def EventSourceMappingMetric.wire : EventSourceMappingMetric → String + | .errorCount => "ErrorCount" + | .eventCount => "EventCount" + | .kafkaMetrics => "KafkaMetrics" + +def EventSourceMappingMetric.wireValues : List (String × EventSourceMappingMetric) := [ + ("ErrorCount", .errorCount), + ("EventCount", .eventCount), + ("KafkaMetrics", .kafkaMetrics)] + +def EventSourceMappingMetric.ofWire (text : String) : Except String EventSourceMappingMetric := + match List.find? (·.1 == text) EventSourceMappingMetric.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"EventSourceMappingMetric has no value {text}" + +instance : Key EventSourceMappingMetric := ⟨EventSourceMappingMetric.wire, EventSourceMappingMetric.ofWire⟩ + +instance : Shape EventSourceMappingMetric where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => EventSourceMappingMetric.ofWire text + | _ => .error "expected a string" + +inductive EventSourceMappingSystemLogLevel where + | debug + | info + | warn +deriving DecidableEq, Repr, Inhabited + +def EventSourceMappingSystemLogLevel.wire : EventSourceMappingSystemLogLevel → String + | .debug => "DEBUG" + | .info => "INFO" + | .warn => "WARN" + +def EventSourceMappingSystemLogLevel.wireValues : List (String × EventSourceMappingSystemLogLevel) := [ + ("DEBUG", .debug), + ("INFO", .info), + ("WARN", .warn)] + +def EventSourceMappingSystemLogLevel.ofWire (text : String) : Except String EventSourceMappingSystemLogLevel := + match List.find? (·.1 == text) EventSourceMappingSystemLogLevel.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"EventSourceMappingSystemLogLevel has no value {text}" + +instance : Key EventSourceMappingSystemLogLevel := ⟨EventSourceMappingSystemLogLevel.wire, EventSourceMappingSystemLogLevel.ofWire⟩ + +instance : Shape EventSourceMappingSystemLogLevel where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => EventSourceMappingSystemLogLevel.ofWire text + | _ => .error "expected a string" + +inductive EventSourcePosition where + | aT_TIMESTAMP + | latest + | triM_HORIZON +deriving DecidableEq, Repr, Inhabited + +def EventSourcePosition.wire : EventSourcePosition → String + | .aT_TIMESTAMP => "AT_TIMESTAMP" + | .latest => "LATEST" + | .triM_HORIZON => "TRIM_HORIZON" + +def EventSourcePosition.wireValues : List (String × EventSourcePosition) := [ + ("AT_TIMESTAMP", .aT_TIMESTAMP), + ("LATEST", .latest), + ("TRIM_HORIZON", .triM_HORIZON)] + +def EventSourcePosition.ofWire (text : String) : Except String EventSourcePosition := + match List.find? (·.1 == text) EventSourcePosition.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"EventSourcePosition has no value {text}" + +instance : Key EventSourcePosition := ⟨EventSourcePosition.wire, EventSourcePosition.ofWire⟩ + +instance : Shape EventSourcePosition where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => EventSourcePosition.ofWire text + | _ => .error "expected a string" + +inductive EventType where + | callbackFailed + | callbackStarted + | callbackSucceeded + | callbackTimedOut + | chainedInvokeFailed + | chainedInvokeStarted + | chainedInvokeStopped + | chainedInvokeSucceeded + | chainedInvokeTimedOut + | contextFailed + | contextStarted + | contextSucceeded + | executionFailed + | executionPaused + | executionResumed + | executionStarted + | executionStopped + | executionSucceeded + | executionTimedOut + | invocationCompleted + | stepFailed + | stepStarted + | stepSucceeded + | waitCancelled + | waitStarted + | waitSucceeded +deriving DecidableEq, Repr, Inhabited + +def EventType.wire : EventType → String + | .callbackFailed => "CallbackFailed" + | .callbackStarted => "CallbackStarted" + | .callbackSucceeded => "CallbackSucceeded" + | .callbackTimedOut => "CallbackTimedOut" + | .chainedInvokeFailed => "ChainedInvokeFailed" + | .chainedInvokeStarted => "ChainedInvokeStarted" + | .chainedInvokeStopped => "ChainedInvokeStopped" + | .chainedInvokeSucceeded => "ChainedInvokeSucceeded" + | .chainedInvokeTimedOut => "ChainedInvokeTimedOut" + | .contextFailed => "ContextFailed" + | .contextStarted => "ContextStarted" + | .contextSucceeded => "ContextSucceeded" + | .executionFailed => "ExecutionFailed" + | .executionPaused => "ExecutionPaused" + | .executionResumed => "ExecutionResumed" + | .executionStarted => "ExecutionStarted" + | .executionStopped => "ExecutionStopped" + | .executionSucceeded => "ExecutionSucceeded" + | .executionTimedOut => "ExecutionTimedOut" + | .invocationCompleted => "InvocationCompleted" + | .stepFailed => "StepFailed" + | .stepStarted => "StepStarted" + | .stepSucceeded => "StepSucceeded" + | .waitCancelled => "WaitCancelled" + | .waitStarted => "WaitStarted" + | .waitSucceeded => "WaitSucceeded" + +def EventType.wireValues : List (String × EventType) := [ + ("CallbackFailed", .callbackFailed), + ("CallbackStarted", .callbackStarted), + ("CallbackSucceeded", .callbackSucceeded), + ("CallbackTimedOut", .callbackTimedOut), + ("ChainedInvokeFailed", .chainedInvokeFailed), + ("ChainedInvokeStarted", .chainedInvokeStarted), + ("ChainedInvokeStopped", .chainedInvokeStopped), + ("ChainedInvokeSucceeded", .chainedInvokeSucceeded), + ("ChainedInvokeTimedOut", .chainedInvokeTimedOut), + ("ContextFailed", .contextFailed), + ("ContextStarted", .contextStarted), + ("ContextSucceeded", .contextSucceeded), + ("ExecutionFailed", .executionFailed), + ("ExecutionPaused", .executionPaused), + ("ExecutionResumed", .executionResumed), + ("ExecutionStarted", .executionStarted), + ("ExecutionStopped", .executionStopped), + ("ExecutionSucceeded", .executionSucceeded), + ("ExecutionTimedOut", .executionTimedOut), + ("InvocationCompleted", .invocationCompleted), + ("StepFailed", .stepFailed), + ("StepStarted", .stepStarted), + ("StepSucceeded", .stepSucceeded), + ("WaitCancelled", .waitCancelled), + ("WaitStarted", .waitStarted), + ("WaitSucceeded", .waitSucceeded)] + +def EventType.ofWire (text : String) : Except String EventType := + match List.find? (·.1 == text) EventType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"EventType has no value {text}" + +instance : Key EventType := ⟨EventType.wire, EventType.ofWire⟩ + +instance : Shape EventType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => EventType.ofWire text + | _ => .error "expected a string" + +/-- Details about a durable execution . -/ +structure ExecutionDetails where + /-- The original input payload provided for the durable execution. -/ + inputPayload : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExecutionDetails where + schema := .struct "ExecutionDetails" [({ name := "InputPayload" }, .string)] + toValue x := record [putOpt "InputPayload" x.inputPayload] + ofValue v := do + let inputPayload ← v.opt "InputPayload" + return { inputPayload } + +inductive ExecutionStatus where + | deleting + | failed + | paused + | pausing + | running + | stopped + | succeeded + | timeD_OUT +deriving DecidableEq, Repr, Inhabited + +def ExecutionStatus.wire : ExecutionStatus → String + | .deleting => "DELETING" + | .failed => "FAILED" + | .paused => "PAUSED" + | .pausing => "PAUSING" + | .running => "RUNNING" + | .stopped => "STOPPED" + | .succeeded => "SUCCEEDED" + | .timeD_OUT => "TIMED_OUT" + +def ExecutionStatus.wireValues : List (String × ExecutionStatus) := [ + ("DELETING", .deleting), + ("FAILED", .failed), + ("PAUSED", .paused), + ("PAUSING", .pausing), + ("RUNNING", .running), + ("STOPPED", .stopped), + ("SUCCEEDED", .succeeded), + ("TIMED_OUT", .timeD_OUT)] + +def ExecutionStatus.ofWire (text : String) : Except String ExecutionStatus := + match List.find? (·.1 == text) ExecutionStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ExecutionStatus has no value {text}" + +instance : Key ExecutionStatus := ⟨ExecutionStatus.wire, ExecutionStatus.ofWire⟩ + +instance : Shape ExecutionStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ExecutionStatus.ofWire text + | _ => .error "expected a string" + +/-- A structure within a FilterCriteria object that defines an event filtering pattern. -/ +structure Filter where + /-- A filter pattern. -/ + pattern : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Filter where + schema := .struct "Filter" [({ name := "Pattern" }, .string)] + toValue x := record [putOpt "Pattern" x.pattern] + ofValue v := do + let pattern ← v.opt "Pattern" + return { pattern } + +/-- An object that contains details about an error related to filter criteria encryption. -/ +structure FilterCriteriaError where + /-- The KMS exception that resulted from filter criteria encryption or decryption. -/ + errorCode : Option String := none + /-- The error message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FilterCriteriaError where + schema := .struct "FilterCriteriaError" [({ name := "ErrorCode" }, .string), + ({ name := "Message" }, .string)] + toValue x := record [putOpt "ErrorCode" x.errorCode, putOpt "Message" x.message] + ofValue v := do + let errorCode ← v.opt "ErrorCode" + let message ← v.opt "Message" + return { errorCode, message } + +inductive FullDocument where + | default + | updateLookup +deriving DecidableEq, Repr, Inhabited + +def FullDocument.wire : FullDocument → String + | .default => "Default" + | .updateLookup => "UpdateLookup" + +def FullDocument.wireValues : List (String × FullDocument) := [ + ("Default", .default), + ("UpdateLookup", .updateLookup)] + +def FullDocument.ofWire (text : String) : Except String FullDocument := + match List.find? (·.1 == text) FullDocument.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FullDocument has no value {text}" + +instance : Key FullDocument := ⟨FullDocument.wire, FullDocument.ofWire⟩ + +instance : Shape FullDocument where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FullDocument.ofWire text + | _ => .error "expected a string" + +/-- Contains details about an error that occurred when Lambda attempted to retrieve a function's deployment package. -/ +structure FunctionCodeLocationError where + /-- The error code that identifies why Lambda failed to retrieve the deployment package. -/ + errorCode : Option String := none + /-- The human-readable message that describes why Lambda failed to retrieve the deployment package. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FunctionCodeLocationError where + schema := .struct "FunctionCodeLocationError" [({ name := "ErrorCode" }, .string), + ({ name := "Message" }, .string)] + toValue x := record [putOpt "ErrorCode" x.errorCode, putOpt "Message" x.message] + ofValue v := do + let errorCode ← v.opt "ErrorCode" + let message ← v.opt "Message" + return { errorCode, message } + +inductive FunctionResponseType where + | reportBatchItemFailures +deriving DecidableEq, Repr, Inhabited + +def FunctionResponseType.wire : FunctionResponseType → String + | .reportBatchItemFailures => "ReportBatchItemFailures" + +def FunctionResponseType.wireValues : List (String × FunctionResponseType) := [ + ("ReportBatchItemFailures", .reportBatchItemFailures)] + +def FunctionResponseType.ofWire (text : String) : Except String FunctionResponseType := + match List.find? (·.1 == text) FunctionResponseType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FunctionResponseType has no value {text}" + +instance : Key FunctionResponseType := ⟨FunctionResponseType.wire, FunctionResponseType.ofWire⟩ + +instance : Shape FunctionResponseType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FunctionResponseType.ofWire text + | _ => .error "expected a string" + +/-- The customer-managed runtime configuration for your function. -/ +structure FunctionRuntimeConfig where + /-- The name of the customer-managed runtime alias that your function uses. -/ + runtimeAlias : String + /-- The Amazon Resource Name (ARN) of the customer-managed runtime that your function uses. -/ + runtimeArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape FunctionRuntimeConfig where + schema := .struct "FunctionRuntimeConfig" [({ name := "RuntimeAlias", required := true }, .string), + ({ name := "RuntimeArn", required := true }, .string)] + toValue x := record [put "RuntimeAlias" x.runtimeAlias, put "RuntimeArn" x.runtimeArn] + ofValue v := do + let runtimeAlias ← v.req "RuntimeAlias" + let runtimeArn ← v.req "RuntimeArn" + return { runtimeAlias, runtimeArn } + +/-- Configuration that defines the scaling behavior for a Lambda Managed Instances function, including the minimum and maximum number of execution environments that can be provisioned. -/ +structure FunctionScalingConfig where + /-- The maximum number of execution environments that can be provisioned for the function. -/ + maxExecutionEnvironments : Option Int := none + /-- The minimum number of execution environments to maintain for the function. -/ + minExecutionEnvironments : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FunctionScalingConfig where + schema := .struct "FunctionScalingConfig" [({ name := "MaxExecutionEnvironments" }, .int), + ({ name := "MinExecutionEnvironments" }, .int)] + toValue x := record [putOpt "MaxExecutionEnvironments" x.maxExecutionEnvironments, putOpt "MinExecutionEnvironments" x.minExecutionEnvironments] + ofValue v := do + let maxExecutionEnvironments ← v.opt "MaxExecutionEnvironments" + let minExecutionEnvironments ← v.opt "MinExecutionEnvironments" + return { maxExecutionEnvironments, minExecutionEnvironments } + +inductive FunctionUrlAuthType where + | awS_IAM + | none +deriving DecidableEq, Repr, Inhabited + +def FunctionUrlAuthType.wire : FunctionUrlAuthType → String + | .awS_IAM => "AWS_IAM" + | .none => "NONE" + +def FunctionUrlAuthType.wireValues : List (String × FunctionUrlAuthType) := [ + ("AWS_IAM", .awS_IAM), + ("NONE", .none)] + +def FunctionUrlAuthType.ofWire (text : String) : Except String FunctionUrlAuthType := + match List.find? (·.1 == text) FunctionUrlAuthType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FunctionUrlAuthType has no value {text}" + +instance : Key FunctionUrlAuthType := ⟨FunctionUrlAuthType.wire, FunctionUrlAuthType.ofWire⟩ + +instance : Shape FunctionUrlAuthType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FunctionUrlAuthType.ofWire text + | _ => .error "expected a string" + +inductive FunctionVersion where + | all +deriving DecidableEq, Repr, Inhabited + +def FunctionVersion.wire : FunctionVersion → String + | .all => "ALL" + +def FunctionVersion.wireValues : List (String × FunctionVersion) := [ + ("ALL", .all)] + +def FunctionVersion.ofWire (text : String) : Except String FunctionVersion := + match List.find? (·.1 == text) FunctionVersion.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FunctionVersion has no value {text}" + +instance : Key FunctionVersion := ⟨FunctionVersion.wire, FunctionVersion.ofWire⟩ + +instance : Shape FunctionVersion where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FunctionVersion.ofWire text + | _ => .error "expected a string" + +inductive FunctionVersionLatestPublished where + | latesT_PUBLISHED +deriving DecidableEq, Repr, Inhabited + +def FunctionVersionLatestPublished.wire : FunctionVersionLatestPublished → String + | .latesT_PUBLISHED => "LATEST_PUBLISHED" + +def FunctionVersionLatestPublished.wireValues : List (String × FunctionVersionLatestPublished) := [ + ("LATEST_PUBLISHED", .latesT_PUBLISHED)] + +def FunctionVersionLatestPublished.ofWire (text : String) : Except String FunctionVersionLatestPublished := + match List.find? (·.1 == text) FunctionVersionLatestPublished.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FunctionVersionLatestPublished has no value {text}" + +instance : Key FunctionVersionLatestPublished := ⟨FunctionVersionLatestPublished.wire, FunctionVersionLatestPublished.ofWire⟩ + +instance : Shape FunctionVersionLatestPublished where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FunctionVersionLatestPublished.ofWire text + | _ => .error "expected a string" + +/-- The maximum number of function versions that can be associated with a single capacity provider has been exceeded. -/ +structure FunctionVersionsPerCapacityProviderLimitExceededException where + /-- The exception type. -/ + type : Option String := none + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FunctionVersionsPerCapacityProviderLimitExceededException where + schema := .struct "FunctionVersionsPerCapacityProviderLimitExceededException" [({ name := "Type" }, .string), + ({ name := "message" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "message" x.message] + ofValue v := do + let type ← v.opt "Type" + let message ← v.opt "message" + return { type, message } + +structure GetAccountSettingsRequest where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetAccountSettingsRequest where + schema := .struct "GetAccountSettingsRequest" [] + toValue _ := record [] + ofValue _ := do + return { } + +structure GetAliasRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- The name of the alias. -/ + name : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetAliasRequest where + schema := .struct "GetAliasRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Name", required := true, location := .label }, .string)] + toValue x := record [put "FunctionName" x.functionName, put "Name" x.name] + ofValue v := do + let functionName ← v.req "FunctionName" + let name ← v.req "Name" + return { functionName, name } + +structure GetCapacityProviderRequest where + /-- The name of the capacity provider to retrieve. -/ + capacityProviderName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetCapacityProviderRequest where + schema := .struct "GetCapacityProviderRequest" [({ name := "CapacityProviderName", required := true, location := .label }, .string)] + toValue x := record [put "CapacityProviderName" x.capacityProviderName] + ofValue v := do + let capacityProviderName ← v.req "CapacityProviderName" + return { capacityProviderName } + +structure GetCodeSigningConfigRequest where + /-- The The Amazon Resource Name (ARN) of the code signing configuration. -/ + codeSigningConfigArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetCodeSigningConfigRequest where + schema := .struct "GetCodeSigningConfigRequest" [({ name := "CodeSigningConfigArn", required := true, location := .label }, .string)] + toValue x := record [put "CodeSigningConfigArn" x.codeSigningConfigArn] + ofValue v := do + let codeSigningConfigArn ← v.req "CodeSigningConfigArn" + return { codeSigningConfigArn } + +structure GetDurableExecutionHistoryRequest where + /-- The Amazon Resource Name (ARN) of the durable execution. -/ + durableExecutionArn : String + /-- Specifies whether to include execution data such as step results and callback payloads in the history events. -/ + includeExecutionData : Option Bool := none + /-- If NextMarker was returned from a previous request, use this value to retrieve the next page of results. -/ + marker : Option String := none + /-- The maximum number of history events to return per call. -/ + maxItems : Option Int := none + /-- When set to true , returns the history events in reverse chronological order (newest first). -/ + reverseOrder : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetDurableExecutionHistoryRequest where + schema := .struct "GetDurableExecutionHistoryRequest" [({ name := "DurableExecutionArn", required := true, location := .label }, .string), + ({ name := "IncludeExecutionData", location := .query "IncludeExecutionData" }, .bool), + ({ name := "Marker", location := .query "Marker" }, .string), + ({ name := "MaxItems", location := .query "MaxItems" }, .int), + ({ name := "ReverseOrder", location := .query "ReverseOrder" }, .bool)] + toValue x := record [put "DurableExecutionArn" x.durableExecutionArn, putOpt "IncludeExecutionData" x.includeExecutionData, putOpt "Marker" x.marker, putOpt "MaxItems" x.maxItems, putOpt "ReverseOrder" x.reverseOrder] + ofValue v := do + let durableExecutionArn ← v.req "DurableExecutionArn" + let includeExecutionData ← v.opt "IncludeExecutionData" + let marker ← v.opt "Marker" + let maxItems ← v.opt "MaxItems" + let reverseOrder ← v.opt "ReverseOrder" + return { durableExecutionArn, includeExecutionData, marker, maxItems, reverseOrder } + +structure GetDurableExecutionRequest where + /-- The Amazon Resource Name (ARN) of the durable execution. -/ + durableExecutionArn : String + /-- Specifies whether to include execution data such as input payload, result, and error information in the response. -/ + includeExecutionData : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetDurableExecutionRequest where + schema := .struct "GetDurableExecutionRequest" [({ name := "DurableExecutionArn", required := true, location := .label }, .string), + ({ name := "IncludeExecutionData", location := .query "IncludeExecutionData" }, .bool)] + toValue x := record [put "DurableExecutionArn" x.durableExecutionArn, putOpt "IncludeExecutionData" x.includeExecutionData] + ofValue v := do + let durableExecutionArn ← v.req "DurableExecutionArn" + let includeExecutionData ← v.opt "IncludeExecutionData" + return { durableExecutionArn, includeExecutionData } + +structure GetDurableExecutionStateRequest where + /-- A checkpoint token that identifies the current state of the execution. -/ + checkpointToken : String + /-- The Amazon Resource Name (ARN) of the durable execution. -/ + durableExecutionArn : String + /-- If NextMarker was returned from a previous request, use this value to retrieve the next page of operations. -/ + marker : Option String := none + /-- The maximum number of operations to return per call. -/ + maxItems : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetDurableExecutionStateRequest where + schema := .struct "GetDurableExecutionStateRequest" [({ name := "CheckpointToken", required := true, location := .query "CheckpointToken" }, .string), + ({ name := "DurableExecutionArn", required := true, location := .label }, .string), + ({ name := "Marker", location := .query "Marker" }, .string), + ({ name := "MaxItems", location := .query "MaxItems" }, .int)] + toValue x := record [put "CheckpointToken" x.checkpointToken, put "DurableExecutionArn" x.durableExecutionArn, putOpt "Marker" x.marker, putOpt "MaxItems" x.maxItems] + ofValue v := do + let checkpointToken ← v.req "CheckpointToken" + let durableExecutionArn ← v.req "DurableExecutionArn" + let marker ← v.opt "Marker" + let maxItems ← v.opt "MaxItems" + return { checkpointToken, durableExecutionArn, marker, maxItems } + +structure GetEventSourceMappingRequest where + /-- The identifier of the event source mapping. -/ + uuid : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetEventSourceMappingRequest where + schema := .struct "GetEventSourceMappingRequest" [({ name := "UUID", required := true, location := .label }, .string)] + toValue x := record [put "UUID" x.uuid] + ofValue v := do + let uuid ← v.req "UUID" + return { uuid } + +structure GetFunctionCodeSigningConfigRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetFunctionCodeSigningConfigRequest where + schema := .struct "GetFunctionCodeSigningConfigRequest" [({ name := "FunctionName", required := true, location := .label }, .string)] + toValue x := record [put "FunctionName" x.functionName] + ofValue v := do + let functionName ← v.req "FunctionName" + return { functionName } + +structure GetFunctionCodeSigningConfigResponse where + /-- The The Amazon Resource Name (ARN) of the code signing configuration. -/ + codeSigningConfigArn : String + /-- The name or ARN of the Lambda function. -/ + functionName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetFunctionCodeSigningConfigResponse where + schema := .struct "GetFunctionCodeSigningConfigResponse" [({ name := "CodeSigningConfigArn", required := true }, .string), + ({ name := "FunctionName", required := true }, .string)] + toValue x := record [put "CodeSigningConfigArn" x.codeSigningConfigArn, put "FunctionName" x.functionName] + ofValue v := do + let codeSigningConfigArn ← v.req "CodeSigningConfigArn" + let functionName ← v.req "FunctionName" + return { codeSigningConfigArn, functionName } + +structure GetFunctionConcurrencyRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetFunctionConcurrencyRequest where + schema := .struct "GetFunctionConcurrencyRequest" [({ name := "FunctionName", required := true, location := .label }, .string)] + toValue x := record [put "FunctionName" x.functionName] + ofValue v := do + let functionName ← v.req "FunctionName" + return { functionName } + +structure GetFunctionConcurrencyResponse where + /-- The number of simultaneous executions that are reserved for the function. -/ + reservedConcurrentExecutions : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetFunctionConcurrencyResponse where + schema := .struct "GetFunctionConcurrencyResponse" [({ name := "ReservedConcurrentExecutions" }, .int)] + toValue x := record [putOpt "ReservedConcurrentExecutions" x.reservedConcurrentExecutions] + ofValue v := do + let reservedConcurrentExecutions ← v.opt "ReservedConcurrentExecutions" + return { reservedConcurrentExecutions } + +structure GetFunctionConfigurationRequest where + /-- The name or ARN of the Lambda function, version, or alias. -/ + functionName : String + /-- Specify a version or alias to get details about a published version of the function. -/ + qualifier : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetFunctionConfigurationRequest where + schema := .struct "GetFunctionConfigurationRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Qualifier", location := .query "Qualifier" }, .string)] + toValue x := record [put "FunctionName" x.functionName, putOpt "Qualifier" x.qualifier] + ofValue v := do + let functionName ← v.req "FunctionName" + let qualifier ← v.opt "Qualifier" + return { functionName, qualifier } + +structure GetFunctionEventInvokeConfigRequest where + /-- The name or ARN of the Lambda function, version, or alias. -/ + functionName : String + /-- A version number or alias name. -/ + qualifier : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetFunctionEventInvokeConfigRequest where + schema := .struct "GetFunctionEventInvokeConfigRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Qualifier", location := .query "Qualifier" }, .string)] + toValue x := record [put "FunctionName" x.functionName, putOpt "Qualifier" x.qualifier] + ofValue v := do + let functionName ← v.req "FunctionName" + let qualifier ← v.opt "Qualifier" + return { functionName, qualifier } + +structure GetFunctionRecursionConfigRequest where + /-- The name of the function. -/ + functionName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetFunctionRecursionConfigRequest where + schema := .struct "GetFunctionRecursionConfigRequest" [({ name := "FunctionName", required := true, location := .label }, .string)] + toValue x := record [put "FunctionName" x.functionName] + ofValue v := do + let functionName ← v.req "FunctionName" + return { functionName } + +structure GetFunctionRequest where + /-- The name or ARN of the Lambda function, version, or alias. -/ + functionName : String + /-- Specify a version or alias to get details about a published version of the function. -/ + qualifier : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetFunctionRequest where + schema := .struct "GetFunctionRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Qualifier", location := .query "Qualifier" }, .string)] + toValue x := record [put "FunctionName" x.functionName, putOpt "Qualifier" x.qualifier] + ofValue v := do + let functionName ← v.req "FunctionName" + let qualifier ← v.opt "Qualifier" + return { functionName, qualifier } + +structure GetFunctionScalingConfigRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- Specify a version or alias to get the scaling configuration for a published version of the function. -/ + qualifier : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetFunctionScalingConfigRequest where + schema := .struct "GetFunctionScalingConfigRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Qualifier", required := true, location := .query "Qualifier" }, .string)] + toValue x := record [put "FunctionName" x.functionName, put "Qualifier" x.qualifier] + ofValue v := do + let functionName ← v.req "FunctionName" + let qualifier ← v.req "Qualifier" + return { functionName, qualifier } + +structure GetFunctionUrlConfigRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- The alias name. -/ + qualifier : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetFunctionUrlConfigRequest where + schema := .struct "GetFunctionUrlConfigRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Qualifier", location := .query "Qualifier" }, .string)] + toValue x := record [put "FunctionName" x.functionName, putOpt "Qualifier" x.qualifier] + ofValue v := do + let functionName ← v.req "FunctionName" + let qualifier ← v.opt "Qualifier" + return { functionName, qualifier } + +structure GetLayerVersionByArnRequest where + /-- The ARN of the layer version. -/ + arn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetLayerVersionByArnRequest where + schema := .struct "GetLayerVersionByArnRequest" [({ name := "Arn", required := true, location := .query "Arn" }, .string)] + toValue x := record [put "Arn" x.arn] + ofValue v := do + let arn ← v.req "Arn" + return { arn } + +structure GetLayerVersionPolicyRequest where + /-- The name or Amazon Resource Name (ARN) of the layer. -/ + layerName : String + /-- The version number. -/ + versionNumber : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetLayerVersionPolicyRequest where + schema := .struct "GetLayerVersionPolicyRequest" [({ name := "LayerName", required := true, location := .label }, .string), + ({ name := "VersionNumber", required := true, location := .label }, .int)] + toValue x := record [put "LayerName" x.layerName, put "VersionNumber" x.versionNumber] + ofValue v := do + let layerName ← v.req "LayerName" + let versionNumber ← v.req "VersionNumber" + return { layerName, versionNumber } + +structure GetLayerVersionPolicyResponse where + /-- The policy document. -/ + policy : Option String := none + /-- A unique identifier for the current revision of the policy. -/ + revisionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetLayerVersionPolicyResponse where + schema := .struct "GetLayerVersionPolicyResponse" [({ name := "Policy" }, .string), + ({ name := "RevisionId" }, .string)] + toValue x := record [putOpt "Policy" x.policy, putOpt "RevisionId" x.revisionId] + ofValue v := do + let policy ← v.opt "Policy" + let revisionId ← v.opt "RevisionId" + return { policy, revisionId } + +structure GetLayerVersionRequest where + /-- The name or Amazon Resource Name (ARN) of the layer. -/ + layerName : String + /-- The version number. -/ + versionNumber : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetLayerVersionRequest where + schema := .struct "GetLayerVersionRequest" [({ name := "LayerName", required := true, location := .label }, .string), + ({ name := "VersionNumber", required := true, location := .label }, .int)] + toValue x := record [put "LayerName" x.layerName, put "VersionNumber" x.versionNumber] + ofValue v := do + let layerName ← v.req "LayerName" + let versionNumber ← v.req "VersionNumber" + return { layerName, versionNumber } + +structure GetPolicyRequest where + /-- The name or ARN of the Lambda function, version, or alias. -/ + functionName : String + /-- Specify a version or alias to get the policy for that resource. -/ + qualifier : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetPolicyRequest where + schema := .struct "GetPolicyRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Qualifier", location := .query "Qualifier" }, .string)] + toValue x := record [put "FunctionName" x.functionName, putOpt "Qualifier" x.qualifier] + ofValue v := do + let functionName ← v.req "FunctionName" + let qualifier ← v.opt "Qualifier" + return { functionName, qualifier } + +structure GetPolicyResponse where + /-- The resource-based policy. -/ + policy : Option String := none + /-- A unique identifier for the current revision of the policy. -/ + revisionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetPolicyResponse where + schema := .struct "GetPolicyResponse" [({ name := "Policy" }, .string), + ({ name := "RevisionId" }, .string)] + toValue x := record [putOpt "Policy" x.policy, putOpt "RevisionId" x.revisionId] + ofValue v := do + let policy ← v.opt "Policy" + let revisionId ← v.opt "RevisionId" + return { policy, revisionId } + +structure GetProvisionedConcurrencyConfigRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- The version number or alias name. -/ + qualifier : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetProvisionedConcurrencyConfigRequest where + schema := .struct "GetProvisionedConcurrencyConfigRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Qualifier", required := true, location := .query "Qualifier" }, .string)] + toValue x := record [put "FunctionName" x.functionName, put "Qualifier" x.qualifier] + ofValue v := do + let functionName ← v.req "FunctionName" + let qualifier ← v.req "Qualifier" + return { functionName, qualifier } + +structure GetResourcePolicyRequest where + /-- The Amazon Resource Name (ARN) of the Lambda resource you want to retrieve the policy for. -/ + resourceArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetResourcePolicyRequest where + schema := .struct "GetResourcePolicyRequest" [({ name := "ResourceArn", required := true, location := .label }, .string)] + toValue x := record [put "ResourceArn" x.resourceArn] + ofValue v := do + let resourceArn ← v.req "ResourceArn" + return { resourceArn } + +structure GetResourcePolicyResponse where + /-- The resource-based policy attached to the Lambda resource you specified. -/ + policy : Option String := none + /-- The revision ID of the policy. -/ + revisionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetResourcePolicyResponse where + schema := .struct "GetResourcePolicyResponse" [({ name := "Policy" }, .string), + ({ name := "RevisionId" }, .string)] + toValue x := record [putOpt "Policy" x.policy, putOpt "RevisionId" x.revisionId] + ofValue v := do + let policy ← v.opt "Policy" + let revisionId ← v.opt "RevisionId" + return { policy, revisionId } + +structure GetRuntimeManagementConfigRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- Specify a version of the function. -/ + qualifier : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetRuntimeManagementConfigRequest where + schema := .struct "GetRuntimeManagementConfigRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Qualifier", location := .query "Qualifier" }, .string)] + toValue x := record [put "FunctionName" x.functionName, putOpt "Qualifier" x.qualifier] + ofValue v := do + let functionName ← v.req "FunctionName" + let qualifier ← v.opt "Qualifier" + return { functionName, qualifier } + +/-- Configuration values that override the container image Dockerfile settings. -/ +structure ImageConfig where + /-- Specifies parameters that you want to pass in with ENTRYPOINT. -/ + command : Option (List String) := none + /-- Specifies the entry point to their application, which is typically the location of the runtime executable. -/ + entryPoint : Option (List String) := none + /-- Specifies the working directory. -/ + workingDirectory : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageConfig where + schema := .struct "ImageConfig" [({ name := "Command" }, (.list .string "member")), + ({ name := "EntryPoint" }, (.list .string "member")), + ({ name := "WorkingDirectory" }, .string)] + toValue x := record [putOpt "Command" x.command, putOpt "EntryPoint" x.entryPoint, putOpt "WorkingDirectory" x.workingDirectory] + ofValue v := do + let command ← v.opt "Command" + let entryPoint ← v.opt "EntryPoint" + let workingDirectory ← v.opt "WorkingDirectory" + return { command, entryPoint, workingDirectory } + +/-- Error response to GetFunctionConfiguration . -/ +structure ImageConfigError where + /-- Error code. -/ + errorCode : Option String := none + /-- Error message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageConfigError where + schema := .struct "ImageConfigError" [({ name := "ErrorCode" }, .string), + ({ name := "Message" }, .string)] + toValue x := record [putOpt "ErrorCode" x.errorCode, putOpt "Message" x.message] + ofValue v := do + let errorCode ← v.opt "ErrorCode" + let message ← v.opt "Message" + return { errorCode, message } + +/-- The code signature failed the integrity check. -/ +structure InvalidCodeSignatureException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidCodeSignatureException where + schema := .struct "InvalidCodeSignatureException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- One of the parameters in the request is not valid. -/ +structure InvalidParameterValueException where + /-- The exception type. -/ + type : Option String := none + /-- The exception message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidParameterValueException where + schema := .struct "InvalidParameterValueException" [({ name := "Type" }, .string), + ({ name := "message" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "message" x.message] + ofValue v := do + let type ← v.opt "Type" + let message ← v.opt "message" + return { type, message } + +/-- The request body could not be parsed as JSON, or a request header is invalid. -/ +structure InvalidRequestContentException where + /-- The exception type. -/ + type : Option String := none + /-- The exception message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidRequestContentException where + schema := .struct "InvalidRequestContentException" [({ name := "Type" }, .string), + ({ name := "message" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "message" x.message] + ofValue v := do + let type ← v.opt "Type" + let message ← v.opt "message" + return { type, message } + +/-- The runtime or runtime version specified is not supported. -/ +structure InvalidRuntimeException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidRuntimeException where + schema := .struct "InvalidRuntimeException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- The security group ID provided in the Lambda function VPC configuration is not valid. -/ +structure InvalidSecurityGroupIDException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidSecurityGroupIDException where + schema := .struct "InvalidSecurityGroupIDException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- The subnet ID provided in the Lambda function VPC configuration is not valid. -/ +structure InvalidSubnetIDException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidSubnetIDException where + schema := .struct "InvalidSubnetIDException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- Lambda could not unzip the deployment package. -/ +structure InvalidZipFileException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidZipFileException where + schema := .struct "InvalidZipFileException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +structure InvocationResponse where + /-- The ARN of the durable execution that was started. -/ + durableExecutionArn : Option String := none + /-- The version of the function that executed. -/ + executedVersion : Option String := none + /-- If present, indicates that an error occurred during function execution. -/ + functionError : Option String := none + /-- The last 4 KB of the execution log, which is base64-encoded. -/ + logResult : Option String := none + /-- The response from the function, or an error object. -/ + payload : Option Blob := none + /-- The HTTP status code is in the 200 range for a successful request. -/ + statusCode : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvocationResponse where + schema := .struct "InvocationResponse" [({ name := "DurableExecutionArn", location := .header "X-Amz-Durable-Execution-Arn" }, .string), + ({ name := "ExecutedVersion", location := .header "X-Amz-Executed-Version" }, .string), + ({ name := "FunctionError", location := .header "X-Amz-Function-Error" }, .string), + ({ name := "LogResult", location := .header "X-Amz-Log-Result" }, .string), + ({ name := "Payload", location := .payload }, .blob), + ({ name := "StatusCode", location := .status }, .int)] + toValue x := record [putOpt "DurableExecutionArn" x.durableExecutionArn, putOpt "ExecutedVersion" x.executedVersion, putOpt "FunctionError" x.functionError, putOpt "LogResult" x.logResult, putOpt "Payload" x.payload, putOpt "StatusCode" x.statusCode] + ofValue v := do + let durableExecutionArn ← v.opt "DurableExecutionArn" + let executedVersion ← v.opt "ExecutedVersion" + let functionError ← v.opt "FunctionError" + let logResult ← v.opt "LogResult" + let payload ← v.opt "Payload" + let statusCode ← v.opt "StatusCode" + return { durableExecutionArn, executedVersion, functionError, logResult, payload, statusCode } + +inductive InvocationType where + | dryRun + | event + | requestResponse +deriving DecidableEq, Repr, Inhabited + +def InvocationType.wire : InvocationType → String + | .dryRun => "DryRun" + | .event => "Event" + | .requestResponse => "RequestResponse" + +def InvocationType.wireValues : List (String × InvocationType) := [ + ("DryRun", .dryRun), + ("Event", .event), + ("RequestResponse", .requestResponse)] + +def InvocationType.ofWire (text : String) : Except String InvocationType := + match List.find? (·.1 == text) InvocationType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InvocationType has no value {text}" + +instance : Key InvocationType := ⟨InvocationType.wire, InvocationType.ofWire⟩ + +instance : Shape InvocationType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InvocationType.ofWire text + | _ => .error "expected a string" + +structure InvokeAsyncRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- The JSON that you want to provide to your Lambda function as input. -/ + invokeArgs : Blob +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvokeAsyncRequest where + schema := .struct "InvokeAsyncRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "InvokeArgs", required := true, location := .payload }, .blob)] + toValue x := record [put "FunctionName" x.functionName, put "InvokeArgs" x.invokeArgs] + ofValue v := do + let functionName ← v.req "FunctionName" + let invokeArgs ← v.req "InvokeArgs" + return { functionName, invokeArgs } + +/-- A success response ( 202 Accepted ) indicates that the request is queued for invocation. -/ +structure InvokeAsyncResponse where + /-- The status code. -/ + status : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvokeAsyncResponse where + schema := .struct "InvokeAsyncResponse" [({ name := "Status", location := .status }, .int)] + toValue x := record [putOpt "Status" x.status] + ofValue v := do + let status ← v.opt "Status" + return { status } + +inductive InvokeMode where + | buffered + | responsE_STREAM +deriving DecidableEq, Repr, Inhabited + +def InvokeMode.wire : InvokeMode → String + | .buffered => "BUFFERED" + | .responsE_STREAM => "RESPONSE_STREAM" + +def InvokeMode.wireValues : List (String × InvokeMode) := [ + ("BUFFERED", .buffered), + ("RESPONSE_STREAM", .responsE_STREAM)] + +def InvokeMode.ofWire (text : String) : Except String InvokeMode := + match List.find? (·.1 == text) InvokeMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InvokeMode has no value {text}" + +instance : Key InvokeMode := ⟨InvokeMode.wire, InvokeMode.ofWire⟩ + +instance : Shape InvokeMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InvokeMode.ofWire text + | _ => .error "expected a string" + +/-- A chunk of the streamed response payload. -/ +structure InvokeResponseStreamUpdate where + /-- Data returned by your Lambda function. -/ + payload : Option Blob := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvokeResponseStreamUpdate where + schema := .struct "InvokeResponseStreamUpdate" [({ name := "Payload" }, .blob)] + toValue x := record [putOpt "Payload" x.payload] + ofValue v := do + let payload ← v.opt "Payload" + return { payload } + +/-- A response confirming that the event stream is complete. -/ +structure InvokeWithResponseStreamCompleteEvent where + /-- An error code. -/ + errorCode : Option String := none + /-- The details of any returned error. -/ + errorDetails : Option String := none + /-- The last 4 KB of the execution log, which is base64-encoded. -/ + logResult : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvokeWithResponseStreamCompleteEvent where + schema := .struct "InvokeWithResponseStreamCompleteEvent" [({ name := "ErrorCode" }, .string), + ({ name := "ErrorDetails" }, .string), + ({ name := "LogResult" }, .string)] + toValue x := record [putOpt "ErrorCode" x.errorCode, putOpt "ErrorDetails" x.errorDetails, putOpt "LogResult" x.logResult] + ofValue v := do + let errorCode ← v.opt "ErrorCode" + let errorDetails ← v.opt "ErrorDetails" + let logResult ← v.opt "LogResult" + return { errorCode, errorDetails, logResult } + +/-- Lambda couldn't decrypt the environment variables because KMS access was denied. -/ +structure KMSAccessDeniedException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KMSAccessDeniedException where + schema := .struct "KMSAccessDeniedException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- Lambda couldn't decrypt the environment variables because the KMS key used is disabled. -/ +structure KMSDisabledException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KMSDisabledException where + schema := .struct "KMSDisabledException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. -/ +structure KMSInvalidStateException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KMSInvalidStateException where + schema := .struct "KMSInvalidStateException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- Lambda couldn't decrypt the environment variables because the KMS key was not found. -/ +structure KMSNotFoundException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KMSNotFoundException where + schema := .struct "KMSNotFoundException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +inductive KafkaEventSourceMappingConsumptionMode where + | queue + | stream +deriving DecidableEq, Repr, Inhabited + +def KafkaEventSourceMappingConsumptionMode.wire : KafkaEventSourceMappingConsumptionMode → String + | .queue => "Queue" + | .stream => "Stream" + +def KafkaEventSourceMappingConsumptionMode.wireValues : List (String × KafkaEventSourceMappingConsumptionMode) := [ + ("Queue", .queue), + ("Stream", .stream)] + +def KafkaEventSourceMappingConsumptionMode.ofWire (text : String) : Except String KafkaEventSourceMappingConsumptionMode := + match List.find? (·.1 == text) KafkaEventSourceMappingConsumptionMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"KafkaEventSourceMappingConsumptionMode has no value {text}" + +instance : Key KafkaEventSourceMappingConsumptionMode := ⟨KafkaEventSourceMappingConsumptionMode.wire, KafkaEventSourceMappingConsumptionMode.ofWire⟩ + +instance : Shape KafkaEventSourceMappingConsumptionMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => KafkaEventSourceMappingConsumptionMode.ofWire text + | _ => .error "expected a string" + +inductive KafkaSchemaRegistryAuthType where + | basiC_AUTH + | clienT_CERTIFICATE_TLS_AUTH + | oauthbeareR_AUTH + | serveR_ROOT_CA_CERTIFICATE +deriving DecidableEq, Repr, Inhabited + +def KafkaSchemaRegistryAuthType.wire : KafkaSchemaRegistryAuthType → String + | .basiC_AUTH => "BASIC_AUTH" + | .clienT_CERTIFICATE_TLS_AUTH => "CLIENT_CERTIFICATE_TLS_AUTH" + | .oauthbeareR_AUTH => "OAUTHBEARER_AUTH" + | .serveR_ROOT_CA_CERTIFICATE => "SERVER_ROOT_CA_CERTIFICATE" + +def KafkaSchemaRegistryAuthType.wireValues : List (String × KafkaSchemaRegistryAuthType) := [ + ("BASIC_AUTH", .basiC_AUTH), + ("CLIENT_CERTIFICATE_TLS_AUTH", .clienT_CERTIFICATE_TLS_AUTH), + ("OAUTHBEARER_AUTH", .oauthbeareR_AUTH), + ("SERVER_ROOT_CA_CERTIFICATE", .serveR_ROOT_CA_CERTIFICATE)] + +def KafkaSchemaRegistryAuthType.ofWire (text : String) : Except String KafkaSchemaRegistryAuthType := + match List.find? (·.1 == text) KafkaSchemaRegistryAuthType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"KafkaSchemaRegistryAuthType has no value {text}" + +instance : Key KafkaSchemaRegistryAuthType := ⟨KafkaSchemaRegistryAuthType.wire, KafkaSchemaRegistryAuthType.ofWire⟩ + +instance : Shape KafkaSchemaRegistryAuthType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => KafkaSchemaRegistryAuthType.ofWire text + | _ => .error "expected a string" + +inductive KafkaSchemaValidationAttribute where + | key + | value +deriving DecidableEq, Repr, Inhabited + +def KafkaSchemaValidationAttribute.wire : KafkaSchemaValidationAttribute → String + | .key => "KEY" + | .value => "VALUE" + +def KafkaSchemaValidationAttribute.wireValues : List (String × KafkaSchemaValidationAttribute) := [ + ("KEY", .key), + ("VALUE", .value)] + +def KafkaSchemaValidationAttribute.ofWire (text : String) : Except String KafkaSchemaValidationAttribute := + match List.find? (·.1 == text) KafkaSchemaValidationAttribute.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"KafkaSchemaValidationAttribute has no value {text}" + +instance : Key KafkaSchemaValidationAttribute := ⟨KafkaSchemaValidationAttribute.wire, KafkaSchemaValidationAttribute.ofWire⟩ + +instance : Shape KafkaSchemaValidationAttribute where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => KafkaSchemaValidationAttribute.ofWire text + | _ => .error "expected a string" + +/-- Configuration for Lambda-managed instances used by the capacity provider. -/ +structure LambdaManagedInstancesCapacityProviderConfig where + /-- The Amazon Resource Name (ARN) of the capacity provider. -/ + capacityProviderArn : String + /-- The amount of memory in GiB allocated per vCPU for execution environments. -/ + executionEnvironmentMemoryGiBPerVCpu : Option JsonNumber := none + /-- The maximum number of concurrent execution environments that can run on each compute instance. -/ + perExecutionEnvironmentMaxConcurrency : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LambdaManagedInstancesCapacityProviderConfig where + schema := .struct "LambdaManagedInstancesCapacityProviderConfig" [({ name := "CapacityProviderArn", required := true }, .string), + ({ name := "ExecutionEnvironmentMemoryGiBPerVCpu" }, .number), + ({ name := "PerExecutionEnvironmentMaxConcurrency" }, .int)] + toValue x := record [put "CapacityProviderArn" x.capacityProviderArn, putOpt "ExecutionEnvironmentMemoryGiBPerVCpu" x.executionEnvironmentMemoryGiBPerVCpu, putOpt "PerExecutionEnvironmentMaxConcurrency" x.perExecutionEnvironmentMaxConcurrency] + ofValue v := do + let capacityProviderArn ← v.req "CapacityProviderArn" + let executionEnvironmentMemoryGiBPerVCpu ← v.opt "ExecutionEnvironmentMemoryGiBPerVCpu" + let perExecutionEnvironmentMaxConcurrency ← v.opt "PerExecutionEnvironmentMaxConcurrency" + return { capacityProviderArn, executionEnvironmentMemoryGiBPerVCpu, perExecutionEnvironmentMaxConcurrency } + +inductive LastUpdateStatus where + | failed + | inProgress + | successful +deriving DecidableEq, Repr, Inhabited + +def LastUpdateStatus.wire : LastUpdateStatus → String + | .failed => "Failed" + | .inProgress => "InProgress" + | .successful => "Successful" + +def LastUpdateStatus.wireValues : List (String × LastUpdateStatus) := [ + ("Failed", .failed), + ("InProgress", .inProgress), + ("Successful", .successful)] + +def LastUpdateStatus.ofWire (text : String) : Except String LastUpdateStatus := + match List.find? (·.1 == text) LastUpdateStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LastUpdateStatus has no value {text}" + +instance : Key LastUpdateStatus := ⟨LastUpdateStatus.wire, LastUpdateStatus.ofWire⟩ + +instance : Shape LastUpdateStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LastUpdateStatus.ofWire text + | _ => .error "expected a string" + +inductive LastUpdateStatusReasonCode where + | capacityProviderScalingLimitExceeded + | dependencyError + | disabledKMSKey + | disallowedByVpcEncryptionControl + | ec2RequestLimitExceeded + | efsioError + | efsMountConnectivityError + | efsMountFailure + | efsMountTimeout + | eniLimitExceeded + | functionError + | functionErrorExtensionInitError + | functionErrorInitResourceExhausted + | functionErrorInitTimeout + | functionErrorInvalidEntryPoint + | functionErrorInvalidWorkingDirectory + | functionErrorPermissionDenied + | functionErrorRuntimeInitError + | functionErrorTooManyExtensions + | imageAccessDenied + | imageDeleted + | incompatibleAcceleratorInstanceTypes + | insufficientCapacity + | insufficientRolePermissions + | internalError + | invalidConfiguration + | invalidImage + | invalidRuntime + | invalidSecurityGroup + | invalidStateKMSKey + | invalidSubnet + | invalidZipFileException + | kmsKeyAccessDenied + | kmsKeyNotFound + | serviceQuotaExceededException + | subnetOutOfIPAddresses + | vcpuLimitExceeded +deriving DecidableEq, Repr, Inhabited + +def LastUpdateStatusReasonCode.wire : LastUpdateStatusReasonCode → String + | .capacityProviderScalingLimitExceeded => "CapacityProviderScalingLimitExceeded" + | .dependencyError => "DependencyError" + | .disabledKMSKey => "DisabledKMSKey" + | .disallowedByVpcEncryptionControl => "DisallowedByVpcEncryptionControl" + | .ec2RequestLimitExceeded => "EC2RequestLimitExceeded" + | .efsioError => "EFSIOError" + | .efsMountConnectivityError => "EFSMountConnectivityError" + | .efsMountFailure => "EFSMountFailure" + | .efsMountTimeout => "EFSMountTimeout" + | .eniLimitExceeded => "EniLimitExceeded" + | .functionError => "FunctionError" + | .functionErrorExtensionInitError => "FunctionError.ExtensionInitError" + | .functionErrorInitResourceExhausted => "FunctionError.InitResourceExhausted" + | .functionErrorInitTimeout => "FunctionError.InitTimeout" + | .functionErrorInvalidEntryPoint => "FunctionError.InvalidEntryPoint" + | .functionErrorInvalidWorkingDirectory => "FunctionError.InvalidWorkingDirectory" + | .functionErrorPermissionDenied => "FunctionError.PermissionDenied" + | .functionErrorRuntimeInitError => "FunctionError.RuntimeInitError" + | .functionErrorTooManyExtensions => "FunctionError.TooManyExtensions" + | .imageAccessDenied => "ImageAccessDenied" + | .imageDeleted => "ImageDeleted" + | .incompatibleAcceleratorInstanceTypes => "IncompatibleAcceleratorInstanceTypes" + | .insufficientCapacity => "InsufficientCapacity" + | .insufficientRolePermissions => "InsufficientRolePermissions" + | .internalError => "InternalError" + | .invalidConfiguration => "InvalidConfiguration" + | .invalidImage => "InvalidImage" + | .invalidRuntime => "InvalidRuntime" + | .invalidSecurityGroup => "InvalidSecurityGroup" + | .invalidStateKMSKey => "InvalidStateKMSKey" + | .invalidSubnet => "InvalidSubnet" + | .invalidZipFileException => "InvalidZipFileException" + | .kmsKeyAccessDenied => "KMSKeyAccessDenied" + | .kmsKeyNotFound => "KMSKeyNotFound" + | .serviceQuotaExceededException => "ServiceQuotaExceededException" + | .subnetOutOfIPAddresses => "SubnetOutOfIPAddresses" + | .vcpuLimitExceeded => "VcpuLimitExceeded" + +def LastUpdateStatusReasonCode.wireValues : List (String × LastUpdateStatusReasonCode) := [ + ("CapacityProviderScalingLimitExceeded", .capacityProviderScalingLimitExceeded), + ("DependencyError", .dependencyError), + ("DisabledKMSKey", .disabledKMSKey), + ("DisallowedByVpcEncryptionControl", .disallowedByVpcEncryptionControl), + ("EC2RequestLimitExceeded", .ec2RequestLimitExceeded), + ("EFSIOError", .efsioError), + ("EFSMountConnectivityError", .efsMountConnectivityError), + ("EFSMountFailure", .efsMountFailure), + ("EFSMountTimeout", .efsMountTimeout), + ("EniLimitExceeded", .eniLimitExceeded), + ("FunctionError", .functionError), + ("FunctionError.ExtensionInitError", .functionErrorExtensionInitError), + ("FunctionError.InitResourceExhausted", .functionErrorInitResourceExhausted), + ("FunctionError.InitTimeout", .functionErrorInitTimeout), + ("FunctionError.InvalidEntryPoint", .functionErrorInvalidEntryPoint), + ("FunctionError.InvalidWorkingDirectory", .functionErrorInvalidWorkingDirectory), + ("FunctionError.PermissionDenied", .functionErrorPermissionDenied), + ("FunctionError.RuntimeInitError", .functionErrorRuntimeInitError), + ("FunctionError.TooManyExtensions", .functionErrorTooManyExtensions), + ("ImageAccessDenied", .imageAccessDenied), + ("ImageDeleted", .imageDeleted), + ("IncompatibleAcceleratorInstanceTypes", .incompatibleAcceleratorInstanceTypes), + ("InsufficientCapacity", .insufficientCapacity), + ("InsufficientRolePermissions", .insufficientRolePermissions), + ("InternalError", .internalError), + ("InvalidConfiguration", .invalidConfiguration), + ("InvalidImage", .invalidImage), + ("InvalidRuntime", .invalidRuntime), + ("InvalidSecurityGroup", .invalidSecurityGroup), + ("InvalidStateKMSKey", .invalidStateKMSKey), + ("InvalidSubnet", .invalidSubnet), + ("InvalidZipFileException", .invalidZipFileException), + ("KMSKeyAccessDenied", .kmsKeyAccessDenied), + ("KMSKeyNotFound", .kmsKeyNotFound), + ("ServiceQuotaExceededException", .serviceQuotaExceededException), + ("SubnetOutOfIPAddresses", .subnetOutOfIPAddresses), + ("VcpuLimitExceeded", .vcpuLimitExceeded)] + +def LastUpdateStatusReasonCode.ofWire (text : String) : Except String LastUpdateStatusReasonCode := + match List.find? (·.1 == text) LastUpdateStatusReasonCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LastUpdateStatusReasonCode has no value {text}" + +instance : Key LastUpdateStatusReasonCode := ⟨LastUpdateStatusReasonCode.wire, LastUpdateStatusReasonCode.ofWire⟩ + +instance : Shape LastUpdateStatusReasonCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LastUpdateStatusReasonCode.ofWire text + | _ => .error "expected a string" + +/-- An Lambda layer . -/ +structure Layer where + /-- The Amazon Resource Name (ARN) of the function layer. -/ + arn : Option String := none + /-- The size of the layer archive in bytes. -/ + codeSize : Option Int := none + /-- The Amazon Resource Name (ARN) of a signing job. -/ + signingJobArn : Option String := none + /-- The Amazon Resource Name (ARN) for a signing profile version. -/ + signingProfileVersionArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Layer where + schema := .struct "Layer" [({ name := "Arn" }, .string), + ({ name := "CodeSize" }, .int), + ({ name := "SigningJobArn" }, .string), + ({ name := "SigningProfileVersionArn" }, .string)] + toValue x := record [putOpt "Arn" x.arn, putOpt "CodeSize" x.codeSize, putOpt "SigningJobArn" x.signingJobArn, putOpt "SigningProfileVersionArn" x.signingProfileVersionArn] + ofValue v := do + let arn ← v.opt "Arn" + let codeSize ← v.opt "CodeSize" + let signingJobArn ← v.opt "SigningJobArn" + let signingProfileVersionArn ← v.opt "SigningProfileVersionArn" + return { arn, codeSize, signingJobArn, signingProfileVersionArn } + +structure ListAliasesRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- Specify a function version to only list aliases that invoke that version. -/ + functionVersion : Option String := none + /-- Specify the pagination token that's returned by a previous request to retrieve the next page of results. -/ + marker : Option String := none + /-- Limit the number of aliases returned. -/ + maxItems : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListAliasesRequest where + schema := .struct "ListAliasesRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "FunctionVersion", location := .query "FunctionVersion" }, .string), + ({ name := "Marker", location := .query "Marker" }, .string), + ({ name := "MaxItems", location := .query "MaxItems" }, .int)] + toValue x := record [put "FunctionName" x.functionName, putOpt "FunctionVersion" x.functionVersion, putOpt "Marker" x.marker, putOpt "MaxItems" x.maxItems] + ofValue v := do + let functionName ← v.req "FunctionName" + let functionVersion ← v.opt "FunctionVersion" + let marker ← v.opt "Marker" + let maxItems ← v.opt "MaxItems" + return { functionName, functionVersion, marker, maxItems } + +structure ListCodeSigningConfigsRequest where + /-- Specify the pagination token that's returned by a previous request to retrieve the next page of results. -/ + marker : Option String := none + /-- Maximum number of items to return. -/ + maxItems : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListCodeSigningConfigsRequest where + schema := .struct "ListCodeSigningConfigsRequest" [({ name := "Marker", location := .query "Marker" }, .string), + ({ name := "MaxItems", location := .query "MaxItems" }, .int)] + toValue x := record [putOpt "Marker" x.marker, putOpt "MaxItems" x.maxItems] + ofValue v := do + let marker ← v.opt "Marker" + let maxItems ← v.opt "MaxItems" + return { marker, maxItems } + +structure ListEventSourceMappingsRequest where + /-- The Amazon Resource Name (ARN) of the event source. -/ + eventSourceArn : Option String := none + /-- The name or ARN of the Lambda function. -/ + functionName : Option String := none + /-- A pagination token returned by a previous call. -/ + marker : Option String := none + /-- The maximum number of event source mappings to return. -/ + maxItems : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListEventSourceMappingsRequest where + schema := .struct "ListEventSourceMappingsRequest" [({ name := "EventSourceArn", location := .query "EventSourceArn" }, .string), + ({ name := "FunctionName", location := .query "FunctionName" }, .string), + ({ name := "Marker", location := .query "Marker" }, .string), + ({ name := "MaxItems", location := .query "MaxItems" }, .int)] + toValue x := record [putOpt "EventSourceArn" x.eventSourceArn, putOpt "FunctionName" x.functionName, putOpt "Marker" x.marker, putOpt "MaxItems" x.maxItems] + ofValue v := do + let eventSourceArn ← v.opt "EventSourceArn" + let functionName ← v.opt "FunctionName" + let marker ← v.opt "Marker" + let maxItems ← v.opt "MaxItems" + return { eventSourceArn, functionName, marker, maxItems } + +structure ListFunctionEventInvokeConfigsRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- Specify the pagination token that's returned by a previous request to retrieve the next page of results. -/ + marker : Option String := none + /-- The maximum number of configurations to return. -/ + maxItems : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListFunctionEventInvokeConfigsRequest where + schema := .struct "ListFunctionEventInvokeConfigsRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Marker", location := .query "Marker" }, .string), + ({ name := "MaxItems", location := .query "MaxItems" }, .int)] + toValue x := record [put "FunctionName" x.functionName, putOpt "Marker" x.marker, putOpt "MaxItems" x.maxItems] + ofValue v := do + let functionName ← v.req "FunctionName" + let marker ← v.opt "Marker" + let maxItems ← v.opt "MaxItems" + return { functionName, marker, maxItems } + +structure ListFunctionUrlConfigsRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- Specify the pagination token that's returned by a previous request to retrieve the next page of results. -/ + marker : Option String := none + /-- The maximum number of function URLs to return in the response. -/ + maxItems : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListFunctionUrlConfigsRequest where + schema := .struct "ListFunctionUrlConfigsRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Marker", location := .query "Marker" }, .string), + ({ name := "MaxItems", location := .query "MaxItems" }, .int)] + toValue x := record [put "FunctionName" x.functionName, putOpt "Marker" x.marker, putOpt "MaxItems" x.maxItems] + ofValue v := do + let functionName ← v.req "FunctionName" + let marker ← v.opt "Marker" + let maxItems ← v.opt "MaxItems" + return { functionName, marker, maxItems } + +structure ListFunctionVersionsByCapacityProviderRequest where + /-- The name of the capacity provider to list function versions for. -/ + capacityProviderName : String + /-- Specify the pagination token that's returned by a previous request to retrieve the next page of results. -/ + marker : Option String := none + /-- The maximum number of function versions to return in the response. -/ + maxItems : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListFunctionVersionsByCapacityProviderRequest where + schema := .struct "ListFunctionVersionsByCapacityProviderRequest" [({ name := "CapacityProviderName", required := true, location := .label }, .string), + ({ name := "Marker", location := .query "Marker" }, .string), + ({ name := "MaxItems", location := .query "MaxItems" }, .int)] + toValue x := record [put "CapacityProviderName" x.capacityProviderName, putOpt "Marker" x.marker, putOpt "MaxItems" x.maxItems] + ofValue v := do + let capacityProviderName ← v.req "CapacityProviderName" + let marker ← v.opt "Marker" + let maxItems ← v.opt "MaxItems" + return { capacityProviderName, marker, maxItems } + +structure ListFunctionsByCodeSigningConfigRequest where + /-- The The Amazon Resource Name (ARN) of the code signing configuration. -/ + codeSigningConfigArn : String + /-- Specify the pagination token that's returned by a previous request to retrieve the next page of results. -/ + marker : Option String := none + /-- Maximum number of items to return. -/ + maxItems : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListFunctionsByCodeSigningConfigRequest where + schema := .struct "ListFunctionsByCodeSigningConfigRequest" [({ name := "CodeSigningConfigArn", required := true, location := .label }, .string), + ({ name := "Marker", location := .query "Marker" }, .string), + ({ name := "MaxItems", location := .query "MaxItems" }, .int)] + toValue x := record [put "CodeSigningConfigArn" x.codeSigningConfigArn, putOpt "Marker" x.marker, putOpt "MaxItems" x.maxItems] + ofValue v := do + let codeSigningConfigArn ← v.req "CodeSigningConfigArn" + let marker ← v.opt "Marker" + let maxItems ← v.opt "MaxItems" + return { codeSigningConfigArn, marker, maxItems } + +structure ListFunctionsByCodeSigningConfigResponse where + /-- The function ARNs. -/ + functionArns : Option (List String) := none + /-- The pagination token that's included if more results are available. -/ + nextMarker : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListFunctionsByCodeSigningConfigResponse where + schema := .struct "ListFunctionsByCodeSigningConfigResponse" [({ name := "FunctionArns" }, (.list .string "member")), + ({ name := "NextMarker" }, .string)] + toValue x := record [putOpt "FunctionArns" x.functionArns, putOpt "NextMarker" x.nextMarker] + ofValue v := do + let functionArns ← v.opt "FunctionArns" + let nextMarker ← v.opt "NextMarker" + return { functionArns, nextMarker } + +structure ListProvisionedConcurrencyConfigsRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- Specify the pagination token that's returned by a previous request to retrieve the next page of results. -/ + marker : Option String := none + /-- Specify a number to limit the number of configurations returned. -/ + maxItems : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListProvisionedConcurrencyConfigsRequest where + schema := .struct "ListProvisionedConcurrencyConfigsRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Marker", location := .query "Marker" }, .string), + ({ name := "MaxItems", location := .query "MaxItems" }, .int)] + toValue x := record [put "FunctionName" x.functionName, putOpt "Marker" x.marker, putOpt "MaxItems" x.maxItems] + ofValue v := do + let functionName ← v.req "FunctionName" + let marker ← v.opt "Marker" + let maxItems ← v.opt "MaxItems" + return { functionName, marker, maxItems } + +structure ListTagsRequest where + /-- The resource's Amazon Resource Name (ARN). -/ + resource : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListTagsRequest where + schema := .struct "ListTagsRequest" [({ name := "Resource", required := true, location := .label }, .string)] + toValue x := record [put "Resource" x.resource] + ofValue v := do + let resource ← v.req "Resource" + return { resource } + +structure ListTagsResponse where + /-- The function's tags. -/ + tags : Option (Dict String String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListTagsResponse where + schema := .struct "ListTagsResponse" [({ name := "Tags" }, (.map .string .string "key" "value"))] + toValue x := record [putOpt "Tags" x.tags] + ofValue v := do + let tags ← v.opt "Tags" + return { tags } + +structure ListVersionsByFunctionRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- Specify the pagination token that's returned by a previous request to retrieve the next page of results. -/ + marker : Option String := none + /-- The maximum number of versions to return. -/ + maxItems : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListVersionsByFunctionRequest where + schema := .struct "ListVersionsByFunctionRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Marker", location := .query "Marker" }, .string), + ({ name := "MaxItems", location := .query "MaxItems" }, .int)] + toValue x := record [put "FunctionName" x.functionName, putOpt "Marker" x.marker, putOpt "MaxItems" x.maxItems] + ofValue v := do + let functionName ← v.req "FunctionName" + let marker ← v.opt "Marker" + let maxItems ← v.opt "MaxItems" + return { functionName, marker, maxItems } + +inductive LogFormat where + | json + | text +deriving DecidableEq, Repr, Inhabited + +def LogFormat.wire : LogFormat → String + | .json => "JSON" + | .text => "Text" + +def LogFormat.wireValues : List (String × LogFormat) := [ + ("JSON", .json), + ("Text", .text)] + +def LogFormat.ofWire (text : String) : Except String LogFormat := + match List.find? (·.1 == text) LogFormat.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LogFormat has no value {text}" + +instance : Key LogFormat := ⟨LogFormat.wire, LogFormat.ofWire⟩ + +instance : Shape LogFormat where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LogFormat.ofWire text + | _ => .error "expected a string" + +inductive LogType where + | none + | tail +deriving DecidableEq, Repr, Inhabited + +def LogType.wire : LogType → String + | .none => "None" + | .tail => "Tail" + +def LogType.wireValues : List (String × LogType) := [ + ("None", .none), + ("Tail", .tail)] + +def LogType.ofWire (text : String) : Except String LogType := + match List.find? (·.1 == text) LogType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LogType has no value {text}" + +instance : Key LogType := ⟨LogType.wire, LogType.ofWire⟩ + +instance : Shape LogType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LogType.ofWire text + | _ => .error "expected a string" + +/-- The Lambda function doesn't support the invocation mode requested. -/ +structure ModeNotSupportedException where + /-- The exception type. -/ + type : Option String := none + /-- The exception message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ModeNotSupportedException where + schema := .struct "ModeNotSupportedException" [({ name := "Type" }, .string), + ({ name := "message" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "message" x.message] + ofValue v := do + let type ← v.opt "Type" + let message ← v.opt "message" + return { type, message } + +/-- The function has no published versions available. -/ +structure NoPublishedVersionException where + message : Option String := none + /-- The exception type. -/ + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NoPublishedVersionException where + schema := .struct "NoPublishedVersionException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- A destination for events that failed processing. -/ +structure OnFailure where + /-- The Amazon Resource Name (ARN) of the destination resource. -/ + destination : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape OnFailure where + schema := .struct "OnFailure" [({ name := "Destination" }, .string)] + toValue x := record [putOpt "Destination" x.destination] + ofValue v := do + let destination ← v.opt "Destination" + return { destination } + +/-- A destination for events that were processed successfully. -/ +structure OnSuccess where + /-- The Amazon Resource Name (ARN) of the destination resource. -/ + destination : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape OnSuccess where + schema := .struct "OnSuccess" [({ name := "Destination" }, .string)] + toValue x := record [putOpt "Destination" x.destination] + ofValue v := do + let destination ← v.opt "Destination" + return { destination } + +inductive OperationAction where + | cancel + | fail + | retry + | start + | succeed +deriving DecidableEq, Repr, Inhabited + +def OperationAction.wire : OperationAction → String + | .cancel => "CANCEL" + | .fail => "FAIL" + | .retry => "RETRY" + | .start => "START" + | .succeed => "SUCCEED" + +def OperationAction.wireValues : List (String × OperationAction) := [ + ("CANCEL", .cancel), + ("FAIL", .fail), + ("RETRY", .retry), + ("START", .start), + ("SUCCEED", .succeed)] + +def OperationAction.ofWire (text : String) : Except String OperationAction := + match List.find? (·.1 == text) OperationAction.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"OperationAction has no value {text}" + +instance : Key OperationAction := ⟨OperationAction.wire, OperationAction.ofWire⟩ + +instance : Shape OperationAction where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => OperationAction.ofWire text + | _ => .error "expected a string" + +inductive OperationStatus where + | cancelled + | failed + | pending + | ready + | started + | stopped + | succeeded + | timeD_OUT +deriving DecidableEq, Repr, Inhabited + +def OperationStatus.wire : OperationStatus → String + | .cancelled => "CANCELLED" + | .failed => "FAILED" + | .pending => "PENDING" + | .ready => "READY" + | .started => "STARTED" + | .stopped => "STOPPED" + | .succeeded => "SUCCEEDED" + | .timeD_OUT => "TIMED_OUT" + +def OperationStatus.wireValues : List (String × OperationStatus) := [ + ("CANCELLED", .cancelled), + ("FAILED", .failed), + ("PENDING", .pending), + ("READY", .ready), + ("STARTED", .started), + ("STOPPED", .stopped), + ("SUCCEEDED", .succeeded), + ("TIMED_OUT", .timeD_OUT)] + +def OperationStatus.ofWire (text : String) : Except String OperationStatus := + match List.find? (·.1 == text) OperationStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"OperationStatus has no value {text}" + +instance : Key OperationStatus := ⟨OperationStatus.wire, OperationStatus.ofWire⟩ + +instance : Shape OperationStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => OperationStatus.ofWire text + | _ => .error "expected a string" + +inductive OperationType where + | callback + | chaineD_INVOKE + | context + | execution + | step + | wait +deriving DecidableEq, Repr, Inhabited + +def OperationType.wire : OperationType → String + | .callback => "CALLBACK" + | .chaineD_INVOKE => "CHAINED_INVOKE" + | .context => "CONTEXT" + | .execution => "EXECUTION" + | .step => "STEP" + | .wait => "WAIT" + +def OperationType.wireValues : List (String × OperationType) := [ + ("CALLBACK", .callback), + ("CHAINED_INVOKE", .chaineD_INVOKE), + ("CONTEXT", .context), + ("EXECUTION", .execution), + ("STEP", .step), + ("WAIT", .wait)] + +def OperationType.ofWire (text : String) : Except String OperationType := + match List.find? (·.1 == text) OperationType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"OperationType has no value {text}" + +instance : Key OperationType := ⟨OperationType.wire, OperationType.ofWire⟩ + +instance : Shape OperationType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => OperationType.ofWire text + | _ => .error "expected a string" + +inductive PackageType where + | image + | zip +deriving DecidableEq, Repr, Inhabited + +def PackageType.wire : PackageType → String + | .image => "Image" + | .zip => "Zip" + +def PackageType.wireValues : List (String × PackageType) := [ + ("Image", .image), + ("Zip", .zip)] + +def PackageType.ofWire (text : String) : Except String PackageType := + match List.find? (·.1 == text) PackageType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"PackageType has no value {text}" + +instance : Key PackageType := ⟨PackageType.wire, PackageType.ofWire⟩ + +instance : Shape PackageType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => PackageType.ofWire text + | _ => .error "expected a string" + +/-- Details about a durable execution that is pausing or paused. -/ +structure PauseDetails where + /-- Specifies whether the pause also pauses the execution timeout. -/ + executionTimeoutPaused : Bool + /-- The date and time when you requested the pause, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + pauseRequestTimestamp : Timestamp + /-- The reason that you provided when you paused the execution. -/ + reason : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PauseDetails where + schema := .struct "PauseDetails" [({ name := "ExecutionTimeoutPaused", required := true }, .bool), + ({ name := "PauseRequestTimestamp", required := true }, (.time none)), + ({ name := "Reason" }, .string)] + toValue x := record [put "ExecutionTimeoutPaused" x.executionTimeoutPaused, put "PauseRequestTimestamp" x.pauseRequestTimestamp, putOpt "Reason" x.reason] + ofValue v := do + let executionTimeoutPaused ← v.req "ExecutionTimeoutPaused" + let pauseRequestTimestamp ← v.req "PauseRequestTimestamp" + let reason ← v.opt "Reason" + return { executionTimeoutPaused, pauseRequestTimestamp, reason } + +structure PauseDurableExecutionRequest where + /-- A unique, case-sensitive identifier that you provide so that the request completes no more than one time. -/ + clientToken : Option String := none + /-- The Amazon Resource Name (ARN) of the durable execution. -/ + durableExecutionArn : String + /-- Specifies whether to pause the execution timeout while the execution is paused. -/ + executionTimeoutPaused : Option Bool := none + /-- A description of why you're pausing the execution. -/ + reason : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PauseDurableExecutionRequest where + schema := .struct "PauseDurableExecutionRequest" [({ name := "ClientToken" }, .string), + ({ name := "DurableExecutionArn", required := true, location := .label }, .string), + ({ name := "ExecutionTimeoutPaused" }, .bool), + ({ name := "Reason" }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, put "DurableExecutionArn" x.durableExecutionArn, putOpt "ExecutionTimeoutPaused" x.executionTimeoutPaused, putOpt "Reason" x.reason] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let durableExecutionArn ← v.req "DurableExecutionArn" + let executionTimeoutPaused ← v.opt "ExecutionTimeoutPaused" + let reason ← v.opt "Reason" + return { clientToken, durableExecutionArn, executionTimeoutPaused, reason } + +structure PauseDurableExecutionResponse where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape PauseDurableExecutionResponse where + schema := .struct "PauseDurableExecutionResponse" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- The permissions policy for the resource is too large. -/ +structure PolicyLengthExceededException where + type : Option String := none + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PolicyLengthExceededException where + schema := .struct "PolicyLengthExceededException" [({ name := "Type" }, .string), + ({ name := "message" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "message" x.message] + ofValue v := do + let type ← v.opt "Type" + let message ← v.opt "message" + return { type, message } + +/-- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. -/ +structure PreconditionFailedException where + /-- The exception type. -/ + type : Option String := none + /-- The exception message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PreconditionFailedException where + schema := .struct "PreconditionFailedException" [({ name := "Type" }, .string), + ({ name := "message" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "message" x.message] + ofValue v := do + let type ← v.opt "Type" + let message ← v.opt "message" + return { type, message } + +inductive PropagateTagsMode where + | explicit + | none +deriving DecidableEq, Repr, Inhabited + +def PropagateTagsMode.wire : PropagateTagsMode → String + | .explicit => "Explicit" + | .none => "None" + +def PropagateTagsMode.wireValues : List (String × PropagateTagsMode) := [ + ("Explicit", .explicit), + ("None", .none)] + +def PropagateTagsMode.ofWire (text : String) : Except String PropagateTagsMode := + match List.find? (·.1 == text) PropagateTagsMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"PropagateTagsMode has no value {text}" + +instance : Key PropagateTagsMode := ⟨PropagateTagsMode.wire, PropagateTagsMode.ofWire⟩ + +instance : Shape PropagateTagsMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => PropagateTagsMode.ofWire text + | _ => .error "expected a string" + +/-- The specified configuration does not exist. -/ +structure ProvisionedConcurrencyConfigNotFoundException where + type : Option String := none + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ProvisionedConcurrencyConfigNotFoundException where + schema := .struct "ProvisionedConcurrencyConfigNotFoundException" [({ name := "Type" }, .string), + ({ name := "message" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "message" x.message] + ofValue v := do + let type ← v.opt "Type" + let message ← v.opt "message" + return { type, message } + +inductive ProvisionedConcurrencyStatusEnum where + | failed + | iN_PROGRESS + | ready +deriving DecidableEq, Repr, Inhabited + +def ProvisionedConcurrencyStatusEnum.wire : ProvisionedConcurrencyStatusEnum → String + | .failed => "FAILED" + | .iN_PROGRESS => "IN_PROGRESS" + | .ready => "READY" + +def ProvisionedConcurrencyStatusEnum.wireValues : List (String × ProvisionedConcurrencyStatusEnum) := [ + ("FAILED", .failed), + ("IN_PROGRESS", .iN_PROGRESS), + ("READY", .ready)] + +def ProvisionedConcurrencyStatusEnum.ofWire (text : String) : Except String ProvisionedConcurrencyStatusEnum := + match List.find? (·.1 == text) ProvisionedConcurrencyStatusEnum.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ProvisionedConcurrencyStatusEnum has no value {text}" + +instance : Key ProvisionedConcurrencyStatusEnum := ⟨ProvisionedConcurrencyStatusEnum.wire, ProvisionedConcurrencyStatusEnum.ofWire⟩ + +instance : Shape ProvisionedConcurrencyStatusEnum where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ProvisionedConcurrencyStatusEnum.ofWire text + | _ => .error "expected a string" + +/-- The provisioned mode configuration for the event source. -/ +structure ProvisionedPollerConfig where + /-- The maximum number of event pollers this event source can scale up to. -/ + maximumPollers : Option Int := none + /-- The minimum number of event pollers this event source can scale down to. -/ + minimumPollers : Option Int := none + /-- (Amazon MSK and self-managed Apache Kafka) The name of the provisioned poller group. -/ + pollerGroupName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ProvisionedPollerConfig where + schema := .struct "ProvisionedPollerConfig" [({ name := "MaximumPollers" }, .int), + ({ name := "MinimumPollers" }, .int), + ({ name := "PollerGroupName" }, .string)] + toValue x := record [putOpt "MaximumPollers" x.maximumPollers, putOpt "MinimumPollers" x.minimumPollers, putOpt "PollerGroupName" x.pollerGroupName] + ofValue v := do + let maximumPollers ← v.opt "MaximumPollers" + let minimumPollers ← v.opt "MinimumPollers" + let pollerGroupName ← v.opt "PollerGroupName" + return { maximumPollers, minimumPollers, pollerGroupName } + +/-- The resource-based policy you tried to add to the Lambda resource would grant public access to it, which isn't allowed. -/ +structure PublicPolicyException where + /-- The exception message. -/ + message : Option String := none + /-- The exception type. -/ + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PublicPolicyException where + schema := .struct "PublicPolicyException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +structure PutFunctionCodeSigningConfigRequest where + /-- The The Amazon Resource Name (ARN) of the code signing configuration. -/ + codeSigningConfigArn : String + /-- The name or ARN of the Lambda function. -/ + functionName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutFunctionCodeSigningConfigRequest where + schema := .struct "PutFunctionCodeSigningConfigRequest" [({ name := "CodeSigningConfigArn", required := true }, .string), + ({ name := "FunctionName", required := true, location := .label }, .string)] + toValue x := record [put "CodeSigningConfigArn" x.codeSigningConfigArn, put "FunctionName" x.functionName] + ofValue v := do + let codeSigningConfigArn ← v.req "CodeSigningConfigArn" + let functionName ← v.req "FunctionName" + return { codeSigningConfigArn, functionName } + +structure PutFunctionCodeSigningConfigResponse where + /-- The The Amazon Resource Name (ARN) of the code signing configuration. -/ + codeSigningConfigArn : String + /-- The name or ARN of the Lambda function. -/ + functionName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutFunctionCodeSigningConfigResponse where + schema := .struct "PutFunctionCodeSigningConfigResponse" [({ name := "CodeSigningConfigArn", required := true }, .string), + ({ name := "FunctionName", required := true }, .string)] + toValue x := record [put "CodeSigningConfigArn" x.codeSigningConfigArn, put "FunctionName" x.functionName] + ofValue v := do + let codeSigningConfigArn ← v.req "CodeSigningConfigArn" + let functionName ← v.req "FunctionName" + return { codeSigningConfigArn, functionName } + +structure PutFunctionConcurrencyRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- The number of simultaneous executions to reserve for the function. -/ + reservedConcurrentExecutions : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutFunctionConcurrencyRequest where + schema := .struct "PutFunctionConcurrencyRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "ReservedConcurrentExecutions", required := true }, .int)] + toValue x := record [put "FunctionName" x.functionName, put "ReservedConcurrentExecutions" x.reservedConcurrentExecutions] + ofValue v := do + let functionName ← v.req "FunctionName" + let reservedConcurrentExecutions ← v.req "ReservedConcurrentExecutions" + return { functionName, reservedConcurrentExecutions } + +structure PutProvisionedConcurrencyConfigRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- The amount of provisioned concurrency to allocate for the version or alias. -/ + provisionedConcurrentExecutions : Int + /-- The version number or alias name. -/ + qualifier : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutProvisionedConcurrencyConfigRequest where + schema := .struct "PutProvisionedConcurrencyConfigRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "ProvisionedConcurrentExecutions", required := true }, .int), + ({ name := "Qualifier", required := true, location := .query "Qualifier" }, .string)] + toValue x := record [put "FunctionName" x.functionName, put "ProvisionedConcurrentExecutions" x.provisionedConcurrentExecutions, put "Qualifier" x.qualifier] + ofValue v := do + let functionName ← v.req "FunctionName" + let provisionedConcurrentExecutions ← v.req "ProvisionedConcurrentExecutions" + let qualifier ← v.req "Qualifier" + return { functionName, provisionedConcurrentExecutions, qualifier } + +structure PutResourcePolicyRequest where + /-- The policy document you want to add to your Lambda resource. -/ + policy : String + /-- The Amazon Resource Name (ARN) of the Lambda resource you want to add the policy to. -/ + resourceArn : String + /-- The revision ID that the existing policy must match for the replacement to proceed. -/ + revisionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutResourcePolicyRequest where + schema := .struct "PutResourcePolicyRequest" [({ name := "Policy", required := true }, .string), + ({ name := "ResourceArn", required := true, location := .label }, .string), + ({ name := "RevisionId" }, .string)] + toValue x := record [put "Policy" x.policy, put "ResourceArn" x.resourceArn, putOpt "RevisionId" x.revisionId] + ofValue v := do + let policy ← v.req "Policy" + let resourceArn ← v.req "ResourceArn" + let revisionId ← v.opt "RevisionId" + return { policy, resourceArn, revisionId } + +structure PutResourcePolicyResponse where + /-- The resource-based policy that Lambda adds to the resource. -/ + policy : Option String := none + /-- The revision ID of the policy that Lambda adds to your Lambda resource. -/ + revisionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutResourcePolicyResponse where + schema := .struct "PutResourcePolicyResponse" [({ name := "Policy" }, .string), + ({ name := "RevisionId" }, .string)] + toValue x := record [putOpt "Policy" x.policy, putOpt "RevisionId" x.revisionId] + ofValue v := do + let policy ← v.opt "Policy" + let revisionId ← v.opt "RevisionId" + return { policy, revisionId } + +/-- Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation. -/ +structure RecursiveInvocationException where + /-- The exception message. -/ + message : Option String := none + /-- The exception type. -/ + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RecursiveInvocationException where + schema := .struct "RecursiveInvocationException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +inductive RecursiveLoop where + | allow + | terminate +deriving DecidableEq, Repr, Inhabited + +def RecursiveLoop.wire : RecursiveLoop → String + | .allow => "Allow" + | .terminate => "Terminate" + +def RecursiveLoop.wireValues : List (String × RecursiveLoop) := [ + ("Allow", .allow), + ("Terminate", .terminate)] + +def RecursiveLoop.ofWire (text : String) : Except String RecursiveLoop := + match List.find? (·.1 == text) RecursiveLoop.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RecursiveLoop has no value {text}" + +instance : Key RecursiveLoop := ⟨RecursiveLoop.wire, RecursiveLoop.ofWire⟩ + +instance : Shape RecursiveLoop where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RecursiveLoop.ofWire text + | _ => .error "expected a string" + +structure RemoveLayerVersionPermissionRequest where + /-- The name or Amazon Resource Name (ARN) of the layer. -/ + layerName : String + /-- Only update the policy if the revision ID matches the ID specified. -/ + revisionId : Option String := none + /-- The identifier that was specified when the statement was added. -/ + statementId : String + /-- The version number. -/ + versionNumber : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape RemoveLayerVersionPermissionRequest where + schema := .struct "RemoveLayerVersionPermissionRequest" [({ name := "LayerName", required := true, location := .label }, .string), + ({ name := "RevisionId", location := .query "RevisionId" }, .string), + ({ name := "StatementId", required := true, location := .label }, .string), + ({ name := "VersionNumber", required := true, location := .label }, .int)] + toValue x := record [put "LayerName" x.layerName, putOpt "RevisionId" x.revisionId, put "StatementId" x.statementId, put "VersionNumber" x.versionNumber] + ofValue v := do + let layerName ← v.req "LayerName" + let revisionId ← v.opt "RevisionId" + let statementId ← v.req "StatementId" + let versionNumber ← v.req "VersionNumber" + return { layerName, revisionId, statementId, versionNumber } + +structure RemovePermissionRequest where + /-- The name or ARN of the Lambda function, version, or alias. -/ + functionName : String + /-- Specify a version or alias to remove permissions from a published version of the function. -/ + qualifier : Option String := none + /-- Update the policy only if the revision ID matches the ID that's specified. -/ + revisionId : Option String := none + /-- Statement ID of the permission to remove. -/ + statementId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape RemovePermissionRequest where + schema := .struct "RemovePermissionRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Qualifier", location := .query "Qualifier" }, .string), + ({ name := "RevisionId", location := .query "RevisionId" }, .string), + ({ name := "StatementId", required := true, location := .label }, .string)] + toValue x := record [put "FunctionName" x.functionName, putOpt "Qualifier" x.qualifier, putOpt "RevisionId" x.revisionId, put "StatementId" x.statementId] + ofValue v := do + let functionName ← v.req "FunctionName" + let qualifier ← v.opt "Qualifier" + let revisionId ← v.opt "RevisionId" + let statementId ← v.req "StatementId" + return { functionName, qualifier, revisionId, statementId } + +/-- The request payload exceeded the Invoke request body JSON input quota. -/ +structure RequestTooLargeException where + type : Option String := none + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RequestTooLargeException where + schema := .struct "RequestTooLargeException" [({ name := "Type" }, .string), + ({ name := "message" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "message" x.message] + ofValue v := do + let type ← v.opt "Type" + let message ← v.opt "message" + return { type, message } + +/-- Details about the resolved Amazon S3 object that contains a function's deployment package. -/ +structure ResolvedS3Object where + /-- The Amazon S3 bucket that contains the deployment package. -/ + s3Bucket : Option String := none + /-- The Amazon S3 key of the deployment package. -/ + s3Key : Option String := none + /-- The version of the deployment package object. -/ + s3ObjectVersion : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResolvedS3Object where + schema := .struct "ResolvedS3Object" [({ name := "S3Bucket" }, .string), + ({ name := "S3Key" }, .string), + ({ name := "S3ObjectVersion" }, .string)] + toValue x := record [putOpt "S3Bucket" x.s3Bucket, putOpt "S3Key" x.s3Key, putOpt "S3ObjectVersion" x.s3ObjectVersion] + ofValue v := do + let s3Bucket ← v.opt "S3Bucket" + let s3Key ← v.opt "S3Key" + let s3ObjectVersion ← v.opt "S3ObjectVersion" + return { s3Bucket, s3Key, s3ObjectVersion } + +/-- The resource already exists, or another operation is in progress. -/ +structure ResourceConflictException where + /-- The exception type. -/ + type : Option String := none + /-- The exception message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResourceConflictException where + schema := .struct "ResourceConflictException" [({ name := "Type" }, .string), + ({ name := "message" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "message" x.message] + ofValue v := do + let type ← v.opt "Type" + let message ← v.opt "message" + return { type, message } + +/-- The operation conflicts with the resource's availability. -/ +structure ResourceInUseException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResourceInUseException where + schema := .struct "ResourceInUseException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- The resource specified in the request does not exist. -/ +structure ResourceNotFoundException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResourceNotFoundException where + schema := .struct "ResourceNotFoundException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- The function is inactive and its VPC connection is no longer available. -/ +structure ResourceNotReadyException where + /-- The exception type. -/ + type : Option String := none + /-- The exception message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResourceNotReadyException where + schema := .struct "ResourceNotReadyException" [({ name := "Type" }, .string), + ({ name := "message" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "message" x.message] + ofValue v := do + let type ← v.opt "Type" + let message ← v.opt "message" + return { type, message } + +inductive ResponseStreamingInvocationType where + | dryRun + | requestResponse +deriving DecidableEq, Repr, Inhabited + +def ResponseStreamingInvocationType.wire : ResponseStreamingInvocationType → String + | .dryRun => "DryRun" + | .requestResponse => "RequestResponse" + +def ResponseStreamingInvocationType.wireValues : List (String × ResponseStreamingInvocationType) := [ + ("DryRun", .dryRun), + ("RequestResponse", .requestResponse)] + +def ResponseStreamingInvocationType.ofWire (text : String) : Except String ResponseStreamingInvocationType := + match List.find? (·.1 == text) ResponseStreamingInvocationType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ResponseStreamingInvocationType has no value {text}" + +instance : Key ResponseStreamingInvocationType := ⟨ResponseStreamingInvocationType.wire, ResponseStreamingInvocationType.ofWire⟩ + +instance : Shape ResponseStreamingInvocationType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ResponseStreamingInvocationType.ofWire text + | _ => .error "expected a string" + +structure ResumeDurableExecutionRequest where + /-- A unique, case-sensitive identifier that you provide so that the request completes no more than one time. -/ + clientToken : Option String := none + /-- The Amazon Resource Name (ARN) of the durable execution. -/ + durableExecutionArn : String + /-- A description of why you're resuming the execution. -/ + reason : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResumeDurableExecutionRequest where + schema := .struct "ResumeDurableExecutionRequest" [({ name := "ClientToken" }, .string), + ({ name := "DurableExecutionArn", required := true, location := .label }, .string), + ({ name := "Reason" }, .string)] + toValue x := record [putOpt "ClientToken" x.clientToken, put "DurableExecutionArn" x.durableExecutionArn, putOpt "Reason" x.reason] + ofValue v := do + let clientToken ← v.opt "ClientToken" + let durableExecutionArn ← v.req "DurableExecutionArn" + let reason ← v.opt "Reason" + return { clientToken, durableExecutionArn, reason } + +structure ResumeDurableExecutionResponse where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResumeDurableExecutionResponse where + schema := .struct "ResumeDurableExecutionResponse" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- Information about retry attempts for an operation. -/ +structure RetryDetails where + /-- The current attempt number for this operation. -/ + currentAttempt : Option Int := none + /-- The delay before the next retry attempt, in seconds. -/ + nextAttemptDelaySeconds : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RetryDetails where + schema := .struct "RetryDetails" [({ name := "CurrentAttempt" }, .int), + ({ name := "NextAttemptDelaySeconds" }, .int)] + toValue x := record [putOpt "CurrentAttempt" x.currentAttempt, putOpt "NextAttemptDelaySeconds" x.nextAttemptDelaySeconds] + ofValue v := do + let currentAttempt ← v.opt "CurrentAttempt" + let nextAttemptDelaySeconds ← v.opt "NextAttemptDelaySeconds" + return { currentAttempt, nextAttemptDelaySeconds } + +inductive Runtime where + | custom + | dotnet10 + | dotnet6 + | dotnet8 + | dotnetcore10 + | dotnetcore20 + | dotnetcore21 + | dotnetcore31 + | go1x + | java11 + | java11al2023 + | java17 + | java17al2023 + | java21 + | java25 + | java8 + | java8al2 + | java8al2023 + | nodejs + | nodejs10x + | nodejs12x + | nodejs14x + | nodejs16x + | nodejs18x + | nodejs20x + | nodejs22x + | nodejs24x + | nodejs26x + | nodejs43 + | nodejs43edge + | nodejs610 + | nodejs810 + | provided + | providedal2 + | providedal2023 + | python27 + | python310 + | python311 + | python312 + | python313 + | python314 + | python315 + | python36 + | python37 + | python38 + | python39 + | ruby25 + | ruby27 + | ruby32 + | ruby33 + | ruby34 + | ruby40 +deriving DecidableEq, Repr, Inhabited + +def Runtime.wire : Runtime → String + | .custom => "custom" + | .dotnet10 => "dotnet10" + | .dotnet6 => "dotnet6" + | .dotnet8 => "dotnet8" + | .dotnetcore10 => "dotnetcore1.0" + | .dotnetcore20 => "dotnetcore2.0" + | .dotnetcore21 => "dotnetcore2.1" + | .dotnetcore31 => "dotnetcore3.1" + | .go1x => "go1.x" + | .java11 => "java11" + | .java11al2023 => "java11.al2023" + | .java17 => "java17" + | .java17al2023 => "java17.al2023" + | .java21 => "java21" + | .java25 => "java25" + | .java8 => "java8" + | .java8al2 => "java8.al2" + | .java8al2023 => "java8.al2023" + | .nodejs => "nodejs" + | .nodejs10x => "nodejs10.x" + | .nodejs12x => "nodejs12.x" + | .nodejs14x => "nodejs14.x" + | .nodejs16x => "nodejs16.x" + | .nodejs18x => "nodejs18.x" + | .nodejs20x => "nodejs20.x" + | .nodejs22x => "nodejs22.x" + | .nodejs24x => "nodejs24.x" + | .nodejs26x => "nodejs26.x" + | .nodejs43 => "nodejs4.3" + | .nodejs43edge => "nodejs4.3-edge" + | .nodejs610 => "nodejs6.10" + | .nodejs810 => "nodejs8.10" + | .provided => "provided" + | .providedal2 => "provided.al2" + | .providedal2023 => "provided.al2023" + | .python27 => "python2.7" + | .python310 => "python3.10" + | .python311 => "python3.11" + | .python312 => "python3.12" + | .python313 => "python3.13" + | .python314 => "python3.14" + | .python315 => "python3.15" + | .python36 => "python3.6" + | .python37 => "python3.7" + | .python38 => "python3.8" + | .python39 => "python3.9" + | .ruby25 => "ruby2.5" + | .ruby27 => "ruby2.7" + | .ruby32 => "ruby3.2" + | .ruby33 => "ruby3.3" + | .ruby34 => "ruby3.4" + | .ruby40 => "ruby4.0" + +def Runtime.wireValues : List (String × Runtime) := [ + ("custom", .custom), + ("dotnet10", .dotnet10), + ("dotnet6", .dotnet6), + ("dotnet8", .dotnet8), + ("dotnetcore1.0", .dotnetcore10), + ("dotnetcore2.0", .dotnetcore20), + ("dotnetcore2.1", .dotnetcore21), + ("dotnetcore3.1", .dotnetcore31), + ("go1.x", .go1x), + ("java11", .java11), + ("java11.al2023", .java11al2023), + ("java17", .java17), + ("java17.al2023", .java17al2023), + ("java21", .java21), + ("java25", .java25), + ("java8", .java8), + ("java8.al2", .java8al2), + ("java8.al2023", .java8al2023), + ("nodejs", .nodejs), + ("nodejs10.x", .nodejs10x), + ("nodejs12.x", .nodejs12x), + ("nodejs14.x", .nodejs14x), + ("nodejs16.x", .nodejs16x), + ("nodejs18.x", .nodejs18x), + ("nodejs20.x", .nodejs20x), + ("nodejs22.x", .nodejs22x), + ("nodejs24.x", .nodejs24x), + ("nodejs26.x", .nodejs26x), + ("nodejs4.3", .nodejs43), + ("nodejs4.3-edge", .nodejs43edge), + ("nodejs6.10", .nodejs610), + ("nodejs8.10", .nodejs810), + ("provided", .provided), + ("provided.al2", .providedal2), + ("provided.al2023", .providedal2023), + ("python2.7", .python27), + ("python3.10", .python310), + ("python3.11", .python311), + ("python3.12", .python312), + ("python3.13", .python313), + ("python3.14", .python314), + ("python3.15", .python315), + ("python3.6", .python36), + ("python3.7", .python37), + ("python3.8", .python38), + ("python3.9", .python39), + ("ruby2.5", .ruby25), + ("ruby2.7", .ruby27), + ("ruby3.2", .ruby32), + ("ruby3.3", .ruby33), + ("ruby3.4", .ruby34), + ("ruby4.0", .ruby40)] + +def Runtime.ofWire (text : String) : Except String Runtime := + match List.find? (·.1 == text) Runtime.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Runtime has no value {text}" + +instance : Key Runtime := ⟨Runtime.wire, Runtime.ofWire⟩ + +instance : Shape Runtime where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Runtime.ofWire text + | _ => .error "expected a string" + +/-- The runtime alias for your function is no longer available. -/ +structure RuntimeAliasDeletedException where + /-- Indicates the exception type for a deleted runtime alias. -/ + type : Option String := none + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RuntimeAliasDeletedException where + schema := .struct "RuntimeAliasDeletedException" [({ name := "Type" }, .string), + ({ name := "message" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "message" x.message] + ofValue v := do + let type ← v.opt "Type" + let message ← v.opt "message" + return { type, message } + +/-- The runtime version used by your function is no longer available. -/ +structure RuntimeVersionDeletedException where + /-- Indicates the exception type for a deleted runtime version. -/ + type : Option String := none + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RuntimeVersionDeletedException where + schema := .struct "RuntimeVersionDeletedException" [({ name := "Type" }, .string), + ({ name := "message" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "message" x.message] + ofValue v := do + let type ← v.opt "Type" + let message ← v.opt "message" + return { type, message } + +/-- Any error returned when the runtime version information for the function could not be retrieved. -/ +structure RuntimeVersionError where + /-- The error code. -/ + errorCode : Option String := none + /-- The error message. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RuntimeVersionError where + schema := .struct "RuntimeVersionError" [({ name := "ErrorCode" }, .string), + ({ name := "Message" }, .string)] + toValue x := record [putOpt "ErrorCode" x.errorCode, putOpt "Message" x.message] + ofValue v := do + let errorCode ← v.opt "ErrorCode" + let message ← v.opt "Message" + return { errorCode, message } + +/-- The Lambda function couldn't make a network connection to the configured S3 Files access point. -/ +structure S3FilesMountConnectivityException where + /-- The exception message. -/ + message : Option String := none + /-- The exception type. -/ + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape S3FilesMountConnectivityException where + schema := .struct "S3FilesMountConnectivityException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- The Lambda function couldn't mount the configured S3 Files access point due to a permission or configuration issue. -/ +structure S3FilesMountFailureException where + /-- The exception message. -/ + message : Option String := none + /-- The exception type. -/ + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape S3FilesMountFailureException where + schema := .struct "S3FilesMountFailureException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- The Lambda function made a network connection to the configured S3 Files access point, but the mount operation timed out. -/ +structure S3FilesMountTimeoutException where + /-- The exception message. -/ + message : Option String := none + /-- The exception type. -/ + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape S3FilesMountTimeoutException where + schema := .struct "S3FilesMountTimeoutException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- The method Lambda uses to store a function's deployment package — either by copying the package into Lambda-managed storage ( COPY ) or by referencing it directly from the source Amazon S3 bucket ( REFERENCE ). -/ +inductive S3ObjectStorageMode where + | copy + | reference +deriving DecidableEq, Repr, Inhabited + +def S3ObjectStorageMode.wire : S3ObjectStorageMode → String + | .copy => "COPY" + | .reference => "REFERENCE" + +def S3ObjectStorageMode.wireValues : List (String × S3ObjectStorageMode) := [ + ("COPY", .copy), + ("REFERENCE", .reference)] + +def S3ObjectStorageMode.ofWire (text : String) : Except String S3ObjectStorageMode := + match List.find? (·.1 == text) S3ObjectStorageMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"S3ObjectStorageMode has no value {text}" + +instance : Key S3ObjectStorageMode := ⟨S3ObjectStorageMode.wire, S3ObjectStorageMode.ofWire⟩ + +instance : Shape S3ObjectStorageMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => S3ObjectStorageMode.ofWire text + | _ => .error "expected a string" + +/-- (Amazon SQS only) The scaling configuration for the event source. -/ +structure ScalingConfig where + /-- Limits the number of concurrent instances that the Amazon SQS event source can invoke. -/ + maximumConcurrency : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ScalingConfig where + schema := .struct "ScalingConfig" [({ name := "MaximumConcurrency" }, .int)] + toValue x := record [putOpt "MaximumConcurrency" x.maximumConcurrency] + ofValue v := do + let maximumConcurrency ← v.opt "MaximumConcurrency" + return { maximumConcurrency } + +inductive SchemaRegistryEventRecordFormat where + | json + | source +deriving DecidableEq, Repr, Inhabited + +def SchemaRegistryEventRecordFormat.wire : SchemaRegistryEventRecordFormat → String + | .json => "JSON" + | .source => "SOURCE" + +def SchemaRegistryEventRecordFormat.wireValues : List (String × SchemaRegistryEventRecordFormat) := [ + ("JSON", .json), + ("SOURCE", .source)] + +def SchemaRegistryEventRecordFormat.ofWire (text : String) : Except String SchemaRegistryEventRecordFormat := + match List.find? (·.1 == text) SchemaRegistryEventRecordFormat.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SchemaRegistryEventRecordFormat has no value {text}" + +instance : Key SchemaRegistryEventRecordFormat := ⟨SchemaRegistryEventRecordFormat.wire, SchemaRegistryEventRecordFormat.ofWire⟩ + +instance : Shape SchemaRegistryEventRecordFormat where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SchemaRegistryEventRecordFormat.ofWire text + | _ => .error "expected a string" + +structure SendDurableExecutionCallbackFailureResponse where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape SendDurableExecutionCallbackFailureResponse where + schema := .struct "SendDurableExecutionCallbackFailureResponse" [] + toValue _ := record [] + ofValue _ := do + return { } + +structure SendDurableExecutionCallbackHeartbeatRequest where + /-- The unique identifier for the callback operation. -/ + callbackId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape SendDurableExecutionCallbackHeartbeatRequest where + schema := .struct "SendDurableExecutionCallbackHeartbeatRequest" [({ name := "CallbackId", required := true, location := .label }, .string)] + toValue x := record [put "CallbackId" x.callbackId] + ofValue v := do + let callbackId ← v.req "CallbackId" + return { callbackId } + +structure SendDurableExecutionCallbackHeartbeatResponse where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape SendDurableExecutionCallbackHeartbeatResponse where + schema := .struct "SendDurableExecutionCallbackHeartbeatResponse" [] + toValue _ := record [] + ofValue _ := do + return { } + +structure SendDurableExecutionCallbackSuccessRequest where + /-- The unique identifier for the callback operation. -/ + callbackId : String + /-- The result data from the successful callback operation. -/ + result : Option Blob := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SendDurableExecutionCallbackSuccessRequest where + schema := .struct "SendDurableExecutionCallbackSuccessRequest" [({ name := "CallbackId", required := true, location := .label }, .string), + ({ name := "Result", location := .payload }, .blob)] + toValue x := record [put "CallbackId" x.callbackId, putOpt "Result" x.result] + ofValue v := do + let callbackId ← v.req "CallbackId" + let result ← v.opt "Result" + return { callbackId, result } + +structure SendDurableExecutionCallbackSuccessResponse where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape SendDurableExecutionCallbackSuccessResponse where + schema := .struct "SendDurableExecutionCallbackSuccessResponse" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- The request payload exceeded the maximum allowed size for serialized request entities. -/ +structure SerializedRequestEntityTooLargeException where + /-- The error type. -/ + type : Option String := none + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SerializedRequestEntityTooLargeException where + schema := .struct "SerializedRequestEntityTooLargeException" [({ name := "Type" }, .string), + ({ name := "message" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "message" x.message] + ofValue v := do + let type ← v.opt "Type" + let message ← v.opt "message" + return { type, message } + +/-- The Lambda service encountered an internal error. -/ +structure ServiceException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ServiceException where + schema := .struct "ServiceException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- The request would exceed a service quota. -/ +structure ServiceQuotaExceededException where + /-- The exception message. -/ + message : Option String := none + /-- The exception type. -/ + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ServiceQuotaExceededException where + schema := .struct "ServiceQuotaExceededException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +inductive SnapStartApplyOn where + | none + | publishedVersions +deriving DecidableEq, Repr, Inhabited + +def SnapStartApplyOn.wire : SnapStartApplyOn → String + | .none => "None" + | .publishedVersions => "PublishedVersions" + +def SnapStartApplyOn.wireValues : List (String × SnapStartApplyOn) := [ + ("None", .none), + ("PublishedVersions", .publishedVersions)] + +def SnapStartApplyOn.ofWire (text : String) : Except String SnapStartApplyOn := + match List.find? (·.1 == text) SnapStartApplyOn.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SnapStartApplyOn has no value {text}" + +instance : Key SnapStartApplyOn := ⟨SnapStartApplyOn.wire, SnapStartApplyOn.ofWire⟩ + +instance : Shape SnapStartApplyOn where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SnapStartApplyOn.ofWire text + | _ => .error "expected a string" + +/-- The afterRestore() runtime hook encountered an error. -/ +structure SnapStartException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SnapStartException where + schema := .struct "SnapStartException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- Lambda is initializing your function. -/ +structure SnapStartNotReadyException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SnapStartNotReadyException where + schema := .struct "SnapStartNotReadyException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +inductive SnapStartOptimizationStatus where + | off + | on +deriving DecidableEq, Repr, Inhabited + +def SnapStartOptimizationStatus.wire : SnapStartOptimizationStatus → String + | .off => "Off" + | .on => "On" + +def SnapStartOptimizationStatus.wireValues : List (String × SnapStartOptimizationStatus) := [ + ("Off", .off), + ("On", .on)] + +def SnapStartOptimizationStatus.ofWire (text : String) : Except String SnapStartOptimizationStatus := + match List.find? (·.1 == text) SnapStartOptimizationStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SnapStartOptimizationStatus has no value {text}" + +instance : Key SnapStartOptimizationStatus := ⟨SnapStartOptimizationStatus.wire, SnapStartOptimizationStatus.ofWire⟩ + +instance : Shape SnapStartOptimizationStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SnapStartOptimizationStatus.ofWire text + | _ => .error "expected a string" + +/-- Lambda couldn't regenerate the SnapStart snapshot for the function. -/ +structure SnapStartRegenerationFailureException where + /-- The exception message. -/ + message : Option String := none + /-- The exception type. -/ + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SnapStartRegenerationFailureException where + schema := .struct "SnapStartRegenerationFailureException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +/-- Lambda couldn't restore the snapshot within the timeout limit. -/ +structure SnapStartTimeoutException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SnapStartTimeoutException where + schema := .struct "SnapStartTimeoutException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +inductive SourceAccessType where + | basiC_AUTH + | clienT_CERTIFICATE_TLS_AUTH + | iaM_AUTH + | iaM_OAUTHBEARER_AUTH + | oauthbeareR_AUDIENCE + | oauthbeareR_AUTH + | oauthbeareR_IDENTITY_POOL + | oauthbeareR_LOGICAL_CLUSTER + | oauthbeareR_SCOPE + | sasL_SCRAM_256_AUTH + | sasL_SCRAM_512_AUTH + | serveR_ROOT_CA_CERTIFICATE + | virtuaL_HOST + | vpC_SECURITY_GROUP + | vpC_SUBNET +deriving DecidableEq, Repr, Inhabited + +def SourceAccessType.wire : SourceAccessType → String + | .basiC_AUTH => "BASIC_AUTH" + | .clienT_CERTIFICATE_TLS_AUTH => "CLIENT_CERTIFICATE_TLS_AUTH" + | .iaM_AUTH => "IAM_AUTH" + | .iaM_OAUTHBEARER_AUTH => "IAM_OAUTHBEARER_AUTH" + | .oauthbeareR_AUDIENCE => "OAUTHBEARER_AUDIENCE" + | .oauthbeareR_AUTH => "OAUTHBEARER_AUTH" + | .oauthbeareR_IDENTITY_POOL => "OAUTHBEARER_IDENTITY_POOL" + | .oauthbeareR_LOGICAL_CLUSTER => "OAUTHBEARER_LOGICAL_CLUSTER" + | .oauthbeareR_SCOPE => "OAUTHBEARER_SCOPE" + | .sasL_SCRAM_256_AUTH => "SASL_SCRAM_256_AUTH" + | .sasL_SCRAM_512_AUTH => "SASL_SCRAM_512_AUTH" + | .serveR_ROOT_CA_CERTIFICATE => "SERVER_ROOT_CA_CERTIFICATE" + | .virtuaL_HOST => "VIRTUAL_HOST" + | .vpC_SECURITY_GROUP => "VPC_SECURITY_GROUP" + | .vpC_SUBNET => "VPC_SUBNET" + +def SourceAccessType.wireValues : List (String × SourceAccessType) := [ + ("BASIC_AUTH", .basiC_AUTH), + ("CLIENT_CERTIFICATE_TLS_AUTH", .clienT_CERTIFICATE_TLS_AUTH), + ("IAM_AUTH", .iaM_AUTH), + ("IAM_OAUTHBEARER_AUTH", .iaM_OAUTHBEARER_AUTH), + ("OAUTHBEARER_AUDIENCE", .oauthbeareR_AUDIENCE), + ("OAUTHBEARER_AUTH", .oauthbeareR_AUTH), + ("OAUTHBEARER_IDENTITY_POOL", .oauthbeareR_IDENTITY_POOL), + ("OAUTHBEARER_LOGICAL_CLUSTER", .oauthbeareR_LOGICAL_CLUSTER), + ("OAUTHBEARER_SCOPE", .oauthbeareR_SCOPE), + ("SASL_SCRAM_256_AUTH", .sasL_SCRAM_256_AUTH), + ("SASL_SCRAM_512_AUTH", .sasL_SCRAM_512_AUTH), + ("SERVER_ROOT_CA_CERTIFICATE", .serveR_ROOT_CA_CERTIFICATE), + ("VIRTUAL_HOST", .virtuaL_HOST), + ("VPC_SECURITY_GROUP", .vpC_SECURITY_GROUP), + ("VPC_SUBNET", .vpC_SUBNET)] + +def SourceAccessType.ofWire (text : String) : Except String SourceAccessType := + match List.find? (·.1 == text) SourceAccessType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SourceAccessType has no value {text}" + +instance : Key SourceAccessType := ⟨SourceAccessType.wire, SourceAccessType.ofWire⟩ + +instance : Shape SourceAccessType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SourceAccessType.ofWire text + | _ => .error "expected a string" + +inductive State where + | active + | activeNonInvocable + | deactivated + | deactivating + | deleting + | failed + | inactive + | pending +deriving DecidableEq, Repr, Inhabited + +def State.wire : State → String + | .active => "Active" + | .activeNonInvocable => "ActiveNonInvocable" + | .deactivated => "Deactivated" + | .deactivating => "Deactivating" + | .deleting => "Deleting" + | .failed => "Failed" + | .inactive => "Inactive" + | .pending => "Pending" + +def State.wireValues : List (String × State) := [ + ("Active", .active), + ("ActiveNonInvocable", .activeNonInvocable), + ("Deactivated", .deactivated), + ("Deactivating", .deactivating), + ("Deleting", .deleting), + ("Failed", .failed), + ("Inactive", .inactive), + ("Pending", .pending)] + +def State.ofWire (text : String) : Except String State := + match List.find? (·.1 == text) State.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"State has no value {text}" + +instance : Key State := ⟨State.wire, State.ofWire⟩ + +instance : Shape State where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => State.ofWire text + | _ => .error "expected a string" + +inductive StateReasonCode where + | capacityProviderScalingLimitExceeded + | creating + | dependencyError + | disabledKMSKey + | disallowedByVpcEncryptionControl + | drainingDurableExecutions + | ec2RequestLimitExceeded + | efsioError + | efsMountConnectivityError + | efsMountFailure + | efsMountTimeout + | eniLimitExceeded + | functionError + | functionErrorExtensionInitError + | functionErrorInitResourceExhausted + | functionErrorInitTimeout + | functionErrorInvalidEntryPoint + | functionErrorInvalidWorkingDirectory + | functionErrorPermissionDenied + | functionErrorRuntimeInitError + | functionErrorTooManyExtensions + | idle + | imageAccessDenied + | imageDeleted + | incompatibleAcceleratorInstanceTypes + | insufficientCapacity + | insufficientRolePermissions + | internalError + | invalidConfiguration + | invalidImage + | invalidRuntime + | invalidSecurityGroup + | invalidStateKMSKey + | invalidSubnet + | invalidZipFileException + | kmsKeyAccessDenied + | kmsKeyNotFound + | restoring + | serviceQuotaExceededException + | subnetOutOfIPAddresses + | vcpuLimitExceeded +deriving DecidableEq, Repr, Inhabited + +def StateReasonCode.wire : StateReasonCode → String + | .capacityProviderScalingLimitExceeded => "CapacityProviderScalingLimitExceeded" + | .creating => "Creating" + | .dependencyError => "DependencyError" + | .disabledKMSKey => "DisabledKMSKey" + | .disallowedByVpcEncryptionControl => "DisallowedByVpcEncryptionControl" + | .drainingDurableExecutions => "DrainingDurableExecutions" + | .ec2RequestLimitExceeded => "EC2RequestLimitExceeded" + | .efsioError => "EFSIOError" + | .efsMountConnectivityError => "EFSMountConnectivityError" + | .efsMountFailure => "EFSMountFailure" + | .efsMountTimeout => "EFSMountTimeout" + | .eniLimitExceeded => "EniLimitExceeded" + | .functionError => "FunctionError" + | .functionErrorExtensionInitError => "FunctionError.ExtensionInitError" + | .functionErrorInitResourceExhausted => "FunctionError.InitResourceExhausted" + | .functionErrorInitTimeout => "FunctionError.InitTimeout" + | .functionErrorInvalidEntryPoint => "FunctionError.InvalidEntryPoint" + | .functionErrorInvalidWorkingDirectory => "FunctionError.InvalidWorkingDirectory" + | .functionErrorPermissionDenied => "FunctionError.PermissionDenied" + | .functionErrorRuntimeInitError => "FunctionError.RuntimeInitError" + | .functionErrorTooManyExtensions => "FunctionError.TooManyExtensions" + | .idle => "Idle" + | .imageAccessDenied => "ImageAccessDenied" + | .imageDeleted => "ImageDeleted" + | .incompatibleAcceleratorInstanceTypes => "IncompatibleAcceleratorInstanceTypes" + | .insufficientCapacity => "InsufficientCapacity" + | .insufficientRolePermissions => "InsufficientRolePermissions" + | .internalError => "InternalError" + | .invalidConfiguration => "InvalidConfiguration" + | .invalidImage => "InvalidImage" + | .invalidRuntime => "InvalidRuntime" + | .invalidSecurityGroup => "InvalidSecurityGroup" + | .invalidStateKMSKey => "InvalidStateKMSKey" + | .invalidSubnet => "InvalidSubnet" + | .invalidZipFileException => "InvalidZipFileException" + | .kmsKeyAccessDenied => "KMSKeyAccessDenied" + | .kmsKeyNotFound => "KMSKeyNotFound" + | .restoring => "Restoring" + | .serviceQuotaExceededException => "ServiceQuotaExceededException" + | .subnetOutOfIPAddresses => "SubnetOutOfIPAddresses" + | .vcpuLimitExceeded => "VcpuLimitExceeded" + +def StateReasonCode.wireValues : List (String × StateReasonCode) := [ + ("CapacityProviderScalingLimitExceeded", .capacityProviderScalingLimitExceeded), + ("Creating", .creating), + ("DependencyError", .dependencyError), + ("DisabledKMSKey", .disabledKMSKey), + ("DisallowedByVpcEncryptionControl", .disallowedByVpcEncryptionControl), + ("DrainingDurableExecutions", .drainingDurableExecutions), + ("EC2RequestLimitExceeded", .ec2RequestLimitExceeded), + ("EFSIOError", .efsioError), + ("EFSMountConnectivityError", .efsMountConnectivityError), + ("EFSMountFailure", .efsMountFailure), + ("EFSMountTimeout", .efsMountTimeout), + ("EniLimitExceeded", .eniLimitExceeded), + ("FunctionError", .functionError), + ("FunctionError.ExtensionInitError", .functionErrorExtensionInitError), + ("FunctionError.InitResourceExhausted", .functionErrorInitResourceExhausted), + ("FunctionError.InitTimeout", .functionErrorInitTimeout), + ("FunctionError.InvalidEntryPoint", .functionErrorInvalidEntryPoint), + ("FunctionError.InvalidWorkingDirectory", .functionErrorInvalidWorkingDirectory), + ("FunctionError.PermissionDenied", .functionErrorPermissionDenied), + ("FunctionError.RuntimeInitError", .functionErrorRuntimeInitError), + ("FunctionError.TooManyExtensions", .functionErrorTooManyExtensions), + ("Idle", .idle), + ("ImageAccessDenied", .imageAccessDenied), + ("ImageDeleted", .imageDeleted), + ("IncompatibleAcceleratorInstanceTypes", .incompatibleAcceleratorInstanceTypes), + ("InsufficientCapacity", .insufficientCapacity), + ("InsufficientRolePermissions", .insufficientRolePermissions), + ("InternalError", .internalError), + ("InvalidConfiguration", .invalidConfiguration), + ("InvalidImage", .invalidImage), + ("InvalidRuntime", .invalidRuntime), + ("InvalidSecurityGroup", .invalidSecurityGroup), + ("InvalidStateKMSKey", .invalidStateKMSKey), + ("InvalidSubnet", .invalidSubnet), + ("InvalidZipFileException", .invalidZipFileException), + ("KMSKeyAccessDenied", .kmsKeyAccessDenied), + ("KMSKeyNotFound", .kmsKeyNotFound), + ("Restoring", .restoring), + ("ServiceQuotaExceededException", .serviceQuotaExceededException), + ("SubnetOutOfIPAddresses", .subnetOutOfIPAddresses), + ("VcpuLimitExceeded", .vcpuLimitExceeded)] + +def StateReasonCode.ofWire (text : String) : Except String StateReasonCode := + match List.find? (·.1 == text) StateReasonCode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"StateReasonCode has no value {text}" + +instance : Key StateReasonCode := ⟨StateReasonCode.wire, StateReasonCode.ofWire⟩ + +instance : Shape StateReasonCode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => StateReasonCode.ofWire text + | _ => .error "expected a string" + +/-- Configuration options for a step operation. -/ +structure StepOptions where + /-- The delay in seconds before the next retry attempt. -/ + nextAttemptDelaySeconds : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StepOptions where + schema := .struct "StepOptions" [({ name := "NextAttemptDelaySeconds" }, .int)] + toValue x := record [putOpt "NextAttemptDelaySeconds" x.nextAttemptDelaySeconds] + ofValue v := do + let nextAttemptDelaySeconds ← v.opt "NextAttemptDelaySeconds" + return { nextAttemptDelaySeconds } + +/-- Details about a step that has started. -/ +structure StepStartedDetails where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape StepStartedDetails where + schema := .struct "StepStartedDetails" [] + toValue _ := record [] + ofValue _ := do + return { } + +structure StopDurableExecutionResponse where + /-- The timestamp when the execution was stopped (ISO 8601 format). -/ + stopTimestamp : Timestamp +deriving DecidableEq, Repr, Inhabited + +instance : Shape StopDurableExecutionResponse where + schema := .struct "StopDurableExecutionResponse" [({ name := "StopTimestamp", required := true }, (.time none))] + toValue x := record [put "StopTimestamp" x.stopTimestamp] + ofValue v := do + let stopTimestamp ← v.req "StopTimestamp" + return { stopTimestamp } + +/-- Lambda couldn't set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses. -/ +structure SubnetIPAddressLimitReachedException where + message : Option String := none + type : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SubnetIPAddressLimitReachedException where + schema := .struct "SubnetIPAddressLimitReachedException" [({ name := "Message" }, .string), + ({ name := "Type" }, .string)] + toValue x := record [putOpt "Message" x.message, putOpt "Type" x.type] + ofValue v := do + let message ← v.opt "Message" + let type ← v.opt "Type" + return { message, type } + +inductive SystemLogLevel where + | debug + | info + | warn +deriving DecidableEq, Repr, Inhabited + +def SystemLogLevel.wire : SystemLogLevel → String + | .debug => "DEBUG" + | .info => "INFO" + | .warn => "WARN" + +def SystemLogLevel.wireValues : List (String × SystemLogLevel) := [ + ("DEBUG", .debug), + ("INFO", .info), + ("WARN", .warn)] + +def SystemLogLevel.ofWire (text : String) : Except String SystemLogLevel := + match List.find? (·.1 == text) SystemLogLevel.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SystemLogLevel has no value {text}" + +instance : Key SystemLogLevel := ⟨SystemLogLevel.wire, SystemLogLevel.ofWire⟩ + +instance : Shape SystemLogLevel where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SystemLogLevel.ofWire text + | _ => .error "expected a string" + +structure TagResourceRequest where + /-- The resource's Amazon Resource Name (ARN). -/ + resource : String + /-- A list of tags to apply to the resource. -/ + tags : (Dict String String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape TagResourceRequest where + schema := .struct "TagResourceRequest" [({ name := "Resource", required := true, location := .label }, .string), + ({ name := "Tags", required := true }, (.map .string .string "key" "value"))] + toValue x := record [put "Resource" x.resource, put "Tags" x.tags] + ofValue v := do + let resource ← v.req "Resource" + let tags ← v.req "Tags" + return { resource, tags } + +/-- An object that contains details about an error related to retrieving tags. -/ +structure TagsError where + /-- The error code. -/ + errorCode : String + /-- The error message. -/ + message : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape TagsError where + schema := .struct "TagsError" [({ name := "ErrorCode", required := true }, .string), + ({ name := "Message", required := true }, .string)] + toValue x := record [put "ErrorCode" x.errorCode, put "Message" x.message] + ofValue v := do + let errorCode ← v.req "ErrorCode" + let message ← v.req "Message" + return { errorCode, message } + +inductive TenantIsolationMode where + | peR_TENANT +deriving DecidableEq, Repr, Inhabited + +def TenantIsolationMode.wire : TenantIsolationMode → String + | .peR_TENANT => "PER_TENANT" + +def TenantIsolationMode.wireValues : List (String × TenantIsolationMode) := [ + ("PER_TENANT", .peR_TENANT)] + +def TenantIsolationMode.ofWire (text : String) : Except String TenantIsolationMode := + match List.find? (·.1 == text) TenantIsolationMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TenantIsolationMode has no value {text}" + +instance : Key TenantIsolationMode := ⟨TenantIsolationMode.wire, TenantIsolationMode.ofWire⟩ + +instance : Shape TenantIsolationMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TenantIsolationMode.ofWire text + | _ => .error "expected a string" + +inductive ThrottleReason where + | callerRateLimitExceeded + | concurrentInvocationLimitExceeded + | concurrentSnapshotCreateLimitExceeded + | functionInvocationRateLimitExceeded + | reservedFunctionConcurrentInvocationLimitExceeded + | reservedFunctionInvocationRateLimitExceeded +deriving DecidableEq, Repr, Inhabited + +def ThrottleReason.wire : ThrottleReason → String + | .callerRateLimitExceeded => "CallerRateLimitExceeded" + | .concurrentInvocationLimitExceeded => "ConcurrentInvocationLimitExceeded" + | .concurrentSnapshotCreateLimitExceeded => "ConcurrentSnapshotCreateLimitExceeded" + | .functionInvocationRateLimitExceeded => "FunctionInvocationRateLimitExceeded" + | .reservedFunctionConcurrentInvocationLimitExceeded => "ReservedFunctionConcurrentInvocationLimitExceeded" + | .reservedFunctionInvocationRateLimitExceeded => "ReservedFunctionInvocationRateLimitExceeded" + +def ThrottleReason.wireValues : List (String × ThrottleReason) := [ + ("CallerRateLimitExceeded", .callerRateLimitExceeded), + ("ConcurrentInvocationLimitExceeded", .concurrentInvocationLimitExceeded), + ("ConcurrentSnapshotCreateLimitExceeded", .concurrentSnapshotCreateLimitExceeded), + ("FunctionInvocationRateLimitExceeded", .functionInvocationRateLimitExceeded), + ("ReservedFunctionConcurrentInvocationLimitExceeded", .reservedFunctionConcurrentInvocationLimitExceeded), + ("ReservedFunctionInvocationRateLimitExceeded", .reservedFunctionInvocationRateLimitExceeded)] + +def ThrottleReason.ofWire (text : String) : Except String ThrottleReason := + match List.find? (·.1 == text) ThrottleReason.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ThrottleReason has no value {text}" + +instance : Key ThrottleReason := ⟨ThrottleReason.wire, ThrottleReason.ofWire⟩ + +instance : Shape ThrottleReason where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ThrottleReason.ofWire text + | _ => .error "expected a string" + +/-- Contains trace headers for the Lambda durable execution. -/ +structure TraceHeader where + /-- The X-Ray trace header associated with the durable execution. -/ + xAmznTraceId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TraceHeader where + schema := .struct "TraceHeader" [({ name := "XAmznTraceId" }, .string)] + toValue x := record [putOpt "XAmznTraceId" x.xAmznTraceId] + ofValue v := do + let xAmznTraceId ← v.opt "XAmznTraceId" + return { xAmznTraceId } + +inductive TracingMode where + | active + | passThrough +deriving DecidableEq, Repr, Inhabited + +def TracingMode.wire : TracingMode → String + | .active => "Active" + | .passThrough => "PassThrough" + +def TracingMode.wireValues : List (String × TracingMode) := [ + ("Active", .active), + ("PassThrough", .passThrough)] + +def TracingMode.ofWire (text : String) : Except String TracingMode := + match List.find? (·.1 == text) TracingMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TracingMode has no value {text}" + +instance : Key TracingMode := ⟨TracingMode.wire, TracingMode.ofWire⟩ + +instance : Shape TracingMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TracingMode.ofWire text + | _ => .error "expected a string" + +/-- The content type of the Invoke request body is not JSON. -/ +structure UnsupportedMediaTypeException where + type : Option String := none + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UnsupportedMediaTypeException where + schema := .struct "UnsupportedMediaTypeException" [({ name := "Type" }, .string), + ({ name := "message" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "message" x.message] + ofValue v := do + let type ← v.opt "Type" + let message ← v.opt "message" + return { type, message } + +structure UntagResourceRequest where + /-- The resource's Amazon Resource Name (ARN). -/ + resource : String + /-- A list of tag keys to remove from the resource. -/ + tagKeys : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape UntagResourceRequest where + schema := .struct "UntagResourceRequest" [({ name := "Resource", required := true, location := .label }, .string), + ({ name := "TagKeys", required := true, location := .query "tagKeys" }, (.list .string "Key"))] + toValue x := record [put "Resource" x.resource, put "TagKeys" x.tagKeys] + ofValue v := do + let resource ← v.req "Resource" + let tagKeys ← v.req "TagKeys" + return { resource, tagKeys } + +inductive UpdateRuntimeOn where + | auto + | functionUpdate + | manual +deriving DecidableEq, Repr, Inhabited + +def UpdateRuntimeOn.wire : UpdateRuntimeOn → String + | .auto => "Auto" + | .functionUpdate => "FunctionUpdate" + | .manual => "Manual" + +def UpdateRuntimeOn.wireValues : List (String × UpdateRuntimeOn) := [ + ("Auto", .auto), + ("FunctionUpdate", .functionUpdate), + ("Manual", .manual)] + +def UpdateRuntimeOn.ofWire (text : String) : Except String UpdateRuntimeOn := + match List.find? (·.1 == text) UpdateRuntimeOn.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"UpdateRuntimeOn has no value {text}" + +instance : Key UpdateRuntimeOn := ⟨UpdateRuntimeOn.wire, UpdateRuntimeOn.ofWire⟩ + +instance : Shape UpdateRuntimeOn where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => UpdateRuntimeOn.ofWire text + | _ => .error "expected a string" + +/-- The VPC security groups and subnets that are attached to a Lambda function. -/ +structure VpcConfig where + /-- Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. -/ + ipv6AllowedForDualStack : Option Bool := none + /-- A list of VPC security group IDs. -/ + securityGroupIds : Option (List String) := none + /-- A list of VPC subnet IDs. -/ + subnetIds : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcConfig where + schema := .struct "VpcConfig" [({ name := "Ipv6AllowedForDualStack" }, .bool), + ({ name := "SecurityGroupIds" }, (.list .string "member")), + ({ name := "SubnetIds" }, (.list .string "member"))] + toValue x := record [putOpt "Ipv6AllowedForDualStack" x.ipv6AllowedForDualStack, putOpt "SecurityGroupIds" x.securityGroupIds, putOpt "SubnetIds" x.subnetIds] + ofValue v := do + let ipv6AllowedForDualStack ← v.opt "Ipv6AllowedForDualStack" + let securityGroupIds ← v.opt "SecurityGroupIds" + let subnetIds ← v.opt "SubnetIds" + return { ipv6AllowedForDualStack, securityGroupIds, subnetIds } + +/-- The VPC security groups and subnets that are attached to a Lambda function. -/ +structure VpcConfigResponse where + /-- Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. -/ + ipv6AllowedForDualStack : Option Bool := none + /-- A list of VPC security group IDs. -/ + securityGroupIds : Option (List String) := none + /-- A list of VPC subnet IDs. -/ + subnetIds : Option (List String) := none + /-- The ID of the VPC. -/ + vpcId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VpcConfigResponse where + schema := .struct "VpcConfigResponse" [({ name := "Ipv6AllowedForDualStack" }, .bool), + ({ name := "SecurityGroupIds" }, (.list .string "member")), + ({ name := "SubnetIds" }, (.list .string "member")), + ({ name := "VpcId" }, .string)] + toValue x := record [putOpt "Ipv6AllowedForDualStack" x.ipv6AllowedForDualStack, putOpt "SecurityGroupIds" x.securityGroupIds, putOpt "SubnetIds" x.subnetIds, putOpt "VpcId" x.vpcId] + ofValue v := do + let ipv6AllowedForDualStack ← v.opt "Ipv6AllowedForDualStack" + let securityGroupIds ← v.opt "SecurityGroupIds" + let subnetIds ← v.opt "SubnetIds" + let vpcId ← v.opt "VpcId" + return { ipv6AllowedForDualStack, securityGroupIds, subnetIds, vpcId } + +/-- Details about a wait operation. -/ +structure WaitDetails where + /-- The date and time when the wait operation is scheduled to complete, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + scheduledEndTimestamp : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape WaitDetails where + schema := .struct "WaitDetails" [({ name := "ScheduledEndTimestamp" }, (.time none))] + toValue x := record [putOpt "ScheduledEndTimestamp" x.scheduledEndTimestamp] + ofValue v := do + let scheduledEndTimestamp ← v.opt "ScheduledEndTimestamp" + return { scheduledEndTimestamp } + +/-- Specifies how long the durable execution waits. -/ +structure WaitOptions where + /-- The duration to wait, in seconds. -/ + waitSeconds : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape WaitOptions where + schema := .struct "WaitOptions" [({ name := "WaitSeconds" }, .int)] + toValue x := record [putOpt "WaitSeconds" x.waitSeconds] + ofValue v := do + let waitSeconds ← v.opt "WaitSeconds" + return { waitSeconds } + +/-- Details about a wait operation that has started. -/ +structure WaitStartedDetails where + /-- The duration to wait, in seconds. -/ + duration : Int + /-- The date and time when the wait operation is scheduled to complete, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + scheduledEndTimestamp : Timestamp +deriving DecidableEq, Repr, Inhabited + +instance : Shape WaitStartedDetails where + schema := .struct "WaitStartedDetails" [({ name := "Duration", required := true }, .int), + ({ name := "ScheduledEndTimestamp", required := true }, (.time none))] + toValue x := record [put "Duration" x.duration, put "ScheduledEndTimestamp" x.scheduledEndTimestamp] + ofValue v := do + let duration ← v.req "Duration" + let scheduledEndTimestamp ← v.req "ScheduledEndTimestamp" + return { duration, scheduledEndTimestamp } + +/-- Details about a wait operation that succeeded. -/ +structure WaitSucceededDetails where + /-- The wait duration, in seconds. -/ + duration : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape WaitSucceededDetails where + schema := .struct "WaitSucceededDetails" [({ name := "Duration" }, .int)] + toValue x := record [putOpt "Duration" x.duration] + ofValue v := do + let duration ← v.opt "Duration" + return { duration } + +structure AddPermissionRequest where + /-- The action that the principal can use on the function. -/ + action : String + /-- For Alexa Smart Home functions, a token that the invoker must supply. -/ + eventSourceToken : Option String := none + /-- The name or ARN of the Lambda function, version, or alias. -/ + functionName : String + /-- The type of authentication that your function URL uses. -/ + functionUrlAuthType : Option FunctionUrlAuthType := none + /-- Indicates whether the permission applies when the function is invoked through a function URL. -/ + invokedViaFunctionUrl : Option Bool := none + /-- The Amazon Web Services service, Amazon Web Services account, IAM user, or IAM role that invokes the function. -/ + principal : String + /-- The identifier for your organization in Organizations. -/ + principalOrgID : Option String := none + /-- Specify a version or alias to add permissions to a published version of the function. -/ + qualifier : Option String := none + /-- Update the policy only if the revision ID matches the ID that's specified. -/ + revisionId : Option String := none + /-- For Amazon Web Services service, the ID of the Amazon Web Services account that owns the resource. -/ + sourceAccount : Option String := none + /-- For Amazon Web Services services, the ARN of the Amazon Web Services resource that invokes the function. -/ + sourceArn : Option String := none + /-- A statement identifier that differentiates the statement from others in the same policy. -/ + statementId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AddPermissionRequest where + schema := .struct "AddPermissionRequest" [({ name := "Action", required := true }, .string), + ({ name := "EventSourceToken" }, .string), + ({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "FunctionUrlAuthType" }, (Shape.schema FunctionUrlAuthType)), + ({ name := "InvokedViaFunctionUrl" }, .bool), + ({ name := "Principal", required := true }, .string), + ({ name := "PrincipalOrgID" }, .string), + ({ name := "Qualifier", location := .query "Qualifier" }, .string), + ({ name := "RevisionId" }, .string), + ({ name := "SourceAccount" }, .string), + ({ name := "SourceArn" }, .string), + ({ name := "StatementId", required := true }, .string)] + toValue x := record [put "Action" x.action, putOpt "EventSourceToken" x.eventSourceToken, put "FunctionName" x.functionName, putOpt "FunctionUrlAuthType" x.functionUrlAuthType, putOpt "InvokedViaFunctionUrl" x.invokedViaFunctionUrl, put "Principal" x.principal, putOpt "PrincipalOrgID" x.principalOrgID, putOpt "Qualifier" x.qualifier, putOpt "RevisionId" x.revisionId, putOpt "SourceAccount" x.sourceAccount, putOpt "SourceArn" x.sourceArn, put "StatementId" x.statementId] + ofValue v := do + let action ← v.req "Action" + let eventSourceToken ← v.opt "EventSourceToken" + let functionName ← v.req "FunctionName" + let functionUrlAuthType ← v.opt "FunctionUrlAuthType" + let invokedViaFunctionUrl ← v.opt "InvokedViaFunctionUrl" + let principal ← v.req "Principal" + let principalOrgID ← v.opt "PrincipalOrgID" + let qualifier ← v.opt "Qualifier" + let revisionId ← v.opt "RevisionId" + let sourceAccount ← v.opt "SourceAccount" + let sourceArn ← v.opt "SourceArn" + let statementId ← v.req "StatementId" + return { action, eventSourceToken, functionName, functionUrlAuthType, invokedViaFunctionUrl, principal, principalOrgID, qualifier, revisionId, sourceAccount, sourceArn, statementId } + +/-- Provides configuration information about a Lambda function alias . -/ +structure AliasConfiguration where + /-- The Amazon Resource Name (ARN) of the alias. -/ + aliasArn : Option String := none + /-- A description of the alias. -/ + description : Option String := none + /-- The function version that the alias invokes. -/ + functionVersion : Option String := none + /-- The name of the alias. -/ + name : Option String := none + /-- A unique identifier that changes when you update the alias. -/ + revisionId : Option String := none + /-- The routing configuration of the alias. -/ + routingConfig : Option AliasRoutingConfiguration := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AliasConfiguration where + schema := .struct "AliasConfiguration" [({ name := "AliasArn" }, .string), + ({ name := "Description" }, .string), + ({ name := "FunctionVersion" }, .string), + ({ name := "Name" }, .string), + ({ name := "RevisionId" }, .string), + ({ name := "RoutingConfig" }, (Shape.schema AliasRoutingConfiguration))] + toValue x := record [putOpt "AliasArn" x.aliasArn, putOpt "Description" x.description, putOpt "FunctionVersion" x.functionVersion, putOpt "Name" x.name, putOpt "RevisionId" x.revisionId, putOpt "RoutingConfig" x.routingConfig] + ofValue v := do + let aliasArn ← v.opt "AliasArn" + let description ← v.opt "Description" + let functionVersion ← v.opt "FunctionVersion" + let name ← v.opt "Name" + let revisionId ← v.opt "RevisionId" + let routingConfig ← v.opt "RoutingConfig" + return { aliasArn, description, functionVersion, name, revisionId, routingConfig } + +/-- Contains details about a callback operation in a durable execution, including the callback token and timeout configuration. -/ +structure CallbackDetails where + /-- The callback ID. -/ + callbackId : Option String := none + /-- An error object that contains details about the failure. -/ + error : Option ErrorObject := none + /-- The response payload from the callback operation as a string. -/ + result : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CallbackDetails where + schema := .struct "CallbackDetails" [({ name := "CallbackId" }, .string), + ({ name := "Error" }, (Shape.schema ErrorObject)), + ({ name := "Result" }, .string)] + toValue x := record [putOpt "CallbackId" x.callbackId, putOpt "Error" x.error, putOpt "Result" x.result] + ofValue v := do + let callbackId ← v.opt "CallbackId" + let error ← v.opt "Error" + let result ← v.opt "Result" + return { callbackId, error, result } + +/-- Contains details about a successfully completed callback operation, including the result data and completion timestamp. -/ +structure CallbackSucceededDetails where + /-- The response payload from the successful operation. -/ + result : EventResult +deriving DecidableEq, Repr, Inhabited + +instance : Shape CallbackSucceededDetails where + schema := .struct "CallbackSucceededDetails" [({ name := "Result", required := true }, (Shape.schema EventResult))] + toValue x := record [put "Result" x.result] + ofValue v := do + let result ← v.req "Result" + return { result } + +/-- Configuration for the capacity provider that manages compute resources for Lambda functions. -/ +structure CapacityProviderConfig where + /-- Configuration for Lambda-managed instances used by the capacity provider. -/ + lambdaManagedInstancesCapacityProviderConfig : LambdaManagedInstancesCapacityProviderConfig +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityProviderConfig where + schema := .struct "CapacityProviderConfig" [({ name := "LambdaManagedInstancesCapacityProviderConfig", required := true }, (Shape.schema LambdaManagedInstancesCapacityProviderConfig))] + toValue x := record [put "LambdaManagedInstancesCapacityProviderConfig" x.lambdaManagedInstancesCapacityProviderConfig] + ofValue v := do + let lambdaManagedInstancesCapacityProviderConfig ← v.req "LambdaManagedInstancesCapacityProviderConfig" + return { lambdaManagedInstancesCapacityProviderConfig } + +/-- The capacity provider's Amazon CloudWatch Logs configuration settings. -/ +structure CapacityProviderLoggingConfig where + /-- The name of the Amazon CloudWatch log group the capacity provider sends logs to. -/ + logGroup : Option String := none + /-- Set this property to filter the system logs for your capacity provider that Lambda sends to CloudWatch. -/ + systemLogLevel : Option SystemLogLevel := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityProviderLoggingConfig where + schema := .struct "CapacityProviderLoggingConfig" [({ name := "LogGroup" }, .string), + ({ name := "SystemLogLevel" }, (Shape.schema SystemLogLevel))] + toValue x := record [putOpt "LogGroup" x.logGroup, putOpt "SystemLogLevel" x.systemLogLevel] + ofValue v := do + let logGroup ← v.opt "LogGroup" + let systemLogLevel ← v.opt "SystemLogLevel" + return { logGroup, systemLogLevel } + +/-- Contains details about a chained function invocation in a durable execution, including the target function and invocation parameters. -/ +structure ChainedInvokeDetails where + /-- Details about the chained invocation failure. -/ + error : Option ErrorObject := none + /-- The response payload from the chained invocation. -/ + result : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ChainedInvokeDetails where + schema := .struct "ChainedInvokeDetails" [({ name := "Error" }, (Shape.schema ErrorObject)), + ({ name := "Result" }, .string)] + toValue x := record [putOpt "Error" x.error, putOpt "Result" x.result] + ofValue v := do + let error ← v.opt "Error" + let result ← v.opt "Result" + return { error, result } + +/-- Contains details about a chained function invocation that has started execution, including start time and execution context. -/ +structure ChainedInvokeStartedDetails where + /-- The Amazon Resource Name (ARN) that identifies the durable execution. -/ + durableExecutionArn : Option String := none + /-- The version of the function that was executed. -/ + executedVersion : Option String := none + /-- The name or ARN of the Lambda function being invoked. -/ + functionName : String + /-- The JSON input payload provided to the chained invocation. -/ + input : Option EventInput := none + /-- The tenant identifier for the chained invocation. -/ + tenantId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ChainedInvokeStartedDetails where + schema := .struct "ChainedInvokeStartedDetails" [({ name := "DurableExecutionArn" }, .string), + ({ name := "ExecutedVersion" }, .string), + ({ name := "FunctionName", required := true }, .string), + ({ name := "Input" }, (Shape.schema EventInput)), + ({ name := "TenantId" }, .string)] + toValue x := record [putOpt "DurableExecutionArn" x.durableExecutionArn, putOpt "ExecutedVersion" x.executedVersion, put "FunctionName" x.functionName, putOpt "Input" x.input, putOpt "TenantId" x.tenantId] + ofValue v := do + let durableExecutionArn ← v.opt "DurableExecutionArn" + let executedVersion ← v.opt "ExecutedVersion" + let functionName ← v.req "FunctionName" + let input ← v.opt "Input" + let tenantId ← v.opt "TenantId" + return { durableExecutionArn, executedVersion, functionName, input, tenantId } + +/-- Details about a chained invocation that succeeded. -/ +structure ChainedInvokeSucceededDetails where + /-- The response payload from the successful operation. -/ + result : EventResult +deriving DecidableEq, Repr, Inhabited + +instance : Shape ChainedInvokeSucceededDetails where + schema := .struct "ChainedInvokeSucceededDetails" [({ name := "Result", required := true }, (Shape.schema EventResult))] + toValue x := record [put "Result" x.result] + ofValue v := do + let result ← v.req "Result" + return { result } + +/-- Code signing configuration policies specify the validation failure action for signature mismatch or expiry. -/ +structure CodeSigningPolicies where + /-- Code signing configuration policy for deployment validation failure. -/ + untrustedArtifactOnDeployment : Option CodeSigningPolicy := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CodeSigningPolicies where + schema := .struct "CodeSigningPolicies" [({ name := "UntrustedArtifactOnDeployment" }, (Shape.schema CodeSigningPolicy))] + toValue x := record [putOpt "UntrustedArtifactOnDeployment" x.untrustedArtifactOnDeployment] + ofValue v := do + let untrustedArtifactOnDeployment ← v.opt "UntrustedArtifactOnDeployment" + return { untrustedArtifactOnDeployment } + +/-- Details about a durable execution context. -/ +structure ContextDetails where + /-- Details about the context failure. -/ + error : Option ErrorObject := none + /-- Whether the state data of child operations of this completed context should be included in the invoke payload and GetDurableExecutionState response. -/ + replayChildren : Option Bool := none + /-- The response payload from the context. -/ + result : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ContextDetails where + schema := .struct "ContextDetails" [({ name := "Error" }, (Shape.schema ErrorObject)), + ({ name := "ReplayChildren" }, .bool), + ({ name := "Result" }, .string)] + toValue x := record [putOpt "Error" x.error, putOpt "ReplayChildren" x.replayChildren, putOpt "Result" x.result] + ofValue v := do + let error ← v.opt "Error" + let replayChildren ← v.opt "ReplayChildren" + let result ← v.opt "Result" + return { error, replayChildren, result } + +/-- Details about a context that succeeded. -/ +structure ContextSucceededDetails where + /-- The JSON response payload from the successful context. -/ + result : EventResult +deriving DecidableEq, Repr, Inhabited + +instance : Shape ContextSucceededDetails where + schema := .struct "ContextSucceededDetails" [({ name := "Result", required := true }, (Shape.schema EventResult))] + toValue x := record [put "Result" x.result] + ofValue v := do + let result ← v.req "Result" + return { result } + +structure CreateAliasRequest where + /-- A description of the alias. -/ + description : Option String := none + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- The function version that the alias invokes. -/ + functionVersion : String + /-- The name of the alias. -/ + name : String + /-- The routing configuration of the alias. -/ + routingConfig : Option AliasRoutingConfiguration := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateAliasRequest where + schema := .struct "CreateAliasRequest" [({ name := "Description" }, .string), + ({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "FunctionVersion", required := true }, .string), + ({ name := "Name", required := true }, .string), + ({ name := "RoutingConfig" }, (Shape.schema AliasRoutingConfiguration))] + toValue x := record [putOpt "Description" x.description, put "FunctionName" x.functionName, put "FunctionVersion" x.functionVersion, put "Name" x.name, putOpt "RoutingConfig" x.routingConfig] + ofValue v := do + let description ← v.opt "Description" + let functionName ← v.req "FunctionName" + let functionVersion ← v.req "FunctionVersion" + let name ← v.req "Name" + let routingConfig ← v.opt "RoutingConfig" + return { description, functionName, functionVersion, name, routingConfig } + +structure CreateFunctionUrlConfigRequest where + /-- The type of authentication that your function URL uses. -/ + authType : FunctionUrlAuthType + /-- The cross-origin resource sharing (CORS) settings for your function URL. -/ + cors : Option Cors := none + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- Use one of the following options: BUFFERED – This is the default option. -/ + invokeMode : Option InvokeMode := none + /-- The alias name. -/ + qualifier : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateFunctionUrlConfigRequest where + schema := .struct "CreateFunctionUrlConfigRequest" [({ name := "AuthType", required := true }, (Shape.schema FunctionUrlAuthType)), + ({ name := "Cors" }, (Shape.schema Cors)), + ({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "InvokeMode" }, (Shape.schema InvokeMode)), + ({ name := "Qualifier", location := .query "Qualifier" }, .string)] + toValue x := record [put "AuthType" x.authType, putOpt "Cors" x.cors, put "FunctionName" x.functionName, putOpt "InvokeMode" x.invokeMode, putOpt "Qualifier" x.qualifier] + ofValue v := do + let authType ← v.req "AuthType" + let cors ← v.opt "Cors" + let functionName ← v.req "FunctionName" + let invokeMode ← v.opt "InvokeMode" + let qualifier ← v.opt "Qualifier" + return { authType, cors, functionName, invokeMode, qualifier } + +structure CreateFunctionUrlConfigResponse where + /-- The type of authentication that your function URL uses. -/ + authType : FunctionUrlAuthType + /-- The cross-origin resource sharing (CORS) settings for your function URL. -/ + cors : Option Cors := none + /-- When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + creationTime : String + /-- The Amazon Resource Name (ARN) of your function. -/ + functionArn : String + /-- The HTTP URL endpoint for your function. -/ + functionUrl : String + /-- Use one of the following options: BUFFERED – This is the default option. -/ + invokeMode : Option InvokeMode := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateFunctionUrlConfigResponse where + schema := .struct "CreateFunctionUrlConfigResponse" [({ name := "AuthType", required := true }, (Shape.schema FunctionUrlAuthType)), + ({ name := "Cors" }, (Shape.schema Cors)), + ({ name := "CreationTime", required := true }, .string), + ({ name := "FunctionArn", required := true }, .string), + ({ name := "FunctionUrl", required := true }, .string), + ({ name := "InvokeMode" }, (Shape.schema InvokeMode))] + toValue x := record [put "AuthType" x.authType, putOpt "Cors" x.cors, put "CreationTime" x.creationTime, put "FunctionArn" x.functionArn, put "FunctionUrl" x.functionUrl, putOpt "InvokeMode" x.invokeMode] + ofValue v := do + let authType ← v.req "AuthType" + let cors ← v.opt "Cors" + let creationTime ← v.req "CreationTime" + let functionArn ← v.req "FunctionArn" + let functionUrl ← v.req "FunctionUrl" + let invokeMode ← v.opt "InvokeMode" + return { authType, cors, creationTime, functionArn, functionUrl, invokeMode } + +/-- A configuration object that specifies the destination of an event after Lambda processes it. -/ +structure DestinationConfig where + /-- The destination configuration for failed invocations. -/ + onFailure : Option OnFailure := none + /-- The destination configuration for successful invocations. -/ + onSuccess : Option OnSuccess := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DestinationConfig where + schema := .struct "DestinationConfig" [({ name := "OnFailure" }, (Shape.schema OnFailure)), + ({ name := "OnSuccess" }, (Shape.schema OnSuccess))] + toValue x := record [putOpt "OnFailure" x.onFailure, putOpt "OnSuccess" x.onSuccess] + ofValue v := do + let onFailure ← v.opt "OnFailure" + let onSuccess ← v.opt "OnSuccess" + return { onFailure, onSuccess } + +/-- Specific configuration settings for a DocumentDB event source. -/ +structure DocumentDBEventSourceConfig where + /-- The name of the collection to consume within the database. -/ + collectionName : Option String := none + /-- The name of the database to consume within the DocumentDB cluster. -/ + databaseName : Option String := none + /-- Determines what DocumentDB sends to your event stream during document update operations. -/ + fullDocument : Option FullDocument := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DocumentDBEventSourceConfig where + schema := .struct "DocumentDBEventSourceConfig" [({ name := "CollectionName" }, .string), + ({ name := "DatabaseName" }, .string), + ({ name := "FullDocument" }, (Shape.schema FullDocument))] + toValue x := record [putOpt "CollectionName" x.collectionName, putOpt "DatabaseName" x.databaseName, putOpt "FullDocument" x.fullDocument] + ofValue v := do + let collectionName ← v.opt "CollectionName" + let databaseName ← v.opt "DatabaseName" + let fullDocument ← v.opt "FullDocument" + return { collectionName, databaseName, fullDocument } + +/-- The results of an operation to update or read environment variables. -/ +structure EnvironmentResponse where + /-- Error messages for environment variables that couldn't be applied. -/ + error : Option EnvironmentError := none + /-- Environment variable key-value pairs. -/ + variables : Option (Dict String String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EnvironmentResponse where + schema := .struct "EnvironmentResponse" [({ name := "Error" }, (Shape.schema EnvironmentError)), + ({ name := "Variables" }, (.map .string .string "key" "value"))] + toValue x := record [putOpt "Error" x.error, putOpt "Variables" x.variables] + ofValue v := do + let error ← v.opt "Error" + let variables ← v.opt "Variables" + return { error, variables } + +/-- Error information for an event. -/ +structure EventError where + /-- The error payload. -/ + payload : Option ErrorObject := none + /-- Indicates if the error payload was truncated due to size limits. -/ + truncated : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EventError where + schema := .struct "EventError" [({ name := "Payload" }, (Shape.schema ErrorObject)), + ({ name := "Truncated" }, .bool)] + toValue x := record [putOpt "Payload" x.payload, putOpt "Truncated" x.truncated] + ofValue v := do + let payload ← v.opt "Payload" + let truncated ← v.opt "Truncated" + return { payload, truncated } + +/-- (Amazon MSK, and self-managed Apache Kafka only) The logging configuration for your event source. -/ +structure EventSourceMappingLoggingConfig where + /-- The log level you want your event source mapping to use. -/ + systemLogLevel : Option EventSourceMappingSystemLogLevel := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EventSourceMappingLoggingConfig where + schema := .struct "EventSourceMappingLoggingConfig" [({ name := "SystemLogLevel" }, (Shape.schema EventSourceMappingSystemLogLevel))] + toValue x := record [putOpt "SystemLogLevel" x.systemLogLevel] + ofValue v := do + let systemLogLevel ← v.opt "SystemLogLevel" + return { systemLogLevel } + +/-- The metrics configuration for your event source. -/ +structure EventSourceMappingMetricsConfig where + /-- The metrics you want your event source mapping to produce, including EventCount , ErrorCount , KafkaMetrics . -/ + metrics : Option (List EventSourceMappingMetric) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EventSourceMappingMetricsConfig where + schema := .struct "EventSourceMappingMetricsConfig" [({ name := "Metrics" }, (.list (Shape.schema EventSourceMappingMetric) "member"))] + toValue x := record [putOpt "Metrics" x.metrics] + ofValue v := do + let metrics ← v.opt "Metrics" + return { metrics } + +/-- Information about a durable execution . -/ +structure Execution where + /-- The Amazon Resource Name (ARN) of the durable execution, if this execution is a durable execution. -/ + durableExecutionArn : String + /-- The unique name of the durable execution, if one was provided when the execution was started. -/ + durableExecutionName : String + /-- The date and time when the durable execution ended, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + endTimestamp : Option Timestamp := none + /-- The Amazon Resource Name (ARN) of the Lambda function. -/ + functionArn : String + /-- The ARN of the Key Management Service (KMS) customer managed key that is used to encrypt your durable execution's payload data, including input, output, and error payloads. -/ + kmsKeyArn : Option String := none + /-- The date and time when the durable execution started, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + startTimestamp : Timestamp + /-- The current status of the durable execution. -/ + status : ExecutionStatus +deriving DecidableEq, Repr, Inhabited + +instance : Shape Execution where + schema := .struct "Execution" [({ name := "DurableExecutionArn", required := true }, .string), + ({ name := "DurableExecutionName", required := true }, .string), + ({ name := "EndTimestamp" }, (.time none)), + ({ name := "FunctionArn", required := true }, .string), + ({ name := "KMSKeyArn" }, .string), + ({ name := "StartTimestamp", required := true }, (.time none)), + ({ name := "Status", required := true }, (Shape.schema ExecutionStatus))] + toValue x := record [put "DurableExecutionArn" x.durableExecutionArn, put "DurableExecutionName" x.durableExecutionName, putOpt "EndTimestamp" x.endTimestamp, put "FunctionArn" x.functionArn, putOpt "KMSKeyArn" x.kmsKeyArn, put "StartTimestamp" x.startTimestamp, put "Status" x.status] + ofValue v := do + let durableExecutionArn ← v.req "DurableExecutionArn" + let durableExecutionName ← v.req "DurableExecutionName" + let endTimestamp ← v.opt "EndTimestamp" + let functionArn ← v.req "FunctionArn" + let kmsKeyArn ← v.opt "KMSKeyArn" + let startTimestamp ← v.req "StartTimestamp" + let status ← v.req "Status" + return { durableExecutionArn, durableExecutionName, endTimestamp, functionArn, kmsKeyArn, startTimestamp, status } + +/-- Details about a durable execution that paused. -/ +structure ExecutionPausedDetails where + /-- Specifies whether the pause also paused the execution timeout. -/ + executionTimeoutPaused : Bool + /-- The date and time when you requested the pause, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + pauseRequestTimestamp : Timestamp + /-- The reason that you provided when you paused the execution. -/ + reason : Option EventPauseReason := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExecutionPausedDetails where + schema := .struct "ExecutionPausedDetails" [({ name := "ExecutionTimeoutPaused", required := true }, .bool), + ({ name := "PauseRequestTimestamp", required := true }, (.time none)), + ({ name := "Reason" }, (Shape.schema EventPauseReason))] + toValue x := record [put "ExecutionTimeoutPaused" x.executionTimeoutPaused, put "PauseRequestTimestamp" x.pauseRequestTimestamp, putOpt "Reason" x.reason] + ofValue v := do + let executionTimeoutPaused ← v.req "ExecutionTimeoutPaused" + let pauseRequestTimestamp ← v.req "PauseRequestTimestamp" + let reason ← v.opt "Reason" + return { executionTimeoutPaused, pauseRequestTimestamp, reason } + +/-- Details about a durable execution that resumed. -/ +structure ExecutionResumedDetails where + /-- The reason that you provided when you resumed the execution. -/ + reason : Option EventResumeReason := none + /-- The date and time when you requested the resume, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + resumeRequestTimestamp : Timestamp +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExecutionResumedDetails where + schema := .struct "ExecutionResumedDetails" [({ name := "Reason" }, (Shape.schema EventResumeReason)), + ({ name := "ResumeRequestTimestamp", required := true }, (.time none))] + toValue x := record [putOpt "Reason" x.reason, put "ResumeRequestTimestamp" x.resumeRequestTimestamp] + ofValue v := do + let reason ← v.opt "Reason" + let resumeRequestTimestamp ← v.req "ResumeRequestTimestamp" + return { reason, resumeRequestTimestamp } + +/-- Details about a durable execution that started. -/ +structure ExecutionStartedDetails where + /-- The maximum amount of time that the durable execution is allowed to run, in seconds. -/ + executionTimeout : Int + /-- The input payload provided for the durable execution. -/ + input : EventInput +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExecutionStartedDetails where + schema := .struct "ExecutionStartedDetails" [({ name := "ExecutionTimeout", required := true }, .int), + ({ name := "Input", required := true }, (Shape.schema EventInput))] + toValue x := record [put "ExecutionTimeout" x.executionTimeout, put "Input" x.input] + ofValue v := do + let executionTimeout ← v.req "ExecutionTimeout" + let input ← v.req "Input" + return { executionTimeout, input } + +/-- Details about a durable execution that succeeded. -/ +structure ExecutionSucceededDetails where + /-- The response payload from the successful operation. -/ + result : EventResult +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExecutionSucceededDetails where + schema := .struct "ExecutionSucceededDetails" [({ name := "Result", required := true }, (Shape.schema EventResult))] + toValue x := record [put "Result" x.result] + ofValue v := do + let result ← v.req "Result" + return { result } + +/-- An object that contains the filters for an event source. -/ +structure FilterCriteria where + /-- A list of filters. -/ + filters : Option (List Filter) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FilterCriteria where + schema := .struct "FilterCriteria" [({ name := "Filters" }, (.list (Shape.schema Filter) "member"))] + toValue x := record [putOpt "Filters" x.filters] + ofValue v := do + let filters ← v.opt "Filters" + return { filters } + +/-- The code for the Lambda function. -/ +structure FunctionCode where + /-- URI of a container image in the Amazon ECR registry. -/ + imageUri : Option String := none + /-- An Amazon S3 bucket in the same Amazon Web Services Region as your function. -/ + s3Bucket : Option String := none + /-- The Amazon S3 key of the deployment package. -/ + s3Key : Option String := none + /-- Specifies how the deployment package is stored. -/ + s3ObjectStorageMode : Option S3ObjectStorageMode := none + /-- For versioned objects, the version of the deployment package object to use. -/ + s3ObjectVersion : Option String := none + /-- The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's .zip deployment package. -/ + sourceKMSKeyArn : Option String := none + /-- The base64-encoded contents of the deployment package. -/ + zipFile : Option Blob := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FunctionCode where + schema := .struct "FunctionCode" [({ name := "ImageUri" }, .string), + ({ name := "S3Bucket" }, .string), + ({ name := "S3Key" }, .string), + ({ name := "S3ObjectStorageMode" }, (Shape.schema S3ObjectStorageMode)), + ({ name := "S3ObjectVersion" }, .string), + ({ name := "SourceKMSKeyArn" }, .string), + ({ name := "ZipFile" }, .blob)] + toValue x := record [putOpt "ImageUri" x.imageUri, putOpt "S3Bucket" x.s3Bucket, putOpt "S3Key" x.s3Key, putOpt "S3ObjectStorageMode" x.s3ObjectStorageMode, putOpt "S3ObjectVersion" x.s3ObjectVersion, putOpt "SourceKMSKeyArn" x.sourceKMSKeyArn, putOpt "ZipFile" x.zipFile] + ofValue v := do + let imageUri ← v.opt "ImageUri" + let s3Bucket ← v.opt "S3Bucket" + let s3Key ← v.opt "S3Key" + let s3ObjectStorageMode ← v.opt "S3ObjectStorageMode" + let s3ObjectVersion ← v.opt "S3ObjectVersion" + let sourceKMSKeyArn ← v.opt "SourceKMSKeyArn" + let zipFile ← v.opt "ZipFile" + return { imageUri, s3Bucket, s3Key, s3ObjectStorageMode, s3ObjectVersion, sourceKMSKeyArn, zipFile } + +/-- Details about a function's deployment package. -/ +structure FunctionCodeLocation where + /-- An object that contains details about an error related to function deployment package retrieval. -/ + error : Option FunctionCodeLocationError := none + /-- URI of a container image in the Amazon ECR registry. -/ + imageUri : Option String := none + /-- A presigned URL that you can use to download the deployment package. -/ + location : Option String := none + /-- The service that's hosting the file. -/ + repositoryType : Option String := none + /-- The resolved URI for the image. -/ + resolvedImageUri : Option String := none + /-- The resolved Amazon S3 object that contains the deployment package. -/ + resolvedS3Object : Option ResolvedS3Object := none + /-- The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's .zip deployment package. -/ + sourceKMSKeyArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FunctionCodeLocation where + schema := .struct "FunctionCodeLocation" [({ name := "Error" }, (Shape.schema FunctionCodeLocationError)), + ({ name := "ImageUri" }, .string), + ({ name := "Location" }, .string), + ({ name := "RepositoryType" }, .string), + ({ name := "ResolvedImageUri" }, .string), + ({ name := "ResolvedS3Object" }, (Shape.schema ResolvedS3Object)), + ({ name := "SourceKMSKeyArn" }, .string)] + toValue x := record [putOpt "Error" x.error, putOpt "ImageUri" x.imageUri, putOpt "Location" x.location, putOpt "RepositoryType" x.repositoryType, putOpt "ResolvedImageUri" x.resolvedImageUri, putOpt "ResolvedS3Object" x.resolvedS3Object, putOpt "SourceKMSKeyArn" x.sourceKMSKeyArn] + ofValue v := do + let error ← v.opt "Error" + let imageUri ← v.opt "ImageUri" + let location ← v.opt "Location" + let repositoryType ← v.opt "RepositoryType" + let resolvedImageUri ← v.opt "ResolvedImageUri" + let resolvedS3Object ← v.opt "ResolvedS3Object" + let sourceKMSKeyArn ← v.opt "SourceKMSKeyArn" + return { error, imageUri, location, repositoryType, resolvedImageUri, resolvedS3Object, sourceKMSKeyArn } + +/-- Details about a Lambda function URL. -/ +structure FunctionUrlConfig where + /-- The type of authentication that your function URL uses. -/ + authType : FunctionUrlAuthType + /-- The cross-origin resource sharing (CORS) settings for your function URL. -/ + cors : Option Cors := none + /-- When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + creationTime : String + /-- The Amazon Resource Name (ARN) of your function. -/ + functionArn : String + /-- The HTTP URL endpoint for your function. -/ + functionUrl : String + /-- Use one of the following options: BUFFERED – This is the default option. -/ + invokeMode : Option InvokeMode := none + /-- When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + lastModifiedTime : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape FunctionUrlConfig where + schema := .struct "FunctionUrlConfig" [({ name := "AuthType", required := true }, (Shape.schema FunctionUrlAuthType)), + ({ name := "Cors" }, (Shape.schema Cors)), + ({ name := "CreationTime", required := true }, .string), + ({ name := "FunctionArn", required := true }, .string), + ({ name := "FunctionUrl", required := true }, .string), + ({ name := "InvokeMode" }, (Shape.schema InvokeMode)), + ({ name := "LastModifiedTime", required := true }, .string)] + toValue x := record [put "AuthType" x.authType, putOpt "Cors" x.cors, put "CreationTime" x.creationTime, put "FunctionArn" x.functionArn, put "FunctionUrl" x.functionUrl, putOpt "InvokeMode" x.invokeMode, put "LastModifiedTime" x.lastModifiedTime] + ofValue v := do + let authType ← v.req "AuthType" + let cors ← v.opt "Cors" + let creationTime ← v.req "CreationTime" + let functionArn ← v.req "FunctionArn" + let functionUrl ← v.req "FunctionUrl" + let invokeMode ← v.opt "InvokeMode" + let lastModifiedTime ← v.req "LastModifiedTime" + return { authType, cors, creationTime, functionArn, functionUrl, invokeMode, lastModifiedTime } + +/-- Information about a function version that uses a specific capacity provider, including its ARN and current state. -/ +structure FunctionVersionsByCapacityProviderListItem where + /-- The Amazon Resource Name (ARN) of the function version. -/ + functionArn : String + /-- The current state of the function version. -/ + state : State +deriving DecidableEq, Repr, Inhabited + +instance : Shape FunctionVersionsByCapacityProviderListItem where + schema := .struct "FunctionVersionsByCapacityProviderListItem" [({ name := "FunctionArn", required := true }, .string), + ({ name := "State", required := true }, (Shape.schema State))] + toValue x := record [put "FunctionArn" x.functionArn, put "State" x.state] + ofValue v := do + let functionArn ← v.req "FunctionArn" + let state ← v.req "State" + return { functionArn, state } + +structure GetAccountSettingsResponse where + /-- Limits that are related to concurrency and code storage. -/ + accountLimit : Option AccountLimit := none + /-- The number of functions and amount of storage in use. -/ + accountUsage : Option AccountUsage := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetAccountSettingsResponse where + schema := .struct "GetAccountSettingsResponse" [({ name := "AccountLimit" }, (Shape.schema AccountLimit)), + ({ name := "AccountUsage" }, (Shape.schema AccountUsage))] + toValue x := record [putOpt "AccountLimit" x.accountLimit, putOpt "AccountUsage" x.accountUsage] + ofValue v := do + let accountLimit ← v.opt "AccountLimit" + let accountUsage ← v.opt "AccountUsage" + return { accountLimit, accountUsage } + +/-- The response from the GetDurableExecution operation, containing detailed information about the durable execution. -/ +structure GetDurableExecutionResponse where + /-- Configuration settings for the durable execution, including execution timeout, retention period for execution history, and an optional ARN of the Key Management Service (KMS) customer managed key that is used to encrypt your durable executi -/ + durableConfig : Option DurableConfig := none + /-- The Amazon Resource Name (ARN) of the durable execution. -/ + durableExecutionArn : String + /-- The name of the durable execution. -/ + durableExecutionName : String + /-- The date and time when the durable execution ended, in Unix timestamp format. -/ + endTimestamp : Option Timestamp := none + /-- Error information if the durable execution failed. -/ + error : Option ErrorObject := none + /-- Indicates whether execution data is included in this response. -/ + executionDataIncluded : Option Bool := none + /-- The date and time when the durable execution will time out, in Unix timestamp format. -/ + expectedExecutionTimeoutTimestamp : Option Timestamp := none + /-- The Amazon Resource Name (ARN) of the Lambda function that was invoked to start this durable execution. -/ + functionArn : String + /-- The JSON input payload that you provided when you started the durable execution. -/ + inputPayload : Option String := none + /-- The details of the pause, including when you requested it and whether it pauses the execution timeout. -/ + pauseDetails : Option PauseDetails := none + /-- The JSON result returned by the durable execution if it completed successfully. -/ + result : Option String := none + /-- The date and time when the durable execution started, in Unix timestamp format. -/ + startTimestamp : Timestamp + /-- The durable execution has one of the following statuses: RUNNING – The execution is running or waiting for pending operations to complete. -/ + status : ExecutionStatus + /-- The trace headers associated with the durable execution. -/ + traceHeader : Option TraceHeader := none + /-- The version of the Lambda function that was invoked for this durable execution. -/ + version : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetDurableExecutionResponse where + schema := .struct "GetDurableExecutionResponse" [({ name := "DurableConfig" }, (Shape.schema DurableConfig)), + ({ name := "DurableExecutionArn", required := true }, .string), + ({ name := "DurableExecutionName", required := true }, .string), + ({ name := "EndTimestamp" }, (.time none)), + ({ name := "Error" }, (Shape.schema ErrorObject)), + ({ name := "ExecutionDataIncluded" }, .bool), + ({ name := "ExpectedExecutionTimeoutTimestamp" }, (.time none)), + ({ name := "FunctionArn", required := true }, .string), + ({ name := "InputPayload" }, .string), + ({ name := "PauseDetails" }, (Shape.schema PauseDetails)), + ({ name := "Result" }, .string), + ({ name := "StartTimestamp", required := true }, (.time none)), + ({ name := "Status", required := true }, (Shape.schema ExecutionStatus)), + ({ name := "TraceHeader" }, (Shape.schema TraceHeader)), + ({ name := "Version" }, .string)] + toValue x := record [putOpt "DurableConfig" x.durableConfig, put "DurableExecutionArn" x.durableExecutionArn, put "DurableExecutionName" x.durableExecutionName, putOpt "EndTimestamp" x.endTimestamp, putOpt "Error" x.error, putOpt "ExecutionDataIncluded" x.executionDataIncluded, putOpt "ExpectedExecutionTimeoutTimestamp" x.expectedExecutionTimeoutTimestamp, put "FunctionArn" x.functionArn, putOpt "InputPayload" x.inputPayload, putOpt "PauseDetails" x.pauseDetails, putOpt "Result" x.result, put "StartTimestamp" x.startTimestamp, put "Status" x.status, putOpt "TraceHeader" x.traceHeader, putOpt "Version" x.version] + ofValue v := do + let durableConfig ← v.opt "DurableConfig" + let durableExecutionArn ← v.req "DurableExecutionArn" + let durableExecutionName ← v.req "DurableExecutionName" + let endTimestamp ← v.opt "EndTimestamp" + let error ← v.opt "Error" + let executionDataIncluded ← v.opt "ExecutionDataIncluded" + let expectedExecutionTimeoutTimestamp ← v.opt "ExpectedExecutionTimeoutTimestamp" + let functionArn ← v.req "FunctionArn" + let inputPayload ← v.opt "InputPayload" + let pauseDetails ← v.opt "PauseDetails" + let result ← v.opt "Result" + let startTimestamp ← v.req "StartTimestamp" + let status ← v.req "Status" + let traceHeader ← v.opt "TraceHeader" + let version ← v.opt "Version" + return { durableConfig, durableExecutionArn, durableExecutionName, endTimestamp, error, executionDataIncluded, expectedExecutionTimeoutTimestamp, functionArn, inputPayload, pauseDetails, result, startTimestamp, status, traceHeader, version } + +structure GetFunctionRecursionConfigResponse where + /-- If your function's recursive loop detection configuration is Allow , Lambda doesn't take any action when it detects your function being invoked as part of a recursive loop. -/ + recursiveLoop : Option RecursiveLoop := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetFunctionRecursionConfigResponse where + schema := .struct "GetFunctionRecursionConfigResponse" [({ name := "RecursiveLoop" }, (Shape.schema RecursiveLoop))] + toValue x := record [putOpt "RecursiveLoop" x.recursiveLoop] + ofValue v := do + let recursiveLoop ← v.opt "RecursiveLoop" + return { recursiveLoop } + +structure GetFunctionScalingConfigResponse where + /-- The scaling configuration that is currently applied to the function. -/ + appliedFunctionScalingConfig : Option FunctionScalingConfig := none + /-- The Amazon Resource Name (ARN) of the function. -/ + functionArn : Option String := none + /-- The scaling configuration that was requested for the function. -/ + requestedFunctionScalingConfig : Option FunctionScalingConfig := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetFunctionScalingConfigResponse where + schema := .struct "GetFunctionScalingConfigResponse" [({ name := "AppliedFunctionScalingConfig" }, (Shape.schema FunctionScalingConfig)), + ({ name := "FunctionArn" }, .string), + ({ name := "RequestedFunctionScalingConfig" }, (Shape.schema FunctionScalingConfig))] + toValue x := record [putOpt "AppliedFunctionScalingConfig" x.appliedFunctionScalingConfig, putOpt "FunctionArn" x.functionArn, putOpt "RequestedFunctionScalingConfig" x.requestedFunctionScalingConfig] + ofValue v := do + let appliedFunctionScalingConfig ← v.opt "AppliedFunctionScalingConfig" + let functionArn ← v.opt "FunctionArn" + let requestedFunctionScalingConfig ← v.opt "RequestedFunctionScalingConfig" + return { appliedFunctionScalingConfig, functionArn, requestedFunctionScalingConfig } + +structure GetFunctionUrlConfigResponse where + /-- The type of authentication that your function URL uses. -/ + authType : FunctionUrlAuthType + /-- The cross-origin resource sharing (CORS) settings for your function URL. -/ + cors : Option Cors := none + /-- When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + creationTime : String + /-- The Amazon Resource Name (ARN) of your function. -/ + functionArn : String + /-- The HTTP URL endpoint for your function. -/ + functionUrl : String + /-- Use one of the following options: BUFFERED – This is the default option. -/ + invokeMode : Option InvokeMode := none + /-- When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + lastModifiedTime : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetFunctionUrlConfigResponse where + schema := .struct "GetFunctionUrlConfigResponse" [({ name := "AuthType", required := true }, (Shape.schema FunctionUrlAuthType)), + ({ name := "Cors" }, (Shape.schema Cors)), + ({ name := "CreationTime", required := true }, .string), + ({ name := "FunctionArn", required := true }, .string), + ({ name := "FunctionUrl", required := true }, .string), + ({ name := "InvokeMode" }, (Shape.schema InvokeMode)), + ({ name := "LastModifiedTime", required := true }, .string)] + toValue x := record [put "AuthType" x.authType, putOpt "Cors" x.cors, put "CreationTime" x.creationTime, put "FunctionArn" x.functionArn, put "FunctionUrl" x.functionUrl, putOpt "InvokeMode" x.invokeMode, put "LastModifiedTime" x.lastModifiedTime] + ofValue v := do + let authType ← v.req "AuthType" + let cors ← v.opt "Cors" + let creationTime ← v.req "CreationTime" + let functionArn ← v.req "FunctionArn" + let functionUrl ← v.req "FunctionUrl" + let invokeMode ← v.opt "InvokeMode" + let lastModifiedTime ← v.req "LastModifiedTime" + return { authType, cors, creationTime, functionArn, functionUrl, invokeMode, lastModifiedTime } + +structure GetProvisionedConcurrencyConfigResponse where + /-- The amount of provisioned concurrency allocated. -/ + allocatedProvisionedConcurrentExecutions : Option Int := none + /-- The amount of provisioned concurrency available. -/ + availableProvisionedConcurrentExecutions : Option Int := none + /-- The date and time that a user last updated the configuration, in ISO 8601 format . -/ + lastModified : Option String := none + /-- The amount of provisioned concurrency requested. -/ + requestedProvisionedConcurrentExecutions : Option Int := none + /-- The status of the allocation process. -/ + status : Option ProvisionedConcurrencyStatusEnum := none + /-- For failed allocations, the reason that provisioned concurrency could not be allocated. -/ + statusReason : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetProvisionedConcurrencyConfigResponse where + schema := .struct "GetProvisionedConcurrencyConfigResponse" [({ name := "AllocatedProvisionedConcurrentExecutions" }, .int), + ({ name := "AvailableProvisionedConcurrentExecutions" }, .int), + ({ name := "LastModified" }, .string), + ({ name := "RequestedProvisionedConcurrentExecutions" }, .int), + ({ name := "Status" }, (Shape.schema ProvisionedConcurrencyStatusEnum)), + ({ name := "StatusReason" }, .string)] + toValue x := record [putOpt "AllocatedProvisionedConcurrentExecutions" x.allocatedProvisionedConcurrentExecutions, putOpt "AvailableProvisionedConcurrentExecutions" x.availableProvisionedConcurrentExecutions, putOpt "LastModified" x.lastModified, putOpt "RequestedProvisionedConcurrentExecutions" x.requestedProvisionedConcurrentExecutions, putOpt "Status" x.status, putOpt "StatusReason" x.statusReason] + ofValue v := do + let allocatedProvisionedConcurrentExecutions ← v.opt "AllocatedProvisionedConcurrentExecutions" + let availableProvisionedConcurrentExecutions ← v.opt "AvailableProvisionedConcurrentExecutions" + let lastModified ← v.opt "LastModified" + let requestedProvisionedConcurrentExecutions ← v.opt "RequestedProvisionedConcurrentExecutions" + let status ← v.opt "Status" + let statusReason ← v.opt "StatusReason" + return { allocatedProvisionedConcurrentExecutions, availableProvisionedConcurrentExecutions, lastModified, requestedProvisionedConcurrentExecutions, status, statusReason } + +structure GetRuntimeManagementConfigResponse where + /-- The Amazon Resource Name (ARN) of your function. -/ + functionArn : Option String := none + /-- The ARN of the runtime the function is configured to use. -/ + runtimeVersionArn : Option String := none + /-- The current runtime update mode of the function. -/ + updateRuntimeOn : Option UpdateRuntimeOn := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetRuntimeManagementConfigResponse where + schema := .struct "GetRuntimeManagementConfigResponse" [({ name := "FunctionArn" }, .string), + ({ name := "RuntimeVersionArn" }, .string), + ({ name := "UpdateRuntimeOn" }, (Shape.schema UpdateRuntimeOn))] + toValue x := record [putOpt "FunctionArn" x.functionArn, putOpt "RuntimeVersionArn" x.runtimeVersionArn, putOpt "UpdateRuntimeOn" x.updateRuntimeOn] + ofValue v := do + let functionArn ← v.opt "FunctionArn" + let runtimeVersionArn ← v.opt "RuntimeVersionArn" + let updateRuntimeOn ← v.opt "UpdateRuntimeOn" + return { functionArn, runtimeVersionArn, updateRuntimeOn } + +/-- Response to a GetFunctionConfiguration request. -/ +structure ImageConfigResponse where + /-- Error response to GetFunctionConfiguration . -/ + error : Option ImageConfigError := none + /-- Configuration values that override the container image Dockerfile. -/ + imageConfig : Option ImageConfig := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ImageConfigResponse where + schema := .struct "ImageConfigResponse" [({ name := "Error" }, (Shape.schema ImageConfigError)), + ({ name := "ImageConfig" }, (Shape.schema ImageConfig))] + toValue x := record [putOpt "Error" x.error, putOpt "ImageConfig" x.imageConfig] + ofValue v := do + let error ← v.opt "Error" + let imageConfig ← v.opt "ImageConfig" + return { error, imageConfig } + +/-- Specifications that define the characteristics and constraints for compute instances used by the capacity provider. -/ +structure InstanceRequirements where + /-- A list of EC2 instance types that the capacity provider is allowed to use. -/ + allowedInstanceTypes : Option (List String) := none + /-- A list of supported CPU architectures for compute instances. -/ + architectures : Option (List Architecture) := none + /-- A list of EC2 instance types that the capacity provider should not use, even if they meet other requirements. -/ + excludedInstanceTypes : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InstanceRequirements where + schema := .struct "InstanceRequirements" [({ name := "AllowedInstanceTypes" }, (.list .string "member")), + ({ name := "Architectures" }, (.list (Shape.schema Architecture) "member")), + ({ name := "ExcludedInstanceTypes" }, (.list .string "member"))] + toValue x := record [putOpt "AllowedInstanceTypes" x.allowedInstanceTypes, putOpt "Architectures" x.architectures, putOpt "ExcludedInstanceTypes" x.excludedInstanceTypes] + ofValue v := do + let allowedInstanceTypes ← v.opt "AllowedInstanceTypes" + let architectures ← v.opt "Architectures" + let excludedInstanceTypes ← v.opt "ExcludedInstanceTypes" + return { allowedInstanceTypes, architectures, excludedInstanceTypes } + +structure InvocationRequest where + /-- Up to 3,583 bytes of base64-encoded data about the invoking client to pass to the function in the context object. -/ + clientContext : Option String := none + /-- A unique name for the durable execution. -/ + durableExecutionName : Option String := none + /-- The name or ARN of the Lambda function, version, or alias. -/ + functionName : String + /-- Choose from the following options. -/ + invocationType : Option InvocationType := none + /-- Set to Tail to include the execution log in the response. -/ + logType : Option LogType := none + /-- The JSON that you want to provide to your Lambda function as input. -/ + payload : Option Blob := none + /-- Specify a version or alias to invoke a published version of the function. -/ + qualifier : Option String := none + /-- The identifier of the tenant in a multi-tenant Lambda function. -/ + tenantId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvocationRequest where + schema := .struct "InvocationRequest" [({ name := "ClientContext", location := .header "X-Amz-Client-Context" }, .string), + ({ name := "DurableExecutionName", location := .header "X-Amz-Durable-Execution-Name" }, .string), + ({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "InvocationType", location := .header "X-Amz-Invocation-Type" }, (Shape.schema InvocationType)), + ({ name := "LogType", location := .header "X-Amz-Log-Type" }, (Shape.schema LogType)), + ({ name := "Payload", location := .payload }, .blob), + ({ name := "Qualifier", location := .query "Qualifier" }, .string), + ({ name := "TenantId", location := .header "X-Amz-Tenant-Id" }, .string)] + toValue x := record [putOpt "ClientContext" x.clientContext, putOpt "DurableExecutionName" x.durableExecutionName, put "FunctionName" x.functionName, putOpt "InvocationType" x.invocationType, putOpt "LogType" x.logType, putOpt "Payload" x.payload, putOpt "Qualifier" x.qualifier, putOpt "TenantId" x.tenantId] + ofValue v := do + let clientContext ← v.opt "ClientContext" + let durableExecutionName ← v.opt "DurableExecutionName" + let functionName ← v.req "FunctionName" + let invocationType ← v.opt "InvocationType" + let logType ← v.opt "LogType" + let payload ← v.opt "Payload" + let qualifier ← v.opt "Qualifier" + let tenantId ← v.opt "TenantId" + return { clientContext, durableExecutionName, functionName, invocationType, logType, payload, qualifier, tenantId } + +structure InvokeWithResponseStreamRequest where + /-- Up to 3,583 bytes of base64-encoded data about the invoking client to pass to the function in the context object. -/ + clientContext : Option String := none + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- Use one of the following options: RequestResponse (default) – Invoke the function synchronously. -/ + invocationType : Option ResponseStreamingInvocationType := none + /-- Set to Tail to include the execution log in the response. -/ + logType : Option LogType := none + /-- The JSON that you want to provide to your Lambda function as input. -/ + payload : Option Blob := none + /-- The alias name. -/ + qualifier : Option String := none + /-- The identifier of the tenant in a multi-tenant Lambda function. -/ + tenantId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvokeWithResponseStreamRequest where + schema := .struct "InvokeWithResponseStreamRequest" [({ name := "ClientContext", location := .header "X-Amz-Client-Context" }, .string), + ({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "InvocationType", location := .header "X-Amz-Invocation-Type" }, (Shape.schema ResponseStreamingInvocationType)), + ({ name := "LogType", location := .header "X-Amz-Log-Type" }, (Shape.schema LogType)), + ({ name := "Payload", location := .payload }, .blob), + ({ name := "Qualifier", location := .query "Qualifier" }, .string), + ({ name := "TenantId", location := .header "X-Amz-Tenant-Id" }, .string)] + toValue x := record [putOpt "ClientContext" x.clientContext, put "FunctionName" x.functionName, putOpt "InvocationType" x.invocationType, putOpt "LogType" x.logType, putOpt "Payload" x.payload, putOpt "Qualifier" x.qualifier, putOpt "TenantId" x.tenantId] + ofValue v := do + let clientContext ← v.opt "ClientContext" + let functionName ← v.req "FunctionName" + let invocationType ← v.opt "InvocationType" + let logType ← v.opt "LogType" + let payload ← v.opt "Payload" + let qualifier ← v.opt "Qualifier" + let tenantId ← v.opt "TenantId" + return { clientContext, functionName, invocationType, logType, payload, qualifier, tenantId } + +/-- An object that includes a chunk of the response payload. -/ +inductive InvokeWithResponseStreamResponseEvent where + /-- An object that's returned when the stream has ended and all the payload chunks have been returned. -/ + | invokeComplete (value : InvokeWithResponseStreamCompleteEvent) + /-- A chunk of the streamed response payload. -/ + | payloadChunk (value : InvokeResponseStreamUpdate) +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvokeWithResponseStreamResponseEvent where + schema := .union "InvokeWithResponseStreamResponseEvent" [({ name := "InvokeComplete" }, (Shape.schema InvokeWithResponseStreamCompleteEvent)), + ({ name := "PayloadChunk" }, (Shape.schema InvokeResponseStreamUpdate))] + toValue + | .invokeComplete value => record [put "InvokeComplete" value] + | .payloadChunk value => record [put "PayloadChunk" value] + ofValue + | .record [("InvokeComplete", value)] => .invokeComplete <$> Shape.ofValue value + | .record [("PayloadChunk", value)] => .payloadChunk <$> Shape.ofValue value + | _ => .error "expected exactly one member of InvokeWithResponseStreamResponseEvent" + +/-- Specific access configuration settings that tell Lambda how to authenticate with your schema registry. -/ +structure KafkaSchemaRegistryAccessConfig where + /-- The type of authentication Lambda uses to access your schema registry. -/ + type : Option KafkaSchemaRegistryAuthType := none + /-- The URI of the secret (Secrets Manager secret ARN) to authenticate with your schema registry. -/ + uri : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KafkaSchemaRegistryAccessConfig where + schema := .struct "KafkaSchemaRegistryAccessConfig" [({ name := "Type" }, (Shape.schema KafkaSchemaRegistryAuthType)), + ({ name := "URI" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "URI" x.uri] + ofValue v := do + let type ← v.opt "Type" + let uri ← v.opt "URI" + return { type, uri } + +/-- Specific schema validation configuration settings that tell Lambda the message attributes you want to validate and filter using your schema registry. -/ +structure KafkaSchemaValidationConfig where + /-- The attributes you want your schema registry to validate and filter for. -/ + «attribute» : Option KafkaSchemaValidationAttribute := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KafkaSchemaValidationConfig where + schema := .struct "KafkaSchemaValidationConfig" [({ name := "Attribute" }, (Shape.schema KafkaSchemaValidationAttribute))] + toValue x := record [putOpt "Attribute" x.«attribute»] + ofValue v := do + let «attribute» ← v.opt "Attribute" + return { «attribute» } + +/-- A ZIP archive that contains the contents of an Lambda layer . -/ +structure LayerVersionContentInput where + /-- The Amazon S3 bucket of the layer archive. -/ + s3Bucket : Option String := none + /-- The Amazon S3 key of the layer archive. -/ + s3Key : Option String := none + /-- Specifies how the layer archive is stored. -/ + s3ObjectStorageMode : Option S3ObjectStorageMode := none + /-- For versioned objects, the version of the layer archive object to use. -/ + s3ObjectVersion : Option String := none + /-- The base64-encoded contents of the layer archive. -/ + zipFile : Option Blob := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LayerVersionContentInput where + schema := .struct "LayerVersionContentInput" [({ name := "S3Bucket" }, .string), + ({ name := "S3Key" }, .string), + ({ name := "S3ObjectStorageMode" }, (Shape.schema S3ObjectStorageMode)), + ({ name := "S3ObjectVersion" }, .string), + ({ name := "ZipFile" }, .blob)] + toValue x := record [putOpt "S3Bucket" x.s3Bucket, putOpt "S3Key" x.s3Key, putOpt "S3ObjectStorageMode" x.s3ObjectStorageMode, putOpt "S3ObjectVersion" x.s3ObjectVersion, putOpt "ZipFile" x.zipFile] + ofValue v := do + let s3Bucket ← v.opt "S3Bucket" + let s3Key ← v.opt "S3Key" + let s3ObjectStorageMode ← v.opt "S3ObjectStorageMode" + let s3ObjectVersion ← v.opt "S3ObjectVersion" + let zipFile ← v.opt "ZipFile" + return { s3Bucket, s3Key, s3ObjectStorageMode, s3ObjectVersion, zipFile } + +/-- Details about a version of an Lambda layer . -/ +structure LayerVersionContentOutput where + /-- The SHA-256 hash of the layer archive. -/ + codeSha256 : Option String := none + /-- The size of the layer archive in bytes. -/ + codeSize : Option Int := none + /-- A link to the layer archive in Amazon S3 that is valid for 10 minutes. -/ + location : Option String := none + /-- The resolved Amazon S3 object that contains the layer archive. -/ + resolvedS3Object : Option ResolvedS3Object := none + /-- The Amazon Resource Name (ARN) of a signing job. -/ + signingJobArn : Option String := none + /-- The Amazon Resource Name (ARN) for a signing profile version. -/ + signingProfileVersionArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LayerVersionContentOutput where + schema := .struct "LayerVersionContentOutput" [({ name := "CodeSha256" }, .string), + ({ name := "CodeSize" }, .int), + ({ name := "Location" }, .string), + ({ name := "ResolvedS3Object" }, (Shape.schema ResolvedS3Object)), + ({ name := "SigningJobArn" }, .string), + ({ name := "SigningProfileVersionArn" }, .string)] + toValue x := record [putOpt "CodeSha256" x.codeSha256, putOpt "CodeSize" x.codeSize, putOpt "Location" x.location, putOpt "ResolvedS3Object" x.resolvedS3Object, putOpt "SigningJobArn" x.signingJobArn, putOpt "SigningProfileVersionArn" x.signingProfileVersionArn] + ofValue v := do + let codeSha256 ← v.opt "CodeSha256" + let codeSize ← v.opt "CodeSize" + let location ← v.opt "Location" + let resolvedS3Object ← v.opt "ResolvedS3Object" + let signingJobArn ← v.opt "SigningJobArn" + let signingProfileVersionArn ← v.opt "SigningProfileVersionArn" + return { codeSha256, codeSize, location, resolvedS3Object, signingJobArn, signingProfileVersionArn } + +/-- Details about a version of an Lambda layer . -/ +structure LayerVersionsListItem where + /-- A list of compatible instruction set architectures . -/ + compatibleArchitectures : Option (List Architecture) := none + /-- The layer's compatible runtimes. -/ + compatibleRuntimes : Option (List Runtime) := none + /-- The date that the version was created, in ISO 8601 format. -/ + createdDate : Option String := none + /-- The description of the version. -/ + description : Option String := none + /-- The ARN of the layer version. -/ + layerVersionArn : Option String := none + /-- The layer's open-source license. -/ + licenseInfo : Option String := none + /-- The version number. -/ + version : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LayerVersionsListItem where + schema := .struct "LayerVersionsListItem" [({ name := "CompatibleArchitectures" }, (.list (Shape.schema Architecture) "member")), + ({ name := "CompatibleRuntimes" }, (.list (Shape.schema Runtime) "member")), + ({ name := "CreatedDate" }, .string), + ({ name := "Description" }, .string), + ({ name := "LayerVersionArn" }, .string), + ({ name := "LicenseInfo" }, .string), + ({ name := "Version" }, .int)] + toValue x := record [putOpt "CompatibleArchitectures" x.compatibleArchitectures, putOpt "CompatibleRuntimes" x.compatibleRuntimes, putOpt "CreatedDate" x.createdDate, putOpt "Description" x.description, putOpt "LayerVersionArn" x.layerVersionArn, putOpt "LicenseInfo" x.licenseInfo, putOpt "Version" x.version] + ofValue v := do + let compatibleArchitectures ← v.opt "CompatibleArchitectures" + let compatibleRuntimes ← v.opt "CompatibleRuntimes" + let createdDate ← v.opt "CreatedDate" + let description ← v.opt "Description" + let layerVersionArn ← v.opt "LayerVersionArn" + let licenseInfo ← v.opt "LicenseInfo" + let version ← v.opt "Version" + return { compatibleArchitectures, compatibleRuntimes, createdDate, description, layerVersionArn, licenseInfo, version } + +structure ListCapacityProvidersRequest where + /-- Specify the pagination token that's returned by a previous request to retrieve the next page of results. -/ + marker : Option String := none + /-- The maximum number of capacity providers to return. -/ + maxItems : Option Int := none + /-- Filter capacity providers by their current state. -/ + state : Option CapacityProviderState := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListCapacityProvidersRequest where + schema := .struct "ListCapacityProvidersRequest" [({ name := "Marker", location := .query "Marker" }, .string), + ({ name := "MaxItems", location := .query "MaxItems" }, .int), + ({ name := "State", location := .query "State" }, (Shape.schema CapacityProviderState))] + toValue x := record [putOpt "Marker" x.marker, putOpt "MaxItems" x.maxItems, putOpt "State" x.state] + ofValue v := do + let marker ← v.opt "Marker" + let maxItems ← v.opt "MaxItems" + let state ← v.opt "State" + return { marker, maxItems, state } + +structure ListDurableExecutionsByFunctionRequest where + /-- Filter executions by name. -/ + durableExecutionName : Option String := none + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- Pagination token from a previous request to continue retrieving results. -/ + marker : Option String := none + /-- Maximum number of executions to return (1-1000). -/ + maxItems : Option Int := none + /-- The function version to filter executions by. -/ + qualifier : Option String := none + /-- Set to true to return results in chronological order (oldest first). -/ + reverseOrder : Option Bool := none + /-- Filter executions that started after this timestamp (ISO 8601 format). -/ + startedAfter : Option Timestamp := none + /-- Filter executions that started before this timestamp (ISO 8601 format). -/ + startedBefore : Option Timestamp := none + /-- Filters the executions by status. -/ + statuses : Option (List ExecutionStatus) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListDurableExecutionsByFunctionRequest where + schema := .struct "ListDurableExecutionsByFunctionRequest" [({ name := "DurableExecutionName", location := .query "DurableExecutionName" }, .string), + ({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Marker", location := .query "Marker" }, .string), + ({ name := "MaxItems", location := .query "MaxItems" }, .int), + ({ name := "Qualifier", location := .query "Qualifier" }, .string), + ({ name := "ReverseOrder", location := .query "ReverseOrder" }, .bool), + ({ name := "StartedAfter", location := .query "StartedAfter" }, (.time none)), + ({ name := "StartedBefore", location := .query "StartedBefore" }, (.time none)), + ({ name := "Statuses", location := .query "Statuses" }, (.list (Shape.schema ExecutionStatus) "member"))] + toValue x := record [putOpt "DurableExecutionName" x.durableExecutionName, put "FunctionName" x.functionName, putOpt "Marker" x.marker, putOpt "MaxItems" x.maxItems, putOpt "Qualifier" x.qualifier, putOpt "ReverseOrder" x.reverseOrder, putOpt "StartedAfter" x.startedAfter, putOpt "StartedBefore" x.startedBefore, putOpt "Statuses" x.statuses] + ofValue v := do + let durableExecutionName ← v.opt "DurableExecutionName" + let functionName ← v.req "FunctionName" + let marker ← v.opt "Marker" + let maxItems ← v.opt "MaxItems" + let qualifier ← v.opt "Qualifier" + let reverseOrder ← v.opt "ReverseOrder" + let startedAfter ← v.opt "StartedAfter" + let startedBefore ← v.opt "StartedBefore" + let statuses ← v.opt "Statuses" + return { durableExecutionName, functionName, marker, maxItems, qualifier, reverseOrder, startedAfter, startedBefore, statuses } + +structure ListFunctionsRequest where + /-- Set to ALL to include entries for all published versions of each function. -/ + functionVersion : Option FunctionVersion := none + /-- Specify the pagination token that's returned by a previous request to retrieve the next page of results. -/ + marker : Option String := none + /-- For Lambda@Edge functions, the Amazon Web Services Region of the master function. -/ + masterRegion : Option String := none + /-- The maximum number of functions to return in the response. -/ + maxItems : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListFunctionsRequest where + schema := .struct "ListFunctionsRequest" [({ name := "FunctionVersion", location := .query "FunctionVersion" }, (Shape.schema FunctionVersion)), + ({ name := "Marker", location := .query "Marker" }, .string), + ({ name := "MasterRegion", location := .query "MasterRegion" }, .string), + ({ name := "MaxItems", location := .query "MaxItems" }, .int)] + toValue x := record [putOpt "FunctionVersion" x.functionVersion, putOpt "Marker" x.marker, putOpt "MasterRegion" x.masterRegion, putOpt "MaxItems" x.maxItems] + ofValue v := do + let functionVersion ← v.opt "FunctionVersion" + let marker ← v.opt "Marker" + let masterRegion ← v.opt "MasterRegion" + let maxItems ← v.opt "MaxItems" + return { functionVersion, marker, masterRegion, maxItems } + +structure ListLayerVersionsRequest where + /-- The compatible instruction set architecture . -/ + compatibleArchitecture : Option Architecture := none + /-- A runtime identifier. -/ + compatibleRuntime : Option Runtime := none + /-- The name or Amazon Resource Name (ARN) of the layer. -/ + layerName : String + /-- A pagination token returned by a previous call. -/ + marker : Option String := none + /-- The maximum number of versions to return. -/ + maxItems : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListLayerVersionsRequest where + schema := .struct "ListLayerVersionsRequest" [({ name := "CompatibleArchitecture", location := .query "CompatibleArchitecture" }, (Shape.schema Architecture)), + ({ name := "CompatibleRuntime", location := .query "CompatibleRuntime" }, (Shape.schema Runtime)), + ({ name := "LayerName", required := true, location := .label }, .string), + ({ name := "Marker", location := .query "Marker" }, .string), + ({ name := "MaxItems", location := .query "MaxItems" }, .int)] + toValue x := record [putOpt "CompatibleArchitecture" x.compatibleArchitecture, putOpt "CompatibleRuntime" x.compatibleRuntime, put "LayerName" x.layerName, putOpt "Marker" x.marker, putOpt "MaxItems" x.maxItems] + ofValue v := do + let compatibleArchitecture ← v.opt "CompatibleArchitecture" + let compatibleRuntime ← v.opt "CompatibleRuntime" + let layerName ← v.req "LayerName" + let marker ← v.opt "Marker" + let maxItems ← v.opt "MaxItems" + return { compatibleArchitecture, compatibleRuntime, layerName, marker, maxItems } + +structure ListLayersRequest where + /-- The compatible instruction set architecture . -/ + compatibleArchitecture : Option Architecture := none + /-- A runtime identifier. -/ + compatibleRuntime : Option Runtime := none + /-- A pagination token returned by a previous call. -/ + marker : Option String := none + /-- The maximum number of layers to return. -/ + maxItems : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListLayersRequest where + schema := .struct "ListLayersRequest" [({ name := "CompatibleArchitecture", location := .query "CompatibleArchitecture" }, (Shape.schema Architecture)), + ({ name := "CompatibleRuntime", location := .query "CompatibleRuntime" }, (Shape.schema Runtime)), + ({ name := "Marker", location := .query "Marker" }, .string), + ({ name := "MaxItems", location := .query "MaxItems" }, .int)] + toValue x := record [putOpt "CompatibleArchitecture" x.compatibleArchitecture, putOpt "CompatibleRuntime" x.compatibleRuntime, putOpt "Marker" x.marker, putOpt "MaxItems" x.maxItems] + ofValue v := do + let compatibleArchitecture ← v.opt "CompatibleArchitecture" + let compatibleRuntime ← v.opt "CompatibleRuntime" + let marker ← v.opt "Marker" + let maxItems ← v.opt "MaxItems" + return { compatibleArchitecture, compatibleRuntime, marker, maxItems } + +/-- The function's Amazon CloudWatch Logs configuration settings. -/ +structure LoggingConfig where + /-- Set this property to filter the application logs for your function that Lambda sends to CloudWatch. -/ + applicationLogLevel : Option ApplicationLogLevel := none + /-- The format in which Lambda sends your function's application and system logs to CloudWatch. -/ + logFormat : Option LogFormat := none + /-- The name of the Amazon CloudWatch log group the function sends logs to. -/ + logGroup : Option String := none + /-- Set this property to filter the system logs for your function that Lambda sends to CloudWatch. -/ + systemLogLevel : Option SystemLogLevel := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LoggingConfig where + schema := .struct "LoggingConfig" [({ name := "ApplicationLogLevel" }, (Shape.schema ApplicationLogLevel)), + ({ name := "LogFormat" }, (Shape.schema LogFormat)), + ({ name := "LogGroup" }, .string), + ({ name := "SystemLogLevel" }, (Shape.schema SystemLogLevel))] + toValue x := record [putOpt "ApplicationLogLevel" x.applicationLogLevel, putOpt "LogFormat" x.logFormat, putOpt "LogGroup" x.logGroup, putOpt "SystemLogLevel" x.systemLogLevel] + ofValue v := do + let applicationLogLevel ← v.opt "ApplicationLogLevel" + let logFormat ← v.opt "LogFormat" + let logGroup ← v.opt "LogGroup" + let systemLogLevel ← v.opt "SystemLogLevel" + return { applicationLogLevel, logFormat, logGroup, systemLogLevel } + +/-- An update to be applied to an operation during checkpointing. -/ +structure OperationUpdate where + /-- The action to take on the operation. -/ + action : OperationAction + callbackOptions : Option CallbackOptions := none + chainedInvokeOptions : Option ChainedInvokeOptions := none + /-- Options for context operations. -/ + contextOptions : Option ContextOptions := none + /-- The error information for failed operations. -/ + error : Option ErrorObject := none + /-- The unique identifier for this operation. -/ + id : String + /-- The customer-provided name for this operation. -/ + name : Option String := none + /-- The unique identifier of the parent operation, if this operation is running within a child context. -/ + parentId : Option String := none + /-- The payload for successful operations. -/ + payload : Option String := none + /-- Options for step operations. -/ + stepOptions : Option StepOptions := none + /-- The subtype of the operation, providing additional categorization. -/ + subType : Option String := none + /-- The type of operation to update. -/ + type : OperationType + /-- Options for wait operations. -/ + waitOptions : Option WaitOptions := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape OperationUpdate where + schema := .struct "OperationUpdate" [({ name := "Action", required := true }, (Shape.schema OperationAction)), + ({ name := "CallbackOptions" }, (Shape.schema CallbackOptions)), + ({ name := "ChainedInvokeOptions" }, (Shape.schema ChainedInvokeOptions)), + ({ name := "ContextOptions" }, (Shape.schema ContextOptions)), + ({ name := "Error" }, (Shape.schema ErrorObject)), + ({ name := "Id", required := true }, .string), + ({ name := "Name" }, .string), + ({ name := "ParentId" }, .string), + ({ name := "Payload" }, .string), + ({ name := "StepOptions" }, (Shape.schema StepOptions)), + ({ name := "SubType" }, .string), + ({ name := "Type", required := true }, (Shape.schema OperationType)), + ({ name := "WaitOptions" }, (Shape.schema WaitOptions))] + toValue x := record [put "Action" x.action, putOpt "CallbackOptions" x.callbackOptions, putOpt "ChainedInvokeOptions" x.chainedInvokeOptions, putOpt "ContextOptions" x.contextOptions, putOpt "Error" x.error, put "Id" x.id, putOpt "Name" x.name, putOpt "ParentId" x.parentId, putOpt "Payload" x.payload, putOpt "StepOptions" x.stepOptions, putOpt "SubType" x.subType, put "Type" x.type, putOpt "WaitOptions" x.waitOptions] + ofValue v := do + let action ← v.req "Action" + let callbackOptions ← v.opt "CallbackOptions" + let chainedInvokeOptions ← v.opt "ChainedInvokeOptions" + let contextOptions ← v.opt "ContextOptions" + let error ← v.opt "Error" + let id ← v.req "Id" + let name ← v.opt "Name" + let parentId ← v.opt "ParentId" + let payload ← v.opt "Payload" + let stepOptions ← v.opt "StepOptions" + let subType ← v.opt "SubType" + let type ← v.req "Type" + let waitOptions ← v.opt "WaitOptions" + return { action, callbackOptions, chainedInvokeOptions, contextOptions, error, id, name, parentId, payload, stepOptions, subType, type, waitOptions } + +/-- Configuration for tag propagation to managed resources launched by the capacity provider. -/ +structure PropagateTags where + /-- A list of tags to apply to managed resources when Mode is set to Explicit . -/ + explicitTags : Option (Dict String String) := none + /-- The tag propagation mode. -/ + mode : Option PropagateTagsMode := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PropagateTags where + schema := .struct "PropagateTags" [({ name := "ExplicitTags" }, (.map .string .string "key" "value")), + ({ name := "Mode" }, (Shape.schema PropagateTagsMode))] + toValue x := record [putOpt "ExplicitTags" x.explicitTags, putOpt "Mode" x.mode] + ofValue v := do + let explicitTags ← v.opt "ExplicitTags" + let mode ← v.opt "Mode" + return { explicitTags, mode } + +/-- Details about the provisioned concurrency configuration for a function alias or version. -/ +structure ProvisionedConcurrencyConfigListItem where + /-- The amount of provisioned concurrency allocated. -/ + allocatedProvisionedConcurrentExecutions : Option Int := none + /-- The amount of provisioned concurrency available. -/ + availableProvisionedConcurrentExecutions : Option Int := none + /-- The Amazon Resource Name (ARN) of the alias or version. -/ + functionArn : Option String := none + /-- The date and time that a user last updated the configuration, in ISO 8601 format . -/ + lastModified : Option String := none + /-- The amount of provisioned concurrency requested. -/ + requestedProvisionedConcurrentExecutions : Option Int := none + /-- The status of the allocation process. -/ + status : Option ProvisionedConcurrencyStatusEnum := none + /-- For failed allocations, the reason that provisioned concurrency could not be allocated. -/ + statusReason : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ProvisionedConcurrencyConfigListItem where + schema := .struct "ProvisionedConcurrencyConfigListItem" [({ name := "AllocatedProvisionedConcurrentExecutions" }, .int), + ({ name := "AvailableProvisionedConcurrentExecutions" }, .int), + ({ name := "FunctionArn" }, .string), + ({ name := "LastModified" }, .string), + ({ name := "RequestedProvisionedConcurrentExecutions" }, .int), + ({ name := "Status" }, (Shape.schema ProvisionedConcurrencyStatusEnum)), + ({ name := "StatusReason" }, .string)] + toValue x := record [putOpt "AllocatedProvisionedConcurrentExecutions" x.allocatedProvisionedConcurrentExecutions, putOpt "AvailableProvisionedConcurrentExecutions" x.availableProvisionedConcurrentExecutions, putOpt "FunctionArn" x.functionArn, putOpt "LastModified" x.lastModified, putOpt "RequestedProvisionedConcurrentExecutions" x.requestedProvisionedConcurrentExecutions, putOpt "Status" x.status, putOpt "StatusReason" x.statusReason] + ofValue v := do + let allocatedProvisionedConcurrentExecutions ← v.opt "AllocatedProvisionedConcurrentExecutions" + let availableProvisionedConcurrentExecutions ← v.opt "AvailableProvisionedConcurrentExecutions" + let functionArn ← v.opt "FunctionArn" + let lastModified ← v.opt "LastModified" + let requestedProvisionedConcurrentExecutions ← v.opt "RequestedProvisionedConcurrentExecutions" + let status ← v.opt "Status" + let statusReason ← v.opt "StatusReason" + return { allocatedProvisionedConcurrentExecutions, availableProvisionedConcurrentExecutions, functionArn, lastModified, requestedProvisionedConcurrentExecutions, status, statusReason } + +structure PublishVersionRequest where + /-- Only publish a version if the hash value matches the value that's specified. -/ + codeSha256 : Option String := none + /-- A description for the version to override the description in the function configuration. -/ + description : Option String := none + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- Specifies where to publish the function version or configuration. -/ + publishTo : Option FunctionVersionLatestPublished := none + /-- Only update the function if the revision ID matches the ID that's specified. -/ + revisionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PublishVersionRequest where + schema := .struct "PublishVersionRequest" [({ name := "CodeSha256" }, .string), + ({ name := "Description" }, .string), + ({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "PublishTo" }, (Shape.schema FunctionVersionLatestPublished)), + ({ name := "RevisionId" }, .string)] + toValue x := record [putOpt "CodeSha256" x.codeSha256, putOpt "Description" x.description, put "FunctionName" x.functionName, putOpt "PublishTo" x.publishTo, putOpt "RevisionId" x.revisionId] + ofValue v := do + let codeSha256 ← v.opt "CodeSha256" + let description ← v.opt "Description" + let functionName ← v.req "FunctionName" + let publishTo ← v.opt "PublishTo" + let revisionId ← v.opt "RevisionId" + return { codeSha256, description, functionName, publishTo, revisionId } + +structure PutFunctionRecursionConfigRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- If you set your function's recursive loop detection configuration to Allow , Lambda doesn't take any action when it detects your function being invoked as part of a recursive loop. -/ + recursiveLoop : RecursiveLoop +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutFunctionRecursionConfigRequest where + schema := .struct "PutFunctionRecursionConfigRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "RecursiveLoop", required := true }, (Shape.schema RecursiveLoop))] + toValue x := record [put "FunctionName" x.functionName, put "RecursiveLoop" x.recursiveLoop] + ofValue v := do + let functionName ← v.req "FunctionName" + let recursiveLoop ← v.req "RecursiveLoop" + return { functionName, recursiveLoop } + +structure PutFunctionRecursionConfigResponse where + /-- The status of your function's recursive loop detection configuration. -/ + recursiveLoop : Option RecursiveLoop := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutFunctionRecursionConfigResponse where + schema := .struct "PutFunctionRecursionConfigResponse" [({ name := "RecursiveLoop" }, (Shape.schema RecursiveLoop))] + toValue x := record [putOpt "RecursiveLoop" x.recursiveLoop] + ofValue v := do + let recursiveLoop ← v.opt "RecursiveLoop" + return { recursiveLoop } + +structure PutFunctionScalingConfigRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- The scaling configuration to apply to the function, including minimum and maximum execution environment limits. -/ + functionScalingConfig : Option FunctionScalingConfig := none + /-- Specify a version or alias to set the scaling configuration for a published version of the function. -/ + qualifier : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutFunctionScalingConfigRequest where + schema := .struct "PutFunctionScalingConfigRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "FunctionScalingConfig" }, (Shape.schema FunctionScalingConfig)), + ({ name := "Qualifier", required := true, location := .query "Qualifier" }, .string)] + toValue x := record [put "FunctionName" x.functionName, putOpt "FunctionScalingConfig" x.functionScalingConfig, put "Qualifier" x.qualifier] + ofValue v := do + let functionName ← v.req "FunctionName" + let functionScalingConfig ← v.opt "FunctionScalingConfig" + let qualifier ← v.req "Qualifier" + return { functionName, functionScalingConfig, qualifier } + +structure PutFunctionScalingConfigResponse where + /-- The current state of the function after applying the scaling configuration. -/ + functionState : Option State := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutFunctionScalingConfigResponse where + schema := .struct "PutFunctionScalingConfigResponse" [({ name := "FunctionState" }, (Shape.schema State))] + toValue x := record [putOpt "FunctionState" x.functionState] + ofValue v := do + let functionState ← v.opt "FunctionState" + return { functionState } + +structure PutProvisionedConcurrencyConfigResponse where + /-- The amount of provisioned concurrency allocated. -/ + allocatedProvisionedConcurrentExecutions : Option Int := none + /-- The amount of provisioned concurrency available. -/ + availableProvisionedConcurrentExecutions : Option Int := none + /-- The date and time that a user last updated the configuration, in ISO 8601 format . -/ + lastModified : Option String := none + /-- The amount of provisioned concurrency requested. -/ + requestedProvisionedConcurrentExecutions : Option Int := none + /-- The status of the allocation process. -/ + status : Option ProvisionedConcurrencyStatusEnum := none + /-- For failed allocations, the reason that provisioned concurrency could not be allocated. -/ + statusReason : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutProvisionedConcurrencyConfigResponse where + schema := .struct "PutProvisionedConcurrencyConfigResponse" [({ name := "AllocatedProvisionedConcurrentExecutions" }, .int), + ({ name := "AvailableProvisionedConcurrentExecutions" }, .int), + ({ name := "LastModified" }, .string), + ({ name := "RequestedProvisionedConcurrentExecutions" }, .int), + ({ name := "Status" }, (Shape.schema ProvisionedConcurrencyStatusEnum)), + ({ name := "StatusReason" }, .string)] + toValue x := record [putOpt "AllocatedProvisionedConcurrentExecutions" x.allocatedProvisionedConcurrentExecutions, putOpt "AvailableProvisionedConcurrentExecutions" x.availableProvisionedConcurrentExecutions, putOpt "LastModified" x.lastModified, putOpt "RequestedProvisionedConcurrentExecutions" x.requestedProvisionedConcurrentExecutions, putOpt "Status" x.status, putOpt "StatusReason" x.statusReason] + ofValue v := do + let allocatedProvisionedConcurrentExecutions ← v.opt "AllocatedProvisionedConcurrentExecutions" + let availableProvisionedConcurrentExecutions ← v.opt "AvailableProvisionedConcurrentExecutions" + let lastModified ← v.opt "LastModified" + let requestedProvisionedConcurrentExecutions ← v.opt "RequestedProvisionedConcurrentExecutions" + let status ← v.opt "Status" + let statusReason ← v.opt "StatusReason" + return { allocatedProvisionedConcurrentExecutions, availableProvisionedConcurrentExecutions, lastModified, requestedProvisionedConcurrentExecutions, status, statusReason } + +structure PutRuntimeManagementConfigRequest where + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- Specify a version of the function. -/ + qualifier : Option String := none + /-- The ARN of the runtime version you want the function to use. -/ + runtimeVersionArn : Option String := none + /-- Specify the runtime update mode. -/ + updateRuntimeOn : UpdateRuntimeOn +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutRuntimeManagementConfigRequest where + schema := .struct "PutRuntimeManagementConfigRequest" [({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Qualifier", location := .query "Qualifier" }, .string), + ({ name := "RuntimeVersionArn" }, .string), + ({ name := "UpdateRuntimeOn", required := true }, (Shape.schema UpdateRuntimeOn))] + toValue x := record [put "FunctionName" x.functionName, putOpt "Qualifier" x.qualifier, putOpt "RuntimeVersionArn" x.runtimeVersionArn, put "UpdateRuntimeOn" x.updateRuntimeOn] + ofValue v := do + let functionName ← v.req "FunctionName" + let qualifier ← v.opt "Qualifier" + let runtimeVersionArn ← v.opt "RuntimeVersionArn" + let updateRuntimeOn ← v.req "UpdateRuntimeOn" + return { functionName, qualifier, runtimeVersionArn, updateRuntimeOn } + +structure PutRuntimeManagementConfigResponse where + /-- The ARN of the function. -/ + functionArn : String + /-- The ARN of the runtime the function is configured to use. -/ + runtimeVersionArn : Option String := none + /-- The runtime update mode. -/ + updateRuntimeOn : UpdateRuntimeOn +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutRuntimeManagementConfigResponse where + schema := .struct "PutRuntimeManagementConfigResponse" [({ name := "FunctionArn", required := true }, .string), + ({ name := "RuntimeVersionArn" }, .string), + ({ name := "UpdateRuntimeOn", required := true }, (Shape.schema UpdateRuntimeOn))] + toValue x := record [put "FunctionArn" x.functionArn, putOpt "RuntimeVersionArn" x.runtimeVersionArn, put "UpdateRuntimeOn" x.updateRuntimeOn] + ofValue v := do + let functionArn ← v.req "FunctionArn" + let runtimeVersionArn ← v.opt "RuntimeVersionArn" + let updateRuntimeOn ← v.req "UpdateRuntimeOn" + return { functionArn, runtimeVersionArn, updateRuntimeOn } + +/-- The ARN of the runtime and any errors that occured. -/ +structure RuntimeVersionConfig where + /-- Error response when Lambda is unable to retrieve the runtime version for a function. -/ + error : Option RuntimeVersionError := none + /-- The ARN of the runtime version you want the function to use. -/ + runtimeVersionArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RuntimeVersionConfig where + schema := .struct "RuntimeVersionConfig" [({ name := "Error" }, (Shape.schema RuntimeVersionError)), + ({ name := "RuntimeVersionArn" }, .string)] + toValue x := record [putOpt "Error" x.error, putOpt "RuntimeVersionArn" x.runtimeVersionArn] + ofValue v := do + let error ← v.opt "Error" + let runtimeVersionArn ← v.opt "RuntimeVersionArn" + return { error, runtimeVersionArn } + +/-- Setting controls how your function accesses data from an Amazon S3 file system. -/ +structure S3FilesConfig where + /-- Specifies if a function reads from the file system for the lowest latency, or through Amazon S3 Files feature "direct Amazon S3 bucket reads" for the highest throughput. -/ + directS3Read : Option DirectS3Read := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape S3FilesConfig where + schema := .struct "S3FilesConfig" [({ name := "DirectS3Read" }, (Shape.schema DirectS3Read))] + toValue x := record [putOpt "DirectS3Read" x.directS3Read] + ofValue v := do + let directS3Read ← v.opt "DirectS3Read" + return { directS3Read } + +/-- The self-managed Apache Kafka cluster for your event source. -/ +structure SelfManagedEventSource where + /-- The list of bootstrap servers for your Kafka brokers in the following format: "KAFKA_BOOTSTRAP_SERVERS": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"] . -/ + endpoints : Option (Dict EndPointType (List String)) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SelfManagedEventSource where + schema := .struct "SelfManagedEventSource" [({ name := "Endpoints" }, (.map (Shape.schema EndPointType) (.list .string "member") "key" "value"))] + toValue x := record [putOpt "Endpoints" x.endpoints] + ofValue v := do + let endpoints ← v.opt "Endpoints" + return { endpoints } + +structure SendDurableExecutionCallbackFailureRequest where + /-- The unique identifier for the callback operation. -/ + callbackId : String + /-- Error details describing why the callback operation failed. -/ + error : Option ErrorObject := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SendDurableExecutionCallbackFailureRequest where + schema := .struct "SendDurableExecutionCallbackFailureRequest" [({ name := "CallbackId", required := true, location := .label }, .string), + ({ name := "Error", location := .payload }, (Shape.schema ErrorObject))] + toValue x := record [put "CallbackId" x.callbackId, putOpt "Error" x.error] + ofValue v := do + let callbackId ← v.req "CallbackId" + let error ← v.opt "Error" + return { callbackId, error } + +/-- The function's Lambda SnapStart setting. -/ +structure SnapStart where + /-- Set to PublishedVersions to create a snapshot of the initialized execution environment when you publish a function version. -/ + applyOn : Option SnapStartApplyOn := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SnapStart where + schema := .struct "SnapStart" [({ name := "ApplyOn" }, (Shape.schema SnapStartApplyOn))] + toValue x := record [putOpt "ApplyOn" x.applyOn] + ofValue v := do + let applyOn ← v.opt "ApplyOn" + return { applyOn } + +/-- The function's SnapStart setting. -/ +structure SnapStartResponse where + /-- When set to PublishedVersions , Lambda creates a snapshot of the execution environment when you publish a function version. -/ + applyOn : Option SnapStartApplyOn := none + /-- When you provide a qualified Amazon Resource Name (ARN) , this response element indicates whether SnapStart is activated for the specified function version. -/ + optimizationStatus : Option SnapStartOptimizationStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SnapStartResponse where + schema := .struct "SnapStartResponse" [({ name := "ApplyOn" }, (Shape.schema SnapStartApplyOn)), + ({ name := "OptimizationStatus" }, (Shape.schema SnapStartOptimizationStatus))] + toValue x := record [putOpt "ApplyOn" x.applyOn, putOpt "OptimizationStatus" x.optimizationStatus] + ofValue v := do + let applyOn ← v.opt "ApplyOn" + let optimizationStatus ← v.opt "OptimizationStatus" + return { applyOn, optimizationStatus } + +/-- To secure and define access to your event source, you can specify the authentication protocol, VPC components, or virtual host. -/ +structure SourceAccessConfiguration where + /-- The type of authentication protocol, VPC components, or virtual host for your event source. -/ + type : Option SourceAccessType := none + /-- The value for your chosen configuration in Type . -/ + uri : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SourceAccessConfiguration where + schema := .struct "SourceAccessConfiguration" [({ name := "Type" }, (Shape.schema SourceAccessType)), + ({ name := "URI" }, .string)] + toValue x := record [putOpt "Type" x.type, putOpt "URI" x.uri] + ofValue v := do + let type ← v.opt "Type" + let uri ← v.opt "URI" + return { type, uri } + +/-- Details about a step operation. -/ +structure StepDetails where + /-- The current attempt number for this step. -/ + attempt : Option Int := none + /-- Details about the step failure. -/ + error : Option ErrorObject := none + /-- The date and time when the next attempt is scheduled, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + nextAttemptTimestamp : Option Timestamp := none + /-- The JSON response payload from the step operation. -/ + result : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StepDetails where + schema := .struct "StepDetails" [({ name := "Attempt" }, .int), + ({ name := "Error" }, (Shape.schema ErrorObject)), + ({ name := "NextAttemptTimestamp" }, (.time none)), + ({ name := "Result" }, .string)] + toValue x := record [putOpt "Attempt" x.attempt, putOpt "Error" x.error, putOpt "NextAttemptTimestamp" x.nextAttemptTimestamp, putOpt "Result" x.result] + ofValue v := do + let attempt ← v.opt "Attempt" + let error ← v.opt "Error" + let nextAttemptTimestamp ← v.opt "NextAttemptTimestamp" + let result ← v.opt "Result" + return { attempt, error, nextAttemptTimestamp, result } + +/-- Details about a step that succeeded. -/ +structure StepSucceededDetails where + /-- The response payload from the successful operation. -/ + result : EventResult + /-- Information about retry attempts for this step operation. -/ + retryDetails : RetryDetails +deriving DecidableEq, Repr, Inhabited + +instance : Shape StepSucceededDetails where + schema := .struct "StepSucceededDetails" [({ name := "Result", required := true }, (Shape.schema EventResult)), + ({ name := "RetryDetails", required := true }, (Shape.schema RetryDetails))] + toValue x := record [put "Result" x.result, put "RetryDetails" x.retryDetails] + ofValue v := do + let result ← v.req "Result" + let retryDetails ← v.req "RetryDetails" + return { result, retryDetails } + +structure StopDurableExecutionRequest where + /-- The Amazon Resource Name (ARN) of the durable execution. -/ + durableExecutionArn : String + /-- Optional error details explaining why the execution is being stopped. -/ + error : Option ErrorObject := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StopDurableExecutionRequest where + schema := .struct "StopDurableExecutionRequest" [({ name := "DurableExecutionArn", required := true, location := .label }, .string), + ({ name := "Error", location := .payload }, (Shape.schema ErrorObject))] + toValue x := record [put "DurableExecutionArn" x.durableExecutionArn, putOpt "Error" x.error] + ofValue v := do + let durableExecutionArn ← v.req "DurableExecutionArn" + let error ← v.opt "Error" + return { durableExecutionArn, error } + +/-- A scaling policy for the capacity provider that automatically adjusts capacity to maintain a target value for a specific metric. -/ +structure TargetTrackingScalingPolicy where + /-- The predefined metric type to track for scaling decisions. -/ + predefinedMetricType : CapacityProviderPredefinedMetricType + /-- The target value for the metric that the scaling policy attempts to maintain through scaling actions. -/ + targetValue : JsonNumber +deriving DecidableEq, Repr, Inhabited + +instance : Shape TargetTrackingScalingPolicy where + schema := .struct "TargetTrackingScalingPolicy" [({ name := "PredefinedMetricType", required := true }, (Shape.schema CapacityProviderPredefinedMetricType)), + ({ name := "TargetValue", required := true }, .number)] + toValue x := record [put "PredefinedMetricType" x.predefinedMetricType, put "TargetValue" x.targetValue] + ofValue v := do + let predefinedMetricType ← v.req "PredefinedMetricType" + let targetValue ← v.req "TargetValue" + return { predefinedMetricType, targetValue } + +/-- Specifies the tenant isolation mode configuration for a Lambda function. -/ +structure TenancyConfig where + /-- Tenant isolation mode allows for invocation to be sent to a corresponding execution environment dedicated to a specific tenant ID. -/ + tenantIsolationMode : TenantIsolationMode +deriving DecidableEq, Repr, Inhabited + +instance : Shape TenancyConfig where + schema := .struct "TenancyConfig" [({ name := "TenantIsolationMode", required := true }, (Shape.schema TenantIsolationMode))] + toValue x := record [put "TenantIsolationMode" x.tenantIsolationMode] + ofValue v := do + let tenantIsolationMode ← v.req "TenantIsolationMode" + return { tenantIsolationMode } + +/-- The request throughput limit was exceeded. -/ +structure TooManyRequestsException where + reason : Option ThrottleReason := none + type : Option String := none + message : Option String := none + /-- The number of seconds the caller should wait before retrying. -/ + retryAfterSeconds : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TooManyRequestsException where + schema := .struct "TooManyRequestsException" [({ name := "Reason" }, (Shape.schema ThrottleReason)), + ({ name := "Type" }, .string), + ({ name := "message" }, .string), + ({ name := "retryAfterSeconds", location := .header "Retry-After" }, .string)] + toValue x := record [putOpt "Reason" x.reason, putOpt "Type" x.type, putOpt "message" x.message, putOpt "retryAfterSeconds" x.retryAfterSeconds] + ofValue v := do + let reason ← v.opt "Reason" + let type ← v.opt "Type" + let message ← v.opt "message" + let retryAfterSeconds ← v.opt "retryAfterSeconds" + return { reason, type, message, retryAfterSeconds } + +/-- The function's X-Ray tracing configuration. -/ +structure TracingConfig where + /-- The tracing mode. -/ + mode : Option TracingMode := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TracingConfig where + schema := .struct "TracingConfig" [({ name := "Mode" }, (Shape.schema TracingMode))] + toValue x := record [putOpt "Mode" x.mode] + ofValue v := do + let mode ← v.opt "Mode" + return { mode } + +/-- The function's X-Ray tracing configuration. -/ +structure TracingConfigResponse where + /-- The tracing mode. -/ + mode : Option TracingMode := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TracingConfigResponse where + schema := .struct "TracingConfigResponse" [({ name := "Mode" }, (Shape.schema TracingMode))] + toValue x := record [putOpt "Mode" x.mode] + ofValue v := do + let mode ← v.opt "Mode" + return { mode } + +structure UpdateAliasRequest where + /-- A description of the alias. -/ + description : Option String := none + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- The function version that the alias invokes. -/ + functionVersion : Option String := none + /-- The name of the alias. -/ + name : String + /-- Only update the alias if the revision ID matches the ID that's specified. -/ + revisionId : Option String := none + /-- The routing configuration of the alias. -/ + routingConfig : Option AliasRoutingConfiguration := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateAliasRequest where + schema := .struct "UpdateAliasRequest" [({ name := "Description" }, .string), + ({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "FunctionVersion" }, .string), + ({ name := "Name", required := true, location := .label }, .string), + ({ name := "RevisionId" }, .string), + ({ name := "RoutingConfig" }, (Shape.schema AliasRoutingConfiguration))] + toValue x := record [putOpt "Description" x.description, put "FunctionName" x.functionName, putOpt "FunctionVersion" x.functionVersion, put "Name" x.name, putOpt "RevisionId" x.revisionId, putOpt "RoutingConfig" x.routingConfig] + ofValue v := do + let description ← v.opt "Description" + let functionName ← v.req "FunctionName" + let functionVersion ← v.opt "FunctionVersion" + let name ← v.req "Name" + let revisionId ← v.opt "RevisionId" + let routingConfig ← v.opt "RoutingConfig" + return { description, functionName, functionVersion, name, revisionId, routingConfig } + +structure UpdateFunctionCodeRequest where + /-- The instruction set architecture that the function supports. -/ + architectures : Option (List Architecture) := none + /-- Set to true to validate the request parameters and access permissions without modifying the function code. -/ + dryRun : Option Bool := none + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- URI of a container image in the Amazon ECR registry. -/ + imageUri : Option String := none + /-- Set to true to publish a new version of the function after updating the code. -/ + publish : Option Bool := none + /-- Specifies where to publish the function version or configuration. -/ + publishTo : Option FunctionVersionLatestPublished := none + /-- Update the function only if the revision ID matches the ID that's specified. -/ + revisionId : Option String := none + /-- An Amazon S3 bucket in the same Amazon Web Services Region as your function. -/ + s3Bucket : Option String := none + /-- The Amazon S3 key of the deployment package. -/ + s3Key : Option String := none + /-- Specifies how the deployment package is stored. -/ + s3ObjectStorageMode : Option S3ObjectStorageMode := none + /-- For versioned objects, the version of the deployment package object to use. -/ + s3ObjectVersion : Option String := none + /-- The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's .zip deployment package. -/ + sourceKMSKeyArn : Option String := none + /-- The base64-encoded contents of the deployment package. -/ + zipFile : Option Blob := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateFunctionCodeRequest where + schema := .struct "UpdateFunctionCodeRequest" [({ name := "Architectures" }, (.list (Shape.schema Architecture) "member")), + ({ name := "DryRun" }, .bool), + ({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "ImageUri" }, .string), + ({ name := "Publish" }, .bool), + ({ name := "PublishTo" }, (Shape.schema FunctionVersionLatestPublished)), + ({ name := "RevisionId" }, .string), + ({ name := "S3Bucket" }, .string), + ({ name := "S3Key" }, .string), + ({ name := "S3ObjectStorageMode" }, (Shape.schema S3ObjectStorageMode)), + ({ name := "S3ObjectVersion" }, .string), + ({ name := "SourceKMSKeyArn" }, .string), + ({ name := "ZipFile" }, .blob)] + toValue x := record [putOpt "Architectures" x.architectures, putOpt "DryRun" x.dryRun, put "FunctionName" x.functionName, putOpt "ImageUri" x.imageUri, putOpt "Publish" x.publish, putOpt "PublishTo" x.publishTo, putOpt "RevisionId" x.revisionId, putOpt "S3Bucket" x.s3Bucket, putOpt "S3Key" x.s3Key, putOpt "S3ObjectStorageMode" x.s3ObjectStorageMode, putOpt "S3ObjectVersion" x.s3ObjectVersion, putOpt "SourceKMSKeyArn" x.sourceKMSKeyArn, putOpt "ZipFile" x.zipFile] + ofValue v := do + let architectures ← v.opt "Architectures" + let dryRun ← v.opt "DryRun" + let functionName ← v.req "FunctionName" + let imageUri ← v.opt "ImageUri" + let publish ← v.opt "Publish" + let publishTo ← v.opt "PublishTo" + let revisionId ← v.opt "RevisionId" + let s3Bucket ← v.opt "S3Bucket" + let s3Key ← v.opt "S3Key" + let s3ObjectStorageMode ← v.opt "S3ObjectStorageMode" + let s3ObjectVersion ← v.opt "S3ObjectVersion" + let sourceKMSKeyArn ← v.opt "SourceKMSKeyArn" + let zipFile ← v.opt "ZipFile" + return { architectures, dryRun, functionName, imageUri, publish, publishTo, revisionId, s3Bucket, s3Key, s3ObjectStorageMode, s3ObjectVersion, sourceKMSKeyArn, zipFile } + +structure UpdateFunctionUrlConfigRequest where + /-- The type of authentication that your function URL uses. -/ + authType : Option FunctionUrlAuthType := none + /-- The cross-origin resource sharing (CORS) settings for your function URL. -/ + cors : Option Cors := none + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- Use one of the following options: BUFFERED – This is the default option. -/ + invokeMode : Option InvokeMode := none + /-- The alias name. -/ + qualifier : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateFunctionUrlConfigRequest where + schema := .struct "UpdateFunctionUrlConfigRequest" [({ name := "AuthType" }, (Shape.schema FunctionUrlAuthType)), + ({ name := "Cors" }, (Shape.schema Cors)), + ({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "InvokeMode" }, (Shape.schema InvokeMode)), + ({ name := "Qualifier", location := .query "Qualifier" }, .string)] + toValue x := record [putOpt "AuthType" x.authType, putOpt "Cors" x.cors, put "FunctionName" x.functionName, putOpt "InvokeMode" x.invokeMode, putOpt "Qualifier" x.qualifier] + ofValue v := do + let authType ← v.opt "AuthType" + let cors ← v.opt "Cors" + let functionName ← v.req "FunctionName" + let invokeMode ← v.opt "InvokeMode" + let qualifier ← v.opt "Qualifier" + return { authType, cors, functionName, invokeMode, qualifier } + +structure UpdateFunctionUrlConfigResponse where + /-- The type of authentication that your function URL uses. -/ + authType : FunctionUrlAuthType + /-- The cross-origin resource sharing (CORS) settings for your function URL. -/ + cors : Option Cors := none + /-- When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + creationTime : String + /-- The Amazon Resource Name (ARN) of your function. -/ + functionArn : String + /-- The HTTP URL endpoint for your function. -/ + functionUrl : String + /-- Use one of the following options: BUFFERED – This is the default option. -/ + invokeMode : Option InvokeMode := none + /-- When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + lastModifiedTime : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateFunctionUrlConfigResponse where + schema := .struct "UpdateFunctionUrlConfigResponse" [({ name := "AuthType", required := true }, (Shape.schema FunctionUrlAuthType)), + ({ name := "Cors" }, (Shape.schema Cors)), + ({ name := "CreationTime", required := true }, .string), + ({ name := "FunctionArn", required := true }, .string), + ({ name := "FunctionUrl", required := true }, .string), + ({ name := "InvokeMode" }, (Shape.schema InvokeMode)), + ({ name := "LastModifiedTime", required := true }, .string)] + toValue x := record [put "AuthType" x.authType, putOpt "Cors" x.cors, put "CreationTime" x.creationTime, put "FunctionArn" x.functionArn, put "FunctionUrl" x.functionUrl, putOpt "InvokeMode" x.invokeMode, put "LastModifiedTime" x.lastModifiedTime] + ofValue v := do + let authType ← v.req "AuthType" + let cors ← v.opt "Cors" + let creationTime ← v.req "CreationTime" + let functionArn ← v.req "FunctionArn" + let functionUrl ← v.req "FunctionUrl" + let invokeMode ← v.opt "InvokeMode" + let lastModifiedTime ← v.req "LastModifiedTime" + return { authType, cors, creationTime, functionArn, functionUrl, invokeMode, lastModifiedTime } + +/-- Contains details about a failed callback operation, including error information and the reason for failure. -/ +structure CallbackFailedDetails where + /-- An error object that contains details about the failure. -/ + error : EventError +deriving DecidableEq, Repr, Inhabited + +instance : Shape CallbackFailedDetails where + schema := .struct "CallbackFailedDetails" [({ name := "Error", required := true }, (Shape.schema EventError))] + toValue x := record [put "Error" x.error] + ofValue v := do + let error ← v.req "Error" + return { error } + +/-- Contains details about a callback operation that timed out, including timeout duration and any partial results. -/ +structure CallbackTimedOutDetails where + /-- Details about the callback timeout. -/ + error : EventError +deriving DecidableEq, Repr, Inhabited + +instance : Shape CallbackTimedOutDetails where + schema := .struct "CallbackTimedOutDetails" [({ name := "Error", required := true }, (Shape.schema EventError))] + toValue x := record [put "Error" x.error] + ofValue v := do + let error ← v.req "Error" + return { error } + +/-- Configuration that defines how the capacity provider scales compute instances based on demand and policies. -/ +structure CapacityProviderScalingConfig where + /-- The maximum number of vCPUs that the capacity provider can provision across all compute instances. -/ + maxVCpuCount : Option Int := none + /-- The scaling mode that determines how the capacity provider responds to changes in demand. -/ + scalingMode : Option CapacityProviderScalingMode := none + /-- A list of scaling policies that define how the capacity provider scales compute instances based on metrics and thresholds. -/ + scalingPolicies : Option (List TargetTrackingScalingPolicy) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityProviderScalingConfig where + schema := .struct "CapacityProviderScalingConfig" [({ name := "MaxVCpuCount" }, .int), + ({ name := "ScalingMode" }, (Shape.schema CapacityProviderScalingMode)), + ({ name := "ScalingPolicies" }, (.list (Shape.schema TargetTrackingScalingPolicy) "member"))] + toValue x := record [putOpt "MaxVCpuCount" x.maxVCpuCount, putOpt "ScalingMode" x.scalingMode, putOpt "ScalingPolicies" x.scalingPolicies] + ofValue v := do + let maxVCpuCount ← v.opt "MaxVCpuCount" + let scalingMode ← v.opt "ScalingMode" + let scalingPolicies ← v.opt "ScalingPolicies" + return { maxVCpuCount, scalingMode, scalingPolicies } + +/-- Configuration that specifies the telemetry collection for the capacity provider. -/ +structure CapacityProviderTelemetryConfig where + /-- The capacity provider's Amazon CloudWatch Logs configuration settings. -/ + loggingConfig : Option CapacityProviderLoggingConfig := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityProviderTelemetryConfig where + schema := .struct "CapacityProviderTelemetryConfig" [({ name := "LoggingConfig" }, (Shape.schema CapacityProviderLoggingConfig))] + toValue x := record [putOpt "LoggingConfig" x.loggingConfig] + ofValue v := do + let loggingConfig ← v.opt "LoggingConfig" + return { loggingConfig } + +/-- Contains details about a failed chained function invocation, including error information and failure reason. -/ +structure ChainedInvokeFailedDetails where + /-- Details about the chained invocation failure. -/ + error : EventError +deriving DecidableEq, Repr, Inhabited + +instance : Shape ChainedInvokeFailedDetails where + schema := .struct "ChainedInvokeFailedDetails" [({ name := "Error", required := true }, (Shape.schema EventError))] + toValue x := record [put "Error" x.error] + ofValue v := do + let error ← v.req "Error" + return { error } + +/-- Details about a chained invocation that was stopped. -/ +structure ChainedInvokeStoppedDetails where + /-- Details about why the chained invocation stopped. -/ + error : EventError +deriving DecidableEq, Repr, Inhabited + +instance : Shape ChainedInvokeStoppedDetails where + schema := .struct "ChainedInvokeStoppedDetails" [({ name := "Error", required := true }, (Shape.schema EventError))] + toValue x := record [put "Error" x.error] + ofValue v := do + let error ← v.req "Error" + return { error } + +/-- Details about a chained invocation that timed out. -/ +structure ChainedInvokeTimedOutDetails where + /-- Details about the chained invocation timeout. -/ + error : EventError +deriving DecidableEq, Repr, Inhabited + +instance : Shape ChainedInvokeTimedOutDetails where + schema := .struct "ChainedInvokeTimedOutDetails" [({ name := "Error", required := true }, (Shape.schema EventError))] + toValue x := record [put "Error" x.error] + ofValue v := do + let error ← v.req "Error" + return { error } + +structure CheckpointDurableExecutionRequest where + /-- A unique token that identifies the current checkpoint state. -/ + checkpointToken : String + /-- An optional idempotency token to ensure that duplicate checkpoint requests are handled correctly. -/ + clientToken : Option String := none + /-- The Amazon Resource Name (ARN) of the durable execution. -/ + durableExecutionArn : String + /-- An array of state updates to apply during this checkpoint. -/ + updates : Option (List OperationUpdate) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CheckpointDurableExecutionRequest where + schema := .struct "CheckpointDurableExecutionRequest" [({ name := "CheckpointToken", required := true }, .string), + ({ name := "ClientToken" }, .string), + ({ name := "DurableExecutionArn", required := true, location := .label }, .string), + ({ name := "Updates" }, (.list (Shape.schema OperationUpdate) "member"))] + toValue x := record [put "CheckpointToken" x.checkpointToken, putOpt "ClientToken" x.clientToken, put "DurableExecutionArn" x.durableExecutionArn, putOpt "Updates" x.updates] + ofValue v := do + let checkpointToken ← v.req "CheckpointToken" + let clientToken ← v.opt "ClientToken" + let durableExecutionArn ← v.req "DurableExecutionArn" + let updates ← v.opt "Updates" + return { checkpointToken, clientToken, durableExecutionArn, updates } + +/-- Details about a Code signing configuration . -/ +structure CodeSigningConfig where + /-- List of allowed publishers. -/ + allowedPublishers : AllowedPublishers + /-- The Amazon Resource Name (ARN) of the Code signing configuration. -/ + codeSigningConfigArn : String + /-- Unique identifer for the Code signing configuration. -/ + codeSigningConfigId : String + /-- The code signing policy controls the validation failure action for signature mismatch or expiry. -/ + codeSigningPolicies : CodeSigningPolicies + /-- Code signing configuration description. -/ + description : Option String := none + /-- The date and time that the Code signing configuration was last modified, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + lastModified : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CodeSigningConfig where + schema := .struct "CodeSigningConfig" [({ name := "AllowedPublishers", required := true }, (Shape.schema AllowedPublishers)), + ({ name := "CodeSigningConfigArn", required := true }, .string), + ({ name := "CodeSigningConfigId", required := true }, .string), + ({ name := "CodeSigningPolicies", required := true }, (Shape.schema CodeSigningPolicies)), + ({ name := "Description" }, .string), + ({ name := "LastModified", required := true }, .string)] + toValue x := record [put "AllowedPublishers" x.allowedPublishers, put "CodeSigningConfigArn" x.codeSigningConfigArn, put "CodeSigningConfigId" x.codeSigningConfigId, put "CodeSigningPolicies" x.codeSigningPolicies, putOpt "Description" x.description, put "LastModified" x.lastModified] + ofValue v := do + let allowedPublishers ← v.req "AllowedPublishers" + let codeSigningConfigArn ← v.req "CodeSigningConfigArn" + let codeSigningConfigId ← v.req "CodeSigningConfigId" + let codeSigningPolicies ← v.req "CodeSigningPolicies" + let description ← v.opt "Description" + let lastModified ← v.req "LastModified" + return { allowedPublishers, codeSigningConfigArn, codeSigningConfigId, codeSigningPolicies, description, lastModified } + +/-- Details about a context that failed. -/ +structure ContextFailedDetails where + /-- Details about the context failure. -/ + error : EventError +deriving DecidableEq, Repr, Inhabited + +instance : Shape ContextFailedDetails where + schema := .struct "ContextFailedDetails" [({ name := "Error", required := true }, (Shape.schema EventError))] + toValue x := record [put "Error" x.error] + ofValue v := do + let error ← v.req "Error" + return { error } + +structure CreateCodeSigningConfigRequest where + /-- Signing profiles for this code signing configuration. -/ + allowedPublishers : AllowedPublishers + /-- The code signing policies define the actions to take if the validation checks fail. -/ + codeSigningPolicies : Option CodeSigningPolicies := none + /-- Descriptive name for this code signing configuration. -/ + description : Option String := none + /-- A list of tags to add to the code signing configuration. -/ + tags : Option (Dict String String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCodeSigningConfigRequest where + schema := .struct "CreateCodeSigningConfigRequest" [({ name := "AllowedPublishers", required := true }, (Shape.schema AllowedPublishers)), + ({ name := "CodeSigningPolicies" }, (Shape.schema CodeSigningPolicies)), + ({ name := "Description" }, .string), + ({ name := "Tags" }, (.map .string .string "key" "value"))] + toValue x := record [put "AllowedPublishers" x.allowedPublishers, putOpt "CodeSigningPolicies" x.codeSigningPolicies, putOpt "Description" x.description, putOpt "Tags" x.tags] + ofValue v := do + let allowedPublishers ← v.req "AllowedPublishers" + let codeSigningPolicies ← v.opt "CodeSigningPolicies" + let description ← v.opt "Description" + let tags ← v.opt "Tags" + return { allowedPublishers, codeSigningPolicies, description, tags } + +/-- Details about a failed durable execution . -/ +structure ExecutionFailedDetails where + /-- Details about the execution failure. -/ + error : EventError +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExecutionFailedDetails where + schema := .struct "ExecutionFailedDetails" [({ name := "Error", required := true }, (Shape.schema EventError))] + toValue x := record [put "Error" x.error] + ofValue v := do + let error ← v.req "Error" + return { error } + +/-- Details about a durable execution that stopped. -/ +structure ExecutionStoppedDetails where + /-- Details about why the execution stopped. -/ + error : EventError +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExecutionStoppedDetails where + schema := .struct "ExecutionStoppedDetails" [({ name := "Error", required := true }, (Shape.schema EventError))] + toValue x := record [put "Error" x.error] + ofValue v := do + let error ← v.req "Error" + return { error } + +/-- Details about a durable execution that timed out. -/ +structure ExecutionTimedOutDetails where + /-- Details about the execution timeout. -/ + error : Option EventError := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExecutionTimedOutDetails where + schema := .struct "ExecutionTimedOutDetails" [({ name := "Error" }, (Shape.schema EventError))] + toValue x := record [putOpt "Error" x.error] + ofValue v := do + let error ← v.opt "Error" + return { error } + +/-- Details about the connection between a Lambda function and an Amazon EFS file system or an Amazon S3 file system . -/ +structure FileSystemConfig where + /-- The Amazon Resource Name (ARN) of the Amazon EFS or Amazon S3 Files access point that provides access to the file system. -/ + arn : String + /-- The path where the function can access the file system, starting with /mnt/ . -/ + localMountPath : String + /-- The configuration for how your function accesses data on an Amazon S3 file system. -/ + s3FilesConfig : Option S3FilesConfig := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FileSystemConfig where + schema := .struct "FileSystemConfig" [({ name := "Arn", required := true }, .string), + ({ name := "LocalMountPath", required := true }, .string), + ({ name := "S3FilesConfig" }, (Shape.schema S3FilesConfig))] + toValue x := record [put "Arn" x.arn, put "LocalMountPath" x.localMountPath, putOpt "S3FilesConfig" x.s3FilesConfig] + ofValue v := do + let arn ← v.req "Arn" + let localMountPath ← v.req "LocalMountPath" + let s3FilesConfig ← v.opt "S3FilesConfig" + return { arn, localMountPath, s3FilesConfig } + +structure FunctionEventInvokeConfig where + /-- A destination for events after they have been sent to a function for processing. -/ + destinationConfig : Option DestinationConfig := none + /-- The Amazon Resource Name (ARN) of the function. -/ + functionArn : Option String := none + /-- The date and time that the configuration was last updated. -/ + lastModified : Option Timestamp := none + /-- The maximum age of a request that Lambda sends to a function for processing. -/ + maximumEventAgeInSeconds : Option Int := none + /-- The maximum number of times to retry when the function returns an error. -/ + maximumRetryAttempts : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FunctionEventInvokeConfig where + schema := .struct "FunctionEventInvokeConfig" [({ name := "DestinationConfig" }, (Shape.schema DestinationConfig)), + ({ name := "FunctionArn" }, .string), + ({ name := "LastModified" }, (.time none)), + ({ name := "MaximumEventAgeInSeconds" }, .int), + ({ name := "MaximumRetryAttempts" }, .int)] + toValue x := record [putOpt "DestinationConfig" x.destinationConfig, putOpt "FunctionArn" x.functionArn, putOpt "LastModified" x.lastModified, putOpt "MaximumEventAgeInSeconds" x.maximumEventAgeInSeconds, putOpt "MaximumRetryAttempts" x.maximumRetryAttempts] + ofValue v := do + let destinationConfig ← v.opt "DestinationConfig" + let functionArn ← v.opt "FunctionArn" + let lastModified ← v.opt "LastModified" + let maximumEventAgeInSeconds ← v.opt "MaximumEventAgeInSeconds" + let maximumRetryAttempts ← v.opt "MaximumRetryAttempts" + return { destinationConfig, functionArn, lastModified, maximumEventAgeInSeconds, maximumRetryAttempts } + +structure GetLayerVersionResponse where + /-- A list of compatible instruction set architectures . -/ + compatibleArchitectures : Option (List Architecture) := none + /-- The layer's compatible runtimes. -/ + compatibleRuntimes : Option (List Runtime) := none + /-- Details about the layer version. -/ + content : Option LayerVersionContentOutput := none + /-- The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + createdDate : Option String := none + /-- The description of the version. -/ + description : Option String := none + /-- The ARN of the layer. -/ + layerArn : Option String := none + /-- The ARN of the layer version. -/ + layerVersionArn : Option String := none + /-- The layer's software license. -/ + licenseInfo : Option String := none + /-- The version number. -/ + version : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetLayerVersionResponse where + schema := .struct "GetLayerVersionResponse" [({ name := "CompatibleArchitectures" }, (.list (Shape.schema Architecture) "member")), + ({ name := "CompatibleRuntimes" }, (.list (Shape.schema Runtime) "member")), + ({ name := "Content" }, (Shape.schema LayerVersionContentOutput)), + ({ name := "CreatedDate" }, .string), + ({ name := "Description" }, .string), + ({ name := "LayerArn" }, .string), + ({ name := "LayerVersionArn" }, .string), + ({ name := "LicenseInfo" }, .string), + ({ name := "Version" }, .int)] + toValue x := record [putOpt "CompatibleArchitectures" x.compatibleArchitectures, putOpt "CompatibleRuntimes" x.compatibleRuntimes, putOpt "Content" x.content, putOpt "CreatedDate" x.createdDate, putOpt "Description" x.description, putOpt "LayerArn" x.layerArn, putOpt "LayerVersionArn" x.layerVersionArn, putOpt "LicenseInfo" x.licenseInfo, putOpt "Version" x.version] + ofValue v := do + let compatibleArchitectures ← v.opt "CompatibleArchitectures" + let compatibleRuntimes ← v.opt "CompatibleRuntimes" + let content ← v.opt "Content" + let createdDate ← v.opt "CreatedDate" + let description ← v.opt "Description" + let layerArn ← v.opt "LayerArn" + let layerVersionArn ← v.opt "LayerVersionArn" + let licenseInfo ← v.opt "LicenseInfo" + let version ← v.opt "Version" + return { compatibleArchitectures, compatibleRuntimes, content, createdDate, description, layerArn, layerVersionArn, licenseInfo, version } + +/-- Details about a function invocation that completed. -/ +structure InvocationCompletedDetails where + /-- The date and time when the invocation ended, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + endTimestamp : Timestamp + /-- Details about the invocation failure. -/ + error : Option EventError := none + /-- The request ID for the invocation. -/ + requestId : String + /-- The date and time when the invocation started, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + startTimestamp : Timestamp +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvocationCompletedDetails where + schema := .struct "InvocationCompletedDetails" [({ name := "EndTimestamp", required := true }, (.time none)), + ({ name := "Error" }, (Shape.schema EventError)), + ({ name := "RequestId", required := true }, .string), + ({ name := "StartTimestamp", required := true }, (.time none))] + toValue x := record [put "EndTimestamp" x.endTimestamp, putOpt "Error" x.error, put "RequestId" x.requestId, put "StartTimestamp" x.startTimestamp] + ofValue v := do + let endTimestamp ← v.req "EndTimestamp" + let error ← v.opt "Error" + let requestId ← v.req "RequestId" + let startTimestamp ← v.req "StartTimestamp" + return { endTimestamp, error, requestId, startTimestamp } + +structure InvokeWithResponseStreamResponse where + /-- The stream of response payloads. -/ + eventStream : Option InvokeWithResponseStreamResponseEvent := none + /-- The version of the function that executed. -/ + executedVersion : Option String := none + /-- The type of data the stream is returning. -/ + responseStreamContentType : Option String := none + /-- For a successful request, the HTTP status code is in the 200 range. -/ + statusCode : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvokeWithResponseStreamResponse where + schema := .struct "InvokeWithResponseStreamResponse" [({ name := "EventStream", location := .payload }, (Shape.schema InvokeWithResponseStreamResponseEvent)), + ({ name := "ExecutedVersion", location := .header "X-Amz-Executed-Version" }, .string), + ({ name := "ResponseStreamContentType", location := .header "Content-Type" }, .string), + ({ name := "StatusCode", location := .status }, .int)] + toValue x := record [putOpt "EventStream" x.eventStream, putOpt "ExecutedVersion" x.executedVersion, putOpt "ResponseStreamContentType" x.responseStreamContentType, putOpt "StatusCode" x.statusCode] + ofValue v := do + let eventStream ← v.opt "EventStream" + let executedVersion ← v.opt "ExecutedVersion" + let responseStreamContentType ← v.opt "ResponseStreamContentType" + let statusCode ← v.opt "StatusCode" + return { eventStream, executedVersion, responseStreamContentType, statusCode } + +/-- Specific configuration settings for a Kafka schema registry. -/ +structure KafkaSchemaRegistryConfig where + /-- An array of access configuration objects that tell Lambda how to authenticate with your schema registry. -/ + accessConfigs : Option (List KafkaSchemaRegistryAccessConfig) := none + /-- The record format that Lambda delivers to your function after schema validation. -/ + eventRecordFormat : Option SchemaRegistryEventRecordFormat := none + /-- The URI for your schema registry. -/ + schemaRegistryURI : Option String := none + /-- An array of schema validation configuration objects, which tell Lambda the message attributes you want to validate and filter using your schema registry. -/ + schemaValidationConfigs : Option (List KafkaSchemaValidationConfig) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KafkaSchemaRegistryConfig where + schema := .struct "KafkaSchemaRegistryConfig" [({ name := "AccessConfigs" }, (.list (Shape.schema KafkaSchemaRegistryAccessConfig) "member")), + ({ name := "EventRecordFormat" }, (Shape.schema SchemaRegistryEventRecordFormat)), + ({ name := "SchemaRegistryURI" }, .string), + ({ name := "SchemaValidationConfigs" }, (.list (Shape.schema KafkaSchemaValidationConfig) "member"))] + toValue x := record [putOpt "AccessConfigs" x.accessConfigs, putOpt "EventRecordFormat" x.eventRecordFormat, putOpt "SchemaRegistryURI" x.schemaRegistryURI, putOpt "SchemaValidationConfigs" x.schemaValidationConfigs] + ofValue v := do + let accessConfigs ← v.opt "AccessConfigs" + let eventRecordFormat ← v.opt "EventRecordFormat" + let schemaRegistryURI ← v.opt "SchemaRegistryURI" + let schemaValidationConfigs ← v.opt "SchemaValidationConfigs" + return { accessConfigs, eventRecordFormat, schemaRegistryURI, schemaValidationConfigs } + +/-- Details about an Lambda layer . -/ +structure LayersListItem where + /-- The newest version of the layer. -/ + latestMatchingVersion : Option LayerVersionsListItem := none + /-- The Amazon Resource Name (ARN) of the function layer. -/ + layerArn : Option String := none + /-- The name of the layer. -/ + layerName : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LayersListItem where + schema := .struct "LayersListItem" [({ name := "LatestMatchingVersion" }, (Shape.schema LayerVersionsListItem)), + ({ name := "LayerArn" }, .string), + ({ name := "LayerName" }, .string)] + toValue x := record [putOpt "LatestMatchingVersion" x.latestMatchingVersion, putOpt "LayerArn" x.layerArn, putOpt "LayerName" x.layerName] + ofValue v := do + let latestMatchingVersion ← v.opt "LatestMatchingVersion" + let layerArn ← v.opt "LayerArn" + let layerName ← v.opt "LayerName" + return { latestMatchingVersion, layerArn, layerName } + +structure ListAliasesResponse where + /-- A list of aliases. -/ + aliases : Option (List AliasConfiguration) := none + /-- The pagination token that's included if more results are available. -/ + nextMarker : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListAliasesResponse where + schema := .struct "ListAliasesResponse" [({ name := "Aliases" }, (.list (Shape.schema AliasConfiguration) "member")), + ({ name := "NextMarker" }, .string)] + toValue x := record [putOpt "Aliases" x.aliases, putOpt "NextMarker" x.nextMarker] + ofValue v := do + let aliases ← v.opt "Aliases" + let nextMarker ← v.opt "NextMarker" + return { aliases, nextMarker } + +/-- The response from the ListDurableExecutionsByFunction operation, containing a list of durable executions and pagination information. -/ +structure ListDurableExecutionsByFunctionResponse where + /-- List of durable execution summaries matching the filter criteria. -/ + durableExecutions : Option (List Execution) := none + /-- Pagination token for retrieving additional results. -/ + nextMarker : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListDurableExecutionsByFunctionResponse where + schema := .struct "ListDurableExecutionsByFunctionResponse" [({ name := "DurableExecutions" }, (.list (Shape.schema Execution) "member")), + ({ name := "NextMarker" }, .string)] + toValue x := record [putOpt "DurableExecutions" x.durableExecutions, putOpt "NextMarker" x.nextMarker] + ofValue v := do + let durableExecutions ← v.opt "DurableExecutions" + let nextMarker ← v.opt "NextMarker" + return { durableExecutions, nextMarker } + +structure ListFunctionUrlConfigsResponse where + /-- A list of function URL configurations. -/ + functionUrlConfigs : (List FunctionUrlConfig) + /-- The pagination token that's included if more results are available. -/ + nextMarker : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListFunctionUrlConfigsResponse where + schema := .struct "ListFunctionUrlConfigsResponse" [({ name := "FunctionUrlConfigs", required := true }, (.list (Shape.schema FunctionUrlConfig) "member")), + ({ name := "NextMarker" }, .string)] + toValue x := record [put "FunctionUrlConfigs" x.functionUrlConfigs, putOpt "NextMarker" x.nextMarker] + ofValue v := do + let functionUrlConfigs ← v.req "FunctionUrlConfigs" + let nextMarker ← v.opt "NextMarker" + return { functionUrlConfigs, nextMarker } + +structure ListFunctionVersionsByCapacityProviderResponse where + /-- The Amazon Resource Name (ARN) of the capacity provider. -/ + capacityProviderArn : String + /-- A list of function versions that use the specified capacity provider. -/ + functionVersions : (List FunctionVersionsByCapacityProviderListItem) + /-- The pagination token that's included if more results are available. -/ + nextMarker : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListFunctionVersionsByCapacityProviderResponse where + schema := .struct "ListFunctionVersionsByCapacityProviderResponse" [({ name := "CapacityProviderArn", required := true }, .string), + ({ name := "FunctionVersions", required := true }, (.list (Shape.schema FunctionVersionsByCapacityProviderListItem) "member")), + ({ name := "NextMarker" }, .string)] + toValue x := record [put "CapacityProviderArn" x.capacityProviderArn, put "FunctionVersions" x.functionVersions, putOpt "NextMarker" x.nextMarker] + ofValue v := do + let capacityProviderArn ← v.req "CapacityProviderArn" + let functionVersions ← v.req "FunctionVersions" + let nextMarker ← v.opt "NextMarker" + return { capacityProviderArn, functionVersions, nextMarker } + +structure ListLayerVersionsResponse where + /-- A list of versions. -/ + layerVersions : Option (List LayerVersionsListItem) := none + /-- A pagination token returned when the response doesn't contain all versions. -/ + nextMarker : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListLayerVersionsResponse where + schema := .struct "ListLayerVersionsResponse" [({ name := "LayerVersions" }, (.list (Shape.schema LayerVersionsListItem) "member")), + ({ name := "NextMarker" }, .string)] + toValue x := record [putOpt "LayerVersions" x.layerVersions, putOpt "NextMarker" x.nextMarker] + ofValue v := do + let layerVersions ← v.opt "LayerVersions" + let nextMarker ← v.opt "NextMarker" + return { layerVersions, nextMarker } + +structure ListProvisionedConcurrencyConfigsResponse where + /-- The pagination token that's included if more results are available. -/ + nextMarker : Option String := none + /-- A list of provisioned concurrency configurations. -/ + provisionedConcurrencyConfigs : Option (List ProvisionedConcurrencyConfigListItem) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListProvisionedConcurrencyConfigsResponse where + schema := .struct "ListProvisionedConcurrencyConfigsResponse" [({ name := "NextMarker" }, .string), + ({ name := "ProvisionedConcurrencyConfigs" }, (.list (Shape.schema ProvisionedConcurrencyConfigListItem) "member"))] + toValue x := record [putOpt "NextMarker" x.nextMarker, putOpt "ProvisionedConcurrencyConfigs" x.provisionedConcurrencyConfigs] + ofValue v := do + let nextMarker ← v.opt "NextMarker" + let provisionedConcurrencyConfigs ← v.opt "ProvisionedConcurrencyConfigs" + return { nextMarker, provisionedConcurrencyConfigs } + +/-- Information about an operation within a durable execution. -/ +structure Operation where + callbackDetails : Option CallbackDetails := none + chainedInvokeDetails : Option ChainedInvokeDetails := none + /-- Details about the context, if this operation represents a context. -/ + contextDetails : Option ContextDetails := none + /-- The date and time when the operation ended, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + endTimestamp : Option Timestamp := none + /-- Details about the execution, if this operation represents an execution. -/ + executionDetails : Option ExecutionDetails := none + /-- The unique identifier for this operation. -/ + id : String + /-- The customer-provided name for this operation. -/ + name : Option String := none + /-- The unique identifier of the parent operation, if this operation is running within a child context. -/ + parentId : Option String := none + /-- The date and time when the operation started, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + startTimestamp : Timestamp + /-- The current status of the operation. -/ + status : OperationStatus + /-- Details about the step, if this operation represents a step. -/ + stepDetails : Option StepDetails := none + /-- The subtype of the operation, providing additional categorization. -/ + subType : Option String := none + /-- The type of operation. -/ + type : OperationType + /-- Details about the wait operation, if this operation represents a wait. -/ + waitDetails : Option WaitDetails := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Operation where + schema := .struct "Operation" [({ name := "CallbackDetails" }, (Shape.schema CallbackDetails)), + ({ name := "ChainedInvokeDetails" }, (Shape.schema ChainedInvokeDetails)), + ({ name := "ContextDetails" }, (Shape.schema ContextDetails)), + ({ name := "EndTimestamp" }, (.time none)), + ({ name := "ExecutionDetails" }, (Shape.schema ExecutionDetails)), + ({ name := "Id", required := true }, .string), + ({ name := "Name" }, .string), + ({ name := "ParentId" }, .string), + ({ name := "StartTimestamp", required := true }, (.time none)), + ({ name := "Status", required := true }, (Shape.schema OperationStatus)), + ({ name := "StepDetails" }, (Shape.schema StepDetails)), + ({ name := "SubType" }, .string), + ({ name := "Type", required := true }, (Shape.schema OperationType)), + ({ name := "WaitDetails" }, (Shape.schema WaitDetails))] + toValue x := record [putOpt "CallbackDetails" x.callbackDetails, putOpt "ChainedInvokeDetails" x.chainedInvokeDetails, putOpt "ContextDetails" x.contextDetails, putOpt "EndTimestamp" x.endTimestamp, putOpt "ExecutionDetails" x.executionDetails, put "Id" x.id, putOpt "Name" x.name, putOpt "ParentId" x.parentId, put "StartTimestamp" x.startTimestamp, put "Status" x.status, putOpt "StepDetails" x.stepDetails, putOpt "SubType" x.subType, put "Type" x.type, putOpt "WaitDetails" x.waitDetails] + ofValue v := do + let callbackDetails ← v.opt "CallbackDetails" + let chainedInvokeDetails ← v.opt "ChainedInvokeDetails" + let contextDetails ← v.opt "ContextDetails" + let endTimestamp ← v.opt "EndTimestamp" + let executionDetails ← v.opt "ExecutionDetails" + let id ← v.req "Id" + let name ← v.opt "Name" + let parentId ← v.opt "ParentId" + let startTimestamp ← v.req "StartTimestamp" + let status ← v.req "Status" + let stepDetails ← v.opt "StepDetails" + let subType ← v.opt "SubType" + let type ← v.req "Type" + let waitDetails ← v.opt "WaitDetails" + return { callbackDetails, chainedInvokeDetails, contextDetails, endTimestamp, executionDetails, id, name, parentId, startTimestamp, status, stepDetails, subType, type, waitDetails } + +structure PublishLayerVersionRequest where + /-- A list of compatible instruction set architectures . -/ + compatibleArchitectures : Option (List Architecture) := none + /-- A list of compatible function runtimes . -/ + compatibleRuntimes : Option (List Runtime) := none + /-- The function layer archive. -/ + content : LayerVersionContentInput + /-- The description of the version. -/ + description : Option String := none + /-- The name or Amazon Resource Name (ARN) of the layer. -/ + layerName : String + /-- The layer's software license. -/ + licenseInfo : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PublishLayerVersionRequest where + schema := .struct "PublishLayerVersionRequest" [({ name := "CompatibleArchitectures" }, (.list (Shape.schema Architecture) "member")), + ({ name := "CompatibleRuntimes" }, (.list (Shape.schema Runtime) "member")), + ({ name := "Content", required := true }, (Shape.schema LayerVersionContentInput)), + ({ name := "Description" }, .string), + ({ name := "LayerName", required := true, location := .label }, .string), + ({ name := "LicenseInfo" }, .string)] + toValue x := record [putOpt "CompatibleArchitectures" x.compatibleArchitectures, putOpt "CompatibleRuntimes" x.compatibleRuntimes, put "Content" x.content, putOpt "Description" x.description, put "LayerName" x.layerName, putOpt "LicenseInfo" x.licenseInfo] + ofValue v := do + let compatibleArchitectures ← v.opt "CompatibleArchitectures" + let compatibleRuntimes ← v.opt "CompatibleRuntimes" + let content ← v.req "Content" + let description ← v.opt "Description" + let layerName ← v.req "LayerName" + let licenseInfo ← v.opt "LicenseInfo" + return { compatibleArchitectures, compatibleRuntimes, content, description, layerName, licenseInfo } + +structure PublishLayerVersionResponse where + /-- A list of compatible instruction set architectures . -/ + compatibleArchitectures : Option (List Architecture) := none + /-- The layer's compatible runtimes. -/ + compatibleRuntimes : Option (List Runtime) := none + /-- Details about the layer version. -/ + content : Option LayerVersionContentOutput := none + /-- The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + createdDate : Option String := none + /-- The description of the version. -/ + description : Option String := none + /-- The ARN of the layer. -/ + layerArn : Option String := none + /-- The ARN of the layer version. -/ + layerVersionArn : Option String := none + /-- The layer's software license. -/ + licenseInfo : Option String := none + /-- The version number. -/ + version : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PublishLayerVersionResponse where + schema := .struct "PublishLayerVersionResponse" [({ name := "CompatibleArchitectures" }, (.list (Shape.schema Architecture) "member")), + ({ name := "CompatibleRuntimes" }, (.list (Shape.schema Runtime) "member")), + ({ name := "Content" }, (Shape.schema LayerVersionContentOutput)), + ({ name := "CreatedDate" }, .string), + ({ name := "Description" }, .string), + ({ name := "LayerArn" }, .string), + ({ name := "LayerVersionArn" }, .string), + ({ name := "LicenseInfo" }, .string), + ({ name := "Version" }, .int)] + toValue x := record [putOpt "CompatibleArchitectures" x.compatibleArchitectures, putOpt "CompatibleRuntimes" x.compatibleRuntimes, putOpt "Content" x.content, putOpt "CreatedDate" x.createdDate, putOpt "Description" x.description, putOpt "LayerArn" x.layerArn, putOpt "LayerVersionArn" x.layerVersionArn, putOpt "LicenseInfo" x.licenseInfo, putOpt "Version" x.version] + ofValue v := do + let compatibleArchitectures ← v.opt "CompatibleArchitectures" + let compatibleRuntimes ← v.opt "CompatibleRuntimes" + let content ← v.opt "Content" + let createdDate ← v.opt "CreatedDate" + let description ← v.opt "Description" + let layerArn ← v.opt "LayerArn" + let layerVersionArn ← v.opt "LayerVersionArn" + let licenseInfo ← v.opt "LicenseInfo" + let version ← v.opt "Version" + return { compatibleArchitectures, compatibleRuntimes, content, createdDate, description, layerArn, layerVersionArn, licenseInfo, version } + +structure PutFunctionEventInvokeConfigRequest where + /-- A destination for events after they have been sent to a function for processing. -/ + destinationConfig : Option DestinationConfig := none + /-- The name or ARN of the Lambda function, version, or alias. -/ + functionName : String + /-- The maximum age of a request that Lambda sends to a function for processing. -/ + maximumEventAgeInSeconds : Option Int := none + /-- The maximum number of times to retry when the function returns an error. -/ + maximumRetryAttempts : Option Int := none + /-- A version number or alias name. -/ + qualifier : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutFunctionEventInvokeConfigRequest where + schema := .struct "PutFunctionEventInvokeConfigRequest" [({ name := "DestinationConfig" }, (Shape.schema DestinationConfig)), + ({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "MaximumEventAgeInSeconds" }, .int), + ({ name := "MaximumRetryAttempts" }, .int), + ({ name := "Qualifier", location := .query "Qualifier" }, .string)] + toValue x := record [putOpt "DestinationConfig" x.destinationConfig, put "FunctionName" x.functionName, putOpt "MaximumEventAgeInSeconds" x.maximumEventAgeInSeconds, putOpt "MaximumRetryAttempts" x.maximumRetryAttempts, putOpt "Qualifier" x.qualifier] + ofValue v := do + let destinationConfig ← v.opt "DestinationConfig" + let functionName ← v.req "FunctionName" + let maximumEventAgeInSeconds ← v.opt "MaximumEventAgeInSeconds" + let maximumRetryAttempts ← v.opt "MaximumRetryAttempts" + let qualifier ← v.opt "Qualifier" + return { destinationConfig, functionName, maximumEventAgeInSeconds, maximumRetryAttempts, qualifier } + +/-- Details about a step that failed. -/ +structure StepFailedDetails where + /-- Details about the step failure. -/ + error : EventError + /-- Information about retry attempts for this step operation. -/ + retryDetails : RetryDetails +deriving DecidableEq, Repr, Inhabited + +instance : Shape StepFailedDetails where + schema := .struct "StepFailedDetails" [({ name := "Error", required := true }, (Shape.schema EventError)), + ({ name := "RetryDetails", required := true }, (Shape.schema RetryDetails))] + toValue x := record [put "Error" x.error, put "RetryDetails" x.retryDetails] + ofValue v := do + let error ← v.req "Error" + let retryDetails ← v.req "RetryDetails" + return { error, retryDetails } + +structure UpdateCodeSigningConfigRequest where + /-- Signing profiles for this code signing configuration. -/ + allowedPublishers : Option AllowedPublishers := none + /-- The The Amazon Resource Name (ARN) of the code signing configuration. -/ + codeSigningConfigArn : String + /-- The code signing policy. -/ + codeSigningPolicies : Option CodeSigningPolicies := none + /-- Descriptive name for this code signing configuration. -/ + description : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateCodeSigningConfigRequest where + schema := .struct "UpdateCodeSigningConfigRequest" [({ name := "AllowedPublishers" }, (Shape.schema AllowedPublishers)), + ({ name := "CodeSigningConfigArn", required := true, location := .label }, .string), + ({ name := "CodeSigningPolicies" }, (Shape.schema CodeSigningPolicies)), + ({ name := "Description" }, .string)] + toValue x := record [putOpt "AllowedPublishers" x.allowedPublishers, put "CodeSigningConfigArn" x.codeSigningConfigArn, putOpt "CodeSigningPolicies" x.codeSigningPolicies, putOpt "Description" x.description] + ofValue v := do + let allowedPublishers ← v.opt "AllowedPublishers" + let codeSigningConfigArn ← v.req "CodeSigningConfigArn" + let codeSigningPolicies ← v.opt "CodeSigningPolicies" + let description ← v.opt "Description" + return { allowedPublishers, codeSigningConfigArn, codeSigningPolicies, description } + +structure UpdateFunctionEventInvokeConfigRequest where + /-- A destination for events after they have been sent to a function for processing. -/ + destinationConfig : Option DestinationConfig := none + /-- The name or ARN of the Lambda function, version, or alias. -/ + functionName : String + /-- The maximum age of a request that Lambda sends to a function for processing. -/ + maximumEventAgeInSeconds : Option Int := none + /-- The maximum number of times to retry when the function returns an error. -/ + maximumRetryAttempts : Option Int := none + /-- A version number or alias name. -/ + qualifier : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateFunctionEventInvokeConfigRequest where + schema := .struct "UpdateFunctionEventInvokeConfigRequest" [({ name := "DestinationConfig" }, (Shape.schema DestinationConfig)), + ({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "MaximumEventAgeInSeconds" }, .int), + ({ name := "MaximumRetryAttempts" }, .int), + ({ name := "Qualifier", location := .query "Qualifier" }, .string)] + toValue x := record [putOpt "DestinationConfig" x.destinationConfig, put "FunctionName" x.functionName, putOpt "MaximumEventAgeInSeconds" x.maximumEventAgeInSeconds, putOpt "MaximumRetryAttempts" x.maximumRetryAttempts, putOpt "Qualifier" x.qualifier] + ofValue v := do + let destinationConfig ← v.opt "DestinationConfig" + let functionName ← v.req "FunctionName" + let maximumEventAgeInSeconds ← v.opt "MaximumEventAgeInSeconds" + let maximumRetryAttempts ← v.opt "MaximumRetryAttempts" + let qualifier ← v.opt "Qualifier" + return { destinationConfig, functionName, maximumEventAgeInSeconds, maximumRetryAttempts, qualifier } + +/-- Details about a wait operation that was cancelled. -/ +structure WaitCancelledDetails where + /-- Details about why the wait operation was cancelled. -/ + error : Option EventError := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape WaitCancelledDetails where + schema := .struct "WaitCancelledDetails" [({ name := "Error" }, (Shape.schema EventError))] + toValue x := record [putOpt "Error" x.error] + ofValue v := do + let error ← v.opt "Error" + return { error } + +/-- Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source. -/ +structure AmazonManagedKafkaEventSourceConfig where + /-- The identifier for the Kafka consumer group to join. -/ + consumerGroupId : Option String := none + /-- Specific configuration settings for a Kafka schema registry. -/ + schemaRegistryConfig : Option KafkaSchemaRegistryConfig := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AmazonManagedKafkaEventSourceConfig where + schema := .struct "AmazonManagedKafkaEventSourceConfig" [({ name := "ConsumerGroupId" }, .string), + ({ name := "SchemaRegistryConfig" }, (Shape.schema KafkaSchemaRegistryConfig))] + toValue x := record [putOpt "ConsumerGroupId" x.consumerGroupId, putOpt "SchemaRegistryConfig" x.schemaRegistryConfig] + ofValue v := do + let consumerGroupId ← v.opt "ConsumerGroupId" + let schemaRegistryConfig ← v.opt "SchemaRegistryConfig" + return { consumerGroupId, schemaRegistryConfig } + +/-- A capacity provider manages compute resources for Lambda functions. -/ +structure CapacityProvider where + /-- The Amazon Resource Name (ARN) of the capacity provider. -/ + capacityProviderArn : String + /-- The scaling configuration for the capacity provider. -/ + capacityProviderScalingConfig : Option CapacityProviderScalingConfig := none + /-- The instance requirements for compute resources managed by the capacity provider. -/ + instanceRequirements : Option InstanceRequirements := none + /-- The ARN of the KMS key used to encrypt the capacity provider's resources. -/ + kmsKeyArn : Option String := none + /-- The date and time when the capacity provider was last modified. -/ + lastModified : Option String := none + /-- The permissions configuration for the capacity provider. -/ + permissionsConfig : CapacityProviderPermissionsConfig + propagateTags : Option PropagateTags := none + /-- The current state of the capacity provider. -/ + state : CapacityProviderState + /-- The telemetry configuration for the capacity provider, including logging settings. -/ + telemetryConfig : Option CapacityProviderTelemetryConfig := none + /-- The VPC configuration for the capacity provider. -/ + vpcConfig : CapacityProviderVpcConfig +deriving DecidableEq, Repr, Inhabited + +instance : Shape CapacityProvider where + schema := .struct "CapacityProvider" [({ name := "CapacityProviderArn", required := true }, .string), + ({ name := "CapacityProviderScalingConfig" }, (Shape.schema CapacityProviderScalingConfig)), + ({ name := "InstanceRequirements" }, (Shape.schema InstanceRequirements)), + ({ name := "KmsKeyArn" }, .string), + ({ name := "LastModified" }, .string), + ({ name := "PermissionsConfig", required := true }, (Shape.schema CapacityProviderPermissionsConfig)), + ({ name := "PropagateTags" }, (Shape.schema PropagateTags)), + ({ name := "State", required := true }, (Shape.schema CapacityProviderState)), + ({ name := "TelemetryConfig" }, (Shape.schema CapacityProviderTelemetryConfig)), + ({ name := "VpcConfig", required := true }, (Shape.schema CapacityProviderVpcConfig))] + toValue x := record [put "CapacityProviderArn" x.capacityProviderArn, putOpt "CapacityProviderScalingConfig" x.capacityProviderScalingConfig, putOpt "InstanceRequirements" x.instanceRequirements, putOpt "KmsKeyArn" x.kmsKeyArn, putOpt "LastModified" x.lastModified, put "PermissionsConfig" x.permissionsConfig, putOpt "PropagateTags" x.propagateTags, put "State" x.state, putOpt "TelemetryConfig" x.telemetryConfig, put "VpcConfig" x.vpcConfig] + ofValue v := do + let capacityProviderArn ← v.req "CapacityProviderArn" + let capacityProviderScalingConfig ← v.opt "CapacityProviderScalingConfig" + let instanceRequirements ← v.opt "InstanceRequirements" + let kmsKeyArn ← v.opt "KmsKeyArn" + let lastModified ← v.opt "LastModified" + let permissionsConfig ← v.req "PermissionsConfig" + let propagateTags ← v.opt "PropagateTags" + let state ← v.req "State" + let telemetryConfig ← v.opt "TelemetryConfig" + let vpcConfig ← v.req "VpcConfig" + return { capacityProviderArn, capacityProviderScalingConfig, instanceRequirements, kmsKeyArn, lastModified, permissionsConfig, propagateTags, state, telemetryConfig, vpcConfig } + +/-- Contains operations that have been updated since the last checkpoint, such as completed asynchronous work like timers or callbacks. -/ +structure CheckpointUpdatedExecutionState where + /-- Indicates that more results are available. -/ + nextMarker : Option String := none + /-- A list of operations that have been updated since the last checkpoint. -/ + operations : Option (List Operation) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CheckpointUpdatedExecutionState where + schema := .struct "CheckpointUpdatedExecutionState" [({ name := "NextMarker" }, .string), + ({ name := "Operations" }, (.list (Shape.schema Operation) "member"))] + toValue x := record [putOpt "NextMarker" x.nextMarker, putOpt "Operations" x.operations] + ofValue v := do + let nextMarker ← v.opt "NextMarker" + let operations ← v.opt "Operations" + return { nextMarker, operations } + +structure CreateCapacityProviderRequest where + /-- The name of the capacity provider. -/ + capacityProviderName : String + /-- The scaling configuration that defines how the capacity provider scales compute instances, including maximum vCPU count and scaling policies. -/ + capacityProviderScalingConfig : Option CapacityProviderScalingConfig := none + /-- The instance requirements that specify the compute instance characteristics, including architectures and allowed or excluded instance types. -/ + instanceRequirements : Option InstanceRequirements := none + /-- The ARN of the KMS key used to encrypt data associated with the capacity provider. -/ + kmsKeyArn : Option String := none + /-- The permissions configuration that specifies the IAM role ARN used by the capacity provider to manage compute resources. -/ + permissionsConfig : CapacityProviderPermissionsConfig + /-- The tag propagation configuration for the capacity provider. -/ + propagateTags : Option PropagateTags := none + /-- A list of tags to associate with the capacity provider. -/ + tags : Option (Dict String String) := none + /-- The telemetry configuration for the capacity provider. -/ + telemetryConfig : Option CapacityProviderTelemetryConfig := none + /-- The VPC configuration for the capacity provider, including subnet IDs and security group IDs where compute instances will be launched. -/ + vpcConfig : CapacityProviderVpcConfig +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCapacityProviderRequest where + schema := .struct "CreateCapacityProviderRequest" [({ name := "CapacityProviderName", required := true }, .string), + ({ name := "CapacityProviderScalingConfig" }, (Shape.schema CapacityProviderScalingConfig)), + ({ name := "InstanceRequirements" }, (Shape.schema InstanceRequirements)), + ({ name := "KmsKeyArn" }, .string), + ({ name := "PermissionsConfig", required := true }, (Shape.schema CapacityProviderPermissionsConfig)), + ({ name := "PropagateTags" }, (Shape.schema PropagateTags)), + ({ name := "Tags" }, (.map .string .string "key" "value")), + ({ name := "TelemetryConfig" }, (Shape.schema CapacityProviderTelemetryConfig)), + ({ name := "VpcConfig", required := true }, (Shape.schema CapacityProviderVpcConfig))] + toValue x := record [put "CapacityProviderName" x.capacityProviderName, putOpt "CapacityProviderScalingConfig" x.capacityProviderScalingConfig, putOpt "InstanceRequirements" x.instanceRequirements, putOpt "KmsKeyArn" x.kmsKeyArn, put "PermissionsConfig" x.permissionsConfig, putOpt "PropagateTags" x.propagateTags, putOpt "Tags" x.tags, putOpt "TelemetryConfig" x.telemetryConfig, put "VpcConfig" x.vpcConfig] + ofValue v := do + let capacityProviderName ← v.req "CapacityProviderName" + let capacityProviderScalingConfig ← v.opt "CapacityProviderScalingConfig" + let instanceRequirements ← v.opt "InstanceRequirements" + let kmsKeyArn ← v.opt "KmsKeyArn" + let permissionsConfig ← v.req "PermissionsConfig" + let propagateTags ← v.opt "PropagateTags" + let tags ← v.opt "Tags" + let telemetryConfig ← v.opt "TelemetryConfig" + let vpcConfig ← v.req "VpcConfig" + return { capacityProviderName, capacityProviderScalingConfig, instanceRequirements, kmsKeyArn, permissionsConfig, propagateTags, tags, telemetryConfig, vpcConfig } + +structure CreateCodeSigningConfigResponse where + /-- The code signing configuration. -/ + codeSigningConfig : CodeSigningConfig +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCodeSigningConfigResponse where + schema := .struct "CreateCodeSigningConfigResponse" [({ name := "CodeSigningConfig", required := true }, (Shape.schema CodeSigningConfig))] + toValue x := record [put "CodeSigningConfig" x.codeSigningConfig] + ofValue v := do + let codeSigningConfig ← v.req "CodeSigningConfig" + return { codeSigningConfig } + +structure CreateFunctionRequest where + /-- The accelerator resource settings for a Lambda execution environment. -/ + acceleratorConfig : Option AcceleratorConfig := none + /-- The instruction set architecture that the function supports. -/ + architectures : Option (List Architecture) := none + /-- Configuration for the capacity provider that manages compute resources for Lambda functions. -/ + capacityProviderConfig : Option CapacityProviderConfig := none + /-- The code for the function. -/ + code : FunctionCode + /-- To enable code signing for this function, specify the ARN of a code-signing configuration. -/ + codeSigningConfigArn : Option String := none + /-- A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. -/ + deadLetterConfig : Option DeadLetterConfig := none + /-- A description of the function. -/ + description : Option String := none + /-- Configuration settings for durable functions. -/ + durableConfig : Option DurableConfig := none + /-- Environment variables that are accessible from function code during execution. -/ + environment : Option Environment := none + /-- The size of the function's /tmp directory in MB. -/ + ephemeralStorage : Option EphemeralStorage := none + /-- Connection settings for an Amazon EFS file system or an Amazon S3 Files file system. -/ + fileSystemConfigs : Option (List FileSystemConfig) := none + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- The name of the method within your code that Lambda calls to run your function. -/ + handler : Option String := none + /-- Container image configuration values that override the values in the container image Dockerfile. -/ + imageConfig : Option ImageConfig := none + /-- The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt the following resources: The function's environment variables . -/ + kmsKeyArn : Option String := none + /-- A list of function layers to add to the function's execution environment. -/ + layers : Option (List String) := none + /-- The function's Amazon CloudWatch Logs configuration settings. -/ + loggingConfig : Option LoggingConfig := none + /-- The amount of memory available to the function at runtime. -/ + memorySize : Option Int := none + /-- The type of deployment package. -/ + packageType : Option PackageType := none + /-- Set to true to publish the first version of the function during creation. -/ + publish : Option Bool := none + /-- Specifies where to publish the function version or configuration. -/ + publishTo : Option FunctionVersionLatestPublished := none + /-- The Amazon Resource Name (ARN) of the function's execution role. -/ + role : String + /-- The identifier of the function's runtime . -/ + runtime : Option Runtime := none + /-- The customer-managed runtime configuration for your function. -/ + runtimeConfig : Option FunctionRuntimeConfig := none + /-- The function's SnapStart setting. -/ + snapStart : Option SnapStart := none + /-- A list of tags to apply to the function. -/ + tags : Option (Dict String String) := none + /-- Configuration for multi-tenant applications that use Lambda functions. -/ + tenancyConfig : Option TenancyConfig := none + /-- The amount of time (in seconds) that Lambda allows a function to run before stopping it. -/ + timeout : Option Int := none + /-- Set Mode to Active to sample and trace a subset of incoming requests with X-Ray . -/ + tracingConfig : Option TracingConfig := none + /-- For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. -/ + vpcConfig : Option VpcConfig := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateFunctionRequest where + schema := .struct "CreateFunctionRequest" [({ name := "AcceleratorConfig" }, (Shape.schema AcceleratorConfig)), + ({ name := "Architectures" }, (.list (Shape.schema Architecture) "member")), + ({ name := "CapacityProviderConfig" }, (Shape.schema CapacityProviderConfig)), + ({ name := "Code", required := true }, (Shape.schema FunctionCode)), + ({ name := "CodeSigningConfigArn" }, .string), + ({ name := "DeadLetterConfig" }, (Shape.schema DeadLetterConfig)), + ({ name := "Description" }, .string), + ({ name := "DurableConfig" }, (Shape.schema DurableConfig)), + ({ name := "Environment" }, (Shape.schema Environment)), + ({ name := "EphemeralStorage" }, (Shape.schema EphemeralStorage)), + ({ name := "FileSystemConfigs" }, (.list (Shape.schema FileSystemConfig) "member")), + ({ name := "FunctionName", required := true }, .string), + ({ name := "Handler" }, .string), + ({ name := "ImageConfig" }, (Shape.schema ImageConfig)), + ({ name := "KMSKeyArn" }, .string), + ({ name := "Layers" }, (.list .string "member")), + ({ name := "LoggingConfig" }, (Shape.schema LoggingConfig)), + ({ name := "MemorySize" }, .int), + ({ name := "PackageType" }, (Shape.schema PackageType)), + ({ name := "Publish" }, .bool), + ({ name := "PublishTo" }, (Shape.schema FunctionVersionLatestPublished)), + ({ name := "Role", required := true }, .string), + ({ name := "Runtime" }, (Shape.schema Runtime)), + ({ name := "RuntimeConfig" }, (Shape.schema FunctionRuntimeConfig)), + ({ name := "SnapStart" }, (Shape.schema SnapStart)), + ({ name := "Tags" }, (.map .string .string "key" "value")), + ({ name := "TenancyConfig" }, (Shape.schema TenancyConfig)), + ({ name := "Timeout" }, .int), + ({ name := "TracingConfig" }, (Shape.schema TracingConfig)), + ({ name := "VpcConfig" }, (Shape.schema VpcConfig))] + toValue x := record [putOpt "AcceleratorConfig" x.acceleratorConfig, putOpt "Architectures" x.architectures, putOpt "CapacityProviderConfig" x.capacityProviderConfig, put "Code" x.code, putOpt "CodeSigningConfigArn" x.codeSigningConfigArn, putOpt "DeadLetterConfig" x.deadLetterConfig, putOpt "Description" x.description, putOpt "DurableConfig" x.durableConfig, putOpt "Environment" x.environment, putOpt "EphemeralStorage" x.ephemeralStorage, putOpt "FileSystemConfigs" x.fileSystemConfigs, put "FunctionName" x.functionName, putOpt "Handler" x.handler, putOpt "ImageConfig" x.imageConfig, putOpt "KMSKeyArn" x.kmsKeyArn, putOpt "Layers" x.layers, putOpt "LoggingConfig" x.loggingConfig, putOpt "MemorySize" x.memorySize, putOpt "PackageType" x.packageType, putOpt "Publish" x.publish, putOpt "PublishTo" x.publishTo, put "Role" x.role, putOpt "Runtime" x.runtime, putOpt "RuntimeConfig" x.runtimeConfig, putOpt "SnapStart" x.snapStart, putOpt "Tags" x.tags, putOpt "TenancyConfig" x.tenancyConfig, putOpt "Timeout" x.timeout, putOpt "TracingConfig" x.tracingConfig, putOpt "VpcConfig" x.vpcConfig] + ofValue v := do + let acceleratorConfig ← v.opt "AcceleratorConfig" + let architectures ← v.opt "Architectures" + let capacityProviderConfig ← v.opt "CapacityProviderConfig" + let code ← v.req "Code" + let codeSigningConfigArn ← v.opt "CodeSigningConfigArn" + let deadLetterConfig ← v.opt "DeadLetterConfig" + let description ← v.opt "Description" + let durableConfig ← v.opt "DurableConfig" + let environment ← v.opt "Environment" + let ephemeralStorage ← v.opt "EphemeralStorage" + let fileSystemConfigs ← v.opt "FileSystemConfigs" + let functionName ← v.req "FunctionName" + let handler ← v.opt "Handler" + let imageConfig ← v.opt "ImageConfig" + let kmsKeyArn ← v.opt "KMSKeyArn" + let layers ← v.opt "Layers" + let loggingConfig ← v.opt "LoggingConfig" + let memorySize ← v.opt "MemorySize" + let packageType ← v.opt "PackageType" + let publish ← v.opt "Publish" + let publishTo ← v.opt "PublishTo" + let role ← v.req "Role" + let runtime ← v.opt "Runtime" + let runtimeConfig ← v.opt "RuntimeConfig" + let snapStart ← v.opt "SnapStart" + let tags ← v.opt "Tags" + let tenancyConfig ← v.opt "TenancyConfig" + let timeout ← v.opt "Timeout" + let tracingConfig ← v.opt "TracingConfig" + let vpcConfig ← v.opt "VpcConfig" + return { acceleratorConfig, architectures, capacityProviderConfig, code, codeSigningConfigArn, deadLetterConfig, description, durableConfig, environment, ephemeralStorage, fileSystemConfigs, functionName, handler, imageConfig, kmsKeyArn, layers, loggingConfig, memorySize, packageType, publish, publishTo, role, runtime, runtimeConfig, snapStart, tags, tenancyConfig, timeout, tracingConfig, vpcConfig } + +/-- An event that occurred during the execution of a durable function. -/ +structure Event where + callbackFailedDetails : Option CallbackFailedDetails := none + callbackStartedDetails : Option CallbackStartedDetails := none + callbackSucceededDetails : Option CallbackSucceededDetails := none + callbackTimedOutDetails : Option CallbackTimedOutDetails := none + chainedInvokeFailedDetails : Option ChainedInvokeFailedDetails := none + chainedInvokeStartedDetails : Option ChainedInvokeStartedDetails := none + /-- Details about a chained invocation that was stopped. -/ + chainedInvokeStoppedDetails : Option ChainedInvokeStoppedDetails := none + /-- Details about a chained invocation that succeeded. -/ + chainedInvokeSucceededDetails : Option ChainedInvokeSucceededDetails := none + /-- Details about a chained invocation that timed out. -/ + chainedInvokeTimedOutDetails : Option ChainedInvokeTimedOutDetails := none + /-- Details about a context that failed. -/ + contextFailedDetails : Option ContextFailedDetails := none + /-- Details about a context that started. -/ + contextStartedDetails : Option ContextStartedDetails := none + /-- Details about a context that succeeded. -/ + contextSucceededDetails : Option ContextSucceededDetails := none + /-- The unique identifier for this event. -/ + eventId : Option Int := none + /-- The date and time when this event occurred, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + eventTimestamp : Option Timestamp := none + /-- The type of event that occurred. -/ + eventType : Option EventType := none + /-- Details about an execution that failed. -/ + executionFailedDetails : Option ExecutionFailedDetails := none + /-- The details of an ExecutionPaused event. -/ + executionPausedDetails : Option ExecutionPausedDetails := none + /-- The details of an ExecutionResumed event. -/ + executionResumedDetails : Option ExecutionResumedDetails := none + /-- Details about an execution that started. -/ + executionStartedDetails : Option ExecutionStartedDetails := none + /-- Details about an execution that was stopped. -/ + executionStoppedDetails : Option ExecutionStoppedDetails := none + /-- Details about an execution that succeeded. -/ + executionSucceededDetails : Option ExecutionSucceededDetails := none + /-- Details about an execution that timed out. -/ + executionTimedOutDetails : Option ExecutionTimedOutDetails := none + /-- The unique identifier for this operation. -/ + id : Option String := none + /-- Details about a function invocation that completed. -/ + invocationCompletedDetails : Option InvocationCompletedDetails := none + /-- The customer-provided name for this operation. -/ + name : Option String := none + /-- The unique identifier of the parent operation, if this operation is running within a child context. -/ + parentId : Option String := none + /-- Details about a step that failed. -/ + stepFailedDetails : Option StepFailedDetails := none + /-- Details about a step that started. -/ + stepStartedDetails : Option StepStartedDetails := none + /-- Details about a step that succeeded. -/ + stepSucceededDetails : Option StepSucceededDetails := none + /-- The subtype of the event, providing additional categorization. -/ + subType : Option String := none + /-- Details about a wait operation that was cancelled. -/ + waitCancelledDetails : Option WaitCancelledDetails := none + /-- Details about a wait operation that started. -/ + waitStartedDetails : Option WaitStartedDetails := none + /-- Details about a wait operation that succeeded. -/ + waitSucceededDetails : Option WaitSucceededDetails := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Event where + schema := .struct "Event" [({ name := "CallbackFailedDetails" }, (Shape.schema CallbackFailedDetails)), + ({ name := "CallbackStartedDetails" }, (Shape.schema CallbackStartedDetails)), + ({ name := "CallbackSucceededDetails" }, (Shape.schema CallbackSucceededDetails)), + ({ name := "CallbackTimedOutDetails" }, (Shape.schema CallbackTimedOutDetails)), + ({ name := "ChainedInvokeFailedDetails" }, (Shape.schema ChainedInvokeFailedDetails)), + ({ name := "ChainedInvokeStartedDetails" }, (Shape.schema ChainedInvokeStartedDetails)), + ({ name := "ChainedInvokeStoppedDetails" }, (Shape.schema ChainedInvokeStoppedDetails)), + ({ name := "ChainedInvokeSucceededDetails" }, (Shape.schema ChainedInvokeSucceededDetails)), + ({ name := "ChainedInvokeTimedOutDetails" }, (Shape.schema ChainedInvokeTimedOutDetails)), + ({ name := "ContextFailedDetails" }, (Shape.schema ContextFailedDetails)), + ({ name := "ContextStartedDetails" }, (Shape.schema ContextStartedDetails)), + ({ name := "ContextSucceededDetails" }, (Shape.schema ContextSucceededDetails)), + ({ name := "EventId" }, .int), + ({ name := "EventTimestamp" }, (.time none)), + ({ name := "EventType" }, (Shape.schema EventType)), + ({ name := "ExecutionFailedDetails" }, (Shape.schema ExecutionFailedDetails)), + ({ name := "ExecutionPausedDetails" }, (Shape.schema ExecutionPausedDetails)), + ({ name := "ExecutionResumedDetails" }, (Shape.schema ExecutionResumedDetails)), + ({ name := "ExecutionStartedDetails" }, (Shape.schema ExecutionStartedDetails)), + ({ name := "ExecutionStoppedDetails" }, (Shape.schema ExecutionStoppedDetails)), + ({ name := "ExecutionSucceededDetails" }, (Shape.schema ExecutionSucceededDetails)), + ({ name := "ExecutionTimedOutDetails" }, (Shape.schema ExecutionTimedOutDetails)), + ({ name := "Id" }, .string), + ({ name := "InvocationCompletedDetails" }, (Shape.schema InvocationCompletedDetails)), + ({ name := "Name" }, .string), + ({ name := "ParentId" }, .string), + ({ name := "StepFailedDetails" }, (Shape.schema StepFailedDetails)), + ({ name := "StepStartedDetails" }, (Shape.schema StepStartedDetails)), + ({ name := "StepSucceededDetails" }, (Shape.schema StepSucceededDetails)), + ({ name := "SubType" }, .string), + ({ name := "WaitCancelledDetails" }, (Shape.schema WaitCancelledDetails)), + ({ name := "WaitStartedDetails" }, (Shape.schema WaitStartedDetails)), + ({ name := "WaitSucceededDetails" }, (Shape.schema WaitSucceededDetails))] + toValue x := record [putOpt "CallbackFailedDetails" x.callbackFailedDetails, putOpt "CallbackStartedDetails" x.callbackStartedDetails, putOpt "CallbackSucceededDetails" x.callbackSucceededDetails, putOpt "CallbackTimedOutDetails" x.callbackTimedOutDetails, putOpt "ChainedInvokeFailedDetails" x.chainedInvokeFailedDetails, putOpt "ChainedInvokeStartedDetails" x.chainedInvokeStartedDetails, putOpt "ChainedInvokeStoppedDetails" x.chainedInvokeStoppedDetails, putOpt "ChainedInvokeSucceededDetails" x.chainedInvokeSucceededDetails, putOpt "ChainedInvokeTimedOutDetails" x.chainedInvokeTimedOutDetails, putOpt "ContextFailedDetails" x.contextFailedDetails, putOpt "ContextStartedDetails" x.contextStartedDetails, putOpt "ContextSucceededDetails" x.contextSucceededDetails, putOpt "EventId" x.eventId, putOpt "EventTimestamp" x.eventTimestamp, putOpt "EventType" x.eventType, putOpt "ExecutionFailedDetails" x.executionFailedDetails, putOpt "ExecutionPausedDetails" x.executionPausedDetails, putOpt "ExecutionResumedDetails" x.executionResumedDetails, putOpt "ExecutionStartedDetails" x.executionStartedDetails, putOpt "ExecutionStoppedDetails" x.executionStoppedDetails, putOpt "ExecutionSucceededDetails" x.executionSucceededDetails, putOpt "ExecutionTimedOutDetails" x.executionTimedOutDetails, putOpt "Id" x.id, putOpt "InvocationCompletedDetails" x.invocationCompletedDetails, putOpt "Name" x.name, putOpt "ParentId" x.parentId, putOpt "StepFailedDetails" x.stepFailedDetails, putOpt "StepStartedDetails" x.stepStartedDetails, putOpt "StepSucceededDetails" x.stepSucceededDetails, putOpt "SubType" x.subType, putOpt "WaitCancelledDetails" x.waitCancelledDetails, putOpt "WaitStartedDetails" x.waitStartedDetails, putOpt "WaitSucceededDetails" x.waitSucceededDetails] + ofValue v := do + let callbackFailedDetails ← v.opt "CallbackFailedDetails" + let callbackStartedDetails ← v.opt "CallbackStartedDetails" + let callbackSucceededDetails ← v.opt "CallbackSucceededDetails" + let callbackTimedOutDetails ← v.opt "CallbackTimedOutDetails" + let chainedInvokeFailedDetails ← v.opt "ChainedInvokeFailedDetails" + let chainedInvokeStartedDetails ← v.opt "ChainedInvokeStartedDetails" + let chainedInvokeStoppedDetails ← v.opt "ChainedInvokeStoppedDetails" + let chainedInvokeSucceededDetails ← v.opt "ChainedInvokeSucceededDetails" + let chainedInvokeTimedOutDetails ← v.opt "ChainedInvokeTimedOutDetails" + let contextFailedDetails ← v.opt "ContextFailedDetails" + let contextStartedDetails ← v.opt "ContextStartedDetails" + let contextSucceededDetails ← v.opt "ContextSucceededDetails" + let eventId ← v.opt "EventId" + let eventTimestamp ← v.opt "EventTimestamp" + let eventType ← v.opt "EventType" + let executionFailedDetails ← v.opt "ExecutionFailedDetails" + let executionPausedDetails ← v.opt "ExecutionPausedDetails" + let executionResumedDetails ← v.opt "ExecutionResumedDetails" + let executionStartedDetails ← v.opt "ExecutionStartedDetails" + let executionStoppedDetails ← v.opt "ExecutionStoppedDetails" + let executionSucceededDetails ← v.opt "ExecutionSucceededDetails" + let executionTimedOutDetails ← v.opt "ExecutionTimedOutDetails" + let id ← v.opt "Id" + let invocationCompletedDetails ← v.opt "InvocationCompletedDetails" + let name ← v.opt "Name" + let parentId ← v.opt "ParentId" + let stepFailedDetails ← v.opt "StepFailedDetails" + let stepStartedDetails ← v.opt "StepStartedDetails" + let stepSucceededDetails ← v.opt "StepSucceededDetails" + let subType ← v.opt "SubType" + let waitCancelledDetails ← v.opt "WaitCancelledDetails" + let waitStartedDetails ← v.opt "WaitStartedDetails" + let waitSucceededDetails ← v.opt "WaitSucceededDetails" + return { callbackFailedDetails, callbackStartedDetails, callbackSucceededDetails, callbackTimedOutDetails, chainedInvokeFailedDetails, chainedInvokeStartedDetails, chainedInvokeStoppedDetails, chainedInvokeSucceededDetails, chainedInvokeTimedOutDetails, contextFailedDetails, contextStartedDetails, contextSucceededDetails, eventId, eventTimestamp, eventType, executionFailedDetails, executionPausedDetails, executionResumedDetails, executionStartedDetails, executionStoppedDetails, executionSucceededDetails, executionTimedOutDetails, id, invocationCompletedDetails, name, parentId, stepFailedDetails, stepStartedDetails, stepSucceededDetails, subType, waitCancelledDetails, waitStartedDetails, waitSucceededDetails } + +/-- Details about a function's configuration. -/ +structure FunctionConfiguration where + /-- The accelerator resource settings for a Lambda execution environment. -/ + acceleratorConfig : Option AcceleratorConfig := none + /-- The instruction set architecture that the function supports. -/ + architectures : Option (List Architecture) := none + /-- Configuration for the capacity provider that manages compute resources for Lambda functions. -/ + capacityProviderConfig : Option CapacityProviderConfig := none + /-- The SHA256 hash of the function's deployment package. -/ + codeSha256 : Option String := none + /-- The size of the function's deployment package, in bytes. -/ + codeSize : Option Int := none + /-- The SHA256 hash of the function configuration. -/ + configSha256 : Option String := none + /-- The function's dead letter queue. -/ + deadLetterConfig : Option DeadLetterConfig := none + /-- The function's description. -/ + description : Option String := none + /-- The function's durable execution configuration settings, if the function is configured for durability. -/ + durableConfig : Option DurableConfig := none + /-- The function's environment variables . -/ + environment : Option EnvironmentResponse := none + /-- The size of the function's /tmp directory in MB. -/ + ephemeralStorage : Option EphemeralStorage := none + /-- Connection settings for an Amazon EFS file system or an Amazon S3 file system . -/ + fileSystemConfigs : Option (List FileSystemConfig) := none + /-- The function's Amazon Resource Name (ARN). -/ + functionArn : Option String := none + /-- The name of the function. -/ + functionName : Option String := none + /-- The function that Lambda calls to begin running your function. -/ + handler : Option String := none + /-- The function's image configuration values. -/ + imageConfigResponse : Option ImageConfigResponse := none + /-- The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt the following resources: The function's environment variables . -/ + kmsKeyArn : Option String := none + /-- The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). -/ + lastModified : Option String := none + /-- The status of the last update that was performed on the function. -/ + lastUpdateStatus : Option LastUpdateStatus := none + /-- The reason for the last update that was performed on the function. -/ + lastUpdateStatusReason : Option String := none + /-- The reason code for the last update that was performed on the function. -/ + lastUpdateStatusReasonCode : Option LastUpdateStatusReasonCode := none + /-- The function's layers . -/ + layers : Option (List Layer) := none + /-- The function's Amazon CloudWatch Logs configuration settings. -/ + loggingConfig : Option LoggingConfig := none + /-- For Lambda@Edge functions, the ARN of the main function. -/ + masterArn : Option String := none + /-- The amount of memory available to the function at runtime. -/ + memorySize : Option Int := none + /-- The type of deployment package. -/ + packageType : Option PackageType := none + /-- The latest updated revision of the function or alias. -/ + revisionId : Option String := none + /-- The function's execution role. -/ + role : Option String := none + /-- The identifier of the function's runtime . -/ + runtime : Option Runtime := none + /-- The customer-managed runtime configuration for your function. -/ + runtimeConfig : Option FunctionRuntimeConfig := none + /-- The ARN of the runtime and any errors that occured. -/ + runtimeVersionConfig : Option RuntimeVersionConfig := none + /-- The ARN of the signing job. -/ + signingJobArn : Option String := none + /-- The ARN of the signing profile version. -/ + signingProfileVersionArn : Option String := none + /-- Set ApplyOn to PublishedVersions to create a snapshot of the initialized execution environment when you publish a function version. -/ + snapStart : Option SnapStartResponse := none + /-- The current state of the function. -/ + state : Option State := none + /-- The reason for the function's current state. -/ + stateReason : Option String := none + /-- The reason code for the function's current state. -/ + stateReasonCode : Option StateReasonCode := none + /-- The function's tenant isolation configuration settings. -/ + tenancyConfig : Option TenancyConfig := none + /-- The amount of time in seconds that Lambda allows a function to run before stopping it. -/ + timeout : Option Int := none + /-- The function's X-Ray tracing configuration. -/ + tracingConfig : Option TracingConfigResponse := none + /-- The version of the Lambda function. -/ + version : Option String := none + /-- The function's networking configuration. -/ + vpcConfig : Option VpcConfigResponse := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FunctionConfiguration where + schema := .struct "FunctionConfiguration" [({ name := "AcceleratorConfig" }, (Shape.schema AcceleratorConfig)), + ({ name := "Architectures" }, (.list (Shape.schema Architecture) "member")), + ({ name := "CapacityProviderConfig" }, (Shape.schema CapacityProviderConfig)), + ({ name := "CodeSha256" }, .string), + ({ name := "CodeSize" }, .int), + ({ name := "ConfigSha256" }, .string), + ({ name := "DeadLetterConfig" }, (Shape.schema DeadLetterConfig)), + ({ name := "Description" }, .string), + ({ name := "DurableConfig" }, (Shape.schema DurableConfig)), + ({ name := "Environment" }, (Shape.schema EnvironmentResponse)), + ({ name := "EphemeralStorage" }, (Shape.schema EphemeralStorage)), + ({ name := "FileSystemConfigs" }, (.list (Shape.schema FileSystemConfig) "member")), + ({ name := "FunctionArn" }, .string), + ({ name := "FunctionName" }, .string), + ({ name := "Handler" }, .string), + ({ name := "ImageConfigResponse" }, (Shape.schema ImageConfigResponse)), + ({ name := "KMSKeyArn" }, .string), + ({ name := "LastModified" }, .string), + ({ name := "LastUpdateStatus" }, (Shape.schema LastUpdateStatus)), + ({ name := "LastUpdateStatusReason" }, .string), + ({ name := "LastUpdateStatusReasonCode" }, (Shape.schema LastUpdateStatusReasonCode)), + ({ name := "Layers" }, (.list (Shape.schema Layer) "member")), + ({ name := "LoggingConfig" }, (Shape.schema LoggingConfig)), + ({ name := "MasterArn" }, .string), + ({ name := "MemorySize" }, .int), + ({ name := "PackageType" }, (Shape.schema PackageType)), + ({ name := "RevisionId" }, .string), + ({ name := "Role" }, .string), + ({ name := "Runtime" }, (Shape.schema Runtime)), + ({ name := "RuntimeConfig" }, (Shape.schema FunctionRuntimeConfig)), + ({ name := "RuntimeVersionConfig" }, (Shape.schema RuntimeVersionConfig)), + ({ name := "SigningJobArn" }, .string), + ({ name := "SigningProfileVersionArn" }, .string), + ({ name := "SnapStart" }, (Shape.schema SnapStartResponse)), + ({ name := "State" }, (Shape.schema State)), + ({ name := "StateReason" }, .string), + ({ name := "StateReasonCode" }, (Shape.schema StateReasonCode)), + ({ name := "TenancyConfig" }, (Shape.schema TenancyConfig)), + ({ name := "Timeout" }, .int), + ({ name := "TracingConfig" }, (Shape.schema TracingConfigResponse)), + ({ name := "Version" }, .string), + ({ name := "VpcConfig" }, (Shape.schema VpcConfigResponse))] + toValue x := record [putOpt "AcceleratorConfig" x.acceleratorConfig, putOpt "Architectures" x.architectures, putOpt "CapacityProviderConfig" x.capacityProviderConfig, putOpt "CodeSha256" x.codeSha256, putOpt "CodeSize" x.codeSize, putOpt "ConfigSha256" x.configSha256, putOpt "DeadLetterConfig" x.deadLetterConfig, putOpt "Description" x.description, putOpt "DurableConfig" x.durableConfig, putOpt "Environment" x.environment, putOpt "EphemeralStorage" x.ephemeralStorage, putOpt "FileSystemConfigs" x.fileSystemConfigs, putOpt "FunctionArn" x.functionArn, putOpt "FunctionName" x.functionName, putOpt "Handler" x.handler, putOpt "ImageConfigResponse" x.imageConfigResponse, putOpt "KMSKeyArn" x.kmsKeyArn, putOpt "LastModified" x.lastModified, putOpt "LastUpdateStatus" x.lastUpdateStatus, putOpt "LastUpdateStatusReason" x.lastUpdateStatusReason, putOpt "LastUpdateStatusReasonCode" x.lastUpdateStatusReasonCode, putOpt "Layers" x.layers, putOpt "LoggingConfig" x.loggingConfig, putOpt "MasterArn" x.masterArn, putOpt "MemorySize" x.memorySize, putOpt "PackageType" x.packageType, putOpt "RevisionId" x.revisionId, putOpt "Role" x.role, putOpt "Runtime" x.runtime, putOpt "RuntimeConfig" x.runtimeConfig, putOpt "RuntimeVersionConfig" x.runtimeVersionConfig, putOpt "SigningJobArn" x.signingJobArn, putOpt "SigningProfileVersionArn" x.signingProfileVersionArn, putOpt "SnapStart" x.snapStart, putOpt "State" x.state, putOpt "StateReason" x.stateReason, putOpt "StateReasonCode" x.stateReasonCode, putOpt "TenancyConfig" x.tenancyConfig, putOpt "Timeout" x.timeout, putOpt "TracingConfig" x.tracingConfig, putOpt "Version" x.version, putOpt "VpcConfig" x.vpcConfig] + ofValue v := do + let acceleratorConfig ← v.opt "AcceleratorConfig" + let architectures ← v.opt "Architectures" + let capacityProviderConfig ← v.opt "CapacityProviderConfig" + let codeSha256 ← v.opt "CodeSha256" + let codeSize ← v.opt "CodeSize" + let configSha256 ← v.opt "ConfigSha256" + let deadLetterConfig ← v.opt "DeadLetterConfig" + let description ← v.opt "Description" + let durableConfig ← v.opt "DurableConfig" + let environment ← v.opt "Environment" + let ephemeralStorage ← v.opt "EphemeralStorage" + let fileSystemConfigs ← v.opt "FileSystemConfigs" + let functionArn ← v.opt "FunctionArn" + let functionName ← v.opt "FunctionName" + let handler ← v.opt "Handler" + let imageConfigResponse ← v.opt "ImageConfigResponse" + let kmsKeyArn ← v.opt "KMSKeyArn" + let lastModified ← v.opt "LastModified" + let lastUpdateStatus ← v.opt "LastUpdateStatus" + let lastUpdateStatusReason ← v.opt "LastUpdateStatusReason" + let lastUpdateStatusReasonCode ← v.opt "LastUpdateStatusReasonCode" + let layers ← v.opt "Layers" + let loggingConfig ← v.opt "LoggingConfig" + let masterArn ← v.opt "MasterArn" + let memorySize ← v.opt "MemorySize" + let packageType ← v.opt "PackageType" + let revisionId ← v.opt "RevisionId" + let role ← v.opt "Role" + let runtime ← v.opt "Runtime" + let runtimeConfig ← v.opt "RuntimeConfig" + let runtimeVersionConfig ← v.opt "RuntimeVersionConfig" + let signingJobArn ← v.opt "SigningJobArn" + let signingProfileVersionArn ← v.opt "SigningProfileVersionArn" + let snapStart ← v.opt "SnapStart" + let state ← v.opt "State" + let stateReason ← v.opt "StateReason" + let stateReasonCode ← v.opt "StateReasonCode" + let tenancyConfig ← v.opt "TenancyConfig" + let timeout ← v.opt "Timeout" + let tracingConfig ← v.opt "TracingConfig" + let version ← v.opt "Version" + let vpcConfig ← v.opt "VpcConfig" + return { acceleratorConfig, architectures, capacityProviderConfig, codeSha256, codeSize, configSha256, deadLetterConfig, description, durableConfig, environment, ephemeralStorage, fileSystemConfigs, functionArn, functionName, handler, imageConfigResponse, kmsKeyArn, lastModified, lastUpdateStatus, lastUpdateStatusReason, lastUpdateStatusReasonCode, layers, loggingConfig, masterArn, memorySize, packageType, revisionId, role, runtime, runtimeConfig, runtimeVersionConfig, signingJobArn, signingProfileVersionArn, snapStart, state, stateReason, stateReasonCode, tenancyConfig, timeout, tracingConfig, version, vpcConfig } + +structure GetCodeSigningConfigResponse where + /-- The code signing configuration. -/ + codeSigningConfig : CodeSigningConfig +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetCodeSigningConfigResponse where + schema := .struct "GetCodeSigningConfigResponse" [({ name := "CodeSigningConfig", required := true }, (Shape.schema CodeSigningConfig))] + toValue x := record [put "CodeSigningConfig" x.codeSigningConfig] + ofValue v := do + let codeSigningConfig ← v.req "CodeSigningConfig" + return { codeSigningConfig } + +/-- The response from the GetDurableExecutionState operation, containing the current execution state for replay. -/ +structure GetDurableExecutionStateResponse where + /-- If present, indicates that more operations are available. -/ + nextMarker : Option String := none + /-- An array of operations that represent the current state of the durable execution. -/ + operations : (List Operation) +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetDurableExecutionStateResponse where + schema := .struct "GetDurableExecutionStateResponse" [({ name := "NextMarker" }, .string), + ({ name := "Operations", required := true }, (.list (Shape.schema Operation) "member"))] + toValue x := record [putOpt "NextMarker" x.nextMarker, put "Operations" x.operations] + ofValue v := do + let nextMarker ← v.opt "NextMarker" + let operations ← v.req "Operations" + return { nextMarker, operations } + +structure ListCodeSigningConfigsResponse where + /-- The code signing configurations. -/ + codeSigningConfigs : Option (List CodeSigningConfig) := none + /-- The pagination token that's included if more results are available. -/ + nextMarker : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListCodeSigningConfigsResponse where + schema := .struct "ListCodeSigningConfigsResponse" [({ name := "CodeSigningConfigs" }, (.list (Shape.schema CodeSigningConfig) "member")), + ({ name := "NextMarker" }, .string)] + toValue x := record [putOpt "CodeSigningConfigs" x.codeSigningConfigs, putOpt "NextMarker" x.nextMarker] + ofValue v := do + let codeSigningConfigs ← v.opt "CodeSigningConfigs" + let nextMarker ← v.opt "NextMarker" + return { codeSigningConfigs, nextMarker } + +structure ListFunctionEventInvokeConfigsResponse where + /-- A list of configurations. -/ + functionEventInvokeConfigs : Option (List FunctionEventInvokeConfig) := none + /-- The pagination token that's included if more results are available. -/ + nextMarker : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListFunctionEventInvokeConfigsResponse where + schema := .struct "ListFunctionEventInvokeConfigsResponse" [({ name := "FunctionEventInvokeConfigs" }, (.list (Shape.schema FunctionEventInvokeConfig) "member")), + ({ name := "NextMarker" }, .string)] + toValue x := record [putOpt "FunctionEventInvokeConfigs" x.functionEventInvokeConfigs, putOpt "NextMarker" x.nextMarker] + ofValue v := do + let functionEventInvokeConfigs ← v.opt "FunctionEventInvokeConfigs" + let nextMarker ← v.opt "NextMarker" + return { functionEventInvokeConfigs, nextMarker } + +structure ListLayersResponse where + /-- A list of function layers. -/ + layers : Option (List LayersListItem) := none + /-- A pagination token returned when the response doesn't contain all layers. -/ + nextMarker : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListLayersResponse where + schema := .struct "ListLayersResponse" [({ name := "Layers" }, (.list (Shape.schema LayersListItem) "member")), + ({ name := "NextMarker" }, .string)] + toValue x := record [putOpt "Layers" x.layers, putOpt "NextMarker" x.nextMarker] + ofValue v := do + let layers ← v.opt "Layers" + let nextMarker ← v.opt "NextMarker" + return { layers, nextMarker } + +/-- Specific configuration settings for a self-managed Apache Kafka event source. -/ +structure SelfManagedKafkaEventSourceConfig where + /-- The identifier for the Kafka consumer group to join. -/ + consumerGroupId : Option String := none + /-- The mode that Lambda uses to consume records from your self-managed Apache Kafka topic. -/ + consumptionMode : Option KafkaEventSourceMappingConsumptionMode := none + /-- Specific configuration settings for a Kafka schema registry. -/ + schemaRegistryConfig : Option KafkaSchemaRegistryConfig := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SelfManagedKafkaEventSourceConfig where + schema := .struct "SelfManagedKafkaEventSourceConfig" [({ name := "ConsumerGroupId" }, .string), + ({ name := "ConsumptionMode" }, (Shape.schema KafkaEventSourceMappingConsumptionMode)), + ({ name := "SchemaRegistryConfig" }, (Shape.schema KafkaSchemaRegistryConfig))] + toValue x := record [putOpt "ConsumerGroupId" x.consumerGroupId, putOpt "ConsumptionMode" x.consumptionMode, putOpt "SchemaRegistryConfig" x.schemaRegistryConfig] + ofValue v := do + let consumerGroupId ← v.opt "ConsumerGroupId" + let consumptionMode ← v.opt "ConsumptionMode" + let schemaRegistryConfig ← v.opt "SchemaRegistryConfig" + return { consumerGroupId, consumptionMode, schemaRegistryConfig } + +structure UpdateCapacityProviderRequest where + /-- The name of the capacity provider to update. -/ + capacityProviderName : String + /-- The updated scaling configuration for the capacity provider. -/ + capacityProviderScalingConfig : Option CapacityProviderScalingConfig := none + propagateTags : Option PropagateTags := none + /-- The updated telemetry configuration for the capacity provider. -/ + telemetryConfig : Option CapacityProviderTelemetryConfig := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateCapacityProviderRequest where + schema := .struct "UpdateCapacityProviderRequest" [({ name := "CapacityProviderName", required := true, location := .label }, .string), + ({ name := "CapacityProviderScalingConfig" }, (Shape.schema CapacityProviderScalingConfig)), + ({ name := "PropagateTags" }, (Shape.schema PropagateTags)), + ({ name := "TelemetryConfig" }, (Shape.schema CapacityProviderTelemetryConfig))] + toValue x := record [put "CapacityProviderName" x.capacityProviderName, putOpt "CapacityProviderScalingConfig" x.capacityProviderScalingConfig, putOpt "PropagateTags" x.propagateTags, putOpt "TelemetryConfig" x.telemetryConfig] + ofValue v := do + let capacityProviderName ← v.req "CapacityProviderName" + let capacityProviderScalingConfig ← v.opt "CapacityProviderScalingConfig" + let propagateTags ← v.opt "PropagateTags" + let telemetryConfig ← v.opt "TelemetryConfig" + return { capacityProviderName, capacityProviderScalingConfig, propagateTags, telemetryConfig } + +structure UpdateCodeSigningConfigResponse where + /-- The code signing configuration. -/ + codeSigningConfig : CodeSigningConfig +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateCodeSigningConfigResponse where + schema := .struct "UpdateCodeSigningConfigResponse" [({ name := "CodeSigningConfig", required := true }, (Shape.schema CodeSigningConfig))] + toValue x := record [put "CodeSigningConfig" x.codeSigningConfig] + ofValue v := do + let codeSigningConfig ← v.req "CodeSigningConfig" + return { codeSigningConfig } + +structure UpdateFunctionConfigurationRequest where + /-- The accelerator resource settings for a Lambda execution environment. -/ + acceleratorConfig : Option AcceleratorConfig := none + /-- Configuration for the capacity provider that manages compute resources for Lambda functions. -/ + capacityProviderConfig : Option CapacityProviderConfig := none + /-- A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. -/ + deadLetterConfig : Option DeadLetterConfig := none + /-- A description of the function. -/ + description : Option String := none + /-- Configuration settings for durable functions , including execution timeout, retention period for execution history, and an optional ARN of the Key Management Service (KMS) customer managed key that is used to encrypt your durable execution' -/ + durableConfig : Option DurableConfig := none + /-- Environment variables that are accessible from function code during execution. -/ + environment : Option Environment := none + /-- The size of the function's /tmp directory in MB. -/ + ephemeralStorage : Option EphemeralStorage := none + /-- Connection settings for an Amazon EFS file system or an Amazon S3 Files file system. -/ + fileSystemConfigs : Option (List FileSystemConfig) := none + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- The name of the method within your code that Lambda calls to run your function. -/ + handler : Option String := none + /-- Container image configuration values that override the values in the container image Docker file. -/ + imageConfig : Option ImageConfig := none + /-- The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt the following resources: The function's environment variables . -/ + kmsKeyArn : Option String := none + /-- A list of function layers to add to the function's execution environment. -/ + layers : Option (List String) := none + /-- The function's Amazon CloudWatch Logs configuration settings. -/ + loggingConfig : Option LoggingConfig := none + /-- The amount of memory available to the function at runtime. -/ + memorySize : Option Int := none + /-- Update the function only if the revision ID matches the ID that's specified. -/ + revisionId : Option String := none + /-- The Amazon Resource Name (ARN) of the function's execution role. -/ + role : Option String := none + /-- The identifier of the function's runtime . -/ + runtime : Option Runtime := none + /-- The customer-managed runtime configuration for your function. -/ + runtimeConfig : Option FunctionRuntimeConfig := none + /-- The function's SnapStart setting. -/ + snapStart : Option SnapStart := none + /-- The amount of time (in seconds) that Lambda allows a function to run before stopping it. -/ + timeout : Option Int := none + /-- Set Mode to Active to sample and trace a subset of incoming requests with X-Ray . -/ + tracingConfig : Option TracingConfig := none + /-- For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. -/ + vpcConfig : Option VpcConfig := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateFunctionConfigurationRequest where + schema := .struct "UpdateFunctionConfigurationRequest" [({ name := "AcceleratorConfig" }, (Shape.schema AcceleratorConfig)), + ({ name := "CapacityProviderConfig" }, (Shape.schema CapacityProviderConfig)), + ({ name := "DeadLetterConfig" }, (Shape.schema DeadLetterConfig)), + ({ name := "Description" }, .string), + ({ name := "DurableConfig" }, (Shape.schema DurableConfig)), + ({ name := "Environment" }, (Shape.schema Environment)), + ({ name := "EphemeralStorage" }, (Shape.schema EphemeralStorage)), + ({ name := "FileSystemConfigs" }, (.list (Shape.schema FileSystemConfig) "member")), + ({ name := "FunctionName", required := true, location := .label }, .string), + ({ name := "Handler" }, .string), + ({ name := "ImageConfig" }, (Shape.schema ImageConfig)), + ({ name := "KMSKeyArn" }, .string), + ({ name := "Layers" }, (.list .string "member")), + ({ name := "LoggingConfig" }, (Shape.schema LoggingConfig)), + ({ name := "MemorySize" }, .int), + ({ name := "RevisionId" }, .string), + ({ name := "Role" }, .string), + ({ name := "Runtime" }, (Shape.schema Runtime)), + ({ name := "RuntimeConfig" }, (Shape.schema FunctionRuntimeConfig)), + ({ name := "SnapStart" }, (Shape.schema SnapStart)), + ({ name := "Timeout" }, .int), + ({ name := "TracingConfig" }, (Shape.schema TracingConfig)), + ({ name := "VpcConfig" }, (Shape.schema VpcConfig))] + toValue x := record [putOpt "AcceleratorConfig" x.acceleratorConfig, putOpt "CapacityProviderConfig" x.capacityProviderConfig, putOpt "DeadLetterConfig" x.deadLetterConfig, putOpt "Description" x.description, putOpt "DurableConfig" x.durableConfig, putOpt "Environment" x.environment, putOpt "EphemeralStorage" x.ephemeralStorage, putOpt "FileSystemConfigs" x.fileSystemConfigs, put "FunctionName" x.functionName, putOpt "Handler" x.handler, putOpt "ImageConfig" x.imageConfig, putOpt "KMSKeyArn" x.kmsKeyArn, putOpt "Layers" x.layers, putOpt "LoggingConfig" x.loggingConfig, putOpt "MemorySize" x.memorySize, putOpt "RevisionId" x.revisionId, putOpt "Role" x.role, putOpt "Runtime" x.runtime, putOpt "RuntimeConfig" x.runtimeConfig, putOpt "SnapStart" x.snapStart, putOpt "Timeout" x.timeout, putOpt "TracingConfig" x.tracingConfig, putOpt "VpcConfig" x.vpcConfig] + ofValue v := do + let acceleratorConfig ← v.opt "AcceleratorConfig" + let capacityProviderConfig ← v.opt "CapacityProviderConfig" + let deadLetterConfig ← v.opt "DeadLetterConfig" + let description ← v.opt "Description" + let durableConfig ← v.opt "DurableConfig" + let environment ← v.opt "Environment" + let ephemeralStorage ← v.opt "EphemeralStorage" + let fileSystemConfigs ← v.opt "FileSystemConfigs" + let functionName ← v.req "FunctionName" + let handler ← v.opt "Handler" + let imageConfig ← v.opt "ImageConfig" + let kmsKeyArn ← v.opt "KMSKeyArn" + let layers ← v.opt "Layers" + let loggingConfig ← v.opt "LoggingConfig" + let memorySize ← v.opt "MemorySize" + let revisionId ← v.opt "RevisionId" + let role ← v.opt "Role" + let runtime ← v.opt "Runtime" + let runtimeConfig ← v.opt "RuntimeConfig" + let snapStart ← v.opt "SnapStart" + let timeout ← v.opt "Timeout" + let tracingConfig ← v.opt "TracingConfig" + let vpcConfig ← v.opt "VpcConfig" + return { acceleratorConfig, capacityProviderConfig, deadLetterConfig, description, durableConfig, environment, ephemeralStorage, fileSystemConfigs, functionName, handler, imageConfig, kmsKeyArn, layers, loggingConfig, memorySize, revisionId, role, runtime, runtimeConfig, snapStart, timeout, tracingConfig, vpcConfig } + +/-- The response from the CheckpointDurableExecution operation. -/ +structure CheckpointDurableExecutionResponse where + /-- A new checkpoint token to use for the next checkpoint operation. -/ + checkpointToken : Option String := none + /-- Updated execution state information that includes any changes that occurred since the last checkpoint, such as completed callbacks or expired timers. -/ + newExecutionState : CheckpointUpdatedExecutionState +deriving DecidableEq, Repr, Inhabited + +instance : Shape CheckpointDurableExecutionResponse where + schema := .struct "CheckpointDurableExecutionResponse" [({ name := "CheckpointToken" }, .string), + ({ name := "NewExecutionState", required := true }, (Shape.schema CheckpointUpdatedExecutionState))] + toValue x := record [putOpt "CheckpointToken" x.checkpointToken, put "NewExecutionState" x.newExecutionState] + ofValue v := do + let checkpointToken ← v.opt "CheckpointToken" + let newExecutionState ← v.req "NewExecutionState" + return { checkpointToken, newExecutionState } + +structure CreateCapacityProviderResponse where + /-- Information about the capacity provider that was created. -/ + capacityProvider : CapacityProvider +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateCapacityProviderResponse where + schema := .struct "CreateCapacityProviderResponse" [({ name := "CapacityProvider", required := true }, (Shape.schema CapacityProvider))] + toValue x := record [put "CapacityProvider" x.capacityProvider] + ofValue v := do + let capacityProvider ← v.req "CapacityProvider" + return { capacityProvider } + +structure CreateEventSourceMappingRequest where + /-- Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source. -/ + amazonManagedKafkaEventSourceConfig : Option AmazonManagedKafkaEventSourceConfig := none + /-- The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. -/ + batchSize : Option Int := none + /-- (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) If the function returns an error, split the batch in two and retry. -/ + bisectBatchOnFunctionError : Option Bool := none + /-- (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A configuration object that specifies the destination of an event after Lambda processes it. -/ + destinationConfig : Option DestinationConfig := none + /-- Specific configuration settings for a DocumentDB event source. -/ + documentDBEventSourceConfig : Option DocumentDBEventSourceConfig := none + /-- When true, the event source mapping is active. -/ + enabled : Option Bool := none + /-- The Amazon Resource Name (ARN) of the event source. -/ + eventSourceArn : Option String := none + /-- An object that defines the filter criteria that determine whether Lambda should process an event. -/ + filterCriteria : Option FilterCriteria := none + /-- The name or ARN of the Lambda function. -/ + functionName : String + /-- (Kinesis, DynamoDB Streams, Amazon MSK, self-managed Apache Kafka, and Amazon SQS) A list of current response type enums applied to the event source mapping. -/ + functionResponseTypes : Option (List FunctionResponseType) := none + /-- The ARN of the Key Management Service (KMS) customer managed key that Lambda uses to encrypt your function's filter criteria . -/ + kmsKeyArn : Option String := none + /-- (Amazon MSK, and self-managed Apache Kafka only) The logging configuration for your event source. -/ + loggingConfig : Option EventSourceMappingLoggingConfig := none + /-- The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. -/ + maximumBatchingWindowInSeconds : Option Int := none + /-- (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records older than the specified age. -/ + maximumRecordAgeInSeconds : Option Int := none + /-- (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records after the specified number of retries. -/ + maximumRetryAttempts : Option Int := none + /-- The metrics configuration for your event source. -/ + metricsConfig : Option EventSourceMappingMetricsConfig := none + /-- (Kinesis and DynamoDB Streams only) The number of batches to process from each shard concurrently. -/ + parallelizationFactor : Option Int := none + /-- (Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The provisioned mode configuration for the event source. -/ + provisionedPollerConfig : Option ProvisionedPollerConfig := none + /-- (MQ) The name of the Amazon MQ broker destination queue to consume. -/ + queues : Option (List String) := none + /-- (Amazon SQS only) The scaling configuration for the event source. -/ + scalingConfig : Option ScalingConfig := none + /-- The self-managed Apache Kafka cluster to receive records from. -/ + selfManagedEventSource : Option SelfManagedEventSource := none + /-- Specific configuration settings for a self-managed Apache Kafka event source. -/ + selfManagedKafkaEventSourceConfig : Option SelfManagedKafkaEventSourceConfig := none + /-- An array of authentication protocols or VPC components required to secure your event source. -/ + sourceAccessConfigurations : Option (List SourceAccessConfiguration) := none + /-- The position in a stream from which to start reading. -/ + startingPosition : Option EventSourcePosition := none + /-- With StartingPosition set to AT_TIMESTAMP , the time from which to start reading. -/ + startingPositionTimestamp : Option Timestamp := none + /-- A list of tags to apply to the event source mapping. -/ + tags : Option (Dict String String) := none + /-- The name of the Kafka topic. -/ + topics : Option (List String) := none + /-- (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. -/ + tumblingWindowInSeconds : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateEventSourceMappingRequest where + schema := .struct "CreateEventSourceMappingRequest" [({ name := "AmazonManagedKafkaEventSourceConfig" }, (Shape.schema AmazonManagedKafkaEventSourceConfig)), + ({ name := "BatchSize" }, .int), + ({ name := "BisectBatchOnFunctionError" }, .bool), + ({ name := "DestinationConfig" }, (Shape.schema DestinationConfig)), + ({ name := "DocumentDBEventSourceConfig" }, (Shape.schema DocumentDBEventSourceConfig)), + ({ name := "Enabled" }, .bool), + ({ name := "EventSourceArn" }, .string), + ({ name := "FilterCriteria" }, (Shape.schema FilterCriteria)), + ({ name := "FunctionName", required := true }, .string), + ({ name := "FunctionResponseTypes" }, (.list (Shape.schema FunctionResponseType) "member")), + ({ name := "KMSKeyArn" }, .string), + ({ name := "LoggingConfig" }, (Shape.schema EventSourceMappingLoggingConfig)), + ({ name := "MaximumBatchingWindowInSeconds" }, .int), + ({ name := "MaximumRecordAgeInSeconds" }, .int), + ({ name := "MaximumRetryAttempts" }, .int), + ({ name := "MetricsConfig" }, (Shape.schema EventSourceMappingMetricsConfig)), + ({ name := "ParallelizationFactor" }, .int), + ({ name := "ProvisionedPollerConfig" }, (Shape.schema ProvisionedPollerConfig)), + ({ name := "Queues" }, (.list .string "member")), + ({ name := "ScalingConfig" }, (Shape.schema ScalingConfig)), + ({ name := "SelfManagedEventSource" }, (Shape.schema SelfManagedEventSource)), + ({ name := "SelfManagedKafkaEventSourceConfig" }, (Shape.schema SelfManagedKafkaEventSourceConfig)), + ({ name := "SourceAccessConfigurations" }, (.list (Shape.schema SourceAccessConfiguration) "member")), + ({ name := "StartingPosition" }, (Shape.schema EventSourcePosition)), + ({ name := "StartingPositionTimestamp" }, (.time none)), + ({ name := "Tags" }, (.map .string .string "key" "value")), + ({ name := "Topics" }, (.list .string "member")), + ({ name := "TumblingWindowInSeconds" }, .int)] + toValue x := record [putOpt "AmazonManagedKafkaEventSourceConfig" x.amazonManagedKafkaEventSourceConfig, putOpt "BatchSize" x.batchSize, putOpt "BisectBatchOnFunctionError" x.bisectBatchOnFunctionError, putOpt "DestinationConfig" x.destinationConfig, putOpt "DocumentDBEventSourceConfig" x.documentDBEventSourceConfig, putOpt "Enabled" x.enabled, putOpt "EventSourceArn" x.eventSourceArn, putOpt "FilterCriteria" x.filterCriteria, put "FunctionName" x.functionName, putOpt "FunctionResponseTypes" x.functionResponseTypes, putOpt "KMSKeyArn" x.kmsKeyArn, putOpt "LoggingConfig" x.loggingConfig, putOpt "MaximumBatchingWindowInSeconds" x.maximumBatchingWindowInSeconds, putOpt "MaximumRecordAgeInSeconds" x.maximumRecordAgeInSeconds, putOpt "MaximumRetryAttempts" x.maximumRetryAttempts, putOpt "MetricsConfig" x.metricsConfig, putOpt "ParallelizationFactor" x.parallelizationFactor, putOpt "ProvisionedPollerConfig" x.provisionedPollerConfig, putOpt "Queues" x.queues, putOpt "ScalingConfig" x.scalingConfig, putOpt "SelfManagedEventSource" x.selfManagedEventSource, putOpt "SelfManagedKafkaEventSourceConfig" x.selfManagedKafkaEventSourceConfig, putOpt "SourceAccessConfigurations" x.sourceAccessConfigurations, putOpt "StartingPosition" x.startingPosition, putOpt "StartingPositionTimestamp" x.startingPositionTimestamp, putOpt "Tags" x.tags, putOpt "Topics" x.topics, putOpt "TumblingWindowInSeconds" x.tumblingWindowInSeconds] + ofValue v := do + let amazonManagedKafkaEventSourceConfig ← v.opt "AmazonManagedKafkaEventSourceConfig" + let batchSize ← v.opt "BatchSize" + let bisectBatchOnFunctionError ← v.opt "BisectBatchOnFunctionError" + let destinationConfig ← v.opt "DestinationConfig" + let documentDBEventSourceConfig ← v.opt "DocumentDBEventSourceConfig" + let enabled ← v.opt "Enabled" + let eventSourceArn ← v.opt "EventSourceArn" + let filterCriteria ← v.opt "FilterCriteria" + let functionName ← v.req "FunctionName" + let functionResponseTypes ← v.opt "FunctionResponseTypes" + let kmsKeyArn ← v.opt "KMSKeyArn" + let loggingConfig ← v.opt "LoggingConfig" + let maximumBatchingWindowInSeconds ← v.opt "MaximumBatchingWindowInSeconds" + let maximumRecordAgeInSeconds ← v.opt "MaximumRecordAgeInSeconds" + let maximumRetryAttempts ← v.opt "MaximumRetryAttempts" + let metricsConfig ← v.opt "MetricsConfig" + let parallelizationFactor ← v.opt "ParallelizationFactor" + let provisionedPollerConfig ← v.opt "ProvisionedPollerConfig" + let queues ← v.opt "Queues" + let scalingConfig ← v.opt "ScalingConfig" + let selfManagedEventSource ← v.opt "SelfManagedEventSource" + let selfManagedKafkaEventSourceConfig ← v.opt "SelfManagedKafkaEventSourceConfig" + let sourceAccessConfigurations ← v.opt "SourceAccessConfigurations" + let startingPosition ← v.opt "StartingPosition" + let startingPositionTimestamp ← v.opt "StartingPositionTimestamp" + let tags ← v.opt "Tags" + let topics ← v.opt "Topics" + let tumblingWindowInSeconds ← v.opt "TumblingWindowInSeconds" + return { amazonManagedKafkaEventSourceConfig, batchSize, bisectBatchOnFunctionError, destinationConfig, documentDBEventSourceConfig, enabled, eventSourceArn, filterCriteria, functionName, functionResponseTypes, kmsKeyArn, loggingConfig, maximumBatchingWindowInSeconds, maximumRecordAgeInSeconds, maximumRetryAttempts, metricsConfig, parallelizationFactor, provisionedPollerConfig, queues, scalingConfig, selfManagedEventSource, selfManagedKafkaEventSourceConfig, sourceAccessConfigurations, startingPosition, startingPositionTimestamp, tags, topics, tumblingWindowInSeconds } + +structure DeleteCapacityProviderResponse where + /-- Information about the deleted capacity provider. -/ + capacityProvider : CapacityProvider +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteCapacityProviderResponse where + schema := .struct "DeleteCapacityProviderResponse" [({ name := "CapacityProvider", required := true }, (Shape.schema CapacityProvider))] + toValue x := record [put "CapacityProvider" x.capacityProvider] + ofValue v := do + let capacityProvider ← v.req "CapacityProvider" + return { capacityProvider } + +/-- A mapping between an Amazon Web Services resource and a Lambda function. -/ +structure EventSourceMappingConfiguration where + /-- Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source. -/ + amazonManagedKafkaEventSourceConfig : Option AmazonManagedKafkaEventSourceConfig := none + /-- The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. -/ + batchSize : Option Int := none + /-- (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) If the function returns an error, split the batch in two and retry. -/ + bisectBatchOnFunctionError : Option Bool := none + /-- (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A configuration object that specifies the destination of an event after Lambda processes it. -/ + destinationConfig : Option DestinationConfig := none + /-- Specific configuration settings for a DocumentDB event source. -/ + documentDBEventSourceConfig : Option DocumentDBEventSourceConfig := none + /-- The Amazon Resource Name (ARN) of the event source. -/ + eventSourceArn : Option String := none + /-- The Amazon Resource Name (ARN) of the event source mapping. -/ + eventSourceMappingArn : Option String := none + /-- An object that defines the filter criteria that determine whether Lambda should process an event. -/ + filterCriteria : Option FilterCriteria := none + /-- An object that contains details about an error related to filter criteria encryption. -/ + filterCriteriaError : Option FilterCriteriaError := none + /-- The ARN of the Lambda function. -/ + functionArn : Option String := none + /-- (Kinesis, DynamoDB Streams, Amazon MSK, self-managed Apache Kafka, and Amazon SQS) A list of current response type enums applied to the event source mapping. -/ + functionResponseTypes : Option (List FunctionResponseType) := none + /-- The ARN of the Key Management Service (KMS) customer managed key that Lambda uses to encrypt your function's filter criteria . -/ + kmsKeyArn : Option String := none + /-- The date that the event source mapping was last updated or that its state changed. -/ + lastModified : Option Timestamp := none + /-- The result of the event source mapping's last processing attempt. -/ + lastProcessingResult : Option String := none + /-- (Amazon MSK, and self-managed Apache Kafka only) The logging configuration for your event source. -/ + loggingConfig : Option EventSourceMappingLoggingConfig := none + /-- The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. -/ + maximumBatchingWindowInSeconds : Option Int := none + /-- (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records older than the specified age. -/ + maximumRecordAgeInSeconds : Option Int := none + /-- (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records after the specified number of retries. -/ + maximumRetryAttempts : Option Int := none + /-- The metrics configuration for your event source. -/ + metricsConfig : Option EventSourceMappingMetricsConfig := none + /-- (Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard. -/ + parallelizationFactor : Option Int := none + /-- (Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The provisioned mode configuration for the event source. -/ + provisionedPollerConfig : Option ProvisionedPollerConfig := none + /-- (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. -/ + queues : Option (List String) := none + /-- (Amazon SQS only) The scaling configuration for the event source. -/ + scalingConfig : Option ScalingConfig := none + /-- The self-managed Apache Kafka cluster for your event source. -/ + selfManagedEventSource : Option SelfManagedEventSource := none + /-- Specific configuration settings for a self-managed Apache Kafka event source. -/ + selfManagedKafkaEventSourceConfig : Option SelfManagedKafkaEventSourceConfig := none + /-- An array of the authentication protocol, VPC components, or virtual host to secure and define your event source. -/ + sourceAccessConfigurations : Option (List SourceAccessConfiguration) := none + /-- The position in a stream from which to start reading. -/ + startingPosition : Option EventSourcePosition := none + /-- With StartingPosition set to AT_TIMESTAMP , the time from which to start reading. -/ + startingPositionTimestamp : Option Timestamp := none + /-- The state of the event source mapping. -/ + state : Option String := none + /-- Indicates whether a user or Lambda made the last change to the event source mapping. -/ + stateTransitionReason : Option String := none + /-- The name of the Kafka topic. -/ + topics : Option (List String) := none + /-- (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. -/ + tumblingWindowInSeconds : Option Int := none + /-- The identifier of the event source mapping. -/ + uuid : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EventSourceMappingConfiguration where + schema := .struct "EventSourceMappingConfiguration" [({ name := "AmazonManagedKafkaEventSourceConfig" }, (Shape.schema AmazonManagedKafkaEventSourceConfig)), + ({ name := "BatchSize" }, .int), + ({ name := "BisectBatchOnFunctionError" }, .bool), + ({ name := "DestinationConfig" }, (Shape.schema DestinationConfig)), + ({ name := "DocumentDBEventSourceConfig" }, (Shape.schema DocumentDBEventSourceConfig)), + ({ name := "EventSourceArn" }, .string), + ({ name := "EventSourceMappingArn" }, .string), + ({ name := "FilterCriteria" }, (Shape.schema FilterCriteria)), + ({ name := "FilterCriteriaError" }, (Shape.schema FilterCriteriaError)), + ({ name := "FunctionArn" }, .string), + ({ name := "FunctionResponseTypes" }, (.list (Shape.schema FunctionResponseType) "member")), + ({ name := "KMSKeyArn" }, .string), + ({ name := "LastModified" }, (.time none)), + ({ name := "LastProcessingResult" }, .string), + ({ name := "LoggingConfig" }, (Shape.schema EventSourceMappingLoggingConfig)), + ({ name := "MaximumBatchingWindowInSeconds" }, .int), + ({ name := "MaximumRecordAgeInSeconds" }, .int), + ({ name := "MaximumRetryAttempts" }, .int), + ({ name := "MetricsConfig" }, (Shape.schema EventSourceMappingMetricsConfig)), + ({ name := "ParallelizationFactor" }, .int), + ({ name := "ProvisionedPollerConfig" }, (Shape.schema ProvisionedPollerConfig)), + ({ name := "Queues" }, (.list .string "member")), + ({ name := "ScalingConfig" }, (Shape.schema ScalingConfig)), + ({ name := "SelfManagedEventSource" }, (Shape.schema SelfManagedEventSource)), + ({ name := "SelfManagedKafkaEventSourceConfig" }, (Shape.schema SelfManagedKafkaEventSourceConfig)), + ({ name := "SourceAccessConfigurations" }, (.list (Shape.schema SourceAccessConfiguration) "member")), + ({ name := "StartingPosition" }, (Shape.schema EventSourcePosition)), + ({ name := "StartingPositionTimestamp" }, (.time none)), + ({ name := "State" }, .string), + ({ name := "StateTransitionReason" }, .string), + ({ name := "Topics" }, (.list .string "member")), + ({ name := "TumblingWindowInSeconds" }, .int), + ({ name := "UUID" }, .string)] + toValue x := record [putOpt "AmazonManagedKafkaEventSourceConfig" x.amazonManagedKafkaEventSourceConfig, putOpt "BatchSize" x.batchSize, putOpt "BisectBatchOnFunctionError" x.bisectBatchOnFunctionError, putOpt "DestinationConfig" x.destinationConfig, putOpt "DocumentDBEventSourceConfig" x.documentDBEventSourceConfig, putOpt "EventSourceArn" x.eventSourceArn, putOpt "EventSourceMappingArn" x.eventSourceMappingArn, putOpt "FilterCriteria" x.filterCriteria, putOpt "FilterCriteriaError" x.filterCriteriaError, putOpt "FunctionArn" x.functionArn, putOpt "FunctionResponseTypes" x.functionResponseTypes, putOpt "KMSKeyArn" x.kmsKeyArn, putOpt "LastModified" x.lastModified, putOpt "LastProcessingResult" x.lastProcessingResult, putOpt "LoggingConfig" x.loggingConfig, putOpt "MaximumBatchingWindowInSeconds" x.maximumBatchingWindowInSeconds, putOpt "MaximumRecordAgeInSeconds" x.maximumRecordAgeInSeconds, putOpt "MaximumRetryAttempts" x.maximumRetryAttempts, putOpt "MetricsConfig" x.metricsConfig, putOpt "ParallelizationFactor" x.parallelizationFactor, putOpt "ProvisionedPollerConfig" x.provisionedPollerConfig, putOpt "Queues" x.queues, putOpt "ScalingConfig" x.scalingConfig, putOpt "SelfManagedEventSource" x.selfManagedEventSource, putOpt "SelfManagedKafkaEventSourceConfig" x.selfManagedKafkaEventSourceConfig, putOpt "SourceAccessConfigurations" x.sourceAccessConfigurations, putOpt "StartingPosition" x.startingPosition, putOpt "StartingPositionTimestamp" x.startingPositionTimestamp, putOpt "State" x.state, putOpt "StateTransitionReason" x.stateTransitionReason, putOpt "Topics" x.topics, putOpt "TumblingWindowInSeconds" x.tumblingWindowInSeconds, putOpt "UUID" x.uuid] + ofValue v := do + let amazonManagedKafkaEventSourceConfig ← v.opt "AmazonManagedKafkaEventSourceConfig" + let batchSize ← v.opt "BatchSize" + let bisectBatchOnFunctionError ← v.opt "BisectBatchOnFunctionError" + let destinationConfig ← v.opt "DestinationConfig" + let documentDBEventSourceConfig ← v.opt "DocumentDBEventSourceConfig" + let eventSourceArn ← v.opt "EventSourceArn" + let eventSourceMappingArn ← v.opt "EventSourceMappingArn" + let filterCriteria ← v.opt "FilterCriteria" + let filterCriteriaError ← v.opt "FilterCriteriaError" + let functionArn ← v.opt "FunctionArn" + let functionResponseTypes ← v.opt "FunctionResponseTypes" + let kmsKeyArn ← v.opt "KMSKeyArn" + let lastModified ← v.opt "LastModified" + let lastProcessingResult ← v.opt "LastProcessingResult" + let loggingConfig ← v.opt "LoggingConfig" + let maximumBatchingWindowInSeconds ← v.opt "MaximumBatchingWindowInSeconds" + let maximumRecordAgeInSeconds ← v.opt "MaximumRecordAgeInSeconds" + let maximumRetryAttempts ← v.opt "MaximumRetryAttempts" + let metricsConfig ← v.opt "MetricsConfig" + let parallelizationFactor ← v.opt "ParallelizationFactor" + let provisionedPollerConfig ← v.opt "ProvisionedPollerConfig" + let queues ← v.opt "Queues" + let scalingConfig ← v.opt "ScalingConfig" + let selfManagedEventSource ← v.opt "SelfManagedEventSource" + let selfManagedKafkaEventSourceConfig ← v.opt "SelfManagedKafkaEventSourceConfig" + let sourceAccessConfigurations ← v.opt "SourceAccessConfigurations" + let startingPosition ← v.opt "StartingPosition" + let startingPositionTimestamp ← v.opt "StartingPositionTimestamp" + let state ← v.opt "State" + let stateTransitionReason ← v.opt "StateTransitionReason" + let topics ← v.opt "Topics" + let tumblingWindowInSeconds ← v.opt "TumblingWindowInSeconds" + let uuid ← v.opt "UUID" + return { amazonManagedKafkaEventSourceConfig, batchSize, bisectBatchOnFunctionError, destinationConfig, documentDBEventSourceConfig, eventSourceArn, eventSourceMappingArn, filterCriteria, filterCriteriaError, functionArn, functionResponseTypes, kmsKeyArn, lastModified, lastProcessingResult, loggingConfig, maximumBatchingWindowInSeconds, maximumRecordAgeInSeconds, maximumRetryAttempts, metricsConfig, parallelizationFactor, provisionedPollerConfig, queues, scalingConfig, selfManagedEventSource, selfManagedKafkaEventSourceConfig, sourceAccessConfigurations, startingPosition, startingPositionTimestamp, state, stateTransitionReason, topics, tumblingWindowInSeconds, uuid } + +structure GetCapacityProviderResponse where + /-- Information about the capacity provider, including its configuration and current state. -/ + capacityProvider : CapacityProvider +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetCapacityProviderResponse where + schema := .struct "GetCapacityProviderResponse" [({ name := "CapacityProvider", required := true }, (Shape.schema CapacityProvider))] + toValue x := record [put "CapacityProvider" x.capacityProvider] + ofValue v := do + let capacityProvider ← v.req "CapacityProvider" + return { capacityProvider } + +/-- The response from the GetDurableExecutionHistory operation, containing the execution history and events. -/ +structure GetDurableExecutionHistoryResponse where + /-- An array of execution history events, ordered chronologically unless ReverseOrder is set to true . -/ + events : (List Event) + /-- If present, indicates that more history events are available. -/ + nextMarker : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetDurableExecutionHistoryResponse where + schema := .struct "GetDurableExecutionHistoryResponse" [({ name := "Events", required := true }, (.list (Shape.schema Event) "member")), + ({ name := "NextMarker" }, .string)] + toValue x := record [put "Events" x.events, putOpt "NextMarker" x.nextMarker] + ofValue v := do + let events ← v.req "Events" + let nextMarker ← v.opt "NextMarker" + return { events, nextMarker } + +structure GetFunctionResponse where + /-- The deployment package of the function or version. -/ + code : Option FunctionCodeLocation := none + /-- The function's reserved concurrency . -/ + concurrency : Option Concurrency := none + /-- The configuration of the function or version. -/ + configuration : Option FunctionConfiguration := none + /-- The function's tags . -/ + tags : Option (Dict String String) := none + /-- An object that contains details about an error related to retrieving tags. -/ + tagsError : Option TagsError := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetFunctionResponse where + schema := .struct "GetFunctionResponse" [({ name := "Code" }, (Shape.schema FunctionCodeLocation)), + ({ name := "Concurrency" }, (Shape.schema Concurrency)), + ({ name := "Configuration" }, (Shape.schema FunctionConfiguration)), + ({ name := "Tags" }, (.map .string .string "key" "value")), + ({ name := "TagsError" }, (Shape.schema TagsError))] + toValue x := record [putOpt "Code" x.code, putOpt "Concurrency" x.concurrency, putOpt "Configuration" x.configuration, putOpt "Tags" x.tags, putOpt "TagsError" x.tagsError] + ofValue v := do + let code ← v.opt "Code" + let concurrency ← v.opt "Concurrency" + let configuration ← v.opt "Configuration" + let tags ← v.opt "Tags" + let tagsError ← v.opt "TagsError" + return { code, concurrency, configuration, tags, tagsError } + +structure ListCapacityProvidersResponse where + /-- A list of capacity providers in your account. -/ + capacityProviders : (List CapacityProvider) + /-- The pagination token that's included if more results are available. -/ + nextMarker : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListCapacityProvidersResponse where + schema := .struct "ListCapacityProvidersResponse" [({ name := "CapacityProviders", required := true }, (.list (Shape.schema CapacityProvider) "member")), + ({ name := "NextMarker" }, .string)] + toValue x := record [put "CapacityProviders" x.capacityProviders, putOpt "NextMarker" x.nextMarker] + ofValue v := do + let capacityProviders ← v.req "CapacityProviders" + let nextMarker ← v.opt "NextMarker" + return { capacityProviders, nextMarker } + +/-- A list of Lambda functions. -/ +structure ListFunctionsResponse where + /-- A list of Lambda functions. -/ + functions : Option (List FunctionConfiguration) := none + /-- The pagination token that's included if more results are available. -/ + nextMarker : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListFunctionsResponse where + schema := .struct "ListFunctionsResponse" [({ name := "Functions" }, (.list (Shape.schema FunctionConfiguration) "member")), + ({ name := "NextMarker" }, .string)] + toValue x := record [putOpt "Functions" x.functions, putOpt "NextMarker" x.nextMarker] + ofValue v := do + let functions ← v.opt "Functions" + let nextMarker ← v.opt "NextMarker" + return { functions, nextMarker } + +structure ListVersionsByFunctionResponse where + /-- The pagination token that's included if more results are available. -/ + nextMarker : Option String := none + /-- A list of Lambda function versions. -/ + versions : Option (List FunctionConfiguration) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListVersionsByFunctionResponse where + schema := .struct "ListVersionsByFunctionResponse" [({ name := "NextMarker" }, .string), + ({ name := "Versions" }, (.list (Shape.schema FunctionConfiguration) "member"))] + toValue x := record [putOpt "NextMarker" x.nextMarker, putOpt "Versions" x.versions] + ofValue v := do + let nextMarker ← v.opt "NextMarker" + let versions ← v.opt "Versions" + return { nextMarker, versions } + +structure UpdateCapacityProviderResponse where + /-- Information about the updated capacity provider. -/ + capacityProvider : CapacityProvider +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateCapacityProviderResponse where + schema := .struct "UpdateCapacityProviderResponse" [({ name := "CapacityProvider", required := true }, (Shape.schema CapacityProvider))] + toValue x := record [put "CapacityProvider" x.capacityProvider] + ofValue v := do + let capacityProvider ← v.req "CapacityProvider" + return { capacityProvider } + +structure UpdateEventSourceMappingRequest where + amazonManagedKafkaEventSourceConfig : Option AmazonManagedKafkaEventSourceConfig := none + /-- The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. -/ + batchSize : Option Int := none + /-- (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) If the function returns an error, split the batch in two and retry. -/ + bisectBatchOnFunctionError : Option Bool := none + /-- (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A configuration object that specifies the destination of an event after Lambda processes it. -/ + destinationConfig : Option DestinationConfig := none + /-- Specific configuration settings for a DocumentDB event source. -/ + documentDBEventSourceConfig : Option DocumentDBEventSourceConfig := none + /-- When true, the event source mapping is active. -/ + enabled : Option Bool := none + /-- An object that defines the filter criteria that determine whether Lambda should process an event. -/ + filterCriteria : Option FilterCriteria := none + /-- The name or ARN of the Lambda function. -/ + functionName : Option String := none + /-- (Kinesis, DynamoDB Streams, Amazon MSK, self-managed Apache Kafka, and Amazon SQS) A list of current response type enums applied to the event source mapping. -/ + functionResponseTypes : Option (List FunctionResponseType) := none + /-- The ARN of the Key Management Service (KMS) customer managed key that Lambda uses to encrypt your function's filter criteria . -/ + kmsKeyArn : Option String := none + loggingConfig : Option EventSourceMappingLoggingConfig := none + /-- The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. -/ + maximumBatchingWindowInSeconds : Option Int := none + /-- (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records older than the specified age. -/ + maximumRecordAgeInSeconds : Option Int := none + /-- (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records after the specified number of retries. -/ + maximumRetryAttempts : Option Int := none + /-- The metrics configuration for your event source. -/ + metricsConfig : Option EventSourceMappingMetricsConfig := none + /-- (Kinesis and DynamoDB Streams only) The number of batches to process from each shard concurrently. -/ + parallelizationFactor : Option Int := none + /-- (Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The provisioned mode configuration for the event source. -/ + provisionedPollerConfig : Option ProvisionedPollerConfig := none + /-- (Amazon SQS only) The scaling configuration for the event source. -/ + scalingConfig : Option ScalingConfig := none + selfManagedKafkaEventSourceConfig : Option SelfManagedKafkaEventSourceConfig := none + /-- An array of authentication protocols or VPC components required to secure your event source. -/ + sourceAccessConfigurations : Option (List SourceAccessConfiguration) := none + /-- (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. -/ + tumblingWindowInSeconds : Option Int := none + /-- The identifier of the event source mapping. -/ + uuid : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateEventSourceMappingRequest where + schema := .struct "UpdateEventSourceMappingRequest" [({ name := "AmazonManagedKafkaEventSourceConfig" }, (Shape.schema AmazonManagedKafkaEventSourceConfig)), + ({ name := "BatchSize" }, .int), + ({ name := "BisectBatchOnFunctionError" }, .bool), + ({ name := "DestinationConfig" }, (Shape.schema DestinationConfig)), + ({ name := "DocumentDBEventSourceConfig" }, (Shape.schema DocumentDBEventSourceConfig)), + ({ name := "Enabled" }, .bool), + ({ name := "FilterCriteria" }, (Shape.schema FilterCriteria)), + ({ name := "FunctionName" }, .string), + ({ name := "FunctionResponseTypes" }, (.list (Shape.schema FunctionResponseType) "member")), + ({ name := "KMSKeyArn" }, .string), + ({ name := "LoggingConfig" }, (Shape.schema EventSourceMappingLoggingConfig)), + ({ name := "MaximumBatchingWindowInSeconds" }, .int), + ({ name := "MaximumRecordAgeInSeconds" }, .int), + ({ name := "MaximumRetryAttempts" }, .int), + ({ name := "MetricsConfig" }, (Shape.schema EventSourceMappingMetricsConfig)), + ({ name := "ParallelizationFactor" }, .int), + ({ name := "ProvisionedPollerConfig" }, (Shape.schema ProvisionedPollerConfig)), + ({ name := "ScalingConfig" }, (Shape.schema ScalingConfig)), + ({ name := "SelfManagedKafkaEventSourceConfig" }, (Shape.schema SelfManagedKafkaEventSourceConfig)), + ({ name := "SourceAccessConfigurations" }, (.list (Shape.schema SourceAccessConfiguration) "member")), + ({ name := "TumblingWindowInSeconds" }, .int), + ({ name := "UUID", required := true, location := .label }, .string)] + toValue x := record [putOpt "AmazonManagedKafkaEventSourceConfig" x.amazonManagedKafkaEventSourceConfig, putOpt "BatchSize" x.batchSize, putOpt "BisectBatchOnFunctionError" x.bisectBatchOnFunctionError, putOpt "DestinationConfig" x.destinationConfig, putOpt "DocumentDBEventSourceConfig" x.documentDBEventSourceConfig, putOpt "Enabled" x.enabled, putOpt "FilterCriteria" x.filterCriteria, putOpt "FunctionName" x.functionName, putOpt "FunctionResponseTypes" x.functionResponseTypes, putOpt "KMSKeyArn" x.kmsKeyArn, putOpt "LoggingConfig" x.loggingConfig, putOpt "MaximumBatchingWindowInSeconds" x.maximumBatchingWindowInSeconds, putOpt "MaximumRecordAgeInSeconds" x.maximumRecordAgeInSeconds, putOpt "MaximumRetryAttempts" x.maximumRetryAttempts, putOpt "MetricsConfig" x.metricsConfig, putOpt "ParallelizationFactor" x.parallelizationFactor, putOpt "ProvisionedPollerConfig" x.provisionedPollerConfig, putOpt "ScalingConfig" x.scalingConfig, putOpt "SelfManagedKafkaEventSourceConfig" x.selfManagedKafkaEventSourceConfig, putOpt "SourceAccessConfigurations" x.sourceAccessConfigurations, putOpt "TumblingWindowInSeconds" x.tumblingWindowInSeconds, put "UUID" x.uuid] + ofValue v := do + let amazonManagedKafkaEventSourceConfig ← v.opt "AmazonManagedKafkaEventSourceConfig" + let batchSize ← v.opt "BatchSize" + let bisectBatchOnFunctionError ← v.opt "BisectBatchOnFunctionError" + let destinationConfig ← v.opt "DestinationConfig" + let documentDBEventSourceConfig ← v.opt "DocumentDBEventSourceConfig" + let enabled ← v.opt "Enabled" + let filterCriteria ← v.opt "FilterCriteria" + let functionName ← v.opt "FunctionName" + let functionResponseTypes ← v.opt "FunctionResponseTypes" + let kmsKeyArn ← v.opt "KMSKeyArn" + let loggingConfig ← v.opt "LoggingConfig" + let maximumBatchingWindowInSeconds ← v.opt "MaximumBatchingWindowInSeconds" + let maximumRecordAgeInSeconds ← v.opt "MaximumRecordAgeInSeconds" + let maximumRetryAttempts ← v.opt "MaximumRetryAttempts" + let metricsConfig ← v.opt "MetricsConfig" + let parallelizationFactor ← v.opt "ParallelizationFactor" + let provisionedPollerConfig ← v.opt "ProvisionedPollerConfig" + let scalingConfig ← v.opt "ScalingConfig" + let selfManagedKafkaEventSourceConfig ← v.opt "SelfManagedKafkaEventSourceConfig" + let sourceAccessConfigurations ← v.opt "SourceAccessConfigurations" + let tumblingWindowInSeconds ← v.opt "TumblingWindowInSeconds" + let uuid ← v.req "UUID" + return { amazonManagedKafkaEventSourceConfig, batchSize, bisectBatchOnFunctionError, destinationConfig, documentDBEventSourceConfig, enabled, filterCriteria, functionName, functionResponseTypes, kmsKeyArn, loggingConfig, maximumBatchingWindowInSeconds, maximumRecordAgeInSeconds, maximumRetryAttempts, metricsConfig, parallelizationFactor, provisionedPollerConfig, scalingConfig, selfManagedKafkaEventSourceConfig, sourceAccessConfigurations, tumblingWindowInSeconds, uuid } + +structure ListEventSourceMappingsResponse where + /-- A list of event source mappings. -/ + eventSourceMappings : Option (List EventSourceMappingConfiguration) := none + /-- A pagination token that's returned when the response doesn't contain all event source mappings. -/ + nextMarker : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListEventSourceMappingsResponse where + schema := .struct "ListEventSourceMappingsResponse" [({ name := "EventSourceMappings" }, (.list (Shape.schema EventSourceMappingConfiguration) "member")), + ({ name := "NextMarker" }, .string)] + toValue x := record [putOpt "EventSourceMappings" x.eventSourceMappings, putOpt "NextMarker" x.nextMarker] + ofValue v := do + let eventSourceMappings ← v.opt "EventSourceMappings" + let nextMarker ← v.opt "NextMarker" + return { eventSourceMappings, nextMarker } + +/-- What `AddLayerVersionPermission` can fail with. -/ +inductive AddLayerVersionPermissionError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The permissions policy for the resource is too large. -/ + | policyLengthExceededException (error : PolicyLengthExceededException) + /-- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. -/ + | preconditionFailedException (error : PreconditionFailedException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def AddLayerVersionPermissionError.ofWire (name : String) (value : Value) : Option AddLayerVersionPermissionError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "PolicyLengthExceededException" => (Shape.ofValue value).toOption.map .policyLengthExceededException + | "PreconditionFailedException" => (Shape.ofValue value).toOption.map .preconditionFailedException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `AddPermission` can fail with. -/ +inductive AddPermissionError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The permissions policy for the resource is too large. -/ + | policyLengthExceededException (error : PolicyLengthExceededException) + /-- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. -/ + | preconditionFailedException (error : PreconditionFailedException) + /-- The resource-based policy you tried to add to the Lambda resource would grant public access to it, which isn't allowed. -/ + | publicPolicyException (error : PublicPolicyException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def AddPermissionError.ofWire (name : String) (value : Value) : Option AddPermissionError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "PolicyLengthExceededException" => (Shape.ofValue value).toOption.map .policyLengthExceededException + | "PreconditionFailedException" => (Shape.ofValue value).toOption.map .preconditionFailedException + | "PublicPolicyException" => (Shape.ofValue value).toOption.map .publicPolicyException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `CheckpointDurableExecution` can fail with. -/ +inductive CheckpointDurableExecutionError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- Lambda couldn't decrypt the environment variables because KMS access was denied. -/ + | kmsAccessDeniedException (error : KMSAccessDeniedException) + /-- Lambda couldn't decrypt the environment variables because the KMS key used is disabled. -/ + | kmsDisabledException (error : KMSDisabledException) + /-- Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. -/ + | kmsInvalidStateException (error : KMSInvalidStateException) + /-- Lambda couldn't decrypt the environment variables because the KMS key was not found. -/ + | kmsNotFoundException (error : KMSNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def CheckpointDurableExecutionError.ofWire (name : String) (value : Value) : Option CheckpointDurableExecutionError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "KMSAccessDeniedException" => (Shape.ofValue value).toOption.map .kmsAccessDeniedException + | "KMSDisabledException" => (Shape.ofValue value).toOption.map .kmsDisabledException + | "KMSInvalidStateException" => (Shape.ofValue value).toOption.map .kmsInvalidStateException + | "KMSNotFoundException" => (Shape.ofValue value).toOption.map .kmsNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `CreateAlias` can fail with. -/ +inductive CreateAliasError where + /-- Lambda couldn't create the alias because your Amazon Web Services account has exceeded the maximum number of aliases allowed per Lambda function. -/ + | aliasLimitExceededException (error : AliasLimitExceededException) + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def CreateAliasError.ofWire (name : String) (value : Value) : Option CreateAliasError := + match name with + | "AliasLimitExceededException" => (Shape.ofValue value).toOption.map .aliasLimitExceededException + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `CreateCapacityProvider` can fail with. -/ +inductive CreateCapacityProviderError where + /-- The maximum number of capacity providers for your account has been exceeded. -/ + | capacityProviderLimitExceededException (error : CapacityProviderLimitExceededException) + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def CreateCapacityProviderError.ofWire (name : String) (value : Value) : Option CreateCapacityProviderError := + match name with + | "CapacityProviderLimitExceededException" => (Shape.ofValue value).toOption.map .capacityProviderLimitExceededException + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `CreateCodeSigningConfig` can fail with. -/ +inductive CreateCodeSigningConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) +deriving DecidableEq, Repr + +def CreateCodeSigningConfigError.ofWire (name : String) (value : Value) : Option CreateCodeSigningConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | _ => none + +/-- What `CreateEventSourceMapping` can fail with. -/ +inductive CreateEventSourceMappingError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def CreateEventSourceMappingError.ofWire (name : String) (value : Value) : Option CreateEventSourceMappingError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `CreateFunction` can fail with. -/ +inductive CreateFunctionError where + /-- The specified code signing configuration does not exist. -/ + | codeSigningConfigNotFoundException (error : CodeSigningConfigNotFoundException) + /-- Your Amazon Web Services account has exceeded its maximum total code size. -/ + | codeStorageExceededException (error : CodeStorageExceededException) + /-- The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy is set to ENFORCE. -/ + | codeVerificationFailedException (error : CodeVerificationFailedException) + /-- The maximum number of function versions that can be associated with a single capacity provider has been exceeded. -/ + | functionVersionsPerCapacityProviderLimitExceededException (error : FunctionVersionsPerCapacityProviderLimitExceededException) + /-- The code signature failed the integrity check. -/ + | invalidCodeSignatureException (error : InvalidCodeSignatureException) + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def CreateFunctionError.ofWire (name : String) (value : Value) : Option CreateFunctionError := + match name with + | "CodeSigningConfigNotFoundException" => (Shape.ofValue value).toOption.map .codeSigningConfigNotFoundException + | "CodeStorageExceededException" => (Shape.ofValue value).toOption.map .codeStorageExceededException + | "CodeVerificationFailedException" => (Shape.ofValue value).toOption.map .codeVerificationFailedException + | "FunctionVersionsPerCapacityProviderLimitExceededException" => (Shape.ofValue value).toOption.map .functionVersionsPerCapacityProviderLimitExceededException + | "InvalidCodeSignatureException" => (Shape.ofValue value).toOption.map .invalidCodeSignatureException + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `CreateFunctionUrlConfig` can fail with. -/ +inductive CreateFunctionUrlConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def CreateFunctionUrlConfigError.ofWire (name : String) (value : Value) : Option CreateFunctionUrlConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `DeleteAlias` can fail with. -/ +inductive DeleteAliasError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def DeleteAliasError.ofWire (name : String) (value : Value) : Option DeleteAliasError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `DeleteCapacityProvider` can fail with. -/ +inductive DeleteCapacityProviderError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def DeleteCapacityProviderError.ofWire (name : String) (value : Value) : Option DeleteCapacityProviderError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `DeleteCodeSigningConfig` can fail with. -/ +inductive DeleteCodeSigningConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) +deriving DecidableEq, Repr + +def DeleteCodeSigningConfigError.ofWire (name : String) (value : Value) : Option DeleteCodeSigningConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | _ => none + +/-- What `DeleteDurableExecution` can fail with. -/ +inductive DeleteDurableExecutionError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def DeleteDurableExecutionError.ofWire (name : String) (value : Value) : Option DeleteDurableExecutionError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `DeleteEventSourceMapping` can fail with. -/ +inductive DeleteEventSourceMappingError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The operation conflicts with the resource's availability. -/ + | resourceInUseException (error : ResourceInUseException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def DeleteEventSourceMappingError.ofWire (name : String) (value : Value) : Option DeleteEventSourceMappingError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceInUseException" => (Shape.ofValue value).toOption.map .resourceInUseException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `DeleteFunction` can fail with. -/ +inductive DeleteFunctionError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def DeleteFunctionError.ofWire (name : String) (value : Value) : Option DeleteFunctionError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `DeleteFunctionCodeSigningConfig` can fail with. -/ +inductive DeleteFunctionCodeSigningConfigError where + /-- The specified code signing configuration does not exist. -/ + | codeSigningConfigNotFoundException (error : CodeSigningConfigNotFoundException) + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def DeleteFunctionCodeSigningConfigError.ofWire (name : String) (value : Value) : Option DeleteFunctionCodeSigningConfigError := + match name with + | "CodeSigningConfigNotFoundException" => (Shape.ofValue value).toOption.map .codeSigningConfigNotFoundException + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `DeleteFunctionConcurrency` can fail with. -/ +inductive DeleteFunctionConcurrencyError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def DeleteFunctionConcurrencyError.ofWire (name : String) (value : Value) : Option DeleteFunctionConcurrencyError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `DeleteFunctionEventInvokeConfig` can fail with. -/ +inductive DeleteFunctionEventInvokeConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def DeleteFunctionEventInvokeConfigError.ofWire (name : String) (value : Value) : Option DeleteFunctionEventInvokeConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `DeleteFunctionUrlConfig` can fail with. -/ +inductive DeleteFunctionUrlConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def DeleteFunctionUrlConfigError.ofWire (name : String) (value : Value) : Option DeleteFunctionUrlConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `DeleteLayerVersion` can fail with. -/ +inductive DeleteLayerVersionError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def DeleteLayerVersionError.ofWire (name : String) (value : Value) : Option DeleteLayerVersionError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `DeleteProvisionedConcurrencyConfig` can fail with. -/ +inductive DeleteProvisionedConcurrencyConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def DeleteProvisionedConcurrencyConfigError.ofWire (name : String) (value : Value) : Option DeleteProvisionedConcurrencyConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `DeleteResourcePolicy` can fail with. -/ +inductive DeleteResourcePolicyError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. -/ + | preconditionFailedException (error : PreconditionFailedException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def DeleteResourcePolicyError.ofWire (name : String) (value : Value) : Option DeleteResourcePolicyError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "PreconditionFailedException" => (Shape.ofValue value).toOption.map .preconditionFailedException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetAccountSettings` can fail with. -/ +inductive GetAccountSettingsError where + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetAccountSettingsError.ofWire (name : String) (value : Value) : Option GetAccountSettingsError := + match name with + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetAlias` can fail with. -/ +inductive GetAliasError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetAliasError.ofWire (name : String) (value : Value) : Option GetAliasError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetCapacityProvider` can fail with. -/ +inductive GetCapacityProviderError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetCapacityProviderError.ofWire (name : String) (value : Value) : Option GetCapacityProviderError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetCodeSigningConfig` can fail with. -/ +inductive GetCodeSigningConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) +deriving DecidableEq, Repr + +def GetCodeSigningConfigError.ofWire (name : String) (value : Value) : Option GetCodeSigningConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | _ => none + +/-- What `GetDurableExecution` can fail with. -/ +inductive GetDurableExecutionError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- Lambda couldn't decrypt the environment variables because KMS access was denied. -/ + | kmsAccessDeniedException (error : KMSAccessDeniedException) + /-- Lambda couldn't decrypt the environment variables because the KMS key used is disabled. -/ + | kmsDisabledException (error : KMSDisabledException) + /-- Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. -/ + | kmsInvalidStateException (error : KMSInvalidStateException) + /-- Lambda couldn't decrypt the environment variables because the KMS key was not found. -/ + | kmsNotFoundException (error : KMSNotFoundException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetDurableExecutionError.ofWire (name : String) (value : Value) : Option GetDurableExecutionError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "KMSAccessDeniedException" => (Shape.ofValue value).toOption.map .kmsAccessDeniedException + | "KMSDisabledException" => (Shape.ofValue value).toOption.map .kmsDisabledException + | "KMSInvalidStateException" => (Shape.ofValue value).toOption.map .kmsInvalidStateException + | "KMSNotFoundException" => (Shape.ofValue value).toOption.map .kmsNotFoundException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetDurableExecutionHistory` can fail with. -/ +inductive GetDurableExecutionHistoryError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- Lambda couldn't decrypt the environment variables because KMS access was denied. -/ + | kmsAccessDeniedException (error : KMSAccessDeniedException) + /-- Lambda couldn't decrypt the environment variables because the KMS key used is disabled. -/ + | kmsDisabledException (error : KMSDisabledException) + /-- Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. -/ + | kmsInvalidStateException (error : KMSInvalidStateException) + /-- Lambda couldn't decrypt the environment variables because the KMS key was not found. -/ + | kmsNotFoundException (error : KMSNotFoundException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetDurableExecutionHistoryError.ofWire (name : String) (value : Value) : Option GetDurableExecutionHistoryError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "KMSAccessDeniedException" => (Shape.ofValue value).toOption.map .kmsAccessDeniedException + | "KMSDisabledException" => (Shape.ofValue value).toOption.map .kmsDisabledException + | "KMSInvalidStateException" => (Shape.ofValue value).toOption.map .kmsInvalidStateException + | "KMSNotFoundException" => (Shape.ofValue value).toOption.map .kmsNotFoundException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetDurableExecutionState` can fail with. -/ +inductive GetDurableExecutionStateError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- Lambda couldn't decrypt the environment variables because KMS access was denied. -/ + | kmsAccessDeniedException (error : KMSAccessDeniedException) + /-- Lambda couldn't decrypt the environment variables because the KMS key used is disabled. -/ + | kmsDisabledException (error : KMSDisabledException) + /-- Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. -/ + | kmsInvalidStateException (error : KMSInvalidStateException) + /-- Lambda couldn't decrypt the environment variables because the KMS key was not found. -/ + | kmsNotFoundException (error : KMSNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetDurableExecutionStateError.ofWire (name : String) (value : Value) : Option GetDurableExecutionStateError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "KMSAccessDeniedException" => (Shape.ofValue value).toOption.map .kmsAccessDeniedException + | "KMSDisabledException" => (Shape.ofValue value).toOption.map .kmsDisabledException + | "KMSInvalidStateException" => (Shape.ofValue value).toOption.map .kmsInvalidStateException + | "KMSNotFoundException" => (Shape.ofValue value).toOption.map .kmsNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetEventSourceMapping` can fail with. -/ +inductive GetEventSourceMappingError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetEventSourceMappingError.ofWire (name : String) (value : Value) : Option GetEventSourceMappingError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetFunction` can fail with. -/ +inductive GetFunctionError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetFunctionError.ofWire (name : String) (value : Value) : Option GetFunctionError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetFunctionCodeSigningConfig` can fail with. -/ +inductive GetFunctionCodeSigningConfigError where + /-- The specified code signing configuration does not exist. -/ + | codeSigningConfigNotFoundException (error : CodeSigningConfigNotFoundException) + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetFunctionCodeSigningConfigError.ofWire (name : String) (value : Value) : Option GetFunctionCodeSigningConfigError := + match name with + | "CodeSigningConfigNotFoundException" => (Shape.ofValue value).toOption.map .codeSigningConfigNotFoundException + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetFunctionConcurrency` can fail with. -/ +inductive GetFunctionConcurrencyError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetFunctionConcurrencyError.ofWire (name : String) (value : Value) : Option GetFunctionConcurrencyError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetFunctionConfiguration` can fail with. -/ +inductive GetFunctionConfigurationError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetFunctionConfigurationError.ofWire (name : String) (value : Value) : Option GetFunctionConfigurationError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetFunctionEventInvokeConfig` can fail with. -/ +inductive GetFunctionEventInvokeConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetFunctionEventInvokeConfigError.ofWire (name : String) (value : Value) : Option GetFunctionEventInvokeConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetFunctionRecursionConfig` can fail with. -/ +inductive GetFunctionRecursionConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetFunctionRecursionConfigError.ofWire (name : String) (value : Value) : Option GetFunctionRecursionConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetFunctionScalingConfig` can fail with. -/ +inductive GetFunctionScalingConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetFunctionScalingConfigError.ofWire (name : String) (value : Value) : Option GetFunctionScalingConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetFunctionUrlConfig` can fail with. -/ +inductive GetFunctionUrlConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetFunctionUrlConfigError.ofWire (name : String) (value : Value) : Option GetFunctionUrlConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetLayerVersion` can fail with. -/ +inductive GetLayerVersionError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetLayerVersionError.ofWire (name : String) (value : Value) : Option GetLayerVersionError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetLayerVersionByArn` can fail with. -/ +inductive GetLayerVersionByArnError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetLayerVersionByArnError.ofWire (name : String) (value : Value) : Option GetLayerVersionByArnError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetLayerVersionPolicy` can fail with. -/ +inductive GetLayerVersionPolicyError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetLayerVersionPolicyError.ofWire (name : String) (value : Value) : Option GetLayerVersionPolicyError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetPolicy` can fail with. -/ +inductive GetPolicyError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetPolicyError.ofWire (name : String) (value : Value) : Option GetPolicyError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetProvisionedConcurrencyConfig` can fail with. -/ +inductive GetProvisionedConcurrencyConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The specified configuration does not exist. -/ + | provisionedConcurrencyConfigNotFoundException (error : ProvisionedConcurrencyConfigNotFoundException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetProvisionedConcurrencyConfigError.ofWire (name : String) (value : Value) : Option GetProvisionedConcurrencyConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ProvisionedConcurrencyConfigNotFoundException" => (Shape.ofValue value).toOption.map .provisionedConcurrencyConfigNotFoundException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetResourcePolicy` can fail with. -/ +inductive GetResourcePolicyError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetResourcePolicyError.ofWire (name : String) (value : Value) : Option GetResourcePolicyError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `GetRuntimeManagementConfig` can fail with. -/ +inductive GetRuntimeManagementConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def GetRuntimeManagementConfigError.ofWire (name : String) (value : Value) : Option GetRuntimeManagementConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `Invoke` can fail with. -/ +inductive InvokeError where + /-- The Lambda function couldn't be invoked because its code artifact user has been deleted. -/ + | codeArtifactUserDeletedException (error : CodeArtifactUserDeletedException) + /-- The Lambda function couldn't be invoked because provisioning of its code artifact user failed. -/ + | codeArtifactUserFailedException (error : CodeArtifactUserFailedException) + /-- The Lambda function couldn't be invoked because its code artifact user is still being provisioned. -/ + | codeArtifactUserPendingException (error : CodeArtifactUserPendingException) + /-- The durable execution with the specified name has already been started. -/ + | durableExecutionAlreadyStartedException (error : DurableExecutionAlreadyStartedException) + /-- Need additional permissions to configure VPC settings. -/ + | ec2AccessDeniedException (error : EC2AccessDeniedException) + /-- Amazon EC2 throttled Lambda during Lambda function initialization using the execution role provided for the function. -/ + | ec2ThrottledException (error : EC2ThrottledException) + /-- Lambda received an unexpected Amazon EC2 client exception while setting up for the Lambda function. -/ + | ec2UnexpectedException (error : EC2UnexpectedException) + /-- An error occurred when reading from or writing to a connected file system. -/ + | efsioException (error : EFSIOException) + /-- The Lambda function couldn't make a network connection to the configured file system. -/ + | efsMountConnectivityException (error : EFSMountConnectivityException) + /-- The Lambda function couldn't mount the configured file system due to a permission or configuration issue. -/ + | efsMountFailureException (error : EFSMountFailureException) + /-- The Lambda function made a network connection to the configured file system, but the mount operation timed out. -/ + | efsMountTimeoutException (error : EFSMountTimeoutException) + /-- Lambda couldn't create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached. -/ + | eniLimitReachedException (error : ENILimitReachedException) + /-- Lambda couldn't invoke the Lambda function because the elastic network interface (ENI) configured for its VPC connection isn't ready yet. -/ + | eniNotReadyException (error : ENINotReadyException) + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The request body could not be parsed as JSON, or a request header is invalid. -/ + | invalidRequestContentException (error : InvalidRequestContentException) + /-- The runtime or runtime version specified is not supported. -/ + | invalidRuntimeException (error : InvalidRuntimeException) + /-- The security group ID provided in the Lambda function VPC configuration is not valid. -/ + | invalidSecurityGroupIDException (error : InvalidSecurityGroupIDException) + /-- The subnet ID provided in the Lambda function VPC configuration is not valid. -/ + | invalidSubnetIDException (error : InvalidSubnetIDException) + /-- Lambda could not unzip the deployment package. -/ + | invalidZipFileException (error : InvalidZipFileException) + /-- Lambda couldn't decrypt the environment variables because KMS access was denied. -/ + | kmsAccessDeniedException (error : KMSAccessDeniedException) + /-- Lambda couldn't decrypt the environment variables because the KMS key used is disabled. -/ + | kmsDisabledException (error : KMSDisabledException) + /-- Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. -/ + | kmsInvalidStateException (error : KMSInvalidStateException) + /-- Lambda couldn't decrypt the environment variables because the KMS key was not found. -/ + | kmsNotFoundException (error : KMSNotFoundException) + /-- The Lambda function doesn't support the invocation mode requested. -/ + | modeNotSupportedException (error : ModeNotSupportedException) + /-- The function has no published versions available. -/ + | noPublishedVersionException (error : NoPublishedVersionException) + /-- Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation. -/ + | recursiveInvocationException (error : RecursiveInvocationException) + /-- The request payload exceeded the Invoke request body JSON input quota. -/ + | requestTooLargeException (error : RequestTooLargeException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The function is inactive and its VPC connection is no longer available. -/ + | resourceNotReadyException (error : ResourceNotReadyException) + /-- The runtime alias for your function is no longer available. -/ + | runtimeAliasDeletedException (error : RuntimeAliasDeletedException) + /-- The runtime version used by your function is no longer available. -/ + | runtimeVersionDeletedException (error : RuntimeVersionDeletedException) + /-- The Lambda function couldn't make a network connection to the configured S3 Files access point. -/ + | s3FilesMountConnectivityException (error : S3FilesMountConnectivityException) + /-- The Lambda function couldn't mount the configured S3 Files access point due to a permission or configuration issue. -/ + | s3FilesMountFailureException (error : S3FilesMountFailureException) + /-- The Lambda function made a network connection to the configured S3 Files access point, but the mount operation timed out. -/ + | s3FilesMountTimeoutException (error : S3FilesMountTimeoutException) + /-- The request payload exceeded the maximum allowed size for serialized request entities. -/ + | serializedRequestEntityTooLargeException (error : SerializedRequestEntityTooLargeException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request would exceed a service quota. -/ + | serviceQuotaExceededException (error : ServiceQuotaExceededException) + /-- The afterRestore() runtime hook encountered an error. -/ + | snapStartException (error : SnapStartException) + /-- Lambda is initializing your function. -/ + | snapStartNotReadyException (error : SnapStartNotReadyException) + /-- Lambda couldn't regenerate the SnapStart snapshot for the function. -/ + | snapStartRegenerationFailureException (error : SnapStartRegenerationFailureException) + /-- Lambda couldn't restore the snapshot within the timeout limit. -/ + | snapStartTimeoutException (error : SnapStartTimeoutException) + /-- Lambda couldn't set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses. -/ + | subnetIPAddressLimitReachedException (error : SubnetIPAddressLimitReachedException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) + /-- The content type of the Invoke request body is not JSON. -/ + | unsupportedMediaTypeException (error : UnsupportedMediaTypeException) +deriving DecidableEq, Repr + +def InvokeError.ofWire (name : String) (value : Value) : Option InvokeError := + match name with + | "CodeArtifactUserDeletedException" => (Shape.ofValue value).toOption.map .codeArtifactUserDeletedException + | "CodeArtifactUserFailedException" => (Shape.ofValue value).toOption.map .codeArtifactUserFailedException + | "CodeArtifactUserPendingException" => (Shape.ofValue value).toOption.map .codeArtifactUserPendingException + | "DurableExecutionAlreadyStartedException" => (Shape.ofValue value).toOption.map .durableExecutionAlreadyStartedException + | "EC2AccessDeniedException" => (Shape.ofValue value).toOption.map .ec2AccessDeniedException + | "EC2ThrottledException" => (Shape.ofValue value).toOption.map .ec2ThrottledException + | "EC2UnexpectedException" => (Shape.ofValue value).toOption.map .ec2UnexpectedException + | "EFSIOException" => (Shape.ofValue value).toOption.map .efsioException + | "EFSMountConnectivityException" => (Shape.ofValue value).toOption.map .efsMountConnectivityException + | "EFSMountFailureException" => (Shape.ofValue value).toOption.map .efsMountFailureException + | "EFSMountTimeoutException" => (Shape.ofValue value).toOption.map .efsMountTimeoutException + | "ENILimitReachedException" => (Shape.ofValue value).toOption.map .eniLimitReachedException + | "ENINotReadyException" => (Shape.ofValue value).toOption.map .eniNotReadyException + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "InvalidRequestContentException" => (Shape.ofValue value).toOption.map .invalidRequestContentException + | "InvalidRuntimeException" => (Shape.ofValue value).toOption.map .invalidRuntimeException + | "InvalidSecurityGroupIDException" => (Shape.ofValue value).toOption.map .invalidSecurityGroupIDException + | "InvalidSubnetIDException" => (Shape.ofValue value).toOption.map .invalidSubnetIDException + | "InvalidZipFileException" => (Shape.ofValue value).toOption.map .invalidZipFileException + | "KMSAccessDeniedException" => (Shape.ofValue value).toOption.map .kmsAccessDeniedException + | "KMSDisabledException" => (Shape.ofValue value).toOption.map .kmsDisabledException + | "KMSInvalidStateException" => (Shape.ofValue value).toOption.map .kmsInvalidStateException + | "KMSNotFoundException" => (Shape.ofValue value).toOption.map .kmsNotFoundException + | "ModeNotSupportedException" => (Shape.ofValue value).toOption.map .modeNotSupportedException + | "NoPublishedVersionException" => (Shape.ofValue value).toOption.map .noPublishedVersionException + | "RecursiveInvocationException" => (Shape.ofValue value).toOption.map .recursiveInvocationException + | "RequestTooLargeException" => (Shape.ofValue value).toOption.map .requestTooLargeException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ResourceNotReadyException" => (Shape.ofValue value).toOption.map .resourceNotReadyException + | "RuntimeAliasDeletedException" => (Shape.ofValue value).toOption.map .runtimeAliasDeletedException + | "RuntimeVersionDeletedException" => (Shape.ofValue value).toOption.map .runtimeVersionDeletedException + | "S3FilesMountConnectivityException" => (Shape.ofValue value).toOption.map .s3FilesMountConnectivityException + | "S3FilesMountFailureException" => (Shape.ofValue value).toOption.map .s3FilesMountFailureException + | "S3FilesMountTimeoutException" => (Shape.ofValue value).toOption.map .s3FilesMountTimeoutException + | "SerializedRequestEntityTooLargeException" => (Shape.ofValue value).toOption.map .serializedRequestEntityTooLargeException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "ServiceQuotaExceededException" => (Shape.ofValue value).toOption.map .serviceQuotaExceededException + | "SnapStartException" => (Shape.ofValue value).toOption.map .snapStartException + | "SnapStartNotReadyException" => (Shape.ofValue value).toOption.map .snapStartNotReadyException + | "SnapStartRegenerationFailureException" => (Shape.ofValue value).toOption.map .snapStartRegenerationFailureException + | "SnapStartTimeoutException" => (Shape.ofValue value).toOption.map .snapStartTimeoutException + | "SubnetIPAddressLimitReachedException" => (Shape.ofValue value).toOption.map .subnetIPAddressLimitReachedException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | "UnsupportedMediaTypeException" => (Shape.ofValue value).toOption.map .unsupportedMediaTypeException + | _ => none + +/-- What `InvokeAsync` can fail with. -/ +inductive InvokeAsyncError where + /-- Need additional permissions to configure VPC settings. -/ + | ec2AccessDeniedException (error : EC2AccessDeniedException) + /-- Amazon EC2 throttled Lambda during Lambda function initialization using the execution role provided for the function. -/ + | ec2ThrottledException (error : EC2ThrottledException) + /-- Lambda received an unexpected Amazon EC2 client exception while setting up for the Lambda function. -/ + | ec2UnexpectedException (error : EC2UnexpectedException) + /-- An error occurred when reading from or writing to a connected file system. -/ + | efsioException (error : EFSIOException) + /-- The Lambda function couldn't make a network connection to the configured file system. -/ + | efsMountConnectivityException (error : EFSMountConnectivityException) + /-- The Lambda function couldn't mount the configured file system due to a permission or configuration issue. -/ + | efsMountFailureException (error : EFSMountFailureException) + /-- The Lambda function made a network connection to the configured file system, but the mount operation timed out. -/ + | efsMountTimeoutException (error : EFSMountTimeoutException) + /-- Lambda couldn't create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached. -/ + | eniLimitReachedException (error : ENILimitReachedException) + /-- The request body could not be parsed as JSON, or a request header is invalid. -/ + | invalidRequestContentException (error : InvalidRequestContentException) + /-- The runtime or runtime version specified is not supported. -/ + | invalidRuntimeException (error : InvalidRuntimeException) + /-- The security group ID provided in the Lambda function VPC configuration is not valid. -/ + | invalidSecurityGroupIDException (error : InvalidSecurityGroupIDException) + /-- The subnet ID provided in the Lambda function VPC configuration is not valid. -/ + | invalidSubnetIDException (error : InvalidSubnetIDException) + /-- Lambda couldn't decrypt the environment variables because KMS access was denied. -/ + | kmsAccessDeniedException (error : KMSAccessDeniedException) + /-- Lambda couldn't decrypt the environment variables because the KMS key used is disabled. -/ + | kmsDisabledException (error : KMSDisabledException) + /-- Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. -/ + | kmsInvalidStateException (error : KMSInvalidStateException) + /-- Lambda couldn't decrypt the environment variables because the KMS key was not found. -/ + | kmsNotFoundException (error : KMSNotFoundException) + /-- The Lambda function doesn't support the invocation mode requested. -/ + | modeNotSupportedException (error : ModeNotSupportedException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda function couldn't make a network connection to the configured S3 Files access point. -/ + | s3FilesMountConnectivityException (error : S3FilesMountConnectivityException) + /-- The Lambda function couldn't mount the configured S3 Files access point due to a permission or configuration issue. -/ + | s3FilesMountFailureException (error : S3FilesMountFailureException) + /-- The Lambda function made a network connection to the configured S3 Files access point, but the mount operation timed out. -/ + | s3FilesMountTimeoutException (error : S3FilesMountTimeoutException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request would exceed a service quota. -/ + | serviceQuotaExceededException (error : ServiceQuotaExceededException) + /-- The afterRestore() runtime hook encountered an error. -/ + | snapStartException (error : SnapStartException) + /-- Lambda is initializing your function. -/ + | snapStartNotReadyException (error : SnapStartNotReadyException) + /-- Lambda couldn't regenerate the SnapStart snapshot for the function. -/ + | snapStartRegenerationFailureException (error : SnapStartRegenerationFailureException) + /-- Lambda couldn't restore the snapshot within the timeout limit. -/ + | snapStartTimeoutException (error : SnapStartTimeoutException) + /-- Lambda couldn't set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses. -/ + | subnetIPAddressLimitReachedException (error : SubnetIPAddressLimitReachedException) +deriving DecidableEq, Repr + +def InvokeAsyncError.ofWire (name : String) (value : Value) : Option InvokeAsyncError := + match name with + | "EC2AccessDeniedException" => (Shape.ofValue value).toOption.map .ec2AccessDeniedException + | "EC2ThrottledException" => (Shape.ofValue value).toOption.map .ec2ThrottledException + | "EC2UnexpectedException" => (Shape.ofValue value).toOption.map .ec2UnexpectedException + | "EFSIOException" => (Shape.ofValue value).toOption.map .efsioException + | "EFSMountConnectivityException" => (Shape.ofValue value).toOption.map .efsMountConnectivityException + | "EFSMountFailureException" => (Shape.ofValue value).toOption.map .efsMountFailureException + | "EFSMountTimeoutException" => (Shape.ofValue value).toOption.map .efsMountTimeoutException + | "ENILimitReachedException" => (Shape.ofValue value).toOption.map .eniLimitReachedException + | "InvalidRequestContentException" => (Shape.ofValue value).toOption.map .invalidRequestContentException + | "InvalidRuntimeException" => (Shape.ofValue value).toOption.map .invalidRuntimeException + | "InvalidSecurityGroupIDException" => (Shape.ofValue value).toOption.map .invalidSecurityGroupIDException + | "InvalidSubnetIDException" => (Shape.ofValue value).toOption.map .invalidSubnetIDException + | "KMSAccessDeniedException" => (Shape.ofValue value).toOption.map .kmsAccessDeniedException + | "KMSDisabledException" => (Shape.ofValue value).toOption.map .kmsDisabledException + | "KMSInvalidStateException" => (Shape.ofValue value).toOption.map .kmsInvalidStateException + | "KMSNotFoundException" => (Shape.ofValue value).toOption.map .kmsNotFoundException + | "ModeNotSupportedException" => (Shape.ofValue value).toOption.map .modeNotSupportedException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "S3FilesMountConnectivityException" => (Shape.ofValue value).toOption.map .s3FilesMountConnectivityException + | "S3FilesMountFailureException" => (Shape.ofValue value).toOption.map .s3FilesMountFailureException + | "S3FilesMountTimeoutException" => (Shape.ofValue value).toOption.map .s3FilesMountTimeoutException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "ServiceQuotaExceededException" => (Shape.ofValue value).toOption.map .serviceQuotaExceededException + | "SnapStartException" => (Shape.ofValue value).toOption.map .snapStartException + | "SnapStartNotReadyException" => (Shape.ofValue value).toOption.map .snapStartNotReadyException + | "SnapStartRegenerationFailureException" => (Shape.ofValue value).toOption.map .snapStartRegenerationFailureException + | "SnapStartTimeoutException" => (Shape.ofValue value).toOption.map .snapStartTimeoutException + | "SubnetIPAddressLimitReachedException" => (Shape.ofValue value).toOption.map .subnetIPAddressLimitReachedException + | _ => none + +/-- What `InvokeWithResponseStream` can fail with. -/ +inductive InvokeWithResponseStreamError where + /-- The Lambda function couldn't be invoked because its code artifact user has been deleted. -/ + | codeArtifactUserDeletedException (error : CodeArtifactUserDeletedException) + /-- The Lambda function couldn't be invoked because provisioning of its code artifact user failed. -/ + | codeArtifactUserFailedException (error : CodeArtifactUserFailedException) + /-- The Lambda function couldn't be invoked because its code artifact user is still being provisioned. -/ + | codeArtifactUserPendingException (error : CodeArtifactUserPendingException) + /-- Need additional permissions to configure VPC settings. -/ + | ec2AccessDeniedException (error : EC2AccessDeniedException) + /-- Amazon EC2 throttled Lambda during Lambda function initialization using the execution role provided for the function. -/ + | ec2ThrottledException (error : EC2ThrottledException) + /-- Lambda received an unexpected Amazon EC2 client exception while setting up for the Lambda function. -/ + | ec2UnexpectedException (error : EC2UnexpectedException) + /-- An error occurred when reading from or writing to a connected file system. -/ + | efsioException (error : EFSIOException) + /-- The Lambda function couldn't make a network connection to the configured file system. -/ + | efsMountConnectivityException (error : EFSMountConnectivityException) + /-- The Lambda function couldn't mount the configured file system due to a permission or configuration issue. -/ + | efsMountFailureException (error : EFSMountFailureException) + /-- The Lambda function made a network connection to the configured file system, but the mount operation timed out. -/ + | efsMountTimeoutException (error : EFSMountTimeoutException) + /-- Lambda couldn't create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached. -/ + | eniLimitReachedException (error : ENILimitReachedException) + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The request body could not be parsed as JSON, or a request header is invalid. -/ + | invalidRequestContentException (error : InvalidRequestContentException) + /-- The runtime or runtime version specified is not supported. -/ + | invalidRuntimeException (error : InvalidRuntimeException) + /-- The security group ID provided in the Lambda function VPC configuration is not valid. -/ + | invalidSecurityGroupIDException (error : InvalidSecurityGroupIDException) + /-- The subnet ID provided in the Lambda function VPC configuration is not valid. -/ + | invalidSubnetIDException (error : InvalidSubnetIDException) + /-- Lambda could not unzip the deployment package. -/ + | invalidZipFileException (error : InvalidZipFileException) + /-- Lambda couldn't decrypt the environment variables because KMS access was denied. -/ + | kmsAccessDeniedException (error : KMSAccessDeniedException) + /-- Lambda couldn't decrypt the environment variables because the KMS key used is disabled. -/ + | kmsDisabledException (error : KMSDisabledException) + /-- Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. -/ + | kmsInvalidStateException (error : KMSInvalidStateException) + /-- Lambda couldn't decrypt the environment variables because the KMS key was not found. -/ + | kmsNotFoundException (error : KMSNotFoundException) + /-- The function has no published versions available. -/ + | noPublishedVersionException (error : NoPublishedVersionException) + /-- Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation. -/ + | recursiveInvocationException (error : RecursiveInvocationException) + /-- The request payload exceeded the Invoke request body JSON input quota. -/ + | requestTooLargeException (error : RequestTooLargeException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The function is inactive and its VPC connection is no longer available. -/ + | resourceNotReadyException (error : ResourceNotReadyException) + /-- The runtime alias for your function is no longer available. -/ + | runtimeAliasDeletedException (error : RuntimeAliasDeletedException) + /-- The runtime version used by your function is no longer available. -/ + | runtimeVersionDeletedException (error : RuntimeVersionDeletedException) + /-- The Lambda function couldn't make a network connection to the configured S3 Files access point. -/ + | s3FilesMountConnectivityException (error : S3FilesMountConnectivityException) + /-- The Lambda function couldn't mount the configured S3 Files access point due to a permission or configuration issue. -/ + | s3FilesMountFailureException (error : S3FilesMountFailureException) + /-- The Lambda function made a network connection to the configured S3 Files access point, but the mount operation timed out. -/ + | s3FilesMountTimeoutException (error : S3FilesMountTimeoutException) + /-- The request payload exceeded the maximum allowed size for serialized request entities. -/ + | serializedRequestEntityTooLargeException (error : SerializedRequestEntityTooLargeException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request would exceed a service quota. -/ + | serviceQuotaExceededException (error : ServiceQuotaExceededException) + /-- The afterRestore() runtime hook encountered an error. -/ + | snapStartException (error : SnapStartException) + /-- Lambda is initializing your function. -/ + | snapStartNotReadyException (error : SnapStartNotReadyException) + /-- Lambda couldn't regenerate the SnapStart snapshot for the function. -/ + | snapStartRegenerationFailureException (error : SnapStartRegenerationFailureException) + /-- Lambda couldn't restore the snapshot within the timeout limit. -/ + | snapStartTimeoutException (error : SnapStartTimeoutException) + /-- Lambda couldn't set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses. -/ + | subnetIPAddressLimitReachedException (error : SubnetIPAddressLimitReachedException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) + /-- The content type of the Invoke request body is not JSON. -/ + | unsupportedMediaTypeException (error : UnsupportedMediaTypeException) +deriving DecidableEq, Repr + +def InvokeWithResponseStreamError.ofWire (name : String) (value : Value) : Option InvokeWithResponseStreamError := + match name with + | "CodeArtifactUserDeletedException" => (Shape.ofValue value).toOption.map .codeArtifactUserDeletedException + | "CodeArtifactUserFailedException" => (Shape.ofValue value).toOption.map .codeArtifactUserFailedException + | "CodeArtifactUserPendingException" => (Shape.ofValue value).toOption.map .codeArtifactUserPendingException + | "EC2AccessDeniedException" => (Shape.ofValue value).toOption.map .ec2AccessDeniedException + | "EC2ThrottledException" => (Shape.ofValue value).toOption.map .ec2ThrottledException + | "EC2UnexpectedException" => (Shape.ofValue value).toOption.map .ec2UnexpectedException + | "EFSIOException" => (Shape.ofValue value).toOption.map .efsioException + | "EFSMountConnectivityException" => (Shape.ofValue value).toOption.map .efsMountConnectivityException + | "EFSMountFailureException" => (Shape.ofValue value).toOption.map .efsMountFailureException + | "EFSMountTimeoutException" => (Shape.ofValue value).toOption.map .efsMountTimeoutException + | "ENILimitReachedException" => (Shape.ofValue value).toOption.map .eniLimitReachedException + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "InvalidRequestContentException" => (Shape.ofValue value).toOption.map .invalidRequestContentException + | "InvalidRuntimeException" => (Shape.ofValue value).toOption.map .invalidRuntimeException + | "InvalidSecurityGroupIDException" => (Shape.ofValue value).toOption.map .invalidSecurityGroupIDException + | "InvalidSubnetIDException" => (Shape.ofValue value).toOption.map .invalidSubnetIDException + | "InvalidZipFileException" => (Shape.ofValue value).toOption.map .invalidZipFileException + | "KMSAccessDeniedException" => (Shape.ofValue value).toOption.map .kmsAccessDeniedException + | "KMSDisabledException" => (Shape.ofValue value).toOption.map .kmsDisabledException + | "KMSInvalidStateException" => (Shape.ofValue value).toOption.map .kmsInvalidStateException + | "KMSNotFoundException" => (Shape.ofValue value).toOption.map .kmsNotFoundException + | "NoPublishedVersionException" => (Shape.ofValue value).toOption.map .noPublishedVersionException + | "RecursiveInvocationException" => (Shape.ofValue value).toOption.map .recursiveInvocationException + | "RequestTooLargeException" => (Shape.ofValue value).toOption.map .requestTooLargeException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ResourceNotReadyException" => (Shape.ofValue value).toOption.map .resourceNotReadyException + | "RuntimeAliasDeletedException" => (Shape.ofValue value).toOption.map .runtimeAliasDeletedException + | "RuntimeVersionDeletedException" => (Shape.ofValue value).toOption.map .runtimeVersionDeletedException + | "S3FilesMountConnectivityException" => (Shape.ofValue value).toOption.map .s3FilesMountConnectivityException + | "S3FilesMountFailureException" => (Shape.ofValue value).toOption.map .s3FilesMountFailureException + | "S3FilesMountTimeoutException" => (Shape.ofValue value).toOption.map .s3FilesMountTimeoutException + | "SerializedRequestEntityTooLargeException" => (Shape.ofValue value).toOption.map .serializedRequestEntityTooLargeException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "ServiceQuotaExceededException" => (Shape.ofValue value).toOption.map .serviceQuotaExceededException + | "SnapStartException" => (Shape.ofValue value).toOption.map .snapStartException + | "SnapStartNotReadyException" => (Shape.ofValue value).toOption.map .snapStartNotReadyException + | "SnapStartRegenerationFailureException" => (Shape.ofValue value).toOption.map .snapStartRegenerationFailureException + | "SnapStartTimeoutException" => (Shape.ofValue value).toOption.map .snapStartTimeoutException + | "SubnetIPAddressLimitReachedException" => (Shape.ofValue value).toOption.map .subnetIPAddressLimitReachedException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | "UnsupportedMediaTypeException" => (Shape.ofValue value).toOption.map .unsupportedMediaTypeException + | _ => none + +/-- What `ListAliases` can fail with. -/ +inductive ListAliasesError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def ListAliasesError.ofWire (name : String) (value : Value) : Option ListAliasesError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `ListCapacityProviders` can fail with. -/ +inductive ListCapacityProvidersError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def ListCapacityProvidersError.ofWire (name : String) (value : Value) : Option ListCapacityProvidersError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `ListCodeSigningConfigs` can fail with. -/ +inductive ListCodeSigningConfigsError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) +deriving DecidableEq, Repr + +def ListCodeSigningConfigsError.ofWire (name : String) (value : Value) : Option ListCodeSigningConfigsError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | _ => none + +/-- What `ListDurableExecutionsByFunction` can fail with. -/ +inductive ListDurableExecutionsByFunctionError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def ListDurableExecutionsByFunctionError.ofWire (name : String) (value : Value) : Option ListDurableExecutionsByFunctionError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `ListEventSourceMappings` can fail with. -/ +inductive ListEventSourceMappingsError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def ListEventSourceMappingsError.ofWire (name : String) (value : Value) : Option ListEventSourceMappingsError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `ListFunctionEventInvokeConfigs` can fail with. -/ +inductive ListFunctionEventInvokeConfigsError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def ListFunctionEventInvokeConfigsError.ofWire (name : String) (value : Value) : Option ListFunctionEventInvokeConfigsError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `ListFunctionUrlConfigs` can fail with. -/ +inductive ListFunctionUrlConfigsError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def ListFunctionUrlConfigsError.ofWire (name : String) (value : Value) : Option ListFunctionUrlConfigsError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `ListFunctionVersionsByCapacityProvider` can fail with. -/ +inductive ListFunctionVersionsByCapacityProviderError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def ListFunctionVersionsByCapacityProviderError.ofWire (name : String) (value : Value) : Option ListFunctionVersionsByCapacityProviderError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `ListFunctions` can fail with. -/ +inductive ListFunctionsError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def ListFunctionsError.ofWire (name : String) (value : Value) : Option ListFunctionsError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `ListFunctionsByCodeSigningConfig` can fail with. -/ +inductive ListFunctionsByCodeSigningConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) +deriving DecidableEq, Repr + +def ListFunctionsByCodeSigningConfigError.ofWire (name : String) (value : Value) : Option ListFunctionsByCodeSigningConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | _ => none + +/-- What `ListLayerVersions` can fail with. -/ +inductive ListLayerVersionsError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def ListLayerVersionsError.ofWire (name : String) (value : Value) : Option ListLayerVersionsError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `ListLayers` can fail with. -/ +inductive ListLayersError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def ListLayersError.ofWire (name : String) (value : Value) : Option ListLayersError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `ListProvisionedConcurrencyConfigs` can fail with. -/ +inductive ListProvisionedConcurrencyConfigsError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def ListProvisionedConcurrencyConfigsError.ofWire (name : String) (value : Value) : Option ListProvisionedConcurrencyConfigsError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `ListTags` can fail with. -/ +inductive ListTagsError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def ListTagsError.ofWire (name : String) (value : Value) : Option ListTagsError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `ListVersionsByFunction` can fail with. -/ +inductive ListVersionsByFunctionError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def ListVersionsByFunctionError.ofWire (name : String) (value : Value) : Option ListVersionsByFunctionError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `PauseDurableExecution` can fail with. -/ +inductive PauseDurableExecutionError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- Lambda couldn't decrypt the environment variables because KMS access was denied. -/ + | kmsAccessDeniedException (error : KMSAccessDeniedException) + /-- Lambda couldn't decrypt the environment variables because the KMS key used is disabled. -/ + | kmsDisabledException (error : KMSDisabledException) + /-- Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. -/ + | kmsInvalidStateException (error : KMSInvalidStateException) + /-- Lambda couldn't decrypt the environment variables because the KMS key was not found. -/ + | kmsNotFoundException (error : KMSNotFoundException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def PauseDurableExecutionError.ofWire (name : String) (value : Value) : Option PauseDurableExecutionError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "KMSAccessDeniedException" => (Shape.ofValue value).toOption.map .kmsAccessDeniedException + | "KMSDisabledException" => (Shape.ofValue value).toOption.map .kmsDisabledException + | "KMSInvalidStateException" => (Shape.ofValue value).toOption.map .kmsInvalidStateException + | "KMSNotFoundException" => (Shape.ofValue value).toOption.map .kmsNotFoundException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `PublishLayerVersion` can fail with. -/ +inductive PublishLayerVersionError where + /-- Your Amazon Web Services account has exceeded its maximum total code size. -/ + | codeStorageExceededException (error : CodeStorageExceededException) + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def PublishLayerVersionError.ofWire (name : String) (value : Value) : Option PublishLayerVersionError := + match name with + | "CodeStorageExceededException" => (Shape.ofValue value).toOption.map .codeStorageExceededException + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `PublishVersion` can fail with. -/ +inductive PublishVersionError where + /-- Your Amazon Web Services account has exceeded its maximum total code size. -/ + | codeStorageExceededException (error : CodeStorageExceededException) + /-- The maximum number of function versions that can be associated with a single capacity provider has been exceeded. -/ + | functionVersionsPerCapacityProviderLimitExceededException (error : FunctionVersionsPerCapacityProviderLimitExceededException) + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. -/ + | preconditionFailedException (error : PreconditionFailedException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def PublishVersionError.ofWire (name : String) (value : Value) : Option PublishVersionError := + match name with + | "CodeStorageExceededException" => (Shape.ofValue value).toOption.map .codeStorageExceededException + | "FunctionVersionsPerCapacityProviderLimitExceededException" => (Shape.ofValue value).toOption.map .functionVersionsPerCapacityProviderLimitExceededException + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "PreconditionFailedException" => (Shape.ofValue value).toOption.map .preconditionFailedException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `PutFunctionCodeSigningConfig` can fail with. -/ +inductive PutFunctionCodeSigningConfigError where + /-- The specified code signing configuration does not exist. -/ + | codeSigningConfigNotFoundException (error : CodeSigningConfigNotFoundException) + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def PutFunctionCodeSigningConfigError.ofWire (name : String) (value : Value) : Option PutFunctionCodeSigningConfigError := + match name with + | "CodeSigningConfigNotFoundException" => (Shape.ofValue value).toOption.map .codeSigningConfigNotFoundException + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `PutFunctionConcurrency` can fail with. -/ +inductive PutFunctionConcurrencyError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def PutFunctionConcurrencyError.ofWire (name : String) (value : Value) : Option PutFunctionConcurrencyError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `PutFunctionEventInvokeConfig` can fail with. -/ +inductive PutFunctionEventInvokeConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def PutFunctionEventInvokeConfigError.ofWire (name : String) (value : Value) : Option PutFunctionEventInvokeConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `PutFunctionRecursionConfig` can fail with. -/ +inductive PutFunctionRecursionConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def PutFunctionRecursionConfigError.ofWire (name : String) (value : Value) : Option PutFunctionRecursionConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `PutFunctionScalingConfig` can fail with. -/ +inductive PutFunctionScalingConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def PutFunctionScalingConfigError.ofWire (name : String) (value : Value) : Option PutFunctionScalingConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `PutProvisionedConcurrencyConfig` can fail with. -/ +inductive PutProvisionedConcurrencyConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def PutProvisionedConcurrencyConfigError.ofWire (name : String) (value : Value) : Option PutProvisionedConcurrencyConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `PutResourcePolicy` can fail with. -/ +inductive PutResourcePolicyError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The permissions policy for the resource is too large. -/ + | policyLengthExceededException (error : PolicyLengthExceededException) + /-- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. -/ + | preconditionFailedException (error : PreconditionFailedException) + /-- The resource-based policy you tried to add to the Lambda resource would grant public access to it, which isn't allowed. -/ + | publicPolicyException (error : PublicPolicyException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def PutResourcePolicyError.ofWire (name : String) (value : Value) : Option PutResourcePolicyError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "PolicyLengthExceededException" => (Shape.ofValue value).toOption.map .policyLengthExceededException + | "PreconditionFailedException" => (Shape.ofValue value).toOption.map .preconditionFailedException + | "PublicPolicyException" => (Shape.ofValue value).toOption.map .publicPolicyException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `PutRuntimeManagementConfig` can fail with. -/ +inductive PutRuntimeManagementConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def PutRuntimeManagementConfigError.ofWire (name : String) (value : Value) : Option PutRuntimeManagementConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `RemoveLayerVersionPermission` can fail with. -/ +inductive RemoveLayerVersionPermissionError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. -/ + | preconditionFailedException (error : PreconditionFailedException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def RemoveLayerVersionPermissionError.ofWire (name : String) (value : Value) : Option RemoveLayerVersionPermissionError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "PreconditionFailedException" => (Shape.ofValue value).toOption.map .preconditionFailedException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `RemovePermission` can fail with. -/ +inductive RemovePermissionError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. -/ + | preconditionFailedException (error : PreconditionFailedException) + /-- The resource-based policy you tried to add to the Lambda resource would grant public access to it, which isn't allowed. -/ + | publicPolicyException (error : PublicPolicyException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def RemovePermissionError.ofWire (name : String) (value : Value) : Option RemovePermissionError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "PreconditionFailedException" => (Shape.ofValue value).toOption.map .preconditionFailedException + | "PublicPolicyException" => (Shape.ofValue value).toOption.map .publicPolicyException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `ResumeDurableExecution` can fail with. -/ +inductive ResumeDurableExecutionError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- Lambda couldn't decrypt the environment variables because KMS access was denied. -/ + | kmsAccessDeniedException (error : KMSAccessDeniedException) + /-- Lambda couldn't decrypt the environment variables because the KMS key used is disabled. -/ + | kmsDisabledException (error : KMSDisabledException) + /-- Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. -/ + | kmsInvalidStateException (error : KMSInvalidStateException) + /-- Lambda couldn't decrypt the environment variables because the KMS key was not found. -/ + | kmsNotFoundException (error : KMSNotFoundException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def ResumeDurableExecutionError.ofWire (name : String) (value : Value) : Option ResumeDurableExecutionError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "KMSAccessDeniedException" => (Shape.ofValue value).toOption.map .kmsAccessDeniedException + | "KMSDisabledException" => (Shape.ofValue value).toOption.map .kmsDisabledException + | "KMSInvalidStateException" => (Shape.ofValue value).toOption.map .kmsInvalidStateException + | "KMSNotFoundException" => (Shape.ofValue value).toOption.map .kmsNotFoundException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `SendDurableExecutionCallbackFailure` can fail with. -/ +inductive SendDurableExecutionCallbackFailureError where + /-- The callback ID token has either expired or the callback associated with the token has already been closed. -/ + | callbackTimeoutException (error : CallbackTimeoutException) + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- Lambda couldn't decrypt the environment variables because KMS access was denied. -/ + | kmsAccessDeniedException (error : KMSAccessDeniedException) + /-- Lambda couldn't decrypt the environment variables because the KMS key used is disabled. -/ + | kmsDisabledException (error : KMSDisabledException) + /-- Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. -/ + | kmsInvalidStateException (error : KMSInvalidStateException) + /-- Lambda couldn't decrypt the environment variables because the KMS key was not found. -/ + | kmsNotFoundException (error : KMSNotFoundException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def SendDurableExecutionCallbackFailureError.ofWire (name : String) (value : Value) : Option SendDurableExecutionCallbackFailureError := + match name with + | "CallbackTimeoutException" => (Shape.ofValue value).toOption.map .callbackTimeoutException + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "KMSAccessDeniedException" => (Shape.ofValue value).toOption.map .kmsAccessDeniedException + | "KMSDisabledException" => (Shape.ofValue value).toOption.map .kmsDisabledException + | "KMSInvalidStateException" => (Shape.ofValue value).toOption.map .kmsInvalidStateException + | "KMSNotFoundException" => (Shape.ofValue value).toOption.map .kmsNotFoundException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `SendDurableExecutionCallbackHeartbeat` can fail with. -/ +inductive SendDurableExecutionCallbackHeartbeatError where + /-- The callback ID token has either expired or the callback associated with the token has already been closed. -/ + | callbackTimeoutException (error : CallbackTimeoutException) + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def SendDurableExecutionCallbackHeartbeatError.ofWire (name : String) (value : Value) : Option SendDurableExecutionCallbackHeartbeatError := + match name with + | "CallbackTimeoutException" => (Shape.ofValue value).toOption.map .callbackTimeoutException + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `SendDurableExecutionCallbackSuccess` can fail with. -/ +inductive SendDurableExecutionCallbackSuccessError where + /-- The callback ID token has either expired or the callback associated with the token has already been closed. -/ + | callbackTimeoutException (error : CallbackTimeoutException) + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- Lambda couldn't decrypt the environment variables because KMS access was denied. -/ + | kmsAccessDeniedException (error : KMSAccessDeniedException) + /-- Lambda couldn't decrypt the environment variables because the KMS key used is disabled. -/ + | kmsDisabledException (error : KMSDisabledException) + /-- Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. -/ + | kmsInvalidStateException (error : KMSInvalidStateException) + /-- Lambda couldn't decrypt the environment variables because the KMS key was not found. -/ + | kmsNotFoundException (error : KMSNotFoundException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def SendDurableExecutionCallbackSuccessError.ofWire (name : String) (value : Value) : Option SendDurableExecutionCallbackSuccessError := + match name with + | "CallbackTimeoutException" => (Shape.ofValue value).toOption.map .callbackTimeoutException + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "KMSAccessDeniedException" => (Shape.ofValue value).toOption.map .kmsAccessDeniedException + | "KMSDisabledException" => (Shape.ofValue value).toOption.map .kmsDisabledException + | "KMSInvalidStateException" => (Shape.ofValue value).toOption.map .kmsInvalidStateException + | "KMSNotFoundException" => (Shape.ofValue value).toOption.map .kmsNotFoundException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `StopDurableExecution` can fail with. -/ +inductive StopDurableExecutionError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- Lambda couldn't decrypt the environment variables because KMS access was denied. -/ + | kmsAccessDeniedException (error : KMSAccessDeniedException) + /-- Lambda couldn't decrypt the environment variables because the KMS key used is disabled. -/ + | kmsDisabledException (error : KMSDisabledException) + /-- Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. -/ + | kmsInvalidStateException (error : KMSInvalidStateException) + /-- Lambda couldn't decrypt the environment variables because the KMS key was not found. -/ + | kmsNotFoundException (error : KMSNotFoundException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def StopDurableExecutionError.ofWire (name : String) (value : Value) : Option StopDurableExecutionError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "KMSAccessDeniedException" => (Shape.ofValue value).toOption.map .kmsAccessDeniedException + | "KMSDisabledException" => (Shape.ofValue value).toOption.map .kmsDisabledException + | "KMSInvalidStateException" => (Shape.ofValue value).toOption.map .kmsInvalidStateException + | "KMSNotFoundException" => (Shape.ofValue value).toOption.map .kmsNotFoundException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `TagResource` can fail with. -/ +inductive TagResourceError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def TagResourceError.ofWire (name : String) (value : Value) : Option TagResourceError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `UntagResource` can fail with. -/ +inductive UntagResourceError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def UntagResourceError.ofWire (name : String) (value : Value) : Option UntagResourceError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `UpdateAlias` can fail with. -/ +inductive UpdateAliasError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. -/ + | preconditionFailedException (error : PreconditionFailedException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def UpdateAliasError.ofWire (name : String) (value : Value) : Option UpdateAliasError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "PreconditionFailedException" => (Shape.ofValue value).toOption.map .preconditionFailedException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `UpdateCapacityProvider` can fail with. -/ +inductive UpdateCapacityProviderError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def UpdateCapacityProviderError.ofWire (name : String) (value : Value) : Option UpdateCapacityProviderError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `UpdateCodeSigningConfig` can fail with. -/ +inductive UpdateCodeSigningConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) +deriving DecidableEq, Repr + +def UpdateCodeSigningConfigError.ofWire (name : String) (value : Value) : Option UpdateCodeSigningConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | _ => none + +/-- What `UpdateEventSourceMapping` can fail with. -/ +inductive UpdateEventSourceMappingError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The operation conflicts with the resource's availability. -/ + | resourceInUseException (error : ResourceInUseException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def UpdateEventSourceMappingError.ofWire (name : String) (value : Value) : Option UpdateEventSourceMappingError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceInUseException" => (Shape.ofValue value).toOption.map .resourceInUseException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `UpdateFunctionCode` can fail with. -/ +inductive UpdateFunctionCodeError where + /-- The specified code signing configuration does not exist. -/ + | codeSigningConfigNotFoundException (error : CodeSigningConfigNotFoundException) + /-- Your Amazon Web Services account has exceeded its maximum total code size. -/ + | codeStorageExceededException (error : CodeStorageExceededException) + /-- The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy is set to ENFORCE. -/ + | codeVerificationFailedException (error : CodeVerificationFailedException) + /-- The code signature failed the integrity check. -/ + | invalidCodeSignatureException (error : InvalidCodeSignatureException) + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. -/ + | preconditionFailedException (error : PreconditionFailedException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def UpdateFunctionCodeError.ofWire (name : String) (value : Value) : Option UpdateFunctionCodeError := + match name with + | "CodeSigningConfigNotFoundException" => (Shape.ofValue value).toOption.map .codeSigningConfigNotFoundException + | "CodeStorageExceededException" => (Shape.ofValue value).toOption.map .codeStorageExceededException + | "CodeVerificationFailedException" => (Shape.ofValue value).toOption.map .codeVerificationFailedException + | "InvalidCodeSignatureException" => (Shape.ofValue value).toOption.map .invalidCodeSignatureException + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "PreconditionFailedException" => (Shape.ofValue value).toOption.map .preconditionFailedException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `UpdateFunctionConfiguration` can fail with. -/ +inductive UpdateFunctionConfigurationError where + /-- The specified code signing configuration does not exist. -/ + | codeSigningConfigNotFoundException (error : CodeSigningConfigNotFoundException) + /-- The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy is set to ENFORCE. -/ + | codeVerificationFailedException (error : CodeVerificationFailedException) + /-- The code signature failed the integrity check. -/ + | invalidCodeSignatureException (error : InvalidCodeSignatureException) + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. -/ + | preconditionFailedException (error : PreconditionFailedException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def UpdateFunctionConfigurationError.ofWire (name : String) (value : Value) : Option UpdateFunctionConfigurationError := + match name with + | "CodeSigningConfigNotFoundException" => (Shape.ofValue value).toOption.map .codeSigningConfigNotFoundException + | "CodeVerificationFailedException" => (Shape.ofValue value).toOption.map .codeVerificationFailedException + | "InvalidCodeSignatureException" => (Shape.ofValue value).toOption.map .invalidCodeSignatureException + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "PreconditionFailedException" => (Shape.ofValue value).toOption.map .preconditionFailedException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `UpdateFunctionEventInvokeConfig` can fail with. -/ +inductive UpdateFunctionEventInvokeConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def UpdateFunctionEventInvokeConfigError.ofWire (name : String) (value : Value) : Option UpdateFunctionEventInvokeConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- What `UpdateFunctionUrlConfig` can fail with. -/ +inductive UpdateFunctionUrlConfigError where + /-- One of the parameters in the request is not valid. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The resource already exists, or another operation is in progress. -/ + | resourceConflictException (error : ResourceConflictException) + /-- The resource specified in the request does not exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The Lambda service encountered an internal error. -/ + | serviceException (error : ServiceException) + /-- The request throughput limit was exceeded. -/ + | tooManyRequestsException (error : TooManyRequestsException) +deriving DecidableEq, Repr + +def UpdateFunctionUrlConfigError.ofWire (name : String) (value : Value) : Option UpdateFunctionUrlConfigError := + match name with + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "ResourceConflictException" => (Shape.ofValue value).toOption.map .resourceConflictException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ServiceException" => (Shape.ofValue value).toOption.map .serviceException + | "TooManyRequestsException" => (Shape.ofValue value).toOption.map .tooManyRequestsException + | _ => none + +/-- The operations of the service. -/ +inductive Op where + /-- Adds permissions to the resource-based policy of a version of an Lambda layer . -/ + | addLayerVersionPermission + /-- Grants a principal permission to use a function. -/ + | addPermission + /-- Saves the progress of a durable function execution during runtime. -/ + | checkpointDurableExecution + /-- Creates an alias for a Lambda Event Function version. -/ + | createAlias + /-- Creates a capacity provider that manages compute resources for Lambda Event Functions. -/ + | createCapacityProvider + /-- Creates a code signing configuration. -/ + | createCodeSigningConfig + /-- Creates a mapping between an event source and an Lambda Event Function. -/ + | createEventSourceMapping + /-- Creates a Lambda Event Function. -/ + | createFunction + /-- Creates a Lambda function URL with the specified configuration parameters. -/ + | createFunctionUrlConfig + /-- Deletes a Lambda Event Function alias . -/ + | deleteAlias + /-- Deletes a capacity provider. -/ + | deleteCapacityProvider + /-- Deletes the code signing configuration. -/ + | deleteCodeSigningConfig + /-- Deletes a completed Lambda durable execution and its data. -/ + | deleteDurableExecution + /-- Deletes an event source mapping . -/ + | deleteEventSourceMapping + /-- Deletes a Lambda Event Function. -/ + | deleteFunction + /-- Removes the code signing configuration from the function. -/ + | deleteFunctionCodeSigningConfig + /-- Removes a concurrent execution limit from a Lambda Event Function. -/ + | deleteFunctionConcurrency + /-- Deletes the configuration for asynchronous invocation for a function, version, or alias. -/ + | deleteFunctionEventInvokeConfig + /-- Deletes a Lambda function URL. -/ + | deleteFunctionUrlConfig + /-- Deletes a version of an Lambda layer . -/ + | deleteLayerVersion + /-- Deletes the provisioned concurrency configuration for a function. -/ + | deleteProvisionedConcurrencyConfig + /-- Deletes a resource-based policy from a Lambda resource. -/ + | deleteResourcePolicy + /-- Retrieves details about your account's limits and usage in an Amazon Web Services Region. -/ + | getAccountSettings + /-- Returns details about a Lambda Event Function alias . -/ + | getAlias + /-- Retrieves information about a specific capacity provider, including its configuration, state, and associated resources. -/ + | getCapacityProvider + /-- Returns information about the specified code signing configuration. -/ + | getCodeSigningConfig + /-- Retrieves detailed information about a specific durable execution , including its current status, input payload, result or error information, and execution metadata such as start time and usage statistics. -/ + | getDurableExecution + /-- Retrieves the execution history for a durable execution , showing all the steps, callbacks, and events that occurred during the execution. -/ + | getDurableExecutionHistory + /-- Retrieves the current execution state required for the replay process during durable function execution. -/ + | getDurableExecutionState + /-- Returns details about an event source mapping. -/ + | getEventSourceMapping + /-- Returns information about a Lambda Event Function or function version, with a link to download the deployment package that's valid for 10 minutes. -/ + | getFunction + /-- Returns the code signing configuration for the specified function. -/ + | getFunctionCodeSigningConfig + /-- Returns details about the reserved concurrency configuration for a function. -/ + | getFunctionConcurrency + /-- Returns the version-specific settings of a Lambda Event Function or version. -/ + | getFunctionConfiguration + /-- Retrieves the configuration for asynchronous invocation for a function, version, or alias. -/ + | getFunctionEventInvokeConfig + /-- Returns your function's recursive loop detection configuration. -/ + | getFunctionRecursionConfig + /-- Retrieves the scaling configuration for a Lambda Managed Instances function. -/ + | getFunctionScalingConfig + /-- Returns details about a Lambda function URL. -/ + | getFunctionUrlConfig + /-- Returns information about a version of an Lambda layer , with a link to download the layer archive that's valid for 10 minutes. -/ + | getLayerVersion + /-- Returns information about a version of an Lambda layer , with a link to download the layer archive that's valid for 10 minutes. -/ + | getLayerVersionByArn + /-- Returns the permission policy for a version of an Lambda layer . -/ + | getLayerVersionPolicy + /-- Returns the resource-based IAM policy for a function, version, or alias. -/ + | getPolicy + /-- Retrieves the provisioned concurrency configuration for a function's alias or version. -/ + | getProvisionedConcurrencyConfig + /-- Retrieves the resource-based policy attached to a Lambda resource. -/ + | getResourcePolicy + /-- Retrieves the runtime management configuration for a function's version. -/ + | getRuntimeManagementConfig + /-- Invokes a Lambda Event Function. -/ + | invoke + /-- For asynchronous function invocation, use Invoke . -/ + | invokeAsync + /-- Configure your Lambda Event Functions to stream response payloads back to clients. -/ + | invokeWithResponseStream + /-- Returns a list of aliases for a Lambda Event Function. -/ + | listAliases + /-- Returns a list of capacity providers in your account. -/ + | listCapacityProviders + /-- Returns a list of code signing configurations . -/ + | listCodeSigningConfigs + /-- Returns a list of durable executions for a specified Lambda function. -/ + | listDurableExecutionsByFunction + /-- Lists event source mappings. -/ + | listEventSourceMappings + /-- Retrieves a list of configurations for asynchronous invocation for a Lambda Event Function. -/ + | listFunctionEventInvokeConfigs + /-- Returns a list of Lambda function URLs for the specified function. -/ + | listFunctionUrlConfigs + /-- Returns a list of function versions that are configured to use a specific capacity provider. -/ + | listFunctionVersionsByCapacityProvider + /-- Returns a list of Lambda Event Functions, with the version-specific configuration of each. -/ + | listFunctions + /-- List the functions that use the specified code signing configuration. -/ + | listFunctionsByCodeSigningConfig + /-- Lists the versions of an Lambda layer . -/ + | listLayerVersions + /-- Lists Lambda layers and shows information about the latest version of each. -/ + | listLayers + /-- Retrieves a list of provisioned concurrency configurations for a function. -/ + | listProvisionedConcurrencyConfigs + /-- Returns a function, event source mapping, or code signing configuration's tags . -/ + | listTags + /-- Returns a list of versions of a Lambda Event Function, with the version-specific configuration of each. -/ + | listVersionsByFunction + /-- Pauses a running durable execution . -/ + | pauseDurableExecution + /-- Creates an Lambda layer from a ZIP archive. -/ + | publishLayerVersion + /-- Creates a version from the current code and configuration of a Lambda Event Function. -/ + | publishVersion + /-- Update the code signing configuration for the function. -/ + | putFunctionCodeSigningConfig + /-- Sets the maximum number of simultaneous executions for a Lambda Event Function, and reserves capacity for that concurrency level. -/ + | putFunctionConcurrency + /-- Configures options for asynchronous invocation on a function, version, or alias. -/ + | putFunctionEventInvokeConfig + /-- Sets the recursive loop detection configuration for a Lambda Event Function. -/ + | putFunctionRecursionConfig + /-- Sets the scaling configuration for a Lambda Managed Instances function. -/ + | putFunctionScalingConfig + /-- Adds a provisioned concurrency configuration to a function's alias or version. -/ + | putProvisionedConcurrencyConfig + /-- Adds a resource-based policy to a Lambda resource. -/ + | putResourcePolicy + /-- Sets the runtime management configuration for a function's version. -/ + | putRuntimeManagementConfig + /-- Removes a statement from the permissions policy for a version of an Lambda layer . -/ + | removeLayerVersionPermission + /-- Revokes function-use permission from an Amazon Web Services service or another Amazon Web Services account. -/ + | removePermission + /-- Resumes a paused durable execution . -/ + | resumeDurableExecution + /-- Sends a failure response for a callback operation in a durable execution. -/ + | sendDurableExecutionCallbackFailure + /-- Sends a heartbeat signal for a long-running callback operation to prevent timeout. -/ + | sendDurableExecutionCallbackHeartbeat + /-- Sends a successful completion response for a callback operation in a durable execution. -/ + | sendDurableExecutionCallbackSuccess + /-- Stops a running or paused durable execution . -/ + | stopDurableExecution + /-- Adds tags to a function, event source mapping, or code signing configuration. -/ + | tagResource + /-- Removes tags from a function, event source mapping, or code signing configuration. -/ + | untagResource + /-- Updates the configuration of a Lambda Event Function alias . -/ + | updateAlias + /-- Updates the configuration of an existing capacity provider. -/ + | updateCapacityProvider + /-- Update the code signing configuration. -/ + | updateCodeSigningConfig + /-- Updates an event source mapping. -/ + | updateEventSourceMapping + /-- Updates a Lambda Event Function's code. -/ + | updateFunctionCode + /-- Modifies the version-specific settings of a Lambda Event Function. -/ + | updateFunctionConfiguration + /-- Updates the configuration for asynchronous invocation for a function, version, or alias. -/ + | updateFunctionEventInvokeConfig + /-- Updates the configuration for a function URL of a Lambda Event Function. -/ + | updateFunctionUrlConfig +deriving DecidableEq, Repr + +abbrev Input : Op → Type + | .addLayerVersionPermission => AddLayerVersionPermissionRequest + | .addPermission => AddPermissionRequest + | .checkpointDurableExecution => CheckpointDurableExecutionRequest + | .createAlias => CreateAliasRequest + | .createCapacityProvider => CreateCapacityProviderRequest + | .createCodeSigningConfig => CreateCodeSigningConfigRequest + | .createEventSourceMapping => CreateEventSourceMappingRequest + | .createFunction => CreateFunctionRequest + | .createFunctionUrlConfig => CreateFunctionUrlConfigRequest + | .deleteAlias => DeleteAliasRequest + | .deleteCapacityProvider => DeleteCapacityProviderRequest + | .deleteCodeSigningConfig => DeleteCodeSigningConfigRequest + | .deleteDurableExecution => DeleteDurableExecutionRequest + | .deleteEventSourceMapping => DeleteEventSourceMappingRequest + | .deleteFunction => DeleteFunctionRequest + | .deleteFunctionCodeSigningConfig => DeleteFunctionCodeSigningConfigRequest + | .deleteFunctionConcurrency => DeleteFunctionConcurrencyRequest + | .deleteFunctionEventInvokeConfig => DeleteFunctionEventInvokeConfigRequest + | .deleteFunctionUrlConfig => DeleteFunctionUrlConfigRequest + | .deleteLayerVersion => DeleteLayerVersionRequest + | .deleteProvisionedConcurrencyConfig => DeleteProvisionedConcurrencyConfigRequest + | .deleteResourcePolicy => DeleteResourcePolicyRequest + | .getAccountSettings => GetAccountSettingsRequest + | .getAlias => GetAliasRequest + | .getCapacityProvider => GetCapacityProviderRequest + | .getCodeSigningConfig => GetCodeSigningConfigRequest + | .getDurableExecution => GetDurableExecutionRequest + | .getDurableExecutionHistory => GetDurableExecutionHistoryRequest + | .getDurableExecutionState => GetDurableExecutionStateRequest + | .getEventSourceMapping => GetEventSourceMappingRequest + | .getFunction => GetFunctionRequest + | .getFunctionCodeSigningConfig => GetFunctionCodeSigningConfigRequest + | .getFunctionConcurrency => GetFunctionConcurrencyRequest + | .getFunctionConfiguration => GetFunctionConfigurationRequest + | .getFunctionEventInvokeConfig => GetFunctionEventInvokeConfigRequest + | .getFunctionRecursionConfig => GetFunctionRecursionConfigRequest + | .getFunctionScalingConfig => GetFunctionScalingConfigRequest + | .getFunctionUrlConfig => GetFunctionUrlConfigRequest + | .getLayerVersion => GetLayerVersionRequest + | .getLayerVersionByArn => GetLayerVersionByArnRequest + | .getLayerVersionPolicy => GetLayerVersionPolicyRequest + | .getPolicy => GetPolicyRequest + | .getProvisionedConcurrencyConfig => GetProvisionedConcurrencyConfigRequest + | .getResourcePolicy => GetResourcePolicyRequest + | .getRuntimeManagementConfig => GetRuntimeManagementConfigRequest + | .invoke => InvocationRequest + | .invokeAsync => InvokeAsyncRequest + | .invokeWithResponseStream => InvokeWithResponseStreamRequest + | .listAliases => ListAliasesRequest + | .listCapacityProviders => ListCapacityProvidersRequest + | .listCodeSigningConfigs => ListCodeSigningConfigsRequest + | .listDurableExecutionsByFunction => ListDurableExecutionsByFunctionRequest + | .listEventSourceMappings => ListEventSourceMappingsRequest + | .listFunctionEventInvokeConfigs => ListFunctionEventInvokeConfigsRequest + | .listFunctionUrlConfigs => ListFunctionUrlConfigsRequest + | .listFunctionVersionsByCapacityProvider => ListFunctionVersionsByCapacityProviderRequest + | .listFunctions => ListFunctionsRequest + | .listFunctionsByCodeSigningConfig => ListFunctionsByCodeSigningConfigRequest + | .listLayerVersions => ListLayerVersionsRequest + | .listLayers => ListLayersRequest + | .listProvisionedConcurrencyConfigs => ListProvisionedConcurrencyConfigsRequest + | .listTags => ListTagsRequest + | .listVersionsByFunction => ListVersionsByFunctionRequest + | .pauseDurableExecution => PauseDurableExecutionRequest + | .publishLayerVersion => PublishLayerVersionRequest + | .publishVersion => PublishVersionRequest + | .putFunctionCodeSigningConfig => PutFunctionCodeSigningConfigRequest + | .putFunctionConcurrency => PutFunctionConcurrencyRequest + | .putFunctionEventInvokeConfig => PutFunctionEventInvokeConfigRequest + | .putFunctionRecursionConfig => PutFunctionRecursionConfigRequest + | .putFunctionScalingConfig => PutFunctionScalingConfigRequest + | .putProvisionedConcurrencyConfig => PutProvisionedConcurrencyConfigRequest + | .putResourcePolicy => PutResourcePolicyRequest + | .putRuntimeManagementConfig => PutRuntimeManagementConfigRequest + | .removeLayerVersionPermission => RemoveLayerVersionPermissionRequest + | .removePermission => RemovePermissionRequest + | .resumeDurableExecution => ResumeDurableExecutionRequest + | .sendDurableExecutionCallbackFailure => SendDurableExecutionCallbackFailureRequest + | .sendDurableExecutionCallbackHeartbeat => SendDurableExecutionCallbackHeartbeatRequest + | .sendDurableExecutionCallbackSuccess => SendDurableExecutionCallbackSuccessRequest + | .stopDurableExecution => StopDurableExecutionRequest + | .tagResource => TagResourceRequest + | .untagResource => UntagResourceRequest + | .updateAlias => UpdateAliasRequest + | .updateCapacityProvider => UpdateCapacityProviderRequest + | .updateCodeSigningConfig => UpdateCodeSigningConfigRequest + | .updateEventSourceMapping => UpdateEventSourceMappingRequest + | .updateFunctionCode => UpdateFunctionCodeRequest + | .updateFunctionConfiguration => UpdateFunctionConfigurationRequest + | .updateFunctionEventInvokeConfig => UpdateFunctionEventInvokeConfigRequest + | .updateFunctionUrlConfig => UpdateFunctionUrlConfigRequest + +abbrev Output : Op → Type + | .addLayerVersionPermission => AddLayerVersionPermissionResponse + | .addPermission => AddPermissionResponse + | .checkpointDurableExecution => CheckpointDurableExecutionResponse + | .createAlias => AliasConfiguration + | .createCapacityProvider => CreateCapacityProviderResponse + | .createCodeSigningConfig => CreateCodeSigningConfigResponse + | .createEventSourceMapping => EventSourceMappingConfiguration + | .createFunction => FunctionConfiguration + | .createFunctionUrlConfig => CreateFunctionUrlConfigResponse + | .deleteAlias => Unit + | .deleteCapacityProvider => DeleteCapacityProviderResponse + | .deleteCodeSigningConfig => DeleteCodeSigningConfigResponse + | .deleteDurableExecution => DeleteDurableExecutionResponse + | .deleteEventSourceMapping => EventSourceMappingConfiguration + | .deleteFunction => DeleteFunctionResponse + | .deleteFunctionCodeSigningConfig => Unit + | .deleteFunctionConcurrency => Unit + | .deleteFunctionEventInvokeConfig => Unit + | .deleteFunctionUrlConfig => Unit + | .deleteLayerVersion => Unit + | .deleteProvisionedConcurrencyConfig => Unit + | .deleteResourcePolicy => Unit + | .getAccountSettings => GetAccountSettingsResponse + | .getAlias => AliasConfiguration + | .getCapacityProvider => GetCapacityProviderResponse + | .getCodeSigningConfig => GetCodeSigningConfigResponse + | .getDurableExecution => GetDurableExecutionResponse + | .getDurableExecutionHistory => GetDurableExecutionHistoryResponse + | .getDurableExecutionState => GetDurableExecutionStateResponse + | .getEventSourceMapping => EventSourceMappingConfiguration + | .getFunction => GetFunctionResponse + | .getFunctionCodeSigningConfig => GetFunctionCodeSigningConfigResponse + | .getFunctionConcurrency => GetFunctionConcurrencyResponse + | .getFunctionConfiguration => FunctionConfiguration + | .getFunctionEventInvokeConfig => FunctionEventInvokeConfig + | .getFunctionRecursionConfig => GetFunctionRecursionConfigResponse + | .getFunctionScalingConfig => GetFunctionScalingConfigResponse + | .getFunctionUrlConfig => GetFunctionUrlConfigResponse + | .getLayerVersion => GetLayerVersionResponse + | .getLayerVersionByArn => GetLayerVersionResponse + | .getLayerVersionPolicy => GetLayerVersionPolicyResponse + | .getPolicy => GetPolicyResponse + | .getProvisionedConcurrencyConfig => GetProvisionedConcurrencyConfigResponse + | .getResourcePolicy => GetResourcePolicyResponse + | .getRuntimeManagementConfig => GetRuntimeManagementConfigResponse + | .invoke => InvocationResponse + | .invokeAsync => InvokeAsyncResponse + | .invokeWithResponseStream => InvokeWithResponseStreamResponse + | .listAliases => ListAliasesResponse + | .listCapacityProviders => ListCapacityProvidersResponse + | .listCodeSigningConfigs => ListCodeSigningConfigsResponse + | .listDurableExecutionsByFunction => ListDurableExecutionsByFunctionResponse + | .listEventSourceMappings => ListEventSourceMappingsResponse + | .listFunctionEventInvokeConfigs => ListFunctionEventInvokeConfigsResponse + | .listFunctionUrlConfigs => ListFunctionUrlConfigsResponse + | .listFunctionVersionsByCapacityProvider => ListFunctionVersionsByCapacityProviderResponse + | .listFunctions => ListFunctionsResponse + | .listFunctionsByCodeSigningConfig => ListFunctionsByCodeSigningConfigResponse + | .listLayerVersions => ListLayerVersionsResponse + | .listLayers => ListLayersResponse + | .listProvisionedConcurrencyConfigs => ListProvisionedConcurrencyConfigsResponse + | .listTags => ListTagsResponse + | .listVersionsByFunction => ListVersionsByFunctionResponse + | .pauseDurableExecution => PauseDurableExecutionResponse + | .publishLayerVersion => PublishLayerVersionResponse + | .publishVersion => FunctionConfiguration + | .putFunctionCodeSigningConfig => PutFunctionCodeSigningConfigResponse + | .putFunctionConcurrency => Concurrency + | .putFunctionEventInvokeConfig => FunctionEventInvokeConfig + | .putFunctionRecursionConfig => PutFunctionRecursionConfigResponse + | .putFunctionScalingConfig => PutFunctionScalingConfigResponse + | .putProvisionedConcurrencyConfig => PutProvisionedConcurrencyConfigResponse + | .putResourcePolicy => PutResourcePolicyResponse + | .putRuntimeManagementConfig => PutRuntimeManagementConfigResponse + | .removeLayerVersionPermission => Unit + | .removePermission => Unit + | .resumeDurableExecution => ResumeDurableExecutionResponse + | .sendDurableExecutionCallbackFailure => SendDurableExecutionCallbackFailureResponse + | .sendDurableExecutionCallbackHeartbeat => SendDurableExecutionCallbackHeartbeatResponse + | .sendDurableExecutionCallbackSuccess => SendDurableExecutionCallbackSuccessResponse + | .stopDurableExecution => StopDurableExecutionResponse + | .tagResource => Unit + | .untagResource => Unit + | .updateAlias => AliasConfiguration + | .updateCapacityProvider => UpdateCapacityProviderResponse + | .updateCodeSigningConfig => UpdateCodeSigningConfigResponse + | .updateEventSourceMapping => EventSourceMappingConfiguration + | .updateFunctionCode => FunctionConfiguration + | .updateFunctionConfiguration => FunctionConfiguration + | .updateFunctionEventInvokeConfig => FunctionEventInvokeConfig + | .updateFunctionUrlConfig => UpdateFunctionUrlConfigResponse + +abbrev Error : Op → Type + | .addLayerVersionPermission => AddLayerVersionPermissionError + | .addPermission => AddPermissionError + | .checkpointDurableExecution => CheckpointDurableExecutionError + | .createAlias => CreateAliasError + | .createCapacityProvider => CreateCapacityProviderError + | .createCodeSigningConfig => CreateCodeSigningConfigError + | .createEventSourceMapping => CreateEventSourceMappingError + | .createFunction => CreateFunctionError + | .createFunctionUrlConfig => CreateFunctionUrlConfigError + | .deleteAlias => DeleteAliasError + | .deleteCapacityProvider => DeleteCapacityProviderError + | .deleteCodeSigningConfig => DeleteCodeSigningConfigError + | .deleteDurableExecution => DeleteDurableExecutionError + | .deleteEventSourceMapping => DeleteEventSourceMappingError + | .deleteFunction => DeleteFunctionError + | .deleteFunctionCodeSigningConfig => DeleteFunctionCodeSigningConfigError + | .deleteFunctionConcurrency => DeleteFunctionConcurrencyError + | .deleteFunctionEventInvokeConfig => DeleteFunctionEventInvokeConfigError + | .deleteFunctionUrlConfig => DeleteFunctionUrlConfigError + | .deleteLayerVersion => DeleteLayerVersionError + | .deleteProvisionedConcurrencyConfig => DeleteProvisionedConcurrencyConfigError + | .deleteResourcePolicy => DeleteResourcePolicyError + | .getAccountSettings => GetAccountSettingsError + | .getAlias => GetAliasError + | .getCapacityProvider => GetCapacityProviderError + | .getCodeSigningConfig => GetCodeSigningConfigError + | .getDurableExecution => GetDurableExecutionError + | .getDurableExecutionHistory => GetDurableExecutionHistoryError + | .getDurableExecutionState => GetDurableExecutionStateError + | .getEventSourceMapping => GetEventSourceMappingError + | .getFunction => GetFunctionError + | .getFunctionCodeSigningConfig => GetFunctionCodeSigningConfigError + | .getFunctionConcurrency => GetFunctionConcurrencyError + | .getFunctionConfiguration => GetFunctionConfigurationError + | .getFunctionEventInvokeConfig => GetFunctionEventInvokeConfigError + | .getFunctionRecursionConfig => GetFunctionRecursionConfigError + | .getFunctionScalingConfig => GetFunctionScalingConfigError + | .getFunctionUrlConfig => GetFunctionUrlConfigError + | .getLayerVersion => GetLayerVersionError + | .getLayerVersionByArn => GetLayerVersionByArnError + | .getLayerVersionPolicy => GetLayerVersionPolicyError + | .getPolicy => GetPolicyError + | .getProvisionedConcurrencyConfig => GetProvisionedConcurrencyConfigError + | .getResourcePolicy => GetResourcePolicyError + | .getRuntimeManagementConfig => GetRuntimeManagementConfigError + | .invoke => InvokeError + | .invokeAsync => InvokeAsyncError + | .invokeWithResponseStream => InvokeWithResponseStreamError + | .listAliases => ListAliasesError + | .listCapacityProviders => ListCapacityProvidersError + | .listCodeSigningConfigs => ListCodeSigningConfigsError + | .listDurableExecutionsByFunction => ListDurableExecutionsByFunctionError + | .listEventSourceMappings => ListEventSourceMappingsError + | .listFunctionEventInvokeConfigs => ListFunctionEventInvokeConfigsError + | .listFunctionUrlConfigs => ListFunctionUrlConfigsError + | .listFunctionVersionsByCapacityProvider => ListFunctionVersionsByCapacityProviderError + | .listFunctions => ListFunctionsError + | .listFunctionsByCodeSigningConfig => ListFunctionsByCodeSigningConfigError + | .listLayerVersions => ListLayerVersionsError + | .listLayers => ListLayersError + | .listProvisionedConcurrencyConfigs => ListProvisionedConcurrencyConfigsError + | .listTags => ListTagsError + | .listVersionsByFunction => ListVersionsByFunctionError + | .pauseDurableExecution => PauseDurableExecutionError + | .publishLayerVersion => PublishLayerVersionError + | .publishVersion => PublishVersionError + | .putFunctionCodeSigningConfig => PutFunctionCodeSigningConfigError + | .putFunctionConcurrency => PutFunctionConcurrencyError + | .putFunctionEventInvokeConfig => PutFunctionEventInvokeConfigError + | .putFunctionRecursionConfig => PutFunctionRecursionConfigError + | .putFunctionScalingConfig => PutFunctionScalingConfigError + | .putProvisionedConcurrencyConfig => PutProvisionedConcurrencyConfigError + | .putResourcePolicy => PutResourcePolicyError + | .putRuntimeManagementConfig => PutRuntimeManagementConfigError + | .removeLayerVersionPermission => RemoveLayerVersionPermissionError + | .removePermission => RemovePermissionError + | .resumeDurableExecution => ResumeDurableExecutionError + | .sendDurableExecutionCallbackFailure => SendDurableExecutionCallbackFailureError + | .sendDurableExecutionCallbackHeartbeat => SendDurableExecutionCallbackHeartbeatError + | .sendDurableExecutionCallbackSuccess => SendDurableExecutionCallbackSuccessError + | .stopDurableExecution => StopDurableExecutionError + | .tagResource => TagResourceError + | .untagResource => UntagResourceError + | .updateAlias => UpdateAliasError + | .updateCapacityProvider => UpdateCapacityProviderError + | .updateCodeSigningConfig => UpdateCodeSigningConfigError + | .updateEventSourceMapping => UpdateEventSourceMappingError + | .updateFunctionCode => UpdateFunctionCodeError + | .updateFunctionConfiguration => UpdateFunctionConfigurationError + | .updateFunctionEventInvokeConfig => UpdateFunctionEventInvokeConfigError + | .updateFunctionUrlConfig => UpdateFunctionUrlConfigError + +/-- An empty output for each operation, for a model that leaves an operation out. -/ +def Output.empty : (op : Op) → Output op + | .addLayerVersionPermission => default + | .addPermission => default + | .checkpointDurableExecution => default + | .createAlias => default + | .createCapacityProvider => default + | .createCodeSigningConfig => default + | .createEventSourceMapping => default + | .createFunction => default + | .createFunctionUrlConfig => default + | .deleteAlias => default + | .deleteCapacityProvider => default + | .deleteCodeSigningConfig => default + | .deleteDurableExecution => default + | .deleteEventSourceMapping => default + | .deleteFunction => default + | .deleteFunctionCodeSigningConfig => default + | .deleteFunctionConcurrency => default + | .deleteFunctionEventInvokeConfig => default + | .deleteFunctionUrlConfig => default + | .deleteLayerVersion => default + | .deleteProvisionedConcurrencyConfig => default + | .deleteResourcePolicy => default + | .getAccountSettings => default + | .getAlias => default + | .getCapacityProvider => default + | .getCodeSigningConfig => default + | .getDurableExecution => default + | .getDurableExecutionHistory => default + | .getDurableExecutionState => default + | .getEventSourceMapping => default + | .getFunction => default + | .getFunctionCodeSigningConfig => default + | .getFunctionConcurrency => default + | .getFunctionConfiguration => default + | .getFunctionEventInvokeConfig => default + | .getFunctionRecursionConfig => default + | .getFunctionScalingConfig => default + | .getFunctionUrlConfig => default + | .getLayerVersion => default + | .getLayerVersionByArn => default + | .getLayerVersionPolicy => default + | .getPolicy => default + | .getProvisionedConcurrencyConfig => default + | .getResourcePolicy => default + | .getRuntimeManagementConfig => default + | .invoke => default + | .invokeAsync => default + | .invokeWithResponseStream => default + | .listAliases => default + | .listCapacityProviders => default + | .listCodeSigningConfigs => default + | .listDurableExecutionsByFunction => default + | .listEventSourceMappings => default + | .listFunctionEventInvokeConfigs => default + | .listFunctionUrlConfigs => default + | .listFunctionVersionsByCapacityProvider => default + | .listFunctions => default + | .listFunctionsByCodeSigningConfig => default + | .listLayerVersions => default + | .listLayers => default + | .listProvisionedConcurrencyConfigs => default + | .listTags => default + | .listVersionsByFunction => default + | .pauseDurableExecution => default + | .publishLayerVersion => default + | .publishVersion => default + | .putFunctionCodeSigningConfig => default + | .putFunctionConcurrency => default + | .putFunctionEventInvokeConfig => default + | .putFunctionRecursionConfig => default + | .putFunctionScalingConfig => default + | .putProvisionedConcurrencyConfig => default + | .putResourcePolicy => default + | .putRuntimeManagementConfig => default + | .removeLayerVersionPermission => default + | .removePermission => default + | .resumeDurableExecution => default + | .sendDurableExecutionCallbackFailure => default + | .sendDurableExecutionCallbackHeartbeat => default + | .sendDurableExecutionCallbackSuccess => default + | .stopDurableExecution => default + | .tagResource => default + | .untagResource => default + | .updateAlias => default + | .updateCapacityProvider => default + | .updateCodeSigningConfig => default + | .updateEventSourceMapping => default + | .updateFunctionCode => default + | .updateFunctionConfiguration => default + | .updateFunctionEventInvokeConfig => default + | .updateFunctionUrlConfig => default + +/-- The service: every operation with its input, its output and its errors. -/ +abbrev api : Distilled.Api where + Op := Op + In := Input + Out := Output + Err := Error + +/-- The name requests to this service are signed for. -/ +def signingName : String := "lambda" + +def service : ServiceInfo where + name := "AWSGirApiService" + version := "2015-03-31" + protocol := .restJson + signingName := "lambda" + +/-- What the model says about each operation. -/ +def info : Op → OpInfo + | .addLayerVersionPermission => { name := "AddLayerVersionPermission", method := "POST", uri := "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy", input := (Shape.schema AddLayerVersionPermissionRequest), output := (Shape.schema AddLayerVersionPermissionResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "PolicyLengthExceededException", schema := Shape.schema PolicyLengthExceededException }, { name := "PreconditionFailedException", schema := Shape.schema PreconditionFailedException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .addPermission => { name := "AddPermission", method := "POST", uri := "/2015-03-31/functions/{FunctionName}/policy", input := (Shape.schema AddPermissionRequest), output := (Shape.schema AddPermissionResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "PolicyLengthExceededException", schema := Shape.schema PolicyLengthExceededException }, { name := "PreconditionFailedException", schema := Shape.schema PreconditionFailedException }, { name := "PublicPolicyException", schema := Shape.schema PublicPolicyException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .checkpointDurableExecution => { name := "CheckpointDurableExecution", method := "POST", uri := "/2025-12-01/durable-executions/{DurableExecutionArn}/checkpoint", input := (Shape.schema CheckpointDurableExecutionRequest), output := (Shape.schema CheckpointDurableExecutionResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "KMSAccessDeniedException", schema := Shape.schema KMSAccessDeniedException }, { name := "KMSDisabledException", schema := Shape.schema KMSDisabledException }, { name := "KMSInvalidStateException", schema := Shape.schema KMSInvalidStateException }, { name := "KMSNotFoundException", schema := Shape.schema KMSNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .createAlias => { name := "CreateAlias", method := "POST", uri := "/2015-03-31/functions/{FunctionName}/aliases", input := (Shape.schema CreateAliasRequest), output := (Shape.schema AliasConfiguration), errors := [{ name := "AliasLimitExceededException", schema := Shape.schema AliasLimitExceededException }, { name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .createCapacityProvider => { name := "CreateCapacityProvider", method := "POST", uri := "/2025-11-30/capacity-providers", input := (Shape.schema CreateCapacityProviderRequest), output := (Shape.schema CreateCapacityProviderResponse), errors := [{ name := "CapacityProviderLimitExceededException", schema := Shape.schema CapacityProviderLimitExceededException }, { name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .createCodeSigningConfig => { name := "CreateCodeSigningConfig", method := "POST", uri := "/2020-04-22/code-signing-configs", input := (Shape.schema CreateCodeSigningConfigRequest), output := (Shape.schema CreateCodeSigningConfigResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ServiceException", schema := Shape.schema ServiceException }] } + | .createEventSourceMapping => { name := "CreateEventSourceMapping", method := "POST", uri := "/2015-03-31/event-source-mappings", input := (Shape.schema CreateEventSourceMappingRequest), output := (Shape.schema EventSourceMappingConfiguration), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .createFunction => { name := "CreateFunction", method := "POST", uri := "/2015-03-31/functions", input := (Shape.schema CreateFunctionRequest), output := (Shape.schema FunctionConfiguration), errors := [{ name := "CodeSigningConfigNotFoundException", schema := Shape.schema CodeSigningConfigNotFoundException }, { name := "CodeStorageExceededException", schema := Shape.schema CodeStorageExceededException }, { name := "CodeVerificationFailedException", schema := Shape.schema CodeVerificationFailedException }, { name := "FunctionVersionsPerCapacityProviderLimitExceededException", schema := Shape.schema FunctionVersionsPerCapacityProviderLimitExceededException }, { name := "InvalidCodeSignatureException", schema := Shape.schema InvalidCodeSignatureException }, { name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .createFunctionUrlConfig => { name := "CreateFunctionUrlConfig", method := "POST", uri := "/2021-10-31/functions/{FunctionName}/url", input := (Shape.schema CreateFunctionUrlConfigRequest), output := (Shape.schema CreateFunctionUrlConfigResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .deleteAlias => { name := "DeleteAlias", method := "DELETE", uri := "/2015-03-31/functions/{FunctionName}/aliases/{Name}", input := (Shape.schema DeleteAliasRequest), output := (Shape.schema Unit), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .deleteCapacityProvider => { name := "DeleteCapacityProvider", method := "DELETE", uri := "/2025-11-30/capacity-providers/{CapacityProviderName}", input := (Shape.schema DeleteCapacityProviderRequest), output := (Shape.schema DeleteCapacityProviderResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .deleteCodeSigningConfig => { name := "DeleteCodeSigningConfig", method := "DELETE", uri := "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}", input := (Shape.schema DeleteCodeSigningConfigRequest), output := (Shape.schema DeleteCodeSigningConfigResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }] } + | .deleteDurableExecution => { name := "DeleteDurableExecution", method := "DELETE", uri := "/2025-12-01/durable-executions/{DurableExecutionArn}", input := (Shape.schema DeleteDurableExecutionRequest), output := (Shape.schema DeleteDurableExecutionResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .deleteEventSourceMapping => { name := "DeleteEventSourceMapping", method := "DELETE", uri := "/2015-03-31/event-source-mappings/{UUID}", input := (Shape.schema DeleteEventSourceMappingRequest), output := (Shape.schema EventSourceMappingConfiguration), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceInUseException", schema := Shape.schema ResourceInUseException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .deleteFunction => { name := "DeleteFunction", method := "DELETE", uri := "/2015-03-31/functions/{FunctionName}", input := (Shape.schema DeleteFunctionRequest), output := (Shape.schema DeleteFunctionResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .deleteFunctionCodeSigningConfig => { name := "DeleteFunctionCodeSigningConfig", method := "DELETE", uri := "/2020-06-30/functions/{FunctionName}/code-signing-config", input := (Shape.schema DeleteFunctionCodeSigningConfigRequest), output := (Shape.schema Unit), errors := [{ name := "CodeSigningConfigNotFoundException", schema := Shape.schema CodeSigningConfigNotFoundException }, { name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .deleteFunctionConcurrency => { name := "DeleteFunctionConcurrency", method := "DELETE", uri := "/2017-10-31/functions/{FunctionName}/concurrency", input := (Shape.schema DeleteFunctionConcurrencyRequest), output := (Shape.schema Unit), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .deleteFunctionEventInvokeConfig => { name := "DeleteFunctionEventInvokeConfig", method := "DELETE", uri := "/2019-09-25/functions/{FunctionName}/event-invoke-config", input := (Shape.schema DeleteFunctionEventInvokeConfigRequest), output := (Shape.schema Unit), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .deleteFunctionUrlConfig => { name := "DeleteFunctionUrlConfig", method := "DELETE", uri := "/2021-10-31/functions/{FunctionName}/url", input := (Shape.schema DeleteFunctionUrlConfigRequest), output := (Shape.schema Unit), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .deleteLayerVersion => { name := "DeleteLayerVersion", method := "DELETE", uri := "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}", input := (Shape.schema DeleteLayerVersionRequest), output := (Shape.schema Unit), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .deleteProvisionedConcurrencyConfig => { name := "DeleteProvisionedConcurrencyConfig", method := "DELETE", uri := "/2019-09-30/functions/{FunctionName}/provisioned-concurrency", input := (Shape.schema DeleteProvisionedConcurrencyConfigRequest), output := (Shape.schema Unit), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .deleteResourcePolicy => { name := "DeleteResourcePolicy", method := "DELETE", uri := "/2026-07-09/resource-policy/{ResourceArn}", input := (Shape.schema DeleteResourcePolicyRequest), output := (Shape.schema Unit), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "PreconditionFailedException", schema := Shape.schema PreconditionFailedException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getAccountSettings => { name := "GetAccountSettings", method := "GET", uri := "/2016-08-19/account-settings", input := (Shape.schema GetAccountSettingsRequest), output := (Shape.schema GetAccountSettingsResponse), errors := [{ name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getAlias => { name := "GetAlias", method := "GET", uri := "/2015-03-31/functions/{FunctionName}/aliases/{Name}", input := (Shape.schema GetAliasRequest), output := (Shape.schema AliasConfiguration), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getCapacityProvider => { name := "GetCapacityProvider", method := "GET", uri := "/2025-11-30/capacity-providers/{CapacityProviderName}", input := (Shape.schema GetCapacityProviderRequest), output := (Shape.schema GetCapacityProviderResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getCodeSigningConfig => { name := "GetCodeSigningConfig", method := "GET", uri := "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}", input := (Shape.schema GetCodeSigningConfigRequest), output := (Shape.schema GetCodeSigningConfigResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }] } + | .getDurableExecution => { name := "GetDurableExecution", method := "GET", uri := "/2025-12-01/durable-executions/{DurableExecutionArn}", input := (Shape.schema GetDurableExecutionRequest), output := (Shape.schema GetDurableExecutionResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "KMSAccessDeniedException", schema := Shape.schema KMSAccessDeniedException }, { name := "KMSDisabledException", schema := Shape.schema KMSDisabledException }, { name := "KMSInvalidStateException", schema := Shape.schema KMSInvalidStateException }, { name := "KMSNotFoundException", schema := Shape.schema KMSNotFoundException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getDurableExecutionHistory => { name := "GetDurableExecutionHistory", method := "GET", uri := "/2025-12-01/durable-executions/{DurableExecutionArn}/history", input := (Shape.schema GetDurableExecutionHistoryRequest), output := (Shape.schema GetDurableExecutionHistoryResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "KMSAccessDeniedException", schema := Shape.schema KMSAccessDeniedException }, { name := "KMSDisabledException", schema := Shape.schema KMSDisabledException }, { name := "KMSInvalidStateException", schema := Shape.schema KMSInvalidStateException }, { name := "KMSNotFoundException", schema := Shape.schema KMSNotFoundException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getDurableExecutionState => { name := "GetDurableExecutionState", method := "GET", uri := "/2025-12-01/durable-executions/{DurableExecutionArn}/state", input := (Shape.schema GetDurableExecutionStateRequest), output := (Shape.schema GetDurableExecutionStateResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "KMSAccessDeniedException", schema := Shape.schema KMSAccessDeniedException }, { name := "KMSDisabledException", schema := Shape.schema KMSDisabledException }, { name := "KMSInvalidStateException", schema := Shape.schema KMSInvalidStateException }, { name := "KMSNotFoundException", schema := Shape.schema KMSNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getEventSourceMapping => { name := "GetEventSourceMapping", method := "GET", uri := "/2015-03-31/event-source-mappings/{UUID}", input := (Shape.schema GetEventSourceMappingRequest), output := (Shape.schema EventSourceMappingConfiguration), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getFunction => { name := "GetFunction", method := "GET", uri := "/2015-03-31/functions/{FunctionName}", input := (Shape.schema GetFunctionRequest), output := (Shape.schema GetFunctionResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getFunctionCodeSigningConfig => { name := "GetFunctionCodeSigningConfig", method := "GET", uri := "/2020-06-30/functions/{FunctionName}/code-signing-config", input := (Shape.schema GetFunctionCodeSigningConfigRequest), output := (Shape.schema GetFunctionCodeSigningConfigResponse), errors := [{ name := "CodeSigningConfigNotFoundException", schema := Shape.schema CodeSigningConfigNotFoundException }, { name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getFunctionConcurrency => { name := "GetFunctionConcurrency", method := "GET", uri := "/2019-09-30/functions/{FunctionName}/concurrency", input := (Shape.schema GetFunctionConcurrencyRequest), output := (Shape.schema GetFunctionConcurrencyResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getFunctionConfiguration => { name := "GetFunctionConfiguration", method := "GET", uri := "/2015-03-31/functions/{FunctionName}/configuration", input := (Shape.schema GetFunctionConfigurationRequest), output := (Shape.schema FunctionConfiguration), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getFunctionEventInvokeConfig => { name := "GetFunctionEventInvokeConfig", method := "GET", uri := "/2019-09-25/functions/{FunctionName}/event-invoke-config", input := (Shape.schema GetFunctionEventInvokeConfigRequest), output := (Shape.schema FunctionEventInvokeConfig), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getFunctionRecursionConfig => { name := "GetFunctionRecursionConfig", method := "GET", uri := "/2024-08-31/functions/{FunctionName}/recursion-config", input := (Shape.schema GetFunctionRecursionConfigRequest), output := (Shape.schema GetFunctionRecursionConfigResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getFunctionScalingConfig => { name := "GetFunctionScalingConfig", method := "GET", uri := "/2025-11-30/functions/{FunctionName}/function-scaling-config", input := (Shape.schema GetFunctionScalingConfigRequest), output := (Shape.schema GetFunctionScalingConfigResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getFunctionUrlConfig => { name := "GetFunctionUrlConfig", method := "GET", uri := "/2021-10-31/functions/{FunctionName}/url", input := (Shape.schema GetFunctionUrlConfigRequest), output := (Shape.schema GetFunctionUrlConfigResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getLayerVersion => { name := "GetLayerVersion", method := "GET", uri := "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}", input := (Shape.schema GetLayerVersionRequest), output := (Shape.schema GetLayerVersionResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getLayerVersionByArn => { name := "GetLayerVersionByArn", method := "GET", uri := "/2018-10-31/layers?find=LayerVersion", input := (Shape.schema GetLayerVersionByArnRequest), output := (Shape.schema GetLayerVersionResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getLayerVersionPolicy => { name := "GetLayerVersionPolicy", method := "GET", uri := "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy", input := (Shape.schema GetLayerVersionPolicyRequest), output := (Shape.schema GetLayerVersionPolicyResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getPolicy => { name := "GetPolicy", method := "GET", uri := "/2015-03-31/functions/{FunctionName}/policy", input := (Shape.schema GetPolicyRequest), output := (Shape.schema GetPolicyResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getProvisionedConcurrencyConfig => { name := "GetProvisionedConcurrencyConfig", method := "GET", uri := "/2019-09-30/functions/{FunctionName}/provisioned-concurrency", input := (Shape.schema GetProvisionedConcurrencyConfigRequest), output := (Shape.schema GetProvisionedConcurrencyConfigResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ProvisionedConcurrencyConfigNotFoundException", schema := Shape.schema ProvisionedConcurrencyConfigNotFoundException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getResourcePolicy => { name := "GetResourcePolicy", method := "GET", uri := "/2026-07-09/resource-policy/{ResourceArn}", input := (Shape.schema GetResourcePolicyRequest), output := (Shape.schema GetResourcePolicyResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .getRuntimeManagementConfig => { name := "GetRuntimeManagementConfig", method := "GET", uri := "/2021-07-20/functions/{FunctionName}/runtime-management-config", input := (Shape.schema GetRuntimeManagementConfigRequest), output := (Shape.schema GetRuntimeManagementConfigResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .invoke => { name := "Invoke", method := "POST", uri := "/2015-03-31/functions/{FunctionName}/invocations", input := (Shape.schema InvocationRequest), output := (Shape.schema InvocationResponse), errors := [{ name := "CodeArtifactUserDeletedException", schema := Shape.schema CodeArtifactUserDeletedException }, { name := "CodeArtifactUserFailedException", schema := Shape.schema CodeArtifactUserFailedException }, { name := "CodeArtifactUserPendingException", schema := Shape.schema CodeArtifactUserPendingException }, { name := "DurableExecutionAlreadyStartedException", schema := Shape.schema DurableExecutionAlreadyStartedException }, { name := "EC2AccessDeniedException", schema := Shape.schema EC2AccessDeniedException }, { name := "EC2ThrottledException", schema := Shape.schema EC2ThrottledException }, { name := "EC2UnexpectedException", schema := Shape.schema EC2UnexpectedException }, { name := "EFSIOException", schema := Shape.schema EFSIOException }, { name := "EFSMountConnectivityException", schema := Shape.schema EFSMountConnectivityException }, { name := "EFSMountFailureException", schema := Shape.schema EFSMountFailureException }, { name := "EFSMountTimeoutException", schema := Shape.schema EFSMountTimeoutException }, { name := "ENILimitReachedException", schema := Shape.schema ENILimitReachedException }, { name := "ENINotReadyException", schema := Shape.schema ENINotReadyException }, { name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "InvalidRequestContentException", schema := Shape.schema InvalidRequestContentException }, { name := "InvalidRuntimeException", schema := Shape.schema InvalidRuntimeException }, { name := "InvalidSecurityGroupIDException", schema := Shape.schema InvalidSecurityGroupIDException }, { name := "InvalidSubnetIDException", schema := Shape.schema InvalidSubnetIDException }, { name := "InvalidZipFileException", schema := Shape.schema InvalidZipFileException }, { name := "KMSAccessDeniedException", schema := Shape.schema KMSAccessDeniedException }, { name := "KMSDisabledException", schema := Shape.schema KMSDisabledException }, { name := "KMSInvalidStateException", schema := Shape.schema KMSInvalidStateException }, { name := "KMSNotFoundException", schema := Shape.schema KMSNotFoundException }, { name := "ModeNotSupportedException", schema := Shape.schema ModeNotSupportedException }, { name := "NoPublishedVersionException", schema := Shape.schema NoPublishedVersionException }, { name := "RecursiveInvocationException", schema := Shape.schema RecursiveInvocationException }, { name := "RequestTooLargeException", schema := Shape.schema RequestTooLargeException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ResourceNotReadyException", schema := Shape.schema ResourceNotReadyException }, { name := "RuntimeAliasDeletedException", schema := Shape.schema RuntimeAliasDeletedException }, { name := "RuntimeVersionDeletedException", schema := Shape.schema RuntimeVersionDeletedException }, { name := "S3FilesMountConnectivityException", schema := Shape.schema S3FilesMountConnectivityException }, { name := "S3FilesMountFailureException", schema := Shape.schema S3FilesMountFailureException }, { name := "S3FilesMountTimeoutException", schema := Shape.schema S3FilesMountTimeoutException }, { name := "SerializedRequestEntityTooLargeException", schema := Shape.schema SerializedRequestEntityTooLargeException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "ServiceQuotaExceededException", schema := Shape.schema ServiceQuotaExceededException }, { name := "SnapStartException", schema := Shape.schema SnapStartException }, { name := "SnapStartNotReadyException", schema := Shape.schema SnapStartNotReadyException }, { name := "SnapStartRegenerationFailureException", schema := Shape.schema SnapStartRegenerationFailureException }, { name := "SnapStartTimeoutException", schema := Shape.schema SnapStartTimeoutException }, { name := "SubnetIPAddressLimitReachedException", schema := Shape.schema SubnetIPAddressLimitReachedException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }, { name := "UnsupportedMediaTypeException", schema := Shape.schema UnsupportedMediaTypeException }] } + | .invokeAsync => { name := "InvokeAsync", method := "POST", uri := "/2014-11-13/functions/{FunctionName}/invoke-async", input := (Shape.schema InvokeAsyncRequest), output := (Shape.schema InvokeAsyncResponse), errors := [{ name := "EC2AccessDeniedException", schema := Shape.schema EC2AccessDeniedException }, { name := "EC2ThrottledException", schema := Shape.schema EC2ThrottledException }, { name := "EC2UnexpectedException", schema := Shape.schema EC2UnexpectedException }, { name := "EFSIOException", schema := Shape.schema EFSIOException }, { name := "EFSMountConnectivityException", schema := Shape.schema EFSMountConnectivityException }, { name := "EFSMountFailureException", schema := Shape.schema EFSMountFailureException }, { name := "EFSMountTimeoutException", schema := Shape.schema EFSMountTimeoutException }, { name := "ENILimitReachedException", schema := Shape.schema ENILimitReachedException }, { name := "InvalidRequestContentException", schema := Shape.schema InvalidRequestContentException }, { name := "InvalidRuntimeException", schema := Shape.schema InvalidRuntimeException }, { name := "InvalidSecurityGroupIDException", schema := Shape.schema InvalidSecurityGroupIDException }, { name := "InvalidSubnetIDException", schema := Shape.schema InvalidSubnetIDException }, { name := "KMSAccessDeniedException", schema := Shape.schema KMSAccessDeniedException }, { name := "KMSDisabledException", schema := Shape.schema KMSDisabledException }, { name := "KMSInvalidStateException", schema := Shape.schema KMSInvalidStateException }, { name := "KMSNotFoundException", schema := Shape.schema KMSNotFoundException }, { name := "ModeNotSupportedException", schema := Shape.schema ModeNotSupportedException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "S3FilesMountConnectivityException", schema := Shape.schema S3FilesMountConnectivityException }, { name := "S3FilesMountFailureException", schema := Shape.schema S3FilesMountFailureException }, { name := "S3FilesMountTimeoutException", schema := Shape.schema S3FilesMountTimeoutException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "ServiceQuotaExceededException", schema := Shape.schema ServiceQuotaExceededException }, { name := "SnapStartException", schema := Shape.schema SnapStartException }, { name := "SnapStartNotReadyException", schema := Shape.schema SnapStartNotReadyException }, { name := "SnapStartRegenerationFailureException", schema := Shape.schema SnapStartRegenerationFailureException }, { name := "SnapStartTimeoutException", schema := Shape.schema SnapStartTimeoutException }, { name := "SubnetIPAddressLimitReachedException", schema := Shape.schema SubnetIPAddressLimitReachedException }] } + | .invokeWithResponseStream => { name := "InvokeWithResponseStream", method := "POST", uri := "/2021-11-15/functions/{FunctionName}/response-streaming-invocations", input := (Shape.schema InvokeWithResponseStreamRequest), output := (Shape.schema InvokeWithResponseStreamResponse), errors := [{ name := "CodeArtifactUserDeletedException", schema := Shape.schema CodeArtifactUserDeletedException }, { name := "CodeArtifactUserFailedException", schema := Shape.schema CodeArtifactUserFailedException }, { name := "CodeArtifactUserPendingException", schema := Shape.schema CodeArtifactUserPendingException }, { name := "EC2AccessDeniedException", schema := Shape.schema EC2AccessDeniedException }, { name := "EC2ThrottledException", schema := Shape.schema EC2ThrottledException }, { name := "EC2UnexpectedException", schema := Shape.schema EC2UnexpectedException }, { name := "EFSIOException", schema := Shape.schema EFSIOException }, { name := "EFSMountConnectivityException", schema := Shape.schema EFSMountConnectivityException }, { name := "EFSMountFailureException", schema := Shape.schema EFSMountFailureException }, { name := "EFSMountTimeoutException", schema := Shape.schema EFSMountTimeoutException }, { name := "ENILimitReachedException", schema := Shape.schema ENILimitReachedException }, { name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "InvalidRequestContentException", schema := Shape.schema InvalidRequestContentException }, { name := "InvalidRuntimeException", schema := Shape.schema InvalidRuntimeException }, { name := "InvalidSecurityGroupIDException", schema := Shape.schema InvalidSecurityGroupIDException }, { name := "InvalidSubnetIDException", schema := Shape.schema InvalidSubnetIDException }, { name := "InvalidZipFileException", schema := Shape.schema InvalidZipFileException }, { name := "KMSAccessDeniedException", schema := Shape.schema KMSAccessDeniedException }, { name := "KMSDisabledException", schema := Shape.schema KMSDisabledException }, { name := "KMSInvalidStateException", schema := Shape.schema KMSInvalidStateException }, { name := "KMSNotFoundException", schema := Shape.schema KMSNotFoundException }, { name := "NoPublishedVersionException", schema := Shape.schema NoPublishedVersionException }, { name := "RecursiveInvocationException", schema := Shape.schema RecursiveInvocationException }, { name := "RequestTooLargeException", schema := Shape.schema RequestTooLargeException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ResourceNotReadyException", schema := Shape.schema ResourceNotReadyException }, { name := "RuntimeAliasDeletedException", schema := Shape.schema RuntimeAliasDeletedException }, { name := "RuntimeVersionDeletedException", schema := Shape.schema RuntimeVersionDeletedException }, { name := "S3FilesMountConnectivityException", schema := Shape.schema S3FilesMountConnectivityException }, { name := "S3FilesMountFailureException", schema := Shape.schema S3FilesMountFailureException }, { name := "S3FilesMountTimeoutException", schema := Shape.schema S3FilesMountTimeoutException }, { name := "SerializedRequestEntityTooLargeException", schema := Shape.schema SerializedRequestEntityTooLargeException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "ServiceQuotaExceededException", schema := Shape.schema ServiceQuotaExceededException }, { name := "SnapStartException", schema := Shape.schema SnapStartException }, { name := "SnapStartNotReadyException", schema := Shape.schema SnapStartNotReadyException }, { name := "SnapStartRegenerationFailureException", schema := Shape.schema SnapStartRegenerationFailureException }, { name := "SnapStartTimeoutException", schema := Shape.schema SnapStartTimeoutException }, { name := "SubnetIPAddressLimitReachedException", schema := Shape.schema SubnetIPAddressLimitReachedException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }, { name := "UnsupportedMediaTypeException", schema := Shape.schema UnsupportedMediaTypeException }] } + | .listAliases => { name := "ListAliases", method := "GET", uri := "/2015-03-31/functions/{FunctionName}/aliases", input := (Shape.schema ListAliasesRequest), output := (Shape.schema ListAliasesResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .listCapacityProviders => { name := "ListCapacityProviders", method := "GET", uri := "/2025-11-30/capacity-providers", input := (Shape.schema ListCapacityProvidersRequest), output := (Shape.schema ListCapacityProvidersResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .listCodeSigningConfigs => { name := "ListCodeSigningConfigs", method := "GET", uri := "/2020-04-22/code-signing-configs", input := (Shape.schema ListCodeSigningConfigsRequest), output := (Shape.schema ListCodeSigningConfigsResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ServiceException", schema := Shape.schema ServiceException }] } + | .listDurableExecutionsByFunction => { name := "ListDurableExecutionsByFunction", method := "GET", uri := "/2025-12-01/functions/{FunctionName}/durable-executions", input := (Shape.schema ListDurableExecutionsByFunctionRequest), output := (Shape.schema ListDurableExecutionsByFunctionResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .listEventSourceMappings => { name := "ListEventSourceMappings", method := "GET", uri := "/2015-03-31/event-source-mappings", input := (Shape.schema ListEventSourceMappingsRequest), output := (Shape.schema ListEventSourceMappingsResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .listFunctionEventInvokeConfigs => { name := "ListFunctionEventInvokeConfigs", method := "GET", uri := "/2019-09-25/functions/{FunctionName}/event-invoke-config/list", input := (Shape.schema ListFunctionEventInvokeConfigsRequest), output := (Shape.schema ListFunctionEventInvokeConfigsResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .listFunctionUrlConfigs => { name := "ListFunctionUrlConfigs", method := "GET", uri := "/2021-10-31/functions/{FunctionName}/urls", input := (Shape.schema ListFunctionUrlConfigsRequest), output := (Shape.schema ListFunctionUrlConfigsResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .listFunctionVersionsByCapacityProvider => { name := "ListFunctionVersionsByCapacityProvider", method := "GET", uri := "/2025-11-30/capacity-providers/{CapacityProviderName}/function-versions", input := (Shape.schema ListFunctionVersionsByCapacityProviderRequest), output := (Shape.schema ListFunctionVersionsByCapacityProviderResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .listFunctions => { name := "ListFunctions", method := "GET", uri := "/2015-03-31/functions", input := (Shape.schema ListFunctionsRequest), output := (Shape.schema ListFunctionsResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .listFunctionsByCodeSigningConfig => { name := "ListFunctionsByCodeSigningConfig", method := "GET", uri := "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions", input := (Shape.schema ListFunctionsByCodeSigningConfigRequest), output := (Shape.schema ListFunctionsByCodeSigningConfigResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }] } + | .listLayerVersions => { name := "ListLayerVersions", method := "GET", uri := "/2018-10-31/layers/{LayerName}/versions", input := (Shape.schema ListLayerVersionsRequest), output := (Shape.schema ListLayerVersionsResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .listLayers => { name := "ListLayers", method := "GET", uri := "/2018-10-31/layers", input := (Shape.schema ListLayersRequest), output := (Shape.schema ListLayersResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .listProvisionedConcurrencyConfigs => { name := "ListProvisionedConcurrencyConfigs", method := "GET", uri := "/2019-09-30/functions/{FunctionName}/provisioned-concurrency?List=ALL", input := (Shape.schema ListProvisionedConcurrencyConfigsRequest), output := (Shape.schema ListProvisionedConcurrencyConfigsResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .listTags => { name := "ListTags", method := "GET", uri := "/2017-03-31/tags/{Resource}", input := (Shape.schema ListTagsRequest), output := (Shape.schema ListTagsResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .listVersionsByFunction => { name := "ListVersionsByFunction", method := "GET", uri := "/2015-03-31/functions/{FunctionName}/versions", input := (Shape.schema ListVersionsByFunctionRequest), output := (Shape.schema ListVersionsByFunctionResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .pauseDurableExecution => { name := "PauseDurableExecution", method := "POST", uri := "/2025-12-01/durable-executions/{DurableExecutionArn}/pause", input := (Shape.schema PauseDurableExecutionRequest), output := (Shape.schema PauseDurableExecutionResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "KMSAccessDeniedException", schema := Shape.schema KMSAccessDeniedException }, { name := "KMSDisabledException", schema := Shape.schema KMSDisabledException }, { name := "KMSInvalidStateException", schema := Shape.schema KMSInvalidStateException }, { name := "KMSNotFoundException", schema := Shape.schema KMSNotFoundException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .publishLayerVersion => { name := "PublishLayerVersion", method := "POST", uri := "/2018-10-31/layers/{LayerName}/versions", input := (Shape.schema PublishLayerVersionRequest), output := (Shape.schema PublishLayerVersionResponse), errors := [{ name := "CodeStorageExceededException", schema := Shape.schema CodeStorageExceededException }, { name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .publishVersion => { name := "PublishVersion", method := "POST", uri := "/2015-03-31/functions/{FunctionName}/versions", input := (Shape.schema PublishVersionRequest), output := (Shape.schema FunctionConfiguration), errors := [{ name := "CodeStorageExceededException", schema := Shape.schema CodeStorageExceededException }, { name := "FunctionVersionsPerCapacityProviderLimitExceededException", schema := Shape.schema FunctionVersionsPerCapacityProviderLimitExceededException }, { name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "PreconditionFailedException", schema := Shape.schema PreconditionFailedException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .putFunctionCodeSigningConfig => { name := "PutFunctionCodeSigningConfig", method := "PUT", uri := "/2020-06-30/functions/{FunctionName}/code-signing-config", input := (Shape.schema PutFunctionCodeSigningConfigRequest), output := (Shape.schema PutFunctionCodeSigningConfigResponse), errors := [{ name := "CodeSigningConfigNotFoundException", schema := Shape.schema CodeSigningConfigNotFoundException }, { name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .putFunctionConcurrency => { name := "PutFunctionConcurrency", method := "PUT", uri := "/2017-10-31/functions/{FunctionName}/concurrency", input := (Shape.schema PutFunctionConcurrencyRequest), output := (Shape.schema Concurrency), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .putFunctionEventInvokeConfig => { name := "PutFunctionEventInvokeConfig", method := "PUT", uri := "/2019-09-25/functions/{FunctionName}/event-invoke-config", input := (Shape.schema PutFunctionEventInvokeConfigRequest), output := (Shape.schema FunctionEventInvokeConfig), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .putFunctionRecursionConfig => { name := "PutFunctionRecursionConfig", method := "PUT", uri := "/2024-08-31/functions/{FunctionName}/recursion-config", input := (Shape.schema PutFunctionRecursionConfigRequest), output := (Shape.schema PutFunctionRecursionConfigResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .putFunctionScalingConfig => { name := "PutFunctionScalingConfig", method := "PUT", uri := "/2025-11-30/functions/{FunctionName}/function-scaling-config", input := (Shape.schema PutFunctionScalingConfigRequest), output := (Shape.schema PutFunctionScalingConfigResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .putProvisionedConcurrencyConfig => { name := "PutProvisionedConcurrencyConfig", method := "PUT", uri := "/2019-09-30/functions/{FunctionName}/provisioned-concurrency", input := (Shape.schema PutProvisionedConcurrencyConfigRequest), output := (Shape.schema PutProvisionedConcurrencyConfigResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .putResourcePolicy => { name := "PutResourcePolicy", method := "PUT", uri := "/2026-07-09/resource-policy/{ResourceArn}", input := (Shape.schema PutResourcePolicyRequest), output := (Shape.schema PutResourcePolicyResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "PolicyLengthExceededException", schema := Shape.schema PolicyLengthExceededException }, { name := "PreconditionFailedException", schema := Shape.schema PreconditionFailedException }, { name := "PublicPolicyException", schema := Shape.schema PublicPolicyException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .putRuntimeManagementConfig => { name := "PutRuntimeManagementConfig", method := "PUT", uri := "/2021-07-20/functions/{FunctionName}/runtime-management-config", input := (Shape.schema PutRuntimeManagementConfigRequest), output := (Shape.schema PutRuntimeManagementConfigResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .removeLayerVersionPermission => { name := "RemoveLayerVersionPermission", method := "DELETE", uri := "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}", input := (Shape.schema RemoveLayerVersionPermissionRequest), output := (Shape.schema Unit), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "PreconditionFailedException", schema := Shape.schema PreconditionFailedException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .removePermission => { name := "RemovePermission", method := "DELETE", uri := "/2015-03-31/functions/{FunctionName}/policy/{StatementId}", input := (Shape.schema RemovePermissionRequest), output := (Shape.schema Unit), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "PreconditionFailedException", schema := Shape.schema PreconditionFailedException }, { name := "PublicPolicyException", schema := Shape.schema PublicPolicyException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .resumeDurableExecution => { name := "ResumeDurableExecution", method := "POST", uri := "/2025-12-01/durable-executions/{DurableExecutionArn}/resume", input := (Shape.schema ResumeDurableExecutionRequest), output := (Shape.schema ResumeDurableExecutionResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "KMSAccessDeniedException", schema := Shape.schema KMSAccessDeniedException }, { name := "KMSDisabledException", schema := Shape.schema KMSDisabledException }, { name := "KMSInvalidStateException", schema := Shape.schema KMSInvalidStateException }, { name := "KMSNotFoundException", schema := Shape.schema KMSNotFoundException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .sendDurableExecutionCallbackFailure => { name := "SendDurableExecutionCallbackFailure", method := "POST", uri := "/2025-12-01/durable-execution-callbacks/{CallbackId}/fail", input := (Shape.schema SendDurableExecutionCallbackFailureRequest), output := (Shape.schema SendDurableExecutionCallbackFailureResponse), errors := [{ name := "CallbackTimeoutException", schema := Shape.schema CallbackTimeoutException }, { name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "KMSAccessDeniedException", schema := Shape.schema KMSAccessDeniedException }, { name := "KMSDisabledException", schema := Shape.schema KMSDisabledException }, { name := "KMSInvalidStateException", schema := Shape.schema KMSInvalidStateException }, { name := "KMSNotFoundException", schema := Shape.schema KMSNotFoundException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .sendDurableExecutionCallbackHeartbeat => { name := "SendDurableExecutionCallbackHeartbeat", method := "POST", uri := "/2025-12-01/durable-execution-callbacks/{CallbackId}/heartbeat", input := (Shape.schema SendDurableExecutionCallbackHeartbeatRequest), output := (Shape.schema SendDurableExecutionCallbackHeartbeatResponse), errors := [{ name := "CallbackTimeoutException", schema := Shape.schema CallbackTimeoutException }, { name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .sendDurableExecutionCallbackSuccess => { name := "SendDurableExecutionCallbackSuccess", method := "POST", uri := "/2025-12-01/durable-execution-callbacks/{CallbackId}/succeed", input := (Shape.schema SendDurableExecutionCallbackSuccessRequest), output := (Shape.schema SendDurableExecutionCallbackSuccessResponse), errors := [{ name := "CallbackTimeoutException", schema := Shape.schema CallbackTimeoutException }, { name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "KMSAccessDeniedException", schema := Shape.schema KMSAccessDeniedException }, { name := "KMSDisabledException", schema := Shape.schema KMSDisabledException }, { name := "KMSInvalidStateException", schema := Shape.schema KMSInvalidStateException }, { name := "KMSNotFoundException", schema := Shape.schema KMSNotFoundException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .stopDurableExecution => { name := "StopDurableExecution", method := "POST", uri := "/2025-12-01/durable-executions/{DurableExecutionArn}/stop", input := (Shape.schema StopDurableExecutionRequest), output := (Shape.schema StopDurableExecutionResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "KMSAccessDeniedException", schema := Shape.schema KMSAccessDeniedException }, { name := "KMSDisabledException", schema := Shape.schema KMSDisabledException }, { name := "KMSInvalidStateException", schema := Shape.schema KMSInvalidStateException }, { name := "KMSNotFoundException", schema := Shape.schema KMSNotFoundException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .tagResource => { name := "TagResource", method := "POST", uri := "/2017-03-31/tags/{Resource}", input := (Shape.schema TagResourceRequest), output := (Shape.schema Unit), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .untagResource => { name := "UntagResource", method := "DELETE", uri := "/2017-03-31/tags/{Resource}", input := (Shape.schema UntagResourceRequest), output := (Shape.schema Unit), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .updateAlias => { name := "UpdateAlias", method := "PUT", uri := "/2015-03-31/functions/{FunctionName}/aliases/{Name}", input := (Shape.schema UpdateAliasRequest), output := (Shape.schema AliasConfiguration), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "PreconditionFailedException", schema := Shape.schema PreconditionFailedException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .updateCapacityProvider => { name := "UpdateCapacityProvider", method := "PUT", uri := "/2025-11-30/capacity-providers/{CapacityProviderName}", input := (Shape.schema UpdateCapacityProviderRequest), output := (Shape.schema UpdateCapacityProviderResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .updateCodeSigningConfig => { name := "UpdateCodeSigningConfig", method := "PUT", uri := "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}", input := (Shape.schema UpdateCodeSigningConfigRequest), output := (Shape.schema UpdateCodeSigningConfigResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }] } + | .updateEventSourceMapping => { name := "UpdateEventSourceMapping", method := "PUT", uri := "/2015-03-31/event-source-mappings/{UUID}", input := (Shape.schema UpdateEventSourceMappingRequest), output := (Shape.schema EventSourceMappingConfiguration), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceInUseException", schema := Shape.schema ResourceInUseException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .updateFunctionCode => { name := "UpdateFunctionCode", method := "PUT", uri := "/2015-03-31/functions/{FunctionName}/code", input := (Shape.schema UpdateFunctionCodeRequest), output := (Shape.schema FunctionConfiguration), errors := [{ name := "CodeSigningConfigNotFoundException", schema := Shape.schema CodeSigningConfigNotFoundException }, { name := "CodeStorageExceededException", schema := Shape.schema CodeStorageExceededException }, { name := "CodeVerificationFailedException", schema := Shape.schema CodeVerificationFailedException }, { name := "InvalidCodeSignatureException", schema := Shape.schema InvalidCodeSignatureException }, { name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "PreconditionFailedException", schema := Shape.schema PreconditionFailedException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .updateFunctionConfiguration => { name := "UpdateFunctionConfiguration", method := "PUT", uri := "/2015-03-31/functions/{FunctionName}/configuration", input := (Shape.schema UpdateFunctionConfigurationRequest), output := (Shape.schema FunctionConfiguration), errors := [{ name := "CodeSigningConfigNotFoundException", schema := Shape.schema CodeSigningConfigNotFoundException }, { name := "CodeVerificationFailedException", schema := Shape.schema CodeVerificationFailedException }, { name := "InvalidCodeSignatureException", schema := Shape.schema InvalidCodeSignatureException }, { name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "PreconditionFailedException", schema := Shape.schema PreconditionFailedException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .updateFunctionEventInvokeConfig => { name := "UpdateFunctionEventInvokeConfig", method := "POST", uri := "/2019-09-25/functions/{FunctionName}/event-invoke-config", input := (Shape.schema UpdateFunctionEventInvokeConfigRequest), output := (Shape.schema FunctionEventInvokeConfig), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + | .updateFunctionUrlConfig => { name := "UpdateFunctionUrlConfig", method := "PUT", uri := "/2021-10-31/functions/{FunctionName}/url", input := (Shape.schema UpdateFunctionUrlConfigRequest), output := (Shape.schema UpdateFunctionUrlConfigResponse), errors := [{ name := "InvalidParameterValueException", schema := Shape.schema InvalidParameterValueException }, { name := "ResourceConflictException", schema := Shape.schema ResourceConflictException }, { name := "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "ServiceException", schema := Shape.schema ServiceException }, { name := "TooManyRequestsException", schema := Shape.schema TooManyRequestsException }] } + +/-- How the service goes over HTTP. -/ +def wire : Wire api := Wire.of service info + (fun op => match op with + | .addLayerVersionPermission => fun (x : AddLayerVersionPermissionRequest) => Shape.toValue x + | .addPermission => fun (x : AddPermissionRequest) => Shape.toValue x + | .checkpointDurableExecution => fun (x : CheckpointDurableExecutionRequest) => Shape.toValue x + | .createAlias => fun (x : CreateAliasRequest) => Shape.toValue x + | .createCapacityProvider => fun (x : CreateCapacityProviderRequest) => Shape.toValue x + | .createCodeSigningConfig => fun (x : CreateCodeSigningConfigRequest) => Shape.toValue x + | .createEventSourceMapping => fun (x : CreateEventSourceMappingRequest) => Shape.toValue x + | .createFunction => fun (x : CreateFunctionRequest) => Shape.toValue x + | .createFunctionUrlConfig => fun (x : CreateFunctionUrlConfigRequest) => Shape.toValue x + | .deleteAlias => fun (x : DeleteAliasRequest) => Shape.toValue x + | .deleteCapacityProvider => fun (x : DeleteCapacityProviderRequest) => Shape.toValue x + | .deleteCodeSigningConfig => fun (x : DeleteCodeSigningConfigRequest) => Shape.toValue x + | .deleteDurableExecution => fun (x : DeleteDurableExecutionRequest) => Shape.toValue x + | .deleteEventSourceMapping => fun (x : DeleteEventSourceMappingRequest) => Shape.toValue x + | .deleteFunction => fun (x : DeleteFunctionRequest) => Shape.toValue x + | .deleteFunctionCodeSigningConfig => fun (x : DeleteFunctionCodeSigningConfigRequest) => Shape.toValue x + | .deleteFunctionConcurrency => fun (x : DeleteFunctionConcurrencyRequest) => Shape.toValue x + | .deleteFunctionEventInvokeConfig => fun (x : DeleteFunctionEventInvokeConfigRequest) => Shape.toValue x + | .deleteFunctionUrlConfig => fun (x : DeleteFunctionUrlConfigRequest) => Shape.toValue x + | .deleteLayerVersion => fun (x : DeleteLayerVersionRequest) => Shape.toValue x + | .deleteProvisionedConcurrencyConfig => fun (x : DeleteProvisionedConcurrencyConfigRequest) => Shape.toValue x + | .deleteResourcePolicy => fun (x : DeleteResourcePolicyRequest) => Shape.toValue x + | .getAccountSettings => fun (x : GetAccountSettingsRequest) => Shape.toValue x + | .getAlias => fun (x : GetAliasRequest) => Shape.toValue x + | .getCapacityProvider => fun (x : GetCapacityProviderRequest) => Shape.toValue x + | .getCodeSigningConfig => fun (x : GetCodeSigningConfigRequest) => Shape.toValue x + | .getDurableExecution => fun (x : GetDurableExecutionRequest) => Shape.toValue x + | .getDurableExecutionHistory => fun (x : GetDurableExecutionHistoryRequest) => Shape.toValue x + | .getDurableExecutionState => fun (x : GetDurableExecutionStateRequest) => Shape.toValue x + | .getEventSourceMapping => fun (x : GetEventSourceMappingRequest) => Shape.toValue x + | .getFunction => fun (x : GetFunctionRequest) => Shape.toValue x + | .getFunctionCodeSigningConfig => fun (x : GetFunctionCodeSigningConfigRequest) => Shape.toValue x + | .getFunctionConcurrency => fun (x : GetFunctionConcurrencyRequest) => Shape.toValue x + | .getFunctionConfiguration => fun (x : GetFunctionConfigurationRequest) => Shape.toValue x + | .getFunctionEventInvokeConfig => fun (x : GetFunctionEventInvokeConfigRequest) => Shape.toValue x + | .getFunctionRecursionConfig => fun (x : GetFunctionRecursionConfigRequest) => Shape.toValue x + | .getFunctionScalingConfig => fun (x : GetFunctionScalingConfigRequest) => Shape.toValue x + | .getFunctionUrlConfig => fun (x : GetFunctionUrlConfigRequest) => Shape.toValue x + | .getLayerVersion => fun (x : GetLayerVersionRequest) => Shape.toValue x + | .getLayerVersionByArn => fun (x : GetLayerVersionByArnRequest) => Shape.toValue x + | .getLayerVersionPolicy => fun (x : GetLayerVersionPolicyRequest) => Shape.toValue x + | .getPolicy => fun (x : GetPolicyRequest) => Shape.toValue x + | .getProvisionedConcurrencyConfig => fun (x : GetProvisionedConcurrencyConfigRequest) => Shape.toValue x + | .getResourcePolicy => fun (x : GetResourcePolicyRequest) => Shape.toValue x + | .getRuntimeManagementConfig => fun (x : GetRuntimeManagementConfigRequest) => Shape.toValue x + | .invoke => fun (x : InvocationRequest) => Shape.toValue x + | .invokeAsync => fun (x : InvokeAsyncRequest) => Shape.toValue x + | .invokeWithResponseStream => fun (x : InvokeWithResponseStreamRequest) => Shape.toValue x + | .listAliases => fun (x : ListAliasesRequest) => Shape.toValue x + | .listCapacityProviders => fun (x : ListCapacityProvidersRequest) => Shape.toValue x + | .listCodeSigningConfigs => fun (x : ListCodeSigningConfigsRequest) => Shape.toValue x + | .listDurableExecutionsByFunction => fun (x : ListDurableExecutionsByFunctionRequest) => Shape.toValue x + | .listEventSourceMappings => fun (x : ListEventSourceMappingsRequest) => Shape.toValue x + | .listFunctionEventInvokeConfigs => fun (x : ListFunctionEventInvokeConfigsRequest) => Shape.toValue x + | .listFunctionUrlConfigs => fun (x : ListFunctionUrlConfigsRequest) => Shape.toValue x + | .listFunctionVersionsByCapacityProvider => fun (x : ListFunctionVersionsByCapacityProviderRequest) => Shape.toValue x + | .listFunctions => fun (x : ListFunctionsRequest) => Shape.toValue x + | .listFunctionsByCodeSigningConfig => fun (x : ListFunctionsByCodeSigningConfigRequest) => Shape.toValue x + | .listLayerVersions => fun (x : ListLayerVersionsRequest) => Shape.toValue x + | .listLayers => fun (x : ListLayersRequest) => Shape.toValue x + | .listProvisionedConcurrencyConfigs => fun (x : ListProvisionedConcurrencyConfigsRequest) => Shape.toValue x + | .listTags => fun (x : ListTagsRequest) => Shape.toValue x + | .listVersionsByFunction => fun (x : ListVersionsByFunctionRequest) => Shape.toValue x + | .pauseDurableExecution => fun (x : PauseDurableExecutionRequest) => Shape.toValue x + | .publishLayerVersion => fun (x : PublishLayerVersionRequest) => Shape.toValue x + | .publishVersion => fun (x : PublishVersionRequest) => Shape.toValue x + | .putFunctionCodeSigningConfig => fun (x : PutFunctionCodeSigningConfigRequest) => Shape.toValue x + | .putFunctionConcurrency => fun (x : PutFunctionConcurrencyRequest) => Shape.toValue x + | .putFunctionEventInvokeConfig => fun (x : PutFunctionEventInvokeConfigRequest) => Shape.toValue x + | .putFunctionRecursionConfig => fun (x : PutFunctionRecursionConfigRequest) => Shape.toValue x + | .putFunctionScalingConfig => fun (x : PutFunctionScalingConfigRequest) => Shape.toValue x + | .putProvisionedConcurrencyConfig => fun (x : PutProvisionedConcurrencyConfigRequest) => Shape.toValue x + | .putResourcePolicy => fun (x : PutResourcePolicyRequest) => Shape.toValue x + | .putRuntimeManagementConfig => fun (x : PutRuntimeManagementConfigRequest) => Shape.toValue x + | .removeLayerVersionPermission => fun (x : RemoveLayerVersionPermissionRequest) => Shape.toValue x + | .removePermission => fun (x : RemovePermissionRequest) => Shape.toValue x + | .resumeDurableExecution => fun (x : ResumeDurableExecutionRequest) => Shape.toValue x + | .sendDurableExecutionCallbackFailure => fun (x : SendDurableExecutionCallbackFailureRequest) => Shape.toValue x + | .sendDurableExecutionCallbackHeartbeat => fun (x : SendDurableExecutionCallbackHeartbeatRequest) => Shape.toValue x + | .sendDurableExecutionCallbackSuccess => fun (x : SendDurableExecutionCallbackSuccessRequest) => Shape.toValue x + | .stopDurableExecution => fun (x : StopDurableExecutionRequest) => Shape.toValue x + | .tagResource => fun (x : TagResourceRequest) => Shape.toValue x + | .untagResource => fun (x : UntagResourceRequest) => Shape.toValue x + | .updateAlias => fun (x : UpdateAliasRequest) => Shape.toValue x + | .updateCapacityProvider => fun (x : UpdateCapacityProviderRequest) => Shape.toValue x + | .updateCodeSigningConfig => fun (x : UpdateCodeSigningConfigRequest) => Shape.toValue x + | .updateEventSourceMapping => fun (x : UpdateEventSourceMappingRequest) => Shape.toValue x + | .updateFunctionCode => fun (x : UpdateFunctionCodeRequest) => Shape.toValue x + | .updateFunctionConfiguration => fun (x : UpdateFunctionConfigurationRequest) => Shape.toValue x + | .updateFunctionEventInvokeConfig => fun (x : UpdateFunctionEventInvokeConfigRequest) => Shape.toValue x + | .updateFunctionUrlConfig => fun (x : UpdateFunctionUrlConfigRequest) => Shape.toValue x +) + (fun op => match op with + | .addLayerVersionPermission => fun v => (Shape.ofValue v : Except String AddLayerVersionPermissionResponse) + | .addPermission => fun v => (Shape.ofValue v : Except String AddPermissionResponse) + | .checkpointDurableExecution => fun v => (Shape.ofValue v : Except String CheckpointDurableExecutionResponse) + | .createAlias => fun v => (Shape.ofValue v : Except String AliasConfiguration) + | .createCapacityProvider => fun v => (Shape.ofValue v : Except String CreateCapacityProviderResponse) + | .createCodeSigningConfig => fun v => (Shape.ofValue v : Except String CreateCodeSigningConfigResponse) + | .createEventSourceMapping => fun v => (Shape.ofValue v : Except String EventSourceMappingConfiguration) + | .createFunction => fun v => (Shape.ofValue v : Except String FunctionConfiguration) + | .createFunctionUrlConfig => fun v => (Shape.ofValue v : Except String CreateFunctionUrlConfigResponse) + | .deleteAlias => fun v => (Shape.ofValue v : Except String Unit) + | .deleteCapacityProvider => fun v => (Shape.ofValue v : Except String DeleteCapacityProviderResponse) + | .deleteCodeSigningConfig => fun v => (Shape.ofValue v : Except String DeleteCodeSigningConfigResponse) + | .deleteDurableExecution => fun v => (Shape.ofValue v : Except String DeleteDurableExecutionResponse) + | .deleteEventSourceMapping => fun v => (Shape.ofValue v : Except String EventSourceMappingConfiguration) + | .deleteFunction => fun v => (Shape.ofValue v : Except String DeleteFunctionResponse) + | .deleteFunctionCodeSigningConfig => fun v => (Shape.ofValue v : Except String Unit) + | .deleteFunctionConcurrency => fun v => (Shape.ofValue v : Except String Unit) + | .deleteFunctionEventInvokeConfig => fun v => (Shape.ofValue v : Except String Unit) + | .deleteFunctionUrlConfig => fun v => (Shape.ofValue v : Except String Unit) + | .deleteLayerVersion => fun v => (Shape.ofValue v : Except String Unit) + | .deleteProvisionedConcurrencyConfig => fun v => (Shape.ofValue v : Except String Unit) + | .deleteResourcePolicy => fun v => (Shape.ofValue v : Except String Unit) + | .getAccountSettings => fun v => (Shape.ofValue v : Except String GetAccountSettingsResponse) + | .getAlias => fun v => (Shape.ofValue v : Except String AliasConfiguration) + | .getCapacityProvider => fun v => (Shape.ofValue v : Except String GetCapacityProviderResponse) + | .getCodeSigningConfig => fun v => (Shape.ofValue v : Except String GetCodeSigningConfigResponse) + | .getDurableExecution => fun v => (Shape.ofValue v : Except String GetDurableExecutionResponse) + | .getDurableExecutionHistory => fun v => (Shape.ofValue v : Except String GetDurableExecutionHistoryResponse) + | .getDurableExecutionState => fun v => (Shape.ofValue v : Except String GetDurableExecutionStateResponse) + | .getEventSourceMapping => fun v => (Shape.ofValue v : Except String EventSourceMappingConfiguration) + | .getFunction => fun v => (Shape.ofValue v : Except String GetFunctionResponse) + | .getFunctionCodeSigningConfig => fun v => (Shape.ofValue v : Except String GetFunctionCodeSigningConfigResponse) + | .getFunctionConcurrency => fun v => (Shape.ofValue v : Except String GetFunctionConcurrencyResponse) + | .getFunctionConfiguration => fun v => (Shape.ofValue v : Except String FunctionConfiguration) + | .getFunctionEventInvokeConfig => fun v => (Shape.ofValue v : Except String FunctionEventInvokeConfig) + | .getFunctionRecursionConfig => fun v => (Shape.ofValue v : Except String GetFunctionRecursionConfigResponse) + | .getFunctionScalingConfig => fun v => (Shape.ofValue v : Except String GetFunctionScalingConfigResponse) + | .getFunctionUrlConfig => fun v => (Shape.ofValue v : Except String GetFunctionUrlConfigResponse) + | .getLayerVersion => fun v => (Shape.ofValue v : Except String GetLayerVersionResponse) + | .getLayerVersionByArn => fun v => (Shape.ofValue v : Except String GetLayerVersionResponse) + | .getLayerVersionPolicy => fun v => (Shape.ofValue v : Except String GetLayerVersionPolicyResponse) + | .getPolicy => fun v => (Shape.ofValue v : Except String GetPolicyResponse) + | .getProvisionedConcurrencyConfig => fun v => (Shape.ofValue v : Except String GetProvisionedConcurrencyConfigResponse) + | .getResourcePolicy => fun v => (Shape.ofValue v : Except String GetResourcePolicyResponse) + | .getRuntimeManagementConfig => fun v => (Shape.ofValue v : Except String GetRuntimeManagementConfigResponse) + | .invoke => fun v => (Shape.ofValue v : Except String InvocationResponse) + | .invokeAsync => fun v => (Shape.ofValue v : Except String InvokeAsyncResponse) + | .invokeWithResponseStream => fun v => (Shape.ofValue v : Except String InvokeWithResponseStreamResponse) + | .listAliases => fun v => (Shape.ofValue v : Except String ListAliasesResponse) + | .listCapacityProviders => fun v => (Shape.ofValue v : Except String ListCapacityProvidersResponse) + | .listCodeSigningConfigs => fun v => (Shape.ofValue v : Except String ListCodeSigningConfigsResponse) + | .listDurableExecutionsByFunction => fun v => (Shape.ofValue v : Except String ListDurableExecutionsByFunctionResponse) + | .listEventSourceMappings => fun v => (Shape.ofValue v : Except String ListEventSourceMappingsResponse) + | .listFunctionEventInvokeConfigs => fun v => (Shape.ofValue v : Except String ListFunctionEventInvokeConfigsResponse) + | .listFunctionUrlConfigs => fun v => (Shape.ofValue v : Except String ListFunctionUrlConfigsResponse) + | .listFunctionVersionsByCapacityProvider => fun v => (Shape.ofValue v : Except String ListFunctionVersionsByCapacityProviderResponse) + | .listFunctions => fun v => (Shape.ofValue v : Except String ListFunctionsResponse) + | .listFunctionsByCodeSigningConfig => fun v => (Shape.ofValue v : Except String ListFunctionsByCodeSigningConfigResponse) + | .listLayerVersions => fun v => (Shape.ofValue v : Except String ListLayerVersionsResponse) + | .listLayers => fun v => (Shape.ofValue v : Except String ListLayersResponse) + | .listProvisionedConcurrencyConfigs => fun v => (Shape.ofValue v : Except String ListProvisionedConcurrencyConfigsResponse) + | .listTags => fun v => (Shape.ofValue v : Except String ListTagsResponse) + | .listVersionsByFunction => fun v => (Shape.ofValue v : Except String ListVersionsByFunctionResponse) + | .pauseDurableExecution => fun v => (Shape.ofValue v : Except String PauseDurableExecutionResponse) + | .publishLayerVersion => fun v => (Shape.ofValue v : Except String PublishLayerVersionResponse) + | .publishVersion => fun v => (Shape.ofValue v : Except String FunctionConfiguration) + | .putFunctionCodeSigningConfig => fun v => (Shape.ofValue v : Except String PutFunctionCodeSigningConfigResponse) + | .putFunctionConcurrency => fun v => (Shape.ofValue v : Except String Concurrency) + | .putFunctionEventInvokeConfig => fun v => (Shape.ofValue v : Except String FunctionEventInvokeConfig) + | .putFunctionRecursionConfig => fun v => (Shape.ofValue v : Except String PutFunctionRecursionConfigResponse) + | .putFunctionScalingConfig => fun v => (Shape.ofValue v : Except String PutFunctionScalingConfigResponse) + | .putProvisionedConcurrencyConfig => fun v => (Shape.ofValue v : Except String PutProvisionedConcurrencyConfigResponse) + | .putResourcePolicy => fun v => (Shape.ofValue v : Except String PutResourcePolicyResponse) + | .putRuntimeManagementConfig => fun v => (Shape.ofValue v : Except String PutRuntimeManagementConfigResponse) + | .removeLayerVersionPermission => fun v => (Shape.ofValue v : Except String Unit) + | .removePermission => fun v => (Shape.ofValue v : Except String Unit) + | .resumeDurableExecution => fun v => (Shape.ofValue v : Except String ResumeDurableExecutionResponse) + | .sendDurableExecutionCallbackFailure => fun v => (Shape.ofValue v : Except String SendDurableExecutionCallbackFailureResponse) + | .sendDurableExecutionCallbackHeartbeat => fun v => (Shape.ofValue v : Except String SendDurableExecutionCallbackHeartbeatResponse) + | .sendDurableExecutionCallbackSuccess => fun v => (Shape.ofValue v : Except String SendDurableExecutionCallbackSuccessResponse) + | .stopDurableExecution => fun v => (Shape.ofValue v : Except String StopDurableExecutionResponse) + | .tagResource => fun v => (Shape.ofValue v : Except String Unit) + | .untagResource => fun v => (Shape.ofValue v : Except String Unit) + | .updateAlias => fun v => (Shape.ofValue v : Except String AliasConfiguration) + | .updateCapacityProvider => fun v => (Shape.ofValue v : Except String UpdateCapacityProviderResponse) + | .updateCodeSigningConfig => fun v => (Shape.ofValue v : Except String UpdateCodeSigningConfigResponse) + | .updateEventSourceMapping => fun v => (Shape.ofValue v : Except String EventSourceMappingConfiguration) + | .updateFunctionCode => fun v => (Shape.ofValue v : Except String FunctionConfiguration) + | .updateFunctionConfiguration => fun v => (Shape.ofValue v : Except String FunctionConfiguration) + | .updateFunctionEventInvokeConfig => fun v => (Shape.ofValue v : Except String FunctionEventInvokeConfig) + | .updateFunctionUrlConfig => fun v => (Shape.ofValue v : Except String UpdateFunctionUrlConfigResponse) +) + (fun op => match op with + | .addLayerVersionPermission => AddLayerVersionPermissionError.ofWire + | .addPermission => AddPermissionError.ofWire + | .checkpointDurableExecution => CheckpointDurableExecutionError.ofWire + | .createAlias => CreateAliasError.ofWire + | .createCapacityProvider => CreateCapacityProviderError.ofWire + | .createCodeSigningConfig => CreateCodeSigningConfigError.ofWire + | .createEventSourceMapping => CreateEventSourceMappingError.ofWire + | .createFunction => CreateFunctionError.ofWire + | .createFunctionUrlConfig => CreateFunctionUrlConfigError.ofWire + | .deleteAlias => DeleteAliasError.ofWire + | .deleteCapacityProvider => DeleteCapacityProviderError.ofWire + | .deleteCodeSigningConfig => DeleteCodeSigningConfigError.ofWire + | .deleteDurableExecution => DeleteDurableExecutionError.ofWire + | .deleteEventSourceMapping => DeleteEventSourceMappingError.ofWire + | .deleteFunction => DeleteFunctionError.ofWire + | .deleteFunctionCodeSigningConfig => DeleteFunctionCodeSigningConfigError.ofWire + | .deleteFunctionConcurrency => DeleteFunctionConcurrencyError.ofWire + | .deleteFunctionEventInvokeConfig => DeleteFunctionEventInvokeConfigError.ofWire + | .deleteFunctionUrlConfig => DeleteFunctionUrlConfigError.ofWire + | .deleteLayerVersion => DeleteLayerVersionError.ofWire + | .deleteProvisionedConcurrencyConfig => DeleteProvisionedConcurrencyConfigError.ofWire + | .deleteResourcePolicy => DeleteResourcePolicyError.ofWire + | .getAccountSettings => GetAccountSettingsError.ofWire + | .getAlias => GetAliasError.ofWire + | .getCapacityProvider => GetCapacityProviderError.ofWire + | .getCodeSigningConfig => GetCodeSigningConfigError.ofWire + | .getDurableExecution => GetDurableExecutionError.ofWire + | .getDurableExecutionHistory => GetDurableExecutionHistoryError.ofWire + | .getDurableExecutionState => GetDurableExecutionStateError.ofWire + | .getEventSourceMapping => GetEventSourceMappingError.ofWire + | .getFunction => GetFunctionError.ofWire + | .getFunctionCodeSigningConfig => GetFunctionCodeSigningConfigError.ofWire + | .getFunctionConcurrency => GetFunctionConcurrencyError.ofWire + | .getFunctionConfiguration => GetFunctionConfigurationError.ofWire + | .getFunctionEventInvokeConfig => GetFunctionEventInvokeConfigError.ofWire + | .getFunctionRecursionConfig => GetFunctionRecursionConfigError.ofWire + | .getFunctionScalingConfig => GetFunctionScalingConfigError.ofWire + | .getFunctionUrlConfig => GetFunctionUrlConfigError.ofWire + | .getLayerVersion => GetLayerVersionError.ofWire + | .getLayerVersionByArn => GetLayerVersionByArnError.ofWire + | .getLayerVersionPolicy => GetLayerVersionPolicyError.ofWire + | .getPolicy => GetPolicyError.ofWire + | .getProvisionedConcurrencyConfig => GetProvisionedConcurrencyConfigError.ofWire + | .getResourcePolicy => GetResourcePolicyError.ofWire + | .getRuntimeManagementConfig => GetRuntimeManagementConfigError.ofWire + | .invoke => InvokeError.ofWire + | .invokeAsync => InvokeAsyncError.ofWire + | .invokeWithResponseStream => InvokeWithResponseStreamError.ofWire + | .listAliases => ListAliasesError.ofWire + | .listCapacityProviders => ListCapacityProvidersError.ofWire + | .listCodeSigningConfigs => ListCodeSigningConfigsError.ofWire + | .listDurableExecutionsByFunction => ListDurableExecutionsByFunctionError.ofWire + | .listEventSourceMappings => ListEventSourceMappingsError.ofWire + | .listFunctionEventInvokeConfigs => ListFunctionEventInvokeConfigsError.ofWire + | .listFunctionUrlConfigs => ListFunctionUrlConfigsError.ofWire + | .listFunctionVersionsByCapacityProvider => ListFunctionVersionsByCapacityProviderError.ofWire + | .listFunctions => ListFunctionsError.ofWire + | .listFunctionsByCodeSigningConfig => ListFunctionsByCodeSigningConfigError.ofWire + | .listLayerVersions => ListLayerVersionsError.ofWire + | .listLayers => ListLayersError.ofWire + | .listProvisionedConcurrencyConfigs => ListProvisionedConcurrencyConfigsError.ofWire + | .listTags => ListTagsError.ofWire + | .listVersionsByFunction => ListVersionsByFunctionError.ofWire + | .pauseDurableExecution => PauseDurableExecutionError.ofWire + | .publishLayerVersion => PublishLayerVersionError.ofWire + | .publishVersion => PublishVersionError.ofWire + | .putFunctionCodeSigningConfig => PutFunctionCodeSigningConfigError.ofWire + | .putFunctionConcurrency => PutFunctionConcurrencyError.ofWire + | .putFunctionEventInvokeConfig => PutFunctionEventInvokeConfigError.ofWire + | .putFunctionRecursionConfig => PutFunctionRecursionConfigError.ofWire + | .putFunctionScalingConfig => PutFunctionScalingConfigError.ofWire + | .putProvisionedConcurrencyConfig => PutProvisionedConcurrencyConfigError.ofWire + | .putResourcePolicy => PutResourcePolicyError.ofWire + | .putRuntimeManagementConfig => PutRuntimeManagementConfigError.ofWire + | .removeLayerVersionPermission => RemoveLayerVersionPermissionError.ofWire + | .removePermission => RemovePermissionError.ofWire + | .resumeDurableExecution => ResumeDurableExecutionError.ofWire + | .sendDurableExecutionCallbackFailure => SendDurableExecutionCallbackFailureError.ofWire + | .sendDurableExecutionCallbackHeartbeat => SendDurableExecutionCallbackHeartbeatError.ofWire + | .sendDurableExecutionCallbackSuccess => SendDurableExecutionCallbackSuccessError.ofWire + | .stopDurableExecution => StopDurableExecutionError.ofWire + | .tagResource => TagResourceError.ofWire + | .untagResource => UntagResourceError.ofWire + | .updateAlias => UpdateAliasError.ofWire + | .updateCapacityProvider => UpdateCapacityProviderError.ofWire + | .updateCodeSigningConfig => UpdateCodeSigningConfigError.ofWire + | .updateEventSourceMapping => UpdateEventSourceMappingError.ofWire + | .updateFunctionCode => UpdateFunctionCodeError.ofWire + | .updateFunctionConfiguration => UpdateFunctionConfigurationError.ofWire + | .updateFunctionEventInvokeConfig => UpdateFunctionEventInvokeConfigError.ofWire + | .updateFunctionUrlConfig => UpdateFunctionUrlConfigError.ofWire +) + +/-- Adds permissions to the resource-based policy of a version of an Lambda layer . -/ +def addLayerVersionPermission {ε : Type} (input : AddLayerVersionPermissionRequest) : Eff api ε (Except AddLayerVersionPermissionError AddLayerVersionPermissionResponse) := + Eff.ask (api := api) .addLayerVersionPermission input + +/-- Grants a principal permission to use a function. -/ +def addPermission {ε : Type} (input : AddPermissionRequest) : Eff api ε (Except AddPermissionError AddPermissionResponse) := + Eff.ask (api := api) .addPermission input + +/-- Saves the progress of a durable function execution during runtime. -/ +def checkpointDurableExecution {ε : Type} (input : CheckpointDurableExecutionRequest) : Eff api ε (Except CheckpointDurableExecutionError CheckpointDurableExecutionResponse) := + Eff.ask (api := api) .checkpointDurableExecution input + +/-- Creates an alias for a Lambda Event Function version. -/ +def createAlias {ε : Type} (input : CreateAliasRequest) : Eff api ε (Except CreateAliasError AliasConfiguration) := + Eff.ask (api := api) .createAlias input + +/-- Creates a capacity provider that manages compute resources for Lambda Event Functions. -/ +def createCapacityProvider {ε : Type} (input : CreateCapacityProviderRequest) : Eff api ε (Except CreateCapacityProviderError CreateCapacityProviderResponse) := + Eff.ask (api := api) .createCapacityProvider input + +/-- Creates a code signing configuration. -/ +def createCodeSigningConfig {ε : Type} (input : CreateCodeSigningConfigRequest) : Eff api ε (Except CreateCodeSigningConfigError CreateCodeSigningConfigResponse) := + Eff.ask (api := api) .createCodeSigningConfig input + +/-- Creates a mapping between an event source and an Lambda Event Function. -/ +def createEventSourceMapping {ε : Type} (input : CreateEventSourceMappingRequest) : Eff api ε (Except CreateEventSourceMappingError EventSourceMappingConfiguration) := + Eff.ask (api := api) .createEventSourceMapping input + +/-- Creates a Lambda Event Function. -/ +def createFunction {ε : Type} (input : CreateFunctionRequest) : Eff api ε (Except CreateFunctionError FunctionConfiguration) := + Eff.ask (api := api) .createFunction input + +/-- Creates a Lambda function URL with the specified configuration parameters. -/ +def createFunctionUrlConfig {ε : Type} (input : CreateFunctionUrlConfigRequest) : Eff api ε (Except CreateFunctionUrlConfigError CreateFunctionUrlConfigResponse) := + Eff.ask (api := api) .createFunctionUrlConfig input + +/-- Deletes a Lambda Event Function alias . -/ +def deleteAlias {ε : Type} (input : DeleteAliasRequest) : Eff api ε (Except DeleteAliasError Unit) := + Eff.ask (api := api) .deleteAlias input + +/-- Deletes a capacity provider. -/ +def deleteCapacityProvider {ε : Type} (input : DeleteCapacityProviderRequest) : Eff api ε (Except DeleteCapacityProviderError DeleteCapacityProviderResponse) := + Eff.ask (api := api) .deleteCapacityProvider input + +/-- Deletes the code signing configuration. -/ +def deleteCodeSigningConfig {ε : Type} (input : DeleteCodeSigningConfigRequest) : Eff api ε (Except DeleteCodeSigningConfigError DeleteCodeSigningConfigResponse) := + Eff.ask (api := api) .deleteCodeSigningConfig input + +/-- Deletes a completed Lambda durable execution and its data. -/ +def deleteDurableExecution {ε : Type} (input : DeleteDurableExecutionRequest) : Eff api ε (Except DeleteDurableExecutionError DeleteDurableExecutionResponse) := + Eff.ask (api := api) .deleteDurableExecution input + +/-- Deletes an event source mapping . -/ +def deleteEventSourceMapping {ε : Type} (input : DeleteEventSourceMappingRequest) : Eff api ε (Except DeleteEventSourceMappingError EventSourceMappingConfiguration) := + Eff.ask (api := api) .deleteEventSourceMapping input + +/-- Deletes a Lambda Event Function. -/ +def deleteFunction {ε : Type} (input : DeleteFunctionRequest) : Eff api ε (Except DeleteFunctionError DeleteFunctionResponse) := + Eff.ask (api := api) .deleteFunction input + +/-- Removes the code signing configuration from the function. -/ +def deleteFunctionCodeSigningConfig {ε : Type} (input : DeleteFunctionCodeSigningConfigRequest) : Eff api ε (Except DeleteFunctionCodeSigningConfigError Unit) := + Eff.ask (api := api) .deleteFunctionCodeSigningConfig input + +/-- Removes a concurrent execution limit from a Lambda Event Function. -/ +def deleteFunctionConcurrency {ε : Type} (input : DeleteFunctionConcurrencyRequest) : Eff api ε (Except DeleteFunctionConcurrencyError Unit) := + Eff.ask (api := api) .deleteFunctionConcurrency input + +/-- Deletes the configuration for asynchronous invocation for a function, version, or alias. -/ +def deleteFunctionEventInvokeConfig {ε : Type} (input : DeleteFunctionEventInvokeConfigRequest) : Eff api ε (Except DeleteFunctionEventInvokeConfigError Unit) := + Eff.ask (api := api) .deleteFunctionEventInvokeConfig input + +/-- Deletes a Lambda function URL. -/ +def deleteFunctionUrlConfig {ε : Type} (input : DeleteFunctionUrlConfigRequest) : Eff api ε (Except DeleteFunctionUrlConfigError Unit) := + Eff.ask (api := api) .deleteFunctionUrlConfig input + +/-- Deletes a version of an Lambda layer . -/ +def deleteLayerVersion {ε : Type} (input : DeleteLayerVersionRequest) : Eff api ε (Except DeleteLayerVersionError Unit) := + Eff.ask (api := api) .deleteLayerVersion input + +/-- Deletes the provisioned concurrency configuration for a function. -/ +def deleteProvisionedConcurrencyConfig {ε : Type} (input : DeleteProvisionedConcurrencyConfigRequest) : Eff api ε (Except DeleteProvisionedConcurrencyConfigError Unit) := + Eff.ask (api := api) .deleteProvisionedConcurrencyConfig input + +/-- Deletes a resource-based policy from a Lambda resource. -/ +def deleteResourcePolicy {ε : Type} (input : DeleteResourcePolicyRequest) : Eff api ε (Except DeleteResourcePolicyError Unit) := + Eff.ask (api := api) .deleteResourcePolicy input + +/-- Retrieves details about your account's limits and usage in an Amazon Web Services Region. -/ +def getAccountSettings {ε : Type} (input : GetAccountSettingsRequest) : Eff api ε (Except GetAccountSettingsError GetAccountSettingsResponse) := + Eff.ask (api := api) .getAccountSettings input + +/-- Returns details about a Lambda Event Function alias . -/ +def getAlias {ε : Type} (input : GetAliasRequest) : Eff api ε (Except GetAliasError AliasConfiguration) := + Eff.ask (api := api) .getAlias input + +/-- Retrieves information about a specific capacity provider, including its configuration, state, and associated resources. -/ +def getCapacityProvider {ε : Type} (input : GetCapacityProviderRequest) : Eff api ε (Except GetCapacityProviderError GetCapacityProviderResponse) := + Eff.ask (api := api) .getCapacityProvider input + +/-- Returns information about the specified code signing configuration. -/ +def getCodeSigningConfig {ε : Type} (input : GetCodeSigningConfigRequest) : Eff api ε (Except GetCodeSigningConfigError GetCodeSigningConfigResponse) := + Eff.ask (api := api) .getCodeSigningConfig input + +/-- Retrieves detailed information about a specific durable execution , including its current status, input payload, result or error information, and execution metadata such as start time and usage statistics. -/ +def getDurableExecution {ε : Type} (input : GetDurableExecutionRequest) : Eff api ε (Except GetDurableExecutionError GetDurableExecutionResponse) := + Eff.ask (api := api) .getDurableExecution input + +/-- Retrieves the execution history for a durable execution , showing all the steps, callbacks, and events that occurred during the execution. -/ +def getDurableExecutionHistory {ε : Type} (input : GetDurableExecutionHistoryRequest) : Eff api ε (Except GetDurableExecutionHistoryError GetDurableExecutionHistoryResponse) := + Eff.ask (api := api) .getDurableExecutionHistory input + +/-- Retrieves the current execution state required for the replay process during durable function execution. -/ +def getDurableExecutionState {ε : Type} (input : GetDurableExecutionStateRequest) : Eff api ε (Except GetDurableExecutionStateError GetDurableExecutionStateResponse) := + Eff.ask (api := api) .getDurableExecutionState input + +/-- Returns details about an event source mapping. -/ +def getEventSourceMapping {ε : Type} (input : GetEventSourceMappingRequest) : Eff api ε (Except GetEventSourceMappingError EventSourceMappingConfiguration) := + Eff.ask (api := api) .getEventSourceMapping input + +/-- Returns information about a Lambda Event Function or function version, with a link to download the deployment package that's valid for 10 minutes. -/ +def getFunction {ε : Type} (input : GetFunctionRequest) : Eff api ε (Except GetFunctionError GetFunctionResponse) := + Eff.ask (api := api) .getFunction input + +/-- Returns the code signing configuration for the specified function. -/ +def getFunctionCodeSigningConfig {ε : Type} (input : GetFunctionCodeSigningConfigRequest) : Eff api ε (Except GetFunctionCodeSigningConfigError GetFunctionCodeSigningConfigResponse) := + Eff.ask (api := api) .getFunctionCodeSigningConfig input + +/-- Returns details about the reserved concurrency configuration for a function. -/ +def getFunctionConcurrency {ε : Type} (input : GetFunctionConcurrencyRequest) : Eff api ε (Except GetFunctionConcurrencyError GetFunctionConcurrencyResponse) := + Eff.ask (api := api) .getFunctionConcurrency input + +/-- Returns the version-specific settings of a Lambda Event Function or version. -/ +def getFunctionConfiguration {ε : Type} (input : GetFunctionConfigurationRequest) : Eff api ε (Except GetFunctionConfigurationError FunctionConfiguration) := + Eff.ask (api := api) .getFunctionConfiguration input + +/-- Retrieves the configuration for asynchronous invocation for a function, version, or alias. -/ +def getFunctionEventInvokeConfig {ε : Type} (input : GetFunctionEventInvokeConfigRequest) : Eff api ε (Except GetFunctionEventInvokeConfigError FunctionEventInvokeConfig) := + Eff.ask (api := api) .getFunctionEventInvokeConfig input + +/-- Returns your function's recursive loop detection configuration. -/ +def getFunctionRecursionConfig {ε : Type} (input : GetFunctionRecursionConfigRequest) : Eff api ε (Except GetFunctionRecursionConfigError GetFunctionRecursionConfigResponse) := + Eff.ask (api := api) .getFunctionRecursionConfig input + +/-- Retrieves the scaling configuration for a Lambda Managed Instances function. -/ +def getFunctionScalingConfig {ε : Type} (input : GetFunctionScalingConfigRequest) : Eff api ε (Except GetFunctionScalingConfigError GetFunctionScalingConfigResponse) := + Eff.ask (api := api) .getFunctionScalingConfig input + +/-- Returns details about a Lambda function URL. -/ +def getFunctionUrlConfig {ε : Type} (input : GetFunctionUrlConfigRequest) : Eff api ε (Except GetFunctionUrlConfigError GetFunctionUrlConfigResponse) := + Eff.ask (api := api) .getFunctionUrlConfig input + +/-- Returns information about a version of an Lambda layer , with a link to download the layer archive that's valid for 10 minutes. -/ +def getLayerVersion {ε : Type} (input : GetLayerVersionRequest) : Eff api ε (Except GetLayerVersionError GetLayerVersionResponse) := + Eff.ask (api := api) .getLayerVersion input + +/-- Returns information about a version of an Lambda layer , with a link to download the layer archive that's valid for 10 minutes. -/ +def getLayerVersionByArn {ε : Type} (input : GetLayerVersionByArnRequest) : Eff api ε (Except GetLayerVersionByArnError GetLayerVersionResponse) := + Eff.ask (api := api) .getLayerVersionByArn input + +/-- Returns the permission policy for a version of an Lambda layer . -/ +def getLayerVersionPolicy {ε : Type} (input : GetLayerVersionPolicyRequest) : Eff api ε (Except GetLayerVersionPolicyError GetLayerVersionPolicyResponse) := + Eff.ask (api := api) .getLayerVersionPolicy input + +/-- Returns the resource-based IAM policy for a function, version, or alias. -/ +def getPolicy {ε : Type} (input : GetPolicyRequest) : Eff api ε (Except GetPolicyError GetPolicyResponse) := + Eff.ask (api := api) .getPolicy input + +/-- Retrieves the provisioned concurrency configuration for a function's alias or version. -/ +def getProvisionedConcurrencyConfig {ε : Type} (input : GetProvisionedConcurrencyConfigRequest) : Eff api ε (Except GetProvisionedConcurrencyConfigError GetProvisionedConcurrencyConfigResponse) := + Eff.ask (api := api) .getProvisionedConcurrencyConfig input + +/-- Retrieves the resource-based policy attached to a Lambda resource. -/ +def getResourcePolicy {ε : Type} (input : GetResourcePolicyRequest) : Eff api ε (Except GetResourcePolicyError GetResourcePolicyResponse) := + Eff.ask (api := api) .getResourcePolicy input + +/-- Retrieves the runtime management configuration for a function's version. -/ +def getRuntimeManagementConfig {ε : Type} (input : GetRuntimeManagementConfigRequest) : Eff api ε (Except GetRuntimeManagementConfigError GetRuntimeManagementConfigResponse) := + Eff.ask (api := api) .getRuntimeManagementConfig input + +/-- Invokes a Lambda Event Function. -/ +def invoke {ε : Type} (input : InvocationRequest) : Eff api ε (Except InvokeError InvocationResponse) := + Eff.ask (api := api) .invoke input + +/-- For asynchronous function invocation, use Invoke . -/ +def invokeAsync {ε : Type} (input : InvokeAsyncRequest) : Eff api ε (Except InvokeAsyncError InvokeAsyncResponse) := + Eff.ask (api := api) .invokeAsync input + +/-- Configure your Lambda Event Functions to stream response payloads back to clients. -/ +def invokeWithResponseStream {ε : Type} (input : InvokeWithResponseStreamRequest) : Eff api ε (Except InvokeWithResponseStreamError InvokeWithResponseStreamResponse) := + Eff.ask (api := api) .invokeWithResponseStream input + +/-- Returns a list of aliases for a Lambda Event Function. -/ +def listAliases {ε : Type} (input : ListAliasesRequest) : Eff api ε (Except ListAliasesError ListAliasesResponse) := + Eff.ask (api := api) .listAliases input + +/-- Returns a list of capacity providers in your account. -/ +def listCapacityProviders {ε : Type} (input : ListCapacityProvidersRequest) : Eff api ε (Except ListCapacityProvidersError ListCapacityProvidersResponse) := + Eff.ask (api := api) .listCapacityProviders input + +/-- Returns a list of code signing configurations . -/ +def listCodeSigningConfigs {ε : Type} (input : ListCodeSigningConfigsRequest) : Eff api ε (Except ListCodeSigningConfigsError ListCodeSigningConfigsResponse) := + Eff.ask (api := api) .listCodeSigningConfigs input + +/-- Returns a list of durable executions for a specified Lambda function. -/ +def listDurableExecutionsByFunction {ε : Type} (input : ListDurableExecutionsByFunctionRequest) : Eff api ε (Except ListDurableExecutionsByFunctionError ListDurableExecutionsByFunctionResponse) := + Eff.ask (api := api) .listDurableExecutionsByFunction input + +/-- Lists event source mappings. -/ +def listEventSourceMappings {ε : Type} (input : ListEventSourceMappingsRequest) : Eff api ε (Except ListEventSourceMappingsError ListEventSourceMappingsResponse) := + Eff.ask (api := api) .listEventSourceMappings input + +/-- Retrieves a list of configurations for asynchronous invocation for a Lambda Event Function. -/ +def listFunctionEventInvokeConfigs {ε : Type} (input : ListFunctionEventInvokeConfigsRequest) : Eff api ε (Except ListFunctionEventInvokeConfigsError ListFunctionEventInvokeConfigsResponse) := + Eff.ask (api := api) .listFunctionEventInvokeConfigs input + +/-- Returns a list of Lambda function URLs for the specified function. -/ +def listFunctionUrlConfigs {ε : Type} (input : ListFunctionUrlConfigsRequest) : Eff api ε (Except ListFunctionUrlConfigsError ListFunctionUrlConfigsResponse) := + Eff.ask (api := api) .listFunctionUrlConfigs input + +/-- Returns a list of function versions that are configured to use a specific capacity provider. -/ +def listFunctionVersionsByCapacityProvider {ε : Type} (input : ListFunctionVersionsByCapacityProviderRequest) : Eff api ε (Except ListFunctionVersionsByCapacityProviderError ListFunctionVersionsByCapacityProviderResponse) := + Eff.ask (api := api) .listFunctionVersionsByCapacityProvider input + +/-- Returns a list of Lambda Event Functions, with the version-specific configuration of each. -/ +def listFunctions {ε : Type} (input : ListFunctionsRequest) : Eff api ε (Except ListFunctionsError ListFunctionsResponse) := + Eff.ask (api := api) .listFunctions input + +/-- List the functions that use the specified code signing configuration. -/ +def listFunctionsByCodeSigningConfig {ε : Type} (input : ListFunctionsByCodeSigningConfigRequest) : Eff api ε (Except ListFunctionsByCodeSigningConfigError ListFunctionsByCodeSigningConfigResponse) := + Eff.ask (api := api) .listFunctionsByCodeSigningConfig input + +/-- Lists the versions of an Lambda layer . -/ +def listLayerVersions {ε : Type} (input : ListLayerVersionsRequest) : Eff api ε (Except ListLayerVersionsError ListLayerVersionsResponse) := + Eff.ask (api := api) .listLayerVersions input + +/-- Lists Lambda layers and shows information about the latest version of each. -/ +def listLayers {ε : Type} (input : ListLayersRequest) : Eff api ε (Except ListLayersError ListLayersResponse) := + Eff.ask (api := api) .listLayers input + +/-- Retrieves a list of provisioned concurrency configurations for a function. -/ +def listProvisionedConcurrencyConfigs {ε : Type} (input : ListProvisionedConcurrencyConfigsRequest) : Eff api ε (Except ListProvisionedConcurrencyConfigsError ListProvisionedConcurrencyConfigsResponse) := + Eff.ask (api := api) .listProvisionedConcurrencyConfigs input + +/-- Returns a function, event source mapping, or code signing configuration's tags . -/ +def listTags {ε : Type} (input : ListTagsRequest) : Eff api ε (Except ListTagsError ListTagsResponse) := + Eff.ask (api := api) .listTags input + +/-- Returns a list of versions of a Lambda Event Function, with the version-specific configuration of each. -/ +def listVersionsByFunction {ε : Type} (input : ListVersionsByFunctionRequest) : Eff api ε (Except ListVersionsByFunctionError ListVersionsByFunctionResponse) := + Eff.ask (api := api) .listVersionsByFunction input + +/-- Pauses a running durable execution . -/ +def pauseDurableExecution {ε : Type} (input : PauseDurableExecutionRequest) : Eff api ε (Except PauseDurableExecutionError PauseDurableExecutionResponse) := + Eff.ask (api := api) .pauseDurableExecution input + +/-- Creates an Lambda layer from a ZIP archive. -/ +def publishLayerVersion {ε : Type} (input : PublishLayerVersionRequest) : Eff api ε (Except PublishLayerVersionError PublishLayerVersionResponse) := + Eff.ask (api := api) .publishLayerVersion input + +/-- Creates a version from the current code and configuration of a Lambda Event Function. -/ +def publishVersion {ε : Type} (input : PublishVersionRequest) : Eff api ε (Except PublishVersionError FunctionConfiguration) := + Eff.ask (api := api) .publishVersion input + +/-- Update the code signing configuration for the function. -/ +def putFunctionCodeSigningConfig {ε : Type} (input : PutFunctionCodeSigningConfigRequest) : Eff api ε (Except PutFunctionCodeSigningConfigError PutFunctionCodeSigningConfigResponse) := + Eff.ask (api := api) .putFunctionCodeSigningConfig input + +/-- Sets the maximum number of simultaneous executions for a Lambda Event Function, and reserves capacity for that concurrency level. -/ +def putFunctionConcurrency {ε : Type} (input : PutFunctionConcurrencyRequest) : Eff api ε (Except PutFunctionConcurrencyError Concurrency) := + Eff.ask (api := api) .putFunctionConcurrency input + +/-- Configures options for asynchronous invocation on a function, version, or alias. -/ +def putFunctionEventInvokeConfig {ε : Type} (input : PutFunctionEventInvokeConfigRequest) : Eff api ε (Except PutFunctionEventInvokeConfigError FunctionEventInvokeConfig) := + Eff.ask (api := api) .putFunctionEventInvokeConfig input + +/-- Sets the recursive loop detection configuration for a Lambda Event Function. -/ +def putFunctionRecursionConfig {ε : Type} (input : PutFunctionRecursionConfigRequest) : Eff api ε (Except PutFunctionRecursionConfigError PutFunctionRecursionConfigResponse) := + Eff.ask (api := api) .putFunctionRecursionConfig input + +/-- Sets the scaling configuration for a Lambda Managed Instances function. -/ +def putFunctionScalingConfig {ε : Type} (input : PutFunctionScalingConfigRequest) : Eff api ε (Except PutFunctionScalingConfigError PutFunctionScalingConfigResponse) := + Eff.ask (api := api) .putFunctionScalingConfig input + +/-- Adds a provisioned concurrency configuration to a function's alias or version. -/ +def putProvisionedConcurrencyConfig {ε : Type} (input : PutProvisionedConcurrencyConfigRequest) : Eff api ε (Except PutProvisionedConcurrencyConfigError PutProvisionedConcurrencyConfigResponse) := + Eff.ask (api := api) .putProvisionedConcurrencyConfig input + +/-- Adds a resource-based policy to a Lambda resource. -/ +def putResourcePolicy {ε : Type} (input : PutResourcePolicyRequest) : Eff api ε (Except PutResourcePolicyError PutResourcePolicyResponse) := + Eff.ask (api := api) .putResourcePolicy input + +/-- Sets the runtime management configuration for a function's version. -/ +def putRuntimeManagementConfig {ε : Type} (input : PutRuntimeManagementConfigRequest) : Eff api ε (Except PutRuntimeManagementConfigError PutRuntimeManagementConfigResponse) := + Eff.ask (api := api) .putRuntimeManagementConfig input + +/-- Removes a statement from the permissions policy for a version of an Lambda layer . -/ +def removeLayerVersionPermission {ε : Type} (input : RemoveLayerVersionPermissionRequest) : Eff api ε (Except RemoveLayerVersionPermissionError Unit) := + Eff.ask (api := api) .removeLayerVersionPermission input + +/-- Revokes function-use permission from an Amazon Web Services service or another Amazon Web Services account. -/ +def removePermission {ε : Type} (input : RemovePermissionRequest) : Eff api ε (Except RemovePermissionError Unit) := + Eff.ask (api := api) .removePermission input + +/-- Resumes a paused durable execution . -/ +def resumeDurableExecution {ε : Type} (input : ResumeDurableExecutionRequest) : Eff api ε (Except ResumeDurableExecutionError ResumeDurableExecutionResponse) := + Eff.ask (api := api) .resumeDurableExecution input + +/-- Sends a failure response for a callback operation in a durable execution. -/ +def sendDurableExecutionCallbackFailure {ε : Type} (input : SendDurableExecutionCallbackFailureRequest) : Eff api ε (Except SendDurableExecutionCallbackFailureError SendDurableExecutionCallbackFailureResponse) := + Eff.ask (api := api) .sendDurableExecutionCallbackFailure input + +/-- Sends a heartbeat signal for a long-running callback operation to prevent timeout. -/ +def sendDurableExecutionCallbackHeartbeat {ε : Type} (input : SendDurableExecutionCallbackHeartbeatRequest) : Eff api ε (Except SendDurableExecutionCallbackHeartbeatError SendDurableExecutionCallbackHeartbeatResponse) := + Eff.ask (api := api) .sendDurableExecutionCallbackHeartbeat input + +/-- Sends a successful completion response for a callback operation in a durable execution. -/ +def sendDurableExecutionCallbackSuccess {ε : Type} (input : SendDurableExecutionCallbackSuccessRequest) : Eff api ε (Except SendDurableExecutionCallbackSuccessError SendDurableExecutionCallbackSuccessResponse) := + Eff.ask (api := api) .sendDurableExecutionCallbackSuccess input + +/-- Stops a running or paused durable execution . -/ +def stopDurableExecution {ε : Type} (input : StopDurableExecutionRequest) : Eff api ε (Except StopDurableExecutionError StopDurableExecutionResponse) := + Eff.ask (api := api) .stopDurableExecution input + +/-- Adds tags to a function, event source mapping, or code signing configuration. -/ +def tagResource {ε : Type} (input : TagResourceRequest) : Eff api ε (Except TagResourceError Unit) := + Eff.ask (api := api) .tagResource input + +/-- Removes tags from a function, event source mapping, or code signing configuration. -/ +def untagResource {ε : Type} (input : UntagResourceRequest) : Eff api ε (Except UntagResourceError Unit) := + Eff.ask (api := api) .untagResource input + +/-- Updates the configuration of a Lambda Event Function alias . -/ +def updateAlias {ε : Type} (input : UpdateAliasRequest) : Eff api ε (Except UpdateAliasError AliasConfiguration) := + Eff.ask (api := api) .updateAlias input + +/-- Updates the configuration of an existing capacity provider. -/ +def updateCapacityProvider {ε : Type} (input : UpdateCapacityProviderRequest) : Eff api ε (Except UpdateCapacityProviderError UpdateCapacityProviderResponse) := + Eff.ask (api := api) .updateCapacityProvider input + +/-- Update the code signing configuration. -/ +def updateCodeSigningConfig {ε : Type} (input : UpdateCodeSigningConfigRequest) : Eff api ε (Except UpdateCodeSigningConfigError UpdateCodeSigningConfigResponse) := + Eff.ask (api := api) .updateCodeSigningConfig input + +/-- Updates an event source mapping. -/ +def updateEventSourceMapping {ε : Type} (input : UpdateEventSourceMappingRequest) : Eff api ε (Except UpdateEventSourceMappingError EventSourceMappingConfiguration) := + Eff.ask (api := api) .updateEventSourceMapping input + +/-- Updates a Lambda Event Function's code. -/ +def updateFunctionCode {ε : Type} (input : UpdateFunctionCodeRequest) : Eff api ε (Except UpdateFunctionCodeError FunctionConfiguration) := + Eff.ask (api := api) .updateFunctionCode input + +/-- Modifies the version-specific settings of a Lambda Event Function. -/ +def updateFunctionConfiguration {ε : Type} (input : UpdateFunctionConfigurationRequest) : Eff api ε (Except UpdateFunctionConfigurationError FunctionConfiguration) := + Eff.ask (api := api) .updateFunctionConfiguration input + +/-- Updates the configuration for asynchronous invocation for a function, version, or alias. -/ +def updateFunctionEventInvokeConfig {ε : Type} (input : UpdateFunctionEventInvokeConfigRequest) : Eff api ε (Except UpdateFunctionEventInvokeConfigError FunctionEventInvokeConfig) := + Eff.ask (api := api) .updateFunctionEventInvokeConfig input + +/-- Updates the configuration for a function URL of a Lambda Event Function. -/ +def updateFunctionUrlConfig {ε : Type} (input : UpdateFunctionUrlConfigRequest) : Eff api ε (Except UpdateFunctionUrlConfigError UpdateFunctionUrlConfigResponse) := + Eff.ask (api := api) .updateFunctionUrlConfig input + +end Distilled.AWS.Lambda diff --git a/lean/Distilled/AWS/Services/S3.lean b/lean/Distilled/AWS/Services/S3.lean new file mode 100644 index 0000000000..9cb9ae7d19 --- /dev/null +++ b/lean/Distilled/AWS/Services/S3.lean @@ -0,0 +1,14286 @@ +-- Generated by distilled-gen from s3-2006-03-01.json. Do not edit. +import Distilled.Protocol + +namespace Distilled.AWS.S3 +open Lean Distilled + +set_option linter.unusedVariables false +set_option maxRecDepth 4096 +set_option maxHeartbeats 0 + +/-- Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before permanently removing all parts of the upload. -/ +structure AbortIncompleteMultipartUpload where + /-- Specifies the number of days after which Amazon S3 aborts an incomplete multipart upload. -/ + daysAfterInitiation : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AbortIncompleteMultipartUpload where + schema := .struct "AbortIncompleteMultipartUpload" [({ name := "DaysAfterInitiation" }, .int)] + toValue x := record [putOpt "DaysAfterInitiation" x.daysAfterInitiation] + ofValue v := do + let daysAfterInitiation ← v.opt "DaysAfterInitiation" + return { daysAfterInitiation } + +/-- You might receive this error for several reasons. -/ +structure AccessDenied where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape AccessDenied where + schema := .struct "AccessDenied" [] + toValue _ := record [] + ofValue _ := do + return { } + +inductive AnalyticsS3ExportFileFormat where + | csv +deriving DecidableEq, Repr, Inhabited + +def AnalyticsS3ExportFileFormat.wire : AnalyticsS3ExportFileFormat → String + | .csv => "CSV" + +def AnalyticsS3ExportFileFormat.wireValues : List (String × AnalyticsS3ExportFileFormat) := [ + ("CSV", .csv)] + +def AnalyticsS3ExportFileFormat.ofWire (text : String) : Except String AnalyticsS3ExportFileFormat := + match List.find? (·.1 == text) AnalyticsS3ExportFileFormat.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AnalyticsS3ExportFileFormat has no value {text}" + +instance : Key AnalyticsS3ExportFileFormat := ⟨AnalyticsS3ExportFileFormat.wire, AnalyticsS3ExportFileFormat.ofWire⟩ + +instance : Shape AnalyticsS3ExportFileFormat where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AnalyticsS3ExportFileFormat.ofWire text + | _ => .error "expected a string" + +inductive AnnotationConfigurationState where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def AnnotationConfigurationState.wire : AnnotationConfigurationState → String + | .disabled => "DISABLED" + | .enabled => "ENABLED" + +def AnnotationConfigurationState.wireValues : List (String × AnnotationConfigurationState) := [ + ("DISABLED", .disabled), + ("ENABLED", .enabled)] + +def AnnotationConfigurationState.ofWire (text : String) : Except String AnnotationConfigurationState := + match List.find? (·.1 == text) AnnotationConfigurationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AnnotationConfigurationState has no value {text}" + +instance : Key AnnotationConfigurationState := ⟨AnnotationConfigurationState.wire, AnnotationConfigurationState.ofWire⟩ + +instance : Shape AnnotationConfigurationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AnnotationConfigurationState.ofWire text + | _ => .error "expected a string" + +inductive AnnotationDirective where + | copy + | exclude +deriving DecidableEq, Repr, Inhabited + +def AnnotationDirective.wire : AnnotationDirective → String + | .copy => "COPY" + | .exclude => "EXCLUDE" + +def AnnotationDirective.wireValues : List (String × AnnotationDirective) := [ + ("COPY", .copy), + ("EXCLUDE", .exclude)] + +def AnnotationDirective.ofWire (text : String) : Except String AnnotationDirective := + match List.find? (·.1 == text) AnnotationDirective.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"AnnotationDirective has no value {text}" + +instance : Key AnnotationDirective := ⟨AnnotationDirective.wire, AnnotationDirective.ofWire⟩ + +instance : Shape AnnotationDirective where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => AnnotationDirective.ofWire text + | _ => .error "expected a string" + +/-- The request would exceed the maximum number of annotations allowed per object. -/ +structure AnnotationLimitExceeded where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape AnnotationLimitExceeded where + schema := .struct "AnnotationLimitExceeded" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- The annotation name exceeds 512 bytes. -/ +structure AnnotationNameTooLong where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape AnnotationNameTooLong where + schema := .struct "AnnotationNameTooLong" [] + toValue _ := record [] + ofValue _ := do + return { } + +inductive ArchiveStatus where + | archivE_ACCESS + | deeP_ARCHIVE_ACCESS +deriving DecidableEq, Repr, Inhabited + +def ArchiveStatus.wire : ArchiveStatus → String + | .archivE_ACCESS => "ARCHIVE_ACCESS" + | .deeP_ARCHIVE_ACCESS => "DEEP_ARCHIVE_ACCESS" + +def ArchiveStatus.wireValues : List (String × ArchiveStatus) := [ + ("ARCHIVE_ACCESS", .archivE_ACCESS), + ("DEEP_ARCHIVE_ACCESS", .deeP_ARCHIVE_ACCESS)] + +def ArchiveStatus.ofWire (text : String) : Except String ArchiveStatus := + match List.find? (·.1 == text) ArchiveStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ArchiveStatus has no value {text}" + +instance : Key ArchiveStatus := ⟨ArchiveStatus.wire, ArchiveStatus.ofWire⟩ + +instance : Shape ArchiveStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ArchiveStatus.ofWire text + | _ => .error "expected a string" + +/-- In terms of implementation, a Bucket is a resource. -/ +structure Bucket where + /-- The Amazon Resource Name (ARN) of the S3 bucket. -/ + bucketArn : Option String := none + /-- BucketRegion indicates the Amazon Web Services region where the bucket is located. -/ + bucketRegion : Option String := none + /-- Date the bucket was created. -/ + creationDate : Option Timestamp := none + /-- The name of the bucket. -/ + name : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Bucket where + schema := .struct "Bucket" [({ name := "BucketArn" }, .string), + ({ name := "BucketRegion" }, .string), + ({ name := "CreationDate" }, (.time none)), + ({ name := "Name" }, .string)] + toValue x := record [putOpt "BucketArn" x.bucketArn, putOpt "BucketRegion" x.bucketRegion, putOpt "CreationDate" x.creationDate, putOpt "Name" x.name] + ofValue v := do + let bucketArn ← v.opt "BucketArn" + let bucketRegion ← v.opt "BucketRegion" + let creationDate ← v.opt "CreationDate" + let name ← v.opt "Name" + return { bucketArn, bucketRegion, creationDate, name } + +inductive BucketAbacStatus where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def BucketAbacStatus.wire : BucketAbacStatus → String + | .disabled => "Disabled" + | .enabled => "Enabled" + +def BucketAbacStatus.wireValues : List (String × BucketAbacStatus) := [ + ("Disabled", .disabled), + ("Enabled", .enabled)] + +def BucketAbacStatus.ofWire (text : String) : Except String BucketAbacStatus := + match List.find? (·.1 == text) BucketAbacStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BucketAbacStatus has no value {text}" + +instance : Key BucketAbacStatus := ⟨BucketAbacStatus.wire, BucketAbacStatus.ofWire⟩ + +instance : Shape BucketAbacStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BucketAbacStatus.ofWire text + | _ => .error "expected a string" + +inductive BucketAccelerateStatus where + | enabled + | suspended +deriving DecidableEq, Repr, Inhabited + +def BucketAccelerateStatus.wire : BucketAccelerateStatus → String + | .enabled => "Enabled" + | .suspended => "Suspended" + +def BucketAccelerateStatus.wireValues : List (String × BucketAccelerateStatus) := [ + ("Enabled", .enabled), + ("Suspended", .suspended)] + +def BucketAccelerateStatus.ofWire (text : String) : Except String BucketAccelerateStatus := + match List.find? (·.1 == text) BucketAccelerateStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BucketAccelerateStatus has no value {text}" + +instance : Key BucketAccelerateStatus := ⟨BucketAccelerateStatus.wire, BucketAccelerateStatus.ofWire⟩ + +instance : Shape BucketAccelerateStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BucketAccelerateStatus.ofWire text + | _ => .error "expected a string" + +/-- The requested bucket name is not available. -/ +structure BucketAlreadyExists where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape BucketAlreadyExists where + schema := .struct "BucketAlreadyExists" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- The bucket you tried to create already exists, and you own it. -/ +structure BucketAlreadyOwnedByYou where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape BucketAlreadyOwnedByYou where + schema := .struct "BucketAlreadyOwnedByYou" [] + toValue _ := record [] + ofValue _ := do + return { } + +inductive BucketCannedACL where + | authenticated_read + | «private» + | public_read + | public_read_write +deriving DecidableEq, Repr, Inhabited + +def BucketCannedACL.wire : BucketCannedACL → String + | .authenticated_read => "authenticated-read" + | .«private» => "private" + | .public_read => "public-read" + | .public_read_write => "public-read-write" + +def BucketCannedACL.wireValues : List (String × BucketCannedACL) := [ + ("authenticated-read", .authenticated_read), + ("private", .«private»), + ("public-read", .public_read), + ("public-read-write", .public_read_write)] + +def BucketCannedACL.ofWire (text : String) : Except String BucketCannedACL := + match List.find? (·.1 == text) BucketCannedACL.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BucketCannedACL has no value {text}" + +instance : Key BucketCannedACL := ⟨BucketCannedACL.wire, BucketCannedACL.ofWire⟩ + +instance : Shape BucketCannedACL where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BucketCannedACL.ofWire text + | _ => .error "expected a string" + +inductive BucketLocationConstraint where + | eu + | af_south_1 + | ap_east_1 + | ap_east_2 + | ap_northeast_1 + | ap_northeast_2 + | ap_northeast_3 + | ap_south_1 + | ap_south_2 + | ap_southeast_1 + | ap_southeast_2 + | ap_southeast_3 + | ap_southeast_4 + | ap_southeast_5 + | ap_southeast_6 + | ap_southeast_7 + | ca_central_1 + | ca_west_1 + | cn_north_1 + | cn_northwest_1 + | eu_central_1 + | eu_central_2 + | eu_north_1 + | eu_south_1 + | eu_south_2 + | eu_west_1 + | eu_west_2 + | eu_west_3 + | il_central_1 + | me_central_1 + | me_south_1 + | mx_central_1 + | sa_east_1 + | us_east_2 + | us_gov_east_1 + | us_gov_west_1 + | us_west_1 + | us_west_2 +deriving DecidableEq, Repr, Inhabited + +def BucketLocationConstraint.wire : BucketLocationConstraint → String + | .eu => "EU" + | .af_south_1 => "af-south-1" + | .ap_east_1 => "ap-east-1" + | .ap_east_2 => "ap-east-2" + | .ap_northeast_1 => "ap-northeast-1" + | .ap_northeast_2 => "ap-northeast-2" + | .ap_northeast_3 => "ap-northeast-3" + | .ap_south_1 => "ap-south-1" + | .ap_south_2 => "ap-south-2" + | .ap_southeast_1 => "ap-southeast-1" + | .ap_southeast_2 => "ap-southeast-2" + | .ap_southeast_3 => "ap-southeast-3" + | .ap_southeast_4 => "ap-southeast-4" + | .ap_southeast_5 => "ap-southeast-5" + | .ap_southeast_6 => "ap-southeast-6" + | .ap_southeast_7 => "ap-southeast-7" + | .ca_central_1 => "ca-central-1" + | .ca_west_1 => "ca-west-1" + | .cn_north_1 => "cn-north-1" + | .cn_northwest_1 => "cn-northwest-1" + | .eu_central_1 => "eu-central-1" + | .eu_central_2 => "eu-central-2" + | .eu_north_1 => "eu-north-1" + | .eu_south_1 => "eu-south-1" + | .eu_south_2 => "eu-south-2" + | .eu_west_1 => "eu-west-1" + | .eu_west_2 => "eu-west-2" + | .eu_west_3 => "eu-west-3" + | .il_central_1 => "il-central-1" + | .me_central_1 => "me-central-1" + | .me_south_1 => "me-south-1" + | .mx_central_1 => "mx-central-1" + | .sa_east_1 => "sa-east-1" + | .us_east_2 => "us-east-2" + | .us_gov_east_1 => "us-gov-east-1" + | .us_gov_west_1 => "us-gov-west-1" + | .us_west_1 => "us-west-1" + | .us_west_2 => "us-west-2" + +def BucketLocationConstraint.wireValues : List (String × BucketLocationConstraint) := [ + ("EU", .eu), + ("af-south-1", .af_south_1), + ("ap-east-1", .ap_east_1), + ("ap-east-2", .ap_east_2), + ("ap-northeast-1", .ap_northeast_1), + ("ap-northeast-2", .ap_northeast_2), + ("ap-northeast-3", .ap_northeast_3), + ("ap-south-1", .ap_south_1), + ("ap-south-2", .ap_south_2), + ("ap-southeast-1", .ap_southeast_1), + ("ap-southeast-2", .ap_southeast_2), + ("ap-southeast-3", .ap_southeast_3), + ("ap-southeast-4", .ap_southeast_4), + ("ap-southeast-5", .ap_southeast_5), + ("ap-southeast-6", .ap_southeast_6), + ("ap-southeast-7", .ap_southeast_7), + ("ca-central-1", .ca_central_1), + ("ca-west-1", .ca_west_1), + ("cn-north-1", .cn_north_1), + ("cn-northwest-1", .cn_northwest_1), + ("eu-central-1", .eu_central_1), + ("eu-central-2", .eu_central_2), + ("eu-north-1", .eu_north_1), + ("eu-south-1", .eu_south_1), + ("eu-south-2", .eu_south_2), + ("eu-west-1", .eu_west_1), + ("eu-west-2", .eu_west_2), + ("eu-west-3", .eu_west_3), + ("il-central-1", .il_central_1), + ("me-central-1", .me_central_1), + ("me-south-1", .me_south_1), + ("mx-central-1", .mx_central_1), + ("sa-east-1", .sa_east_1), + ("us-east-2", .us_east_2), + ("us-gov-east-1", .us_gov_east_1), + ("us-gov-west-1", .us_gov_west_1), + ("us-west-1", .us_west_1), + ("us-west-2", .us_west_2)] + +def BucketLocationConstraint.ofWire (text : String) : Except String BucketLocationConstraint := + match List.find? (·.1 == text) BucketLocationConstraint.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BucketLocationConstraint has no value {text}" + +instance : Key BucketLocationConstraint := ⟨BucketLocationConstraint.wire, BucketLocationConstraint.ofWire⟩ + +instance : Shape BucketLocationConstraint where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BucketLocationConstraint.ofWire text + | _ => .error "expected a string" + +inductive BucketLogsPermission where + | fulL_CONTROL + | read + | write +deriving DecidableEq, Repr, Inhabited + +def BucketLogsPermission.wire : BucketLogsPermission → String + | .fulL_CONTROL => "FULL_CONTROL" + | .read => "READ" + | .write => "WRITE" + +def BucketLogsPermission.wireValues : List (String × BucketLogsPermission) := [ + ("FULL_CONTROL", .fulL_CONTROL), + ("READ", .read), + ("WRITE", .write)] + +def BucketLogsPermission.ofWire (text : String) : Except String BucketLogsPermission := + match List.find? (·.1 == text) BucketLogsPermission.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BucketLogsPermission has no value {text}" + +instance : Key BucketLogsPermission := ⟨BucketLogsPermission.wire, BucketLogsPermission.ofWire⟩ + +instance : Shape BucketLogsPermission where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BucketLogsPermission.ofWire text + | _ => .error "expected a string" + +inductive BucketNamespace where + | accounT_REGIONAL + | global +deriving DecidableEq, Repr, Inhabited + +def BucketNamespace.wire : BucketNamespace → String + | .accounT_REGIONAL => "account-regional" + | .global => "global" + +def BucketNamespace.wireValues : List (String × BucketNamespace) := [ + ("account-regional", .accounT_REGIONAL), + ("global", .global)] + +def BucketNamespace.ofWire (text : String) : Except String BucketNamespace := + match List.find? (·.1 == text) BucketNamespace.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BucketNamespace has no value {text}" + +instance : Key BucketNamespace := ⟨BucketNamespace.wire, BucketNamespace.ofWire⟩ + +instance : Shape BucketNamespace where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BucketNamespace.ofWire text + | _ => .error "expected a string" + +inductive BucketType where + | directory +deriving DecidableEq, Repr, Inhabited + +def BucketType.wire : BucketType → String + | .directory => "Directory" + +def BucketType.wireValues : List (String × BucketType) := [ + ("Directory", .directory)] + +def BucketType.ofWire (text : String) : Except String BucketType := + match List.find? (·.1 == text) BucketType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BucketType has no value {text}" + +instance : Key BucketType := ⟨BucketType.wire, BucketType.ofWire⟩ + +instance : Shape BucketType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BucketType.ofWire text + | _ => .error "expected a string" + +inductive BucketVersioningStatus where + | enabled + | suspended +deriving DecidableEq, Repr, Inhabited + +def BucketVersioningStatus.wire : BucketVersioningStatus → String + | .enabled => "Enabled" + | .suspended => "Suspended" + +def BucketVersioningStatus.wireValues : List (String × BucketVersioningStatus) := [ + ("Enabled", .enabled), + ("Suspended", .suspended)] + +def BucketVersioningStatus.ofWire (text : String) : Except String BucketVersioningStatus := + match List.find? (·.1 == text) BucketVersioningStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"BucketVersioningStatus has no value {text}" + +instance : Key BucketVersioningStatus := ⟨BucketVersioningStatus.wire, BucketVersioningStatus.ofWire⟩ + +instance : Shape BucketVersioningStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => BucketVersioningStatus.ofWire text + | _ => .error "expected a string" + +/-- Specifies a cross-origin access rule for an Amazon S3 bucket. -/ +structure CORSRule where + /-- Headers that are specified in the Access-Control-Request-Headers header. -/ + allowedHeaders : Option (List String) := none + /-- An HTTP method that you allow the origin to execute. -/ + allowedMethods : (List String) + /-- One or more origins you want customers to be able to access the bucket from. -/ + allowedOrigins : (List String) + /-- One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object). -/ + exposeHeaders : Option (List String) := none + /-- Unique identifier for the rule. -/ + id : Option String := none + /-- The time in seconds that your browser is to cache the preflight response for the specified resource. -/ + maxAgeSeconds : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CORSRule where + schema := .struct "CORSRule" [({ name := "AllowedHeaders", xmlName := some "AllowedHeader", flattened := true }, (.list .string "member")), + ({ name := "AllowedMethods", required := true, xmlName := some "AllowedMethod", flattened := true }, (.list .string "member")), + ({ name := "AllowedOrigins", required := true, xmlName := some "AllowedOrigin", flattened := true }, (.list .string "member")), + ({ name := "ExposeHeaders", xmlName := some "ExposeHeader", flattened := true }, (.list .string "member")), + ({ name := "ID" }, .string), + ({ name := "MaxAgeSeconds" }, .int)] + toValue x := record [putOpt "AllowedHeaders" x.allowedHeaders, put "AllowedMethods" x.allowedMethods, put "AllowedOrigins" x.allowedOrigins, putOpt "ExposeHeaders" x.exposeHeaders, putOpt "ID" x.id, putOpt "MaxAgeSeconds" x.maxAgeSeconds] + ofValue v := do + let allowedHeaders ← v.opt "AllowedHeaders" + let allowedMethods ← v.req "AllowedMethods" + let allowedOrigins ← v.req "AllowedOrigins" + let exposeHeaders ← v.opt "ExposeHeaders" + let id ← v.opt "ID" + let maxAgeSeconds ← v.opt "MaxAgeSeconds" + return { allowedHeaders, allowedMethods, allowedOrigins, exposeHeaders, id, maxAgeSeconds } + +inductive ChecksumAlgorithm where + | crc32 + | crc32c + | crc64nvme + | md5 + | sha1 + | sha256 + | sha512 + | xxhash128 + | xxhash3 + | xxhash64 +deriving DecidableEq, Repr, Inhabited + +def ChecksumAlgorithm.wire : ChecksumAlgorithm → String + | .crc32 => "CRC32" + | .crc32c => "CRC32C" + | .crc64nvme => "CRC64NVME" + | .md5 => "MD5" + | .sha1 => "SHA1" + | .sha256 => "SHA256" + | .sha512 => "SHA512" + | .xxhash128 => "XXHASH128" + | .xxhash3 => "XXHASH3" + | .xxhash64 => "XXHASH64" + +def ChecksumAlgorithm.wireValues : List (String × ChecksumAlgorithm) := [ + ("CRC32", .crc32), + ("CRC32C", .crc32c), + ("CRC64NVME", .crc64nvme), + ("MD5", .md5), + ("SHA1", .sha1), + ("SHA256", .sha256), + ("SHA512", .sha512), + ("XXHASH128", .xxhash128), + ("XXHASH3", .xxhash3), + ("XXHASH64", .xxhash64)] + +def ChecksumAlgorithm.ofWire (text : String) : Except String ChecksumAlgorithm := + match List.find? (·.1 == text) ChecksumAlgorithm.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ChecksumAlgorithm has no value {text}" + +instance : Key ChecksumAlgorithm := ⟨ChecksumAlgorithm.wire, ChecksumAlgorithm.ofWire⟩ + +instance : Shape ChecksumAlgorithm where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ChecksumAlgorithm.ofWire text + | _ => .error "expected a string" + +inductive ChecksumMode where + | enabled +deriving DecidableEq, Repr, Inhabited + +def ChecksumMode.wire : ChecksumMode → String + | .enabled => "ENABLED" + +def ChecksumMode.wireValues : List (String × ChecksumMode) := [ + ("ENABLED", .enabled)] + +def ChecksumMode.ofWire (text : String) : Except String ChecksumMode := + match List.find? (·.1 == text) ChecksumMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ChecksumMode has no value {text}" + +instance : Key ChecksumMode := ⟨ChecksumMode.wire, ChecksumMode.ofWire⟩ + +instance : Shape ChecksumMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ChecksumMode.ofWire text + | _ => .error "expected a string" + +inductive ChecksumType where + | composite + | fulL_OBJECT +deriving DecidableEq, Repr, Inhabited + +def ChecksumType.wire : ChecksumType → String + | .composite => "COMPOSITE" + | .fulL_OBJECT => "FULL_OBJECT" + +def ChecksumType.wireValues : List (String × ChecksumType) := [ + ("COMPOSITE", .composite), + ("FULL_OBJECT", .fulL_OBJECT)] + +def ChecksumType.ofWire (text : String) : Except String ChecksumType := + match List.find? (·.1 == text) ChecksumType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ChecksumType has no value {text}" + +instance : Key ChecksumType := ⟨ChecksumType.wire, ChecksumType.ofWire⟩ + +instance : Shape ChecksumType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ChecksumType.ofWire text + | _ => .error "expected a string" + +/-- Container for all (if there are any) keys between Prefix and the next occurrence of the string specified by a delimiter. -/ +structure CommonPrefix where + /-- Container for the specified common prefix. -/ + «prefix» : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CommonPrefix where + schema := .struct "CommonPrefix" [({ name := "Prefix" }, .string)] + toValue x := record [putOpt "Prefix" x.«prefix»] + ofValue v := do + let «prefix» ← v.opt "Prefix" + return { «prefix» } + +/-- Details of the parts that were uploaded. -/ +structure CompletedPart where + /-- The Base64 encoded, 32-bit CRC32 checksum of the part. -/ + checksumCRC32 : Option String := none + /-- The Base64 encoded, 32-bit CRC32C checksum of the part. -/ + checksumCRC32C : Option String := none + /-- The Base64 encoded, 64-bit CRC64NVME checksum of the part. -/ + checksumCRC64NVME : Option String := none + /-- The Base64 encoded, 128-bit MD5 digest of the part. -/ + checksumMD5 : Option String := none + /-- The Base64 encoded, 160-bit SHA1 checksum of the part. -/ + checksumSHA1 : Option String := none + /-- The Base64 encoded, 256-bit SHA256 checksum of the part. -/ + checksumSHA256 : Option String := none + /-- The Base64 encoded, 512-bit SHA512 digest of the part. -/ + checksumSHA512 : Option String := none + /-- The Base64 encoded, 128-bit XXHASH128 checksum of the part. -/ + checksumXXHASH128 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH3 checksum of the part. -/ + checksumXXHASH3 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH64 checksum of the part. -/ + checksumXXHASH64 : Option String := none + /-- Entity tag returned when the part was uploaded. -/ + eTag : Option String := none + /-- Part number that identifies the part. -/ + partNumber : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CompletedPart where + schema := .struct "CompletedPart" [({ name := "ChecksumCRC32" }, .string), + ({ name := "ChecksumCRC32C" }, .string), + ({ name := "ChecksumCRC64NVME" }, .string), + ({ name := "ChecksumMD5" }, .string), + ({ name := "ChecksumSHA1" }, .string), + ({ name := "ChecksumSHA256" }, .string), + ({ name := "ChecksumSHA512" }, .string), + ({ name := "ChecksumXXHASH128" }, .string), + ({ name := "ChecksumXXHASH3" }, .string), + ({ name := "ChecksumXXHASH64" }, .string), + ({ name := "ETag" }, .string), + ({ name := "PartNumber" }, .int)] + toValue x := record [putOpt "ChecksumCRC32" x.checksumCRC32, putOpt "ChecksumCRC32C" x.checksumCRC32C, putOpt "ChecksumCRC64NVME" x.checksumCRC64NVME, putOpt "ChecksumMD5" x.checksumMD5, putOpt "ChecksumSHA1" x.checksumSHA1, putOpt "ChecksumSHA256" x.checksumSHA256, putOpt "ChecksumSHA512" x.checksumSHA512, putOpt "ChecksumXXHASH128" x.checksumXXHASH128, putOpt "ChecksumXXHASH3" x.checksumXXHASH3, putOpt "ChecksumXXHASH64" x.checksumXXHASH64, putOpt "ETag" x.eTag, putOpt "PartNumber" x.partNumber] + ofValue v := do + let checksumCRC32 ← v.opt "ChecksumCRC32" + let checksumCRC32C ← v.opt "ChecksumCRC32C" + let checksumCRC64NVME ← v.opt "ChecksumCRC64NVME" + let checksumMD5 ← v.opt "ChecksumMD5" + let checksumSHA1 ← v.opt "ChecksumSHA1" + let checksumSHA256 ← v.opt "ChecksumSHA256" + let checksumSHA512 ← v.opt "ChecksumSHA512" + let checksumXXHASH128 ← v.opt "ChecksumXXHASH128" + let checksumXXHASH3 ← v.opt "ChecksumXXHASH3" + let checksumXXHASH64 ← v.opt "ChecksumXXHASH64" + let eTag ← v.opt "ETag" + let partNumber ← v.opt "PartNumber" + return { checksumCRC32, checksumCRC32C, checksumCRC64NVME, checksumMD5, checksumSHA1, checksumSHA256, checksumSHA512, checksumXXHASH128, checksumXXHASH3, checksumXXHASH64, eTag, partNumber } + +inductive CompressionType where + | bzip2 + | gzip + | none +deriving DecidableEq, Repr, Inhabited + +def CompressionType.wire : CompressionType → String + | .bzip2 => "BZIP2" + | .gzip => "GZIP" + | .none => "NONE" + +def CompressionType.wireValues : List (String × CompressionType) := [ + ("BZIP2", .bzip2), + ("GZIP", .gzip), + ("NONE", .none)] + +def CompressionType.ofWire (text : String) : Except String CompressionType := + match List.find? (·.1 == text) CompressionType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"CompressionType has no value {text}" + +instance : Key CompressionType := ⟨CompressionType.wire, CompressionType.ofWire⟩ + +instance : Shape CompressionType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => CompressionType.ofWire text + | _ => .error "expected a string" + +/-- A container for describing a condition that must be met for the specified redirect to apply. -/ +structure Condition where + /-- The HTTP error code when the redirect is applied. -/ + httpErrorCodeReturnedEquals : Option String := none + /-- The object key name prefix when the redirect is applied. -/ + keyPrefixEquals : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Condition where + schema := .struct "Condition" [({ name := "HttpErrorCodeReturnedEquals" }, .string), + ({ name := "KeyPrefixEquals" }, .string)] + toValue x := record [putOpt "HttpErrorCodeReturnedEquals" x.httpErrorCodeReturnedEquals, putOpt "KeyPrefixEquals" x.keyPrefixEquals] + ofValue v := do + let httpErrorCodeReturnedEquals ← v.opt "HttpErrorCodeReturnedEquals" + let keyPrefixEquals ← v.opt "KeyPrefixEquals" + return { httpErrorCodeReturnedEquals, keyPrefixEquals } + +structure ContinuationEvent where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape ContinuationEvent where + schema := .struct "ContinuationEvent" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- Container for all response elements. -/ +structure CopyPartResult where + /-- The Base64 encoded, 32-bit CRC32 checksum of the part. -/ + checksumCRC32 : Option String := none + /-- The Base64 encoded, 32-bit CRC32C checksum of the part. -/ + checksumCRC32C : Option String := none + /-- The Base64 encoded, 64-bit CRC64NVME checksum of the part. -/ + checksumCRC64NVME : Option String := none + /-- The Base64 encoded, 128-bit MD5 digest of the part. -/ + checksumMD5 : Option String := none + /-- The Base64 encoded, 160-bit SHA1 digest of the part. -/ + checksumSHA1 : Option String := none + /-- The Base64 encoded, 256-bit SHA256 digest of the part. -/ + checksumSHA256 : Option String := none + /-- The Base64 encoded, 512-bit SHA512 digest of the part. -/ + checksumSHA512 : Option String := none + /-- The Base64 encoded, 128-bit XXHASH128 checksum of the part. -/ + checksumXXHASH128 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH3 checksum of the part. -/ + checksumXXHASH3 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH64 checksum of the part. -/ + checksumXXHASH64 : Option String := none + /-- Entity tag of the object. -/ + eTag : Option String := none + /-- Date and time at which the object was uploaded. -/ + lastModified : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CopyPartResult where + schema := .struct "CopyPartResult" [({ name := "ChecksumCRC32" }, .string), + ({ name := "ChecksumCRC32C" }, .string), + ({ name := "ChecksumCRC64NVME" }, .string), + ({ name := "ChecksumMD5" }, .string), + ({ name := "ChecksumSHA1" }, .string), + ({ name := "ChecksumSHA256" }, .string), + ({ name := "ChecksumSHA512" }, .string), + ({ name := "ChecksumXXHASH128" }, .string), + ({ name := "ChecksumXXHASH3" }, .string), + ({ name := "ChecksumXXHASH64" }, .string), + ({ name := "ETag" }, .string), + ({ name := "LastModified" }, (.time none))] + toValue x := record [putOpt "ChecksumCRC32" x.checksumCRC32, putOpt "ChecksumCRC32C" x.checksumCRC32C, putOpt "ChecksumCRC64NVME" x.checksumCRC64NVME, putOpt "ChecksumMD5" x.checksumMD5, putOpt "ChecksumSHA1" x.checksumSHA1, putOpt "ChecksumSHA256" x.checksumSHA256, putOpt "ChecksumSHA512" x.checksumSHA512, putOpt "ChecksumXXHASH128" x.checksumXXHASH128, putOpt "ChecksumXXHASH3" x.checksumXXHASH3, putOpt "ChecksumXXHASH64" x.checksumXXHASH64, putOpt "ETag" x.eTag, putOpt "LastModified" x.lastModified] + ofValue v := do + let checksumCRC32 ← v.opt "ChecksumCRC32" + let checksumCRC32C ← v.opt "ChecksumCRC32C" + let checksumCRC64NVME ← v.opt "ChecksumCRC64NVME" + let checksumMD5 ← v.opt "ChecksumMD5" + let checksumSHA1 ← v.opt "ChecksumSHA1" + let checksumSHA256 ← v.opt "ChecksumSHA256" + let checksumSHA512 ← v.opt "ChecksumSHA512" + let checksumXXHASH128 ← v.opt "ChecksumXXHASH128" + let checksumXXHASH3 ← v.opt "ChecksumXXHASH3" + let checksumXXHASH64 ← v.opt "ChecksumXXHASH64" + let eTag ← v.opt "ETag" + let lastModified ← v.opt "LastModified" + return { checksumCRC32, checksumCRC32C, checksumCRC64NVME, checksumMD5, checksumSHA1, checksumSHA256, checksumSHA512, checksumXXHASH128, checksumXXHASH3, checksumXXHASH64, eTag, lastModified } + +structure CreateBucketOutput where + /-- The Amazon Resource Name (ARN) of the S3 bucket. -/ + bucketArn : Option String := none + /-- A forward slash followed by the name of the bucket for all account regional namespace buckets and all global general purpose buckets created in us-east-1. -/ + location : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateBucketOutput where + schema := .struct "CreateBucketOutput" [({ name := "BucketArn", location := .header "x-amz-bucket-arn" }, .string), + ({ name := "Location", location := .header "Location" }, .string)] + toValue x := record [putOpt "BucketArn" x.bucketArn, putOpt "Location" x.location] + ofValue v := do + let bucketArn ← v.opt "BucketArn" + let location ← v.opt "Location" + return { bucketArn, location } + +inductive DataRedundancy where + | singleAvailabilityZone + | singleLocalZone +deriving DecidableEq, Repr, Inhabited + +def DataRedundancy.wire : DataRedundancy → String + | .singleAvailabilityZone => "SingleAvailabilityZone" + | .singleLocalZone => "SingleLocalZone" + +def DataRedundancy.wireValues : List (String × DataRedundancy) := [ + ("SingleAvailabilityZone", .singleAvailabilityZone), + ("SingleLocalZone", .singleLocalZone)] + +def DataRedundancy.ofWire (text : String) : Except String DataRedundancy := + match List.find? (·.1 == text) DataRedundancy.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DataRedundancy has no value {text}" + +instance : Key DataRedundancy := ⟨DataRedundancy.wire, DataRedundancy.ofWire⟩ + +instance : Shape DataRedundancy where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DataRedundancy.ofWire text + | _ => .error "expected a string" + +structure DeleteBucketAnalyticsConfigurationRequest where + /-- The name of the bucket from which an analytics configuration is deleted. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The ID that identifies the analytics configuration. -/ + id : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteBucketAnalyticsConfigurationRequest where + schema := .struct "DeleteBucketAnalyticsConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Id", required := true, location := .query "id" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Id" x.id] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let id ← v.req "Id" + return { bucket, expectedBucketOwner, id } + +structure DeleteBucketCorsRequest where + /-- Specifies the bucket whose cors configuration is being deleted. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteBucketCorsRequest where + schema := .struct "DeleteBucketCorsRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure DeleteBucketEncryptionRequest where + /-- The name of the bucket containing the server-side encryption configuration to delete. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteBucketEncryptionRequest where + schema := .struct "DeleteBucketEncryptionRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure DeleteBucketIntelligentTieringConfigurationRequest where + /-- The name of the Amazon S3 bucket whose configuration you want to modify or retrieve. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The ID used to identify the S3 Intelligent-Tiering configuration. -/ + id : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteBucketIntelligentTieringConfigurationRequest where + schema := .struct "DeleteBucketIntelligentTieringConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Id", required := true, location := .query "id" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Id" x.id] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let id ← v.req "Id" + return { bucket, expectedBucketOwner, id } + +structure DeleteBucketInventoryConfigurationRequest where + /-- The name of the bucket containing the inventory configuration to delete. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The ID used to identify the inventory configuration. -/ + id : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteBucketInventoryConfigurationRequest where + schema := .struct "DeleteBucketInventoryConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Id", required := true, location := .query "id" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Id" x.id] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let id ← v.req "Id" + return { bucket, expectedBucketOwner, id } + +structure DeleteBucketLifecycleRequest where + /-- The bucket name of the lifecycle to delete. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteBucketLifecycleRequest where + schema := .struct "DeleteBucketLifecycleRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure DeleteBucketMetadataConfigurationRequest where + /-- The general purpose bucket that you want to remove the metadata configuration from. -/ + bucket : String + /-- The expected bucket owner of the general purpose bucket that you want to remove the metadata table configuration from. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteBucketMetadataConfigurationRequest where + schema := .struct "DeleteBucketMetadataConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure DeleteBucketMetadataTableConfigurationRequest where + /-- The general purpose bucket that you want to remove the metadata table configuration from. -/ + bucket : String + /-- The expected bucket owner of the general purpose bucket that you want to remove the metadata table configuration from. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteBucketMetadataTableConfigurationRequest where + schema := .struct "DeleteBucketMetadataTableConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure DeleteBucketMetricsConfigurationRequest where + /-- The name of the bucket containing the metrics configuration to delete. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The ID used to identify the metrics configuration. -/ + id : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteBucketMetricsConfigurationRequest where + schema := .struct "DeleteBucketMetricsConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Id", required := true, location := .query "id" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Id" x.id] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let id ← v.req "Id" + return { bucket, expectedBucketOwner, id } + +structure DeleteBucketOwnershipControlsRequest where + /-- The Amazon S3 bucket whose OwnershipControls you want to delete. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteBucketOwnershipControlsRequest where + schema := .struct "DeleteBucketOwnershipControlsRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure DeleteBucketPolicyRequest where + /-- The bucket name. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteBucketPolicyRequest where + schema := .struct "DeleteBucketPolicyRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure DeleteBucketReplicationRequest where + /-- The bucket name. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteBucketReplicationRequest where + schema := .struct "DeleteBucketReplicationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure DeleteBucketRequest where + /-- Specifies the bucket being deleted. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteBucketRequest where + schema := .struct "DeleteBucketRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure DeleteBucketTaggingRequest where + /-- The bucket that has the tag set to be removed. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteBucketTaggingRequest where + schema := .struct "DeleteBucketTaggingRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure DeleteBucketWebsiteRequest where + /-- The bucket name for which you want to remove the website configuration. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteBucketWebsiteRequest where + schema := .struct "DeleteBucketWebsiteRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +inductive DeleteMarkerReplicationStatus where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def DeleteMarkerReplicationStatus.wire : DeleteMarkerReplicationStatus → String + | .disabled => "Disabled" + | .enabled => "Enabled" + +def DeleteMarkerReplicationStatus.wireValues : List (String × DeleteMarkerReplicationStatus) := [ + ("Disabled", .disabled), + ("Enabled", .enabled)] + +def DeleteMarkerReplicationStatus.ofWire (text : String) : Except String DeleteMarkerReplicationStatus := + match List.find? (·.1 == text) DeleteMarkerReplicationStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"DeleteMarkerReplicationStatus has no value {text}" + +instance : Key DeleteMarkerReplicationStatus := ⟨DeleteMarkerReplicationStatus.wire, DeleteMarkerReplicationStatus.ofWire⟩ + +instance : Shape DeleteMarkerReplicationStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => DeleteMarkerReplicationStatus.ofWire text + | _ => .error "expected a string" + +structure DeleteObjectTaggingOutput where + /-- The versionId of the object the tag-set was removed from. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteObjectTaggingOutput where + schema := .struct "DeleteObjectTaggingOutput" [({ name := "VersionId", location := .header "x-amz-version-id" }, .string)] + toValue x := record [putOpt "VersionId" x.versionId] + ofValue v := do + let versionId ← v.opt "VersionId" + return { versionId } + +structure DeleteObjectTaggingRequest where + /-- The bucket name containing the objects from which to remove the tags. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The key that identifies the object in the bucket from which to remove all tags. -/ + key : String + /-- The versionId of the object that the tag-set will be removed from. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteObjectTaggingRequest where + schema := .struct "DeleteObjectTaggingRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "VersionId", location := .query "versionId" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Key" x.key, putOpt "VersionId" x.versionId] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let key ← v.req "Key" + let versionId ← v.opt "VersionId" + return { bucket, expectedBucketOwner, key, versionId } + +structure DeletePublicAccessBlockRequest where + /-- The Amazon S3 bucket whose PublicAccessBlock configuration you want to delete. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeletePublicAccessBlockRequest where + schema := .struct "DeletePublicAccessBlockRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +/-- Information about the deleted object. -/ +structure DeletedObject where + /-- Indicates whether the specified object version that was permanently deleted was (true) or was not (false) a delete marker before deletion. -/ + deleteMarker : Option Bool := none + /-- The version ID of the delete marker created as a result of the DELETE operation. -/ + deleteMarkerVersionId : Option String := none + /-- The name of the deleted object. -/ + key : Option String := none + /-- The version ID of the deleted object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeletedObject where + schema := .struct "DeletedObject" [({ name := "DeleteMarker" }, .bool), + ({ name := "DeleteMarkerVersionId" }, .string), + ({ name := "Key" }, .string), + ({ name := "VersionId" }, .string)] + toValue x := record [putOpt "DeleteMarker" x.deleteMarker, putOpt "DeleteMarkerVersionId" x.deleteMarkerVersionId, putOpt "Key" x.key, putOpt "VersionId" x.versionId] + ofValue v := do + let deleteMarker ← v.opt "DeleteMarker" + let deleteMarkerVersionId ← v.opt "DeleteMarkerVersionId" + let key ← v.opt "Key" + let versionId ← v.opt "VersionId" + return { deleteMarker, deleteMarkerVersionId, key, versionId } + +/-- Encoding type used by Amazon S3 to encode the object keys in the response. -/ +inductive EncodingType where + | url +deriving DecidableEq, Repr, Inhabited + +def EncodingType.wire : EncodingType → String + | .url => "url" + +def EncodingType.wireValues : List (String × EncodingType) := [ + ("url", .url)] + +def EncodingType.ofWire (text : String) : Except String EncodingType := + match List.find? (·.1 == text) EncodingType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"EncodingType has no value {text}" + +instance : Key EncodingType := ⟨EncodingType.wire, EncodingType.ofWire⟩ + +instance : Shape EncodingType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => EncodingType.ofWire text + | _ => .error "expected a string" + +inductive EncryptionType where + | none + | ssE_C +deriving DecidableEq, Repr, Inhabited + +def EncryptionType.wire : EncryptionType → String + | .none => "NONE" + | .ssE_C => "SSE-C" + +def EncryptionType.wireValues : List (String × EncryptionType) := [ + ("NONE", .none), + ("SSE-C", .ssE_C)] + +def EncryptionType.ofWire (text : String) : Except String EncryptionType := + match List.find? (·.1 == text) EncryptionType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"EncryptionType has no value {text}" + +instance : Key EncryptionType := ⟨EncryptionType.wire, EncryptionType.ofWire⟩ + +instance : Shape EncryptionType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => EncryptionType.ofWire text + | _ => .error "expected a string" + +/-- The existing object was created with a different encryption type. -/ +structure EncryptionTypeMismatch where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape EncryptionTypeMismatch where + schema := .struct "EncryptionTypeMismatch" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- A message that indicates the request is complete and no more messages will be sent. -/ +structure EndEvent where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape EndEvent where + schema := .struct "EndEvent" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- For information about using the Amazon S3 API—including error handling—see the Amazon S3 Developer Guide . -/ +structure Error_ where + /-- The error code is a string that uniquely identifies an error condition. -/ + code : Option String := none + /-- The error key. -/ + key : Option String := none + /-- The error message contains a generic description of the error condition in English. -/ + message : Option String := none + /-- The version ID of the error. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Error_ where + schema := .struct "Error" [({ name := "Code" }, .string), + ({ name := "Key" }, .string), + ({ name := "Message" }, .string), + ({ name := "VersionId" }, .string)] + toValue x := record [putOpt "Code" x.code, putOpt "Key" x.key, putOpt "Message" x.message, putOpt "VersionId" x.versionId] + ofValue v := do + let code ← v.opt "Code" + let key ← v.opt "Key" + let message ← v.opt "Message" + let versionId ← v.opt "VersionId" + return { code, key, message, versionId } + +/-- If an S3 Metadata V1 CreateBucketMetadataTableConfiguration or V2 CreateBucketMetadataConfiguration request succeeds, but S3 Metadata was unable to create the table, this structure contains the error code and error message. -/ +structure ErrorDetails where + /-- If the V1 CreateBucketMetadataTableConfiguration request succeeds, but S3 Metadata was unable to create the table, this structure contains the error code. -/ + errorCode : Option String := none + /-- If the V1 CreateBucketMetadataTableConfiguration request succeeds, but S3 Metadata was unable to create the table, this structure contains the error message. -/ + errorMessage : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ErrorDetails where + schema := .struct "ErrorDetails" [({ name := "ErrorCode" }, .string), + ({ name := "ErrorMessage" }, .string)] + toValue x := record [putOpt "ErrorCode" x.errorCode, putOpt "ErrorMessage" x.errorMessage] + ofValue v := do + let errorCode ← v.opt "ErrorCode" + let errorMessage ← v.opt "ErrorMessage" + return { errorCode, errorMessage } + +/-- The error information. -/ +structure ErrorDocument where + /-- The object key name to use when a 4XX class error occurs. -/ + key : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ErrorDocument where + schema := .struct "ErrorDocument" [({ name := "Key", required := true }, .string)] + toValue x := record [put "Key" x.key] + ofValue v := do + let key ← v.req "Key" + return { key } + +/-- The bucket event for which to send notifications. -/ +inductive Event where + | s3_IntelligentTiering + | s3_LifecycleExpiration_ + | s3_LifecycleExpiration_Delete + | s3_LifecycleExpiration_DeleteMarkerCreated + | s3_LifecycleTransition + | s3_ObjectAcl_Put + | s3_ObjectAnnotation_ + | s3_ObjectAnnotation_Delete + | s3_ObjectAnnotation_Put + | s3_ObjectCreated_ + | s3_ObjectCreated_CompleteMultipartUpload + | s3_ObjectCreated_Copy + | s3_ObjectCreated_Post + | s3_ObjectCreated_Put + | s3_ObjectRemoved_ + | s3_ObjectRemoved_Delete + | s3_ObjectRemoved_DeleteMarkerCreated + | s3_ObjectRestore_ + | s3_ObjectRestore_Completed + | s3_ObjectRestore_Delete + | s3_ObjectRestore_Post + | s3_ObjectRetention_Put + | s3_ObjectTagging_ + | s3_ObjectTagging_Delete + | s3_ObjectTagging_Put + | s3_ReducedRedundancyLostObject + | s3_Replication_ + | s3_Replication_OperationFailedReplication + | s3_Replication_OperationMissedThreshold + | s3_Replication_OperationNotTracked + | s3_Replication_OperationReplicatedAfterThreshold +deriving DecidableEq, Repr, Inhabited + +def Event.wire : Event → String + | .s3_IntelligentTiering => "s3:IntelligentTiering" + | .s3_LifecycleExpiration_ => "s3:LifecycleExpiration:*" + | .s3_LifecycleExpiration_Delete => "s3:LifecycleExpiration:Delete" + | .s3_LifecycleExpiration_DeleteMarkerCreated => "s3:LifecycleExpiration:DeleteMarkerCreated" + | .s3_LifecycleTransition => "s3:LifecycleTransition" + | .s3_ObjectAcl_Put => "s3:ObjectAcl:Put" + | .s3_ObjectAnnotation_ => "s3:ObjectAnnotation:*" + | .s3_ObjectAnnotation_Delete => "s3:ObjectAnnotation:Delete" + | .s3_ObjectAnnotation_Put => "s3:ObjectAnnotation:Put" + | .s3_ObjectCreated_ => "s3:ObjectCreated:*" + | .s3_ObjectCreated_CompleteMultipartUpload => "s3:ObjectCreated:CompleteMultipartUpload" + | .s3_ObjectCreated_Copy => "s3:ObjectCreated:Copy" + | .s3_ObjectCreated_Post => "s3:ObjectCreated:Post" + | .s3_ObjectCreated_Put => "s3:ObjectCreated:Put" + | .s3_ObjectRemoved_ => "s3:ObjectRemoved:*" + | .s3_ObjectRemoved_Delete => "s3:ObjectRemoved:Delete" + | .s3_ObjectRemoved_DeleteMarkerCreated => "s3:ObjectRemoved:DeleteMarkerCreated" + | .s3_ObjectRestore_ => "s3:ObjectRestore:*" + | .s3_ObjectRestore_Completed => "s3:ObjectRestore:Completed" + | .s3_ObjectRestore_Delete => "s3:ObjectRestore:Delete" + | .s3_ObjectRestore_Post => "s3:ObjectRestore:Post" + | .s3_ObjectRetention_Put => "s3:ObjectRetention:Put" + | .s3_ObjectTagging_ => "s3:ObjectTagging:*" + | .s3_ObjectTagging_Delete => "s3:ObjectTagging:Delete" + | .s3_ObjectTagging_Put => "s3:ObjectTagging:Put" + | .s3_ReducedRedundancyLostObject => "s3:ReducedRedundancyLostObject" + | .s3_Replication_ => "s3:Replication:*" + | .s3_Replication_OperationFailedReplication => "s3:Replication:OperationFailedReplication" + | .s3_Replication_OperationMissedThreshold => "s3:Replication:OperationMissedThreshold" + | .s3_Replication_OperationNotTracked => "s3:Replication:OperationNotTracked" + | .s3_Replication_OperationReplicatedAfterThreshold => "s3:Replication:OperationReplicatedAfterThreshold" + +def Event.wireValues : List (String × Event) := [ + ("s3:IntelligentTiering", .s3_IntelligentTiering), + ("s3:LifecycleExpiration:*", .s3_LifecycleExpiration_), + ("s3:LifecycleExpiration:Delete", .s3_LifecycleExpiration_Delete), + ("s3:LifecycleExpiration:DeleteMarkerCreated", .s3_LifecycleExpiration_DeleteMarkerCreated), + ("s3:LifecycleTransition", .s3_LifecycleTransition), + ("s3:ObjectAcl:Put", .s3_ObjectAcl_Put), + ("s3:ObjectAnnotation:*", .s3_ObjectAnnotation_), + ("s3:ObjectAnnotation:Delete", .s3_ObjectAnnotation_Delete), + ("s3:ObjectAnnotation:Put", .s3_ObjectAnnotation_Put), + ("s3:ObjectCreated:*", .s3_ObjectCreated_), + ("s3:ObjectCreated:CompleteMultipartUpload", .s3_ObjectCreated_CompleteMultipartUpload), + ("s3:ObjectCreated:Copy", .s3_ObjectCreated_Copy), + ("s3:ObjectCreated:Post", .s3_ObjectCreated_Post), + ("s3:ObjectCreated:Put", .s3_ObjectCreated_Put), + ("s3:ObjectRemoved:*", .s3_ObjectRemoved_), + ("s3:ObjectRemoved:Delete", .s3_ObjectRemoved_Delete), + ("s3:ObjectRemoved:DeleteMarkerCreated", .s3_ObjectRemoved_DeleteMarkerCreated), + ("s3:ObjectRestore:*", .s3_ObjectRestore_), + ("s3:ObjectRestore:Completed", .s3_ObjectRestore_Completed), + ("s3:ObjectRestore:Delete", .s3_ObjectRestore_Delete), + ("s3:ObjectRestore:Post", .s3_ObjectRestore_Post), + ("s3:ObjectRetention:Put", .s3_ObjectRetention_Put), + ("s3:ObjectTagging:*", .s3_ObjectTagging_), + ("s3:ObjectTagging:Delete", .s3_ObjectTagging_Delete), + ("s3:ObjectTagging:Put", .s3_ObjectTagging_Put), + ("s3:ReducedRedundancyLostObject", .s3_ReducedRedundancyLostObject), + ("s3:Replication:*", .s3_Replication_), + ("s3:Replication:OperationFailedReplication", .s3_Replication_OperationFailedReplication), + ("s3:Replication:OperationMissedThreshold", .s3_Replication_OperationMissedThreshold), + ("s3:Replication:OperationNotTracked", .s3_Replication_OperationNotTracked), + ("s3:Replication:OperationReplicatedAfterThreshold", .s3_Replication_OperationReplicatedAfterThreshold)] + +def Event.ofWire (text : String) : Except String Event := + match List.find? (·.1 == text) Event.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Event has no value {text}" + +instance : Key Event := ⟨Event.wire, Event.ofWire⟩ + +instance : Shape Event where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Event.ofWire text + | _ => .error "expected a string" + +/-- A container for specifying the configuration for Amazon EventBridge. -/ +structure EventBridgeConfiguration where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape EventBridgeConfiguration where + schema := .struct "EventBridgeConfiguration" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- Contains the event hold duration configuration, specified in either days or years. -/ +structure EventHoldDuration where + /-- The number of days for the event hold duration. -/ + days : Option Int := none + /-- The number of years for the event hold duration. -/ + years : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EventHoldDuration where + schema := .struct "EventHoldDuration" [({ name := "Days" }, .int), + ({ name := "Years" }, .int)] + toValue x := record [putOpt "Days" x.days, putOpt "Years" x.years] + ofValue v := do + let days ← v.opt "Days" + let years ← v.opt "Years" + return { days, years } + +inductive ExistingObjectReplicationStatus where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def ExistingObjectReplicationStatus.wire : ExistingObjectReplicationStatus → String + | .disabled => "Disabled" + | .enabled => "Enabled" + +def ExistingObjectReplicationStatus.wireValues : List (String × ExistingObjectReplicationStatus) := [ + ("Disabled", .disabled), + ("Enabled", .enabled)] + +def ExistingObjectReplicationStatus.ofWire (text : String) : Except String ExistingObjectReplicationStatus := + match List.find? (·.1 == text) ExistingObjectReplicationStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ExistingObjectReplicationStatus has no value {text}" + +instance : Key ExistingObjectReplicationStatus := ⟨ExistingObjectReplicationStatus.wire, ExistingObjectReplicationStatus.ofWire⟩ + +instance : Shape ExistingObjectReplicationStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ExistingObjectReplicationStatus.ofWire text + | _ => .error "expected a string" + +inductive ExpirationState where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def ExpirationState.wire : ExpirationState → String + | .disabled => "DISABLED" + | .enabled => "ENABLED" + +def ExpirationState.wireValues : List (String × ExpirationState) := [ + ("DISABLED", .disabled), + ("ENABLED", .enabled)] + +def ExpirationState.ofWire (text : String) : Except String ExpirationState := + match List.find? (·.1 == text) ExpirationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ExpirationState has no value {text}" + +instance : Key ExpirationState := ⟨ExpirationState.wire, ExpirationState.ofWire⟩ + +instance : Shape ExpirationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ExpirationState.ofWire text + | _ => .error "expected a string" + +inductive ExpirationStatus where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def ExpirationStatus.wire : ExpirationStatus → String + | .disabled => "Disabled" + | .enabled => "Enabled" + +def ExpirationStatus.wireValues : List (String × ExpirationStatus) := [ + ("Disabled", .disabled), + ("Enabled", .enabled)] + +def ExpirationStatus.ofWire (text : String) : Except String ExpirationStatus := + match List.find? (·.1 == text) ExpirationStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ExpirationStatus has no value {text}" + +instance : Key ExpirationStatus := ⟨ExpirationStatus.wire, ExpirationStatus.ofWire⟩ + +instance : Shape ExpirationStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ExpirationStatus.ofWire text + | _ => .error "expected a string" + +inductive ExpressionType where + | sql +deriving DecidableEq, Repr, Inhabited + +def ExpressionType.wire : ExpressionType → String + | .sql => "SQL" + +def ExpressionType.wireValues : List (String × ExpressionType) := [ + ("SQL", .sql)] + +def ExpressionType.ofWire (text : String) : Except String ExpressionType := + match List.find? (·.1 == text) ExpressionType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ExpressionType has no value {text}" + +instance : Key ExpressionType := ⟨ExpressionType.wire, ExpressionType.ofWire⟩ + +instance : Shape ExpressionType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ExpressionType.ofWire text + | _ => .error "expected a string" + +inductive FileHeaderInfo where + | ignore + | none + | use +deriving DecidableEq, Repr, Inhabited + +def FileHeaderInfo.wire : FileHeaderInfo → String + | .ignore => "IGNORE" + | .none => "NONE" + | .use => "USE" + +def FileHeaderInfo.wireValues : List (String × FileHeaderInfo) := [ + ("IGNORE", .ignore), + ("NONE", .none), + ("USE", .use)] + +def FileHeaderInfo.ofWire (text : String) : Except String FileHeaderInfo := + match List.find? (·.1 == text) FileHeaderInfo.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FileHeaderInfo has no value {text}" + +instance : Key FileHeaderInfo := ⟨FileHeaderInfo.wire, FileHeaderInfo.ofWire⟩ + +instance : Shape FileHeaderInfo where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FileHeaderInfo.ofWire text + | _ => .error "expected a string" + +inductive FilterRuleName where + | «prefix» + | suffix +deriving DecidableEq, Repr, Inhabited + +def FilterRuleName.wire : FilterRuleName → String + | .«prefix» => "prefix" + | .suffix => "suffix" + +def FilterRuleName.wireValues : List (String × FilterRuleName) := [ + ("prefix", .«prefix»), + ("suffix", .suffix)] + +def FilterRuleName.ofWire (text : String) : Except String FilterRuleName := + match List.find? (·.1 == text) FilterRuleName.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"FilterRuleName has no value {text}" + +instance : Key FilterRuleName := ⟨FilterRuleName.wire, FilterRuleName.ofWire⟩ + +instance : Shape FilterRuleName where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => FilterRuleName.ofWire text + | _ => .error "expected a string" + +structure GetBucketAbacRequest where + /-- The name of the general purpose bucket. -/ + bucket : String + /-- The Amazon Web Services account ID of the general purpose bucket's owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketAbacRequest where + schema := .struct "GetBucketAbacRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure GetBucketAclRequest where + /-- Specifies the S3 bucket whose ACL is being requested. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketAclRequest where + schema := .struct "GetBucketAclRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure GetBucketAnalyticsConfigurationRequest where + /-- The name of the bucket from which an analytics configuration is retrieved. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The ID that identifies the analytics configuration. -/ + id : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketAnalyticsConfigurationRequest where + schema := .struct "GetBucketAnalyticsConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Id", required := true, location := .query "id" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Id" x.id] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let id ← v.req "Id" + return { bucket, expectedBucketOwner, id } + +structure GetBucketCorsRequest where + /-- The bucket name for which to get the cors configuration. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketCorsRequest where + schema := .struct "GetBucketCorsRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure GetBucketEncryptionRequest where + /-- The name of the bucket from which the server-side encryption configuration is retrieved. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketEncryptionRequest where + schema := .struct "GetBucketEncryptionRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure GetBucketIntelligentTieringConfigurationRequest where + /-- The name of the Amazon S3 bucket whose configuration you want to modify or retrieve. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The ID used to identify the S3 Intelligent-Tiering configuration. -/ + id : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketIntelligentTieringConfigurationRequest where + schema := .struct "GetBucketIntelligentTieringConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Id", required := true, location := .query "id" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Id" x.id] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let id ← v.req "Id" + return { bucket, expectedBucketOwner, id } + +structure GetBucketInventoryConfigurationRequest where + /-- The name of the bucket containing the inventory configuration to retrieve. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The ID used to identify the inventory configuration. -/ + id : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketInventoryConfigurationRequest where + schema := .struct "GetBucketInventoryConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Id", required := true, location := .query "id" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Id" x.id] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let id ← v.req "Id" + return { bucket, expectedBucketOwner, id } + +structure GetBucketLifecycleConfigurationRequest where + /-- The name of the bucket for which to get the lifecycle information. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketLifecycleConfigurationRequest where + schema := .struct "GetBucketLifecycleConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure GetBucketLocationRequest where + /-- The name of the bucket for which to get the location. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketLocationRequest where + schema := .struct "GetBucketLocationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure GetBucketLoggingRequest where + /-- The bucket name for which to get the logging information. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketLoggingRequest where + schema := .struct "GetBucketLoggingRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure GetBucketMetadataConfigurationRequest where + /-- The general purpose bucket that corresponds to the metadata configuration that you want to retrieve. -/ + bucket : String + /-- The expected owner of the general purpose bucket that you want to retrieve the metadata table configuration for. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketMetadataConfigurationRequest where + schema := .struct "GetBucketMetadataConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure GetBucketMetadataTableConfigurationRequest where + /-- The general purpose bucket that corresponds to the metadata table configuration that you want to retrieve. -/ + bucket : String + /-- The expected owner of the general purpose bucket that you want to retrieve the metadata table configuration for. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketMetadataTableConfigurationRequest where + schema := .struct "GetBucketMetadataTableConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure GetBucketMetricsConfigurationRequest where + /-- The name of the bucket containing the metrics configuration to retrieve. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The ID used to identify the metrics configuration. -/ + id : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketMetricsConfigurationRequest where + schema := .struct "GetBucketMetricsConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Id", required := true, location := .query "id" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Id" x.id] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let id ← v.req "Id" + return { bucket, expectedBucketOwner, id } + +structure GetBucketNotificationConfigurationRequest where + /-- The name of the bucket for which to get the notification configuration. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketNotificationConfigurationRequest where + schema := .struct "GetBucketNotificationConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure GetBucketOwnershipControlsRequest where + /-- The name of the Amazon S3 bucket whose OwnershipControls you want to retrieve. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketOwnershipControlsRequest where + schema := .struct "GetBucketOwnershipControlsRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure GetBucketPolicyOutput where + /-- The bucket policy as a JSON document. -/ + policy : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketPolicyOutput where + schema := .struct "GetBucketPolicyOutput" [({ name := "Policy", location := .payload }, .string)] + toValue x := record [putOpt "Policy" x.policy] + ofValue v := do + let policy ← v.opt "Policy" + return { policy } + +structure GetBucketPolicyRequest where + /-- The bucket name to get the bucket policy for. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketPolicyRequest where + schema := .struct "GetBucketPolicyRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure GetBucketPolicyStatusRequest where + /-- The name of the Amazon S3 bucket whose policy status you want to retrieve. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketPolicyStatusRequest where + schema := .struct "GetBucketPolicyStatusRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure GetBucketReplicationRequest where + /-- The bucket name for which to get the replication information. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketReplicationRequest where + schema := .struct "GetBucketReplicationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure GetBucketRequestPaymentRequest where + /-- The name of the bucket for which to get the payment request configuration. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketRequestPaymentRequest where + schema := .struct "GetBucketRequestPaymentRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure GetBucketTaggingRequest where + /-- The name of the bucket for which to get the tagging information. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketTaggingRequest where + schema := .struct "GetBucketTaggingRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure GetBucketVersioningRequest where + /-- The name of the bucket for which to get the versioning information. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketVersioningRequest where + schema := .struct "GetBucketVersioningRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure GetBucketWebsiteRequest where + /-- The bucket name for which to get the website configuration. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketWebsiteRequest where + schema := .struct "GetBucketWebsiteRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure GetObjectLockConfigurationRequest where + /-- The bucket whose Object Lock configuration you want to retrieve. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetObjectLockConfigurationRequest where + schema := .struct "GetObjectLockConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure GetPublicAccessBlockRequest where + /-- The name of the Amazon S3 bucket whose PublicAccessBlock configuration you want to retrieve. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetPublicAccessBlockRequest where + schema := .struct "GetPublicAccessBlockRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +structure HeadBucketRequest where + /-- The bucket name. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape HeadBucketRequest where + schema := .struct "HeadBucketRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, expectedBucketOwner } + +/-- Parameters on this idempotent request are inconsistent with parameters used in previous request(s). -/ +structure IdempotencyParameterMismatch where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape IdempotencyParameterMismatch where + schema := .struct "IdempotencyParameterMismatch" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- Container for the Suffix element. -/ +structure IndexDocument where + /-- A suffix that is appended to a request that is for a directory on the website endpoint. -/ + suffix : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape IndexDocument where + schema := .struct "IndexDocument" [({ name := "Suffix", required := true }, .string)] + toValue x := record [put "Suffix" x.suffix] + ofValue v := do + let suffix ← v.req "Suffix" + return { suffix } + +/-- Container element that identifies who initiated the multipart upload. -/ +structure Initiator where + /-- This functionality is not supported for directory buckets. -/ + displayName : Option String := none + /-- If the principal is an Amazon Web Services account, it provides the Canonical User ID. -/ + id : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Initiator where + schema := .struct "Initiator" [({ name := "DisplayName" }, .string), + ({ name := "ID" }, .string)] + toValue x := record [putOpt "DisplayName" x.displayName, putOpt "ID" x.id] + ofValue v := do + let displayName ← v.opt "DisplayName" + let id ← v.opt "ID" + return { displayName, id } + +inductive IntelligentTieringAccessTier where + | archivE_ACCESS + | deeP_ARCHIVE_ACCESS +deriving DecidableEq, Repr, Inhabited + +def IntelligentTieringAccessTier.wire : IntelligentTieringAccessTier → String + | .archivE_ACCESS => "ARCHIVE_ACCESS" + | .deeP_ARCHIVE_ACCESS => "DEEP_ARCHIVE_ACCESS" + +def IntelligentTieringAccessTier.wireValues : List (String × IntelligentTieringAccessTier) := [ + ("ARCHIVE_ACCESS", .archivE_ACCESS), + ("DEEP_ARCHIVE_ACCESS", .deeP_ARCHIVE_ACCESS)] + +def IntelligentTieringAccessTier.ofWire (text : String) : Except String IntelligentTieringAccessTier := + match List.find? (·.1 == text) IntelligentTieringAccessTier.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IntelligentTieringAccessTier has no value {text}" + +instance : Key IntelligentTieringAccessTier := ⟨IntelligentTieringAccessTier.wire, IntelligentTieringAccessTier.ofWire⟩ + +instance : Shape IntelligentTieringAccessTier where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IntelligentTieringAccessTier.ofWire text + | _ => .error "expected a string" + +inductive IntelligentTieringStatus where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def IntelligentTieringStatus.wire : IntelligentTieringStatus → String + | .disabled => "Disabled" + | .enabled => "Enabled" + +def IntelligentTieringStatus.wireValues : List (String × IntelligentTieringStatus) := [ + ("Disabled", .disabled), + ("Enabled", .enabled)] + +def IntelligentTieringStatus.ofWire (text : String) : Except String IntelligentTieringStatus := + match List.find? (·.1 == text) IntelligentTieringStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"IntelligentTieringStatus has no value {text}" + +instance : Key IntelligentTieringStatus := ⟨IntelligentTieringStatus.wire, IntelligentTieringStatus.ofWire⟩ + +instance : Shape IntelligentTieringStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => IntelligentTieringStatus.ofWire text + | _ => .error "expected a string" + +/-- The annotation name you provided is invalid. -/ +structure InvalidAnnotationName where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidAnnotationName where + schema := .struct "InvalidAnnotationName" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- The annotation prefix you provided is invalid. -/ +structure InvalidPrefix where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidPrefix where + schema := .struct "InvalidPrefix" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- A parameter or header in your request isn't valid. -/ +structure InvalidRequest where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidRequest where + schema := .struct "InvalidRequest" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- The write offset value that you specified does not match the current object size. -/ +structure InvalidWriteOffset where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidWriteOffset where + schema := .struct "InvalidWriteOffset" [] + toValue _ := record [] + ofValue _ := do + return { } + +inductive InventoryConfigurationState where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def InventoryConfigurationState.wire : InventoryConfigurationState → String + | .disabled => "DISABLED" + | .enabled => "ENABLED" + +def InventoryConfigurationState.wireValues : List (String × InventoryConfigurationState) := [ + ("DISABLED", .disabled), + ("ENABLED", .enabled)] + +def InventoryConfigurationState.ofWire (text : String) : Except String InventoryConfigurationState := + match List.find? (·.1 == text) InventoryConfigurationState.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InventoryConfigurationState has no value {text}" + +instance : Key InventoryConfigurationState := ⟨InventoryConfigurationState.wire, InventoryConfigurationState.ofWire⟩ + +instance : Shape InventoryConfigurationState where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InventoryConfigurationState.ofWire text + | _ => .error "expected a string" + +/-- Specifies an S3 Inventory filter. -/ +structure InventoryFilter where + /-- The prefix that an object must have to be included in the inventory results. -/ + «prefix» : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape InventoryFilter where + schema := .struct "InventoryFilter" [({ name := "Prefix", required := true }, .string)] + toValue x := record [put "Prefix" x.«prefix»] + ofValue v := do + let «prefix» ← v.req "Prefix" + return { «prefix» } + +inductive InventoryFormat where + | csv + | orc + | parquet +deriving DecidableEq, Repr, Inhabited + +def InventoryFormat.wire : InventoryFormat → String + | .csv => "CSV" + | .orc => "ORC" + | .parquet => "Parquet" + +def InventoryFormat.wireValues : List (String × InventoryFormat) := [ + ("CSV", .csv), + ("ORC", .orc), + ("Parquet", .parquet)] + +def InventoryFormat.ofWire (text : String) : Except String InventoryFormat := + match List.find? (·.1 == text) InventoryFormat.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InventoryFormat has no value {text}" + +instance : Key InventoryFormat := ⟨InventoryFormat.wire, InventoryFormat.ofWire⟩ + +instance : Shape InventoryFormat where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InventoryFormat.ofWire text + | _ => .error "expected a string" + +inductive InventoryFrequency where + | daily + | weekly +deriving DecidableEq, Repr, Inhabited + +def InventoryFrequency.wire : InventoryFrequency → String + | .daily => "Daily" + | .weekly => "Weekly" + +def InventoryFrequency.wireValues : List (String × InventoryFrequency) := [ + ("Daily", .daily), + ("Weekly", .weekly)] + +def InventoryFrequency.ofWire (text : String) : Except String InventoryFrequency := + match List.find? (·.1 == text) InventoryFrequency.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InventoryFrequency has no value {text}" + +instance : Key InventoryFrequency := ⟨InventoryFrequency.wire, InventoryFrequency.ofWire⟩ + +instance : Shape InventoryFrequency where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InventoryFrequency.ofWire text + | _ => .error "expected a string" + +inductive InventoryIncludedObjectVersions where + | all + | current +deriving DecidableEq, Repr, Inhabited + +def InventoryIncludedObjectVersions.wire : InventoryIncludedObjectVersions → String + | .all => "All" + | .current => "Current" + +def InventoryIncludedObjectVersions.wireValues : List (String × InventoryIncludedObjectVersions) := [ + ("All", .all), + ("Current", .current)] + +def InventoryIncludedObjectVersions.ofWire (text : String) : Except String InventoryIncludedObjectVersions := + match List.find? (·.1 == text) InventoryIncludedObjectVersions.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InventoryIncludedObjectVersions has no value {text}" + +instance : Key InventoryIncludedObjectVersions := ⟨InventoryIncludedObjectVersions.wire, InventoryIncludedObjectVersions.ofWire⟩ + +instance : Shape InventoryIncludedObjectVersions where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InventoryIncludedObjectVersions.ofWire text + | _ => .error "expected a string" + +inductive InventoryOptionalField where + | bucketKeyStatus + | checksumAlgorithm + | eTag + | encryptionStatus + | intelligentTieringAccessTier + | intelligentTieringReferenceDate + | isMultipartUploaded + | lastModifiedDate + | lifecycleExpirationDate + | objectAccessControlList + | objectLockEventHoldDuration + | objectLockEventHoldStatus + | objectLockLegalHoldStatus + | objectLockMode + | objectLockRetainUntilDate + | objectOwner + | replicationStatus + | size + | storageClass +deriving DecidableEq, Repr, Inhabited + +def InventoryOptionalField.wire : InventoryOptionalField → String + | .bucketKeyStatus => "BucketKeyStatus" + | .checksumAlgorithm => "ChecksumAlgorithm" + | .eTag => "ETag" + | .encryptionStatus => "EncryptionStatus" + | .intelligentTieringAccessTier => "IntelligentTieringAccessTier" + | .intelligentTieringReferenceDate => "IntelligentTieringReferenceDate" + | .isMultipartUploaded => "IsMultipartUploaded" + | .lastModifiedDate => "LastModifiedDate" + | .lifecycleExpirationDate => "LifecycleExpirationDate" + | .objectAccessControlList => "ObjectAccessControlList" + | .objectLockEventHoldDuration => "ObjectLockEventHoldDuration" + | .objectLockEventHoldStatus => "ObjectLockEventHoldStatus" + | .objectLockLegalHoldStatus => "ObjectLockLegalHoldStatus" + | .objectLockMode => "ObjectLockMode" + | .objectLockRetainUntilDate => "ObjectLockRetainUntilDate" + | .objectOwner => "ObjectOwner" + | .replicationStatus => "ReplicationStatus" + | .size => "Size" + | .storageClass => "StorageClass" + +def InventoryOptionalField.wireValues : List (String × InventoryOptionalField) := [ + ("BucketKeyStatus", .bucketKeyStatus), + ("ChecksumAlgorithm", .checksumAlgorithm), + ("ETag", .eTag), + ("EncryptionStatus", .encryptionStatus), + ("IntelligentTieringAccessTier", .intelligentTieringAccessTier), + ("IntelligentTieringReferenceDate", .intelligentTieringReferenceDate), + ("IsMultipartUploaded", .isMultipartUploaded), + ("LastModifiedDate", .lastModifiedDate), + ("LifecycleExpirationDate", .lifecycleExpirationDate), + ("ObjectAccessControlList", .objectAccessControlList), + ("ObjectLockEventHoldDuration", .objectLockEventHoldDuration), + ("ObjectLockEventHoldStatus", .objectLockEventHoldStatus), + ("ObjectLockLegalHoldStatus", .objectLockLegalHoldStatus), + ("ObjectLockMode", .objectLockMode), + ("ObjectLockRetainUntilDate", .objectLockRetainUntilDate), + ("ObjectOwner", .objectOwner), + ("ReplicationStatus", .replicationStatus), + ("Size", .size), + ("StorageClass", .storageClass)] + +def InventoryOptionalField.ofWire (text : String) : Except String InventoryOptionalField := + match List.find? (·.1 == text) InventoryOptionalField.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"InventoryOptionalField has no value {text}" + +instance : Key InventoryOptionalField := ⟨InventoryOptionalField.wire, InventoryOptionalField.ofWire⟩ + +instance : Shape InventoryOptionalField where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => InventoryOptionalField.ofWire text + | _ => .error "expected a string" + +/-- Specifies JSON as request's output serialization format. -/ +structure JSONOutput where + /-- The value used to separate individual records in the output. -/ + recordDelimiter : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape JSONOutput where + schema := .struct "JSONOutput" [({ name := "RecordDelimiter" }, .string)] + toValue x := record [putOpt "RecordDelimiter" x.recordDelimiter] + ofValue v := do + let recordDelimiter ← v.opt "RecordDelimiter" + return { recordDelimiter } + +inductive JSONType where + | document + | lines +deriving DecidableEq, Repr, Inhabited + +def JSONType.wire : JSONType → String + | .document => "DOCUMENT" + | .lines => "LINES" + +def JSONType.wireValues : List (String × JSONType) := [ + ("DOCUMENT", .document), + ("LINES", .lines)] + +def JSONType.ofWire (text : String) : Except String JSONType := + match List.find? (·.1 == text) JSONType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"JSONType has no value {text}" + +instance : Key JSONType := ⟨JSONType.wire, JSONType.ofWire⟩ + +instance : Shape JSONType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => JSONType.ofWire text + | _ => .error "expected a string" + +/-- Container for the expiration for the lifecycle of the object. -/ +structure LifecycleExpiration where + /-- Indicates at what date the object is to be moved or deleted. -/ + date : Option Timestamp := none + /-- Indicates the lifetime, in days, of the objects that are subject to the rule. -/ + days : Option Int := none + /-- Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. -/ + expiredObjectDeleteMarker : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LifecycleExpiration where + schema := .struct "LifecycleExpiration" [({ name := "Date" }, (.time (some .dateTime))), + ({ name := "Days" }, .int), + ({ name := "ExpiredObjectDeleteMarker" }, .bool)] + toValue x := record [putOpt "Date" x.date, putOpt "Days" x.days, putOpt "ExpiredObjectDeleteMarker" x.expiredObjectDeleteMarker] + ofValue v := do + let date ← v.opt "Date" + let days ← v.opt "Days" + let expiredObjectDeleteMarker ← v.opt "ExpiredObjectDeleteMarker" + return { date, days, expiredObjectDeleteMarker } + +structure ListBucketAnalyticsConfigurationsRequest where + /-- The name of the bucket from which analytics configurations are retrieved. -/ + bucket : String + /-- The ContinuationToken that represents a placeholder from where this request should begin. -/ + continuationToken : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListBucketAnalyticsConfigurationsRequest where + schema := .struct "ListBucketAnalyticsConfigurationsRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ContinuationToken", location := .query "continuation-token" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ContinuationToken" x.continuationToken, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let continuationToken ← v.opt "ContinuationToken" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, continuationToken, expectedBucketOwner } + +structure ListBucketIntelligentTieringConfigurationsRequest where + /-- The name of the Amazon S3 bucket whose configuration you want to modify or retrieve. -/ + bucket : String + /-- The ContinuationToken that represents a placeholder from where this request should begin. -/ + continuationToken : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListBucketIntelligentTieringConfigurationsRequest where + schema := .struct "ListBucketIntelligentTieringConfigurationsRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ContinuationToken", location := .query "continuation-token" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ContinuationToken" x.continuationToken, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let continuationToken ← v.opt "ContinuationToken" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, continuationToken, expectedBucketOwner } + +structure ListBucketInventoryConfigurationsRequest where + /-- The name of the bucket containing the inventory configurations to retrieve. -/ + bucket : String + /-- The marker used to continue an inventory configuration listing that has been truncated. -/ + continuationToken : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListBucketInventoryConfigurationsRequest where + schema := .struct "ListBucketInventoryConfigurationsRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ContinuationToken", location := .query "continuation-token" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ContinuationToken" x.continuationToken, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let continuationToken ← v.opt "ContinuationToken" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, continuationToken, expectedBucketOwner } + +structure ListBucketMetricsConfigurationsRequest where + /-- The name of the bucket containing the metrics configurations to retrieve. -/ + bucket : String + /-- The marker that is used to continue a metrics configuration listing that has been truncated. -/ + continuationToken : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListBucketMetricsConfigurationsRequest where + schema := .struct "ListBucketMetricsConfigurationsRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ContinuationToken", location := .query "continuation-token" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ContinuationToken" x.continuationToken, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let continuationToken ← v.opt "ContinuationToken" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, continuationToken, expectedBucketOwner } + +structure ListBucketsRequest where + /-- Limits the response to buckets that are located in the specified Amazon Web Services Region. -/ + bucketRegion : Option String := none + /-- ContinuationToken indicates to Amazon S3 that the list is being continued on this bucket with a token. -/ + continuationToken : Option String := none + /-- Maximum number of buckets to be returned in response. -/ + maxBuckets : Option Int := none + /-- Limits the response to bucket names that begin with the specified bucket name prefix. -/ + «prefix» : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListBucketsRequest where + schema := .struct "ListBucketsRequest" [({ name := "BucketRegion", location := .query "bucket-region" }, .string), + ({ name := "ContinuationToken", location := .query "continuation-token" }, .string), + ({ name := "MaxBuckets", location := .query "max-buckets" }, .int), + ({ name := "Prefix", location := .query "prefix" }, .string)] + toValue x := record [putOpt "BucketRegion" x.bucketRegion, putOpt "ContinuationToken" x.continuationToken, putOpt "MaxBuckets" x.maxBuckets, putOpt "Prefix" x.«prefix»] + ofValue v := do + let bucketRegion ← v.opt "BucketRegion" + let continuationToken ← v.opt "ContinuationToken" + let maxBuckets ← v.opt "MaxBuckets" + let «prefix» ← v.opt "Prefix" + return { bucketRegion, continuationToken, maxBuckets, «prefix» } + +structure ListDirectoryBucketsRequest where + /-- ContinuationToken indicates to Amazon S3 that the list is being continued on buckets in this account with a token. -/ + continuationToken : Option String := none + /-- Maximum number of buckets to be returned in response. -/ + maxDirectoryBuckets : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListDirectoryBucketsRequest where + schema := .struct "ListDirectoryBucketsRequest" [({ name := "ContinuationToken", location := .query "continuation-token" }, .string), + ({ name := "MaxDirectoryBuckets", location := .query "max-directory-buckets" }, .int)] + toValue x := record [putOpt "ContinuationToken" x.continuationToken, putOpt "MaxDirectoryBuckets" x.maxDirectoryBuckets] + ofValue v := do + let continuationToken ← v.opt "ContinuationToken" + let maxDirectoryBuckets ← v.opt "MaxDirectoryBuckets" + return { continuationToken, maxDirectoryBuckets } + +inductive LocationType where + | availabilityZone + | localZone +deriving DecidableEq, Repr, Inhabited + +def LocationType.wire : LocationType → String + | .availabilityZone => "AvailabilityZone" + | .localZone => "LocalZone" + +def LocationType.wireValues : List (String × LocationType) := [ + ("AvailabilityZone", .availabilityZone), + ("LocalZone", .localZone)] + +def LocationType.ofWire (text : String) : Except String LocationType := + match List.find? (·.1 == text) LocationType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LocationType has no value {text}" + +instance : Key LocationType := ⟨LocationType.wire, LocationType.ofWire⟩ + +instance : Shape LocationType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LocationType.ofWire text + | _ => .error "expected a string" + +inductive MFADelete where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def MFADelete.wire : MFADelete → String + | .disabled => "Disabled" + | .enabled => "Enabled" + +def MFADelete.wireValues : List (String × MFADelete) := [ + ("Disabled", .disabled), + ("Enabled", .enabled)] + +def MFADelete.ofWire (text : String) : Except String MFADelete := + match List.find? (·.1 == text) MFADelete.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"MFADelete has no value {text}" + +instance : Key MFADelete := ⟨MFADelete.wire, MFADelete.ofWire⟩ + +instance : Shape MFADelete where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => MFADelete.ofWire text + | _ => .error "expected a string" + +inductive MFADeleteStatus where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def MFADeleteStatus.wire : MFADeleteStatus → String + | .disabled => "Disabled" + | .enabled => "Enabled" + +def MFADeleteStatus.wireValues : List (String × MFADeleteStatus) := [ + ("Disabled", .disabled), + ("Enabled", .enabled)] + +def MFADeleteStatus.ofWire (text : String) : Except String MFADeleteStatus := + match List.find? (·.1 == text) MFADeleteStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"MFADeleteStatus has no value {text}" + +instance : Key MFADeleteStatus := ⟨MFADeleteStatus.wire, MFADeleteStatus.ofWire⟩ + +instance : Shape MFADeleteStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => MFADeleteStatus.ofWire text + | _ => .error "expected a string" + +inductive MetadataDirective where + | copy + | replace +deriving DecidableEq, Repr, Inhabited + +def MetadataDirective.wire : MetadataDirective → String + | .copy => "COPY" + | .replace => "REPLACE" + +def MetadataDirective.wireValues : List (String × MetadataDirective) := [ + ("COPY", .copy), + ("REPLACE", .replace)] + +def MetadataDirective.ofWire (text : String) : Except String MetadataDirective := + match List.find? (·.1 == text) MetadataDirective.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"MetadataDirective has no value {text}" + +instance : Key MetadataDirective := ⟨MetadataDirective.wire, MetadataDirective.ofWire⟩ + +instance : Shape MetadataDirective where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => MetadataDirective.ofWire text + | _ => .error "expected a string" + +/-- A metadata key-value pair to store with an object. -/ +structure MetadataEntry where + /-- Name of the object. -/ + name : Option String := none + /-- Value of the object. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MetadataEntry where + schema := .struct "MetadataEntry" [({ name := "Name" }, .string), + ({ name := "Value" }, .string)] + toValue x := record [putOpt "Name" x.name, putOpt "Value" x.value] + ofValue v := do + let name ← v.opt "Name" + let value ← v.opt "Value" + return { name, value } + +inductive MetricsStatus where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def MetricsStatus.wire : MetricsStatus → String + | .disabled => "Disabled" + | .enabled => "Enabled" + +def MetricsStatus.wireValues : List (String × MetricsStatus) := [ + ("Disabled", .disabled), + ("Enabled", .enabled)] + +def MetricsStatus.ofWire (text : String) : Except String MetricsStatus := + match List.find? (·.1 == text) MetricsStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"MetricsStatus has no value {text}" + +instance : Key MetricsStatus := ⟨MetricsStatus.wire, MetricsStatus.ofWire⟩ + +instance : Shape MetricsStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => MetricsStatus.ofWire text + | _ => .error "expected a string" + +/-- The specified annotation does not exist on this object. -/ +structure NoSuchAnnotation where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape NoSuchAnnotation where + schema := .struct "NoSuchAnnotation" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- The specified bucket does not exist. -/ +structure NoSuchBucket where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape NoSuchBucket where + schema := .struct "NoSuchBucket" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- The specified key does not exist. -/ +structure NoSuchKey where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape NoSuchKey where + schema := .struct "NoSuchKey" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- The specified multipart upload does not exist. -/ +structure NoSuchUpload where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape NoSuchUpload where + schema := .struct "NoSuchUpload" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- Specifies when noncurrent object versions expire. -/ +structure NoncurrentVersionExpiration where + /-- Specifies how many noncurrent versions Amazon S3 will retain. -/ + newerNoncurrentVersions : Option Int := none + /-- Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. -/ + noncurrentDays : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NoncurrentVersionExpiration where + schema := .struct "NoncurrentVersionExpiration" [({ name := "NewerNoncurrentVersions" }, .int), + ({ name := "NoncurrentDays" }, .int)] + toValue x := record [putOpt "NewerNoncurrentVersions" x.newerNoncurrentVersions, putOpt "NoncurrentDays" x.noncurrentDays] + ofValue v := do + let newerNoncurrentVersions ← v.opt "NewerNoncurrentVersions" + let noncurrentDays ← v.opt "NoncurrentDays" + return { newerNoncurrentVersions, noncurrentDays } + +/-- The specified content does not exist. -/ +structure NotFound where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape NotFound where + schema := .struct "NotFound" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- This action is not allowed against this storage tier. -/ +structure ObjectAlreadyInActiveTierError where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape ObjectAlreadyInActiveTierError where + schema := .struct "ObjectAlreadyInActiveTierError" [] + toValue _ := record [] + ofValue _ := do + return { } + +inductive ObjectAttributes where + | checksum + | etag + | objecT_PARTS + | objecT_SIZE + | storagE_CLASS +deriving DecidableEq, Repr, Inhabited + +def ObjectAttributes.wire : ObjectAttributes → String + | .checksum => "Checksum" + | .etag => "ETag" + | .objecT_PARTS => "ObjectParts" + | .objecT_SIZE => "ObjectSize" + | .storagE_CLASS => "StorageClass" + +def ObjectAttributes.wireValues : List (String × ObjectAttributes) := [ + ("Checksum", .checksum), + ("ETag", .etag), + ("ObjectParts", .objecT_PARTS), + ("ObjectSize", .objecT_SIZE), + ("StorageClass", .storagE_CLASS)] + +def ObjectAttributes.ofWire (text : String) : Except String ObjectAttributes := + match List.find? (·.1 == text) ObjectAttributes.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ObjectAttributes has no value {text}" + +instance : Key ObjectAttributes := ⟨ObjectAttributes.wire, ObjectAttributes.ofWire⟩ + +instance : Shape ObjectAttributes where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ObjectAttributes.ofWire text + | _ => .error "expected a string" + +inductive ObjectCannedACL where + | authenticated_read + | aws_exec_read + | bucket_owner_full_control + | bucket_owner_read + | «private» + | public_read + | public_read_write +deriving DecidableEq, Repr, Inhabited + +def ObjectCannedACL.wire : ObjectCannedACL → String + | .authenticated_read => "authenticated-read" + | .aws_exec_read => "aws-exec-read" + | .bucket_owner_full_control => "bucket-owner-full-control" + | .bucket_owner_read => "bucket-owner-read" + | .«private» => "private" + | .public_read => "public-read" + | .public_read_write => "public-read-write" + +def ObjectCannedACL.wireValues : List (String × ObjectCannedACL) := [ + ("authenticated-read", .authenticated_read), + ("aws-exec-read", .aws_exec_read), + ("bucket-owner-full-control", .bucket_owner_full_control), + ("bucket-owner-read", .bucket_owner_read), + ("private", .«private»), + ("public-read", .public_read), + ("public-read-write", .public_read_write)] + +def ObjectCannedACL.ofWire (text : String) : Except String ObjectCannedACL := + match List.find? (·.1 == text) ObjectCannedACL.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ObjectCannedACL has no value {text}" + +instance : Key ObjectCannedACL := ⟨ObjectCannedACL.wire, ObjectCannedACL.ofWire⟩ + +instance : Shape ObjectCannedACL where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ObjectCannedACL.ofWire text + | _ => .error "expected a string" + +/-- Object Identifier is unique value to identify objects. -/ +structure ObjectIdentifier where + /-- An entity tag (ETag) is an identifier assigned by a web server to a specific version of a resource found at a URL. -/ + eTag : Option String := none + /-- Key name of the object. -/ + key : String + /-- If present, the objects are deleted only if its modification times matches the provided Timestamp . -/ + lastModifiedTime : Option Timestamp := none + /-- If present, the objects are deleted only if its size matches the provided size in bytes. -/ + size : Option Int := none + /-- Version ID for the specific version of the object to delete. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ObjectIdentifier where + schema := .struct "ObjectIdentifier" [({ name := "ETag" }, .string), + ({ name := "Key", required := true }, .string), + ({ name := "LastModifiedTime" }, (.time (some .httpDate))), + ({ name := "Size" }, .int), + ({ name := "VersionId" }, .string)] + toValue x := record [putOpt "ETag" x.eTag, put "Key" x.key, putOpt "LastModifiedTime" x.lastModifiedTime, putOpt "Size" x.size, putOpt "VersionId" x.versionId] + ofValue v := do + let eTag ← v.opt "ETag" + let key ← v.req "Key" + let lastModifiedTime ← v.opt "LastModifiedTime" + let size ← v.opt "Size" + let versionId ← v.opt "VersionId" + return { eTag, key, lastModifiedTime, size, versionId } + +inductive ObjectLockEnabled where + | enabled +deriving DecidableEq, Repr, Inhabited + +def ObjectLockEnabled.wire : ObjectLockEnabled → String + | .enabled => "Enabled" + +def ObjectLockEnabled.wireValues : List (String × ObjectLockEnabled) := [ + ("Enabled", .enabled)] + +def ObjectLockEnabled.ofWire (text : String) : Except String ObjectLockEnabled := + match List.find? (·.1 == text) ObjectLockEnabled.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ObjectLockEnabled has no value {text}" + +instance : Key ObjectLockEnabled := ⟨ObjectLockEnabled.wire, ObjectLockEnabled.ofWire⟩ + +instance : Shape ObjectLockEnabled where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ObjectLockEnabled.ofWire text + | _ => .error "expected a string" + +inductive ObjectLockEventHold where + | off + | on +deriving DecidableEq, Repr, Inhabited + +def ObjectLockEventHold.wire : ObjectLockEventHold → String + | .off => "OFF" + | .on => "ON" + +def ObjectLockEventHold.wireValues : List (String × ObjectLockEventHold) := [ + ("OFF", .off), + ("ON", .on)] + +def ObjectLockEventHold.ofWire (text : String) : Except String ObjectLockEventHold := + match List.find? (·.1 == text) ObjectLockEventHold.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ObjectLockEventHold has no value {text}" + +instance : Key ObjectLockEventHold := ⟨ObjectLockEventHold.wire, ObjectLockEventHold.ofWire⟩ + +instance : Shape ObjectLockEventHold where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ObjectLockEventHold.ofWire text + | _ => .error "expected a string" + +inductive ObjectLockLegalHoldStatus where + | off + | on +deriving DecidableEq, Repr, Inhabited + +def ObjectLockLegalHoldStatus.wire : ObjectLockLegalHoldStatus → String + | .off => "OFF" + | .on => "ON" + +def ObjectLockLegalHoldStatus.wireValues : List (String × ObjectLockLegalHoldStatus) := [ + ("OFF", .off), + ("ON", .on)] + +def ObjectLockLegalHoldStatus.ofWire (text : String) : Except String ObjectLockLegalHoldStatus := + match List.find? (·.1 == text) ObjectLockLegalHoldStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ObjectLockLegalHoldStatus has no value {text}" + +instance : Key ObjectLockLegalHoldStatus := ⟨ObjectLockLegalHoldStatus.wire, ObjectLockLegalHoldStatus.ofWire⟩ + +instance : Shape ObjectLockLegalHoldStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ObjectLockLegalHoldStatus.ofWire text + | _ => .error "expected a string" + +inductive ObjectLockMode where + | compliance + | governance +deriving DecidableEq, Repr, Inhabited + +def ObjectLockMode.wire : ObjectLockMode → String + | .compliance => "COMPLIANCE" + | .governance => "GOVERNANCE" + +def ObjectLockMode.wireValues : List (String × ObjectLockMode) := [ + ("COMPLIANCE", .compliance), + ("GOVERNANCE", .governance)] + +def ObjectLockMode.ofWire (text : String) : Except String ObjectLockMode := + match List.find? (·.1 == text) ObjectLockMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ObjectLockMode has no value {text}" + +instance : Key ObjectLockMode := ⟨ObjectLockMode.wire, ObjectLockMode.ofWire⟩ + +instance : Shape ObjectLockMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ObjectLockMode.ofWire text + | _ => .error "expected a string" + +inductive ObjectLockRetentionMode where + | compliance + | governance +deriving DecidableEq, Repr, Inhabited + +def ObjectLockRetentionMode.wire : ObjectLockRetentionMode → String + | .compliance => "COMPLIANCE" + | .governance => "GOVERNANCE" + +def ObjectLockRetentionMode.wireValues : List (String × ObjectLockRetentionMode) := [ + ("COMPLIANCE", .compliance), + ("GOVERNANCE", .governance)] + +def ObjectLockRetentionMode.ofWire (text : String) : Except String ObjectLockRetentionMode := + match List.find? (·.1 == text) ObjectLockRetentionMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ObjectLockRetentionMode has no value {text}" + +instance : Key ObjectLockRetentionMode := ⟨ObjectLockRetentionMode.wire, ObjectLockRetentionMode.ofWire⟩ + +instance : Shape ObjectLockRetentionMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ObjectLockRetentionMode.ofWire text + | _ => .error "expected a string" + +/-- The source object of the COPY action is not in the active tier and is only stored in Amazon S3 Glacier. -/ +structure ObjectNotInActiveTierError where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape ObjectNotInActiveTierError where + schema := .struct "ObjectNotInActiveTierError" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- The container element for object ownership for a bucket's ownership controls. -/ +inductive ObjectOwnership where + | bucketOwnerEnforced + | bucketOwnerPreferred + | objectWriter +deriving DecidableEq, Repr, Inhabited + +def ObjectOwnership.wire : ObjectOwnership → String + | .bucketOwnerEnforced => "BucketOwnerEnforced" + | .bucketOwnerPreferred => "BucketOwnerPreferred" + | .objectWriter => "ObjectWriter" + +def ObjectOwnership.wireValues : List (String × ObjectOwnership) := [ + ("BucketOwnerEnforced", .bucketOwnerEnforced), + ("BucketOwnerPreferred", .bucketOwnerPreferred), + ("ObjectWriter", .objectWriter)] + +def ObjectOwnership.ofWire (text : String) : Except String ObjectOwnership := + match List.find? (·.1 == text) ObjectOwnership.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ObjectOwnership has no value {text}" + +instance : Key ObjectOwnership := ⟨ObjectOwnership.wire, ObjectOwnership.ofWire⟩ + +instance : Shape ObjectOwnership where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ObjectOwnership.ofWire text + | _ => .error "expected a string" + +/-- A container for elements related to an individual part. -/ +structure ObjectPart where + /-- The Base64 encoded, 32-bit CRC32 checksum of the part. -/ + checksumCRC32 : Option String := none + /-- The Base64 encoded, 32-bit CRC32C checksum of the part. -/ + checksumCRC32C : Option String := none + /-- The Base64 encoded, 64-bit CRC64NVME checksum of the part. -/ + checksumCRC64NVME : Option String := none + /-- The Base64 encoded, 128-bit MD5 digest of the part. -/ + checksumMD5 : Option String := none + /-- The Base64 encoded, 160-bit SHA1 checksum of the part. -/ + checksumSHA1 : Option String := none + /-- The Base64 encoded, 256-bit SHA256 checksum of the part. -/ + checksumSHA256 : Option String := none + /-- The Base64 encoded, 512-bit SHA512 digest of the part. -/ + checksumSHA512 : Option String := none + /-- The Base64 encoded, 128-bit XXHASH128 checksum of the part. -/ + checksumXXHASH128 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH3 checksum of the part. -/ + checksumXXHASH3 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH64 checksum of the part. -/ + checksumXXHASH64 : Option String := none + /-- The part number identifying the part. -/ + partNumber : Option Int := none + /-- The size of the uploaded part in bytes. -/ + size : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ObjectPart where + schema := .struct "ObjectPart" [({ name := "ChecksumCRC32" }, .string), + ({ name := "ChecksumCRC32C" }, .string), + ({ name := "ChecksumCRC64NVME" }, .string), + ({ name := "ChecksumMD5" }, .string), + ({ name := "ChecksumSHA1" }, .string), + ({ name := "ChecksumSHA256" }, .string), + ({ name := "ChecksumSHA512" }, .string), + ({ name := "ChecksumXXHASH128" }, .string), + ({ name := "ChecksumXXHASH3" }, .string), + ({ name := "ChecksumXXHASH64" }, .string), + ({ name := "PartNumber" }, .int), + ({ name := "Size" }, .int)] + toValue x := record [putOpt "ChecksumCRC32" x.checksumCRC32, putOpt "ChecksumCRC32C" x.checksumCRC32C, putOpt "ChecksumCRC64NVME" x.checksumCRC64NVME, putOpt "ChecksumMD5" x.checksumMD5, putOpt "ChecksumSHA1" x.checksumSHA1, putOpt "ChecksumSHA256" x.checksumSHA256, putOpt "ChecksumSHA512" x.checksumSHA512, putOpt "ChecksumXXHASH128" x.checksumXXHASH128, putOpt "ChecksumXXHASH3" x.checksumXXHASH3, putOpt "ChecksumXXHASH64" x.checksumXXHASH64, putOpt "PartNumber" x.partNumber, putOpt "Size" x.size] + ofValue v := do + let checksumCRC32 ← v.opt "ChecksumCRC32" + let checksumCRC32C ← v.opt "ChecksumCRC32C" + let checksumCRC64NVME ← v.opt "ChecksumCRC64NVME" + let checksumMD5 ← v.opt "ChecksumMD5" + let checksumSHA1 ← v.opt "ChecksumSHA1" + let checksumSHA256 ← v.opt "ChecksumSHA256" + let checksumSHA512 ← v.opt "ChecksumSHA512" + let checksumXXHASH128 ← v.opt "ChecksumXXHASH128" + let checksumXXHASH3 ← v.opt "ChecksumXXHASH3" + let checksumXXHASH64 ← v.opt "ChecksumXXHASH64" + let partNumber ← v.opt "PartNumber" + let size ← v.opt "Size" + return { checksumCRC32, checksumCRC32C, checksumCRC64NVME, checksumMD5, checksumSHA1, checksumSHA256, checksumSHA512, checksumXXHASH128, checksumXXHASH3, checksumXXHASH64, partNumber, size } + +inductive ObjectStorageClass where + | awS_BACKUP_LOW_COST_WARM + | awS_BACKUP_WARM + | deeP_ARCHIVE + | expresS_ONEZONE + | fsX_ONTAP + | fsX_OPENZFS + | glacier + | glacieR_IR + | intelligenT_TIERING + | onezonE_IA + | outposts + | reduceD_REDUNDANCY + | snow + | standard + | standarD_IA +deriving DecidableEq, Repr, Inhabited + +def ObjectStorageClass.wire : ObjectStorageClass → String + | .awS_BACKUP_LOW_COST_WARM => "AWS_BACKUP_LOW_COST_WARM" + | .awS_BACKUP_WARM => "AWS_BACKUP_WARM" + | .deeP_ARCHIVE => "DEEP_ARCHIVE" + | .expresS_ONEZONE => "EXPRESS_ONEZONE" + | .fsX_ONTAP => "FSX_ONTAP" + | .fsX_OPENZFS => "FSX_OPENZFS" + | .glacier => "GLACIER" + | .glacieR_IR => "GLACIER_IR" + | .intelligenT_TIERING => "INTELLIGENT_TIERING" + | .onezonE_IA => "ONEZONE_IA" + | .outposts => "OUTPOSTS" + | .reduceD_REDUNDANCY => "REDUCED_REDUNDANCY" + | .snow => "SNOW" + | .standard => "STANDARD" + | .standarD_IA => "STANDARD_IA" + +def ObjectStorageClass.wireValues : List (String × ObjectStorageClass) := [ + ("AWS_BACKUP_LOW_COST_WARM", .awS_BACKUP_LOW_COST_WARM), + ("AWS_BACKUP_WARM", .awS_BACKUP_WARM), + ("DEEP_ARCHIVE", .deeP_ARCHIVE), + ("EXPRESS_ONEZONE", .expresS_ONEZONE), + ("FSX_ONTAP", .fsX_ONTAP), + ("FSX_OPENZFS", .fsX_OPENZFS), + ("GLACIER", .glacier), + ("GLACIER_IR", .glacieR_IR), + ("INTELLIGENT_TIERING", .intelligenT_TIERING), + ("ONEZONE_IA", .onezonE_IA), + ("OUTPOSTS", .outposts), + ("REDUCED_REDUNDANCY", .reduceD_REDUNDANCY), + ("SNOW", .snow), + ("STANDARD", .standard), + ("STANDARD_IA", .standarD_IA)] + +def ObjectStorageClass.ofWire (text : String) : Except String ObjectStorageClass := + match List.find? (·.1 == text) ObjectStorageClass.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ObjectStorageClass has no value {text}" + +instance : Key ObjectStorageClass := ⟨ObjectStorageClass.wire, ObjectStorageClass.ofWire⟩ + +instance : Shape ObjectStorageClass where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ObjectStorageClass.ofWire text + | _ => .error "expected a string" + +inductive ObjectVersionStorageClass where + | standard +deriving DecidableEq, Repr, Inhabited + +def ObjectVersionStorageClass.wire : ObjectVersionStorageClass → String + | .standard => "STANDARD" + +def ObjectVersionStorageClass.wireValues : List (String × ObjectVersionStorageClass) := [ + ("STANDARD", .standard)] + +def ObjectVersionStorageClass.ofWire (text : String) : Except String ObjectVersionStorageClass := + match List.find? (·.1 == text) ObjectVersionStorageClass.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ObjectVersionStorageClass has no value {text}" + +instance : Key ObjectVersionStorageClass := ⟨ObjectVersionStorageClass.wire, ObjectVersionStorageClass.ofWire⟩ + +instance : Shape ObjectVersionStorageClass where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ObjectVersionStorageClass.ofWire text + | _ => .error "expected a string" + +inductive OptionalObjectAttributes where + | restorE_STATUS +deriving DecidableEq, Repr, Inhabited + +def OptionalObjectAttributes.wire : OptionalObjectAttributes → String + | .restorE_STATUS => "RestoreStatus" + +def OptionalObjectAttributes.wireValues : List (String × OptionalObjectAttributes) := [ + ("RestoreStatus", .restorE_STATUS)] + +def OptionalObjectAttributes.ofWire (text : String) : Except String OptionalObjectAttributes := + match List.find? (·.1 == text) OptionalObjectAttributes.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"OptionalObjectAttributes has no value {text}" + +instance : Key OptionalObjectAttributes := ⟨OptionalObjectAttributes.wire, OptionalObjectAttributes.ofWire⟩ + +instance : Shape OptionalObjectAttributes where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => OptionalObjectAttributes.ofWire text + | _ => .error "expected a string" + +/-- Container for the owner's display name and ID. -/ +structure Owner where + displayName : Option String := none + /-- Container for the ID of the owner. -/ + id : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Owner where + schema := .struct "Owner" [({ name := "DisplayName" }, .string), + ({ name := "ID" }, .string)] + toValue x := record [putOpt "DisplayName" x.displayName, putOpt "ID" x.id] + ofValue v := do + let displayName ← v.opt "DisplayName" + let id ← v.opt "ID" + return { displayName, id } + +inductive OwnerOverride where + | destination +deriving DecidableEq, Repr, Inhabited + +def OwnerOverride.wire : OwnerOverride → String + | .destination => "Destination" + +def OwnerOverride.wireValues : List (String × OwnerOverride) := [ + ("Destination", .destination)] + +def OwnerOverride.ofWire (text : String) : Except String OwnerOverride := + match List.find? (·.1 == text) OwnerOverride.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"OwnerOverride has no value {text}" + +instance : Key OwnerOverride := ⟨OwnerOverride.wire, OwnerOverride.ofWire⟩ + +instance : Shape OwnerOverride where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => OwnerOverride.ofWire text + | _ => .error "expected a string" + +/-- Container for Parquet. -/ +structure ParquetInput where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape ParquetInput where + schema := .struct "ParquetInput" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- Container for elements related to a part. -/ +structure Part where + /-- The Base64 encoded, 32-bit CRC32 checksum of the part. -/ + checksumCRC32 : Option String := none + /-- The Base64 encoded, 32-bit CRC32C checksum of the part. -/ + checksumCRC32C : Option String := none + /-- The Base64 encoded, 64-bit CRC64NVME checksum of the part. -/ + checksumCRC64NVME : Option String := none + /-- The Base64 encoded, 128-bit MD5 digest of the part. -/ + checksumMD5 : Option String := none + /-- The Base64 encoded, 160-bit SHA1 checksum of the part. -/ + checksumSHA1 : Option String := none + /-- The Base64 encoded, 256-bit SHA256 checksum of the part. -/ + checksumSHA256 : Option String := none + /-- The Base64 encoded, 512-bit SHA512 digest of the part. -/ + checksumSHA512 : Option String := none + /-- The Base64 encoded, 128-bit XXHASH128 checksum of the part. -/ + checksumXXHASH128 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH3 checksum of the part. -/ + checksumXXHASH3 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH64 checksum of the part. -/ + checksumXXHASH64 : Option String := none + /-- Entity tag returned when the part was uploaded. -/ + eTag : Option String := none + /-- Date and time at which the part was uploaded. -/ + lastModified : Option Timestamp := none + /-- Part number identifying the part. -/ + partNumber : Option Int := none + /-- Size in bytes of the uploaded part data. -/ + size : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Part where + schema := .struct "Part" [({ name := "ChecksumCRC32" }, .string), + ({ name := "ChecksumCRC32C" }, .string), + ({ name := "ChecksumCRC64NVME" }, .string), + ({ name := "ChecksumMD5" }, .string), + ({ name := "ChecksumSHA1" }, .string), + ({ name := "ChecksumSHA256" }, .string), + ({ name := "ChecksumSHA512" }, .string), + ({ name := "ChecksumXXHASH128" }, .string), + ({ name := "ChecksumXXHASH3" }, .string), + ({ name := "ChecksumXXHASH64" }, .string), + ({ name := "ETag" }, .string), + ({ name := "LastModified" }, (.time none)), + ({ name := "PartNumber" }, .int), + ({ name := "Size" }, .int)] + toValue x := record [putOpt "ChecksumCRC32" x.checksumCRC32, putOpt "ChecksumCRC32C" x.checksumCRC32C, putOpt "ChecksumCRC64NVME" x.checksumCRC64NVME, putOpt "ChecksumMD5" x.checksumMD5, putOpt "ChecksumSHA1" x.checksumSHA1, putOpt "ChecksumSHA256" x.checksumSHA256, putOpt "ChecksumSHA512" x.checksumSHA512, putOpt "ChecksumXXHASH128" x.checksumXXHASH128, putOpt "ChecksumXXHASH3" x.checksumXXHASH3, putOpt "ChecksumXXHASH64" x.checksumXXHASH64, putOpt "ETag" x.eTag, putOpt "LastModified" x.lastModified, putOpt "PartNumber" x.partNumber, putOpt "Size" x.size] + ofValue v := do + let checksumCRC32 ← v.opt "ChecksumCRC32" + let checksumCRC32C ← v.opt "ChecksumCRC32C" + let checksumCRC64NVME ← v.opt "ChecksumCRC64NVME" + let checksumMD5 ← v.opt "ChecksumMD5" + let checksumSHA1 ← v.opt "ChecksumSHA1" + let checksumSHA256 ← v.opt "ChecksumSHA256" + let checksumSHA512 ← v.opt "ChecksumSHA512" + let checksumXXHASH128 ← v.opt "ChecksumXXHASH128" + let checksumXXHASH3 ← v.opt "ChecksumXXHASH3" + let checksumXXHASH64 ← v.opt "ChecksumXXHASH64" + let eTag ← v.opt "ETag" + let lastModified ← v.opt "LastModified" + let partNumber ← v.opt "PartNumber" + let size ← v.opt "Size" + return { checksumCRC32, checksumCRC32C, checksumCRC64NVME, checksumMD5, checksumSHA1, checksumSHA256, checksumSHA512, checksumXXHASH128, checksumXXHASH3, checksumXXHASH64, eTag, lastModified, partNumber, size } + +inductive PartitionDateSource where + | deliveryTime + | eventTime +deriving DecidableEq, Repr, Inhabited + +def PartitionDateSource.wire : PartitionDateSource → String + | .deliveryTime => "DeliveryTime" + | .eventTime => "EventTime" + +def PartitionDateSource.wireValues : List (String × PartitionDateSource) := [ + ("DeliveryTime", .deliveryTime), + ("EventTime", .eventTime)] + +def PartitionDateSource.ofWire (text : String) : Except String PartitionDateSource := + match List.find? (·.1 == text) PartitionDateSource.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"PartitionDateSource has no value {text}" + +instance : Key PartitionDateSource := ⟨PartitionDateSource.wire, PartitionDateSource.ofWire⟩ + +instance : Shape PartitionDateSource where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => PartitionDateSource.ofWire text + | _ => .error "expected a string" + +inductive Payer where + | bucketOwner + | requester +deriving DecidableEq, Repr, Inhabited + +def Payer.wire : Payer → String + | .bucketOwner => "BucketOwner" + | .requester => "Requester" + +def Payer.wireValues : List (String × Payer) := [ + ("BucketOwner", .bucketOwner), + ("Requester", .requester)] + +def Payer.ofWire (text : String) : Except String Payer := + match List.find? (·.1 == text) Payer.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Payer has no value {text}" + +instance : Key Payer := ⟨Payer.wire, Payer.ofWire⟩ + +instance : Shape Payer where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Payer.ofWire text + | _ => .error "expected a string" + +inductive Permission where + | fulL_CONTROL + | read + | reaD_ACP + | write + | writE_ACP +deriving DecidableEq, Repr, Inhabited + +def Permission.wire : Permission → String + | .fulL_CONTROL => "FULL_CONTROL" + | .read => "READ" + | .reaD_ACP => "READ_ACP" + | .write => "WRITE" + | .writE_ACP => "WRITE_ACP" + +def Permission.wireValues : List (String × Permission) := [ + ("FULL_CONTROL", .fulL_CONTROL), + ("READ", .read), + ("READ_ACP", .reaD_ACP), + ("WRITE", .write), + ("WRITE_ACP", .writE_ACP)] + +def Permission.ofWire (text : String) : Except String Permission := + match List.find? (·.1 == text) Permission.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Permission has no value {text}" + +instance : Key Permission := ⟨Permission.wire, Permission.ofWire⟩ + +instance : Shape Permission where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Permission.ofWire text + | _ => .error "expected a string" + +/-- The container element for a bucket's policy status. -/ +structure PolicyStatus where + /-- The policy status for this bucket. -/ + isPublic : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PolicyStatus where + schema := .struct "PolicyStatus" [({ name := "IsPublic", xmlName := some "IsPublic" }, .bool)] + toValue x := record [putOpt "IsPublic" x.isPublic] + ofValue v := do + let isPublic ← v.opt "IsPublic" + return { isPublic } + +/-- This data type contains information about progress of an operation. -/ +structure Progress where + /-- The current number of uncompressed object bytes processed. -/ + bytesProcessed : Option Int := none + /-- The current number of bytes of records payload data returned. -/ + bytesReturned : Option Int := none + /-- The current number of object bytes scanned. -/ + bytesScanned : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Progress where + schema := .struct "Progress" [({ name := "BytesProcessed" }, .int), + ({ name := "BytesReturned" }, .int), + ({ name := "BytesScanned" }, .int)] + toValue x := record [putOpt "BytesProcessed" x.bytesProcessed, putOpt "BytesReturned" x.bytesReturned, putOpt "BytesScanned" x.bytesScanned] + ofValue v := do + let bytesProcessed ← v.opt "BytesProcessed" + let bytesReturned ← v.opt "BytesReturned" + let bytesScanned ← v.opt "BytesScanned" + return { bytesProcessed, bytesReturned, bytesScanned } + +inductive Protocol_ where + | http + | https +deriving DecidableEq, Repr, Inhabited + +def Protocol_.wire : Protocol_ → String + | .http => "http" + | .https => "https" + +def Protocol_.wireValues : List (String × Protocol_) := [ + ("http", .http), + ("https", .https)] + +def Protocol_.ofWire (text : String) : Except String Protocol_ := + match List.find? (·.1 == text) Protocol_.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Protocol_ has no value {text}" + +instance : Key Protocol_ := ⟨Protocol_.wire, Protocol_.ofWire⟩ + +instance : Shape Protocol_ where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Protocol_.ofWire text + | _ => .error "expected a string" + +/-- The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket. -/ +structure PublicAccessBlockConfiguration where + /-- Specifies whether Amazon S3 should block public access control lists (ACLs) for this bucket and objects in this bucket. -/ + blockPublicAcls : Option Bool := none + /-- Specifies whether Amazon S3 should block public bucket policies for this bucket. -/ + blockPublicPolicy : Option Bool := none + /-- Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket. -/ + ignorePublicAcls : Option Bool := none + /-- Specifies whether Amazon S3 should restrict public bucket policies for this bucket. -/ + restrictPublicBuckets : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PublicAccessBlockConfiguration where + schema := .struct "PublicAccessBlockConfiguration" [({ name := "BlockPublicAcls", xmlName := some "BlockPublicAcls" }, .bool), + ({ name := "BlockPublicPolicy", xmlName := some "BlockPublicPolicy" }, .bool), + ({ name := "IgnorePublicAcls", xmlName := some "IgnorePublicAcls" }, .bool), + ({ name := "RestrictPublicBuckets", xmlName := some "RestrictPublicBuckets" }, .bool)] + toValue x := record [putOpt "BlockPublicAcls" x.blockPublicAcls, putOpt "BlockPublicPolicy" x.blockPublicPolicy, putOpt "IgnorePublicAcls" x.ignorePublicAcls, putOpt "RestrictPublicBuckets" x.restrictPublicBuckets] + ofValue v := do + let blockPublicAcls ← v.opt "BlockPublicAcls" + let blockPublicPolicy ← v.opt "BlockPublicPolicy" + let ignorePublicAcls ← v.opt "IgnorePublicAcls" + let restrictPublicBuckets ← v.opt "RestrictPublicBuckets" + return { blockPublicAcls, blockPublicPolicy, ignorePublicAcls, restrictPublicBuckets } + +structure PutObjectTaggingOutput where + /-- The versionId of the object the tag-set was added to. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutObjectTaggingOutput where + schema := .struct "PutObjectTaggingOutput" [({ name := "VersionId", location := .header "x-amz-version-id" }, .string)] + toValue x := record [putOpt "VersionId" x.versionId] + ofValue v := do + let versionId ← v.opt "VersionId" + return { versionId } + +inductive QuoteFields where + | always + | asneeded +deriving DecidableEq, Repr, Inhabited + +def QuoteFields.wire : QuoteFields → String + | .always => "ALWAYS" + | .asneeded => "ASNEEDED" + +def QuoteFields.wireValues : List (String × QuoteFields) := [ + ("ALWAYS", .always), + ("ASNEEDED", .asneeded)] + +def QuoteFields.ofWire (text : String) : Except String QuoteFields := + match List.find? (·.1 == text) QuoteFields.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"QuoteFields has no value {text}" + +instance : Key QuoteFields := ⟨QuoteFields.wire, QuoteFields.ofWire⟩ + +instance : Shape QuoteFields where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => QuoteFields.ofWire text + | _ => .error "expected a string" + +/-- The container for the records event. -/ +structure RecordsEvent where + /-- The byte array of partial, one or more result records. -/ + payload : Option Blob := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RecordsEvent where + schema := .struct "RecordsEvent" [({ name := "Payload" }, .blob)] + toValue x := record [putOpt "Payload" x.payload] + ofValue v := do + let payload ← v.opt "Payload" + return { payload } + +structure RenameObjectOutput where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape RenameObjectOutput where + schema := .struct "RenameObjectOutput" [] + toValue _ := record [] + ofValue _ := do + return { } + +structure RenameObjectRequest where + /-- The bucket name of the directory bucket containing the object. -/ + bucket : String + /-- A unique string with a max of 64 ASCII characters in the ASCII range of 33 - 126. -/ + clientToken : Option String := none + /-- Renames the object only if the ETag (entity tag) value provided during the operation matches the ETag of the object in S3. -/ + destinationIfMatch : Option String := none + /-- Renames the object if the destination exists and if it has been modified since the specified time. -/ + destinationIfModifiedSince : Option Timestamp := none + /-- Renames the object only if the destination does not already exist in the specified directory bucket. -/ + destinationIfNoneMatch : Option String := none + /-- Renames the object if it hasn't been modified since the specified time. -/ + destinationIfUnmodifiedSince : Option Timestamp := none + /-- Key name of the object to rename. -/ + key : String + /-- Specifies the source for the rename operation. -/ + renameSource : String + /-- Renames the object if the source exists and if its entity tag (ETag) matches the specified ETag. -/ + sourceIfMatch : Option String := none + /-- Renames the object if the source exists and if it has been modified since the specified time. -/ + sourceIfModifiedSince : Option Timestamp := none + /-- Renames the object if the source exists and if its entity tag (ETag) is different than the specified ETag. -/ + sourceIfNoneMatch : Option String := none + /-- Renames the object if the source exists and hasn't been modified since the specified time. -/ + sourceIfUnmodifiedSince : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RenameObjectRequest where + schema := .struct "RenameObjectRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ClientToken", location := .header "x-amz-client-token" }, .string), + ({ name := "DestinationIfMatch", location := .header "If-Match" }, .string), + ({ name := "DestinationIfModifiedSince", location := .header "If-Modified-Since" }, (.time none)), + ({ name := "DestinationIfNoneMatch", location := .header "If-None-Match" }, .string), + ({ name := "DestinationIfUnmodifiedSince", location := .header "If-Unmodified-Since" }, (.time none)), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "RenameSource", required := true, location := .header "x-amz-rename-source" }, .string), + ({ name := "SourceIfMatch", location := .header "x-amz-rename-source-if-match" }, .string), + ({ name := "SourceIfModifiedSince", location := .header "x-amz-rename-source-if-modified-since" }, (.time (some .httpDate))), + ({ name := "SourceIfNoneMatch", location := .header "x-amz-rename-source-if-none-match" }, .string), + ({ name := "SourceIfUnmodifiedSince", location := .header "x-amz-rename-source-if-unmodified-since" }, (.time (some .httpDate)))] + toValue x := record [put "Bucket" x.bucket, putOpt "ClientToken" x.clientToken, putOpt "DestinationIfMatch" x.destinationIfMatch, putOpt "DestinationIfModifiedSince" x.destinationIfModifiedSince, putOpt "DestinationIfNoneMatch" x.destinationIfNoneMatch, putOpt "DestinationIfUnmodifiedSince" x.destinationIfUnmodifiedSince, put "Key" x.key, put "RenameSource" x.renameSource, putOpt "SourceIfMatch" x.sourceIfMatch, putOpt "SourceIfModifiedSince" x.sourceIfModifiedSince, putOpt "SourceIfNoneMatch" x.sourceIfNoneMatch, putOpt "SourceIfUnmodifiedSince" x.sourceIfUnmodifiedSince] + ofValue v := do + let bucket ← v.req "Bucket" + let clientToken ← v.opt "ClientToken" + let destinationIfMatch ← v.opt "DestinationIfMatch" + let destinationIfModifiedSince ← v.opt "DestinationIfModifiedSince" + let destinationIfNoneMatch ← v.opt "DestinationIfNoneMatch" + let destinationIfUnmodifiedSince ← v.opt "DestinationIfUnmodifiedSince" + let key ← v.req "Key" + let renameSource ← v.req "RenameSource" + let sourceIfMatch ← v.opt "SourceIfMatch" + let sourceIfModifiedSince ← v.opt "SourceIfModifiedSince" + let sourceIfNoneMatch ← v.opt "SourceIfNoneMatch" + let sourceIfUnmodifiedSince ← v.opt "SourceIfUnmodifiedSince" + return { bucket, clientToken, destinationIfMatch, destinationIfModifiedSince, destinationIfNoneMatch, destinationIfUnmodifiedSince, key, renameSource, sourceIfMatch, sourceIfModifiedSince, sourceIfNoneMatch, sourceIfUnmodifiedSince } + +inductive ReplicaModificationsStatus where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def ReplicaModificationsStatus.wire : ReplicaModificationsStatus → String + | .disabled => "Disabled" + | .enabled => "Enabled" + +def ReplicaModificationsStatus.wireValues : List (String × ReplicaModificationsStatus) := [ + ("Disabled", .disabled), + ("Enabled", .enabled)] + +def ReplicaModificationsStatus.ofWire (text : String) : Except String ReplicaModificationsStatus := + match List.find? (·.1 == text) ReplicaModificationsStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ReplicaModificationsStatus has no value {text}" + +instance : Key ReplicaModificationsStatus := ⟨ReplicaModificationsStatus.wire, ReplicaModificationsStatus.ofWire⟩ + +instance : Shape ReplicaModificationsStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ReplicaModificationsStatus.ofWire text + | _ => .error "expected a string" + +inductive ReplicationRuleStatus where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def ReplicationRuleStatus.wire : ReplicationRuleStatus → String + | .disabled => "Disabled" + | .enabled => "Enabled" + +def ReplicationRuleStatus.wireValues : List (String × ReplicationRuleStatus) := [ + ("Disabled", .disabled), + ("Enabled", .enabled)] + +def ReplicationRuleStatus.ofWire (text : String) : Except String ReplicationRuleStatus := + match List.find? (·.1 == text) ReplicationRuleStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ReplicationRuleStatus has no value {text}" + +instance : Key ReplicationRuleStatus := ⟨ReplicationRuleStatus.wire, ReplicationRuleStatus.ofWire⟩ + +instance : Shape ReplicationRuleStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ReplicationRuleStatus.ofWire text + | _ => .error "expected a string" + +inductive ReplicationStatus where + | complete + | completed + | failed + | pending + | replica +deriving DecidableEq, Repr, Inhabited + +def ReplicationStatus.wire : ReplicationStatus → String + | .complete => "COMPLETE" + | .completed => "COMPLETED" + | .failed => "FAILED" + | .pending => "PENDING" + | .replica => "REPLICA" + +def ReplicationStatus.wireValues : List (String × ReplicationStatus) := [ + ("COMPLETE", .complete), + ("COMPLETED", .completed), + ("FAILED", .failed), + ("PENDING", .pending), + ("REPLICA", .replica)] + +def ReplicationStatus.ofWire (text : String) : Except String ReplicationStatus := + match List.find? (·.1 == text) ReplicationStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ReplicationStatus has no value {text}" + +instance : Key ReplicationStatus := ⟨ReplicationStatus.wire, ReplicationStatus.ofWire⟩ + +instance : Shape ReplicationStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ReplicationStatus.ofWire text + | _ => .error "expected a string" + +inductive ReplicationTimeStatus where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def ReplicationTimeStatus.wire : ReplicationTimeStatus → String + | .disabled => "Disabled" + | .enabled => "Enabled" + +def ReplicationTimeStatus.wireValues : List (String × ReplicationTimeStatus) := [ + ("Disabled", .disabled), + ("Enabled", .enabled)] + +def ReplicationTimeStatus.ofWire (text : String) : Except String ReplicationTimeStatus := + match List.find? (·.1 == text) ReplicationTimeStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ReplicationTimeStatus has no value {text}" + +instance : Key ReplicationTimeStatus := ⟨ReplicationTimeStatus.wire, ReplicationTimeStatus.ofWire⟩ + +instance : Shape ReplicationTimeStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ReplicationTimeStatus.ofWire text + | _ => .error "expected a string" + +/-- A container specifying the time value for S3 Replication Time Control (S3 RTC) and replication metrics EventThreshold . -/ +structure ReplicationTimeValue where + /-- Contains an integer specifying time in minutes. -/ + minutes : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicationTimeValue where + schema := .struct "ReplicationTimeValue" [({ name := "Minutes" }, .int)] + toValue x := record [putOpt "Minutes" x.minutes] + ofValue v := do + let minutes ← v.opt "Minutes" + return { minutes } + +/-- If present, indicates that the requester was successfully charged for the request. -/ +inductive RequestCharged where + | requester +deriving DecidableEq, Repr, Inhabited + +def RequestCharged.wire : RequestCharged → String + | .requester => "requester" + +def RequestCharged.wireValues : List (String × RequestCharged) := [ + ("requester", .requester)] + +def RequestCharged.ofWire (text : String) : Except String RequestCharged := + match List.find? (·.1 == text) RequestCharged.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RequestCharged has no value {text}" + +instance : Key RequestCharged := ⟨RequestCharged.wire, RequestCharged.ofWire⟩ + +instance : Shape RequestCharged where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RequestCharged.ofWire text + | _ => .error "expected a string" + +/-- Confirms that the requester knows that they will be charged for the request. -/ +inductive RequestPayer where + | requester +deriving DecidableEq, Repr, Inhabited + +def RequestPayer.wire : RequestPayer → String + | .requester => "requester" + +def RequestPayer.wireValues : List (String × RequestPayer) := [ + ("requester", .requester)] + +def RequestPayer.ofWire (text : String) : Except String RequestPayer := + match List.find? (·.1 == text) RequestPayer.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RequestPayer has no value {text}" + +instance : Key RequestPayer := ⟨RequestPayer.wire, RequestPayer.ofWire⟩ + +instance : Shape RequestPayer where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RequestPayer.ofWire text + | _ => .error "expected a string" + +/-- Container for specifying if periodic QueryProgress messages should be sent. -/ +structure RequestProgress where + /-- Specifies whether periodic QueryProgress frames should be sent. -/ + enabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RequestProgress where + schema := .struct "RequestProgress" [({ name := "Enabled" }, .bool)] + toValue x := record [putOpt "Enabled" x.enabled] + ofValue v := do + let enabled ← v.opt "Enabled" + return { enabled } + +inductive RestoreRequestType where + | select +deriving DecidableEq, Repr, Inhabited + +def RestoreRequestType.wire : RestoreRequestType → String + | .select => "SELECT" + +def RestoreRequestType.wireValues : List (String × RestoreRequestType) := [ + ("SELECT", .select)] + +def RestoreRequestType.ofWire (text : String) : Except String RestoreRequestType := + match List.find? (·.1 == text) RestoreRequestType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RestoreRequestType has no value {text}" + +instance : Key RestoreRequestType := ⟨RestoreRequestType.wire, RestoreRequestType.ofWire⟩ + +instance : Shape RestoreRequestType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RestoreRequestType.ofWire text + | _ => .error "expected a string" + +/-- Specifies the restoration status of an object. -/ +structure RestoreStatus where + /-- Specifies whether the object is currently being restored. -/ + isRestoreInProgress : Option Bool := none + /-- Indicates when the restored copy will expire. -/ + restoreExpiryDate : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreStatus where + schema := .struct "RestoreStatus" [({ name := "IsRestoreInProgress" }, .bool), + ({ name := "RestoreExpiryDate" }, (.time none))] + toValue x := record [putOpt "IsRestoreInProgress" x.isRestoreInProgress, putOpt "RestoreExpiryDate" x.restoreExpiryDate] + ofValue v := do + let isRestoreInProgress ← v.opt "IsRestoreInProgress" + let restoreExpiryDate ← v.opt "RestoreExpiryDate" + return { isRestoreInProgress, restoreExpiryDate } + +inductive S3TablesBucketType where + | aws + | customer +deriving DecidableEq, Repr, Inhabited + +def S3TablesBucketType.wire : S3TablesBucketType → String + | .aws => "aws" + | .customer => "customer" + +def S3TablesBucketType.wireValues : List (String × S3TablesBucketType) := [ + ("aws", .aws), + ("customer", .customer)] + +def S3TablesBucketType.ofWire (text : String) : Except String S3TablesBucketType := + match List.find? (·.1 == text) S3TablesBucketType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"S3TablesBucketType has no value {text}" + +instance : Key S3TablesBucketType := ⟨S3TablesBucketType.wire, S3TablesBucketType.ofWire⟩ + +instance : Shape S3TablesBucketType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => S3TablesBucketType.ofWire text + | _ => .error "expected a string" + +/-- The destination information for a V1 S3 Metadata configuration. -/ +structure S3TablesDestination where + /-- The Amazon Resource Name (ARN) for the table bucket that's specified as the destination in the metadata table configuration. -/ + tableBucketArn : String + /-- The name for the metadata table in your metadata table configuration. -/ + tableName : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape S3TablesDestination where + schema := .struct "S3TablesDestination" [({ name := "TableBucketArn", required := true }, .string), + ({ name := "TableName", required := true }, .string)] + toValue x := record [put "TableBucketArn" x.tableBucketArn, put "TableName" x.tableName] + ofValue v := do + let tableBucketArn ← v.req "TableBucketArn" + let tableName ← v.req "TableName" + return { tableBucketArn, tableName } + +/-- The destination information for a V1 S3 Metadata configuration. -/ +structure S3TablesDestinationResult where + /-- The Amazon Resource Name (ARN) for the metadata table in the metadata table configuration. -/ + tableArn : String + /-- The Amazon Resource Name (ARN) for the table bucket that's specified as the destination in the metadata table configuration. -/ + tableBucketArn : String + /-- The name for the metadata table in your metadata table configuration. -/ + tableName : String + /-- The table bucket namespace for the metadata table in your metadata table configuration. -/ + tableNamespace : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape S3TablesDestinationResult where + schema := .struct "S3TablesDestinationResult" [({ name := "TableArn", required := true }, .string), + ({ name := "TableBucketArn", required := true }, .string), + ({ name := "TableName", required := true }, .string), + ({ name := "TableNamespace", required := true }, .string)] + toValue x := record [put "TableArn" x.tableArn, put "TableBucketArn" x.tableBucketArn, put "TableName" x.tableName, put "TableNamespace" x.tableNamespace] + ofValue v := do + let tableArn ← v.req "TableArn" + let tableBucketArn ← v.req "TableBucketArn" + let tableName ← v.req "TableName" + let tableNamespace ← v.req "TableNamespace" + return { tableArn, tableBucketArn, tableName, tableNamespace } + +/-- Specifies the use of SSE-KMS to encrypt delivered inventory reports. -/ +structure SSEKMS where + /-- Specifies the ID of the Key Management Service (KMS) symmetric encryption customer managed key to use for encrypting inventory reports. -/ + keyId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape SSEKMS where + schema := .struct "SSE-KMS" [({ name := "KeyId", required := true }, .string)] + toValue x := record [put "KeyId" x.keyId] + ofValue v := do + let keyId ← v.req "KeyId" + return { keyId } + +/-- If SSEKMS is specified for ObjectEncryption , this data type specifies the Amazon Web Services KMS key Amazon Resource Name (ARN) to use and whether to use an S3 Bucket Key for server-side encryption using Key Management Service (KMS) keys -/ +structure SSEKMSEncryption where + /-- Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using Key Management Service (KMS) keys (SSE-KMS). -/ + bucketKeyEnabled : Option Bool := none + /-- Specifies the Amazon Web Services KMS key Amazon Resource Name (ARN) to use for the updated server-side encryption type. -/ + kmsKeyArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape SSEKMSEncryption where + schema := .struct "SSE-KMS" [({ name := "BucketKeyEnabled" }, .bool), + ({ name := "KMSKeyArn", required := true }, .string)] + toValue x := record [putOpt "BucketKeyEnabled" x.bucketKeyEnabled, put "KMSKeyArn" x.kmsKeyArn] + ofValue v := do + let bucketKeyEnabled ← v.opt "BucketKeyEnabled" + let kmsKeyArn ← v.req "KMSKeyArn" + return { bucketKeyEnabled, kmsKeyArn } + +/-- Specifies the use of SSE-S3 to encrypt delivered inventory reports. -/ +structure SSES3 where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape SSES3 where + schema := .struct "SSE-S3" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- Specifies the byte range of the object to get the records from. -/ +structure ScanRange where + /-- Specifies the end of the byte range. -/ + «end» : Option Int := none + /-- Specifies the start of the byte range. -/ + start : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ScanRange where + schema := .struct "ScanRange" [({ name := "End" }, .int), + ({ name := "Start" }, .int)] + toValue x := record [putOpt "End" x.«end», putOpt "Start" x.start] + ofValue v := do + let «end» ← v.opt "End" + let start ← v.opt "Start" + return { «end», start } + +inductive ServerSideEncryption where + | aes256 + | aws_backup + | aws_fsx + | aws_kms + | aws_kms_dsse +deriving DecidableEq, Repr, Inhabited + +def ServerSideEncryption.wire : ServerSideEncryption → String + | .aes256 => "AES256" + | .aws_backup => "aws:backup" + | .aws_fsx => "aws:fsx" + | .aws_kms => "aws:kms" + | .aws_kms_dsse => "aws:kms:dsse" + +def ServerSideEncryption.wireValues : List (String × ServerSideEncryption) := [ + ("AES256", .aes256), + ("aws:backup", .aws_backup), + ("aws:fsx", .aws_fsx), + ("aws:kms", .aws_kms), + ("aws:kms:dsse", .aws_kms_dsse)] + +def ServerSideEncryption.ofWire (text : String) : Except String ServerSideEncryption := + match List.find? (·.1 == text) ServerSideEncryption.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"ServerSideEncryption has no value {text}" + +instance : Key ServerSideEncryption := ⟨ServerSideEncryption.wire, ServerSideEncryption.ofWire⟩ + +instance : Shape ServerSideEncryption where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => ServerSideEncryption.ofWire text + | _ => .error "expected a string" + +/-- The established temporary security credentials of the session. -/ +structure SessionCredentials where + /-- A unique identifier that's associated with a secret access key. -/ + accessKeyId : String + /-- Temporary security credentials expire after a specified interval. -/ + expiration : Timestamp + /-- A key that's used with the access key ID to cryptographically sign programmatic Amazon Web Services requests. -/ + secretAccessKey : String + /-- A part of the temporary security credentials. -/ + sessionToken : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape SessionCredentials where + schema := .struct "SessionCredentials" [({ name := "AccessKeyId", required := true, xmlName := some "AccessKeyId" }, .string), + ({ name := "Expiration", required := true, xmlName := some "Expiration" }, (.time none)), + ({ name := "SecretAccessKey", required := true, xmlName := some "SecretAccessKey" }, .string), + ({ name := "SessionToken", required := true, xmlName := some "SessionToken" }, .string)] + toValue x := record [put "AccessKeyId" x.accessKeyId, put "Expiration" x.expiration, put "SecretAccessKey" x.secretAccessKey, put "SessionToken" x.sessionToken] + ofValue v := do + let accessKeyId ← v.req "AccessKeyId" + let expiration ← v.req "Expiration" + let secretAccessKey ← v.req "SecretAccessKey" + let sessionToken ← v.req "SessionToken" + return { accessKeyId, expiration, secretAccessKey, sessionToken } + +inductive SessionMode where + | readOnly + | readWrite +deriving DecidableEq, Repr, Inhabited + +def SessionMode.wire : SessionMode → String + | .readOnly => "ReadOnly" + | .readWrite => "ReadWrite" + +def SessionMode.wireValues : List (String × SessionMode) := [ + ("ReadOnly", .readOnly), + ("ReadWrite", .readWrite)] + +def SessionMode.ofWire (text : String) : Except String SessionMode := + match List.find? (·.1 == text) SessionMode.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SessionMode has no value {text}" + +instance : Key SessionMode := ⟨SessionMode.wire, SessionMode.ofWire⟩ + +instance : Shape SessionMode where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SessionMode.ofWire text + | _ => .error "expected a string" + +/-- To use simple format for S3 keys for log objects, set SimplePrefix to an empty object. -/ +structure SimplePrefix where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape SimplePrefix where + schema := .struct "SimplePrefix" [] + toValue _ := record [] + ofValue _ := do + return { } + +inductive SseKmsEncryptedObjectsStatus where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def SseKmsEncryptedObjectsStatus.wire : SseKmsEncryptedObjectsStatus → String + | .disabled => "Disabled" + | .enabled => "Enabled" + +def SseKmsEncryptedObjectsStatus.wireValues : List (String × SseKmsEncryptedObjectsStatus) := [ + ("Disabled", .disabled), + ("Enabled", .enabled)] + +def SseKmsEncryptedObjectsStatus.ofWire (text : String) : Except String SseKmsEncryptedObjectsStatus := + match List.find? (·.1 == text) SseKmsEncryptedObjectsStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SseKmsEncryptedObjectsStatus has no value {text}" + +instance : Key SseKmsEncryptedObjectsStatus := ⟨SseKmsEncryptedObjectsStatus.wire, SseKmsEncryptedObjectsStatus.ofWire⟩ + +instance : Shape SseKmsEncryptedObjectsStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SseKmsEncryptedObjectsStatus.ofWire text + | _ => .error "expected a string" + +/-- Container for the stats details. -/ +structure Stats where + /-- The total number of uncompressed object bytes processed. -/ + bytesProcessed : Option Int := none + /-- The total number of bytes of records payload data returned. -/ + bytesReturned : Option Int := none + /-- The total number of object bytes scanned. -/ + bytesScanned : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Stats where + schema := .struct "Stats" [({ name := "BytesProcessed" }, .int), + ({ name := "BytesReturned" }, .int), + ({ name := "BytesScanned" }, .int)] + toValue x := record [putOpt "BytesProcessed" x.bytesProcessed, putOpt "BytesReturned" x.bytesReturned, putOpt "BytesScanned" x.bytesScanned] + ofValue v := do + let bytesProcessed ← v.opt "BytesProcessed" + let bytesReturned ← v.opt "BytesReturned" + let bytesScanned ← v.opt "BytesScanned" + return { bytesProcessed, bytesReturned, bytesScanned } + +inductive StorageClass where + | awS_BACKUP_LOW_COST_WARM + | awS_BACKUP_WARM + | deeP_ARCHIVE + | expresS_ONEZONE + | fsX_ONTAP + | fsX_OPENZFS + | glacier + | glacieR_IR + | intelligenT_TIERING + | onezonE_IA + | outposts + | reduceD_REDUNDANCY + | snow + | standard + | standarD_IA +deriving DecidableEq, Repr, Inhabited + +def StorageClass.wire : StorageClass → String + | .awS_BACKUP_LOW_COST_WARM => "AWS_BACKUP_LOW_COST_WARM" + | .awS_BACKUP_WARM => "AWS_BACKUP_WARM" + | .deeP_ARCHIVE => "DEEP_ARCHIVE" + | .expresS_ONEZONE => "EXPRESS_ONEZONE" + | .fsX_ONTAP => "FSX_ONTAP" + | .fsX_OPENZFS => "FSX_OPENZFS" + | .glacier => "GLACIER" + | .glacieR_IR => "GLACIER_IR" + | .intelligenT_TIERING => "INTELLIGENT_TIERING" + | .onezonE_IA => "ONEZONE_IA" + | .outposts => "OUTPOSTS" + | .reduceD_REDUNDANCY => "REDUCED_REDUNDANCY" + | .snow => "SNOW" + | .standard => "STANDARD" + | .standarD_IA => "STANDARD_IA" + +def StorageClass.wireValues : List (String × StorageClass) := [ + ("AWS_BACKUP_LOW_COST_WARM", .awS_BACKUP_LOW_COST_WARM), + ("AWS_BACKUP_WARM", .awS_BACKUP_WARM), + ("DEEP_ARCHIVE", .deeP_ARCHIVE), + ("EXPRESS_ONEZONE", .expresS_ONEZONE), + ("FSX_ONTAP", .fsX_ONTAP), + ("FSX_OPENZFS", .fsX_OPENZFS), + ("GLACIER", .glacier), + ("GLACIER_IR", .glacieR_IR), + ("INTELLIGENT_TIERING", .intelligenT_TIERING), + ("ONEZONE_IA", .onezonE_IA), + ("OUTPOSTS", .outposts), + ("REDUCED_REDUNDANCY", .reduceD_REDUNDANCY), + ("SNOW", .snow), + ("STANDARD", .standard), + ("STANDARD_IA", .standarD_IA)] + +def StorageClass.ofWire (text : String) : Except String StorageClass := + match List.find? (·.1 == text) StorageClass.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"StorageClass has no value {text}" + +instance : Key StorageClass := ⟨StorageClass.wire, StorageClass.ofWire⟩ + +instance : Shape StorageClass where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => StorageClass.ofWire text + | _ => .error "expected a string" + +inductive StorageClassAnalysisSchemaVersion where + | v_1 +deriving DecidableEq, Repr, Inhabited + +def StorageClassAnalysisSchemaVersion.wire : StorageClassAnalysisSchemaVersion → String + | .v_1 => "V_1" + +def StorageClassAnalysisSchemaVersion.wireValues : List (String × StorageClassAnalysisSchemaVersion) := [ + ("V_1", .v_1)] + +def StorageClassAnalysisSchemaVersion.ofWire (text : String) : Except String StorageClassAnalysisSchemaVersion := + match List.find? (·.1 == text) StorageClassAnalysisSchemaVersion.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"StorageClassAnalysisSchemaVersion has no value {text}" + +instance : Key StorageClassAnalysisSchemaVersion := ⟨StorageClassAnalysisSchemaVersion.wire, StorageClassAnalysisSchemaVersion.ofWire⟩ + +instance : Shape StorageClassAnalysisSchemaVersion where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => StorageClassAnalysisSchemaVersion.ofWire text + | _ => .error "expected a string" + +inductive TableSseAlgorithm where + | aes256 + | aws_kms +deriving DecidableEq, Repr, Inhabited + +def TableSseAlgorithm.wire : TableSseAlgorithm → String + | .aes256 => "AES256" + | .aws_kms => "aws:kms" + +def TableSseAlgorithm.wireValues : List (String × TableSseAlgorithm) := [ + ("AES256", .aes256), + ("aws:kms", .aws_kms)] + +def TableSseAlgorithm.ofWire (text : String) : Except String TableSseAlgorithm := + match List.find? (·.1 == text) TableSseAlgorithm.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TableSseAlgorithm has no value {text}" + +instance : Key TableSseAlgorithm := ⟨TableSseAlgorithm.wire, TableSseAlgorithm.ofWire⟩ + +instance : Shape TableSseAlgorithm where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TableSseAlgorithm.ofWire text + | _ => .error "expected a string" + +/-- A container of a key value name pair. -/ +structure Tag where + /-- Name of the object key. -/ + key : String + /-- Value of the tag. -/ + value : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape Tag where + schema := .struct "Tag" [({ name := "Key", required := true }, .string), + ({ name := "Value", required := true }, .string)] + toValue x := record [put "Key" x.key, put "Value" x.value] + ofValue v := do + let key ← v.req "Key" + let value ← v.req "Value" + return { key, value } + +inductive TaggingDirective where + | copy + | replace +deriving DecidableEq, Repr, Inhabited + +def TaggingDirective.wire : TaggingDirective → String + | .copy => "COPY" + | .replace => "REPLACE" + +def TaggingDirective.wireValues : List (String × TaggingDirective) := [ + ("COPY", .copy), + ("REPLACE", .replace)] + +def TaggingDirective.ofWire (text : String) : Except String TaggingDirective := + match List.find? (·.1 == text) TaggingDirective.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TaggingDirective has no value {text}" + +instance : Key TaggingDirective := ⟨TaggingDirective.wire, TaggingDirective.ofWire⟩ + +instance : Shape TaggingDirective where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TaggingDirective.ofWire text + | _ => .error "expected a string" + +inductive Tier where + | bulk + | expedited + | standard +deriving DecidableEq, Repr, Inhabited + +def Tier.wire : Tier → String + | .bulk => "Bulk" + | .expedited => "Expedited" + | .standard => "Standard" + +def Tier.wireValues : List (String × Tier) := [ + ("Bulk", .bulk), + ("Expedited", .expedited), + ("Standard", .standard)] + +def Tier.ofWire (text : String) : Except String Tier := + match List.find? (·.1 == text) Tier.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Tier has no value {text}" + +instance : Key Tier := ⟨Tier.wire, Tier.ofWire⟩ + +instance : Shape Tier where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Tier.ofWire text + | _ => .error "expected a string" + +/-- You have attempted to add more parts than the maximum of 10000 that are allowed for this object. -/ +structure TooManyParts where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape TooManyParts where + schema := .struct "TooManyParts" [] + toValue _ := record [] + ofValue _ := do + return { } + +inductive TransitionDefaultMinimumObjectSize where + | all_storage_classes_128K + | varies_by_storage_class +deriving DecidableEq, Repr, Inhabited + +def TransitionDefaultMinimumObjectSize.wire : TransitionDefaultMinimumObjectSize → String + | .all_storage_classes_128K => "all_storage_classes_128K" + | .varies_by_storage_class => "varies_by_storage_class" + +def TransitionDefaultMinimumObjectSize.wireValues : List (String × TransitionDefaultMinimumObjectSize) := [ + ("all_storage_classes_128K", .all_storage_classes_128K), + ("varies_by_storage_class", .varies_by_storage_class)] + +def TransitionDefaultMinimumObjectSize.ofWire (text : String) : Except String TransitionDefaultMinimumObjectSize := + match List.find? (·.1 == text) TransitionDefaultMinimumObjectSize.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitionDefaultMinimumObjectSize has no value {text}" + +instance : Key TransitionDefaultMinimumObjectSize := ⟨TransitionDefaultMinimumObjectSize.wire, TransitionDefaultMinimumObjectSize.ofWire⟩ + +instance : Shape TransitionDefaultMinimumObjectSize where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitionDefaultMinimumObjectSize.ofWire text + | _ => .error "expected a string" + +inductive TransitionStorageClass where + | deeP_ARCHIVE + | glacier + | glacieR_IR + | intelligenT_TIERING + | onezonE_IA + | standarD_IA +deriving DecidableEq, Repr, Inhabited + +def TransitionStorageClass.wire : TransitionStorageClass → String + | .deeP_ARCHIVE => "DEEP_ARCHIVE" + | .glacier => "GLACIER" + | .glacieR_IR => "GLACIER_IR" + | .intelligenT_TIERING => "INTELLIGENT_TIERING" + | .onezonE_IA => "ONEZONE_IA" + | .standarD_IA => "STANDARD_IA" + +def TransitionStorageClass.wireValues : List (String × TransitionStorageClass) := [ + ("DEEP_ARCHIVE", .deeP_ARCHIVE), + ("GLACIER", .glacier), + ("GLACIER_IR", .glacieR_IR), + ("INTELLIGENT_TIERING", .intelligenT_TIERING), + ("ONEZONE_IA", .onezonE_IA), + ("STANDARD_IA", .standarD_IA)] + +def TransitionStorageClass.ofWire (text : String) : Except String TransitionStorageClass := + match List.find? (·.1 == text) TransitionStorageClass.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"TransitionStorageClass has no value {text}" + +instance : Key TransitionStorageClass := ⟨TransitionStorageClass.wire, TransitionStorageClass.ofWire⟩ + +instance : Shape TransitionStorageClass where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => TransitionStorageClass.ofWire text + | _ => .error "expected a string" + +inductive Type_ where + | amazonCustomerByEmail + | canonicalUser + | group +deriving DecidableEq, Repr, Inhabited + +def Type_.wire : Type_ → String + | .amazonCustomerByEmail => "AmazonCustomerByEmail" + | .canonicalUser => "CanonicalUser" + | .group => "Group" + +def Type_.wireValues : List (String × Type_) := [ + ("AmazonCustomerByEmail", .amazonCustomerByEmail), + ("CanonicalUser", .canonicalUser), + ("Group", .group)] + +def Type_.ofWire (text : String) : Except String Type_ := + match List.find? (·.1 == text) Type_.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"Type_ has no value {text}" + +instance : Key Type_ := ⟨Type_.wire, Type_.ofWire⟩ + +instance : Shape Type_ where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => Type_.ofWire text + | _ => .error "expected a string" + +/-- The annotation payload is not valid UTF-8 encoded text. -/ +structure UnsupportedMediaType where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape UnsupportedMediaType where + schema := .struct "UnsupportedMediaType" [] + toValue _ := record [] + ofValue _ := do + return { } + +inductive UseSourceMultiRegionKeyStatus where + | disabled + | enabled +deriving DecidableEq, Repr, Inhabited + +def UseSourceMultiRegionKeyStatus.wire : UseSourceMultiRegionKeyStatus → String + | .disabled => "Disabled" + | .enabled => "Enabled" + +def UseSourceMultiRegionKeyStatus.wireValues : List (String × UseSourceMultiRegionKeyStatus) := [ + ("Disabled", .disabled), + ("Enabled", .enabled)] + +def UseSourceMultiRegionKeyStatus.ofWire (text : String) : Except String UseSourceMultiRegionKeyStatus := + match List.find? (·.1 == text) UseSourceMultiRegionKeyStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"UseSourceMultiRegionKeyStatus has no value {text}" + +instance : Key UseSourceMultiRegionKeyStatus := ⟨UseSourceMultiRegionKeyStatus.wire, UseSourceMultiRegionKeyStatus.ofWire⟩ + +instance : Shape UseSourceMultiRegionKeyStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => UseSourceMultiRegionKeyStatus.ofWire text + | _ => .error "expected a string" + +/-- The ABAC status of the general purpose bucket. -/ +structure AbacStatus where + /-- The ABAC status of the general purpose bucket. -/ + status : Option BucketAbacStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AbacStatus where + schema := .struct "AbacStatus" [({ name := "Status" }, (Shape.schema BucketAbacStatus))] + toValue x := record [putOpt "Status" x.status] + ofValue v := do + let status ← v.opt "Status" + return { status } + +structure AbortMultipartUploadOutput where + requestCharged : Option RequestCharged := none + /-- Version ID of the object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AbortMultipartUploadOutput where + schema := .struct "AbortMultipartUploadOutput" [({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged)), + ({ name := "VersionId", location := .header "x-amz-version-id" }, .string)] + toValue x := record [putOpt "RequestCharged" x.requestCharged, putOpt "VersionId" x.versionId] + ofValue v := do + let requestCharged ← v.opt "RequestCharged" + let versionId ← v.opt "VersionId" + return { requestCharged, versionId } + +structure AbortMultipartUploadRequest where + /-- The bucket name to which the upload was taking place. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- If present, this header aborts an in progress multipart upload only if it was initiated on the provided timestamp. -/ + ifMatchInitiatedTime : Option Timestamp := none + /-- Key of the object for which the multipart upload was initiated. -/ + key : String + requestPayer : Option RequestPayer := none + /-- Upload ID that identifies the multipart upload. -/ + uploadId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AbortMultipartUploadRequest where + schema := .struct "AbortMultipartUploadRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "IfMatchInitiatedTime", location := .header "x-amz-if-match-initiated-time" }, (.time (some .httpDate))), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "UploadId", required := true, location := .query "uploadId" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, putOpt "IfMatchInitiatedTime" x.ifMatchInitiatedTime, put "Key" x.key, putOpt "RequestPayer" x.requestPayer, put "UploadId" x.uploadId] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let ifMatchInitiatedTime ← v.opt "IfMatchInitiatedTime" + let key ← v.req "Key" + let requestPayer ← v.opt "RequestPayer" + let uploadId ← v.req "UploadId" + return { bucket, expectedBucketOwner, ifMatchInitiatedTime, key, requestPayer, uploadId } + +/-- Configures the transfer acceleration state for an Amazon S3 bucket. -/ +structure AccelerateConfiguration where + /-- Specifies the transfer acceleration status of the bucket. -/ + status : Option BucketAccelerateStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AccelerateConfiguration where + schema := .struct "AccelerateConfiguration" [({ name := "Status" }, (Shape.schema BucketAccelerateStatus))] + toValue x := record [putOpt "Status" x.status] + ofValue v := do + let status ← v.opt "Status" + return { status } + +/-- A container for information about access control for replicas. -/ +structure AccessControlTranslation where + /-- Specifies the replica ownership. -/ + owner : OwnerOverride +deriving DecidableEq, Repr, Inhabited + +instance : Shape AccessControlTranslation where + schema := .struct "AccessControlTranslation" [({ name := "Owner", required := true }, (Shape.schema OwnerOverride))] + toValue x := record [put "Owner" x.owner] + ofValue v := do + let owner ← v.req "Owner" + return { owner } + +/-- A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter. -/ +structure AnalyticsAndOperator where + /-- The prefix to use when evaluating an AND predicate: The prefix that an object must have to be included in the metrics results. -/ + «prefix» : Option String := none + /-- The list of tags to use when evaluating an AND predicate. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AnalyticsAndOperator where + schema := .struct "AnalyticsAndOperator" [({ name := "Prefix" }, .string), + ({ name := "Tags", xmlName := some "Tag", flattened := true }, (.list (Shape.schema Tag) "Tag"))] + toValue x := record [putOpt "Prefix" x.«prefix», putOpt "Tags" x.tags] + ofValue v := do + let «prefix» ← v.opt "Prefix" + let tags ← v.opt "Tags" + return { «prefix», tags } + +/-- Contains information about where to publish the analytics results. -/ +structure AnalyticsS3BucketDestination where + /-- The Amazon Resource Name (ARN) of the bucket to which data is exported. -/ + bucket : String + /-- The account ID that owns the destination S3 bucket. -/ + bucketAccountId : Option String := none + /-- Specifies the file format used when exporting data to Amazon S3. -/ + format : AnalyticsS3ExportFileFormat + /-- The prefix to use when exporting data. -/ + «prefix» : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AnalyticsS3BucketDestination where + schema := .struct "AnalyticsS3BucketDestination" [({ name := "Bucket", required := true }, .string), + ({ name := "BucketAccountId" }, .string), + ({ name := "Format", required := true }, (Shape.schema AnalyticsS3ExportFileFormat)), + ({ name := "Prefix" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "BucketAccountId" x.bucketAccountId, put "Format" x.format, putOpt "Prefix" x.«prefix»] + ofValue v := do + let bucket ← v.req "Bucket" + let bucketAccountId ← v.opt "BucketAccountId" + let format ← v.req "Format" + let «prefix» ← v.opt "Prefix" + return { bucket, bucketAccountId, format, «prefix» } + +/-- Describes a single annotation attached to an object, including its name, last modified time, size, ETag, checksum algorithm, and replication status. -/ +structure AnnotationEntry where + /-- The name of the annotation. -/ + annotationName : String + /-- The checksum algorithm used for the annotation. -/ + checksumAlgorithm : Option (List ChecksumAlgorithm) := none + /-- The entity tag of the annotation. -/ + eTag : Option String := none + /-- The date and time the annotation was last modified. -/ + lastModified : Timestamp + /-- The replication status of the annotation. -/ + replicationStatus : Option ReplicationStatus := none + /-- The size of the annotation payload, in bytes. -/ + size : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape AnnotationEntry where + schema := .struct "AnnotationEntry" [({ name := "AnnotationName", required := true }, .string), + ({ name := "ChecksumAlgorithm", flattened := true }, (.list (Shape.schema ChecksumAlgorithm) "member")), + ({ name := "ETag" }, .string), + ({ name := "LastModified", required := true }, (.time none)), + ({ name := "ReplicationStatus" }, (Shape.schema ReplicationStatus)), + ({ name := "Size", required := true }, .int)] + toValue x := record [put "AnnotationName" x.annotationName, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ETag" x.eTag, put "LastModified" x.lastModified, putOpt "ReplicationStatus" x.replicationStatus, put "Size" x.size] + ofValue v := do + let annotationName ← v.req "AnnotationName" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let eTag ← v.opt "ETag" + let lastModified ← v.req "LastModified" + let replicationStatus ← v.opt "ReplicationStatus" + let size ← v.req "Size" + return { annotationName, checksumAlgorithm, eTag, lastModified, replicationStatus, size } + +/-- Contains the current state of the annotation table associated with a bucket's Amazon S3 Metadata configuration, including its provisioning status and identifiers. -/ +structure AnnotationTableConfigurationResult where + /-- The current configuration state of the annotation table. -/ + configurationState : AnnotationConfigurationState + error : Option ErrorDetails := none + /-- The ARN of the IAM role associated with the annotation table. -/ + role : Option String := none + /-- The ARN of the annotation table. -/ + tableArn : Option String := none + /-- The name of the annotation table. -/ + tableName : Option String := none + /-- The provisioning status of the annotation table. -/ + tableStatus : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AnnotationTableConfigurationResult where + schema := .struct "AnnotationTableConfigurationResult" [({ name := "ConfigurationState", required := true }, (Shape.schema AnnotationConfigurationState)), + ({ name := "Error" }, (Shape.schema ErrorDetails)), + ({ name := "Role" }, .string), + ({ name := "TableArn" }, .string), + ({ name := "TableName" }, .string), + ({ name := "TableStatus" }, .string)] + toValue x := record [put "ConfigurationState" x.configurationState, putOpt "Error" x.error, putOpt "Role" x.role, putOpt "TableArn" x.tableArn, putOpt "TableName" x.tableName, putOpt "TableStatus" x.tableStatus] + ofValue v := do + let configurationState ← v.req "ConfigurationState" + let error ← v.opt "Error" + let role ← v.opt "Role" + let tableArn ← v.opt "TableArn" + let tableName ← v.opt "TableName" + let tableStatus ← v.opt "TableStatus" + return { configurationState, error, role, tableArn, tableName, tableStatus } + +/-- A bucket-level setting for Amazon S3 general purpose buckets used to prevent the upload of new objects encrypted with the specified server-side encryption type. -/ +structure BlockedEncryptionTypes where + /-- The object encryption type that you want to block or unblock for an Amazon S3 general purpose bucket. -/ + encryptionType : Option (List EncryptionType) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BlockedEncryptionTypes where + schema := .struct "BlockedEncryptionTypes" [({ name := "EncryptionType", flattened := true }, (.list (Shape.schema EncryptionType) "EncryptionType"))] + toValue x := record [putOpt "EncryptionType" x.encryptionType] + ofValue v := do + let encryptionType ← v.opt "EncryptionType" + return { encryptionType } + +/-- Specifies the information about the bucket that will be created. -/ +structure BucketInfo where + /-- The number of Zone (Availability Zone or Local Zone) that's used for redundancy for the bucket. -/ + dataRedundancy : Option DataRedundancy := none + /-- The type of bucket. -/ + type : Option BucketType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BucketInfo where + schema := .struct "BucketInfo" [({ name := "DataRedundancy" }, (Shape.schema DataRedundancy)), + ({ name := "Type" }, (Shape.schema BucketType))] + toValue x := record [putOpt "DataRedundancy" x.dataRedundancy, putOpt "Type" x.type] + ofValue v := do + let dataRedundancy ← v.opt "DataRedundancy" + let type ← v.opt "Type" + return { dataRedundancy, type } + +/-- Describes the cross-origin access configuration for objects in an Amazon S3 bucket. -/ +structure CORSConfiguration where + /-- A set of origins and methods (cross-origin access that you want to allow). -/ + corsRules : (List CORSRule) +deriving DecidableEq, Repr, Inhabited + +instance : Shape CORSConfiguration where + schema := .struct "CORSConfiguration" [({ name := "CORSRules", required := true, xmlName := some "CORSRule", flattened := true }, (.list (Shape.schema CORSRule) "member"))] + toValue x := record [put "CORSRules" x.corsRules] + ofValue v := do + let corsRules ← v.req "CORSRules" + return { corsRules } + +/-- Describes how an uncompressed comma-separated values (CSV)-formatted input object is formatted. -/ +structure CSVInput where + /-- Specifies that CSV field values may contain quoted record delimiters and such records should be allowed. -/ + allowQuotedRecordDelimiter : Option Bool := none + /-- A single character used to indicate that a row should be ignored when the character is present at the start of that row. -/ + comments : Option String := none + /-- A single character used to separate individual fields in a record. -/ + fieldDelimiter : Option String := none + /-- Describes the first line of input. -/ + fileHeaderInfo : Option FileHeaderInfo := none + /-- A single character used for escaping when the field delimiter is part of the value. -/ + quoteCharacter : Option String := none + /-- A single character used for escaping the quotation mark character inside an already escaped value. -/ + quoteEscapeCharacter : Option String := none + /-- A single character used to separate individual records in the input. -/ + recordDelimiter : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CSVInput where + schema := .struct "CSVInput" [({ name := "AllowQuotedRecordDelimiter" }, .bool), + ({ name := "Comments" }, .string), + ({ name := "FieldDelimiter" }, .string), + ({ name := "FileHeaderInfo" }, (Shape.schema FileHeaderInfo)), + ({ name := "QuoteCharacter" }, .string), + ({ name := "QuoteEscapeCharacter" }, .string), + ({ name := "RecordDelimiter" }, .string)] + toValue x := record [putOpt "AllowQuotedRecordDelimiter" x.allowQuotedRecordDelimiter, putOpt "Comments" x.comments, putOpt "FieldDelimiter" x.fieldDelimiter, putOpt "FileHeaderInfo" x.fileHeaderInfo, putOpt "QuoteCharacter" x.quoteCharacter, putOpt "QuoteEscapeCharacter" x.quoteEscapeCharacter, putOpt "RecordDelimiter" x.recordDelimiter] + ofValue v := do + let allowQuotedRecordDelimiter ← v.opt "AllowQuotedRecordDelimiter" + let comments ← v.opt "Comments" + let fieldDelimiter ← v.opt "FieldDelimiter" + let fileHeaderInfo ← v.opt "FileHeaderInfo" + let quoteCharacter ← v.opt "QuoteCharacter" + let quoteEscapeCharacter ← v.opt "QuoteEscapeCharacter" + let recordDelimiter ← v.opt "RecordDelimiter" + return { allowQuotedRecordDelimiter, comments, fieldDelimiter, fileHeaderInfo, quoteCharacter, quoteEscapeCharacter, recordDelimiter } + +/-- Describes how uncompressed comma-separated values (CSV)-formatted results are formatted. -/ +structure CSVOutput where + /-- The value used to separate individual fields in a record. -/ + fieldDelimiter : Option String := none + /-- A single character used for escaping when the field delimiter is part of the value. -/ + quoteCharacter : Option String := none + /-- The single character used for escaping the quote character inside an already escaped value. -/ + quoteEscapeCharacter : Option String := none + /-- Indicates whether to use quotation marks around output fields. -/ + quoteFields : Option QuoteFields := none + /-- A single character used to separate individual records in the output. -/ + recordDelimiter : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CSVOutput where + schema := .struct "CSVOutput" [({ name := "FieldDelimiter" }, .string), + ({ name := "QuoteCharacter" }, .string), + ({ name := "QuoteEscapeCharacter" }, .string), + ({ name := "QuoteFields" }, (Shape.schema QuoteFields)), + ({ name := "RecordDelimiter" }, .string)] + toValue x := record [putOpt "FieldDelimiter" x.fieldDelimiter, putOpt "QuoteCharacter" x.quoteCharacter, putOpt "QuoteEscapeCharacter" x.quoteEscapeCharacter, putOpt "QuoteFields" x.quoteFields, putOpt "RecordDelimiter" x.recordDelimiter] + ofValue v := do + let fieldDelimiter ← v.opt "FieldDelimiter" + let quoteCharacter ← v.opt "QuoteCharacter" + let quoteEscapeCharacter ← v.opt "QuoteEscapeCharacter" + let quoteFields ← v.opt "QuoteFields" + let recordDelimiter ← v.opt "RecordDelimiter" + return { fieldDelimiter, quoteCharacter, quoteEscapeCharacter, quoteFields, recordDelimiter } + +/-- Contains all the possible checksum or digest values for an object. -/ +structure Checksum where + /-- The Base64 encoded, 32-bit CRC32 checksum of the object. -/ + checksumCRC32 : Option String := none + /-- The Base64 encoded, 32-bit CRC32C checksum of the object. -/ + checksumCRC32C : Option String := none + /-- The Base64 encoded, 64-bit CRC64NVME checksum of the object. -/ + checksumCRC64NVME : Option String := none + /-- The Base64 encoded, 128-bit MD5 digest of the object. -/ + checksumMD5 : Option String := none + /-- The Base64 encoded, 160-bit SHA1 digest of the object. -/ + checksumSHA1 : Option String := none + /-- The Base64 encoded, 256-bit SHA256 digest of the object. -/ + checksumSHA256 : Option String := none + /-- The Base64 encoded, 512-bit SHA512 digest of the object. -/ + checksumSHA512 : Option String := none + /-- The checksum type that is used to calculate the object’s checksum value. -/ + checksumType : Option ChecksumType := none + /-- The Base64 encoded, 128-bit XXHASH128 checksum of the object. -/ + checksumXXHASH128 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH3 checksum of the object. -/ + checksumXXHASH3 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH64 checksum of the object. -/ + checksumXXHASH64 : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Checksum where + schema := .struct "Checksum" [({ name := "ChecksumCRC32" }, .string), + ({ name := "ChecksumCRC32C" }, .string), + ({ name := "ChecksumCRC64NVME" }, .string), + ({ name := "ChecksumMD5" }, .string), + ({ name := "ChecksumSHA1" }, .string), + ({ name := "ChecksumSHA256" }, .string), + ({ name := "ChecksumSHA512" }, .string), + ({ name := "ChecksumType" }, (Shape.schema ChecksumType)), + ({ name := "ChecksumXXHASH128" }, .string), + ({ name := "ChecksumXXHASH3" }, .string), + ({ name := "ChecksumXXHASH64" }, .string)] + toValue x := record [putOpt "ChecksumCRC32" x.checksumCRC32, putOpt "ChecksumCRC32C" x.checksumCRC32C, putOpt "ChecksumCRC64NVME" x.checksumCRC64NVME, putOpt "ChecksumMD5" x.checksumMD5, putOpt "ChecksumSHA1" x.checksumSHA1, putOpt "ChecksumSHA256" x.checksumSHA256, putOpt "ChecksumSHA512" x.checksumSHA512, putOpt "ChecksumType" x.checksumType, putOpt "ChecksumXXHASH128" x.checksumXXHASH128, putOpt "ChecksumXXHASH3" x.checksumXXHASH3, putOpt "ChecksumXXHASH64" x.checksumXXHASH64] + ofValue v := do + let checksumCRC32 ← v.opt "ChecksumCRC32" + let checksumCRC32C ← v.opt "ChecksumCRC32C" + let checksumCRC64NVME ← v.opt "ChecksumCRC64NVME" + let checksumMD5 ← v.opt "ChecksumMD5" + let checksumSHA1 ← v.opt "ChecksumSHA1" + let checksumSHA256 ← v.opt "ChecksumSHA256" + let checksumSHA512 ← v.opt "ChecksumSHA512" + let checksumType ← v.opt "ChecksumType" + let checksumXXHASH128 ← v.opt "ChecksumXXHASH128" + let checksumXXHASH3 ← v.opt "ChecksumXXHASH3" + let checksumXXHASH64 ← v.opt "ChecksumXXHASH64" + return { checksumCRC32, checksumCRC32C, checksumCRC64NVME, checksumMD5, checksumSHA1, checksumSHA256, checksumSHA512, checksumType, checksumXXHASH128, checksumXXHASH3, checksumXXHASH64 } + +structure CompleteMultipartUploadOutput where + /-- The name of the bucket that contains the newly created object. -/ + bucket : Option String := none + /-- Indicates whether the multipart upload uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS). -/ + bucketKeyEnabled : Option Bool := none + /-- The Base64 encoded, 32-bit CRC32 checksum of the object. -/ + checksumCRC32 : Option String := none + /-- The Base64 encoded, 32-bit CRC32C checksum of the object. -/ + checksumCRC32C : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumCRC64NVME : Option String := none + /-- The Base64 encoded, 128-bit MD5 digest of the object. -/ + checksumMD5 : Option String := none + /-- The Base64 encoded, 160-bit SHA1 digest of the object. -/ + checksumSHA1 : Option String := none + /-- The Base64 encoded, 256-bit SHA256 digest of the object. -/ + checksumSHA256 : Option String := none + /-- The Base64 encoded, 512-bit SHA512 digest of the object. -/ + checksumSHA512 : Option String := none + /-- The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. -/ + checksumType : Option ChecksumType := none + /-- The Base64 encoded, 128-bit XXHASH128 checksum of the object. -/ + checksumXXHASH128 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH3 checksum of the object. -/ + checksumXXHASH3 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH64 checksum of the object. -/ + checksumXXHASH64 : Option String := none + /-- Entity tag that identifies the newly created object's data. -/ + eTag : Option String := none + /-- If the object expiration is configured, this will contain the expiration date ( expiry-date ) and rule ID ( rule-id ). -/ + expiration : Option String := none + /-- The object key of the newly created object. -/ + key : Option String := none + /-- The URI that identifies the newly created object. -/ + location : Option String := none + requestCharged : Option RequestCharged := none + /-- If present, indicates the ID of the KMS key that was used for object encryption. -/ + ssekmsKeyId : Option String := none + /-- The server-side encryption algorithm used when storing this object in Amazon S3. -/ + serverSideEncryption : Option ServerSideEncryption := none + /-- Version ID of the newly created object, in case the bucket has versioning turned on. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CompleteMultipartUploadOutput where + schema := .struct "CompleteMultipartUploadResult" [({ name := "Bucket" }, .string), + ({ name := "BucketKeyEnabled", location := .header "x-amz-server-side-encryption-bucket-key-enabled" }, .bool), + ({ name := "ChecksumCRC32" }, .string), + ({ name := "ChecksumCRC32C" }, .string), + ({ name := "ChecksumCRC64NVME" }, .string), + ({ name := "ChecksumMD5" }, .string), + ({ name := "ChecksumSHA1" }, .string), + ({ name := "ChecksumSHA256" }, .string), + ({ name := "ChecksumSHA512" }, .string), + ({ name := "ChecksumType" }, (Shape.schema ChecksumType)), + ({ name := "ChecksumXXHASH128" }, .string), + ({ name := "ChecksumXXHASH3" }, .string), + ({ name := "ChecksumXXHASH64" }, .string), + ({ name := "ETag" }, .string), + ({ name := "Expiration", location := .header "x-amz-expiration" }, .string), + ({ name := "Key" }, .string), + ({ name := "Location" }, .string), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged)), + ({ name := "SSEKMSKeyId", location := .header "x-amz-server-side-encryption-aws-kms-key-id" }, .string), + ({ name := "ServerSideEncryption", location := .header "x-amz-server-side-encryption" }, (Shape.schema ServerSideEncryption)), + ({ name := "VersionId", location := .header "x-amz-version-id" }, .string)] + toValue x := record [putOpt "Bucket" x.bucket, putOpt "BucketKeyEnabled" x.bucketKeyEnabled, putOpt "ChecksumCRC32" x.checksumCRC32, putOpt "ChecksumCRC32C" x.checksumCRC32C, putOpt "ChecksumCRC64NVME" x.checksumCRC64NVME, putOpt "ChecksumMD5" x.checksumMD5, putOpt "ChecksumSHA1" x.checksumSHA1, putOpt "ChecksumSHA256" x.checksumSHA256, putOpt "ChecksumSHA512" x.checksumSHA512, putOpt "ChecksumType" x.checksumType, putOpt "ChecksumXXHASH128" x.checksumXXHASH128, putOpt "ChecksumXXHASH3" x.checksumXXHASH3, putOpt "ChecksumXXHASH64" x.checksumXXHASH64, putOpt "ETag" x.eTag, putOpt "Expiration" x.expiration, putOpt "Key" x.key, putOpt "Location" x.location, putOpt "RequestCharged" x.requestCharged, putOpt "SSEKMSKeyId" x.ssekmsKeyId, putOpt "ServerSideEncryption" x.serverSideEncryption, putOpt "VersionId" x.versionId] + ofValue v := do + let bucket ← v.opt "Bucket" + let bucketKeyEnabled ← v.opt "BucketKeyEnabled" + let checksumCRC32 ← v.opt "ChecksumCRC32" + let checksumCRC32C ← v.opt "ChecksumCRC32C" + let checksumCRC64NVME ← v.opt "ChecksumCRC64NVME" + let checksumMD5 ← v.opt "ChecksumMD5" + let checksumSHA1 ← v.opt "ChecksumSHA1" + let checksumSHA256 ← v.opt "ChecksumSHA256" + let checksumSHA512 ← v.opt "ChecksumSHA512" + let checksumType ← v.opt "ChecksumType" + let checksumXXHASH128 ← v.opt "ChecksumXXHASH128" + let checksumXXHASH3 ← v.opt "ChecksumXXHASH3" + let checksumXXHASH64 ← v.opt "ChecksumXXHASH64" + let eTag ← v.opt "ETag" + let expiration ← v.opt "Expiration" + let key ← v.opt "Key" + let location ← v.opt "Location" + let requestCharged ← v.opt "RequestCharged" + let ssekmsKeyId ← v.opt "SSEKMSKeyId" + let serverSideEncryption ← v.opt "ServerSideEncryption" + let versionId ← v.opt "VersionId" + return { bucket, bucketKeyEnabled, checksumCRC32, checksumCRC32C, checksumCRC64NVME, checksumMD5, checksumSHA1, checksumSHA256, checksumSHA512, checksumType, checksumXXHASH128, checksumXXHASH3, checksumXXHASH64, eTag, expiration, key, location, requestCharged, ssekmsKeyId, serverSideEncryption, versionId } + +/-- The container for the completed multipart upload details. -/ +structure CompletedMultipartUpload where + /-- Array of CompletedPart data types. -/ + parts : Option (List CompletedPart) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CompletedMultipartUpload where + schema := .struct "CompletedMultipartUpload" [({ name := "Parts", xmlName := some "Part", flattened := true }, (.list (Shape.schema CompletedPart) "member"))] + toValue x := record [putOpt "Parts" x.parts] + ofValue v := do + let parts ← v.opt "Parts" + return { parts } + +structure CopyObjectRequest where + /-- The canned access control list (ACL) to apply to the object. -/ + acl : Option ObjectCannedACL := none + /-- Specifies whether you want to copy annotations from the source object or exclude them. -/ + annotationDirective : Option AnnotationDirective := none + /-- The name of the destination bucket. -/ + bucket : String + /-- Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using Key Management Service (KMS) keys (SSE-KMS). -/ + bucketKeyEnabled : Option Bool := none + /-- Specifies the caching behavior along the request/reply chain. -/ + cacheControl : Option String := none + /-- Indicates the algorithm that you want Amazon S3 to use to create the checksum for the object. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- Specifies presentational information for the object. -/ + contentDisposition : Option String := none + /-- Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. -/ + contentEncoding : Option String := none + /-- The language the content is in. -/ + contentLanguage : Option String := none + /-- A standard MIME type that describes the format of the object data. -/ + contentType : Option String := none + /-- Specifies the source object for the copy operation. -/ + copySource : String + /-- Copies the object if its entity tag (ETag) matches the specified tag. -/ + copySourceIfMatch : Option String := none + /-- Copies the object if it has been modified since the specified time. -/ + copySourceIfModifiedSince : Option Timestamp := none + /-- Copies the object if its entity tag (ETag) is different than the specified ETag. -/ + copySourceIfNoneMatch : Option String := none + /-- Copies the object if it hasn't been modified since the specified time. -/ + copySourceIfUnmodifiedSince : Option Timestamp := none + /-- Specifies the algorithm to use when decrypting the source object (for example, AES256 ). -/ + copySourceSSECustomerAlgorithm : Option String := none + /-- Specifies the customer-provided encryption key for Amazon S3 to use to decrypt the source object. -/ + copySourceSSECustomerKey : Option String := none + /-- Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. -/ + copySourceSSECustomerKeyMD5 : Option String := none + /-- The account ID of the expected destination bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The account ID of the expected source bucket owner. -/ + expectedSourceBucketOwner : Option String := none + /-- The date and time at which the object is no longer cacheable. -/ + expires : Option String := none + /-- Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object. -/ + grantFullControl : Option String := none + /-- Allows grantee to read the object data and its metadata. -/ + grantRead : Option String := none + /-- Allows grantee to read the object ACL. -/ + grantReadACP : Option String := none + /-- Allows grantee to write the ACL for the applicable object. -/ + grantWriteACP : Option String := none + /-- Copies the object if the entity tag (ETag) of the destination object matches the specified tag. -/ + ifMatch : Option String := none + /-- Copies the object only if the object key name at the destination does not already exist in the bucket specified. -/ + ifNoneMatch : Option String := none + /-- The key of the destination object. -/ + key : String + /-- A map of metadata to store with the object in S3. -/ + metadata : Option (Dict String String) := none + /-- Specifies whether the metadata is copied from the source object or replaced with metadata that's provided in the request. -/ + metadataDirective : Option MetadataDirective := none + /-- The event hold status to apply to the object copy. -/ + objectLockEventHold : Option ObjectLockEventHold := none + /-- The event hold duration in days to apply to the object copy. -/ + objectLockEventHoldDurationDays : Option Int := none + /-- The event hold duration in years to apply to the object copy. -/ + objectLockEventHoldDurationYears : Option Int := none + /-- Specifies whether you want to apply a legal hold to the object copy. -/ + objectLockLegalHoldStatus : Option ObjectLockLegalHoldStatus := none + /-- The Object Lock mode that you want to apply to the object copy. -/ + objectLockMode : Option ObjectLockMode := none + /-- The date and time when you want the Object Lock of the object copy to expire. -/ + objectLockRetainUntilDate : Option Timestamp := none + requestPayer : Option RequestPayer := none + /-- Specifies the algorithm to use when encrypting the object (for example, AES256 ). -/ + sseCustomerAlgorithm : Option String := none + /-- Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. -/ + sseCustomerKey : Option String := none + /-- Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. -/ + sseCustomerKeyMD5 : Option String := none + /-- Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for the destination object encryption. -/ + ssekmsEncryptionContext : Option String := none + /-- Specifies the KMS key ID (Key ID, Key ARN, or Key Alias) to use for object encryption. -/ + ssekmsKeyId : Option String := none + /-- The server-side encryption algorithm used when storing this object in Amazon S3. -/ + serverSideEncryption : Option ServerSideEncryption := none + /-- If the x-amz-storage-class header is not used, the copied object will be stored in the STANDARD Storage Class by default. -/ + storageClass : Option StorageClass := none + /-- The tag-set for the object copy in the destination bucket. -/ + tagging : Option String := none + /-- Specifies whether the object tag-set is copied from the source object or replaced with the tag-set that's provided in the request. -/ + taggingDirective : Option TaggingDirective := none + /-- If the destination bucket is configured as a website, redirects requests for this object copy to another object in the same bucket or to an external URL. -/ + websiteRedirectLocation : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CopyObjectRequest where + schema := .struct "CopyObjectRequest" [({ name := "ACL", location := .header "x-amz-acl" }, (Shape.schema ObjectCannedACL)), + ({ name := "AnnotationDirective", location := .header "x-amz-object-annotation-directive" }, (Shape.schema AnnotationDirective)), + ({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "BucketKeyEnabled", location := .header "x-amz-server-side-encryption-bucket-key-enabled" }, .bool), + ({ name := "CacheControl", location := .header "Cache-Control" }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentDisposition", location := .header "Content-Disposition" }, .string), + ({ name := "ContentEncoding", location := .header "Content-Encoding" }, .string), + ({ name := "ContentLanguage", location := .header "Content-Language" }, .string), + ({ name := "ContentType", location := .header "Content-Type" }, .string), + ({ name := "CopySource", required := true, location := .header "x-amz-copy-source" }, .string), + ({ name := "CopySourceIfMatch", location := .header "x-amz-copy-source-if-match" }, .string), + ({ name := "CopySourceIfModifiedSince", location := .header "x-amz-copy-source-if-modified-since" }, (.time none)), + ({ name := "CopySourceIfNoneMatch", location := .header "x-amz-copy-source-if-none-match" }, .string), + ({ name := "CopySourceIfUnmodifiedSince", location := .header "x-amz-copy-source-if-unmodified-since" }, (.time none)), + ({ name := "CopySourceSSECustomerAlgorithm", location := .header "x-amz-copy-source-server-side-encryption-customer-algorithm" }, .string), + ({ name := "CopySourceSSECustomerKey", location := .header "x-amz-copy-source-server-side-encryption-customer-key" }, .string), + ({ name := "CopySourceSSECustomerKeyMD5", location := .header "x-amz-copy-source-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "ExpectedSourceBucketOwner", location := .header "x-amz-source-expected-bucket-owner" }, .string), + ({ name := "Expires", location := .header "Expires" }, .string), + ({ name := "GrantFullControl", location := .header "x-amz-grant-full-control" }, .string), + ({ name := "GrantRead", location := .header "x-amz-grant-read" }, .string), + ({ name := "GrantReadACP", location := .header "x-amz-grant-read-acp" }, .string), + ({ name := "GrantWriteACP", location := .header "x-amz-grant-write-acp" }, .string), + ({ name := "IfMatch", location := .header "If-Match" }, .string), + ({ name := "IfNoneMatch", location := .header "If-None-Match" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "Metadata", location := .prefixHeaders "x-amz-meta-" }, (.map .string .string "key" "value")), + ({ name := "MetadataDirective", location := .header "x-amz-metadata-directive" }, (Shape.schema MetadataDirective)), + ({ name := "ObjectLockEventHold", location := .header "x-amz-object-lock-event-hold" }, (Shape.schema ObjectLockEventHold)), + ({ name := "ObjectLockEventHoldDurationDays", location := .header "x-amz-object-lock-event-hold-duration-days" }, .int), + ({ name := "ObjectLockEventHoldDurationYears", location := .header "x-amz-object-lock-event-hold-duration-years" }, .int), + ({ name := "ObjectLockLegalHoldStatus", location := .header "x-amz-object-lock-legal-hold" }, (Shape.schema ObjectLockLegalHoldStatus)), + ({ name := "ObjectLockMode", location := .header "x-amz-object-lock-mode" }, (Shape.schema ObjectLockMode)), + ({ name := "ObjectLockRetainUntilDate", location := .header "x-amz-object-lock-retain-until-date" }, (.time (some .dateTime))), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "SSECustomerAlgorithm", location := .header "x-amz-server-side-encryption-customer-algorithm" }, .string), + ({ name := "SSECustomerKey", location := .header "x-amz-server-side-encryption-customer-key" }, .string), + ({ name := "SSECustomerKeyMD5", location := .header "x-amz-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "SSEKMSEncryptionContext", location := .header "x-amz-server-side-encryption-context" }, .string), + ({ name := "SSEKMSKeyId", location := .header "x-amz-server-side-encryption-aws-kms-key-id" }, .string), + ({ name := "ServerSideEncryption", location := .header "x-amz-server-side-encryption" }, (Shape.schema ServerSideEncryption)), + ({ name := "StorageClass", location := .header "x-amz-storage-class" }, (Shape.schema StorageClass)), + ({ name := "Tagging", location := .header "x-amz-tagging" }, .string), + ({ name := "TaggingDirective", location := .header "x-amz-tagging-directive" }, (Shape.schema TaggingDirective)), + ({ name := "WebsiteRedirectLocation", location := .header "x-amz-website-redirect-location" }, .string)] + toValue x := record [putOpt "ACL" x.acl, putOpt "AnnotationDirective" x.annotationDirective, put "Bucket" x.bucket, putOpt "BucketKeyEnabled" x.bucketKeyEnabled, putOpt "CacheControl" x.cacheControl, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentDisposition" x.contentDisposition, putOpt "ContentEncoding" x.contentEncoding, putOpt "ContentLanguage" x.contentLanguage, putOpt "ContentType" x.contentType, put "CopySource" x.copySource, putOpt "CopySourceIfMatch" x.copySourceIfMatch, putOpt "CopySourceIfModifiedSince" x.copySourceIfModifiedSince, putOpt "CopySourceIfNoneMatch" x.copySourceIfNoneMatch, putOpt "CopySourceIfUnmodifiedSince" x.copySourceIfUnmodifiedSince, putOpt "CopySourceSSECustomerAlgorithm" x.copySourceSSECustomerAlgorithm, putOpt "CopySourceSSECustomerKey" x.copySourceSSECustomerKey, putOpt "CopySourceSSECustomerKeyMD5" x.copySourceSSECustomerKeyMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, putOpt "ExpectedSourceBucketOwner" x.expectedSourceBucketOwner, putOpt "Expires" x.expires, putOpt "GrantFullControl" x.grantFullControl, putOpt "GrantRead" x.grantRead, putOpt "GrantReadACP" x.grantReadACP, putOpt "GrantWriteACP" x.grantWriteACP, putOpt "IfMatch" x.ifMatch, putOpt "IfNoneMatch" x.ifNoneMatch, put "Key" x.key, putOpt "Metadata" x.metadata, putOpt "MetadataDirective" x.metadataDirective, putOpt "ObjectLockEventHold" x.objectLockEventHold, putOpt "ObjectLockEventHoldDurationDays" x.objectLockEventHoldDurationDays, putOpt "ObjectLockEventHoldDurationYears" x.objectLockEventHoldDurationYears, putOpt "ObjectLockLegalHoldStatus" x.objectLockLegalHoldStatus, putOpt "ObjectLockMode" x.objectLockMode, putOpt "ObjectLockRetainUntilDate" x.objectLockRetainUntilDate, putOpt "RequestPayer" x.requestPayer, putOpt "SSECustomerAlgorithm" x.sseCustomerAlgorithm, putOpt "SSECustomerKey" x.sseCustomerKey, putOpt "SSECustomerKeyMD5" x.sseCustomerKeyMD5, putOpt "SSEKMSEncryptionContext" x.ssekmsEncryptionContext, putOpt "SSEKMSKeyId" x.ssekmsKeyId, putOpt "ServerSideEncryption" x.serverSideEncryption, putOpt "StorageClass" x.storageClass, putOpt "Tagging" x.tagging, putOpt "TaggingDirective" x.taggingDirective, putOpt "WebsiteRedirectLocation" x.websiteRedirectLocation] + ofValue v := do + let acl ← v.opt "ACL" + let annotationDirective ← v.opt "AnnotationDirective" + let bucket ← v.req "Bucket" + let bucketKeyEnabled ← v.opt "BucketKeyEnabled" + let cacheControl ← v.opt "CacheControl" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentDisposition ← v.opt "ContentDisposition" + let contentEncoding ← v.opt "ContentEncoding" + let contentLanguage ← v.opt "ContentLanguage" + let contentType ← v.opt "ContentType" + let copySource ← v.req "CopySource" + let copySourceIfMatch ← v.opt "CopySourceIfMatch" + let copySourceIfModifiedSince ← v.opt "CopySourceIfModifiedSince" + let copySourceIfNoneMatch ← v.opt "CopySourceIfNoneMatch" + let copySourceIfUnmodifiedSince ← v.opt "CopySourceIfUnmodifiedSince" + let copySourceSSECustomerAlgorithm ← v.opt "CopySourceSSECustomerAlgorithm" + let copySourceSSECustomerKey ← v.opt "CopySourceSSECustomerKey" + let copySourceSSECustomerKeyMD5 ← v.opt "CopySourceSSECustomerKeyMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let expectedSourceBucketOwner ← v.opt "ExpectedSourceBucketOwner" + let expires ← v.opt "Expires" + let grantFullControl ← v.opt "GrantFullControl" + let grantRead ← v.opt "GrantRead" + let grantReadACP ← v.opt "GrantReadACP" + let grantWriteACP ← v.opt "GrantWriteACP" + let ifMatch ← v.opt "IfMatch" + let ifNoneMatch ← v.opt "IfNoneMatch" + let key ← v.req "Key" + let metadata ← v.opt "Metadata" + let metadataDirective ← v.opt "MetadataDirective" + let objectLockEventHold ← v.opt "ObjectLockEventHold" + let objectLockEventHoldDurationDays ← v.opt "ObjectLockEventHoldDurationDays" + let objectLockEventHoldDurationYears ← v.opt "ObjectLockEventHoldDurationYears" + let objectLockLegalHoldStatus ← v.opt "ObjectLockLegalHoldStatus" + let objectLockMode ← v.opt "ObjectLockMode" + let objectLockRetainUntilDate ← v.opt "ObjectLockRetainUntilDate" + let requestPayer ← v.opt "RequestPayer" + let sseCustomerAlgorithm ← v.opt "SSECustomerAlgorithm" + let sseCustomerKey ← v.opt "SSECustomerKey" + let sseCustomerKeyMD5 ← v.opt "SSECustomerKeyMD5" + let ssekmsEncryptionContext ← v.opt "SSEKMSEncryptionContext" + let ssekmsKeyId ← v.opt "SSEKMSKeyId" + let serverSideEncryption ← v.opt "ServerSideEncryption" + let storageClass ← v.opt "StorageClass" + let tagging ← v.opt "Tagging" + let taggingDirective ← v.opt "TaggingDirective" + let websiteRedirectLocation ← v.opt "WebsiteRedirectLocation" + return { acl, annotationDirective, bucket, bucketKeyEnabled, cacheControl, checksumAlgorithm, contentDisposition, contentEncoding, contentLanguage, contentType, copySource, copySourceIfMatch, copySourceIfModifiedSince, copySourceIfNoneMatch, copySourceIfUnmodifiedSince, copySourceSSECustomerAlgorithm, copySourceSSECustomerKey, copySourceSSECustomerKeyMD5, expectedBucketOwner, expectedSourceBucketOwner, expires, grantFullControl, grantRead, grantReadACP, grantWriteACP, ifMatch, ifNoneMatch, key, metadata, metadataDirective, objectLockEventHold, objectLockEventHoldDurationDays, objectLockEventHoldDurationYears, objectLockLegalHoldStatus, objectLockMode, objectLockRetainUntilDate, requestPayer, sseCustomerAlgorithm, sseCustomerKey, sseCustomerKeyMD5, ssekmsEncryptionContext, ssekmsKeyId, serverSideEncryption, storageClass, tagging, taggingDirective, websiteRedirectLocation } + +/-- Container for all response elements. -/ +structure CopyObjectResult where + /-- The Base64 encoded, 32-bit CRC32 checksum of the object. -/ + checksumCRC32 : Option String := none + /-- The Base64 encoded, 32-bit CRC32C checksum of the object. -/ + checksumCRC32C : Option String := none + /-- The Base64 encoded, 64-bit CRC64NVME checksum of the object. -/ + checksumCRC64NVME : Option String := none + /-- The Base64 encoded, 128-bit MD5 digest of the object. -/ + checksumMD5 : Option String := none + /-- The Base64 encoded, 160-bit SHA1 digest of the object. -/ + checksumSHA1 : Option String := none + /-- The Base64 encoded, 256-bit SHA256 digest of the object. -/ + checksumSHA256 : Option String := none + /-- The Base64 encoded, 512-bit SHA512 digest of the object. -/ + checksumSHA512 : Option String := none + /-- The checksum type that is used to calculate the object’s checksum value. -/ + checksumType : Option ChecksumType := none + /-- The Base64 encoded, 128-bit XXHASH128 checksum of the object. -/ + checksumXXHASH128 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH3 checksum of the object. -/ + checksumXXHASH3 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH64 checksum of the object. -/ + checksumXXHASH64 : Option String := none + /-- Returns the ETag of the new object. -/ + eTag : Option String := none + /-- Creation date of the object. -/ + lastModified : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CopyObjectResult where + schema := .struct "CopyObjectResult" [({ name := "ChecksumCRC32" }, .string), + ({ name := "ChecksumCRC32C" }, .string), + ({ name := "ChecksumCRC64NVME" }, .string), + ({ name := "ChecksumMD5" }, .string), + ({ name := "ChecksumSHA1" }, .string), + ({ name := "ChecksumSHA256" }, .string), + ({ name := "ChecksumSHA512" }, .string), + ({ name := "ChecksumType" }, (Shape.schema ChecksumType)), + ({ name := "ChecksumXXHASH128" }, .string), + ({ name := "ChecksumXXHASH3" }, .string), + ({ name := "ChecksumXXHASH64" }, .string), + ({ name := "ETag" }, .string), + ({ name := "LastModified" }, (.time none))] + toValue x := record [putOpt "ChecksumCRC32" x.checksumCRC32, putOpt "ChecksumCRC32C" x.checksumCRC32C, putOpt "ChecksumCRC64NVME" x.checksumCRC64NVME, putOpt "ChecksumMD5" x.checksumMD5, putOpt "ChecksumSHA1" x.checksumSHA1, putOpt "ChecksumSHA256" x.checksumSHA256, putOpt "ChecksumSHA512" x.checksumSHA512, putOpt "ChecksumType" x.checksumType, putOpt "ChecksumXXHASH128" x.checksumXXHASH128, putOpt "ChecksumXXHASH3" x.checksumXXHASH3, putOpt "ChecksumXXHASH64" x.checksumXXHASH64, putOpt "ETag" x.eTag, putOpt "LastModified" x.lastModified] + ofValue v := do + let checksumCRC32 ← v.opt "ChecksumCRC32" + let checksumCRC32C ← v.opt "ChecksumCRC32C" + let checksumCRC64NVME ← v.opt "ChecksumCRC64NVME" + let checksumMD5 ← v.opt "ChecksumMD5" + let checksumSHA1 ← v.opt "ChecksumSHA1" + let checksumSHA256 ← v.opt "ChecksumSHA256" + let checksumSHA512 ← v.opt "ChecksumSHA512" + let checksumType ← v.opt "ChecksumType" + let checksumXXHASH128 ← v.opt "ChecksumXXHASH128" + let checksumXXHASH3 ← v.opt "ChecksumXXHASH3" + let checksumXXHASH64 ← v.opt "ChecksumXXHASH64" + let eTag ← v.opt "ETag" + let lastModified ← v.opt "LastModified" + return { checksumCRC32, checksumCRC32C, checksumCRC64NVME, checksumMD5, checksumSHA1, checksumSHA256, checksumSHA512, checksumType, checksumXXHASH128, checksumXXHASH3, checksumXXHASH64, eTag, lastModified } + +structure CreateMultipartUploadOutput where + /-- If the bucket has a lifecycle rule configured with an action to abort incomplete multipart uploads and the prefix in the lifecycle rule matches the object name in the request, the response includes this header. -/ + abortDate : Option Timestamp := none + /-- This header is returned along with the x-amz-abort-date header. -/ + abortRuleId : Option String := none + /-- The name of the bucket to which the multipart upload was initiated. -/ + bucket : Option String := none + /-- Indicates whether the multipart upload uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS). -/ + bucketKeyEnabled : Option Bool := none + /-- The algorithm that was used to create a checksum of the object. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. -/ + checksumType : Option ChecksumType := none + /-- Object key for which the multipart upload was initiated. -/ + key : Option String := none + requestCharged : Option RequestCharged := none + /-- If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used. -/ + sseCustomerAlgorithm : Option String := none + /-- If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key. -/ + sseCustomerKeyMD5 : Option String := none + /-- If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. -/ + ssekmsEncryptionContext : Option String := none + /-- If present, indicates the ID of the KMS key that was used for object encryption. -/ + ssekmsKeyId : Option String := none + /-- The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx. -/ + serverSideEncryption : Option ServerSideEncryption := none + /-- ID for the initiated multipart upload. -/ + uploadId : Option String := none + /-- Version ID of the object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateMultipartUploadOutput where + schema := .struct "InitiateMultipartUploadResult" [({ name := "AbortDate", location := .header "x-amz-abort-date" }, (.time none)), + ({ name := "AbortRuleId", location := .header "x-amz-abort-rule-id" }, .string), + ({ name := "Bucket", xmlName := some "Bucket" }, .string), + ({ name := "BucketKeyEnabled", location := .header "x-amz-server-side-encryption-bucket-key-enabled" }, .bool), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ChecksumType", location := .header "x-amz-checksum-type" }, (Shape.schema ChecksumType)), + ({ name := "Key" }, .string), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged)), + ({ name := "SSECustomerAlgorithm", location := .header "x-amz-server-side-encryption-customer-algorithm" }, .string), + ({ name := "SSECustomerKeyMD5", location := .header "x-amz-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "SSEKMSEncryptionContext", location := .header "x-amz-server-side-encryption-context" }, .string), + ({ name := "SSEKMSKeyId", location := .header "x-amz-server-side-encryption-aws-kms-key-id" }, .string), + ({ name := "ServerSideEncryption", location := .header "x-amz-server-side-encryption" }, (Shape.schema ServerSideEncryption)), + ({ name := "UploadId" }, .string), + ({ name := "VersionId", location := .header "x-amz-version-id" }, .string)] + toValue x := record [putOpt "AbortDate" x.abortDate, putOpt "AbortRuleId" x.abortRuleId, putOpt "Bucket" x.bucket, putOpt "BucketKeyEnabled" x.bucketKeyEnabled, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ChecksumType" x.checksumType, putOpt "Key" x.key, putOpt "RequestCharged" x.requestCharged, putOpt "SSECustomerAlgorithm" x.sseCustomerAlgorithm, putOpt "SSECustomerKeyMD5" x.sseCustomerKeyMD5, putOpt "SSEKMSEncryptionContext" x.ssekmsEncryptionContext, putOpt "SSEKMSKeyId" x.ssekmsKeyId, putOpt "ServerSideEncryption" x.serverSideEncryption, putOpt "UploadId" x.uploadId, putOpt "VersionId" x.versionId] + ofValue v := do + let abortDate ← v.opt "AbortDate" + let abortRuleId ← v.opt "AbortRuleId" + let bucket ← v.opt "Bucket" + let bucketKeyEnabled ← v.opt "BucketKeyEnabled" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let checksumType ← v.opt "ChecksumType" + let key ← v.opt "Key" + let requestCharged ← v.opt "RequestCharged" + let sseCustomerAlgorithm ← v.opt "SSECustomerAlgorithm" + let sseCustomerKeyMD5 ← v.opt "SSECustomerKeyMD5" + let ssekmsEncryptionContext ← v.opt "SSEKMSEncryptionContext" + let ssekmsKeyId ← v.opt "SSEKMSKeyId" + let serverSideEncryption ← v.opt "ServerSideEncryption" + let uploadId ← v.opt "UploadId" + let versionId ← v.opt "VersionId" + return { abortDate, abortRuleId, bucket, bucketKeyEnabled, checksumAlgorithm, checksumType, key, requestCharged, sseCustomerAlgorithm, sseCustomerKeyMD5, ssekmsEncryptionContext, ssekmsKeyId, serverSideEncryption, uploadId, versionId } + +structure CreateMultipartUploadRequest where + /-- The canned ACL to apply to the object. -/ + acl : Option ObjectCannedACL := none + /-- The name of the bucket where the multipart upload is initiated and where the object is uploaded. -/ + bucket : String + /-- Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using Key Management Service (KMS) keys (SSE-KMS). -/ + bucketKeyEnabled : Option Bool := none + /-- Specifies caching behavior along the request/reply chain. -/ + cacheControl : Option String := none + /-- Indicates the algorithm that you want Amazon S3 to use to create the checksum for the object. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. -/ + checksumType : Option ChecksumType := none + /-- Specifies presentational information for the object. -/ + contentDisposition : Option String := none + /-- Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. -/ + contentEncoding : Option String := none + /-- The language that the content is in. -/ + contentLanguage : Option String := none + /-- A standard MIME type describing the format of the object data. -/ + contentType : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The date and time at which the object is no longer cacheable. -/ + expires : Option String := none + /-- Specify access permissions explicitly to give the grantee READ, READ_ACP, and WRITE_ACP permissions on the object. -/ + grantFullControl : Option String := none + /-- Specify access permissions explicitly to allow grantee to read the object data and its metadata. -/ + grantRead : Option String := none + /-- Specify access permissions explicitly to allows grantee to read the object ACL. -/ + grantReadACP : Option String := none + /-- Specify access permissions explicitly to allows grantee to allow grantee to write the ACL for the applicable object. -/ + grantWriteACP : Option String := none + /-- Object key for which the multipart upload is to be initiated. -/ + key : String + /-- A map of metadata to store with the object in S3. -/ + metadata : Option (Dict String String) := none + /-- Specifies the event hold status to apply to the uploaded object. -/ + objectLockEventHold : Option ObjectLockEventHold := none + /-- Specifies the event hold duration in days to apply to the uploaded object. -/ + objectLockEventHoldDurationDays : Option Int := none + /-- Specifies the event hold duration in years to apply to the uploaded object. -/ + objectLockEventHoldDurationYears : Option Int := none + /-- Specifies whether you want to apply a legal hold to the uploaded object. -/ + objectLockLegalHoldStatus : Option ObjectLockLegalHoldStatus := none + /-- Specifies the Object Lock mode that you want to apply to the uploaded object. -/ + objectLockMode : Option ObjectLockMode := none + /-- Specifies the date and time when you want the Object Lock to expire. -/ + objectLockRetainUntilDate : Option Timestamp := none + requestPayer : Option RequestPayer := none + /-- Specifies the algorithm to use when encrypting the object (for example, AES256). -/ + sseCustomerAlgorithm : Option String := none + /-- Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. -/ + sseCustomerKey : Option String := none + /-- Specifies the 128-bit MD5 digest of the customer-provided encryption key according to RFC 1321. -/ + sseCustomerKeyMD5 : Option String := none + /-- Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. -/ + ssekmsEncryptionContext : Option String := none + /-- Specifies the KMS key ID (Key ID, Key ARN, or Key Alias) to use for object encryption. -/ + ssekmsKeyId : Option String := none + /-- The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx. -/ + serverSideEncryption : Option ServerSideEncryption := none + /-- By default, Amazon S3 uses the STANDARD Storage Class to store newly created objects. -/ + storageClass : Option StorageClass := none + /-- The tag-set for the object. -/ + tagging : Option String := none + /-- If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. -/ + websiteRedirectLocation : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateMultipartUploadRequest where + schema := .struct "CreateMultipartUploadRequest" [({ name := "ACL", location := .header "x-amz-acl" }, (Shape.schema ObjectCannedACL)), + ({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "BucketKeyEnabled", location := .header "x-amz-server-side-encryption-bucket-key-enabled" }, .bool), + ({ name := "CacheControl", location := .header "Cache-Control" }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ChecksumType", location := .header "x-amz-checksum-type" }, (Shape.schema ChecksumType)), + ({ name := "ContentDisposition", location := .header "Content-Disposition" }, .string), + ({ name := "ContentEncoding", location := .header "Content-Encoding" }, .string), + ({ name := "ContentLanguage", location := .header "Content-Language" }, .string), + ({ name := "ContentType", location := .header "Content-Type" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Expires", location := .header "Expires" }, .string), + ({ name := "GrantFullControl", location := .header "x-amz-grant-full-control" }, .string), + ({ name := "GrantRead", location := .header "x-amz-grant-read" }, .string), + ({ name := "GrantReadACP", location := .header "x-amz-grant-read-acp" }, .string), + ({ name := "GrantWriteACP", location := .header "x-amz-grant-write-acp" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "Metadata", location := .prefixHeaders "x-amz-meta-" }, (.map .string .string "key" "value")), + ({ name := "ObjectLockEventHold", location := .header "x-amz-object-lock-event-hold" }, (Shape.schema ObjectLockEventHold)), + ({ name := "ObjectLockEventHoldDurationDays", location := .header "x-amz-object-lock-event-hold-duration-days" }, .int), + ({ name := "ObjectLockEventHoldDurationYears", location := .header "x-amz-object-lock-event-hold-duration-years" }, .int), + ({ name := "ObjectLockLegalHoldStatus", location := .header "x-amz-object-lock-legal-hold" }, (Shape.schema ObjectLockLegalHoldStatus)), + ({ name := "ObjectLockMode", location := .header "x-amz-object-lock-mode" }, (Shape.schema ObjectLockMode)), + ({ name := "ObjectLockRetainUntilDate", location := .header "x-amz-object-lock-retain-until-date" }, (.time (some .dateTime))), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "SSECustomerAlgorithm", location := .header "x-amz-server-side-encryption-customer-algorithm" }, .string), + ({ name := "SSECustomerKey", location := .header "x-amz-server-side-encryption-customer-key" }, .string), + ({ name := "SSECustomerKeyMD5", location := .header "x-amz-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "SSEKMSEncryptionContext", location := .header "x-amz-server-side-encryption-context" }, .string), + ({ name := "SSEKMSKeyId", location := .header "x-amz-server-side-encryption-aws-kms-key-id" }, .string), + ({ name := "ServerSideEncryption", location := .header "x-amz-server-side-encryption" }, (Shape.schema ServerSideEncryption)), + ({ name := "StorageClass", location := .header "x-amz-storage-class" }, (Shape.schema StorageClass)), + ({ name := "Tagging", location := .header "x-amz-tagging" }, .string), + ({ name := "WebsiteRedirectLocation", location := .header "x-amz-website-redirect-location" }, .string)] + toValue x := record [putOpt "ACL" x.acl, put "Bucket" x.bucket, putOpt "BucketKeyEnabled" x.bucketKeyEnabled, putOpt "CacheControl" x.cacheControl, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ChecksumType" x.checksumType, putOpt "ContentDisposition" x.contentDisposition, putOpt "ContentEncoding" x.contentEncoding, putOpt "ContentLanguage" x.contentLanguage, putOpt "ContentType" x.contentType, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, putOpt "Expires" x.expires, putOpt "GrantFullControl" x.grantFullControl, putOpt "GrantRead" x.grantRead, putOpt "GrantReadACP" x.grantReadACP, putOpt "GrantWriteACP" x.grantWriteACP, put "Key" x.key, putOpt "Metadata" x.metadata, putOpt "ObjectLockEventHold" x.objectLockEventHold, putOpt "ObjectLockEventHoldDurationDays" x.objectLockEventHoldDurationDays, putOpt "ObjectLockEventHoldDurationYears" x.objectLockEventHoldDurationYears, putOpt "ObjectLockLegalHoldStatus" x.objectLockLegalHoldStatus, putOpt "ObjectLockMode" x.objectLockMode, putOpt "ObjectLockRetainUntilDate" x.objectLockRetainUntilDate, putOpt "RequestPayer" x.requestPayer, putOpt "SSECustomerAlgorithm" x.sseCustomerAlgorithm, putOpt "SSECustomerKey" x.sseCustomerKey, putOpt "SSECustomerKeyMD5" x.sseCustomerKeyMD5, putOpt "SSEKMSEncryptionContext" x.ssekmsEncryptionContext, putOpt "SSEKMSKeyId" x.ssekmsKeyId, putOpt "ServerSideEncryption" x.serverSideEncryption, putOpt "StorageClass" x.storageClass, putOpt "Tagging" x.tagging, putOpt "WebsiteRedirectLocation" x.websiteRedirectLocation] + ofValue v := do + let acl ← v.opt "ACL" + let bucket ← v.req "Bucket" + let bucketKeyEnabled ← v.opt "BucketKeyEnabled" + let cacheControl ← v.opt "CacheControl" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let checksumType ← v.opt "ChecksumType" + let contentDisposition ← v.opt "ContentDisposition" + let contentEncoding ← v.opt "ContentEncoding" + let contentLanguage ← v.opt "ContentLanguage" + let contentType ← v.opt "ContentType" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let expires ← v.opt "Expires" + let grantFullControl ← v.opt "GrantFullControl" + let grantRead ← v.opt "GrantRead" + let grantReadACP ← v.opt "GrantReadACP" + let grantWriteACP ← v.opt "GrantWriteACP" + let key ← v.req "Key" + let metadata ← v.opt "Metadata" + let objectLockEventHold ← v.opt "ObjectLockEventHold" + let objectLockEventHoldDurationDays ← v.opt "ObjectLockEventHoldDurationDays" + let objectLockEventHoldDurationYears ← v.opt "ObjectLockEventHoldDurationYears" + let objectLockLegalHoldStatus ← v.opt "ObjectLockLegalHoldStatus" + let objectLockMode ← v.opt "ObjectLockMode" + let objectLockRetainUntilDate ← v.opt "ObjectLockRetainUntilDate" + let requestPayer ← v.opt "RequestPayer" + let sseCustomerAlgorithm ← v.opt "SSECustomerAlgorithm" + let sseCustomerKey ← v.opt "SSECustomerKey" + let sseCustomerKeyMD5 ← v.opt "SSECustomerKeyMD5" + let ssekmsEncryptionContext ← v.opt "SSEKMSEncryptionContext" + let ssekmsKeyId ← v.opt "SSEKMSKeyId" + let serverSideEncryption ← v.opt "ServerSideEncryption" + let storageClass ← v.opt "StorageClass" + let tagging ← v.opt "Tagging" + let websiteRedirectLocation ← v.opt "WebsiteRedirectLocation" + return { acl, bucket, bucketKeyEnabled, cacheControl, checksumAlgorithm, checksumType, contentDisposition, contentEncoding, contentLanguage, contentType, expectedBucketOwner, expires, grantFullControl, grantRead, grantReadACP, grantWriteACP, key, metadata, objectLockEventHold, objectLockEventHoldDurationDays, objectLockEventHoldDurationYears, objectLockLegalHoldStatus, objectLockMode, objectLockRetainUntilDate, requestPayer, sseCustomerAlgorithm, sseCustomerKey, sseCustomerKeyMD5, ssekmsEncryptionContext, ssekmsKeyId, serverSideEncryption, storageClass, tagging, websiteRedirectLocation } + +structure CreateSessionOutput where + /-- Indicates whether to use an S3 Bucket Key for server-side encryption with KMS keys (SSE-KMS). -/ + bucketKeyEnabled : Option Bool := none + /-- The established temporary security credentials for the created session. -/ + credentials : SessionCredentials + /-- If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. -/ + ssekmsEncryptionContext : Option String := none + /-- If you specify x-amz-server-side-encryption with aws:kms , this header indicates the ID of the KMS symmetric encryption customer managed key that was used for object encryption. -/ + ssekmsKeyId : Option String := none + /-- The server-side encryption algorithm used when you store objects in the directory bucket. -/ + serverSideEncryption : Option ServerSideEncryption := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateSessionOutput where + schema := .struct "CreateSessionResult" [({ name := "BucketKeyEnabled", location := .header "x-amz-server-side-encryption-bucket-key-enabled" }, .bool), + ({ name := "Credentials", required := true, xmlName := some "Credentials" }, (Shape.schema SessionCredentials)), + ({ name := "SSEKMSEncryptionContext", location := .header "x-amz-server-side-encryption-context" }, .string), + ({ name := "SSEKMSKeyId", location := .header "x-amz-server-side-encryption-aws-kms-key-id" }, .string), + ({ name := "ServerSideEncryption", location := .header "x-amz-server-side-encryption" }, (Shape.schema ServerSideEncryption))] + toValue x := record [putOpt "BucketKeyEnabled" x.bucketKeyEnabled, put "Credentials" x.credentials, putOpt "SSEKMSEncryptionContext" x.ssekmsEncryptionContext, putOpt "SSEKMSKeyId" x.ssekmsKeyId, putOpt "ServerSideEncryption" x.serverSideEncryption] + ofValue v := do + let bucketKeyEnabled ← v.opt "BucketKeyEnabled" + let credentials ← v.req "Credentials" + let ssekmsEncryptionContext ← v.opt "SSEKMSEncryptionContext" + let ssekmsKeyId ← v.opt "SSEKMSKeyId" + let serverSideEncryption ← v.opt "ServerSideEncryption" + return { bucketKeyEnabled, credentials, ssekmsEncryptionContext, ssekmsKeyId, serverSideEncryption } + +structure CreateSessionRequest where + /-- The name of the bucket that you create a session for. -/ + bucket : String + /-- Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using KMS keys (SSE-KMS). -/ + bucketKeyEnabled : Option Bool := none + /-- Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. -/ + ssekmsEncryptionContext : Option String := none + /-- If you specify x-amz-server-side-encryption with aws:kms , you must specify the x-amz-server-side-encryption-aws-kms-key-id header with the ID (Key ID or Key ARN) of the KMS symmetric encryption customer managed key to use. -/ + ssekmsKeyId : Option String := none + /-- The server-side encryption algorithm to use when you store objects in the directory bucket. -/ + serverSideEncryption : Option ServerSideEncryption := none + /-- Specifies the mode of the session that will be created, either ReadWrite or ReadOnly . -/ + sessionMode : Option SessionMode := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateSessionRequest where + schema := .struct "CreateSessionRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "BucketKeyEnabled", location := .header "x-amz-server-side-encryption-bucket-key-enabled" }, .bool), + ({ name := "SSEKMSEncryptionContext", location := .header "x-amz-server-side-encryption-context" }, .string), + ({ name := "SSEKMSKeyId", location := .header "x-amz-server-side-encryption-aws-kms-key-id" }, .string), + ({ name := "ServerSideEncryption", location := .header "x-amz-server-side-encryption" }, (Shape.schema ServerSideEncryption)), + ({ name := "SessionMode", location := .header "x-amz-create-session-mode" }, (Shape.schema SessionMode))] + toValue x := record [put "Bucket" x.bucket, putOpt "BucketKeyEnabled" x.bucketKeyEnabled, putOpt "SSEKMSEncryptionContext" x.ssekmsEncryptionContext, putOpt "SSEKMSKeyId" x.ssekmsKeyId, putOpt "ServerSideEncryption" x.serverSideEncryption, putOpt "SessionMode" x.sessionMode] + ofValue v := do + let bucket ← v.req "Bucket" + let bucketKeyEnabled ← v.opt "BucketKeyEnabled" + let ssekmsEncryptionContext ← v.opt "SSEKMSEncryptionContext" + let ssekmsKeyId ← v.opt "SSEKMSKeyId" + let serverSideEncryption ← v.opt "ServerSideEncryption" + let sessionMode ← v.opt "SessionMode" + return { bucket, bucketKeyEnabled, ssekmsEncryptionContext, ssekmsKeyId, serverSideEncryption, sessionMode } + +/-- The container element for optionally specifying the default Object Lock retention settings for new objects placed in the specified bucket. -/ +structure DefaultRetention where + /-- The number of days that you want to specify for the default retention period. -/ + days : Option Int := none + /-- The default event hold duration to be applied to new objects placed in the specified bucket. -/ + defaultEventHold : Option EventHoldDuration := none + /-- The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. -/ + mode : Option ObjectLockRetentionMode := none + /-- The number of years that you want to specify for the default retention period. -/ + years : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DefaultRetention where + schema := .struct "DefaultRetention" [({ name := "Days" }, .int), + ({ name := "DefaultEventHold" }, (Shape.schema EventHoldDuration)), + ({ name := "Mode" }, (Shape.schema ObjectLockRetentionMode)), + ({ name := "Years" }, .int)] + toValue x := record [putOpt "Days" x.days, putOpt "DefaultEventHold" x.defaultEventHold, putOpt "Mode" x.mode, putOpt "Years" x.years] + ofValue v := do + let days ← v.opt "Days" + let defaultEventHold ← v.opt "DefaultEventHold" + let mode ← v.opt "Mode" + let years ← v.opt "Years" + return { days, defaultEventHold, mode, years } + +/-- Container for the objects to delete. -/ +structure Delete where + /-- The object to delete. -/ + objects : (List ObjectIdentifier) + /-- Element to enable quiet mode for the request. -/ + quiet : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Delete where + schema := .struct "Delete" [({ name := "Objects", required := true, xmlName := some "Object", flattened := true }, (.list (Shape.schema ObjectIdentifier) "member")), + ({ name := "Quiet" }, .bool)] + toValue x := record [put "Objects" x.objects, putOpt "Quiet" x.quiet] + ofValue v := do + let objects ← v.req "Objects" + let quiet ← v.opt "Quiet" + return { objects, quiet } + +/-- Information about the delete marker. -/ +structure DeleteMarkerEntry where + /-- Specifies whether the object is (true) or is not (false) the latest version of an object. -/ + isLatest : Option Bool := none + /-- The object key. -/ + key : Option String := none + /-- Date and time when the object was last modified. -/ + lastModified : Option Timestamp := none + /-- The account that created the delete marker. -/ + owner : Option Owner := none + /-- Version ID of an object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteMarkerEntry where + schema := .struct "DeleteMarkerEntry" [({ name := "IsLatest" }, .bool), + ({ name := "Key" }, .string), + ({ name := "LastModified" }, (.time none)), + ({ name := "Owner" }, (Shape.schema Owner)), + ({ name := "VersionId" }, .string)] + toValue x := record [putOpt "IsLatest" x.isLatest, putOpt "Key" x.key, putOpt "LastModified" x.lastModified, putOpt "Owner" x.owner, putOpt "VersionId" x.versionId] + ofValue v := do + let isLatest ← v.opt "IsLatest" + let key ← v.opt "Key" + let lastModified ← v.opt "LastModified" + let owner ← v.opt "Owner" + let versionId ← v.opt "VersionId" + return { isLatest, key, lastModified, owner, versionId } + +/-- Specifies whether Amazon S3 replicates delete markers. -/ +structure DeleteMarkerReplication where + /-- Indicates whether to replicate delete markers. -/ + status : Option DeleteMarkerReplicationStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteMarkerReplication where + schema := .struct "DeleteMarkerReplication" [({ name := "Status" }, (Shape.schema DeleteMarkerReplicationStatus))] + toValue x := record [putOpt "Status" x.status] + ofValue v := do + let status ← v.opt "Status" + return { status } + +structure DeleteObjectAnnotationOutput where + /-- The version ID of the object that the annotation was deleted from. -/ + objectVersionId : Option String := none + requestCharged : Option RequestCharged := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteObjectAnnotationOutput where + schema := .struct "DeleteObjectAnnotationOutput" [({ name := "ObjectVersionId", location := .header "x-amz-object-version-id" }, .string), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged))] + toValue x := record [putOpt "ObjectVersionId" x.objectVersionId, putOpt "RequestCharged" x.requestCharged] + ofValue v := do + let objectVersionId ← v.opt "ObjectVersionId" + let requestCharged ← v.opt "RequestCharged" + return { objectVersionId, requestCharged } + +structure DeleteObjectAnnotationRequest where + /-- The name of the annotation to delete. -/ + annotationName : String + /-- The name of the bucket that contains the object. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The object key. -/ + key : String + /-- If specified, the operation only succeeds if the object's ETag matches the provided value. -/ + objectIfMatch : Option String := none + requestPayer : Option RequestPayer := none + /-- The version ID of the object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteObjectAnnotationRequest where + schema := .struct "DeleteObjectAnnotationRequest" [({ name := "AnnotationName", required := true, location := .query "annotationName" }, .string), + ({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "ObjectIfMatch", location := .header "x-amz-object-if-match" }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "VersionId", location := .query "versionId" }, .string)] + toValue x := record [put "AnnotationName" x.annotationName, put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Key" x.key, putOpt "ObjectIfMatch" x.objectIfMatch, putOpt "RequestPayer" x.requestPayer, putOpt "VersionId" x.versionId] + ofValue v := do + let annotationName ← v.req "AnnotationName" + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let key ← v.req "Key" + let objectIfMatch ← v.opt "ObjectIfMatch" + let requestPayer ← v.opt "RequestPayer" + let versionId ← v.opt "VersionId" + return { annotationName, bucket, expectedBucketOwner, key, objectIfMatch, requestPayer, versionId } + +structure DeleteObjectOutput where + /-- Indicates whether the specified object version that was permanently deleted was (true) or was not (false) a delete marker before deletion. -/ + deleteMarker : Option Bool := none + requestCharged : Option RequestCharged := none + /-- Returns the version ID of the delete marker created as a result of the DELETE operation. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteObjectOutput where + schema := .struct "DeleteObjectOutput" [({ name := "DeleteMarker", location := .header "x-amz-delete-marker" }, .bool), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged)), + ({ name := "VersionId", location := .header "x-amz-version-id" }, .string)] + toValue x := record [putOpt "DeleteMarker" x.deleteMarker, putOpt "RequestCharged" x.requestCharged, putOpt "VersionId" x.versionId] + ofValue v := do + let deleteMarker ← v.opt "DeleteMarker" + let requestCharged ← v.opt "RequestCharged" + let versionId ← v.opt "VersionId" + return { deleteMarker, requestCharged, versionId } + +structure DeleteObjectRequest where + /-- The bucket name of the bucket containing the object. -/ + bucket : String + /-- Indicates whether S3 Object Lock should bypass Governance-mode restrictions to process this operation. -/ + bypassGovernanceRetention : Option Bool := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- Deletes the object if the ETag (entity tag) value provided during the delete operation matches the ETag of the object in S3. -/ + ifMatch : Option String := none + /-- If present, the object is deleted only if its modification times matches the provided Timestamp . -/ + ifMatchLastModifiedTime : Option Timestamp := none + /-- If present, the object is deleted only if its size matches the provided size in bytes. -/ + ifMatchSize : Option Int := none + /-- Key name of the object to delete. -/ + key : String + /-- The concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device. -/ + mfa : Option String := none + requestPayer : Option RequestPayer := none + /-- Version ID used to reference a specific version of the object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteObjectRequest where + schema := .struct "DeleteObjectRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "BypassGovernanceRetention", location := .header "x-amz-bypass-governance-retention" }, .bool), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "IfMatch", location := .header "If-Match" }, .string), + ({ name := "IfMatchLastModifiedTime", location := .header "x-amz-if-match-last-modified-time" }, (.time (some .httpDate))), + ({ name := "IfMatchSize", location := .header "x-amz-if-match-size" }, .int), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "MFA", location := .header "x-amz-mfa" }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "VersionId", location := .query "versionId" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "BypassGovernanceRetention" x.bypassGovernanceRetention, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, putOpt "IfMatch" x.ifMatch, putOpt "IfMatchLastModifiedTime" x.ifMatchLastModifiedTime, putOpt "IfMatchSize" x.ifMatchSize, put "Key" x.key, putOpt "MFA" x.mfa, putOpt "RequestPayer" x.requestPayer, putOpt "VersionId" x.versionId] + ofValue v := do + let bucket ← v.req "Bucket" + let bypassGovernanceRetention ← v.opt "BypassGovernanceRetention" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let ifMatch ← v.opt "IfMatch" + let ifMatchLastModifiedTime ← v.opt "IfMatchLastModifiedTime" + let ifMatchSize ← v.opt "IfMatchSize" + let key ← v.req "Key" + let mfa ← v.opt "MFA" + let requestPayer ← v.opt "RequestPayer" + let versionId ← v.opt "VersionId" + return { bucket, bypassGovernanceRetention, expectedBucketOwner, ifMatch, ifMatchLastModifiedTime, ifMatchSize, key, mfa, requestPayer, versionId } + +structure DeleteObjectsOutput where + /-- Container element for a successful delete. -/ + deleted : Option (List DeletedObject) := none + /-- Container for a failed delete action that describes the object that Amazon S3 attempted to delete and the error it encountered. -/ + errors : Option (List Error_) := none + requestCharged : Option RequestCharged := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteObjectsOutput where + schema := .struct "DeleteResult" [({ name := "Deleted", flattened := true }, (.list (Shape.schema DeletedObject) "member")), + ({ name := "Errors", xmlName := some "Error", flattened := true }, (.list (Shape.schema Error_) "member")), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged))] + toValue x := record [putOpt "Deleted" x.deleted, putOpt "Errors" x.errors, putOpt "RequestCharged" x.requestCharged] + ofValue v := do + let deleted ← v.opt "Deleted" + let errors ← v.opt "Errors" + let requestCharged ← v.opt "RequestCharged" + return { deleted, errors, requestCharged } + +/-- The destination information for the S3 Metadata configuration. -/ +structure DestinationResult where + /-- The Amazon Resource Name (ARN) of the table bucket where the metadata configuration is stored. -/ + tableBucketArn : Option String := none + /-- The type of the table bucket where the metadata configuration is stored. -/ + tableBucketType : Option S3TablesBucketType := none + /-- The namespace in the table bucket where the metadata tables for a metadata configuration are stored. -/ + tableNamespace : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DestinationResult where + schema := .struct "DestinationResult" [({ name := "TableBucketArn" }, .string), + ({ name := "TableBucketType" }, (Shape.schema S3TablesBucketType)), + ({ name := "TableNamespace" }, .string)] + toValue x := record [putOpt "TableBucketArn" x.tableBucketArn, putOpt "TableBucketType" x.tableBucketType, putOpt "TableNamespace" x.tableNamespace] + ofValue v := do + let tableBucketArn ← v.opt "TableBucketArn" + let tableBucketType ← v.opt "TableBucketType" + let tableNamespace ← v.opt "TableNamespace" + return { tableBucketArn, tableBucketType, tableNamespace } + +/-- Contains the type of server-side encryption used. -/ +structure Encryption where + /-- The server-side encryption algorithm used when storing job results in Amazon S3 (for example, AES256, aws:kms ). -/ + encryptionType : ServerSideEncryption + /-- If the encryption type is aws:kms , this optional value can be used to specify the encryption context for the restore results. -/ + kmsContext : Option String := none + /-- If the encryption type is aws:kms , this optional value specifies the ID of the symmetric encryption customer managed key to use for encryption of job results. -/ + kmsKeyId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Encryption where + schema := .struct "Encryption" [({ name := "EncryptionType", required := true }, (Shape.schema ServerSideEncryption)), + ({ name := "KMSContext" }, .string), + ({ name := "KMSKeyId" }, .string)] + toValue x := record [put "EncryptionType" x.encryptionType, putOpt "KMSContext" x.kmsContext, putOpt "KMSKeyId" x.kmsKeyId] + ofValue v := do + let encryptionType ← v.req "EncryptionType" + let kmsContext ← v.opt "KMSContext" + let kmsKeyId ← v.opt "KMSKeyId" + return { encryptionType, kmsContext, kmsKeyId } + +/-- Optional configuration to replicate existing source bucket objects. -/ +structure ExistingObjectReplication where + /-- Specifies whether Amazon S3 replicates existing source bucket objects. -/ + status : ExistingObjectReplicationStatus +deriving DecidableEq, Repr, Inhabited + +instance : Shape ExistingObjectReplication where + schema := .struct "ExistingObjectReplication" [({ name := "Status", required := true }, (Shape.schema ExistingObjectReplicationStatus))] + toValue x := record [put "Status" x.status] + ofValue v := do + let status ← v.req "Status" + return { status } + +/-- Specifies the Amazon S3 object key name to filter on. -/ +structure FilterRule where + /-- The object key name prefix or suffix identifying one or more objects to which the filtering rule applies. -/ + name : Option FilterRuleName := none + /-- The value that the filter searches for in object key names. -/ + value : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FilterRule where + schema := .struct "FilterRule" [({ name := "Name" }, (Shape.schema FilterRuleName)), + ({ name := "Value" }, .string)] + toValue x := record [putOpt "Name" x.name, putOpt "Value" x.value] + ofValue v := do + let name ← v.opt "Name" + let value ← v.opt "Value" + return { name, value } + +structure GetBucketAccelerateConfigurationOutput where + requestCharged : Option RequestCharged := none + /-- The accelerate configuration of the bucket. -/ + status : Option BucketAccelerateStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketAccelerateConfigurationOutput where + schema := .struct "AccelerateConfiguration" [({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged)), + ({ name := "Status" }, (Shape.schema BucketAccelerateStatus))] + toValue x := record [putOpt "RequestCharged" x.requestCharged, putOpt "Status" x.status] + ofValue v := do + let requestCharged ← v.opt "RequestCharged" + let status ← v.opt "Status" + return { requestCharged, status } + +structure GetBucketAccelerateConfigurationRequest where + /-- The name of the bucket for which the accelerate configuration is retrieved. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + requestPayer : Option RequestPayer := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketAccelerateConfigurationRequest where + schema := .struct "GetBucketAccelerateConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer))] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, putOpt "RequestPayer" x.requestPayer] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let requestPayer ← v.opt "RequestPayer" + return { bucket, expectedBucketOwner, requestPayer } + +structure GetBucketCorsOutput where + /-- A set of origins and methods (cross-origin access that you want to allow). -/ + corsRules : Option (List CORSRule) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketCorsOutput where + schema := .struct "CORSConfiguration" [({ name := "CORSRules", xmlName := some "CORSRule", flattened := true }, (.list (Shape.schema CORSRule) "member"))] + toValue x := record [putOpt "CORSRules" x.corsRules] + ofValue v := do + let corsRules ← v.opt "CORSRules" + return { corsRules } + +structure GetBucketLocationOutput where + /-- Specifies the Region where the bucket resides. -/ + locationConstraint : Option BucketLocationConstraint := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketLocationOutput where + schema := .struct "LocationConstraint" [({ name := "LocationConstraint" }, (Shape.schema BucketLocationConstraint))] + toValue x := record [putOpt "LocationConstraint" x.locationConstraint] + ofValue v := do + let locationConstraint ← v.opt "LocationConstraint" + return { locationConstraint } + +structure GetBucketPolicyStatusOutput where + /-- The policy status for the specified bucket. -/ + policyStatus : Option PolicyStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketPolicyStatusOutput where + schema := .struct "GetBucketPolicyStatusOutput" [({ name := "PolicyStatus", location := .payload }, (Shape.schema PolicyStatus))] + toValue x := record [putOpt "PolicyStatus" x.policyStatus] + ofValue v := do + let policyStatus ← v.opt "PolicyStatus" + return { policyStatus } + +structure GetBucketRequestPaymentOutput where + /-- Specifies who pays for the download and request fees. -/ + payer : Option Payer := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketRequestPaymentOutput where + schema := .struct "RequestPaymentConfiguration" [({ name := "Payer" }, (Shape.schema Payer))] + toValue x := record [putOpt "Payer" x.payer] + ofValue v := do + let payer ← v.opt "Payer" + return { payer } + +structure GetBucketTaggingOutput where + /-- Contains the tag set. -/ + tagSet : (List Tag) +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketTaggingOutput where + schema := .struct "Tagging" [({ name := "TagSet", required := true }, (.list (Shape.schema Tag) "Tag"))] + toValue x := record [put "TagSet" x.tagSet] + ofValue v := do + let tagSet ← v.req "TagSet" + return { tagSet } + +structure GetBucketVersioningOutput where + /-- Specifies whether MFA delete is enabled in the bucket versioning configuration. -/ + mfaDelete : Option MFADeleteStatus := none + /-- The versioning state of the bucket. -/ + status : Option BucketVersioningStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketVersioningOutput where + schema := .struct "VersioningConfiguration" [({ name := "MFADelete", xmlName := some "MfaDelete" }, (Shape.schema MFADeleteStatus)), + ({ name := "Status" }, (Shape.schema BucketVersioningStatus))] + toValue x := record [putOpt "MFADelete" x.mfaDelete, putOpt "Status" x.status] + ofValue v := do + let mfaDelete ← v.opt "MFADelete" + let status ← v.opt "Status" + return { mfaDelete, status } + +structure GetObjectAclRequest where + /-- The bucket name that contains the object for which to get the ACL information. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The key of the object for which to get the ACL information. -/ + key : String + requestPayer : Option RequestPayer := none + /-- Version ID used to reference a specific version of the object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetObjectAclRequest where + schema := .struct "GetObjectAclRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "VersionId", location := .query "versionId" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Key" x.key, putOpt "RequestPayer" x.requestPayer, putOpt "VersionId" x.versionId] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let key ← v.req "Key" + let requestPayer ← v.opt "RequestPayer" + let versionId ← v.opt "VersionId" + return { bucket, expectedBucketOwner, key, requestPayer, versionId } + +structure GetObjectAnnotationOutput where + /-- The annotation payload. -/ + annotationPayload : Option Blob := none + /-- The CRC32 checksum of the annotation payload. -/ + checksumCRC32 : Option String := none + /-- The CRC32C checksum of the annotation payload. -/ + checksumCRC32C : Option String := none + /-- The CRC64NVME checksum of the annotation payload. -/ + checksumCRC64NVME : Option String := none + /-- The MD5 checksum of the annotation payload. -/ + checksumMD5 : Option String := none + /-- The SHA1 checksum of the annotation payload. -/ + checksumSHA1 : Option String := none + /-- The SHA256 checksum of the annotation payload. -/ + checksumSHA256 : Option String := none + /-- The SHA512 checksum of the annotation payload. -/ + checksumSHA512 : Option String := none + /-- The type of checksum used. -/ + checksumType : Option ChecksumType := none + /-- The XXHASH128 checksum of the annotation payload. -/ + checksumXXHASH128 : Option String := none + /-- The XXHASH3 checksum of the annotation payload. -/ + checksumXXHASH3 : Option String := none + /-- The XXHASH64 checksum of the annotation payload. -/ + checksumXXHASH64 : Option String := none + /-- The size of the annotation payload, in bytes. -/ + contentLength : Option Int := none + /-- The entity tag of the annotation. -/ + eTag : Option String := none + /-- The date and time the annotation was last modified. -/ + lastModified : Option Timestamp := none + /-- The version ID of the object that the annotation is attached to. -/ + objectVersionId : Option String := none + /-- The replication status of the annotation. -/ + replicationStatus : Option ReplicationStatus := none + requestCharged : Option RequestCharged := none + /-- The server-side encryption algorithm used. -/ + serverSideEncryption : Option ServerSideEncryption := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetObjectAnnotationOutput where + schema := .struct "GetObjectAnnotationOutput" [({ name := "AnnotationPayload", location := .payload }, .blob), + ({ name := "ChecksumCRC32", location := .header "x-amz-checksum-crc32" }, .string), + ({ name := "ChecksumCRC32C", location := .header "x-amz-checksum-crc32c" }, .string), + ({ name := "ChecksumCRC64NVME", location := .header "x-amz-checksum-crc64nvme" }, .string), + ({ name := "ChecksumMD5", location := .header "x-amz-checksum-md5" }, .string), + ({ name := "ChecksumSHA1", location := .header "x-amz-checksum-sha1" }, .string), + ({ name := "ChecksumSHA256", location := .header "x-amz-checksum-sha256" }, .string), + ({ name := "ChecksumSHA512", location := .header "x-amz-checksum-sha512" }, .string), + ({ name := "ChecksumType", location := .header "x-amz-checksum-type" }, (Shape.schema ChecksumType)), + ({ name := "ChecksumXXHASH128", location := .header "x-amz-checksum-xxhash128" }, .string), + ({ name := "ChecksumXXHASH3", location := .header "x-amz-checksum-xxhash3" }, .string), + ({ name := "ChecksumXXHASH64", location := .header "x-amz-checksum-xxhash64" }, .string), + ({ name := "ContentLength", location := .header "Content-Length" }, .int), + ({ name := "ETag", location := .header "ETag" }, .string), + ({ name := "LastModified", location := .header "Last-Modified" }, (.time none)), + ({ name := "ObjectVersionId", location := .header "x-amz-object-version-id" }, .string), + ({ name := "ReplicationStatus", location := .header "x-amz-replication-status" }, (Shape.schema ReplicationStatus)), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged)), + ({ name := "ServerSideEncryption", location := .header "x-amz-server-side-encryption" }, (Shape.schema ServerSideEncryption))] + toValue x := record [putOpt "AnnotationPayload" x.annotationPayload, putOpt "ChecksumCRC32" x.checksumCRC32, putOpt "ChecksumCRC32C" x.checksumCRC32C, putOpt "ChecksumCRC64NVME" x.checksumCRC64NVME, putOpt "ChecksumMD5" x.checksumMD5, putOpt "ChecksumSHA1" x.checksumSHA1, putOpt "ChecksumSHA256" x.checksumSHA256, putOpt "ChecksumSHA512" x.checksumSHA512, putOpt "ChecksumType" x.checksumType, putOpt "ChecksumXXHASH128" x.checksumXXHASH128, putOpt "ChecksumXXHASH3" x.checksumXXHASH3, putOpt "ChecksumXXHASH64" x.checksumXXHASH64, putOpt "ContentLength" x.contentLength, putOpt "ETag" x.eTag, putOpt "LastModified" x.lastModified, putOpt "ObjectVersionId" x.objectVersionId, putOpt "ReplicationStatus" x.replicationStatus, putOpt "RequestCharged" x.requestCharged, putOpt "ServerSideEncryption" x.serverSideEncryption] + ofValue v := do + let annotationPayload ← v.opt "AnnotationPayload" + let checksumCRC32 ← v.opt "ChecksumCRC32" + let checksumCRC32C ← v.opt "ChecksumCRC32C" + let checksumCRC64NVME ← v.opt "ChecksumCRC64NVME" + let checksumMD5 ← v.opt "ChecksumMD5" + let checksumSHA1 ← v.opt "ChecksumSHA1" + let checksumSHA256 ← v.opt "ChecksumSHA256" + let checksumSHA512 ← v.opt "ChecksumSHA512" + let checksumType ← v.opt "ChecksumType" + let checksumXXHASH128 ← v.opt "ChecksumXXHASH128" + let checksumXXHASH3 ← v.opt "ChecksumXXHASH3" + let checksumXXHASH64 ← v.opt "ChecksumXXHASH64" + let contentLength ← v.opt "ContentLength" + let eTag ← v.opt "ETag" + let lastModified ← v.opt "LastModified" + let objectVersionId ← v.opt "ObjectVersionId" + let replicationStatus ← v.opt "ReplicationStatus" + let requestCharged ← v.opt "RequestCharged" + let serverSideEncryption ← v.opt "ServerSideEncryption" + return { annotationPayload, checksumCRC32, checksumCRC32C, checksumCRC64NVME, checksumMD5, checksumSHA1, checksumSHA256, checksumSHA512, checksumType, checksumXXHASH128, checksumXXHASH3, checksumXXHASH64, contentLength, eTag, lastModified, objectVersionId, replicationStatus, requestCharged, serverSideEncryption } + +structure GetObjectAnnotationRequest where + /-- The name of the annotation to retrieve. -/ + annotationName : String + /-- The name of the bucket that contains the object. -/ + bucket : String + /-- Set to ENABLED to validate the checksum of the annotation payload on retrieval. -/ + checksumMode : Option ChecksumMode := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The object key. -/ + key : String + requestPayer : Option RequestPayer := none + /-- The version ID of the object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetObjectAnnotationRequest where + schema := .struct "GetObjectAnnotationRequest" [({ name := "AnnotationName", required := true, location := .query "annotationName" }, .string), + ({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumMode", location := .header "x-amz-checksum-mode" }, (Shape.schema ChecksumMode)), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "VersionId", location := .query "versionId" }, .string)] + toValue x := record [put "AnnotationName" x.annotationName, put "Bucket" x.bucket, putOpt "ChecksumMode" x.checksumMode, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Key" x.key, putOpt "RequestPayer" x.requestPayer, putOpt "VersionId" x.versionId] + ofValue v := do + let annotationName ← v.req "AnnotationName" + let bucket ← v.req "Bucket" + let checksumMode ← v.opt "ChecksumMode" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let key ← v.req "Key" + let requestPayer ← v.opt "RequestPayer" + let versionId ← v.opt "VersionId" + return { annotationName, bucket, checksumMode, expectedBucketOwner, key, requestPayer, versionId } + +/-- A collection of parts associated with a multipart upload. -/ +structure GetObjectAttributesParts where + /-- Indicates whether the returned list of parts is truncated. -/ + isTruncated : Option Bool := none + /-- The maximum number of parts allowed in the response. -/ + maxParts : Option Int := none + /-- When a list is truncated, this element specifies the last part in the list, as well as the value to use for the PartNumberMarker request parameter in a subsequent request. -/ + nextPartNumberMarker : Option String := none + /-- The marker for the current part. -/ + partNumberMarker : Option String := none + /-- A container for elements related to a particular part. -/ + parts : Option (List ObjectPart) := none + /-- The total number of parts. -/ + totalPartsCount : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetObjectAttributesParts where + schema := .struct "GetObjectAttributesParts" [({ name := "IsTruncated" }, .bool), + ({ name := "MaxParts" }, .int), + ({ name := "NextPartNumberMarker" }, .string), + ({ name := "PartNumberMarker" }, .string), + ({ name := "Parts", xmlName := some "Part", flattened := true }, (.list (Shape.schema ObjectPart) "member")), + ({ name := "TotalPartsCount", xmlName := some "PartsCount" }, .int)] + toValue x := record [putOpt "IsTruncated" x.isTruncated, putOpt "MaxParts" x.maxParts, putOpt "NextPartNumberMarker" x.nextPartNumberMarker, putOpt "PartNumberMarker" x.partNumberMarker, putOpt "Parts" x.parts, putOpt "TotalPartsCount" x.totalPartsCount] + ofValue v := do + let isTruncated ← v.opt "IsTruncated" + let maxParts ← v.opt "MaxParts" + let nextPartNumberMarker ← v.opt "NextPartNumberMarker" + let partNumberMarker ← v.opt "PartNumberMarker" + let parts ← v.opt "Parts" + let totalPartsCount ← v.opt "TotalPartsCount" + return { isTruncated, maxParts, nextPartNumberMarker, partNumberMarker, parts, totalPartsCount } + +structure GetObjectAttributesRequest where + /-- The name of the bucket that contains the object. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The object key. -/ + key : String + /-- Sets the maximum number of parts to return. -/ + maxParts : Option Int := none + /-- Specifies the fields at the root level that you want returned in the response. -/ + objectAttributes : (List ObjectAttributes) + /-- Specifies the part after which listing should begin. -/ + partNumberMarker : Option String := none + requestPayer : Option RequestPayer := none + /-- Specifies the algorithm to use when encrypting the object (for example, AES256). -/ + sseCustomerAlgorithm : Option String := none + /-- Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. -/ + sseCustomerKey : Option String := none + /-- Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. -/ + sseCustomerKeyMD5 : Option String := none + /-- The version ID used to reference a specific version of the object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetObjectAttributesRequest where + schema := .struct "GetObjectAttributesRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "MaxParts", location := .header "x-amz-max-parts" }, .int), + ({ name := "ObjectAttributes", required := true, location := .header "x-amz-object-attributes" }, (.list (Shape.schema ObjectAttributes) "member")), + ({ name := "PartNumberMarker", location := .header "x-amz-part-number-marker" }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "SSECustomerAlgorithm", location := .header "x-amz-server-side-encryption-customer-algorithm" }, .string), + ({ name := "SSECustomerKey", location := .header "x-amz-server-side-encryption-customer-key" }, .string), + ({ name := "SSECustomerKeyMD5", location := .header "x-amz-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "VersionId", location := .query "versionId" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Key" x.key, putOpt "MaxParts" x.maxParts, put "ObjectAttributes" x.objectAttributes, putOpt "PartNumberMarker" x.partNumberMarker, putOpt "RequestPayer" x.requestPayer, putOpt "SSECustomerAlgorithm" x.sseCustomerAlgorithm, putOpt "SSECustomerKey" x.sseCustomerKey, putOpt "SSECustomerKeyMD5" x.sseCustomerKeyMD5, putOpt "VersionId" x.versionId] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let key ← v.req "Key" + let maxParts ← v.opt "MaxParts" + let objectAttributes ← v.req "ObjectAttributes" + let partNumberMarker ← v.opt "PartNumberMarker" + let requestPayer ← v.opt "RequestPayer" + let sseCustomerAlgorithm ← v.opt "SSECustomerAlgorithm" + let sseCustomerKey ← v.opt "SSECustomerKey" + let sseCustomerKeyMD5 ← v.opt "SSECustomerKeyMD5" + let versionId ← v.opt "VersionId" + return { bucket, expectedBucketOwner, key, maxParts, objectAttributes, partNumberMarker, requestPayer, sseCustomerAlgorithm, sseCustomerKey, sseCustomerKeyMD5, versionId } + +structure GetObjectLegalHoldRequest where + /-- The bucket name containing the object whose legal hold status you want to retrieve. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The key name for the object whose legal hold status you want to retrieve. -/ + key : String + requestPayer : Option RequestPayer := none + /-- The version ID of the object whose legal hold status you want to retrieve. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetObjectLegalHoldRequest where + schema := .struct "GetObjectLegalHoldRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "VersionId", location := .query "versionId" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Key" x.key, putOpt "RequestPayer" x.requestPayer, putOpt "VersionId" x.versionId] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let key ← v.req "Key" + let requestPayer ← v.opt "RequestPayer" + let versionId ← v.opt "VersionId" + return { bucket, expectedBucketOwner, key, requestPayer, versionId } + +structure GetObjectOutput where + /-- Indicates that a range of bytes was specified in the request. -/ + acceptRanges : Option String := none + /-- Object data. -/ + body : Option Blob := none + /-- Indicates whether the object uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS). -/ + bucketKeyEnabled : Option Bool := none + /-- Specifies caching behavior along the request/reply chain. -/ + cacheControl : Option String := none + /-- The Base64 encoded, 32-bit CRC32 checksum of the object. -/ + checksumCRC32 : Option String := none + /-- The Base64 encoded, 32-bit CRC32C checksum of the object. -/ + checksumCRC32C : Option String := none + /-- The Base64 encoded, 64-bit CRC64NVME checksum of the object. -/ + checksumCRC64NVME : Option String := none + /-- The Base64 encoded, 128-bit MD5 digest of the object. -/ + checksumMD5 : Option String := none + /-- The Base64 encoded, 160-bit SHA1 digest of the object. -/ + checksumSHA1 : Option String := none + /-- The Base64 encoded, 256-bit SHA256 digest of the object. -/ + checksumSHA256 : Option String := none + /-- The Base64 encoded, 512-bit SHA512 digest of the object. -/ + checksumSHA512 : Option String := none + /-- The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. -/ + checksumType : Option ChecksumType := none + /-- The Base64 encoded, 128-bit XXHASH128 checksum of the object. -/ + checksumXXHASH128 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH3 checksum of the object. -/ + checksumXXHASH3 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH64 checksum of the object. -/ + checksumXXHASH64 : Option String := none + /-- Specifies presentational information for the object. -/ + contentDisposition : Option String := none + /-- Indicates what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. -/ + contentEncoding : Option String := none + /-- The language the content is in. -/ + contentLanguage : Option String := none + /-- Size of the body in bytes. -/ + contentLength : Option Int := none + /-- The portion of the object returned in the response. -/ + contentRange : Option String := none + /-- A standard MIME type describing the format of the object data. -/ + contentType : Option String := none + /-- Indicates whether the object retrieved was (true) or was not (false) a Delete Marker. -/ + deleteMarker : Option Bool := none + /-- An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL. -/ + eTag : Option String := none + /-- If the object expiration is configured (see PutBucketLifecycleConfiguration ), the response includes this header. -/ + expiration : Option String := none + /-- The date and time at which the object is no longer cacheable. -/ + expires : Option String := none + /-- Date and time when the object was last modified. -/ + lastModified : Option Timestamp := none + /-- A map of metadata to store with the object in S3. -/ + metadata : Option (Dict String String) := none + /-- This is set to the number of metadata entries not returned in the headers that are prefixed with x-amz-meta- . -/ + missingMeta : Option Int := none + /-- The event hold status for this object. -/ + objectLockEventHold : Option ObjectLockEventHold := none + /-- The event hold duration in days for this object. -/ + objectLockEventHoldDurationDays : Option Int := none + /-- The event hold duration in years for this object. -/ + objectLockEventHoldDurationYears : Option Int := none + /-- Indicates whether this object has an active legal hold. -/ + objectLockLegalHoldStatus : Option ObjectLockLegalHoldStatus := none + /-- The Object Lock mode that's currently in place for this object. -/ + objectLockMode : Option ObjectLockMode := none + /-- The date and time when this object's Object Lock will expire. -/ + objectLockRetainUntilDate : Option Timestamp := none + /-- The count of parts this object has. -/ + partsCount : Option Int := none + /-- Amazon S3 can return this if your request involves a bucket that is either a source or destination in a replication rule. -/ + replicationStatus : Option ReplicationStatus := none + requestCharged : Option RequestCharged := none + /-- Provides information about object restoration action and expiration time of the restored object copy. -/ + restore : Option String := none + /-- If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used. -/ + sseCustomerAlgorithm : Option String := none + /-- If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key. -/ + sseCustomerKeyMD5 : Option String := none + /-- If present, indicates the ID of the KMS key that was used for object encryption. -/ + ssekmsKeyId : Option String := none + /-- The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx. -/ + serverSideEncryption : Option ServerSideEncryption := none + /-- Provides storage class information of the object. -/ + storageClass : Option StorageClass := none + /-- The number of tags, if any, on the object, when you have the relevant permission to read object tags. -/ + tagCount : Option Int := none + /-- Version ID of the object. -/ + versionId : Option String := none + /-- If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. -/ + websiteRedirectLocation : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetObjectOutput where + schema := .struct "GetObjectOutput" [({ name := "AcceptRanges", location := .header "accept-ranges" }, .string), + ({ name := "Body", location := .payload }, .blob), + ({ name := "BucketKeyEnabled", location := .header "x-amz-server-side-encryption-bucket-key-enabled" }, .bool), + ({ name := "CacheControl", location := .header "Cache-Control" }, .string), + ({ name := "ChecksumCRC32", location := .header "x-amz-checksum-crc32" }, .string), + ({ name := "ChecksumCRC32C", location := .header "x-amz-checksum-crc32c" }, .string), + ({ name := "ChecksumCRC64NVME", location := .header "x-amz-checksum-crc64nvme" }, .string), + ({ name := "ChecksumMD5", location := .header "x-amz-checksum-md5" }, .string), + ({ name := "ChecksumSHA1", location := .header "x-amz-checksum-sha1" }, .string), + ({ name := "ChecksumSHA256", location := .header "x-amz-checksum-sha256" }, .string), + ({ name := "ChecksumSHA512", location := .header "x-amz-checksum-sha512" }, .string), + ({ name := "ChecksumType", location := .header "x-amz-checksum-type" }, (Shape.schema ChecksumType)), + ({ name := "ChecksumXXHASH128", location := .header "x-amz-checksum-xxhash128" }, .string), + ({ name := "ChecksumXXHASH3", location := .header "x-amz-checksum-xxhash3" }, .string), + ({ name := "ChecksumXXHASH64", location := .header "x-amz-checksum-xxhash64" }, .string), + ({ name := "ContentDisposition", location := .header "Content-Disposition" }, .string), + ({ name := "ContentEncoding", location := .header "Content-Encoding" }, .string), + ({ name := "ContentLanguage", location := .header "Content-Language" }, .string), + ({ name := "ContentLength", location := .header "Content-Length" }, .int), + ({ name := "ContentRange", location := .header "Content-Range" }, .string), + ({ name := "ContentType", location := .header "Content-Type" }, .string), + ({ name := "DeleteMarker", location := .header "x-amz-delete-marker" }, .bool), + ({ name := "ETag", location := .header "ETag" }, .string), + ({ name := "Expiration", location := .header "x-amz-expiration" }, .string), + ({ name := "Expires", location := .header "Expires" }, .string), + ({ name := "LastModified", location := .header "Last-Modified" }, (.time none)), + ({ name := "Metadata", location := .prefixHeaders "x-amz-meta-" }, (.map .string .string "key" "value")), + ({ name := "MissingMeta", location := .header "x-amz-missing-meta" }, .int), + ({ name := "ObjectLockEventHold", location := .header "x-amz-object-lock-event-hold" }, (Shape.schema ObjectLockEventHold)), + ({ name := "ObjectLockEventHoldDurationDays", location := .header "x-amz-object-lock-event-hold-duration-days" }, .int), + ({ name := "ObjectLockEventHoldDurationYears", location := .header "x-amz-object-lock-event-hold-duration-years" }, .int), + ({ name := "ObjectLockLegalHoldStatus", location := .header "x-amz-object-lock-legal-hold" }, (Shape.schema ObjectLockLegalHoldStatus)), + ({ name := "ObjectLockMode", location := .header "x-amz-object-lock-mode" }, (Shape.schema ObjectLockMode)), + ({ name := "ObjectLockRetainUntilDate", location := .header "x-amz-object-lock-retain-until-date" }, (.time (some .dateTime))), + ({ name := "PartsCount", location := .header "x-amz-mp-parts-count" }, .int), + ({ name := "ReplicationStatus", location := .header "x-amz-replication-status" }, (Shape.schema ReplicationStatus)), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged)), + ({ name := "Restore", location := .header "x-amz-restore" }, .string), + ({ name := "SSECustomerAlgorithm", location := .header "x-amz-server-side-encryption-customer-algorithm" }, .string), + ({ name := "SSECustomerKeyMD5", location := .header "x-amz-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "SSEKMSKeyId", location := .header "x-amz-server-side-encryption-aws-kms-key-id" }, .string), + ({ name := "ServerSideEncryption", location := .header "x-amz-server-side-encryption" }, (Shape.schema ServerSideEncryption)), + ({ name := "StorageClass", location := .header "x-amz-storage-class" }, (Shape.schema StorageClass)), + ({ name := "TagCount", location := .header "x-amz-tagging-count" }, .int), + ({ name := "VersionId", location := .header "x-amz-version-id" }, .string), + ({ name := "WebsiteRedirectLocation", location := .header "x-amz-website-redirect-location" }, .string)] + toValue x := record [putOpt "AcceptRanges" x.acceptRanges, putOpt "Body" x.body, putOpt "BucketKeyEnabled" x.bucketKeyEnabled, putOpt "CacheControl" x.cacheControl, putOpt "ChecksumCRC32" x.checksumCRC32, putOpt "ChecksumCRC32C" x.checksumCRC32C, putOpt "ChecksumCRC64NVME" x.checksumCRC64NVME, putOpt "ChecksumMD5" x.checksumMD5, putOpt "ChecksumSHA1" x.checksumSHA1, putOpt "ChecksumSHA256" x.checksumSHA256, putOpt "ChecksumSHA512" x.checksumSHA512, putOpt "ChecksumType" x.checksumType, putOpt "ChecksumXXHASH128" x.checksumXXHASH128, putOpt "ChecksumXXHASH3" x.checksumXXHASH3, putOpt "ChecksumXXHASH64" x.checksumXXHASH64, putOpt "ContentDisposition" x.contentDisposition, putOpt "ContentEncoding" x.contentEncoding, putOpt "ContentLanguage" x.contentLanguage, putOpt "ContentLength" x.contentLength, putOpt "ContentRange" x.contentRange, putOpt "ContentType" x.contentType, putOpt "DeleteMarker" x.deleteMarker, putOpt "ETag" x.eTag, putOpt "Expiration" x.expiration, putOpt "Expires" x.expires, putOpt "LastModified" x.lastModified, putOpt "Metadata" x.metadata, putOpt "MissingMeta" x.missingMeta, putOpt "ObjectLockEventHold" x.objectLockEventHold, putOpt "ObjectLockEventHoldDurationDays" x.objectLockEventHoldDurationDays, putOpt "ObjectLockEventHoldDurationYears" x.objectLockEventHoldDurationYears, putOpt "ObjectLockLegalHoldStatus" x.objectLockLegalHoldStatus, putOpt "ObjectLockMode" x.objectLockMode, putOpt "ObjectLockRetainUntilDate" x.objectLockRetainUntilDate, putOpt "PartsCount" x.partsCount, putOpt "ReplicationStatus" x.replicationStatus, putOpt "RequestCharged" x.requestCharged, putOpt "Restore" x.restore, putOpt "SSECustomerAlgorithm" x.sseCustomerAlgorithm, putOpt "SSECustomerKeyMD5" x.sseCustomerKeyMD5, putOpt "SSEKMSKeyId" x.ssekmsKeyId, putOpt "ServerSideEncryption" x.serverSideEncryption, putOpt "StorageClass" x.storageClass, putOpt "TagCount" x.tagCount, putOpt "VersionId" x.versionId, putOpt "WebsiteRedirectLocation" x.websiteRedirectLocation] + ofValue v := do + let acceptRanges ← v.opt "AcceptRanges" + let body ← v.opt "Body" + let bucketKeyEnabled ← v.opt "BucketKeyEnabled" + let cacheControl ← v.opt "CacheControl" + let checksumCRC32 ← v.opt "ChecksumCRC32" + let checksumCRC32C ← v.opt "ChecksumCRC32C" + let checksumCRC64NVME ← v.opt "ChecksumCRC64NVME" + let checksumMD5 ← v.opt "ChecksumMD5" + let checksumSHA1 ← v.opt "ChecksumSHA1" + let checksumSHA256 ← v.opt "ChecksumSHA256" + let checksumSHA512 ← v.opt "ChecksumSHA512" + let checksumType ← v.opt "ChecksumType" + let checksumXXHASH128 ← v.opt "ChecksumXXHASH128" + let checksumXXHASH3 ← v.opt "ChecksumXXHASH3" + let checksumXXHASH64 ← v.opt "ChecksumXXHASH64" + let contentDisposition ← v.opt "ContentDisposition" + let contentEncoding ← v.opt "ContentEncoding" + let contentLanguage ← v.opt "ContentLanguage" + let contentLength ← v.opt "ContentLength" + let contentRange ← v.opt "ContentRange" + let contentType ← v.opt "ContentType" + let deleteMarker ← v.opt "DeleteMarker" + let eTag ← v.opt "ETag" + let expiration ← v.opt "Expiration" + let expires ← v.opt "Expires" + let lastModified ← v.opt "LastModified" + let metadata ← v.opt "Metadata" + let missingMeta ← v.opt "MissingMeta" + let objectLockEventHold ← v.opt "ObjectLockEventHold" + let objectLockEventHoldDurationDays ← v.opt "ObjectLockEventHoldDurationDays" + let objectLockEventHoldDurationYears ← v.opt "ObjectLockEventHoldDurationYears" + let objectLockLegalHoldStatus ← v.opt "ObjectLockLegalHoldStatus" + let objectLockMode ← v.opt "ObjectLockMode" + let objectLockRetainUntilDate ← v.opt "ObjectLockRetainUntilDate" + let partsCount ← v.opt "PartsCount" + let replicationStatus ← v.opt "ReplicationStatus" + let requestCharged ← v.opt "RequestCharged" + let restore ← v.opt "Restore" + let sseCustomerAlgorithm ← v.opt "SSECustomerAlgorithm" + let sseCustomerKeyMD5 ← v.opt "SSECustomerKeyMD5" + let ssekmsKeyId ← v.opt "SSEKMSKeyId" + let serverSideEncryption ← v.opt "ServerSideEncryption" + let storageClass ← v.opt "StorageClass" + let tagCount ← v.opt "TagCount" + let versionId ← v.opt "VersionId" + let websiteRedirectLocation ← v.opt "WebsiteRedirectLocation" + return { acceptRanges, body, bucketKeyEnabled, cacheControl, checksumCRC32, checksumCRC32C, checksumCRC64NVME, checksumMD5, checksumSHA1, checksumSHA256, checksumSHA512, checksumType, checksumXXHASH128, checksumXXHASH3, checksumXXHASH64, contentDisposition, contentEncoding, contentLanguage, contentLength, contentRange, contentType, deleteMarker, eTag, expiration, expires, lastModified, metadata, missingMeta, objectLockEventHold, objectLockEventHoldDurationDays, objectLockEventHoldDurationYears, objectLockLegalHoldStatus, objectLockMode, objectLockRetainUntilDate, partsCount, replicationStatus, requestCharged, restore, sseCustomerAlgorithm, sseCustomerKeyMD5, ssekmsKeyId, serverSideEncryption, storageClass, tagCount, versionId, websiteRedirectLocation } + +structure GetObjectRequest where + /-- The bucket name containing the object. -/ + bucket : String + /-- To retrieve the checksum, this mode must be enabled. -/ + checksumMode : Option ChecksumMode := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- Return the object only if its entity tag (ETag) is the same as the one specified in this header; otherwise, return a 412 Precondition Failed error. -/ + ifMatch : Option String := none + /-- Return the object only if it has been modified since the specified time; otherwise, return a 304 Not Modified error. -/ + ifModifiedSince : Option Timestamp := none + /-- Return the object only if its entity tag (ETag) is different from the one specified in this header; otherwise, return a 304 Not Modified error. -/ + ifNoneMatch : Option String := none + /-- Return the object only if it has not been modified since the specified time; otherwise, return a 412 Precondition Failed error. -/ + ifUnmodifiedSince : Option Timestamp := none + /-- Key of the object to get. -/ + key : String + /-- Part number of the object being read. -/ + partNumber : Option Int := none + /-- Downloads the specified byte range of an object. -/ + range : Option String := none + requestPayer : Option RequestPayer := none + /-- Sets the Cache-Control header of the response. -/ + responseCacheControl : Option String := none + /-- Sets the Content-Disposition header of the response. -/ + responseContentDisposition : Option String := none + /-- Sets the Content-Encoding header of the response. -/ + responseContentEncoding : Option String := none + /-- Sets the Content-Language header of the response. -/ + responseContentLanguage : Option String := none + /-- Sets the Content-Type header of the response. -/ + responseContentType : Option String := none + /-- Sets the Expires header of the response. -/ + responseExpires : Option Timestamp := none + /-- Specifies the algorithm to use when decrypting the object (for example, AES256 ). -/ + sseCustomerAlgorithm : Option String := none + /-- Specifies the customer-provided encryption key that you originally provided for Amazon S3 to encrypt the data before storing it. -/ + sseCustomerKey : Option String := none + /-- Specifies the 128-bit MD5 digest of the customer-provided encryption key according to RFC 1321. -/ + sseCustomerKeyMD5 : Option String := none + /-- Version ID used to reference a specific version of the object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetObjectRequest where + schema := .struct "GetObjectRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumMode", location := .header "x-amz-checksum-mode" }, (Shape.schema ChecksumMode)), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "IfMatch", location := .header "If-Match" }, .string), + ({ name := "IfModifiedSince", location := .header "If-Modified-Since" }, (.time none)), + ({ name := "IfNoneMatch", location := .header "If-None-Match" }, .string), + ({ name := "IfUnmodifiedSince", location := .header "If-Unmodified-Since" }, (.time none)), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "PartNumber", location := .query "partNumber" }, .int), + ({ name := "Range", location := .header "Range" }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "ResponseCacheControl", location := .query "response-cache-control" }, .string), + ({ name := "ResponseContentDisposition", location := .query "response-content-disposition" }, .string), + ({ name := "ResponseContentEncoding", location := .query "response-content-encoding" }, .string), + ({ name := "ResponseContentLanguage", location := .query "response-content-language" }, .string), + ({ name := "ResponseContentType", location := .query "response-content-type" }, .string), + ({ name := "ResponseExpires", location := .query "response-expires" }, (.time (some .httpDate))), + ({ name := "SSECustomerAlgorithm", location := .header "x-amz-server-side-encryption-customer-algorithm" }, .string), + ({ name := "SSECustomerKey", location := .header "x-amz-server-side-encryption-customer-key" }, .string), + ({ name := "SSECustomerKeyMD5", location := .header "x-amz-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "VersionId", location := .query "versionId" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumMode" x.checksumMode, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, putOpt "IfMatch" x.ifMatch, putOpt "IfModifiedSince" x.ifModifiedSince, putOpt "IfNoneMatch" x.ifNoneMatch, putOpt "IfUnmodifiedSince" x.ifUnmodifiedSince, put "Key" x.key, putOpt "PartNumber" x.partNumber, putOpt "Range" x.range, putOpt "RequestPayer" x.requestPayer, putOpt "ResponseCacheControl" x.responseCacheControl, putOpt "ResponseContentDisposition" x.responseContentDisposition, putOpt "ResponseContentEncoding" x.responseContentEncoding, putOpt "ResponseContentLanguage" x.responseContentLanguage, putOpt "ResponseContentType" x.responseContentType, putOpt "ResponseExpires" x.responseExpires, putOpt "SSECustomerAlgorithm" x.sseCustomerAlgorithm, putOpt "SSECustomerKey" x.sseCustomerKey, putOpt "SSECustomerKeyMD5" x.sseCustomerKeyMD5, putOpt "VersionId" x.versionId] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumMode ← v.opt "ChecksumMode" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let ifMatch ← v.opt "IfMatch" + let ifModifiedSince ← v.opt "IfModifiedSince" + let ifNoneMatch ← v.opt "IfNoneMatch" + let ifUnmodifiedSince ← v.opt "IfUnmodifiedSince" + let key ← v.req "Key" + let partNumber ← v.opt "PartNumber" + let range ← v.opt "Range" + let requestPayer ← v.opt "RequestPayer" + let responseCacheControl ← v.opt "ResponseCacheControl" + let responseContentDisposition ← v.opt "ResponseContentDisposition" + let responseContentEncoding ← v.opt "ResponseContentEncoding" + let responseContentLanguage ← v.opt "ResponseContentLanguage" + let responseContentType ← v.opt "ResponseContentType" + let responseExpires ← v.opt "ResponseExpires" + let sseCustomerAlgorithm ← v.opt "SSECustomerAlgorithm" + let sseCustomerKey ← v.opt "SSECustomerKey" + let sseCustomerKeyMD5 ← v.opt "SSECustomerKeyMD5" + let versionId ← v.opt "VersionId" + return { bucket, checksumMode, expectedBucketOwner, ifMatch, ifModifiedSince, ifNoneMatch, ifUnmodifiedSince, key, partNumber, range, requestPayer, responseCacheControl, responseContentDisposition, responseContentEncoding, responseContentLanguage, responseContentType, responseExpires, sseCustomerAlgorithm, sseCustomerKey, sseCustomerKeyMD5, versionId } + +structure GetObjectRetentionRequest where + /-- The bucket name containing the object whose retention settings you want to retrieve. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The key name for the object whose retention settings you want to retrieve. -/ + key : String + requestPayer : Option RequestPayer := none + /-- The version ID for the object whose retention settings you want to retrieve. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetObjectRetentionRequest where + schema := .struct "GetObjectRetentionRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "VersionId", location := .query "versionId" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Key" x.key, putOpt "RequestPayer" x.requestPayer, putOpt "VersionId" x.versionId] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let key ← v.req "Key" + let requestPayer ← v.opt "RequestPayer" + let versionId ← v.opt "VersionId" + return { bucket, expectedBucketOwner, key, requestPayer, versionId } + +structure GetObjectTaggingOutput where + /-- Contains the tag set. -/ + tagSet : (List Tag) + /-- The versionId of the object for which you got the tagging information. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetObjectTaggingOutput where + schema := .struct "Tagging" [({ name := "TagSet", required := true }, (.list (Shape.schema Tag) "Tag")), + ({ name := "VersionId", location := .header "x-amz-version-id" }, .string)] + toValue x := record [put "TagSet" x.tagSet, putOpt "VersionId" x.versionId] + ofValue v := do + let tagSet ← v.req "TagSet" + let versionId ← v.opt "VersionId" + return { tagSet, versionId } + +structure GetObjectTaggingRequest where + /-- The bucket name containing the object for which to get the tagging information. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- Object key for which to get the tagging information. -/ + key : String + requestPayer : Option RequestPayer := none + /-- The versionId of the object for which to get the tagging information. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetObjectTaggingRequest where + schema := .struct "GetObjectTaggingRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "VersionId", location := .query "versionId" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Key" x.key, putOpt "RequestPayer" x.requestPayer, putOpt "VersionId" x.versionId] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let key ← v.req "Key" + let requestPayer ← v.opt "RequestPayer" + let versionId ← v.opt "VersionId" + return { bucket, expectedBucketOwner, key, requestPayer, versionId } + +structure GetObjectTorrentOutput where + /-- A Bencoded dictionary as defined by the BitTorrent specification. -/ + body : Option Blob := none + requestCharged : Option RequestCharged := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetObjectTorrentOutput where + schema := .struct "GetObjectTorrentOutput" [({ name := "Body", location := .payload }, .blob), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged))] + toValue x := record [putOpt "Body" x.body, putOpt "RequestCharged" x.requestCharged] + ofValue v := do + let body ← v.opt "Body" + let requestCharged ← v.opt "RequestCharged" + return { body, requestCharged } + +structure GetObjectTorrentRequest where + /-- The name of the bucket containing the object for which to get the torrent files. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The object key for which to get the information. -/ + key : String + requestPayer : Option RequestPayer := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetObjectTorrentRequest where + schema := .struct "GetObjectTorrentRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer))] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Key" x.key, putOpt "RequestPayer" x.requestPayer] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let key ← v.req "Key" + let requestPayer ← v.opt "RequestPayer" + return { bucket, expectedBucketOwner, key, requestPayer } + +structure GetPublicAccessBlockOutput where + /-- The PublicAccessBlock configuration currently in effect for this Amazon S3 bucket. -/ + publicAccessBlockConfiguration : Option PublicAccessBlockConfiguration := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetPublicAccessBlockOutput where + schema := .struct "GetPublicAccessBlockOutput" [({ name := "PublicAccessBlockConfiguration", location := .payload }, (Shape.schema PublicAccessBlockConfiguration))] + toValue x := record [putOpt "PublicAccessBlockConfiguration" x.publicAccessBlockConfiguration] + ofValue v := do + let publicAccessBlockConfiguration ← v.opt "PublicAccessBlockConfiguration" + return { publicAccessBlockConfiguration } + +/-- Container for S3 Glacier job parameters. -/ +structure GlacierJobParameters where + /-- Retrieval tier at which the restore will be processed. -/ + tier : Tier +deriving DecidableEq, Repr, Inhabited + +instance : Shape GlacierJobParameters where + schema := .struct "GlacierJobParameters" [({ name := "Tier", required := true }, (Shape.schema Tier))] + toValue x := record [put "Tier" x.tier] + ofValue v := do + let tier ← v.req "Tier" + return { tier } + +/-- Container for the person being granted permissions. -/ +structure Grantee where + displayName : Option String := none + emailAddress : Option String := none + /-- The canonical user ID of the grantee. -/ + id : Option String := none + /-- Type of grantee. -/ + type : Type_ + /-- URI of the grantee group. -/ + uri : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Grantee where + schema := .struct "Grantee" [({ name := "DisplayName" }, .string), + ({ name := "EmailAddress" }, .string), + ({ name := "ID" }, .string), + ({ name := "Type", required := true, xmlName := some "xsi:type", asAttribute := true }, (Shape.schema Type_)), + ({ name := "URI" }, .string)] + toValue x := record [putOpt "DisplayName" x.displayName, putOpt "EmailAddress" x.emailAddress, putOpt "ID" x.id, put "Type" x.type, putOpt "URI" x.uri] + ofValue v := do + let displayName ← v.opt "DisplayName" + let emailAddress ← v.opt "EmailAddress" + let id ← v.opt "ID" + let type ← v.req "Type" + let uri ← v.opt "URI" + return { displayName, emailAddress, id, type, uri } + +structure HeadBucketOutput where + /-- Indicates whether the bucket name used in the request is an access point alias. -/ + accessPointAlias : Option Bool := none + /-- The Amazon Resource Name (ARN) of the S3 bucket. -/ + bucketArn : Option String := none + /-- The name of the location where the bucket will be created. -/ + bucketLocationName : Option String := none + /-- The type of location where the bucket is created. -/ + bucketLocationType : Option LocationType := none + /-- The Region that the bucket is located. -/ + bucketRegion : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape HeadBucketOutput where + schema := .struct "HeadBucketOutput" [({ name := "AccessPointAlias", location := .header "x-amz-access-point-alias" }, .bool), + ({ name := "BucketArn", location := .header "x-amz-bucket-arn" }, .string), + ({ name := "BucketLocationName", location := .header "x-amz-bucket-location-name" }, .string), + ({ name := "BucketLocationType", location := .header "x-amz-bucket-location-type" }, (Shape.schema LocationType)), + ({ name := "BucketRegion", location := .header "x-amz-bucket-region" }, .string)] + toValue x := record [putOpt "AccessPointAlias" x.accessPointAlias, putOpt "BucketArn" x.bucketArn, putOpt "BucketLocationName" x.bucketLocationName, putOpt "BucketLocationType" x.bucketLocationType, putOpt "BucketRegion" x.bucketRegion] + ofValue v := do + let accessPointAlias ← v.opt "AccessPointAlias" + let bucketArn ← v.opt "BucketArn" + let bucketLocationName ← v.opt "BucketLocationName" + let bucketLocationType ← v.opt "BucketLocationType" + let bucketRegion ← v.opt "BucketRegion" + return { accessPointAlias, bucketArn, bucketLocationName, bucketLocationType, bucketRegion } + +structure HeadObjectOutput where + /-- Indicates that a range of bytes was specified. -/ + acceptRanges : Option String := none + /-- The archive state of the head object. -/ + archiveStatus : Option ArchiveStatus := none + /-- Indicates whether the object uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS). -/ + bucketKeyEnabled : Option Bool := none + /-- Specifies caching behavior along the request/reply chain. -/ + cacheControl : Option String := none + /-- The Base64 encoded, 32-bit CRC32 checksum of the object. -/ + checksumCRC32 : Option String := none + /-- The Base64 encoded, 32-bit CRC32C checksum of the object. -/ + checksumCRC32C : Option String := none + /-- The Base64 encoded, 64-bit CRC64NVME checksum of the object. -/ + checksumCRC64NVME : Option String := none + /-- The Base64 encoded, 128-bit MD5 digest of the object. -/ + checksumMD5 : Option String := none + /-- The Base64 encoded, 160-bit SHA1 digest of the object. -/ + checksumSHA1 : Option String := none + /-- The Base64 encoded, 256-bit SHA256 digest of the object. -/ + checksumSHA256 : Option String := none + /-- The Base64 encoded, 512-bit SHA512 digest of the object. -/ + checksumSHA512 : Option String := none + /-- The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. -/ + checksumType : Option ChecksumType := none + /-- The Base64 encoded, 128-bit XXHASH128 checksum of the object. -/ + checksumXXHASH128 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH3 checksum of the object. -/ + checksumXXHASH3 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH64 checksum of the object. -/ + checksumXXHASH64 : Option String := none + /-- Specifies presentational information for the object. -/ + contentDisposition : Option String := none + /-- Indicates what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. -/ + contentEncoding : Option String := none + /-- The language the content is in. -/ + contentLanguage : Option String := none + /-- Size of the body in bytes. -/ + contentLength : Option Int := none + /-- The portion of the object returned in the response for a GET request. -/ + contentRange : Option String := none + /-- A standard MIME type describing the format of the object data. -/ + contentType : Option String := none + /-- Specifies whether the object retrieved was (true) or was not (false) a Delete Marker. -/ + deleteMarker : Option Bool := none + /-- An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL. -/ + eTag : Option String := none + /-- If the object expiration is configured (see PutBucketLifecycleConfiguration ), the response includes this header. -/ + expiration : Option String := none + /-- The date and time at which the object is no longer cacheable. -/ + expires : Option String := none + /-- Date and time when the object was last modified. -/ + lastModified : Option Timestamp := none + /-- A map of metadata to store with the object in S3. -/ + metadata : Option (Dict String String) := none + /-- This is set to the number of metadata entries not returned in x-amz-meta headers. -/ + missingMeta : Option Int := none + /-- The event hold status for this object. -/ + objectLockEventHold : Option ObjectLockEventHold := none + /-- The event hold duration in days for this object. -/ + objectLockEventHoldDurationDays : Option Int := none + /-- The event hold duration in years for this object. -/ + objectLockEventHoldDurationYears : Option Int := none + /-- Specifies whether a legal hold is in effect for this object. -/ + objectLockLegalHoldStatus : Option ObjectLockLegalHoldStatus := none + /-- The Object Lock mode, if any, that's in effect for this object. -/ + objectLockMode : Option ObjectLockMode := none + /-- The date and time when the Object Lock retention period expires. -/ + objectLockRetainUntilDate : Option Timestamp := none + /-- The count of parts this object has. -/ + partsCount : Option Int := none + /-- Amazon S3 can return this header if your request involves a bucket that is either a source or a destination in a replication rule. -/ + replicationStatus : Option ReplicationStatus := none + requestCharged : Option RequestCharged := none + /-- If the object is an archived object (an object whose storage class is GLACIER), the response includes this header if either the archive restoration is in progress (see RestoreObject or an archive copy is already restored. -/ + restore : Option String := none + /-- If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used. -/ + sseCustomerAlgorithm : Option String := none + /-- If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key. -/ + sseCustomerKeyMD5 : Option String := none + /-- If present, indicates the ID of the KMS key that was used for object encryption. -/ + ssekmsKeyId : Option String := none + /-- The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx. -/ + serverSideEncryption : Option ServerSideEncryption := none + /-- Provides storage class information of the object. -/ + storageClass : Option StorageClass := none + /-- The number of tags, if any, on the object, when you have the relevant permission to read object tags. -/ + tagCount : Option Int := none + /-- Version ID of the object. -/ + versionId : Option String := none + /-- If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. -/ + websiteRedirectLocation : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape HeadObjectOutput where + schema := .struct "HeadObjectOutput" [({ name := "AcceptRanges", location := .header "accept-ranges" }, .string), + ({ name := "ArchiveStatus", location := .header "x-amz-archive-status" }, (Shape.schema ArchiveStatus)), + ({ name := "BucketKeyEnabled", location := .header "x-amz-server-side-encryption-bucket-key-enabled" }, .bool), + ({ name := "CacheControl", location := .header "Cache-Control" }, .string), + ({ name := "ChecksumCRC32", location := .header "x-amz-checksum-crc32" }, .string), + ({ name := "ChecksumCRC32C", location := .header "x-amz-checksum-crc32c" }, .string), + ({ name := "ChecksumCRC64NVME", location := .header "x-amz-checksum-crc64nvme" }, .string), + ({ name := "ChecksumMD5", location := .header "x-amz-checksum-md5" }, .string), + ({ name := "ChecksumSHA1", location := .header "x-amz-checksum-sha1" }, .string), + ({ name := "ChecksumSHA256", location := .header "x-amz-checksum-sha256" }, .string), + ({ name := "ChecksumSHA512", location := .header "x-amz-checksum-sha512" }, .string), + ({ name := "ChecksumType", location := .header "x-amz-checksum-type" }, (Shape.schema ChecksumType)), + ({ name := "ChecksumXXHASH128", location := .header "x-amz-checksum-xxhash128" }, .string), + ({ name := "ChecksumXXHASH3", location := .header "x-amz-checksum-xxhash3" }, .string), + ({ name := "ChecksumXXHASH64", location := .header "x-amz-checksum-xxhash64" }, .string), + ({ name := "ContentDisposition", location := .header "Content-Disposition" }, .string), + ({ name := "ContentEncoding", location := .header "Content-Encoding" }, .string), + ({ name := "ContentLanguage", location := .header "Content-Language" }, .string), + ({ name := "ContentLength", location := .header "Content-Length" }, .int), + ({ name := "ContentRange", location := .header "Content-Range" }, .string), + ({ name := "ContentType", location := .header "Content-Type" }, .string), + ({ name := "DeleteMarker", location := .header "x-amz-delete-marker" }, .bool), + ({ name := "ETag", location := .header "ETag" }, .string), + ({ name := "Expiration", location := .header "x-amz-expiration" }, .string), + ({ name := "Expires", location := .header "Expires" }, .string), + ({ name := "LastModified", location := .header "Last-Modified" }, (.time none)), + ({ name := "Metadata", location := .prefixHeaders "x-amz-meta-" }, (.map .string .string "key" "value")), + ({ name := "MissingMeta", location := .header "x-amz-missing-meta" }, .int), + ({ name := "ObjectLockEventHold", location := .header "x-amz-object-lock-event-hold" }, (Shape.schema ObjectLockEventHold)), + ({ name := "ObjectLockEventHoldDurationDays", location := .header "x-amz-object-lock-event-hold-duration-days" }, .int), + ({ name := "ObjectLockEventHoldDurationYears", location := .header "x-amz-object-lock-event-hold-duration-years" }, .int), + ({ name := "ObjectLockLegalHoldStatus", location := .header "x-amz-object-lock-legal-hold" }, (Shape.schema ObjectLockLegalHoldStatus)), + ({ name := "ObjectLockMode", location := .header "x-amz-object-lock-mode" }, (Shape.schema ObjectLockMode)), + ({ name := "ObjectLockRetainUntilDate", location := .header "x-amz-object-lock-retain-until-date" }, (.time (some .dateTime))), + ({ name := "PartsCount", location := .header "x-amz-mp-parts-count" }, .int), + ({ name := "ReplicationStatus", location := .header "x-amz-replication-status" }, (Shape.schema ReplicationStatus)), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged)), + ({ name := "Restore", location := .header "x-amz-restore" }, .string), + ({ name := "SSECustomerAlgorithm", location := .header "x-amz-server-side-encryption-customer-algorithm" }, .string), + ({ name := "SSECustomerKeyMD5", location := .header "x-amz-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "SSEKMSKeyId", location := .header "x-amz-server-side-encryption-aws-kms-key-id" }, .string), + ({ name := "ServerSideEncryption", location := .header "x-amz-server-side-encryption" }, (Shape.schema ServerSideEncryption)), + ({ name := "StorageClass", location := .header "x-amz-storage-class" }, (Shape.schema StorageClass)), + ({ name := "TagCount", location := .header "x-amz-tagging-count" }, .int), + ({ name := "VersionId", location := .header "x-amz-version-id" }, .string), + ({ name := "WebsiteRedirectLocation", location := .header "x-amz-website-redirect-location" }, .string)] + toValue x := record [putOpt "AcceptRanges" x.acceptRanges, putOpt "ArchiveStatus" x.archiveStatus, putOpt "BucketKeyEnabled" x.bucketKeyEnabled, putOpt "CacheControl" x.cacheControl, putOpt "ChecksumCRC32" x.checksumCRC32, putOpt "ChecksumCRC32C" x.checksumCRC32C, putOpt "ChecksumCRC64NVME" x.checksumCRC64NVME, putOpt "ChecksumMD5" x.checksumMD5, putOpt "ChecksumSHA1" x.checksumSHA1, putOpt "ChecksumSHA256" x.checksumSHA256, putOpt "ChecksumSHA512" x.checksumSHA512, putOpt "ChecksumType" x.checksumType, putOpt "ChecksumXXHASH128" x.checksumXXHASH128, putOpt "ChecksumXXHASH3" x.checksumXXHASH3, putOpt "ChecksumXXHASH64" x.checksumXXHASH64, putOpt "ContentDisposition" x.contentDisposition, putOpt "ContentEncoding" x.contentEncoding, putOpt "ContentLanguage" x.contentLanguage, putOpt "ContentLength" x.contentLength, putOpt "ContentRange" x.contentRange, putOpt "ContentType" x.contentType, putOpt "DeleteMarker" x.deleteMarker, putOpt "ETag" x.eTag, putOpt "Expiration" x.expiration, putOpt "Expires" x.expires, putOpt "LastModified" x.lastModified, putOpt "Metadata" x.metadata, putOpt "MissingMeta" x.missingMeta, putOpt "ObjectLockEventHold" x.objectLockEventHold, putOpt "ObjectLockEventHoldDurationDays" x.objectLockEventHoldDurationDays, putOpt "ObjectLockEventHoldDurationYears" x.objectLockEventHoldDurationYears, putOpt "ObjectLockLegalHoldStatus" x.objectLockLegalHoldStatus, putOpt "ObjectLockMode" x.objectLockMode, putOpt "ObjectLockRetainUntilDate" x.objectLockRetainUntilDate, putOpt "PartsCount" x.partsCount, putOpt "ReplicationStatus" x.replicationStatus, putOpt "RequestCharged" x.requestCharged, putOpt "Restore" x.restore, putOpt "SSECustomerAlgorithm" x.sseCustomerAlgorithm, putOpt "SSECustomerKeyMD5" x.sseCustomerKeyMD5, putOpt "SSEKMSKeyId" x.ssekmsKeyId, putOpt "ServerSideEncryption" x.serverSideEncryption, putOpt "StorageClass" x.storageClass, putOpt "TagCount" x.tagCount, putOpt "VersionId" x.versionId, putOpt "WebsiteRedirectLocation" x.websiteRedirectLocation] + ofValue v := do + let acceptRanges ← v.opt "AcceptRanges" + let archiveStatus ← v.opt "ArchiveStatus" + let bucketKeyEnabled ← v.opt "BucketKeyEnabled" + let cacheControl ← v.opt "CacheControl" + let checksumCRC32 ← v.opt "ChecksumCRC32" + let checksumCRC32C ← v.opt "ChecksumCRC32C" + let checksumCRC64NVME ← v.opt "ChecksumCRC64NVME" + let checksumMD5 ← v.opt "ChecksumMD5" + let checksumSHA1 ← v.opt "ChecksumSHA1" + let checksumSHA256 ← v.opt "ChecksumSHA256" + let checksumSHA512 ← v.opt "ChecksumSHA512" + let checksumType ← v.opt "ChecksumType" + let checksumXXHASH128 ← v.opt "ChecksumXXHASH128" + let checksumXXHASH3 ← v.opt "ChecksumXXHASH3" + let checksumXXHASH64 ← v.opt "ChecksumXXHASH64" + let contentDisposition ← v.opt "ContentDisposition" + let contentEncoding ← v.opt "ContentEncoding" + let contentLanguage ← v.opt "ContentLanguage" + let contentLength ← v.opt "ContentLength" + let contentRange ← v.opt "ContentRange" + let contentType ← v.opt "ContentType" + let deleteMarker ← v.opt "DeleteMarker" + let eTag ← v.opt "ETag" + let expiration ← v.opt "Expiration" + let expires ← v.opt "Expires" + let lastModified ← v.opt "LastModified" + let metadata ← v.opt "Metadata" + let missingMeta ← v.opt "MissingMeta" + let objectLockEventHold ← v.opt "ObjectLockEventHold" + let objectLockEventHoldDurationDays ← v.opt "ObjectLockEventHoldDurationDays" + let objectLockEventHoldDurationYears ← v.opt "ObjectLockEventHoldDurationYears" + let objectLockLegalHoldStatus ← v.opt "ObjectLockLegalHoldStatus" + let objectLockMode ← v.opt "ObjectLockMode" + let objectLockRetainUntilDate ← v.opt "ObjectLockRetainUntilDate" + let partsCount ← v.opt "PartsCount" + let replicationStatus ← v.opt "ReplicationStatus" + let requestCharged ← v.opt "RequestCharged" + let restore ← v.opt "Restore" + let sseCustomerAlgorithm ← v.opt "SSECustomerAlgorithm" + let sseCustomerKeyMD5 ← v.opt "SSECustomerKeyMD5" + let ssekmsKeyId ← v.opt "SSEKMSKeyId" + let serverSideEncryption ← v.opt "ServerSideEncryption" + let storageClass ← v.opt "StorageClass" + let tagCount ← v.opt "TagCount" + let versionId ← v.opt "VersionId" + let websiteRedirectLocation ← v.opt "WebsiteRedirectLocation" + return { acceptRanges, archiveStatus, bucketKeyEnabled, cacheControl, checksumCRC32, checksumCRC32C, checksumCRC64NVME, checksumMD5, checksumSHA1, checksumSHA256, checksumSHA512, checksumType, checksumXXHASH128, checksumXXHASH3, checksumXXHASH64, contentDisposition, contentEncoding, contentLanguage, contentLength, contentRange, contentType, deleteMarker, eTag, expiration, expires, lastModified, metadata, missingMeta, objectLockEventHold, objectLockEventHoldDurationDays, objectLockEventHoldDurationYears, objectLockLegalHoldStatus, objectLockMode, objectLockRetainUntilDate, partsCount, replicationStatus, requestCharged, restore, sseCustomerAlgorithm, sseCustomerKeyMD5, ssekmsKeyId, serverSideEncryption, storageClass, tagCount, versionId, websiteRedirectLocation } + +structure HeadObjectRequest where + /-- The name of the bucket that contains the object. -/ + bucket : String + /-- To retrieve the checksum, this parameter must be enabled. -/ + checksumMode : Option ChecksumMode := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- Return the object only if its entity tag (ETag) is the same as the one specified; otherwise, return a 412 (precondition failed) error. -/ + ifMatch : Option String := none + /-- Return the object only if it has been modified since the specified time; otherwise, return a 304 (not modified) error. -/ + ifModifiedSince : Option Timestamp := none + /-- Return the object only if its entity tag (ETag) is different from the one specified; otherwise, return a 304 (not modified) error. -/ + ifNoneMatch : Option String := none + /-- Return the object only if it has not been modified since the specified time; otherwise, return a 412 (precondition failed) error. -/ + ifUnmodifiedSince : Option Timestamp := none + /-- The object key. -/ + key : String + /-- Part number of the object being read. -/ + partNumber : Option Int := none + /-- HeadObject returns only the metadata for an object. -/ + range : Option String := none + requestPayer : Option RequestPayer := none + /-- Sets the Cache-Control header of the response. -/ + responseCacheControl : Option String := none + /-- Sets the Content-Disposition header of the response. -/ + responseContentDisposition : Option String := none + /-- Sets the Content-Encoding header of the response. -/ + responseContentEncoding : Option String := none + /-- Sets the Content-Language header of the response. -/ + responseContentLanguage : Option String := none + /-- Sets the Content-Type header of the response. -/ + responseContentType : Option String := none + /-- Sets the Expires header of the response. -/ + responseExpires : Option Timestamp := none + /-- Specifies the algorithm to use when encrypting the object (for example, AES256). -/ + sseCustomerAlgorithm : Option String := none + /-- Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. -/ + sseCustomerKey : Option String := none + /-- Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. -/ + sseCustomerKeyMD5 : Option String := none + /-- Version ID used to reference a specific version of the object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape HeadObjectRequest where + schema := .struct "HeadObjectRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumMode", location := .header "x-amz-checksum-mode" }, (Shape.schema ChecksumMode)), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "IfMatch", location := .header "If-Match" }, .string), + ({ name := "IfModifiedSince", location := .header "If-Modified-Since" }, (.time none)), + ({ name := "IfNoneMatch", location := .header "If-None-Match" }, .string), + ({ name := "IfUnmodifiedSince", location := .header "If-Unmodified-Since" }, (.time none)), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "PartNumber", location := .query "partNumber" }, .int), + ({ name := "Range", location := .header "Range" }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "ResponseCacheControl", location := .query "response-cache-control" }, .string), + ({ name := "ResponseContentDisposition", location := .query "response-content-disposition" }, .string), + ({ name := "ResponseContentEncoding", location := .query "response-content-encoding" }, .string), + ({ name := "ResponseContentLanguage", location := .query "response-content-language" }, .string), + ({ name := "ResponseContentType", location := .query "response-content-type" }, .string), + ({ name := "ResponseExpires", location := .query "response-expires" }, (.time (some .httpDate))), + ({ name := "SSECustomerAlgorithm", location := .header "x-amz-server-side-encryption-customer-algorithm" }, .string), + ({ name := "SSECustomerKey", location := .header "x-amz-server-side-encryption-customer-key" }, .string), + ({ name := "SSECustomerKeyMD5", location := .header "x-amz-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "VersionId", location := .query "versionId" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumMode" x.checksumMode, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, putOpt "IfMatch" x.ifMatch, putOpt "IfModifiedSince" x.ifModifiedSince, putOpt "IfNoneMatch" x.ifNoneMatch, putOpt "IfUnmodifiedSince" x.ifUnmodifiedSince, put "Key" x.key, putOpt "PartNumber" x.partNumber, putOpt "Range" x.range, putOpt "RequestPayer" x.requestPayer, putOpt "ResponseCacheControl" x.responseCacheControl, putOpt "ResponseContentDisposition" x.responseContentDisposition, putOpt "ResponseContentEncoding" x.responseContentEncoding, putOpt "ResponseContentLanguage" x.responseContentLanguage, putOpt "ResponseContentType" x.responseContentType, putOpt "ResponseExpires" x.responseExpires, putOpt "SSECustomerAlgorithm" x.sseCustomerAlgorithm, putOpt "SSECustomerKey" x.sseCustomerKey, putOpt "SSECustomerKeyMD5" x.sseCustomerKeyMD5, putOpt "VersionId" x.versionId] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumMode ← v.opt "ChecksumMode" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let ifMatch ← v.opt "IfMatch" + let ifModifiedSince ← v.opt "IfModifiedSince" + let ifNoneMatch ← v.opt "IfNoneMatch" + let ifUnmodifiedSince ← v.opt "IfUnmodifiedSince" + let key ← v.req "Key" + let partNumber ← v.opt "PartNumber" + let range ← v.opt "Range" + let requestPayer ← v.opt "RequestPayer" + let responseCacheControl ← v.opt "ResponseCacheControl" + let responseContentDisposition ← v.opt "ResponseContentDisposition" + let responseContentEncoding ← v.opt "ResponseContentEncoding" + let responseContentLanguage ← v.opt "ResponseContentLanguage" + let responseContentType ← v.opt "ResponseContentType" + let responseExpires ← v.opt "ResponseExpires" + let sseCustomerAlgorithm ← v.opt "SSECustomerAlgorithm" + let sseCustomerKey ← v.opt "SSECustomerKey" + let sseCustomerKeyMD5 ← v.opt "SSECustomerKeyMD5" + let versionId ← v.opt "VersionId" + return { bucket, checksumMode, expectedBucketOwner, ifMatch, ifModifiedSince, ifNoneMatch, ifUnmodifiedSince, key, partNumber, range, requestPayer, responseCacheControl, responseContentDisposition, responseContentEncoding, responseContentLanguage, responseContentType, responseExpires, sseCustomerAlgorithm, sseCustomerKey, sseCustomerKeyMD5, versionId } + +/-- A container for specifying S3 Intelligent-Tiering filters. -/ +structure IntelligentTieringAndOperator where + /-- An object key name prefix that identifies the subset of objects to which the configuration applies. -/ + «prefix» : Option String := none + /-- All of these tags must exist in the object's tag set in order for the configuration to apply. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IntelligentTieringAndOperator where + schema := .struct "IntelligentTieringAndOperator" [({ name := "Prefix" }, .string), + ({ name := "Tags", xmlName := some "Tag", flattened := true }, (.list (Shape.schema Tag) "Tag"))] + toValue x := record [putOpt "Prefix" x.«prefix», putOpt "Tags" x.tags] + ofValue v := do + let «prefix» ← v.opt "Prefix" + let tags ← v.opt "Tags" + return { «prefix», tags } + +/-- Object is archived and inaccessible until restored. -/ +structure InvalidObjectState where + accessTier : Option IntelligentTieringAccessTier := none + storageClass : Option StorageClass := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidObjectState where + schema := .struct "InvalidObjectState" [({ name := "AccessTier" }, (Shape.schema IntelligentTieringAccessTier)), + ({ name := "StorageClass" }, (Shape.schema StorageClass))] + toValue x := record [putOpt "AccessTier" x.accessTier, putOpt "StorageClass" x.storageClass] + ofValue v := do + let accessTier ← v.opt "AccessTier" + let storageClass ← v.opt "StorageClass" + return { accessTier, storageClass } + +/-- Contains the type of server-side encryption used to encrypt the S3 Inventory results. -/ +structure InventoryEncryption where + /-- Specifies the use of SSE-KMS to encrypt delivered inventory reports. -/ + ssekms : Option SSEKMS := none + /-- Specifies the use of SSE-S3 to encrypt delivered inventory reports. -/ + sses3 : Option SSES3 := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InventoryEncryption where + schema := .struct "InventoryEncryption" [({ name := "SSEKMS", xmlName := some "SSE-KMS" }, (Shape.schema SSEKMS)), + ({ name := "SSES3", xmlName := some "SSE-S3" }, (Shape.schema SSES3))] + toValue x := record [putOpt "SSEKMS" x.ssekms, putOpt "SSES3" x.sses3] + ofValue v := do + let ssekms ← v.opt "SSEKMS" + let sses3 ← v.opt "SSES3" + return { ssekms, sses3 } + +/-- Specifies the schedule for generating S3 Inventory results. -/ +structure InventorySchedule where + /-- Specifies how frequently inventory results are produced. -/ + frequency : InventoryFrequency +deriving DecidableEq, Repr, Inhabited + +instance : Shape InventorySchedule where + schema := .struct "InventorySchedule" [({ name := "Frequency", required := true }, (Shape.schema InventoryFrequency))] + toValue x := record [put "Frequency" x.frequency] + ofValue v := do + let frequency ← v.req "Frequency" + return { frequency } + +/-- The inventory table configuration for an S3 Metadata configuration. -/ +structure InventoryTableConfigurationResult where + /-- The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled. -/ + configurationState : InventoryConfigurationState + error : Option ErrorDetails := none + /-- The Amazon Resource Name (ARN) for the inventory table. -/ + tableArn : Option String := none + /-- The name of the inventory table. -/ + tableName : Option String := none + /-- The status of the inventory table. -/ + tableStatus : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InventoryTableConfigurationResult where + schema := .struct "InventoryTableConfigurationResult" [({ name := "ConfigurationState", required := true }, (Shape.schema InventoryConfigurationState)), + ({ name := "Error" }, (Shape.schema ErrorDetails)), + ({ name := "TableArn" }, .string), + ({ name := "TableName" }, .string), + ({ name := "TableStatus" }, .string)] + toValue x := record [put "ConfigurationState" x.configurationState, putOpt "Error" x.error, putOpt "TableArn" x.tableArn, putOpt "TableName" x.tableName, putOpt "TableStatus" x.tableStatus] + ofValue v := do + let configurationState ← v.req "ConfigurationState" + let error ← v.opt "Error" + let tableArn ← v.opt "TableArn" + let tableName ← v.opt "TableName" + let tableStatus ← v.opt "TableStatus" + return { configurationState, error, tableArn, tableName, tableStatus } + +/-- Specifies JSON as object's input serialization format. -/ +structure JSONInput where + /-- The type of JSON. -/ + type : Option JSONType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape JSONInput where + schema := .struct "JSONInput" [({ name := "Type" }, (Shape.schema JSONType))] + toValue x := record [putOpt "Type" x.type] + ofValue v := do + let type ← v.opt "Type" + return { type } + +/-- This is used in a Lifecycle Rule Filter to apply a logical AND to two or more predicates. -/ +structure LifecycleRuleAndOperator where + /-- Minimum object size to which the rule applies. -/ + objectSizeGreaterThan : Option Int := none + /-- Maximum object size to which the rule applies. -/ + objectSizeLessThan : Option Int := none + /-- Prefix identifying one or more objects to which the rule applies. -/ + «prefix» : Option String := none + /-- All of these tags must exist in the object's tag set in order for the rule to apply. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LifecycleRuleAndOperator where + schema := .struct "LifecycleRuleAndOperator" [({ name := "ObjectSizeGreaterThan" }, .int), + ({ name := "ObjectSizeLessThan" }, .int), + ({ name := "Prefix" }, .string), + ({ name := "Tags", xmlName := some "Tag", flattened := true }, (.list (Shape.schema Tag) "Tag"))] + toValue x := record [putOpt "ObjectSizeGreaterThan" x.objectSizeGreaterThan, putOpt "ObjectSizeLessThan" x.objectSizeLessThan, putOpt "Prefix" x.«prefix», putOpt "Tags" x.tags] + ofValue v := do + let objectSizeGreaterThan ← v.opt "ObjectSizeGreaterThan" + let objectSizeLessThan ← v.opt "ObjectSizeLessThan" + let «prefix» ← v.opt "Prefix" + let tags ← v.opt "Tags" + return { objectSizeGreaterThan, objectSizeLessThan, «prefix», tags } + +structure ListBucketsOutput where + /-- The list of buckets owned by the requester. -/ + buckets : Option (List Bucket) := none + /-- ContinuationToken is included in the response when there are more buckets that can be listed with pagination. -/ + continuationToken : Option String := none + /-- The owner of the buckets listed. -/ + owner : Option Owner := none + /-- If Prefix was sent with the request, it is included in the response. -/ + «prefix» : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListBucketsOutput where + schema := .struct "ListAllMyBucketsResult" [({ name := "Buckets" }, (.list (Shape.schema Bucket) "Bucket")), + ({ name := "ContinuationToken" }, .string), + ({ name := "Owner" }, (Shape.schema Owner)), + ({ name := "Prefix" }, .string)] + toValue x := record [putOpt "Buckets" x.buckets, putOpt "ContinuationToken" x.continuationToken, putOpt "Owner" x.owner, putOpt "Prefix" x.«prefix»] + ofValue v := do + let buckets ← v.opt "Buckets" + let continuationToken ← v.opt "ContinuationToken" + let owner ← v.opt "Owner" + let «prefix» ← v.opt "Prefix" + return { buckets, continuationToken, owner, «prefix» } + +structure ListDirectoryBucketsOutput where + /-- The list of buckets owned by the requester. -/ + buckets : Option (List Bucket) := none + /-- If ContinuationToken was sent with the request, it is included in the response. -/ + continuationToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListDirectoryBucketsOutput where + schema := .struct "ListAllMyDirectoryBucketsResult" [({ name := "Buckets" }, (.list (Shape.schema Bucket) "Bucket")), + ({ name := "ContinuationToken" }, .string)] + toValue x := record [putOpt "Buckets" x.buckets, putOpt "ContinuationToken" x.continuationToken] + ofValue v := do + let buckets ← v.opt "Buckets" + let continuationToken ← v.opt "ContinuationToken" + return { buckets, continuationToken } + +structure ListMultipartUploadsRequest where + /-- The name of the bucket to which the multipart upload was initiated. -/ + bucket : String + /-- Character you use to group keys. -/ + delimiter : Option String := none + encodingType : Option EncodingType := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- Specifies the multipart upload after which listing should begin. -/ + keyMarker : Option String := none + /-- Sets the maximum number of multipart uploads, from 1 to 1,000, to return in the response body. -/ + maxUploads : Option Int := none + /-- Lists in-progress uploads only for those keys that begin with the specified prefix. -/ + «prefix» : Option String := none + requestPayer : Option RequestPayer := none + /-- Together with key-marker, specifies the multipart upload after which listing should begin. -/ + uploadIdMarker : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListMultipartUploadsRequest where + schema := .struct "ListMultipartUploadsRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "Delimiter", location := .query "delimiter" }, .string), + ({ name := "EncodingType", location := .query "encoding-type" }, (Shape.schema EncodingType)), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "KeyMarker", location := .query "key-marker" }, .string), + ({ name := "MaxUploads", location := .query "max-uploads" }, .int), + ({ name := "Prefix", location := .query "prefix" }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "UploadIdMarker", location := .query "upload-id-marker" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "Delimiter" x.delimiter, putOpt "EncodingType" x.encodingType, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, putOpt "KeyMarker" x.keyMarker, putOpt "MaxUploads" x.maxUploads, putOpt "Prefix" x.«prefix», putOpt "RequestPayer" x.requestPayer, putOpt "UploadIdMarker" x.uploadIdMarker] + ofValue v := do + let bucket ← v.req "Bucket" + let delimiter ← v.opt "Delimiter" + let encodingType ← v.opt "EncodingType" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let keyMarker ← v.opt "KeyMarker" + let maxUploads ← v.opt "MaxUploads" + let «prefix» ← v.opt "Prefix" + let requestPayer ← v.opt "RequestPayer" + let uploadIdMarker ← v.opt "UploadIdMarker" + return { bucket, delimiter, encodingType, expectedBucketOwner, keyMarker, maxUploads, «prefix», requestPayer, uploadIdMarker } + +structure ListObjectAnnotationsRequest where + /-- Filter results to annotations whose name begins with the specified prefix. -/ + annotationPrefix : Option String := none + /-- The name of the bucket that contains the object. -/ + bucket : String + /-- Continuation token returned by a previous request to retrieve the next page. -/ + continuationToken : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The object key. -/ + key : String + /-- The maximum number of annotations to return in the response. -/ + maxAnnotationResults : Option Int := none + requestPayer : Option RequestPayer := none + /-- The version ID of the object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListObjectAnnotationsRequest where + schema := .struct "ListObjectAnnotationsRequest" [({ name := "AnnotationPrefix", location := .query "annotation-prefix" }, .string), + ({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ContinuationToken", location := .query "continuation-token" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "MaxAnnotationResults", location := .query "max-annotation-results" }, .int), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "VersionId", location := .query "versionId" }, .string)] + toValue x := record [putOpt "AnnotationPrefix" x.annotationPrefix, put "Bucket" x.bucket, putOpt "ContinuationToken" x.continuationToken, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Key" x.key, putOpt "MaxAnnotationResults" x.maxAnnotationResults, putOpt "RequestPayer" x.requestPayer, putOpt "VersionId" x.versionId] + ofValue v := do + let annotationPrefix ← v.opt "AnnotationPrefix" + let bucket ← v.req "Bucket" + let continuationToken ← v.opt "ContinuationToken" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let key ← v.req "Key" + let maxAnnotationResults ← v.opt "MaxAnnotationResults" + let requestPayer ← v.opt "RequestPayer" + let versionId ← v.opt "VersionId" + return { annotationPrefix, bucket, continuationToken, expectedBucketOwner, key, maxAnnotationResults, requestPayer, versionId } + +structure ListObjectVersionsRequest where + /-- The bucket name that contains the objects. -/ + bucket : String + /-- A delimiter is a character that you specify to group keys. -/ + delimiter : Option String := none + encodingType : Option EncodingType := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- Specifies the key to start with when listing objects in a bucket. -/ + keyMarker : Option String := none + /-- Sets the maximum number of keys returned in the response. -/ + maxKeys : Option Int := none + /-- Specifies the optional fields that you want returned in the response. -/ + optionalObjectAttributes : Option (List OptionalObjectAttributes) := none + /-- Use this parameter to select only those keys that begin with the specified prefix. -/ + «prefix» : Option String := none + requestPayer : Option RequestPayer := none + /-- Specifies the object version you want to start listing from. -/ + versionIdMarker : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListObjectVersionsRequest where + schema := .struct "ListObjectVersionsRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "Delimiter", location := .query "delimiter" }, .string), + ({ name := "EncodingType", location := .query "encoding-type" }, (Shape.schema EncodingType)), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "KeyMarker", location := .query "key-marker" }, .string), + ({ name := "MaxKeys", location := .query "max-keys" }, .int), + ({ name := "OptionalObjectAttributes", location := .header "x-amz-optional-object-attributes" }, (.list (Shape.schema OptionalObjectAttributes) "member")), + ({ name := "Prefix", location := .query "prefix" }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "VersionIdMarker", location := .query "version-id-marker" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "Delimiter" x.delimiter, putOpt "EncodingType" x.encodingType, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, putOpt "KeyMarker" x.keyMarker, putOpt "MaxKeys" x.maxKeys, putOpt "OptionalObjectAttributes" x.optionalObjectAttributes, putOpt "Prefix" x.«prefix», putOpt "RequestPayer" x.requestPayer, putOpt "VersionIdMarker" x.versionIdMarker] + ofValue v := do + let bucket ← v.req "Bucket" + let delimiter ← v.opt "Delimiter" + let encodingType ← v.opt "EncodingType" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let keyMarker ← v.opt "KeyMarker" + let maxKeys ← v.opt "MaxKeys" + let optionalObjectAttributes ← v.opt "OptionalObjectAttributes" + let «prefix» ← v.opt "Prefix" + let requestPayer ← v.opt "RequestPayer" + let versionIdMarker ← v.opt "VersionIdMarker" + return { bucket, delimiter, encodingType, expectedBucketOwner, keyMarker, maxKeys, optionalObjectAttributes, «prefix», requestPayer, versionIdMarker } + +structure ListObjectsRequest where + /-- The name of the bucket containing the objects. -/ + bucket : String + /-- A delimiter is a character that you use to group keys. -/ + delimiter : Option String := none + encodingType : Option EncodingType := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- Marker is where you want Amazon S3 to start listing from. -/ + marker : Option String := none + /-- Sets the maximum number of keys returned in the response. -/ + maxKeys : Option Int := none + /-- Specifies the optional fields that you want returned in the response. -/ + optionalObjectAttributes : Option (List OptionalObjectAttributes) := none + /-- Limits the response to keys that begin with the specified prefix. -/ + «prefix» : Option String := none + /-- Confirms that the requester knows that she or he will be charged for the list objects request. -/ + requestPayer : Option RequestPayer := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListObjectsRequest where + schema := .struct "ListObjectsRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "Delimiter", location := .query "delimiter" }, .string), + ({ name := "EncodingType", location := .query "encoding-type" }, (Shape.schema EncodingType)), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Marker", location := .query "marker" }, .string), + ({ name := "MaxKeys", location := .query "max-keys" }, .int), + ({ name := "OptionalObjectAttributes", location := .header "x-amz-optional-object-attributes" }, (.list (Shape.schema OptionalObjectAttributes) "member")), + ({ name := "Prefix", location := .query "prefix" }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer))] + toValue x := record [put "Bucket" x.bucket, putOpt "Delimiter" x.delimiter, putOpt "EncodingType" x.encodingType, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, putOpt "Marker" x.marker, putOpt "MaxKeys" x.maxKeys, putOpt "OptionalObjectAttributes" x.optionalObjectAttributes, putOpt "Prefix" x.«prefix», putOpt "RequestPayer" x.requestPayer] + ofValue v := do + let bucket ← v.req "Bucket" + let delimiter ← v.opt "Delimiter" + let encodingType ← v.opt "EncodingType" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let marker ← v.opt "Marker" + let maxKeys ← v.opt "MaxKeys" + let optionalObjectAttributes ← v.opt "OptionalObjectAttributes" + let «prefix» ← v.opt "Prefix" + let requestPayer ← v.opt "RequestPayer" + return { bucket, delimiter, encodingType, expectedBucketOwner, marker, maxKeys, optionalObjectAttributes, «prefix», requestPayer } + +structure ListObjectsV2Request where + /-- Directory buckets - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format Bucket-name .s3express- zone-id . -/ + bucket : String + /-- ContinuationToken indicates to Amazon S3 that the list is being continued on this bucket with a token. -/ + continuationToken : Option String := none + /-- A delimiter is a character that you use to group keys. -/ + delimiter : Option String := none + /-- Encoding type used by Amazon S3 to encode the object keys in the response. -/ + encodingType : Option EncodingType := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The owner field is not present in ListObjectsV2 by default. -/ + fetchOwner : Option Bool := none + /-- Sets the maximum number of keys returned in the response. -/ + maxKeys : Option Int := none + /-- Specifies the optional fields that you want returned in the response. -/ + optionalObjectAttributes : Option (List OptionalObjectAttributes) := none + /-- Limits the response to keys that begin with the specified prefix. -/ + «prefix» : Option String := none + /-- Confirms that the requester knows that she or he will be charged for the list objects request in V2 style. -/ + requestPayer : Option RequestPayer := none + /-- StartAfter is where you want Amazon S3 to start listing from. -/ + startAfter : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListObjectsV2Request where + schema := .struct "ListObjectsV2Request" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ContinuationToken", location := .query "continuation-token" }, .string), + ({ name := "Delimiter", location := .query "delimiter" }, .string), + ({ name := "EncodingType", location := .query "encoding-type" }, (Shape.schema EncodingType)), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "FetchOwner", location := .query "fetch-owner" }, .bool), + ({ name := "MaxKeys", location := .query "max-keys" }, .int), + ({ name := "OptionalObjectAttributes", location := .header "x-amz-optional-object-attributes" }, (.list (Shape.schema OptionalObjectAttributes) "member")), + ({ name := "Prefix", location := .query "prefix" }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "StartAfter", location := .query "start-after" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ContinuationToken" x.continuationToken, putOpt "Delimiter" x.delimiter, putOpt "EncodingType" x.encodingType, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, putOpt "FetchOwner" x.fetchOwner, putOpt "MaxKeys" x.maxKeys, putOpt "OptionalObjectAttributes" x.optionalObjectAttributes, putOpt "Prefix" x.«prefix», putOpt "RequestPayer" x.requestPayer, putOpt "StartAfter" x.startAfter] + ofValue v := do + let bucket ← v.req "Bucket" + let continuationToken ← v.opt "ContinuationToken" + let delimiter ← v.opt "Delimiter" + let encodingType ← v.opt "EncodingType" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let fetchOwner ← v.opt "FetchOwner" + let maxKeys ← v.opt "MaxKeys" + let optionalObjectAttributes ← v.opt "OptionalObjectAttributes" + let «prefix» ← v.opt "Prefix" + let requestPayer ← v.opt "RequestPayer" + let startAfter ← v.opt "StartAfter" + return { bucket, continuationToken, delimiter, encodingType, expectedBucketOwner, fetchOwner, maxKeys, optionalObjectAttributes, «prefix», requestPayer, startAfter } + +structure ListPartsOutput where + /-- If the bucket has a lifecycle rule configured with an action to abort incomplete multipart uploads and the prefix in the lifecycle rule matches the object name in the request, then the response includes this header indicating when the initi -/ + abortDate : Option Timestamp := none + /-- This header is returned along with the x-amz-abort-date header. -/ + abortRuleId : Option String := none + /-- The name of the bucket to which the multipart upload was initiated. -/ + bucket : Option String := none + /-- The algorithm that was used to create a checksum of the object. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. -/ + checksumType : Option ChecksumType := none + /-- Container element that identifies who initiated the multipart upload. -/ + initiator : Option Initiator := none + /-- Indicates whether the returned list of parts is truncated. -/ + isTruncated : Option Bool := none + /-- Object key for which the multipart upload was initiated. -/ + key : Option String := none + /-- Maximum number of parts that were allowed in the response. -/ + maxParts : Option Int := none + /-- When a list is truncated, this element specifies the last part in the list, as well as the value to use for the part-number-marker request parameter in a subsequent request. -/ + nextPartNumberMarker : Option String := none + /-- Container element that identifies the object owner, after the object is created. -/ + owner : Option Owner := none + /-- Specifies the part after which listing should begin. -/ + partNumberMarker : Option String := none + /-- Container for elements related to a particular part. -/ + parts : Option (List Part) := none + requestCharged : Option RequestCharged := none + /-- The class of storage used to store the uploaded object. -/ + storageClass : Option StorageClass := none + /-- Upload ID identifying the multipart upload whose parts are being listed. -/ + uploadId : Option String := none + /-- Version ID of the object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListPartsOutput where + schema := .struct "ListPartsResult" [({ name := "AbortDate", location := .header "x-amz-abort-date" }, (.time none)), + ({ name := "AbortRuleId", location := .header "x-amz-abort-rule-id" }, .string), + ({ name := "Bucket" }, .string), + ({ name := "ChecksumAlgorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ChecksumType" }, (Shape.schema ChecksumType)), + ({ name := "Initiator" }, (Shape.schema Initiator)), + ({ name := "IsTruncated" }, .bool), + ({ name := "Key" }, .string), + ({ name := "MaxParts" }, .int), + ({ name := "NextPartNumberMarker" }, .string), + ({ name := "Owner" }, (Shape.schema Owner)), + ({ name := "PartNumberMarker" }, .string), + ({ name := "Parts", xmlName := some "Part", flattened := true }, (.list (Shape.schema Part) "member")), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged)), + ({ name := "StorageClass" }, (Shape.schema StorageClass)), + ({ name := "UploadId" }, .string), + ({ name := "VersionId", location := .header "x-amz-version-id" }, .string)] + toValue x := record [putOpt "AbortDate" x.abortDate, putOpt "AbortRuleId" x.abortRuleId, putOpt "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ChecksumType" x.checksumType, putOpt "Initiator" x.initiator, putOpt "IsTruncated" x.isTruncated, putOpt "Key" x.key, putOpt "MaxParts" x.maxParts, putOpt "NextPartNumberMarker" x.nextPartNumberMarker, putOpt "Owner" x.owner, putOpt "PartNumberMarker" x.partNumberMarker, putOpt "Parts" x.parts, putOpt "RequestCharged" x.requestCharged, putOpt "StorageClass" x.storageClass, putOpt "UploadId" x.uploadId, putOpt "VersionId" x.versionId] + ofValue v := do + let abortDate ← v.opt "AbortDate" + let abortRuleId ← v.opt "AbortRuleId" + let bucket ← v.opt "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let checksumType ← v.opt "ChecksumType" + let initiator ← v.opt "Initiator" + let isTruncated ← v.opt "IsTruncated" + let key ← v.opt "Key" + let maxParts ← v.opt "MaxParts" + let nextPartNumberMarker ← v.opt "NextPartNumberMarker" + let owner ← v.opt "Owner" + let partNumberMarker ← v.opt "PartNumberMarker" + let parts ← v.opt "Parts" + let requestCharged ← v.opt "RequestCharged" + let storageClass ← v.opt "StorageClass" + let uploadId ← v.opt "UploadId" + let versionId ← v.opt "VersionId" + return { abortDate, abortRuleId, bucket, checksumAlgorithm, checksumType, initiator, isTruncated, key, maxParts, nextPartNumberMarker, owner, partNumberMarker, parts, requestCharged, storageClass, uploadId, versionId } + +structure ListPartsRequest where + /-- The name of the bucket to which the parts are being uploaded. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- Object key for which the multipart upload was initiated. -/ + key : String + /-- Sets the maximum number of parts to return. -/ + maxParts : Option Int := none + /-- Specifies the part after which listing should begin. -/ + partNumberMarker : Option String := none + requestPayer : Option RequestPayer := none + /-- The server-side encryption (SSE) algorithm used to encrypt the object. -/ + sseCustomerAlgorithm : Option String := none + /-- The server-side encryption (SSE) customer managed key. -/ + sseCustomerKey : Option String := none + /-- The MD5 server-side encryption (SSE) customer managed key. -/ + sseCustomerKeyMD5 : Option String := none + /-- Upload ID identifying the multipart upload whose parts are being listed. -/ + uploadId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListPartsRequest where + schema := .struct "ListPartsRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "MaxParts", location := .query "max-parts" }, .int), + ({ name := "PartNumberMarker", location := .query "part-number-marker" }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "SSECustomerAlgorithm", location := .header "x-amz-server-side-encryption-customer-algorithm" }, .string), + ({ name := "SSECustomerKey", location := .header "x-amz-server-side-encryption-customer-key" }, .string), + ({ name := "SSECustomerKeyMD5", location := .header "x-amz-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "UploadId", required := true, location := .query "uploadId" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Key" x.key, putOpt "MaxParts" x.maxParts, putOpt "PartNumberMarker" x.partNumberMarker, putOpt "RequestPayer" x.requestPayer, putOpt "SSECustomerAlgorithm" x.sseCustomerAlgorithm, putOpt "SSECustomerKey" x.sseCustomerKey, putOpt "SSECustomerKeyMD5" x.sseCustomerKeyMD5, put "UploadId" x.uploadId] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let key ← v.req "Key" + let maxParts ← v.opt "MaxParts" + let partNumberMarker ← v.opt "PartNumberMarker" + let requestPayer ← v.opt "RequestPayer" + let sseCustomerAlgorithm ← v.opt "SSECustomerAlgorithm" + let sseCustomerKey ← v.opt "SSECustomerKey" + let sseCustomerKeyMD5 ← v.opt "SSECustomerKeyMD5" + let uploadId ← v.req "UploadId" + return { bucket, expectedBucketOwner, key, maxParts, partNumberMarker, requestPayer, sseCustomerAlgorithm, sseCustomerKey, sseCustomerKeyMD5, uploadId } + +/-- Specifies the location where the bucket will be created. -/ +structure LocationInfo where + /-- The name of the location where the bucket will be created. -/ + name : Option String := none + /-- The type of location where the bucket will be created. -/ + type : Option LocationType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LocationInfo where + schema := .struct "LocationInfo" [({ name := "Name" }, .string), + ({ name := "Type" }, (Shape.schema LocationType))] + toValue x := record [putOpt "Name" x.name, putOpt "Type" x.type] + ofValue v := do + let name ← v.opt "Name" + let type ← v.opt "Type" + return { name, type } + +/-- The V1 S3 Metadata configuration for a general purpose bucket. -/ +structure MetadataTableConfiguration where + /-- The destination information for the metadata table configuration. -/ + s3TablesDestination : S3TablesDestination +deriving DecidableEq, Repr, Inhabited + +instance : Shape MetadataTableConfiguration where + schema := .struct "MetadataTableConfiguration" [({ name := "S3TablesDestination", required := true }, (Shape.schema S3TablesDestination))] + toValue x := record [put "S3TablesDestination" x.s3TablesDestination] + ofValue v := do + let s3TablesDestination ← v.req "S3TablesDestination" + return { s3TablesDestination } + +/-- The V1 S3 Metadata configuration for a general purpose bucket. -/ +structure MetadataTableConfigurationResult where + /-- The destination information for the metadata table configuration. -/ + s3TablesDestinationResult : S3TablesDestinationResult +deriving DecidableEq, Repr, Inhabited + +instance : Shape MetadataTableConfigurationResult where + schema := .struct "MetadataTableConfigurationResult" [({ name := "S3TablesDestinationResult", required := true }, (Shape.schema S3TablesDestinationResult))] + toValue x := record [put "S3TablesDestinationResult" x.s3TablesDestinationResult] + ofValue v := do + let s3TablesDestinationResult ← v.req "S3TablesDestinationResult" + return { s3TablesDestinationResult } + +/-- The encryption settings for an S3 Metadata journal table or inventory table configuration. -/ +structure MetadataTableEncryptionConfiguration where + /-- If server-side encryption with Key Management Service (KMS) keys (SSE-KMS) is specified, you must also specify the KMS key Amazon Resource Name (ARN). -/ + kmsKeyArn : Option String := none + /-- The encryption type specified for a metadata table. -/ + sseAlgorithm : TableSseAlgorithm +deriving DecidableEq, Repr, Inhabited + +instance : Shape MetadataTableEncryptionConfiguration where + schema := .struct "MetadataTableEncryptionConfiguration" [({ name := "KmsKeyArn" }, .string), + ({ name := "SseAlgorithm", required := true }, (Shape.schema TableSseAlgorithm))] + toValue x := record [putOpt "KmsKeyArn" x.kmsKeyArn, put "SseAlgorithm" x.sseAlgorithm] + ofValue v := do + let kmsKeyArn ← v.opt "KmsKeyArn" + let sseAlgorithm ← v.req "SseAlgorithm" + return { kmsKeyArn, sseAlgorithm } + +/-- A container specifying replication metrics-related settings enabling replication metrics and events. -/ +structure Metrics where + /-- A container specifying the time threshold for emitting the s3:Replication:OperationMissedThreshold event. -/ + eventThreshold : Option ReplicationTimeValue := none + /-- Specifies whether the replication metrics are enabled. -/ + status : MetricsStatus +deriving DecidableEq, Repr, Inhabited + +instance : Shape Metrics where + schema := .struct "Metrics" [({ name := "EventThreshold" }, (Shape.schema ReplicationTimeValue)), + ({ name := "Status", required := true }, (Shape.schema MetricsStatus))] + toValue x := record [putOpt "EventThreshold" x.eventThreshold, put "Status" x.status] + ofValue v := do + let eventThreshold ← v.opt "EventThreshold" + let status ← v.req "Status" + return { eventThreshold, status } + +/-- A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter. -/ +structure MetricsAndOperator where + /-- The access point ARN used when evaluating an AND predicate. -/ + accessPointArn : Option String := none + /-- The prefix used when evaluating an AND predicate. -/ + «prefix» : Option String := none + /-- The list of tags used when evaluating an AND predicate. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MetricsAndOperator where + schema := .struct "MetricsAndOperator" [({ name := "AccessPointArn" }, .string), + ({ name := "Prefix" }, .string), + ({ name := "Tags", xmlName := some "Tag", flattened := true }, (.list (Shape.schema Tag) "Tag"))] + toValue x := record [putOpt "AccessPointArn" x.accessPointArn, putOpt "Prefix" x.«prefix», putOpt "Tags" x.tags] + ofValue v := do + let accessPointArn ← v.opt "AccessPointArn" + let «prefix» ← v.opt "Prefix" + let tags ← v.opt "Tags" + return { accessPointArn, «prefix», tags } + +/-- Container for the MultipartUpload for the Amazon S3 object. -/ +structure MultipartUpload where + /-- The algorithm that was used to create a checksum of the object. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The checksum type that is used to calculate the object’s checksum value. -/ + checksumType : Option ChecksumType := none + /-- Date and time at which the multipart upload was initiated. -/ + initiated : Option Timestamp := none + /-- Identifies who initiated the multipart upload. -/ + initiator : Option Initiator := none + /-- Key of the object for which the multipart upload was initiated. -/ + key : Option String := none + /-- Specifies the owner of the object that is part of the multipart upload. -/ + owner : Option Owner := none + /-- The class of storage used to store the object. -/ + storageClass : Option StorageClass := none + /-- Upload ID that identifies the multipart upload. -/ + uploadId : Option String := none + /-- Version ID of the object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MultipartUpload where + schema := .struct "MultipartUpload" [({ name := "ChecksumAlgorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ChecksumType" }, (Shape.schema ChecksumType)), + ({ name := "Initiated" }, (.time none)), + ({ name := "Initiator" }, (Shape.schema Initiator)), + ({ name := "Key" }, .string), + ({ name := "Owner" }, (Shape.schema Owner)), + ({ name := "StorageClass" }, (Shape.schema StorageClass)), + ({ name := "UploadId" }, .string), + ({ name := "VersionId" }, .string)] + toValue x := record [putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ChecksumType" x.checksumType, putOpt "Initiated" x.initiated, putOpt "Initiator" x.initiator, putOpt "Key" x.key, putOpt "Owner" x.owner, putOpt "StorageClass" x.storageClass, putOpt "UploadId" x.uploadId, putOpt "VersionId" x.versionId] + ofValue v := do + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let checksumType ← v.opt "ChecksumType" + let initiated ← v.opt "Initiated" + let initiator ← v.opt "Initiator" + let key ← v.opt "Key" + let owner ← v.opt "Owner" + let storageClass ← v.opt "StorageClass" + let uploadId ← v.opt "UploadId" + let versionId ← v.opt "VersionId" + return { checksumAlgorithm, checksumType, initiated, initiator, key, owner, storageClass, uploadId, versionId } + +/-- Container for the transition rule that describes when noncurrent objects transition to the STANDARD_IA , ONEZONE_IA , INTELLIGENT_TIERING , GLACIER_IR , GLACIER , or DEEP_ARCHIVE storage class. -/ +structure NoncurrentVersionTransition where + /-- Specifies how many noncurrent versions Amazon S3 will retain in the same storage class before transitioning objects. -/ + newerNoncurrentVersions : Option Int := none + /-- Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. -/ + noncurrentDays : Option Int := none + /-- The class of storage used to store the object. -/ + storageClass : Option TransitionStorageClass := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NoncurrentVersionTransition where + schema := .struct "NoncurrentVersionTransition" [({ name := "NewerNoncurrentVersions" }, .int), + ({ name := "NoncurrentDays" }, .int), + ({ name := "StorageClass" }, (Shape.schema TransitionStorageClass))] + toValue x := record [putOpt "NewerNoncurrentVersions" x.newerNoncurrentVersions, putOpt "NoncurrentDays" x.noncurrentDays, putOpt "StorageClass" x.storageClass] + ofValue v := do + let newerNoncurrentVersions ← v.opt "NewerNoncurrentVersions" + let noncurrentDays ← v.opt "NoncurrentDays" + let storageClass ← v.opt "StorageClass" + return { newerNoncurrentVersions, noncurrentDays, storageClass } + +/-- An object consists of data and its descriptive metadata. -/ +structure Object where + /-- The algorithm that was used to create a checksum of the object. -/ + checksumAlgorithm : Option (List ChecksumAlgorithm) := none + /-- The checksum type that is used to calculate the object’s checksum value. -/ + checksumType : Option ChecksumType := none + /-- The entity tag is a hash of the object. -/ + eTag : Option String := none + /-- The name that you assign to an object. -/ + key : Option String := none + /-- Creation date of the object. -/ + lastModified : Option Timestamp := none + /-- The owner of the object Directory buckets - The bucket owner is returned as the object owner. -/ + owner : Option Owner := none + /-- Specifies the restoration status of an object. -/ + restoreStatus : Option RestoreStatus := none + /-- Size in bytes of the object. -/ + size : Option Int := none + /-- The class of storage used to store the object. -/ + storageClass : Option ObjectStorageClass := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Object where + schema := .struct "Object" [({ name := "ChecksumAlgorithm", flattened := true }, (.list (Shape.schema ChecksumAlgorithm) "member")), + ({ name := "ChecksumType" }, (Shape.schema ChecksumType)), + ({ name := "ETag" }, .string), + ({ name := "Key" }, .string), + ({ name := "LastModified" }, (.time none)), + ({ name := "Owner" }, (Shape.schema Owner)), + ({ name := "RestoreStatus" }, (Shape.schema RestoreStatus)), + ({ name := "Size" }, .int), + ({ name := "StorageClass" }, (Shape.schema ObjectStorageClass))] + toValue x := record [putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ChecksumType" x.checksumType, putOpt "ETag" x.eTag, putOpt "Key" x.key, putOpt "LastModified" x.lastModified, putOpt "Owner" x.owner, putOpt "RestoreStatus" x.restoreStatus, putOpt "Size" x.size, putOpt "StorageClass" x.storageClass] + ofValue v := do + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let checksumType ← v.opt "ChecksumType" + let eTag ← v.opt "ETag" + let key ← v.opt "Key" + let lastModified ← v.opt "LastModified" + let owner ← v.opt "Owner" + let restoreStatus ← v.opt "RestoreStatus" + let size ← v.opt "Size" + let storageClass ← v.opt "StorageClass" + return { checksumAlgorithm, checksumType, eTag, key, lastModified, owner, restoreStatus, size, storageClass } + +/-- The updated server-side encryption type for this object. -/ +inductive ObjectEncryption where + /-- Specifies to update the object encryption type to server-side encryption with Key Management Service (KMS) keys (SSE-KMS). -/ + | ssekms (value : SSEKMSEncryption) +deriving DecidableEq, Repr, Inhabited + +instance : Shape ObjectEncryption where + schema := .union "ObjectEncryption" [({ name := "SSEKMS", xmlName := some "SSE-KMS" }, (Shape.schema SSEKMSEncryption))] + toValue + | .ssekms value => record [put "SSEKMS" value] + ofValue + | .record [("SSEKMS", value)] => .ssekms <$> Shape.ofValue value + | _ => .error "expected exactly one member of ObjectEncryption" + +/-- A legal hold configuration for an object. -/ +structure ObjectLockLegalHold where + /-- Indicates whether the specified object has a legal hold in place. -/ + status : Option ObjectLockLegalHoldStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ObjectLockLegalHold where + schema := .struct "ObjectLockLegalHold" [({ name := "Status" }, (Shape.schema ObjectLockLegalHoldStatus))] + toValue x := record [putOpt "Status" x.status] + ofValue v := do + let status ← v.opt "Status" + return { status } + +/-- A Retention configuration for an object. -/ +structure ObjectLockRetention where + /-- The event hold status for the object. -/ + eventHold : Option ObjectLockEventHold := none + /-- The event hold duration for the object. -/ + eventHoldDuration : Option EventHoldDuration := none + /-- Indicates the Retention mode for the specified object. -/ + mode : Option ObjectLockRetentionMode := none + /-- The date on which this Object Lock Retention will expire. -/ + retainUntilDate : Option Timestamp := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ObjectLockRetention where + schema := .struct "ObjectLockRetention" [({ name := "EventHold" }, (Shape.schema ObjectLockEventHold)), + ({ name := "EventHoldDuration" }, (Shape.schema EventHoldDuration)), + ({ name := "Mode" }, (Shape.schema ObjectLockRetentionMode)), + ({ name := "RetainUntilDate" }, (.time (some .dateTime)))] + toValue x := record [putOpt "EventHold" x.eventHold, putOpt "EventHoldDuration" x.eventHoldDuration, putOpt "Mode" x.mode, putOpt "RetainUntilDate" x.retainUntilDate] + ofValue v := do + let eventHold ← v.opt "EventHold" + let eventHoldDuration ← v.opt "EventHoldDuration" + let mode ← v.opt "Mode" + let retainUntilDate ← v.opt "RetainUntilDate" + return { eventHold, eventHoldDuration, mode, retainUntilDate } + +/-- The version of an object. -/ +structure ObjectVersion where + /-- The algorithm that was used to create a checksum of the object. -/ + checksumAlgorithm : Option (List ChecksumAlgorithm) := none + /-- The checksum type that is used to calculate the object’s checksum value. -/ + checksumType : Option ChecksumType := none + /-- The entity tag is an MD5 hash of that version of the object. -/ + eTag : Option String := none + /-- Specifies whether the object is (true) or is not (false) the latest version of an object. -/ + isLatest : Option Bool := none + /-- The object key. -/ + key : Option String := none + /-- Date and time when the object was last modified. -/ + lastModified : Option Timestamp := none + /-- Specifies the owner of the object. -/ + owner : Option Owner := none + /-- Specifies the restoration status of an object. -/ + restoreStatus : Option RestoreStatus := none + /-- Size in bytes of the object. -/ + size : Option Int := none + /-- The class of storage used to store the object. -/ + storageClass : Option ObjectVersionStorageClass := none + /-- Version ID of an object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ObjectVersion where + schema := .struct "ObjectVersion" [({ name := "ChecksumAlgorithm", flattened := true }, (.list (Shape.schema ChecksumAlgorithm) "member")), + ({ name := "ChecksumType" }, (Shape.schema ChecksumType)), + ({ name := "ETag" }, .string), + ({ name := "IsLatest" }, .bool), + ({ name := "Key" }, .string), + ({ name := "LastModified" }, (.time none)), + ({ name := "Owner" }, (Shape.schema Owner)), + ({ name := "RestoreStatus" }, (Shape.schema RestoreStatus)), + ({ name := "Size" }, .int), + ({ name := "StorageClass" }, (Shape.schema ObjectVersionStorageClass)), + ({ name := "VersionId" }, .string)] + toValue x := record [putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ChecksumType" x.checksumType, putOpt "ETag" x.eTag, putOpt "IsLatest" x.isLatest, putOpt "Key" x.key, putOpt "LastModified" x.lastModified, putOpt "Owner" x.owner, putOpt "RestoreStatus" x.restoreStatus, putOpt "Size" x.size, putOpt "StorageClass" x.storageClass, putOpt "VersionId" x.versionId] + ofValue v := do + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let checksumType ← v.opt "ChecksumType" + let eTag ← v.opt "ETag" + let isLatest ← v.opt "IsLatest" + let key ← v.opt "Key" + let lastModified ← v.opt "LastModified" + let owner ← v.opt "Owner" + let restoreStatus ← v.opt "RestoreStatus" + let size ← v.opt "Size" + let storageClass ← v.opt "StorageClass" + let versionId ← v.opt "VersionId" + return { checksumAlgorithm, checksumType, eTag, isLatest, key, lastModified, owner, restoreStatus, size, storageClass, versionId } + +/-- The container element for an ownership control rule. -/ +structure OwnershipControlsRule where + objectOwnership : ObjectOwnership +deriving DecidableEq, Repr, Inhabited + +instance : Shape OwnershipControlsRule where + schema := .struct "OwnershipControlsRule" [({ name := "ObjectOwnership", required := true }, (Shape.schema ObjectOwnership))] + toValue x := record [put "ObjectOwnership" x.objectOwnership] + ofValue v := do + let objectOwnership ← v.req "ObjectOwnership" + return { objectOwnership } + +/-- Amazon S3 keys for log objects are partitioned in the following format: [DestinationPrefix][SourceAccountId]/[SourceRegion]/[SourceBucket]/[YYYY]/[MM]/[DD]/[YYYY]-[MM]-[DD]-[hh]-[mm]-[ss]-[UniqueString] PartitionedPrefix defaults to EventTi -/ +structure PartitionedPrefix where + /-- Specifies the partition date source for the partitioned prefix. -/ + partitionDateSource : Option PartitionDateSource := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PartitionedPrefix where + schema := .struct "PartitionedPrefix" [({ name := "PartitionDateSource" }, (Shape.schema PartitionDateSource))] + toValue x := record [putOpt "PartitionDateSource" x.partitionDateSource] + ofValue v := do + let partitionDateSource ← v.opt "PartitionDateSource" + return { partitionDateSource } + +/-- This data type contains information about the progress event of an operation. -/ +structure ProgressEvent where + /-- The Progress event details. -/ + details : Option Progress := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ProgressEvent where + schema := .struct "ProgressEvent" [({ name := "Details" }, (Shape.schema Progress))] + toValue x := record [putOpt "Details" x.details] + ofValue v := do + let details ← v.opt "Details" + return { details } + +structure PutBucketLifecycleConfigurationOutput where + /-- Indicates which default minimum object size behavior is applied to the lifecycle configuration. -/ + transitionDefaultMinimumObjectSize : Option TransitionDefaultMinimumObjectSize := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutBucketLifecycleConfigurationOutput where + schema := .struct "PutBucketLifecycleConfigurationOutput" [({ name := "TransitionDefaultMinimumObjectSize", location := .header "x-amz-transition-default-minimum-object-size" }, (Shape.schema TransitionDefaultMinimumObjectSize))] + toValue x := record [putOpt "TransitionDefaultMinimumObjectSize" x.transitionDefaultMinimumObjectSize] + ofValue v := do + let transitionDefaultMinimumObjectSize ← v.opt "TransitionDefaultMinimumObjectSize" + return { transitionDefaultMinimumObjectSize } + +structure PutBucketPolicyRequest where + /-- The name of the bucket. -/ + bucket : String + /-- Indicates the algorithm used to create the checksum for the request when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- Set this parameter to true to confirm that you want to remove your permissions to change this bucket policy in the future. -/ + confirmRemoveSelfBucketAccess : Option Bool := none + /-- The MD5 hash of the request body. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The bucket policy as a JSON document. -/ + policy : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutBucketPolicyRequest where + schema := .struct "PutBucketPolicyRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ConfirmRemoveSelfBucketAccess", location := .header "x-amz-confirm-remove-self-bucket-access" }, .bool), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Policy", required := true, location := .payload }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ConfirmRemoveSelfBucketAccess" x.confirmRemoveSelfBucketAccess, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Policy" x.policy] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let confirmRemoveSelfBucketAccess ← v.opt "ConfirmRemoveSelfBucketAccess" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let policy ← v.req "Policy" + return { bucket, checksumAlgorithm, confirmRemoveSelfBucketAccess, contentMD5, expectedBucketOwner, policy } + +structure PutObjectAclOutput where + requestCharged : Option RequestCharged := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutObjectAclOutput where + schema := .struct "PutObjectAclOutput" [({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged))] + toValue x := record [putOpt "RequestCharged" x.requestCharged] + ofValue v := do + let requestCharged ← v.opt "RequestCharged" + return { requestCharged } + +structure PutObjectAnnotationOutput where + /-- The name of the annotation. -/ + annotationName : Option String := none + /-- The CRC32 checksum of the stored annotation. -/ + checksumCRC32 : Option String := none + /-- The CRC32C checksum of the stored annotation. -/ + checksumCRC32C : Option String := none + /-- The CRC64NVME checksum of the stored annotation. -/ + checksumCRC64NVME : Option String := none + /-- The MD5 checksum of the stored annotation. -/ + checksumMD5 : Option String := none + /-- The SHA1 checksum of the stored annotation. -/ + checksumSHA1 : Option String := none + /-- The SHA256 checksum of the stored annotation. -/ + checksumSHA256 : Option String := none + /-- The SHA512 checksum of the stored annotation. -/ + checksumSHA512 : Option String := none + /-- The type of checksum used. -/ + checksumType : Option ChecksumType := none + /-- The XXHASH128 checksum of the stored annotation. -/ + checksumXXHASH128 : Option String := none + /-- The XXHASH3 checksum of the stored annotation. -/ + checksumXXHASH3 : Option String := none + /-- The XXHASH64 checksum of the stored annotation. -/ + checksumXXHASH64 : Option String := none + /-- The entity tag of the annotation. -/ + eTag : Option String := none + /-- The object key. -/ + key : Option String := none + /-- The version ID of the object that the annotation was attached to. -/ + objectVersionId : Option String := none + requestCharged : Option RequestCharged := none + /-- The server-side encryption algorithm used to encrypt the annotation. -/ + serverSideEncryption : Option ServerSideEncryption := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutObjectAnnotationOutput where + schema := .struct "PutObjectAnnotationOutput" [({ name := "AnnotationName" }, .string), + ({ name := "ChecksumCRC32", location := .header "x-amz-checksum-crc32" }, .string), + ({ name := "ChecksumCRC32C", location := .header "x-amz-checksum-crc32c" }, .string), + ({ name := "ChecksumCRC64NVME", location := .header "x-amz-checksum-crc64nvme" }, .string), + ({ name := "ChecksumMD5", location := .header "x-amz-checksum-md5" }, .string), + ({ name := "ChecksumSHA1", location := .header "x-amz-checksum-sha1" }, .string), + ({ name := "ChecksumSHA256", location := .header "x-amz-checksum-sha256" }, .string), + ({ name := "ChecksumSHA512", location := .header "x-amz-checksum-sha512" }, .string), + ({ name := "ChecksumType", location := .header "x-amz-checksum-type" }, (Shape.schema ChecksumType)), + ({ name := "ChecksumXXHASH128", location := .header "x-amz-checksum-xxhash128" }, .string), + ({ name := "ChecksumXXHASH3", location := .header "x-amz-checksum-xxhash3" }, .string), + ({ name := "ChecksumXXHASH64", location := .header "x-amz-checksum-xxhash64" }, .string), + ({ name := "ETag", location := .header "ETag" }, .string), + ({ name := "Key" }, .string), + ({ name := "ObjectVersionId", location := .header "x-amz-object-version-id" }, .string), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged)), + ({ name := "ServerSideEncryption", location := .header "x-amz-server-side-encryption" }, (Shape.schema ServerSideEncryption))] + toValue x := record [putOpt "AnnotationName" x.annotationName, putOpt "ChecksumCRC32" x.checksumCRC32, putOpt "ChecksumCRC32C" x.checksumCRC32C, putOpt "ChecksumCRC64NVME" x.checksumCRC64NVME, putOpt "ChecksumMD5" x.checksumMD5, putOpt "ChecksumSHA1" x.checksumSHA1, putOpt "ChecksumSHA256" x.checksumSHA256, putOpt "ChecksumSHA512" x.checksumSHA512, putOpt "ChecksumType" x.checksumType, putOpt "ChecksumXXHASH128" x.checksumXXHASH128, putOpt "ChecksumXXHASH3" x.checksumXXHASH3, putOpt "ChecksumXXHASH64" x.checksumXXHASH64, putOpt "ETag" x.eTag, putOpt "Key" x.key, putOpt "ObjectVersionId" x.objectVersionId, putOpt "RequestCharged" x.requestCharged, putOpt "ServerSideEncryption" x.serverSideEncryption] + ofValue v := do + let annotationName ← v.opt "AnnotationName" + let checksumCRC32 ← v.opt "ChecksumCRC32" + let checksumCRC32C ← v.opt "ChecksumCRC32C" + let checksumCRC64NVME ← v.opt "ChecksumCRC64NVME" + let checksumMD5 ← v.opt "ChecksumMD5" + let checksumSHA1 ← v.opt "ChecksumSHA1" + let checksumSHA256 ← v.opt "ChecksumSHA256" + let checksumSHA512 ← v.opt "ChecksumSHA512" + let checksumType ← v.opt "ChecksumType" + let checksumXXHASH128 ← v.opt "ChecksumXXHASH128" + let checksumXXHASH3 ← v.opt "ChecksumXXHASH3" + let checksumXXHASH64 ← v.opt "ChecksumXXHASH64" + let eTag ← v.opt "ETag" + let key ← v.opt "Key" + let objectVersionId ← v.opt "ObjectVersionId" + let requestCharged ← v.opt "RequestCharged" + let serverSideEncryption ← v.opt "ServerSideEncryption" + return { annotationName, checksumCRC32, checksumCRC32C, checksumCRC64NVME, checksumMD5, checksumSHA1, checksumSHA256, checksumSHA512, checksumType, checksumXXHASH128, checksumXXHASH3, checksumXXHASH64, eTag, key, objectVersionId, requestCharged, serverSideEncryption } + +structure PutObjectAnnotationRequest where + /-- The name of the annotation. -/ + annotationName : String + /-- The annotation payload. -/ + annotationPayload : Blob + /-- The name of the bucket that contains the object. -/ + bucket : String + /-- The checksum algorithm to use. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- Base64-encoded CRC32 checksum of the annotation payload. -/ + checksumCRC32 : Option String := none + /-- Base64-encoded CRC32C checksum of the annotation payload. -/ + checksumCRC32C : Option String := none + /-- Base64-encoded CRC64NVME checksum of the annotation payload. -/ + checksumCRC64NVME : Option String := none + /-- Base64-encoded MD5 checksum of the annotation payload. -/ + checksumMD5 : Option String := none + /-- Base64-encoded SHA1 checksum of the annotation payload. -/ + checksumSHA1 : Option String := none + /-- Base64-encoded SHA256 checksum of the annotation payload. -/ + checksumSHA256 : Option String := none + /-- Base64-encoded SHA512 checksum of the annotation payload. -/ + checksumSHA512 : Option String := none + /-- Base64-encoded XXHASH128 checksum of the annotation payload. -/ + checksumXXHASH128 : Option String := none + /-- Base64-encoded XXHASH3 checksum of the annotation payload. -/ + checksumXXHASH3 : Option String := none + /-- Base64-encoded XXHASH64 checksum of the annotation payload. -/ + checksumXXHASH64 : Option String := none + /-- Base64-encoded MD5 digest of the message. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The object key. -/ + key : String + /-- If specified, the operation only succeeds if the object's ETag matches the provided value. -/ + objectIfMatch : Option String := none + requestPayer : Option RequestPayer := none + /-- The version ID of the object to attach the annotation to. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutObjectAnnotationRequest where + schema := .struct "PutObjectAnnotationRequest" [({ name := "AnnotationName", required := true, location := .query "annotationName" }, .string), + ({ name := "AnnotationPayload", required := true, location := .payload }, .blob), + ({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ChecksumCRC32", location := .header "x-amz-checksum-crc32" }, .string), + ({ name := "ChecksumCRC32C", location := .header "x-amz-checksum-crc32c" }, .string), + ({ name := "ChecksumCRC64NVME", location := .header "x-amz-checksum-crc64nvme" }, .string), + ({ name := "ChecksumMD5", location := .header "x-amz-checksum-md5" }, .string), + ({ name := "ChecksumSHA1", location := .header "x-amz-checksum-sha1" }, .string), + ({ name := "ChecksumSHA256", location := .header "x-amz-checksum-sha256" }, .string), + ({ name := "ChecksumSHA512", location := .header "x-amz-checksum-sha512" }, .string), + ({ name := "ChecksumXXHASH128", location := .header "x-amz-checksum-xxhash128" }, .string), + ({ name := "ChecksumXXHASH3", location := .header "x-amz-checksum-xxhash3" }, .string), + ({ name := "ChecksumXXHASH64", location := .header "x-amz-checksum-xxhash64" }, .string), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "ObjectIfMatch", location := .header "x-amz-object-if-match" }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "VersionId", location := .query "versionId" }, .string)] + toValue x := record [put "AnnotationName" x.annotationName, put "AnnotationPayload" x.annotationPayload, put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ChecksumCRC32" x.checksumCRC32, putOpt "ChecksumCRC32C" x.checksumCRC32C, putOpt "ChecksumCRC64NVME" x.checksumCRC64NVME, putOpt "ChecksumMD5" x.checksumMD5, putOpt "ChecksumSHA1" x.checksumSHA1, putOpt "ChecksumSHA256" x.checksumSHA256, putOpt "ChecksumSHA512" x.checksumSHA512, putOpt "ChecksumXXHASH128" x.checksumXXHASH128, putOpt "ChecksumXXHASH3" x.checksumXXHASH3, putOpt "ChecksumXXHASH64" x.checksumXXHASH64, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Key" x.key, putOpt "ObjectIfMatch" x.objectIfMatch, putOpt "RequestPayer" x.requestPayer, putOpt "VersionId" x.versionId] + ofValue v := do + let annotationName ← v.req "AnnotationName" + let annotationPayload ← v.req "AnnotationPayload" + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let checksumCRC32 ← v.opt "ChecksumCRC32" + let checksumCRC32C ← v.opt "ChecksumCRC32C" + let checksumCRC64NVME ← v.opt "ChecksumCRC64NVME" + let checksumMD5 ← v.opt "ChecksumMD5" + let checksumSHA1 ← v.opt "ChecksumSHA1" + let checksumSHA256 ← v.opt "ChecksumSHA256" + let checksumSHA512 ← v.opt "ChecksumSHA512" + let checksumXXHASH128 ← v.opt "ChecksumXXHASH128" + let checksumXXHASH3 ← v.opt "ChecksumXXHASH3" + let checksumXXHASH64 ← v.opt "ChecksumXXHASH64" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let key ← v.req "Key" + let objectIfMatch ← v.opt "ObjectIfMatch" + let requestPayer ← v.opt "RequestPayer" + let versionId ← v.opt "VersionId" + return { annotationName, annotationPayload, bucket, checksumAlgorithm, checksumCRC32, checksumCRC32C, checksumCRC64NVME, checksumMD5, checksumSHA1, checksumSHA256, checksumSHA512, checksumXXHASH128, checksumXXHASH3, checksumXXHASH64, contentMD5, expectedBucketOwner, key, objectIfMatch, requestPayer, versionId } + +structure PutObjectLegalHoldOutput where + requestCharged : Option RequestCharged := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutObjectLegalHoldOutput where + schema := .struct "PutObjectLegalHoldOutput" [({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged))] + toValue x := record [putOpt "RequestCharged" x.requestCharged] + ofValue v := do + let requestCharged ← v.opt "RequestCharged" + return { requestCharged } + +structure PutObjectLockConfigurationOutput where + requestCharged : Option RequestCharged := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutObjectLockConfigurationOutput where + schema := .struct "PutObjectLockConfigurationOutput" [({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged))] + toValue x := record [putOpt "RequestCharged" x.requestCharged] + ofValue v := do + let requestCharged ← v.opt "RequestCharged" + return { requestCharged } + +structure PutObjectOutput where + /-- Indicates whether the uploaded object uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS). -/ + bucketKeyEnabled : Option Bool := none + /-- The Base64 encoded, 32-bit CRC32 checksum of the object. -/ + checksumCRC32 : Option String := none + /-- The Base64 encoded, 32-bit CRC32C checksum of the object. -/ + checksumCRC32C : Option String := none + /-- The Base64 encoded, 64-bit CRC64NVME checksum of the object. -/ + checksumCRC64NVME : Option String := none + /-- The Base64 encoded, 128-bit MD5 digest of the object. -/ + checksumMD5 : Option String := none + /-- The Base64 encoded, 160-bit SHA1 digest of the object. -/ + checksumSHA1 : Option String := none + /-- The Base64 encoded, 256-bit SHA256 digest of the object. -/ + checksumSHA256 : Option String := none + /-- The Base64 encoded, 512-bit SHA512 digest of the object. -/ + checksumSHA512 : Option String := none + /-- This header specifies the checksum type of the object, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. -/ + checksumType : Option ChecksumType := none + /-- The Base64 encoded, 128-bit XXHASH128 checksum of the object. -/ + checksumXXHASH128 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH3 checksum of the object. -/ + checksumXXHASH3 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH64 checksum of the object. -/ + checksumXXHASH64 : Option String := none + /-- Entity tag for the uploaded object. -/ + eTag : Option String := none + /-- If the expiration is configured for the object (see PutBucketLifecycleConfiguration ) in the Amazon S3 User Guide , the response includes this header. -/ + expiration : Option String := none + requestCharged : Option RequestCharged := none + /-- If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used. -/ + sseCustomerAlgorithm : Option String := none + /-- If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key. -/ + sseCustomerKeyMD5 : Option String := none + /-- If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. -/ + ssekmsEncryptionContext : Option String := none + /-- If present, indicates the ID of the KMS key that was used for object encryption. -/ + ssekmsKeyId : Option String := none + /-- The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx. -/ + serverSideEncryption : Option ServerSideEncryption := none + /-- The size of the object in bytes. -/ + size : Option Int := none + /-- Version ID of the object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutObjectOutput where + schema := .struct "PutObjectOutput" [({ name := "BucketKeyEnabled", location := .header "x-amz-server-side-encryption-bucket-key-enabled" }, .bool), + ({ name := "ChecksumCRC32", location := .header "x-amz-checksum-crc32" }, .string), + ({ name := "ChecksumCRC32C", location := .header "x-amz-checksum-crc32c" }, .string), + ({ name := "ChecksumCRC64NVME", location := .header "x-amz-checksum-crc64nvme" }, .string), + ({ name := "ChecksumMD5", location := .header "x-amz-checksum-md5" }, .string), + ({ name := "ChecksumSHA1", location := .header "x-amz-checksum-sha1" }, .string), + ({ name := "ChecksumSHA256", location := .header "x-amz-checksum-sha256" }, .string), + ({ name := "ChecksumSHA512", location := .header "x-amz-checksum-sha512" }, .string), + ({ name := "ChecksumType", location := .header "x-amz-checksum-type" }, (Shape.schema ChecksumType)), + ({ name := "ChecksumXXHASH128", location := .header "x-amz-checksum-xxhash128" }, .string), + ({ name := "ChecksumXXHASH3", location := .header "x-amz-checksum-xxhash3" }, .string), + ({ name := "ChecksumXXHASH64", location := .header "x-amz-checksum-xxhash64" }, .string), + ({ name := "ETag", location := .header "ETag" }, .string), + ({ name := "Expiration", location := .header "x-amz-expiration" }, .string), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged)), + ({ name := "SSECustomerAlgorithm", location := .header "x-amz-server-side-encryption-customer-algorithm" }, .string), + ({ name := "SSECustomerKeyMD5", location := .header "x-amz-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "SSEKMSEncryptionContext", location := .header "x-amz-server-side-encryption-context" }, .string), + ({ name := "SSEKMSKeyId", location := .header "x-amz-server-side-encryption-aws-kms-key-id" }, .string), + ({ name := "ServerSideEncryption", location := .header "x-amz-server-side-encryption" }, (Shape.schema ServerSideEncryption)), + ({ name := "Size", location := .header "x-amz-object-size" }, .int), + ({ name := "VersionId", location := .header "x-amz-version-id" }, .string)] + toValue x := record [putOpt "BucketKeyEnabled" x.bucketKeyEnabled, putOpt "ChecksumCRC32" x.checksumCRC32, putOpt "ChecksumCRC32C" x.checksumCRC32C, putOpt "ChecksumCRC64NVME" x.checksumCRC64NVME, putOpt "ChecksumMD5" x.checksumMD5, putOpt "ChecksumSHA1" x.checksumSHA1, putOpt "ChecksumSHA256" x.checksumSHA256, putOpt "ChecksumSHA512" x.checksumSHA512, putOpt "ChecksumType" x.checksumType, putOpt "ChecksumXXHASH128" x.checksumXXHASH128, putOpt "ChecksumXXHASH3" x.checksumXXHASH3, putOpt "ChecksumXXHASH64" x.checksumXXHASH64, putOpt "ETag" x.eTag, putOpt "Expiration" x.expiration, putOpt "RequestCharged" x.requestCharged, putOpt "SSECustomerAlgorithm" x.sseCustomerAlgorithm, putOpt "SSECustomerKeyMD5" x.sseCustomerKeyMD5, putOpt "SSEKMSEncryptionContext" x.ssekmsEncryptionContext, putOpt "SSEKMSKeyId" x.ssekmsKeyId, putOpt "ServerSideEncryption" x.serverSideEncryption, putOpt "Size" x.size, putOpt "VersionId" x.versionId] + ofValue v := do + let bucketKeyEnabled ← v.opt "BucketKeyEnabled" + let checksumCRC32 ← v.opt "ChecksumCRC32" + let checksumCRC32C ← v.opt "ChecksumCRC32C" + let checksumCRC64NVME ← v.opt "ChecksumCRC64NVME" + let checksumMD5 ← v.opt "ChecksumMD5" + let checksumSHA1 ← v.opt "ChecksumSHA1" + let checksumSHA256 ← v.opt "ChecksumSHA256" + let checksumSHA512 ← v.opt "ChecksumSHA512" + let checksumType ← v.opt "ChecksumType" + let checksumXXHASH128 ← v.opt "ChecksumXXHASH128" + let checksumXXHASH3 ← v.opt "ChecksumXXHASH3" + let checksumXXHASH64 ← v.opt "ChecksumXXHASH64" + let eTag ← v.opt "ETag" + let expiration ← v.opt "Expiration" + let requestCharged ← v.opt "RequestCharged" + let sseCustomerAlgorithm ← v.opt "SSECustomerAlgorithm" + let sseCustomerKeyMD5 ← v.opt "SSECustomerKeyMD5" + let ssekmsEncryptionContext ← v.opt "SSEKMSEncryptionContext" + let ssekmsKeyId ← v.opt "SSEKMSKeyId" + let serverSideEncryption ← v.opt "ServerSideEncryption" + let size ← v.opt "Size" + let versionId ← v.opt "VersionId" + return { bucketKeyEnabled, checksumCRC32, checksumCRC32C, checksumCRC64NVME, checksumMD5, checksumSHA1, checksumSHA256, checksumSHA512, checksumType, checksumXXHASH128, checksumXXHASH3, checksumXXHASH64, eTag, expiration, requestCharged, sseCustomerAlgorithm, sseCustomerKeyMD5, ssekmsEncryptionContext, ssekmsKeyId, serverSideEncryption, size, versionId } + +structure PutObjectRequest where + /-- The canned ACL to apply to the object. -/ + acl : Option ObjectCannedACL := none + /-- Object data. -/ + body : Option Blob := none + /-- The bucket name to which the PUT action was initiated. -/ + bucket : String + /-- Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using Key Management Service (KMS) keys (SSE-KMS). -/ + bucketKeyEnabled : Option Bool := none + /-- Can be used to specify caching behavior along the request/reply chain. -/ + cacheControl : Option String := none + /-- Indicates the algorithm used to create the checksum for the object when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumCRC32 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumCRC32C : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumCRC64NVME : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumMD5 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumSHA1 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumSHA256 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumSHA512 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumXXHASH128 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumXXHASH3 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumXXHASH64 : Option String := none + /-- Specifies presentational information for the object. -/ + contentDisposition : Option String := none + /-- Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. -/ + contentEncoding : Option String := none + /-- The language the content is in. -/ + contentLanguage : Option String := none + /-- Size of the body in bytes. -/ + contentLength : Option Int := none + /-- The Base64 encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. -/ + contentMD5 : Option String := none + /-- A standard MIME type describing the format of the contents. -/ + contentType : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The date and time at which the object is no longer cacheable. -/ + expires : Option String := none + /-- Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object. -/ + grantFullControl : Option String := none + /-- Allows grantee to read the object data and its metadata. -/ + grantRead : Option String := none + /-- Allows grantee to read the object ACL. -/ + grantReadACP : Option String := none + /-- Allows grantee to write the ACL for the applicable object. -/ + grantWriteACP : Option String := none + /-- Uploads the object only if the ETag (entity tag) value provided during the WRITE operation matches the ETag of the object in S3. -/ + ifMatch : Option String := none + /-- Uploads the object only if the object key name does not already exist in the bucket specified. -/ + ifNoneMatch : Option String := none + /-- Object key for which the PUT action was initiated. -/ + key : String + /-- A map of metadata to store with the object in S3. -/ + metadata : Option (Dict String String) := none + /-- Specifies the event hold status to apply to this object. -/ + objectLockEventHold : Option ObjectLockEventHold := none + /-- Specifies the event hold duration in days to apply to this object. -/ + objectLockEventHoldDurationDays : Option Int := none + /-- Specifies the event hold duration in years to apply to this object. -/ + objectLockEventHoldDurationYears : Option Int := none + /-- Specifies whether a legal hold will be applied to this object. -/ + objectLockLegalHoldStatus : Option ObjectLockLegalHoldStatus := none + /-- The Object Lock mode that you want to apply to this object. -/ + objectLockMode : Option ObjectLockMode := none + /-- The date and time when you want this object's Object Lock to expire. -/ + objectLockRetainUntilDate : Option Timestamp := none + requestPayer : Option RequestPayer := none + /-- Specifies the algorithm to use when encrypting the object (for example, AES256 ). -/ + sseCustomerAlgorithm : Option String := none + /-- Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. -/ + sseCustomerKey : Option String := none + /-- Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. -/ + sseCustomerKeyMD5 : Option String := none + /-- Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. -/ + ssekmsEncryptionContext : Option String := none + /-- Specifies the KMS key ID (Key ID, Key ARN, or Key Alias) to use for object encryption. -/ + ssekmsKeyId : Option String := none + /-- The server-side encryption algorithm that was used when you store this object in Amazon S3 or Amazon FSx. -/ + serverSideEncryption : Option ServerSideEncryption := none + /-- By default, Amazon S3 uses the STANDARD Storage Class to store newly created objects. -/ + storageClass : Option StorageClass := none + /-- The tag-set for the object. -/ + tagging : Option String := none + /-- If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. -/ + websiteRedirectLocation : Option String := none + /-- Specifies the offset for appending data to existing objects in bytes. -/ + writeOffsetBytes : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutObjectRequest where + schema := .struct "PutObjectRequest" [({ name := "ACL", location := .header "x-amz-acl" }, (Shape.schema ObjectCannedACL)), + ({ name := "Body", location := .payload }, .blob), + ({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "BucketKeyEnabled", location := .header "x-amz-server-side-encryption-bucket-key-enabled" }, .bool), + ({ name := "CacheControl", location := .header "Cache-Control" }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ChecksumCRC32", location := .header "x-amz-checksum-crc32" }, .string), + ({ name := "ChecksumCRC32C", location := .header "x-amz-checksum-crc32c" }, .string), + ({ name := "ChecksumCRC64NVME", location := .header "x-amz-checksum-crc64nvme" }, .string), + ({ name := "ChecksumMD5", location := .header "x-amz-checksum-md5" }, .string), + ({ name := "ChecksumSHA1", location := .header "x-amz-checksum-sha1" }, .string), + ({ name := "ChecksumSHA256", location := .header "x-amz-checksum-sha256" }, .string), + ({ name := "ChecksumSHA512", location := .header "x-amz-checksum-sha512" }, .string), + ({ name := "ChecksumXXHASH128", location := .header "x-amz-checksum-xxhash128" }, .string), + ({ name := "ChecksumXXHASH3", location := .header "x-amz-checksum-xxhash3" }, .string), + ({ name := "ChecksumXXHASH64", location := .header "x-amz-checksum-xxhash64" }, .string), + ({ name := "ContentDisposition", location := .header "Content-Disposition" }, .string), + ({ name := "ContentEncoding", location := .header "Content-Encoding" }, .string), + ({ name := "ContentLanguage", location := .header "Content-Language" }, .string), + ({ name := "ContentLength", location := .header "Content-Length" }, .int), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ContentType", location := .header "Content-Type" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Expires", location := .header "Expires" }, .string), + ({ name := "GrantFullControl", location := .header "x-amz-grant-full-control" }, .string), + ({ name := "GrantRead", location := .header "x-amz-grant-read" }, .string), + ({ name := "GrantReadACP", location := .header "x-amz-grant-read-acp" }, .string), + ({ name := "GrantWriteACP", location := .header "x-amz-grant-write-acp" }, .string), + ({ name := "IfMatch", location := .header "If-Match" }, .string), + ({ name := "IfNoneMatch", location := .header "If-None-Match" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "Metadata", location := .prefixHeaders "x-amz-meta-" }, (.map .string .string "key" "value")), + ({ name := "ObjectLockEventHold", location := .header "x-amz-object-lock-event-hold" }, (Shape.schema ObjectLockEventHold)), + ({ name := "ObjectLockEventHoldDurationDays", location := .header "x-amz-object-lock-event-hold-duration-days" }, .int), + ({ name := "ObjectLockEventHoldDurationYears", location := .header "x-amz-object-lock-event-hold-duration-years" }, .int), + ({ name := "ObjectLockLegalHoldStatus", location := .header "x-amz-object-lock-legal-hold" }, (Shape.schema ObjectLockLegalHoldStatus)), + ({ name := "ObjectLockMode", location := .header "x-amz-object-lock-mode" }, (Shape.schema ObjectLockMode)), + ({ name := "ObjectLockRetainUntilDate", location := .header "x-amz-object-lock-retain-until-date" }, (.time (some .dateTime))), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "SSECustomerAlgorithm", location := .header "x-amz-server-side-encryption-customer-algorithm" }, .string), + ({ name := "SSECustomerKey", location := .header "x-amz-server-side-encryption-customer-key" }, .string), + ({ name := "SSECustomerKeyMD5", location := .header "x-amz-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "SSEKMSEncryptionContext", location := .header "x-amz-server-side-encryption-context" }, .string), + ({ name := "SSEKMSKeyId", location := .header "x-amz-server-side-encryption-aws-kms-key-id" }, .string), + ({ name := "ServerSideEncryption", location := .header "x-amz-server-side-encryption" }, (Shape.schema ServerSideEncryption)), + ({ name := "StorageClass", location := .header "x-amz-storage-class" }, (Shape.schema StorageClass)), + ({ name := "Tagging", location := .header "x-amz-tagging" }, .string), + ({ name := "WebsiteRedirectLocation", location := .header "x-amz-website-redirect-location" }, .string), + ({ name := "WriteOffsetBytes", location := .header "x-amz-write-offset-bytes" }, .int)] + toValue x := record [putOpt "ACL" x.acl, putOpt "Body" x.body, put "Bucket" x.bucket, putOpt "BucketKeyEnabled" x.bucketKeyEnabled, putOpt "CacheControl" x.cacheControl, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ChecksumCRC32" x.checksumCRC32, putOpt "ChecksumCRC32C" x.checksumCRC32C, putOpt "ChecksumCRC64NVME" x.checksumCRC64NVME, putOpt "ChecksumMD5" x.checksumMD5, putOpt "ChecksumSHA1" x.checksumSHA1, putOpt "ChecksumSHA256" x.checksumSHA256, putOpt "ChecksumSHA512" x.checksumSHA512, putOpt "ChecksumXXHASH128" x.checksumXXHASH128, putOpt "ChecksumXXHASH3" x.checksumXXHASH3, putOpt "ChecksumXXHASH64" x.checksumXXHASH64, putOpt "ContentDisposition" x.contentDisposition, putOpt "ContentEncoding" x.contentEncoding, putOpt "ContentLanguage" x.contentLanguage, putOpt "ContentLength" x.contentLength, putOpt "ContentMD5" x.contentMD5, putOpt "ContentType" x.contentType, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, putOpt "Expires" x.expires, putOpt "GrantFullControl" x.grantFullControl, putOpt "GrantRead" x.grantRead, putOpt "GrantReadACP" x.grantReadACP, putOpt "GrantWriteACP" x.grantWriteACP, putOpt "IfMatch" x.ifMatch, putOpt "IfNoneMatch" x.ifNoneMatch, put "Key" x.key, putOpt "Metadata" x.metadata, putOpt "ObjectLockEventHold" x.objectLockEventHold, putOpt "ObjectLockEventHoldDurationDays" x.objectLockEventHoldDurationDays, putOpt "ObjectLockEventHoldDurationYears" x.objectLockEventHoldDurationYears, putOpt "ObjectLockLegalHoldStatus" x.objectLockLegalHoldStatus, putOpt "ObjectLockMode" x.objectLockMode, putOpt "ObjectLockRetainUntilDate" x.objectLockRetainUntilDate, putOpt "RequestPayer" x.requestPayer, putOpt "SSECustomerAlgorithm" x.sseCustomerAlgorithm, putOpt "SSECustomerKey" x.sseCustomerKey, putOpt "SSECustomerKeyMD5" x.sseCustomerKeyMD5, putOpt "SSEKMSEncryptionContext" x.ssekmsEncryptionContext, putOpt "SSEKMSKeyId" x.ssekmsKeyId, putOpt "ServerSideEncryption" x.serverSideEncryption, putOpt "StorageClass" x.storageClass, putOpt "Tagging" x.tagging, putOpt "WebsiteRedirectLocation" x.websiteRedirectLocation, putOpt "WriteOffsetBytes" x.writeOffsetBytes] + ofValue v := do + let acl ← v.opt "ACL" + let body ← v.opt "Body" + let bucket ← v.req "Bucket" + let bucketKeyEnabled ← v.opt "BucketKeyEnabled" + let cacheControl ← v.opt "CacheControl" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let checksumCRC32 ← v.opt "ChecksumCRC32" + let checksumCRC32C ← v.opt "ChecksumCRC32C" + let checksumCRC64NVME ← v.opt "ChecksumCRC64NVME" + let checksumMD5 ← v.opt "ChecksumMD5" + let checksumSHA1 ← v.opt "ChecksumSHA1" + let checksumSHA256 ← v.opt "ChecksumSHA256" + let checksumSHA512 ← v.opt "ChecksumSHA512" + let checksumXXHASH128 ← v.opt "ChecksumXXHASH128" + let checksumXXHASH3 ← v.opt "ChecksumXXHASH3" + let checksumXXHASH64 ← v.opt "ChecksumXXHASH64" + let contentDisposition ← v.opt "ContentDisposition" + let contentEncoding ← v.opt "ContentEncoding" + let contentLanguage ← v.opt "ContentLanguage" + let contentLength ← v.opt "ContentLength" + let contentMD5 ← v.opt "ContentMD5" + let contentType ← v.opt "ContentType" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let expires ← v.opt "Expires" + let grantFullControl ← v.opt "GrantFullControl" + let grantRead ← v.opt "GrantRead" + let grantReadACP ← v.opt "GrantReadACP" + let grantWriteACP ← v.opt "GrantWriteACP" + let ifMatch ← v.opt "IfMatch" + let ifNoneMatch ← v.opt "IfNoneMatch" + let key ← v.req "Key" + let metadata ← v.opt "Metadata" + let objectLockEventHold ← v.opt "ObjectLockEventHold" + let objectLockEventHoldDurationDays ← v.opt "ObjectLockEventHoldDurationDays" + let objectLockEventHoldDurationYears ← v.opt "ObjectLockEventHoldDurationYears" + let objectLockLegalHoldStatus ← v.opt "ObjectLockLegalHoldStatus" + let objectLockMode ← v.opt "ObjectLockMode" + let objectLockRetainUntilDate ← v.opt "ObjectLockRetainUntilDate" + let requestPayer ← v.opt "RequestPayer" + let sseCustomerAlgorithm ← v.opt "SSECustomerAlgorithm" + let sseCustomerKey ← v.opt "SSECustomerKey" + let sseCustomerKeyMD5 ← v.opt "SSECustomerKeyMD5" + let ssekmsEncryptionContext ← v.opt "SSEKMSEncryptionContext" + let ssekmsKeyId ← v.opt "SSEKMSKeyId" + let serverSideEncryption ← v.opt "ServerSideEncryption" + let storageClass ← v.opt "StorageClass" + let tagging ← v.opt "Tagging" + let websiteRedirectLocation ← v.opt "WebsiteRedirectLocation" + let writeOffsetBytes ← v.opt "WriteOffsetBytes" + return { acl, body, bucket, bucketKeyEnabled, cacheControl, checksumAlgorithm, checksumCRC32, checksumCRC32C, checksumCRC64NVME, checksumMD5, checksumSHA1, checksumSHA256, checksumSHA512, checksumXXHASH128, checksumXXHASH3, checksumXXHASH64, contentDisposition, contentEncoding, contentLanguage, contentLength, contentMD5, contentType, expectedBucketOwner, expires, grantFullControl, grantRead, grantReadACP, grantWriteACP, ifMatch, ifNoneMatch, key, metadata, objectLockEventHold, objectLockEventHoldDurationDays, objectLockEventHoldDurationYears, objectLockLegalHoldStatus, objectLockMode, objectLockRetainUntilDate, requestPayer, sseCustomerAlgorithm, sseCustomerKey, sseCustomerKeyMD5, ssekmsEncryptionContext, ssekmsKeyId, serverSideEncryption, storageClass, tagging, websiteRedirectLocation, writeOffsetBytes } + +structure PutObjectRetentionOutput where + requestCharged : Option RequestCharged := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutObjectRetentionOutput where + schema := .struct "PutObjectRetentionOutput" [({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged))] + toValue x := record [putOpt "RequestCharged" x.requestCharged] + ofValue v := do + let requestCharged ← v.opt "RequestCharged" + return { requestCharged } + +structure PutPublicAccessBlockRequest where + /-- The name of the Amazon S3 bucket whose PublicAccessBlock configuration you want to set. -/ + bucket : String + /-- Indicates the algorithm used to create the checksum for the object when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The MD5 hash of the PutPublicAccessBlock request body. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket. -/ + publicAccessBlockConfiguration : PublicAccessBlockConfiguration +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutPublicAccessBlockRequest where + schema := .struct "PutPublicAccessBlockRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "PublicAccessBlockConfiguration", required := true, xmlName := some "PublicAccessBlockConfiguration", location := .payload }, (Shape.schema PublicAccessBlockConfiguration))] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "PublicAccessBlockConfiguration" x.publicAccessBlockConfiguration] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let publicAccessBlockConfiguration ← v.req "PublicAccessBlockConfiguration" + return { bucket, checksumAlgorithm, contentMD5, expectedBucketOwner, publicAccessBlockConfiguration } + +/-- The journal table record expiration settings for a journal table in an S3 Metadata configuration. -/ +structure RecordExpiration where + /-- If you enable journal table record expiration, you can set the number of days to retain your journal table records. -/ + days : Option Int := none + /-- Specifies whether journal table record expiration is enabled or disabled. -/ + expiration : ExpirationState +deriving DecidableEq, Repr, Inhabited + +instance : Shape RecordExpiration where + schema := .struct "RecordExpiration" [({ name := "Days" }, .int), + ({ name := "Expiration", required := true }, (Shape.schema ExpirationState))] + toValue x := record [putOpt "Days" x.days, put "Expiration" x.expiration] + ofValue v := do + let days ← v.opt "Days" + let expiration ← v.req "Expiration" + return { days, expiration } + +/-- Specifies how requests are redirected. -/ +structure Redirect where + /-- The host name to use in the redirect request. -/ + hostName : Option String := none + /-- The HTTP redirect code to use on the response. -/ + httpRedirectCode : Option String := none + /-- Protocol to use when redirecting requests. -/ + protocol : Option Protocol_ := none + /-- The object key prefix to use in the redirect request. -/ + replaceKeyPrefixWith : Option String := none + /-- The specific object key to use in the redirect request. -/ + replaceKeyWith : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Redirect where + schema := .struct "Redirect" [({ name := "HostName" }, .string), + ({ name := "HttpRedirectCode" }, .string), + ({ name := "Protocol" }, (Shape.schema Protocol_)), + ({ name := "ReplaceKeyPrefixWith" }, .string), + ({ name := "ReplaceKeyWith" }, .string)] + toValue x := record [putOpt "HostName" x.hostName, putOpt "HttpRedirectCode" x.httpRedirectCode, putOpt "Protocol" x.protocol, putOpt "ReplaceKeyPrefixWith" x.replaceKeyPrefixWith, putOpt "ReplaceKeyWith" x.replaceKeyWith] + ofValue v := do + let hostName ← v.opt "HostName" + let httpRedirectCode ← v.opt "HttpRedirectCode" + let protocol ← v.opt "Protocol" + let replaceKeyPrefixWith ← v.opt "ReplaceKeyPrefixWith" + let replaceKeyWith ← v.opt "ReplaceKeyWith" + return { hostName, httpRedirectCode, protocol, replaceKeyPrefixWith, replaceKeyWith } + +/-- Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket. -/ +structure RedirectAllRequestsTo where + /-- Name of the host where requests are redirected. -/ + hostName : String + /-- Protocol to use when redirecting requests. -/ + protocol : Option Protocol_ := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RedirectAllRequestsTo where + schema := .struct "RedirectAllRequestsTo" [({ name := "HostName", required := true }, .string), + ({ name := "Protocol" }, (Shape.schema Protocol_))] + toValue x := record [put "HostName" x.hostName, putOpt "Protocol" x.protocol] + ofValue v := do + let hostName ← v.req "HostName" + let protocol ← v.opt "Protocol" + return { hostName, protocol } + +/-- A filter that you can specify for selection for modifications on replicas. -/ +structure ReplicaModifications where + /-- Specifies whether Amazon S3 replicates modifications on replicas. -/ + status : ReplicaModificationsStatus +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicaModifications where + schema := .struct "ReplicaModifications" [({ name := "Status", required := true }, (Shape.schema ReplicaModificationsStatus))] + toValue x := record [put "Status" x.status] + ofValue v := do + let status ← v.req "Status" + return { status } + +/-- A container for specifying one or more prefix or tag filters. -/ +structure ReplicationRuleOrOperator where + /-- An array of object key name prefixes. -/ + prefixes : Option (List String) := none + /-- An array of tags containing key and value pairs. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicationRuleOrOperator where + schema := .struct "ReplicationRuleOrOperator" [({ name := "Prefixes", xmlName := some "Prefix", flattened := true }, (.list .string "Prefix")), + ({ name := "Tags", xmlName := some "Tag", flattened := true }, (.list (Shape.schema Tag) "Tag"))] + toValue x := record [putOpt "Prefixes" x.prefixes, putOpt "Tags" x.tags] + ofValue v := do + let prefixes ← v.opt "Prefixes" + let tags ← v.opt "Tags" + return { prefixes, tags } + +/-- A container specifying S3 Replication Time Control (S3 RTC) related information, including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. -/ +structure ReplicationTime where + /-- Specifies whether the replication time is enabled. -/ + status : ReplicationTimeStatus + /-- A container specifying the time by which replication should be complete for all objects and operations on objects. -/ + time : ReplicationTimeValue +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicationTime where + schema := .struct "ReplicationTime" [({ name := "Status", required := true }, (Shape.schema ReplicationTimeStatus)), + ({ name := "Time", required := true }, (Shape.schema ReplicationTimeValue))] + toValue x := record [put "Status" x.status, put "Time" x.time] + ofValue v := do + let status ← v.req "Status" + let time ← v.req "Time" + return { status, time } + +/-- Container for Payer. -/ +structure RequestPaymentConfiguration where + /-- Specifies who pays for the download and request fees. -/ + payer : Payer +deriving DecidableEq, Repr, Inhabited + +instance : Shape RequestPaymentConfiguration where + schema := .struct "RequestPaymentConfiguration" [({ name := "Payer", required := true }, (Shape.schema Payer))] + toValue x := record [put "Payer" x.payer] + ofValue v := do + let payer ← v.req "Payer" + return { payer } + +structure RestoreObjectOutput where + requestCharged : Option RequestCharged := none + /-- Indicates the path in the provided S3 output location where Select results will be restored to. -/ + restoreOutputPath : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreObjectOutput where + schema := .struct "RestoreObjectOutput" [({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged)), + ({ name := "RestoreOutputPath", location := .header "x-amz-restore-output-path" }, .string)] + toValue x := record [putOpt "RequestCharged" x.requestCharged, putOpt "RestoreOutputPath" x.restoreOutputPath] + ofValue v := do + let requestCharged ← v.opt "RequestCharged" + let restoreOutputPath ← v.opt "RestoreOutputPath" + return { requestCharged, restoreOutputPath } + +/-- Describes the default server-side encryption to apply to new objects in the bucket. -/ +structure ServerSideEncryptionByDefault where + /-- Amazon Web Services Key Management Service (KMS) customer managed key ID to use for the default encryption. -/ + kmsMasterKeyID : Option String := none + /-- Server-side encryption algorithm to use for the default encryption. -/ + sseAlgorithm : ServerSideEncryption +deriving DecidableEq, Repr, Inhabited + +instance : Shape ServerSideEncryptionByDefault where + schema := .struct "ServerSideEncryptionByDefault" [({ name := "KMSMasterKeyID" }, .string), + ({ name := "SSEAlgorithm", required := true }, (Shape.schema ServerSideEncryption))] + toValue x := record [putOpt "KMSMasterKeyID" x.kmsMasterKeyID, put "SSEAlgorithm" x.sseAlgorithm] + ofValue v := do + let kmsMasterKeyID ← v.opt "KMSMasterKeyID" + let sseAlgorithm ← v.req "SSEAlgorithm" + return { kmsMasterKeyID, sseAlgorithm } + +/-- A container for filter information for the selection of S3 objects encrypted with Amazon Web Services KMS. -/ +structure SseKmsEncryptedObjects where + /-- Specifies whether Amazon S3 replicates objects created with server-side encryption using an Amazon Web Services KMS key stored in Amazon Web Services Key Management Service. -/ + status : SseKmsEncryptedObjectsStatus +deriving DecidableEq, Repr, Inhabited + +instance : Shape SseKmsEncryptedObjects where + schema := .struct "SseKmsEncryptedObjects" [({ name := "Status", required := true }, (Shape.schema SseKmsEncryptedObjectsStatus))] + toValue x := record [put "Status" x.status] + ofValue v := do + let status ← v.req "Status" + return { status } + +/-- Container for the Stats Event. -/ +structure StatsEvent where + /-- The Stats event details. -/ + details : Option Stats := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StatsEvent where + schema := .struct "StatsEvent" [({ name := "Details" }, (Shape.schema Stats))] + toValue x := record [putOpt "Details" x.details] + ofValue v := do + let details ← v.opt "Details" + return { details } + +/-- Container for TagSet elements. -/ +structure Tagging where + /-- A collection for a set of tags. -/ + tagSet : (List Tag) +deriving DecidableEq, Repr, Inhabited + +instance : Shape Tagging where + schema := .struct "Tagging" [({ name := "TagSet", required := true }, (.list (Shape.schema Tag) "Tag"))] + toValue x := record [put "TagSet" x.tagSet] + ofValue v := do + let tagSet ← v.req "TagSet" + return { tagSet } + +/-- The S3 Intelligent-Tiering storage class is designed to optimize storage costs by automatically moving data to the most cost-effective storage access tier, without additional operational overhead. -/ +structure Tiering where + /-- S3 Intelligent-Tiering access tier. -/ + accessTier : IntelligentTieringAccessTier + /-- The number of consecutive days of no access after which an object will be eligible to be transitioned to the corresponding tier. -/ + days : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape Tiering where + schema := .struct "Tiering" [({ name := "AccessTier", required := true }, (Shape.schema IntelligentTieringAccessTier)), + ({ name := "Days", required := true }, .int)] + toValue x := record [put "AccessTier" x.accessTier, put "Days" x.days] + ofValue v := do + let accessTier ← v.req "AccessTier" + let days ← v.req "Days" + return { accessTier, days } + +/-- Specifies when an object transitions to a specified storage class. -/ +structure Transition where + /-- Indicates when objects are transitioned to the specified storage class. -/ + date : Option Timestamp := none + /-- Indicates the number of days after creation when objects are transitioned to the specified storage class. -/ + days : Option Int := none + /-- The storage class to which you want the object to transition. -/ + storageClass : Option TransitionStorageClass := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Transition where + schema := .struct "Transition" [({ name := "Date" }, (.time (some .dateTime))), + ({ name := "Days" }, .int), + ({ name := "StorageClass" }, (Shape.schema TransitionStorageClass))] + toValue x := record [putOpt "Date" x.date, putOpt "Days" x.days, putOpt "StorageClass" x.storageClass] + ofValue v := do + let date ← v.opt "Date" + let days ← v.opt "Days" + let storageClass ← v.opt "StorageClass" + return { date, days, storageClass } + +structure UpdateObjectEncryptionResponse where + requestCharged : Option RequestCharged := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateObjectEncryptionResponse where + schema := .struct "UpdateObjectEncryptionResponse" [({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged))] + toValue x := record [putOpt "RequestCharged" x.requestCharged] + ofValue v := do + let requestCharged ← v.opt "RequestCharged" + return { requestCharged } + +structure UploadPartCopyOutput where + /-- Indicates whether the multipart upload uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS). -/ + bucketKeyEnabled : Option Bool := none + /-- Container for all response elements. -/ + copyPartResult : Option CopyPartResult := none + /-- The version of the source object that was copied, if you have enabled versioning on the source bucket. -/ + copySourceVersionId : Option String := none + requestCharged : Option RequestCharged := none + /-- If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used. -/ + sseCustomerAlgorithm : Option String := none + /-- If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key. -/ + sseCustomerKeyMD5 : Option String := none + /-- If present, indicates the ID of the KMS key that was used for object encryption. -/ + ssekmsKeyId : Option String := none + /-- The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx. -/ + serverSideEncryption : Option ServerSideEncryption := none + /-- Version ID of the object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UploadPartCopyOutput where + schema := .struct "UploadPartCopyOutput" [({ name := "BucketKeyEnabled", location := .header "x-amz-server-side-encryption-bucket-key-enabled" }, .bool), + ({ name := "CopyPartResult", location := .payload }, (Shape.schema CopyPartResult)), + ({ name := "CopySourceVersionId", location := .header "x-amz-copy-source-version-id" }, .string), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged)), + ({ name := "SSECustomerAlgorithm", location := .header "x-amz-server-side-encryption-customer-algorithm" }, .string), + ({ name := "SSECustomerKeyMD5", location := .header "x-amz-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "SSEKMSKeyId", location := .header "x-amz-server-side-encryption-aws-kms-key-id" }, .string), + ({ name := "ServerSideEncryption", location := .header "x-amz-server-side-encryption" }, (Shape.schema ServerSideEncryption)), + ({ name := "VersionId", location := .header "x-amz-version-id" }, .string)] + toValue x := record [putOpt "BucketKeyEnabled" x.bucketKeyEnabled, putOpt "CopyPartResult" x.copyPartResult, putOpt "CopySourceVersionId" x.copySourceVersionId, putOpt "RequestCharged" x.requestCharged, putOpt "SSECustomerAlgorithm" x.sseCustomerAlgorithm, putOpt "SSECustomerKeyMD5" x.sseCustomerKeyMD5, putOpt "SSEKMSKeyId" x.ssekmsKeyId, putOpt "ServerSideEncryption" x.serverSideEncryption, putOpt "VersionId" x.versionId] + ofValue v := do + let bucketKeyEnabled ← v.opt "BucketKeyEnabled" + let copyPartResult ← v.opt "CopyPartResult" + let copySourceVersionId ← v.opt "CopySourceVersionId" + let requestCharged ← v.opt "RequestCharged" + let sseCustomerAlgorithm ← v.opt "SSECustomerAlgorithm" + let sseCustomerKeyMD5 ← v.opt "SSECustomerKeyMD5" + let ssekmsKeyId ← v.opt "SSEKMSKeyId" + let serverSideEncryption ← v.opt "ServerSideEncryption" + let versionId ← v.opt "VersionId" + return { bucketKeyEnabled, copyPartResult, copySourceVersionId, requestCharged, sseCustomerAlgorithm, sseCustomerKeyMD5, ssekmsKeyId, serverSideEncryption, versionId } + +structure UploadPartCopyRequest where + /-- The bucket name. -/ + bucket : String + /-- Specifies the source object for the copy operation. -/ + copySource : String + /-- Copies the object if its entity tag (ETag) matches the specified tag. -/ + copySourceIfMatch : Option String := none + /-- Copies the object if it has been modified since the specified time. -/ + copySourceIfModifiedSince : Option Timestamp := none + /-- Copies the object if its entity tag (ETag) is different than the specified ETag. -/ + copySourceIfNoneMatch : Option String := none + /-- Copies the object if it hasn't been modified since the specified time. -/ + copySourceIfUnmodifiedSince : Option Timestamp := none + /-- The range of bytes to copy from the source object. -/ + copySourceRange : Option String := none + /-- Specifies the algorithm to use when decrypting the source object (for example, AES256 ). -/ + copySourceSSECustomerAlgorithm : Option String := none + /-- Specifies the customer-provided encryption key for Amazon S3 to use to decrypt the source object. -/ + copySourceSSECustomerKey : Option String := none + /-- Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. -/ + copySourceSSECustomerKeyMD5 : Option String := none + /-- The account ID of the expected destination bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The account ID of the expected source bucket owner. -/ + expectedSourceBucketOwner : Option String := none + /-- Object key for which the multipart upload was initiated. -/ + key : String + /-- Part number of part being copied. -/ + partNumber : Int + requestPayer : Option RequestPayer := none + /-- Specifies the algorithm to use when encrypting the object (for example, AES256). -/ + sseCustomerAlgorithm : Option String := none + /-- Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. -/ + sseCustomerKey : Option String := none + /-- Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. -/ + sseCustomerKeyMD5 : Option String := none + /-- Upload ID identifying the multipart upload whose part is being copied. -/ + uploadId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape UploadPartCopyRequest where + schema := .struct "UploadPartCopyRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "CopySource", required := true, location := .header "x-amz-copy-source" }, .string), + ({ name := "CopySourceIfMatch", location := .header "x-amz-copy-source-if-match" }, .string), + ({ name := "CopySourceIfModifiedSince", location := .header "x-amz-copy-source-if-modified-since" }, (.time none)), + ({ name := "CopySourceIfNoneMatch", location := .header "x-amz-copy-source-if-none-match" }, .string), + ({ name := "CopySourceIfUnmodifiedSince", location := .header "x-amz-copy-source-if-unmodified-since" }, (.time none)), + ({ name := "CopySourceRange", location := .header "x-amz-copy-source-range" }, .string), + ({ name := "CopySourceSSECustomerAlgorithm", location := .header "x-amz-copy-source-server-side-encryption-customer-algorithm" }, .string), + ({ name := "CopySourceSSECustomerKey", location := .header "x-amz-copy-source-server-side-encryption-customer-key" }, .string), + ({ name := "CopySourceSSECustomerKeyMD5", location := .header "x-amz-copy-source-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "ExpectedSourceBucketOwner", location := .header "x-amz-source-expected-bucket-owner" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "PartNumber", required := true, location := .query "partNumber" }, .int), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "SSECustomerAlgorithm", location := .header "x-amz-server-side-encryption-customer-algorithm" }, .string), + ({ name := "SSECustomerKey", location := .header "x-amz-server-side-encryption-customer-key" }, .string), + ({ name := "SSECustomerKeyMD5", location := .header "x-amz-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "UploadId", required := true, location := .query "uploadId" }, .string)] + toValue x := record [put "Bucket" x.bucket, put "CopySource" x.copySource, putOpt "CopySourceIfMatch" x.copySourceIfMatch, putOpt "CopySourceIfModifiedSince" x.copySourceIfModifiedSince, putOpt "CopySourceIfNoneMatch" x.copySourceIfNoneMatch, putOpt "CopySourceIfUnmodifiedSince" x.copySourceIfUnmodifiedSince, putOpt "CopySourceRange" x.copySourceRange, putOpt "CopySourceSSECustomerAlgorithm" x.copySourceSSECustomerAlgorithm, putOpt "CopySourceSSECustomerKey" x.copySourceSSECustomerKey, putOpt "CopySourceSSECustomerKeyMD5" x.copySourceSSECustomerKeyMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, putOpt "ExpectedSourceBucketOwner" x.expectedSourceBucketOwner, put "Key" x.key, put "PartNumber" x.partNumber, putOpt "RequestPayer" x.requestPayer, putOpt "SSECustomerAlgorithm" x.sseCustomerAlgorithm, putOpt "SSECustomerKey" x.sseCustomerKey, putOpt "SSECustomerKeyMD5" x.sseCustomerKeyMD5, put "UploadId" x.uploadId] + ofValue v := do + let bucket ← v.req "Bucket" + let copySource ← v.req "CopySource" + let copySourceIfMatch ← v.opt "CopySourceIfMatch" + let copySourceIfModifiedSince ← v.opt "CopySourceIfModifiedSince" + let copySourceIfNoneMatch ← v.opt "CopySourceIfNoneMatch" + let copySourceIfUnmodifiedSince ← v.opt "CopySourceIfUnmodifiedSince" + let copySourceRange ← v.opt "CopySourceRange" + let copySourceSSECustomerAlgorithm ← v.opt "CopySourceSSECustomerAlgorithm" + let copySourceSSECustomerKey ← v.opt "CopySourceSSECustomerKey" + let copySourceSSECustomerKeyMD5 ← v.opt "CopySourceSSECustomerKeyMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let expectedSourceBucketOwner ← v.opt "ExpectedSourceBucketOwner" + let key ← v.req "Key" + let partNumber ← v.req "PartNumber" + let requestPayer ← v.opt "RequestPayer" + let sseCustomerAlgorithm ← v.opt "SSECustomerAlgorithm" + let sseCustomerKey ← v.opt "SSECustomerKey" + let sseCustomerKeyMD5 ← v.opt "SSECustomerKeyMD5" + let uploadId ← v.req "UploadId" + return { bucket, copySource, copySourceIfMatch, copySourceIfModifiedSince, copySourceIfNoneMatch, copySourceIfUnmodifiedSince, copySourceRange, copySourceSSECustomerAlgorithm, copySourceSSECustomerKey, copySourceSSECustomerKeyMD5, expectedBucketOwner, expectedSourceBucketOwner, key, partNumber, requestPayer, sseCustomerAlgorithm, sseCustomerKey, sseCustomerKeyMD5, uploadId } + +structure UploadPartOutput where + /-- Indicates whether the multipart upload uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS). -/ + bucketKeyEnabled : Option Bool := none + /-- The Base64 encoded, 32-bit CRC32 checksum of the part. -/ + checksumCRC32 : Option String := none + /-- The Base64 encoded, 32-bit CRC32C checksum of the part. -/ + checksumCRC32C : Option String := none + /-- The Base64 encoded, 64-bit CRC64NVME checksum of the part. -/ + checksumCRC64NVME : Option String := none + /-- The Base64 encoded, 128-bit MD5 checksum of the part. -/ + checksumMD5 : Option String := none + /-- The Base64 encoded, 160-bit SHA1 checksum of the part. -/ + checksumSHA1 : Option String := none + /-- The Base64 encoded, 256-bit SHA256 checksum of the part. -/ + checksumSHA256 : Option String := none + /-- The Base64 encoded, 512-bit SHA512 checksum of the part. -/ + checksumSHA512 : Option String := none + /-- The Base64 encoded, 128-bit XXHASH128 checksum of the part. -/ + checksumXXHASH128 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH3 checksum of the part. -/ + checksumXXHASH3 : Option String := none + /-- The Base64 encoded, 64-bit XXHASH64 checksum of the part. -/ + checksumXXHASH64 : Option String := none + /-- Entity tag for the uploaded object. -/ + eTag : Option String := none + requestCharged : Option RequestCharged := none + /-- If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used. -/ + sseCustomerAlgorithm : Option String := none + /-- If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key. -/ + sseCustomerKeyMD5 : Option String := none + /-- If present, indicates the ID of the KMS key that was used for object encryption. -/ + ssekmsKeyId : Option String := none + /-- The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx. -/ + serverSideEncryption : Option ServerSideEncryption := none + /-- Version ID of the object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UploadPartOutput where + schema := .struct "UploadPartOutput" [({ name := "BucketKeyEnabled", location := .header "x-amz-server-side-encryption-bucket-key-enabled" }, .bool), + ({ name := "ChecksumCRC32", location := .header "x-amz-checksum-crc32" }, .string), + ({ name := "ChecksumCRC32C", location := .header "x-amz-checksum-crc32c" }, .string), + ({ name := "ChecksumCRC64NVME", location := .header "x-amz-checksum-crc64nvme" }, .string), + ({ name := "ChecksumMD5", location := .header "x-amz-checksum-md5" }, .string), + ({ name := "ChecksumSHA1", location := .header "x-amz-checksum-sha1" }, .string), + ({ name := "ChecksumSHA256", location := .header "x-amz-checksum-sha256" }, .string), + ({ name := "ChecksumSHA512", location := .header "x-amz-checksum-sha512" }, .string), + ({ name := "ChecksumXXHASH128", location := .header "x-amz-checksum-xxhash128" }, .string), + ({ name := "ChecksumXXHASH3", location := .header "x-amz-checksum-xxhash3" }, .string), + ({ name := "ChecksumXXHASH64", location := .header "x-amz-checksum-xxhash64" }, .string), + ({ name := "ETag", location := .header "ETag" }, .string), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged)), + ({ name := "SSECustomerAlgorithm", location := .header "x-amz-server-side-encryption-customer-algorithm" }, .string), + ({ name := "SSECustomerKeyMD5", location := .header "x-amz-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "SSEKMSKeyId", location := .header "x-amz-server-side-encryption-aws-kms-key-id" }, .string), + ({ name := "ServerSideEncryption", location := .header "x-amz-server-side-encryption" }, (Shape.schema ServerSideEncryption)), + ({ name := "VersionId", location := .header "x-amz-version-id" }, .string)] + toValue x := record [putOpt "BucketKeyEnabled" x.bucketKeyEnabled, putOpt "ChecksumCRC32" x.checksumCRC32, putOpt "ChecksumCRC32C" x.checksumCRC32C, putOpt "ChecksumCRC64NVME" x.checksumCRC64NVME, putOpt "ChecksumMD5" x.checksumMD5, putOpt "ChecksumSHA1" x.checksumSHA1, putOpt "ChecksumSHA256" x.checksumSHA256, putOpt "ChecksumSHA512" x.checksumSHA512, putOpt "ChecksumXXHASH128" x.checksumXXHASH128, putOpt "ChecksumXXHASH3" x.checksumXXHASH3, putOpt "ChecksumXXHASH64" x.checksumXXHASH64, putOpt "ETag" x.eTag, putOpt "RequestCharged" x.requestCharged, putOpt "SSECustomerAlgorithm" x.sseCustomerAlgorithm, putOpt "SSECustomerKeyMD5" x.sseCustomerKeyMD5, putOpt "SSEKMSKeyId" x.ssekmsKeyId, putOpt "ServerSideEncryption" x.serverSideEncryption, putOpt "VersionId" x.versionId] + ofValue v := do + let bucketKeyEnabled ← v.opt "BucketKeyEnabled" + let checksumCRC32 ← v.opt "ChecksumCRC32" + let checksumCRC32C ← v.opt "ChecksumCRC32C" + let checksumCRC64NVME ← v.opt "ChecksumCRC64NVME" + let checksumMD5 ← v.opt "ChecksumMD5" + let checksumSHA1 ← v.opt "ChecksumSHA1" + let checksumSHA256 ← v.opt "ChecksumSHA256" + let checksumSHA512 ← v.opt "ChecksumSHA512" + let checksumXXHASH128 ← v.opt "ChecksumXXHASH128" + let checksumXXHASH3 ← v.opt "ChecksumXXHASH3" + let checksumXXHASH64 ← v.opt "ChecksumXXHASH64" + let eTag ← v.opt "ETag" + let requestCharged ← v.opt "RequestCharged" + let sseCustomerAlgorithm ← v.opt "SSECustomerAlgorithm" + let sseCustomerKeyMD5 ← v.opt "SSECustomerKeyMD5" + let ssekmsKeyId ← v.opt "SSEKMSKeyId" + let serverSideEncryption ← v.opt "ServerSideEncryption" + let versionId ← v.opt "VersionId" + return { bucketKeyEnabled, checksumCRC32, checksumCRC32C, checksumCRC64NVME, checksumMD5, checksumSHA1, checksumSHA256, checksumSHA512, checksumXXHASH128, checksumXXHASH3, checksumXXHASH64, eTag, requestCharged, sseCustomerAlgorithm, sseCustomerKeyMD5, ssekmsKeyId, serverSideEncryption, versionId } + +structure UploadPartRequest where + /-- Object data. -/ + body : Option Blob := none + /-- The name of the bucket to which the multipart upload was initiated. -/ + bucket : String + /-- Indicates the algorithm used to create the checksum for the object when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumCRC32 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumCRC32C : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumCRC64NVME : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumMD5 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumSHA1 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumSHA256 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumSHA512 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumXXHASH128 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumXXHASH3 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumXXHASH64 : Option String := none + /-- Size of the body in bytes. -/ + contentLength : Option Int := none + /-- The Base64 encoded 128-bit MD5 digest of the part data. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- Object key for which the multipart upload was initiated. -/ + key : String + /-- Part number of part being uploaded. -/ + partNumber : Int + requestPayer : Option RequestPayer := none + /-- Specifies the algorithm to use when encrypting the object (for example, AES256). -/ + sseCustomerAlgorithm : Option String := none + /-- Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. -/ + sseCustomerKey : Option String := none + /-- Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. -/ + sseCustomerKeyMD5 : Option String := none + /-- Upload ID identifying the multipart upload whose part is being uploaded. -/ + uploadId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape UploadPartRequest where + schema := .struct "UploadPartRequest" [({ name := "Body", location := .payload }, .blob), + ({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ChecksumCRC32", location := .header "x-amz-checksum-crc32" }, .string), + ({ name := "ChecksumCRC32C", location := .header "x-amz-checksum-crc32c" }, .string), + ({ name := "ChecksumCRC64NVME", location := .header "x-amz-checksum-crc64nvme" }, .string), + ({ name := "ChecksumMD5", location := .header "x-amz-checksum-md5" }, .string), + ({ name := "ChecksumSHA1", location := .header "x-amz-checksum-sha1" }, .string), + ({ name := "ChecksumSHA256", location := .header "x-amz-checksum-sha256" }, .string), + ({ name := "ChecksumSHA512", location := .header "x-amz-checksum-sha512" }, .string), + ({ name := "ChecksumXXHASH128", location := .header "x-amz-checksum-xxhash128" }, .string), + ({ name := "ChecksumXXHASH3", location := .header "x-amz-checksum-xxhash3" }, .string), + ({ name := "ChecksumXXHASH64", location := .header "x-amz-checksum-xxhash64" }, .string), + ({ name := "ContentLength", location := .header "Content-Length" }, .int), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "PartNumber", required := true, location := .query "partNumber" }, .int), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "SSECustomerAlgorithm", location := .header "x-amz-server-side-encryption-customer-algorithm" }, .string), + ({ name := "SSECustomerKey", location := .header "x-amz-server-side-encryption-customer-key" }, .string), + ({ name := "SSECustomerKeyMD5", location := .header "x-amz-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "UploadId", required := true, location := .query "uploadId" }, .string)] + toValue x := record [putOpt "Body" x.body, put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ChecksumCRC32" x.checksumCRC32, putOpt "ChecksumCRC32C" x.checksumCRC32C, putOpt "ChecksumCRC64NVME" x.checksumCRC64NVME, putOpt "ChecksumMD5" x.checksumMD5, putOpt "ChecksumSHA1" x.checksumSHA1, putOpt "ChecksumSHA256" x.checksumSHA256, putOpt "ChecksumSHA512" x.checksumSHA512, putOpt "ChecksumXXHASH128" x.checksumXXHASH128, putOpt "ChecksumXXHASH3" x.checksumXXHASH3, putOpt "ChecksumXXHASH64" x.checksumXXHASH64, putOpt "ContentLength" x.contentLength, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Key" x.key, put "PartNumber" x.partNumber, putOpt "RequestPayer" x.requestPayer, putOpt "SSECustomerAlgorithm" x.sseCustomerAlgorithm, putOpt "SSECustomerKey" x.sseCustomerKey, putOpt "SSECustomerKeyMD5" x.sseCustomerKeyMD5, put "UploadId" x.uploadId] + ofValue v := do + let body ← v.opt "Body" + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let checksumCRC32 ← v.opt "ChecksumCRC32" + let checksumCRC32C ← v.opt "ChecksumCRC32C" + let checksumCRC64NVME ← v.opt "ChecksumCRC64NVME" + let checksumMD5 ← v.opt "ChecksumMD5" + let checksumSHA1 ← v.opt "ChecksumSHA1" + let checksumSHA256 ← v.opt "ChecksumSHA256" + let checksumSHA512 ← v.opt "ChecksumSHA512" + let checksumXXHASH128 ← v.opt "ChecksumXXHASH128" + let checksumXXHASH3 ← v.opt "ChecksumXXHASH3" + let checksumXXHASH64 ← v.opt "ChecksumXXHASH64" + let contentLength ← v.opt "ContentLength" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let key ← v.req "Key" + let partNumber ← v.req "PartNumber" + let requestPayer ← v.opt "RequestPayer" + let sseCustomerAlgorithm ← v.opt "SSECustomerAlgorithm" + let sseCustomerKey ← v.opt "SSECustomerKey" + let sseCustomerKeyMD5 ← v.opt "SSECustomerKeyMD5" + let uploadId ← v.req "UploadId" + return { body, bucket, checksumAlgorithm, checksumCRC32, checksumCRC32C, checksumCRC64NVME, checksumMD5, checksumSHA1, checksumSHA256, checksumSHA512, checksumXXHASH128, checksumXXHASH3, checksumXXHASH64, contentLength, contentMD5, expectedBucketOwner, key, partNumber, requestPayer, sseCustomerAlgorithm, sseCustomerKey, sseCustomerKeyMD5, uploadId } + +/-- A container for configuring the use of the related multi-Region KMS key in the destination Amazon Web Services Region for replication. -/ +structure UseSourceMultiRegionKey where + /-- Specifies whether Amazon S3 uses the related multi-Region KMS key in the destination Amazon Web Services Region to encrypt the replica. -/ + status : UseSourceMultiRegionKeyStatus +deriving DecidableEq, Repr, Inhabited + +instance : Shape UseSourceMultiRegionKey where + schema := .struct "UseSourceMultiRegionKey" [({ name := "Status", required := true }, (Shape.schema UseSourceMultiRegionKeyStatus))] + toValue x := record [put "Status" x.status] + ofValue v := do + let status ← v.req "Status" + return { status } + +/-- Describes the versioning state of an Amazon S3 bucket. -/ +structure VersioningConfiguration where + /-- Specifies whether MFA delete is enabled in the bucket versioning configuration. -/ + mfaDelete : Option MFADelete := none + /-- The versioning state of the bucket. -/ + status : Option BucketVersioningStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape VersioningConfiguration where + schema := .struct "VersioningConfiguration" [({ name := "MFADelete", xmlName := some "MfaDelete" }, (Shape.schema MFADelete)), + ({ name := "Status" }, (Shape.schema BucketVersioningStatus))] + toValue x := record [putOpt "MFADelete" x.mfaDelete, putOpt "Status" x.status] + ofValue v := do + let mfaDelete ← v.opt "MFADelete" + let status ← v.opt "Status" + return { mfaDelete, status } + +structure WriteGetObjectResponseRequest where + /-- Indicates that a range of bytes was specified. -/ + acceptRanges : Option String := none + /-- The object data. -/ + body : Option Blob := none + /-- Indicates whether the object stored in Amazon S3 uses an S3 bucket key for server-side encryption with Amazon Web Services KMS (SSE-KMS). -/ + bucketKeyEnabled : Option Bool := none + /-- Specifies caching behavior along the request/reply chain. -/ + cacheControl : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumCRC32 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumCRC32C : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumCRC64NVME : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumMD5 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumSHA1 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumSHA256 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumSHA512 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumXXHASH128 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumXXHASH3 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumXXHASH64 : Option String := none + /-- Specifies presentational information for the object. -/ + contentDisposition : Option String := none + /-- Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. -/ + contentEncoding : Option String := none + /-- The language the content is in. -/ + contentLanguage : Option String := none + /-- The size of the content body in bytes. -/ + contentLength : Option Int := none + /-- The portion of the object returned in the response. -/ + contentRange : Option String := none + /-- A standard MIME type describing the format of the object data. -/ + contentType : Option String := none + /-- Specifies whether an object stored in Amazon S3 is ( true ) or is not ( false ) a delete marker. -/ + deleteMarker : Option Bool := none + /-- An opaque identifier assigned by a web server to a specific version of a resource found at a URL. -/ + eTag : Option String := none + /-- A string that uniquely identifies an error condition. -/ + errorCode : Option String := none + /-- Contains a generic description of the error condition. -/ + errorMessage : Option String := none + /-- If the object expiration is configured (see PUT Bucket lifecycle), the response includes this header. -/ + expiration : Option String := none + /-- The date and time at which the object is no longer cacheable. -/ + expires : Option String := none + /-- The date and time that the object was last modified. -/ + lastModified : Option Timestamp := none + /-- A map of metadata to store with the object in S3. -/ + metadata : Option (Dict String String) := none + /-- Set to the number of metadata entries not returned in x-amz-meta headers. -/ + missingMeta : Option Int := none + /-- Indicates whether an object stored in Amazon S3 has an active legal hold. -/ + objectLockLegalHoldStatus : Option ObjectLockLegalHoldStatus := none + /-- Indicates whether an object stored in Amazon S3 has Object Lock enabled. -/ + objectLockMode : Option ObjectLockMode := none + /-- The date and time when Object Lock is configured to expire. -/ + objectLockRetainUntilDate : Option Timestamp := none + /-- The count of parts this object has. -/ + partsCount : Option Int := none + /-- Indicates if request involves bucket that is either a source or destination in a Replication rule. -/ + replicationStatus : Option ReplicationStatus := none + requestCharged : Option RequestCharged := none + /-- Route prefix to the HTTP URL generated. -/ + requestRoute : String + /-- A single use encrypted token that maps WriteGetObjectResponse to the end user GetObject request. -/ + requestToken : String + /-- Provides information about object restoration operation and expiration time of the restored object copy. -/ + restore : Option String := none + /-- Encryption algorithm used if server-side encryption with a customer-provided encryption key was specified for object stored in Amazon S3. -/ + sseCustomerAlgorithm : Option String := none + /-- 128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to encrypt data stored in S3. -/ + sseCustomerKeyMD5 : Option String := none + /-- If present, specifies the ID (Key ID, Key ARN, or Key Alias) of the Amazon Web Services Key Management Service (Amazon Web Services KMS) symmetric encryption customer managed key that was used for stored in Amazon S3 object. -/ + ssekmsKeyId : Option String := none + /-- The server-side encryption algorithm used when storing requested object in Amazon S3 or Amazon FSx. -/ + serverSideEncryption : Option ServerSideEncryption := none + /-- The integer status code for an HTTP response of a corresponding GetObject request. -/ + statusCode : Option Int := none + /-- Provides storage class information of the object. -/ + storageClass : Option StorageClass := none + /-- The number of tags, if any, on the object. -/ + tagCount : Option Int := none + /-- An ID used to reference a specific version of the object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape WriteGetObjectResponseRequest where + schema := .struct "WriteGetObjectResponseRequest" [({ name := "AcceptRanges", location := .header "x-amz-fwd-header-accept-ranges" }, .string), + ({ name := "Body", location := .payload }, .blob), + ({ name := "BucketKeyEnabled", location := .header "x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled" }, .bool), + ({ name := "CacheControl", location := .header "x-amz-fwd-header-Cache-Control" }, .string), + ({ name := "ChecksumCRC32", location := .header "x-amz-fwd-header-x-amz-checksum-crc32" }, .string), + ({ name := "ChecksumCRC32C", location := .header "x-amz-fwd-header-x-amz-checksum-crc32c" }, .string), + ({ name := "ChecksumCRC64NVME", location := .header "x-amz-fwd-header-x-amz-checksum-crc64nvme" }, .string), + ({ name := "ChecksumMD5", location := .header "x-amz-fwd-header-x-amz-checksum-md5" }, .string), + ({ name := "ChecksumSHA1", location := .header "x-amz-fwd-header-x-amz-checksum-sha1" }, .string), + ({ name := "ChecksumSHA256", location := .header "x-amz-fwd-header-x-amz-checksum-sha256" }, .string), + ({ name := "ChecksumSHA512", location := .header "x-amz-fwd-header-x-amz-checksum-sha512" }, .string), + ({ name := "ChecksumXXHASH128", location := .header "x-amz-fwd-header-x-amz-checksum-xxhash128" }, .string), + ({ name := "ChecksumXXHASH3", location := .header "x-amz-fwd-header-x-amz-checksum-xxhash3" }, .string), + ({ name := "ChecksumXXHASH64", location := .header "x-amz-fwd-header-x-amz-checksum-xxhash64" }, .string), + ({ name := "ContentDisposition", location := .header "x-amz-fwd-header-Content-Disposition" }, .string), + ({ name := "ContentEncoding", location := .header "x-amz-fwd-header-Content-Encoding" }, .string), + ({ name := "ContentLanguage", location := .header "x-amz-fwd-header-Content-Language" }, .string), + ({ name := "ContentLength", location := .header "Content-Length" }, .int), + ({ name := "ContentRange", location := .header "x-amz-fwd-header-Content-Range" }, .string), + ({ name := "ContentType", location := .header "x-amz-fwd-header-Content-Type" }, .string), + ({ name := "DeleteMarker", location := .header "x-amz-fwd-header-x-amz-delete-marker" }, .bool), + ({ name := "ETag", location := .header "x-amz-fwd-header-ETag" }, .string), + ({ name := "ErrorCode", location := .header "x-amz-fwd-error-code" }, .string), + ({ name := "ErrorMessage", location := .header "x-amz-fwd-error-message" }, .string), + ({ name := "Expiration", location := .header "x-amz-fwd-header-x-amz-expiration" }, .string), + ({ name := "Expires", location := .header "x-amz-fwd-header-Expires" }, .string), + ({ name := "LastModified", location := .header "x-amz-fwd-header-Last-Modified" }, (.time none)), + ({ name := "Metadata", location := .prefixHeaders "x-amz-meta-" }, (.map .string .string "key" "value")), + ({ name := "MissingMeta", location := .header "x-amz-fwd-header-x-amz-missing-meta" }, .int), + ({ name := "ObjectLockLegalHoldStatus", location := .header "x-amz-fwd-header-x-amz-object-lock-legal-hold" }, (Shape.schema ObjectLockLegalHoldStatus)), + ({ name := "ObjectLockMode", location := .header "x-amz-fwd-header-x-amz-object-lock-mode" }, (Shape.schema ObjectLockMode)), + ({ name := "ObjectLockRetainUntilDate", location := .header "x-amz-fwd-header-x-amz-object-lock-retain-until-date" }, (.time (some .dateTime))), + ({ name := "PartsCount", location := .header "x-amz-fwd-header-x-amz-mp-parts-count" }, .int), + ({ name := "ReplicationStatus", location := .header "x-amz-fwd-header-x-amz-replication-status" }, (Shape.schema ReplicationStatus)), + ({ name := "RequestCharged", location := .header "x-amz-fwd-header-x-amz-request-charged" }, (Shape.schema RequestCharged)), + ({ name := "RequestRoute", required := true, location := .header "x-amz-request-route" }, .string), + ({ name := "RequestToken", required := true, location := .header "x-amz-request-token" }, .string), + ({ name := "Restore", location := .header "x-amz-fwd-header-x-amz-restore" }, .string), + ({ name := "SSECustomerAlgorithm", location := .header "x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm" }, .string), + ({ name := "SSECustomerKeyMD5", location := .header "x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "SSEKMSKeyId", location := .header "x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id" }, .string), + ({ name := "ServerSideEncryption", location := .header "x-amz-fwd-header-x-amz-server-side-encryption" }, (Shape.schema ServerSideEncryption)), + ({ name := "StatusCode", location := .header "x-amz-fwd-status" }, .int), + ({ name := "StorageClass", location := .header "x-amz-fwd-header-x-amz-storage-class" }, (Shape.schema StorageClass)), + ({ name := "TagCount", location := .header "x-amz-fwd-header-x-amz-tagging-count" }, .int), + ({ name := "VersionId", location := .header "x-amz-fwd-header-x-amz-version-id" }, .string)] + toValue x := record [putOpt "AcceptRanges" x.acceptRanges, putOpt "Body" x.body, putOpt "BucketKeyEnabled" x.bucketKeyEnabled, putOpt "CacheControl" x.cacheControl, putOpt "ChecksumCRC32" x.checksumCRC32, putOpt "ChecksumCRC32C" x.checksumCRC32C, putOpt "ChecksumCRC64NVME" x.checksumCRC64NVME, putOpt "ChecksumMD5" x.checksumMD5, putOpt "ChecksumSHA1" x.checksumSHA1, putOpt "ChecksumSHA256" x.checksumSHA256, putOpt "ChecksumSHA512" x.checksumSHA512, putOpt "ChecksumXXHASH128" x.checksumXXHASH128, putOpt "ChecksumXXHASH3" x.checksumXXHASH3, putOpt "ChecksumXXHASH64" x.checksumXXHASH64, putOpt "ContentDisposition" x.contentDisposition, putOpt "ContentEncoding" x.contentEncoding, putOpt "ContentLanguage" x.contentLanguage, putOpt "ContentLength" x.contentLength, putOpt "ContentRange" x.contentRange, putOpt "ContentType" x.contentType, putOpt "DeleteMarker" x.deleteMarker, putOpt "ETag" x.eTag, putOpt "ErrorCode" x.errorCode, putOpt "ErrorMessage" x.errorMessage, putOpt "Expiration" x.expiration, putOpt "Expires" x.expires, putOpt "LastModified" x.lastModified, putOpt "Metadata" x.metadata, putOpt "MissingMeta" x.missingMeta, putOpt "ObjectLockLegalHoldStatus" x.objectLockLegalHoldStatus, putOpt "ObjectLockMode" x.objectLockMode, putOpt "ObjectLockRetainUntilDate" x.objectLockRetainUntilDate, putOpt "PartsCount" x.partsCount, putOpt "ReplicationStatus" x.replicationStatus, putOpt "RequestCharged" x.requestCharged, put "RequestRoute" x.requestRoute, put "RequestToken" x.requestToken, putOpt "Restore" x.restore, putOpt "SSECustomerAlgorithm" x.sseCustomerAlgorithm, putOpt "SSECustomerKeyMD5" x.sseCustomerKeyMD5, putOpt "SSEKMSKeyId" x.ssekmsKeyId, putOpt "ServerSideEncryption" x.serverSideEncryption, putOpt "StatusCode" x.statusCode, putOpt "StorageClass" x.storageClass, putOpt "TagCount" x.tagCount, putOpt "VersionId" x.versionId] + ofValue v := do + let acceptRanges ← v.opt "AcceptRanges" + let body ← v.opt "Body" + let bucketKeyEnabled ← v.opt "BucketKeyEnabled" + let cacheControl ← v.opt "CacheControl" + let checksumCRC32 ← v.opt "ChecksumCRC32" + let checksumCRC32C ← v.opt "ChecksumCRC32C" + let checksumCRC64NVME ← v.opt "ChecksumCRC64NVME" + let checksumMD5 ← v.opt "ChecksumMD5" + let checksumSHA1 ← v.opt "ChecksumSHA1" + let checksumSHA256 ← v.opt "ChecksumSHA256" + let checksumSHA512 ← v.opt "ChecksumSHA512" + let checksumXXHASH128 ← v.opt "ChecksumXXHASH128" + let checksumXXHASH3 ← v.opt "ChecksumXXHASH3" + let checksumXXHASH64 ← v.opt "ChecksumXXHASH64" + let contentDisposition ← v.opt "ContentDisposition" + let contentEncoding ← v.opt "ContentEncoding" + let contentLanguage ← v.opt "ContentLanguage" + let contentLength ← v.opt "ContentLength" + let contentRange ← v.opt "ContentRange" + let contentType ← v.opt "ContentType" + let deleteMarker ← v.opt "DeleteMarker" + let eTag ← v.opt "ETag" + let errorCode ← v.opt "ErrorCode" + let errorMessage ← v.opt "ErrorMessage" + let expiration ← v.opt "Expiration" + let expires ← v.opt "Expires" + let lastModified ← v.opt "LastModified" + let metadata ← v.opt "Metadata" + let missingMeta ← v.opt "MissingMeta" + let objectLockLegalHoldStatus ← v.opt "ObjectLockLegalHoldStatus" + let objectLockMode ← v.opt "ObjectLockMode" + let objectLockRetainUntilDate ← v.opt "ObjectLockRetainUntilDate" + let partsCount ← v.opt "PartsCount" + let replicationStatus ← v.opt "ReplicationStatus" + let requestCharged ← v.opt "RequestCharged" + let requestRoute ← v.req "RequestRoute" + let requestToken ← v.req "RequestToken" + let restore ← v.opt "Restore" + let sseCustomerAlgorithm ← v.opt "SSECustomerAlgorithm" + let sseCustomerKeyMD5 ← v.opt "SSECustomerKeyMD5" + let ssekmsKeyId ← v.opt "SSEKMSKeyId" + let serverSideEncryption ← v.opt "ServerSideEncryption" + let statusCode ← v.opt "StatusCode" + let storageClass ← v.opt "StorageClass" + let tagCount ← v.opt "TagCount" + let versionId ← v.opt "VersionId" + return { acceptRanges, body, bucketKeyEnabled, cacheControl, checksumCRC32, checksumCRC32C, checksumCRC64NVME, checksumMD5, checksumSHA1, checksumSHA256, checksumSHA512, checksumXXHASH128, checksumXXHASH3, checksumXXHASH64, contentDisposition, contentEncoding, contentLanguage, contentLength, contentRange, contentType, deleteMarker, eTag, errorCode, errorMessage, expiration, expires, lastModified, metadata, missingMeta, objectLockLegalHoldStatus, objectLockMode, objectLockRetainUntilDate, partsCount, replicationStatus, requestCharged, requestRoute, requestToken, restore, sseCustomerAlgorithm, sseCustomerKeyMD5, ssekmsKeyId, serverSideEncryption, statusCode, storageClass, tagCount, versionId } + +/-- Where to publish the analytics results. -/ +structure AnalyticsExportDestination where + /-- A destination signifying output to an S3 bucket. -/ + s3BucketDestination : AnalyticsS3BucketDestination +deriving DecidableEq, Repr, Inhabited + +instance : Shape AnalyticsExportDestination where + schema := .struct "AnalyticsExportDestination" [({ name := "S3BucketDestination", required := true }, (Shape.schema AnalyticsS3BucketDestination))] + toValue x := record [put "S3BucketDestination" x.s3BucketDestination] + ofValue v := do + let s3BucketDestination ← v.req "S3BucketDestination" + return { s3BucketDestination } + +/-- The filter used to describe a set of objects for analyses. -/ +inductive AnalyticsFilter where + /-- A conjunction (logical AND) of predicates, which is used in evaluating an analytics filter. -/ + | and (value : AnalyticsAndOperator) + /-- The prefix to use when evaluating an analytics filter. -/ + | «prefix» (value : String) + /-- The tag to use when evaluating an analytics filter. -/ + | tag (value : Tag) +deriving DecidableEq, Repr, Inhabited + +instance : Shape AnalyticsFilter where + schema := .union "AnalyticsFilter" [({ name := "And" }, (Shape.schema AnalyticsAndOperator)), + ({ name := "Prefix" }, .string), + ({ name := "Tag" }, (Shape.schema Tag))] + toValue + | .and value => record [put "And" value] + | .«prefix» value => record [put "Prefix" value] + | .tag value => record [put "Tag" value] + ofValue + | .record [("And", value)] => .and <$> Shape.ofValue value + | .record [("Prefix", value)] => .«prefix» <$> Shape.ofValue value + | .record [("Tag", value)] => .tag <$> Shape.ofValue value + | _ => .error "expected exactly one member of AnalyticsFilter" + +/-- Specifies the configuration for the annotation table associated with a bucket's Amazon S3 Metadata configuration. -/ +structure AnnotationTableConfiguration where + /-- The state of the annotation table. -/ + configurationState : AnnotationConfigurationState + encryptionConfiguration : Option MetadataTableEncryptionConfiguration := none + /-- The ARN of the IAM role used to manage the annotation table. -/ + role : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AnnotationTableConfiguration where + schema := .struct "AnnotationTableConfiguration" [({ name := "ConfigurationState", required := true }, (Shape.schema AnnotationConfigurationState)), + ({ name := "EncryptionConfiguration" }, (Shape.schema MetadataTableEncryptionConfiguration)), + ({ name := "Role" }, .string)] + toValue x := record [put "ConfigurationState" x.configurationState, putOpt "EncryptionConfiguration" x.encryptionConfiguration, putOpt "Role" x.role] + ofValue v := do + let configurationState ← v.req "ConfigurationState" + let encryptionConfiguration ← v.opt "EncryptionConfiguration" + let role ← v.opt "Role" + return { configurationState, encryptionConfiguration, role } + +/-- Specifies updates to apply to the annotation table configuration. -/ +structure AnnotationTableConfigurationUpdates where + /-- The new configuration state to apply. -/ + configurationState : AnnotationConfigurationState + encryptionConfiguration : Option MetadataTableEncryptionConfiguration := none + /-- The new IAM role ARN to apply. -/ + role : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AnnotationTableConfigurationUpdates where + schema := .struct "AnnotationTableConfigurationUpdates" [({ name := "ConfigurationState", required := true }, (Shape.schema AnnotationConfigurationState)), + ({ name := "EncryptionConfiguration" }, (Shape.schema MetadataTableEncryptionConfiguration)), + ({ name := "Role" }, .string)] + toValue x := record [put "ConfigurationState" x.configurationState, putOpt "EncryptionConfiguration" x.encryptionConfiguration, putOpt "Role" x.role] + ofValue v := do + let configurationState ← v.req "ConfigurationState" + let encryptionConfiguration ← v.opt "EncryptionConfiguration" + let role ← v.opt "Role" + return { configurationState, encryptionConfiguration, role } + +structure CompleteMultipartUploadRequest where + /-- Name of the bucket to which the multipart upload was initiated. -/ + bucket : String + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumCRC32 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumCRC32C : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumCRC64NVME : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumMD5 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumSHA1 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumSHA256 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumSHA512 : Option String := none + /-- This header specifies the checksum type of the object, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. -/ + checksumType : Option ChecksumType := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumXXHASH128 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumXXHASH3 : Option String := none + /-- This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. -/ + checksumXXHASH64 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- Uploads the object only if the ETag (entity tag) value provided during the WRITE operation matches the ETag of the object in S3. -/ + ifMatch : Option String := none + /-- Uploads the object only if the object key name does not already exist in the bucket specified. -/ + ifNoneMatch : Option String := none + /-- Object key for which the multipart upload was initiated. -/ + key : String + /-- The expected total object size of the multipart upload request. -/ + mpuObjectSize : Option Int := none + /-- The container for the multipart upload request information. -/ + multipartUpload : Option CompletedMultipartUpload := none + requestPayer : Option RequestPayer := none + /-- The server-side encryption (SSE) algorithm used to encrypt the object. -/ + sseCustomerAlgorithm : Option String := none + /-- The server-side encryption (SSE) customer managed key. -/ + sseCustomerKey : Option String := none + /-- The MD5 server-side encryption (SSE) customer managed key. -/ + sseCustomerKeyMD5 : Option String := none + /-- ID for the initiated multipart upload. -/ + uploadId : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CompleteMultipartUploadRequest where + schema := .struct "CompleteMultipartUploadRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumCRC32", location := .header "x-amz-checksum-crc32" }, .string), + ({ name := "ChecksumCRC32C", location := .header "x-amz-checksum-crc32c" }, .string), + ({ name := "ChecksumCRC64NVME", location := .header "x-amz-checksum-crc64nvme" }, .string), + ({ name := "ChecksumMD5", location := .header "x-amz-checksum-md5" }, .string), + ({ name := "ChecksumSHA1", location := .header "x-amz-checksum-sha1" }, .string), + ({ name := "ChecksumSHA256", location := .header "x-amz-checksum-sha256" }, .string), + ({ name := "ChecksumSHA512", location := .header "x-amz-checksum-sha512" }, .string), + ({ name := "ChecksumType", location := .header "x-amz-checksum-type" }, (Shape.schema ChecksumType)), + ({ name := "ChecksumXXHASH128", location := .header "x-amz-checksum-xxhash128" }, .string), + ({ name := "ChecksumXXHASH3", location := .header "x-amz-checksum-xxhash3" }, .string), + ({ name := "ChecksumXXHASH64", location := .header "x-amz-checksum-xxhash64" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "IfMatch", location := .header "If-Match" }, .string), + ({ name := "IfNoneMatch", location := .header "If-None-Match" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "MpuObjectSize", location := .header "x-amz-mp-object-size" }, .int), + ({ name := "MultipartUpload", xmlName := some "CompleteMultipartUpload", location := .payload }, (Shape.schema CompletedMultipartUpload)), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "SSECustomerAlgorithm", location := .header "x-amz-server-side-encryption-customer-algorithm" }, .string), + ({ name := "SSECustomerKey", location := .header "x-amz-server-side-encryption-customer-key" }, .string), + ({ name := "SSECustomerKeyMD5", location := .header "x-amz-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "UploadId", required := true, location := .query "uploadId" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumCRC32" x.checksumCRC32, putOpt "ChecksumCRC32C" x.checksumCRC32C, putOpt "ChecksumCRC64NVME" x.checksumCRC64NVME, putOpt "ChecksumMD5" x.checksumMD5, putOpt "ChecksumSHA1" x.checksumSHA1, putOpt "ChecksumSHA256" x.checksumSHA256, putOpt "ChecksumSHA512" x.checksumSHA512, putOpt "ChecksumType" x.checksumType, putOpt "ChecksumXXHASH128" x.checksumXXHASH128, putOpt "ChecksumXXHASH3" x.checksumXXHASH3, putOpt "ChecksumXXHASH64" x.checksumXXHASH64, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, putOpt "IfMatch" x.ifMatch, putOpt "IfNoneMatch" x.ifNoneMatch, put "Key" x.key, putOpt "MpuObjectSize" x.mpuObjectSize, putOpt "MultipartUpload" x.multipartUpload, putOpt "RequestPayer" x.requestPayer, putOpt "SSECustomerAlgorithm" x.sseCustomerAlgorithm, putOpt "SSECustomerKey" x.sseCustomerKey, putOpt "SSECustomerKeyMD5" x.sseCustomerKeyMD5, put "UploadId" x.uploadId] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumCRC32 ← v.opt "ChecksumCRC32" + let checksumCRC32C ← v.opt "ChecksumCRC32C" + let checksumCRC64NVME ← v.opt "ChecksumCRC64NVME" + let checksumMD5 ← v.opt "ChecksumMD5" + let checksumSHA1 ← v.opt "ChecksumSHA1" + let checksumSHA256 ← v.opt "ChecksumSHA256" + let checksumSHA512 ← v.opt "ChecksumSHA512" + let checksumType ← v.opt "ChecksumType" + let checksumXXHASH128 ← v.opt "ChecksumXXHASH128" + let checksumXXHASH3 ← v.opt "ChecksumXXHASH3" + let checksumXXHASH64 ← v.opt "ChecksumXXHASH64" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let ifMatch ← v.opt "IfMatch" + let ifNoneMatch ← v.opt "IfNoneMatch" + let key ← v.req "Key" + let mpuObjectSize ← v.opt "MpuObjectSize" + let multipartUpload ← v.opt "MultipartUpload" + let requestPayer ← v.opt "RequestPayer" + let sseCustomerAlgorithm ← v.opt "SSECustomerAlgorithm" + let sseCustomerKey ← v.opt "SSECustomerKey" + let sseCustomerKeyMD5 ← v.opt "SSECustomerKeyMD5" + let uploadId ← v.req "UploadId" + return { bucket, checksumCRC32, checksumCRC32C, checksumCRC64NVME, checksumMD5, checksumSHA1, checksumSHA256, checksumSHA512, checksumType, checksumXXHASH128, checksumXXHASH3, checksumXXHASH64, expectedBucketOwner, ifMatch, ifNoneMatch, key, mpuObjectSize, multipartUpload, requestPayer, sseCustomerAlgorithm, sseCustomerKey, sseCustomerKeyMD5, uploadId } + +structure CopyObjectOutput where + /-- Indicates whether the copied object uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS). -/ + bucketKeyEnabled : Option Bool := none + /-- Container for all response elements. -/ + copyObjectResult : Option CopyObjectResult := none + /-- Version ID of the source object that was copied. -/ + copySourceVersionId : Option String := none + /-- If the object expiration is configured, the response includes this header. -/ + expiration : Option String := none + requestCharged : Option RequestCharged := none + /-- If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used. -/ + sseCustomerAlgorithm : Option String := none + /-- If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key. -/ + sseCustomerKeyMD5 : Option String := none + /-- If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. -/ + ssekmsEncryptionContext : Option String := none + /-- If present, indicates the ID of the KMS key that was used for object encryption. -/ + ssekmsKeyId : Option String := none + /-- The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx. -/ + serverSideEncryption : Option ServerSideEncryption := none + /-- Version ID of the newly created copy. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CopyObjectOutput where + schema := .struct "CopyObjectOutput" [({ name := "BucketKeyEnabled", location := .header "x-amz-server-side-encryption-bucket-key-enabled" }, .bool), + ({ name := "CopyObjectResult", location := .payload }, (Shape.schema CopyObjectResult)), + ({ name := "CopySourceVersionId", location := .header "x-amz-copy-source-version-id" }, .string), + ({ name := "Expiration", location := .header "x-amz-expiration" }, .string), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged)), + ({ name := "SSECustomerAlgorithm", location := .header "x-amz-server-side-encryption-customer-algorithm" }, .string), + ({ name := "SSECustomerKeyMD5", location := .header "x-amz-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "SSEKMSEncryptionContext", location := .header "x-amz-server-side-encryption-context" }, .string), + ({ name := "SSEKMSKeyId", location := .header "x-amz-server-side-encryption-aws-kms-key-id" }, .string), + ({ name := "ServerSideEncryption", location := .header "x-amz-server-side-encryption" }, (Shape.schema ServerSideEncryption)), + ({ name := "VersionId", location := .header "x-amz-version-id" }, .string)] + toValue x := record [putOpt "BucketKeyEnabled" x.bucketKeyEnabled, putOpt "CopyObjectResult" x.copyObjectResult, putOpt "CopySourceVersionId" x.copySourceVersionId, putOpt "Expiration" x.expiration, putOpt "RequestCharged" x.requestCharged, putOpt "SSECustomerAlgorithm" x.sseCustomerAlgorithm, putOpt "SSECustomerKeyMD5" x.sseCustomerKeyMD5, putOpt "SSEKMSEncryptionContext" x.ssekmsEncryptionContext, putOpt "SSEKMSKeyId" x.ssekmsKeyId, putOpt "ServerSideEncryption" x.serverSideEncryption, putOpt "VersionId" x.versionId] + ofValue v := do + let bucketKeyEnabled ← v.opt "BucketKeyEnabled" + let copyObjectResult ← v.opt "CopyObjectResult" + let copySourceVersionId ← v.opt "CopySourceVersionId" + let expiration ← v.opt "Expiration" + let requestCharged ← v.opt "RequestCharged" + let sseCustomerAlgorithm ← v.opt "SSECustomerAlgorithm" + let sseCustomerKeyMD5 ← v.opt "SSECustomerKeyMD5" + let ssekmsEncryptionContext ← v.opt "SSEKMSEncryptionContext" + let ssekmsKeyId ← v.opt "SSEKMSKeyId" + let serverSideEncryption ← v.opt "ServerSideEncryption" + let versionId ← v.opt "VersionId" + return { bucketKeyEnabled, copyObjectResult, copySourceVersionId, expiration, requestCharged, sseCustomerAlgorithm, sseCustomerKeyMD5, ssekmsEncryptionContext, ssekmsKeyId, serverSideEncryption, versionId } + +/-- The configuration information for the bucket. -/ +structure CreateBucketConfiguration where + /-- Specifies the information about the bucket that will be created. -/ + bucket : Option BucketInfo := none + /-- Specifies the location where the bucket will be created. -/ + location : Option LocationInfo := none + /-- Specifies the Region where the bucket will be created. -/ + locationConstraint : Option BucketLocationConstraint := none + /-- An array of tags that you can apply to the bucket that you're creating. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateBucketConfiguration where + schema := .struct "CreateBucketConfiguration" [({ name := "Bucket" }, (Shape.schema BucketInfo)), + ({ name := "Location" }, (Shape.schema LocationInfo)), + ({ name := "LocationConstraint" }, (Shape.schema BucketLocationConstraint)), + ({ name := "Tags" }, (.list (Shape.schema Tag) "Tag"))] + toValue x := record [putOpt "Bucket" x.bucket, putOpt "Location" x.location, putOpt "LocationConstraint" x.locationConstraint, putOpt "Tags" x.tags] + ofValue v := do + let bucket ← v.opt "Bucket" + let location ← v.opt "Location" + let locationConstraint ← v.opt "LocationConstraint" + let tags ← v.opt "Tags" + return { bucket, location, locationConstraint, tags } + +structure CreateBucketMetadataTableConfigurationRequest where + /-- The general purpose bucket that you want to create the metadata table configuration for. -/ + bucket : String + /-- The checksum algorithm to use with your metadata table configuration. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The Content-MD5 header for the metadata table configuration. -/ + contentMD5 : Option String := none + /-- The expected owner of the general purpose bucket that corresponds to your metadata table configuration. -/ + expectedBucketOwner : Option String := none + /-- The contents of your metadata table configuration. -/ + metadataTableConfiguration : MetadataTableConfiguration +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateBucketMetadataTableConfigurationRequest where + schema := .struct "CreateBucketMetadataTableConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "MetadataTableConfiguration", required := true, xmlName := some "MetadataTableConfiguration", location := .payload }, (Shape.schema MetadataTableConfiguration))] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "MetadataTableConfiguration" x.metadataTableConfiguration] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let metadataTableConfiguration ← v.req "MetadataTableConfiguration" + return { bucket, checksumAlgorithm, contentMD5, expectedBucketOwner, metadataTableConfiguration } + +structure DeleteObjectsRequest where + /-- The bucket name containing the objects to delete. -/ + bucket : String + /-- Specifies whether you want to delete this object even if it has a Governance-type Object Lock in place. -/ + bypassGovernanceRetention : Option Bool := none + /-- Indicates the algorithm used to create the checksum for the object when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- Container for the request. -/ + delete : Delete + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device. -/ + mfa : Option String := none + requestPayer : Option RequestPayer := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteObjectsRequest where + schema := .struct "DeleteObjectsRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "BypassGovernanceRetention", location := .header "x-amz-bypass-governance-retention" }, .bool), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "Delete", required := true, xmlName := some "Delete", location := .payload }, (Shape.schema Delete)), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "MFA", location := .header "x-amz-mfa" }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer))] + toValue x := record [put "Bucket" x.bucket, putOpt "BypassGovernanceRetention" x.bypassGovernanceRetention, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, put "Delete" x.delete, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, putOpt "MFA" x.mfa, putOpt "RequestPayer" x.requestPayer] + ofValue v := do + let bucket ← v.req "Bucket" + let bypassGovernanceRetention ← v.opt "BypassGovernanceRetention" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let delete ← v.req "Delete" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let mfa ← v.opt "MFA" + let requestPayer ← v.opt "RequestPayer" + return { bucket, bypassGovernanceRetention, checksumAlgorithm, delete, expectedBucketOwner, mfa, requestPayer } + +/-- Specifies encryption-related information for an Amazon S3 bucket that is a destination for replicated objects. -/ +structure EncryptionConfiguration where + /-- Specifies the ID (Key ARN or Alias ARN) of the customer managed Amazon Web Services KMS key stored in Amazon Web Services Key Management Service (KMS) for the destination bucket. -/ + replicaKmsKeyID : Option String := none + /-- Specifies whether Amazon S3 uses the related multi-Region KMS key in the destination Amazon Web Services Region to encrypt the replica. -/ + useSourceMultiRegionKey : Option UseSourceMultiRegionKey := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EncryptionConfiguration where + schema := .struct "EncryptionConfiguration" [({ name := "ReplicaKmsKeyID" }, .string), + ({ name := "UseSourceMultiRegionKey" }, (Shape.schema UseSourceMultiRegionKey))] + toValue x := record [putOpt "ReplicaKmsKeyID" x.replicaKmsKeyID, putOpt "UseSourceMultiRegionKey" x.useSourceMultiRegionKey] + ofValue v := do + let replicaKmsKeyID ← v.opt "ReplicaKmsKeyID" + let useSourceMultiRegionKey ← v.opt "UseSourceMultiRegionKey" + return { replicaKmsKeyID, useSourceMultiRegionKey } + +structure GetBucketAbacOutput where + /-- The ABAC status of the general purpose bucket. -/ + abacStatus : Option AbacStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketAbacOutput where + schema := .struct "GetBucketAbacOutput" [({ name := "AbacStatus", location := .payload }, (Shape.schema AbacStatus))] + toValue x := record [putOpt "AbacStatus" x.abacStatus] + ofValue v := do + let abacStatus ← v.opt "AbacStatus" + return { abacStatus } + +/-- The V1 S3 Metadata configuration for a general purpose bucket. -/ +structure GetBucketMetadataTableConfigurationResult where + /-- If the CreateBucketMetadataTableConfiguration request succeeds, but S3 Metadata was unable to create the table, this structure contains the error code and error message. -/ + error : Option ErrorDetails := none + /-- The V1 S3 Metadata configuration for a general purpose bucket. -/ + metadataTableConfigurationResult : MetadataTableConfigurationResult + /-- The status of the metadata table. -/ + status : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketMetadataTableConfigurationResult where + schema := .struct "GetBucketMetadataTableConfigurationResult" [({ name := "Error" }, (Shape.schema ErrorDetails)), + ({ name := "MetadataTableConfigurationResult", required := true }, (Shape.schema MetadataTableConfigurationResult)), + ({ name := "Status", required := true }, .string)] + toValue x := record [putOpt "Error" x.error, put "MetadataTableConfigurationResult" x.metadataTableConfigurationResult, put "Status" x.status] + ofValue v := do + let error ← v.opt "Error" + let metadataTableConfigurationResult ← v.req "MetadataTableConfigurationResult" + let status ← v.req "Status" + return { error, metadataTableConfigurationResult, status } + +structure GetObjectAttributesOutput where + /-- The checksum or digest of the object. -/ + checksum : Option Checksum := none + /-- Specifies whether the object retrieved was ( true ) or was not ( false ) a delete marker. -/ + deleteMarker : Option Bool := none + /-- An ETag is an opaque identifier assigned by a web server to a specific version of a resource found at a URL. -/ + eTag : Option String := none + /-- Date and time when the object was last modified. -/ + lastModified : Option Timestamp := none + /-- A collection of parts associated with a multipart upload. -/ + objectParts : Option GetObjectAttributesParts := none + /-- The size of the object in bytes. -/ + objectSize : Option Int := none + requestCharged : Option RequestCharged := none + /-- Provides the storage class information of the object. -/ + storageClass : Option StorageClass := none + /-- The version ID of the object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetObjectAttributesOutput where + schema := .struct "GetObjectAttributesResponse" [({ name := "Checksum" }, (Shape.schema Checksum)), + ({ name := "DeleteMarker", location := .header "x-amz-delete-marker" }, .bool), + ({ name := "ETag" }, .string), + ({ name := "LastModified", location := .header "Last-Modified" }, (.time none)), + ({ name := "ObjectParts" }, (Shape.schema GetObjectAttributesParts)), + ({ name := "ObjectSize" }, .int), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged)), + ({ name := "StorageClass" }, (Shape.schema StorageClass)), + ({ name := "VersionId", location := .header "x-amz-version-id" }, .string)] + toValue x := record [putOpt "Checksum" x.checksum, putOpt "DeleteMarker" x.deleteMarker, putOpt "ETag" x.eTag, putOpt "LastModified" x.lastModified, putOpt "ObjectParts" x.objectParts, putOpt "ObjectSize" x.objectSize, putOpt "RequestCharged" x.requestCharged, putOpt "StorageClass" x.storageClass, putOpt "VersionId" x.versionId] + ofValue v := do + let checksum ← v.opt "Checksum" + let deleteMarker ← v.opt "DeleteMarker" + let eTag ← v.opt "ETag" + let lastModified ← v.opt "LastModified" + let objectParts ← v.opt "ObjectParts" + let objectSize ← v.opt "ObjectSize" + let requestCharged ← v.opt "RequestCharged" + let storageClass ← v.opt "StorageClass" + let versionId ← v.opt "VersionId" + return { checksum, deleteMarker, eTag, lastModified, objectParts, objectSize, requestCharged, storageClass, versionId } + +structure GetObjectLegalHoldOutput where + /-- The current legal hold status for the specified object. -/ + legalHold : Option ObjectLockLegalHold := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetObjectLegalHoldOutput where + schema := .struct "GetObjectLegalHoldOutput" [({ name := "LegalHold", xmlName := some "LegalHold", location := .payload }, (Shape.schema ObjectLockLegalHold))] + toValue x := record [putOpt "LegalHold" x.legalHold] + ofValue v := do + let legalHold ← v.opt "LegalHold" + return { legalHold } + +structure GetObjectRetentionOutput where + /-- The container element for an object's retention settings. -/ + retention : Option ObjectLockRetention := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetObjectRetentionOutput where + schema := .struct "GetObjectRetentionOutput" [({ name := "Retention", xmlName := some "Retention", location := .payload }, (Shape.schema ObjectLockRetention))] + toValue x := record [putOpt "Retention" x.retention] + ofValue v := do + let retention ← v.opt "Retention" + return { retention } + +/-- Container for grant information. -/ +structure Grant where + /-- The person being granted permissions. -/ + grantee : Option Grantee := none + /-- Specifies the permission given to the grantee. -/ + permission : Option Permission := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Grant where + schema := .struct "Grant" [({ name := "Grantee" }, (Shape.schema Grantee)), + ({ name := "Permission" }, (Shape.schema Permission))] + toValue x := record [putOpt "Grantee" x.grantee, putOpt "Permission" x.permission] + ofValue v := do + let grantee ← v.opt "Grantee" + let permission ← v.opt "Permission" + return { grantee, permission } + +/-- Describes the serialization format of the object. -/ +structure InputSerialization where + /-- Describes the serialization of a CSV-encoded object. -/ + csv : Option CSVInput := none + /-- Specifies object's compression format. -/ + compressionType : Option CompressionType := none + /-- Specifies JSON as object's input serialization format. -/ + json : Option JSONInput := none + /-- Specifies Parquet as object's input serialization format. -/ + parquet : Option ParquetInput := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InputSerialization where + schema := .struct "InputSerialization" [({ name := "CSV" }, (Shape.schema CSVInput)), + ({ name := "CompressionType" }, (Shape.schema CompressionType)), + ({ name := "JSON" }, (Shape.schema JSONInput)), + ({ name := "Parquet" }, (Shape.schema ParquetInput))] + toValue x := record [putOpt "CSV" x.csv, putOpt "CompressionType" x.compressionType, putOpt "JSON" x.json, putOpt "Parquet" x.parquet] + ofValue v := do + let csv ← v.opt "CSV" + let compressionType ← v.opt "CompressionType" + let json ← v.opt "JSON" + let parquet ← v.opt "Parquet" + return { csv, compressionType, json, parquet } + +/-- The Filter is used to identify objects that the S3 Intelligent-Tiering configuration applies to. -/ +structure IntelligentTieringFilter where + /-- A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter. -/ + and : Option IntelligentTieringAndOperator := none + /-- An object key name prefix that identifies the subset of objects to which the rule applies. -/ + «prefix» : Option String := none + tag : Option Tag := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape IntelligentTieringFilter where + schema := .struct "IntelligentTieringFilter" [({ name := "And" }, (Shape.schema IntelligentTieringAndOperator)), + ({ name := "Prefix" }, .string), + ({ name := "Tag" }, (Shape.schema Tag))] + toValue x := record [putOpt "And" x.and, putOpt "Prefix" x.«prefix», putOpt "Tag" x.tag] + ofValue v := do + let and ← v.opt "And" + let «prefix» ← v.opt "Prefix" + let tag ← v.opt "Tag" + return { and, «prefix», tag } + +/-- Contains the bucket name, file format, bucket owner (optional), and prefix (optional) where S3 Inventory results are published. -/ +structure InventoryS3BucketDestination where + /-- The account ID that owns the destination S3 bucket. -/ + accountId : Option String := none + /-- The Amazon Resource Name (ARN) of the bucket where inventory results will be published. -/ + bucket : String + /-- Contains the type of server-side encryption used to encrypt the inventory results. -/ + encryption : Option InventoryEncryption := none + /-- Specifies the output format of the inventory results. -/ + format : InventoryFormat + /-- The prefix that is prepended to all inventory results. -/ + «prefix» : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InventoryS3BucketDestination where + schema := .struct "InventoryS3BucketDestination" [({ name := "AccountId" }, .string), + ({ name := "Bucket", required := true }, .string), + ({ name := "Encryption" }, (Shape.schema InventoryEncryption)), + ({ name := "Format", required := true }, (Shape.schema InventoryFormat)), + ({ name := "Prefix" }, .string)] + toValue x := record [putOpt "AccountId" x.accountId, put "Bucket" x.bucket, putOpt "Encryption" x.encryption, put "Format" x.format, putOpt "Prefix" x.«prefix»] + ofValue v := do + let accountId ← v.opt "AccountId" + let bucket ← v.req "Bucket" + let encryption ← v.opt "Encryption" + let format ← v.req "Format" + let «prefix» ← v.opt "Prefix" + return { accountId, bucket, encryption, format, «prefix» } + +/-- The inventory table configuration for an S3 Metadata configuration. -/ +structure InventoryTableConfiguration where + /-- The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled. -/ + configurationState : InventoryConfigurationState + /-- The encryption configuration for the inventory table. -/ + encryptionConfiguration : Option MetadataTableEncryptionConfiguration := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InventoryTableConfiguration where + schema := .struct "InventoryTableConfiguration" [({ name := "ConfigurationState", required := true }, (Shape.schema InventoryConfigurationState)), + ({ name := "EncryptionConfiguration" }, (Shape.schema MetadataTableEncryptionConfiguration))] + toValue x := record [put "ConfigurationState" x.configurationState, putOpt "EncryptionConfiguration" x.encryptionConfiguration] + ofValue v := do + let configurationState ← v.req "ConfigurationState" + let encryptionConfiguration ← v.opt "EncryptionConfiguration" + return { configurationState, encryptionConfiguration } + +/-- The specified updates to the S3 Metadata inventory table configuration. -/ +structure InventoryTableConfigurationUpdates where + /-- The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled. -/ + configurationState : InventoryConfigurationState + /-- The encryption configuration for the inventory table. -/ + encryptionConfiguration : Option MetadataTableEncryptionConfiguration := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InventoryTableConfigurationUpdates where + schema := .struct "InventoryTableConfigurationUpdates" [({ name := "ConfigurationState", required := true }, (Shape.schema InventoryConfigurationState)), + ({ name := "EncryptionConfiguration" }, (Shape.schema MetadataTableEncryptionConfiguration))] + toValue x := record [put "ConfigurationState" x.configurationState, putOpt "EncryptionConfiguration" x.encryptionConfiguration] + ofValue v := do + let configurationState ← v.req "ConfigurationState" + let encryptionConfiguration ← v.opt "EncryptionConfiguration" + return { configurationState, encryptionConfiguration } + +/-- The journal table configuration for an S3 Metadata configuration. -/ +structure JournalTableConfiguration where + /-- The encryption configuration for the journal table. -/ + encryptionConfiguration : Option MetadataTableEncryptionConfiguration := none + /-- The journal table record expiration settings for the journal table. -/ + recordExpiration : RecordExpiration +deriving DecidableEq, Repr, Inhabited + +instance : Shape JournalTableConfiguration where + schema := .struct "JournalTableConfiguration" [({ name := "EncryptionConfiguration" }, (Shape.schema MetadataTableEncryptionConfiguration)), + ({ name := "RecordExpiration", required := true }, (Shape.schema RecordExpiration))] + toValue x := record [putOpt "EncryptionConfiguration" x.encryptionConfiguration, put "RecordExpiration" x.recordExpiration] + ofValue v := do + let encryptionConfiguration ← v.opt "EncryptionConfiguration" + let recordExpiration ← v.req "RecordExpiration" + return { encryptionConfiguration, recordExpiration } + +/-- The journal table configuration for the S3 Metadata configuration. -/ +structure JournalTableConfigurationResult where + error : Option ErrorDetails := none + /-- The journal table record expiration settings for the journal table. -/ + recordExpiration : RecordExpiration + /-- The Amazon Resource Name (ARN) for the journal table. -/ + tableArn : Option String := none + /-- The name of the journal table. -/ + tableName : String + /-- The status of the journal table. -/ + tableStatus : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape JournalTableConfigurationResult where + schema := .struct "JournalTableConfigurationResult" [({ name := "Error" }, (Shape.schema ErrorDetails)), + ({ name := "RecordExpiration", required := true }, (Shape.schema RecordExpiration)), + ({ name := "TableArn" }, .string), + ({ name := "TableName", required := true }, .string), + ({ name := "TableStatus", required := true }, .string)] + toValue x := record [putOpt "Error" x.error, put "RecordExpiration" x.recordExpiration, putOpt "TableArn" x.tableArn, put "TableName" x.tableName, put "TableStatus" x.tableStatus] + ofValue v := do + let error ← v.opt "Error" + let recordExpiration ← v.req "RecordExpiration" + let tableArn ← v.opt "TableArn" + let tableName ← v.req "TableName" + let tableStatus ← v.req "TableStatus" + return { error, recordExpiration, tableArn, tableName, tableStatus } + +/-- The specified updates to the S3 Metadata journal table configuration. -/ +structure JournalTableConfigurationUpdates where + /-- The journal table record expiration settings for the journal table. -/ + recordExpiration : RecordExpiration +deriving DecidableEq, Repr, Inhabited + +instance : Shape JournalTableConfigurationUpdates where + schema := .struct "JournalTableConfigurationUpdates" [({ name := "RecordExpiration", required := true }, (Shape.schema RecordExpiration))] + toValue x := record [put "RecordExpiration" x.recordExpiration] + ofValue v := do + let recordExpiration ← v.req "RecordExpiration" + return { recordExpiration } + +/-- The Filter is used to identify objects that a Lifecycle Rule applies to. -/ +structure LifecycleRuleFilter where + and : Option LifecycleRuleAndOperator := none + /-- Minimum object size to which the rule applies. -/ + objectSizeGreaterThan : Option Int := none + /-- Maximum object size to which the rule applies. -/ + objectSizeLessThan : Option Int := none + /-- Prefix identifying one or more objects to which the rule applies. -/ + «prefix» : Option String := none + /-- This tag must exist in the object's tag set in order for the rule to apply. -/ + tag : Option Tag := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LifecycleRuleFilter where + schema := .struct "LifecycleRuleFilter" [({ name := "And" }, (Shape.schema LifecycleRuleAndOperator)), + ({ name := "ObjectSizeGreaterThan" }, .int), + ({ name := "ObjectSizeLessThan" }, .int), + ({ name := "Prefix" }, .string), + ({ name := "Tag" }, (Shape.schema Tag))] + toValue x := record [putOpt "And" x.and, putOpt "ObjectSizeGreaterThan" x.objectSizeGreaterThan, putOpt "ObjectSizeLessThan" x.objectSizeLessThan, putOpt "Prefix" x.«prefix», putOpt "Tag" x.tag] + ofValue v := do + let and ← v.opt "And" + let objectSizeGreaterThan ← v.opt "ObjectSizeGreaterThan" + let objectSizeLessThan ← v.opt "ObjectSizeLessThan" + let «prefix» ← v.opt "Prefix" + let tag ← v.opt "Tag" + return { and, objectSizeGreaterThan, objectSizeLessThan, «prefix», tag } + +structure ListMultipartUploadsOutput where + /-- The name of the bucket to which the multipart upload was initiated. -/ + bucket : Option String := none + /-- If you specify a delimiter in the request, then the result returns each distinct key prefix containing the delimiter in a CommonPrefixes element. -/ + commonPrefixes : Option (List CommonPrefix) := none + /-- Contains the delimiter you specified in the request. -/ + delimiter : Option String := none + /-- Encoding type used by Amazon S3 to encode object keys in the response. -/ + encodingType : Option EncodingType := none + /-- Indicates whether the returned list of multipart uploads is truncated. -/ + isTruncated : Option Bool := none + /-- The key at or after which the listing began. -/ + keyMarker : Option String := none + /-- Maximum number of multipart uploads that could have been included in the response. -/ + maxUploads : Option Int := none + /-- When a list is truncated, this element specifies the value that should be used for the key-marker request parameter in a subsequent request. -/ + nextKeyMarker : Option String := none + /-- When a list is truncated, this element specifies the value that should be used for the upload-id-marker request parameter in a subsequent request. -/ + nextUploadIdMarker : Option String := none + /-- When a prefix is provided in the request, this field contains the specified prefix. -/ + «prefix» : Option String := none + requestCharged : Option RequestCharged := none + /-- Together with key-marker, specifies the multipart upload after which listing should begin. -/ + uploadIdMarker : Option String := none + /-- Container for elements related to a particular multipart upload. -/ + uploads : Option (List MultipartUpload) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListMultipartUploadsOutput where + schema := .struct "ListMultipartUploadsResult" [({ name := "Bucket" }, .string), + ({ name := "CommonPrefixes", flattened := true }, (.list (Shape.schema CommonPrefix) "member")), + ({ name := "Delimiter" }, .string), + ({ name := "EncodingType" }, (Shape.schema EncodingType)), + ({ name := "IsTruncated" }, .bool), + ({ name := "KeyMarker" }, .string), + ({ name := "MaxUploads" }, .int), + ({ name := "NextKeyMarker" }, .string), + ({ name := "NextUploadIdMarker" }, .string), + ({ name := "Prefix" }, .string), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged)), + ({ name := "UploadIdMarker" }, .string), + ({ name := "Uploads", xmlName := some "Upload", flattened := true }, (.list (Shape.schema MultipartUpload) "member"))] + toValue x := record [putOpt "Bucket" x.bucket, putOpt "CommonPrefixes" x.commonPrefixes, putOpt "Delimiter" x.delimiter, putOpt "EncodingType" x.encodingType, putOpt "IsTruncated" x.isTruncated, putOpt "KeyMarker" x.keyMarker, putOpt "MaxUploads" x.maxUploads, putOpt "NextKeyMarker" x.nextKeyMarker, putOpt "NextUploadIdMarker" x.nextUploadIdMarker, putOpt "Prefix" x.«prefix», putOpt "RequestCharged" x.requestCharged, putOpt "UploadIdMarker" x.uploadIdMarker, putOpt "Uploads" x.uploads] + ofValue v := do + let bucket ← v.opt "Bucket" + let commonPrefixes ← v.opt "CommonPrefixes" + let delimiter ← v.opt "Delimiter" + let encodingType ← v.opt "EncodingType" + let isTruncated ← v.opt "IsTruncated" + let keyMarker ← v.opt "KeyMarker" + let maxUploads ← v.opt "MaxUploads" + let nextKeyMarker ← v.opt "NextKeyMarker" + let nextUploadIdMarker ← v.opt "NextUploadIdMarker" + let «prefix» ← v.opt "Prefix" + let requestCharged ← v.opt "RequestCharged" + let uploadIdMarker ← v.opt "UploadIdMarker" + let uploads ← v.opt "Uploads" + return { bucket, commonPrefixes, delimiter, encodingType, isTruncated, keyMarker, maxUploads, nextKeyMarker, nextUploadIdMarker, «prefix», requestCharged, uploadIdMarker, uploads } + +structure ListObjectAnnotationsOutput where + /-- The number of annotations returned. -/ + annotationCount : Option Int := none + /-- The prefix used to filter the response. -/ + annotationPrefix : Option String := none + /-- The list of annotations attached to the object. -/ + annotations : Option (List AnnotationEntry) := none + /-- The bucket name. -/ + bucket : Option String := none + /-- The continuation token used in this request. -/ + continuationToken : Option String := none + /-- The object key. -/ + key : Option String := none + /-- The maximum number of annotations returned in the response. -/ + maxAnnotationResults : Option Int := none + /-- The continuation token to use to retrieve the next page of results. -/ + nextContinuationToken : Option String := none + /-- The version ID of the object. -/ + objectVersionId : Option String := none + requestCharged : Option RequestCharged := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListObjectAnnotationsOutput where + schema := .struct "ListObjectAnnotationsOutput" [({ name := "AnnotationCount" }, .int), + ({ name := "AnnotationPrefix" }, .string), + ({ name := "Annotations" }, (.list (Shape.schema AnnotationEntry) "AnnotationEntry")), + ({ name := "Bucket" }, .string), + ({ name := "ContinuationToken" }, .string), + ({ name := "Key" }, .string), + ({ name := "MaxAnnotationResults" }, .int), + ({ name := "NextContinuationToken" }, .string), + ({ name := "ObjectVersionId", location := .header "x-amz-object-version-id" }, .string), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged))] + toValue x := record [putOpt "AnnotationCount" x.annotationCount, putOpt "AnnotationPrefix" x.annotationPrefix, putOpt "Annotations" x.annotations, putOpt "Bucket" x.bucket, putOpt "ContinuationToken" x.continuationToken, putOpt "Key" x.key, putOpt "MaxAnnotationResults" x.maxAnnotationResults, putOpt "NextContinuationToken" x.nextContinuationToken, putOpt "ObjectVersionId" x.objectVersionId, putOpt "RequestCharged" x.requestCharged] + ofValue v := do + let annotationCount ← v.opt "AnnotationCount" + let annotationPrefix ← v.opt "AnnotationPrefix" + let annotations ← v.opt "Annotations" + let bucket ← v.opt "Bucket" + let continuationToken ← v.opt "ContinuationToken" + let key ← v.opt "Key" + let maxAnnotationResults ← v.opt "MaxAnnotationResults" + let nextContinuationToken ← v.opt "NextContinuationToken" + let objectVersionId ← v.opt "ObjectVersionId" + let requestCharged ← v.opt "RequestCharged" + return { annotationCount, annotationPrefix, annotations, bucket, continuationToken, key, maxAnnotationResults, nextContinuationToken, objectVersionId, requestCharged } + +structure ListObjectVersionsOutput where + /-- All of the keys rolled up into a common prefix count as a single return when calculating the number of returns. -/ + commonPrefixes : Option (List CommonPrefix) := none + /-- Container for an object that is a delete marker. -/ + deleteMarkers : Option (List DeleteMarkerEntry) := none + /-- The delimiter grouping the included keys. -/ + delimiter : Option String := none + /-- Encoding type used by Amazon S3 to encode object key names in the XML response. -/ + encodingType : Option EncodingType := none + /-- A flag that indicates whether Amazon S3 returned all of the results that satisfied the search criteria. -/ + isTruncated : Option Bool := none + /-- Marks the last key returned in a truncated response. -/ + keyMarker : Option String := none + /-- Specifies the maximum number of objects to return. -/ + maxKeys : Option Int := none + /-- The bucket name. -/ + name : Option String := none + /-- When the number of responses exceeds the value of MaxKeys , NextKeyMarker specifies the first key not returned that satisfies the search criteria. -/ + nextKeyMarker : Option String := none + /-- When the number of responses exceeds the value of MaxKeys , NextVersionIdMarker specifies the first object version not returned that satisfies the search criteria. -/ + nextVersionIdMarker : Option String := none + /-- Selects objects that start with the value supplied by this parameter. -/ + «prefix» : Option String := none + requestCharged : Option RequestCharged := none + /-- Marks the last version of the key returned in a truncated response. -/ + versionIdMarker : Option String := none + /-- Container for version information. -/ + versions : Option (List ObjectVersion) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListObjectVersionsOutput where + schema := .struct "ListVersionsResult" [({ name := "CommonPrefixes", flattened := true }, (.list (Shape.schema CommonPrefix) "member")), + ({ name := "DeleteMarkers", xmlName := some "DeleteMarker", flattened := true }, (.list (Shape.schema DeleteMarkerEntry) "member")), + ({ name := "Delimiter" }, .string), + ({ name := "EncodingType" }, (Shape.schema EncodingType)), + ({ name := "IsTruncated" }, .bool), + ({ name := "KeyMarker" }, .string), + ({ name := "MaxKeys" }, .int), + ({ name := "Name" }, .string), + ({ name := "NextKeyMarker" }, .string), + ({ name := "NextVersionIdMarker" }, .string), + ({ name := "Prefix" }, .string), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged)), + ({ name := "VersionIdMarker" }, .string), + ({ name := "Versions", xmlName := some "Version", flattened := true }, (.list (Shape.schema ObjectVersion) "member"))] + toValue x := record [putOpt "CommonPrefixes" x.commonPrefixes, putOpt "DeleteMarkers" x.deleteMarkers, putOpt "Delimiter" x.delimiter, putOpt "EncodingType" x.encodingType, putOpt "IsTruncated" x.isTruncated, putOpt "KeyMarker" x.keyMarker, putOpt "MaxKeys" x.maxKeys, putOpt "Name" x.name, putOpt "NextKeyMarker" x.nextKeyMarker, putOpt "NextVersionIdMarker" x.nextVersionIdMarker, putOpt "Prefix" x.«prefix», putOpt "RequestCharged" x.requestCharged, putOpt "VersionIdMarker" x.versionIdMarker, putOpt "Versions" x.versions] + ofValue v := do + let commonPrefixes ← v.opt "CommonPrefixes" + let deleteMarkers ← v.opt "DeleteMarkers" + let delimiter ← v.opt "Delimiter" + let encodingType ← v.opt "EncodingType" + let isTruncated ← v.opt "IsTruncated" + let keyMarker ← v.opt "KeyMarker" + let maxKeys ← v.opt "MaxKeys" + let name ← v.opt "Name" + let nextKeyMarker ← v.opt "NextKeyMarker" + let nextVersionIdMarker ← v.opt "NextVersionIdMarker" + let «prefix» ← v.opt "Prefix" + let requestCharged ← v.opt "RequestCharged" + let versionIdMarker ← v.opt "VersionIdMarker" + let versions ← v.opt "Versions" + return { commonPrefixes, deleteMarkers, delimiter, encodingType, isTruncated, keyMarker, maxKeys, name, nextKeyMarker, nextVersionIdMarker, «prefix», requestCharged, versionIdMarker, versions } + +structure ListObjectsOutput where + /-- All of the keys (up to 1,000) rolled up in a common prefix count as a single return when calculating the number of returns. -/ + commonPrefixes : Option (List CommonPrefix) := none + /-- Metadata about each object returned. -/ + contents : Option (List Object) := none + /-- Causes keys that contain the same string between the prefix and the first occurrence of the delimiter to be rolled up into a single result element in the CommonPrefixes collection. -/ + delimiter : Option String := none + /-- Encoding type used by Amazon S3 to encode the object keys in the response. -/ + encodingType : Option EncodingType := none + /-- A flag that indicates whether Amazon S3 returned all of the results that satisfied the search criteria. -/ + isTruncated : Option Bool := none + /-- Indicates where in the bucket listing begins. -/ + marker : Option String := none + /-- The maximum number of keys returned in the response body. -/ + maxKeys : Option Int := none + /-- The bucket name. -/ + name : Option String := none + /-- When the response is truncated (the IsTruncated element value in the response is true ), you can use the key name in this field as the marker parameter in the subsequent request to get the next set of objects. -/ + nextMarker : Option String := none + /-- Keys that begin with the indicated prefix. -/ + «prefix» : Option String := none + requestCharged : Option RequestCharged := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListObjectsOutput where + schema := .struct "ListBucketResult" [({ name := "CommonPrefixes", flattened := true }, (.list (Shape.schema CommonPrefix) "member")), + ({ name := "Contents", flattened := true }, (.list (Shape.schema Object) "member")), + ({ name := "Delimiter" }, .string), + ({ name := "EncodingType" }, (Shape.schema EncodingType)), + ({ name := "IsTruncated" }, .bool), + ({ name := "Marker" }, .string), + ({ name := "MaxKeys" }, .int), + ({ name := "Name" }, .string), + ({ name := "NextMarker" }, .string), + ({ name := "Prefix" }, .string), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged))] + toValue x := record [putOpt "CommonPrefixes" x.commonPrefixes, putOpt "Contents" x.contents, putOpt "Delimiter" x.delimiter, putOpt "EncodingType" x.encodingType, putOpt "IsTruncated" x.isTruncated, putOpt "Marker" x.marker, putOpt "MaxKeys" x.maxKeys, putOpt "Name" x.name, putOpt "NextMarker" x.nextMarker, putOpt "Prefix" x.«prefix», putOpt "RequestCharged" x.requestCharged] + ofValue v := do + let commonPrefixes ← v.opt "CommonPrefixes" + let contents ← v.opt "Contents" + let delimiter ← v.opt "Delimiter" + let encodingType ← v.opt "EncodingType" + let isTruncated ← v.opt "IsTruncated" + let marker ← v.opt "Marker" + let maxKeys ← v.opt "MaxKeys" + let name ← v.opt "Name" + let nextMarker ← v.opt "NextMarker" + let «prefix» ← v.opt "Prefix" + let requestCharged ← v.opt "RequestCharged" + return { commonPrefixes, contents, delimiter, encodingType, isTruncated, marker, maxKeys, name, nextMarker, «prefix», requestCharged } + +structure ListObjectsV2Output where + /-- All of the keys (up to 1,000) that share the same prefix are grouped together. -/ + commonPrefixes : Option (List CommonPrefix) := none + /-- Metadata about each object returned. -/ + contents : Option (List Object) := none + /-- If ContinuationToken was sent with the request, it is included in the response. -/ + continuationToken : Option String := none + /-- Causes keys that contain the same string between the prefix and the first occurrence of the delimiter to be rolled up into a single result element in the CommonPrefixes collection. -/ + delimiter : Option String := none + /-- Encoding type used by Amazon S3 to encode object key names in the XML response. -/ + encodingType : Option EncodingType := none + /-- Set to false if all of the results were returned. -/ + isTruncated : Option Bool := none + /-- KeyCount is the number of keys returned with this request. -/ + keyCount : Option Int := none + /-- Sets the maximum number of keys returned in the response. -/ + maxKeys : Option Int := none + /-- The bucket name. -/ + name : Option String := none + /-- NextContinuationToken is sent when isTruncated is true, which means there are more keys in the bucket that can be listed. -/ + nextContinuationToken : Option String := none + /-- Keys that begin with the indicated prefix. -/ + «prefix» : Option String := none + requestCharged : Option RequestCharged := none + /-- If StartAfter was sent with the request, it is included in the response. -/ + startAfter : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListObjectsV2Output where + schema := .struct "ListBucketResult" [({ name := "CommonPrefixes", flattened := true }, (.list (Shape.schema CommonPrefix) "member")), + ({ name := "Contents", flattened := true }, (.list (Shape.schema Object) "member")), + ({ name := "ContinuationToken" }, .string), + ({ name := "Delimiter" }, .string), + ({ name := "EncodingType" }, (Shape.schema EncodingType)), + ({ name := "IsTruncated" }, .bool), + ({ name := "KeyCount" }, .int), + ({ name := "MaxKeys" }, .int), + ({ name := "Name" }, .string), + ({ name := "NextContinuationToken" }, .string), + ({ name := "Prefix" }, .string), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged)), + ({ name := "StartAfter" }, .string)] + toValue x := record [putOpt "CommonPrefixes" x.commonPrefixes, putOpt "Contents" x.contents, putOpt "ContinuationToken" x.continuationToken, putOpt "Delimiter" x.delimiter, putOpt "EncodingType" x.encodingType, putOpt "IsTruncated" x.isTruncated, putOpt "KeyCount" x.keyCount, putOpt "MaxKeys" x.maxKeys, putOpt "Name" x.name, putOpt "NextContinuationToken" x.nextContinuationToken, putOpt "Prefix" x.«prefix», putOpt "RequestCharged" x.requestCharged, putOpt "StartAfter" x.startAfter] + ofValue v := do + let commonPrefixes ← v.opt "CommonPrefixes" + let contents ← v.opt "Contents" + let continuationToken ← v.opt "ContinuationToken" + let delimiter ← v.opt "Delimiter" + let encodingType ← v.opt "EncodingType" + let isTruncated ← v.opt "IsTruncated" + let keyCount ← v.opt "KeyCount" + let maxKeys ← v.opt "MaxKeys" + let name ← v.opt "Name" + let nextContinuationToken ← v.opt "NextContinuationToken" + let «prefix» ← v.opt "Prefix" + let requestCharged ← v.opt "RequestCharged" + let startAfter ← v.opt "StartAfter" + return { commonPrefixes, contents, continuationToken, delimiter, encodingType, isTruncated, keyCount, maxKeys, name, nextContinuationToken, «prefix», requestCharged, startAfter } + +/-- Specifies a metrics configuration filter. -/ +inductive MetricsFilter where + /-- The access point ARN used when evaluating a metrics filter. -/ + | accessPointArn (value : String) + /-- A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter. -/ + | and (value : MetricsAndOperator) + /-- The prefix used when evaluating a metrics filter. -/ + | «prefix» (value : String) + /-- The tag used when evaluating a metrics filter. -/ + | tag (value : Tag) +deriving DecidableEq, Repr, Inhabited + +instance : Shape MetricsFilter where + schema := .union "MetricsFilter" [({ name := "AccessPointArn" }, .string), + ({ name := "And" }, (Shape.schema MetricsAndOperator)), + ({ name := "Prefix" }, .string), + ({ name := "Tag" }, (Shape.schema Tag))] + toValue + | .accessPointArn value => record [put "AccessPointArn" value] + | .and value => record [put "And" value] + | .«prefix» value => record [put "Prefix" value] + | .tag value => record [put "Tag" value] + ofValue + | .record [("AccessPointArn", value)] => .accessPointArn <$> Shape.ofValue value + | .record [("And", value)] => .and <$> Shape.ofValue value + | .record [("Prefix", value)] => .«prefix» <$> Shape.ofValue value + | .record [("Tag", value)] => .tag <$> Shape.ofValue value + | _ => .error "expected exactly one member of MetricsFilter" + +/-- The container element for an Object Lock rule. -/ +structure ObjectLockRule where + /-- The default Object Lock retention settings for new objects in this bucket. -/ + defaultRetention : Option DefaultRetention := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ObjectLockRule where + schema := .struct "ObjectLockRule" [({ name := "DefaultRetention" }, (Shape.schema DefaultRetention))] + toValue x := record [putOpt "DefaultRetention" x.defaultRetention] + ofValue v := do + let defaultRetention ← v.opt "DefaultRetention" + return { defaultRetention } + +/-- Describes how results of the Select job are serialized. -/ +structure OutputSerialization where + /-- Describes the serialization of CSV-encoded Select results. -/ + csv : Option CSVOutput := none + /-- Specifies JSON as request's output serialization format. -/ + json : Option JSONOutput := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape OutputSerialization where + schema := .struct "OutputSerialization" [({ name := "CSV" }, (Shape.schema CSVOutput)), + ({ name := "JSON" }, (Shape.schema JSONOutput))] + toValue x := record [putOpt "CSV" x.csv, putOpt "JSON" x.json] + ofValue v := do + let csv ← v.opt "CSV" + let json ← v.opt "JSON" + return { csv, json } + +/-- The container element for a bucket's ownership controls. -/ +structure OwnershipControls where + /-- The container element for an ownership control rule. -/ + rules : (List OwnershipControlsRule) +deriving DecidableEq, Repr, Inhabited + +instance : Shape OwnershipControls where + schema := .struct "OwnershipControls" [({ name := "Rules", required := true, xmlName := some "Rule", flattened := true }, (.list (Shape.schema OwnershipControlsRule) "member"))] + toValue x := record [put "Rules" x.rules] + ofValue v := do + let rules ← v.req "Rules" + return { rules } + +structure PutBucketAbacRequest where + /-- The ABAC status of the general purpose bucket. -/ + abacStatus : AbacStatus + /-- The name of the general purpose bucket. -/ + bucket : String + /-- Indicates the algorithm that you want Amazon S3 to use to create the checksum. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The MD5 hash of the PutBucketAbac request body. -/ + contentMD5 : Option String := none + /-- The Amazon Web Services account ID of the general purpose bucket's owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutBucketAbacRequest where + schema := .struct "PutBucketAbacRequest" [({ name := "AbacStatus", required := true, xmlName := some "AbacStatus", location := .payload }, (Shape.schema AbacStatus)), + ({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "AbacStatus" x.abacStatus, put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let abacStatus ← v.req "AbacStatus" + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { abacStatus, bucket, checksumAlgorithm, contentMD5, expectedBucketOwner } + +structure PutBucketAccelerateConfigurationRequest where + /-- Container for setting the transfer acceleration state. -/ + accelerateConfiguration : AccelerateConfiguration + /-- The name of the bucket for which the accelerate configuration is set. -/ + bucket : String + /-- Indicates the algorithm used to create the checksum for the request when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutBucketAccelerateConfigurationRequest where + schema := .struct "PutBucketAccelerateConfigurationRequest" [({ name := "AccelerateConfiguration", required := true, xmlName := some "AccelerateConfiguration", location := .payload }, (Shape.schema AccelerateConfiguration)), + ({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "AccelerateConfiguration" x.accelerateConfiguration, put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let accelerateConfiguration ← v.req "AccelerateConfiguration" + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { accelerateConfiguration, bucket, checksumAlgorithm, expectedBucketOwner } + +structure PutBucketCorsRequest where + /-- Specifies the bucket impacted by the cors configuration. -/ + bucket : String + /-- Describes the cross-origin access configuration for objects in an Amazon S3 bucket. -/ + corsConfiguration : CORSConfiguration + /-- Indicates the algorithm used to create the checksum for the request when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The Base64 encoded 128-bit MD5 digest of the data. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutBucketCorsRequest where + schema := .struct "PutBucketCorsRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "CORSConfiguration", required := true, xmlName := some "CORSConfiguration", location := .payload }, (Shape.schema CORSConfiguration)), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, put "CORSConfiguration" x.corsConfiguration, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let corsConfiguration ← v.req "CORSConfiguration" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, corsConfiguration, checksumAlgorithm, contentMD5, expectedBucketOwner } + +structure PutBucketRequestPaymentRequest where + /-- The bucket name. -/ + bucket : String + /-- Indicates the algorithm used to create the checksum for the request when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The Base64 encoded 128-bit MD5 digest of the data. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- Container for Payer. -/ + requestPaymentConfiguration : RequestPaymentConfiguration +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutBucketRequestPaymentRequest where + schema := .struct "PutBucketRequestPaymentRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "RequestPaymentConfiguration", required := true, xmlName := some "RequestPaymentConfiguration", location := .payload }, (Shape.schema RequestPaymentConfiguration))] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "RequestPaymentConfiguration" x.requestPaymentConfiguration] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let requestPaymentConfiguration ← v.req "RequestPaymentConfiguration" + return { bucket, checksumAlgorithm, contentMD5, expectedBucketOwner, requestPaymentConfiguration } + +structure PutBucketTaggingRequest where + /-- The bucket name. -/ + bucket : String + /-- Indicates the algorithm used to create the checksum for the request when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The Base64 encoded 128-bit MD5 digest of the data. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- Container for the TagSet and Tag elements. -/ + tagging : Tagging +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutBucketTaggingRequest where + schema := .struct "PutBucketTaggingRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Tagging", required := true, xmlName := some "Tagging", location := .payload }, (Shape.schema Tagging))] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Tagging" x.tagging] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let tagging ← v.req "Tagging" + return { bucket, checksumAlgorithm, contentMD5, expectedBucketOwner, tagging } + +structure PutBucketVersioningRequest where + /-- The bucket name. -/ + bucket : String + /-- Indicates the algorithm used to create the checksum for the request when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The Base64 encoded 128-bit MD5 digest of the data. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device. -/ + mfa : Option String := none + /-- Container for setting the versioning state. -/ + versioningConfiguration : VersioningConfiguration +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutBucketVersioningRequest where + schema := .struct "PutBucketVersioningRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "MFA", location := .header "x-amz-mfa" }, .string), + ({ name := "VersioningConfiguration", required := true, xmlName := some "VersioningConfiguration", location := .payload }, (Shape.schema VersioningConfiguration))] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, putOpt "MFA" x.mfa, put "VersioningConfiguration" x.versioningConfiguration] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let mfa ← v.opt "MFA" + let versioningConfiguration ← v.req "VersioningConfiguration" + return { bucket, checksumAlgorithm, contentMD5, expectedBucketOwner, mfa, versioningConfiguration } + +structure PutObjectLegalHoldRequest where + /-- The bucket name containing the object that you want to place a legal hold on. -/ + bucket : String + /-- Indicates the algorithm used to create the checksum for the object when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The MD5 hash for the request body. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The key name for the object that you want to place a legal hold on. -/ + key : String + /-- Container element for the legal hold configuration you want to apply to the specified object. -/ + legalHold : Option ObjectLockLegalHold := none + requestPayer : Option RequestPayer := none + /-- The version ID of the object that you want to place a legal hold on. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutObjectLegalHoldRequest where + schema := .struct "PutObjectLegalHoldRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "LegalHold", xmlName := some "LegalHold", location := .payload }, (Shape.schema ObjectLockLegalHold)), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "VersionId", location := .query "versionId" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Key" x.key, putOpt "LegalHold" x.legalHold, putOpt "RequestPayer" x.requestPayer, putOpt "VersionId" x.versionId] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let key ← v.req "Key" + let legalHold ← v.opt "LegalHold" + let requestPayer ← v.opt "RequestPayer" + let versionId ← v.opt "VersionId" + return { bucket, checksumAlgorithm, contentMD5, expectedBucketOwner, key, legalHold, requestPayer, versionId } + +structure PutObjectRetentionRequest where + /-- The bucket name that contains the object you want to apply this Object Retention configuration to. -/ + bucket : String + /-- Indicates whether this action should bypass Governance-mode restrictions. -/ + bypassGovernanceRetention : Option Bool := none + /-- Indicates the algorithm used to create the checksum for the object when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The MD5 hash for the request body. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The key name for the object that you want to apply this Object Retention configuration to. -/ + key : String + requestPayer : Option RequestPayer := none + /-- The container element for the Object Retention configuration. -/ + retention : Option ObjectLockRetention := none + /-- The version ID for the object that you want to apply this Object Retention configuration to. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutObjectRetentionRequest where + schema := .struct "PutObjectRetentionRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "BypassGovernanceRetention", location := .header "x-amz-bypass-governance-retention" }, .bool), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "Retention", xmlName := some "Retention", location := .payload }, (Shape.schema ObjectLockRetention)), + ({ name := "VersionId", location := .query "versionId" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "BypassGovernanceRetention" x.bypassGovernanceRetention, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Key" x.key, putOpt "RequestPayer" x.requestPayer, putOpt "Retention" x.retention, putOpt "VersionId" x.versionId] + ofValue v := do + let bucket ← v.req "Bucket" + let bypassGovernanceRetention ← v.opt "BypassGovernanceRetention" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let key ← v.req "Key" + let requestPayer ← v.opt "RequestPayer" + let retention ← v.opt "Retention" + let versionId ← v.opt "VersionId" + return { bucket, bypassGovernanceRetention, checksumAlgorithm, contentMD5, expectedBucketOwner, key, requestPayer, retention, versionId } + +structure PutObjectTaggingRequest where + /-- The bucket name containing the object. -/ + bucket : String + /-- Indicates the algorithm used to create the checksum for the object when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The MD5 hash for the request body. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- Name of the object key. -/ + key : String + /-- Confirms that the requester knows that she or he will be charged for the tagging object request. -/ + requestPayer : Option RequestPayer := none + /-- Container for the TagSet and Tag elements. -/ + tagging : Tagging + /-- The versionId of the object that the tag-set will be added to. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutObjectTaggingRequest where + schema := .struct "PutObjectTaggingRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "Tagging", required := true, xmlName := some "Tagging", location := .payload }, (Shape.schema Tagging)), + ({ name := "VersionId", location := .query "versionId" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Key" x.key, putOpt "RequestPayer" x.requestPayer, put "Tagging" x.tagging, putOpt "VersionId" x.versionId] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let key ← v.req "Key" + let requestPayer ← v.opt "RequestPayer" + let tagging ← v.req "Tagging" + let versionId ← v.opt "VersionId" + return { bucket, checksumAlgorithm, contentMD5, expectedBucketOwner, key, requestPayer, tagging, versionId } + +/-- A container for specifying a filter that excludes matching objects from the replication rule. -/ +structure ReplicationRuleNotOperator where + /-- A container for specifying prefixes and tags. -/ + or : Option ReplicationRuleOrOperator := none + /-- An object key name prefix that identifies objects to exclude from the replication rule. -/ + «prefix» : Option String := none + /-- A tag key and value that identify objects to exclude from the replication rule. -/ + tag : Option Tag := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicationRuleNotOperator where + schema := .struct "ReplicationRuleNotOperator" [({ name := "Or" }, (Shape.schema ReplicationRuleOrOperator)), + ({ name := "Prefix" }, .string), + ({ name := "Tag" }, (Shape.schema Tag))] + toValue x := record [putOpt "Or" x.or, putOpt "Prefix" x.«prefix», putOpt "Tag" x.tag] + ofValue v := do + let or ← v.opt "Or" + let «prefix» ← v.opt "Prefix" + let tag ← v.opt "Tag" + return { or, «prefix», tag } + +/-- Specifies the redirect behavior and when a redirect is applied. -/ +structure RoutingRule where + /-- A container for describing a condition that must be met for the specified redirect to apply. -/ + condition : Option Condition := none + /-- Container for redirect information. -/ + redirect : Redirect +deriving DecidableEq, Repr, Inhabited + +instance : Shape RoutingRule where + schema := .struct "RoutingRule" [({ name := "Condition" }, (Shape.schema Condition)), + ({ name := "Redirect", required := true }, (Shape.schema Redirect))] + toValue x := record [putOpt "Condition" x.condition, put "Redirect" x.redirect] + ofValue v := do + let condition ← v.opt "Condition" + let redirect ← v.req "Redirect" + return { condition, redirect } + +/-- A container for object key name prefix and suffix filtering rules. -/ +structure S3KeyFilter where + filterRules : Option (List FilterRule) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape S3KeyFilter where + schema := .struct "S3KeyFilter" [({ name := "FilterRules", xmlName := some "FilterRule", flattened := true }, (.list (Shape.schema FilterRule) "member"))] + toValue x := record [putOpt "FilterRules" x.filterRules] + ofValue v := do + let filterRules ← v.opt "FilterRules" + return { filterRules } + +/-- The container for selecting objects from a content event stream. -/ +inductive SelectObjectContentEventStream where + /-- The Continuation Event. -/ + | cont (value : ContinuationEvent) + /-- The End Event. -/ + | «end» (value : EndEvent) + /-- The Progress Event. -/ + | progress (value : ProgressEvent) + /-- The Records Event. -/ + | records (value : RecordsEvent) + /-- The Stats Event. -/ + | stats (value : StatsEvent) +deriving DecidableEq, Repr, Inhabited + +instance : Shape SelectObjectContentEventStream where + schema := .union "SelectObjectContentEventStream" [({ name := "Cont" }, (Shape.schema ContinuationEvent)), + ({ name := "End" }, (Shape.schema EndEvent)), + ({ name := "Progress" }, (Shape.schema ProgressEvent)), + ({ name := "Records" }, (Shape.schema RecordsEvent)), + ({ name := "Stats" }, (Shape.schema StatsEvent))] + toValue + | .cont value => record [put "Cont" value] + | .«end» value => record [put "End" value] + | .progress value => record [put "Progress" value] + | .records value => record [put "Records" value] + | .stats value => record [put "Stats" value] + ofValue + | .record [("Cont", value)] => .cont <$> Shape.ofValue value + | .record [("End", value)] => .«end» <$> Shape.ofValue value + | .record [("Progress", value)] => .progress <$> Shape.ofValue value + | .record [("Records", value)] => .records <$> Shape.ofValue value + | .record [("Stats", value)] => .stats <$> Shape.ofValue value + | _ => .error "expected exactly one member of SelectObjectContentEventStream" + +/-- Specifies the default server-side encryption configuration. -/ +structure ServerSideEncryptionRule where + /-- Specifies the default server-side encryption to apply to new objects in the bucket. -/ + applyServerSideEncryptionByDefault : Option ServerSideEncryptionByDefault := none + /-- A bucket-level setting for Amazon S3 general purpose buckets used to prevent the upload of new objects encrypted with the specified server-side encryption type. -/ + blockedEncryptionTypes : Option BlockedEncryptionTypes := none + /-- Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. -/ + bucketKeyEnabled : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ServerSideEncryptionRule where + schema := .struct "ServerSideEncryptionRule" [({ name := "ApplyServerSideEncryptionByDefault" }, (Shape.schema ServerSideEncryptionByDefault)), + ({ name := "BlockedEncryptionTypes" }, (Shape.schema BlockedEncryptionTypes)), + ({ name := "BucketKeyEnabled" }, .bool)] + toValue x := record [putOpt "ApplyServerSideEncryptionByDefault" x.applyServerSideEncryptionByDefault, putOpt "BlockedEncryptionTypes" x.blockedEncryptionTypes, putOpt "BucketKeyEnabled" x.bucketKeyEnabled] + ofValue v := do + let applyServerSideEncryptionByDefault ← v.opt "ApplyServerSideEncryptionByDefault" + let blockedEncryptionTypes ← v.opt "BlockedEncryptionTypes" + let bucketKeyEnabled ← v.opt "BucketKeyEnabled" + return { applyServerSideEncryptionByDefault, blockedEncryptionTypes, bucketKeyEnabled } + +/-- A container that describes additional filters for identifying the source objects that you want to replicate. -/ +structure SourceSelectionCriteria where + /-- A filter that you can specify for selections for modifications on replicas. -/ + replicaModifications : Option ReplicaModifications := none + /-- A container for filter information for the selection of Amazon S3 objects encrypted with Amazon Web Services KMS. -/ + sseKmsEncryptedObjects : Option SseKmsEncryptedObjects := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SourceSelectionCriteria where + schema := .struct "SourceSelectionCriteria" [({ name := "ReplicaModifications" }, (Shape.schema ReplicaModifications)), + ({ name := "SseKmsEncryptedObjects" }, (Shape.schema SseKmsEncryptedObjects))] + toValue x := record [putOpt "ReplicaModifications" x.replicaModifications, putOpt "SseKmsEncryptedObjects" x.sseKmsEncryptedObjects] + ofValue v := do + let replicaModifications ← v.opt "ReplicaModifications" + let sseKmsEncryptedObjects ← v.opt "SseKmsEncryptedObjects" + return { replicaModifications, sseKmsEncryptedObjects } + +/-- Container for granting information. -/ +structure TargetGrant where + /-- Container for the person being granted permissions. -/ + grantee : Option Grantee := none + /-- Logging permissions assigned to the grantee for the bucket. -/ + permission : Option BucketLogsPermission := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TargetGrant where + schema := .struct "TargetGrant" [({ name := "Grantee" }, (Shape.schema Grantee)), + ({ name := "Permission" }, (Shape.schema BucketLogsPermission))] + toValue x := record [putOpt "Grantee" x.grantee, putOpt "Permission" x.permission] + ofValue v := do + let grantee ← v.opt "Grantee" + let permission ← v.opt "Permission" + return { grantee, permission } + +/-- Amazon S3 key format for log objects. -/ +structure TargetObjectKeyFormat where + /-- Partitioned S3 key for log objects. -/ + partitionedPrefix : Option PartitionedPrefix := none + /-- To use the simple format for S3 keys for log objects. -/ + simplePrefix : Option SimplePrefix := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TargetObjectKeyFormat where + schema := .struct "TargetObjectKeyFormat" [({ name := "PartitionedPrefix", xmlName := some "PartitionedPrefix" }, (Shape.schema PartitionedPrefix)), + ({ name := "SimplePrefix", xmlName := some "SimplePrefix" }, (Shape.schema SimplePrefix))] + toValue x := record [putOpt "PartitionedPrefix" x.partitionedPrefix, putOpt "SimplePrefix" x.simplePrefix] + ofValue v := do + let partitionedPrefix ← v.opt "PartitionedPrefix" + let simplePrefix ← v.opt "SimplePrefix" + return { partitionedPrefix, simplePrefix } + +structure UpdateObjectEncryptionRequest where + /-- The name of the general purpose bucket that contains the specified object key name. -/ + bucket : String + /-- Indicates the algorithm used to create the checksum for the object when you use an Amazon Web Services SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The MD5 hash for the request body. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The key name of the object that you want to update the server-side encryption type for. -/ + key : String + /-- The updated server-side encryption type for this object. -/ + objectEncryption : ObjectEncryption + requestPayer : Option RequestPayer := none + /-- The version ID of the object that you want to update the server-side encryption type for. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateObjectEncryptionRequest where + schema := .struct "UpdateObjectEncryptionRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "ObjectEncryption", required := true, location := .payload }, (Shape.schema ObjectEncryption)), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "VersionId", location := .query "versionId" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Key" x.key, put "ObjectEncryption" x.objectEncryption, putOpt "RequestPayer" x.requestPayer, putOpt "VersionId" x.versionId] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let key ← v.req "Key" + let objectEncryption ← v.req "ObjectEncryption" + let requestPayer ← v.opt "RequestPayer" + let versionId ← v.opt "VersionId" + return { bucket, checksumAlgorithm, contentMD5, expectedBucketOwner, key, objectEncryption, requestPayer, versionId } + +/-- Contains the elements that set the ACL permissions for an object per grantee. -/ +structure AccessControlPolicy where + /-- A list of grants. -/ + grants : Option (List Grant) := none + /-- Container for the bucket owner's display name and ID. -/ + owner : Option Owner := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AccessControlPolicy where + schema := .struct "AccessControlPolicy" [({ name := "Grants", xmlName := some "AccessControlList" }, (.list (Shape.schema Grant) "Grant")), + ({ name := "Owner" }, (Shape.schema Owner))] + toValue x := record [putOpt "Grants" x.grants, putOpt "Owner" x.owner] + ofValue v := do + let grants ← v.opt "Grants" + let owner ← v.opt "Owner" + return { grants, owner } + +structure CreateBucketRequest where + /-- The canned ACL to apply to the bucket. -/ + acl : Option BucketCannedACL := none + /-- The name of the bucket to create. -/ + bucket : String + /-- Specifies the namespace where you want to create your general purpose bucket. -/ + bucketNamespace : Option BucketNamespace := none + /-- The configuration information for the bucket. -/ + createBucketConfiguration : Option CreateBucketConfiguration := none + /-- Allows grantee the read, write, read ACP, and write ACP permissions on the bucket. -/ + grantFullControl : Option String := none + /-- Allows grantee to list the objects in the bucket. -/ + grantRead : Option String := none + /-- Allows grantee to read the bucket ACL. -/ + grantReadACP : Option String := none + /-- Allows grantee to create new objects in the bucket. -/ + grantWrite : Option String := none + /-- Allows grantee to write the ACL for the applicable bucket. -/ + grantWriteACP : Option String := none + /-- Specifies whether you want S3 Object Lock to be enabled for the new bucket. -/ + objectLockEnabledForBucket : Option Bool := none + objectOwnership : Option ObjectOwnership := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateBucketRequest where + schema := .struct "CreateBucketRequest" [({ name := "ACL", location := .header "x-amz-acl" }, (Shape.schema BucketCannedACL)), + ({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "BucketNamespace", location := .header "x-amz-bucket-namespace" }, (Shape.schema BucketNamespace)), + ({ name := "CreateBucketConfiguration", xmlName := some "CreateBucketConfiguration", location := .payload }, (Shape.schema CreateBucketConfiguration)), + ({ name := "GrantFullControl", location := .header "x-amz-grant-full-control" }, .string), + ({ name := "GrantRead", location := .header "x-amz-grant-read" }, .string), + ({ name := "GrantReadACP", location := .header "x-amz-grant-read-acp" }, .string), + ({ name := "GrantWrite", location := .header "x-amz-grant-write" }, .string), + ({ name := "GrantWriteACP", location := .header "x-amz-grant-write-acp" }, .string), + ({ name := "ObjectLockEnabledForBucket", location := .header "x-amz-bucket-object-lock-enabled" }, .bool), + ({ name := "ObjectOwnership", location := .header "x-amz-object-ownership" }, (Shape.schema ObjectOwnership))] + toValue x := record [putOpt "ACL" x.acl, put "Bucket" x.bucket, putOpt "BucketNamespace" x.bucketNamespace, putOpt "CreateBucketConfiguration" x.createBucketConfiguration, putOpt "GrantFullControl" x.grantFullControl, putOpt "GrantRead" x.grantRead, putOpt "GrantReadACP" x.grantReadACP, putOpt "GrantWrite" x.grantWrite, putOpt "GrantWriteACP" x.grantWriteACP, putOpt "ObjectLockEnabledForBucket" x.objectLockEnabledForBucket, putOpt "ObjectOwnership" x.objectOwnership] + ofValue v := do + let acl ← v.opt "ACL" + let bucket ← v.req "Bucket" + let bucketNamespace ← v.opt "BucketNamespace" + let createBucketConfiguration ← v.opt "CreateBucketConfiguration" + let grantFullControl ← v.opt "GrantFullControl" + let grantRead ← v.opt "GrantRead" + let grantReadACP ← v.opt "GrantReadACP" + let grantWrite ← v.opt "GrantWrite" + let grantWriteACP ← v.opt "GrantWriteACP" + let objectLockEnabledForBucket ← v.opt "ObjectLockEnabledForBucket" + let objectOwnership ← v.opt "ObjectOwnership" + return { acl, bucket, bucketNamespace, createBucketConfiguration, grantFullControl, grantRead, grantReadACP, grantWrite, grantWriteACP, objectLockEnabledForBucket, objectOwnership } + +/-- Specifies information about where to publish analysis or configuration results for an Amazon S3 bucket and S3 Replication Time Control (S3 RTC). -/ +structure Destination where + /-- Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the Amazon Web Services account that owns the destination bucket. -/ + accessControlTranslation : Option AccessControlTranslation := none + /-- Destination bucket owner account ID. -/ + account : Option String := none + /-- The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results. -/ + bucket : String + /-- A container that provides information about encryption. -/ + encryptionConfiguration : Option EncryptionConfiguration := none + /-- A container specifying replication metrics-related settings enabling replication metrics and events. -/ + metrics : Option Metrics := none + /-- A container specifying S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. -/ + replicationTime : Option ReplicationTime := none + /-- The storage class to use when replicating objects, such as S3 Standard or reduced redundancy. -/ + storageClass : Option StorageClass := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Destination where + schema := .struct "Destination" [({ name := "AccessControlTranslation" }, (Shape.schema AccessControlTranslation)), + ({ name := "Account" }, .string), + ({ name := "Bucket", required := true }, .string), + ({ name := "EncryptionConfiguration" }, (Shape.schema EncryptionConfiguration)), + ({ name := "Metrics" }, (Shape.schema Metrics)), + ({ name := "ReplicationTime" }, (Shape.schema ReplicationTime)), + ({ name := "StorageClass" }, (Shape.schema StorageClass))] + toValue x := record [putOpt "AccessControlTranslation" x.accessControlTranslation, putOpt "Account" x.account, put "Bucket" x.bucket, putOpt "EncryptionConfiguration" x.encryptionConfiguration, putOpt "Metrics" x.metrics, putOpt "ReplicationTime" x.replicationTime, putOpt "StorageClass" x.storageClass] + ofValue v := do + let accessControlTranslation ← v.opt "AccessControlTranslation" + let account ← v.opt "Account" + let bucket ← v.req "Bucket" + let encryptionConfiguration ← v.opt "EncryptionConfiguration" + let metrics ← v.opt "Metrics" + let replicationTime ← v.opt "ReplicationTime" + let storageClass ← v.opt "StorageClass" + return { accessControlTranslation, account, bucket, encryptionConfiguration, metrics, replicationTime, storageClass } + +structure GetBucketAclOutput where + /-- A list of grants. -/ + grants : Option (List Grant) := none + /-- Container for the bucket owner's ID. -/ + owner : Option Owner := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketAclOutput where + schema := .struct "AccessControlPolicy" [({ name := "Grants", xmlName := some "AccessControlList" }, (.list (Shape.schema Grant) "Grant")), + ({ name := "Owner" }, (Shape.schema Owner))] + toValue x := record [putOpt "Grants" x.grants, putOpt "Owner" x.owner] + ofValue v := do + let grants ← v.opt "Grants" + let owner ← v.opt "Owner" + return { grants, owner } + +structure GetBucketMetadataTableConfigurationOutput where + /-- The metadata table configuration for the general purpose bucket. -/ + getBucketMetadataTableConfigurationResult : Option GetBucketMetadataTableConfigurationResult := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketMetadataTableConfigurationOutput where + schema := .struct "GetBucketMetadataTableConfigurationOutput" [({ name := "GetBucketMetadataTableConfigurationResult", location := .payload }, (Shape.schema GetBucketMetadataTableConfigurationResult))] + toValue x := record [putOpt "GetBucketMetadataTableConfigurationResult" x.getBucketMetadataTableConfigurationResult] + ofValue v := do + let getBucketMetadataTableConfigurationResult ← v.opt "GetBucketMetadataTableConfigurationResult" + return { getBucketMetadataTableConfigurationResult } + +structure GetBucketOwnershipControlsOutput where + /-- The OwnershipControls (BucketOwnerEnforced, BucketOwnerPreferred, or ObjectWriter) currently in effect for this Amazon S3 bucket. -/ + ownershipControls : Option OwnershipControls := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketOwnershipControlsOutput where + schema := .struct "GetBucketOwnershipControlsOutput" [({ name := "OwnershipControls", location := .payload }, (Shape.schema OwnershipControls))] + toValue x := record [putOpt "OwnershipControls" x.ownershipControls] + ofValue v := do + let ownershipControls ← v.opt "OwnershipControls" + return { ownershipControls } + +structure GetBucketWebsiteOutput where + /-- The object key name of the website error document to use for 4XX class errors. -/ + errorDocument : Option ErrorDocument := none + /-- The name of the index document for the website (for example index.html ). -/ + indexDocument : Option IndexDocument := none + /-- Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket. -/ + redirectAllRequestsTo : Option RedirectAllRequestsTo := none + /-- Rules that define when a redirect is applied and the redirect behavior. -/ + routingRules : Option (List RoutingRule) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketWebsiteOutput where + schema := .struct "WebsiteConfiguration" [({ name := "ErrorDocument" }, (Shape.schema ErrorDocument)), + ({ name := "IndexDocument" }, (Shape.schema IndexDocument)), + ({ name := "RedirectAllRequestsTo" }, (Shape.schema RedirectAllRequestsTo)), + ({ name := "RoutingRules" }, (.list (Shape.schema RoutingRule) "RoutingRule"))] + toValue x := record [putOpt "ErrorDocument" x.errorDocument, putOpt "IndexDocument" x.indexDocument, putOpt "RedirectAllRequestsTo" x.redirectAllRequestsTo, putOpt "RoutingRules" x.routingRules] + ofValue v := do + let errorDocument ← v.opt "ErrorDocument" + let indexDocument ← v.opt "IndexDocument" + let redirectAllRequestsTo ← v.opt "RedirectAllRequestsTo" + let routingRules ← v.opt "RoutingRules" + return { errorDocument, indexDocument, redirectAllRequestsTo, routingRules } + +structure GetObjectAclOutput where + /-- A list of grants. -/ + grants : Option (List Grant) := none + /-- Container for the bucket owner's ID. -/ + owner : Option Owner := none + requestCharged : Option RequestCharged := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetObjectAclOutput where + schema := .struct "AccessControlPolicy" [({ name := "Grants", xmlName := some "AccessControlList" }, (.list (Shape.schema Grant) "Grant")), + ({ name := "Owner" }, (Shape.schema Owner)), + ({ name := "RequestCharged", location := .header "x-amz-request-charged" }, (Shape.schema RequestCharged))] + toValue x := record [putOpt "Grants" x.grants, putOpt "Owner" x.owner, putOpt "RequestCharged" x.requestCharged] + ofValue v := do + let grants ← v.opt "Grants" + let owner ← v.opt "Owner" + let requestCharged ← v.opt "RequestCharged" + return { grants, owner, requestCharged } + +/-- Specifies the S3 Intelligent-Tiering configuration for an Amazon S3 bucket. -/ +structure IntelligentTieringConfiguration where + /-- Specifies a bucket filter. -/ + filter : Option IntelligentTieringFilter := none + /-- The ID used to identify the S3 Intelligent-Tiering configuration. -/ + id : String + /-- Specifies the status of the configuration. -/ + status : IntelligentTieringStatus + /-- Specifies the S3 Intelligent-Tiering storage class tier of the configuration. -/ + tierings : (List Tiering) +deriving DecidableEq, Repr, Inhabited + +instance : Shape IntelligentTieringConfiguration where + schema := .struct "IntelligentTieringConfiguration" [({ name := "Filter" }, (Shape.schema IntelligentTieringFilter)), + ({ name := "Id", required := true }, .string), + ({ name := "Status", required := true }, (Shape.schema IntelligentTieringStatus)), + ({ name := "Tierings", required := true, xmlName := some "Tiering", flattened := true }, (.list (Shape.schema Tiering) "member"))] + toValue x := record [putOpt "Filter" x.filter, put "Id" x.id, put "Status" x.status, put "Tierings" x.tierings] + ofValue v := do + let filter ← v.opt "Filter" + let id ← v.req "Id" + let status ← v.req "Status" + let tierings ← v.req "Tierings" + return { filter, id, status, tierings } + +/-- Specifies the S3 Inventory configuration for an Amazon S3 bucket. -/ +structure InventoryDestination where + /-- Contains the bucket name, file format, bucket owner (optional), and prefix (optional) where inventory results are published. -/ + s3BucketDestination : InventoryS3BucketDestination +deriving DecidableEq, Repr, Inhabited + +instance : Shape InventoryDestination where + schema := .struct "InventoryDestination" [({ name := "S3BucketDestination", required := true }, (Shape.schema InventoryS3BucketDestination))] + toValue x := record [put "S3BucketDestination" x.s3BucketDestination] + ofValue v := do + let s3BucketDestination ← v.req "S3BucketDestination" + return { s3BucketDestination } + +/-- A lifecycle rule for individual objects in an Amazon S3 bucket. -/ +structure LifecycleRule where + abortIncompleteMultipartUpload : Option AbortIncompleteMultipartUpload := none + /-- Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker. -/ + expiration : Option LifecycleExpiration := none + /-- The Filter is used to identify objects that a Lifecycle Rule applies to. -/ + filter : Option LifecycleRuleFilter := none + /-- Unique identifier for the rule. -/ + id : Option String := none + noncurrentVersionExpiration : Option NoncurrentVersionExpiration := none + /-- Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. -/ + noncurrentVersionTransitions : Option (List NoncurrentVersionTransition) := none + /-- The general purpose bucket prefix that identifies one or more objects to which the rule applies. -/ + «prefix» : Option String := none + /-- If 'Enabled', the rule is currently being applied. -/ + status : ExpirationStatus + /-- Specifies when an Amazon S3 object transitions to a specified storage class. -/ + transitions : Option (List Transition) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape LifecycleRule where + schema := .struct "LifecycleRule" [({ name := "AbortIncompleteMultipartUpload" }, (Shape.schema AbortIncompleteMultipartUpload)), + ({ name := "Expiration" }, (Shape.schema LifecycleExpiration)), + ({ name := "Filter" }, (Shape.schema LifecycleRuleFilter)), + ({ name := "ID" }, .string), + ({ name := "NoncurrentVersionExpiration" }, (Shape.schema NoncurrentVersionExpiration)), + ({ name := "NoncurrentVersionTransitions", xmlName := some "NoncurrentVersionTransition", flattened := true }, (.list (Shape.schema NoncurrentVersionTransition) "member")), + ({ name := "Prefix" }, .string), + ({ name := "Status", required := true }, (Shape.schema ExpirationStatus)), + ({ name := "Transitions", xmlName := some "Transition", flattened := true }, (.list (Shape.schema Transition) "member"))] + toValue x := record [putOpt "AbortIncompleteMultipartUpload" x.abortIncompleteMultipartUpload, putOpt "Expiration" x.expiration, putOpt "Filter" x.filter, putOpt "ID" x.id, putOpt "NoncurrentVersionExpiration" x.noncurrentVersionExpiration, putOpt "NoncurrentVersionTransitions" x.noncurrentVersionTransitions, putOpt "Prefix" x.«prefix», put "Status" x.status, putOpt "Transitions" x.transitions] + ofValue v := do + let abortIncompleteMultipartUpload ← v.opt "AbortIncompleteMultipartUpload" + let expiration ← v.opt "Expiration" + let filter ← v.opt "Filter" + let id ← v.opt "ID" + let noncurrentVersionExpiration ← v.opt "NoncurrentVersionExpiration" + let noncurrentVersionTransitions ← v.opt "NoncurrentVersionTransitions" + let «prefix» ← v.opt "Prefix" + let status ← v.req "Status" + let transitions ← v.opt "Transitions" + return { abortIncompleteMultipartUpload, expiration, filter, id, noncurrentVersionExpiration, noncurrentVersionTransitions, «prefix», status, transitions } + +/-- Describes where logs are stored and the prefix that Amazon S3 assigns to all log object keys for a bucket. -/ +structure LoggingEnabled where + /-- Specifies the bucket where you want Amazon S3 to store server access logs. -/ + targetBucket : String + /-- Container for granting information. -/ + targetGrants : Option (List TargetGrant) := none + /-- Amazon S3 key format for log objects. -/ + targetObjectKeyFormat : Option TargetObjectKeyFormat := none + /-- A prefix for all log object keys. -/ + targetPrefix : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape LoggingEnabled where + schema := .struct "LoggingEnabled" [({ name := "TargetBucket", required := true }, .string), + ({ name := "TargetGrants" }, (.list (Shape.schema TargetGrant) "Grant")), + ({ name := "TargetObjectKeyFormat" }, (Shape.schema TargetObjectKeyFormat)), + ({ name := "TargetPrefix", required := true }, .string)] + toValue x := record [put "TargetBucket" x.targetBucket, putOpt "TargetGrants" x.targetGrants, putOpt "TargetObjectKeyFormat" x.targetObjectKeyFormat, put "TargetPrefix" x.targetPrefix] + ofValue v := do + let targetBucket ← v.req "TargetBucket" + let targetGrants ← v.opt "TargetGrants" + let targetObjectKeyFormat ← v.opt "TargetObjectKeyFormat" + let targetPrefix ← v.req "TargetPrefix" + return { targetBucket, targetGrants, targetObjectKeyFormat, targetPrefix } + +/-- The S3 Metadata configuration for a general purpose bucket. -/ +structure MetadataConfiguration where + /-- Optional annotation table configuration to include with the metadata configuration. -/ + annotationTableConfiguration : Option AnnotationTableConfiguration := none + /-- The inventory table configuration for a metadata configuration. -/ + inventoryTableConfiguration : Option InventoryTableConfiguration := none + /-- The journal table configuration for a metadata configuration. -/ + journalTableConfiguration : JournalTableConfiguration +deriving DecidableEq, Repr, Inhabited + +instance : Shape MetadataConfiguration where + schema := .struct "MetadataConfiguration" [({ name := "AnnotationTableConfiguration" }, (Shape.schema AnnotationTableConfiguration)), + ({ name := "InventoryTableConfiguration" }, (Shape.schema InventoryTableConfiguration)), + ({ name := "JournalTableConfiguration", required := true }, (Shape.schema JournalTableConfiguration))] + toValue x := record [putOpt "AnnotationTableConfiguration" x.annotationTableConfiguration, putOpt "InventoryTableConfiguration" x.inventoryTableConfiguration, put "JournalTableConfiguration" x.journalTableConfiguration] + ofValue v := do + let annotationTableConfiguration ← v.opt "AnnotationTableConfiguration" + let inventoryTableConfiguration ← v.opt "InventoryTableConfiguration" + let journalTableConfiguration ← v.req "JournalTableConfiguration" + return { annotationTableConfiguration, inventoryTableConfiguration, journalTableConfiguration } + +/-- The S3 Metadata configuration for a general purpose bucket. -/ +structure MetadataConfigurationResult where + /-- The annotation table configuration result, if an annotation table is configured. -/ + annotationTableConfigurationResult : Option AnnotationTableConfigurationResult := none + /-- The destination settings for a metadata configuration. -/ + destinationResult : DestinationResult + /-- The inventory table configuration for a metadata configuration. -/ + inventoryTableConfigurationResult : Option InventoryTableConfigurationResult := none + /-- The journal table configuration for a metadata configuration. -/ + journalTableConfigurationResult : Option JournalTableConfigurationResult := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MetadataConfigurationResult where + schema := .struct "MetadataConfigurationResult" [({ name := "AnnotationTableConfigurationResult" }, (Shape.schema AnnotationTableConfigurationResult)), + ({ name := "DestinationResult", required := true }, (Shape.schema DestinationResult)), + ({ name := "InventoryTableConfigurationResult" }, (Shape.schema InventoryTableConfigurationResult)), + ({ name := "JournalTableConfigurationResult" }, (Shape.schema JournalTableConfigurationResult))] + toValue x := record [putOpt "AnnotationTableConfigurationResult" x.annotationTableConfigurationResult, put "DestinationResult" x.destinationResult, putOpt "InventoryTableConfigurationResult" x.inventoryTableConfigurationResult, putOpt "JournalTableConfigurationResult" x.journalTableConfigurationResult] + ofValue v := do + let annotationTableConfigurationResult ← v.opt "AnnotationTableConfigurationResult" + let destinationResult ← v.req "DestinationResult" + let inventoryTableConfigurationResult ← v.opt "InventoryTableConfigurationResult" + let journalTableConfigurationResult ← v.opt "JournalTableConfigurationResult" + return { annotationTableConfigurationResult, destinationResult, inventoryTableConfigurationResult, journalTableConfigurationResult } + +/-- Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. -/ +structure MetricsConfiguration where + /-- Specifies a metrics configuration filter. -/ + filter : Option MetricsFilter := none + /-- The ID used to identify the metrics configuration. -/ + id : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape MetricsConfiguration where + schema := .struct "MetricsConfiguration" [({ name := "Filter" }, (Shape.schema MetricsFilter)), + ({ name := "Id", required := true }, .string)] + toValue x := record [putOpt "Filter" x.filter, put "Id" x.id] + ofValue v := do + let filter ← v.opt "Filter" + let id ← v.req "Id" + return { filter, id } + +/-- Specifies object key name filtering rules. -/ +structure NotificationConfigurationFilter where + key : Option S3KeyFilter := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NotificationConfigurationFilter where + schema := .struct "NotificationConfigurationFilter" [({ name := "Key", xmlName := some "S3Key" }, (Shape.schema S3KeyFilter))] + toValue x := record [putOpt "Key" x.key] + ofValue v := do + let key ← v.opt "Key" + return { key } + +/-- The container element for Object Lock configuration parameters. -/ +structure ObjectLockConfiguration where + /-- Indicates whether this bucket has an Object Lock configuration enabled. -/ + objectLockEnabled : Option ObjectLockEnabled := none + /-- Specifies the Object Lock rule for the specified object. -/ + rule : Option ObjectLockRule := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ObjectLockConfiguration where + schema := .struct "ObjectLockConfiguration" [({ name := "ObjectLockEnabled" }, (Shape.schema ObjectLockEnabled)), + ({ name := "Rule" }, (Shape.schema ObjectLockRule))] + toValue x := record [putOpt "ObjectLockEnabled" x.objectLockEnabled, putOpt "Rule" x.rule] + ofValue v := do + let objectLockEnabled ← v.opt "ObjectLockEnabled" + let rule ← v.opt "Rule" + return { objectLockEnabled, rule } + +structure PutBucketOwnershipControlsRequest where + /-- The name of the Amazon S3 bucket whose OwnershipControls you want to set. -/ + bucket : String + /-- Indicates the algorithm used to create the checksum for the object when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The MD5 hash of the OwnershipControls request body. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The OwnershipControls (BucketOwnerEnforced, BucketOwnerPreferred, or ObjectWriter) that you want to apply to this Amazon S3 bucket. -/ + ownershipControls : OwnershipControls +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutBucketOwnershipControlsRequest where + schema := .struct "PutBucketOwnershipControlsRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "OwnershipControls", required := true, xmlName := some "OwnershipControls", location := .payload }, (Shape.schema OwnershipControls))] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "OwnershipControls" x.ownershipControls] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let ownershipControls ← v.req "OwnershipControls" + return { bucket, checksumAlgorithm, contentMD5, expectedBucketOwner, ownershipControls } + +/-- A container for specifying rule filters. -/ +structure ReplicationRuleAndOperator where + /-- A container for specifying filters that exclude matching objects from the replication rule. -/ + not : Option ReplicationRuleNotOperator := none + /-- An object key name prefix that identifies the subset of objects to which the rule applies. -/ + «prefix» : Option String := none + /-- An array of tags containing key and value pairs. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicationRuleAndOperator where + schema := .struct "ReplicationRuleAndOperator" [({ name := "Not" }, (Shape.schema ReplicationRuleNotOperator)), + ({ name := "Prefix" }, .string), + ({ name := "Tags", xmlName := some "Tag", flattened := true }, (.list (Shape.schema Tag) "Tag"))] + toValue x := record [putOpt "Not" x.not, putOpt "Prefix" x.«prefix», putOpt "Tags" x.tags] + ofValue v := do + let not ← v.opt "Not" + let «prefix» ← v.opt "Prefix" + let tags ← v.opt "Tags" + return { not, «prefix», tags } + +/-- Describes an Amazon S3 location that will receive the results of the restore request. -/ +structure S3Location where + /-- A list of grants that control access to the staged results. -/ + accessControlList : Option (List Grant) := none + /-- The name of the bucket where the restore results will be placed. -/ + bucketName : String + /-- The canned ACL to apply to the restore results. -/ + cannedACL : Option ObjectCannedACL := none + encryption : Option Encryption := none + /-- The prefix that is prepended to the restore results for this request. -/ + «prefix» : String + /-- The class of storage used to store the restore results. -/ + storageClass : Option StorageClass := none + /-- The tag-set that is applied to the restore results. -/ + tagging : Option Tagging := none + /-- A list of metadata to store with the restore results in S3. -/ + userMetadata : Option (List MetadataEntry) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape S3Location where + schema := .struct "S3Location" [({ name := "AccessControlList" }, (.list (Shape.schema Grant) "Grant")), + ({ name := "BucketName", required := true }, .string), + ({ name := "CannedACL" }, (Shape.schema ObjectCannedACL)), + ({ name := "Encryption" }, (Shape.schema Encryption)), + ({ name := "Prefix", required := true }, .string), + ({ name := "StorageClass" }, (Shape.schema StorageClass)), + ({ name := "Tagging" }, (Shape.schema Tagging)), + ({ name := "UserMetadata" }, (.list (Shape.schema MetadataEntry) "MetadataEntry"))] + toValue x := record [putOpt "AccessControlList" x.accessControlList, put "BucketName" x.bucketName, putOpt "CannedACL" x.cannedACL, putOpt "Encryption" x.encryption, put "Prefix" x.«prefix», putOpt "StorageClass" x.storageClass, putOpt "Tagging" x.tagging, putOpt "UserMetadata" x.userMetadata] + ofValue v := do + let accessControlList ← v.opt "AccessControlList" + let bucketName ← v.req "BucketName" + let cannedACL ← v.opt "CannedACL" + let encryption ← v.opt "Encryption" + let «prefix» ← v.req "Prefix" + let storageClass ← v.opt "StorageClass" + let tagging ← v.opt "Tagging" + let userMetadata ← v.opt "UserMetadata" + return { accessControlList, bucketName, cannedACL, encryption, «prefix», storageClass, tagging, userMetadata } + +structure SelectObjectContentOutput where + /-- The array of results. -/ + payload : Option SelectObjectContentEventStream := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SelectObjectContentOutput where + schema := .struct "SelectObjectContentOutput" [({ name := "Payload", location := .payload }, (Shape.schema SelectObjectContentEventStream))] + toValue x := record [putOpt "Payload" x.payload] + ofValue v := do + let payload ← v.opt "Payload" + return { payload } + +/-- Learn Amazon S3 Select is no longer available to new customers. -/ +structure SelectObjectContentRequest where + /-- The S3 bucket. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The expression that is used to query the object. -/ + expression : String + /-- The type of the provided expression (for example, SQL). -/ + expressionType : ExpressionType + /-- Describes the format of the data in the object that is being queried. -/ + inputSerialization : InputSerialization + /-- The object key. -/ + key : String + /-- Describes the format of the data that you want Amazon S3 to return in response. -/ + outputSerialization : OutputSerialization + /-- Specifies if periodic request progress information should be enabled. -/ + requestProgress : Option RequestProgress := none + /-- The server-side encryption (SSE) algorithm used to encrypt the object. -/ + sseCustomerAlgorithm : Option String := none + /-- The server-side encryption (SSE) customer managed key. -/ + sseCustomerKey : Option String := none + /-- The MD5 server-side encryption (SSE) customer managed key. -/ + sseCustomerKeyMD5 : Option String := none + /-- Specifies the byte range of the object to get the records from. -/ + scanRange : Option ScanRange := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SelectObjectContentRequest where + schema := .struct "SelectObjectContentRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Expression", required := true }, .string), + ({ name := "ExpressionType", required := true }, (Shape.schema ExpressionType)), + ({ name := "InputSerialization", required := true }, (Shape.schema InputSerialization)), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "OutputSerialization", required := true }, (Shape.schema OutputSerialization)), + ({ name := "RequestProgress" }, (Shape.schema RequestProgress)), + ({ name := "SSECustomerAlgorithm", location := .header "x-amz-server-side-encryption-customer-algorithm" }, .string), + ({ name := "SSECustomerKey", location := .header "x-amz-server-side-encryption-customer-key" }, .string), + ({ name := "SSECustomerKeyMD5", location := .header "x-amz-server-side-encryption-customer-key-MD5" }, .string), + ({ name := "ScanRange" }, (Shape.schema ScanRange))] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Expression" x.expression, put "ExpressionType" x.expressionType, put "InputSerialization" x.inputSerialization, put "Key" x.key, put "OutputSerialization" x.outputSerialization, putOpt "RequestProgress" x.requestProgress, putOpt "SSECustomerAlgorithm" x.sseCustomerAlgorithm, putOpt "SSECustomerKey" x.sseCustomerKey, putOpt "SSECustomerKeyMD5" x.sseCustomerKeyMD5, putOpt "ScanRange" x.scanRange] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let expression ← v.req "Expression" + let expressionType ← v.req "ExpressionType" + let inputSerialization ← v.req "InputSerialization" + let key ← v.req "Key" + let outputSerialization ← v.req "OutputSerialization" + let requestProgress ← v.opt "RequestProgress" + let sseCustomerAlgorithm ← v.opt "SSECustomerAlgorithm" + let sseCustomerKey ← v.opt "SSECustomerKey" + let sseCustomerKeyMD5 ← v.opt "SSECustomerKeyMD5" + let scanRange ← v.opt "ScanRange" + return { bucket, expectedBucketOwner, expression, expressionType, inputSerialization, key, outputSerialization, requestProgress, sseCustomerAlgorithm, sseCustomerKey, sseCustomerKeyMD5, scanRange } + +/-- Amazon S3 Select is no longer available to new customers. -/ +structure SelectParameters where + /-- Amazon S3 Select is no longer available to new customers. -/ + expression : String + /-- The type of the provided expression (for example, SQL). -/ + expressionType : ExpressionType + /-- Describes the serialization format of the object. -/ + inputSerialization : InputSerialization + /-- Describes how the results of the Select job are serialized. -/ + outputSerialization : OutputSerialization +deriving DecidableEq, Repr, Inhabited + +instance : Shape SelectParameters where + schema := .struct "SelectParameters" [({ name := "Expression", required := true }, .string), + ({ name := "ExpressionType", required := true }, (Shape.schema ExpressionType)), + ({ name := "InputSerialization", required := true }, (Shape.schema InputSerialization)), + ({ name := "OutputSerialization", required := true }, (Shape.schema OutputSerialization))] + toValue x := record [put "Expression" x.expression, put "ExpressionType" x.expressionType, put "InputSerialization" x.inputSerialization, put "OutputSerialization" x.outputSerialization] + ofValue v := do + let expression ← v.req "Expression" + let expressionType ← v.req "ExpressionType" + let inputSerialization ← v.req "InputSerialization" + let outputSerialization ← v.req "OutputSerialization" + return { expression, expressionType, inputSerialization, outputSerialization } + +/-- Specifies the default server-side-encryption configuration. -/ +structure ServerSideEncryptionConfiguration where + /-- Container for information about a particular server-side encryption configuration rule. -/ + rules : (List ServerSideEncryptionRule) +deriving DecidableEq, Repr, Inhabited + +instance : Shape ServerSideEncryptionConfiguration where + schema := .struct "ServerSideEncryptionConfiguration" [({ name := "Rules", required := true, xmlName := some "Rule", flattened := true }, (.list (Shape.schema ServerSideEncryptionRule) "member"))] + toValue x := record [put "Rules" x.rules] + ofValue v := do + let rules ← v.req "Rules" + return { rules } + +/-- Container for data related to the storage class analysis for an Amazon S3 bucket for export. -/ +structure StorageClassAnalysisDataExport where + /-- The place to store the data for an analysis. -/ + destination : AnalyticsExportDestination + /-- The version of the output schema to use when exporting data. -/ + outputSchemaVersion : StorageClassAnalysisSchemaVersion +deriving DecidableEq, Repr, Inhabited + +instance : Shape StorageClassAnalysisDataExport where + schema := .struct "StorageClassAnalysisDataExport" [({ name := "Destination", required := true }, (Shape.schema AnalyticsExportDestination)), + ({ name := "OutputSchemaVersion", required := true }, (Shape.schema StorageClassAnalysisSchemaVersion))] + toValue x := record [put "Destination" x.destination, put "OutputSchemaVersion" x.outputSchemaVersion] + ofValue v := do + let destination ← v.req "Destination" + let outputSchemaVersion ← v.req "OutputSchemaVersion" + return { destination, outputSchemaVersion } + +structure UpdateBucketMetadataAnnotationTableConfigurationRequest where + /-- The annotation table configuration updates to apply. -/ + annotationTableConfiguration : AnnotationTableConfigurationUpdates + /-- The name of the bucket whose annotation table configuration to update. -/ + bucket : String + /-- Checksum algorithm for the request payload. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- Base64-encoded MD5 digest of the message body. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateBucketMetadataAnnotationTableConfigurationRequest where + schema := .struct "UpdateBucketMetadataAnnotationTableConfigurationRequest" [({ name := "AnnotationTableConfiguration", required := true, xmlName := some "AnnotationTableConfiguration", location := .payload }, (Shape.schema AnnotationTableConfigurationUpdates)), + ({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "AnnotationTableConfiguration" x.annotationTableConfiguration, put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let annotationTableConfiguration ← v.req "AnnotationTableConfiguration" + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { annotationTableConfiguration, bucket, checksumAlgorithm, contentMD5, expectedBucketOwner } + +structure UpdateBucketMetadataInventoryTableConfigurationRequest where + /-- The general purpose bucket that corresponds to the metadata configuration that you want to enable or disable an inventory table for. -/ + bucket : String + /-- The checksum algorithm to use with your inventory table configuration. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The Content-MD5 header for the inventory table configuration. -/ + contentMD5 : Option String := none + /-- The expected owner of the general purpose bucket that corresponds to the metadata table configuration that you want to enable or disable an inventory table for. -/ + expectedBucketOwner : Option String := none + /-- The contents of your inventory table configuration. -/ + inventoryTableConfiguration : InventoryTableConfigurationUpdates +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateBucketMetadataInventoryTableConfigurationRequest where + schema := .struct "UpdateBucketMetadataInventoryTableConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "InventoryTableConfiguration", required := true, xmlName := some "InventoryTableConfiguration", location := .payload }, (Shape.schema InventoryTableConfigurationUpdates))] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "InventoryTableConfiguration" x.inventoryTableConfiguration] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let inventoryTableConfiguration ← v.req "InventoryTableConfiguration" + return { bucket, checksumAlgorithm, contentMD5, expectedBucketOwner, inventoryTableConfiguration } + +structure UpdateBucketMetadataJournalTableConfigurationRequest where + /-- The general purpose bucket that corresponds to the metadata configuration that you want to enable or disable journal table record expiration for. -/ + bucket : String + /-- The checksum algorithm to use with your journal table configuration. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The Content-MD5 header for the journal table configuration. -/ + contentMD5 : Option String := none + /-- The expected owner of the general purpose bucket that corresponds to the metadata table configuration that you want to enable or disable journal table record expiration for. -/ + expectedBucketOwner : Option String := none + /-- The contents of your journal table configuration. -/ + journalTableConfiguration : JournalTableConfigurationUpdates +deriving DecidableEq, Repr, Inhabited + +instance : Shape UpdateBucketMetadataJournalTableConfigurationRequest where + schema := .struct "UpdateBucketMetadataJournalTableConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "JournalTableConfiguration", required := true, xmlName := some "JournalTableConfiguration", location := .payload }, (Shape.schema JournalTableConfigurationUpdates))] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "JournalTableConfiguration" x.journalTableConfiguration] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let journalTableConfiguration ← v.req "JournalTableConfiguration" + return { bucket, checksumAlgorithm, contentMD5, expectedBucketOwner, journalTableConfiguration } + +/-- Specifies website configuration parameters for an Amazon S3 bucket. -/ +structure WebsiteConfiguration where + /-- The name of the error document for the website. -/ + errorDocument : Option ErrorDocument := none + /-- The name of the index document for the website. -/ + indexDocument : Option IndexDocument := none + /-- The redirect behavior for every request to this bucket's website endpoint. -/ + redirectAllRequestsTo : Option RedirectAllRequestsTo := none + /-- Rules that define when a redirect is applied and the redirect behavior. -/ + routingRules : Option (List RoutingRule) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape WebsiteConfiguration where + schema := .struct "WebsiteConfiguration" [({ name := "ErrorDocument" }, (Shape.schema ErrorDocument)), + ({ name := "IndexDocument" }, (Shape.schema IndexDocument)), + ({ name := "RedirectAllRequestsTo" }, (Shape.schema RedirectAllRequestsTo)), + ({ name := "RoutingRules" }, (.list (Shape.schema RoutingRule) "RoutingRule"))] + toValue x := record [putOpt "ErrorDocument" x.errorDocument, putOpt "IndexDocument" x.indexDocument, putOpt "RedirectAllRequestsTo" x.redirectAllRequestsTo, putOpt "RoutingRules" x.routingRules] + ofValue v := do + let errorDocument ← v.opt "ErrorDocument" + let indexDocument ← v.opt "IndexDocument" + let redirectAllRequestsTo ← v.opt "RedirectAllRequestsTo" + let routingRules ← v.opt "RoutingRules" + return { errorDocument, indexDocument, redirectAllRequestsTo, routingRules } + +/-- Specifies the lifecycle configuration for objects in an Amazon S3 bucket. -/ +structure BucketLifecycleConfiguration where + /-- A lifecycle rule for individual objects in an Amazon S3 bucket. -/ + rules : (List LifecycleRule) +deriving DecidableEq, Repr, Inhabited + +instance : Shape BucketLifecycleConfiguration where + schema := .struct "BucketLifecycleConfiguration" [({ name := "Rules", required := true, xmlName := some "Rule", flattened := true }, (.list (Shape.schema LifecycleRule) "member"))] + toValue x := record [put "Rules" x.rules] + ofValue v := do + let rules ← v.req "Rules" + return { rules } + +/-- Container for logging status information. -/ +structure BucketLoggingStatus where + loggingEnabled : Option LoggingEnabled := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BucketLoggingStatus where + schema := .struct "BucketLoggingStatus" [({ name := "LoggingEnabled" }, (Shape.schema LoggingEnabled))] + toValue x := record [putOpt "LoggingEnabled" x.loggingEnabled] + ofValue v := do + let loggingEnabled ← v.opt "LoggingEnabled" + return { loggingEnabled } + +structure CreateBucketMetadataConfigurationRequest where + /-- The general purpose bucket that you want to create the metadata configuration for. -/ + bucket : String + /-- The checksum algorithm to use with your metadata configuration. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The Content-MD5 header for the metadata configuration. -/ + contentMD5 : Option String := none + /-- The expected owner of the general purpose bucket that corresponds to your metadata configuration. -/ + expectedBucketOwner : Option String := none + /-- The contents of your metadata configuration. -/ + metadataConfiguration : MetadataConfiguration +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateBucketMetadataConfigurationRequest where + schema := .struct "CreateBucketMetadataConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "MetadataConfiguration", required := true, xmlName := some "MetadataConfiguration", location := .payload }, (Shape.schema MetadataConfiguration))] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "MetadataConfiguration" x.metadataConfiguration] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let metadataConfiguration ← v.req "MetadataConfiguration" + return { bucket, checksumAlgorithm, contentMD5, expectedBucketOwner, metadataConfiguration } + +structure GetBucketEncryptionOutput where + serverSideEncryptionConfiguration : Option ServerSideEncryptionConfiguration := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketEncryptionOutput where + schema := .struct "GetBucketEncryptionOutput" [({ name := "ServerSideEncryptionConfiguration", location := .payload }, (Shape.schema ServerSideEncryptionConfiguration))] + toValue x := record [putOpt "ServerSideEncryptionConfiguration" x.serverSideEncryptionConfiguration] + ofValue v := do + let serverSideEncryptionConfiguration ← v.opt "ServerSideEncryptionConfiguration" + return { serverSideEncryptionConfiguration } + +structure GetBucketIntelligentTieringConfigurationOutput where + /-- Container for S3 Intelligent-Tiering configuration. -/ + intelligentTieringConfiguration : Option IntelligentTieringConfiguration := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketIntelligentTieringConfigurationOutput where + schema := .struct "GetBucketIntelligentTieringConfigurationOutput" [({ name := "IntelligentTieringConfiguration", location := .payload }, (Shape.schema IntelligentTieringConfiguration))] + toValue x := record [putOpt "IntelligentTieringConfiguration" x.intelligentTieringConfiguration] + ofValue v := do + let intelligentTieringConfiguration ← v.opt "IntelligentTieringConfiguration" + return { intelligentTieringConfiguration } + +structure GetBucketLifecycleConfigurationOutput where + /-- Container for a lifecycle rule. -/ + rules : Option (List LifecycleRule) := none + /-- Indicates which default minimum object size behavior is applied to the lifecycle configuration. -/ + transitionDefaultMinimumObjectSize : Option TransitionDefaultMinimumObjectSize := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketLifecycleConfigurationOutput where + schema := .struct "LifecycleConfiguration" [({ name := "Rules", xmlName := some "Rule", flattened := true }, (.list (Shape.schema LifecycleRule) "member")), + ({ name := "TransitionDefaultMinimumObjectSize", location := .header "x-amz-transition-default-minimum-object-size" }, (Shape.schema TransitionDefaultMinimumObjectSize))] + toValue x := record [putOpt "Rules" x.rules, putOpt "TransitionDefaultMinimumObjectSize" x.transitionDefaultMinimumObjectSize] + ofValue v := do + let rules ← v.opt "Rules" + let transitionDefaultMinimumObjectSize ← v.opt "TransitionDefaultMinimumObjectSize" + return { rules, transitionDefaultMinimumObjectSize } + +structure GetBucketLoggingOutput where + loggingEnabled : Option LoggingEnabled := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketLoggingOutput where + schema := .struct "BucketLoggingStatus" [({ name := "LoggingEnabled" }, (Shape.schema LoggingEnabled))] + toValue x := record [putOpt "LoggingEnabled" x.loggingEnabled] + ofValue v := do + let loggingEnabled ← v.opt "LoggingEnabled" + return { loggingEnabled } + +/-- The S3 Metadata configuration for a general purpose bucket. -/ +structure GetBucketMetadataConfigurationResult where + /-- The metadata configuration for a general purpose bucket. -/ + metadataConfigurationResult : MetadataConfigurationResult +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketMetadataConfigurationResult where + schema := .struct "GetBucketMetadataConfigurationResult" [({ name := "MetadataConfigurationResult", required := true }, (Shape.schema MetadataConfigurationResult))] + toValue x := record [put "MetadataConfigurationResult" x.metadataConfigurationResult] + ofValue v := do + let metadataConfigurationResult ← v.req "MetadataConfigurationResult" + return { metadataConfigurationResult } + +structure GetBucketMetricsConfigurationOutput where + /-- Specifies the metrics configuration. -/ + metricsConfiguration : Option MetricsConfiguration := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketMetricsConfigurationOutput where + schema := .struct "GetBucketMetricsConfigurationOutput" [({ name := "MetricsConfiguration", location := .payload }, (Shape.schema MetricsConfiguration))] + toValue x := record [putOpt "MetricsConfiguration" x.metricsConfiguration] + ofValue v := do + let metricsConfiguration ← v.opt "MetricsConfiguration" + return { metricsConfiguration } + +structure GetObjectLockConfigurationOutput where + /-- The specified bucket's Object Lock configuration. -/ + objectLockConfiguration : Option ObjectLockConfiguration := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetObjectLockConfigurationOutput where + schema := .struct "GetObjectLockConfigurationOutput" [({ name := "ObjectLockConfiguration", location := .payload }, (Shape.schema ObjectLockConfiguration))] + toValue x := record [putOpt "ObjectLockConfiguration" x.objectLockConfiguration] + ofValue v := do + let objectLockConfiguration ← v.opt "ObjectLockConfiguration" + return { objectLockConfiguration } + +/-- Specifies the S3 Inventory configuration for an Amazon S3 bucket. -/ +structure InventoryConfiguration where + /-- Contains information about where to publish the inventory results. -/ + destination : InventoryDestination + /-- Specifies an inventory filter. -/ + filter : Option InventoryFilter := none + /-- The ID used to identify the inventory configuration. -/ + id : String + /-- Object versions to include in the inventory list. -/ + includedObjectVersions : InventoryIncludedObjectVersions + /-- Specifies whether the inventory is enabled or disabled. -/ + isEnabled : Bool + /-- Contains the optional fields that are included in the inventory results. -/ + optionalFields : Option (List InventoryOptionalField) := none + /-- Specifies the schedule for generating inventory results. -/ + schedule : InventorySchedule +deriving DecidableEq, Repr, Inhabited + +instance : Shape InventoryConfiguration where + schema := .struct "InventoryConfiguration" [({ name := "Destination", required := true }, (Shape.schema InventoryDestination)), + ({ name := "Filter" }, (Shape.schema InventoryFilter)), + ({ name := "Id", required := true }, .string), + ({ name := "IncludedObjectVersions", required := true }, (Shape.schema InventoryIncludedObjectVersions)), + ({ name := "IsEnabled", required := true }, .bool), + ({ name := "OptionalFields" }, (.list (Shape.schema InventoryOptionalField) "Field")), + ({ name := "Schedule", required := true }, (Shape.schema InventorySchedule))] + toValue x := record [put "Destination" x.destination, putOpt "Filter" x.filter, put "Id" x.id, put "IncludedObjectVersions" x.includedObjectVersions, put "IsEnabled" x.isEnabled, putOpt "OptionalFields" x.optionalFields, put "Schedule" x.schedule] + ofValue v := do + let destination ← v.req "Destination" + let filter ← v.opt "Filter" + let id ← v.req "Id" + let includedObjectVersions ← v.req "IncludedObjectVersions" + let isEnabled ← v.req "IsEnabled" + let optionalFields ← v.opt "OptionalFields" + let schedule ← v.req "Schedule" + return { destination, filter, id, includedObjectVersions, isEnabled, optionalFields, schedule } + +/-- A container for specifying the configuration for Lambda notifications. -/ +structure LambdaFunctionConfiguration where + /-- The Amazon S3 bucket event for which to invoke the Lambda function. -/ + events : (List Event) + filter : Option NotificationConfigurationFilter := none + id : Option String := none + /-- The Amazon Resource Name (ARN) of the Lambda function that Amazon S3 invokes when the specified event type occurs. -/ + lambdaFunctionArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape LambdaFunctionConfiguration where + schema := .struct "LambdaFunctionConfiguration" [({ name := "Events", required := true, xmlName := some "Event", flattened := true }, (.list (Shape.schema Event) "member")), + ({ name := "Filter" }, (Shape.schema NotificationConfigurationFilter)), + ({ name := "Id" }, .string), + ({ name := "LambdaFunctionArn", required := true, xmlName := some "CloudFunction" }, .string)] + toValue x := record [put "Events" x.events, putOpt "Filter" x.filter, putOpt "Id" x.id, put "LambdaFunctionArn" x.lambdaFunctionArn] + ofValue v := do + let events ← v.req "Events" + let filter ← v.opt "Filter" + let id ← v.opt "Id" + let lambdaFunctionArn ← v.req "LambdaFunctionArn" + return { events, filter, id, lambdaFunctionArn } + +structure ListBucketIntelligentTieringConfigurationsOutput where + /-- The ContinuationToken that represents a placeholder from where this request should begin. -/ + continuationToken : Option String := none + /-- The list of S3 Intelligent-Tiering configurations for a bucket. -/ + intelligentTieringConfigurationList : Option (List IntelligentTieringConfiguration) := none + /-- Indicates whether the returned list of analytics configurations is complete. -/ + isTruncated : Option Bool := none + /-- The marker used to continue this inventory configuration listing. -/ + nextContinuationToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListBucketIntelligentTieringConfigurationsOutput where + schema := .struct "ListBucketIntelligentTieringConfigurationsOutput" [({ name := "ContinuationToken" }, .string), + ({ name := "IntelligentTieringConfigurationList", xmlName := some "IntelligentTieringConfiguration", flattened := true }, (.list (Shape.schema IntelligentTieringConfiguration) "member")), + ({ name := "IsTruncated" }, .bool), + ({ name := "NextContinuationToken" }, .string)] + toValue x := record [putOpt "ContinuationToken" x.continuationToken, putOpt "IntelligentTieringConfigurationList" x.intelligentTieringConfigurationList, putOpt "IsTruncated" x.isTruncated, putOpt "NextContinuationToken" x.nextContinuationToken] + ofValue v := do + let continuationToken ← v.opt "ContinuationToken" + let intelligentTieringConfigurationList ← v.opt "IntelligentTieringConfigurationList" + let isTruncated ← v.opt "IsTruncated" + let nextContinuationToken ← v.opt "NextContinuationToken" + return { continuationToken, intelligentTieringConfigurationList, isTruncated, nextContinuationToken } + +structure ListBucketMetricsConfigurationsOutput where + /-- The marker that is used as a starting point for this metrics configuration list response. -/ + continuationToken : Option String := none + /-- Indicates whether the returned list of metrics configurations is complete. -/ + isTruncated : Option Bool := none + /-- The list of metrics configurations for a bucket. -/ + metricsConfigurationList : Option (List MetricsConfiguration) := none + /-- The marker used to continue a metrics configuration listing that has been truncated. -/ + nextContinuationToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListBucketMetricsConfigurationsOutput where + schema := .struct "ListMetricsConfigurationsResult" [({ name := "ContinuationToken" }, .string), + ({ name := "IsTruncated" }, .bool), + ({ name := "MetricsConfigurationList", xmlName := some "MetricsConfiguration", flattened := true }, (.list (Shape.schema MetricsConfiguration) "member")), + ({ name := "NextContinuationToken" }, .string)] + toValue x := record [putOpt "ContinuationToken" x.continuationToken, putOpt "IsTruncated" x.isTruncated, putOpt "MetricsConfigurationList" x.metricsConfigurationList, putOpt "NextContinuationToken" x.nextContinuationToken] + ofValue v := do + let continuationToken ← v.opt "ContinuationToken" + let isTruncated ← v.opt "IsTruncated" + let metricsConfigurationList ← v.opt "MetricsConfigurationList" + let nextContinuationToken ← v.opt "NextContinuationToken" + return { continuationToken, isTruncated, metricsConfigurationList, nextContinuationToken } + +/-- Describes the location where the restore job's output is stored. -/ +structure OutputLocation where + /-- Describes an S3 location that will receive the results of the restore request. -/ + s3 : Option S3Location := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape OutputLocation where + schema := .struct "OutputLocation" [({ name := "S3" }, (Shape.schema S3Location))] + toValue x := record [putOpt "S3" x.s3] + ofValue v := do + let s3 ← v.opt "S3" + return { s3 } + +structure PutBucketAclRequest where + /-- The canned ACL to apply to the bucket. -/ + acl : Option BucketCannedACL := none + /-- Contains the elements that set the ACL permissions for an object per grantee. -/ + accessControlPolicy : Option AccessControlPolicy := none + /-- The bucket to which to apply the ACL. -/ + bucket : String + /-- Indicates the algorithm used to create the checksum for the request when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The Base64 encoded 128-bit MD5 digest of the data. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- Allows grantee the read, write, read ACP, and write ACP permissions on the bucket. -/ + grantFullControl : Option String := none + /-- Allows grantee to list the objects in the bucket. -/ + grantRead : Option String := none + /-- Allows grantee to read the bucket ACL. -/ + grantReadACP : Option String := none + /-- Allows grantee to create new objects in the bucket. -/ + grantWrite : Option String := none + /-- Allows grantee to write the ACL for the applicable bucket. -/ + grantWriteACP : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutBucketAclRequest where + schema := .struct "PutBucketAclRequest" [({ name := "ACL", location := .header "x-amz-acl" }, (Shape.schema BucketCannedACL)), + ({ name := "AccessControlPolicy", xmlName := some "AccessControlPolicy", location := .payload }, (Shape.schema AccessControlPolicy)), + ({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "GrantFullControl", location := .header "x-amz-grant-full-control" }, .string), + ({ name := "GrantRead", location := .header "x-amz-grant-read" }, .string), + ({ name := "GrantReadACP", location := .header "x-amz-grant-read-acp" }, .string), + ({ name := "GrantWrite", location := .header "x-amz-grant-write" }, .string), + ({ name := "GrantWriteACP", location := .header "x-amz-grant-write-acp" }, .string)] + toValue x := record [putOpt "ACL" x.acl, putOpt "AccessControlPolicy" x.accessControlPolicy, put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, putOpt "GrantFullControl" x.grantFullControl, putOpt "GrantRead" x.grantRead, putOpt "GrantReadACP" x.grantReadACP, putOpt "GrantWrite" x.grantWrite, putOpt "GrantWriteACP" x.grantWriteACP] + ofValue v := do + let acl ← v.opt "ACL" + let accessControlPolicy ← v.opt "AccessControlPolicy" + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let grantFullControl ← v.opt "GrantFullControl" + let grantRead ← v.opt "GrantRead" + let grantReadACP ← v.opt "GrantReadACP" + let grantWrite ← v.opt "GrantWrite" + let grantWriteACP ← v.opt "GrantWriteACP" + return { acl, accessControlPolicy, bucket, checksumAlgorithm, contentMD5, expectedBucketOwner, grantFullControl, grantRead, grantReadACP, grantWrite, grantWriteACP } + +structure PutBucketEncryptionRequest where + /-- Specifies default encryption for a bucket using server-side encryption with different key options. -/ + bucket : String + /-- Indicates the algorithm used to create the checksum for the request when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The Base64 encoded 128-bit MD5 digest of the server-side encryption configuration. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + serverSideEncryptionConfiguration : ServerSideEncryptionConfiguration +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutBucketEncryptionRequest where + schema := .struct "PutBucketEncryptionRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "ServerSideEncryptionConfiguration", required := true, xmlName := some "ServerSideEncryptionConfiguration", location := .payload }, (Shape.schema ServerSideEncryptionConfiguration))] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "ServerSideEncryptionConfiguration" x.serverSideEncryptionConfiguration] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let serverSideEncryptionConfiguration ← v.req "ServerSideEncryptionConfiguration" + return { bucket, checksumAlgorithm, contentMD5, expectedBucketOwner, serverSideEncryptionConfiguration } + +structure PutBucketIntelligentTieringConfigurationRequest where + /-- The name of the Amazon S3 bucket whose configuration you want to modify or retrieve. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The ID used to identify the S3 Intelligent-Tiering configuration. -/ + id : String + /-- Container for S3 Intelligent-Tiering configuration. -/ + intelligentTieringConfiguration : IntelligentTieringConfiguration +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutBucketIntelligentTieringConfigurationRequest where + schema := .struct "PutBucketIntelligentTieringConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Id", required := true, location := .query "id" }, .string), + ({ name := "IntelligentTieringConfiguration", required := true, xmlName := some "IntelligentTieringConfiguration", location := .payload }, (Shape.schema IntelligentTieringConfiguration))] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Id" x.id, put "IntelligentTieringConfiguration" x.intelligentTieringConfiguration] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let id ← v.req "Id" + let intelligentTieringConfiguration ← v.req "IntelligentTieringConfiguration" + return { bucket, expectedBucketOwner, id, intelligentTieringConfiguration } + +structure PutBucketMetricsConfigurationRequest where + /-- The name of the bucket for which the metrics configuration is set. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The ID used to identify the metrics configuration. -/ + id : String + /-- Specifies the metrics configuration. -/ + metricsConfiguration : MetricsConfiguration +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutBucketMetricsConfigurationRequest where + schema := .struct "PutBucketMetricsConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Id", required := true, location := .query "id" }, .string), + ({ name := "MetricsConfiguration", required := true, xmlName := some "MetricsConfiguration", location := .payload }, (Shape.schema MetricsConfiguration))] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Id" x.id, put "MetricsConfiguration" x.metricsConfiguration] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let id ← v.req "Id" + let metricsConfiguration ← v.req "MetricsConfiguration" + return { bucket, expectedBucketOwner, id, metricsConfiguration } + +structure PutBucketWebsiteRequest where + /-- The bucket name. -/ + bucket : String + /-- Indicates the algorithm used to create the checksum for the request when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The Base64 encoded 128-bit MD5 digest of the data. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- Container for the request. -/ + websiteConfiguration : WebsiteConfiguration +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutBucketWebsiteRequest where + schema := .struct "PutBucketWebsiteRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "WebsiteConfiguration", required := true, xmlName := some "WebsiteConfiguration", location := .payload }, (Shape.schema WebsiteConfiguration))] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "WebsiteConfiguration" x.websiteConfiguration] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let websiteConfiguration ← v.req "WebsiteConfiguration" + return { bucket, checksumAlgorithm, contentMD5, expectedBucketOwner, websiteConfiguration } + +structure PutObjectAclRequest where + /-- The canned ACL to apply to the object. -/ + acl : Option ObjectCannedACL := none + /-- Contains the elements that set the ACL permissions for an object per grantee. -/ + accessControlPolicy : Option AccessControlPolicy := none + /-- The bucket name that contains the object to which you want to attach the ACL. -/ + bucket : String + /-- Indicates the algorithm used to create the checksum for the object when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The Base64 encoded 128-bit MD5 digest of the data. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- Allows grantee the read, write, read ACP, and write ACP permissions on the bucket. -/ + grantFullControl : Option String := none + /-- Allows grantee to list the objects in the bucket. -/ + grantRead : Option String := none + /-- Allows grantee to read the bucket ACL. -/ + grantReadACP : Option String := none + /-- Allows grantee to create new objects in the bucket. -/ + grantWrite : Option String := none + /-- Allows grantee to write the ACL for the applicable bucket. -/ + grantWriteACP : Option String := none + /-- Key for which the PUT action was initiated. -/ + key : String + requestPayer : Option RequestPayer := none + /-- Version ID used to reference a specific version of the object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutObjectAclRequest where + schema := .struct "PutObjectAclRequest" [({ name := "ACL", location := .header "x-amz-acl" }, (Shape.schema ObjectCannedACL)), + ({ name := "AccessControlPolicy", xmlName := some "AccessControlPolicy", location := .payload }, (Shape.schema AccessControlPolicy)), + ({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "GrantFullControl", location := .header "x-amz-grant-full-control" }, .string), + ({ name := "GrantRead", location := .header "x-amz-grant-read" }, .string), + ({ name := "GrantReadACP", location := .header "x-amz-grant-read-acp" }, .string), + ({ name := "GrantWrite", location := .header "x-amz-grant-write" }, .string), + ({ name := "GrantWriteACP", location := .header "x-amz-grant-write-acp" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "VersionId", location := .query "versionId" }, .string)] + toValue x := record [putOpt "ACL" x.acl, putOpt "AccessControlPolicy" x.accessControlPolicy, put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, putOpt "GrantFullControl" x.grantFullControl, putOpt "GrantRead" x.grantRead, putOpt "GrantReadACP" x.grantReadACP, putOpt "GrantWrite" x.grantWrite, putOpt "GrantWriteACP" x.grantWriteACP, put "Key" x.key, putOpt "RequestPayer" x.requestPayer, putOpt "VersionId" x.versionId] + ofValue v := do + let acl ← v.opt "ACL" + let accessControlPolicy ← v.opt "AccessControlPolicy" + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let grantFullControl ← v.opt "GrantFullControl" + let grantRead ← v.opt "GrantRead" + let grantReadACP ← v.opt "GrantReadACP" + let grantWrite ← v.opt "GrantWrite" + let grantWriteACP ← v.opt "GrantWriteACP" + let key ← v.req "Key" + let requestPayer ← v.opt "RequestPayer" + let versionId ← v.opt "VersionId" + return { acl, accessControlPolicy, bucket, checksumAlgorithm, contentMD5, expectedBucketOwner, grantFullControl, grantRead, grantReadACP, grantWrite, grantWriteACP, key, requestPayer, versionId } + +structure PutObjectLockConfigurationRequest where + /-- The bucket whose Object Lock configuration you want to create or replace. -/ + bucket : String + /-- Indicates the algorithm used to create the checksum for the object when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The MD5 hash for the request body. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The Object Lock configuration that you want to apply to the specified bucket. -/ + objectLockConfiguration : Option ObjectLockConfiguration := none + requestPayer : Option RequestPayer := none + /-- A token to allow Object Lock to be enabled for an existing bucket. -/ + token : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutObjectLockConfigurationRequest where + schema := .struct "PutObjectLockConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "ObjectLockConfiguration", xmlName := some "ObjectLockConfiguration", location := .payload }, (Shape.schema ObjectLockConfiguration)), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "Token", location := .header "x-amz-bucket-object-lock-token" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, putOpt "ObjectLockConfiguration" x.objectLockConfiguration, putOpt "RequestPayer" x.requestPayer, putOpt "Token" x.token] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let objectLockConfiguration ← v.opt "ObjectLockConfiguration" + let requestPayer ← v.opt "RequestPayer" + let token ← v.opt "Token" + return { bucket, checksumAlgorithm, contentMD5, expectedBucketOwner, objectLockConfiguration, requestPayer, token } + +/-- Specifies the configuration for publishing messages to an Amazon Simple Queue Service (Amazon SQS) queue when Amazon S3 detects specified events. -/ +structure QueueConfiguration where + /-- A collection of bucket events for which to send notifications. -/ + events : (List Event) + filter : Option NotificationConfigurationFilter := none + id : Option String := none + /-- The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon S3 publishes a message when it detects events of the specified type. -/ + queueArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape QueueConfiguration where + schema := .struct "QueueConfiguration" [({ name := "Events", required := true, xmlName := some "Event", flattened := true }, (.list (Shape.schema Event) "member")), + ({ name := "Filter" }, (Shape.schema NotificationConfigurationFilter)), + ({ name := "Id" }, .string), + ({ name := "QueueArn", required := true, xmlName := some "Queue" }, .string)] + toValue x := record [put "Events" x.events, putOpt "Filter" x.filter, putOpt "Id" x.id, put "QueueArn" x.queueArn] + ofValue v := do + let events ← v.req "Events" + let filter ← v.opt "Filter" + let id ← v.opt "Id" + let queueArn ← v.req "QueueArn" + return { events, filter, id, queueArn } + +/-- A filter that identifies the subset of objects to which the replication rule applies. -/ +structure ReplicationRuleFilter where + /-- A container for specifying rule filters. -/ + and : Option ReplicationRuleAndOperator := none + /-- A container for specifying filters that exclude matching objects from the replication rule. -/ + not : Option ReplicationRuleNotOperator := none + /-- An object key name prefix that identifies the subset of objects to which the rule applies. -/ + «prefix» : Option String := none + /-- A container for specifying a tag key and value. -/ + tag : Option Tag := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicationRuleFilter where + schema := .struct "ReplicationRuleFilter" [({ name := "And" }, (Shape.schema ReplicationRuleAndOperator)), + ({ name := "Not" }, (Shape.schema ReplicationRuleNotOperator)), + ({ name := "Prefix" }, .string), + ({ name := "Tag" }, (Shape.schema Tag))] + toValue x := record [putOpt "And" x.and, putOpt "Not" x.not, putOpt "Prefix" x.«prefix», putOpt "Tag" x.tag] + ofValue v := do + let and ← v.opt "And" + let not ← v.opt "Not" + let «prefix» ← v.opt "Prefix" + let tag ← v.opt "Tag" + return { and, not, «prefix», tag } + +/-- Specifies data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes for an Amazon S3 bucket. -/ +structure StorageClassAnalysis where + /-- Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported. -/ + dataExport : Option StorageClassAnalysisDataExport := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StorageClassAnalysis where + schema := .struct "StorageClassAnalysis" [({ name := "DataExport" }, (Shape.schema StorageClassAnalysisDataExport))] + toValue x := record [putOpt "DataExport" x.dataExport] + ofValue v := do + let dataExport ← v.opt "DataExport" + return { dataExport } + +/-- A container for specifying the configuration for publication of messages to an Amazon Simple Notification Service (Amazon SNS) topic when Amazon S3 detects specified events. -/ +structure TopicConfiguration where + /-- The Amazon S3 bucket event about which to send notifications. -/ + events : (List Event) + filter : Option NotificationConfigurationFilter := none + id : Option String := none + /-- The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message when it detects events of the specified type. -/ + topicArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape TopicConfiguration where + schema := .struct "TopicConfiguration" [({ name := "Events", required := true, xmlName := some "Event", flattened := true }, (.list (Shape.schema Event) "member")), + ({ name := "Filter" }, (Shape.schema NotificationConfigurationFilter)), + ({ name := "Id" }, .string), + ({ name := "TopicArn", required := true, xmlName := some "Topic" }, .string)] + toValue x := record [put "Events" x.events, putOpt "Filter" x.filter, putOpt "Id" x.id, put "TopicArn" x.topicArn] + ofValue v := do + let events ← v.req "Events" + let filter ← v.opt "Filter" + let id ← v.opt "Id" + let topicArn ← v.req "TopicArn" + return { events, filter, id, topicArn } + +/-- Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket. -/ +structure AnalyticsConfiguration where + /-- The filter used to describe a set of objects for analyses. -/ + filter : Option AnalyticsFilter := none + /-- The ID that identifies the analytics configuration. -/ + id : String + /-- Contains data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes. -/ + storageClassAnalysis : StorageClassAnalysis +deriving DecidableEq, Repr, Inhabited + +instance : Shape AnalyticsConfiguration where + schema := .struct "AnalyticsConfiguration" [({ name := "Filter" }, (Shape.schema AnalyticsFilter)), + ({ name := "Id", required := true }, .string), + ({ name := "StorageClassAnalysis", required := true }, (Shape.schema StorageClassAnalysis))] + toValue x := record [putOpt "Filter" x.filter, put "Id" x.id, put "StorageClassAnalysis" x.storageClassAnalysis] + ofValue v := do + let filter ← v.opt "Filter" + let id ← v.req "Id" + let storageClassAnalysis ← v.req "StorageClassAnalysis" + return { filter, id, storageClassAnalysis } + +structure GetBucketInventoryConfigurationOutput where + /-- Specifies the inventory configuration. -/ + inventoryConfiguration : Option InventoryConfiguration := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketInventoryConfigurationOutput where + schema := .struct "GetBucketInventoryConfigurationOutput" [({ name := "InventoryConfiguration", location := .payload }, (Shape.schema InventoryConfiguration))] + toValue x := record [putOpt "InventoryConfiguration" x.inventoryConfiguration] + ofValue v := do + let inventoryConfiguration ← v.opt "InventoryConfiguration" + return { inventoryConfiguration } + +structure GetBucketMetadataConfigurationOutput where + /-- The metadata configuration for the general purpose bucket. -/ + getBucketMetadataConfigurationResult : Option GetBucketMetadataConfigurationResult := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketMetadataConfigurationOutput where + schema := .struct "GetBucketMetadataConfigurationOutput" [({ name := "GetBucketMetadataConfigurationResult", location := .payload }, (Shape.schema GetBucketMetadataConfigurationResult))] + toValue x := record [putOpt "GetBucketMetadataConfigurationResult" x.getBucketMetadataConfigurationResult] + ofValue v := do + let getBucketMetadataConfigurationResult ← v.opt "GetBucketMetadataConfigurationResult" + return { getBucketMetadataConfigurationResult } + +structure ListBucketInventoryConfigurationsOutput where + /-- If sent in the request, the marker that is used as a starting point for this inventory configuration list response. -/ + continuationToken : Option String := none + /-- The list of inventory configurations for a bucket. -/ + inventoryConfigurationList : Option (List InventoryConfiguration) := none + /-- Tells whether the returned list of inventory configurations is complete. -/ + isTruncated : Option Bool := none + /-- The marker used to continue this inventory configuration listing. -/ + nextContinuationToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListBucketInventoryConfigurationsOutput where + schema := .struct "ListInventoryConfigurationsResult" [({ name := "ContinuationToken" }, .string), + ({ name := "InventoryConfigurationList", xmlName := some "InventoryConfiguration", flattened := true }, (.list (Shape.schema InventoryConfiguration) "member")), + ({ name := "IsTruncated" }, .bool), + ({ name := "NextContinuationToken" }, .string)] + toValue x := record [putOpt "ContinuationToken" x.continuationToken, putOpt "InventoryConfigurationList" x.inventoryConfigurationList, putOpt "IsTruncated" x.isTruncated, putOpt "NextContinuationToken" x.nextContinuationToken] + ofValue v := do + let continuationToken ← v.opt "ContinuationToken" + let inventoryConfigurationList ← v.opt "InventoryConfigurationList" + let isTruncated ← v.opt "IsTruncated" + let nextContinuationToken ← v.opt "NextContinuationToken" + return { continuationToken, inventoryConfigurationList, isTruncated, nextContinuationToken } + +/-- A container for specifying the notification configuration of the bucket. -/ +structure NotificationConfiguration where + /-- Enables delivery of events to Amazon EventBridge. -/ + eventBridgeConfiguration : Option EventBridgeConfiguration := none + /-- Describes the Lambda functions to invoke and the events for which to invoke them. -/ + lambdaFunctionConfigurations : Option (List LambdaFunctionConfiguration) := none + /-- The Amazon Simple Queue Service queues to publish messages to and the events for which to publish messages. -/ + queueConfigurations : Option (List QueueConfiguration) := none + /-- The topic to which notifications are sent and the events for which notifications are generated. -/ + topicConfigurations : Option (List TopicConfiguration) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NotificationConfiguration where + schema := .struct "NotificationConfiguration" [({ name := "EventBridgeConfiguration" }, (Shape.schema EventBridgeConfiguration)), + ({ name := "LambdaFunctionConfigurations", xmlName := some "CloudFunctionConfiguration", flattened := true }, (.list (Shape.schema LambdaFunctionConfiguration) "member")), + ({ name := "QueueConfigurations", xmlName := some "QueueConfiguration", flattened := true }, (.list (Shape.schema QueueConfiguration) "member")), + ({ name := "TopicConfigurations", xmlName := some "TopicConfiguration", flattened := true }, (.list (Shape.schema TopicConfiguration) "member"))] + toValue x := record [putOpt "EventBridgeConfiguration" x.eventBridgeConfiguration, putOpt "LambdaFunctionConfigurations" x.lambdaFunctionConfigurations, putOpt "QueueConfigurations" x.queueConfigurations, putOpt "TopicConfigurations" x.topicConfigurations] + ofValue v := do + let eventBridgeConfiguration ← v.opt "EventBridgeConfiguration" + let lambdaFunctionConfigurations ← v.opt "LambdaFunctionConfigurations" + let queueConfigurations ← v.opt "QueueConfigurations" + let topicConfigurations ← v.opt "TopicConfigurations" + return { eventBridgeConfiguration, lambdaFunctionConfigurations, queueConfigurations, topicConfigurations } + +structure PutBucketInventoryConfigurationRequest where + /-- The name of the bucket where the inventory configuration will be stored. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The ID used to identify the inventory configuration. -/ + id : String + /-- Specifies the inventory configuration. -/ + inventoryConfiguration : InventoryConfiguration +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutBucketInventoryConfigurationRequest where + schema := .struct "PutBucketInventoryConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Id", required := true, location := .query "id" }, .string), + ({ name := "InventoryConfiguration", required := true, xmlName := some "InventoryConfiguration", location := .payload }, (Shape.schema InventoryConfiguration))] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Id" x.id, put "InventoryConfiguration" x.inventoryConfiguration] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let id ← v.req "Id" + let inventoryConfiguration ← v.req "InventoryConfiguration" + return { bucket, expectedBucketOwner, id, inventoryConfiguration } + +structure PutBucketLifecycleConfigurationRequest where + /-- The name of the bucket for which to set the configuration. -/ + bucket : String + /-- Indicates the algorithm used to create the checksum for the request when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- Container for lifecycle rules. -/ + lifecycleConfiguration : Option BucketLifecycleConfiguration := none + /-- Indicates which default minimum object size behavior is applied to the lifecycle configuration. -/ + transitionDefaultMinimumObjectSize : Option TransitionDefaultMinimumObjectSize := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutBucketLifecycleConfigurationRequest where + schema := .struct "PutBucketLifecycleConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "LifecycleConfiguration", xmlName := some "LifecycleConfiguration", location := .payload }, (Shape.schema BucketLifecycleConfiguration)), + ({ name := "TransitionDefaultMinimumObjectSize", location := .header "x-amz-transition-default-minimum-object-size" }, (Shape.schema TransitionDefaultMinimumObjectSize))] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, putOpt "LifecycleConfiguration" x.lifecycleConfiguration, putOpt "TransitionDefaultMinimumObjectSize" x.transitionDefaultMinimumObjectSize] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let lifecycleConfiguration ← v.opt "LifecycleConfiguration" + let transitionDefaultMinimumObjectSize ← v.opt "TransitionDefaultMinimumObjectSize" + return { bucket, checksumAlgorithm, expectedBucketOwner, lifecycleConfiguration, transitionDefaultMinimumObjectSize } + +structure PutBucketLoggingRequest where + /-- The name of the bucket for which to set the logging parameters. -/ + bucket : String + /-- Container for logging status information. -/ + bucketLoggingStatus : BucketLoggingStatus + /-- Indicates the algorithm used to create the checksum for the request when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The MD5 hash of the PutBucketLogging request body. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutBucketLoggingRequest where + schema := .struct "PutBucketLoggingRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "BucketLoggingStatus", required := true, xmlName := some "BucketLoggingStatus", location := .payload }, (Shape.schema BucketLoggingStatus)), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string)] + toValue x := record [put "Bucket" x.bucket, put "BucketLoggingStatus" x.bucketLoggingStatus, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner] + ofValue v := do + let bucket ← v.req "Bucket" + let bucketLoggingStatus ← v.req "BucketLoggingStatus" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + return { bucket, bucketLoggingStatus, checksumAlgorithm, contentMD5, expectedBucketOwner } + +/-- Specifies which Amazon S3 objects to replicate and where to store the replicas. -/ +structure ReplicationRule where + deleteMarkerReplication : Option DeleteMarkerReplication := none + /-- A container for information about the replication destination and its configurations including enabling the S3 Replication Time Control (S3 RTC). -/ + destination : Destination + /-- Optional configuration to replicate existing source bucket objects. -/ + existingObjectReplication : Option ExistingObjectReplication := none + filter : Option ReplicationRuleFilter := none + /-- A unique identifier for the rule. -/ + id : Option String := none + /-- An object key name prefix that identifies the object or objects to which the rule applies. -/ + «prefix» : Option String := none + /-- The priority indicates which rule has precedence whenever two or more replication rules conflict. -/ + priority : Option Int := none + /-- A container that describes additional filters for identifying the source objects that you want to replicate. -/ + sourceSelectionCriteria : Option SourceSelectionCriteria := none + /-- Specifies whether the rule is enabled. -/ + status : ReplicationRuleStatus +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicationRule where + schema := .struct "ReplicationRule" [({ name := "DeleteMarkerReplication" }, (Shape.schema DeleteMarkerReplication)), + ({ name := "Destination", required := true }, (Shape.schema Destination)), + ({ name := "ExistingObjectReplication" }, (Shape.schema ExistingObjectReplication)), + ({ name := "Filter" }, (Shape.schema ReplicationRuleFilter)), + ({ name := "ID" }, .string), + ({ name := "Prefix" }, .string), + ({ name := "Priority" }, .int), + ({ name := "SourceSelectionCriteria" }, (Shape.schema SourceSelectionCriteria)), + ({ name := "Status", required := true }, (Shape.schema ReplicationRuleStatus))] + toValue x := record [putOpt "DeleteMarkerReplication" x.deleteMarkerReplication, put "Destination" x.destination, putOpt "ExistingObjectReplication" x.existingObjectReplication, putOpt "Filter" x.filter, putOpt "ID" x.id, putOpt "Prefix" x.«prefix», putOpt "Priority" x.priority, putOpt "SourceSelectionCriteria" x.sourceSelectionCriteria, put "Status" x.status] + ofValue v := do + let deleteMarkerReplication ← v.opt "DeleteMarkerReplication" + let destination ← v.req "Destination" + let existingObjectReplication ← v.opt "ExistingObjectReplication" + let filter ← v.opt "Filter" + let id ← v.opt "ID" + let «prefix» ← v.opt "Prefix" + let priority ← v.opt "Priority" + let sourceSelectionCriteria ← v.opt "SourceSelectionCriteria" + let status ← v.req "Status" + return { deleteMarkerReplication, destination, existingObjectReplication, filter, id, «prefix», priority, sourceSelectionCriteria, status } + +/-- Container for restore job parameters. -/ +structure RestoreRequest where + /-- Lifetime of the active copy in days. -/ + days : Option Int := none + /-- The optional description for the job. -/ + description : Option String := none + /-- S3 Glacier related parameters pertaining to this job. -/ + glacierJobParameters : Option GlacierJobParameters := none + /-- Describes the location where the restore job's output is stored. -/ + outputLocation : Option OutputLocation := none + /-- Amazon S3 Select is no longer available to new customers. -/ + selectParameters : Option SelectParameters := none + /-- Retrieval tier at which the restore will be processed. -/ + tier : Option Tier := none + /-- Amazon S3 Select is no longer available to new customers. -/ + type : Option RestoreRequestType := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreRequest where + schema := .struct "RestoreRequest" [({ name := "Days" }, .int), + ({ name := "Description" }, .string), + ({ name := "GlacierJobParameters" }, (Shape.schema GlacierJobParameters)), + ({ name := "OutputLocation" }, (Shape.schema OutputLocation)), + ({ name := "SelectParameters" }, (Shape.schema SelectParameters)), + ({ name := "Tier" }, (Shape.schema Tier)), + ({ name := "Type" }, (Shape.schema RestoreRequestType))] + toValue x := record [putOpt "Days" x.days, putOpt "Description" x.description, putOpt "GlacierJobParameters" x.glacierJobParameters, putOpt "OutputLocation" x.outputLocation, putOpt "SelectParameters" x.selectParameters, putOpt "Tier" x.tier, putOpt "Type" x.type] + ofValue v := do + let days ← v.opt "Days" + let description ← v.opt "Description" + let glacierJobParameters ← v.opt "GlacierJobParameters" + let outputLocation ← v.opt "OutputLocation" + let selectParameters ← v.opt "SelectParameters" + let tier ← v.opt "Tier" + let type ← v.opt "Type" + return { days, description, glacierJobParameters, outputLocation, selectParameters, tier, type } + +structure GetBucketAnalyticsConfigurationOutput where + /-- The configuration and any analyses for the analytics filter. -/ + analyticsConfiguration : Option AnalyticsConfiguration := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketAnalyticsConfigurationOutput where + schema := .struct "GetBucketAnalyticsConfigurationOutput" [({ name := "AnalyticsConfiguration", location := .payload }, (Shape.schema AnalyticsConfiguration))] + toValue x := record [putOpt "AnalyticsConfiguration" x.analyticsConfiguration] + ofValue v := do + let analyticsConfiguration ← v.opt "AnalyticsConfiguration" + return { analyticsConfiguration } + +structure ListBucketAnalyticsConfigurationsOutput where + /-- The list of analytics configurations for a bucket. -/ + analyticsConfigurationList : Option (List AnalyticsConfiguration) := none + /-- The marker that is used as a starting point for this analytics configuration list response. -/ + continuationToken : Option String := none + /-- Indicates whether the returned list of analytics configurations is complete. -/ + isTruncated : Option Bool := none + /-- NextContinuationToken is sent when isTruncated is true, which indicates that there are more analytics configurations to list. -/ + nextContinuationToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListBucketAnalyticsConfigurationsOutput where + schema := .struct "ListBucketAnalyticsConfigurationResult" [({ name := "AnalyticsConfigurationList", xmlName := some "AnalyticsConfiguration", flattened := true }, (.list (Shape.schema AnalyticsConfiguration) "member")), + ({ name := "ContinuationToken" }, .string), + ({ name := "IsTruncated" }, .bool), + ({ name := "NextContinuationToken" }, .string)] + toValue x := record [putOpt "AnalyticsConfigurationList" x.analyticsConfigurationList, putOpt "ContinuationToken" x.continuationToken, putOpt "IsTruncated" x.isTruncated, putOpt "NextContinuationToken" x.nextContinuationToken] + ofValue v := do + let analyticsConfigurationList ← v.opt "AnalyticsConfigurationList" + let continuationToken ← v.opt "ContinuationToken" + let isTruncated ← v.opt "IsTruncated" + let nextContinuationToken ← v.opt "NextContinuationToken" + return { analyticsConfigurationList, continuationToken, isTruncated, nextContinuationToken } + +structure PutBucketAnalyticsConfigurationRequest where + /-- The configuration and any analyses for the analytics filter. -/ + analyticsConfiguration : AnalyticsConfiguration + /-- The name of the bucket to which an analytics configuration is stored. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- The ID that identifies the analytics configuration. -/ + id : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutBucketAnalyticsConfigurationRequest where + schema := .struct "PutBucketAnalyticsConfigurationRequest" [({ name := "AnalyticsConfiguration", required := true, xmlName := some "AnalyticsConfiguration", location := .payload }, (Shape.schema AnalyticsConfiguration)), + ({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Id", required := true, location := .query "id" }, .string)] + toValue x := record [put "AnalyticsConfiguration" x.analyticsConfiguration, put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Id" x.id] + ofValue v := do + let analyticsConfiguration ← v.req "AnalyticsConfiguration" + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let id ← v.req "Id" + return { analyticsConfiguration, bucket, expectedBucketOwner, id } + +structure PutBucketNotificationConfigurationRequest where + /-- The name of the bucket. -/ + bucket : String + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + notificationConfiguration : NotificationConfiguration + /-- Skips validation of Amazon SQS, Amazon SNS, and Lambda destinations. -/ + skipDestinationValidation : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutBucketNotificationConfigurationRequest where + schema := .struct "PutBucketNotificationConfigurationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "NotificationConfiguration", required := true, xmlName := some "NotificationConfiguration", location := .payload }, (Shape.schema NotificationConfiguration)), + ({ name := "SkipDestinationValidation", location := .header "x-amz-skip-destination-validation" }, .bool)] + toValue x := record [put "Bucket" x.bucket, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "NotificationConfiguration" x.notificationConfiguration, putOpt "SkipDestinationValidation" x.skipDestinationValidation] + ofValue v := do + let bucket ← v.req "Bucket" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let notificationConfiguration ← v.req "NotificationConfiguration" + let skipDestinationValidation ← v.opt "SkipDestinationValidation" + return { bucket, expectedBucketOwner, notificationConfiguration, skipDestinationValidation } + +/-- A container for replication rules. -/ +structure ReplicationConfiguration where + /-- The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that Amazon S3 assumes when replicating objects. -/ + role : String + /-- A container for one or more replication rules. -/ + rules : (List ReplicationRule) +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplicationConfiguration where + schema := .struct "ReplicationConfiguration" [({ name := "Role", required := true }, .string), + ({ name := "Rules", required := true, xmlName := some "Rule", flattened := true }, (.list (Shape.schema ReplicationRule) "member"))] + toValue x := record [put "Role" x.role, put "Rules" x.rules] + ofValue v := do + let role ← v.req "Role" + let rules ← v.req "Rules" + return { role, rules } + +structure RestoreObjectRequest where + /-- The bucket name containing the object to restore. -/ + bucket : String + /-- Indicates the algorithm used to create the checksum for the object when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + /-- Object key for which the action was initiated. -/ + key : String + requestPayer : Option RequestPayer := none + restoreRequest : Option RestoreRequest := none + /-- VersionId used to reference a specific version of the object. -/ + versionId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RestoreObjectRequest where + schema := .struct "RestoreObjectRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "Key", required := true, location := .label }, .string), + ({ name := "RequestPayer", location := .header "x-amz-request-payer" }, (Shape.schema RequestPayer)), + ({ name := "RestoreRequest", xmlName := some "RestoreRequest", location := .payload }, (Shape.schema RestoreRequest)), + ({ name := "VersionId", location := .query "versionId" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "Key" x.key, putOpt "RequestPayer" x.requestPayer, putOpt "RestoreRequest" x.restoreRequest, putOpt "VersionId" x.versionId] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let key ← v.req "Key" + let requestPayer ← v.opt "RequestPayer" + let restoreRequest ← v.opt "RestoreRequest" + let versionId ← v.opt "VersionId" + return { bucket, checksumAlgorithm, expectedBucketOwner, key, requestPayer, restoreRequest, versionId } + +structure GetBucketReplicationOutput where + replicationConfiguration : Option ReplicationConfiguration := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetBucketReplicationOutput where + schema := .struct "GetBucketReplicationOutput" [({ name := "ReplicationConfiguration", location := .payload }, (Shape.schema ReplicationConfiguration))] + toValue x := record [putOpt "ReplicationConfiguration" x.replicationConfiguration] + ofValue v := do + let replicationConfiguration ← v.opt "ReplicationConfiguration" + return { replicationConfiguration } + +structure PutBucketReplicationRequest where + /-- The name of the bucket. -/ + bucket : String + /-- Indicates the algorithm used to create the checksum for the request when you use the SDK. -/ + checksumAlgorithm : Option ChecksumAlgorithm := none + /-- The Base64 encoded 128-bit MD5 digest of the data. -/ + contentMD5 : Option String := none + /-- The account ID of the expected bucket owner. -/ + expectedBucketOwner : Option String := none + replicationConfiguration : ReplicationConfiguration + /-- A token to allow Object Lock to be enabled for an existing bucket. -/ + token : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutBucketReplicationRequest where + schema := .struct "PutBucketReplicationRequest" [({ name := "Bucket", required := true, location := .label }, .string), + ({ name := "ChecksumAlgorithm", location := .header "x-amz-sdk-checksum-algorithm" }, (Shape.schema ChecksumAlgorithm)), + ({ name := "ContentMD5", location := .header "Content-MD5" }, .string), + ({ name := "ExpectedBucketOwner", location := .header "x-amz-expected-bucket-owner" }, .string), + ({ name := "ReplicationConfiguration", required := true, xmlName := some "ReplicationConfiguration", location := .payload }, (Shape.schema ReplicationConfiguration)), + ({ name := "Token", location := .header "x-amz-bucket-object-lock-token" }, .string)] + toValue x := record [put "Bucket" x.bucket, putOpt "ChecksumAlgorithm" x.checksumAlgorithm, putOpt "ContentMD5" x.contentMD5, putOpt "ExpectedBucketOwner" x.expectedBucketOwner, put "ReplicationConfiguration" x.replicationConfiguration, putOpt "Token" x.token] + ofValue v := do + let bucket ← v.req "Bucket" + let checksumAlgorithm ← v.opt "ChecksumAlgorithm" + let contentMD5 ← v.opt "ContentMD5" + let expectedBucketOwner ← v.opt "ExpectedBucketOwner" + let replicationConfiguration ← v.req "ReplicationConfiguration" + let token ← v.opt "Token" + return { bucket, checksumAlgorithm, contentMD5, expectedBucketOwner, replicationConfiguration, token } + +/-- What `AbortMultipartUpload` can fail with. -/ +inductive AbortMultipartUploadError where + /-- The specified multipart upload does not exist. -/ + | noSuchUpload (error : NoSuchUpload) +deriving DecidableEq, Repr + +def AbortMultipartUploadError.ofWire (name : String) (value : Value) : Option AbortMultipartUploadError := + match name with + | "NoSuchUpload" => (Shape.ofValue value).toOption.map .noSuchUpload + | _ => none + +/-- What `CopyObject` can fail with. -/ +inductive CopyObjectError where + /-- The source object of the COPY action is not in the active tier and is only stored in Amazon S3 Glacier. -/ + | objectNotInActiveTierError (error : ObjectNotInActiveTierError) +deriving DecidableEq, Repr + +def CopyObjectError.ofWire (name : String) (value : Value) : Option CopyObjectError := + match name with + | "ObjectNotInActiveTierError" => (Shape.ofValue value).toOption.map .objectNotInActiveTierError + | _ => none + +/-- What `CreateBucket` can fail with. -/ +inductive CreateBucketError where + /-- The requested bucket name is not available. -/ + | bucketAlreadyExists (error : BucketAlreadyExists) + /-- The bucket you tried to create already exists, and you own it. -/ + | bucketAlreadyOwnedByYou (error : BucketAlreadyOwnedByYou) +deriving DecidableEq, Repr + +def CreateBucketError.ofWire (name : String) (value : Value) : Option CreateBucketError := + match name with + | "BucketAlreadyExists" => (Shape.ofValue value).toOption.map .bucketAlreadyExists + | "BucketAlreadyOwnedByYou" => (Shape.ofValue value).toOption.map .bucketAlreadyOwnedByYou + | _ => none + +/-- What `CreateSession` can fail with. -/ +inductive CreateSessionError where + /-- The specified bucket does not exist. -/ + | noSuchBucket (error : NoSuchBucket) +deriving DecidableEq, Repr + +def CreateSessionError.ofWire (name : String) (value : Value) : Option CreateSessionError := + match name with + | "NoSuchBucket" => (Shape.ofValue value).toOption.map .noSuchBucket + | _ => none + +/-- What `DeleteObjectAnnotation` can fail with. -/ +inductive DeleteObjectAnnotationError where + /-- The specified bucket does not exist. -/ + | noSuchBucket (error : NoSuchBucket) + /-- The specified key does not exist. -/ + | noSuchKey (error : NoSuchKey) +deriving DecidableEq, Repr + +def DeleteObjectAnnotationError.ofWire (name : String) (value : Value) : Option DeleteObjectAnnotationError := + match name with + | "NoSuchBucket" => (Shape.ofValue value).toOption.map .noSuchBucket + | "NoSuchKey" => (Shape.ofValue value).toOption.map .noSuchKey + | _ => none + +/-- What `GetObject` can fail with. -/ +inductive GetObjectError where + /-- Object is archived and inaccessible until restored. -/ + | invalidObjectState (error : InvalidObjectState) + /-- The specified key does not exist. -/ + | noSuchKey (error : NoSuchKey) +deriving DecidableEq, Repr + +def GetObjectError.ofWire (name : String) (value : Value) : Option GetObjectError := + match name with + | "InvalidObjectState" => (Shape.ofValue value).toOption.map .invalidObjectState + | "NoSuchKey" => (Shape.ofValue value).toOption.map .noSuchKey + | _ => none + +/-- What `GetObjectAcl` can fail with. -/ +inductive GetObjectAclError where + /-- The specified key does not exist. -/ + | noSuchKey (error : NoSuchKey) +deriving DecidableEq, Repr + +def GetObjectAclError.ofWire (name : String) (value : Value) : Option GetObjectAclError := + match name with + | "NoSuchKey" => (Shape.ofValue value).toOption.map .noSuchKey + | _ => none + +/-- What `GetObjectAnnotation` can fail with. -/ +inductive GetObjectAnnotationError where + /-- The specified annotation does not exist on this object. -/ + | noSuchAnnotation (error : NoSuchAnnotation) + /-- The specified bucket does not exist. -/ + | noSuchBucket (error : NoSuchBucket) + /-- The specified key does not exist. -/ + | noSuchKey (error : NoSuchKey) +deriving DecidableEq, Repr + +def GetObjectAnnotationError.ofWire (name : String) (value : Value) : Option GetObjectAnnotationError := + match name with + | "NoSuchAnnotation" => (Shape.ofValue value).toOption.map .noSuchAnnotation + | "NoSuchBucket" => (Shape.ofValue value).toOption.map .noSuchBucket + | "NoSuchKey" => (Shape.ofValue value).toOption.map .noSuchKey + | _ => none + +/-- What `GetObjectAttributes` can fail with. -/ +inductive GetObjectAttributesError where + /-- The specified key does not exist. -/ + | noSuchKey (error : NoSuchKey) +deriving DecidableEq, Repr + +def GetObjectAttributesError.ofWire (name : String) (value : Value) : Option GetObjectAttributesError := + match name with + | "NoSuchKey" => (Shape.ofValue value).toOption.map .noSuchKey + | _ => none + +/-- What `HeadBucket` can fail with. -/ +inductive HeadBucketError where + /-- The specified content does not exist. -/ + | notFound (error : NotFound) +deriving DecidableEq, Repr + +def HeadBucketError.ofWire (name : String) (value : Value) : Option HeadBucketError := + match name with + | "NotFound" => (Shape.ofValue value).toOption.map .notFound + | _ => none + +/-- What `HeadObject` can fail with. -/ +inductive HeadObjectError where + /-- The specified content does not exist. -/ + | notFound (error : NotFound) +deriving DecidableEq, Repr + +def HeadObjectError.ofWire (name : String) (value : Value) : Option HeadObjectError := + match name with + | "NotFound" => (Shape.ofValue value).toOption.map .notFound + | _ => none + +/-- What `ListObjectAnnotations` can fail with. -/ +inductive ListObjectAnnotationsError where + /-- The annotation prefix you provided is invalid. -/ + | invalidPrefix (error : InvalidPrefix) + /-- The specified bucket does not exist. -/ + | noSuchBucket (error : NoSuchBucket) + /-- The specified key does not exist. -/ + | noSuchKey (error : NoSuchKey) +deriving DecidableEq, Repr + +def ListObjectAnnotationsError.ofWire (name : String) (value : Value) : Option ListObjectAnnotationsError := + match name with + | "InvalidPrefix" => (Shape.ofValue value).toOption.map .invalidPrefix + | "NoSuchBucket" => (Shape.ofValue value).toOption.map .noSuchBucket + | "NoSuchKey" => (Shape.ofValue value).toOption.map .noSuchKey + | _ => none + +/-- What `ListObjects` can fail with. -/ +inductive ListObjectsError where + /-- The specified bucket does not exist. -/ + | noSuchBucket (error : NoSuchBucket) +deriving DecidableEq, Repr + +def ListObjectsError.ofWire (name : String) (value : Value) : Option ListObjectsError := + match name with + | "NoSuchBucket" => (Shape.ofValue value).toOption.map .noSuchBucket + | _ => none + +/-- What `ListObjectsV2` can fail with. -/ +inductive ListObjectsV2Error where + /-- The specified bucket does not exist. -/ + | noSuchBucket (error : NoSuchBucket) +deriving DecidableEq, Repr + +def ListObjectsV2Error.ofWire (name : String) (value : Value) : Option ListObjectsV2Error := + match name with + | "NoSuchBucket" => (Shape.ofValue value).toOption.map .noSuchBucket + | _ => none + +/-- What `PutObject` can fail with. -/ +inductive PutObjectError where + /-- The existing object was created with a different encryption type. -/ + | encryptionTypeMismatch (error : EncryptionTypeMismatch) + /-- A parameter or header in your request isn't valid. -/ + | invalidRequest (error : InvalidRequest) + /-- The write offset value that you specified does not match the current object size. -/ + | invalidWriteOffset (error : InvalidWriteOffset) + /-- You have attempted to add more parts than the maximum of 10000 that are allowed for this object. -/ + | tooManyParts (error : TooManyParts) +deriving DecidableEq, Repr + +def PutObjectError.ofWire (name : String) (value : Value) : Option PutObjectError := + match name with + | "EncryptionTypeMismatch" => (Shape.ofValue value).toOption.map .encryptionTypeMismatch + | "InvalidRequest" => (Shape.ofValue value).toOption.map .invalidRequest + | "InvalidWriteOffset" => (Shape.ofValue value).toOption.map .invalidWriteOffset + | "TooManyParts" => (Shape.ofValue value).toOption.map .tooManyParts + | _ => none + +/-- What `PutObjectAcl` can fail with. -/ +inductive PutObjectAclError where + /-- The specified key does not exist. -/ + | noSuchKey (error : NoSuchKey) +deriving DecidableEq, Repr + +def PutObjectAclError.ofWire (name : String) (value : Value) : Option PutObjectAclError := + match name with + | "NoSuchKey" => (Shape.ofValue value).toOption.map .noSuchKey + | _ => none + +/-- What `PutObjectAnnotation` can fail with. -/ +inductive PutObjectAnnotationError where + /-- The request would exceed the maximum number of annotations allowed per object. -/ + | annotationLimitExceeded (error : AnnotationLimitExceeded) + /-- The annotation name exceeds 512 bytes. -/ + | annotationNameTooLong (error : AnnotationNameTooLong) + /-- The annotation name you provided is invalid. -/ + | invalidAnnotationName (error : InvalidAnnotationName) + /-- A parameter or header in your request isn't valid. -/ + | invalidRequest (error : InvalidRequest) + /-- The specified bucket does not exist. -/ + | noSuchBucket (error : NoSuchBucket) + /-- The specified key does not exist. -/ + | noSuchKey (error : NoSuchKey) + /-- The annotation payload is not valid UTF-8 encoded text. -/ + | unsupportedMediaType (error : UnsupportedMediaType) +deriving DecidableEq, Repr + +def PutObjectAnnotationError.ofWire (name : String) (value : Value) : Option PutObjectAnnotationError := + match name with + | "AnnotationLimitExceeded" => (Shape.ofValue value).toOption.map .annotationLimitExceeded + | "AnnotationNameTooLong" => (Shape.ofValue value).toOption.map .annotationNameTooLong + | "InvalidAnnotationName" => (Shape.ofValue value).toOption.map .invalidAnnotationName + | "InvalidRequest" => (Shape.ofValue value).toOption.map .invalidRequest + | "NoSuchBucket" => (Shape.ofValue value).toOption.map .noSuchBucket + | "NoSuchKey" => (Shape.ofValue value).toOption.map .noSuchKey + | "UnsupportedMediaType" => (Shape.ofValue value).toOption.map .unsupportedMediaType + | _ => none + +/-- What `RenameObject` can fail with. -/ +inductive RenameObjectError where + /-- Parameters on this idempotent request are inconsistent with parameters used in previous request(s). -/ + | idempotencyParameterMismatch (error : IdempotencyParameterMismatch) +deriving DecidableEq, Repr + +def RenameObjectError.ofWire (name : String) (value : Value) : Option RenameObjectError := + match name with + | "IdempotencyParameterMismatch" => (Shape.ofValue value).toOption.map .idempotencyParameterMismatch + | _ => none + +/-- What `RestoreObject` can fail with. -/ +inductive RestoreObjectError where + /-- This action is not allowed against this storage tier. -/ + | objectAlreadyInActiveTierError (error : ObjectAlreadyInActiveTierError) +deriving DecidableEq, Repr + +def RestoreObjectError.ofWire (name : String) (value : Value) : Option RestoreObjectError := + match name with + | "ObjectAlreadyInActiveTierError" => (Shape.ofValue value).toOption.map .objectAlreadyInActiveTierError + | _ => none + +/-- What `UpdateObjectEncryption` can fail with. -/ +inductive UpdateObjectEncryptionError where + /-- You might receive this error for several reasons. -/ + | accessDenied (error : AccessDenied) + /-- A parameter or header in your request isn't valid. -/ + | invalidRequest (error : InvalidRequest) + /-- The specified key does not exist. -/ + | noSuchKey (error : NoSuchKey) +deriving DecidableEq, Repr + +def UpdateObjectEncryptionError.ofWire (name : String) (value : Value) : Option UpdateObjectEncryptionError := + match name with + | "AccessDenied" => (Shape.ofValue value).toOption.map .accessDenied + | "InvalidRequest" => (Shape.ofValue value).toOption.map .invalidRequest + | "NoSuchKey" => (Shape.ofValue value).toOption.map .noSuchKey + | _ => none + +/-- The operations of the service. -/ +inductive Op where + /-- This operation aborts a multipart upload. -/ + | abortMultipartUpload + /-- Completes a multipart upload by assembling previously uploaded parts. -/ + | completeMultipartUpload + /-- Creates a copy of an object that is already stored in Amazon S3. -/ + | copyObject + /-- This action creates an Amazon S3 bucket. -/ + | createBucket + /-- Creates an S3 Metadata V2 metadata configuration for a general purpose bucket. -/ + | createBucketMetadataConfiguration + /-- We recommend that you create your S3 Metadata configurations by using the V2 CreateBucketMetadataConfiguration API operation. -/ + | createBucketMetadataTableConfiguration + /-- End of support notice: As of October 1, 2025, Amazon S3 has discontinued support for Email Grantee Access Control Lists (ACLs). -/ + | createMultipartUpload + /-- Creates a session that establishes temporary security credentials to support fast authentication and authorization for the Zonal endpoint API operations on directory buckets. -/ + | createSession + /-- Deletes the S3 bucket. -/ + | deleteBucket + /-- This operation is not supported for directory buckets. -/ + | deleteBucketAnalyticsConfiguration + /-- This operation is not supported for directory buckets. -/ + | deleteBucketCors + /-- This implementation of the DELETE action resets the default encryption for the bucket as server-side encryption with Amazon S3 managed keys (SSE-S3). -/ + | deleteBucketEncryption + /-- This operation is not supported for directory buckets. -/ + | deleteBucketIntelligentTieringConfiguration + /-- Deletes an S3 Inventory configuration (identified by the inventory ID) from the bucket. -/ + | deleteBucketInventoryConfiguration + /-- Deletes the lifecycle configuration from the specified bucket. -/ + | deleteBucketLifecycle + /-- Deletes an S3 Metadata configuration from a general purpose bucket. -/ + | deleteBucketMetadataConfiguration + /-- We recommend that you delete your S3 Metadata configurations by using the V2 DeleteBucketMetadataConfiguration API operation. -/ + | deleteBucketMetadataTableConfiguration + /-- Deletes a metrics configuration for the Amazon CloudWatch request metrics (specified by the metrics configuration ID) from the bucket. -/ + | deleteBucketMetricsConfiguration + /-- This operation is not supported for directory buckets. -/ + | deleteBucketOwnershipControls + /-- Deletes the policy of a specified bucket. -/ + | deleteBucketPolicy + /-- This operation is not supported for directory buckets. -/ + | deleteBucketReplication + /-- This operation is not supported for directory buckets. -/ + | deleteBucketTagging + /-- This operation is not supported for directory buckets. -/ + | deleteBucketWebsite + /-- Removes an object from a bucket. -/ + | deleteObject + /-- Deletes a specific annotation from an Amazon S3 object. -/ + | deleteObjectAnnotation + /-- This operation is not supported for directory buckets. -/ + | deleteObjectTagging + /-- This operation enables you to delete multiple objects from a bucket using a single HTTP request. -/ + | deleteObjects + /-- This operation is not supported for directory buckets. -/ + | deletePublicAccessBlock + /-- Returns the attribute-based access control (ABAC) property of the general purpose bucket. -/ + | getBucketAbac + /-- This operation is not supported for directory buckets. -/ + | getBucketAccelerateConfiguration + /-- This operation is not supported for directory buckets. -/ + | getBucketAcl + /-- This operation is not supported for directory buckets. -/ + | getBucketAnalyticsConfiguration + /-- This operation is not supported for directory buckets. -/ + | getBucketCors + /-- Returns the default encryption configuration for an Amazon S3 bucket. -/ + | getBucketEncryption + /-- This operation is not supported for directory buckets. -/ + | getBucketIntelligentTieringConfiguration + /-- Returns an S3 Inventory configuration (identified by the inventory configuration ID) from the bucket. -/ + | getBucketInventoryConfiguration + /-- Returns the lifecycle configuration information set on the bucket. -/ + | getBucketLifecycleConfiguration + /-- Using the GetBucketLocation operation is no longer a best practice. -/ + | getBucketLocation + /-- This operation is not supported for directory buckets. -/ + | getBucketLogging + /-- Retrieves the S3 Metadata configuration for a general purpose bucket. -/ + | getBucketMetadataConfiguration + /-- We recommend that you retrieve your S3 Metadata configurations by using the V2 GetBucketMetadataConfiguration API operation. -/ + | getBucketMetadataTableConfiguration + /-- Gets a metrics configuration (specified by the metrics configuration ID) from the bucket. -/ + | getBucketMetricsConfiguration + /-- This operation is not supported for directory buckets. -/ + | getBucketNotificationConfiguration + /-- This operation is not supported for directory buckets. -/ + | getBucketOwnershipControls + /-- Returns the policy of a specified bucket. -/ + | getBucketPolicy + /-- This operation is not supported for directory buckets. -/ + | getBucketPolicyStatus + /-- This operation is not supported for directory buckets. -/ + | getBucketReplication + /-- This operation is not supported for directory buckets. -/ + | getBucketRequestPayment + /-- This operation is not supported for directory buckets. -/ + | getBucketTagging + /-- This operation is not supported for directory buckets. -/ + | getBucketVersioning + /-- This operation is not supported for directory buckets. -/ + | getBucketWebsite + /-- Retrieves an object from Amazon S3. -/ + | getObject + /-- This operation is not supported for directory buckets. -/ + | getObjectAcl + /-- Retrieves an annotation from an Amazon S3 object. -/ + | getObjectAnnotation + /-- Retrieves all of the metadata from an object without returning the object itself. -/ + | getObjectAttributes + /-- This operation is not supported for directory buckets. -/ + | getObjectLegalHold + /-- This operation is not supported for directory buckets. -/ + | getObjectLockConfiguration + /-- This operation is not supported for directory buckets. -/ + | getObjectRetention + /-- This operation is not supported for directory buckets. -/ + | getObjectTagging + /-- This operation is not supported for directory buckets. -/ + | getObjectTorrent + /-- This operation is not supported for directory buckets. -/ + | getPublicAccessBlock + /-- You can use this operation to determine if a bucket exists and if you have permission to access it. -/ + | headBucket + /-- The HEAD operation retrieves metadata from an object without returning the object itself. -/ + | headObject + /-- This operation is not supported for directory buckets. -/ + | listBucketAnalyticsConfigurations + /-- This operation is not supported for directory buckets. -/ + | listBucketIntelligentTieringConfigurations + /-- Returns a list of S3 Inventory configurations for the bucket. -/ + | listBucketInventoryConfigurations + /-- Lists the metrics configurations for the bucket. -/ + | listBucketMetricsConfigurations + /-- This operation is not supported for directory buckets. -/ + | listBuckets + /-- Returns a list of all Amazon S3 directory buckets owned by the authenticated sender of the request. -/ + | listDirectoryBuckets + /-- This operation lists in-progress multipart uploads in a bucket. -/ + | listMultipartUploads + /-- Lists the annotations attached to an Amazon S3 object. -/ + | listObjectAnnotations + /-- This operation is not supported for directory buckets. -/ + | listObjectVersions + /-- This operation is not supported for directory buckets. -/ + | listObjects + /-- Returns some or all (up to 1,000) of the objects in a bucket with each request. -/ + | listObjectsV2 + /-- Lists the parts that have been uploaded for a specific multipart upload. -/ + | listParts + /-- Sets the attribute-based access control (ABAC) property of the general purpose bucket. -/ + | putBucketAbac + /-- This operation is not supported for directory buckets. -/ + | putBucketAccelerateConfiguration + /-- End of support notice: As of October 1, 2025, Amazon S3 has discontinued support for Email Grantee Access Control Lists (ACLs). -/ + | putBucketAcl + /-- This operation is not supported for directory buckets. -/ + | putBucketAnalyticsConfiguration + /-- This operation is not supported for directory buckets. -/ + | putBucketCors + /-- This operation configures default encryption and Amazon S3 Bucket Keys for an existing bucket. -/ + | putBucketEncryption + /-- This operation is not supported for directory buckets. -/ + | putBucketIntelligentTieringConfiguration + /-- This implementation of the PUT action adds an S3 Inventory configuration (identified by the inventory ID) to the bucket. -/ + | putBucketInventoryConfiguration + /-- Creates a new lifecycle configuration for the bucket or replaces an existing lifecycle configuration. -/ + | putBucketLifecycleConfiguration + /-- End of support notice: As of October 1, 2025, Amazon S3 has discontinued support for Email Grantee Access Control Lists (ACLs). -/ + | putBucketLogging + /-- Sets a metrics configuration (specified by the metrics configuration ID) for the bucket. -/ + | putBucketMetricsConfiguration + /-- This operation is not supported for directory buckets. -/ + | putBucketNotificationConfiguration + /-- This operation is not supported for directory buckets. -/ + | putBucketOwnershipControls + /-- Applies an Amazon S3 bucket policy to an Amazon S3 bucket. -/ + | putBucketPolicy + /-- This operation is not supported for directory buckets. -/ + | putBucketReplication + /-- This operation is not supported for directory buckets. -/ + | putBucketRequestPayment + /-- This operation is not supported for directory buckets. -/ + | putBucketTagging + /-- This operation is not supported for directory buckets. -/ + | putBucketVersioning + /-- This operation is not supported for directory buckets. -/ + | putBucketWebsite + /-- End of support notice: As of October 1, 2025, Amazon S3 has discontinued support for Email Grantee Access Control Lists (ACLs). -/ + | putObject + /-- End of support notice: As of October 1, 2025, Amazon S3 has discontinued support for Email Grantee Access Control Lists (ACLs). -/ + | putObjectAcl + /-- Attaches an annotation to an Amazon S3 object. -/ + | putObjectAnnotation + /-- This operation is not supported for directory buckets. -/ + | putObjectLegalHold + /-- This operation is not supported for directory buckets. -/ + | putObjectLockConfiguration + /-- This operation is not supported for directory buckets. -/ + | putObjectRetention + /-- This operation is not supported for directory buckets. -/ + | putObjectTagging + /-- This operation is not supported for directory buckets. -/ + | putPublicAccessBlock + /-- Renames an existing object in a directory bucket that uses the S3 Express One Zone storage class. -/ + | renameObject + /-- This operation is not supported for directory buckets. -/ + | restoreObject + /-- This operation is not supported for directory buckets. -/ + | selectObjectContent + /-- Updates the annotation table configuration for an Amazon S3 bucket's metadata configuration. -/ + | updateBucketMetadataAnnotationTableConfiguration + /-- Enables or disables a live inventory table for an S3 Metadata configuration on a general purpose bucket. -/ + | updateBucketMetadataInventoryTableConfiguration + /-- Enables or disables journal table record expiration for an S3 Metadata configuration on a general purpose bucket. -/ + | updateBucketMetadataJournalTableConfiguration + /-- This operation is not supported for directory buckets or Amazon S3 on Outposts buckets. -/ + | updateObjectEncryption + /-- Uploads a part in a multipart upload. -/ + | uploadPart + /-- Uploads a part by copying data from an existing object as data source. -/ + | uploadPartCopy + /-- This operation is not supported for directory buckets. -/ + | writeGetObjectResponse +deriving DecidableEq, Repr + +abbrev Input : Op → Type + | .abortMultipartUpload => AbortMultipartUploadRequest + | .completeMultipartUpload => CompleteMultipartUploadRequest + | .copyObject => CopyObjectRequest + | .createBucket => CreateBucketRequest + | .createBucketMetadataConfiguration => CreateBucketMetadataConfigurationRequest + | .createBucketMetadataTableConfiguration => CreateBucketMetadataTableConfigurationRequest + | .createMultipartUpload => CreateMultipartUploadRequest + | .createSession => CreateSessionRequest + | .deleteBucket => DeleteBucketRequest + | .deleteBucketAnalyticsConfiguration => DeleteBucketAnalyticsConfigurationRequest + | .deleteBucketCors => DeleteBucketCorsRequest + | .deleteBucketEncryption => DeleteBucketEncryptionRequest + | .deleteBucketIntelligentTieringConfiguration => DeleteBucketIntelligentTieringConfigurationRequest + | .deleteBucketInventoryConfiguration => DeleteBucketInventoryConfigurationRequest + | .deleteBucketLifecycle => DeleteBucketLifecycleRequest + | .deleteBucketMetadataConfiguration => DeleteBucketMetadataConfigurationRequest + | .deleteBucketMetadataTableConfiguration => DeleteBucketMetadataTableConfigurationRequest + | .deleteBucketMetricsConfiguration => DeleteBucketMetricsConfigurationRequest + | .deleteBucketOwnershipControls => DeleteBucketOwnershipControlsRequest + | .deleteBucketPolicy => DeleteBucketPolicyRequest + | .deleteBucketReplication => DeleteBucketReplicationRequest + | .deleteBucketTagging => DeleteBucketTaggingRequest + | .deleteBucketWebsite => DeleteBucketWebsiteRequest + | .deleteObject => DeleteObjectRequest + | .deleteObjectAnnotation => DeleteObjectAnnotationRequest + | .deleteObjectTagging => DeleteObjectTaggingRequest + | .deleteObjects => DeleteObjectsRequest + | .deletePublicAccessBlock => DeletePublicAccessBlockRequest + | .getBucketAbac => GetBucketAbacRequest + | .getBucketAccelerateConfiguration => GetBucketAccelerateConfigurationRequest + | .getBucketAcl => GetBucketAclRequest + | .getBucketAnalyticsConfiguration => GetBucketAnalyticsConfigurationRequest + | .getBucketCors => GetBucketCorsRequest + | .getBucketEncryption => GetBucketEncryptionRequest + | .getBucketIntelligentTieringConfiguration => GetBucketIntelligentTieringConfigurationRequest + | .getBucketInventoryConfiguration => GetBucketInventoryConfigurationRequest + | .getBucketLifecycleConfiguration => GetBucketLifecycleConfigurationRequest + | .getBucketLocation => GetBucketLocationRequest + | .getBucketLogging => GetBucketLoggingRequest + | .getBucketMetadataConfiguration => GetBucketMetadataConfigurationRequest + | .getBucketMetadataTableConfiguration => GetBucketMetadataTableConfigurationRequest + | .getBucketMetricsConfiguration => GetBucketMetricsConfigurationRequest + | .getBucketNotificationConfiguration => GetBucketNotificationConfigurationRequest + | .getBucketOwnershipControls => GetBucketOwnershipControlsRequest + | .getBucketPolicy => GetBucketPolicyRequest + | .getBucketPolicyStatus => GetBucketPolicyStatusRequest + | .getBucketReplication => GetBucketReplicationRequest + | .getBucketRequestPayment => GetBucketRequestPaymentRequest + | .getBucketTagging => GetBucketTaggingRequest + | .getBucketVersioning => GetBucketVersioningRequest + | .getBucketWebsite => GetBucketWebsiteRequest + | .getObject => GetObjectRequest + | .getObjectAcl => GetObjectAclRequest + | .getObjectAnnotation => GetObjectAnnotationRequest + | .getObjectAttributes => GetObjectAttributesRequest + | .getObjectLegalHold => GetObjectLegalHoldRequest + | .getObjectLockConfiguration => GetObjectLockConfigurationRequest + | .getObjectRetention => GetObjectRetentionRequest + | .getObjectTagging => GetObjectTaggingRequest + | .getObjectTorrent => GetObjectTorrentRequest + | .getPublicAccessBlock => GetPublicAccessBlockRequest + | .headBucket => HeadBucketRequest + | .headObject => HeadObjectRequest + | .listBucketAnalyticsConfigurations => ListBucketAnalyticsConfigurationsRequest + | .listBucketIntelligentTieringConfigurations => ListBucketIntelligentTieringConfigurationsRequest + | .listBucketInventoryConfigurations => ListBucketInventoryConfigurationsRequest + | .listBucketMetricsConfigurations => ListBucketMetricsConfigurationsRequest + | .listBuckets => ListBucketsRequest + | .listDirectoryBuckets => ListDirectoryBucketsRequest + | .listMultipartUploads => ListMultipartUploadsRequest + | .listObjectAnnotations => ListObjectAnnotationsRequest + | .listObjectVersions => ListObjectVersionsRequest + | .listObjects => ListObjectsRequest + | .listObjectsV2 => ListObjectsV2Request + | .listParts => ListPartsRequest + | .putBucketAbac => PutBucketAbacRequest + | .putBucketAccelerateConfiguration => PutBucketAccelerateConfigurationRequest + | .putBucketAcl => PutBucketAclRequest + | .putBucketAnalyticsConfiguration => PutBucketAnalyticsConfigurationRequest + | .putBucketCors => PutBucketCorsRequest + | .putBucketEncryption => PutBucketEncryptionRequest + | .putBucketIntelligentTieringConfiguration => PutBucketIntelligentTieringConfigurationRequest + | .putBucketInventoryConfiguration => PutBucketInventoryConfigurationRequest + | .putBucketLifecycleConfiguration => PutBucketLifecycleConfigurationRequest + | .putBucketLogging => PutBucketLoggingRequest + | .putBucketMetricsConfiguration => PutBucketMetricsConfigurationRequest + | .putBucketNotificationConfiguration => PutBucketNotificationConfigurationRequest + | .putBucketOwnershipControls => PutBucketOwnershipControlsRequest + | .putBucketPolicy => PutBucketPolicyRequest + | .putBucketReplication => PutBucketReplicationRequest + | .putBucketRequestPayment => PutBucketRequestPaymentRequest + | .putBucketTagging => PutBucketTaggingRequest + | .putBucketVersioning => PutBucketVersioningRequest + | .putBucketWebsite => PutBucketWebsiteRequest + | .putObject => PutObjectRequest + | .putObjectAcl => PutObjectAclRequest + | .putObjectAnnotation => PutObjectAnnotationRequest + | .putObjectLegalHold => PutObjectLegalHoldRequest + | .putObjectLockConfiguration => PutObjectLockConfigurationRequest + | .putObjectRetention => PutObjectRetentionRequest + | .putObjectTagging => PutObjectTaggingRequest + | .putPublicAccessBlock => PutPublicAccessBlockRequest + | .renameObject => RenameObjectRequest + | .restoreObject => RestoreObjectRequest + | .selectObjectContent => SelectObjectContentRequest + | .updateBucketMetadataAnnotationTableConfiguration => UpdateBucketMetadataAnnotationTableConfigurationRequest + | .updateBucketMetadataInventoryTableConfiguration => UpdateBucketMetadataInventoryTableConfigurationRequest + | .updateBucketMetadataJournalTableConfiguration => UpdateBucketMetadataJournalTableConfigurationRequest + | .updateObjectEncryption => UpdateObjectEncryptionRequest + | .uploadPart => UploadPartRequest + | .uploadPartCopy => UploadPartCopyRequest + | .writeGetObjectResponse => WriteGetObjectResponseRequest + +abbrev Output : Op → Type + | .abortMultipartUpload => AbortMultipartUploadOutput + | .completeMultipartUpload => CompleteMultipartUploadOutput + | .copyObject => CopyObjectOutput + | .createBucket => CreateBucketOutput + | .createBucketMetadataConfiguration => Unit + | .createBucketMetadataTableConfiguration => Unit + | .createMultipartUpload => CreateMultipartUploadOutput + | .createSession => CreateSessionOutput + | .deleteBucket => Unit + | .deleteBucketAnalyticsConfiguration => Unit + | .deleteBucketCors => Unit + | .deleteBucketEncryption => Unit + | .deleteBucketIntelligentTieringConfiguration => Unit + | .deleteBucketInventoryConfiguration => Unit + | .deleteBucketLifecycle => Unit + | .deleteBucketMetadataConfiguration => Unit + | .deleteBucketMetadataTableConfiguration => Unit + | .deleteBucketMetricsConfiguration => Unit + | .deleteBucketOwnershipControls => Unit + | .deleteBucketPolicy => Unit + | .deleteBucketReplication => Unit + | .deleteBucketTagging => Unit + | .deleteBucketWebsite => Unit + | .deleteObject => DeleteObjectOutput + | .deleteObjectAnnotation => DeleteObjectAnnotationOutput + | .deleteObjectTagging => DeleteObjectTaggingOutput + | .deleteObjects => DeleteObjectsOutput + | .deletePublicAccessBlock => Unit + | .getBucketAbac => GetBucketAbacOutput + | .getBucketAccelerateConfiguration => GetBucketAccelerateConfigurationOutput + | .getBucketAcl => GetBucketAclOutput + | .getBucketAnalyticsConfiguration => GetBucketAnalyticsConfigurationOutput + | .getBucketCors => GetBucketCorsOutput + | .getBucketEncryption => GetBucketEncryptionOutput + | .getBucketIntelligentTieringConfiguration => GetBucketIntelligentTieringConfigurationOutput + | .getBucketInventoryConfiguration => GetBucketInventoryConfigurationOutput + | .getBucketLifecycleConfiguration => GetBucketLifecycleConfigurationOutput + | .getBucketLocation => GetBucketLocationOutput + | .getBucketLogging => GetBucketLoggingOutput + | .getBucketMetadataConfiguration => GetBucketMetadataConfigurationOutput + | .getBucketMetadataTableConfiguration => GetBucketMetadataTableConfigurationOutput + | .getBucketMetricsConfiguration => GetBucketMetricsConfigurationOutput + | .getBucketNotificationConfiguration => NotificationConfiguration + | .getBucketOwnershipControls => GetBucketOwnershipControlsOutput + | .getBucketPolicy => GetBucketPolicyOutput + | .getBucketPolicyStatus => GetBucketPolicyStatusOutput + | .getBucketReplication => GetBucketReplicationOutput + | .getBucketRequestPayment => GetBucketRequestPaymentOutput + | .getBucketTagging => GetBucketTaggingOutput + | .getBucketVersioning => GetBucketVersioningOutput + | .getBucketWebsite => GetBucketWebsiteOutput + | .getObject => GetObjectOutput + | .getObjectAcl => GetObjectAclOutput + | .getObjectAnnotation => GetObjectAnnotationOutput + | .getObjectAttributes => GetObjectAttributesOutput + | .getObjectLegalHold => GetObjectLegalHoldOutput + | .getObjectLockConfiguration => GetObjectLockConfigurationOutput + | .getObjectRetention => GetObjectRetentionOutput + | .getObjectTagging => GetObjectTaggingOutput + | .getObjectTorrent => GetObjectTorrentOutput + | .getPublicAccessBlock => GetPublicAccessBlockOutput + | .headBucket => HeadBucketOutput + | .headObject => HeadObjectOutput + | .listBucketAnalyticsConfigurations => ListBucketAnalyticsConfigurationsOutput + | .listBucketIntelligentTieringConfigurations => ListBucketIntelligentTieringConfigurationsOutput + | .listBucketInventoryConfigurations => ListBucketInventoryConfigurationsOutput + | .listBucketMetricsConfigurations => ListBucketMetricsConfigurationsOutput + | .listBuckets => ListBucketsOutput + | .listDirectoryBuckets => ListDirectoryBucketsOutput + | .listMultipartUploads => ListMultipartUploadsOutput + | .listObjectAnnotations => ListObjectAnnotationsOutput + | .listObjectVersions => ListObjectVersionsOutput + | .listObjects => ListObjectsOutput + | .listObjectsV2 => ListObjectsV2Output + | .listParts => ListPartsOutput + | .putBucketAbac => Unit + | .putBucketAccelerateConfiguration => Unit + | .putBucketAcl => Unit + | .putBucketAnalyticsConfiguration => Unit + | .putBucketCors => Unit + | .putBucketEncryption => Unit + | .putBucketIntelligentTieringConfiguration => Unit + | .putBucketInventoryConfiguration => Unit + | .putBucketLifecycleConfiguration => PutBucketLifecycleConfigurationOutput + | .putBucketLogging => Unit + | .putBucketMetricsConfiguration => Unit + | .putBucketNotificationConfiguration => Unit + | .putBucketOwnershipControls => Unit + | .putBucketPolicy => Unit + | .putBucketReplication => Unit + | .putBucketRequestPayment => Unit + | .putBucketTagging => Unit + | .putBucketVersioning => Unit + | .putBucketWebsite => Unit + | .putObject => PutObjectOutput + | .putObjectAcl => PutObjectAclOutput + | .putObjectAnnotation => PutObjectAnnotationOutput + | .putObjectLegalHold => PutObjectLegalHoldOutput + | .putObjectLockConfiguration => PutObjectLockConfigurationOutput + | .putObjectRetention => PutObjectRetentionOutput + | .putObjectTagging => PutObjectTaggingOutput + | .putPublicAccessBlock => Unit + | .renameObject => RenameObjectOutput + | .restoreObject => RestoreObjectOutput + | .selectObjectContent => SelectObjectContentOutput + | .updateBucketMetadataAnnotationTableConfiguration => Unit + | .updateBucketMetadataInventoryTableConfiguration => Unit + | .updateBucketMetadataJournalTableConfiguration => Unit + | .updateObjectEncryption => UpdateObjectEncryptionResponse + | .uploadPart => UploadPartOutput + | .uploadPartCopy => UploadPartCopyOutput + | .writeGetObjectResponse => Unit + +abbrev Error : Op → Type + | .abortMultipartUpload => AbortMultipartUploadError + | .completeMultipartUpload => Empty + | .copyObject => CopyObjectError + | .createBucket => CreateBucketError + | .createBucketMetadataConfiguration => Empty + | .createBucketMetadataTableConfiguration => Empty + | .createMultipartUpload => Empty + | .createSession => CreateSessionError + | .deleteBucket => Empty + | .deleteBucketAnalyticsConfiguration => Empty + | .deleteBucketCors => Empty + | .deleteBucketEncryption => Empty + | .deleteBucketIntelligentTieringConfiguration => Empty + | .deleteBucketInventoryConfiguration => Empty + | .deleteBucketLifecycle => Empty + | .deleteBucketMetadataConfiguration => Empty + | .deleteBucketMetadataTableConfiguration => Empty + | .deleteBucketMetricsConfiguration => Empty + | .deleteBucketOwnershipControls => Empty + | .deleteBucketPolicy => Empty + | .deleteBucketReplication => Empty + | .deleteBucketTagging => Empty + | .deleteBucketWebsite => Empty + | .deleteObject => Empty + | .deleteObjectAnnotation => DeleteObjectAnnotationError + | .deleteObjectTagging => Empty + | .deleteObjects => Empty + | .deletePublicAccessBlock => Empty + | .getBucketAbac => Empty + | .getBucketAccelerateConfiguration => Empty + | .getBucketAcl => Empty + | .getBucketAnalyticsConfiguration => Empty + | .getBucketCors => Empty + | .getBucketEncryption => Empty + | .getBucketIntelligentTieringConfiguration => Empty + | .getBucketInventoryConfiguration => Empty + | .getBucketLifecycleConfiguration => Empty + | .getBucketLocation => Empty + | .getBucketLogging => Empty + | .getBucketMetadataConfiguration => Empty + | .getBucketMetadataTableConfiguration => Empty + | .getBucketMetricsConfiguration => Empty + | .getBucketNotificationConfiguration => Empty + | .getBucketOwnershipControls => Empty + | .getBucketPolicy => Empty + | .getBucketPolicyStatus => Empty + | .getBucketReplication => Empty + | .getBucketRequestPayment => Empty + | .getBucketTagging => Empty + | .getBucketVersioning => Empty + | .getBucketWebsite => Empty + | .getObject => GetObjectError + | .getObjectAcl => GetObjectAclError + | .getObjectAnnotation => GetObjectAnnotationError + | .getObjectAttributes => GetObjectAttributesError + | .getObjectLegalHold => Empty + | .getObjectLockConfiguration => Empty + | .getObjectRetention => Empty + | .getObjectTagging => Empty + | .getObjectTorrent => Empty + | .getPublicAccessBlock => Empty + | .headBucket => HeadBucketError + | .headObject => HeadObjectError + | .listBucketAnalyticsConfigurations => Empty + | .listBucketIntelligentTieringConfigurations => Empty + | .listBucketInventoryConfigurations => Empty + | .listBucketMetricsConfigurations => Empty + | .listBuckets => Empty + | .listDirectoryBuckets => Empty + | .listMultipartUploads => Empty + | .listObjectAnnotations => ListObjectAnnotationsError + | .listObjectVersions => Empty + | .listObjects => ListObjectsError + | .listObjectsV2 => ListObjectsV2Error + | .listParts => Empty + | .putBucketAbac => Empty + | .putBucketAccelerateConfiguration => Empty + | .putBucketAcl => Empty + | .putBucketAnalyticsConfiguration => Empty + | .putBucketCors => Empty + | .putBucketEncryption => Empty + | .putBucketIntelligentTieringConfiguration => Empty + | .putBucketInventoryConfiguration => Empty + | .putBucketLifecycleConfiguration => Empty + | .putBucketLogging => Empty + | .putBucketMetricsConfiguration => Empty + | .putBucketNotificationConfiguration => Empty + | .putBucketOwnershipControls => Empty + | .putBucketPolicy => Empty + | .putBucketReplication => Empty + | .putBucketRequestPayment => Empty + | .putBucketTagging => Empty + | .putBucketVersioning => Empty + | .putBucketWebsite => Empty + | .putObject => PutObjectError + | .putObjectAcl => PutObjectAclError + | .putObjectAnnotation => PutObjectAnnotationError + | .putObjectLegalHold => Empty + | .putObjectLockConfiguration => Empty + | .putObjectRetention => Empty + | .putObjectTagging => Empty + | .putPublicAccessBlock => Empty + | .renameObject => RenameObjectError + | .restoreObject => RestoreObjectError + | .selectObjectContent => Empty + | .updateBucketMetadataAnnotationTableConfiguration => Empty + | .updateBucketMetadataInventoryTableConfiguration => Empty + | .updateBucketMetadataJournalTableConfiguration => Empty + | .updateObjectEncryption => UpdateObjectEncryptionError + | .uploadPart => Empty + | .uploadPartCopy => Empty + | .writeGetObjectResponse => Empty + +/-- An empty output for each operation, for a model that leaves an operation out. -/ +def Output.empty : (op : Op) → Output op + | .abortMultipartUpload => default + | .completeMultipartUpload => default + | .copyObject => default + | .createBucket => default + | .createBucketMetadataConfiguration => default + | .createBucketMetadataTableConfiguration => default + | .createMultipartUpload => default + | .createSession => default + | .deleteBucket => default + | .deleteBucketAnalyticsConfiguration => default + | .deleteBucketCors => default + | .deleteBucketEncryption => default + | .deleteBucketIntelligentTieringConfiguration => default + | .deleteBucketInventoryConfiguration => default + | .deleteBucketLifecycle => default + | .deleteBucketMetadataConfiguration => default + | .deleteBucketMetadataTableConfiguration => default + | .deleteBucketMetricsConfiguration => default + | .deleteBucketOwnershipControls => default + | .deleteBucketPolicy => default + | .deleteBucketReplication => default + | .deleteBucketTagging => default + | .deleteBucketWebsite => default + | .deleteObject => default + | .deleteObjectAnnotation => default + | .deleteObjectTagging => default + | .deleteObjects => default + | .deletePublicAccessBlock => default + | .getBucketAbac => default + | .getBucketAccelerateConfiguration => default + | .getBucketAcl => default + | .getBucketAnalyticsConfiguration => default + | .getBucketCors => default + | .getBucketEncryption => default + | .getBucketIntelligentTieringConfiguration => default + | .getBucketInventoryConfiguration => default + | .getBucketLifecycleConfiguration => default + | .getBucketLocation => default + | .getBucketLogging => default + | .getBucketMetadataConfiguration => default + | .getBucketMetadataTableConfiguration => default + | .getBucketMetricsConfiguration => default + | .getBucketNotificationConfiguration => default + | .getBucketOwnershipControls => default + | .getBucketPolicy => default + | .getBucketPolicyStatus => default + | .getBucketReplication => default + | .getBucketRequestPayment => default + | .getBucketTagging => default + | .getBucketVersioning => default + | .getBucketWebsite => default + | .getObject => default + | .getObjectAcl => default + | .getObjectAnnotation => default + | .getObjectAttributes => default + | .getObjectLegalHold => default + | .getObjectLockConfiguration => default + | .getObjectRetention => default + | .getObjectTagging => default + | .getObjectTorrent => default + | .getPublicAccessBlock => default + | .headBucket => default + | .headObject => default + | .listBucketAnalyticsConfigurations => default + | .listBucketIntelligentTieringConfigurations => default + | .listBucketInventoryConfigurations => default + | .listBucketMetricsConfigurations => default + | .listBuckets => default + | .listDirectoryBuckets => default + | .listMultipartUploads => default + | .listObjectAnnotations => default + | .listObjectVersions => default + | .listObjects => default + | .listObjectsV2 => default + | .listParts => default + | .putBucketAbac => default + | .putBucketAccelerateConfiguration => default + | .putBucketAcl => default + | .putBucketAnalyticsConfiguration => default + | .putBucketCors => default + | .putBucketEncryption => default + | .putBucketIntelligentTieringConfiguration => default + | .putBucketInventoryConfiguration => default + | .putBucketLifecycleConfiguration => default + | .putBucketLogging => default + | .putBucketMetricsConfiguration => default + | .putBucketNotificationConfiguration => default + | .putBucketOwnershipControls => default + | .putBucketPolicy => default + | .putBucketReplication => default + | .putBucketRequestPayment => default + | .putBucketTagging => default + | .putBucketVersioning => default + | .putBucketWebsite => default + | .putObject => default + | .putObjectAcl => default + | .putObjectAnnotation => default + | .putObjectLegalHold => default + | .putObjectLockConfiguration => default + | .putObjectRetention => default + | .putObjectTagging => default + | .putPublicAccessBlock => default + | .renameObject => default + | .restoreObject => default + | .selectObjectContent => default + | .updateBucketMetadataAnnotationTableConfiguration => default + | .updateBucketMetadataInventoryTableConfiguration => default + | .updateBucketMetadataJournalTableConfiguration => default + | .updateObjectEncryption => default + | .uploadPart => default + | .uploadPartCopy => default + | .writeGetObjectResponse => default + +/-- The service: every operation with its input, its output and its errors. -/ +abbrev api : Distilled.Api where + Op := Op + In := Input + Out := Output + Err := Error + +/-- The name requests to this service are signed for. -/ +def signingName : String := "s3" + +def service : ServiceInfo where + name := "AmazonS3" + version := "2006-03-01" + protocol := .restXml + signingName := "s3" + xmlNamespace := some "http://s3.amazonaws.com/doc/2006-03-01/" + +/-- What the model says about each operation. -/ +def info : Op → OpInfo + | .abortMultipartUpload => { name := "AbortMultipartUpload", method := "DELETE", uri := "/{Bucket}/{Key+}?x-id=AbortMultipartUpload", input := (Shape.schema AbortMultipartUploadRequest), output := (Shape.schema AbortMultipartUploadOutput), errors := [{ name := "NoSuchUpload", schema := Shape.schema NoSuchUpload }] } + | .completeMultipartUpload => { name := "CompleteMultipartUpload", method := "POST", uri := "/{Bucket}/{Key+}", input := (Shape.schema CompleteMultipartUploadRequest), output := (Shape.schema CompleteMultipartUploadOutput), errors := [] } + | .copyObject => { name := "CopyObject", method := "PUT", uri := "/{Bucket}/{Key+}?x-id=CopyObject", input := (Shape.schema CopyObjectRequest), output := (Shape.schema CopyObjectOutput), errors := [{ name := "ObjectNotInActiveTierError", schema := Shape.schema ObjectNotInActiveTierError }] } + | .createBucket => { name := "CreateBucket", method := "PUT", uri := "/{Bucket}", input := (Shape.schema CreateBucketRequest), output := (Shape.schema CreateBucketOutput), errors := [{ name := "BucketAlreadyExists", schema := Shape.schema BucketAlreadyExists }, { name := "BucketAlreadyOwnedByYou", schema := Shape.schema BucketAlreadyOwnedByYou }] } + | .createBucketMetadataConfiguration => { name := "CreateBucketMetadataConfiguration", method := "POST", uri := "/{Bucket}?metadataConfiguration", input := (Shape.schema CreateBucketMetadataConfigurationRequest), output := (Shape.schema Unit), errors := [] } + | .createBucketMetadataTableConfiguration => { name := "CreateBucketMetadataTableConfiguration", method := "POST", uri := "/{Bucket}?metadataTable", input := (Shape.schema CreateBucketMetadataTableConfigurationRequest), output := (Shape.schema Unit), errors := [] } + | .createMultipartUpload => { name := "CreateMultipartUpload", method := "POST", uri := "/{Bucket}/{Key+}?uploads", input := (Shape.schema CreateMultipartUploadRequest), output := (Shape.schema CreateMultipartUploadOutput), errors := [] } + | .createSession => { name := "CreateSession", method := "GET", uri := "/{Bucket}?session", input := (Shape.schema CreateSessionRequest), output := (Shape.schema CreateSessionOutput), errors := [{ name := "NoSuchBucket", schema := Shape.schema NoSuchBucket }] } + | .deleteBucket => { name := "DeleteBucket", method := "DELETE", uri := "/{Bucket}", input := (Shape.schema DeleteBucketRequest), output := (Shape.schema Unit), errors := [] } + | .deleteBucketAnalyticsConfiguration => { name := "DeleteBucketAnalyticsConfiguration", method := "DELETE", uri := "/{Bucket}?analytics", input := (Shape.schema DeleteBucketAnalyticsConfigurationRequest), output := (Shape.schema Unit), errors := [] } + | .deleteBucketCors => { name := "DeleteBucketCors", method := "DELETE", uri := "/{Bucket}?cors", input := (Shape.schema DeleteBucketCorsRequest), output := (Shape.schema Unit), errors := [] } + | .deleteBucketEncryption => { name := "DeleteBucketEncryption", method := "DELETE", uri := "/{Bucket}?encryption", input := (Shape.schema DeleteBucketEncryptionRequest), output := (Shape.schema Unit), errors := [] } + | .deleteBucketIntelligentTieringConfiguration => { name := "DeleteBucketIntelligentTieringConfiguration", method := "DELETE", uri := "/{Bucket}?intelligent-tiering", input := (Shape.schema DeleteBucketIntelligentTieringConfigurationRequest), output := (Shape.schema Unit), errors := [] } + | .deleteBucketInventoryConfiguration => { name := "DeleteBucketInventoryConfiguration", method := "DELETE", uri := "/{Bucket}?inventory", input := (Shape.schema DeleteBucketInventoryConfigurationRequest), output := (Shape.schema Unit), errors := [] } + | .deleteBucketLifecycle => { name := "DeleteBucketLifecycle", method := "DELETE", uri := "/{Bucket}?lifecycle", input := (Shape.schema DeleteBucketLifecycleRequest), output := (Shape.schema Unit), errors := [] } + | .deleteBucketMetadataConfiguration => { name := "DeleteBucketMetadataConfiguration", method := "DELETE", uri := "/{Bucket}?metadataConfiguration", input := (Shape.schema DeleteBucketMetadataConfigurationRequest), output := (Shape.schema Unit), errors := [] } + | .deleteBucketMetadataTableConfiguration => { name := "DeleteBucketMetadataTableConfiguration", method := "DELETE", uri := "/{Bucket}?metadataTable", input := (Shape.schema DeleteBucketMetadataTableConfigurationRequest), output := (Shape.schema Unit), errors := [] } + | .deleteBucketMetricsConfiguration => { name := "DeleteBucketMetricsConfiguration", method := "DELETE", uri := "/{Bucket}?metrics", input := (Shape.schema DeleteBucketMetricsConfigurationRequest), output := (Shape.schema Unit), errors := [] } + | .deleteBucketOwnershipControls => { name := "DeleteBucketOwnershipControls", method := "DELETE", uri := "/{Bucket}?ownershipControls", input := (Shape.schema DeleteBucketOwnershipControlsRequest), output := (Shape.schema Unit), errors := [] } + | .deleteBucketPolicy => { name := "DeleteBucketPolicy", method := "DELETE", uri := "/{Bucket}?policy", input := (Shape.schema DeleteBucketPolicyRequest), output := (Shape.schema Unit), errors := [] } + | .deleteBucketReplication => { name := "DeleteBucketReplication", method := "DELETE", uri := "/{Bucket}?replication", input := (Shape.schema DeleteBucketReplicationRequest), output := (Shape.schema Unit), errors := [] } + | .deleteBucketTagging => { name := "DeleteBucketTagging", method := "DELETE", uri := "/{Bucket}?tagging", input := (Shape.schema DeleteBucketTaggingRequest), output := (Shape.schema Unit), errors := [] } + | .deleteBucketWebsite => { name := "DeleteBucketWebsite", method := "DELETE", uri := "/{Bucket}?website", input := (Shape.schema DeleteBucketWebsiteRequest), output := (Shape.schema Unit), errors := [] } + | .deleteObject => { name := "DeleteObject", method := "DELETE", uri := "/{Bucket}/{Key+}?x-id=DeleteObject", input := (Shape.schema DeleteObjectRequest), output := (Shape.schema DeleteObjectOutput), errors := [] } + | .deleteObjectAnnotation => { name := "DeleteObjectAnnotation", method := "DELETE", uri := "/{Bucket}/{Key+}?annotation", input := (Shape.schema DeleteObjectAnnotationRequest), output := (Shape.schema DeleteObjectAnnotationOutput), errors := [{ name := "NoSuchBucket", schema := Shape.schema NoSuchBucket }, { name := "NoSuchKey", schema := Shape.schema NoSuchKey }] } + | .deleteObjectTagging => { name := "DeleteObjectTagging", method := "DELETE", uri := "/{Bucket}/{Key+}?tagging", input := (Shape.schema DeleteObjectTaggingRequest), output := (Shape.schema DeleteObjectTaggingOutput), errors := [] } + | .deleteObjects => { name := "DeleteObjects", method := "POST", uri := "/{Bucket}?delete", input := (Shape.schema DeleteObjectsRequest), output := (Shape.schema DeleteObjectsOutput), errors := [] } + | .deletePublicAccessBlock => { name := "DeletePublicAccessBlock", method := "DELETE", uri := "/{Bucket}?publicAccessBlock", input := (Shape.schema DeletePublicAccessBlockRequest), output := (Shape.schema Unit), errors := [] } + | .getBucketAbac => { name := "GetBucketAbac", method := "GET", uri := "/{Bucket}?abac", input := (Shape.schema GetBucketAbacRequest), output := (Shape.schema GetBucketAbacOutput), errors := [] } + | .getBucketAccelerateConfiguration => { name := "GetBucketAccelerateConfiguration", method := "GET", uri := "/{Bucket}?accelerate", input := (Shape.schema GetBucketAccelerateConfigurationRequest), output := (Shape.schema GetBucketAccelerateConfigurationOutput), errors := [] } + | .getBucketAcl => { name := "GetBucketAcl", method := "GET", uri := "/{Bucket}?acl", input := (Shape.schema GetBucketAclRequest), output := (Shape.schema GetBucketAclOutput), errors := [] } + | .getBucketAnalyticsConfiguration => { name := "GetBucketAnalyticsConfiguration", method := "GET", uri := "/{Bucket}?analytics&x-id=GetBucketAnalyticsConfiguration", input := (Shape.schema GetBucketAnalyticsConfigurationRequest), output := (Shape.schema GetBucketAnalyticsConfigurationOutput), errors := [] } + | .getBucketCors => { name := "GetBucketCors", method := "GET", uri := "/{Bucket}?cors", input := (Shape.schema GetBucketCorsRequest), output := (Shape.schema GetBucketCorsOutput), errors := [] } + | .getBucketEncryption => { name := "GetBucketEncryption", method := "GET", uri := "/{Bucket}?encryption", input := (Shape.schema GetBucketEncryptionRequest), output := (Shape.schema GetBucketEncryptionOutput), errors := [] } + | .getBucketIntelligentTieringConfiguration => { name := "GetBucketIntelligentTieringConfiguration", method := "GET", uri := "/{Bucket}?intelligent-tiering&x-id=GetBucketIntelligentTieringConfiguration", input := (Shape.schema GetBucketIntelligentTieringConfigurationRequest), output := (Shape.schema GetBucketIntelligentTieringConfigurationOutput), errors := [] } + | .getBucketInventoryConfiguration => { name := "GetBucketInventoryConfiguration", method := "GET", uri := "/{Bucket}?inventory&x-id=GetBucketInventoryConfiguration", input := (Shape.schema GetBucketInventoryConfigurationRequest), output := (Shape.schema GetBucketInventoryConfigurationOutput), errors := [] } + | .getBucketLifecycleConfiguration => { name := "GetBucketLifecycleConfiguration", method := "GET", uri := "/{Bucket}?lifecycle", input := (Shape.schema GetBucketLifecycleConfigurationRequest), output := (Shape.schema GetBucketLifecycleConfigurationOutput), errors := [] } + | .getBucketLocation => { name := "GetBucketLocation", method := "GET", uri := "/{Bucket}?location", input := (Shape.schema GetBucketLocationRequest), output := (Shape.schema GetBucketLocationOutput), errors := [] } + | .getBucketLogging => { name := "GetBucketLogging", method := "GET", uri := "/{Bucket}?logging", input := (Shape.schema GetBucketLoggingRequest), output := (Shape.schema GetBucketLoggingOutput), errors := [] } + | .getBucketMetadataConfiguration => { name := "GetBucketMetadataConfiguration", method := "GET", uri := "/{Bucket}?metadataConfiguration", input := (Shape.schema GetBucketMetadataConfigurationRequest), output := (Shape.schema GetBucketMetadataConfigurationOutput), errors := [] } + | .getBucketMetadataTableConfiguration => { name := "GetBucketMetadataTableConfiguration", method := "GET", uri := "/{Bucket}?metadataTable", input := (Shape.schema GetBucketMetadataTableConfigurationRequest), output := (Shape.schema GetBucketMetadataTableConfigurationOutput), errors := [] } + | .getBucketMetricsConfiguration => { name := "GetBucketMetricsConfiguration", method := "GET", uri := "/{Bucket}?metrics&x-id=GetBucketMetricsConfiguration", input := (Shape.schema GetBucketMetricsConfigurationRequest), output := (Shape.schema GetBucketMetricsConfigurationOutput), errors := [] } + | .getBucketNotificationConfiguration => { name := "GetBucketNotificationConfiguration", method := "GET", uri := "/{Bucket}?notification", input := (Shape.schema GetBucketNotificationConfigurationRequest), output := (Shape.schema NotificationConfiguration), errors := [] } + | .getBucketOwnershipControls => { name := "GetBucketOwnershipControls", method := "GET", uri := "/{Bucket}?ownershipControls", input := (Shape.schema GetBucketOwnershipControlsRequest), output := (Shape.schema GetBucketOwnershipControlsOutput), errors := [] } + | .getBucketPolicy => { name := "GetBucketPolicy", method := "GET", uri := "/{Bucket}?policy", input := (Shape.schema GetBucketPolicyRequest), output := (Shape.schema GetBucketPolicyOutput), errors := [] } + | .getBucketPolicyStatus => { name := "GetBucketPolicyStatus", method := "GET", uri := "/{Bucket}?policyStatus", input := (Shape.schema GetBucketPolicyStatusRequest), output := (Shape.schema GetBucketPolicyStatusOutput), errors := [] } + | .getBucketReplication => { name := "GetBucketReplication", method := "GET", uri := "/{Bucket}?replication", input := (Shape.schema GetBucketReplicationRequest), output := (Shape.schema GetBucketReplicationOutput), errors := [] } + | .getBucketRequestPayment => { name := "GetBucketRequestPayment", method := "GET", uri := "/{Bucket}?requestPayment", input := (Shape.schema GetBucketRequestPaymentRequest), output := (Shape.schema GetBucketRequestPaymentOutput), errors := [] } + | .getBucketTagging => { name := "GetBucketTagging", method := "GET", uri := "/{Bucket}?tagging", input := (Shape.schema GetBucketTaggingRequest), output := (Shape.schema GetBucketTaggingOutput), errors := [] } + | .getBucketVersioning => { name := "GetBucketVersioning", method := "GET", uri := "/{Bucket}?versioning", input := (Shape.schema GetBucketVersioningRequest), output := (Shape.schema GetBucketVersioningOutput), errors := [] } + | .getBucketWebsite => { name := "GetBucketWebsite", method := "GET", uri := "/{Bucket}?website", input := (Shape.schema GetBucketWebsiteRequest), output := (Shape.schema GetBucketWebsiteOutput), errors := [] } + | .getObject => { name := "GetObject", method := "GET", uri := "/{Bucket}/{Key+}?x-id=GetObject", input := (Shape.schema GetObjectRequest), output := (Shape.schema GetObjectOutput), errors := [{ name := "InvalidObjectState", schema := Shape.schema InvalidObjectState }, { name := "NoSuchKey", schema := Shape.schema NoSuchKey }] } + | .getObjectAcl => { name := "GetObjectAcl", method := "GET", uri := "/{Bucket}/{Key+}?acl", input := (Shape.schema GetObjectAclRequest), output := (Shape.schema GetObjectAclOutput), errors := [{ name := "NoSuchKey", schema := Shape.schema NoSuchKey }] } + | .getObjectAnnotation => { name := "GetObjectAnnotation", method := "GET", uri := "/{Bucket}/{Key+}?annotation&x-id=GetObjectAnnotation", input := (Shape.schema GetObjectAnnotationRequest), output := (Shape.schema GetObjectAnnotationOutput), errors := [{ name := "NoSuchAnnotation", schema := Shape.schema NoSuchAnnotation }, { name := "NoSuchBucket", schema := Shape.schema NoSuchBucket }, { name := "NoSuchKey", schema := Shape.schema NoSuchKey }] } + | .getObjectAttributes => { name := "GetObjectAttributes", method := "GET", uri := "/{Bucket}/{Key+}?attributes", input := (Shape.schema GetObjectAttributesRequest), output := (Shape.schema GetObjectAttributesOutput), errors := [{ name := "NoSuchKey", schema := Shape.schema NoSuchKey }] } + | .getObjectLegalHold => { name := "GetObjectLegalHold", method := "GET", uri := "/{Bucket}/{Key+}?legal-hold", input := (Shape.schema GetObjectLegalHoldRequest), output := (Shape.schema GetObjectLegalHoldOutput), errors := [] } + | .getObjectLockConfiguration => { name := "GetObjectLockConfiguration", method := "GET", uri := "/{Bucket}?object-lock", input := (Shape.schema GetObjectLockConfigurationRequest), output := (Shape.schema GetObjectLockConfigurationOutput), errors := [] } + | .getObjectRetention => { name := "GetObjectRetention", method := "GET", uri := "/{Bucket}/{Key+}?retention", input := (Shape.schema GetObjectRetentionRequest), output := (Shape.schema GetObjectRetentionOutput), errors := [] } + | .getObjectTagging => { name := "GetObjectTagging", method := "GET", uri := "/{Bucket}/{Key+}?tagging", input := (Shape.schema GetObjectTaggingRequest), output := (Shape.schema GetObjectTaggingOutput), errors := [] } + | .getObjectTorrent => { name := "GetObjectTorrent", method := "GET", uri := "/{Bucket}/{Key+}?torrent", input := (Shape.schema GetObjectTorrentRequest), output := (Shape.schema GetObjectTorrentOutput), errors := [] } + | .getPublicAccessBlock => { name := "GetPublicAccessBlock", method := "GET", uri := "/{Bucket}?publicAccessBlock", input := (Shape.schema GetPublicAccessBlockRequest), output := (Shape.schema GetPublicAccessBlockOutput), errors := [] } + | .headBucket => { name := "HeadBucket", method := "HEAD", uri := "/{Bucket}", input := (Shape.schema HeadBucketRequest), output := (Shape.schema HeadBucketOutput), errors := [{ name := "NotFound", schema := Shape.schema NotFound }] } + | .headObject => { name := "HeadObject", method := "HEAD", uri := "/{Bucket}/{Key+}", input := (Shape.schema HeadObjectRequest), output := (Shape.schema HeadObjectOutput), errors := [{ name := "NotFound", schema := Shape.schema NotFound }] } + | .listBucketAnalyticsConfigurations => { name := "ListBucketAnalyticsConfigurations", method := "GET", uri := "/{Bucket}?analytics&x-id=ListBucketAnalyticsConfigurations", input := (Shape.schema ListBucketAnalyticsConfigurationsRequest), output := (Shape.schema ListBucketAnalyticsConfigurationsOutput), errors := [] } + | .listBucketIntelligentTieringConfigurations => { name := "ListBucketIntelligentTieringConfigurations", method := "GET", uri := "/{Bucket}?intelligent-tiering&x-id=ListBucketIntelligentTieringConfigurations", input := (Shape.schema ListBucketIntelligentTieringConfigurationsRequest), output := (Shape.schema ListBucketIntelligentTieringConfigurationsOutput), errors := [] } + | .listBucketInventoryConfigurations => { name := "ListBucketInventoryConfigurations", method := "GET", uri := "/{Bucket}?inventory&x-id=ListBucketInventoryConfigurations", input := (Shape.schema ListBucketInventoryConfigurationsRequest), output := (Shape.schema ListBucketInventoryConfigurationsOutput), errors := [] } + | .listBucketMetricsConfigurations => { name := "ListBucketMetricsConfigurations", method := "GET", uri := "/{Bucket}?metrics&x-id=ListBucketMetricsConfigurations", input := (Shape.schema ListBucketMetricsConfigurationsRequest), output := (Shape.schema ListBucketMetricsConfigurationsOutput), errors := [] } + | .listBuckets => { name := "ListBuckets", method := "GET", uri := "/?x-id=ListBuckets", input := (Shape.schema ListBucketsRequest), output := (Shape.schema ListBucketsOutput), errors := [] } + | .listDirectoryBuckets => { name := "ListDirectoryBuckets", method := "GET", uri := "/?x-id=ListDirectoryBuckets", input := (Shape.schema ListDirectoryBucketsRequest), output := (Shape.schema ListDirectoryBucketsOutput), errors := [] } + | .listMultipartUploads => { name := "ListMultipartUploads", method := "GET", uri := "/{Bucket}?uploads", input := (Shape.schema ListMultipartUploadsRequest), output := (Shape.schema ListMultipartUploadsOutput), errors := [] } + | .listObjectAnnotations => { name := "ListObjectAnnotations", method := "GET", uri := "/{Bucket}/{Key+}?annotation&x-id=ListObjectAnnotations", input := (Shape.schema ListObjectAnnotationsRequest), output := (Shape.schema ListObjectAnnotationsOutput), errors := [{ name := "InvalidPrefix", schema := Shape.schema InvalidPrefix }, { name := "NoSuchBucket", schema := Shape.schema NoSuchBucket }, { name := "NoSuchKey", schema := Shape.schema NoSuchKey }] } + | .listObjectVersions => { name := "ListObjectVersions", method := "GET", uri := "/{Bucket}?versions", input := (Shape.schema ListObjectVersionsRequest), output := (Shape.schema ListObjectVersionsOutput), errors := [] } + | .listObjects => { name := "ListObjects", method := "GET", uri := "/{Bucket}", input := (Shape.schema ListObjectsRequest), output := (Shape.schema ListObjectsOutput), errors := [{ name := "NoSuchBucket", schema := Shape.schema NoSuchBucket }] } + | .listObjectsV2 => { name := "ListObjectsV2", method := "GET", uri := "/{Bucket}?list-type=2", input := (Shape.schema ListObjectsV2Request), output := (Shape.schema ListObjectsV2Output), errors := [{ name := "NoSuchBucket", schema := Shape.schema NoSuchBucket }] } + | .listParts => { name := "ListParts", method := "GET", uri := "/{Bucket}/{Key+}?x-id=ListParts", input := (Shape.schema ListPartsRequest), output := (Shape.schema ListPartsOutput), errors := [] } + | .putBucketAbac => { name := "PutBucketAbac", method := "PUT", uri := "/{Bucket}?abac", input := (Shape.schema PutBucketAbacRequest), output := (Shape.schema Unit), errors := [] } + | .putBucketAccelerateConfiguration => { name := "PutBucketAccelerateConfiguration", method := "PUT", uri := "/{Bucket}?accelerate", input := (Shape.schema PutBucketAccelerateConfigurationRequest), output := (Shape.schema Unit), errors := [] } + | .putBucketAcl => { name := "PutBucketAcl", method := "PUT", uri := "/{Bucket}?acl", input := (Shape.schema PutBucketAclRequest), output := (Shape.schema Unit), errors := [] } + | .putBucketAnalyticsConfiguration => { name := "PutBucketAnalyticsConfiguration", method := "PUT", uri := "/{Bucket}?analytics", input := (Shape.schema PutBucketAnalyticsConfigurationRequest), output := (Shape.schema Unit), errors := [] } + | .putBucketCors => { name := "PutBucketCors", method := "PUT", uri := "/{Bucket}?cors", input := (Shape.schema PutBucketCorsRequest), output := (Shape.schema Unit), errors := [] } + | .putBucketEncryption => { name := "PutBucketEncryption", method := "PUT", uri := "/{Bucket}?encryption", input := (Shape.schema PutBucketEncryptionRequest), output := (Shape.schema Unit), errors := [] } + | .putBucketIntelligentTieringConfiguration => { name := "PutBucketIntelligentTieringConfiguration", method := "PUT", uri := "/{Bucket}?intelligent-tiering", input := (Shape.schema PutBucketIntelligentTieringConfigurationRequest), output := (Shape.schema Unit), errors := [] } + | .putBucketInventoryConfiguration => { name := "PutBucketInventoryConfiguration", method := "PUT", uri := "/{Bucket}?inventory", input := (Shape.schema PutBucketInventoryConfigurationRequest), output := (Shape.schema Unit), errors := [] } + | .putBucketLifecycleConfiguration => { name := "PutBucketLifecycleConfiguration", method := "PUT", uri := "/{Bucket}?lifecycle", input := (Shape.schema PutBucketLifecycleConfigurationRequest), output := (Shape.schema PutBucketLifecycleConfigurationOutput), errors := [] } + | .putBucketLogging => { name := "PutBucketLogging", method := "PUT", uri := "/{Bucket}?logging", input := (Shape.schema PutBucketLoggingRequest), output := (Shape.schema Unit), errors := [] } + | .putBucketMetricsConfiguration => { name := "PutBucketMetricsConfiguration", method := "PUT", uri := "/{Bucket}?metrics", input := (Shape.schema PutBucketMetricsConfigurationRequest), output := (Shape.schema Unit), errors := [] } + | .putBucketNotificationConfiguration => { name := "PutBucketNotificationConfiguration", method := "PUT", uri := "/{Bucket}?notification", input := (Shape.schema PutBucketNotificationConfigurationRequest), output := (Shape.schema Unit), errors := [] } + | .putBucketOwnershipControls => { name := "PutBucketOwnershipControls", method := "PUT", uri := "/{Bucket}?ownershipControls", input := (Shape.schema PutBucketOwnershipControlsRequest), output := (Shape.schema Unit), errors := [] } + | .putBucketPolicy => { name := "PutBucketPolicy", method := "PUT", uri := "/{Bucket}?policy", input := (Shape.schema PutBucketPolicyRequest), output := (Shape.schema Unit), errors := [] } + | .putBucketReplication => { name := "PutBucketReplication", method := "PUT", uri := "/{Bucket}?replication", input := (Shape.schema PutBucketReplicationRequest), output := (Shape.schema Unit), errors := [] } + | .putBucketRequestPayment => { name := "PutBucketRequestPayment", method := "PUT", uri := "/{Bucket}?requestPayment", input := (Shape.schema PutBucketRequestPaymentRequest), output := (Shape.schema Unit), errors := [] } + | .putBucketTagging => { name := "PutBucketTagging", method := "PUT", uri := "/{Bucket}?tagging", input := (Shape.schema PutBucketTaggingRequest), output := (Shape.schema Unit), errors := [] } + | .putBucketVersioning => { name := "PutBucketVersioning", method := "PUT", uri := "/{Bucket}?versioning", input := (Shape.schema PutBucketVersioningRequest), output := (Shape.schema Unit), errors := [] } + | .putBucketWebsite => { name := "PutBucketWebsite", method := "PUT", uri := "/{Bucket}?website", input := (Shape.schema PutBucketWebsiteRequest), output := (Shape.schema Unit), errors := [] } + | .putObject => { name := "PutObject", method := "PUT", uri := "/{Bucket}/{Key+}?x-id=PutObject", input := (Shape.schema PutObjectRequest), output := (Shape.schema PutObjectOutput), errors := [{ name := "EncryptionTypeMismatch", schema := Shape.schema EncryptionTypeMismatch }, { name := "InvalidRequest", schema := Shape.schema InvalidRequest }, { name := "InvalidWriteOffset", schema := Shape.schema InvalidWriteOffset }, { name := "TooManyParts", schema := Shape.schema TooManyParts }] } + | .putObjectAcl => { name := "PutObjectAcl", method := "PUT", uri := "/{Bucket}/{Key+}?acl", input := (Shape.schema PutObjectAclRequest), output := (Shape.schema PutObjectAclOutput), errors := [{ name := "NoSuchKey", schema := Shape.schema NoSuchKey }] } + | .putObjectAnnotation => { name := "PutObjectAnnotation", method := "PUT", uri := "/{Bucket}/{Key+}?annotation", input := (Shape.schema PutObjectAnnotationRequest), output := (Shape.schema PutObjectAnnotationOutput), errors := [{ name := "AnnotationLimitExceeded", schema := Shape.schema AnnotationLimitExceeded }, { name := "AnnotationNameTooLong", schema := Shape.schema AnnotationNameTooLong }, { name := "InvalidAnnotationName", schema := Shape.schema InvalidAnnotationName }, { name := "InvalidRequest", schema := Shape.schema InvalidRequest }, { name := "NoSuchBucket", schema := Shape.schema NoSuchBucket }, { name := "NoSuchKey", schema := Shape.schema NoSuchKey }, { name := "UnsupportedMediaType", schema := Shape.schema UnsupportedMediaType }] } + | .putObjectLegalHold => { name := "PutObjectLegalHold", method := "PUT", uri := "/{Bucket}/{Key+}?legal-hold", input := (Shape.schema PutObjectLegalHoldRequest), output := (Shape.schema PutObjectLegalHoldOutput), errors := [] } + | .putObjectLockConfiguration => { name := "PutObjectLockConfiguration", method := "PUT", uri := "/{Bucket}?object-lock", input := (Shape.schema PutObjectLockConfigurationRequest), output := (Shape.schema PutObjectLockConfigurationOutput), errors := [] } + | .putObjectRetention => { name := "PutObjectRetention", method := "PUT", uri := "/{Bucket}/{Key+}?retention", input := (Shape.schema PutObjectRetentionRequest), output := (Shape.schema PutObjectRetentionOutput), errors := [] } + | .putObjectTagging => { name := "PutObjectTagging", method := "PUT", uri := "/{Bucket}/{Key+}?tagging", input := (Shape.schema PutObjectTaggingRequest), output := (Shape.schema PutObjectTaggingOutput), errors := [] } + | .putPublicAccessBlock => { name := "PutPublicAccessBlock", method := "PUT", uri := "/{Bucket}?publicAccessBlock", input := (Shape.schema PutPublicAccessBlockRequest), output := (Shape.schema Unit), errors := [] } + | .renameObject => { name := "RenameObject", method := "PUT", uri := "/{Bucket}/{Key+}?renameObject", input := (Shape.schema RenameObjectRequest), output := (Shape.schema RenameObjectOutput), errors := [{ name := "IdempotencyParameterMismatch", schema := Shape.schema IdempotencyParameterMismatch }] } + | .restoreObject => { name := "RestoreObject", method := "POST", uri := "/{Bucket}/{Key+}?restore", input := (Shape.schema RestoreObjectRequest), output := (Shape.schema RestoreObjectOutput), errors := [{ name := "ObjectAlreadyInActiveTierError", schema := Shape.schema ObjectAlreadyInActiveTierError }] } + | .selectObjectContent => { name := "SelectObjectContent", method := "POST", uri := "/{Bucket}/{Key+}?select&select-type=2", input := (Shape.schema SelectObjectContentRequest), output := (Shape.schema SelectObjectContentOutput), errors := [] } + | .updateBucketMetadataAnnotationTableConfiguration => { name := "UpdateBucketMetadataAnnotationTableConfiguration", method := "PUT", uri := "/{Bucket}?metadataAnnotationTable", input := (Shape.schema UpdateBucketMetadataAnnotationTableConfigurationRequest), output := (Shape.schema Unit), errors := [] } + | .updateBucketMetadataInventoryTableConfiguration => { name := "UpdateBucketMetadataInventoryTableConfiguration", method := "PUT", uri := "/{Bucket}?metadataInventoryTable", input := (Shape.schema UpdateBucketMetadataInventoryTableConfigurationRequest), output := (Shape.schema Unit), errors := [] } + | .updateBucketMetadataJournalTableConfiguration => { name := "UpdateBucketMetadataJournalTableConfiguration", method := "PUT", uri := "/{Bucket}?metadataJournalTable", input := (Shape.schema UpdateBucketMetadataJournalTableConfigurationRequest), output := (Shape.schema Unit), errors := [] } + | .updateObjectEncryption => { name := "UpdateObjectEncryption", method := "PUT", uri := "/{Bucket}/{Key+}?encryption", input := (Shape.schema UpdateObjectEncryptionRequest), output := (Shape.schema UpdateObjectEncryptionResponse), errors := [{ name := "AccessDenied", schema := Shape.schema AccessDenied }, { name := "InvalidRequest", schema := Shape.schema InvalidRequest }, { name := "NoSuchKey", schema := Shape.schema NoSuchKey }] } + | .uploadPart => { name := "UploadPart", method := "PUT", uri := "/{Bucket}/{Key+}?x-id=UploadPart", input := (Shape.schema UploadPartRequest), output := (Shape.schema UploadPartOutput), errors := [] } + | .uploadPartCopy => { name := "UploadPartCopy", method := "PUT", uri := "/{Bucket}/{Key+}?x-id=UploadPartCopy", input := (Shape.schema UploadPartCopyRequest), output := (Shape.schema UploadPartCopyOutput), errors := [] } + | .writeGetObjectResponse => { name := "WriteGetObjectResponse", method := "POST", uri := "/WriteGetObjectResponse", input := (Shape.schema WriteGetObjectResponseRequest), output := (Shape.schema Unit), errors := [] } + +/-- How the service goes over HTTP. -/ +def wire : Wire api := Wire.of service info + (fun op => match op with + | .abortMultipartUpload => fun (x : AbortMultipartUploadRequest) => Shape.toValue x + | .completeMultipartUpload => fun (x : CompleteMultipartUploadRequest) => Shape.toValue x + | .copyObject => fun (x : CopyObjectRequest) => Shape.toValue x + | .createBucket => fun (x : CreateBucketRequest) => Shape.toValue x + | .createBucketMetadataConfiguration => fun (x : CreateBucketMetadataConfigurationRequest) => Shape.toValue x + | .createBucketMetadataTableConfiguration => fun (x : CreateBucketMetadataTableConfigurationRequest) => Shape.toValue x + | .createMultipartUpload => fun (x : CreateMultipartUploadRequest) => Shape.toValue x + | .createSession => fun (x : CreateSessionRequest) => Shape.toValue x + | .deleteBucket => fun (x : DeleteBucketRequest) => Shape.toValue x + | .deleteBucketAnalyticsConfiguration => fun (x : DeleteBucketAnalyticsConfigurationRequest) => Shape.toValue x + | .deleteBucketCors => fun (x : DeleteBucketCorsRequest) => Shape.toValue x + | .deleteBucketEncryption => fun (x : DeleteBucketEncryptionRequest) => Shape.toValue x + | .deleteBucketIntelligentTieringConfiguration => fun (x : DeleteBucketIntelligentTieringConfigurationRequest) => Shape.toValue x + | .deleteBucketInventoryConfiguration => fun (x : DeleteBucketInventoryConfigurationRequest) => Shape.toValue x + | .deleteBucketLifecycle => fun (x : DeleteBucketLifecycleRequest) => Shape.toValue x + | .deleteBucketMetadataConfiguration => fun (x : DeleteBucketMetadataConfigurationRequest) => Shape.toValue x + | .deleteBucketMetadataTableConfiguration => fun (x : DeleteBucketMetadataTableConfigurationRequest) => Shape.toValue x + | .deleteBucketMetricsConfiguration => fun (x : DeleteBucketMetricsConfigurationRequest) => Shape.toValue x + | .deleteBucketOwnershipControls => fun (x : DeleteBucketOwnershipControlsRequest) => Shape.toValue x + | .deleteBucketPolicy => fun (x : DeleteBucketPolicyRequest) => Shape.toValue x + | .deleteBucketReplication => fun (x : DeleteBucketReplicationRequest) => Shape.toValue x + | .deleteBucketTagging => fun (x : DeleteBucketTaggingRequest) => Shape.toValue x + | .deleteBucketWebsite => fun (x : DeleteBucketWebsiteRequest) => Shape.toValue x + | .deleteObject => fun (x : DeleteObjectRequest) => Shape.toValue x + | .deleteObjectAnnotation => fun (x : DeleteObjectAnnotationRequest) => Shape.toValue x + | .deleteObjectTagging => fun (x : DeleteObjectTaggingRequest) => Shape.toValue x + | .deleteObjects => fun (x : DeleteObjectsRequest) => Shape.toValue x + | .deletePublicAccessBlock => fun (x : DeletePublicAccessBlockRequest) => Shape.toValue x + | .getBucketAbac => fun (x : GetBucketAbacRequest) => Shape.toValue x + | .getBucketAccelerateConfiguration => fun (x : GetBucketAccelerateConfigurationRequest) => Shape.toValue x + | .getBucketAcl => fun (x : GetBucketAclRequest) => Shape.toValue x + | .getBucketAnalyticsConfiguration => fun (x : GetBucketAnalyticsConfigurationRequest) => Shape.toValue x + | .getBucketCors => fun (x : GetBucketCorsRequest) => Shape.toValue x + | .getBucketEncryption => fun (x : GetBucketEncryptionRequest) => Shape.toValue x + | .getBucketIntelligentTieringConfiguration => fun (x : GetBucketIntelligentTieringConfigurationRequest) => Shape.toValue x + | .getBucketInventoryConfiguration => fun (x : GetBucketInventoryConfigurationRequest) => Shape.toValue x + | .getBucketLifecycleConfiguration => fun (x : GetBucketLifecycleConfigurationRequest) => Shape.toValue x + | .getBucketLocation => fun (x : GetBucketLocationRequest) => Shape.toValue x + | .getBucketLogging => fun (x : GetBucketLoggingRequest) => Shape.toValue x + | .getBucketMetadataConfiguration => fun (x : GetBucketMetadataConfigurationRequest) => Shape.toValue x + | .getBucketMetadataTableConfiguration => fun (x : GetBucketMetadataTableConfigurationRequest) => Shape.toValue x + | .getBucketMetricsConfiguration => fun (x : GetBucketMetricsConfigurationRequest) => Shape.toValue x + | .getBucketNotificationConfiguration => fun (x : GetBucketNotificationConfigurationRequest) => Shape.toValue x + | .getBucketOwnershipControls => fun (x : GetBucketOwnershipControlsRequest) => Shape.toValue x + | .getBucketPolicy => fun (x : GetBucketPolicyRequest) => Shape.toValue x + | .getBucketPolicyStatus => fun (x : GetBucketPolicyStatusRequest) => Shape.toValue x + | .getBucketReplication => fun (x : GetBucketReplicationRequest) => Shape.toValue x + | .getBucketRequestPayment => fun (x : GetBucketRequestPaymentRequest) => Shape.toValue x + | .getBucketTagging => fun (x : GetBucketTaggingRequest) => Shape.toValue x + | .getBucketVersioning => fun (x : GetBucketVersioningRequest) => Shape.toValue x + | .getBucketWebsite => fun (x : GetBucketWebsiteRequest) => Shape.toValue x + | .getObject => fun (x : GetObjectRequest) => Shape.toValue x + | .getObjectAcl => fun (x : GetObjectAclRequest) => Shape.toValue x + | .getObjectAnnotation => fun (x : GetObjectAnnotationRequest) => Shape.toValue x + | .getObjectAttributes => fun (x : GetObjectAttributesRequest) => Shape.toValue x + | .getObjectLegalHold => fun (x : GetObjectLegalHoldRequest) => Shape.toValue x + | .getObjectLockConfiguration => fun (x : GetObjectLockConfigurationRequest) => Shape.toValue x + | .getObjectRetention => fun (x : GetObjectRetentionRequest) => Shape.toValue x + | .getObjectTagging => fun (x : GetObjectTaggingRequest) => Shape.toValue x + | .getObjectTorrent => fun (x : GetObjectTorrentRequest) => Shape.toValue x + | .getPublicAccessBlock => fun (x : GetPublicAccessBlockRequest) => Shape.toValue x + | .headBucket => fun (x : HeadBucketRequest) => Shape.toValue x + | .headObject => fun (x : HeadObjectRequest) => Shape.toValue x + | .listBucketAnalyticsConfigurations => fun (x : ListBucketAnalyticsConfigurationsRequest) => Shape.toValue x + | .listBucketIntelligentTieringConfigurations => fun (x : ListBucketIntelligentTieringConfigurationsRequest) => Shape.toValue x + | .listBucketInventoryConfigurations => fun (x : ListBucketInventoryConfigurationsRequest) => Shape.toValue x + | .listBucketMetricsConfigurations => fun (x : ListBucketMetricsConfigurationsRequest) => Shape.toValue x + | .listBuckets => fun (x : ListBucketsRequest) => Shape.toValue x + | .listDirectoryBuckets => fun (x : ListDirectoryBucketsRequest) => Shape.toValue x + | .listMultipartUploads => fun (x : ListMultipartUploadsRequest) => Shape.toValue x + | .listObjectAnnotations => fun (x : ListObjectAnnotationsRequest) => Shape.toValue x + | .listObjectVersions => fun (x : ListObjectVersionsRequest) => Shape.toValue x + | .listObjects => fun (x : ListObjectsRequest) => Shape.toValue x + | .listObjectsV2 => fun (x : ListObjectsV2Request) => Shape.toValue x + | .listParts => fun (x : ListPartsRequest) => Shape.toValue x + | .putBucketAbac => fun (x : PutBucketAbacRequest) => Shape.toValue x + | .putBucketAccelerateConfiguration => fun (x : PutBucketAccelerateConfigurationRequest) => Shape.toValue x + | .putBucketAcl => fun (x : PutBucketAclRequest) => Shape.toValue x + | .putBucketAnalyticsConfiguration => fun (x : PutBucketAnalyticsConfigurationRequest) => Shape.toValue x + | .putBucketCors => fun (x : PutBucketCorsRequest) => Shape.toValue x + | .putBucketEncryption => fun (x : PutBucketEncryptionRequest) => Shape.toValue x + | .putBucketIntelligentTieringConfiguration => fun (x : PutBucketIntelligentTieringConfigurationRequest) => Shape.toValue x + | .putBucketInventoryConfiguration => fun (x : PutBucketInventoryConfigurationRequest) => Shape.toValue x + | .putBucketLifecycleConfiguration => fun (x : PutBucketLifecycleConfigurationRequest) => Shape.toValue x + | .putBucketLogging => fun (x : PutBucketLoggingRequest) => Shape.toValue x + | .putBucketMetricsConfiguration => fun (x : PutBucketMetricsConfigurationRequest) => Shape.toValue x + | .putBucketNotificationConfiguration => fun (x : PutBucketNotificationConfigurationRequest) => Shape.toValue x + | .putBucketOwnershipControls => fun (x : PutBucketOwnershipControlsRequest) => Shape.toValue x + | .putBucketPolicy => fun (x : PutBucketPolicyRequest) => Shape.toValue x + | .putBucketReplication => fun (x : PutBucketReplicationRequest) => Shape.toValue x + | .putBucketRequestPayment => fun (x : PutBucketRequestPaymentRequest) => Shape.toValue x + | .putBucketTagging => fun (x : PutBucketTaggingRequest) => Shape.toValue x + | .putBucketVersioning => fun (x : PutBucketVersioningRequest) => Shape.toValue x + | .putBucketWebsite => fun (x : PutBucketWebsiteRequest) => Shape.toValue x + | .putObject => fun (x : PutObjectRequest) => Shape.toValue x + | .putObjectAcl => fun (x : PutObjectAclRequest) => Shape.toValue x + | .putObjectAnnotation => fun (x : PutObjectAnnotationRequest) => Shape.toValue x + | .putObjectLegalHold => fun (x : PutObjectLegalHoldRequest) => Shape.toValue x + | .putObjectLockConfiguration => fun (x : PutObjectLockConfigurationRequest) => Shape.toValue x + | .putObjectRetention => fun (x : PutObjectRetentionRequest) => Shape.toValue x + | .putObjectTagging => fun (x : PutObjectTaggingRequest) => Shape.toValue x + | .putPublicAccessBlock => fun (x : PutPublicAccessBlockRequest) => Shape.toValue x + | .renameObject => fun (x : RenameObjectRequest) => Shape.toValue x + | .restoreObject => fun (x : RestoreObjectRequest) => Shape.toValue x + | .selectObjectContent => fun (x : SelectObjectContentRequest) => Shape.toValue x + | .updateBucketMetadataAnnotationTableConfiguration => fun (x : UpdateBucketMetadataAnnotationTableConfigurationRequest) => Shape.toValue x + | .updateBucketMetadataInventoryTableConfiguration => fun (x : UpdateBucketMetadataInventoryTableConfigurationRequest) => Shape.toValue x + | .updateBucketMetadataJournalTableConfiguration => fun (x : UpdateBucketMetadataJournalTableConfigurationRequest) => Shape.toValue x + | .updateObjectEncryption => fun (x : UpdateObjectEncryptionRequest) => Shape.toValue x + | .uploadPart => fun (x : UploadPartRequest) => Shape.toValue x + | .uploadPartCopy => fun (x : UploadPartCopyRequest) => Shape.toValue x + | .writeGetObjectResponse => fun (x : WriteGetObjectResponseRequest) => Shape.toValue x +) + (fun op => match op with + | .abortMultipartUpload => fun v => (Shape.ofValue v : Except String AbortMultipartUploadOutput) + | .completeMultipartUpload => fun v => (Shape.ofValue v : Except String CompleteMultipartUploadOutput) + | .copyObject => fun v => (Shape.ofValue v : Except String CopyObjectOutput) + | .createBucket => fun v => (Shape.ofValue v : Except String CreateBucketOutput) + | .createBucketMetadataConfiguration => fun v => (Shape.ofValue v : Except String Unit) + | .createBucketMetadataTableConfiguration => fun v => (Shape.ofValue v : Except String Unit) + | .createMultipartUpload => fun v => (Shape.ofValue v : Except String CreateMultipartUploadOutput) + | .createSession => fun v => (Shape.ofValue v : Except String CreateSessionOutput) + | .deleteBucket => fun v => (Shape.ofValue v : Except String Unit) + | .deleteBucketAnalyticsConfiguration => fun v => (Shape.ofValue v : Except String Unit) + | .deleteBucketCors => fun v => (Shape.ofValue v : Except String Unit) + | .deleteBucketEncryption => fun v => (Shape.ofValue v : Except String Unit) + | .deleteBucketIntelligentTieringConfiguration => fun v => (Shape.ofValue v : Except String Unit) + | .deleteBucketInventoryConfiguration => fun v => (Shape.ofValue v : Except String Unit) + | .deleteBucketLifecycle => fun v => (Shape.ofValue v : Except String Unit) + | .deleteBucketMetadataConfiguration => fun v => (Shape.ofValue v : Except String Unit) + | .deleteBucketMetadataTableConfiguration => fun v => (Shape.ofValue v : Except String Unit) + | .deleteBucketMetricsConfiguration => fun v => (Shape.ofValue v : Except String Unit) + | .deleteBucketOwnershipControls => fun v => (Shape.ofValue v : Except String Unit) + | .deleteBucketPolicy => fun v => (Shape.ofValue v : Except String Unit) + | .deleteBucketReplication => fun v => (Shape.ofValue v : Except String Unit) + | .deleteBucketTagging => fun v => (Shape.ofValue v : Except String Unit) + | .deleteBucketWebsite => fun v => (Shape.ofValue v : Except String Unit) + | .deleteObject => fun v => (Shape.ofValue v : Except String DeleteObjectOutput) + | .deleteObjectAnnotation => fun v => (Shape.ofValue v : Except String DeleteObjectAnnotationOutput) + | .deleteObjectTagging => fun v => (Shape.ofValue v : Except String DeleteObjectTaggingOutput) + | .deleteObjects => fun v => (Shape.ofValue v : Except String DeleteObjectsOutput) + | .deletePublicAccessBlock => fun v => (Shape.ofValue v : Except String Unit) + | .getBucketAbac => fun v => (Shape.ofValue v : Except String GetBucketAbacOutput) + | .getBucketAccelerateConfiguration => fun v => (Shape.ofValue v : Except String GetBucketAccelerateConfigurationOutput) + | .getBucketAcl => fun v => (Shape.ofValue v : Except String GetBucketAclOutput) + | .getBucketAnalyticsConfiguration => fun v => (Shape.ofValue v : Except String GetBucketAnalyticsConfigurationOutput) + | .getBucketCors => fun v => (Shape.ofValue v : Except String GetBucketCorsOutput) + | .getBucketEncryption => fun v => (Shape.ofValue v : Except String GetBucketEncryptionOutput) + | .getBucketIntelligentTieringConfiguration => fun v => (Shape.ofValue v : Except String GetBucketIntelligentTieringConfigurationOutput) + | .getBucketInventoryConfiguration => fun v => (Shape.ofValue v : Except String GetBucketInventoryConfigurationOutput) + | .getBucketLifecycleConfiguration => fun v => (Shape.ofValue v : Except String GetBucketLifecycleConfigurationOutput) + | .getBucketLocation => fun v => (Shape.ofValue v : Except String GetBucketLocationOutput) + | .getBucketLogging => fun v => (Shape.ofValue v : Except String GetBucketLoggingOutput) + | .getBucketMetadataConfiguration => fun v => (Shape.ofValue v : Except String GetBucketMetadataConfigurationOutput) + | .getBucketMetadataTableConfiguration => fun v => (Shape.ofValue v : Except String GetBucketMetadataTableConfigurationOutput) + | .getBucketMetricsConfiguration => fun v => (Shape.ofValue v : Except String GetBucketMetricsConfigurationOutput) + | .getBucketNotificationConfiguration => fun v => (Shape.ofValue v : Except String NotificationConfiguration) + | .getBucketOwnershipControls => fun v => (Shape.ofValue v : Except String GetBucketOwnershipControlsOutput) + | .getBucketPolicy => fun v => (Shape.ofValue v : Except String GetBucketPolicyOutput) + | .getBucketPolicyStatus => fun v => (Shape.ofValue v : Except String GetBucketPolicyStatusOutput) + | .getBucketReplication => fun v => (Shape.ofValue v : Except String GetBucketReplicationOutput) + | .getBucketRequestPayment => fun v => (Shape.ofValue v : Except String GetBucketRequestPaymentOutput) + | .getBucketTagging => fun v => (Shape.ofValue v : Except String GetBucketTaggingOutput) + | .getBucketVersioning => fun v => (Shape.ofValue v : Except String GetBucketVersioningOutput) + | .getBucketWebsite => fun v => (Shape.ofValue v : Except String GetBucketWebsiteOutput) + | .getObject => fun v => (Shape.ofValue v : Except String GetObjectOutput) + | .getObjectAcl => fun v => (Shape.ofValue v : Except String GetObjectAclOutput) + | .getObjectAnnotation => fun v => (Shape.ofValue v : Except String GetObjectAnnotationOutput) + | .getObjectAttributes => fun v => (Shape.ofValue v : Except String GetObjectAttributesOutput) + | .getObjectLegalHold => fun v => (Shape.ofValue v : Except String GetObjectLegalHoldOutput) + | .getObjectLockConfiguration => fun v => (Shape.ofValue v : Except String GetObjectLockConfigurationOutput) + | .getObjectRetention => fun v => (Shape.ofValue v : Except String GetObjectRetentionOutput) + | .getObjectTagging => fun v => (Shape.ofValue v : Except String GetObjectTaggingOutput) + | .getObjectTorrent => fun v => (Shape.ofValue v : Except String GetObjectTorrentOutput) + | .getPublicAccessBlock => fun v => (Shape.ofValue v : Except String GetPublicAccessBlockOutput) + | .headBucket => fun v => (Shape.ofValue v : Except String HeadBucketOutput) + | .headObject => fun v => (Shape.ofValue v : Except String HeadObjectOutput) + | .listBucketAnalyticsConfigurations => fun v => (Shape.ofValue v : Except String ListBucketAnalyticsConfigurationsOutput) + | .listBucketIntelligentTieringConfigurations => fun v => (Shape.ofValue v : Except String ListBucketIntelligentTieringConfigurationsOutput) + | .listBucketInventoryConfigurations => fun v => (Shape.ofValue v : Except String ListBucketInventoryConfigurationsOutput) + | .listBucketMetricsConfigurations => fun v => (Shape.ofValue v : Except String ListBucketMetricsConfigurationsOutput) + | .listBuckets => fun v => (Shape.ofValue v : Except String ListBucketsOutput) + | .listDirectoryBuckets => fun v => (Shape.ofValue v : Except String ListDirectoryBucketsOutput) + | .listMultipartUploads => fun v => (Shape.ofValue v : Except String ListMultipartUploadsOutput) + | .listObjectAnnotations => fun v => (Shape.ofValue v : Except String ListObjectAnnotationsOutput) + | .listObjectVersions => fun v => (Shape.ofValue v : Except String ListObjectVersionsOutput) + | .listObjects => fun v => (Shape.ofValue v : Except String ListObjectsOutput) + | .listObjectsV2 => fun v => (Shape.ofValue v : Except String ListObjectsV2Output) + | .listParts => fun v => (Shape.ofValue v : Except String ListPartsOutput) + | .putBucketAbac => fun v => (Shape.ofValue v : Except String Unit) + | .putBucketAccelerateConfiguration => fun v => (Shape.ofValue v : Except String Unit) + | .putBucketAcl => fun v => (Shape.ofValue v : Except String Unit) + | .putBucketAnalyticsConfiguration => fun v => (Shape.ofValue v : Except String Unit) + | .putBucketCors => fun v => (Shape.ofValue v : Except String Unit) + | .putBucketEncryption => fun v => (Shape.ofValue v : Except String Unit) + | .putBucketIntelligentTieringConfiguration => fun v => (Shape.ofValue v : Except String Unit) + | .putBucketInventoryConfiguration => fun v => (Shape.ofValue v : Except String Unit) + | .putBucketLifecycleConfiguration => fun v => (Shape.ofValue v : Except String PutBucketLifecycleConfigurationOutput) + | .putBucketLogging => fun v => (Shape.ofValue v : Except String Unit) + | .putBucketMetricsConfiguration => fun v => (Shape.ofValue v : Except String Unit) + | .putBucketNotificationConfiguration => fun v => (Shape.ofValue v : Except String Unit) + | .putBucketOwnershipControls => fun v => (Shape.ofValue v : Except String Unit) + | .putBucketPolicy => fun v => (Shape.ofValue v : Except String Unit) + | .putBucketReplication => fun v => (Shape.ofValue v : Except String Unit) + | .putBucketRequestPayment => fun v => (Shape.ofValue v : Except String Unit) + | .putBucketTagging => fun v => (Shape.ofValue v : Except String Unit) + | .putBucketVersioning => fun v => (Shape.ofValue v : Except String Unit) + | .putBucketWebsite => fun v => (Shape.ofValue v : Except String Unit) + | .putObject => fun v => (Shape.ofValue v : Except String PutObjectOutput) + | .putObjectAcl => fun v => (Shape.ofValue v : Except String PutObjectAclOutput) + | .putObjectAnnotation => fun v => (Shape.ofValue v : Except String PutObjectAnnotationOutput) + | .putObjectLegalHold => fun v => (Shape.ofValue v : Except String PutObjectLegalHoldOutput) + | .putObjectLockConfiguration => fun v => (Shape.ofValue v : Except String PutObjectLockConfigurationOutput) + | .putObjectRetention => fun v => (Shape.ofValue v : Except String PutObjectRetentionOutput) + | .putObjectTagging => fun v => (Shape.ofValue v : Except String PutObjectTaggingOutput) + | .putPublicAccessBlock => fun v => (Shape.ofValue v : Except String Unit) + | .renameObject => fun v => (Shape.ofValue v : Except String RenameObjectOutput) + | .restoreObject => fun v => (Shape.ofValue v : Except String RestoreObjectOutput) + | .selectObjectContent => fun v => (Shape.ofValue v : Except String SelectObjectContentOutput) + | .updateBucketMetadataAnnotationTableConfiguration => fun v => (Shape.ofValue v : Except String Unit) + | .updateBucketMetadataInventoryTableConfiguration => fun v => (Shape.ofValue v : Except String Unit) + | .updateBucketMetadataJournalTableConfiguration => fun v => (Shape.ofValue v : Except String Unit) + | .updateObjectEncryption => fun v => (Shape.ofValue v : Except String UpdateObjectEncryptionResponse) + | .uploadPart => fun v => (Shape.ofValue v : Except String UploadPartOutput) + | .uploadPartCopy => fun v => (Shape.ofValue v : Except String UploadPartCopyOutput) + | .writeGetObjectResponse => fun v => (Shape.ofValue v : Except String Unit) +) + (fun op => match op with + | .abortMultipartUpload => AbortMultipartUploadError.ofWire + | .completeMultipartUpload => fun _ _ => none + | .copyObject => CopyObjectError.ofWire + | .createBucket => CreateBucketError.ofWire + | .createBucketMetadataConfiguration => fun _ _ => none + | .createBucketMetadataTableConfiguration => fun _ _ => none + | .createMultipartUpload => fun _ _ => none + | .createSession => CreateSessionError.ofWire + | .deleteBucket => fun _ _ => none + | .deleteBucketAnalyticsConfiguration => fun _ _ => none + | .deleteBucketCors => fun _ _ => none + | .deleteBucketEncryption => fun _ _ => none + | .deleteBucketIntelligentTieringConfiguration => fun _ _ => none + | .deleteBucketInventoryConfiguration => fun _ _ => none + | .deleteBucketLifecycle => fun _ _ => none + | .deleteBucketMetadataConfiguration => fun _ _ => none + | .deleteBucketMetadataTableConfiguration => fun _ _ => none + | .deleteBucketMetricsConfiguration => fun _ _ => none + | .deleteBucketOwnershipControls => fun _ _ => none + | .deleteBucketPolicy => fun _ _ => none + | .deleteBucketReplication => fun _ _ => none + | .deleteBucketTagging => fun _ _ => none + | .deleteBucketWebsite => fun _ _ => none + | .deleteObject => fun _ _ => none + | .deleteObjectAnnotation => DeleteObjectAnnotationError.ofWire + | .deleteObjectTagging => fun _ _ => none + | .deleteObjects => fun _ _ => none + | .deletePublicAccessBlock => fun _ _ => none + | .getBucketAbac => fun _ _ => none + | .getBucketAccelerateConfiguration => fun _ _ => none + | .getBucketAcl => fun _ _ => none + | .getBucketAnalyticsConfiguration => fun _ _ => none + | .getBucketCors => fun _ _ => none + | .getBucketEncryption => fun _ _ => none + | .getBucketIntelligentTieringConfiguration => fun _ _ => none + | .getBucketInventoryConfiguration => fun _ _ => none + | .getBucketLifecycleConfiguration => fun _ _ => none + | .getBucketLocation => fun _ _ => none + | .getBucketLogging => fun _ _ => none + | .getBucketMetadataConfiguration => fun _ _ => none + | .getBucketMetadataTableConfiguration => fun _ _ => none + | .getBucketMetricsConfiguration => fun _ _ => none + | .getBucketNotificationConfiguration => fun _ _ => none + | .getBucketOwnershipControls => fun _ _ => none + | .getBucketPolicy => fun _ _ => none + | .getBucketPolicyStatus => fun _ _ => none + | .getBucketReplication => fun _ _ => none + | .getBucketRequestPayment => fun _ _ => none + | .getBucketTagging => fun _ _ => none + | .getBucketVersioning => fun _ _ => none + | .getBucketWebsite => fun _ _ => none + | .getObject => GetObjectError.ofWire + | .getObjectAcl => GetObjectAclError.ofWire + | .getObjectAnnotation => GetObjectAnnotationError.ofWire + | .getObjectAttributes => GetObjectAttributesError.ofWire + | .getObjectLegalHold => fun _ _ => none + | .getObjectLockConfiguration => fun _ _ => none + | .getObjectRetention => fun _ _ => none + | .getObjectTagging => fun _ _ => none + | .getObjectTorrent => fun _ _ => none + | .getPublicAccessBlock => fun _ _ => none + | .headBucket => HeadBucketError.ofWire + | .headObject => HeadObjectError.ofWire + | .listBucketAnalyticsConfigurations => fun _ _ => none + | .listBucketIntelligentTieringConfigurations => fun _ _ => none + | .listBucketInventoryConfigurations => fun _ _ => none + | .listBucketMetricsConfigurations => fun _ _ => none + | .listBuckets => fun _ _ => none + | .listDirectoryBuckets => fun _ _ => none + | .listMultipartUploads => fun _ _ => none + | .listObjectAnnotations => ListObjectAnnotationsError.ofWire + | .listObjectVersions => fun _ _ => none + | .listObjects => ListObjectsError.ofWire + | .listObjectsV2 => ListObjectsV2Error.ofWire + | .listParts => fun _ _ => none + | .putBucketAbac => fun _ _ => none + | .putBucketAccelerateConfiguration => fun _ _ => none + | .putBucketAcl => fun _ _ => none + | .putBucketAnalyticsConfiguration => fun _ _ => none + | .putBucketCors => fun _ _ => none + | .putBucketEncryption => fun _ _ => none + | .putBucketIntelligentTieringConfiguration => fun _ _ => none + | .putBucketInventoryConfiguration => fun _ _ => none + | .putBucketLifecycleConfiguration => fun _ _ => none + | .putBucketLogging => fun _ _ => none + | .putBucketMetricsConfiguration => fun _ _ => none + | .putBucketNotificationConfiguration => fun _ _ => none + | .putBucketOwnershipControls => fun _ _ => none + | .putBucketPolicy => fun _ _ => none + | .putBucketReplication => fun _ _ => none + | .putBucketRequestPayment => fun _ _ => none + | .putBucketTagging => fun _ _ => none + | .putBucketVersioning => fun _ _ => none + | .putBucketWebsite => fun _ _ => none + | .putObject => PutObjectError.ofWire + | .putObjectAcl => PutObjectAclError.ofWire + | .putObjectAnnotation => PutObjectAnnotationError.ofWire + | .putObjectLegalHold => fun _ _ => none + | .putObjectLockConfiguration => fun _ _ => none + | .putObjectRetention => fun _ _ => none + | .putObjectTagging => fun _ _ => none + | .putPublicAccessBlock => fun _ _ => none + | .renameObject => RenameObjectError.ofWire + | .restoreObject => RestoreObjectError.ofWire + | .selectObjectContent => fun _ _ => none + | .updateBucketMetadataAnnotationTableConfiguration => fun _ _ => none + | .updateBucketMetadataInventoryTableConfiguration => fun _ _ => none + | .updateBucketMetadataJournalTableConfiguration => fun _ _ => none + | .updateObjectEncryption => UpdateObjectEncryptionError.ofWire + | .uploadPart => fun _ _ => none + | .uploadPartCopy => fun _ _ => none + | .writeGetObjectResponse => fun _ _ => none +) + +/-- This operation aborts a multipart upload. -/ +def abortMultipartUpload {ε : Type} (input : AbortMultipartUploadRequest) : Eff api ε (Except AbortMultipartUploadError AbortMultipartUploadOutput) := + Eff.ask (api := api) .abortMultipartUpload input + +/-- Completes a multipart upload by assembling previously uploaded parts. -/ +def completeMultipartUpload {ε : Type} (input : CompleteMultipartUploadRequest) : Eff api ε (Except Empty CompleteMultipartUploadOutput) := + Eff.ask (api := api) .completeMultipartUpload input + +/-- Creates a copy of an object that is already stored in Amazon S3. -/ +def copyObject {ε : Type} (input : CopyObjectRequest) : Eff api ε (Except CopyObjectError CopyObjectOutput) := + Eff.ask (api := api) .copyObject input + +/-- This action creates an Amazon S3 bucket. -/ +def createBucket {ε : Type} (input : CreateBucketRequest) : Eff api ε (Except CreateBucketError CreateBucketOutput) := + Eff.ask (api := api) .createBucket input + +/-- Creates an S3 Metadata V2 metadata configuration for a general purpose bucket. -/ +def createBucketMetadataConfiguration {ε : Type} (input : CreateBucketMetadataConfigurationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .createBucketMetadataConfiguration input + +/-- We recommend that you create your S3 Metadata configurations by using the V2 CreateBucketMetadataConfiguration API operation. -/ +def createBucketMetadataTableConfiguration {ε : Type} (input : CreateBucketMetadataTableConfigurationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .createBucketMetadataTableConfiguration input + +/-- End of support notice: As of October 1, 2025, Amazon S3 has discontinued support for Email Grantee Access Control Lists (ACLs). -/ +def createMultipartUpload {ε : Type} (input : CreateMultipartUploadRequest) : Eff api ε (Except Empty CreateMultipartUploadOutput) := + Eff.ask (api := api) .createMultipartUpload input + +/-- Creates a session that establishes temporary security credentials to support fast authentication and authorization for the Zonal endpoint API operations on directory buckets. -/ +def createSession {ε : Type} (input : CreateSessionRequest) : Eff api ε (Except CreateSessionError CreateSessionOutput) := + Eff.ask (api := api) .createSession input + +/-- Deletes the S3 bucket. -/ +def deleteBucket {ε : Type} (input : DeleteBucketRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteBucket input + +/-- This operation is not supported for directory buckets. -/ +def deleteBucketAnalyticsConfiguration {ε : Type} (input : DeleteBucketAnalyticsConfigurationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteBucketAnalyticsConfiguration input + +/-- This operation is not supported for directory buckets. -/ +def deleteBucketCors {ε : Type} (input : DeleteBucketCorsRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteBucketCors input + +/-- This implementation of the DELETE action resets the default encryption for the bucket as server-side encryption with Amazon S3 managed keys (SSE-S3). -/ +def deleteBucketEncryption {ε : Type} (input : DeleteBucketEncryptionRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteBucketEncryption input + +/-- This operation is not supported for directory buckets. -/ +def deleteBucketIntelligentTieringConfiguration {ε : Type} (input : DeleteBucketIntelligentTieringConfigurationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteBucketIntelligentTieringConfiguration input + +/-- Deletes an S3 Inventory configuration (identified by the inventory ID) from the bucket. -/ +def deleteBucketInventoryConfiguration {ε : Type} (input : DeleteBucketInventoryConfigurationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteBucketInventoryConfiguration input + +/-- Deletes the lifecycle configuration from the specified bucket. -/ +def deleteBucketLifecycle {ε : Type} (input : DeleteBucketLifecycleRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteBucketLifecycle input + +/-- Deletes an S3 Metadata configuration from a general purpose bucket. -/ +def deleteBucketMetadataConfiguration {ε : Type} (input : DeleteBucketMetadataConfigurationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteBucketMetadataConfiguration input + +/-- We recommend that you delete your S3 Metadata configurations by using the V2 DeleteBucketMetadataConfiguration API operation. -/ +def deleteBucketMetadataTableConfiguration {ε : Type} (input : DeleteBucketMetadataTableConfigurationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteBucketMetadataTableConfiguration input + +/-- Deletes a metrics configuration for the Amazon CloudWatch request metrics (specified by the metrics configuration ID) from the bucket. -/ +def deleteBucketMetricsConfiguration {ε : Type} (input : DeleteBucketMetricsConfigurationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteBucketMetricsConfiguration input + +/-- This operation is not supported for directory buckets. -/ +def deleteBucketOwnershipControls {ε : Type} (input : DeleteBucketOwnershipControlsRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteBucketOwnershipControls input + +/-- Deletes the policy of a specified bucket. -/ +def deleteBucketPolicy {ε : Type} (input : DeleteBucketPolicyRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteBucketPolicy input + +/-- This operation is not supported for directory buckets. -/ +def deleteBucketReplication {ε : Type} (input : DeleteBucketReplicationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteBucketReplication input + +/-- This operation is not supported for directory buckets. -/ +def deleteBucketTagging {ε : Type} (input : DeleteBucketTaggingRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteBucketTagging input + +/-- This operation is not supported for directory buckets. -/ +def deleteBucketWebsite {ε : Type} (input : DeleteBucketWebsiteRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deleteBucketWebsite input + +/-- Removes an object from a bucket. -/ +def deleteObject {ε : Type} (input : DeleteObjectRequest) : Eff api ε (Except Empty DeleteObjectOutput) := + Eff.ask (api := api) .deleteObject input + +/-- Deletes a specific annotation from an Amazon S3 object. -/ +def deleteObjectAnnotation {ε : Type} (input : DeleteObjectAnnotationRequest) : Eff api ε (Except DeleteObjectAnnotationError DeleteObjectAnnotationOutput) := + Eff.ask (api := api) .deleteObjectAnnotation input + +/-- This operation is not supported for directory buckets. -/ +def deleteObjectTagging {ε : Type} (input : DeleteObjectTaggingRequest) : Eff api ε (Except Empty DeleteObjectTaggingOutput) := + Eff.ask (api := api) .deleteObjectTagging input + +/-- This operation enables you to delete multiple objects from a bucket using a single HTTP request. -/ +def deleteObjects {ε : Type} (input : DeleteObjectsRequest) : Eff api ε (Except Empty DeleteObjectsOutput) := + Eff.ask (api := api) .deleteObjects input + +/-- This operation is not supported for directory buckets. -/ +def deletePublicAccessBlock {ε : Type} (input : DeletePublicAccessBlockRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .deletePublicAccessBlock input + +/-- Returns the attribute-based access control (ABAC) property of the general purpose bucket. -/ +def getBucketAbac {ε : Type} (input : GetBucketAbacRequest) : Eff api ε (Except Empty GetBucketAbacOutput) := + Eff.ask (api := api) .getBucketAbac input + +/-- This operation is not supported for directory buckets. -/ +def getBucketAccelerateConfiguration {ε : Type} (input : GetBucketAccelerateConfigurationRequest) : Eff api ε (Except Empty GetBucketAccelerateConfigurationOutput) := + Eff.ask (api := api) .getBucketAccelerateConfiguration input + +/-- This operation is not supported for directory buckets. -/ +def getBucketAcl {ε : Type} (input : GetBucketAclRequest) : Eff api ε (Except Empty GetBucketAclOutput) := + Eff.ask (api := api) .getBucketAcl input + +/-- This operation is not supported for directory buckets. -/ +def getBucketAnalyticsConfiguration {ε : Type} (input : GetBucketAnalyticsConfigurationRequest) : Eff api ε (Except Empty GetBucketAnalyticsConfigurationOutput) := + Eff.ask (api := api) .getBucketAnalyticsConfiguration input + +/-- This operation is not supported for directory buckets. -/ +def getBucketCors {ε : Type} (input : GetBucketCorsRequest) : Eff api ε (Except Empty GetBucketCorsOutput) := + Eff.ask (api := api) .getBucketCors input + +/-- Returns the default encryption configuration for an Amazon S3 bucket. -/ +def getBucketEncryption {ε : Type} (input : GetBucketEncryptionRequest) : Eff api ε (Except Empty GetBucketEncryptionOutput) := + Eff.ask (api := api) .getBucketEncryption input + +/-- This operation is not supported for directory buckets. -/ +def getBucketIntelligentTieringConfiguration {ε : Type} (input : GetBucketIntelligentTieringConfigurationRequest) : Eff api ε (Except Empty GetBucketIntelligentTieringConfigurationOutput) := + Eff.ask (api := api) .getBucketIntelligentTieringConfiguration input + +/-- Returns an S3 Inventory configuration (identified by the inventory configuration ID) from the bucket. -/ +def getBucketInventoryConfiguration {ε : Type} (input : GetBucketInventoryConfigurationRequest) : Eff api ε (Except Empty GetBucketInventoryConfigurationOutput) := + Eff.ask (api := api) .getBucketInventoryConfiguration input + +/-- Returns the lifecycle configuration information set on the bucket. -/ +def getBucketLifecycleConfiguration {ε : Type} (input : GetBucketLifecycleConfigurationRequest) : Eff api ε (Except Empty GetBucketLifecycleConfigurationOutput) := + Eff.ask (api := api) .getBucketLifecycleConfiguration input + +/-- Using the GetBucketLocation operation is no longer a best practice. -/ +def getBucketLocation {ε : Type} (input : GetBucketLocationRequest) : Eff api ε (Except Empty GetBucketLocationOutput) := + Eff.ask (api := api) .getBucketLocation input + +/-- This operation is not supported for directory buckets. -/ +def getBucketLogging {ε : Type} (input : GetBucketLoggingRequest) : Eff api ε (Except Empty GetBucketLoggingOutput) := + Eff.ask (api := api) .getBucketLogging input + +/-- Retrieves the S3 Metadata configuration for a general purpose bucket. -/ +def getBucketMetadataConfiguration {ε : Type} (input : GetBucketMetadataConfigurationRequest) : Eff api ε (Except Empty GetBucketMetadataConfigurationOutput) := + Eff.ask (api := api) .getBucketMetadataConfiguration input + +/-- We recommend that you retrieve your S3 Metadata configurations by using the V2 GetBucketMetadataConfiguration API operation. -/ +def getBucketMetadataTableConfiguration {ε : Type} (input : GetBucketMetadataTableConfigurationRequest) : Eff api ε (Except Empty GetBucketMetadataTableConfigurationOutput) := + Eff.ask (api := api) .getBucketMetadataTableConfiguration input + +/-- Gets a metrics configuration (specified by the metrics configuration ID) from the bucket. -/ +def getBucketMetricsConfiguration {ε : Type} (input : GetBucketMetricsConfigurationRequest) : Eff api ε (Except Empty GetBucketMetricsConfigurationOutput) := + Eff.ask (api := api) .getBucketMetricsConfiguration input + +/-- This operation is not supported for directory buckets. -/ +def getBucketNotificationConfiguration {ε : Type} (input : GetBucketNotificationConfigurationRequest) : Eff api ε (Except Empty NotificationConfiguration) := + Eff.ask (api := api) .getBucketNotificationConfiguration input + +/-- This operation is not supported for directory buckets. -/ +def getBucketOwnershipControls {ε : Type} (input : GetBucketOwnershipControlsRequest) : Eff api ε (Except Empty GetBucketOwnershipControlsOutput) := + Eff.ask (api := api) .getBucketOwnershipControls input + +/-- Returns the policy of a specified bucket. -/ +def getBucketPolicy {ε : Type} (input : GetBucketPolicyRequest) : Eff api ε (Except Empty GetBucketPolicyOutput) := + Eff.ask (api := api) .getBucketPolicy input + +/-- This operation is not supported for directory buckets. -/ +def getBucketPolicyStatus {ε : Type} (input : GetBucketPolicyStatusRequest) : Eff api ε (Except Empty GetBucketPolicyStatusOutput) := + Eff.ask (api := api) .getBucketPolicyStatus input + +/-- This operation is not supported for directory buckets. -/ +def getBucketReplication {ε : Type} (input : GetBucketReplicationRequest) : Eff api ε (Except Empty GetBucketReplicationOutput) := + Eff.ask (api := api) .getBucketReplication input + +/-- This operation is not supported for directory buckets. -/ +def getBucketRequestPayment {ε : Type} (input : GetBucketRequestPaymentRequest) : Eff api ε (Except Empty GetBucketRequestPaymentOutput) := + Eff.ask (api := api) .getBucketRequestPayment input + +/-- This operation is not supported for directory buckets. -/ +def getBucketTagging {ε : Type} (input : GetBucketTaggingRequest) : Eff api ε (Except Empty GetBucketTaggingOutput) := + Eff.ask (api := api) .getBucketTagging input + +/-- This operation is not supported for directory buckets. -/ +def getBucketVersioning {ε : Type} (input : GetBucketVersioningRequest) : Eff api ε (Except Empty GetBucketVersioningOutput) := + Eff.ask (api := api) .getBucketVersioning input + +/-- This operation is not supported for directory buckets. -/ +def getBucketWebsite {ε : Type} (input : GetBucketWebsiteRequest) : Eff api ε (Except Empty GetBucketWebsiteOutput) := + Eff.ask (api := api) .getBucketWebsite input + +/-- Retrieves an object from Amazon S3. -/ +def getObject {ε : Type} (input : GetObjectRequest) : Eff api ε (Except GetObjectError GetObjectOutput) := + Eff.ask (api := api) .getObject input + +/-- This operation is not supported for directory buckets. -/ +def getObjectAcl {ε : Type} (input : GetObjectAclRequest) : Eff api ε (Except GetObjectAclError GetObjectAclOutput) := + Eff.ask (api := api) .getObjectAcl input + +/-- Retrieves an annotation from an Amazon S3 object. -/ +def getObjectAnnotation {ε : Type} (input : GetObjectAnnotationRequest) : Eff api ε (Except GetObjectAnnotationError GetObjectAnnotationOutput) := + Eff.ask (api := api) .getObjectAnnotation input + +/-- Retrieves all of the metadata from an object without returning the object itself. -/ +def getObjectAttributes {ε : Type} (input : GetObjectAttributesRequest) : Eff api ε (Except GetObjectAttributesError GetObjectAttributesOutput) := + Eff.ask (api := api) .getObjectAttributes input + +/-- This operation is not supported for directory buckets. -/ +def getObjectLegalHold {ε : Type} (input : GetObjectLegalHoldRequest) : Eff api ε (Except Empty GetObjectLegalHoldOutput) := + Eff.ask (api := api) .getObjectLegalHold input + +/-- This operation is not supported for directory buckets. -/ +def getObjectLockConfiguration {ε : Type} (input : GetObjectLockConfigurationRequest) : Eff api ε (Except Empty GetObjectLockConfigurationOutput) := + Eff.ask (api := api) .getObjectLockConfiguration input + +/-- This operation is not supported for directory buckets. -/ +def getObjectRetention {ε : Type} (input : GetObjectRetentionRequest) : Eff api ε (Except Empty GetObjectRetentionOutput) := + Eff.ask (api := api) .getObjectRetention input + +/-- This operation is not supported for directory buckets. -/ +def getObjectTagging {ε : Type} (input : GetObjectTaggingRequest) : Eff api ε (Except Empty GetObjectTaggingOutput) := + Eff.ask (api := api) .getObjectTagging input + +/-- This operation is not supported for directory buckets. -/ +def getObjectTorrent {ε : Type} (input : GetObjectTorrentRequest) : Eff api ε (Except Empty GetObjectTorrentOutput) := + Eff.ask (api := api) .getObjectTorrent input + +/-- This operation is not supported for directory buckets. -/ +def getPublicAccessBlock {ε : Type} (input : GetPublicAccessBlockRequest) : Eff api ε (Except Empty GetPublicAccessBlockOutput) := + Eff.ask (api := api) .getPublicAccessBlock input + +/-- You can use this operation to determine if a bucket exists and if you have permission to access it. -/ +def headBucket {ε : Type} (input : HeadBucketRequest) : Eff api ε (Except HeadBucketError HeadBucketOutput) := + Eff.ask (api := api) .headBucket input + +/-- The HEAD operation retrieves metadata from an object without returning the object itself. -/ +def headObject {ε : Type} (input : HeadObjectRequest) : Eff api ε (Except HeadObjectError HeadObjectOutput) := + Eff.ask (api := api) .headObject input + +/-- This operation is not supported for directory buckets. -/ +def listBucketAnalyticsConfigurations {ε : Type} (input : ListBucketAnalyticsConfigurationsRequest) : Eff api ε (Except Empty ListBucketAnalyticsConfigurationsOutput) := + Eff.ask (api := api) .listBucketAnalyticsConfigurations input + +/-- This operation is not supported for directory buckets. -/ +def listBucketIntelligentTieringConfigurations {ε : Type} (input : ListBucketIntelligentTieringConfigurationsRequest) : Eff api ε (Except Empty ListBucketIntelligentTieringConfigurationsOutput) := + Eff.ask (api := api) .listBucketIntelligentTieringConfigurations input + +/-- Returns a list of S3 Inventory configurations for the bucket. -/ +def listBucketInventoryConfigurations {ε : Type} (input : ListBucketInventoryConfigurationsRequest) : Eff api ε (Except Empty ListBucketInventoryConfigurationsOutput) := + Eff.ask (api := api) .listBucketInventoryConfigurations input + +/-- Lists the metrics configurations for the bucket. -/ +def listBucketMetricsConfigurations {ε : Type} (input : ListBucketMetricsConfigurationsRequest) : Eff api ε (Except Empty ListBucketMetricsConfigurationsOutput) := + Eff.ask (api := api) .listBucketMetricsConfigurations input + +/-- This operation is not supported for directory buckets. -/ +def listBuckets {ε : Type} (input : ListBucketsRequest) : Eff api ε (Except Empty ListBucketsOutput) := + Eff.ask (api := api) .listBuckets input + +/-- Returns a list of all Amazon S3 directory buckets owned by the authenticated sender of the request. -/ +def listDirectoryBuckets {ε : Type} (input : ListDirectoryBucketsRequest) : Eff api ε (Except Empty ListDirectoryBucketsOutput) := + Eff.ask (api := api) .listDirectoryBuckets input + +/-- This operation lists in-progress multipart uploads in a bucket. -/ +def listMultipartUploads {ε : Type} (input : ListMultipartUploadsRequest) : Eff api ε (Except Empty ListMultipartUploadsOutput) := + Eff.ask (api := api) .listMultipartUploads input + +/-- Lists the annotations attached to an Amazon S3 object. -/ +def listObjectAnnotations {ε : Type} (input : ListObjectAnnotationsRequest) : Eff api ε (Except ListObjectAnnotationsError ListObjectAnnotationsOutput) := + Eff.ask (api := api) .listObjectAnnotations input + +/-- This operation is not supported for directory buckets. -/ +def listObjectVersions {ε : Type} (input : ListObjectVersionsRequest) : Eff api ε (Except Empty ListObjectVersionsOutput) := + Eff.ask (api := api) .listObjectVersions input + +/-- This operation is not supported for directory buckets. -/ +def listObjects {ε : Type} (input : ListObjectsRequest) : Eff api ε (Except ListObjectsError ListObjectsOutput) := + Eff.ask (api := api) .listObjects input + +/-- Returns some or all (up to 1,000) of the objects in a bucket with each request. -/ +def listObjectsV2 {ε : Type} (input : ListObjectsV2Request) : Eff api ε (Except ListObjectsV2Error ListObjectsV2Output) := + Eff.ask (api := api) .listObjectsV2 input + +/-- Lists the parts that have been uploaded for a specific multipart upload. -/ +def listParts {ε : Type} (input : ListPartsRequest) : Eff api ε (Except Empty ListPartsOutput) := + Eff.ask (api := api) .listParts input + +/-- Sets the attribute-based access control (ABAC) property of the general purpose bucket. -/ +def putBucketAbac {ε : Type} (input : PutBucketAbacRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .putBucketAbac input + +/-- This operation is not supported for directory buckets. -/ +def putBucketAccelerateConfiguration {ε : Type} (input : PutBucketAccelerateConfigurationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .putBucketAccelerateConfiguration input + +/-- End of support notice: As of October 1, 2025, Amazon S3 has discontinued support for Email Grantee Access Control Lists (ACLs). -/ +def putBucketAcl {ε : Type} (input : PutBucketAclRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .putBucketAcl input + +/-- This operation is not supported for directory buckets. -/ +def putBucketAnalyticsConfiguration {ε : Type} (input : PutBucketAnalyticsConfigurationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .putBucketAnalyticsConfiguration input + +/-- This operation is not supported for directory buckets. -/ +def putBucketCors {ε : Type} (input : PutBucketCorsRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .putBucketCors input + +/-- This operation configures default encryption and Amazon S3 Bucket Keys for an existing bucket. -/ +def putBucketEncryption {ε : Type} (input : PutBucketEncryptionRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .putBucketEncryption input + +/-- This operation is not supported for directory buckets. -/ +def putBucketIntelligentTieringConfiguration {ε : Type} (input : PutBucketIntelligentTieringConfigurationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .putBucketIntelligentTieringConfiguration input + +/-- This implementation of the PUT action adds an S3 Inventory configuration (identified by the inventory ID) to the bucket. -/ +def putBucketInventoryConfiguration {ε : Type} (input : PutBucketInventoryConfigurationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .putBucketInventoryConfiguration input + +/-- Creates a new lifecycle configuration for the bucket or replaces an existing lifecycle configuration. -/ +def putBucketLifecycleConfiguration {ε : Type} (input : PutBucketLifecycleConfigurationRequest) : Eff api ε (Except Empty PutBucketLifecycleConfigurationOutput) := + Eff.ask (api := api) .putBucketLifecycleConfiguration input + +/-- End of support notice: As of October 1, 2025, Amazon S3 has discontinued support for Email Grantee Access Control Lists (ACLs). -/ +def putBucketLogging {ε : Type} (input : PutBucketLoggingRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .putBucketLogging input + +/-- Sets a metrics configuration (specified by the metrics configuration ID) for the bucket. -/ +def putBucketMetricsConfiguration {ε : Type} (input : PutBucketMetricsConfigurationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .putBucketMetricsConfiguration input + +/-- This operation is not supported for directory buckets. -/ +def putBucketNotificationConfiguration {ε : Type} (input : PutBucketNotificationConfigurationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .putBucketNotificationConfiguration input + +/-- This operation is not supported for directory buckets. -/ +def putBucketOwnershipControls {ε : Type} (input : PutBucketOwnershipControlsRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .putBucketOwnershipControls input + +/-- Applies an Amazon S3 bucket policy to an Amazon S3 bucket. -/ +def putBucketPolicy {ε : Type} (input : PutBucketPolicyRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .putBucketPolicy input + +/-- This operation is not supported for directory buckets. -/ +def putBucketReplication {ε : Type} (input : PutBucketReplicationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .putBucketReplication input + +/-- This operation is not supported for directory buckets. -/ +def putBucketRequestPayment {ε : Type} (input : PutBucketRequestPaymentRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .putBucketRequestPayment input + +/-- This operation is not supported for directory buckets. -/ +def putBucketTagging {ε : Type} (input : PutBucketTaggingRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .putBucketTagging input + +/-- This operation is not supported for directory buckets. -/ +def putBucketVersioning {ε : Type} (input : PutBucketVersioningRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .putBucketVersioning input + +/-- This operation is not supported for directory buckets. -/ +def putBucketWebsite {ε : Type} (input : PutBucketWebsiteRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .putBucketWebsite input + +/-- End of support notice: As of October 1, 2025, Amazon S3 has discontinued support for Email Grantee Access Control Lists (ACLs). -/ +def putObject {ε : Type} (input : PutObjectRequest) : Eff api ε (Except PutObjectError PutObjectOutput) := + Eff.ask (api := api) .putObject input + +/-- End of support notice: As of October 1, 2025, Amazon S3 has discontinued support for Email Grantee Access Control Lists (ACLs). -/ +def putObjectAcl {ε : Type} (input : PutObjectAclRequest) : Eff api ε (Except PutObjectAclError PutObjectAclOutput) := + Eff.ask (api := api) .putObjectAcl input + +/-- Attaches an annotation to an Amazon S3 object. -/ +def putObjectAnnotation {ε : Type} (input : PutObjectAnnotationRequest) : Eff api ε (Except PutObjectAnnotationError PutObjectAnnotationOutput) := + Eff.ask (api := api) .putObjectAnnotation input + +/-- This operation is not supported for directory buckets. -/ +def putObjectLegalHold {ε : Type} (input : PutObjectLegalHoldRequest) : Eff api ε (Except Empty PutObjectLegalHoldOutput) := + Eff.ask (api := api) .putObjectLegalHold input + +/-- This operation is not supported for directory buckets. -/ +def putObjectLockConfiguration {ε : Type} (input : PutObjectLockConfigurationRequest) : Eff api ε (Except Empty PutObjectLockConfigurationOutput) := + Eff.ask (api := api) .putObjectLockConfiguration input + +/-- This operation is not supported for directory buckets. -/ +def putObjectRetention {ε : Type} (input : PutObjectRetentionRequest) : Eff api ε (Except Empty PutObjectRetentionOutput) := + Eff.ask (api := api) .putObjectRetention input + +/-- This operation is not supported for directory buckets. -/ +def putObjectTagging {ε : Type} (input : PutObjectTaggingRequest) : Eff api ε (Except Empty PutObjectTaggingOutput) := + Eff.ask (api := api) .putObjectTagging input + +/-- This operation is not supported for directory buckets. -/ +def putPublicAccessBlock {ε : Type} (input : PutPublicAccessBlockRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .putPublicAccessBlock input + +/-- Renames an existing object in a directory bucket that uses the S3 Express One Zone storage class. -/ +def renameObject {ε : Type} (input : RenameObjectRequest) : Eff api ε (Except RenameObjectError RenameObjectOutput) := + Eff.ask (api := api) .renameObject input + +/-- This operation is not supported for directory buckets. -/ +def restoreObject {ε : Type} (input : RestoreObjectRequest) : Eff api ε (Except RestoreObjectError RestoreObjectOutput) := + Eff.ask (api := api) .restoreObject input + +/-- This operation is not supported for directory buckets. -/ +def selectObjectContent {ε : Type} (input : SelectObjectContentRequest) : Eff api ε (Except Empty SelectObjectContentOutput) := + Eff.ask (api := api) .selectObjectContent input + +/-- Updates the annotation table configuration for an Amazon S3 bucket's metadata configuration. -/ +def updateBucketMetadataAnnotationTableConfiguration {ε : Type} (input : UpdateBucketMetadataAnnotationTableConfigurationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .updateBucketMetadataAnnotationTableConfiguration input + +/-- Enables or disables a live inventory table for an S3 Metadata configuration on a general purpose bucket. -/ +def updateBucketMetadataInventoryTableConfiguration {ε : Type} (input : UpdateBucketMetadataInventoryTableConfigurationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .updateBucketMetadataInventoryTableConfiguration input + +/-- Enables or disables journal table record expiration for an S3 Metadata configuration on a general purpose bucket. -/ +def updateBucketMetadataJournalTableConfiguration {ε : Type} (input : UpdateBucketMetadataJournalTableConfigurationRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .updateBucketMetadataJournalTableConfiguration input + +/-- This operation is not supported for directory buckets or Amazon S3 on Outposts buckets. -/ +def updateObjectEncryption {ε : Type} (input : UpdateObjectEncryptionRequest) : Eff api ε (Except UpdateObjectEncryptionError UpdateObjectEncryptionResponse) := + Eff.ask (api := api) .updateObjectEncryption input + +/-- Uploads a part in a multipart upload. -/ +def uploadPart {ε : Type} (input : UploadPartRequest) : Eff api ε (Except Empty UploadPartOutput) := + Eff.ask (api := api) .uploadPart input + +/-- Uploads a part by copying data from an existing object as data source. -/ +def uploadPartCopy {ε : Type} (input : UploadPartCopyRequest) : Eff api ε (Except Empty UploadPartCopyOutput) := + Eff.ask (api := api) .uploadPartCopy input + +/-- This operation is not supported for directory buckets. -/ +def writeGetObjectResponse {ε : Type} (input : WriteGetObjectResponseRequest) : Eff api ε (Except Empty Unit) := + Eff.ask (api := api) .writeGetObjectResponse input + +end Distilled.AWS.S3 diff --git a/lean/Distilled/AWS/Services/SNS.lean b/lean/Distilled/AWS/Services/SNS.lean new file mode 100644 index 0000000000..01caf71760 --- /dev/null +++ b/lean/Distilled/AWS/Services/SNS.lean @@ -0,0 +1,3585 @@ +-- Generated by distilled-gen from sns-2010-03-31.json. Do not edit. +import Distilled.Protocol + +namespace Distilled.AWS.SNS +open Lean Distilled + +set_option linter.unusedVariables false +set_option maxRecDepth 4096 +set_option maxHeartbeats 0 + +structure AddPermissionInput where + /-- The Amazon Web Services account IDs of the users (principals) who will be given access to the specified actions. -/ + awsAccountId : (List String) + /-- The action you want to allow for the specified principal(s). -/ + actionName : (List String) + /-- A unique identifier for the new policy statement. -/ + label : String + /-- The ARN of the topic whose access control policy you wish to modify. -/ + topicArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AddPermissionInput where + schema := .struct "AddPermissionInput" [({ name := "AWSAccountId", required := true }, (.list .string "member")), + ({ name := "ActionName", required := true }, (.list .string "member")), + ({ name := "Label", required := true }, .string), + ({ name := "TopicArn", required := true }, .string)] + toValue x := record [put "AWSAccountId" x.awsAccountId, put "ActionName" x.actionName, put "Label" x.label, put "TopicArn" x.topicArn] + ofValue v := do + let awsAccountId ← v.req "AWSAccountId" + let actionName ← v.req "ActionName" + let label ← v.req "Label" + let topicArn ← v.req "TopicArn" + return { awsAccountId, actionName, label, topicArn } + +/-- Indicates that the user has been denied access to the requested resource. -/ +structure AuthorizationErrorException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape AuthorizationErrorException where + schema := .struct "AuthorizationErrorException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Two or more batch entries in the request have the same Id . -/ +structure BatchEntryIdsNotDistinctException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BatchEntryIdsNotDistinctException where + schema := .struct "BatchEntryIdsNotDistinctException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The length of all the batch messages put together is more than the limit. -/ +structure BatchRequestTooLongException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BatchRequestTooLongException where + schema := .struct "BatchRequestTooLongException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Gives a detailed description of failed messages in the batch. -/ +structure BatchResultErrorEntry where + /-- An error code representing why the action failed on this entry. -/ + code : String + /-- The Id of an entry in a batch request. -/ + id : String + /-- A message explaining why the action failed on this entry. -/ + message : Option String := none + /-- Specifies whether the error happened due to the caller of the batch API action. -/ + senderFault : Bool +deriving DecidableEq, Repr, Inhabited + +instance : Shape BatchResultErrorEntry where + schema := .struct "BatchResultErrorEntry" [({ name := "Code", required := true }, .string), + ({ name := "Id", required := true }, .string), + ({ name := "Message" }, .string), + ({ name := "SenderFault", required := true }, .bool)] + toValue x := record [put "Code" x.code, put "Id" x.id, putOpt "Message" x.message, put "SenderFault" x.senderFault] + ofValue v := do + let code ← v.req "Code" + let id ← v.req "Id" + let message ← v.opt "Message" + let senderFault ← v.req "SenderFault" + return { code, id, message, senderFault } + +/-- The input for the CheckIfPhoneNumberIsOptedOut action. -/ +structure CheckIfPhoneNumberIsOptedOutInput where + /-- The phone number for which you want to check the opt out status. -/ + phoneNumber : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CheckIfPhoneNumberIsOptedOutInput where + schema := .struct "CheckIfPhoneNumberIsOptedOutInput" [({ name := "phoneNumber", required := true }, .string)] + toValue x := record [put "phoneNumber" x.phoneNumber] + ofValue v := do + let phoneNumber ← v.req "phoneNumber" + return { phoneNumber } + +/-- The response from the CheckIfPhoneNumberIsOptedOut action. -/ +structure CheckIfPhoneNumberIsOptedOutResponse where + /-- Indicates whether the phone number is opted out: true – The phone number is opted out, meaning you cannot publish SMS messages to it. -/ + isOptedOut : Option Bool := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CheckIfPhoneNumberIsOptedOutResponse where + schema := .struct "CheckIfPhoneNumberIsOptedOutResponse" [({ name := "isOptedOut" }, .bool)] + toValue x := record [putOpt "isOptedOut" x.isOptedOut] + ofValue v := do + let isOptedOut ← v.opt "isOptedOut" + return { isOptedOut } + +/-- Can't perform multiple operations on a tag simultaneously. -/ +structure ConcurrentAccessException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ConcurrentAccessException where + schema := .struct "ConcurrentAccessException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Input for ConfirmSubscription action. -/ +structure ConfirmSubscriptionInput where + /-- Disallows unauthenticated unsubscribes of the subscription. -/ + authenticateOnUnsubscribe : Option String := none + /-- Short-lived token sent to an endpoint during the Subscribe action. -/ + token : String + /-- The ARN of the topic for which you wish to confirm a subscription. -/ + topicArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ConfirmSubscriptionInput where + schema := .struct "ConfirmSubscriptionInput" [({ name := "AuthenticateOnUnsubscribe" }, .string), + ({ name := "Token", required := true }, .string), + ({ name := "TopicArn", required := true }, .string)] + toValue x := record [putOpt "AuthenticateOnUnsubscribe" x.authenticateOnUnsubscribe, put "Token" x.token, put "TopicArn" x.topicArn] + ofValue v := do + let authenticateOnUnsubscribe ← v.opt "AuthenticateOnUnsubscribe" + let token ← v.req "Token" + let topicArn ← v.req "TopicArn" + return { authenticateOnUnsubscribe, token, topicArn } + +/-- Response for ConfirmSubscriptions action. -/ +structure ConfirmSubscriptionResponse where + /-- The ARN of the created subscription. -/ + subscriptionArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ConfirmSubscriptionResponse where + schema := .struct "ConfirmSubscriptionResponse" [({ name := "SubscriptionArn" }, .string)] + toValue x := record [putOpt "SubscriptionArn" x.subscriptionArn] + ofValue v := do + let subscriptionArn ← v.opt "SubscriptionArn" + return { subscriptionArn } + +/-- Response from CreateEndpoint action. -/ +structure CreateEndpointResponse where + /-- EndpointArn returned from CreateEndpoint action. -/ + endpointArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateEndpointResponse where + schema := .struct "CreateEndpointResponse" [({ name := "EndpointArn" }, .string)] + toValue x := record [putOpt "EndpointArn" x.endpointArn] + ofValue v := do + let endpointArn ← v.opt "EndpointArn" + return { endpointArn } + +/-- Input for CreatePlatformApplication action. -/ +structure CreatePlatformApplicationInput where + /-- For a list of attributes, see SetPlatformApplicationAttributes . -/ + attributes : (Dict String String) + /-- Application names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, hyphens, and periods, and must be between 1 and 256 characters long. -/ + name : String + /-- The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud Messaging). -/ + platform : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreatePlatformApplicationInput where + schema := .struct "CreatePlatformApplicationInput" [({ name := "Attributes", required := true }, (.map .string .string "key" "value")), + ({ name := "Name", required := true }, .string), + ({ name := "Platform", required := true }, .string)] + toValue x := record [put "Attributes" x.attributes, put "Name" x.name, put "Platform" x.platform] + ofValue v := do + let attributes ← v.req "Attributes" + let name ← v.req "Name" + let platform ← v.req "Platform" + return { attributes, name, platform } + +/-- Response from CreatePlatformApplication action. -/ +structure CreatePlatformApplicationResponse where + /-- PlatformApplicationArn is returned. -/ + platformApplicationArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreatePlatformApplicationResponse where + schema := .struct "CreatePlatformApplicationResponse" [({ name := "PlatformApplicationArn" }, .string)] + toValue x := record [putOpt "PlatformApplicationArn" x.platformApplicationArn] + ofValue v := do + let platformApplicationArn ← v.opt "PlatformApplicationArn" + return { platformApplicationArn } + +/-- Input for CreatePlatformEndpoint action. -/ +structure CreatePlatformEndpointInput where + /-- For a list of attributes, see SetEndpointAttributes . -/ + attributes : Option (Dict String String) := none + /-- Arbitrary user data to associate with the endpoint. -/ + customUserData : Option String := none + /-- PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint. -/ + platformApplicationArn : String + /-- Unique identifier created by the notification service for an app on a device. -/ + token : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreatePlatformEndpointInput where + schema := .struct "CreatePlatformEndpointInput" [({ name := "Attributes" }, (.map .string .string "key" "value")), + ({ name := "CustomUserData" }, .string), + ({ name := "PlatformApplicationArn", required := true }, .string), + ({ name := "Token", required := true }, .string)] + toValue x := record [putOpt "Attributes" x.attributes, putOpt "CustomUserData" x.customUserData, put "PlatformApplicationArn" x.platformApplicationArn, put "Token" x.token] + ofValue v := do + let attributes ← v.opt "Attributes" + let customUserData ← v.opt "CustomUserData" + let platformApplicationArn ← v.req "PlatformApplicationArn" + let token ← v.req "Token" + return { attributes, customUserData, platformApplicationArn, token } + +structure CreateSMSSandboxPhoneNumberResult where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateSMSSandboxPhoneNumberResult where + schema := .struct "CreateSMSSandboxPhoneNumberResult" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- Response from CreateTopic action. -/ +structure CreateTopicResponse where + /-- The Amazon Resource Name (ARN) assigned to the created topic. -/ + topicArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTopicResponse where + schema := .struct "CreateTopicResponse" [({ name := "TopicArn" }, .string)] + toValue x := record [putOpt "TopicArn" x.topicArn] + ofValue v := do + let topicArn ← v.opt "TopicArn" + return { topicArn } + +/-- Input for DeleteEndpoint action. -/ +structure DeleteEndpointInput where + /-- EndpointArn of endpoint to delete. -/ + endpointArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteEndpointInput where + schema := .struct "DeleteEndpointInput" [({ name := "EndpointArn", required := true }, .string)] + toValue x := record [put "EndpointArn" x.endpointArn] + ofValue v := do + let endpointArn ← v.req "EndpointArn" + return { endpointArn } + +/-- Input for DeletePlatformApplication action. -/ +structure DeletePlatformApplicationInput where + /-- PlatformApplicationArn of platform application object to delete. -/ + platformApplicationArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeletePlatformApplicationInput where + schema := .struct "DeletePlatformApplicationInput" [({ name := "PlatformApplicationArn", required := true }, .string)] + toValue x := record [put "PlatformApplicationArn" x.platformApplicationArn] + ofValue v := do + let platformApplicationArn ← v.req "PlatformApplicationArn" + return { platformApplicationArn } + +structure DeleteSMSSandboxPhoneNumberInput where + /-- The destination phone number to delete. -/ + phoneNumber : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteSMSSandboxPhoneNumberInput where + schema := .struct "DeleteSMSSandboxPhoneNumberInput" [({ name := "PhoneNumber", required := true }, .string)] + toValue x := record [put "PhoneNumber" x.phoneNumber] + ofValue v := do + let phoneNumber ← v.req "PhoneNumber" + return { phoneNumber } + +structure DeleteSMSSandboxPhoneNumberResult where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteSMSSandboxPhoneNumberResult where + schema := .struct "DeleteSMSSandboxPhoneNumberResult" [] + toValue _ := record [] + ofValue _ := do + return { } + +structure DeleteTopicInput where + /-- The ARN of the topic you want to delete. -/ + topicArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteTopicInput where + schema := .struct "DeleteTopicInput" [({ name := "TopicArn", required := true }, .string)] + toValue x := record [put "TopicArn" x.topicArn] + ofValue v := do + let topicArn ← v.req "TopicArn" + return { topicArn } + +/-- The batch request doesn't contain any entries. -/ +structure EmptyBatchRequestException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EmptyBatchRequestException where + schema := .struct "EmptyBatchRequestException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The endpoint for mobile app and device. -/ +structure Endpoint where + /-- Attributes for endpoint. -/ + attributes : Option (Dict String String) := none + /-- The EndpointArn for mobile app and device. -/ + endpointArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Endpoint where + schema := .struct "Endpoint" [({ name := "Attributes" }, (.map .string .string "key" "value")), + ({ name := "EndpointArn" }, .string)] + toValue x := record [putOpt "Attributes" x.attributes, putOpt "EndpointArn" x.endpointArn] + ofValue v := do + let attributes ← v.opt "Attributes" + let endpointArn ← v.opt "EndpointArn" + return { attributes, endpointArn } + +/-- Exception error indicating endpoint disabled. -/ +structure EndpointDisabledException where + /-- Message for endpoint disabled. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EndpointDisabledException where + schema := .struct "EndpointDisabledException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Indicates that the number of filter polices in your Amazon Web Services account exceeds the limit. -/ +structure FilterPolicyLimitExceededException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape FilterPolicyLimitExceededException where + schema := .struct "FilterPolicyLimitExceededException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +structure GetDataProtectionPolicyInput where + /-- The ARN of the topic whose DataProtectionPolicy you want to get. -/ + resourceArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetDataProtectionPolicyInput where + schema := .struct "GetDataProtectionPolicyInput" [({ name := "ResourceArn", required := true }, .string)] + toValue x := record [put "ResourceArn" x.resourceArn] + ofValue v := do + let resourceArn ← v.req "ResourceArn" + return { resourceArn } + +structure GetDataProtectionPolicyResponse where + /-- Retrieves the DataProtectionPolicy in JSON string format. -/ + dataProtectionPolicy : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetDataProtectionPolicyResponse where + schema := .struct "GetDataProtectionPolicyResponse" [({ name := "DataProtectionPolicy" }, .string)] + toValue x := record [putOpt "DataProtectionPolicy" x.dataProtectionPolicy] + ofValue v := do + let dataProtectionPolicy ← v.opt "DataProtectionPolicy" + return { dataProtectionPolicy } + +/-- Input for GetEndpointAttributes action. -/ +structure GetEndpointAttributesInput where + /-- EndpointArn for GetEndpointAttributes input. -/ + endpointArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetEndpointAttributesInput where + schema := .struct "GetEndpointAttributesInput" [({ name := "EndpointArn", required := true }, .string)] + toValue x := record [put "EndpointArn" x.endpointArn] + ofValue v := do + let endpointArn ← v.req "EndpointArn" + return { endpointArn } + +/-- Response from GetEndpointAttributes of the EndpointArn . -/ +structure GetEndpointAttributesResponse where + /-- Attributes include the following: CustomUserData – arbitrary user data to associate with the endpoint. -/ + attributes : Option (Dict String String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetEndpointAttributesResponse where + schema := .struct "GetEndpointAttributesResponse" [({ name := "Attributes" }, (.map .string .string "key" "value"))] + toValue x := record [putOpt "Attributes" x.attributes] + ofValue v := do + let attributes ← v.opt "Attributes" + return { attributes } + +/-- Input for GetPlatformApplicationAttributes action. -/ +structure GetPlatformApplicationAttributesInput where + /-- PlatformApplicationArn for GetPlatformApplicationAttributesInput. -/ + platformApplicationArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetPlatformApplicationAttributesInput where + schema := .struct "GetPlatformApplicationAttributesInput" [({ name := "PlatformApplicationArn", required := true }, .string)] + toValue x := record [put "PlatformApplicationArn" x.platformApplicationArn] + ofValue v := do + let platformApplicationArn ← v.req "PlatformApplicationArn" + return { platformApplicationArn } + +/-- Response for GetPlatformApplicationAttributes action. -/ +structure GetPlatformApplicationAttributesResponse where + /-- Attributes include the following: AppleCertificateExpiryDate – The expiry date of the SSL certificate used to configure certificate-based authentication. -/ + attributes : Option (Dict String String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetPlatformApplicationAttributesResponse where + schema := .struct "GetPlatformApplicationAttributesResponse" [({ name := "Attributes" }, (.map .string .string "key" "value"))] + toValue x := record [putOpt "Attributes" x.attributes] + ofValue v := do + let attributes ← v.opt "Attributes" + return { attributes } + +/-- The input for the GetSMSAttributes request. -/ +structure GetSMSAttributesInput where + /-- A list of the individual attribute names, such as MonthlySpendLimit , for which you want values. -/ + attributes : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetSMSAttributesInput where + schema := .struct "GetSMSAttributesInput" [({ name := "attributes" }, (.list .string "member"))] + toValue x := record [putOpt "attributes" x.attributes] + ofValue v := do + let attributes ← v.opt "attributes" + return { attributes } + +/-- The response from the GetSMSAttributes request. -/ +structure GetSMSAttributesResponse where + /-- The SMS attribute names and their values. -/ + attributes : Option (Dict String String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetSMSAttributesResponse where + schema := .struct "GetSMSAttributesResponse" [({ name := "attributes" }, (.map .string .string "key" "value"))] + toValue x := record [putOpt "attributes" x.attributes] + ofValue v := do + let attributes ← v.opt "attributes" + return { attributes } + +structure GetSMSSandboxAccountStatusInput where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetSMSSandboxAccountStatusInput where + schema := .struct "GetSMSSandboxAccountStatusInput" [] + toValue _ := record [] + ofValue _ := do + return { } + +structure GetSMSSandboxAccountStatusResult where + /-- Indicates whether the calling Amazon Web Services account is in the SMS sandbox. -/ + isInSandbox : Bool +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetSMSSandboxAccountStatusResult where + schema := .struct "GetSMSSandboxAccountStatusResult" [({ name := "IsInSandbox", required := true }, .bool)] + toValue x := record [put "IsInSandbox" x.isInSandbox] + ofValue v := do + let isInSandbox ← v.req "IsInSandbox" + return { isInSandbox } + +/-- Input for GetSubscriptionAttributes. -/ +structure GetSubscriptionAttributesInput where + /-- The ARN of the subscription whose properties you want to get. -/ + subscriptionArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetSubscriptionAttributesInput where + schema := .struct "GetSubscriptionAttributesInput" [({ name := "SubscriptionArn", required := true }, .string)] + toValue x := record [put "SubscriptionArn" x.subscriptionArn] + ofValue v := do + let subscriptionArn ← v.req "SubscriptionArn" + return { subscriptionArn } + +/-- Response for GetSubscriptionAttributes action. -/ +structure GetSubscriptionAttributesResponse where + /-- A map of the subscription's attributes. -/ + attributes : Option (Dict String String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetSubscriptionAttributesResponse where + schema := .struct "GetSubscriptionAttributesResponse" [({ name := "Attributes" }, (.map .string .string "key" "value"))] + toValue x := record [putOpt "Attributes" x.attributes] + ofValue v := do + let attributes ← v.opt "Attributes" + return { attributes } + +/-- Input for GetTopicAttributes action. -/ +structure GetTopicAttributesInput where + /-- The ARN of the topic whose properties you want to get. -/ + topicArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetTopicAttributesInput where + schema := .struct "GetTopicAttributesInput" [({ name := "TopicArn", required := true }, .string)] + toValue x := record [put "TopicArn" x.topicArn] + ofValue v := do + let topicArn ← v.req "TopicArn" + return { topicArn } + +/-- Response for GetTopicAttributes action. -/ +structure GetTopicAttributesResponse where + /-- A map of the topic's attributes. -/ + attributes : Option (Dict String String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetTopicAttributesResponse where + schema := .struct "GetTopicAttributesResponse" [({ name := "Attributes" }, (.map .string .string "key" "value"))] + toValue x := record [putOpt "Attributes" x.attributes] + ofValue v := do + let attributes ← v.opt "Attributes" + return { attributes } + +/-- Indicates an internal service error. -/ +structure InternalErrorException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InternalErrorException where + schema := .struct "InternalErrorException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The Id of a batch entry in a batch request doesn't abide by the specification. -/ +structure InvalidBatchEntryIdException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidBatchEntryIdException where + schema := .struct "InvalidBatchEntryIdException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Indicates that a request parameter does not comply with the associated constraints. -/ +structure InvalidParameterException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidParameterException where + schema := .struct "InvalidParameterException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Indicates that a request parameter does not comply with the associated constraints. -/ +structure InvalidParameterValueException where + /-- The parameter of an entry in a request doesn't abide by the specification. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidParameterValueException where + schema := .struct "InvalidParameterValueException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The credential signature isn't valid. -/ +structure InvalidSecurityException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidSecurityException where + schema := .struct "InvalidSecurityException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Indicates that the specified state is not a valid state for an event source. -/ +structure InvalidStateException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidStateException where + schema := .struct "InvalidStateException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The ciphertext references a key that doesn't exist or that you don't have access to. -/ +structure KMSAccessDeniedException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KMSAccessDeniedException where + schema := .struct "KMSAccessDeniedException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The request was rejected because the specified Amazon Web Services KMS key isn't enabled. -/ +structure KMSDisabledException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KMSDisabledException where + schema := .struct "KMSDisabledException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The request was rejected because the state of the specified resource isn't valid for this request. -/ +structure KMSInvalidStateException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KMSInvalidStateException where + schema := .struct "KMSInvalidStateException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The request was rejected because the specified entity or resource can't be found. -/ +structure KMSNotFoundException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KMSNotFoundException where + schema := .struct "KMSNotFoundException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The Amazon Web Services access key ID needs a subscription for the service. -/ +structure KMSOptInRequired where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KMSOptInRequired where + schema := .struct "KMSOptInRequired" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The request was denied due to request throttling. -/ +structure KMSThrottlingException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KMSThrottlingException where + schema := .struct "KMSThrottlingException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Supported language code for sending OTP message. -/ +inductive LanguageCodeString where + | de_DE + | en_GB + | en_US + | es_419 + | es_ES + | fr_CA + | fr_FR + | it_IT + | jp_JP + | kr_KR + | pt_BR + | zh_CN + | zh_TW +deriving DecidableEq, Repr, Inhabited + +def LanguageCodeString.wire : LanguageCodeString → String + | .de_DE => "de-DE" + | .en_GB => "en-GB" + | .en_US => "en-US" + | .es_419 => "es-419" + | .es_ES => "es-ES" + | .fr_CA => "fr-CA" + | .fr_FR => "fr-FR" + | .it_IT => "it-IT" + | .jp_JP => "ja-JP" + | .kr_KR => "kr-KR" + | .pt_BR => "pt-BR" + | .zh_CN => "zh-CN" + | .zh_TW => "zh-TW" + +def LanguageCodeString.wireValues : List (String × LanguageCodeString) := [ + ("de-DE", .de_DE), + ("en-GB", .en_GB), + ("en-US", .en_US), + ("es-419", .es_419), + ("es-ES", .es_ES), + ("fr-CA", .fr_CA), + ("fr-FR", .fr_FR), + ("it-IT", .it_IT), + ("ja-JP", .jp_JP), + ("kr-KR", .kr_KR), + ("pt-BR", .pt_BR), + ("zh-CN", .zh_CN), + ("zh-TW", .zh_TW)] + +def LanguageCodeString.ofWire (text : String) : Except String LanguageCodeString := + match List.find? (·.1 == text) LanguageCodeString.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"LanguageCodeString has no value {text}" + +instance : Key LanguageCodeString := ⟨LanguageCodeString.wire, LanguageCodeString.ofWire⟩ + +instance : Shape LanguageCodeString where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => LanguageCodeString.ofWire text + | _ => .error "expected a string" + +/-- Input for ListEndpointsByPlatformApplication action. -/ +structure ListEndpointsByPlatformApplicationInput where + /-- NextToken string is used when calling ListEndpointsByPlatformApplication action to retrieve additional records that are available after the first page results. -/ + nextToken : Option String := none + /-- PlatformApplicationArn for ListEndpointsByPlatformApplicationInput action. -/ + platformApplicationArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListEndpointsByPlatformApplicationInput where + schema := .struct "ListEndpointsByPlatformApplicationInput" [({ name := "NextToken" }, .string), + ({ name := "PlatformApplicationArn", required := true }, .string)] + toValue x := record [putOpt "NextToken" x.nextToken, put "PlatformApplicationArn" x.platformApplicationArn] + ofValue v := do + let nextToken ← v.opt "NextToken" + let platformApplicationArn ← v.req "PlatformApplicationArn" + return { nextToken, platformApplicationArn } + +structure ListOriginationNumbersRequest where + /-- The maximum number of origination numbers to return. -/ + maxResults : Option Int := none + /-- Token that the previous ListOriginationNumbers request returns. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListOriginationNumbersRequest where + schema := .struct "ListOriginationNumbersRequest" [({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { maxResults, nextToken } + +/-- The input for the ListPhoneNumbersOptedOut action. -/ +structure ListPhoneNumbersOptedOutInput where + /-- A NextToken string is used when you call the ListPhoneNumbersOptedOut action to retrieve additional records that are available after the first page of results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListPhoneNumbersOptedOutInput where + schema := .struct "ListPhoneNumbersOptedOutInput" [({ name := "nextToken" }, .string)] + toValue x := record [putOpt "nextToken" x.nextToken] + ofValue v := do + let nextToken ← v.opt "nextToken" + return { nextToken } + +/-- The response from the ListPhoneNumbersOptedOut action. -/ +structure ListPhoneNumbersOptedOutResponse where + /-- A NextToken string is returned when you call the ListPhoneNumbersOptedOut action if additional records are available after the first page of results. -/ + nextToken : Option String := none + /-- A list of phone numbers that are opted out of receiving SMS messages. -/ + phoneNumbers : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListPhoneNumbersOptedOutResponse where + schema := .struct "ListPhoneNumbersOptedOutResponse" [({ name := "nextToken" }, .string), + ({ name := "phoneNumbers" }, (.list .string "member"))] + toValue x := record [putOpt "nextToken" x.nextToken, putOpt "phoneNumbers" x.phoneNumbers] + ofValue v := do + let nextToken ← v.opt "nextToken" + let phoneNumbers ← v.opt "phoneNumbers" + return { nextToken, phoneNumbers } + +/-- Input for ListPlatformApplications action. -/ +structure ListPlatformApplicationsInput where + /-- NextToken string is used when calling ListPlatformApplications action to retrieve additional records that are available after the first page results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListPlatformApplicationsInput where + schema := .struct "ListPlatformApplicationsInput" [({ name := "NextToken" }, .string)] + toValue x := record [putOpt "NextToken" x.nextToken] + ofValue v := do + let nextToken ← v.opt "NextToken" + return { nextToken } + +structure ListSMSSandboxPhoneNumbersInput where + /-- The maximum number of phone numbers to return. -/ + maxResults : Option Int := none + /-- Token that the previous ListSMSSandboxPhoneNumbersInput request returns. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListSMSSandboxPhoneNumbersInput where + schema := .struct "ListSMSSandboxPhoneNumbersInput" [({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken] + ofValue v := do + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + return { maxResults, nextToken } + +/-- Input for ListSubscriptionsByTopic action. -/ +structure ListSubscriptionsByTopicInput where + /-- Token returned by the previous ListSubscriptionsByTopic request. -/ + nextToken : Option String := none + /-- The ARN of the topic for which you wish to find subscriptions. -/ + topicArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListSubscriptionsByTopicInput where + schema := .struct "ListSubscriptionsByTopicInput" [({ name := "NextToken" }, .string), + ({ name := "TopicArn", required := true }, .string)] + toValue x := record [putOpt "NextToken" x.nextToken, put "TopicArn" x.topicArn] + ofValue v := do + let nextToken ← v.opt "NextToken" + let topicArn ← v.req "TopicArn" + return { nextToken, topicArn } + +/-- Input for ListSubscriptions action. -/ +structure ListSubscriptionsInput where + /-- Token returned by the previous ListSubscriptions request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListSubscriptionsInput where + schema := .struct "ListSubscriptionsInput" [({ name := "NextToken" }, .string)] + toValue x := record [putOpt "NextToken" x.nextToken] + ofValue v := do + let nextToken ← v.opt "NextToken" + return { nextToken } + +structure ListTagsForResourceRequest where + /-- The ARN of the topic for which to list tags. -/ + resourceArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListTagsForResourceRequest where + schema := .struct "ListTagsForResourceRequest" [({ name := "ResourceArn", required := true }, .string)] + toValue x := record [put "ResourceArn" x.resourceArn] + ofValue v := do + let resourceArn ← v.req "ResourceArn" + return { resourceArn } + +structure ListTopicsInput where + /-- Token returned by the previous ListTopics request. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListTopicsInput where + schema := .struct "ListTopicsInput" [({ name := "NextToken" }, .string)] + toValue x := record [putOpt "NextToken" x.nextToken] + ofValue v := do + let nextToken ← v.opt "NextToken" + return { nextToken } + +/-- The user-specified message attribute value. -/ +structure MessageAttributeValue where + /-- Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images. -/ + binaryValue : Option Blob := none + /-- Amazon SNS supports the following logical data types: String, String.Array, Number, and Binary. -/ + dataType : String + /-- Strings are Unicode with UTF8 binary encoding. -/ + stringValue : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MessageAttributeValue where + schema := .struct "MessageAttributeValue" [({ name := "BinaryValue" }, .blob), + ({ name := "DataType", required := true }, .string), + ({ name := "StringValue" }, .string)] + toValue x := record [putOpt "BinaryValue" x.binaryValue, put "DataType" x.dataType, putOpt "StringValue" x.stringValue] + ofValue v := do + let binaryValue ← v.opt "BinaryValue" + let dataType ← v.req "DataType" + let stringValue ← v.opt "StringValue" + return { binaryValue, dataType, stringValue } + +/-- Indicates that the requested resource does not exist. -/ +structure NotFoundException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape NotFoundException where + schema := .struct "NotFoundException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Enum listing out all supported number capabilities. -/ +inductive NumberCapability where + | mms + | sms + | voice +deriving DecidableEq, Repr, Inhabited + +def NumberCapability.wire : NumberCapability → String + | .mms => "MMS" + | .sms => "SMS" + | .voice => "VOICE" + +def NumberCapability.wireValues : List (String × NumberCapability) := [ + ("MMS", .mms), + ("SMS", .sms), + ("VOICE", .voice)] + +def NumberCapability.ofWire (text : String) : Except String NumberCapability := + match List.find? (·.1 == text) NumberCapability.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"NumberCapability has no value {text}" + +instance : Key NumberCapability := ⟨NumberCapability.wire, NumberCapability.ofWire⟩ + +instance : Shape NumberCapability where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => NumberCapability.ofWire text + | _ => .error "expected a string" + +/-- Input for the OptInPhoneNumber action. -/ +structure OptInPhoneNumberInput where + /-- The phone number to opt in. -/ + phoneNumber : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape OptInPhoneNumberInput where + schema := .struct "OptInPhoneNumberInput" [({ name := "phoneNumber", required := true }, .string)] + toValue x := record [put "phoneNumber" x.phoneNumber] + ofValue v := do + let phoneNumber ← v.req "phoneNumber" + return { phoneNumber } + +/-- The response for the OptInPhoneNumber action. -/ +structure OptInPhoneNumberResponse where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape OptInPhoneNumberResponse where + schema := .struct "OptInPhoneNumberResponse" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- Indicates that the specified phone number opted out of receiving SMS messages from your Amazon Web Services account. -/ +structure OptedOutException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape OptedOutException where + schema := .struct "OptedOutException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Platform application object. -/ +structure PlatformApplication where + /-- Attributes for platform application object. -/ + attributes : Option (Dict String String) := none + /-- PlatformApplicationArn for platform application object. -/ + platformApplicationArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PlatformApplication where + schema := .struct "PlatformApplication" [({ name := "Attributes" }, (.map .string .string "key" "value")), + ({ name := "PlatformApplicationArn" }, .string)] + toValue x := record [putOpt "Attributes" x.attributes, putOpt "PlatformApplicationArn" x.platformApplicationArn] + ofValue v := do + let attributes ← v.opt "Attributes" + let platformApplicationArn ← v.opt "PlatformApplicationArn" + return { attributes, platformApplicationArn } + +/-- Exception error indicating platform application disabled. -/ +structure PlatformApplicationDisabledException where + /-- Message for platform application disabled. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PlatformApplicationDisabledException where + schema := .struct "PlatformApplicationDisabledException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Encloses data related to a successful message in a batch request for topic. -/ +structure PublishBatchResultEntry where + /-- The Id of an entry in a batch request. -/ + id : Option String := none + /-- An identifier for the message. -/ + messageId : Option String := none + /-- This parameter applies only to FIFO (first-in-first-out) topics. -/ + sequenceNumber : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PublishBatchResultEntry where + schema := .struct "PublishBatchResultEntry" [({ name := "Id" }, .string), + ({ name := "MessageId" }, .string), + ({ name := "SequenceNumber" }, .string)] + toValue x := record [putOpt "Id" x.id, putOpt "MessageId" x.messageId, putOpt "SequenceNumber" x.sequenceNumber] + ofValue v := do + let id ← v.opt "Id" + let messageId ← v.opt "MessageId" + let sequenceNumber ← v.opt "SequenceNumber" + return { id, messageId, sequenceNumber } + +/-- Response for Publish action. -/ +structure PublishResponse where + /-- Unique identifier assigned to the published message. -/ + messageId : Option String := none + /-- This response element applies only to FIFO (first-in-first-out) topics. -/ + sequenceNumber : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PublishResponse where + schema := .struct "PublishResponse" [({ name := "MessageId" }, .string), + ({ name := "SequenceNumber" }, .string)] + toValue x := record [putOpt "MessageId" x.messageId, putOpt "SequenceNumber" x.sequenceNumber] + ofValue v := do + let messageId ← v.opt "MessageId" + let sequenceNumber ← v.opt "SequenceNumber" + return { messageId, sequenceNumber } + +structure PutDataProtectionPolicyInput where + /-- The JSON serialization of the topic's DataProtectionPolicy . -/ + dataProtectionPolicy : String + /-- The ARN of the topic whose DataProtectionPolicy you want to add or update. -/ + resourceArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape PutDataProtectionPolicyInput where + schema := .struct "PutDataProtectionPolicyInput" [({ name := "DataProtectionPolicy", required := true }, .string), + ({ name := "ResourceArn", required := true }, .string)] + toValue x := record [put "DataProtectionPolicy" x.dataProtectionPolicy, put "ResourceArn" x.resourceArn] + ofValue v := do + let dataProtectionPolicy ← v.req "DataProtectionPolicy" + let resourceArn ← v.req "ResourceArn" + return { dataProtectionPolicy, resourceArn } + +/-- Input for RemovePermission action. -/ +structure RemovePermissionInput where + /-- The unique label of the statement you want to remove. -/ + label : String + /-- The ARN of the topic whose access control policy you wish to modify. -/ + topicArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape RemovePermissionInput where + schema := .struct "RemovePermissionInput" [({ name := "Label", required := true }, .string), + ({ name := "TopicArn", required := true }, .string)] + toValue x := record [put "Label" x.label, put "TopicArn" x.topicArn] + ofValue v := do + let label ← v.req "Label" + let topicArn ← v.req "TopicArn" + return { label, topicArn } + +/-- Indicates that the request parameter has exceeded the maximum number of concurrent message replays. -/ +structure ReplayLimitExceededException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReplayLimitExceededException where + schema := .struct "ReplayLimitExceededException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Can’t perform the action on the specified resource. -/ +structure ResourceNotFoundException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResourceNotFoundException where + schema := .struct "ResourceNotFoundException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Enum listing out all supported route types. -/ +inductive RouteType where + | premium + | promotional + | transactional +deriving DecidableEq, Repr, Inhabited + +def RouteType.wire : RouteType → String + | .premium => "Premium" + | .promotional => "Promotional" + | .transactional => "Transactional" + +def RouteType.wireValues : List (String × RouteType) := [ + ("Premium", .premium), + ("Promotional", .promotional), + ("Transactional", .transactional)] + +def RouteType.ofWire (text : String) : Except String RouteType := + match List.find? (·.1 == text) RouteType.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"RouteType has no value {text}" + +instance : Key RouteType := ⟨RouteType.wire, RouteType.ofWire⟩ + +instance : Shape RouteType where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => RouteType.ofWire text + | _ => .error "expected a string" + +/-- Enum listing out all supported destination phone number verification statuses. -/ +inductive SMSSandboxPhoneNumberVerificationStatus where + | pending + | verified +deriving DecidableEq, Repr, Inhabited + +def SMSSandboxPhoneNumberVerificationStatus.wire : SMSSandboxPhoneNumberVerificationStatus → String + | .pending => "Pending" + | .verified => "Verified" + +def SMSSandboxPhoneNumberVerificationStatus.wireValues : List (String × SMSSandboxPhoneNumberVerificationStatus) := [ + ("Pending", .pending), + ("Verified", .verified)] + +def SMSSandboxPhoneNumberVerificationStatus.ofWire (text : String) : Except String SMSSandboxPhoneNumberVerificationStatus := + match List.find? (·.1 == text) SMSSandboxPhoneNumberVerificationStatus.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"SMSSandboxPhoneNumberVerificationStatus has no value {text}" + +instance : Key SMSSandboxPhoneNumberVerificationStatus := ⟨SMSSandboxPhoneNumberVerificationStatus.wire, SMSSandboxPhoneNumberVerificationStatus.ofWire⟩ + +instance : Shape SMSSandboxPhoneNumberVerificationStatus where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => SMSSandboxPhoneNumberVerificationStatus.ofWire text + | _ => .error "expected a string" + +/-- Input for SetEndpointAttributes action. -/ +structure SetEndpointAttributesInput where + /-- A map of the endpoint attributes. -/ + attributes : (Dict String String) + /-- EndpointArn used for SetEndpointAttributes action. -/ + endpointArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape SetEndpointAttributesInput where + schema := .struct "SetEndpointAttributesInput" [({ name := "Attributes", required := true }, (.map .string .string "key" "value")), + ({ name := "EndpointArn", required := true }, .string)] + toValue x := record [put "Attributes" x.attributes, put "EndpointArn" x.endpointArn] + ofValue v := do + let attributes ← v.req "Attributes" + let endpointArn ← v.req "EndpointArn" + return { attributes, endpointArn } + +/-- Input for SetPlatformApplicationAttributes action. -/ +structure SetPlatformApplicationAttributesInput where + /-- A map of the platform application attributes. -/ + attributes : (Dict String String) + /-- PlatformApplicationArn for SetPlatformApplicationAttributes action. -/ + platformApplicationArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape SetPlatformApplicationAttributesInput where + schema := .struct "SetPlatformApplicationAttributesInput" [({ name := "Attributes", required := true }, (.map .string .string "key" "value")), + ({ name := "PlatformApplicationArn", required := true }, .string)] + toValue x := record [put "Attributes" x.attributes, put "PlatformApplicationArn" x.platformApplicationArn] + ofValue v := do + let attributes ← v.req "Attributes" + let platformApplicationArn ← v.req "PlatformApplicationArn" + return { attributes, platformApplicationArn } + +/-- The input for the SetSMSAttributes action. -/ +structure SetSMSAttributesInput where + /-- The default settings for sending SMS messages from your Amazon Web Services account. -/ + attributes : (Dict String String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape SetSMSAttributesInput where + schema := .struct "SetSMSAttributesInput" [({ name := "attributes", required := true }, (.map .string .string "key" "value"))] + toValue x := record [put "attributes" x.attributes] + ofValue v := do + let attributes ← v.req "attributes" + return { attributes } + +/-- The response for the SetSMSAttributes action. -/ +structure SetSMSAttributesResponse where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape SetSMSAttributesResponse where + schema := .struct "SetSMSAttributesResponse" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- Input for SetSubscriptionAttributes action. -/ +structure SetSubscriptionAttributesInput where + /-- A map of attributes with their corresponding values. -/ + attributeName : String + /-- The new value for the attribute in JSON format. -/ + attributeValue : Option String := none + /-- The ARN of the subscription to modify. -/ + subscriptionArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape SetSubscriptionAttributesInput where + schema := .struct "SetSubscriptionAttributesInput" [({ name := "AttributeName", required := true }, .string), + ({ name := "AttributeValue" }, .string), + ({ name := "SubscriptionArn", required := true }, .string)] + toValue x := record [put "AttributeName" x.attributeName, putOpt "AttributeValue" x.attributeValue, put "SubscriptionArn" x.subscriptionArn] + ofValue v := do + let attributeName ← v.req "AttributeName" + let attributeValue ← v.opt "AttributeValue" + let subscriptionArn ← v.req "SubscriptionArn" + return { attributeName, attributeValue, subscriptionArn } + +/-- Input for SetTopicAttributes action. -/ +structure SetTopicAttributesInput where + /-- A map of attributes with their corresponding values. -/ + attributeName : String + /-- The new value for the attribute. -/ + attributeValue : Option String := none + /-- The ARN of the topic to modify. -/ + topicArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape SetTopicAttributesInput where + schema := .struct "SetTopicAttributesInput" [({ name := "AttributeName", required := true }, .string), + ({ name := "AttributeValue" }, .string), + ({ name := "TopicArn", required := true }, .string)] + toValue x := record [put "AttributeName" x.attributeName, putOpt "AttributeValue" x.attributeValue, put "TopicArn" x.topicArn] + ofValue v := do + let attributeName ← v.req "AttributeName" + let attributeValue ← v.opt "AttributeValue" + let topicArn ← v.req "TopicArn" + return { attributeName, attributeValue, topicArn } + +/-- A tag has been added to a resource with the same ARN as a deleted resource. -/ +structure StaleTagException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StaleTagException where + schema := .struct "StaleTagException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Input for Subscribe action. -/ +structure SubscribeInput where + /-- A map of attributes with their corresponding values. -/ + attributes : Option (Dict String String) := none + /-- The endpoint that you want to receive notifications. -/ + endpoint : Option String := none + /-- The protocol that you want to use. -/ + protocol : String + /-- Sets whether the response from the Subscribe request includes the subscription ARN, even if the subscription is not yet confirmed. -/ + returnSubscriptionArn : Option Bool := none + /-- The ARN of the topic you want to subscribe to. -/ + topicArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape SubscribeInput where + schema := .struct "SubscribeInput" [({ name := "Attributes" }, (.map .string .string "key" "value")), + ({ name := "Endpoint" }, .string), + ({ name := "Protocol", required := true }, .string), + ({ name := "ReturnSubscriptionArn" }, .bool), + ({ name := "TopicArn", required := true }, .string)] + toValue x := record [putOpt "Attributes" x.attributes, putOpt "Endpoint" x.endpoint, put "Protocol" x.protocol, putOpt "ReturnSubscriptionArn" x.returnSubscriptionArn, put "TopicArn" x.topicArn] + ofValue v := do + let attributes ← v.opt "Attributes" + let endpoint ← v.opt "Endpoint" + let protocol ← v.req "Protocol" + let returnSubscriptionArn ← v.opt "ReturnSubscriptionArn" + let topicArn ← v.req "TopicArn" + return { attributes, endpoint, protocol, returnSubscriptionArn, topicArn } + +/-- Response for Subscribe action. -/ +structure SubscribeResponse where + /-- The ARN of the subscription if it is confirmed, or the string "pending confirmation" if the subscription requires confirmation. -/ + subscriptionArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SubscribeResponse where + schema := .struct "SubscribeResponse" [({ name := "SubscriptionArn" }, .string)] + toValue x := record [putOpt "SubscriptionArn" x.subscriptionArn] + ofValue v := do + let subscriptionArn ← v.opt "SubscriptionArn" + return { subscriptionArn } + +/-- A wrapper type for the attributes of an Amazon SNS subscription. -/ +structure Subscription where + /-- The subscription's endpoint (format depends on the protocol). -/ + endpoint : Option String := none + /-- The subscription's owner. -/ + owner : Option String := none + /-- The subscription's protocol. -/ + protocol : Option String := none + /-- The subscription's ARN. -/ + subscriptionArn : Option String := none + /-- The ARN of the subscription's topic. -/ + topicArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Subscription where + schema := .struct "Subscription" [({ name := "Endpoint" }, .string), + ({ name := "Owner" }, .string), + ({ name := "Protocol" }, .string), + ({ name := "SubscriptionArn" }, .string), + ({ name := "TopicArn" }, .string)] + toValue x := record [putOpt "Endpoint" x.endpoint, putOpt "Owner" x.owner, putOpt "Protocol" x.protocol, putOpt "SubscriptionArn" x.subscriptionArn, putOpt "TopicArn" x.topicArn] + ofValue v := do + let endpoint ← v.opt "Endpoint" + let owner ← v.opt "Owner" + let protocol ← v.opt "Protocol" + let subscriptionArn ← v.opt "SubscriptionArn" + let topicArn ← v.opt "TopicArn" + return { endpoint, owner, protocol, subscriptionArn, topicArn } + +/-- Indicates that the customer already owns the maximum allowed number of subscriptions. -/ +structure SubscriptionLimitExceededException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SubscriptionLimitExceededException where + schema := .struct "SubscriptionLimitExceededException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The list of tags to be added to the specified topic. -/ +structure Tag where + /-- The required key portion of the tag. -/ + key : String + /-- The optional value portion of the tag. -/ + value : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape Tag where + schema := .struct "Tag" [({ name := "Key", required := true }, .string), + ({ name := "Value", required := true }, .string)] + toValue x := record [put "Key" x.key, put "Value" x.value] + ofValue v := do + let key ← v.req "Key" + let value ← v.req "Value" + return { key, value } + +/-- Can't add more than 50 tags to a topic. -/ +structure TagLimitExceededException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TagLimitExceededException where + schema := .struct "TagLimitExceededException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The request doesn't comply with the IAM tag policy. -/ +structure TagPolicyException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TagPolicyException where + schema := .struct "TagPolicyException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +structure TagResourceResponse where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape TagResourceResponse where + schema := .struct "TagResourceResponse" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- Indicates that the rate at which requests have been submitted for this action exceeds the limit for your Amazon Web Services account. -/ +structure ThrottledException where + /-- Throttled request. -/ + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ThrottledException where + schema := .struct "ThrottledException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The batch request contains more entries than permissible (more than 10). -/ +structure TooManyEntriesInBatchRequestException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TooManyEntriesInBatchRequestException where + schema := .struct "TooManyEntriesInBatchRequestException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- A wrapper type for the topic's Amazon Resource Name (ARN). -/ +structure Topic where + /-- The topic's ARN. -/ + topicArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Topic where + schema := .struct "Topic" [({ name := "TopicArn" }, .string)] + toValue x := record [putOpt "TopicArn" x.topicArn] + ofValue v := do + let topicArn ← v.opt "TopicArn" + return { topicArn } + +/-- Indicates that the customer already owns the maximum allowed number of topics. -/ +structure TopicLimitExceededException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TopicLimitExceededException where + schema := .struct "TopicLimitExceededException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Input for Unsubscribe action. -/ +structure UnsubscribeInput where + /-- The ARN of the subscription to be deleted. -/ + subscriptionArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape UnsubscribeInput where + schema := .struct "UnsubscribeInput" [({ name := "SubscriptionArn", required := true }, .string)] + toValue x := record [put "SubscriptionArn" x.subscriptionArn] + ofValue v := do + let subscriptionArn ← v.req "SubscriptionArn" + return { subscriptionArn } + +structure UntagResourceRequest where + /-- The ARN of the topic from which to remove tags. -/ + resourceArn : String + /-- The list of tag keys to remove from the specified topic. -/ + tagKeys : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape UntagResourceRequest where + schema := .struct "UntagResourceRequest" [({ name := "ResourceArn", required := true }, .string), + ({ name := "TagKeys", required := true }, (.list .string "member"))] + toValue x := record [put "ResourceArn" x.resourceArn, put "TagKeys" x.tagKeys] + ofValue v := do + let resourceArn ← v.req "ResourceArn" + let tagKeys ← v.req "TagKeys" + return { resourceArn, tagKeys } + +structure UntagResourceResponse where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape UntagResourceResponse where + schema := .struct "UntagResourceResponse" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- Indicates that a request parameter does not comply with the associated constraints. -/ +structure UserErrorException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UserErrorException where + schema := .struct "UserErrorException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Indicates that a parameter in the request is invalid. -/ +structure ValidationException where + message : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ValidationException where + schema := .struct "ValidationException" [({ name := "Message", required := true }, .string)] + toValue x := record [put "Message" x.message] + ofValue v := do + let message ← v.req "Message" + return { message } + +/-- Indicates that the one-time password (OTP) used for verification is invalid. -/ +structure VerificationException where + message : String + /-- The status of the verification error. -/ + status : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerificationException where + schema := .struct "VerificationException" [({ name := "Message", required := true }, .string), + ({ name := "Status", required := true }, .string)] + toValue x := record [put "Message" x.message, put "Status" x.status] + ofValue v := do + let message ← v.req "Message" + let status ← v.req "Status" + return { message, status } + +structure VerifySMSSandboxPhoneNumberInput where + /-- The OTP sent to the destination number from the CreateSMSSandBoxPhoneNumber call. -/ + oneTimePassword : String + /-- The destination phone number to verify. -/ + phoneNumber : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifySMSSandboxPhoneNumberInput where + schema := .struct "VerifySMSSandboxPhoneNumberInput" [({ name := "OneTimePassword", required := true }, .string), + ({ name := "PhoneNumber", required := true }, .string)] + toValue x := record [put "OneTimePassword" x.oneTimePassword, put "PhoneNumber" x.phoneNumber] + ofValue v := do + let oneTimePassword ← v.req "OneTimePassword" + let phoneNumber ← v.req "PhoneNumber" + return { oneTimePassword, phoneNumber } + +/-- The destination phone number's verification status. -/ +structure VerifySMSSandboxPhoneNumberResult where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape VerifySMSSandboxPhoneNumberResult where + schema := .struct "VerifySMSSandboxPhoneNumberResult" [] + toValue _ := record [] + ofValue _ := do + return { } + +structure CreateSMSSandboxPhoneNumberInput where + /-- The language to use for sending the OTP. -/ + languageCode : Option LanguageCodeString := none + /-- The destination phone number to verify. -/ + phoneNumber : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateSMSSandboxPhoneNumberInput where + schema := .struct "CreateSMSSandboxPhoneNumberInput" [({ name := "LanguageCode" }, (Shape.schema LanguageCodeString)), + ({ name := "PhoneNumber", required := true }, .string)] + toValue x := record [putOpt "LanguageCode" x.languageCode, put "PhoneNumber" x.phoneNumber] + ofValue v := do + let languageCode ← v.opt "LanguageCode" + let phoneNumber ← v.req "PhoneNumber" + return { languageCode, phoneNumber } + +/-- Input for CreateTopic action. -/ +structure CreateTopicInput where + /-- A map of attributes with their corresponding values. -/ + attributes : Option (Dict String String) := none + /-- Amazon SNS message data protection is no longer available to new customers. -/ + dataProtectionPolicy : Option String := none + /-- The name of the topic you want to create. -/ + name : String + /-- The list of tags to add to a new topic. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateTopicInput where + schema := .struct "CreateTopicInput" [({ name := "Attributes" }, (.map .string .string "key" "value")), + ({ name := "DataProtectionPolicy" }, .string), + ({ name := "Name", required := true }, .string), + ({ name := "Tags" }, (.list (Shape.schema Tag) "member"))] + toValue x := record [putOpt "Attributes" x.attributes, putOpt "DataProtectionPolicy" x.dataProtectionPolicy, put "Name" x.name, putOpt "Tags" x.tags] + ofValue v := do + let attributes ← v.opt "Attributes" + let dataProtectionPolicy ← v.opt "DataProtectionPolicy" + let name ← v.req "Name" + let tags ← v.opt "Tags" + return { attributes, dataProtectionPolicy, name, tags } + +/-- Response for ListEndpointsByPlatformApplication action. -/ +structure ListEndpointsByPlatformApplicationResponse where + /-- Endpoints returned for ListEndpointsByPlatformApplication action. -/ + endpoints : Option (List Endpoint) := none + /-- NextToken string is returned when calling ListEndpointsByPlatformApplication action if additional records are available after the first page results. -/ + nextToken : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListEndpointsByPlatformApplicationResponse where + schema := .struct "ListEndpointsByPlatformApplicationResponse" [({ name := "Endpoints" }, (.list (Shape.schema Endpoint) "member")), + ({ name := "NextToken" }, .string)] + toValue x := record [putOpt "Endpoints" x.endpoints, putOpt "NextToken" x.nextToken] + ofValue v := do + let endpoints ← v.opt "Endpoints" + let nextToken ← v.opt "NextToken" + return { endpoints, nextToken } + +/-- Response for ListPlatformApplications action. -/ +structure ListPlatformApplicationsResponse where + /-- NextToken string is returned when calling ListPlatformApplications action if additional records are available after the first page results. -/ + nextToken : Option String := none + /-- Platform applications returned when calling ListPlatformApplications action. -/ + platformApplications : Option (List PlatformApplication) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListPlatformApplicationsResponse where + schema := .struct "ListPlatformApplicationsResponse" [({ name := "NextToken" }, .string), + ({ name := "PlatformApplications" }, (.list (Shape.schema PlatformApplication) "member"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "PlatformApplications" x.platformApplications] + ofValue v := do + let nextToken ← v.opt "NextToken" + let platformApplications ← v.opt "PlatformApplications" + return { nextToken, platformApplications } + +/-- Response for ListSubscriptionsByTopic action. -/ +structure ListSubscriptionsByTopicResponse where + /-- Token to pass along to the next ListSubscriptionsByTopic request. -/ + nextToken : Option String := none + /-- A list of subscriptions. -/ + subscriptions : Option (List Subscription) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListSubscriptionsByTopicResponse where + schema := .struct "ListSubscriptionsByTopicResponse" [({ name := "NextToken" }, .string), + ({ name := "Subscriptions" }, (.list (Shape.schema Subscription) "member"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "Subscriptions" x.subscriptions] + ofValue v := do + let nextToken ← v.opt "NextToken" + let subscriptions ← v.opt "Subscriptions" + return { nextToken, subscriptions } + +/-- Response for ListSubscriptions action. -/ +structure ListSubscriptionsResponse where + /-- Token to pass along to the next ListSubscriptions request. -/ + nextToken : Option String := none + /-- A list of subscriptions. -/ + subscriptions : Option (List Subscription) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListSubscriptionsResponse where + schema := .struct "ListSubscriptionsResponse" [({ name := "NextToken" }, .string), + ({ name := "Subscriptions" }, (.list (Shape.schema Subscription) "member"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "Subscriptions" x.subscriptions] + ofValue v := do + let nextToken ← v.opt "NextToken" + let subscriptions ← v.opt "Subscriptions" + return { nextToken, subscriptions } + +structure ListTagsForResourceResponse where + /-- The tags associated with the specified topic. -/ + tags : Option (List Tag) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListTagsForResourceResponse where + schema := .struct "ListTagsForResourceResponse" [({ name := "Tags" }, (.list (Shape.schema Tag) "member"))] + toValue x := record [putOpt "Tags" x.tags] + ofValue v := do + let tags ← v.opt "Tags" + return { tags } + +/-- Response for ListTopics action. -/ +structure ListTopicsResponse where + /-- Token to pass along to the next ListTopics request. -/ + nextToken : Option String := none + /-- A list of topic ARNs. -/ + topics : Option (List Topic) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListTopicsResponse where + schema := .struct "ListTopicsResponse" [({ name := "NextToken" }, .string), + ({ name := "Topics" }, (.list (Shape.schema Topic) "member"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "Topics" x.topics] + ofValue v := do + let nextToken ← v.opt "NextToken" + let topics ← v.opt "Topics" + return { nextToken, topics } + +/-- A list of phone numbers and their metadata. -/ +structure PhoneNumberInformation where + /-- The date and time when the phone number was created. -/ + createdAt : Option Timestamp := none + /-- The two-character code for the country or region, in ISO 3166-1 alpha-2 format. -/ + iso2CountryCode : Option String := none + /-- The capabilities of each phone number. -/ + numberCapabilities : Option (List NumberCapability) := none + /-- The phone number. -/ + phoneNumber : Option String := none + /-- The list of supported routes. -/ + routeType : Option RouteType := none + /-- The status of the phone number. -/ + status : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PhoneNumberInformation where + schema := .struct "PhoneNumberInformation" [({ name := "CreatedAt" }, (.time none)), + ({ name := "Iso2CountryCode" }, .string), + ({ name := "NumberCapabilities" }, (.list (Shape.schema NumberCapability) "member")), + ({ name := "PhoneNumber" }, .string), + ({ name := "RouteType" }, (Shape.schema RouteType)), + ({ name := "Status" }, .string)] + toValue x := record [putOpt "CreatedAt" x.createdAt, putOpt "Iso2CountryCode" x.iso2CountryCode, putOpt "NumberCapabilities" x.numberCapabilities, putOpt "PhoneNumber" x.phoneNumber, putOpt "RouteType" x.routeType, putOpt "Status" x.status] + ofValue v := do + let createdAt ← v.opt "CreatedAt" + let iso2CountryCode ← v.opt "Iso2CountryCode" + let numberCapabilities ← v.opt "NumberCapabilities" + let phoneNumber ← v.opt "PhoneNumber" + let routeType ← v.opt "RouteType" + let status ← v.opt "Status" + return { createdAt, iso2CountryCode, numberCapabilities, phoneNumber, routeType, status } + +/-- Contains the details of a single Amazon SNS message along with an Id that identifies a message within the batch. -/ +structure PublishBatchRequestEntry where + /-- An identifier for the message in this batch. -/ + id : String + /-- The body of the message. -/ + message : String + /-- Each message attribute consists of a Name , Type , and Value . -/ + messageAttributes : Option (Dict String MessageAttributeValue) := none + /-- This parameter applies only to FIFO (first-in-first-out) topics. -/ + messageDeduplicationId : Option String := none + /-- FIFO topics: The tag that specifies that a message belongs to a specific message group. -/ + messageGroupId : Option String := none + /-- Set MessageStructure to json if you want to send a different message for each protocol. -/ + messageStructure : Option String := none + /-- The subject of the batch message. -/ + subject : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PublishBatchRequestEntry where + schema := .struct "PublishBatchRequestEntry" [({ name := "Id", required := true }, .string), + ({ name := "Message", required := true }, .string), + ({ name := "MessageAttributes" }, (.map .string (Shape.schema MessageAttributeValue) "Name" "Value")), + ({ name := "MessageDeduplicationId" }, .string), + ({ name := "MessageGroupId" }, .string), + ({ name := "MessageStructure" }, .string), + ({ name := "Subject" }, .string)] + toValue x := record [put "Id" x.id, put "Message" x.message, putOpt "MessageAttributes" x.messageAttributes, putOpt "MessageDeduplicationId" x.messageDeduplicationId, putOpt "MessageGroupId" x.messageGroupId, putOpt "MessageStructure" x.messageStructure, putOpt "Subject" x.subject] + ofValue v := do + let id ← v.req "Id" + let message ← v.req "Message" + let messageAttributes ← v.opt "MessageAttributes" + let messageDeduplicationId ← v.opt "MessageDeduplicationId" + let messageGroupId ← v.opt "MessageGroupId" + let messageStructure ← v.opt "MessageStructure" + let subject ← v.opt "Subject" + return { id, message, messageAttributes, messageDeduplicationId, messageGroupId, messageStructure, subject } + +structure PublishBatchResponse where + /-- A list of failed PublishBatch responses. -/ + failed : Option (List BatchResultErrorEntry) := none + /-- A list of successful PublishBatch responses. -/ + successful : Option (List PublishBatchResultEntry) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PublishBatchResponse where + schema := .struct "PublishBatchResponse" [({ name := "Failed" }, (.list (Shape.schema BatchResultErrorEntry) "member")), + ({ name := "Successful" }, (.list (Shape.schema PublishBatchResultEntry) "member"))] + toValue x := record [putOpt "Failed" x.failed, putOpt "Successful" x.successful] + ofValue v := do + let failed ← v.opt "Failed" + let successful ← v.opt "Successful" + return { failed, successful } + +/-- Input for Publish action. -/ +structure PublishInput where + /-- The message you want to send. -/ + message : String + /-- Message attributes for Publish action. -/ + messageAttributes : Option (Dict String MessageAttributeValue) := none + /-- This parameter applies only to FIFO (first-in-first-out) topics. -/ + messageDeduplicationId : Option String := none + /-- The MessageGroupId can contain up to 128 alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!"#$%&'()*+,-./:; ?@[\]^_`{|}~) . -/ + messageGroupId : Option String := none + /-- Set MessageStructure to json if you want to send a different message for each protocol. -/ + messageStructure : Option String := none + /-- The phone number to which you want to deliver an SMS message. -/ + phoneNumber : Option String := none + /-- Optional parameter to be used as the "Subject" line when the message is delivered to email endpoints. -/ + subject : Option String := none + /-- If you don't specify a value for the TargetArn parameter, you must specify a value for the PhoneNumber or TopicArn parameters. -/ + targetArn : Option String := none + /-- The topic you want to publish to. -/ + topicArn : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PublishInput where + schema := .struct "PublishInput" [({ name := "Message", required := true }, .string), + ({ name := "MessageAttributes" }, (.map .string (Shape.schema MessageAttributeValue) "Name" "Value")), + ({ name := "MessageDeduplicationId" }, .string), + ({ name := "MessageGroupId" }, .string), + ({ name := "MessageStructure" }, .string), + ({ name := "PhoneNumber" }, .string), + ({ name := "Subject" }, .string), + ({ name := "TargetArn" }, .string), + ({ name := "TopicArn" }, .string)] + toValue x := record [put "Message" x.message, putOpt "MessageAttributes" x.messageAttributes, putOpt "MessageDeduplicationId" x.messageDeduplicationId, putOpt "MessageGroupId" x.messageGroupId, putOpt "MessageStructure" x.messageStructure, putOpt "PhoneNumber" x.phoneNumber, putOpt "Subject" x.subject, putOpt "TargetArn" x.targetArn, putOpt "TopicArn" x.topicArn] + ofValue v := do + let message ← v.req "Message" + let messageAttributes ← v.opt "MessageAttributes" + let messageDeduplicationId ← v.opt "MessageDeduplicationId" + let messageGroupId ← v.opt "MessageGroupId" + let messageStructure ← v.opt "MessageStructure" + let phoneNumber ← v.opt "PhoneNumber" + let subject ← v.opt "Subject" + let targetArn ← v.opt "TargetArn" + let topicArn ← v.opt "TopicArn" + return { message, messageAttributes, messageDeduplicationId, messageGroupId, messageStructure, phoneNumber, subject, targetArn, topicArn } + +/-- A verified or pending destination phone number in the SMS sandbox. -/ +structure SMSSandboxPhoneNumber where + /-- The destination phone number. -/ + phoneNumber : Option String := none + /-- The destination phone number's verification status. -/ + status : Option SMSSandboxPhoneNumberVerificationStatus := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SMSSandboxPhoneNumber where + schema := .struct "SMSSandboxPhoneNumber" [({ name := "PhoneNumber" }, .string), + ({ name := "Status" }, (Shape.schema SMSSandboxPhoneNumberVerificationStatus))] + toValue x := record [putOpt "PhoneNumber" x.phoneNumber, putOpt "Status" x.status] + ofValue v := do + let phoneNumber ← v.opt "PhoneNumber" + let status ← v.opt "Status" + return { phoneNumber, status } + +structure TagResourceRequest where + /-- The ARN of the topic to which to add tags. -/ + resourceArn : String + /-- The tags to be added to the specified topic. -/ + tags : (List Tag) +deriving DecidableEq, Repr, Inhabited + +instance : Shape TagResourceRequest where + schema := .struct "TagResourceRequest" [({ name := "ResourceArn", required := true }, .string), + ({ name := "Tags", required := true }, (.list (Shape.schema Tag) "member"))] + toValue x := record [put "ResourceArn" x.resourceArn, put "Tags" x.tags] + ofValue v := do + let resourceArn ← v.req "ResourceArn" + let tags ← v.req "Tags" + return { resourceArn, tags } + +structure ListOriginationNumbersResult where + /-- A NextToken string is returned when you call the ListOriginationNumbers operation if additional pages of records are available. -/ + nextToken : Option String := none + /-- A list of the calling account's verified and pending origination numbers. -/ + phoneNumbers : Option (List PhoneNumberInformation) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListOriginationNumbersResult where + schema := .struct "ListOriginationNumbersResult" [({ name := "NextToken" }, .string), + ({ name := "PhoneNumbers" }, (.list (Shape.schema PhoneNumberInformation) "member"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "PhoneNumbers" x.phoneNumbers] + ofValue v := do + let nextToken ← v.opt "NextToken" + let phoneNumbers ← v.opt "PhoneNumbers" + return { nextToken, phoneNumbers } + +structure ListSMSSandboxPhoneNumbersResult where + /-- A NextToken string is returned when you call the ListSMSSandboxPhoneNumbersInput operation if additional pages of records are available. -/ + nextToken : Option String := none + /-- A list of the calling account's pending and verified phone numbers. -/ + phoneNumbers : (List SMSSandboxPhoneNumber) +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListSMSSandboxPhoneNumbersResult where + schema := .struct "ListSMSSandboxPhoneNumbersResult" [({ name := "NextToken" }, .string), + ({ name := "PhoneNumbers", required := true }, (.list (Shape.schema SMSSandboxPhoneNumber) "member"))] + toValue x := record [putOpt "NextToken" x.nextToken, put "PhoneNumbers" x.phoneNumbers] + ofValue v := do + let nextToken ← v.opt "NextToken" + let phoneNumbers ← v.req "PhoneNumbers" + return { nextToken, phoneNumbers } + +structure PublishBatchInput where + /-- A list of PublishBatch request entries to be sent to the SNS topic. -/ + publishBatchRequestEntries : (List PublishBatchRequestEntry) + /-- The Amazon resource name (ARN) of the topic you want to batch publish to. -/ + topicArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape PublishBatchInput where + schema := .struct "PublishBatchInput" [({ name := "PublishBatchRequestEntries", required := true }, (.list (Shape.schema PublishBatchRequestEntry) "member")), + ({ name := "TopicArn", required := true }, .string)] + toValue x := record [put "PublishBatchRequestEntries" x.publishBatchRequestEntries, put "TopicArn" x.topicArn] + ofValue v := do + let publishBatchRequestEntries ← v.req "PublishBatchRequestEntries" + let topicArn ← v.req "TopicArn" + return { publishBatchRequestEntries, topicArn } + +/-- What `AddPermission` can fail with. -/ +inductive AddPermissionError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) +deriving DecidableEq, Repr + +def AddPermissionError.ofWire (name : String) (value : Value) : Option AddPermissionError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | _ => none + +/-- What `CheckIfPhoneNumberIsOptedOut` can fail with. -/ +inductive CheckIfPhoneNumberIsOptedOutError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that the rate at which requests have been submitted for this action exceeds the limit for your Amazon Web Services account. -/ + | throttledException (error : ThrottledException) +deriving DecidableEq, Repr + +def CheckIfPhoneNumberIsOptedOutError.ofWire (name : String) (value : Value) : Option CheckIfPhoneNumberIsOptedOutError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "ThrottledException" => (Shape.ofValue value).toOption.map .throttledException + | _ => none + +/-- What `ConfirmSubscription` can fail with. -/ +inductive ConfirmSubscriptionError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates that the number of filter polices in your Amazon Web Services account exceeds the limit. -/ + | filterPolicyLimitExceededException (error : FilterPolicyLimitExceededException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) + /-- Indicates that the request parameter has exceeded the maximum number of concurrent message replays. -/ + | replayLimitExceededException (error : ReplayLimitExceededException) + /-- Indicates that the customer already owns the maximum allowed number of subscriptions. -/ + | subscriptionLimitExceededException (error : SubscriptionLimitExceededException) +deriving DecidableEq, Repr + +def ConfirmSubscriptionError.ofWire (name : String) (value : Value) : Option ConfirmSubscriptionError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "FilterPolicyLimitExceededException" => (Shape.ofValue value).toOption.map .filterPolicyLimitExceededException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | "ReplayLimitExceededException" => (Shape.ofValue value).toOption.map .replayLimitExceededException + | "SubscriptionLimitExceededException" => (Shape.ofValue value).toOption.map .subscriptionLimitExceededException + | _ => none + +/-- What `CreatePlatformApplication` can fail with. -/ +inductive CreatePlatformApplicationError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) +deriving DecidableEq, Repr + +def CreatePlatformApplicationError.ofWire (name : String) (value : Value) : Option CreatePlatformApplicationError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | _ => none + +/-- What `CreatePlatformEndpoint` can fail with. -/ +inductive CreatePlatformEndpointError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) +deriving DecidableEq, Repr + +def CreatePlatformEndpointError.ofWire (name : String) (value : Value) : Option CreatePlatformEndpointError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | _ => none + +/-- What `CreateSMSSandboxPhoneNumber` can fail with. -/ +inductive CreateSMSSandboxPhoneNumberError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that the specified phone number opted out of receiving SMS messages from your Amazon Web Services account. -/ + | optedOutException (error : OptedOutException) + /-- Indicates that the rate at which requests have been submitted for this action exceeds the limit for your Amazon Web Services account. -/ + | throttledException (error : ThrottledException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | userErrorException (error : UserErrorException) +deriving DecidableEq, Repr + +def CreateSMSSandboxPhoneNumberError.ofWire (name : String) (value : Value) : Option CreateSMSSandboxPhoneNumberError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "OptedOutException" => (Shape.ofValue value).toOption.map .optedOutException + | "ThrottledException" => (Shape.ofValue value).toOption.map .throttledException + | "UserErrorException" => (Shape.ofValue value).toOption.map .userErrorException + | _ => none + +/-- What `CreateTopic` can fail with. -/ +inductive CreateTopicError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Can't perform multiple operations on a tag simultaneously. -/ + | concurrentAccessException (error : ConcurrentAccessException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- The credential signature isn't valid. -/ + | invalidSecurityException (error : InvalidSecurityException) + /-- A tag has been added to a resource with the same ARN as a deleted resource. -/ + | staleTagException (error : StaleTagException) + /-- Can't add more than 50 tags to a topic. -/ + | tagLimitExceededException (error : TagLimitExceededException) + /-- The request doesn't comply with the IAM tag policy. -/ + | tagPolicyException (error : TagPolicyException) + /-- Indicates that the customer already owns the maximum allowed number of topics. -/ + | topicLimitExceededException (error : TopicLimitExceededException) +deriving DecidableEq, Repr + +def CreateTopicError.ofWire (name : String) (value : Value) : Option CreateTopicError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "ConcurrentAccessException" => (Shape.ofValue value).toOption.map .concurrentAccessException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "InvalidSecurityException" => (Shape.ofValue value).toOption.map .invalidSecurityException + | "StaleTagException" => (Shape.ofValue value).toOption.map .staleTagException + | "TagLimitExceededException" => (Shape.ofValue value).toOption.map .tagLimitExceededException + | "TagPolicyException" => (Shape.ofValue value).toOption.map .tagPolicyException + | "TopicLimitExceededException" => (Shape.ofValue value).toOption.map .topicLimitExceededException + | _ => none + +/-- What `DeleteEndpoint` can fail with. -/ +inductive DeleteEndpointError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) +deriving DecidableEq, Repr + +def DeleteEndpointError.ofWire (name : String) (value : Value) : Option DeleteEndpointError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | _ => none + +/-- What `DeletePlatformApplication` can fail with. -/ +inductive DeletePlatformApplicationError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) +deriving DecidableEq, Repr + +def DeletePlatformApplicationError.ofWire (name : String) (value : Value) : Option DeletePlatformApplicationError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | _ => none + +/-- What `DeleteSMSSandboxPhoneNumber` can fail with. -/ +inductive DeleteSMSSandboxPhoneNumberError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Can’t perform the action on the specified resource. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- Indicates that the rate at which requests have been submitted for this action exceeds the limit for your Amazon Web Services account. -/ + | throttledException (error : ThrottledException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | userErrorException (error : UserErrorException) +deriving DecidableEq, Repr + +def DeleteSMSSandboxPhoneNumberError.ofWire (name : String) (value : Value) : Option DeleteSMSSandboxPhoneNumberError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ThrottledException" => (Shape.ofValue value).toOption.map .throttledException + | "UserErrorException" => (Shape.ofValue value).toOption.map .userErrorException + | _ => none + +/-- What `DeleteTopic` can fail with. -/ +inductive DeleteTopicError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Can't perform multiple operations on a tag simultaneously. -/ + | concurrentAccessException (error : ConcurrentAccessException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that the specified state is not a valid state for an event source. -/ + | invalidStateException (error : InvalidStateException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) + /-- A tag has been added to a resource with the same ARN as a deleted resource. -/ + | staleTagException (error : StaleTagException) + /-- The request doesn't comply with the IAM tag policy. -/ + | tagPolicyException (error : TagPolicyException) +deriving DecidableEq, Repr + +def DeleteTopicError.ofWire (name : String) (value : Value) : Option DeleteTopicError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "ConcurrentAccessException" => (Shape.ofValue value).toOption.map .concurrentAccessException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "InvalidStateException" => (Shape.ofValue value).toOption.map .invalidStateException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | "StaleTagException" => (Shape.ofValue value).toOption.map .staleTagException + | "TagPolicyException" => (Shape.ofValue value).toOption.map .tagPolicyException + | _ => none + +/-- What `GetDataProtectionPolicy` can fail with. -/ +inductive GetDataProtectionPolicyError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- The credential signature isn't valid. -/ + | invalidSecurityException (error : InvalidSecurityException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) +deriving DecidableEq, Repr + +def GetDataProtectionPolicyError.ofWire (name : String) (value : Value) : Option GetDataProtectionPolicyError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "InvalidSecurityException" => (Shape.ofValue value).toOption.map .invalidSecurityException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | _ => none + +/-- What `GetEndpointAttributes` can fail with. -/ +inductive GetEndpointAttributesError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) +deriving DecidableEq, Repr + +def GetEndpointAttributesError.ofWire (name : String) (value : Value) : Option GetEndpointAttributesError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | _ => none + +/-- What `GetPlatformApplicationAttributes` can fail with. -/ +inductive GetPlatformApplicationAttributesError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) +deriving DecidableEq, Repr + +def GetPlatformApplicationAttributesError.ofWire (name : String) (value : Value) : Option GetPlatformApplicationAttributesError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | _ => none + +/-- What `GetSMSAttributes` can fail with. -/ +inductive GetSMSAttributesError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that the rate at which requests have been submitted for this action exceeds the limit for your Amazon Web Services account. -/ + | throttledException (error : ThrottledException) +deriving DecidableEq, Repr + +def GetSMSAttributesError.ofWire (name : String) (value : Value) : Option GetSMSAttributesError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "ThrottledException" => (Shape.ofValue value).toOption.map .throttledException + | _ => none + +/-- What `GetSMSSandboxAccountStatus` can fail with. -/ +inductive GetSMSSandboxAccountStatusError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that the rate at which requests have been submitted for this action exceeds the limit for your Amazon Web Services account. -/ + | throttledException (error : ThrottledException) +deriving DecidableEq, Repr + +def GetSMSSandboxAccountStatusError.ofWire (name : String) (value : Value) : Option GetSMSSandboxAccountStatusError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "ThrottledException" => (Shape.ofValue value).toOption.map .throttledException + | _ => none + +/-- What `GetSubscriptionAttributes` can fail with. -/ +inductive GetSubscriptionAttributesError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) +deriving DecidableEq, Repr + +def GetSubscriptionAttributesError.ofWire (name : String) (value : Value) : Option GetSubscriptionAttributesError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | _ => none + +/-- What `GetTopicAttributes` can fail with. -/ +inductive GetTopicAttributesError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- The credential signature isn't valid. -/ + | invalidSecurityException (error : InvalidSecurityException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) +deriving DecidableEq, Repr + +def GetTopicAttributesError.ofWire (name : String) (value : Value) : Option GetTopicAttributesError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "InvalidSecurityException" => (Shape.ofValue value).toOption.map .invalidSecurityException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | _ => none + +/-- What `ListEndpointsByPlatformApplication` can fail with. -/ +inductive ListEndpointsByPlatformApplicationError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) +deriving DecidableEq, Repr + +def ListEndpointsByPlatformApplicationError.ofWire (name : String) (value : Value) : Option ListEndpointsByPlatformApplicationError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | _ => none + +/-- What `ListOriginationNumbers` can fail with. -/ +inductive ListOriginationNumbersError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that the rate at which requests have been submitted for this action exceeds the limit for your Amazon Web Services account. -/ + | throttledException (error : ThrottledException) + /-- Indicates that a parameter in the request is invalid. -/ + | validationException (error : ValidationException) +deriving DecidableEq, Repr + +def ListOriginationNumbersError.ofWire (name : String) (value : Value) : Option ListOriginationNumbersError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "ThrottledException" => (Shape.ofValue value).toOption.map .throttledException + | "ValidationException" => (Shape.ofValue value).toOption.map .validationException + | _ => none + +/-- What `ListPhoneNumbersOptedOut` can fail with. -/ +inductive ListPhoneNumbersOptedOutError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that the rate at which requests have been submitted for this action exceeds the limit for your Amazon Web Services account. -/ + | throttledException (error : ThrottledException) +deriving DecidableEq, Repr + +def ListPhoneNumbersOptedOutError.ofWire (name : String) (value : Value) : Option ListPhoneNumbersOptedOutError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "ThrottledException" => (Shape.ofValue value).toOption.map .throttledException + | _ => none + +/-- What `ListPlatformApplications` can fail with. -/ +inductive ListPlatformApplicationsError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) +deriving DecidableEq, Repr + +def ListPlatformApplicationsError.ofWire (name : String) (value : Value) : Option ListPlatformApplicationsError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | _ => none + +/-- What `ListSMSSandboxPhoneNumbers` can fail with. -/ +inductive ListSMSSandboxPhoneNumbersError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Can’t perform the action on the specified resource. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- Indicates that the rate at which requests have been submitted for this action exceeds the limit for your Amazon Web Services account. -/ + | throttledException (error : ThrottledException) +deriving DecidableEq, Repr + +def ListSMSSandboxPhoneNumbersError.ofWire (name : String) (value : Value) : Option ListSMSSandboxPhoneNumbersError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ThrottledException" => (Shape.ofValue value).toOption.map .throttledException + | _ => none + +/-- What `ListSubscriptions` can fail with. -/ +inductive ListSubscriptionsError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) +deriving DecidableEq, Repr + +def ListSubscriptionsError.ofWire (name : String) (value : Value) : Option ListSubscriptionsError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | _ => none + +/-- What `ListSubscriptionsByTopic` can fail with. -/ +inductive ListSubscriptionsByTopicError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) +deriving DecidableEq, Repr + +def ListSubscriptionsByTopicError.ofWire (name : String) (value : Value) : Option ListSubscriptionsByTopicError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | _ => none + +/-- What `ListTagsForResource` can fail with. -/ +inductive ListTagsForResourceError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Can't perform multiple operations on a tag simultaneously. -/ + | concurrentAccessException (error : ConcurrentAccessException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Can’t perform the action on the specified resource. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- The request doesn't comply with the IAM tag policy. -/ + | tagPolicyException (error : TagPolicyException) +deriving DecidableEq, Repr + +def ListTagsForResourceError.ofWire (name : String) (value : Value) : Option ListTagsForResourceError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "ConcurrentAccessException" => (Shape.ofValue value).toOption.map .concurrentAccessException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "TagPolicyException" => (Shape.ofValue value).toOption.map .tagPolicyException + | _ => none + +/-- What `ListTopics` can fail with. -/ +inductive ListTopicsError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) +deriving DecidableEq, Repr + +def ListTopicsError.ofWire (name : String) (value : Value) : Option ListTopicsError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | _ => none + +/-- What `OptInPhoneNumber` can fail with. -/ +inductive OptInPhoneNumberError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that the rate at which requests have been submitted for this action exceeds the limit for your Amazon Web Services account. -/ + | throttledException (error : ThrottledException) +deriving DecidableEq, Repr + +def OptInPhoneNumberError.ofWire (name : String) (value : Value) : Option OptInPhoneNumberError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "ThrottledException" => (Shape.ofValue value).toOption.map .throttledException + | _ => none + +/-- What `Publish` can fail with. -/ +inductive PublishError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Exception error indicating endpoint disabled. -/ + | endpointDisabledException (error : EndpointDisabledException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The credential signature isn't valid. -/ + | invalidSecurityException (error : InvalidSecurityException) + /-- The ciphertext references a key that doesn't exist or that you don't have access to. -/ + | kmsAccessDeniedException (error : KMSAccessDeniedException) + /-- The request was rejected because the specified Amazon Web Services KMS key isn't enabled. -/ + | kmsDisabledException (error : KMSDisabledException) + /-- The request was rejected because the state of the specified resource isn't valid for this request. -/ + | kmsInvalidStateException (error : KMSInvalidStateException) + /-- The request was rejected because the specified entity or resource can't be found. -/ + | kmsNotFoundException (error : KMSNotFoundException) + /-- The Amazon Web Services access key ID needs a subscription for the service. -/ + | kmsOptInRequired (error : KMSOptInRequired) + /-- The request was denied due to request throttling. -/ + | kmsThrottlingException (error : KMSThrottlingException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) + /-- Exception error indicating platform application disabled. -/ + | platformApplicationDisabledException (error : PlatformApplicationDisabledException) + /-- Indicates that a parameter in the request is invalid. -/ + | validationException (error : ValidationException) +deriving DecidableEq, Repr + +def PublishError.ofWire (name : String) (value : Value) : Option PublishError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "EndpointDisabledException" => (Shape.ofValue value).toOption.map .endpointDisabledException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "InvalidSecurityException" => (Shape.ofValue value).toOption.map .invalidSecurityException + | "KMSAccessDeniedException" => (Shape.ofValue value).toOption.map .kmsAccessDeniedException + | "KMSDisabledException" => (Shape.ofValue value).toOption.map .kmsDisabledException + | "KMSInvalidStateException" => (Shape.ofValue value).toOption.map .kmsInvalidStateException + | "KMSNotFoundException" => (Shape.ofValue value).toOption.map .kmsNotFoundException + | "KMSOptInRequired" => (Shape.ofValue value).toOption.map .kmsOptInRequired + | "KMSThrottlingException" => (Shape.ofValue value).toOption.map .kmsThrottlingException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | "PlatformApplicationDisabledException" => (Shape.ofValue value).toOption.map .platformApplicationDisabledException + | "ValidationException" => (Shape.ofValue value).toOption.map .validationException + | _ => none + +/-- What `PublishBatch` can fail with. -/ +inductive PublishBatchError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Two or more batch entries in the request have the same Id . -/ + | batchEntryIdsNotDistinctException (error : BatchEntryIdsNotDistinctException) + /-- The length of all the batch messages put together is more than the limit. -/ + | batchRequestTooLongException (error : BatchRequestTooLongException) + /-- The batch request doesn't contain any entries. -/ + | emptyBatchRequestException (error : EmptyBatchRequestException) + /-- Exception error indicating endpoint disabled. -/ + | endpointDisabledException (error : EndpointDisabledException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- The Id of a batch entry in a batch request doesn't abide by the specification. -/ + | invalidBatchEntryIdException (error : InvalidBatchEntryIdException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterValueException (error : InvalidParameterValueException) + /-- The credential signature isn't valid. -/ + | invalidSecurityException (error : InvalidSecurityException) + /-- The ciphertext references a key that doesn't exist or that you don't have access to. -/ + | kmsAccessDeniedException (error : KMSAccessDeniedException) + /-- The request was rejected because the specified Amazon Web Services KMS key isn't enabled. -/ + | kmsDisabledException (error : KMSDisabledException) + /-- The request was rejected because the state of the specified resource isn't valid for this request. -/ + | kmsInvalidStateException (error : KMSInvalidStateException) + /-- The request was rejected because the specified entity or resource can't be found. -/ + | kmsNotFoundException (error : KMSNotFoundException) + /-- The Amazon Web Services access key ID needs a subscription for the service. -/ + | kmsOptInRequired (error : KMSOptInRequired) + /-- The request was denied due to request throttling. -/ + | kmsThrottlingException (error : KMSThrottlingException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) + /-- Exception error indicating platform application disabled. -/ + | platformApplicationDisabledException (error : PlatformApplicationDisabledException) + /-- The batch request contains more entries than permissible (more than 10). -/ + | tooManyEntriesInBatchRequestException (error : TooManyEntriesInBatchRequestException) + /-- Indicates that a parameter in the request is invalid. -/ + | validationException (error : ValidationException) +deriving DecidableEq, Repr + +def PublishBatchError.ofWire (name : String) (value : Value) : Option PublishBatchError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "BatchEntryIdsNotDistinctException" => (Shape.ofValue value).toOption.map .batchEntryIdsNotDistinctException + | "BatchRequestTooLongException" => (Shape.ofValue value).toOption.map .batchRequestTooLongException + | "EmptyBatchRequestException" => (Shape.ofValue value).toOption.map .emptyBatchRequestException + | "EndpointDisabledException" => (Shape.ofValue value).toOption.map .endpointDisabledException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidBatchEntryIdException" => (Shape.ofValue value).toOption.map .invalidBatchEntryIdException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "InvalidParameterValueException" => (Shape.ofValue value).toOption.map .invalidParameterValueException + | "InvalidSecurityException" => (Shape.ofValue value).toOption.map .invalidSecurityException + | "KMSAccessDeniedException" => (Shape.ofValue value).toOption.map .kmsAccessDeniedException + | "KMSDisabledException" => (Shape.ofValue value).toOption.map .kmsDisabledException + | "KMSInvalidStateException" => (Shape.ofValue value).toOption.map .kmsInvalidStateException + | "KMSNotFoundException" => (Shape.ofValue value).toOption.map .kmsNotFoundException + | "KMSOptInRequired" => (Shape.ofValue value).toOption.map .kmsOptInRequired + | "KMSThrottlingException" => (Shape.ofValue value).toOption.map .kmsThrottlingException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | "PlatformApplicationDisabledException" => (Shape.ofValue value).toOption.map .platformApplicationDisabledException + | "TooManyEntriesInBatchRequestException" => (Shape.ofValue value).toOption.map .tooManyEntriesInBatchRequestException + | "ValidationException" => (Shape.ofValue value).toOption.map .validationException + | _ => none + +/-- What `PutDataProtectionPolicy` can fail with. -/ +inductive PutDataProtectionPolicyError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- The credential signature isn't valid. -/ + | invalidSecurityException (error : InvalidSecurityException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) +deriving DecidableEq, Repr + +def PutDataProtectionPolicyError.ofWire (name : String) (value : Value) : Option PutDataProtectionPolicyError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "InvalidSecurityException" => (Shape.ofValue value).toOption.map .invalidSecurityException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | _ => none + +/-- What `RemovePermission` can fail with. -/ +inductive RemovePermissionError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) +deriving DecidableEq, Repr + +def RemovePermissionError.ofWire (name : String) (value : Value) : Option RemovePermissionError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | _ => none + +/-- What `SetEndpointAttributes` can fail with. -/ +inductive SetEndpointAttributesError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) +deriving DecidableEq, Repr + +def SetEndpointAttributesError.ofWire (name : String) (value : Value) : Option SetEndpointAttributesError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | _ => none + +/-- What `SetPlatformApplicationAttributes` can fail with. -/ +inductive SetPlatformApplicationAttributesError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) +deriving DecidableEq, Repr + +def SetPlatformApplicationAttributesError.ofWire (name : String) (value : Value) : Option SetPlatformApplicationAttributesError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | _ => none + +/-- What `SetSMSAttributes` can fail with. -/ +inductive SetSMSAttributesError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that the rate at which requests have been submitted for this action exceeds the limit for your Amazon Web Services account. -/ + | throttledException (error : ThrottledException) +deriving DecidableEq, Repr + +def SetSMSAttributesError.ofWire (name : String) (value : Value) : Option SetSMSAttributesError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "ThrottledException" => (Shape.ofValue value).toOption.map .throttledException + | _ => none + +/-- What `SetSubscriptionAttributes` can fail with. -/ +inductive SetSubscriptionAttributesError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates that the number of filter polices in your Amazon Web Services account exceeds the limit. -/ + | filterPolicyLimitExceededException (error : FilterPolicyLimitExceededException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) + /-- Indicates that the request parameter has exceeded the maximum number of concurrent message replays. -/ + | replayLimitExceededException (error : ReplayLimitExceededException) +deriving DecidableEq, Repr + +def SetSubscriptionAttributesError.ofWire (name : String) (value : Value) : Option SetSubscriptionAttributesError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "FilterPolicyLimitExceededException" => (Shape.ofValue value).toOption.map .filterPolicyLimitExceededException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | "ReplayLimitExceededException" => (Shape.ofValue value).toOption.map .replayLimitExceededException + | _ => none + +/-- What `SetTopicAttributes` can fail with. -/ +inductive SetTopicAttributesError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- The credential signature isn't valid. -/ + | invalidSecurityException (error : InvalidSecurityException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) +deriving DecidableEq, Repr + +def SetTopicAttributesError.ofWire (name : String) (value : Value) : Option SetTopicAttributesError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "InvalidSecurityException" => (Shape.ofValue value).toOption.map .invalidSecurityException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | _ => none + +/-- What `Subscribe` can fail with. -/ +inductive SubscribeError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates that the number of filter polices in your Amazon Web Services account exceeds the limit. -/ + | filterPolicyLimitExceededException (error : FilterPolicyLimitExceededException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- The credential signature isn't valid. -/ + | invalidSecurityException (error : InvalidSecurityException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) + /-- Indicates that the request parameter has exceeded the maximum number of concurrent message replays. -/ + | replayLimitExceededException (error : ReplayLimitExceededException) + /-- Indicates that the customer already owns the maximum allowed number of subscriptions. -/ + | subscriptionLimitExceededException (error : SubscriptionLimitExceededException) +deriving DecidableEq, Repr + +def SubscribeError.ofWire (name : String) (value : Value) : Option SubscribeError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "FilterPolicyLimitExceededException" => (Shape.ofValue value).toOption.map .filterPolicyLimitExceededException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "InvalidSecurityException" => (Shape.ofValue value).toOption.map .invalidSecurityException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | "ReplayLimitExceededException" => (Shape.ofValue value).toOption.map .replayLimitExceededException + | "SubscriptionLimitExceededException" => (Shape.ofValue value).toOption.map .subscriptionLimitExceededException + | _ => none + +/-- What `TagResource` can fail with. -/ +inductive TagResourceError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Can't perform multiple operations on a tag simultaneously. -/ + | concurrentAccessException (error : ConcurrentAccessException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Can’t perform the action on the specified resource. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- A tag has been added to a resource with the same ARN as a deleted resource. -/ + | staleTagException (error : StaleTagException) + /-- Can't add more than 50 tags to a topic. -/ + | tagLimitExceededException (error : TagLimitExceededException) + /-- The request doesn't comply with the IAM tag policy. -/ + | tagPolicyException (error : TagPolicyException) +deriving DecidableEq, Repr + +def TagResourceError.ofWire (name : String) (value : Value) : Option TagResourceError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "ConcurrentAccessException" => (Shape.ofValue value).toOption.map .concurrentAccessException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "StaleTagException" => (Shape.ofValue value).toOption.map .staleTagException + | "TagLimitExceededException" => (Shape.ofValue value).toOption.map .tagLimitExceededException + | "TagPolicyException" => (Shape.ofValue value).toOption.map .tagPolicyException + | _ => none + +/-- What `Unsubscribe` can fail with. -/ +inductive UnsubscribeError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- The credential signature isn't valid. -/ + | invalidSecurityException (error : InvalidSecurityException) + /-- Indicates that the requested resource does not exist. -/ + | notFoundException (error : NotFoundException) +deriving DecidableEq, Repr + +def UnsubscribeError.ofWire (name : String) (value : Value) : Option UnsubscribeError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "InvalidSecurityException" => (Shape.ofValue value).toOption.map .invalidSecurityException + | "NotFoundException" => (Shape.ofValue value).toOption.map .notFoundException + | _ => none + +/-- What `UntagResource` can fail with. -/ +inductive UntagResourceError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Can't perform multiple operations on a tag simultaneously. -/ + | concurrentAccessException (error : ConcurrentAccessException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Can’t perform the action on the specified resource. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- A tag has been added to a resource with the same ARN as a deleted resource. -/ + | staleTagException (error : StaleTagException) + /-- Can't add more than 50 tags to a topic. -/ + | tagLimitExceededException (error : TagLimitExceededException) + /-- The request doesn't comply with the IAM tag policy. -/ + | tagPolicyException (error : TagPolicyException) +deriving DecidableEq, Repr + +def UntagResourceError.ofWire (name : String) (value : Value) : Option UntagResourceError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "ConcurrentAccessException" => (Shape.ofValue value).toOption.map .concurrentAccessException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "StaleTagException" => (Shape.ofValue value).toOption.map .staleTagException + | "TagLimitExceededException" => (Shape.ofValue value).toOption.map .tagLimitExceededException + | "TagPolicyException" => (Shape.ofValue value).toOption.map .tagPolicyException + | _ => none + +/-- What `VerifySMSSandboxPhoneNumber` can fail with. -/ +inductive VerifySMSSandboxPhoneNumberError where + /-- Indicates that the user has been denied access to the requested resource. -/ + | authorizationErrorException (error : AuthorizationErrorException) + /-- Indicates an internal service error. -/ + | internalErrorException (error : InternalErrorException) + /-- Indicates that a request parameter does not comply with the associated constraints. -/ + | invalidParameterException (error : InvalidParameterException) + /-- Can’t perform the action on the specified resource. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- Indicates that the rate at which requests have been submitted for this action exceeds the limit for your Amazon Web Services account. -/ + | throttledException (error : ThrottledException) + /-- Indicates that the one-time password (OTP) used for verification is invalid. -/ + | verificationException (error : VerificationException) +deriving DecidableEq, Repr + +def VerifySMSSandboxPhoneNumberError.ofWire (name : String) (value : Value) : Option VerifySMSSandboxPhoneNumberError := + match name with + | "AuthorizationErrorException" => (Shape.ofValue value).toOption.map .authorizationErrorException + | "InternalErrorException" => (Shape.ofValue value).toOption.map .internalErrorException + | "InvalidParameterException" => (Shape.ofValue value).toOption.map .invalidParameterException + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "ThrottledException" => (Shape.ofValue value).toOption.map .throttledException + | "VerificationException" => (Shape.ofValue value).toOption.map .verificationException + | _ => none + +/-- The operations of the service. -/ +inductive Op where + /-- Adds a statement to a topic's access control policy, granting access for the specified Amazon Web Services accounts to the specified actions. -/ + | addPermission + /-- Accepts a phone number and indicates whether the phone holder has opted out of receiving SMS messages from your Amazon Web Services account. -/ + | checkIfPhoneNumberIsOptedOut + /-- Verifies an endpoint owner's intent to receive messages by validating the token sent to the endpoint by an earlier Subscribe action. -/ + | confirmSubscription + /-- Creates a platform application object for one of the supported push notification services, such as APNS and GCM (Firebase Cloud Messaging), to which devices and mobile apps may register. -/ + | createPlatformApplication + /-- Creates an endpoint for a device and mobile app on one of the supported push notification services, such as GCM (Firebase Cloud Messaging) and APNS. -/ + | createPlatformEndpoint + /-- Adds a destination phone number to an Amazon Web Services account in the SMS sandbox and sends a one-time password (OTP) to that phone number. -/ + | createSMSSandboxPhoneNumber + /-- Creates a topic to which notifications can be published. -/ + | createTopic + /-- Deletes the endpoint for a device and mobile app from Amazon SNS. -/ + | deleteEndpoint + /-- Deletes a platform application object for one of the supported push notification services, such as APNS and GCM (Firebase Cloud Messaging). -/ + | deletePlatformApplication + /-- Deletes an Amazon Web Services account's verified or pending phone number from the SMS sandbox. -/ + | deleteSMSSandboxPhoneNumber + /-- Deletes a topic and all its subscriptions. -/ + | deleteTopic + /-- Amazon SNS message data protection is no longer available to new customers. -/ + | getDataProtectionPolicy + /-- Retrieves the endpoint attributes for a device on one of the supported push notification services, such as GCM (Firebase Cloud Messaging) and APNS. -/ + | getEndpointAttributes + /-- Retrieves the attributes of the platform application object for the supported push notification services, such as APNS and GCM (Firebase Cloud Messaging). -/ + | getPlatformApplicationAttributes + /-- Returns the settings for sending SMS messages from your Amazon Web Services account. -/ + | getSMSAttributes + /-- Retrieves the SMS sandbox status for the calling Amazon Web Services account in the target Amazon Web Services Region. -/ + | getSMSSandboxAccountStatus + /-- Returns all of the properties of a subscription. -/ + | getSubscriptionAttributes + /-- Returns all of the properties of a topic. -/ + | getTopicAttributes + /-- Lists the endpoints and endpoint attributes for devices in a supported push notification service, such as GCM (Firebase Cloud Messaging) and APNS. -/ + | listEndpointsByPlatformApplication + /-- Lists the calling Amazon Web Services account's dedicated origination numbers and their metadata. -/ + | listOriginationNumbers + /-- Returns a list of phone numbers that are opted out, meaning you cannot send SMS messages to them. -/ + | listPhoneNumbersOptedOut + /-- Lists the platform application objects for the supported push notification services, such as APNS and GCM (Firebase Cloud Messaging). -/ + | listPlatformApplications + /-- Lists the calling Amazon Web Services account's current verified and pending destination phone numbers in the SMS sandbox. -/ + | listSMSSandboxPhoneNumbers + /-- Returns a list of the requester's subscriptions. -/ + | listSubscriptions + /-- Returns a list of the subscriptions to a specific topic. -/ + | listSubscriptionsByTopic + /-- List all tags added to the specified Amazon SNS topic. -/ + | listTagsForResource + /-- Returns a list of the requester's topics. -/ + | listTopics + /-- Use this request to opt in a phone number that is opted out, which enables you to resume sending SMS messages to the number. -/ + | optInPhoneNumber + /-- Sends a message to an Amazon SNS topic, a text message (SMS message) directly to a phone number, or a message to a mobile platform endpoint (when you specify the TargetArn ). -/ + | publish + /-- Publishes up to 10 messages to the specified topic in a single batch. -/ + | publishBatch + /-- Amazon SNS message data protection is no longer available to new customers. -/ + | putDataProtectionPolicy + /-- Removes a statement from a topic's access control policy. -/ + | removePermission + /-- Sets the attributes for an endpoint for a device on one of the supported push notification services, such as GCM (Firebase Cloud Messaging) and APNS. -/ + | setEndpointAttributes + /-- Sets the attributes of the platform application object for the supported push notification services, such as APNS and GCM (Firebase Cloud Messaging). -/ + | setPlatformApplicationAttributes + /-- Use this request to set the default settings for sending SMS messages and receiving daily SMS usage reports. -/ + | setSMSAttributes + /-- Allows a subscription owner to set an attribute of the subscription to a new value. -/ + | setSubscriptionAttributes + /-- Allows a topic owner to set an attribute of the topic to a new value. -/ + | setTopicAttributes + /-- Subscribes an endpoint to an Amazon SNS topic. -/ + | subscribe + /-- Add tags to the specified Amazon SNS topic. -/ + | tagResource + /-- Deletes a subscription. -/ + | unsubscribe + /-- Remove tags from the specified Amazon SNS topic. -/ + | untagResource + /-- Verifies a destination phone number with a one-time password (OTP) for the calling Amazon Web Services account. -/ + | verifySMSSandboxPhoneNumber +deriving DecidableEq, Repr + +abbrev Input : Op → Type + | .addPermission => AddPermissionInput + | .checkIfPhoneNumberIsOptedOut => CheckIfPhoneNumberIsOptedOutInput + | .confirmSubscription => ConfirmSubscriptionInput + | .createPlatformApplication => CreatePlatformApplicationInput + | .createPlatformEndpoint => CreatePlatformEndpointInput + | .createSMSSandboxPhoneNumber => CreateSMSSandboxPhoneNumberInput + | .createTopic => CreateTopicInput + | .deleteEndpoint => DeleteEndpointInput + | .deletePlatformApplication => DeletePlatformApplicationInput + | .deleteSMSSandboxPhoneNumber => DeleteSMSSandboxPhoneNumberInput + | .deleteTopic => DeleteTopicInput + | .getDataProtectionPolicy => GetDataProtectionPolicyInput + | .getEndpointAttributes => GetEndpointAttributesInput + | .getPlatformApplicationAttributes => GetPlatformApplicationAttributesInput + | .getSMSAttributes => GetSMSAttributesInput + | .getSMSSandboxAccountStatus => GetSMSSandboxAccountStatusInput + | .getSubscriptionAttributes => GetSubscriptionAttributesInput + | .getTopicAttributes => GetTopicAttributesInput + | .listEndpointsByPlatformApplication => ListEndpointsByPlatformApplicationInput + | .listOriginationNumbers => ListOriginationNumbersRequest + | .listPhoneNumbersOptedOut => ListPhoneNumbersOptedOutInput + | .listPlatformApplications => ListPlatformApplicationsInput + | .listSMSSandboxPhoneNumbers => ListSMSSandboxPhoneNumbersInput + | .listSubscriptions => ListSubscriptionsInput + | .listSubscriptionsByTopic => ListSubscriptionsByTopicInput + | .listTagsForResource => ListTagsForResourceRequest + | .listTopics => ListTopicsInput + | .optInPhoneNumber => OptInPhoneNumberInput + | .publish => PublishInput + | .publishBatch => PublishBatchInput + | .putDataProtectionPolicy => PutDataProtectionPolicyInput + | .removePermission => RemovePermissionInput + | .setEndpointAttributes => SetEndpointAttributesInput + | .setPlatformApplicationAttributes => SetPlatformApplicationAttributesInput + | .setSMSAttributes => SetSMSAttributesInput + | .setSubscriptionAttributes => SetSubscriptionAttributesInput + | .setTopicAttributes => SetTopicAttributesInput + | .subscribe => SubscribeInput + | .tagResource => TagResourceRequest + | .unsubscribe => UnsubscribeInput + | .untagResource => UntagResourceRequest + | .verifySMSSandboxPhoneNumber => VerifySMSSandboxPhoneNumberInput + +abbrev Output : Op → Type + | .addPermission => Unit + | .checkIfPhoneNumberIsOptedOut => CheckIfPhoneNumberIsOptedOutResponse + | .confirmSubscription => ConfirmSubscriptionResponse + | .createPlatformApplication => CreatePlatformApplicationResponse + | .createPlatformEndpoint => CreateEndpointResponse + | .createSMSSandboxPhoneNumber => CreateSMSSandboxPhoneNumberResult + | .createTopic => CreateTopicResponse + | .deleteEndpoint => Unit + | .deletePlatformApplication => Unit + | .deleteSMSSandboxPhoneNumber => DeleteSMSSandboxPhoneNumberResult + | .deleteTopic => Unit + | .getDataProtectionPolicy => GetDataProtectionPolicyResponse + | .getEndpointAttributes => GetEndpointAttributesResponse + | .getPlatformApplicationAttributes => GetPlatformApplicationAttributesResponse + | .getSMSAttributes => GetSMSAttributesResponse + | .getSMSSandboxAccountStatus => GetSMSSandboxAccountStatusResult + | .getSubscriptionAttributes => GetSubscriptionAttributesResponse + | .getTopicAttributes => GetTopicAttributesResponse + | .listEndpointsByPlatformApplication => ListEndpointsByPlatformApplicationResponse + | .listOriginationNumbers => ListOriginationNumbersResult + | .listPhoneNumbersOptedOut => ListPhoneNumbersOptedOutResponse + | .listPlatformApplications => ListPlatformApplicationsResponse + | .listSMSSandboxPhoneNumbers => ListSMSSandboxPhoneNumbersResult + | .listSubscriptions => ListSubscriptionsResponse + | .listSubscriptionsByTopic => ListSubscriptionsByTopicResponse + | .listTagsForResource => ListTagsForResourceResponse + | .listTopics => ListTopicsResponse + | .optInPhoneNumber => OptInPhoneNumberResponse + | .publish => PublishResponse + | .publishBatch => PublishBatchResponse + | .putDataProtectionPolicy => Unit + | .removePermission => Unit + | .setEndpointAttributes => Unit + | .setPlatformApplicationAttributes => Unit + | .setSMSAttributes => SetSMSAttributesResponse + | .setSubscriptionAttributes => Unit + | .setTopicAttributes => Unit + | .subscribe => SubscribeResponse + | .tagResource => TagResourceResponse + | .unsubscribe => Unit + | .untagResource => UntagResourceResponse + | .verifySMSSandboxPhoneNumber => VerifySMSSandboxPhoneNumberResult + +abbrev Error : Op → Type + | .addPermission => AddPermissionError + | .checkIfPhoneNumberIsOptedOut => CheckIfPhoneNumberIsOptedOutError + | .confirmSubscription => ConfirmSubscriptionError + | .createPlatformApplication => CreatePlatformApplicationError + | .createPlatformEndpoint => CreatePlatformEndpointError + | .createSMSSandboxPhoneNumber => CreateSMSSandboxPhoneNumberError + | .createTopic => CreateTopicError + | .deleteEndpoint => DeleteEndpointError + | .deletePlatformApplication => DeletePlatformApplicationError + | .deleteSMSSandboxPhoneNumber => DeleteSMSSandboxPhoneNumberError + | .deleteTopic => DeleteTopicError + | .getDataProtectionPolicy => GetDataProtectionPolicyError + | .getEndpointAttributes => GetEndpointAttributesError + | .getPlatformApplicationAttributes => GetPlatformApplicationAttributesError + | .getSMSAttributes => GetSMSAttributesError + | .getSMSSandboxAccountStatus => GetSMSSandboxAccountStatusError + | .getSubscriptionAttributes => GetSubscriptionAttributesError + | .getTopicAttributes => GetTopicAttributesError + | .listEndpointsByPlatformApplication => ListEndpointsByPlatformApplicationError + | .listOriginationNumbers => ListOriginationNumbersError + | .listPhoneNumbersOptedOut => ListPhoneNumbersOptedOutError + | .listPlatformApplications => ListPlatformApplicationsError + | .listSMSSandboxPhoneNumbers => ListSMSSandboxPhoneNumbersError + | .listSubscriptions => ListSubscriptionsError + | .listSubscriptionsByTopic => ListSubscriptionsByTopicError + | .listTagsForResource => ListTagsForResourceError + | .listTopics => ListTopicsError + | .optInPhoneNumber => OptInPhoneNumberError + | .publish => PublishError + | .publishBatch => PublishBatchError + | .putDataProtectionPolicy => PutDataProtectionPolicyError + | .removePermission => RemovePermissionError + | .setEndpointAttributes => SetEndpointAttributesError + | .setPlatformApplicationAttributes => SetPlatformApplicationAttributesError + | .setSMSAttributes => SetSMSAttributesError + | .setSubscriptionAttributes => SetSubscriptionAttributesError + | .setTopicAttributes => SetTopicAttributesError + | .subscribe => SubscribeError + | .tagResource => TagResourceError + | .unsubscribe => UnsubscribeError + | .untagResource => UntagResourceError + | .verifySMSSandboxPhoneNumber => VerifySMSSandboxPhoneNumberError + +/-- An empty output for each operation, for a model that leaves an operation out. -/ +def Output.empty : (op : Op) → Output op + | .addPermission => default + | .checkIfPhoneNumberIsOptedOut => default + | .confirmSubscription => default + | .createPlatformApplication => default + | .createPlatformEndpoint => default + | .createSMSSandboxPhoneNumber => default + | .createTopic => default + | .deleteEndpoint => default + | .deletePlatformApplication => default + | .deleteSMSSandboxPhoneNumber => default + | .deleteTopic => default + | .getDataProtectionPolicy => default + | .getEndpointAttributes => default + | .getPlatformApplicationAttributes => default + | .getSMSAttributes => default + | .getSMSSandboxAccountStatus => default + | .getSubscriptionAttributes => default + | .getTopicAttributes => default + | .listEndpointsByPlatformApplication => default + | .listOriginationNumbers => default + | .listPhoneNumbersOptedOut => default + | .listPlatformApplications => default + | .listSMSSandboxPhoneNumbers => default + | .listSubscriptions => default + | .listSubscriptionsByTopic => default + | .listTagsForResource => default + | .listTopics => default + | .optInPhoneNumber => default + | .publish => default + | .publishBatch => default + | .putDataProtectionPolicy => default + | .removePermission => default + | .setEndpointAttributes => default + | .setPlatformApplicationAttributes => default + | .setSMSAttributes => default + | .setSubscriptionAttributes => default + | .setTopicAttributes => default + | .subscribe => default + | .tagResource => default + | .unsubscribe => default + | .untagResource => default + | .verifySMSSandboxPhoneNumber => default + +/-- The service: every operation with its input, its output and its errors. -/ +abbrev api : Distilled.Api where + Op := Op + In := Input + Out := Output + Err := Error + +/-- The name requests to this service are signed for. -/ +def signingName : String := "sns" + +def service : ServiceInfo where + name := "AmazonSimpleNotificationService" + version := "2010-03-31" + protocol := .awsQuery + signingName := "sns" + xmlNamespace := some "http://sns.amazonaws.com/doc/2010-03-31/" + +/-- What the model says about each operation. -/ +def info : Op → OpInfo + | .addPermission => { name := "AddPermission", method := "POST", uri := "/", input := (Shape.schema AddPermissionInput), output := (Shape.schema Unit), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }] } + | .checkIfPhoneNumberIsOptedOut => { name := "CheckIfPhoneNumberIsOptedOut", method := "POST", uri := "/", input := (Shape.schema CheckIfPhoneNumberIsOptedOutInput), output := (Shape.schema CheckIfPhoneNumberIsOptedOutResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "ThrottledException", code := some "Throttled", schema := Shape.schema ThrottledException }] } + | .confirmSubscription => { name := "ConfirmSubscription", method := "POST", uri := "/", input := (Shape.schema ConfirmSubscriptionInput), output := (Shape.schema ConfirmSubscriptionResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "FilterPolicyLimitExceededException", code := some "FilterPolicyLimitExceeded", schema := Shape.schema FilterPolicyLimitExceededException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }, { name := "ReplayLimitExceededException", code := some "ReplayLimitExceeded", schema := Shape.schema ReplayLimitExceededException }, { name := "SubscriptionLimitExceededException", code := some "SubscriptionLimitExceeded", schema := Shape.schema SubscriptionLimitExceededException }] } + | .createPlatformApplication => { name := "CreatePlatformApplication", method := "POST", uri := "/", input := (Shape.schema CreatePlatformApplicationInput), output := (Shape.schema CreatePlatformApplicationResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }] } + | .createPlatformEndpoint => { name := "CreatePlatformEndpoint", method := "POST", uri := "/", input := (Shape.schema CreatePlatformEndpointInput), output := (Shape.schema CreateEndpointResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }] } + | .createSMSSandboxPhoneNumber => { name := "CreateSMSSandboxPhoneNumber", method := "POST", uri := "/", input := (Shape.schema CreateSMSSandboxPhoneNumberInput), output := (Shape.schema CreateSMSSandboxPhoneNumberResult), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "OptedOutException", code := some "OptedOut", schema := Shape.schema OptedOutException }, { name := "ThrottledException", code := some "Throttled", schema := Shape.schema ThrottledException }, { name := "UserErrorException", code := some "UserError", schema := Shape.schema UserErrorException }] } + | .createTopic => { name := "CreateTopic", method := "POST", uri := "/", input := (Shape.schema CreateTopicInput), output := (Shape.schema CreateTopicResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "ConcurrentAccessException", code := some "ConcurrentAccess", schema := Shape.schema ConcurrentAccessException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "InvalidSecurityException", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurityException }, { name := "StaleTagException", code := some "StaleTag", schema := Shape.schema StaleTagException }, { name := "TagLimitExceededException", code := some "TagLimitExceeded", schema := Shape.schema TagLimitExceededException }, { name := "TagPolicyException", code := some "TagPolicy", schema := Shape.schema TagPolicyException }, { name := "TopicLimitExceededException", code := some "TopicLimitExceeded", schema := Shape.schema TopicLimitExceededException }] } + | .deleteEndpoint => { name := "DeleteEndpoint", method := "POST", uri := "/", input := (Shape.schema DeleteEndpointInput), output := (Shape.schema Unit), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }] } + | .deletePlatformApplication => { name := "DeletePlatformApplication", method := "POST", uri := "/", input := (Shape.schema DeletePlatformApplicationInput), output := (Shape.schema Unit), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }] } + | .deleteSMSSandboxPhoneNumber => { name := "DeleteSMSSandboxPhoneNumber", method := "POST", uri := "/", input := (Shape.schema DeleteSMSSandboxPhoneNumberInput), output := (Shape.schema DeleteSMSSandboxPhoneNumberResult), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "ResourceNotFoundException", code := some "ResourceNotFound", schema := Shape.schema ResourceNotFoundException }, { name := "ThrottledException", code := some "Throttled", schema := Shape.schema ThrottledException }, { name := "UserErrorException", code := some "UserError", schema := Shape.schema UserErrorException }] } + | .deleteTopic => { name := "DeleteTopic", method := "POST", uri := "/", input := (Shape.schema DeleteTopicInput), output := (Shape.schema Unit), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "ConcurrentAccessException", code := some "ConcurrentAccess", schema := Shape.schema ConcurrentAccessException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "InvalidStateException", code := some "InvalidState", schema := Shape.schema InvalidStateException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }, { name := "StaleTagException", code := some "StaleTag", schema := Shape.schema StaleTagException }, { name := "TagPolicyException", code := some "TagPolicy", schema := Shape.schema TagPolicyException }] } + | .getDataProtectionPolicy => { name := "GetDataProtectionPolicy", method := "POST", uri := "/", input := (Shape.schema GetDataProtectionPolicyInput), output := (Shape.schema GetDataProtectionPolicyResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "InvalidSecurityException", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurityException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }] } + | .getEndpointAttributes => { name := "GetEndpointAttributes", method := "POST", uri := "/", input := (Shape.schema GetEndpointAttributesInput), output := (Shape.schema GetEndpointAttributesResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }] } + | .getPlatformApplicationAttributes => { name := "GetPlatformApplicationAttributes", method := "POST", uri := "/", input := (Shape.schema GetPlatformApplicationAttributesInput), output := (Shape.schema GetPlatformApplicationAttributesResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }] } + | .getSMSAttributes => { name := "GetSMSAttributes", method := "POST", uri := "/", input := (Shape.schema GetSMSAttributesInput), output := (Shape.schema GetSMSAttributesResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "ThrottledException", code := some "Throttled", schema := Shape.schema ThrottledException }] } + | .getSMSSandboxAccountStatus => { name := "GetSMSSandboxAccountStatus", method := "POST", uri := "/", input := (Shape.schema GetSMSSandboxAccountStatusInput), output := (Shape.schema GetSMSSandboxAccountStatusResult), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "ThrottledException", code := some "Throttled", schema := Shape.schema ThrottledException }] } + | .getSubscriptionAttributes => { name := "GetSubscriptionAttributes", method := "POST", uri := "/", input := (Shape.schema GetSubscriptionAttributesInput), output := (Shape.schema GetSubscriptionAttributesResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }] } + | .getTopicAttributes => { name := "GetTopicAttributes", method := "POST", uri := "/", input := (Shape.schema GetTopicAttributesInput), output := (Shape.schema GetTopicAttributesResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "InvalidSecurityException", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurityException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }] } + | .listEndpointsByPlatformApplication => { name := "ListEndpointsByPlatformApplication", method := "POST", uri := "/", input := (Shape.schema ListEndpointsByPlatformApplicationInput), output := (Shape.schema ListEndpointsByPlatformApplicationResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }] } + | .listOriginationNumbers => { name := "ListOriginationNumbers", method := "POST", uri := "/", input := (Shape.schema ListOriginationNumbersRequest), output := (Shape.schema ListOriginationNumbersResult), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "ThrottledException", code := some "Throttled", schema := Shape.schema ThrottledException }, { name := "ValidationException", code := some "ValidationException", schema := Shape.schema ValidationException }] } + | .listPhoneNumbersOptedOut => { name := "ListPhoneNumbersOptedOut", method := "POST", uri := "/", input := (Shape.schema ListPhoneNumbersOptedOutInput), output := (Shape.schema ListPhoneNumbersOptedOutResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "ThrottledException", code := some "Throttled", schema := Shape.schema ThrottledException }] } + | .listPlatformApplications => { name := "ListPlatformApplications", method := "POST", uri := "/", input := (Shape.schema ListPlatformApplicationsInput), output := (Shape.schema ListPlatformApplicationsResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }] } + | .listSMSSandboxPhoneNumbers => { name := "ListSMSSandboxPhoneNumbers", method := "POST", uri := "/", input := (Shape.schema ListSMSSandboxPhoneNumbersInput), output := (Shape.schema ListSMSSandboxPhoneNumbersResult), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "ResourceNotFoundException", code := some "ResourceNotFound", schema := Shape.schema ResourceNotFoundException }, { name := "ThrottledException", code := some "Throttled", schema := Shape.schema ThrottledException }] } + | .listSubscriptions => { name := "ListSubscriptions", method := "POST", uri := "/", input := (Shape.schema ListSubscriptionsInput), output := (Shape.schema ListSubscriptionsResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }] } + | .listSubscriptionsByTopic => { name := "ListSubscriptionsByTopic", method := "POST", uri := "/", input := (Shape.schema ListSubscriptionsByTopicInput), output := (Shape.schema ListSubscriptionsByTopicResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }] } + | .listTagsForResource => { name := "ListTagsForResource", method := "POST", uri := "/", input := (Shape.schema ListTagsForResourceRequest), output := (Shape.schema ListTagsForResourceResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "ConcurrentAccessException", code := some "ConcurrentAccess", schema := Shape.schema ConcurrentAccessException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "ResourceNotFoundException", code := some "ResourceNotFound", schema := Shape.schema ResourceNotFoundException }, { name := "TagPolicyException", code := some "TagPolicy", schema := Shape.schema TagPolicyException }] } + | .listTopics => { name := "ListTopics", method := "POST", uri := "/", input := (Shape.schema ListTopicsInput), output := (Shape.schema ListTopicsResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }] } + | .optInPhoneNumber => { name := "OptInPhoneNumber", method := "POST", uri := "/", input := (Shape.schema OptInPhoneNumberInput), output := (Shape.schema OptInPhoneNumberResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "ThrottledException", code := some "Throttled", schema := Shape.schema ThrottledException }] } + | .publish => { name := "Publish", method := "POST", uri := "/", input := (Shape.schema PublishInput), output := (Shape.schema PublishResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "EndpointDisabledException", code := some "EndpointDisabled", schema := Shape.schema EndpointDisabledException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "InvalidParameterValueException", code := some "ParameterValueInvalid", schema := Shape.schema InvalidParameterValueException }, { name := "InvalidSecurityException", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurityException }, { name := "KMSAccessDeniedException", code := some "KMSAccessDenied", schema := Shape.schema KMSAccessDeniedException }, { name := "KMSDisabledException", code := some "KMSDisabled", schema := Shape.schema KMSDisabledException }, { name := "KMSInvalidStateException", code := some "KMSInvalidState", schema := Shape.schema KMSInvalidStateException }, { name := "KMSNotFoundException", code := some "KMSNotFound", schema := Shape.schema KMSNotFoundException }, { name := "KMSOptInRequired", code := some "KMSOptInRequired", schema := Shape.schema KMSOptInRequired }, { name := "KMSThrottlingException", code := some "KMSThrottling", schema := Shape.schema KMSThrottlingException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }, { name := "PlatformApplicationDisabledException", code := some "PlatformApplicationDisabled", schema := Shape.schema PlatformApplicationDisabledException }, { name := "ValidationException", code := some "ValidationException", schema := Shape.schema ValidationException }] } + | .publishBatch => { name := "PublishBatch", method := "POST", uri := "/", input := (Shape.schema PublishBatchInput), output := (Shape.schema PublishBatchResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "BatchEntryIdsNotDistinctException", code := some "BatchEntryIdsNotDistinct", schema := Shape.schema BatchEntryIdsNotDistinctException }, { name := "BatchRequestTooLongException", code := some "BatchRequestTooLong", schema := Shape.schema BatchRequestTooLongException }, { name := "EmptyBatchRequestException", code := some "EmptyBatchRequest", schema := Shape.schema EmptyBatchRequestException }, { name := "EndpointDisabledException", code := some "EndpointDisabled", schema := Shape.schema EndpointDisabledException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidBatchEntryIdException", code := some "InvalidBatchEntryId", schema := Shape.schema InvalidBatchEntryIdException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "InvalidParameterValueException", code := some "ParameterValueInvalid", schema := Shape.schema InvalidParameterValueException }, { name := "InvalidSecurityException", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurityException }, { name := "KMSAccessDeniedException", code := some "KMSAccessDenied", schema := Shape.schema KMSAccessDeniedException }, { name := "KMSDisabledException", code := some "KMSDisabled", schema := Shape.schema KMSDisabledException }, { name := "KMSInvalidStateException", code := some "KMSInvalidState", schema := Shape.schema KMSInvalidStateException }, { name := "KMSNotFoundException", code := some "KMSNotFound", schema := Shape.schema KMSNotFoundException }, { name := "KMSOptInRequired", code := some "KMSOptInRequired", schema := Shape.schema KMSOptInRequired }, { name := "KMSThrottlingException", code := some "KMSThrottling", schema := Shape.schema KMSThrottlingException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }, { name := "PlatformApplicationDisabledException", code := some "PlatformApplicationDisabled", schema := Shape.schema PlatformApplicationDisabledException }, { name := "TooManyEntriesInBatchRequestException", code := some "TooManyEntriesInBatchRequest", schema := Shape.schema TooManyEntriesInBatchRequestException }, { name := "ValidationException", code := some "ValidationException", schema := Shape.schema ValidationException }] } + | .putDataProtectionPolicy => { name := "PutDataProtectionPolicy", method := "POST", uri := "/", input := (Shape.schema PutDataProtectionPolicyInput), output := (Shape.schema Unit), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "InvalidSecurityException", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurityException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }] } + | .removePermission => { name := "RemovePermission", method := "POST", uri := "/", input := (Shape.schema RemovePermissionInput), output := (Shape.schema Unit), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }] } + | .setEndpointAttributes => { name := "SetEndpointAttributes", method := "POST", uri := "/", input := (Shape.schema SetEndpointAttributesInput), output := (Shape.schema Unit), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }] } + | .setPlatformApplicationAttributes => { name := "SetPlatformApplicationAttributes", method := "POST", uri := "/", input := (Shape.schema SetPlatformApplicationAttributesInput), output := (Shape.schema Unit), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }] } + | .setSMSAttributes => { name := "SetSMSAttributes", method := "POST", uri := "/", input := (Shape.schema SetSMSAttributesInput), output := (Shape.schema SetSMSAttributesResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "ThrottledException", code := some "Throttled", schema := Shape.schema ThrottledException }] } + | .setSubscriptionAttributes => { name := "SetSubscriptionAttributes", method := "POST", uri := "/", input := (Shape.schema SetSubscriptionAttributesInput), output := (Shape.schema Unit), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "FilterPolicyLimitExceededException", code := some "FilterPolicyLimitExceeded", schema := Shape.schema FilterPolicyLimitExceededException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }, { name := "ReplayLimitExceededException", code := some "ReplayLimitExceeded", schema := Shape.schema ReplayLimitExceededException }] } + | .setTopicAttributes => { name := "SetTopicAttributes", method := "POST", uri := "/", input := (Shape.schema SetTopicAttributesInput), output := (Shape.schema Unit), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "InvalidSecurityException", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurityException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }] } + | .subscribe => { name := "Subscribe", method := "POST", uri := "/", input := (Shape.schema SubscribeInput), output := (Shape.schema SubscribeResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "FilterPolicyLimitExceededException", code := some "FilterPolicyLimitExceeded", schema := Shape.schema FilterPolicyLimitExceededException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "InvalidSecurityException", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurityException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }, { name := "ReplayLimitExceededException", code := some "ReplayLimitExceeded", schema := Shape.schema ReplayLimitExceededException }, { name := "SubscriptionLimitExceededException", code := some "SubscriptionLimitExceeded", schema := Shape.schema SubscriptionLimitExceededException }] } + | .tagResource => { name := "TagResource", method := "POST", uri := "/", input := (Shape.schema TagResourceRequest), output := (Shape.schema TagResourceResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "ConcurrentAccessException", code := some "ConcurrentAccess", schema := Shape.schema ConcurrentAccessException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "ResourceNotFoundException", code := some "ResourceNotFound", schema := Shape.schema ResourceNotFoundException }, { name := "StaleTagException", code := some "StaleTag", schema := Shape.schema StaleTagException }, { name := "TagLimitExceededException", code := some "TagLimitExceeded", schema := Shape.schema TagLimitExceededException }, { name := "TagPolicyException", code := some "TagPolicy", schema := Shape.schema TagPolicyException }] } + | .unsubscribe => { name := "Unsubscribe", method := "POST", uri := "/", input := (Shape.schema UnsubscribeInput), output := (Shape.schema Unit), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "InvalidSecurityException", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurityException }, { name := "NotFoundException", code := some "NotFound", schema := Shape.schema NotFoundException }] } + | .untagResource => { name := "UntagResource", method := "POST", uri := "/", input := (Shape.schema UntagResourceRequest), output := (Shape.schema UntagResourceResponse), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "ConcurrentAccessException", code := some "ConcurrentAccess", schema := Shape.schema ConcurrentAccessException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "ResourceNotFoundException", code := some "ResourceNotFound", schema := Shape.schema ResourceNotFoundException }, { name := "StaleTagException", code := some "StaleTag", schema := Shape.schema StaleTagException }, { name := "TagLimitExceededException", code := some "TagLimitExceeded", schema := Shape.schema TagLimitExceededException }, { name := "TagPolicyException", code := some "TagPolicy", schema := Shape.schema TagPolicyException }] } + | .verifySMSSandboxPhoneNumber => { name := "VerifySMSSandboxPhoneNumber", method := "POST", uri := "/", input := (Shape.schema VerifySMSSandboxPhoneNumberInput), output := (Shape.schema VerifySMSSandboxPhoneNumberResult), errors := [{ name := "AuthorizationErrorException", code := some "AuthorizationError", schema := Shape.schema AuthorizationErrorException }, { name := "InternalErrorException", code := some "InternalError", schema := Shape.schema InternalErrorException }, { name := "InvalidParameterException", code := some "InvalidParameter", schema := Shape.schema InvalidParameterException }, { name := "ResourceNotFoundException", code := some "ResourceNotFound", schema := Shape.schema ResourceNotFoundException }, { name := "ThrottledException", code := some "Throttled", schema := Shape.schema ThrottledException }, { name := "VerificationException", schema := Shape.schema VerificationException }] } + +/-- How the service goes over HTTP. -/ +def wire : Wire api := Wire.of service info + (fun op => match op with + | .addPermission => fun (x : AddPermissionInput) => Shape.toValue x + | .checkIfPhoneNumberIsOptedOut => fun (x : CheckIfPhoneNumberIsOptedOutInput) => Shape.toValue x + | .confirmSubscription => fun (x : ConfirmSubscriptionInput) => Shape.toValue x + | .createPlatformApplication => fun (x : CreatePlatformApplicationInput) => Shape.toValue x + | .createPlatformEndpoint => fun (x : CreatePlatformEndpointInput) => Shape.toValue x + | .createSMSSandboxPhoneNumber => fun (x : CreateSMSSandboxPhoneNumberInput) => Shape.toValue x + | .createTopic => fun (x : CreateTopicInput) => Shape.toValue x + | .deleteEndpoint => fun (x : DeleteEndpointInput) => Shape.toValue x + | .deletePlatformApplication => fun (x : DeletePlatformApplicationInput) => Shape.toValue x + | .deleteSMSSandboxPhoneNumber => fun (x : DeleteSMSSandboxPhoneNumberInput) => Shape.toValue x + | .deleteTopic => fun (x : DeleteTopicInput) => Shape.toValue x + | .getDataProtectionPolicy => fun (x : GetDataProtectionPolicyInput) => Shape.toValue x + | .getEndpointAttributes => fun (x : GetEndpointAttributesInput) => Shape.toValue x + | .getPlatformApplicationAttributes => fun (x : GetPlatformApplicationAttributesInput) => Shape.toValue x + | .getSMSAttributes => fun (x : GetSMSAttributesInput) => Shape.toValue x + | .getSMSSandboxAccountStatus => fun (x : GetSMSSandboxAccountStatusInput) => Shape.toValue x + | .getSubscriptionAttributes => fun (x : GetSubscriptionAttributesInput) => Shape.toValue x + | .getTopicAttributes => fun (x : GetTopicAttributesInput) => Shape.toValue x + | .listEndpointsByPlatformApplication => fun (x : ListEndpointsByPlatformApplicationInput) => Shape.toValue x + | .listOriginationNumbers => fun (x : ListOriginationNumbersRequest) => Shape.toValue x + | .listPhoneNumbersOptedOut => fun (x : ListPhoneNumbersOptedOutInput) => Shape.toValue x + | .listPlatformApplications => fun (x : ListPlatformApplicationsInput) => Shape.toValue x + | .listSMSSandboxPhoneNumbers => fun (x : ListSMSSandboxPhoneNumbersInput) => Shape.toValue x + | .listSubscriptions => fun (x : ListSubscriptionsInput) => Shape.toValue x + | .listSubscriptionsByTopic => fun (x : ListSubscriptionsByTopicInput) => Shape.toValue x + | .listTagsForResource => fun (x : ListTagsForResourceRequest) => Shape.toValue x + | .listTopics => fun (x : ListTopicsInput) => Shape.toValue x + | .optInPhoneNumber => fun (x : OptInPhoneNumberInput) => Shape.toValue x + | .publish => fun (x : PublishInput) => Shape.toValue x + | .publishBatch => fun (x : PublishBatchInput) => Shape.toValue x + | .putDataProtectionPolicy => fun (x : PutDataProtectionPolicyInput) => Shape.toValue x + | .removePermission => fun (x : RemovePermissionInput) => Shape.toValue x + | .setEndpointAttributes => fun (x : SetEndpointAttributesInput) => Shape.toValue x + | .setPlatformApplicationAttributes => fun (x : SetPlatformApplicationAttributesInput) => Shape.toValue x + | .setSMSAttributes => fun (x : SetSMSAttributesInput) => Shape.toValue x + | .setSubscriptionAttributes => fun (x : SetSubscriptionAttributesInput) => Shape.toValue x + | .setTopicAttributes => fun (x : SetTopicAttributesInput) => Shape.toValue x + | .subscribe => fun (x : SubscribeInput) => Shape.toValue x + | .tagResource => fun (x : TagResourceRequest) => Shape.toValue x + | .unsubscribe => fun (x : UnsubscribeInput) => Shape.toValue x + | .untagResource => fun (x : UntagResourceRequest) => Shape.toValue x + | .verifySMSSandboxPhoneNumber => fun (x : VerifySMSSandboxPhoneNumberInput) => Shape.toValue x +) + (fun op => match op with + | .addPermission => fun v => (Shape.ofValue v : Except String Unit) + | .checkIfPhoneNumberIsOptedOut => fun v => (Shape.ofValue v : Except String CheckIfPhoneNumberIsOptedOutResponse) + | .confirmSubscription => fun v => (Shape.ofValue v : Except String ConfirmSubscriptionResponse) + | .createPlatformApplication => fun v => (Shape.ofValue v : Except String CreatePlatformApplicationResponse) + | .createPlatformEndpoint => fun v => (Shape.ofValue v : Except String CreateEndpointResponse) + | .createSMSSandboxPhoneNumber => fun v => (Shape.ofValue v : Except String CreateSMSSandboxPhoneNumberResult) + | .createTopic => fun v => (Shape.ofValue v : Except String CreateTopicResponse) + | .deleteEndpoint => fun v => (Shape.ofValue v : Except String Unit) + | .deletePlatformApplication => fun v => (Shape.ofValue v : Except String Unit) + | .deleteSMSSandboxPhoneNumber => fun v => (Shape.ofValue v : Except String DeleteSMSSandboxPhoneNumberResult) + | .deleteTopic => fun v => (Shape.ofValue v : Except String Unit) + | .getDataProtectionPolicy => fun v => (Shape.ofValue v : Except String GetDataProtectionPolicyResponse) + | .getEndpointAttributes => fun v => (Shape.ofValue v : Except String GetEndpointAttributesResponse) + | .getPlatformApplicationAttributes => fun v => (Shape.ofValue v : Except String GetPlatformApplicationAttributesResponse) + | .getSMSAttributes => fun v => (Shape.ofValue v : Except String GetSMSAttributesResponse) + | .getSMSSandboxAccountStatus => fun v => (Shape.ofValue v : Except String GetSMSSandboxAccountStatusResult) + | .getSubscriptionAttributes => fun v => (Shape.ofValue v : Except String GetSubscriptionAttributesResponse) + | .getTopicAttributes => fun v => (Shape.ofValue v : Except String GetTopicAttributesResponse) + | .listEndpointsByPlatformApplication => fun v => (Shape.ofValue v : Except String ListEndpointsByPlatformApplicationResponse) + | .listOriginationNumbers => fun v => (Shape.ofValue v : Except String ListOriginationNumbersResult) + | .listPhoneNumbersOptedOut => fun v => (Shape.ofValue v : Except String ListPhoneNumbersOptedOutResponse) + | .listPlatformApplications => fun v => (Shape.ofValue v : Except String ListPlatformApplicationsResponse) + | .listSMSSandboxPhoneNumbers => fun v => (Shape.ofValue v : Except String ListSMSSandboxPhoneNumbersResult) + | .listSubscriptions => fun v => (Shape.ofValue v : Except String ListSubscriptionsResponse) + | .listSubscriptionsByTopic => fun v => (Shape.ofValue v : Except String ListSubscriptionsByTopicResponse) + | .listTagsForResource => fun v => (Shape.ofValue v : Except String ListTagsForResourceResponse) + | .listTopics => fun v => (Shape.ofValue v : Except String ListTopicsResponse) + | .optInPhoneNumber => fun v => (Shape.ofValue v : Except String OptInPhoneNumberResponse) + | .publish => fun v => (Shape.ofValue v : Except String PublishResponse) + | .publishBatch => fun v => (Shape.ofValue v : Except String PublishBatchResponse) + | .putDataProtectionPolicy => fun v => (Shape.ofValue v : Except String Unit) + | .removePermission => fun v => (Shape.ofValue v : Except String Unit) + | .setEndpointAttributes => fun v => (Shape.ofValue v : Except String Unit) + | .setPlatformApplicationAttributes => fun v => (Shape.ofValue v : Except String Unit) + | .setSMSAttributes => fun v => (Shape.ofValue v : Except String SetSMSAttributesResponse) + | .setSubscriptionAttributes => fun v => (Shape.ofValue v : Except String Unit) + | .setTopicAttributes => fun v => (Shape.ofValue v : Except String Unit) + | .subscribe => fun v => (Shape.ofValue v : Except String SubscribeResponse) + | .tagResource => fun v => (Shape.ofValue v : Except String TagResourceResponse) + | .unsubscribe => fun v => (Shape.ofValue v : Except String Unit) + | .untagResource => fun v => (Shape.ofValue v : Except String UntagResourceResponse) + | .verifySMSSandboxPhoneNumber => fun v => (Shape.ofValue v : Except String VerifySMSSandboxPhoneNumberResult) +) + (fun op => match op with + | .addPermission => AddPermissionError.ofWire + | .checkIfPhoneNumberIsOptedOut => CheckIfPhoneNumberIsOptedOutError.ofWire + | .confirmSubscription => ConfirmSubscriptionError.ofWire + | .createPlatformApplication => CreatePlatformApplicationError.ofWire + | .createPlatformEndpoint => CreatePlatformEndpointError.ofWire + | .createSMSSandboxPhoneNumber => CreateSMSSandboxPhoneNumberError.ofWire + | .createTopic => CreateTopicError.ofWire + | .deleteEndpoint => DeleteEndpointError.ofWire + | .deletePlatformApplication => DeletePlatformApplicationError.ofWire + | .deleteSMSSandboxPhoneNumber => DeleteSMSSandboxPhoneNumberError.ofWire + | .deleteTopic => DeleteTopicError.ofWire + | .getDataProtectionPolicy => GetDataProtectionPolicyError.ofWire + | .getEndpointAttributes => GetEndpointAttributesError.ofWire + | .getPlatformApplicationAttributes => GetPlatformApplicationAttributesError.ofWire + | .getSMSAttributes => GetSMSAttributesError.ofWire + | .getSMSSandboxAccountStatus => GetSMSSandboxAccountStatusError.ofWire + | .getSubscriptionAttributes => GetSubscriptionAttributesError.ofWire + | .getTopicAttributes => GetTopicAttributesError.ofWire + | .listEndpointsByPlatformApplication => ListEndpointsByPlatformApplicationError.ofWire + | .listOriginationNumbers => ListOriginationNumbersError.ofWire + | .listPhoneNumbersOptedOut => ListPhoneNumbersOptedOutError.ofWire + | .listPlatformApplications => ListPlatformApplicationsError.ofWire + | .listSMSSandboxPhoneNumbers => ListSMSSandboxPhoneNumbersError.ofWire + | .listSubscriptions => ListSubscriptionsError.ofWire + | .listSubscriptionsByTopic => ListSubscriptionsByTopicError.ofWire + | .listTagsForResource => ListTagsForResourceError.ofWire + | .listTopics => ListTopicsError.ofWire + | .optInPhoneNumber => OptInPhoneNumberError.ofWire + | .publish => PublishError.ofWire + | .publishBatch => PublishBatchError.ofWire + | .putDataProtectionPolicy => PutDataProtectionPolicyError.ofWire + | .removePermission => RemovePermissionError.ofWire + | .setEndpointAttributes => SetEndpointAttributesError.ofWire + | .setPlatformApplicationAttributes => SetPlatformApplicationAttributesError.ofWire + | .setSMSAttributes => SetSMSAttributesError.ofWire + | .setSubscriptionAttributes => SetSubscriptionAttributesError.ofWire + | .setTopicAttributes => SetTopicAttributesError.ofWire + | .subscribe => SubscribeError.ofWire + | .tagResource => TagResourceError.ofWire + | .unsubscribe => UnsubscribeError.ofWire + | .untagResource => UntagResourceError.ofWire + | .verifySMSSandboxPhoneNumber => VerifySMSSandboxPhoneNumberError.ofWire +) + +/-- Adds a statement to a topic's access control policy, granting access for the specified Amazon Web Services accounts to the specified actions. -/ +def addPermission {ε : Type} (input : AddPermissionInput) : Eff api ε (Except AddPermissionError Unit) := + Eff.ask (api := api) .addPermission input + +/-- Accepts a phone number and indicates whether the phone holder has opted out of receiving SMS messages from your Amazon Web Services account. -/ +def checkIfPhoneNumberIsOptedOut {ε : Type} (input : CheckIfPhoneNumberIsOptedOutInput) : Eff api ε (Except CheckIfPhoneNumberIsOptedOutError CheckIfPhoneNumberIsOptedOutResponse) := + Eff.ask (api := api) .checkIfPhoneNumberIsOptedOut input + +/-- Verifies an endpoint owner's intent to receive messages by validating the token sent to the endpoint by an earlier Subscribe action. -/ +def confirmSubscription {ε : Type} (input : ConfirmSubscriptionInput) : Eff api ε (Except ConfirmSubscriptionError ConfirmSubscriptionResponse) := + Eff.ask (api := api) .confirmSubscription input + +/-- Creates a platform application object for one of the supported push notification services, such as APNS and GCM (Firebase Cloud Messaging), to which devices and mobile apps may register. -/ +def createPlatformApplication {ε : Type} (input : CreatePlatformApplicationInput) : Eff api ε (Except CreatePlatformApplicationError CreatePlatformApplicationResponse) := + Eff.ask (api := api) .createPlatformApplication input + +/-- Creates an endpoint for a device and mobile app on one of the supported push notification services, such as GCM (Firebase Cloud Messaging) and APNS. -/ +def createPlatformEndpoint {ε : Type} (input : CreatePlatformEndpointInput) : Eff api ε (Except CreatePlatformEndpointError CreateEndpointResponse) := + Eff.ask (api := api) .createPlatformEndpoint input + +/-- Adds a destination phone number to an Amazon Web Services account in the SMS sandbox and sends a one-time password (OTP) to that phone number. -/ +def createSMSSandboxPhoneNumber {ε : Type} (input : CreateSMSSandboxPhoneNumberInput) : Eff api ε (Except CreateSMSSandboxPhoneNumberError CreateSMSSandboxPhoneNumberResult) := + Eff.ask (api := api) .createSMSSandboxPhoneNumber input + +/-- Creates a topic to which notifications can be published. -/ +def createTopic {ε : Type} (input : CreateTopicInput) : Eff api ε (Except CreateTopicError CreateTopicResponse) := + Eff.ask (api := api) .createTopic input + +/-- Deletes the endpoint for a device and mobile app from Amazon SNS. -/ +def deleteEndpoint {ε : Type} (input : DeleteEndpointInput) : Eff api ε (Except DeleteEndpointError Unit) := + Eff.ask (api := api) .deleteEndpoint input + +/-- Deletes a platform application object for one of the supported push notification services, such as APNS and GCM (Firebase Cloud Messaging). -/ +def deletePlatformApplication {ε : Type} (input : DeletePlatformApplicationInput) : Eff api ε (Except DeletePlatformApplicationError Unit) := + Eff.ask (api := api) .deletePlatformApplication input + +/-- Deletes an Amazon Web Services account's verified or pending phone number from the SMS sandbox. -/ +def deleteSMSSandboxPhoneNumber {ε : Type} (input : DeleteSMSSandboxPhoneNumberInput) : Eff api ε (Except DeleteSMSSandboxPhoneNumberError DeleteSMSSandboxPhoneNumberResult) := + Eff.ask (api := api) .deleteSMSSandboxPhoneNumber input + +/-- Deletes a topic and all its subscriptions. -/ +def deleteTopic {ε : Type} (input : DeleteTopicInput) : Eff api ε (Except DeleteTopicError Unit) := + Eff.ask (api := api) .deleteTopic input + +/-- Amazon SNS message data protection is no longer available to new customers. -/ +def getDataProtectionPolicy {ε : Type} (input : GetDataProtectionPolicyInput) : Eff api ε (Except GetDataProtectionPolicyError GetDataProtectionPolicyResponse) := + Eff.ask (api := api) .getDataProtectionPolicy input + +/-- Retrieves the endpoint attributes for a device on one of the supported push notification services, such as GCM (Firebase Cloud Messaging) and APNS. -/ +def getEndpointAttributes {ε : Type} (input : GetEndpointAttributesInput) : Eff api ε (Except GetEndpointAttributesError GetEndpointAttributesResponse) := + Eff.ask (api := api) .getEndpointAttributes input + +/-- Retrieves the attributes of the platform application object for the supported push notification services, such as APNS and GCM (Firebase Cloud Messaging). -/ +def getPlatformApplicationAttributes {ε : Type} (input : GetPlatformApplicationAttributesInput) : Eff api ε (Except GetPlatformApplicationAttributesError GetPlatformApplicationAttributesResponse) := + Eff.ask (api := api) .getPlatformApplicationAttributes input + +/-- Returns the settings for sending SMS messages from your Amazon Web Services account. -/ +def getSMSAttributes {ε : Type} (input : GetSMSAttributesInput) : Eff api ε (Except GetSMSAttributesError GetSMSAttributesResponse) := + Eff.ask (api := api) .getSMSAttributes input + +/-- Retrieves the SMS sandbox status for the calling Amazon Web Services account in the target Amazon Web Services Region. -/ +def getSMSSandboxAccountStatus {ε : Type} (input : GetSMSSandboxAccountStatusInput) : Eff api ε (Except GetSMSSandboxAccountStatusError GetSMSSandboxAccountStatusResult) := + Eff.ask (api := api) .getSMSSandboxAccountStatus input + +/-- Returns all of the properties of a subscription. -/ +def getSubscriptionAttributes {ε : Type} (input : GetSubscriptionAttributesInput) : Eff api ε (Except GetSubscriptionAttributesError GetSubscriptionAttributesResponse) := + Eff.ask (api := api) .getSubscriptionAttributes input + +/-- Returns all of the properties of a topic. -/ +def getTopicAttributes {ε : Type} (input : GetTopicAttributesInput) : Eff api ε (Except GetTopicAttributesError GetTopicAttributesResponse) := + Eff.ask (api := api) .getTopicAttributes input + +/-- Lists the endpoints and endpoint attributes for devices in a supported push notification service, such as GCM (Firebase Cloud Messaging) and APNS. -/ +def listEndpointsByPlatformApplication {ε : Type} (input : ListEndpointsByPlatformApplicationInput) : Eff api ε (Except ListEndpointsByPlatformApplicationError ListEndpointsByPlatformApplicationResponse) := + Eff.ask (api := api) .listEndpointsByPlatformApplication input + +/-- Lists the calling Amazon Web Services account's dedicated origination numbers and their metadata. -/ +def listOriginationNumbers {ε : Type} (input : ListOriginationNumbersRequest) : Eff api ε (Except ListOriginationNumbersError ListOriginationNumbersResult) := + Eff.ask (api := api) .listOriginationNumbers input + +/-- Returns a list of phone numbers that are opted out, meaning you cannot send SMS messages to them. -/ +def listPhoneNumbersOptedOut {ε : Type} (input : ListPhoneNumbersOptedOutInput) : Eff api ε (Except ListPhoneNumbersOptedOutError ListPhoneNumbersOptedOutResponse) := + Eff.ask (api := api) .listPhoneNumbersOptedOut input + +/-- Lists the platform application objects for the supported push notification services, such as APNS and GCM (Firebase Cloud Messaging). -/ +def listPlatformApplications {ε : Type} (input : ListPlatformApplicationsInput) : Eff api ε (Except ListPlatformApplicationsError ListPlatformApplicationsResponse) := + Eff.ask (api := api) .listPlatformApplications input + +/-- Lists the calling Amazon Web Services account's current verified and pending destination phone numbers in the SMS sandbox. -/ +def listSMSSandboxPhoneNumbers {ε : Type} (input : ListSMSSandboxPhoneNumbersInput) : Eff api ε (Except ListSMSSandboxPhoneNumbersError ListSMSSandboxPhoneNumbersResult) := + Eff.ask (api := api) .listSMSSandboxPhoneNumbers input + +/-- Returns a list of the requester's subscriptions. -/ +def listSubscriptions {ε : Type} (input : ListSubscriptionsInput) : Eff api ε (Except ListSubscriptionsError ListSubscriptionsResponse) := + Eff.ask (api := api) .listSubscriptions input + +/-- Returns a list of the subscriptions to a specific topic. -/ +def listSubscriptionsByTopic {ε : Type} (input : ListSubscriptionsByTopicInput) : Eff api ε (Except ListSubscriptionsByTopicError ListSubscriptionsByTopicResponse) := + Eff.ask (api := api) .listSubscriptionsByTopic input + +/-- List all tags added to the specified Amazon SNS topic. -/ +def listTagsForResource {ε : Type} (input : ListTagsForResourceRequest) : Eff api ε (Except ListTagsForResourceError ListTagsForResourceResponse) := + Eff.ask (api := api) .listTagsForResource input + +/-- Returns a list of the requester's topics. -/ +def listTopics {ε : Type} (input : ListTopicsInput) : Eff api ε (Except ListTopicsError ListTopicsResponse) := + Eff.ask (api := api) .listTopics input + +/-- Use this request to opt in a phone number that is opted out, which enables you to resume sending SMS messages to the number. -/ +def optInPhoneNumber {ε : Type} (input : OptInPhoneNumberInput) : Eff api ε (Except OptInPhoneNumberError OptInPhoneNumberResponse) := + Eff.ask (api := api) .optInPhoneNumber input + +/-- Sends a message to an Amazon SNS topic, a text message (SMS message) directly to a phone number, or a message to a mobile platform endpoint (when you specify the TargetArn ). -/ +def publish {ε : Type} (input : PublishInput) : Eff api ε (Except PublishError PublishResponse) := + Eff.ask (api := api) .publish input + +/-- Publishes up to 10 messages to the specified topic in a single batch. -/ +def publishBatch {ε : Type} (input : PublishBatchInput) : Eff api ε (Except PublishBatchError PublishBatchResponse) := + Eff.ask (api := api) .publishBatch input + +/-- Amazon SNS message data protection is no longer available to new customers. -/ +def putDataProtectionPolicy {ε : Type} (input : PutDataProtectionPolicyInput) : Eff api ε (Except PutDataProtectionPolicyError Unit) := + Eff.ask (api := api) .putDataProtectionPolicy input + +/-- Removes a statement from a topic's access control policy. -/ +def removePermission {ε : Type} (input : RemovePermissionInput) : Eff api ε (Except RemovePermissionError Unit) := + Eff.ask (api := api) .removePermission input + +/-- Sets the attributes for an endpoint for a device on one of the supported push notification services, such as GCM (Firebase Cloud Messaging) and APNS. -/ +def setEndpointAttributes {ε : Type} (input : SetEndpointAttributesInput) : Eff api ε (Except SetEndpointAttributesError Unit) := + Eff.ask (api := api) .setEndpointAttributes input + +/-- Sets the attributes of the platform application object for the supported push notification services, such as APNS and GCM (Firebase Cloud Messaging). -/ +def setPlatformApplicationAttributes {ε : Type} (input : SetPlatformApplicationAttributesInput) : Eff api ε (Except SetPlatformApplicationAttributesError Unit) := + Eff.ask (api := api) .setPlatformApplicationAttributes input + +/-- Use this request to set the default settings for sending SMS messages and receiving daily SMS usage reports. -/ +def setSMSAttributes {ε : Type} (input : SetSMSAttributesInput) : Eff api ε (Except SetSMSAttributesError SetSMSAttributesResponse) := + Eff.ask (api := api) .setSMSAttributes input + +/-- Allows a subscription owner to set an attribute of the subscription to a new value. -/ +def setSubscriptionAttributes {ε : Type} (input : SetSubscriptionAttributesInput) : Eff api ε (Except SetSubscriptionAttributesError Unit) := + Eff.ask (api := api) .setSubscriptionAttributes input + +/-- Allows a topic owner to set an attribute of the topic to a new value. -/ +def setTopicAttributes {ε : Type} (input : SetTopicAttributesInput) : Eff api ε (Except SetTopicAttributesError Unit) := + Eff.ask (api := api) .setTopicAttributes input + +/-- Subscribes an endpoint to an Amazon SNS topic. -/ +def subscribe {ε : Type} (input : SubscribeInput) : Eff api ε (Except SubscribeError SubscribeResponse) := + Eff.ask (api := api) .subscribe input + +/-- Add tags to the specified Amazon SNS topic. -/ +def tagResource {ε : Type} (input : TagResourceRequest) : Eff api ε (Except TagResourceError TagResourceResponse) := + Eff.ask (api := api) .tagResource input + +/-- Deletes a subscription. -/ +def unsubscribe {ε : Type} (input : UnsubscribeInput) : Eff api ε (Except UnsubscribeError Unit) := + Eff.ask (api := api) .unsubscribe input + +/-- Remove tags from the specified Amazon SNS topic. -/ +def untagResource {ε : Type} (input : UntagResourceRequest) : Eff api ε (Except UntagResourceError UntagResourceResponse) := + Eff.ask (api := api) .untagResource input + +/-- Verifies a destination phone number with a one-time password (OTP) for the calling Amazon Web Services account. -/ +def verifySMSSandboxPhoneNumber {ε : Type} (input : VerifySMSSandboxPhoneNumberInput) : Eff api ε (Except VerifySMSSandboxPhoneNumberError VerifySMSSandboxPhoneNumberResult) := + Eff.ask (api := api) .verifySMSSandboxPhoneNumber input + +end Distilled.AWS.SNS diff --git a/lean/Distilled/AWS/Services/SQS.lean b/lean/Distilled/AWS/Services/SQS.lean new file mode 100644 index 0000000000..f63193a2b8 --- /dev/null +++ b/lean/Distilled/AWS/Services/SQS.lean @@ -0,0 +1,2482 @@ +-- Generated by distilled-gen from sqs-2012-11-05.json. Do not edit. +import Distilled.Protocol + +namespace Distilled.AWS.SQS +open Lean Distilled + +set_option linter.unusedVariables false +set_option maxRecDepth 4096 +set_option maxHeartbeats 0 + +structure AddPermissionRequest where + /-- The Amazon Web Services account numbers of the principals who are to receive permission. -/ + awsAccountIds : (List String) + /-- The action the client wants to allow for the specified principal. -/ + actions : (List String) + /-- The unique identification of the permission you're setting (for example, AliceSendMessage ). -/ + label : String + /-- The URL of the Amazon SQS queue to which permissions are added. -/ + queueUrl : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape AddPermissionRequest where + schema := .struct "AddPermissionRequest" [({ name := "AWSAccountIds", required := true, xmlName := some "AWSAccountId", flattened := true }, (.list .string "member")), + ({ name := "Actions", required := true, xmlName := some "ActionName", flattened := true }, (.list .string "member")), + ({ name := "Label", required := true }, .string), + ({ name := "QueueUrl", required := true }, .string)] + toValue x := record [put "AWSAccountIds" x.awsAccountIds, put "Actions" x.actions, put "Label" x.label, put "QueueUrl" x.queueUrl] + ofValue v := do + let awsAccountIds ← v.req "AWSAccountIds" + let actions ← v.req "Actions" + let label ← v.req "Label" + let queueUrl ← v.req "QueueUrl" + return { awsAccountIds, actions, label, queueUrl } + +/-- Two or more batch entries in the request have the same Id . -/ +structure BatchEntryIdsNotDistinct where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BatchEntryIdsNotDistinct where + schema := .struct "BatchEntryIdsNotDistinct" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The length of all the messages put together is more than the limit. -/ +structure BatchRequestTooLong where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape BatchRequestTooLong where + schema := .struct "BatchRequestTooLong" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Gives a detailed description of the result of an action on each entry in the request. -/ +structure BatchResultErrorEntry where + /-- An error code representing why the action failed on this entry. -/ + code : String + /-- The Id of an entry in a batch request. -/ + id : String + /-- A message explaining why the action failed on this entry. -/ + message : Option String := none + /-- Specifies whether the error happened due to the caller of the batch API action. -/ + senderFault : Bool +deriving DecidableEq, Repr, Inhabited + +instance : Shape BatchResultErrorEntry where + schema := .struct "BatchResultErrorEntry" [({ name := "Code", required := true }, .string), + ({ name := "Id", required := true }, .string), + ({ name := "Message" }, .string), + ({ name := "SenderFault", required := true }, .bool)] + toValue x := record [put "Code" x.code, put "Id" x.id, putOpt "Message" x.message, put "SenderFault" x.senderFault] + ofValue v := do + let code ← v.req "Code" + let id ← v.req "Id" + let message ← v.opt "Message" + let senderFault ← v.req "SenderFault" + return { code, id, message, senderFault } + +structure CancelMessageMoveTaskRequest where + /-- An identifier associated with a message movement task. -/ + taskHandle : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelMessageMoveTaskRequest where + schema := .struct "CancelMessageMoveTaskRequest" [({ name := "TaskHandle", required := true }, .string)] + toValue x := record [put "TaskHandle" x.taskHandle] + ofValue v := do + let taskHandle ← v.req "TaskHandle" + return { taskHandle } + +structure CancelMessageMoveTaskResult where + /-- The approximate number of messages already moved to the destination queue. -/ + approximateNumberOfMessagesMoved : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CancelMessageMoveTaskResult where + schema := .struct "CancelMessageMoveTaskResult" [({ name := "ApproximateNumberOfMessagesMoved" }, .int)] + toValue x := record [putOpt "ApproximateNumberOfMessagesMoved" x.approximateNumberOfMessagesMoved] + ofValue v := do + let approximateNumberOfMessagesMoved ← v.opt "ApproximateNumberOfMessagesMoved" + return { approximateNumberOfMessagesMoved } + +/-- Encloses a receipt handle and an entry ID for each message in ChangeMessageVisibilityBatch . -/ +structure ChangeMessageVisibilityBatchRequestEntry where + /-- An identifier for this particular receipt handle used to communicate the result. -/ + id : String + /-- A receipt handle. -/ + receiptHandle : String + /-- The new value (in seconds) for the message's visibility timeout. -/ + visibilityTimeout : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ChangeMessageVisibilityBatchRequestEntry where + schema := .struct "ChangeMessageVisibilityBatchRequestEntry" [({ name := "Id", required := true }, .string), + ({ name := "ReceiptHandle", required := true }, .string), + ({ name := "VisibilityTimeout" }, .int)] + toValue x := record [put "Id" x.id, put "ReceiptHandle" x.receiptHandle, putOpt "VisibilityTimeout" x.visibilityTimeout] + ofValue v := do + let id ← v.req "Id" + let receiptHandle ← v.req "ReceiptHandle" + let visibilityTimeout ← v.opt "VisibilityTimeout" + return { id, receiptHandle, visibilityTimeout } + +/-- Encloses the Id of an entry in ChangeMessageVisibilityBatch . -/ +structure ChangeMessageVisibilityBatchResultEntry where + /-- Represents a message whose visibility timeout has been changed successfully. -/ + id : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ChangeMessageVisibilityBatchResultEntry where + schema := .struct "ChangeMessageVisibilityBatchResultEntry" [({ name := "Id", required := true }, .string)] + toValue x := record [put "Id" x.id] + ofValue v := do + let id ← v.req "Id" + return { id } + +structure ChangeMessageVisibilityRequest where + /-- The URL of the Amazon SQS queue whose message's visibility is changed. -/ + queueUrl : String + /-- The receipt handle associated with the message, whose visibility timeout is changed. -/ + receiptHandle : String + /-- The new value for the message's visibility timeout (in seconds). -/ + visibilityTimeout : Int +deriving DecidableEq, Repr, Inhabited + +instance : Shape ChangeMessageVisibilityRequest where + schema := .struct "ChangeMessageVisibilityRequest" [({ name := "QueueUrl", required := true }, .string), + ({ name := "ReceiptHandle", required := true }, .string), + ({ name := "VisibilityTimeout", required := true }, .int)] + toValue x := record [put "QueueUrl" x.queueUrl, put "ReceiptHandle" x.receiptHandle, put "VisibilityTimeout" x.visibilityTimeout] + ofValue v := do + let queueUrl ← v.req "QueueUrl" + let receiptHandle ← v.req "ReceiptHandle" + let visibilityTimeout ← v.req "VisibilityTimeout" + return { queueUrl, receiptHandle, visibilityTimeout } + +/-- Returns the QueueUrl attribute of the created queue. -/ +structure CreateQueueResult where + /-- The URL of the created Amazon SQS queue. -/ + queueUrl : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateQueueResult where + schema := .struct "CreateQueueResult" [({ name := "QueueUrl" }, .string)] + toValue x := record [putOpt "QueueUrl" x.queueUrl] + ofValue v := do + let queueUrl ← v.opt "QueueUrl" + return { queueUrl } + +/-- Encloses a receipt handle and an identifier for it. -/ +structure DeleteMessageBatchRequestEntry where + /-- The identifier for this particular receipt handle. -/ + id : String + /-- A receipt handle. -/ + receiptHandle : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteMessageBatchRequestEntry where + schema := .struct "DeleteMessageBatchRequestEntry" [({ name := "Id", required := true }, .string), + ({ name := "ReceiptHandle", required := true }, .string)] + toValue x := record [put "Id" x.id, put "ReceiptHandle" x.receiptHandle] + ofValue v := do + let id ← v.req "Id" + let receiptHandle ← v.req "ReceiptHandle" + return { id, receiptHandle } + +/-- Encloses the Id of an entry in DeleteMessageBatch . -/ +structure DeleteMessageBatchResultEntry where + /-- Represents a successfully deleted message. -/ + id : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteMessageBatchResultEntry where + schema := .struct "DeleteMessageBatchResultEntry" [({ name := "Id", required := true }, .string)] + toValue x := record [put "Id" x.id] + ofValue v := do + let id ← v.req "Id" + return { id } + +structure DeleteMessageRequest where + /-- The URL of the Amazon SQS queue from which messages are deleted. -/ + queueUrl : String + /-- The receipt handle associated with the message to delete. -/ + receiptHandle : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteMessageRequest where + schema := .struct "DeleteMessageRequest" [({ name := "QueueUrl", required := true }, .string), + ({ name := "ReceiptHandle", required := true }, .string)] + toValue x := record [put "QueueUrl" x.queueUrl, put "ReceiptHandle" x.receiptHandle] + ofValue v := do + let queueUrl ← v.req "QueueUrl" + let receiptHandle ← v.req "ReceiptHandle" + return { queueUrl, receiptHandle } + +structure DeleteQueueRequest where + /-- The URL of the Amazon SQS queue to delete. -/ + queueUrl : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteQueueRequest where + schema := .struct "DeleteQueueRequest" [({ name := "QueueUrl", required := true }, .string)] + toValue x := record [put "QueueUrl" x.queueUrl] + ofValue v := do + let queueUrl ← v.req "QueueUrl" + return { queueUrl } + +/-- The batch request doesn't contain any entries. -/ +structure EmptyBatchRequest where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape EmptyBatchRequest where + schema := .struct "EmptyBatchRequest" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Retrieves the URL of an existing queue based on its name and, optionally, the Amazon Web Services account ID. -/ +structure GetQueueUrlRequest where + /-- (Required) The name of the queue for which you want to fetch the URL. -/ + queueName : String + /-- (Optional) The Amazon Web Services account ID of the account that created the queue. -/ + queueOwnerAWSAccountId : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetQueueUrlRequest where + schema := .struct "GetQueueUrlRequest" [({ name := "QueueName", required := true }, .string), + ({ name := "QueueOwnerAWSAccountId" }, .string)] + toValue x := record [put "QueueName" x.queueName, putOpt "QueueOwnerAWSAccountId" x.queueOwnerAWSAccountId] + ofValue v := do + let queueName ← v.req "QueueName" + let queueOwnerAWSAccountId ← v.opt "QueueOwnerAWSAccountId" + return { queueName, queueOwnerAWSAccountId } + +/-- For more information, see Interpreting Responses in the Amazon SQS Developer Guide . -/ +structure GetQueueUrlResult where + /-- The URL of the queue. -/ + queueUrl : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetQueueUrlResult where + schema := .struct "GetQueueUrlResult" [({ name := "QueueUrl" }, .string)] + toValue x := record [putOpt "QueueUrl" x.queueUrl] + ofValue v := do + let queueUrl ← v.opt "QueueUrl" + return { queueUrl } + +/-- The specified ID is invalid. -/ +structure InvalidAddress where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidAddress where + schema := .struct "InvalidAddress" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The specified attribute doesn't exist. -/ +structure InvalidAttributeName where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidAttributeName where + schema := .struct "InvalidAttributeName" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- A queue attribute value is invalid. -/ +structure InvalidAttributeValue where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidAttributeValue where + schema := .struct "InvalidAttributeValue" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The Id of a batch entry in a batch request doesn't abide by the specification. -/ +structure InvalidBatchEntryId where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidBatchEntryId where + schema := .struct "InvalidBatchEntryId" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The specified receipt handle isn't valid for the current version. -/ +structure InvalidIdFormat where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidIdFormat where + schema := .struct "InvalidIdFormat" [] + toValue _ := record [] + ofValue _ := do + return { } + +/-- The message contains characters outside the allowed set. -/ +structure InvalidMessageContents where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidMessageContents where + schema := .struct "InvalidMessageContents" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The request was not made over HTTPS or did not use SigV4 for signing. -/ +structure InvalidSecurity where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape InvalidSecurity where + schema := .struct "InvalidSecurity" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The caller doesn't have the required KMS access. -/ +structure KmsAccessDenied where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KmsAccessDenied where + schema := .struct "KmsAccessDenied" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The request was denied due to request throttling. -/ +structure KmsDisabled where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KmsDisabled where + schema := .struct "KmsDisabled" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The request was rejected for one of the following reasons: The KeyUsage value of the KMS key is incompatible with the API operation. -/ +structure KmsInvalidKeyUsage where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KmsInvalidKeyUsage where + schema := .struct "KmsInvalidKeyUsage" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The request was rejected because the state of the specified resource is not valid for this request. -/ +structure KmsInvalidState where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KmsInvalidState where + schema := .struct "KmsInvalidState" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The request was rejected because the specified entity or resource could not be found. -/ +structure KmsNotFound where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KmsNotFound where + schema := .struct "KmsNotFound" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The request was rejected because the specified key policy isn't syntactically or semantically correct. -/ +structure KmsOptInRequired where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KmsOptInRequired where + schema := .struct "KmsOptInRequired" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Amazon Web Services KMS throttles requests for the following conditions. -/ +structure KmsThrottled where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape KmsThrottled where + schema := .struct "KmsThrottled" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +structure ListDeadLetterSourceQueuesRequest where + /-- Maximum number of results to include in the response. -/ + maxResults : Option Int := none + /-- Pagination token to request the next set of results. -/ + nextToken : Option String := none + /-- The URL of a dead-letter queue. -/ + queueUrl : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListDeadLetterSourceQueuesRequest where + schema := .struct "ListDeadLetterSourceQueuesRequest" [({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "QueueUrl", required := true }, .string)] + toValue x := record [putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, put "QueueUrl" x.queueUrl] + ofValue v := do + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let queueUrl ← v.req "QueueUrl" + return { maxResults, nextToken, queueUrl } + +/-- A list of your dead letter source queues. -/ +structure ListDeadLetterSourceQueuesResult where + /-- Pagination token to include in the next request. -/ + nextToken : Option String := none + /-- A list of source queue URLs that have the RedrivePolicy queue attribute configured with a dead-letter queue. -/ + queueUrls : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListDeadLetterSourceQueuesResult where + schema := .struct "ListDeadLetterSourceQueuesResult" [({ name := "NextToken" }, .string), + ({ name := "queueUrls", required := true, xmlName := some "QueueUrl", flattened := true }, (.list .string "member"))] + toValue x := record [putOpt "NextToken" x.nextToken, put "queueUrls" x.queueUrls] + ofValue v := do + let nextToken ← v.opt "NextToken" + let queueUrls ← v.req "queueUrls" + return { nextToken, queueUrls } + +structure ListMessageMoveTasksRequest where + /-- The maximum number of results to include in the response. -/ + maxResults : Option Int := none + /-- The ARN of the queue whose message movement tasks are to be listed. -/ + sourceArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListMessageMoveTasksRequest where + schema := .struct "ListMessageMoveTasksRequest" [({ name := "MaxResults" }, .int), + ({ name := "SourceArn", required := true }, .string)] + toValue x := record [putOpt "MaxResults" x.maxResults, put "SourceArn" x.sourceArn] + ofValue v := do + let maxResults ← v.opt "MaxResults" + let sourceArn ← v.req "SourceArn" + return { maxResults, sourceArn } + +/-- Contains the details of a message movement task. -/ +structure ListMessageMoveTasksResultEntry where + /-- The approximate number of messages already moved to the destination queue. -/ + approximateNumberOfMessagesMoved : Option Int := none + /-- The number of messages to be moved from the source queue. -/ + approximateNumberOfMessagesToMove : Option Int := none + /-- The ARN of the destination queue if it has been specified in the StartMessageMoveTask request. -/ + destinationArn : Option String := none + /-- The task failure reason (only included if the task status is FAILED). -/ + failureReason : Option String := none + /-- The number of messages to be moved per second (the message movement rate), if it has been specified in the StartMessageMoveTask request. -/ + maxNumberOfMessagesPerSecond : Option Int := none + /-- The ARN of the queue that contains the messages to be moved to another queue. -/ + sourceArn : Option String := none + /-- The timestamp of starting the message movement task. -/ + startedTimestamp : Option Int := none + /-- The status of the message movement task. -/ + status : Option String := none + /-- An identifier associated with a message movement task. -/ + taskHandle : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListMessageMoveTasksResultEntry where + schema := .struct "ListMessageMoveTasksResultEntry" [({ name := "ApproximateNumberOfMessagesMoved" }, .int), + ({ name := "ApproximateNumberOfMessagesToMove" }, .int), + ({ name := "DestinationArn" }, .string), + ({ name := "FailureReason" }, .string), + ({ name := "MaxNumberOfMessagesPerSecond" }, .int), + ({ name := "SourceArn" }, .string), + ({ name := "StartedTimestamp" }, .int), + ({ name := "Status" }, .string), + ({ name := "TaskHandle" }, .string)] + toValue x := record [putOpt "ApproximateNumberOfMessagesMoved" x.approximateNumberOfMessagesMoved, putOpt "ApproximateNumberOfMessagesToMove" x.approximateNumberOfMessagesToMove, putOpt "DestinationArn" x.destinationArn, putOpt "FailureReason" x.failureReason, putOpt "MaxNumberOfMessagesPerSecond" x.maxNumberOfMessagesPerSecond, putOpt "SourceArn" x.sourceArn, putOpt "StartedTimestamp" x.startedTimestamp, putOpt "Status" x.status, putOpt "TaskHandle" x.taskHandle] + ofValue v := do + let approximateNumberOfMessagesMoved ← v.opt "ApproximateNumberOfMessagesMoved" + let approximateNumberOfMessagesToMove ← v.opt "ApproximateNumberOfMessagesToMove" + let destinationArn ← v.opt "DestinationArn" + let failureReason ← v.opt "FailureReason" + let maxNumberOfMessagesPerSecond ← v.opt "MaxNumberOfMessagesPerSecond" + let sourceArn ← v.opt "SourceArn" + let startedTimestamp ← v.opt "StartedTimestamp" + let status ← v.opt "Status" + let taskHandle ← v.opt "TaskHandle" + return { approximateNumberOfMessagesMoved, approximateNumberOfMessagesToMove, destinationArn, failureReason, maxNumberOfMessagesPerSecond, sourceArn, startedTimestamp, status, taskHandle } + +structure ListQueueTagsRequest where + /-- The URL of the queue. -/ + queueUrl : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListQueueTagsRequest where + schema := .struct "ListQueueTagsRequest" [({ name := "QueueUrl", required := true }, .string)] + toValue x := record [put "QueueUrl" x.queueUrl] + ofValue v := do + let queueUrl ← v.req "QueueUrl" + return { queueUrl } + +structure ListQueueTagsResult where + /-- The list of all tags added to the specified queue. -/ + tags : Option (Dict String String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListQueueTagsResult where + schema := .struct "ListQueueTagsResult" [({ name := "Tags", xmlName := some "Tag", flattened := true }, (.map .string .string "Key" "Value"))] + toValue x := record [putOpt "Tags" x.tags] + ofValue v := do + let tags ← v.opt "Tags" + return { tags } + +structure ListQueuesRequest where + /-- Maximum number of results to include in the response. -/ + maxResults : Option Int := none + /-- Pagination token to request the next set of results. -/ + nextToken : Option String := none + /-- A string to use for filtering the list results. -/ + queueNamePrefix : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListQueuesRequest where + schema := .struct "ListQueuesRequest" [({ name := "MaxResults" }, .int), + ({ name := "NextToken" }, .string), + ({ name := "QueueNamePrefix" }, .string)] + toValue x := record [putOpt "MaxResults" x.maxResults, putOpt "NextToken" x.nextToken, putOpt "QueueNamePrefix" x.queueNamePrefix] + ofValue v := do + let maxResults ← v.opt "MaxResults" + let nextToken ← v.opt "NextToken" + let queueNamePrefix ← v.opt "QueueNamePrefix" + return { maxResults, nextToken, queueNamePrefix } + +/-- A list of your queues. -/ +structure ListQueuesResult where + /-- Pagination token to include in the next request. -/ + nextToken : Option String := none + /-- A list of queue URLs, up to 1,000 entries, or the value of MaxResults that you sent in the request. -/ + queueUrls : Option (List String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListQueuesResult where + schema := .struct "ListQueuesResult" [({ name := "NextToken" }, .string), + ({ name := "QueueUrls", xmlName := some "QueueUrl", flattened := true }, (.list .string "member"))] + toValue x := record [putOpt "NextToken" x.nextToken, putOpt "QueueUrls" x.queueUrls] + ofValue v := do + let nextToken ← v.opt "NextToken" + let queueUrls ← v.opt "QueueUrls" + return { nextToken, queueUrls } + +/-- The user-specified message attribute value. -/ +structure MessageAttributeValue where + /-- Not implemented. -/ + binaryListValues : Option (List Blob) := none + /-- Binary type attributes can store any binary data, such as compressed data, encrypted data, or images. -/ + binaryValue : Option Blob := none + /-- Amazon SQS supports the following logical data types: String , Number , and Binary . -/ + dataType : String + /-- Not implemented. -/ + stringListValues : Option (List String) := none + /-- Strings are Unicode with UTF-8 binary encoding. -/ + stringValue : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MessageAttributeValue where + schema := .struct "MessageAttributeValue" [({ name := "BinaryListValues", xmlName := some "BinaryListValue", flattened := true }, (.list .blob "BinaryListValue")), + ({ name := "BinaryValue" }, .blob), + ({ name := "DataType", required := true }, .string), + ({ name := "StringListValues", xmlName := some "StringListValue", flattened := true }, (.list .string "StringListValue")), + ({ name := "StringValue" }, .string)] + toValue x := record [putOpt "BinaryListValues" x.binaryListValues, putOpt "BinaryValue" x.binaryValue, put "DataType" x.dataType, putOpt "StringListValues" x.stringListValues, putOpt "StringValue" x.stringValue] + ofValue v := do + let binaryListValues ← v.opt "BinaryListValues" + let binaryValue ← v.opt "BinaryValue" + let dataType ← v.req "DataType" + let stringListValues ← v.opt "StringListValues" + let stringValue ← v.opt "StringValue" + return { binaryListValues, binaryValue, dataType, stringListValues, stringValue } + +/-- The specified message isn't in flight. -/ +structure MessageNotInflight where + mk :: +deriving DecidableEq, Repr, Inhabited + +instance : Shape MessageNotInflight where + schema := .struct "MessageNotInflight" [] + toValue _ := record [] + ofValue _ := do + return { } + +inductive MessageSystemAttributeName where + | awsTraceHeader + | all + | approximateFirstReceiveTimestamp + | approximateReceiveCount + | deadLetterQueueSourceArn + | messageDeduplicationId + | messageGroupId + | senderId + | sentTimestamp + | sequenceNumber +deriving DecidableEq, Repr, Inhabited + +def MessageSystemAttributeName.wire : MessageSystemAttributeName → String + | .awsTraceHeader => "AWSTraceHeader" + | .all => "All" + | .approximateFirstReceiveTimestamp => "ApproximateFirstReceiveTimestamp" + | .approximateReceiveCount => "ApproximateReceiveCount" + | .deadLetterQueueSourceArn => "DeadLetterQueueSourceArn" + | .messageDeduplicationId => "MessageDeduplicationId" + | .messageGroupId => "MessageGroupId" + | .senderId => "SenderId" + | .sentTimestamp => "SentTimestamp" + | .sequenceNumber => "SequenceNumber" + +def MessageSystemAttributeName.wireValues : List (String × MessageSystemAttributeName) := [ + ("AWSTraceHeader", .awsTraceHeader), + ("All", .all), + ("ApproximateFirstReceiveTimestamp", .approximateFirstReceiveTimestamp), + ("ApproximateReceiveCount", .approximateReceiveCount), + ("DeadLetterQueueSourceArn", .deadLetterQueueSourceArn), + ("MessageDeduplicationId", .messageDeduplicationId), + ("MessageGroupId", .messageGroupId), + ("SenderId", .senderId), + ("SentTimestamp", .sentTimestamp), + ("SequenceNumber", .sequenceNumber)] + +def MessageSystemAttributeName.ofWire (text : String) : Except String MessageSystemAttributeName := + match List.find? (·.1 == text) MessageSystemAttributeName.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"MessageSystemAttributeName has no value {text}" + +instance : Key MessageSystemAttributeName := ⟨MessageSystemAttributeName.wire, MessageSystemAttributeName.ofWire⟩ + +instance : Shape MessageSystemAttributeName where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => MessageSystemAttributeName.ofWire text + | _ => .error "expected a string" + +inductive MessageSystemAttributeNameForSends where + | awsTraceHeader +deriving DecidableEq, Repr, Inhabited + +def MessageSystemAttributeNameForSends.wire : MessageSystemAttributeNameForSends → String + | .awsTraceHeader => "AWSTraceHeader" + +def MessageSystemAttributeNameForSends.wireValues : List (String × MessageSystemAttributeNameForSends) := [ + ("AWSTraceHeader", .awsTraceHeader)] + +def MessageSystemAttributeNameForSends.ofWire (text : String) : Except String MessageSystemAttributeNameForSends := + match List.find? (·.1 == text) MessageSystemAttributeNameForSends.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"MessageSystemAttributeNameForSends has no value {text}" + +instance : Key MessageSystemAttributeNameForSends := ⟨MessageSystemAttributeNameForSends.wire, MessageSystemAttributeNameForSends.ofWire⟩ + +instance : Shape MessageSystemAttributeNameForSends where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => MessageSystemAttributeNameForSends.ofWire text + | _ => .error "expected a string" + +/-- The user-specified message system attribute value. -/ +structure MessageSystemAttributeValue where + /-- Not implemented. -/ + binaryListValues : Option (List Blob) := none + /-- Binary type attributes can store any binary data, such as compressed data, encrypted data, or images. -/ + binaryValue : Option Blob := none + /-- Amazon SQS supports the following logical data types: String , Number , and Binary . -/ + dataType : String + /-- Not implemented. -/ + stringListValues : Option (List String) := none + /-- Strings are Unicode with UTF-8 binary encoding. -/ + stringValue : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape MessageSystemAttributeValue where + schema := .struct "MessageSystemAttributeValue" [({ name := "BinaryListValues", xmlName := some "BinaryListValue", flattened := true }, (.list .blob "BinaryListValue")), + ({ name := "BinaryValue" }, .blob), + ({ name := "DataType", required := true }, .string), + ({ name := "StringListValues", xmlName := some "StringListValue", flattened := true }, (.list .string "StringListValue")), + ({ name := "StringValue" }, .string)] + toValue x := record [putOpt "BinaryListValues" x.binaryListValues, putOpt "BinaryValue" x.binaryValue, put "DataType" x.dataType, putOpt "StringListValues" x.stringListValues, putOpt "StringValue" x.stringValue] + ofValue v := do + let binaryListValues ← v.opt "BinaryListValues" + let binaryValue ← v.opt "BinaryValue" + let dataType ← v.req "DataType" + let stringListValues ← v.opt "StringListValues" + let stringValue ← v.opt "StringValue" + return { binaryListValues, binaryValue, dataType, stringListValues, stringValue } + +/-- The specified action violates a limit. -/ +structure OverLimit where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape OverLimit where + schema := .struct "OverLimit" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Indicates that the specified queue previously received a PurgeQueue request within the last 60 seconds (the time it can take to delete the messages in the queue). -/ +structure PurgeQueueInProgress where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape PurgeQueueInProgress where + schema := .struct "PurgeQueueInProgress" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +structure PurgeQueueRequest where + /-- The URL of the queue from which the PurgeQueue action deletes messages. -/ + queueUrl : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape PurgeQueueRequest where + schema := .struct "PurgeQueueRequest" [({ name := "QueueUrl", required := true }, .string)] + toValue x := record [put "QueueUrl" x.queueUrl] + ofValue v := do + let queueUrl ← v.req "QueueUrl" + return { queueUrl } + +inductive QueueAttributeName where + | all + | approximateNumberOfMessages + | approximateNumberOfMessagesDelayed + | approximateNumberOfMessagesNotVisible + | contentBasedDeduplication + | createdTimestamp + | deduplicationScope + | delaySeconds + | fifoQueue + | fifoThroughputLimit + | kmsDataKeyReusePeriodSeconds + | kmsMasterKeyId + | lastModifiedTimestamp + | maximumMessageSize + | messageRetentionPeriod + | policy + | queueArn + | receiveMessageWaitTimeSeconds + | redriveAllowPolicy + | redrivePolicy + | sqsManagedSseEnabled + | visibilityTimeout +deriving DecidableEq, Repr, Inhabited + +def QueueAttributeName.wire : QueueAttributeName → String + | .all => "All" + | .approximateNumberOfMessages => "ApproximateNumberOfMessages" + | .approximateNumberOfMessagesDelayed => "ApproximateNumberOfMessagesDelayed" + | .approximateNumberOfMessagesNotVisible => "ApproximateNumberOfMessagesNotVisible" + | .contentBasedDeduplication => "ContentBasedDeduplication" + | .createdTimestamp => "CreatedTimestamp" + | .deduplicationScope => "DeduplicationScope" + | .delaySeconds => "DelaySeconds" + | .fifoQueue => "FifoQueue" + | .fifoThroughputLimit => "FifoThroughputLimit" + | .kmsDataKeyReusePeriodSeconds => "KmsDataKeyReusePeriodSeconds" + | .kmsMasterKeyId => "KmsMasterKeyId" + | .lastModifiedTimestamp => "LastModifiedTimestamp" + | .maximumMessageSize => "MaximumMessageSize" + | .messageRetentionPeriod => "MessageRetentionPeriod" + | .policy => "Policy" + | .queueArn => "QueueArn" + | .receiveMessageWaitTimeSeconds => "ReceiveMessageWaitTimeSeconds" + | .redriveAllowPolicy => "RedriveAllowPolicy" + | .redrivePolicy => "RedrivePolicy" + | .sqsManagedSseEnabled => "SqsManagedSseEnabled" + | .visibilityTimeout => "VisibilityTimeout" + +def QueueAttributeName.wireValues : List (String × QueueAttributeName) := [ + ("All", .all), + ("ApproximateNumberOfMessages", .approximateNumberOfMessages), + ("ApproximateNumberOfMessagesDelayed", .approximateNumberOfMessagesDelayed), + ("ApproximateNumberOfMessagesNotVisible", .approximateNumberOfMessagesNotVisible), + ("ContentBasedDeduplication", .contentBasedDeduplication), + ("CreatedTimestamp", .createdTimestamp), + ("DeduplicationScope", .deduplicationScope), + ("DelaySeconds", .delaySeconds), + ("FifoQueue", .fifoQueue), + ("FifoThroughputLimit", .fifoThroughputLimit), + ("KmsDataKeyReusePeriodSeconds", .kmsDataKeyReusePeriodSeconds), + ("KmsMasterKeyId", .kmsMasterKeyId), + ("LastModifiedTimestamp", .lastModifiedTimestamp), + ("MaximumMessageSize", .maximumMessageSize), + ("MessageRetentionPeriod", .messageRetentionPeriod), + ("Policy", .policy), + ("QueueArn", .queueArn), + ("ReceiveMessageWaitTimeSeconds", .receiveMessageWaitTimeSeconds), + ("RedriveAllowPolicy", .redriveAllowPolicy), + ("RedrivePolicy", .redrivePolicy), + ("SqsManagedSseEnabled", .sqsManagedSseEnabled), + ("VisibilityTimeout", .visibilityTimeout)] + +def QueueAttributeName.ofWire (text : String) : Except String QueueAttributeName := + match List.find? (·.1 == text) QueueAttributeName.wireValues with + | Option.some (_, x) => .ok x + | Option.none => .error s!"QueueAttributeName has no value {text}" + +instance : Key QueueAttributeName := ⟨QueueAttributeName.wire, QueueAttributeName.ofWire⟩ + +instance : Shape QueueAttributeName where + schema := .string + toValue x := .string x.wire + ofValue + | .string text => QueueAttributeName.ofWire text + | _ => .error "expected a string" + +/-- You must wait 60 seconds after deleting a queue before you can create another queue with the same name. -/ +structure QueueDeletedRecently where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape QueueDeletedRecently where + schema := .struct "QueueDeletedRecently" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Ensure that the QueueUrl is correct and that the queue has not been deleted. -/ +structure QueueDoesNotExist where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape QueueDoesNotExist where + schema := .struct "QueueDoesNotExist" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- A queue with this name already exists. -/ +structure QueueNameExists where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape QueueNameExists where + schema := .struct "QueueNameExists" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- The specified receipt handle isn't valid. -/ +structure ReceiptHandleIsInvalid where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReceiptHandleIsInvalid where + schema := .struct "ReceiptHandleIsInvalid" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +structure RemovePermissionRequest where + /-- The identification of the permission to remove. -/ + label : String + /-- The URL of the Amazon SQS queue from which permissions are removed. -/ + queueUrl : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape RemovePermissionRequest where + schema := .struct "RemovePermissionRequest" [({ name := "Label", required := true }, .string), + ({ name := "QueueUrl", required := true }, .string)] + toValue x := record [put "Label" x.label, put "QueueUrl" x.queueUrl] + ofValue v := do + let label ← v.req "Label" + let queueUrl ← v.req "QueueUrl" + return { label, queueUrl } + +/-- The request was denied due to request throttling. -/ +structure RequestThrottled where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape RequestThrottled where + schema := .struct "RequestThrottled" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- One or more specified resources don't exist. -/ +structure ResourceNotFoundException where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ResourceNotFoundException where + schema := .struct "ResourceNotFoundException" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Encloses a MessageId for a successfully-enqueued message in a SendMessageBatch . -/ +structure SendMessageBatchResultEntry where + /-- An identifier for the message in this batch. -/ + id : String + /-- An MD5 digest of the non-URL-encoded message attribute string. -/ + md5OfMessageAttributes : Option String := none + /-- An MD5 digest of the non-URL-encoded message body string. -/ + md5OfMessageBody : String + /-- An MD5 digest of the non-URL-encoded message system attribute string. -/ + md5OfMessageSystemAttributes : Option String := none + /-- An identifier for the message. -/ + messageId : String + /-- This parameter applies only to FIFO (first-in-first-out) queues. -/ + sequenceNumber : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SendMessageBatchResultEntry where + schema := .struct "SendMessageBatchResultEntry" [({ name := "Id", required := true }, .string), + ({ name := "MD5OfMessageAttributes" }, .string), + ({ name := "MD5OfMessageBody", required := true }, .string), + ({ name := "MD5OfMessageSystemAttributes" }, .string), + ({ name := "MessageId", required := true }, .string), + ({ name := "SequenceNumber" }, .string)] + toValue x := record [put "Id" x.id, putOpt "MD5OfMessageAttributes" x.md5OfMessageAttributes, put "MD5OfMessageBody" x.md5OfMessageBody, putOpt "MD5OfMessageSystemAttributes" x.md5OfMessageSystemAttributes, put "MessageId" x.messageId, putOpt "SequenceNumber" x.sequenceNumber] + ofValue v := do + let id ← v.req "Id" + let md5OfMessageAttributes ← v.opt "MD5OfMessageAttributes" + let md5OfMessageBody ← v.req "MD5OfMessageBody" + let md5OfMessageSystemAttributes ← v.opt "MD5OfMessageSystemAttributes" + let messageId ← v.req "MessageId" + let sequenceNumber ← v.opt "SequenceNumber" + return { id, md5OfMessageAttributes, md5OfMessageBody, md5OfMessageSystemAttributes, messageId, sequenceNumber } + +/-- The MD5OfMessageBody and MessageId elements. -/ +structure SendMessageResult where + /-- An MD5 digest of the non-URL-encoded message attribute string. -/ + md5OfMessageAttributes : Option String := none + /-- An MD5 digest of the non-URL-encoded message body string. -/ + md5OfMessageBody : Option String := none + /-- An MD5 digest of the non-URL-encoded message system attribute string. -/ + md5OfMessageSystemAttributes : Option String := none + /-- An attribute containing the MessageId of the message sent to the queue. -/ + messageId : Option String := none + /-- This parameter applies only to FIFO (first-in-first-out) queues. -/ + sequenceNumber : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SendMessageResult where + schema := .struct "SendMessageResult" [({ name := "MD5OfMessageAttributes" }, .string), + ({ name := "MD5OfMessageBody" }, .string), + ({ name := "MD5OfMessageSystemAttributes" }, .string), + ({ name := "MessageId" }, .string), + ({ name := "SequenceNumber" }, .string)] + toValue x := record [putOpt "MD5OfMessageAttributes" x.md5OfMessageAttributes, putOpt "MD5OfMessageBody" x.md5OfMessageBody, putOpt "MD5OfMessageSystemAttributes" x.md5OfMessageSystemAttributes, putOpt "MessageId" x.messageId, putOpt "SequenceNumber" x.sequenceNumber] + ofValue v := do + let md5OfMessageAttributes ← v.opt "MD5OfMessageAttributes" + let md5OfMessageBody ← v.opt "MD5OfMessageBody" + let md5OfMessageSystemAttributes ← v.opt "MD5OfMessageSystemAttributes" + let messageId ← v.opt "MessageId" + let sequenceNumber ← v.opt "SequenceNumber" + return { md5OfMessageAttributes, md5OfMessageBody, md5OfMessageSystemAttributes, messageId, sequenceNumber } + +structure StartMessageMoveTaskRequest where + /-- The ARN of the queue that receives the moved messages. -/ + destinationArn : Option String := none + /-- The number of messages to be moved per second (the message movement rate). -/ + maxNumberOfMessagesPerSecond : Option Int := none + /-- The ARN of the queue that contains the messages to be moved to another queue. -/ + sourceArn : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape StartMessageMoveTaskRequest where + schema := .struct "StartMessageMoveTaskRequest" [({ name := "DestinationArn" }, .string), + ({ name := "MaxNumberOfMessagesPerSecond" }, .int), + ({ name := "SourceArn", required := true }, .string)] + toValue x := record [putOpt "DestinationArn" x.destinationArn, putOpt "MaxNumberOfMessagesPerSecond" x.maxNumberOfMessagesPerSecond, put "SourceArn" x.sourceArn] + ofValue v := do + let destinationArn ← v.opt "DestinationArn" + let maxNumberOfMessagesPerSecond ← v.opt "MaxNumberOfMessagesPerSecond" + let sourceArn ← v.req "SourceArn" + return { destinationArn, maxNumberOfMessagesPerSecond, sourceArn } + +structure StartMessageMoveTaskResult where + /-- An identifier associated with a message movement task. -/ + taskHandle : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape StartMessageMoveTaskResult where + schema := .struct "StartMessageMoveTaskResult" [({ name := "TaskHandle" }, .string)] + toValue x := record [putOpt "TaskHandle" x.taskHandle] + ofValue v := do + let taskHandle ← v.opt "TaskHandle" + return { taskHandle } + +structure TagQueueRequest where + /-- The URL of the queue. -/ + queueUrl : String + /-- The list of tags to be added to the specified queue. -/ + tags : (Dict String String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape TagQueueRequest where + schema := .struct "TagQueueRequest" [({ name := "QueueUrl", required := true }, .string), + ({ name := "Tags", required := true, xmlName := some "Tag", flattened := true }, (.map .string .string "Key" "Value"))] + toValue x := record [put "QueueUrl" x.queueUrl, put "Tags" x.tags] + ofValue v := do + let queueUrl ← v.req "QueueUrl" + let tags ← v.req "Tags" + return { queueUrl, tags } + +/-- The batch request contains more entries than permissible. -/ +structure TooManyEntriesInBatchRequest where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape TooManyEntriesInBatchRequest where + schema := .struct "TooManyEntriesInBatchRequest" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +/-- Error code 400. -/ +structure UnsupportedOperation where + message : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape UnsupportedOperation where + schema := .struct "UnsupportedOperation" [({ name := "message" }, .string)] + toValue x := record [putOpt "message" x.message] + ofValue v := do + let message ← v.opt "message" + return { message } + +structure UntagQueueRequest where + /-- The URL of the queue. -/ + queueUrl : String + /-- The list of tags to be removed from the specified queue. -/ + tagKeys : (List String) +deriving DecidableEq, Repr, Inhabited + +instance : Shape UntagQueueRequest where + schema := .struct "UntagQueueRequest" [({ name := "QueueUrl", required := true }, .string), + ({ name := "TagKeys", required := true, xmlName := some "TagKey", flattened := true }, (.list .string "member"))] + toValue x := record [put "QueueUrl" x.queueUrl, put "TagKeys" x.tagKeys] + ofValue v := do + let queueUrl ← v.req "QueueUrl" + let tagKeys ← v.req "TagKeys" + return { queueUrl, tagKeys } + +structure ChangeMessageVisibilityBatchRequest where + /-- Lists the receipt handles of the messages for which the visibility timeout must be changed. -/ + entries : (List ChangeMessageVisibilityBatchRequestEntry) + /-- The URL of the Amazon SQS queue whose messages' visibility is changed. -/ + queueUrl : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape ChangeMessageVisibilityBatchRequest where + schema := .struct "ChangeMessageVisibilityBatchRequest" [({ name := "Entries", required := true, xmlName := some "ChangeMessageVisibilityBatchRequestEntry", flattened := true }, (.list (Shape.schema ChangeMessageVisibilityBatchRequestEntry) "member")), + ({ name := "QueueUrl", required := true }, .string)] + toValue x := record [put "Entries" x.entries, put "QueueUrl" x.queueUrl] + ofValue v := do + let entries ← v.req "Entries" + let queueUrl ← v.req "QueueUrl" + return { entries, queueUrl } + +/-- For each message in the batch, the response contains a ChangeMessageVisibilityBatchResultEntry tag if the message succeeds or a BatchResultErrorEntry tag if the message fails. -/ +structure ChangeMessageVisibilityBatchResult where + /-- A list of BatchResultErrorEntry items. -/ + failed : (List BatchResultErrorEntry) + /-- A list of ChangeMessageVisibilityBatchResultEntry items. -/ + successful : (List ChangeMessageVisibilityBatchResultEntry) +deriving DecidableEq, Repr, Inhabited + +instance : Shape ChangeMessageVisibilityBatchResult where + schema := .struct "ChangeMessageVisibilityBatchResult" [({ name := "Failed", required := true, xmlName := some "BatchResultErrorEntry", flattened := true }, (.list (Shape.schema BatchResultErrorEntry) "member")), + ({ name := "Successful", required := true, xmlName := some "ChangeMessageVisibilityBatchResultEntry", flattened := true }, (.list (Shape.schema ChangeMessageVisibilityBatchResultEntry) "member"))] + toValue x := record [put "Failed" x.failed, put "Successful" x.successful] + ofValue v := do + let failed ← v.req "Failed" + let successful ← v.req "Successful" + return { failed, successful } + +structure CreateQueueRequest where + /-- A map of attributes with their corresponding values. -/ + attributes : Option (Dict QueueAttributeName String) := none + /-- The name of the new queue. -/ + queueName : String + /-- Add cost allocation tags to the specified Amazon SQS queue. -/ + tags : Option (Dict String String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape CreateQueueRequest where + schema := .struct "CreateQueueRequest" [({ name := "Attributes", xmlName := some "Attribute", flattened := true }, (.map (Shape.schema QueueAttributeName) .string "Name" "Value")), + ({ name := "QueueName", required := true }, .string), + ({ name := "tags", xmlName := some "Tag", flattened := true }, (.map .string .string "Key" "Value"))] + toValue x := record [putOpt "Attributes" x.attributes, put "QueueName" x.queueName, putOpt "tags" x.tags] + ofValue v := do + let attributes ← v.opt "Attributes" + let queueName ← v.req "QueueName" + let tags ← v.opt "tags" + return { attributes, queueName, tags } + +structure DeleteMessageBatchRequest where + /-- Lists the receipt handles for the messages to be deleted. -/ + entries : (List DeleteMessageBatchRequestEntry) + /-- The URL of the Amazon SQS queue from which messages are deleted. -/ + queueUrl : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteMessageBatchRequest where + schema := .struct "DeleteMessageBatchRequest" [({ name := "Entries", required := true, xmlName := some "DeleteMessageBatchRequestEntry", flattened := true }, (.list (Shape.schema DeleteMessageBatchRequestEntry) "member")), + ({ name := "QueueUrl", required := true }, .string)] + toValue x := record [put "Entries" x.entries, put "QueueUrl" x.queueUrl] + ofValue v := do + let entries ← v.req "Entries" + let queueUrl ← v.req "QueueUrl" + return { entries, queueUrl } + +/-- For each message in the batch, the response contains a DeleteMessageBatchResultEntry tag if the message is deleted or a BatchResultErrorEntry tag if the message can't be deleted. -/ +structure DeleteMessageBatchResult where + /-- A list of BatchResultErrorEntry items. -/ + failed : (List BatchResultErrorEntry) + /-- A list of DeleteMessageBatchResultEntry items. -/ + successful : (List DeleteMessageBatchResultEntry) +deriving DecidableEq, Repr, Inhabited + +instance : Shape DeleteMessageBatchResult where + schema := .struct "DeleteMessageBatchResult" [({ name := "Failed", required := true, xmlName := some "BatchResultErrorEntry", flattened := true }, (.list (Shape.schema BatchResultErrorEntry) "member")), + ({ name := "Successful", required := true, xmlName := some "DeleteMessageBatchResultEntry", flattened := true }, (.list (Shape.schema DeleteMessageBatchResultEntry) "member"))] + toValue x := record [put "Failed" x.failed, put "Successful" x.successful] + ofValue v := do + let failed ← v.req "Failed" + let successful ← v.req "Successful" + return { failed, successful } + +structure GetQueueAttributesRequest where + /-- A list of attributes for which to retrieve information. -/ + attributeNames : Option (List QueueAttributeName) := none + /-- The URL of the Amazon SQS queue whose attribute information is retrieved. -/ + queueUrl : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetQueueAttributesRequest where + schema := .struct "GetQueueAttributesRequest" [({ name := "AttributeNames", xmlName := some "AttributeName", flattened := true }, (.list (Shape.schema QueueAttributeName) "member")), + ({ name := "QueueUrl", required := true }, .string)] + toValue x := record [putOpt "AttributeNames" x.attributeNames, put "QueueUrl" x.queueUrl] + ofValue v := do + let attributeNames ← v.opt "AttributeNames" + let queueUrl ← v.req "QueueUrl" + return { attributeNames, queueUrl } + +/-- A list of returned queue attributes. -/ +structure GetQueueAttributesResult where + /-- A map of attributes to their respective values. -/ + attributes : Option (Dict QueueAttributeName String) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape GetQueueAttributesResult where + schema := .struct "GetQueueAttributesResult" [({ name := "Attributes", xmlName := some "Attribute", flattened := true }, (.map (Shape.schema QueueAttributeName) .string "Name" "Value"))] + toValue x := record [putOpt "Attributes" x.attributes] + ofValue v := do + let attributes ← v.opt "Attributes" + return { attributes } + +structure ListMessageMoveTasksResult where + /-- A list of message movement tasks and their attributes. -/ + results : Option (List ListMessageMoveTasksResultEntry) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ListMessageMoveTasksResult where + schema := .struct "ListMessageMoveTasksResult" [({ name := "Results", xmlName := some "ListMessageMoveTasksResultEntry", flattened := true }, (.list (Shape.schema ListMessageMoveTasksResultEntry) "member"))] + toValue x := record [putOpt "Results" x.results] + ofValue v := do + let results ← v.opt "Results" + return { results } + +/-- An Amazon SQS message. -/ +structure Message where + /-- A map of the attributes requested in ReceiveMessage to their respective values. -/ + attributes : Option (Dict MessageSystemAttributeName String) := none + /-- The message's contents (not URL-encoded). -/ + body : Option String := none + /-- An MD5 digest of the non-URL-encoded message body string. -/ + md5OfBody : Option String := none + /-- An MD5 digest of the non-URL-encoded message attribute string. -/ + md5OfMessageAttributes : Option String := none + /-- Each message attribute consists of a Name , Type , and Value . -/ + messageAttributes : Option (Dict String MessageAttributeValue) := none + /-- A unique identifier for the message. -/ + messageId : Option String := none + /-- An identifier associated with the act of receiving the message. -/ + receiptHandle : Option String := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape Message where + schema := .struct "Message" [({ name := "Attributes", xmlName := some "Attribute", flattened := true }, (.map (Shape.schema MessageSystemAttributeName) .string "Name" "Value")), + ({ name := "Body" }, .string), + ({ name := "MD5OfBody" }, .string), + ({ name := "MD5OfMessageAttributes" }, .string), + ({ name := "MessageAttributes", xmlName := some "MessageAttribute", flattened := true }, (.map .string (Shape.schema MessageAttributeValue) "Name" "Value")), + ({ name := "MessageId" }, .string), + ({ name := "ReceiptHandle" }, .string)] + toValue x := record [putOpt "Attributes" x.attributes, putOpt "Body" x.body, putOpt "MD5OfBody" x.md5OfBody, putOpt "MD5OfMessageAttributes" x.md5OfMessageAttributes, putOpt "MessageAttributes" x.messageAttributes, putOpt "MessageId" x.messageId, putOpt "ReceiptHandle" x.receiptHandle] + ofValue v := do + let attributes ← v.opt "Attributes" + let body ← v.opt "Body" + let md5OfBody ← v.opt "MD5OfBody" + let md5OfMessageAttributes ← v.opt "MD5OfMessageAttributes" + let messageAttributes ← v.opt "MessageAttributes" + let messageId ← v.opt "MessageId" + let receiptHandle ← v.opt "ReceiptHandle" + return { attributes, body, md5OfBody, md5OfMessageAttributes, messageAttributes, messageId, receiptHandle } + +/-- Retrieves one or more messages from a specified queue. -/ +structure ReceiveMessageRequest where + /-- This parameter has been discontinued but will be supported for backward compatibility. -/ + attributeNames : Option (List QueueAttributeName) := none + /-- The maximum number of messages to return. -/ + maxNumberOfMessages : Option Int := none + /-- The name of the message attribute, where N is the index. -/ + messageAttributeNames : Option (List String) := none + /-- A list of attributes that need to be returned along with each message. -/ + messageSystemAttributeNames : Option (List MessageSystemAttributeName) := none + /-- The URL of the Amazon SQS queue from which messages are received. -/ + queueUrl : String + /-- This parameter applies only to FIFO (first-in-first-out) queues. -/ + receiveRequestAttemptId : Option String := none + /-- The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request. -/ + visibilityTimeout : Option Int := none + /-- The duration (in seconds) for which the call waits for a message to arrive in the queue before returning. -/ + waitTimeSeconds : Option Int := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReceiveMessageRequest where + schema := .struct "ReceiveMessageRequest" [({ name := "AttributeNames", xmlName := some "AttributeName", flattened := true }, (.list (Shape.schema QueueAttributeName) "member")), + ({ name := "MaxNumberOfMessages" }, .int), + ({ name := "MessageAttributeNames", xmlName := some "MessageAttributeName", flattened := true }, (.list .string "member")), + ({ name := "MessageSystemAttributeNames", xmlName := some "AttributeName", flattened := true }, (.list (Shape.schema MessageSystemAttributeName) "member")), + ({ name := "QueueUrl", required := true }, .string), + ({ name := "ReceiveRequestAttemptId" }, .string), + ({ name := "VisibilityTimeout" }, .int), + ({ name := "WaitTimeSeconds" }, .int)] + toValue x := record [putOpt "AttributeNames" x.attributeNames, putOpt "MaxNumberOfMessages" x.maxNumberOfMessages, putOpt "MessageAttributeNames" x.messageAttributeNames, putOpt "MessageSystemAttributeNames" x.messageSystemAttributeNames, put "QueueUrl" x.queueUrl, putOpt "ReceiveRequestAttemptId" x.receiveRequestAttemptId, putOpt "VisibilityTimeout" x.visibilityTimeout, putOpt "WaitTimeSeconds" x.waitTimeSeconds] + ofValue v := do + let attributeNames ← v.opt "AttributeNames" + let maxNumberOfMessages ← v.opt "MaxNumberOfMessages" + let messageAttributeNames ← v.opt "MessageAttributeNames" + let messageSystemAttributeNames ← v.opt "MessageSystemAttributeNames" + let queueUrl ← v.req "QueueUrl" + let receiveRequestAttemptId ← v.opt "ReceiveRequestAttemptId" + let visibilityTimeout ← v.opt "VisibilityTimeout" + let waitTimeSeconds ← v.opt "WaitTimeSeconds" + return { attributeNames, maxNumberOfMessages, messageAttributeNames, messageSystemAttributeNames, queueUrl, receiveRequestAttemptId, visibilityTimeout, waitTimeSeconds } + +/-- Contains the details of a single Amazon SQS message along with an Id . -/ +structure SendMessageBatchRequestEntry where + /-- The length of time, in seconds, for which a specific message is delayed. -/ + delaySeconds : Option Int := none + /-- An identifier for a message in this batch used to communicate the result. -/ + id : String + /-- Each message attribute consists of a Name , Type , and Value . -/ + messageAttributes : Option (Dict String MessageAttributeValue) := none + /-- The body of the message. -/ + messageBody : String + /-- This parameter applies only to FIFO (first-in-first-out) queues. -/ + messageDeduplicationId : Option String := none + /-- MessageGroupId is an attribute used in Amazon SQS FIFO (First-In-First-Out) and standard queues. -/ + messageGroupId : Option String := none + /-- The message system attribute to send Each message system attribute consists of a Name , Type , and Value . -/ + messageSystemAttributes : Option (Dict MessageSystemAttributeNameForSends MessageSystemAttributeValue) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape SendMessageBatchRequestEntry where + schema := .struct "SendMessageBatchRequestEntry" [({ name := "DelaySeconds" }, .int), + ({ name := "Id", required := true }, .string), + ({ name := "MessageAttributes", xmlName := some "MessageAttribute", flattened := true }, (.map .string (Shape.schema MessageAttributeValue) "Name" "Value")), + ({ name := "MessageBody", required := true }, .string), + ({ name := "MessageDeduplicationId" }, .string), + ({ name := "MessageGroupId" }, .string), + ({ name := "MessageSystemAttributes", xmlName := some "MessageSystemAttribute", flattened := true }, (.map (Shape.schema MessageSystemAttributeNameForSends) (Shape.schema MessageSystemAttributeValue) "Name" "Value"))] + toValue x := record [putOpt "DelaySeconds" x.delaySeconds, put "Id" x.id, putOpt "MessageAttributes" x.messageAttributes, put "MessageBody" x.messageBody, putOpt "MessageDeduplicationId" x.messageDeduplicationId, putOpt "MessageGroupId" x.messageGroupId, putOpt "MessageSystemAttributes" x.messageSystemAttributes] + ofValue v := do + let delaySeconds ← v.opt "DelaySeconds" + let id ← v.req "Id" + let messageAttributes ← v.opt "MessageAttributes" + let messageBody ← v.req "MessageBody" + let messageDeduplicationId ← v.opt "MessageDeduplicationId" + let messageGroupId ← v.opt "MessageGroupId" + let messageSystemAttributes ← v.opt "MessageSystemAttributes" + return { delaySeconds, id, messageAttributes, messageBody, messageDeduplicationId, messageGroupId, messageSystemAttributes } + +/-- For each message in the batch, the response contains a SendMessageBatchResultEntry tag if the message succeeds or a BatchResultErrorEntry tag if the message fails. -/ +structure SendMessageBatchResult where + /-- A list of BatchResultErrorEntry items with error details about each message that can't be enqueued. -/ + failed : (List BatchResultErrorEntry) + /-- A list of SendMessageBatchResultEntry items. -/ + successful : (List SendMessageBatchResultEntry) +deriving DecidableEq, Repr, Inhabited + +instance : Shape SendMessageBatchResult where + schema := .struct "SendMessageBatchResult" [({ name := "Failed", required := true, xmlName := some "BatchResultErrorEntry", flattened := true }, (.list (Shape.schema BatchResultErrorEntry) "member")), + ({ name := "Successful", required := true, xmlName := some "SendMessageBatchResultEntry", flattened := true }, (.list (Shape.schema SendMessageBatchResultEntry) "member"))] + toValue x := record [put "Failed" x.failed, put "Successful" x.successful] + ofValue v := do + let failed ← v.req "Failed" + let successful ← v.req "Successful" + return { failed, successful } + +structure SendMessageRequest where + /-- The length of time, in seconds, for which to delay a specific message. -/ + delaySeconds : Option Int := none + /-- Each message attribute consists of a Name , Type , and Value . -/ + messageAttributes : Option (Dict String MessageAttributeValue) := none + /-- The message to send. -/ + messageBody : String + /-- This parameter applies only to FIFO (first-in-first-out) queues. -/ + messageDeduplicationId : Option String := none + /-- MessageGroupId is an attribute used in Amazon SQS FIFO (First-In-First-Out) and standard queues. -/ + messageGroupId : Option String := none + /-- The message system attribute to send. -/ + messageSystemAttributes : Option (Dict MessageSystemAttributeNameForSends MessageSystemAttributeValue) := none + /-- The URL of the Amazon SQS queue to which a message is sent. -/ + queueUrl : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape SendMessageRequest where + schema := .struct "SendMessageRequest" [({ name := "DelaySeconds" }, .int), + ({ name := "MessageAttributes", xmlName := some "MessageAttribute", flattened := true }, (.map .string (Shape.schema MessageAttributeValue) "Name" "Value")), + ({ name := "MessageBody", required := true }, .string), + ({ name := "MessageDeduplicationId" }, .string), + ({ name := "MessageGroupId" }, .string), + ({ name := "MessageSystemAttributes", xmlName := some "MessageSystemAttribute", flattened := true }, (.map (Shape.schema MessageSystemAttributeNameForSends) (Shape.schema MessageSystemAttributeValue) "Name" "Value")), + ({ name := "QueueUrl", required := true }, .string)] + toValue x := record [putOpt "DelaySeconds" x.delaySeconds, putOpt "MessageAttributes" x.messageAttributes, put "MessageBody" x.messageBody, putOpt "MessageDeduplicationId" x.messageDeduplicationId, putOpt "MessageGroupId" x.messageGroupId, putOpt "MessageSystemAttributes" x.messageSystemAttributes, put "QueueUrl" x.queueUrl] + ofValue v := do + let delaySeconds ← v.opt "DelaySeconds" + let messageAttributes ← v.opt "MessageAttributes" + let messageBody ← v.req "MessageBody" + let messageDeduplicationId ← v.opt "MessageDeduplicationId" + let messageGroupId ← v.opt "MessageGroupId" + let messageSystemAttributes ← v.opt "MessageSystemAttributes" + let queueUrl ← v.req "QueueUrl" + return { delaySeconds, messageAttributes, messageBody, messageDeduplicationId, messageGroupId, messageSystemAttributes, queueUrl } + +structure SetQueueAttributesRequest where + /-- A map of attributes to set. -/ + attributes : (Dict QueueAttributeName String) + /-- The URL of the Amazon SQS queue whose attributes are set. -/ + queueUrl : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape SetQueueAttributesRequest where + schema := .struct "SetQueueAttributesRequest" [({ name := "Attributes", required := true, xmlName := some "Attribute", flattened := true }, (.map (Shape.schema QueueAttributeName) .string "Name" "Value")), + ({ name := "QueueUrl", required := true }, .string)] + toValue x := record [put "Attributes" x.attributes, put "QueueUrl" x.queueUrl] + ofValue v := do + let attributes ← v.req "Attributes" + let queueUrl ← v.req "QueueUrl" + return { attributes, queueUrl } + +/-- A list of received messages. -/ +structure ReceiveMessageResult where + /-- A list of messages. -/ + messages : Option (List Message) := none +deriving DecidableEq, Repr, Inhabited + +instance : Shape ReceiveMessageResult where + schema := .struct "ReceiveMessageResult" [({ name := "Messages", xmlName := some "Message", flattened := true }, (.list (Shape.schema Message) "member"))] + toValue x := record [putOpt "Messages" x.messages] + ofValue v := do + let messages ← v.opt "Messages" + return { messages } + +structure SendMessageBatchRequest where + /-- A list of SendMessageBatchRequestEntry items. -/ + entries : (List SendMessageBatchRequestEntry) + /-- The URL of the Amazon SQS queue to which batched messages are sent. -/ + queueUrl : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape SendMessageBatchRequest where + schema := .struct "SendMessageBatchRequest" [({ name := "Entries", required := true, xmlName := some "SendMessageBatchRequestEntry", flattened := true }, (.list (Shape.schema SendMessageBatchRequestEntry) "member")), + ({ name := "QueueUrl", required := true }, .string)] + toValue x := record [put "Entries" x.entries, put "QueueUrl" x.queueUrl] + ofValue v := do + let entries ← v.req "Entries" + let queueUrl ← v.req "QueueUrl" + return { entries, queueUrl } + +/-- What `AddPermission` can fail with. -/ +inductive AddPermissionError where + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- The specified action violates a limit. -/ + | overLimit (error : OverLimit) + /-- Ensure that the QueueUrl is correct and that the queue has not been deleted. -/ + | queueDoesNotExist (error : QueueDoesNotExist) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def AddPermissionError.ofWire (name : String) (value : Value) : Option AddPermissionError := + match name with + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "OverLimit" => (Shape.ofValue value).toOption.map .overLimit + | "QueueDoesNotExist" => (Shape.ofValue value).toOption.map .queueDoesNotExist + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `CancelMessageMoveTask` can fail with. -/ +inductive CancelMessageMoveTaskError where + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- One or more specified resources don't exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def CancelMessageMoveTaskError.ofWire (name : String) (value : Value) : Option CancelMessageMoveTaskError := + match name with + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `ChangeMessageVisibility` can fail with. -/ +inductive ChangeMessageVisibilityError where + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- The specified message isn't in flight. -/ + | messageNotInflight (error : MessageNotInflight) + /-- Ensure that the QueueUrl is correct and that the queue has not been deleted. -/ + | queueDoesNotExist (error : QueueDoesNotExist) + /-- The specified receipt handle isn't valid. -/ + | receiptHandleIsInvalid (error : ReceiptHandleIsInvalid) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def ChangeMessageVisibilityError.ofWire (name : String) (value : Value) : Option ChangeMessageVisibilityError := + match name with + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "MessageNotInflight" => (Shape.ofValue value).toOption.map .messageNotInflight + | "QueueDoesNotExist" => (Shape.ofValue value).toOption.map .queueDoesNotExist + | "ReceiptHandleIsInvalid" => (Shape.ofValue value).toOption.map .receiptHandleIsInvalid + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `ChangeMessageVisibilityBatch` can fail with. -/ +inductive ChangeMessageVisibilityBatchError where + /-- Two or more batch entries in the request have the same Id . -/ + | batchEntryIdsNotDistinct (error : BatchEntryIdsNotDistinct) + /-- The batch request doesn't contain any entries. -/ + | emptyBatchRequest (error : EmptyBatchRequest) + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The Id of a batch entry in a batch request doesn't abide by the specification. -/ + | invalidBatchEntryId (error : InvalidBatchEntryId) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- Ensure that the QueueUrl is correct and that the queue has not been deleted. -/ + | queueDoesNotExist (error : QueueDoesNotExist) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- The batch request contains more entries than permissible. -/ + | tooManyEntriesInBatchRequest (error : TooManyEntriesInBatchRequest) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def ChangeMessageVisibilityBatchError.ofWire (name : String) (value : Value) : Option ChangeMessageVisibilityBatchError := + match name with + | "BatchEntryIdsNotDistinct" => (Shape.ofValue value).toOption.map .batchEntryIdsNotDistinct + | "EmptyBatchRequest" => (Shape.ofValue value).toOption.map .emptyBatchRequest + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidBatchEntryId" => (Shape.ofValue value).toOption.map .invalidBatchEntryId + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "QueueDoesNotExist" => (Shape.ofValue value).toOption.map .queueDoesNotExist + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "TooManyEntriesInBatchRequest" => (Shape.ofValue value).toOption.map .tooManyEntriesInBatchRequest + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `CreateQueue` can fail with. -/ +inductive CreateQueueError where + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The specified attribute doesn't exist. -/ + | invalidAttributeName (error : InvalidAttributeName) + /-- A queue attribute value is invalid. -/ + | invalidAttributeValue (error : InvalidAttributeValue) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- You must wait 60 seconds after deleting a queue before you can create another queue with the same name. -/ + | queueDeletedRecently (error : QueueDeletedRecently) + /-- A queue with this name already exists. -/ + | queueNameExists (error : QueueNameExists) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def CreateQueueError.ofWire (name : String) (value : Value) : Option CreateQueueError := + match name with + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidAttributeName" => (Shape.ofValue value).toOption.map .invalidAttributeName + | "InvalidAttributeValue" => (Shape.ofValue value).toOption.map .invalidAttributeValue + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "QueueDeletedRecently" => (Shape.ofValue value).toOption.map .queueDeletedRecently + | "QueueNameExists" => (Shape.ofValue value).toOption.map .queueNameExists + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `DeleteMessage` can fail with. -/ +inductive DeleteMessageError where + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The specified receipt handle isn't valid for the current version. -/ + | invalidIdFormat (error : InvalidIdFormat) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- Ensure that the QueueUrl is correct and that the queue has not been deleted. -/ + | queueDoesNotExist (error : QueueDoesNotExist) + /-- The specified receipt handle isn't valid. -/ + | receiptHandleIsInvalid (error : ReceiptHandleIsInvalid) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def DeleteMessageError.ofWire (name : String) (value : Value) : Option DeleteMessageError := + match name with + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidIdFormat" => (Shape.ofValue value).toOption.map .invalidIdFormat + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "QueueDoesNotExist" => (Shape.ofValue value).toOption.map .queueDoesNotExist + | "ReceiptHandleIsInvalid" => (Shape.ofValue value).toOption.map .receiptHandleIsInvalid + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `DeleteMessageBatch` can fail with. -/ +inductive DeleteMessageBatchError where + /-- Two or more batch entries in the request have the same Id . -/ + | batchEntryIdsNotDistinct (error : BatchEntryIdsNotDistinct) + /-- The batch request doesn't contain any entries. -/ + | emptyBatchRequest (error : EmptyBatchRequest) + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The Id of a batch entry in a batch request doesn't abide by the specification. -/ + | invalidBatchEntryId (error : InvalidBatchEntryId) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- Ensure that the QueueUrl is correct and that the queue has not been deleted. -/ + | queueDoesNotExist (error : QueueDoesNotExist) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- The batch request contains more entries than permissible. -/ + | tooManyEntriesInBatchRequest (error : TooManyEntriesInBatchRequest) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def DeleteMessageBatchError.ofWire (name : String) (value : Value) : Option DeleteMessageBatchError := + match name with + | "BatchEntryIdsNotDistinct" => (Shape.ofValue value).toOption.map .batchEntryIdsNotDistinct + | "EmptyBatchRequest" => (Shape.ofValue value).toOption.map .emptyBatchRequest + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidBatchEntryId" => (Shape.ofValue value).toOption.map .invalidBatchEntryId + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "QueueDoesNotExist" => (Shape.ofValue value).toOption.map .queueDoesNotExist + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "TooManyEntriesInBatchRequest" => (Shape.ofValue value).toOption.map .tooManyEntriesInBatchRequest + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `DeleteQueue` can fail with. -/ +inductive DeleteQueueError where + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- Ensure that the QueueUrl is correct and that the queue has not been deleted. -/ + | queueDoesNotExist (error : QueueDoesNotExist) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def DeleteQueueError.ofWire (name : String) (value : Value) : Option DeleteQueueError := + match name with + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "QueueDoesNotExist" => (Shape.ofValue value).toOption.map .queueDoesNotExist + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `GetQueueAttributes` can fail with. -/ +inductive GetQueueAttributesError where + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The specified attribute doesn't exist. -/ + | invalidAttributeName (error : InvalidAttributeName) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- Ensure that the QueueUrl is correct and that the queue has not been deleted. -/ + | queueDoesNotExist (error : QueueDoesNotExist) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def GetQueueAttributesError.ofWire (name : String) (value : Value) : Option GetQueueAttributesError := + match name with + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidAttributeName" => (Shape.ofValue value).toOption.map .invalidAttributeName + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "QueueDoesNotExist" => (Shape.ofValue value).toOption.map .queueDoesNotExist + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `GetQueueUrl` can fail with. -/ +inductive GetQueueUrlError where + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- Ensure that the QueueUrl is correct and that the queue has not been deleted. -/ + | queueDoesNotExist (error : QueueDoesNotExist) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def GetQueueUrlError.ofWire (name : String) (value : Value) : Option GetQueueUrlError := + match name with + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "QueueDoesNotExist" => (Shape.ofValue value).toOption.map .queueDoesNotExist + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `ListDeadLetterSourceQueues` can fail with. -/ +inductive ListDeadLetterSourceQueuesError where + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- Ensure that the QueueUrl is correct and that the queue has not been deleted. -/ + | queueDoesNotExist (error : QueueDoesNotExist) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def ListDeadLetterSourceQueuesError.ofWire (name : String) (value : Value) : Option ListDeadLetterSourceQueuesError := + match name with + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "QueueDoesNotExist" => (Shape.ofValue value).toOption.map .queueDoesNotExist + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `ListMessageMoveTasks` can fail with. -/ +inductive ListMessageMoveTasksError where + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- One or more specified resources don't exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def ListMessageMoveTasksError.ofWire (name : String) (value : Value) : Option ListMessageMoveTasksError := + match name with + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `ListQueueTags` can fail with. -/ +inductive ListQueueTagsError where + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- Ensure that the QueueUrl is correct and that the queue has not been deleted. -/ + | queueDoesNotExist (error : QueueDoesNotExist) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def ListQueueTagsError.ofWire (name : String) (value : Value) : Option ListQueueTagsError := + match name with + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "QueueDoesNotExist" => (Shape.ofValue value).toOption.map .queueDoesNotExist + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `ListQueues` can fail with. -/ +inductive ListQueuesError where + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def ListQueuesError.ofWire (name : String) (value : Value) : Option ListQueuesError := + match name with + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `PurgeQueue` can fail with. -/ +inductive PurgeQueueError where + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- Indicates that the specified queue previously received a PurgeQueue request within the last 60 seconds (the time it can take to delete the messages in the queue). -/ + | purgeQueueInProgress (error : PurgeQueueInProgress) + /-- Ensure that the QueueUrl is correct and that the queue has not been deleted. -/ + | queueDoesNotExist (error : QueueDoesNotExist) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def PurgeQueueError.ofWire (name : String) (value : Value) : Option PurgeQueueError := + match name with + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "PurgeQueueInProgress" => (Shape.ofValue value).toOption.map .purgeQueueInProgress + | "QueueDoesNotExist" => (Shape.ofValue value).toOption.map .queueDoesNotExist + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `ReceiveMessage` can fail with. -/ +inductive ReceiveMessageError where + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- The caller doesn't have the required KMS access. -/ + | kmsAccessDenied (error : KmsAccessDenied) + /-- The request was denied due to request throttling. -/ + | kmsDisabled (error : KmsDisabled) + /-- The request was rejected for one of the following reasons: The KeyUsage value of the KMS key is incompatible with the API operation. -/ + | kmsInvalidKeyUsage (error : KmsInvalidKeyUsage) + /-- The request was rejected because the state of the specified resource is not valid for this request. -/ + | kmsInvalidState (error : KmsInvalidState) + /-- The request was rejected because the specified entity or resource could not be found. -/ + | kmsNotFound (error : KmsNotFound) + /-- The request was rejected because the specified key policy isn't syntactically or semantically correct. -/ + | kmsOptInRequired (error : KmsOptInRequired) + /-- Amazon Web Services KMS throttles requests for the following conditions. -/ + | kmsThrottled (error : KmsThrottled) + /-- The specified action violates a limit. -/ + | overLimit (error : OverLimit) + /-- Ensure that the QueueUrl is correct and that the queue has not been deleted. -/ + | queueDoesNotExist (error : QueueDoesNotExist) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def ReceiveMessageError.ofWire (name : String) (value : Value) : Option ReceiveMessageError := + match name with + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "KmsAccessDenied" => (Shape.ofValue value).toOption.map .kmsAccessDenied + | "KmsDisabled" => (Shape.ofValue value).toOption.map .kmsDisabled + | "KmsInvalidKeyUsage" => (Shape.ofValue value).toOption.map .kmsInvalidKeyUsage + | "KmsInvalidState" => (Shape.ofValue value).toOption.map .kmsInvalidState + | "KmsNotFound" => (Shape.ofValue value).toOption.map .kmsNotFound + | "KmsOptInRequired" => (Shape.ofValue value).toOption.map .kmsOptInRequired + | "KmsThrottled" => (Shape.ofValue value).toOption.map .kmsThrottled + | "OverLimit" => (Shape.ofValue value).toOption.map .overLimit + | "QueueDoesNotExist" => (Shape.ofValue value).toOption.map .queueDoesNotExist + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `RemovePermission` can fail with. -/ +inductive RemovePermissionError where + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- Ensure that the QueueUrl is correct and that the queue has not been deleted. -/ + | queueDoesNotExist (error : QueueDoesNotExist) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def RemovePermissionError.ofWire (name : String) (value : Value) : Option RemovePermissionError := + match name with + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "QueueDoesNotExist" => (Shape.ofValue value).toOption.map .queueDoesNotExist + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `SendMessage` can fail with. -/ +inductive SendMessageError where + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The message contains characters outside the allowed set. -/ + | invalidMessageContents (error : InvalidMessageContents) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- The caller doesn't have the required KMS access. -/ + | kmsAccessDenied (error : KmsAccessDenied) + /-- The request was denied due to request throttling. -/ + | kmsDisabled (error : KmsDisabled) + /-- The request was rejected for one of the following reasons: The KeyUsage value of the KMS key is incompatible with the API operation. -/ + | kmsInvalidKeyUsage (error : KmsInvalidKeyUsage) + /-- The request was rejected because the state of the specified resource is not valid for this request. -/ + | kmsInvalidState (error : KmsInvalidState) + /-- The request was rejected because the specified entity or resource could not be found. -/ + | kmsNotFound (error : KmsNotFound) + /-- The request was rejected because the specified key policy isn't syntactically or semantically correct. -/ + | kmsOptInRequired (error : KmsOptInRequired) + /-- Amazon Web Services KMS throttles requests for the following conditions. -/ + | kmsThrottled (error : KmsThrottled) + /-- Ensure that the QueueUrl is correct and that the queue has not been deleted. -/ + | queueDoesNotExist (error : QueueDoesNotExist) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def SendMessageError.ofWire (name : String) (value : Value) : Option SendMessageError := + match name with + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidMessageContents" => (Shape.ofValue value).toOption.map .invalidMessageContents + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "KmsAccessDenied" => (Shape.ofValue value).toOption.map .kmsAccessDenied + | "KmsDisabled" => (Shape.ofValue value).toOption.map .kmsDisabled + | "KmsInvalidKeyUsage" => (Shape.ofValue value).toOption.map .kmsInvalidKeyUsage + | "KmsInvalidState" => (Shape.ofValue value).toOption.map .kmsInvalidState + | "KmsNotFound" => (Shape.ofValue value).toOption.map .kmsNotFound + | "KmsOptInRequired" => (Shape.ofValue value).toOption.map .kmsOptInRequired + | "KmsThrottled" => (Shape.ofValue value).toOption.map .kmsThrottled + | "QueueDoesNotExist" => (Shape.ofValue value).toOption.map .queueDoesNotExist + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `SendMessageBatch` can fail with. -/ +inductive SendMessageBatchError where + /-- Two or more batch entries in the request have the same Id . -/ + | batchEntryIdsNotDistinct (error : BatchEntryIdsNotDistinct) + /-- The length of all the messages put together is more than the limit. -/ + | batchRequestTooLong (error : BatchRequestTooLong) + /-- The batch request doesn't contain any entries. -/ + | emptyBatchRequest (error : EmptyBatchRequest) + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The Id of a batch entry in a batch request doesn't abide by the specification. -/ + | invalidBatchEntryId (error : InvalidBatchEntryId) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- The caller doesn't have the required KMS access. -/ + | kmsAccessDenied (error : KmsAccessDenied) + /-- The request was denied due to request throttling. -/ + | kmsDisabled (error : KmsDisabled) + /-- The request was rejected for one of the following reasons: The KeyUsage value of the KMS key is incompatible with the API operation. -/ + | kmsInvalidKeyUsage (error : KmsInvalidKeyUsage) + /-- The request was rejected because the state of the specified resource is not valid for this request. -/ + | kmsInvalidState (error : KmsInvalidState) + /-- The request was rejected because the specified entity or resource could not be found. -/ + | kmsNotFound (error : KmsNotFound) + /-- The request was rejected because the specified key policy isn't syntactically or semantically correct. -/ + | kmsOptInRequired (error : KmsOptInRequired) + /-- Amazon Web Services KMS throttles requests for the following conditions. -/ + | kmsThrottled (error : KmsThrottled) + /-- Ensure that the QueueUrl is correct and that the queue has not been deleted. -/ + | queueDoesNotExist (error : QueueDoesNotExist) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- The batch request contains more entries than permissible. -/ + | tooManyEntriesInBatchRequest (error : TooManyEntriesInBatchRequest) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def SendMessageBatchError.ofWire (name : String) (value : Value) : Option SendMessageBatchError := + match name with + | "BatchEntryIdsNotDistinct" => (Shape.ofValue value).toOption.map .batchEntryIdsNotDistinct + | "BatchRequestTooLong" => (Shape.ofValue value).toOption.map .batchRequestTooLong + | "EmptyBatchRequest" => (Shape.ofValue value).toOption.map .emptyBatchRequest + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidBatchEntryId" => (Shape.ofValue value).toOption.map .invalidBatchEntryId + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "KmsAccessDenied" => (Shape.ofValue value).toOption.map .kmsAccessDenied + | "KmsDisabled" => (Shape.ofValue value).toOption.map .kmsDisabled + | "KmsInvalidKeyUsage" => (Shape.ofValue value).toOption.map .kmsInvalidKeyUsage + | "KmsInvalidState" => (Shape.ofValue value).toOption.map .kmsInvalidState + | "KmsNotFound" => (Shape.ofValue value).toOption.map .kmsNotFound + | "KmsOptInRequired" => (Shape.ofValue value).toOption.map .kmsOptInRequired + | "KmsThrottled" => (Shape.ofValue value).toOption.map .kmsThrottled + | "QueueDoesNotExist" => (Shape.ofValue value).toOption.map .queueDoesNotExist + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "TooManyEntriesInBatchRequest" => (Shape.ofValue value).toOption.map .tooManyEntriesInBatchRequest + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `SetQueueAttributes` can fail with. -/ +inductive SetQueueAttributesError where + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The specified attribute doesn't exist. -/ + | invalidAttributeName (error : InvalidAttributeName) + /-- A queue attribute value is invalid. -/ + | invalidAttributeValue (error : InvalidAttributeValue) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- The specified action violates a limit. -/ + | overLimit (error : OverLimit) + /-- Ensure that the QueueUrl is correct and that the queue has not been deleted. -/ + | queueDoesNotExist (error : QueueDoesNotExist) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def SetQueueAttributesError.ofWire (name : String) (value : Value) : Option SetQueueAttributesError := + match name with + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidAttributeName" => (Shape.ofValue value).toOption.map .invalidAttributeName + | "InvalidAttributeValue" => (Shape.ofValue value).toOption.map .invalidAttributeValue + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "OverLimit" => (Shape.ofValue value).toOption.map .overLimit + | "QueueDoesNotExist" => (Shape.ofValue value).toOption.map .queueDoesNotExist + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `StartMessageMoveTask` can fail with. -/ +inductive StartMessageMoveTaskError where + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- One or more specified resources don't exist. -/ + | resourceNotFoundException (error : ResourceNotFoundException) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def StartMessageMoveTaskError.ofWire (name : String) (value : Value) : Option StartMessageMoveTaskError := + match name with + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "ResourceNotFoundException" => (Shape.ofValue value).toOption.map .resourceNotFoundException + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `TagQueue` can fail with. -/ +inductive TagQueueError where + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- Ensure that the QueueUrl is correct and that the queue has not been deleted. -/ + | queueDoesNotExist (error : QueueDoesNotExist) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def TagQueueError.ofWire (name : String) (value : Value) : Option TagQueueError := + match name with + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "QueueDoesNotExist" => (Shape.ofValue value).toOption.map .queueDoesNotExist + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- What `UntagQueue` can fail with. -/ +inductive UntagQueueError where + /-- The specified ID is invalid. -/ + | invalidAddress (error : InvalidAddress) + /-- The request was not made over HTTPS or did not use SigV4 for signing. -/ + | invalidSecurity (error : InvalidSecurity) + /-- Ensure that the QueueUrl is correct and that the queue has not been deleted. -/ + | queueDoesNotExist (error : QueueDoesNotExist) + /-- The request was denied due to request throttling. -/ + | requestThrottled (error : RequestThrottled) + /-- Error code 400. -/ + | unsupportedOperation (error : UnsupportedOperation) +deriving DecidableEq, Repr + +def UntagQueueError.ofWire (name : String) (value : Value) : Option UntagQueueError := + match name with + | "InvalidAddress" => (Shape.ofValue value).toOption.map .invalidAddress + | "InvalidSecurity" => (Shape.ofValue value).toOption.map .invalidSecurity + | "QueueDoesNotExist" => (Shape.ofValue value).toOption.map .queueDoesNotExist + | "RequestThrottled" => (Shape.ofValue value).toOption.map .requestThrottled + | "UnsupportedOperation" => (Shape.ofValue value).toOption.map .unsupportedOperation + | _ => none + +/-- The operations of the service. -/ +inductive Op where + /-- Adds a permission to a queue for a specific principal . -/ + | addPermission + /-- Cancels a specified message movement task. -/ + | cancelMessageMoveTask + /-- Changes the visibility timeout of a specified message in a queue to a new value. -/ + | changeMessageVisibility + /-- Changes the visibility timeout of multiple messages. -/ + | changeMessageVisibilityBatch + /-- Creates a new standard or FIFO queue. -/ + | createQueue + /-- Deletes the specified message from the specified queue. -/ + | deleteMessage + /-- Deletes up to ten messages from the specified queue. -/ + | deleteMessageBatch + /-- Deletes the queue specified by the QueueUrl , regardless of the queue's contents. -/ + | deleteQueue + /-- Gets attributes for the specified queue. -/ + | getQueueAttributes + /-- The GetQueueUrl API returns the URL of an existing Amazon SQS queue. -/ + | getQueueUrl + /-- Returns a list of your queues that have the RedrivePolicy queue attribute configured with a dead-letter queue. -/ + | listDeadLetterSourceQueues + /-- Gets the most recent message movement tasks (up to 10) under a specific source queue. -/ + | listMessageMoveTasks + /-- List all cost allocation tags added to the specified Amazon SQS queue. -/ + | listQueueTags + /-- Returns a list of your queues in the current region. -/ + | listQueues + /-- Deletes available messages in a queue (including in-flight messages) specified by the QueueURL parameter. -/ + | purgeQueue + /-- Retrieves one or more messages (up to 10), from the specified queue. -/ + | receiveMessage + /-- Revokes any permissions in the queue policy that matches the specified Label parameter. -/ + | removePermission + /-- Delivers a message to the specified queue. -/ + | sendMessage + /-- You can use SendMessageBatch to send up to 10 messages to the specified queue by assigning either identical or different values to each message (or by not assigning values at all). -/ + | sendMessageBatch + /-- Sets the value of one or more queue attributes, like a policy. -/ + | setQueueAttributes + /-- Starts an asynchronous task to move messages from a specified source queue to a specified destination queue. -/ + | startMessageMoveTask + /-- Add cost allocation tags to the specified Amazon SQS queue. -/ + | tagQueue + /-- Remove cost allocation tags from the specified Amazon SQS queue. -/ + | untagQueue +deriving DecidableEq, Repr + +abbrev Input : Op → Type + | .addPermission => AddPermissionRequest + | .cancelMessageMoveTask => CancelMessageMoveTaskRequest + | .changeMessageVisibility => ChangeMessageVisibilityRequest + | .changeMessageVisibilityBatch => ChangeMessageVisibilityBatchRequest + | .createQueue => CreateQueueRequest + | .deleteMessage => DeleteMessageRequest + | .deleteMessageBatch => DeleteMessageBatchRequest + | .deleteQueue => DeleteQueueRequest + | .getQueueAttributes => GetQueueAttributesRequest + | .getQueueUrl => GetQueueUrlRequest + | .listDeadLetterSourceQueues => ListDeadLetterSourceQueuesRequest + | .listMessageMoveTasks => ListMessageMoveTasksRequest + | .listQueueTags => ListQueueTagsRequest + | .listQueues => ListQueuesRequest + | .purgeQueue => PurgeQueueRequest + | .receiveMessage => ReceiveMessageRequest + | .removePermission => RemovePermissionRequest + | .sendMessage => SendMessageRequest + | .sendMessageBatch => SendMessageBatchRequest + | .setQueueAttributes => SetQueueAttributesRequest + | .startMessageMoveTask => StartMessageMoveTaskRequest + | .tagQueue => TagQueueRequest + | .untagQueue => UntagQueueRequest + +abbrev Output : Op → Type + | .addPermission => Unit + | .cancelMessageMoveTask => CancelMessageMoveTaskResult + | .changeMessageVisibility => Unit + | .changeMessageVisibilityBatch => ChangeMessageVisibilityBatchResult + | .createQueue => CreateQueueResult + | .deleteMessage => Unit + | .deleteMessageBatch => DeleteMessageBatchResult + | .deleteQueue => Unit + | .getQueueAttributes => GetQueueAttributesResult + | .getQueueUrl => GetQueueUrlResult + | .listDeadLetterSourceQueues => ListDeadLetterSourceQueuesResult + | .listMessageMoveTasks => ListMessageMoveTasksResult + | .listQueueTags => ListQueueTagsResult + | .listQueues => ListQueuesResult + | .purgeQueue => Unit + | .receiveMessage => ReceiveMessageResult + | .removePermission => Unit + | .sendMessage => SendMessageResult + | .sendMessageBatch => SendMessageBatchResult + | .setQueueAttributes => Unit + | .startMessageMoveTask => StartMessageMoveTaskResult + | .tagQueue => Unit + | .untagQueue => Unit + +abbrev Error : Op → Type + | .addPermission => AddPermissionError + | .cancelMessageMoveTask => CancelMessageMoveTaskError + | .changeMessageVisibility => ChangeMessageVisibilityError + | .changeMessageVisibilityBatch => ChangeMessageVisibilityBatchError + | .createQueue => CreateQueueError + | .deleteMessage => DeleteMessageError + | .deleteMessageBatch => DeleteMessageBatchError + | .deleteQueue => DeleteQueueError + | .getQueueAttributes => GetQueueAttributesError + | .getQueueUrl => GetQueueUrlError + | .listDeadLetterSourceQueues => ListDeadLetterSourceQueuesError + | .listMessageMoveTasks => ListMessageMoveTasksError + | .listQueueTags => ListQueueTagsError + | .listQueues => ListQueuesError + | .purgeQueue => PurgeQueueError + | .receiveMessage => ReceiveMessageError + | .removePermission => RemovePermissionError + | .sendMessage => SendMessageError + | .sendMessageBatch => SendMessageBatchError + | .setQueueAttributes => SetQueueAttributesError + | .startMessageMoveTask => StartMessageMoveTaskError + | .tagQueue => TagQueueError + | .untagQueue => UntagQueueError + +/-- An empty output for each operation, for a model that leaves an operation out. -/ +def Output.empty : (op : Op) → Output op + | .addPermission => default + | .cancelMessageMoveTask => default + | .changeMessageVisibility => default + | .changeMessageVisibilityBatch => default + | .createQueue => default + | .deleteMessage => default + | .deleteMessageBatch => default + | .deleteQueue => default + | .getQueueAttributes => default + | .getQueueUrl => default + | .listDeadLetterSourceQueues => default + | .listMessageMoveTasks => default + | .listQueueTags => default + | .listQueues => default + | .purgeQueue => default + | .receiveMessage => default + | .removePermission => default + | .sendMessage => default + | .sendMessageBatch => default + | .setQueueAttributes => default + | .startMessageMoveTask => default + | .tagQueue => default + | .untagQueue => default + +/-- The service: every operation with its input, its output and its errors. -/ +abbrev api : Distilled.Api where + Op := Op + In := Input + Out := Output + Err := Error + +/-- The name requests to this service are signed for. -/ +def signingName : String := "sqs" + +def service : ServiceInfo where + name := "AmazonSQS" + version := "2012-11-05" + protocol := .awsJson "1.0" + signingName := "sqs" + +/-- What the model says about each operation. -/ +def info : Op → OpInfo + | .addPermission => { name := "AddPermission", method := "POST", uri := "/", input := (Shape.schema AddPermissionRequest), output := (Shape.schema Unit), errors := [{ name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "OverLimit", code := some "OverLimit", schema := Shape.schema OverLimit }, { name := "QueueDoesNotExist", code := some "AWS.SimpleQueueService.NonExistentQueue", schema := Shape.schema QueueDoesNotExist }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .cancelMessageMoveTask => { name := "CancelMessageMoveTask", method := "POST", uri := "/", input := (Shape.schema CancelMessageMoveTaskRequest), output := (Shape.schema CancelMessageMoveTaskResult), errors := [{ name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "ResourceNotFoundException", code := some "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .changeMessageVisibility => { name := "ChangeMessageVisibility", method := "POST", uri := "/", input := (Shape.schema ChangeMessageVisibilityRequest), output := (Shape.schema Unit), errors := [{ name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "MessageNotInflight", code := some "AWS.SimpleQueueService.MessageNotInflight", schema := Shape.schema MessageNotInflight }, { name := "QueueDoesNotExist", code := some "AWS.SimpleQueueService.NonExistentQueue", schema := Shape.schema QueueDoesNotExist }, { name := "ReceiptHandleIsInvalid", code := some "ReceiptHandleIsInvalid", schema := Shape.schema ReceiptHandleIsInvalid }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .changeMessageVisibilityBatch => { name := "ChangeMessageVisibilityBatch", method := "POST", uri := "/", input := (Shape.schema ChangeMessageVisibilityBatchRequest), output := (Shape.schema ChangeMessageVisibilityBatchResult), errors := [{ name := "BatchEntryIdsNotDistinct", code := some "AWS.SimpleQueueService.BatchEntryIdsNotDistinct", schema := Shape.schema BatchEntryIdsNotDistinct }, { name := "EmptyBatchRequest", code := some "AWS.SimpleQueueService.EmptyBatchRequest", schema := Shape.schema EmptyBatchRequest }, { name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidBatchEntryId", code := some "AWS.SimpleQueueService.InvalidBatchEntryId", schema := Shape.schema InvalidBatchEntryId }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "QueueDoesNotExist", code := some "AWS.SimpleQueueService.NonExistentQueue", schema := Shape.schema QueueDoesNotExist }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "TooManyEntriesInBatchRequest", code := some "AWS.SimpleQueueService.TooManyEntriesInBatchRequest", schema := Shape.schema TooManyEntriesInBatchRequest }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .createQueue => { name := "CreateQueue", method := "POST", uri := "/", input := (Shape.schema CreateQueueRequest), output := (Shape.schema CreateQueueResult), errors := [{ name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidAttributeName", schema := Shape.schema InvalidAttributeName }, { name := "InvalidAttributeValue", schema := Shape.schema InvalidAttributeValue }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "QueueDeletedRecently", code := some "AWS.SimpleQueueService.QueueDeletedRecently", schema := Shape.schema QueueDeletedRecently }, { name := "QueueNameExists", code := some "QueueAlreadyExists", schema := Shape.schema QueueNameExists }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .deleteMessage => { name := "DeleteMessage", method := "POST", uri := "/", input := (Shape.schema DeleteMessageRequest), output := (Shape.schema Unit), errors := [{ name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidIdFormat", schema := Shape.schema InvalidIdFormat }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "QueueDoesNotExist", code := some "AWS.SimpleQueueService.NonExistentQueue", schema := Shape.schema QueueDoesNotExist }, { name := "ReceiptHandleIsInvalid", code := some "ReceiptHandleIsInvalid", schema := Shape.schema ReceiptHandleIsInvalid }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .deleteMessageBatch => { name := "DeleteMessageBatch", method := "POST", uri := "/", input := (Shape.schema DeleteMessageBatchRequest), output := (Shape.schema DeleteMessageBatchResult), errors := [{ name := "BatchEntryIdsNotDistinct", code := some "AWS.SimpleQueueService.BatchEntryIdsNotDistinct", schema := Shape.schema BatchEntryIdsNotDistinct }, { name := "EmptyBatchRequest", code := some "AWS.SimpleQueueService.EmptyBatchRequest", schema := Shape.schema EmptyBatchRequest }, { name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidBatchEntryId", code := some "AWS.SimpleQueueService.InvalidBatchEntryId", schema := Shape.schema InvalidBatchEntryId }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "QueueDoesNotExist", code := some "AWS.SimpleQueueService.NonExistentQueue", schema := Shape.schema QueueDoesNotExist }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "TooManyEntriesInBatchRequest", code := some "AWS.SimpleQueueService.TooManyEntriesInBatchRequest", schema := Shape.schema TooManyEntriesInBatchRequest }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .deleteQueue => { name := "DeleteQueue", method := "POST", uri := "/", input := (Shape.schema DeleteQueueRequest), output := (Shape.schema Unit), errors := [{ name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "QueueDoesNotExist", code := some "AWS.SimpleQueueService.NonExistentQueue", schema := Shape.schema QueueDoesNotExist }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .getQueueAttributes => { name := "GetQueueAttributes", method := "POST", uri := "/", input := (Shape.schema GetQueueAttributesRequest), output := (Shape.schema GetQueueAttributesResult), errors := [{ name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidAttributeName", schema := Shape.schema InvalidAttributeName }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "QueueDoesNotExist", code := some "AWS.SimpleQueueService.NonExistentQueue", schema := Shape.schema QueueDoesNotExist }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .getQueueUrl => { name := "GetQueueUrl", method := "POST", uri := "/", input := (Shape.schema GetQueueUrlRequest), output := (Shape.schema GetQueueUrlResult), errors := [{ name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "QueueDoesNotExist", code := some "AWS.SimpleQueueService.NonExistentQueue", schema := Shape.schema QueueDoesNotExist }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .listDeadLetterSourceQueues => { name := "ListDeadLetterSourceQueues", method := "POST", uri := "/", input := (Shape.schema ListDeadLetterSourceQueuesRequest), output := (Shape.schema ListDeadLetterSourceQueuesResult), errors := [{ name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "QueueDoesNotExist", code := some "AWS.SimpleQueueService.NonExistentQueue", schema := Shape.schema QueueDoesNotExist }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .listMessageMoveTasks => { name := "ListMessageMoveTasks", method := "POST", uri := "/", input := (Shape.schema ListMessageMoveTasksRequest), output := (Shape.schema ListMessageMoveTasksResult), errors := [{ name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "ResourceNotFoundException", code := some "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .listQueueTags => { name := "ListQueueTags", method := "POST", uri := "/", input := (Shape.schema ListQueueTagsRequest), output := (Shape.schema ListQueueTagsResult), errors := [{ name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "QueueDoesNotExist", code := some "AWS.SimpleQueueService.NonExistentQueue", schema := Shape.schema QueueDoesNotExist }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .listQueues => { name := "ListQueues", method := "POST", uri := "/", input := (Shape.schema ListQueuesRequest), output := (Shape.schema ListQueuesResult), errors := [{ name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .purgeQueue => { name := "PurgeQueue", method := "POST", uri := "/", input := (Shape.schema PurgeQueueRequest), output := (Shape.schema Unit), errors := [{ name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "PurgeQueueInProgress", code := some "AWS.SimpleQueueService.PurgeQueueInProgress", schema := Shape.schema PurgeQueueInProgress }, { name := "QueueDoesNotExist", code := some "AWS.SimpleQueueService.NonExistentQueue", schema := Shape.schema QueueDoesNotExist }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .receiveMessage => { name := "ReceiveMessage", method := "POST", uri := "/", input := (Shape.schema ReceiveMessageRequest), output := (Shape.schema ReceiveMessageResult), errors := [{ name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "KmsAccessDenied", code := some "KMS.AccessDeniedException", schema := Shape.schema KmsAccessDenied }, { name := "KmsDisabled", code := some "KMS.DisabledException", schema := Shape.schema KmsDisabled }, { name := "KmsInvalidKeyUsage", code := some "KMS.InvalidKeyUsageException", schema := Shape.schema KmsInvalidKeyUsage }, { name := "KmsInvalidState", code := some "KMS.InvalidStateException", schema := Shape.schema KmsInvalidState }, { name := "KmsNotFound", code := some "KMS.NotFoundException", schema := Shape.schema KmsNotFound }, { name := "KmsOptInRequired", code := some "KMS.OptInRequired", schema := Shape.schema KmsOptInRequired }, { name := "KmsThrottled", code := some "KMS.ThrottlingException", schema := Shape.schema KmsThrottled }, { name := "OverLimit", code := some "OverLimit", schema := Shape.schema OverLimit }, { name := "QueueDoesNotExist", code := some "AWS.SimpleQueueService.NonExistentQueue", schema := Shape.schema QueueDoesNotExist }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .removePermission => { name := "RemovePermission", method := "POST", uri := "/", input := (Shape.schema RemovePermissionRequest), output := (Shape.schema Unit), errors := [{ name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "QueueDoesNotExist", code := some "AWS.SimpleQueueService.NonExistentQueue", schema := Shape.schema QueueDoesNotExist }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .sendMessage => { name := "SendMessage", method := "POST", uri := "/", input := (Shape.schema SendMessageRequest), output := (Shape.schema SendMessageResult), errors := [{ name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidMessageContents", schema := Shape.schema InvalidMessageContents }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "KmsAccessDenied", code := some "KMS.AccessDeniedException", schema := Shape.schema KmsAccessDenied }, { name := "KmsDisabled", code := some "KMS.DisabledException", schema := Shape.schema KmsDisabled }, { name := "KmsInvalidKeyUsage", code := some "KMS.InvalidKeyUsageException", schema := Shape.schema KmsInvalidKeyUsage }, { name := "KmsInvalidState", code := some "KMS.InvalidStateException", schema := Shape.schema KmsInvalidState }, { name := "KmsNotFound", code := some "KMS.NotFoundException", schema := Shape.schema KmsNotFound }, { name := "KmsOptInRequired", code := some "KMS.OptInRequired", schema := Shape.schema KmsOptInRequired }, { name := "KmsThrottled", code := some "KMS.ThrottlingException", schema := Shape.schema KmsThrottled }, { name := "QueueDoesNotExist", code := some "AWS.SimpleQueueService.NonExistentQueue", schema := Shape.schema QueueDoesNotExist }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .sendMessageBatch => { name := "SendMessageBatch", method := "POST", uri := "/", input := (Shape.schema SendMessageBatchRequest), output := (Shape.schema SendMessageBatchResult), errors := [{ name := "BatchEntryIdsNotDistinct", code := some "AWS.SimpleQueueService.BatchEntryIdsNotDistinct", schema := Shape.schema BatchEntryIdsNotDistinct }, { name := "BatchRequestTooLong", code := some "AWS.SimpleQueueService.BatchRequestTooLong", schema := Shape.schema BatchRequestTooLong }, { name := "EmptyBatchRequest", code := some "AWS.SimpleQueueService.EmptyBatchRequest", schema := Shape.schema EmptyBatchRequest }, { name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidBatchEntryId", code := some "AWS.SimpleQueueService.InvalidBatchEntryId", schema := Shape.schema InvalidBatchEntryId }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "KmsAccessDenied", code := some "KMS.AccessDeniedException", schema := Shape.schema KmsAccessDenied }, { name := "KmsDisabled", code := some "KMS.DisabledException", schema := Shape.schema KmsDisabled }, { name := "KmsInvalidKeyUsage", code := some "KMS.InvalidKeyUsageException", schema := Shape.schema KmsInvalidKeyUsage }, { name := "KmsInvalidState", code := some "KMS.InvalidStateException", schema := Shape.schema KmsInvalidState }, { name := "KmsNotFound", code := some "KMS.NotFoundException", schema := Shape.schema KmsNotFound }, { name := "KmsOptInRequired", code := some "KMS.OptInRequired", schema := Shape.schema KmsOptInRequired }, { name := "KmsThrottled", code := some "KMS.ThrottlingException", schema := Shape.schema KmsThrottled }, { name := "QueueDoesNotExist", code := some "AWS.SimpleQueueService.NonExistentQueue", schema := Shape.schema QueueDoesNotExist }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "TooManyEntriesInBatchRequest", code := some "AWS.SimpleQueueService.TooManyEntriesInBatchRequest", schema := Shape.schema TooManyEntriesInBatchRequest }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .setQueueAttributes => { name := "SetQueueAttributes", method := "POST", uri := "/", input := (Shape.schema SetQueueAttributesRequest), output := (Shape.schema Unit), errors := [{ name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidAttributeName", schema := Shape.schema InvalidAttributeName }, { name := "InvalidAttributeValue", schema := Shape.schema InvalidAttributeValue }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "OverLimit", code := some "OverLimit", schema := Shape.schema OverLimit }, { name := "QueueDoesNotExist", code := some "AWS.SimpleQueueService.NonExistentQueue", schema := Shape.schema QueueDoesNotExist }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .startMessageMoveTask => { name := "StartMessageMoveTask", method := "POST", uri := "/", input := (Shape.schema StartMessageMoveTaskRequest), output := (Shape.schema StartMessageMoveTaskResult), errors := [{ name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "ResourceNotFoundException", code := some "ResourceNotFoundException", schema := Shape.schema ResourceNotFoundException }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .tagQueue => { name := "TagQueue", method := "POST", uri := "/", input := (Shape.schema TagQueueRequest), output := (Shape.schema Unit), errors := [{ name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "QueueDoesNotExist", code := some "AWS.SimpleQueueService.NonExistentQueue", schema := Shape.schema QueueDoesNotExist }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + | .untagQueue => { name := "UntagQueue", method := "POST", uri := "/", input := (Shape.schema UntagQueueRequest), output := (Shape.schema Unit), errors := [{ name := "InvalidAddress", code := some "InvalidAddress", schema := Shape.schema InvalidAddress }, { name := "InvalidSecurity", code := some "InvalidSecurity", schema := Shape.schema InvalidSecurity }, { name := "QueueDoesNotExist", code := some "AWS.SimpleQueueService.NonExistentQueue", schema := Shape.schema QueueDoesNotExist }, { name := "RequestThrottled", code := some "RequestThrottled", schema := Shape.schema RequestThrottled }, { name := "UnsupportedOperation", code := some "AWS.SimpleQueueService.UnsupportedOperation", schema := Shape.schema UnsupportedOperation }] } + +/-- How the service goes over HTTP. -/ +def wire : Wire api := Wire.of service info + (fun op => match op with + | .addPermission => fun (x : AddPermissionRequest) => Shape.toValue x + | .cancelMessageMoveTask => fun (x : CancelMessageMoveTaskRequest) => Shape.toValue x + | .changeMessageVisibility => fun (x : ChangeMessageVisibilityRequest) => Shape.toValue x + | .changeMessageVisibilityBatch => fun (x : ChangeMessageVisibilityBatchRequest) => Shape.toValue x + | .createQueue => fun (x : CreateQueueRequest) => Shape.toValue x + | .deleteMessage => fun (x : DeleteMessageRequest) => Shape.toValue x + | .deleteMessageBatch => fun (x : DeleteMessageBatchRequest) => Shape.toValue x + | .deleteQueue => fun (x : DeleteQueueRequest) => Shape.toValue x + | .getQueueAttributes => fun (x : GetQueueAttributesRequest) => Shape.toValue x + | .getQueueUrl => fun (x : GetQueueUrlRequest) => Shape.toValue x + | .listDeadLetterSourceQueues => fun (x : ListDeadLetterSourceQueuesRequest) => Shape.toValue x + | .listMessageMoveTasks => fun (x : ListMessageMoveTasksRequest) => Shape.toValue x + | .listQueueTags => fun (x : ListQueueTagsRequest) => Shape.toValue x + | .listQueues => fun (x : ListQueuesRequest) => Shape.toValue x + | .purgeQueue => fun (x : PurgeQueueRequest) => Shape.toValue x + | .receiveMessage => fun (x : ReceiveMessageRequest) => Shape.toValue x + | .removePermission => fun (x : RemovePermissionRequest) => Shape.toValue x + | .sendMessage => fun (x : SendMessageRequest) => Shape.toValue x + | .sendMessageBatch => fun (x : SendMessageBatchRequest) => Shape.toValue x + | .setQueueAttributes => fun (x : SetQueueAttributesRequest) => Shape.toValue x + | .startMessageMoveTask => fun (x : StartMessageMoveTaskRequest) => Shape.toValue x + | .tagQueue => fun (x : TagQueueRequest) => Shape.toValue x + | .untagQueue => fun (x : UntagQueueRequest) => Shape.toValue x +) + (fun op => match op with + | .addPermission => fun v => (Shape.ofValue v : Except String Unit) + | .cancelMessageMoveTask => fun v => (Shape.ofValue v : Except String CancelMessageMoveTaskResult) + | .changeMessageVisibility => fun v => (Shape.ofValue v : Except String Unit) + | .changeMessageVisibilityBatch => fun v => (Shape.ofValue v : Except String ChangeMessageVisibilityBatchResult) + | .createQueue => fun v => (Shape.ofValue v : Except String CreateQueueResult) + | .deleteMessage => fun v => (Shape.ofValue v : Except String Unit) + | .deleteMessageBatch => fun v => (Shape.ofValue v : Except String DeleteMessageBatchResult) + | .deleteQueue => fun v => (Shape.ofValue v : Except String Unit) + | .getQueueAttributes => fun v => (Shape.ofValue v : Except String GetQueueAttributesResult) + | .getQueueUrl => fun v => (Shape.ofValue v : Except String GetQueueUrlResult) + | .listDeadLetterSourceQueues => fun v => (Shape.ofValue v : Except String ListDeadLetterSourceQueuesResult) + | .listMessageMoveTasks => fun v => (Shape.ofValue v : Except String ListMessageMoveTasksResult) + | .listQueueTags => fun v => (Shape.ofValue v : Except String ListQueueTagsResult) + | .listQueues => fun v => (Shape.ofValue v : Except String ListQueuesResult) + | .purgeQueue => fun v => (Shape.ofValue v : Except String Unit) + | .receiveMessage => fun v => (Shape.ofValue v : Except String ReceiveMessageResult) + | .removePermission => fun v => (Shape.ofValue v : Except String Unit) + | .sendMessage => fun v => (Shape.ofValue v : Except String SendMessageResult) + | .sendMessageBatch => fun v => (Shape.ofValue v : Except String SendMessageBatchResult) + | .setQueueAttributes => fun v => (Shape.ofValue v : Except String Unit) + | .startMessageMoveTask => fun v => (Shape.ofValue v : Except String StartMessageMoveTaskResult) + | .tagQueue => fun v => (Shape.ofValue v : Except String Unit) + | .untagQueue => fun v => (Shape.ofValue v : Except String Unit) +) + (fun op => match op with + | .addPermission => AddPermissionError.ofWire + | .cancelMessageMoveTask => CancelMessageMoveTaskError.ofWire + | .changeMessageVisibility => ChangeMessageVisibilityError.ofWire + | .changeMessageVisibilityBatch => ChangeMessageVisibilityBatchError.ofWire + | .createQueue => CreateQueueError.ofWire + | .deleteMessage => DeleteMessageError.ofWire + | .deleteMessageBatch => DeleteMessageBatchError.ofWire + | .deleteQueue => DeleteQueueError.ofWire + | .getQueueAttributes => GetQueueAttributesError.ofWire + | .getQueueUrl => GetQueueUrlError.ofWire + | .listDeadLetterSourceQueues => ListDeadLetterSourceQueuesError.ofWire + | .listMessageMoveTasks => ListMessageMoveTasksError.ofWire + | .listQueueTags => ListQueueTagsError.ofWire + | .listQueues => ListQueuesError.ofWire + | .purgeQueue => PurgeQueueError.ofWire + | .receiveMessage => ReceiveMessageError.ofWire + | .removePermission => RemovePermissionError.ofWire + | .sendMessage => SendMessageError.ofWire + | .sendMessageBatch => SendMessageBatchError.ofWire + | .setQueueAttributes => SetQueueAttributesError.ofWire + | .startMessageMoveTask => StartMessageMoveTaskError.ofWire + | .tagQueue => TagQueueError.ofWire + | .untagQueue => UntagQueueError.ofWire +) + +/-- Adds a permission to a queue for a specific principal . -/ +def addPermission {ε : Type} (input : AddPermissionRequest) : Eff api ε (Except AddPermissionError Unit) := + Eff.ask (api := api) .addPermission input + +/-- Cancels a specified message movement task. -/ +def cancelMessageMoveTask {ε : Type} (input : CancelMessageMoveTaskRequest) : Eff api ε (Except CancelMessageMoveTaskError CancelMessageMoveTaskResult) := + Eff.ask (api := api) .cancelMessageMoveTask input + +/-- Changes the visibility timeout of a specified message in a queue to a new value. -/ +def changeMessageVisibility {ε : Type} (input : ChangeMessageVisibilityRequest) : Eff api ε (Except ChangeMessageVisibilityError Unit) := + Eff.ask (api := api) .changeMessageVisibility input + +/-- Changes the visibility timeout of multiple messages. -/ +def changeMessageVisibilityBatch {ε : Type} (input : ChangeMessageVisibilityBatchRequest) : Eff api ε (Except ChangeMessageVisibilityBatchError ChangeMessageVisibilityBatchResult) := + Eff.ask (api := api) .changeMessageVisibilityBatch input + +/-- Creates a new standard or FIFO queue. -/ +def createQueue {ε : Type} (input : CreateQueueRequest) : Eff api ε (Except CreateQueueError CreateQueueResult) := + Eff.ask (api := api) .createQueue input + +/-- Deletes the specified message from the specified queue. -/ +def deleteMessage {ε : Type} (input : DeleteMessageRequest) : Eff api ε (Except DeleteMessageError Unit) := + Eff.ask (api := api) .deleteMessage input + +/-- Deletes up to ten messages from the specified queue. -/ +def deleteMessageBatch {ε : Type} (input : DeleteMessageBatchRequest) : Eff api ε (Except DeleteMessageBatchError DeleteMessageBatchResult) := + Eff.ask (api := api) .deleteMessageBatch input + +/-- Deletes the queue specified by the QueueUrl , regardless of the queue's contents. -/ +def deleteQueue {ε : Type} (input : DeleteQueueRequest) : Eff api ε (Except DeleteQueueError Unit) := + Eff.ask (api := api) .deleteQueue input + +/-- Gets attributes for the specified queue. -/ +def getQueueAttributes {ε : Type} (input : GetQueueAttributesRequest) : Eff api ε (Except GetQueueAttributesError GetQueueAttributesResult) := + Eff.ask (api := api) .getQueueAttributes input + +/-- The GetQueueUrl API returns the URL of an existing Amazon SQS queue. -/ +def getQueueUrl {ε : Type} (input : GetQueueUrlRequest) : Eff api ε (Except GetQueueUrlError GetQueueUrlResult) := + Eff.ask (api := api) .getQueueUrl input + +/-- Returns a list of your queues that have the RedrivePolicy queue attribute configured with a dead-letter queue. -/ +def listDeadLetterSourceQueues {ε : Type} (input : ListDeadLetterSourceQueuesRequest) : Eff api ε (Except ListDeadLetterSourceQueuesError ListDeadLetterSourceQueuesResult) := + Eff.ask (api := api) .listDeadLetterSourceQueues input + +/-- Gets the most recent message movement tasks (up to 10) under a specific source queue. -/ +def listMessageMoveTasks {ε : Type} (input : ListMessageMoveTasksRequest) : Eff api ε (Except ListMessageMoveTasksError ListMessageMoveTasksResult) := + Eff.ask (api := api) .listMessageMoveTasks input + +/-- List all cost allocation tags added to the specified Amazon SQS queue. -/ +def listQueueTags {ε : Type} (input : ListQueueTagsRequest) : Eff api ε (Except ListQueueTagsError ListQueueTagsResult) := + Eff.ask (api := api) .listQueueTags input + +/-- Returns a list of your queues in the current region. -/ +def listQueues {ε : Type} (input : ListQueuesRequest) : Eff api ε (Except ListQueuesError ListQueuesResult) := + Eff.ask (api := api) .listQueues input + +/-- Deletes available messages in a queue (including in-flight messages) specified by the QueueURL parameter. -/ +def purgeQueue {ε : Type} (input : PurgeQueueRequest) : Eff api ε (Except PurgeQueueError Unit) := + Eff.ask (api := api) .purgeQueue input + +/-- Retrieves one or more messages (up to 10), from the specified queue. -/ +def receiveMessage {ε : Type} (input : ReceiveMessageRequest) : Eff api ε (Except ReceiveMessageError ReceiveMessageResult) := + Eff.ask (api := api) .receiveMessage input + +/-- Revokes any permissions in the queue policy that matches the specified Label parameter. -/ +def removePermission {ε : Type} (input : RemovePermissionRequest) : Eff api ε (Except RemovePermissionError Unit) := + Eff.ask (api := api) .removePermission input + +/-- Delivers a message to the specified queue. -/ +def sendMessage {ε : Type} (input : SendMessageRequest) : Eff api ε (Except SendMessageError SendMessageResult) := + Eff.ask (api := api) .sendMessage input + +/-- You can use SendMessageBatch to send up to 10 messages to the specified queue by assigning either identical or different values to each message (or by not assigning values at all). -/ +def sendMessageBatch {ε : Type} (input : SendMessageBatchRequest) : Eff api ε (Except SendMessageBatchError SendMessageBatchResult) := + Eff.ask (api := api) .sendMessageBatch input + +/-- Sets the value of one or more queue attributes, like a policy. -/ +def setQueueAttributes {ε : Type} (input : SetQueueAttributesRequest) : Eff api ε (Except SetQueueAttributesError Unit) := + Eff.ask (api := api) .setQueueAttributes input + +/-- Starts an asynchronous task to move messages from a specified source queue to a specified destination queue. -/ +def startMessageMoveTask {ε : Type} (input : StartMessageMoveTaskRequest) : Eff api ε (Except StartMessageMoveTaskError StartMessageMoveTaskResult) := + Eff.ask (api := api) .startMessageMoveTask input + +/-- Add cost allocation tags to the specified Amazon SQS queue. -/ +def tagQueue {ε : Type} (input : TagQueueRequest) : Eff api ε (Except TagQueueError Unit) := + Eff.ask (api := api) .tagQueue input + +/-- Remove cost allocation tags from the specified Amazon SQS queue. -/ +def untagQueue {ε : Type} (input : UntagQueueRequest) : Eff api ε (Except UntagQueueError Unit) := + Eff.ask (api := api) .untagQueue input + +end Distilled.AWS.SQS diff --git a/lean/Distilled/Bytes.lean b/lean/Distilled/Bytes.lean new file mode 100644 index 0000000000..be42cf8620 --- /dev/null +++ b/lean/Distilled/Bytes.lean @@ -0,0 +1,120 @@ +/-! +# Bytes and time + +Base64, and the three ways a moment is written on the wire. +-/ + +namespace Distilled + +def base64Chars : Array Char := + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".toList.toArray + +def base64Encode (bytes : ByteArray) : String := Id.run do + let mut out := "" + let mut i := 0 + while i < bytes.size do + let a := bytes[i]!.toNat + let b := if i + 1 < bytes.size then bytes[i+1]!.toNat else 0 + let c := if i + 2 < bytes.size then bytes[i+2]!.toNat else 0 + let n := a * 65536 + b * 256 + c + out := out.push base64Chars[n / 262144 % 64]! + out := out.push base64Chars[n / 4096 % 64]! + out := out.push (if i + 1 < bytes.size then base64Chars[n / 64 % 64]! else '=') + out := out.push (if i + 2 < bytes.size then base64Chars[n % 64]! else '=') + i := i + 3 + return out + +def base64Value (c : Char) : Option Nat := + if 'A' ≤ c && c ≤ 'Z' then some (c.toNat - 'A'.toNat) + else if 'a' ≤ c && c ≤ 'z' then some (c.toNat - 'a'.toNat + 26) + else if '0' ≤ c && c ≤ '9' then some (c.toNat - '0'.toNat + 52) + else if c == '+' || c == '-' then some 62 + else if c == '/' || c == '_' then some 63 + else none + +def base64Decode (text : String) : Option ByteArray := Id.run do + let mut out := ByteArray.empty + let mut acc := 0 + let mut bits := 0 + for c in text.toList do + if c == '=' || c.isWhitespace then continue + let some v := base64Value c | return none + acc := acc * 64 + v + bits := bits + 6 + if bits ≥ 8 then + bits := bits - 8 + out := out.push (UInt8.ofNat (acc / 2 ^ bits % 256)) + acc := acc % 2 ^ bits + return some out + +/-! ## Time -/ + +def pad (n width : Nat) : String := + let s := toString n + String.ofList (List.replicate (width - s.length) '0') ++ s + +/-- Days since 1970-01-01 as a calendar date. -/ +def civil (days : Nat) : Nat × Nat × Nat := + let z := days + 719468 + let era := z / 146097 + let doe := z - era * 146097 + let yoe := (doe - doe / 1460 + doe / 36524 - doe / 146096) / 365 + let doy := doe - (365 * yoe + yoe / 4 - yoe / 100) + let mp := (5 * doy + 2) / 153 + let d := doy - (153 * mp + 2) / 5 + 1 + let m := if mp < 10 then mp + 3 else mp - 9 + (yoe + era * 400 + (if m ≤ 2 then 1 else 0), m, d) + +/-- A calendar date as days since 1970-01-01. -/ +def daysFromCivil (y m d : Nat) : Nat := + let y := if m ≤ 2 then y - 1 else y + let era := y / 400 + let yoe := y - era * 400 + let doy := (153 * (if m > 2 then m - 3 else m + 9) + 2) / 5 + d - 1 + let doe := yoe * 365 + yoe / 4 - yoe / 100 + doy + era * 146097 + doe - 719468 + +def clock (seconds : Nat) : String := + let rest := seconds % 86400 + s!"{pad (rest / 3600) 2}:{pad (rest % 3600 / 60) 2}:{pad (rest % 60) 2}" + +/-- `2014-04-29T18:30:38Z` -/ +def isoTime (seconds : Nat) : String := + let (y, m, d) := civil (seconds / 86400) + s!"{pad y 4}-{pad m 2}-{pad d 2}T{clock seconds}Z" + +/-- `20140429T183038Z`, as AWS signatures write it. -/ +def amzTime (seconds : Nat) : String := + (((isoTime seconds).replace "-" "").replace ":" "") + +def months : List String := + ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] + +def weekdays : List String := ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"] + +/-- `Tue, 29 Apr 2014 18:30:38 GMT` -/ +def httpTime (seconds : Nat) : String := + let days := seconds / 86400 + let (y, m, d) := civil days + s!"{weekdays.getD ((days + 4) % 7) ""}, {pad d 2} {months.getD (m - 1) ""} {pad y 4} {clock seconds} GMT" + +def digits (cs : List Char) (start length : Nat) : Option Nat := + (String.ofList ((cs.drop start).take length)).toNat? + +def parseClock (text : String) : Option Nat := do + let cs := text.toList + return (← digits cs 0 2) * 3600 + (← digits cs 3 2) * 60 + (← digits cs 6 2) + +def parseIsoTime (text : String) : Option Nat := do + let cs := text.toList + let days := daysFromCivil (← digits cs 0 4) (← digits cs 5 2) (← digits cs 8 2) + return days * 86400 + (← parseClock (String.ofList (cs.drop 11))) + +def parseHttpTime (text : String) : Option Nat := do + match (text.splitOn " ").filter (· ≠ "") with + | [_, day, month, year, time, _] => + let m ← months.findIdx? (· == month) + return daysFromCivil (← year.toNat?) (m + 1) (← day.toNat?) * 86400 + (← parseClock time) + | _ => none + +end Distilled diff --git a/lean/Distilled/Core.lean b/lean/Distilled/Core.lean new file mode 100644 index 0000000000..18ad1d7ebe --- /dev/null +++ b/lean/Distilled/Core.lean @@ -0,0 +1,133 @@ +import Distilled.Http + +/-! +# Cloud APIs + +An `Api` is what a generated SDK gives: every operation with its input, its +output and the errors it can return. Code that calls it is a value, so it can +be run against the real service, run against a model of it, or reasoned about. +-/ + +namespace Distilled + +/-- The operations of a service. Each has its own input, output and errors. -/ +structure Api where + Op : Type + In : Op → Type + Out : Op → Type + Err : Op → Type + +/-- Code that calls an API: it may fail with `ε`, and returns `α`. -/ +inductive Eff (api : Api) (ε α : Type) : Type where + | pure (a : α) + | fail (e : ε) + /-- Call an operation. What comes back is its output or one of its own errors. -/ + | call (op : api.Op) (input : api.In op) + (next : Except (api.Err op) (api.Out op) → Eff api ε α) + +namespace Eff + +variable {api : Api} {ε α β : Type} + +def bind : Eff api ε α → (α → Eff api ε β) → Eff api ε β + | .pure a, f => f a + | .fail e, _ => .fail e + | .call op input next, f => .call op input fun reply => (next reply).bind f + +instance : Monad (Eff api ε) where + pure := .pure + bind := Eff.bind + +/-- Recover from a failure. -/ +def recover : Eff api ε α → (ε → Eff api ε α) → Eff api ε α + | .pure a, _ => .pure a + | .fail e, handle => handle e + | .call op input next, handle => .call op input fun reply => (next reply).recover handle + +instance : MonadExcept ε (Eff api ε) where + throw := .fail + tryCatch := Eff.recover + +/-- Call an operation, and get its output or its error as a value to match on. -/ +def ask (op : api.Op) (input : api.In op) : Eff api ε (Except (api.Err op) (api.Out op)) := + .call op input .pure + +end Eff + +/-- What a service does: how each operation answers and what it leaves behind. -/ +structure Model (api : Api) where + State : Type + step : (op : api.Op) → api.In op → State → Except (api.Err op) (api.Out op) × State + +namespace Eff + +variable {api : Api} {ε α β : Type} + +/-- Run code against a model of the service. -/ +def run (m : Model api) : Eff api ε α → m.State → Except ε α × m.State + | .pure a, s => (.ok a, s) + | .fail e, s => (.error e, s) + | .call op input next, s => (next (m.step op input s).1).run m (m.step op input s).2 + +@[simp] theorem run_pure (m : Model api) (a : α) (s : m.State) : + (Pure.pure a : Eff api ε α).run m s = (.ok a, s) := rfl + +@[simp] theorem run_throw (m : Model api) (e : ε) (s : m.State) : + (throw e : Eff api ε α).run m s = (.error e, s) := rfl + +@[simp] theorem run_ask (m : Model api) (op : api.Op) (input : api.In op) (s : m.State) : + (ask op input : Eff api ε _).run m s = (.ok (m.step op input s).1, (m.step op input s).2) := rfl + +theorem run_bind' (m : Model api) (x : Eff api ε α) (f : α → Eff api ε β) (s : m.State) : + (x.bind f).run m s = + match x.run m s with + | (.ok a, s') => (f a).run m s' + | (.error e, s') => (.error e, s') := by + induction x generalizing s with + | pure a => rfl + | fail e => rfl + | call op input next ih => exact ih _ _ + +@[simp] theorem run_bind (m : Model api) (x : Eff api ε α) (f : α → Eff api ε β) (s : m.State) : + (x >>= f).run m s = + match x.run m s with + | (.ok a, s') => (f a).run m s' + | (.error e, s') => (.error e, s') := run_bind' m x f s + +/-- The calls code makes when run against a model, in order. -/ +def calls (m : Model api) : Eff api ε α → m.State → List api.Op + | .pure _, _ => [] + | .fail _, _ => [] + | .call op input next, s => op :: (next (m.step op input s).1).calls m (m.step op input s).2 + +end Eff + +/-! ## On the wire -/ + +/-- +How an API goes over HTTP. `decode` gives `none` for a response the API never +described, so an undocumented error is seen for what it is and not mistaken for +a typed one. +-/ +structure Wire (api : Api) where + encode : (op : api.Op) → api.In op → HttpRequest + decode : (op : api.Op) → HttpResponse → Option (Except (api.Err op) (api.Out op)) + +/-- Why a call could not be made sense of. -/ +structure Undescribed where + request : HttpRequest + response : HttpResponse + +/-- Run code against the real service, given how to send a request. -/ +def Eff.io {api : Api} {ε α : Type} (wire : Wire api) (send : HttpRequest → IO HttpResponse) : + Eff api ε α → IO (Except Undescribed (Except ε α)) + | .pure a => return .ok (.ok a) + | .fail e => return .ok (.error e) + | .call op input next => do + let request := wire.encode op input + let response ← send request + match wire.decode op response with + | none => return .error ⟨request, response⟩ + | some reply => (next reply).io wire send + +end Distilled diff --git a/lean/Distilled/Http.lean b/lean/Distilled/Http.lean new file mode 100644 index 0000000000..2190513699 --- /dev/null +++ b/lean/Distilled/Http.lean @@ -0,0 +1,138 @@ +/-! +# HTTP + +Requests and responses as plain values, and HTTP/1.1 as two pure functions: +one writes a request as bytes, one reads a response from bytes. +-/ + +namespace Distilled + +structure HttpRequest where + method : String + path : String + query : List (String × String) := [] + headers : List (String × String) := [] + body : ByteArray := .empty +deriving DecidableEq + +structure HttpResponse where + status : Nat + headers : List (String × String) := [] + body : ByteArray := .empty +deriving DecidableEq + +/-- The body as text. Empty if it is not text. -/ +def HttpResponse.text (r : HttpResponse) : String := (String.fromUTF8? r.body).getD "" + +namespace HttpResponse + +/-- A header's value, whatever the case of its name. -/ +def header (r : HttpResponse) (name : String) : Option String := + (r.headers.find? fun (n, _) => n.toLower == name.toLower).map (·.2) + +end HttpResponse + +def hexDigit (n : Nat) : Char := "0123456789ABCDEF".toList.getD n '0' + +/-- Percent-encode everything but unreserved characters, as RFC 3986 says. -/ +def percentEncode (s : String) (keepSlash : Bool := false) : String := + s.toUTF8.foldl (init := "") fun out byte => + let c := Char.ofNat byte.toNat + if c.isAlphanum || c == '-' || c == '_' || c == '.' || c == '~' || (keepSlash && c == '/') then + out.push c + else (out.push '%').push (hexDigit (byte.toNat / 16)) |>.push (hexDigit (byte.toNat % 16)) + +namespace HttpRequest + +def queryString (r : HttpRequest) : String := + "&".intercalate (r.query.map fun (k, v) => s!"{percentEncode k}={percentEncode v}") + +/-- The path and query as they go on the request line. -/ +def target (r : HttpRequest) : String := + let path := if r.path.isEmpty then "/" else r.path + if r.query.isEmpty then path else s!"{path}?{r.queryString}" + +def header (r : HttpRequest) (name : String) : Option String := + (r.headers.find? fun (n, _) => n.toLower == name.toLower).map (·.2) + +/-- Set a header, replacing one of the same name. -/ +def withHeader (r : HttpRequest) (name value : String) : HttpRequest := + { r with headers := (r.headers.filter fun (n, _) => n.toLower != name.toLower) ++ [(name, value)] } + +/-- The request as HTTP/1.1 bytes. The connection is closed after the response. -/ +def encode (r : HttpRequest) (host : String) : ByteArray := + let r := (r.withHeader "Host" host).withHeader "Connection" "close" + let r := r.withHeader "Content-Length" (toString r.body.size) + let head := s!"{r.method} {r.target} HTTP/1.1\r\n" + ++ String.join (r.headers.map fun (n, v) => s!"{n}: {v}\r\n") ++ "\r\n" + head.toUTF8 ++ r.body + +end HttpRequest + +/-- Where the blank line that ends the headers starts. -/ +def headerEnd (bytes : ByteArray) : Option Nat := Id.run do + let mut i := 0 + while i + 3 < bytes.size do + if bytes[i]! == 13 && bytes[i+1]! == 10 && bytes[i+2]! == 13 && bytes[i+3]! == 10 then + return some i + i := i + 1 + return none + +def hexValue (c : Char) : Option Nat := + if c.isDigit then some (c.toNat - '0'.toNat) + else if 'a' ≤ c && c ≤ 'f' then some (c.toNat - 'a'.toNat + 10) + else if 'A' ≤ c && c ≤ 'F' then some (c.toNat - 'A'.toNat + 10) + else none + +def parseHex (s : String) : Option Nat := + if s.isEmpty then none + else s.toList.foldlM (fun n c => (hexValue c).map (n * 16 + ·)) 0 + +/-- Undo chunked transfer encoding. -/ +def dechunk (bytes : ByteArray) : Option ByteArray := Id.run do + let mut out := ByteArray.empty + let mut i := 0 + let mut fuel := bytes.size + 1 + while fuel > 0 do + fuel := fuel - 1 + let mut j := i + while j + 1 < bytes.size && !(bytes[j]! == 13 && bytes[j+1]! == 10) do + j := j + 1 + if j + 1 ≥ bytes.size then return none + let line := String.fromUTF8! (bytes.extract i j) + let some size := parseHex ((line.splitOn ";").headD "").trimAscii.toString | return none + if size == 0 then return some out + let start := j + 2 + if start + size > bytes.size then return none + out := out ++ bytes.extract start (start + size) + i := start + size + 2 + return none + +/-- Read an HTTP/1.1 response from the bytes a server sent before closing. -/ +def HttpResponse.decode (bytes : ByteArray) (bodiless : Bool := false) : Except String HttpResponse := do + let some split := headerEnd bytes | throw "the response has no end of headers" + let some head := String.fromUTF8? (bytes.extract 0 split) | throw "the response headers are not text" + let lines := head.splitOn "\r\n" + let statusLine := lines.headD "" + let some status := ((statusLine.splitOn " ").getD 1 "").toNat? + | throw s!"not an HTTP status line: {statusLine}" + let headers := lines.tail.filterMap fun line => + match line.splitOn ":" with + | name :: rest => some (name.trimAscii.toString, (":".intercalate rest).trimAscii.toString) + | [] => none + let raw := bytes.extract (split + 4) bytes.size + let chunked := headers.any fun (n, v) => n.toLower == "transfer-encoding" && v.toLower == "chunked" + let payload ← if bodiless || status == 204 || status == 304 then pure ByteArray.empty + else if chunked then + match dechunk raw with + | some body => pure body + | none => throw "the chunked body is cut short" + else + match (headers.find? fun (n, _) => n.toLower == "content-length").bind (·.2.toNat?) with + | some length => + if raw.size < length then throw "the body is shorter than its Content-Length" + else pure (raw.extract 0 length) + | none => pure raw + return { status, headers, body := payload } + +end Distilled diff --git a/lean/Distilled/Net.lean b/lean/Distilled/Net.lean new file mode 100644 index 0000000000..10c4dc014f --- /dev/null +++ b/lean/Distilled/Net.lean @@ -0,0 +1,44 @@ +import Distilled.Http + +/-! +# HTTPS + +A request goes out over TLS and its response comes back. TLS and the two hashes +are OpenSSL's, reached through one small C file; everything else is Lean. +-/ + +namespace Distilled + +@[extern "distilled_tls_exchange"] +opaque tlsExchange (host : @& String) (port : UInt16) (request : @& ByteArray) : IO ByteArray + +@[extern "distilled_tcp_exchange"] +opaque tcpExchange (host : @& String) (port : UInt16) (request : @& ByteArray) : IO ByteArray + +@[extern "distilled_sha256"] +opaque sha256 (data : @& ByteArray) : ByteArray + +@[extern "distilled_hmac_sha256"] +opaque hmacSha256 (key : @& ByteArray) (data : @& ByteArray) : ByteArray + +def hex (bytes : ByteArray) : String := + bytes.foldl (init := "") fun out byte => + (out.push (hexDigit (byte.toNat / 16)).toLower).push (hexDigit (byte.toNat % 16)).toLower + +/-- A server to talk to. -/ +structure Endpoint where + host : String + port : UInt16 := 443 + tls : Bool := true +deriving Repr + +/-- Send a request and read its response. The server's certificate is checked against its name. -/ +def Endpoint.send (endpoint : Endpoint) (request : HttpRequest) : IO HttpResponse := do + let bytes := request.encode endpoint.host + let reply ← if endpoint.tls then tlsExchange endpoint.host endpoint.port bytes + else tcpExchange endpoint.host endpoint.port bytes + match HttpResponse.decode reply (bodiless := request.method == "HEAD") with + | .ok response => return response + | .error why => throw (IO.userError s!"{endpoint.host}: {why}") + +end Distilled diff --git a/lean/Distilled/Protocol.lean b/lean/Distilled/Protocol.lean new file mode 100644 index 0000000000..19a28392a6 --- /dev/null +++ b/lean/Distilled/Protocol.lean @@ -0,0 +1,285 @@ +import Distilled.Core +import Distilled.Protocol.Codec + +/-! +# Protocols + +How an operation's input becomes an HTTP request, and how a response becomes +its output or one of its errors, for the five protocols AWS services speak: +`awsJson1_0`, `awsJson1_1`, `restJson1`, `restXml`, `awsQuery` and `ec2Query`. +-/ + +namespace Distilled +open Lean Codec + +inductive Protocol where + /-- `awsJson1_0` and `awsJson1_1`, which differ only in a version number. -/ + | awsJson (version : String) + | restJson + | restXml + | awsQuery + | ec2Query +deriving DecidableEq, Repr, Inhabited + +/-- What a model says about a service as a whole. -/ +structure ServiceInfo where + /-- The name operations are prefixed with in `X-Amz-Target`. -/ + name : String + version : String + protocol : Protocol + /-- The name requests are signed for. -/ + signingName : String := "" + xmlNamespace : Option String := none +deriving Repr, Inhabited + +/-- An error an operation can return. -/ +structure ErrorInfo where + /-- The shape's name. -/ + name : String + /-- The code it has on the wire, when that differs. -/ + code : Option String := none + schema : Schema +deriving Inhabited + +/-- What a model says about an operation. -/ +structure OpInfo where + name : String + method : String := "POST" + uri : String := "/" + input : Schema + output : Schema + errors : List ErrorInfo := [] +deriving Inhabited + +namespace Protocol + +/-! ## Requests -/ + +def isBody (info : Info) : Bool := info.location == .body + +/-- Fill a path such as `/functions/{FunctionName}/objects/{Key+}` from the labels. -/ +def fillPath (template : String) (labels : List (String × String)) : String := + "/".intercalate ((template.splitOn "/").map fun segment => + if segment.startsWith "{" && segment.endsWith "}" then + let inner := ((segment.drop 1).dropEnd 1).toString + let greedy := inner.endsWith "+" + let name := if greedy then (inner.dropEnd 1).toString else inner + match labels.find? (·.1 == name) with + | some (_, value) => percentEncode value (keepSlash := greedy) + | none => segment + else segment) + +/-- The query parameters a path template carries after its `?`. -/ +def staticQuery (template : String) : List (String × String) := + match template.splitOn "?" with + | [_, query] => (query.splitOn "&").filter (· ≠ "") |>.map fun pair => + match pair.splitOn "=" with + | [k, v] => (k, v) + | _ => (pair, "") + | _ => [] + +def texts (schema : Schema) (v : Value) (time : TimeFormat) : List String := + match schema, v with + | .list item _, .list items => items.filterMap (scalarText item · time) + | schema, v => (scalarText schema v time).toList + +/-- The body of a REST request or response: the payload member, or the unbound members together. -/ +def restBody (xml : Bool) (namespace_ : Option String) (schema : Schema) (fields : List (String × Value)) : + ByteArray × Option String := + let document (name : String) (schema : Schema) (v : Value) : ByteArray × Option String := + if xml then + let root := match toXml name false schema v with + | [.element n attrs children] => + Xml.element n (attrs ++ (namespace_.map fun ns => ("xmlns", ns)).toList) children + | _ => .element name [] [] + (root.render.toUTF8, some "application/xml") + else ((toJson true schema v).compress.toUTF8, some "application/json") + match schema.members.find? fun (info, _) => info.location == .payload with + | some (info, member) => + match fields.find? (·.1 == info.name) with + | none => (.empty, none) + | some (_, .blob bytes) => (bytes, some "application/octet-stream") + | some (_, .string text) => (text.toUTF8, some "text/plain") + | some (_, v) => document (info.xmlName.getD (if member.name.isEmpty then info.name else member.name)) member v + | none => + let body := schema.keep isBody + if body.members.isEmpty then (.empty, none) + else if !xml && !(body.members.any fun (info, _) => fields.any (·.1 == info.name)) then + ("{}".toUTF8, some "application/json") + else document schema.name body (.record fields) + +def restRequest (xml : Bool) (service : ServiceInfo) (op : OpInfo) (input : Value) : HttpRequest := + let fields := match input with + | .record fields => fields + | _ => [] + let bound := op.input.members.filterMap fun (info, member) => + (fields.find? (·.1 == info.name)).map fun (_, v) => (info, member, v) + let labels := bound.filterMap fun (info, member, v) => + if info.location == .label then (scalarText member v .dateTime).map (info.name, ·) else none + let query := bound.flatMap fun (info, member, v) => + match info.location, v with + | .query name, v => (texts member v .dateTime).map (name, ·) + | .queryParams, .map entries => entries.flatMap fun (k, v) => + match v with + | .list items => items.filterMap fun | .string s => some (k, s) | _ => none + | .string s => [(k, s)] + | _ => [] + | _, _ => [] + let headers := bound.flatMap fun (info, member, v) => + match info.location, v with + | .header name, v => + match texts member v .httpDate with + | [] => [] + | values => [(name, ", ".intercalate values)] + | .prefixHeaders prefix_, .map entries => + entries.filterMap fun | (k, .string s) => some (prefix_ ++ k, s) | _ => none + | _, _ => [] + let (body, contentType) := restBody xml service.xmlNamespace op.input fields + { method := op.method + path := fillPath ((op.uri.splitOn "?").headD op.uri) labels + query := staticQuery op.uri ++ query + headers := headers ++ (contentType.map fun t => ("Content-Type", t)).toList + body } + +def formBody (pairs : List (String × String)) : ByteArray := + ("&".intercalate (pairs.map fun (k, v) => s!"{percentEncode k}={percentEncode v}")).toUTF8 + +/-- An operation's input as an HTTP request. -/ +def encode (service : ServiceInfo) (op : OpInfo) (input : Value) : HttpRequest := + match service.protocol with + | .awsJson version => + { method := "POST", path := "/" + headers := [("Content-Type", s!"application/x-amz-json-{version}"), + ("X-Amz-Target", s!"{service.name}.{op.name}")] + body := (toJson false op.input input).compress.toUTF8 } + | .restJson => restRequest false service op input + | .restXml => restRequest true service op input + | .awsQuery | .ec2Query => + { method := "POST", path := "/" + headers := [("Content-Type", "application/x-www-form-urlencoded")] + body := formBody ([("Action", op.name), ("Version", service.version)] + ++ toQuery (service.protocol == .ec2Query) "" false op.input input) } + +/-! ## Responses -/ + +/-- The members of a response that travel outside its body. -/ +def restBound (schema : Schema) (r : HttpResponse) : Except String (List (String × Value)) := + schema.members.filterMapM fun (info, member) => do + match info.location with + | .status => return some (info.name, .int r.status) + | .header name => + match r.header name with + | none => return none + | some text => + match member with + | .list item _ => do + let items ← ((text.splitOn ",").map (·.trimAscii.toString)).mapM (scalarOfText item) + return some (info.name, .list items) + | _ => return some (info.name, ← scalarOfText member text) + | .prefixHeaders prefix_ => + let found := r.headers.filterMap fun (n, v) => + if n.toLower.startsWith prefix_.toLower then + some ((n.drop prefix_.length).toString, Value.string v) else none + return if found.isEmpty then none else some (info.name, .map found) + | _ => return none + +def restFields (xml : Bool) (schema : Schema) (r : HttpResponse) : Except String Value := do + let bound ← restBound schema r + let body ← match schema.members.find? fun (info, _) => info.location == .payload with + | some (info, member) => + match member with + | .blob => pure [(info.name, Value.blob r.body)] + | .string => pure [(info.name, Value.string r.text)] + | _ => + if r.body.isEmpty then pure [] + else if xml then do + pure [(info.name, ← ofXml member (← Xml.parse r.text))] + else do + pure [(info.name, ← ofJson true member (← Json.parse r.text))] + | none => + let members := schema.keep isBody + if members.members.isEmpty || r.body.isEmpty then pure [] + else if xml then do + match ← ofXml members (← Xml.parse r.text) with + | .record fields => pure fields + | _ => pure [] + else do + match ← ofJson true members (← Json.parse r.text) with + | .record fields => pure fields + | _ => pure [] + return .record (bound ++ body) + +/-- The part of a type name that names a shape: after `#`, before `:`. -/ +def shapeName (raw : String) : String := + (((raw.splitOn ":").headD raw).splitOn "#").getLastD raw + +def findError (op : OpInfo) (code : String) : Option ErrorInfo := + op.errors.find? fun e => e.name == code || e.code == some code + +/-- The element that holds an error's code, wherever the protocol puts it. -/ +def errorElement (root : Xml) : Xml := + match root.child? "Error" with + | some el => el + | none => + match (root.child? "Errors").bind (·.child? "Error") with + | some el => el + | none => root + +/-- A failed response as the error's shape name and content, if the operation lists it. -/ +def decodeError (service : ServiceInfo) (op : OpInfo) (r : HttpResponse) : Option (String × Value) := + match service.protocol with + | .awsJson _ | .restJson => do + let body := (Json.parse (if r.body.isEmpty then "{}" else r.text)).toOption.getD (Json.mkObj []) + let raw ← (r.header "x-amzn-errortype").orElse fun _ => + ((body.getObjValAs? String "__type").toOption).orElse fun _ => + (body.getObjValAs? String "code").toOption + let error ← findError op (shapeName raw) + let value ← if service.protocol == .restJson then + (restFields false error.schema r).toOption + else (ofJson false error.schema body).toOption + return (error.name, value) + | .restXml | .awsQuery | .ec2Query => do + let root ← (Xml.parse r.text).toOption + let el := errorElement root + let code ← (el.child? "Code").map Xml.content + let error ← findError op code + let value ← (ofXml error.schema el).toOption + return (error.name, value) + +/-- +A response as the operation's output, or the name and content of one of its +errors. `none` means the service said something its model does not describe. +-/ +def decode (service : ServiceInfo) (op : OpInfo) (r : HttpResponse) : + Option (Except (String × Value) Value) := + if 200 ≤ r.status && r.status < 300 then + let out : Except String Value := match service.protocol with + | .awsJson _ => do + ofJson false op.output (← Json.parse (if r.body.isEmpty then "{}" else r.text)) + | .restJson => restFields false op.output r + | .restXml => restFields true op.output r + | .awsQuery => do + if op.output.members.isEmpty then return .record [] + let root ← Xml.parse r.text + ofXml op.output ((root.child? s!"{op.name}Result").getD root) + | .ec2Query => do + if op.output.members.isEmpty then return .record [] + ofXml op.output (← Xml.parse r.text) + out.toOption.map .ok + else (decodeError service op r).map .error + +end Protocol + +/-- The wire form of an API whose shapes all have schemas. -/ +def Wire.of {api : Api} (service : ServiceInfo) (info : api.Op → OpInfo) + (input : (op : api.Op) → api.In op → Value) + (output : (op : api.Op) → Value → Except String (api.Out op)) + (error : (op : api.Op) → String → Value → Option (api.Err op)) : Wire api where + encode op x := Protocol.encode service (info op) (input op x) + decode op r := + match Protocol.decode service (info op) r with + | none => none + | some (.ok value) => (output op value).toOption.map .ok + | some (.error (name, value)) => (error op name value).map .error + +end Distilled diff --git a/lean/Distilled/Protocol/Codec.lean b/lean/Distilled/Protocol/Codec.lean new file mode 100644 index 0000000000..fc7bfc5be9 --- /dev/null +++ b/lean/Distilled/Protocol/Codec.lean @@ -0,0 +1,241 @@ +import Distilled.Schema +import Distilled.Xml + +/-! +# Codecs + +Values as JSON, as XML and as query parameters, each driven by a schema. +-/ + +namespace Distilled.Codec +open Lean + +/-! ## Scalars as text -/ + +def timeText (format : TimeFormat) (seconds : Nat) : String := + match format with + | .epochSeconds => toString seconds + | .dateTime => isoTime seconds + | .httpDate => httpTime seconds + +def parseTime (text : String) : Option Nat := + let text := text.trimAscii.toString + if text.contains 'T' then parseIsoTime text + else if text.contains ',' then parseHttpTime text + else ((text.splitOn ".").headD text).toNat? + +/-- A scalar as the text it has in a header, a query string, a path or an XML element. -/ +def scalarText (s : Schema) (v : Value) (defaultTime : TimeFormat) : Option String := + match s, v with + | _, .string text => some text + | _, .bool b => some (toString b) + | _, .int i => some (toString i) + | _, .number n => some (toString n) + | .time format, .time seconds => some (timeText (format.getD defaultTime) seconds) + | _, .time seconds => some (timeText defaultTime seconds) + | _, .blob bytes => some (base64Encode bytes) + | _, .document json => some json + | _, _ => none + +def scalarOfText (s : Schema) (text : String) : Except String Value := + match s with + | .string => .ok (.string text) + | .bool => .ok (.bool (text.trimAscii.toString.toLower == "true")) + | .int => + match text.trimAscii.toString.toInt? with + | some i => .ok (.int i) + | none => .error s!"not an integer: {text}" + | .number => + match Json.parse text.trimAscii.toString with + | .ok (.num n) => .ok (.number n) + | _ => .error s!"not a number: {text}" + | .time _ => + match parseTime text with + | some seconds => .ok (.time seconds) + | none => .error s!"not a time: {text}" + | .blob => + match base64Decode text with + | some bytes => .ok (.blob bytes) + | none => .error "not base64" + | .document => .ok (.document text) + | _ => .error "not a scalar" + +/-! ## JSON -/ + +/-- `rest` uses each member's JSON name; the RPC protocols use member names as they are. -/ +def jsonKey (rest : Bool) (info : Info) : String := if rest then info.jsonName.getD info.name else info.name + +partial def toJson (rest : Bool) : Schema → Value → Json + | _, .null => .null + | _, .bool b => .bool b + | _, .int i => .num (.fromInt i) + | _, .number n => .num n + | _, .string s => .str s + | _, .blob bytes => .str (base64Encode bytes) + | .time (some .dateTime), .time seconds => .str (isoTime seconds) + | .time (some .httpDate), .time seconds => .str (httpTime seconds) + | _, .time seconds => .num (.fromNat seconds) + | _, .document json => (Json.parse json).toOption.getD .null + | .list item _, .list items => .arr (items.map (toJson rest item)).toArray + | .map _ value _ _, .map entries => Json.mkObj (entries.map fun (k, v) => (k, toJson rest value v)) + | schema, .record fields => + Json.mkObj (schema.members.filterMap fun (info, member) => + ((fields.find? (·.1 == info.name)).map fun (_, v) => (jsonKey rest info, toJson rest member v))) + | _, _ => .null + +partial def ofJson (rest : Bool) : Schema → Json → Except String Value + | _, .null => .ok .null + | .bool, .bool b => .ok (.bool b) + | .int, j => + match j.getInt? with + | .ok i => .ok (.int i) + | .error _ => .error "expected an integer" + | .number, .num n => .ok (.number n) + | .number, .str s => scalarOfText .number s + | .string, .str s => .ok (.string s) + | .blob, .str s => scalarOfText .blob s + | .time _, .num n => .ok (.time (n.mantissa / (10 ^ n.exponent : Nat)).toNat) + | .time format, .str s => scalarOfText (.time format) s + | .document, j => .ok (.document j.compress) + | .list item _, .arr items => .list <$> items.toList.mapM (ofJson rest item) + | .map _ value _ _, .obj entries => + .map <$> entries.toList.mapM fun (k, v) => do return (k, ← ofJson rest value v) + | .struct _ members, j => do + let fields ← members.filterMapM fun (info, member) => + match j.getObjVal? (jsonKey rest info) with + | .ok .null | .error _ => pure none + | .ok v => do + let value ← (ofJson rest member v).mapError fun e => s!"{info.name}: {e}" + pure (some (info.name, value)) + return .record fields + | .union _ members, j => do + let fields ← members.filterMapM fun (info, member) => + match j.getObjVal? (jsonKey rest info) with + | .ok .null | .error _ => pure none + | .ok v => do return some (info.name, ← ofJson rest member v) + return .record (fields.take 1) + | _, _ => .error "the JSON does not match the shape" + +/-! ## XML -/ + +def xmlKey (info : Info) : String := info.xmlName.getD info.name + +mutual + +/-- A value as the elements it becomes under the name it is given. -/ +partial def toXml (name : String) (flattened : Bool) : Schema → Value → List Xml + | .list item itemName, .list items => + if flattened then items.flatMap (toXml name false item) + else [.element name [] (items.flatMap (toXml itemName false item))] + | .map key value keyName valueName, .map entries => + let entry (tag : String) (k : String) (v : Value) : Xml := + .element tag [] (toXml keyName false key (.string k) ++ toXml valueName false value v) + if flattened then entries.map fun (k, v) => entry name k v + else [.element name [] (entries.map fun (k, v) => entry "entry" k v)] + | schema, .record fields => [recordXml name schema fields] + | _, .null => [] + | schema, v => + match scalarText schema v .dateTime with + | some text => [.element name [] [.text text]] + | none => [] + +partial def recordXml (name : String) (schema : Schema) (fields : List (String × Value)) : Xml := + let present := schema.members.filterMap fun (info, member) => + (fields.find? (·.1 == info.name)).map fun (_, v) => (info, member, v) + let attributes := present.filterMap fun (info, member, v) => + if info.asAttribute then (scalarText member v .dateTime).map (xmlKey info, ·) else none + .element name attributes (present.flatMap fun (info, member, v) => + if info.asAttribute then [] else toXml (xmlKey info) info.flattened member v) + +end + +mutual + +/-- Read the member called `name` from its parent element. -/ +partial def ofXmlMember (parent : Xml) (name : String) (flattened : Bool) : + Schema → Except String (Option Value) + | .list item itemName => + if flattened then + match parent.children name with + | [] => pure none + | found => do return some (.list (← found.mapM (ofXml item))) + else + match parent.child? name with + | none => pure none + | some el => do return some (.list (← (el.children itemName).mapM (ofXml item))) + | .map key value keyName valueName => do + let entries := if flattened then parent.children name + else match parent.child? name with + | some el => el.children "entry" + | none => [] + if entries.isEmpty && (flattened || (parent.child? name).isNone) then return none + let read ← entries.mapM fun entry => do + let k := ((entry.child? keyName).map Xml.content).getD "" + let _ := key + let v ← match entry.child? valueName with + | some el => ofXml value el + | none => pure .null + return (k, v) + return some (.map read) + | schema => + match parent.child? name with + | none => pure none + | some el => some <$> ofXml schema el + +/-- Read an element as a value. -/ +partial def ofXml : Schema → Xml → Except String Value + | .struct _ members, el => .record <$> xmlFields members el + | .union _ members, el => do return .record ((← xmlFields members el).take 1) + | .list item itemName, el => .list <$> (el.children itemName).mapM (ofXml item) + | schema, el => scalarOfText schema el.content + +partial def xmlFields (members : List (Info × Schema)) (el : Xml) : + Except String (List (String × Value)) := + members.filterMapM fun (info, member) => do + if info.asAttribute then + match el.attribute? (xmlKey info) with + | some text => return some (info.name, ← scalarOfText member text) + | none => return none + else + let found ← (ofXmlMember el (xmlKey info) info.flattened member).mapError + fun e => s!"{info.name}: {e}" + return found.map (info.name, ·) + +end + +/-! ## Query parameters -/ + +def capitalize (s : String) : String := + match s.toList with + | c :: rest => String.ofList (c.toUpper :: rest) + | [] => s + +/-- A member's name in a query-protocol request. EC2 capitalizes it. -/ +def queryKey (ec2 : Bool) (info : Info) : String := + if ec2 then info.queryName.getD (capitalize (xmlKey info)) else xmlKey info + +/-- A value as `Name.member.1=…` pairs, the way the query protocols write it. -/ +partial def toQuery (ec2 : Bool) (key : String) (flattened : Bool) : Schema → Value → List (String × String) + | .list item itemName, .list items => + let base := if flattened || ec2 then key else s!"{key}.{itemName}" + if items.isEmpty then [(key, "")] + else (items.zipIdx 1).flatMap fun (v, i) => toQuery ec2 s!"{base}.{i}" false item v + | .map keySchema value keyName valueName, .map entries => + let base := if flattened then key else s!"{key}.entry" + (entries.zipIdx 1).flatMap fun ((k, v), i) => + toQuery ec2 s!"{base}.{i}.{keyName}" false keySchema (.string k) + ++ toQuery ec2 s!"{base}.{i}.{valueName}" false value v + | schema, .record fields => + schema.members.flatMap fun (info, member) => + match fields.find? (·.1 == info.name) with + | some (_, v) => + toQuery ec2 (if key.isEmpty then queryKey ec2 info else s!"{key}.{queryKey ec2 info}") + info.flattened member v + | none => [] + | _, .null => [] + | schema, v => + match scalarText schema v .dateTime with + | some text => [(key, text)] + | none => [] + +end Distilled.Codec diff --git a/lean/Distilled/Schema.lean b/lean/Distilled/Schema.lean new file mode 100644 index 0000000000..b206040cae --- /dev/null +++ b/lean/Distilled/Schema.lean @@ -0,0 +1,226 @@ +import Lean.Data.Json +import Distilled.Bytes + +/-! +# Shapes + +A `Schema` describes a shape of an API the way its model does: its members, +what each is called on the wire, and where each travels in an HTTP message. A +`Value` is a shape's content with the types taken off. Every protocol is a pair +of functions between values and HTTP messages, driven by the schema, so a +generated SDK only says what its shapes are. +-/ + +namespace Distilled +open Lean + +inductive TimeFormat where + | epochSeconds + | dateTime + | httpDate +deriving DecidableEq, Repr, Inhabited + +/-- Where a member travels in an HTTP message. -/ +inductive Location where + | body + /-- In the path. -/ + | label + | query (name : String) + /-- A map spread over the query string. -/ + | queryParams + | header (name : String) + /-- A map spread over headers that share a prefix. -/ + | prefixHeaders (prefix_ : String) + /-- The whole body. -/ + | payload + /-- The response's status code. -/ + | status +deriving DecidableEq, Repr, Inhabited + +/-- What a model says about one member of a structure. -/ +structure Info where + name : String + required : Bool := false + /-- Its name in JSON, when that differs. -/ + jsonName : Option String := none + /-- Its name in XML, when that differs. -/ + xmlName : Option String := none + /-- Its name in a query-protocol request, when that differs. -/ + queryName : Option String := none + /-- A list or map written without its wrapping element. -/ + flattened : Bool := false + /-- Written as an XML attribute. -/ + asAttribute : Bool := false + location : Location := .body +deriving Repr, Inhabited + +inductive Schema where + | bool + | int + | number + | string + | blob + | time (format : Option TimeFormat) + /-- Any JSON. -/ + | document + | list (item : Schema) (itemName : String) + | map (key value : Schema) (keyName valueName : String) + | struct (name : String) (members : List (Info × Schema)) + | union (name : String) (members : List (Info × Schema)) +deriving Inhabited + +namespace Schema + +def members : Schema → List (Info × Schema) + | .struct _ members | .union _ members => members + | _ => [] + +def name : Schema → String + | .struct name _ | .union name _ => name + | _ => "" + +/-- The same structure with only the members that pass. -/ +def keep (s : Schema) (pass : Info → Bool) : Schema := + match s with + | .struct name members => .struct name (members.filter fun (info, _) => pass info) + | other => other + +end Schema + +/-- A shape's content. -/ +inductive Value where + | null + | bool (b : Bool) + | int (i : Int) + | number (n : JsonNumber) + | string (s : String) + | blob (bytes : ByteArray) + /-- Seconds since 1970. -/ + | time (seconds : Nat) + /-- JSON, as text. -/ + | document (json : String) + | list (items : List Value) + | map (entries : List (String × Value)) + /-- A structure's members that are present, by member name. A union has exactly one. -/ + | record (fields : List (String × Value)) +deriving Inhabited + +namespace Value + +def field? : Value → String → Option Value + | .record fields, name => (fields.find? (·.1 == name)).map (·.2) + | _, _ => none + +end Value + +/-- A type that is a shape of an API. -/ +class Shape (α : Type) where + schema : Schema + toValue : α → Value + ofValue : Value → Except String α + +/-- Bytes. -/ +structure Blob where + bytes : ByteArray +deriving DecidableEq, Inhabited + +instance : Repr Blob := ⟨fun b _ => s!"Blob({b.bytes.size} bytes)"⟩ + +def Blob.ofString (s : String) : Blob := ⟨s.toUTF8⟩ +def Blob.text (b : Blob) : String := (String.fromUTF8? b.bytes).getD "" + +/-- A moment, to the second. -/ +structure Timestamp where + seconds : Nat +deriving DecidableEq, Repr, Inhabited + +/-- Any JSON, kept as text. -/ +structure Document where + json : String +deriving DecidableEq, Repr, Inhabited + +instance : Shape String := ⟨.string, .string, fun | .string s => .ok s | _ => .error "expected a string"⟩ +instance : Shape Int := ⟨.int, .int, fun | .int i => .ok i | _ => .error "expected an integer"⟩ +instance : Shape Bool := ⟨.bool, .bool, fun | .bool b => .ok b | _ => .error "expected a boolean"⟩ +instance : Shape JsonNumber := + ⟨.number, .number, fun | .number n => .ok n | .int i => .ok (.fromInt i) | _ => .error "expected a number"⟩ +instance : Shape Blob := ⟨.blob, fun b => .blob b.bytes, fun | .blob b => .ok ⟨b⟩ | _ => .error "expected bytes"⟩ +instance : Shape Timestamp := + ⟨.time none, fun t => .time t.seconds, fun | .time s => .ok ⟨s⟩ | _ => .error "expected a time"⟩ +instance : Shape Document := + ⟨.document, fun d => .document d.json, fun | .document j => .ok ⟨j⟩ | _ => .error "expected a document"⟩ +instance : Shape Unit := ⟨.struct "Unit" [], fun _ => .record [], fun _ => .ok ()⟩ + +instance {α : Type} [Shape α] : Shape (List α) where + schema := .list (Shape.schema α) "member" + toValue items := .list (items.map Shape.toValue) + ofValue + | .list items => items.mapM Shape.ofValue + | _ => .error "expected a list" + +/-- A type that can be the key of a map: a string, or an enum of strings. -/ +class Key (κ : Type) where + toKey : κ → String + ofKey : String → Except String κ + +instance : Key String := ⟨id, .ok⟩ + +/-- A map, kept as its entries in order so that it can be compared and reasoned about. -/ +structure Dict (κ α : Type) where + entries : List (κ × α) := [] +deriving DecidableEq, Repr, Inhabited + +namespace Dict + +variable {κ α : Type} + +def get? [BEq κ] (d : Dict κ α) (key : κ) : Option α := (d.entries.find? (·.1 == key)).map (·.2) + +def set [BEq κ] (d : Dict κ α) (key : κ) (value : α) : Dict κ α := + ⟨(d.entries.filter (·.1 != key)) ++ [(key, value)]⟩ + +/-- What was just set is what is found. -/ +theorem get?_set [BEq κ] [LawfulBEq κ] (d : Dict κ α) (key : κ) (value : α) : + (d.set key value).get? key = some value := by + have gone : (d.entries.filter (·.1 != key)).find? (·.1 == key) = none := by + simp [List.find?_eq_none] + simp [get?, set, List.find?_append, gone] + +end Dict + +instance {κ α : Type} [Key κ] [Shape α] : Shape (Dict κ α) where + schema := .map .string (Shape.schema α) "key" "value" + toValue d := .map (d.entries.map fun (k, v) => (Key.toKey k, Shape.toValue v)) + ofValue + | .map entries => do + return ⟨← entries.mapM fun (k, v) => do return ((← Key.ofKey k), (← Shape.ofValue v))⟩ + | _ => .error "expected a map" + +/-! ## What generated code uses -/ + +namespace Value + +/-- A member that must be there. -/ +def req {α : Type} [Shape α] (v : Value) (name : String) : Except String α := + match v.field? name with + | some value => (Shape.ofValue value).mapError fun e => s!"{name}: {e}" + | none => .error s!"{name} is missing" + +/-- A member that may be absent. -/ +def opt {α : Type} [Shape α] (v : Value) (name : String) : Except String (Option α) := + match v.field? name with + | none | some .null => .ok none + | some value => (some <$> Shape.ofValue value).mapError fun e => s!"{name}: {e}" + +end Value + +def put {α : Type} [Shape α] (name : String) (value : α) : Option (String × Value) := + some (name, Shape.toValue value) + +def putOpt {α : Type} [Shape α] (name : String) (value : Option α) : Option (String × Value) := + value.map fun v => (name, Shape.toValue v) + +/-- A record of the members that are present. -/ +def record (members : List (Option (String × Value))) : Value := .record (members.filterMap id) + +end Distilled diff --git a/lean/Distilled/SigV4.lean b/lean/Distilled/SigV4.lean new file mode 100644 index 0000000000..1f4a898fcc --- /dev/null +++ b/lean/Distilled/SigV4.lean @@ -0,0 +1,75 @@ +import Distilled.Net + +/-! +# AWS Signature Version 4 + +Signing is a pure function of the request, the credentials and the time. +-/ + +namespace Distilled.AWS + +structure Credentials where + accessKeyId : String + secretAccessKey : String + sessionToken : Option String := none + +/-- Where and when a request is signed for. -/ +structure Scope where + region : String + service : String + /-- `YYYYMMDD'T'HHMMSS'Z'` -/ + time : String + +def Scope.date (s : Scope) : String := (s.time.take 8).toString + +def Scope.credential (s : Scope) : String := s!"{s.date}/{s.region}/{s.service}/aws4_request" + +/-- The key a day's requests to one service in one region are signed with. -/ +def signingKey (secret : String) (s : Scope) : ByteArray := + let date := hmacSha256 s!"AWS4{secret}".toUTF8 s.date.toUTF8 + let region := hmacSha256 date s.region.toUTF8 + let service := hmacSha256 region s.service.toUTF8 + hmacSha256 service "aws4_request".toUTF8 + +def insertSorted (x : String × String) : List (String × String) → List (String × String) + | [] => [x] + | y :: rest => if x.1 < y.1 || (x.1 == y.1 && x.2 ≤ y.2) then x :: y :: rest else y :: insertSorted x rest + +def sortPairs (pairs : List (String × String)) : List (String × String) := + pairs.foldr insertSorted [] + +/-- The request in the form both sides hash: method, path, query, headers, signed header names, body hash. -/ +def canonicalRequest (r : HttpRequest) (encodePath : Bool := true) : String × String := + let headers := sortPairs (r.headers.map fun (n, v) => (n.toLower, v.trimAscii.toString)) + let signed := ";".intercalate (headers.map (·.1)) + let query := "&".intercalate + ((sortPairs (r.query.map fun (k, v) => (percentEncode k, percentEncode v))).map + fun (k, v) => s!"{k}={v}") + let path := if r.path.isEmpty then "/" + else if encodePath then percentEncode r.path (keepSlash := true) else r.path + ("\n".intercalate [r.method, path, query, + String.join (headers.map fun (n, v) => s!"{n}:{v}\n"), signed, hex (sha256 r.body)], signed) + +def stringToSign (r : HttpRequest) (s : Scope) (encodePath : Bool := true) : String := + "\n".intercalate ["AWS4-HMAC-SHA256", s.time, s.credential, + hex (sha256 (canonicalRequest r encodePath).1.toUTF8)] + +def signature (r : HttpRequest) (credentials : Credentials) (s : Scope) + (encodePath : Bool := true) : String := + hex (hmacSha256 (signingKey credentials.secretAccessKey s) (stringToSign r s encodePath).toUTF8) + +/-- +The request with the headers that prove who sent it. The path is already +percent-encoded; every service but S3 has it encoded once more for signing. +-/ +def sign (r : HttpRequest) (host : String) (credentials : Credentials) (s : Scope) : HttpRequest := + let encodePath := s.service != "s3" + let r := (r.withHeader "Host" host).withHeader "X-Amz-Date" s.time + let r := r.withHeader "X-Amz-Content-Sha256" (hex (sha256 r.body)) + let r := match credentials.sessionToken with + | some token => r.withHeader "X-Amz-Security-Token" token + | none => r + r.withHeader "Authorization" + s!"AWS4-HMAC-SHA256 Credential={credentials.accessKeyId}/{s.credential}, SignedHeaders={(canonicalRequest r).2}, Signature={signature r credentials s encodePath}" + +end Distilled.AWS diff --git a/lean/Distilled/Xml.lean b/lean/Distilled/Xml.lean new file mode 100644 index 0000000000..e2e27a119a --- /dev/null +++ b/lean/Distilled/Xml.lean @@ -0,0 +1,149 @@ +/-! +# XML + +A small reader and writer: elements, attributes and text. +-/ + +namespace Distilled + +inductive Xml where + | element (name : String) (attributes : List (String × String)) (children : List Xml) + | text (content : String) +deriving Inhabited, Repr + +namespace Xml + +def escape (s : String) : String := + s.foldl (init := "") fun out c => + match c with + | '<' => out ++ "<" + | '>' => out ++ ">" + | '&' => out ++ "&" + | '"' => out ++ """ + | c => out.push c + +partial def render : Xml → String + | .text content => escape content + | .element name attributes children => + let attrs := String.join (attributes.map fun (k, v) => s!" {k}=\"{escape v}\"") + if children.isEmpty then s!"<{name}{attrs}/>" + else s!"<{name}{attrs}>{String.join (children.map render)}" + +/-- The element's name without a namespace prefix. -/ +def name : Xml → String + | .element name _ _ => ((name.splitOn ":").getLastD name) + | .text _ => "" + +def elements : Xml → List Xml + | .element _ _ children => children.filter fun | .element .. => true | .text _ => false + | .text _ => [] + +def children (x : Xml) (named : String) : List Xml := x.elements.filter (·.name == named) + +def child? (x : Xml) (named : String) : Option Xml := (x.children named).head? + +def attribute? : Xml → String → Option String + | .element _ attributes _, key => (attributes.find? (·.1 == key)).map (·.2) + | .text _, _ => none + +/-- The text inside an element. -/ +partial def content : Xml → String + | .text content => content + | .element _ _ children => String.join (children.map content) + +def unescape (s : String) : String := Id.run do + let mut out := "" + let mut rest := s.toList + while !rest.isEmpty do + match rest with + | '&' :: tail => + let entity := tail.takeWhile (· != ';') + let after := (tail.dropWhile (· != ';')).drop 1 + let known : Option Char := match String.ofList entity with + | "lt" => some '<' | "gt" => some '>' | "amp" => some '&' | "quot" => some '"' + | "apos" => some '\'' + | other => + if other.startsWith "#x" then + (other.drop 2).toString.toList.foldlM (fun (n : Nat) (c : Char) => + (if c.isDigit then some (c.toNat - 48) + else if 'a' ≤ c.toLower && c.toLower ≤ 'f' then some (c.toLower.toNat - 87) + else none).map (n * 16 + ·)) 0 |>.map Char.ofNat + else if other.startsWith "#" then (other.drop 1).toString.toNat?.map Char.ofNat + else none + match known with + | some c => out := out.push c; rest := after + | none => out := out.push '&'; rest := tail + | c :: tail => out := out.push c; rest := tail + | [] => pure () + return out + +def startsAt (cs : Array Char) (i : Nat) (word : String) : Bool := + let w := word.toList + (List.range w.length).all fun k => cs.getD (i + k) ' ' == w.getD k '\x00' && i + k < cs.size + +partial def skipPast (cs : Array Char) (i : Nat) (word : String) : Nat := + if i ≥ cs.size then cs.size + else if startsAt cs i word then i + word.length + else skipPast cs (i + 1) word + +partial def takeUntil (cs : Array Char) (i : Nat) (stop : Char → Bool) (acc : String := "") : String × Nat := + if i ≥ cs.size || stop cs[i]! then (acc, i) else takeUntil cs (i + 1) stop (acc.push cs[i]!) + +partial def skipSpace (cs : Array Char) (i : Nat) : Nat := + if i < cs.size && cs[i]!.isWhitespace then skipSpace cs (i + 1) else i + +mutual + +/-- Reads the element that starts at `i`, which is at a `<`. -/ +partial def parseElement (cs : Array Char) (i : Nat) : Except String (Xml × Nat) := do + let (name, i) := takeUntil cs (i + 1) fun c => c.isWhitespace || c == '/' || c == '>' + let rec attrs (i : Nat) (acc : List (String × String)) : Except String (List (String × String) × Nat) := do + let i := skipSpace cs i + if i ≥ cs.size then throw "the XML is cut short" + else if cs[i]! == '/' || cs[i]! == '>' then return (acc.reverse, i) + else + let (key, i) := takeUntil cs i fun c => c == '=' || c.isWhitespace + let i := skipSpace cs (skipSpace cs i + 1) + let quote := cs.getD i '"' + let (value, i) := takeUntil cs (i + 1) (· == quote) + attrs (i + 1) ((key, unescape value) :: acc) + let (attributes, i) ← attrs i [] + if cs[i]! == '/' then return (.element name attributes [], i + 2) + let (children, i) ← parseContent cs (i + 1) [] + return (.element name attributes children, i) + +/-- Reads children up to and past the closing tag. -/ +partial def parseContent (cs : Array Char) (i : Nat) (acc : List Xml) : Except String (List Xml × Nat) := do + if i ≥ cs.size then throw "the XML is cut short" + else if startsAt cs i "") + else if startsAt cs i "" + parseContent cs stop (.text (String.ofList ((cs.extract (i + 9) (stop - 3)).toList)) :: acc) + else if startsAt cs i "") acc + else if startsAt cs i "") acc + else if cs[i]! == '<' then + let (child, i) ← parseElement cs i + parseContent cs i (child :: acc) + else + let (raw, i) := takeUntil cs i (· == '<') + parseContent cs i (if raw.trimAscii.isEmpty then acc else .text (unescape raw) :: acc) + +end + +partial def skipProlog (cs : Array Char) (i : Nat) : Nat := + let i := skipSpace cs i + if startsAt cs i "") + else if startsAt cs i "") + else if startsAt cs i "") + else i + +/-- Read a document's root element. -/ +def parse (document : String) : Except String Xml := do + let cs := document.toList.toArray + let i := skipProlog cs 0 + if i ≥ cs.size || cs[i]! != '<' then throw "not an XML document" + return (← parseElement cs i).1 + +end Xml + +end Distilled diff --git a/lean/Generate.lean b/lean/Generate.lean new file mode 100644 index 0000000000..76a72141c2 --- /dev/null +++ b/lean/Generate.lean @@ -0,0 +1,460 @@ +import Lean.Data.Json + +/-! +# The generator + +Reads a Smithy model of a service and writes a Lean module: a type for every +shape with its JSON form, an error type for every operation, and the service as +a `Distilled.Api` with how it goes over the wire. + + distilled-gen +-/ + +open Lean + +structure Shape where + id : String + json : Json + +def Shape.name (s : Shape) : String := (s.id.splitOn "#").getLastD s.id +def Shape.kind (s : Shape) : String := (s.json.getObjValAs? String "type").toOption.getD "" +def Shape.traits (s : Shape) : Json := (s.json.getObjVal? "traits").toOption.getD (Json.mkObj []) +def Shape.trait? (s : Shape) (name : String) : Option Json := (s.traits.getObjVal? name).toOption + +def members (j : Json) : List (String × Json) := + match j.getObjVal? "members" with + | .ok (.obj kvs) => kvs.toList + | _ => [] + +def target (j : Json) : String := (j.getObjValAs? String "target").toOption.getD "" + +def traitOf (j : Json) (name : String) : Option Json := + match j.getObjVal? "traits" with + | .ok traits => (traits.getObjVal? name).toOption + | .error _ => none + +def traitString (j : Json) (name : String) : Option String := + (traitOf j name).bind fun t => (fromJson? t : Except String String).toOption + +def hasTrait (j : Json) (name : String) : Bool := + match j.getObjVal? "traits" with + | .ok traits => (traits.getObjVal? name).toOption.isSome + | .error _ => false + +def keywords : List String := [ + "at", "axiom", "by", "class", "def", "deriving", "do", "else", "end", "example", "export", "for", + "attribute", "abbrev", "inductive", "instance", "opaque", "partial", "unsafe", "set_option", + "initialize", "elab", "macro_rules", "public", "meta", "module", "init", "nomatch", "nofun", + "from", "fun", "have", "if", "import", "in", "instance", "let", "local", "macro", "match", + "mutual", "namespace", "notation", "open", "prefix", "private", "protected", "return", "section", + "show", "structure", "syntax", "then", "theorem", "universe", "using", "variable", "where", "with"] + +def escape (name : String) : String := if keywords.contains name then s!"«{name}»" else name + +/-- `QueueUrl` to `queueUrl`, `MD5OfBody` to `md5OfBody`, `AWSTraceHeader` to `awsTraceHeader`. -/ +def lowerFirst (name : String) : String := + let chars := name.toList.filter fun c => c.isAlphanum || c == '_' + let run := chars.takeWhile fun c => c.isUpper || c.isDigit + let rest := chars.drop run.length + let lowered := + if run.length ≤ 1 || rest.isEmpty then run.map Char.toLower ++ rest + else (run.take (run.length - 1)).map Char.toLower ++ run.drop (run.length - 1) ++ rest + let out := String.ofList lowered + escape (if (out.toList.headD 'a').isDigit then s!"_{out}" else out) + +/-- The first sentence of a shape's documentation, as plain text. -/ +def summary (j : Json) : Option String := do + let traits ← (j.getObjVal? "traits").toOption + let html ← (traits.getObjValAs? String "smithy.api#documentation").toOption + let (text, _) := html.toList.foldl (init := ([], false)) fun (acc, inTag) c => + if c == '<' then (acc, true) else if c == '>' then (' ' :: acc, false) + else if inTag then (acc, true) else ((if c.isWhitespace then ' ' else c) :: acc, false) + let text := String.ofList text.reverse + let text := " ".intercalate ((text.splitOn " ").filter (· ≠ "")) + let text := (text.replace "&" "&").replace "<" "<" |>.replace ">" ">" |>.replace "-/" "- /" + let sentence := (text.splitOn ". ").headD text + let sentence := if sentence.endsWith "." then sentence else sentence ++ "." + if sentence.length < 3 then none else some (sentence.take 240).toString + +def doc (indent : String) (j : Json) : String := + match summary j with + | some text => s!"{indent}/-- {text} -/\n" + | none => "" + +structure Model where + shapes : List Shape + +def Model.find? (m : Model) (id : String) : Option Shape := m.shapes.find? (·.id == id) + +/-- Names a generated module already uses, or that Lean does. -/ +def reserved : List String := [ + "Type", "Sort", "Prop", "String", "Int", "Nat", "Bool", "List", "Option", "Unit", "Except", "Dict", + "Blob", "Timestamp", "Document", "Op", "Input", "Output", "Error", "Value", "Schema", "Shape", + "Key", "Info", "Protocol", "Xml", "Json", "Location", "Api", "Wire", "Eff", "Model", "Array", + "Function", "Char", "Float", "Task", "IO", "Empty", "Subtype", "Id", "Name", "Format", "Repr"] + +/-- The Lean name of a shape's type. -/ +def Shape.leanName (s : Shape) : String := + let name := String.ofList (s.name.toList.filter fun c => c.isAlphanum || c == '_') + if reserved.contains name then s!"{name}_" else name + +def scalarType : String → Option String + | "string" => some "String" + | "integer" | "long" | "short" | "byte" | "bigInteger" | "intEnum" => some "Int" + | "float" | "double" | "bigDecimal" => some "JsonNumber" + | "boolean" => some "Bool" + | "blob" => some "Blob" + | "timestamp" => some "Timestamp" + | "document" => some "Document" + | _ => none + +/-- The kind of a shape, with the prelude's shapes counted as their kind. -/ +def Model.kindOf (m : Model) (id : String) : String := + if id.startsWith "smithy.api#" then + match (id.drop 11).toString with + | "String" => "string" + | "Integer" | "PrimitiveInteger" => "integer" + | "Long" | "PrimitiveLong" => "long" + | "Short" | "PrimitiveShort" => "short" + | "Byte" | "PrimitiveByte" => "byte" + | "BigInteger" => "bigInteger" + | "Float" | "PrimitiveFloat" => "float" + | "Double" | "PrimitiveDouble" => "double" + | "BigDecimal" => "bigDecimal" + | "Boolean" | "PrimitiveBoolean" => "boolean" + | "Blob" => "blob" + | "Timestamp" => "timestamp" + | "Document" => "document" + | "Unit" => "unit" + | other => other + else match m.find? id with + | some s => s.kind + | none => "unknown" + +/-- Whether a shape gets a type of its own. -/ +def Model.named (m : Model) (id : String) : Bool := + ["structure", "enum", "union"].contains (m.kindOf id) + +def sub (s : Shape) (key : String) : Json := (s.json.getObjVal? key).toOption.getD .null + +/-- The Lean type for a shape. -/ +partial def Model.typeOf (m : Model) (id : String) : Except String String := + let kind := m.kindOf id + match scalarType kind with + | some type => .ok type + | none => + if kind == "unit" then .ok "Unit" + else match m.find? id with + | none => .error s!"unknown shape {id}" + | some s => + match kind with + | "structure" | "enum" | "union" => .ok s.leanName + | "list" | "set" => do return s!"(List {← m.typeOf (target (sub s "member"))})" + | "map" => do + return s!"(Dict {← m.typeOf (target (sub s "key"))} {← m.typeOf (target (sub s "value"))})" + | other => .error s!"{s.name}: shapes of type {other} are not supported" + +def timeFormat (j : Json) : Option String := + match traitString j "smithy.api#timestampFormat" with + | some "epoch-seconds" => some ".epochSeconds" + | some "date-time" => some ".dateTime" + | some "http-date" => some ".httpDate" + | _ => none + +/-- The schema of a shape, as Lean source. `member` is the reference to it, whose traits win. -/ +partial def Model.schemaOf (m : Model) (member : Json) : String := + let id := target member + match m.kindOf id with + | "string" => ".string" + | "integer" | "long" | "short" | "byte" | "bigInteger" | "intEnum" => ".int" + | "float" | "double" | "bigDecimal" => ".number" + | "boolean" => ".bool" + | "blob" => ".blob" + | "document" => ".document" + | "unit" => "(Shape.schema Unit)" + | "timestamp" => + let format := (timeFormat member).orElse fun _ => (m.find? id).bind fun s => timeFormat s.json + match format with + | some f => s!"(.time (some {f}))" + | none => "(.time none)" + | "list" | "set" => + match m.find? id with + | some s => + let item := sub s "member" + s!"(.list {m.schemaOf item} {repr ((traitString item "smithy.api#xmlName").getD "member")})" + | none => ".string" + | "map" => + match m.find? id with + | some s => + let key := sub s "key" + let value := sub s "value" + s!"(.map {m.schemaOf key} {m.schemaOf value} {repr ((traitString key "smithy.api#xmlName").getD "key")} {repr ((traitString value "smithy.api#xmlName").getD "value")})" + | none => ".string" + | _ => + match m.find? id with + | some s => s!"(Shape.schema {s.leanName})" + | none => ".string" + +/-- The named shapes a shape refers to, through lists and maps. -/ +partial def Model.uses (m : Model) (id : String) : List String := + match m.find? id with + | none => [] + | some s => + if m.named id then [id] + else if s.kind == "list" || s.kind == "set" then m.uses (target (sub s "member")) + else if s.kind == "map" then m.uses (target (sub s "key")) ++ m.uses (target (sub s "value")) + else [] + +def Model.dependencies (m : Model) (s : Shape) : List String := + ((members s.json).flatMap fun (_, member) => m.uses (target member)).eraseDups + +/-- The named shapes, each after the ones it mentions. Shapes that mention themselves are left out and reported. -/ +partial def Model.ordered (m : Model) : List Shape × List Shape := + let named := m.shapes.filter fun s => m.named s.id + let rec go (done : List Shape) (left : List Shape) : List Shape × List Shape := + let ready := left.filter fun s => (m.dependencies s).all fun d => done.any (·.id == d) + if ready.isEmpty then (done, left) + else go (done ++ ready) (left.filter fun s => !ready.any (·.id == s.id)) + go [] named + +/-- Field or constructor names, made distinct. -/ +def distinct (names : List String) : List String := + (names.foldl (init := ([] : List String)) fun acc name => + let name := if name.isEmpty || name == "_" then "value" else name + let rec fresh (candidate : String) (n : Nat) : String := + match n with + | 0 => candidate + | n + 1 => if acc.contains candidate then fresh (candidate ++ "_") n else candidate + acc ++ [fresh name 20]) + +def emitEnum (s : Shape) : String := + let raw := members s.json + let names := distinct (raw.map fun (name, _) => lowerFirst name) + let cases := (raw.zip names).map fun ((name, member), c) => + (c, (traitString member "smithy.api#enumValue").getD name) + let n := s.leanName + doc "" s.json ++ s!"inductive {n} where\n" + ++ String.join (cases.map fun (c, _) => s!" | {c}\n") + ++ "deriving DecidableEq, Repr, Inhabited\n\n" + ++ s!"def {n}.wire : {n} → String\n" + ++ String.join (cases.map fun (c, v) => s!" | .{c} => {repr v}\n") + ++ s!"\ndef {n}.wireValues : List (String × {n}) := [\n" + ++ ",\n".intercalate ((cases.map (·.2)).eraseDups.filterMap fun v => + (cases.find? (·.2 == v)).map fun (c, _) => s!" ({repr v}, .{c})") + ++ "]\n\n" + ++ s!"def {n}.ofWire (text : String) : Except String {n} :=\n" + ++ s!" match List.find? (·.1 == text) {n}.wireValues with\n" ++ " | Option.some (_, x) => .ok x\n" + ++ s!" | Option.none => .error s!\"{n} has no value \{text}\"\n\n" + ++ s!"instance : Key {n} := ⟨{n}.wire, {n}.ofWire⟩\n\n" + ++ s!"instance : Shape {n} where\n schema := .string\n toValue x := .string x.wire\n" + ++ s!" ofValue\n | .string text => {n}.ofWire text\n | _ => .error \"expected a string\"\n\n" + +/-- What the model says about a member, as Lean source. -/ +def infoOf (name : String) (member : Json) : String := + let location := + if hasTrait member "smithy.api#httpLabel" then some ".label" + else if hasTrait member "smithy.api#httpQueryParams" then some ".queryParams" + else if hasTrait member "smithy.api#httpPayload" then some ".payload" + else if hasTrait member "smithy.api#httpResponseCode" then some ".status" + else match traitString member "smithy.api#httpQuery" with + | some q => some s!".query {repr q}" + | none => + match traitString member "smithy.api#httpHeader" with + | some h => some s!".header {repr h}" + | none => (traitString member "smithy.api#httpPrefixHeaders").map fun p => s!".prefixHeaders {repr p}" + let fields := [some s!"name := {repr name}", + if hasTrait member "smithy.api#required" then some "required := true" else none, + (traitString member "smithy.api#jsonName").map fun v => s!"jsonName := some {repr v}", + (traitString member "smithy.api#xmlName").map fun v => s!"xmlName := some {repr v}", + (traitString member "aws.protocols#ec2QueryName").map fun v => s!"queryName := some {repr v}", + if hasTrait member "smithy.api#xmlFlattened" then some "flattened := true" else none, + if hasTrait member "smithy.api#xmlAttribute" then some "asAttribute := true" else none, + location.map fun l => s!"location := {l}"] + "{ " ++ ", ".intercalate (fields.filterMap id) ++ " }" + +def schemaMembers (m : Model) (s : Shape) : String := + "[" ++ ",\n ".intercalate ((members s.json).map fun (name, member) => + s!"({infoOf name member}, {m.schemaOf member})") ++ "]" + +def emitStructure (m : Model) (s : Shape) : Except String String := do + let raw := members s.json + let names := distinct (raw.map fun (name, _) => lowerFirst name) + let fields ← (raw.zip names).mapM fun ((name, member), field) => do + return (name, field, ← m.typeOf (target member), hasTrait member "smithy.api#required", member) + let n := s.leanName + let wireName := (traitString s.json "smithy.api#xmlName").getD s.name + let decl := if fields.isEmpty then s!"structure {n} where\n mk ::\n" + else s!"structure {n} where\n" ++ String.join (fields.map fun (_, field, type, required, member) => + doc " " member + ++ (if required then s!" {field} : {type}\n" else s!" {field} : Option {type} := none\n")) + let x := if fields.isEmpty then "_" else "x" + let v := if fields.isEmpty then "_" else "v" + return doc "" s.json ++ decl ++ "deriving DecidableEq, Repr, Inhabited\n\n" + ++ s!"instance : Shape {n} where\n" + ++ s!" schema := .struct {repr wireName} {schemaMembers m s}\n" + ++ s!" toValue {x} := record [" + ++ ", ".intercalate (fields.map fun (wire, field, _, required, _) => + s!"{if required then "put" else "putOpt"} {repr wire} x.{field}") ++ "]\n" + ++ s!" ofValue {v} := do\n" + ++ String.join (fields.map fun (wire, field, _, required, _) => + s!" let {field} ← v.{if required then "req" else "opt"} {repr wire}\n") + ++ " return { " ++ ", ".intercalate (fields.map fun (_, field, _, _, _) => field) ++ " }\n\n" + +def emitUnion (m : Model) (s : Shape) : Except String String := do + let raw := members s.json + let names := distinct (raw.map fun (name, _) => lowerFirst name) + let cases ← (raw.zip names).mapM fun ((name, member), c) => do + return (name, c, ← m.typeOf (target member), member) + let n := s.leanName + return doc "" s.json ++ s!"inductive {n} where\n" + ++ String.join (cases.map fun (_, c, type, member) => doc " " member ++ s!" | {c} (value : {type})\n") + ++ "deriving DecidableEq, Repr, Inhabited\n\n" + ++ s!"instance : Shape {n} where\n" + ++ s!" schema := .union {repr s.name} {schemaMembers m s}\n" + ++ " toValue\n" + ++ String.join (cases.map fun (wire, c, _, _) => s!" | .{c} value => record [put {repr wire} value]\n") + ++ " ofValue\n" + ++ String.join (cases.map fun (wire, c, _, _) => + s!" | .record [({repr wire}, value)] => .{c} <$> Shape.ofValue value\n") + ++ s!" | _ => .error \"expected exactly one member of {s.name}\"\n\n" + +structure Operation where + shape : Shape + input : String + output : String + inputSchema : String + outputSchema : String + errors : List Shape + +def Operation.name (o : Operation) : String := o.shape.name +def Operation.case (o : Operation) : String := lowerFirst o.shape.name +def Operation.errorType (o : Operation) : String := + if o.errors.isEmpty then "Empty" else s!"{o.shape.name}Error" + +/-- The operations whose shapes were all generated, and the ones that were not. -/ +def operations (m : Model) (skipped : List Shape) : List Operation × List String := + let ok (id : String) : Bool := !(m.uses id).any fun d => skipped.any (·.id == d) + (m.shapes.filter (·.kind == "operation")).foldl (init := ([], [])) fun (done, left) s => + let side (key : String) : Option (String × String) := + match s.json.getObjVal? key with + | .ok j => if ok (target j) then (m.typeOf (target j)).toOption.map (·, m.schemaOf j) else none + | .error _ => some ("Unit", "(Shape.schema Unit)") + let errors := match s.json.getObjValAs? (Array Json) "errors" with + | .ok list => list.toList.filterMap fun e => m.find? (target e) + | .error _ => [] + match side "input", side "output" with + | some (input, inputSchema), some (output, outputSchema) => + if errors.all fun e => ok e.id then + (done ++ [{ shape := s, input, output, inputSchema, outputSchema, errors }], left) + else (done, left ++ [s.name]) + | _, _ => (done, left ++ [s.name]) + +def emitErrors (o : Operation) : String := + if o.errors.isEmpty then "" else + let t := o.errorType + let cases := (o.errors.zip (distinct (o.errors.map fun e => lowerFirst e.name))) + s!"/-- What `{o.name}` can fail with. -/\ninductive {t} where\n" + ++ String.join (cases.map fun (e, c) => doc " " e.json ++ s!" | {c} (error : {e.leanName})\n") + ++ "deriving DecidableEq, Repr\n\n" + ++ s!"def {t}.ofWire (name : String) (value : Value) : Option {t} :=\n match name with\n" + ++ String.join (cases.map fun (e, c) => + s!" | {repr e.name} => (Shape.ofValue value).toOption.map .{c}\n") + ++ " | _ => none\n\n" + +def errorCode (e : Shape) : Option String := + (traitOf e.json "aws.protocols#awsQueryError").bind fun t => (t.getObjValAs? String "code").toOption + +def emitInfo (o : Operation) : String := + let http := traitOf o.shape.json "smithy.api#http" + let method := (http.bind fun h => (h.getObjValAs? String "method").toOption).getD "POST" + let uri := (http.bind fun h => (h.getObjValAs? String "uri").toOption).getD "/" + s!" | .{o.case} => \{ name := {repr o.name}, method := {repr method}, uri := {repr uri}, " + ++ s!"input := {o.inputSchema}, output := {o.outputSchema}, " + ++ "errors := [" ++ ", ".intercalate (o.errors.map fun e => + let code := match errorCode e with + | some c => s!", code := some {repr c}" + | none => "" + s!"\{ name := {repr e.name}{code}, schema := Shape.schema {e.leanName} }") ++ "] }\n" + +def protocolOf (service : Shape) : Except String String := + if (service.trait? "aws.protocols#awsJson1_0").isSome then .ok ".awsJson \"1.0\"" + else if (service.trait? "aws.protocols#awsJson1_1").isSome then .ok ".awsJson \"1.1\"" + else if (service.trait? "aws.protocols#restJson1").isSome then .ok ".restJson" + else if (service.trait? "aws.protocols#restXml").isSome then .ok ".restXml" + else if (service.trait? "aws.protocols#awsQuery").isSome then .ok ".awsQuery" + else if (service.trait? "aws.protocols#ec2Query").isSome then .ok ".ec2Query" + else .error "the service names no protocol this generator knows" + +def generate (m : Model) (namespace_ : String) (source : String) : + Except String (String × List String × List String) := do + let some service := m.shapes.find? (·.kind == "service") | throw "the model has no service" + let protocol ← protocolOf service + let signingName := ((service.trait? "aws.auth#sigv4").bind fun j => + (j.getObjValAs? String "name").toOption).getD "" + let version := (service.json.getObjValAs? String "version").toOption.getD "" + let xmlns := (service.trait? "smithy.api#xmlNamespace").bind fun j => + (j.getObjValAs? String "uri").toOption + let (shapes, skipped) := m.ordered + let (ops, skippedOps) := operations m skipped + let types ← shapes.mapM fun s => + if s.kind == "enum" then pure (emitEnum s) + else if s.kind == "union" then emitUnion m s + else emitStructure m s + let table (name : String) (pick : Operation → String) : String := + s!"abbrev {name} : Op → Type\n" ++ String.join (ops.map fun o => s!" | .{o.case} => {pick o}\n") ++ "\n" + let text := s!"-- Generated by distilled-gen from {source}. Do not edit.\n" + ++ "import Distilled.Protocol\n\n" + ++ s!"namespace {namespace_}\nopen Lean Distilled\n\n" + ++ "set_option linter.unusedVariables false\nset_option maxRecDepth 4096\nset_option maxHeartbeats 0\n\n" + ++ String.join types + ++ String.join (ops.map emitErrors) + ++ "/-- The operations of the service. -/\ninductive Op where\n" + ++ String.join (ops.map fun o => doc " " o.shape.json ++ s!" | {o.case}\n") + ++ "deriving DecidableEq, Repr\n\n" + ++ table "Input" (·.input) ++ table "Output" (·.output) ++ table "Error" (·.errorType) + ++ "/-- An empty output for each operation, for a model that leaves an operation out. -/\n" + ++ "def Output.empty : (op : Op) → Output op\n" + ++ String.join (ops.map fun o => s!" | .{o.case} => default\n") ++ "\n" + ++ "/-- The service: every operation with its input, its output and its errors. -/\n" + ++ "abbrev api : Distilled.Api where\n Op := Op\n In := Input\n Out := Output\n Err := Error\n\n" + ++ s!"/-- The name requests to this service are signed for. -/\ndef signingName : String := {repr signingName}\n\n" + ++ "def service : ServiceInfo where\n" + ++ s!" name := {repr service.name}\n version := {repr version}\n protocol := {protocol}\n" + ++ s!" signingName := {repr signingName}\n" + ++ (match xmlns with | some ns => s!" xmlNamespace := some {repr ns}\n" | none => "") + ++ "\n/-- What the model says about each operation. -/\ndef info : Op → OpInfo\n" + ++ String.join (ops.map emitInfo) + ++ "\n/-- How the service goes over HTTP. -/\ndef wire : Wire api := Wire.of service info\n" + ++ " (fun op => match op with\n" + ++ String.join (ops.map fun o => s!" | .{o.case} => fun (x : {o.input}) => Shape.toValue x\n") ++ ")\n" + ++ " (fun op => match op with\n" + ++ String.join (ops.map fun o => + s!" | .{o.case} => fun v => (Shape.ofValue v : Except String {o.output})\n") ++ ")\n" + ++ " (fun op => match op with\n" + ++ String.join (ops.map fun o => + s!" | .{o.case} => " ++ (if o.errors.isEmpty then "fun _ _ => none" else s!"{o.errorType}.ofWire") ++ "\n") + ++ ")\n\n" + ++ String.join (ops.map fun o => + doc "" o.shape.json + ++ s!"def {o.case} \{ε : Type} (input : {o.input}) : Eff api ε (Except {o.errorType} {o.output}) :=\n" + ++ s!" Eff.ask (api := api) .{o.case} input\n\n") + ++ s!"end {namespace_}\n" + return (text, skipped.map (·.name), skippedOps) + +def main (args : List String) : IO UInt32 := do + let [modelPath, namespace_, outPath] := args + | IO.eprintln "usage: distilled-gen "; return 2 + let text ← IO.FS.readFile modelPath + let json ← IO.ofExcept (Json.parse text) + let shapes := match json.getObjVal? "shapes" with + | .ok (.obj kvs) => kvs.toList.map fun (id, j) => ({ id, json := j } : Shape) + | _ => [] + match generate { shapes } namespace_ ((modelPath.splitOn "/").getLastD modelPath) with + | .error why => IO.eprintln s!"{modelPath}: {why}"; return 1 + | .ok (source, skipped, skippedOps) => + IO.FS.writeFile outPath source + IO.println s!"wrote {outPath}: {shapes.length} shapes" + if !skipped.isEmpty then + IO.println s!" left out {skipped.length} shapes that refer to themselves: {skipped.take 6}" + IO.println s!" and {skippedOps.length} operations that use them: {skippedOps.take 6}" + return 0 diff --git a/lean/README.md b/lean/README.md new file mode 100644 index 0000000000..dd5d25132c --- /dev/null +++ b/lean/README.md @@ -0,0 +1,48 @@ +# distilled for Lean (experiment) + +An experiment: distilled's cloud SDKs as [Lean 4](https://lean-lang.org) modules, generated from the same Smithy models. Each operation is a function that returns an effect whose errors are a closed type, so a proof can cover every response the model lists. Not published, and not part of the pnpm workspace. + +```lean +import Distilled +open Distilled + +def firstKeys (bucket : String) : Eff AWS.S3.api AWS.S3.ListObjectsV2Error (List String) := do + let out ← AWS.S3.listObjectsV2 { bucket, maxKeys := some 3 } + return (out.contents.getD []).filterMap (·.key) +``` + +## What is here + +| Path | What it holds | +|---|---| +| `Distilled/Core.lean` | `Api`, `Eff api ε α`, `Model api`, `Eff.run` (against a model, for proofs) and `Eff.io` (over the network) | +| `Distilled/Schema.lean` | Schemas, HTTP bindings and the `Shape` class the generated types implement | +| `Distilled/Protocol.lean`, `Distilled/Protocol/Codec.lean` | The five AWS protocols: awsJson, restJson, restXml, awsQuery, ec2Query | +| `Distilled/Http.lean`, `Distilled/Net.lean`, `c/net.c` | HTTP/1.1 and TLS, linked against the OpenSSL the Lean toolchain ships | +| `Distilled/SigV4.lean`, `Distilled/AWS/Client.lean` | Request signing and the AWS client | +| `Generate.lean` | The generator: a Smithy model in, a Lean module out | +| `Distilled/AWS/Services/` | Generated: SQS, SNS, Lambda, S3, DynamoDB, EC2 | +| `Check.lean` | Known-answer checks for hashing, signing and each protocol, plus live calls to public endpoints | + +## Build and check + +```sh +curl https://elan.lean-lang.org/elan-init.sh -sSf | sh +lake build # EC2 takes about four minutes +lake exe distilled-check +``` + +## Regenerate + +```sh +git submodule update --init --depth 1 packages/aws/specs/spec-mirror-aws +./generate.sh +``` + +The generator reads the models as the mirror has them. It does not apply `packages/aws/patches` yet. + +## Not done + +- No signed AWS call has been tested; the checks only call public endpoints. +- Shapes that refer to themselves are left out, and with them 16 DynamoDB operations (`AttributeValue`). +- No rpcv2Cbor, event streams, streaming bodies, pagination or retries. diff --git a/lean/c/net.c b/lean/c/net.c new file mode 100644 index 0000000000..49035a0f73 --- /dev/null +++ b/lean/c/net.c @@ -0,0 +1,194 @@ +// The only foreign code in distilled: a TLS or plain TCP exchange, and two hashes. +// One call opens a connection, sends the request, and reads until the server closes. +// +// Lean ships OpenSSL 3 as libraries without headers, so the few functions used +// here are declared by hand. Every one is a stable exported function of OpenSSL 3. +#include +#include +#include +#include +#include +#include +#include + +typedef struct ssl_ctx_st SSL_CTX; +typedef struct ssl_st SSL; +typedef struct ssl_method_st SSL_METHOD; +typedef struct evp_md_st EVP_MD; +const SSL_METHOD *TLS_client_method(void); +SSL_CTX *SSL_CTX_new(const SSL_METHOD *method); +void SSL_CTX_free(SSL_CTX *ctx); +long SSL_CTX_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg); +void SSL_CTX_set_verify(SSL_CTX *ctx, int mode, void *callback); +int SSL_CTX_load_verify_locations(SSL_CTX *ctx, const char *file, const char *path); +int SSL_CTX_set_default_verify_paths(SSL_CTX *ctx); +SSL *SSL_new(SSL_CTX *ctx); +void SSL_free(SSL *ssl); +long SSL_ctrl(SSL *ssl, int cmd, long larg, void *parg); +int SSL_set1_host(SSL *ssl, const char *hostname); +int SSL_set_fd(SSL *ssl, int fd); +int SSL_connect(SSL *ssl); +int SSL_write(SSL *ssl, const void *buf, int num); +int SSL_read(SSL *ssl, void *buf, int num); +int SSL_shutdown(SSL *ssl); +long SSL_get_verify_result(const SSL *ssl); +unsigned long ERR_get_error(void); +void ERR_error_string_n(unsigned long e, char *buf, size_t len); +void ERR_clear_error(void); +unsigned char *SHA256(const unsigned char *d, size_t n, unsigned char *md); +const EVP_MD *EVP_sha256(void); +unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, const unsigned char *data, + size_t data_len, unsigned char *md, unsigned int *md_len); + +#define SSL_VERIFY_PEER 0x01 +#define SSL_CTRL_SET_TLSEXT_HOSTNAME 55 +#define TLSEXT_NAMETYPE_host_name 0 +#define SSL_CTRL_SET_MIN_PROTO_VERSION 123 +#define TLS1_2_VERSION 0x0303 +#define X509_V_OK 0 + +static lean_obj_res fail(const char *what) { + char message[512]; + unsigned long code = ERR_get_error(); + if (code != 0) { + char detail[256]; + ERR_error_string_n(code, detail, sizeof detail); + snprintf(message, sizeof message, "%s: %s", what, detail); + } else { + snprintf(message, sizeof message, "%s", what); + } + ERR_clear_error(); + return lean_io_result_mk_error(lean_mk_io_user_error(lean_mk_string(message))); +} + +static lean_obj_res bytes(const unsigned char *data, size_t length) { + lean_object *array = lean_alloc_sarray(1, length, length); + if (length > 0) memcpy(lean_sarray_cptr(array), data, length); + return array; +} + +static int dial(const char *host, uint16_t port) { + char service[8]; + snprintf(service, sizeof service, "%u", (unsigned)port); + struct addrinfo hints, *found = NULL; + memset(&hints, 0, sizeof hints); + hints.ai_socktype = SOCK_STREAM; + if (getaddrinfo(host, service, &hints, &found) != 0) return -1; + int fd = -1; + for (struct addrinfo *a = found; a != NULL; a = a->ai_next) { + fd = socket(a->ai_family, a->ai_socktype, a->ai_protocol); + if (fd < 0) continue; + if (connect(fd, a->ai_addr, a->ai_addrlen) == 0) break; + close(fd); + fd = -1; + } + freeaddrinfo(found); + return fd; +} + +typedef struct { + unsigned char *data; + size_t length, capacity; +} buffer; + +static int room(buffer *b) { + if (b->length < b->capacity) return 1; + size_t capacity = b->capacity == 0 ? 16384 : b->capacity * 2; + unsigned char *grown = realloc(b->data, capacity); + if (grown == NULL) return 0; + b->data = grown; + b->capacity = capacity; + return 1; +} + +static int load_roots(SSL_CTX *ctx) { + const char *chosen = getenv("SSL_CERT_FILE"); + if (chosen != NULL && SSL_CTX_load_verify_locations(ctx, chosen, NULL) == 1) return 1; + const char *files[] = {"/etc/ssl/cert.pem", "/etc/ssl/certs/ca-certificates.crt", + "/etc/pki/tls/certs/ca-bundle.crt", NULL}; + for (int i = 0; files[i] != NULL; i++) + if (SSL_CTX_load_verify_locations(ctx, files[i], NULL) == 1) return 1; + return SSL_CTX_set_default_verify_paths(ctx); +} + +// TLS 1.2 or later, with the server's certificate checked against its name. +LEAN_EXPORT lean_obj_res distilled_tls_exchange(b_lean_obj_arg host, uint16_t port, + b_lean_obj_arg request, lean_obj_arg world) { + const char *name = lean_string_cstr(host); + SSL_CTX *ctx = SSL_CTX_new(TLS_client_method()); + if (ctx == NULL) return fail("could not start TLS"); + SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MIN_PROTO_VERSION, TLS1_2_VERSION, NULL); + SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, NULL); + if (load_roots(ctx) != 1) { SSL_CTX_free(ctx); return fail("no root certificates found"); } + int fd = dial(name, port); + if (fd < 0) { SSL_CTX_free(ctx); return fail("could not connect"); } + SSL *ssl = SSL_new(ctx); + buffer reply = {NULL, 0, 0}; + lean_obj_res result = NULL; + if (ssl == NULL || SSL_ctrl(ssl, SSL_CTRL_SET_TLSEXT_HOSTNAME, TLSEXT_NAMETYPE_host_name, (void *)name) != 1 || + SSL_set1_host(ssl, name) != 1 || SSL_set_fd(ssl, fd) != 1) { + result = fail("could not set the server name"); + } else if (SSL_connect(ssl) != 1 || SSL_get_verify_result(ssl) != X509_V_OK) { + result = fail("the server's certificate was not accepted"); + } else { + size_t total = lean_sarray_size(request), sent = 0; + const unsigned char *out = lean_sarray_cptr(request); + while (result == NULL && sent < total) { + int n = SSL_write(ssl, out + sent, (int)(total - sent)); + if (n <= 0) result = fail("could not send the request"); else sent += (size_t)n; + } + while (result == NULL) { + if (!room(&reply)) { result = fail("out of memory"); break; } + int n = SSL_read(ssl, reply.data + reply.length, (int)(reply.capacity - reply.length)); + if (n <= 0) break; + reply.length += (size_t)n; + } + ERR_clear_error(); + if (result == NULL) result = lean_io_result_mk_ok(bytes(reply.data, reply.length)); + SSL_shutdown(ssl); + } + free(reply.data); + if (ssl != NULL) SSL_free(ssl); + close(fd); + SSL_CTX_free(ctx); + return result; +} + +// Plain TCP, for servers on this machine. +LEAN_EXPORT lean_obj_res distilled_tcp_exchange(b_lean_obj_arg host, uint16_t port, + b_lean_obj_arg request, lean_obj_arg world) { + int fd = dial(lean_string_cstr(host), port); + if (fd < 0) return fail("could not connect"); + size_t total = lean_sarray_size(request), sent = 0; + const unsigned char *out = lean_sarray_cptr(request); + while (sent < total) { + ssize_t n = send(fd, out + sent, total - sent, 0); + if (n <= 0) { close(fd); return fail("could not send the request"); } + sent += (size_t)n; + } + buffer reply = {NULL, 0, 0}; + for (;;) { + if (!room(&reply)) { free(reply.data); close(fd); return fail("out of memory"); } + ssize_t n = recv(fd, reply.data + reply.length, reply.capacity - reply.length, 0); + if (n <= 0) break; + reply.length += (size_t)n; + } + close(fd); + lean_obj_res result = lean_io_result_mk_ok(bytes(reply.data, reply.length)); + free(reply.data); + return result; +} + +LEAN_EXPORT lean_obj_res distilled_sha256(b_lean_obj_arg data) { + unsigned char digest[32]; + SHA256(lean_sarray_cptr(data), lean_sarray_size(data), digest); + return bytes(digest, sizeof digest); +} + +LEAN_EXPORT lean_obj_res distilled_hmac_sha256(b_lean_obj_arg key, b_lean_obj_arg data) { + unsigned char digest[64]; + unsigned int length = 0; + HMAC(EVP_sha256(), lean_sarray_cptr(key), (int)lean_sarray_size(key), lean_sarray_cptr(data), + lean_sarray_size(data), digest, &length); + return bytes(digest, length); +} diff --git a/lean/generate.sh b/lean/generate.sh new file mode 100755 index 0000000000..48119e5ce8 --- /dev/null +++ b/lean/generate.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# Regenerates Distilled/AWS/Services/*.lean from the AWS Smithy models in the +# spec mirror (git submodule update --init --depth 1 packages/aws/specs/spec-mirror-aws). +set -eu +cd "$(dirname "$0")" +models=../packages/aws/specs/spec-mirror-aws/specs/models +lake build distilled-gen +gen() { + model=$(ls "$models/$1"/service/*/*.json | tail -1) + lake exe distilled-gen "$model" "Distilled.AWS.$2" "Distilled/AWS/Services/$2.lean" +} +gen sqs SQS +gen sns SNS +gen lambda Lambda +gen s3 S3 +gen dynamodb DynamoDB +gen ec2 EC2 diff --git a/lean/lake-manifest.json b/lean/lake-manifest.json new file mode 100644 index 0000000000..00c6fdfe66 --- /dev/null +++ b/lean/lake-manifest.json @@ -0,0 +1,6 @@ +{"version": "1.3.0", + "packagesDir": ".lake/packages", + "packages": [], + "name": "distilled", + "lakeDir": ".lake", + "fixedToolchain": false} diff --git a/lean/lakefile.lean b/lean/lakefile.lean new file mode 100644 index 0000000000..271d5dcb54 --- /dev/null +++ b/lean/lakefile.lean @@ -0,0 +1,26 @@ +import Lake +open Lake DSL + +package distilled + +@[default_target] +lean_lib Distilled + +/-- The generator: reads a Smithy model and writes a Lean module. -/ +lean_exe «distilled-gen» where + root := `Generate + +/-- Checks of the HTTPS client and the signer against known answers and live servers. -/ +lean_exe «distilled-check» where + root := `Check + +target net.o pkg : System.FilePath := do + let oFile := pkg.buildDir / "c" / "net.o" + let srcJob ← inputTextFile <| pkg.dir / "c" / "net.c" + let weakArgs := #["-I", (← getLeanIncludeDir).toString] + buildO oFile srcJob weakArgs #["-fPIC", "-O2"] "cc" getLeanTrace + +extern_lib libdistillednet pkg := do + let name := nameToStaticLib "distillednet" + let o ← net.o.fetch + buildStaticLib (pkg.staticLibDir / name) #[o] diff --git a/lean/lean-toolchain b/lean/lean-toolchain new file mode 100644 index 0000000000..00f848359b --- /dev/null +++ b/lean/lean-toolchain @@ -0,0 +1 @@ +leanprover/lean4:v4.36.0